/* SmartBooks brand — deliberately unlike Houston.
 *
 * Layout: topbar + three-column grid (sidebar / workspace / chat rail).
 * The chat rail is 48px collapsed, 360px open — a CSS grid template
 * swap on the .app container toggles the width without remounting.
 */

:root {
  --bg: #fafaf7;
  --bg-panel: #ffffff;
  --bg-muted: #f0efe8;
  --bg-subtle: #f5f4ef;
  --text: #1c1d1c;
  --text-muted: #6b6e69;
  --text-dim: #94978f;
  --accent: #0f6b4f;
  --accent-strong: #0b5740;
  --accent-weak: #e8f2ec;
  --border: #e3e1d9;
  --border-soft: #ecebe3;
  --danger: #b83227;
  --danger-weak: #fbe9e7;
  --pos: #0f6b4f;
  --neg: #b83227;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --font-display: "Iowan Old Style", "Apple Garamond", "Baskerville", Georgia,
    serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.muted {
  color: var(--text-muted);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-muted);
  padding: 1px 6px;
  border-radius: 4px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ----- top-level layout ----- */

.app {
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  min-height: 48px;
}
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-muted);
}
.dot--ok {
  background: var(--accent);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 8px;
  background: var(--accent-weak);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.status-pill .typing span {
  background: var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.brand--large {
  font-size: 32px;
  margin-bottom: 14px;
}

.app__main {
  min-height: 0;
  display: grid;
  grid-template-columns: 240px 1fr 56px;
  transition: grid-template-columns 0.18s ease;
}
.app--chat-open .app__main {
  grid-template-columns: 240px 1fr 360px;
}

.app__workspace {
  min-width: 0;
  overflow-y: auto;
  background: var(--bg);
}

/* ----- left sidebar: clients ----- */

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidebar__header {
  padding: 14px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.sidebar__list {
  list-style: none;
  padding: 4px 8px 12px;
  margin: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__empty {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.sidebar__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.sidebar__item:hover {
  background: var(--bg-muted);
}
.sidebar__item--active {
  background: var(--accent-weak);
  color: var(--accent-strong);
  font-weight: 500;
}
.sidebar__avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar__item--active .sidebar__avatar {
  background: var(--accent-strong);
}
.sidebar__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----- client view ----- */

.client-view {
  padding: 28px 36px 48px;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.client-view__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.client-view__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 0 0 2px;
}
.client-view__header-actions {
  display: flex;
  gap: 8px;
}

.workspace-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  gap: 14px;
}
.workspace-empty h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0;
}
.workspace-empty p {
  max-width: 420px;
  margin: 0;
}

/* ----- canvas + empty/working states ----- */

.canvas {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-height: 360px;
  overflow: hidden;
  transition: border-color 0.12s, background 0.12s;
}
.canvas--dragging {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.canvas__drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 107, 79, 0.08);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.canvas__empty,
.canvas__working,
.canvas__retry {
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.canvas__empty h2,
.canvas__working h2,
.canvas__retry h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
}
.canvas__empty p,
.canvas__working p,
.canvas__retry p {
  max-width: 420px;
  margin: 0;
  font-size: 13.5px;
}
.canvas__empty-icon {
  font-size: 36px;
  margin-bottom: 4px;
  color: var(--accent);
  opacity: 0.85;
}
.canvas__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid var(--accent-weak);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-bottom: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.canvas__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  font-size: 12.5px;
}
.canvas__footer .typing span {
  background: var(--accent);
}

/* ----- transactions table ----- */

.table-wrap {
  display: flex;
  flex-direction: column;
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-subtle);
}
.table-summary {
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.table-summary__dot {
  margin: 0 6px;
  color: var(--text-dim);
}

.table-scroll {
  overflow-x: auto;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.tx-table thead {
  position: sticky;
  top: 0;
  background: var(--bg-panel);
  z-index: 1;
}
.tx-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
}
.tx-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.tx-table tr:last-child td {
  border-bottom: none;
}
.tx-table tr:hover td {
  background: var(--bg-subtle);
}

.cell-category {
  font-size: 12.5px;
  color: var(--text-muted);
}
.amount-pos {
  color: var(--pos);
  font-variant-numeric: tabular-nums;
}
.amount-neg {
  color: var(--neg);
  font-variant-numeric: tabular-nums;
}

.table-empty {
  padding: 48px 24px;
  text-align: center;
}

/* ----- workpaper card (the Excel deliverable) ----- */

.wp-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border-soft);
}
.wp-card--pending {
  opacity: 0.85;
}
.wp-card__icon {
  font-size: 28px;
  flex-shrink: 0;
  filter: saturate(0.9);
}
.wp-card__body {
  flex: 1;
  min-width: 0;
}
.wp-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 2px;
}
.wp-card__subtitle {
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.5;
}
.wp-card__dot {
  color: var(--text-dim);
  margin: 0 2px;
}
.wp-card__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ----- workpaper tabs ----- */

.workpaper {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.workpaper__tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-panel);
  overflow-x: auto;
  scrollbar-width: thin;
}
.workpaper__tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.1s, border-color 0.1s;
  margin-bottom: -1px; /* overlap the border-bottom on the tab row */
}
.workpaper__tab:hover {
  color: var(--text);
}
.workpaper__tab--active {
  color: var(--accent-strong);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.workpaper__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  background: var(--bg-muted);
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
}
.workpaper__tab--active .workpaper__count {
  background: var(--accent-weak);
  color: var(--accent-strong);
}
.workpaper__divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}
.workpaper__spacer {
  flex: 1;
}
.workpaper__pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ----- summary ----- */

.summary {
  display: flex;
  flex-direction: column;
}
.summary__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-soft);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.kpi__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.kpi__value {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
}

/* ----- source documents ----- */

.files-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.files-list__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.files-list__hint code {
  font-size: 11.5px;
  word-break: break-all;
}
.files-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}
.file-card__icon {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}
.file-card__body {
  flex: 1;
  min-width: 0;
}
.file-card__name {
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-card__meta {
  font-size: 11.5px;
  display: flex;
  gap: 4px;
}

/* ----- chat rail (collapsed) ----- */

.chat-rail {
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14px;
}
.chat-rail__toggle {
  width: 40px;
  min-height: 120px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 4px;
  font: inherit;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  position: relative;
}
.chat-rail__toggle:hover {
  background: var(--accent-weak);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.chat-rail__toggle--new .chat-rail__dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
.chat-rail__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.chat-rail__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.chat-rail__kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 4px;
  border-radius: 4px;
}

/* ----- chat panel (expanded) ----- */

.chat-panel {
  border-left: 1px solid var(--border);
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: slideIn 0.16s ease-out;
}
@keyframes slideIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.chat-panel__header {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-soft);
}
.chat-panel__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.chat-panel__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.chat-panel__close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
}
.chat-panel__close:hover {
  color: var(--text);
  background: var(--bg-muted);
}
.chat-panel__context {
  font-size: 11.5px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-panel__scroller {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-panel__empty {
  padding: 8px 6px;
}
.chat-panel__pitch {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.55;
}
.chat-panel__pitch-small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chips li {
  padding: 7px 10px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.chat-panel__composer {
  border-top: 1px solid var(--border-soft);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-panel);
}
.chat-panel__composer textarea {
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
}
.chat-panel__composer textarea:focus:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.chat-panel__composer textarea:disabled {
  background: var(--bg-subtle);
  color: var(--text-dim);
}
.chat-panel__actions {
  display: flex;
  justify-content: flex-end;
}

/* ----- messages ----- */

.msg {
  max-width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.45;
}
.msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  max-width: 88%;
}
.msg--assistant {
  align-self: flex-start;
  background: var(--bg-muted);
  max-width: 96%;
}
.msg--thinking {
  align-self: flex-start;
  background: transparent;
  color: var(--text-muted);
  font-style: italic;
  font-size: 12.5px;
  padding: 2px 4px;
}
.msg--thinking .msg__label {
  margin-right: 6px;
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}
.msg--tool {
  align-self: flex-start;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
}
.msg--tool.msg--error {
  background: var(--danger-weak);
  color: var(--danger);
}
.msg--tool .msg__label {
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 10px;
}
.msg--final {
  align-self: center;
  font-size: 10.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
}
.msg--system {
  align-self: center;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.msg--status {
  align-self: flex-start;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 2px 4px;
}

.typing {
  display: inline-flex;
  gap: 3px;
}
.typing span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.banner {
  padding: 8px 14px;
  font-size: 12.5px;
}
.banner--error {
  background: var(--danger-weak);
  color: var(--danger);
  border-top: 1px solid rgba(184, 50, 39, 0.18);
}

/* ----- buttons ----- */

.btn {
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:not(:disabled):hover {
  background: var(--accent-strong);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  background: var(--bg-muted);
}
.btn--small {
  font-size: 12px;
  padding: 4px 8px;
}

/* ----- modal ----- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 29, 28, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal__card {
  width: min(440px, 100%);
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  animation: modalIn 0.12s ease-out;
}
@keyframes modalIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 22px;
}
.modal__hint {
  margin: 0 0 20px;
  font-size: 13px;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* ----- forms (shared) ----- */

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.field input {
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-weak);
}
.error {
  margin: 0;
  padding: 8px 12px;
  background: var(--danger-weak);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ----- connect screen (fallback) ----- */

.screen {
  min-height: 100vh;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}
.screen--center {
  align-items: center;
}
.connect-card {
  width: min(440px, 100%);
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.connect-card .muted {
  margin: -8px 0 24px;
}
.help {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.help summary {
  cursor: pointer;
  user-select: none;
}
.help p {
  margin-top: 8px;
}
