/* =========================================================================
 * 【学习注释】styles.css —— 全站基础样式表：定义字体排版、通用表单控件、布局栅格、卡片与色彩变量（供后续主题样式层按需覆盖）。
 * ========================================================================= */
/* Echo Island workspace — a quiet, warm editorial system. */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  color: #242724;
  background: #f8f7f4;
  --ink: #242724;
  --secondary: #666e65;
  --line: #e0e2da;
  --soft: #f1f2ec;
  --blue: #a8533f;
  --accent: #a8533f;
  --sage: #dfe7df;
  --paper: #fffefa;
  --focus: #486552;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: wait; opacity: .55; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { vertical-align: middle; flex-shrink: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Shell */
.workspace { display: grid; grid-template-columns: 232px minmax(0,1fr); min-height: 100vh; }
.global-header { position: sticky; top: 0; align-self: start; height: 100vh; border-right: 1px solid var(--line); background: #f2f2ec; z-index: 5; }
.global-header-inner { display: flex; flex-direction: column; min-height: 100%; padding: 38px 20px 28px; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; padding: 0 11px; font-size: 23px; font-weight: 650; letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #c4cfc1; border-radius: 10px; background: #e8eee3; font-size: 17px; font-weight: 450; color: #4d584b; letter-spacing: 0; }
.nav-caption { margin: 52px 13px 16px; font-size: 12px; color: #60675d; line-height: 1.5; letter-spacing: .6px; }
.main-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 49px; padding: 13px 15px; border-radius: 10px; font-size: 14px; font-weight: 450; text-align: left; line-height: 1.5; white-space: nowrap; background: transparent; color: #4d584b; transition: background-color .18s, color .18s; }
.nav-index { display: inline-flex; align-items: center; justify-content: center; width: 20px; min-width: 20px; font-size: 12px; font-variant-numeric: tabular-nums; color: #60675d; font-weight: 400; }
.nav-index svg { width: 18px; height: 18px; flex-shrink: 0; }
.brand-mark svg { width: 20px; height: 20px; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.65; color: #60675d; }
.nav-item:hover { color: var(--ink); background: #e7eae1; }
.nav-item.active { color: #242724; background: #e0e6d8; font-weight: 600; }
.nav-item.active svg, .nav-item.active .nav-index { color: #4d584b; }
.nav-bottom { margin-top: auto; padding: 34px 13px 0; color: #4d584b; font-size: 12px; line-height: 1.8; }
.local-indicator { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #819577; margin-right: 8px; vertical-align: 2px; }
.nav-bottom p { margin-top: 11px; color: #60675d; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.nav-bottom .text-button { color: #4d584b; margin-top: 14px; }
#main-content { width: 100%; max-width: 1392px; min-width: 0; margin: 0 auto; padding: 29px 52px 35px; }
.workspace-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #60675d; font-size: 12px; line-height: 1.7; white-space: nowrap; }
.breadcrumb>span { margin: 0 12px; color: #70756c; }
.workspace-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.customer-picker { display: flex; align-items: center; gap: 10px; min-width: 0; }
.customer-picker>span { font-size: 12px; color: #60675d; white-space: nowrap; }
.customer-picker select { width: 184px; max-width: 100%; height: 38px; padding: 0 15px 0 0; border: 0; background: transparent; color: #242724; font-size: 13px; text-overflow: ellipsis; cursor: pointer; }
.customer-picker select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.square-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d9ded1; border-radius: 8px; background: var(--paper); color: #4d584b; flex-shrink: 0; }
.square-button:hover { background: #e9eee2; }
.account-label { color: #4d584b; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.workspace-controls .mobile-logout { display: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 48px 0 27px; }
.page-kicker { margin-bottom: 13px; color: #60675d; font-size: 12px; line-height: 1.6; letter-spacing: .7px; }
h1 { font-size: clamp(34px,3.1vw,44px); font-weight: 600; letter-spacing: -1.6px; line-height: 1.28; color: #242724; }
.page-heading>div>p:last-child { max-width: 590px; margin-top: 17px; font-size: 14px; line-height: 1.85; color: #4d584b; }
.heading-back { flex-shrink: 0; margin-bottom: 1px; }
.current-customer { display: flex; align-items: baseline; gap: 11px; margin-bottom: 31px; color: #60675d; font-size: 12px; line-height: 1.8; }
.current-customer>span { flex-shrink: 0; }
.current-customer>strong { min-width: 0; font-weight: 500; color: #4d584b; overflow-wrap: anywhere; }

/* Shared controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 12px 20px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 550; line-height: 1.45; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s, transform .18s; }
.button.primary { background: var(--accent); color: #fffefa; }
.button.primary:hover { background: #92452f; }
.button.secondary, .button.outline { background: var(--paper); border-color: #d8ddd0; color: #4d584b; }
.button.secondary:hover, .button.outline:hover { background: #edf0e7; border-color: #bdc9b4; }
.button:not(:disabled):active { transform: translateY(1px); }
.text-button { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; margin-top: 4px; padding: 6px 0; color: #4d584b; background: transparent; font-size: 12px; font-weight: 550; line-height: 1.5; }
.text-button:hover { color: #242724; text-decoration: underline; text-underline-offset: 4px; }
.start-button { padding-inline: 22px; gap: 17px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.section-head h2 { color: #242724; font-size: 23px; font-weight: 550; letter-spacing: -.6px; line-height: 1.5; }
.section-kicker, .aside-label { color: #60675d; font-size: 12px; line-height: 1.7; letter-spacing: .5px; }
.section-kicker { margin-bottom: 7px; }
.subtle-label { flex-shrink: 0; color: #60675d; font-size: 12px; line-height: 1.6; }
.workflow-layout, .editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: start; gap: 26px; }
.workflow-main { display: grid; gap: 25px; min-width: 0; }
.workflow-steps, .form-panel, .setup-preview, .profile-preview, .voice-side, .ledger { min-width: 0; background: var(--paper); border: 1px solid #e1e5d9; border-radius: 16px; }
.workflow-steps, .form-panel { padding: 31px 32px; }

/* The configuration path is a list, not a collection of unrelated tiles. */
.setup-list { padding: 0; margin: 17px 0 0; list-style: none; }
.setup-step { display: flex; gap: 20px; padding: 25px 0; border-top: 1px solid #e7eadf; }
.setup-step:first-child { border-top: 0; }
.setup-step:last-child { padding-bottom: 3px; }
.step-number { display: grid; place-items: start center; flex: 0 0 29px; padding-top: 4px; color: #60675d; font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.is-saved .step-number { color: #4d584b; }
.step-copy { min-width: 0; width: 100%; }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.step-title h3 { color: #242724; font-size: 15px; font-weight: 600; line-height: 1.7; }
.step-status { flex-shrink: 0; color: #60675d; border: 1px solid #e0e6d6; background: #f2f4ec; border-radius: 5px; padding: 3px 7px; font-size: 12px; line-height: 1.5; font-weight: 400; white-space: nowrap; }
.step-status.saved { color: #4d584b; border-color: #d3dec8; background: #edf2e5; }
.step-copy>p { max-width: 520px; margin-top: 8px; font-size: 13px; line-height: 1.85; color: #60675d; }
.step-copy .text-button { margin-top: 9px; }
.workflow-boundary { margin-top: 19px; padding-top: 18px; border-top: 1px solid #e6eadd; font-size: 12px; line-height: 1.85; color: #60675d; }
.setup-preview { position: sticky; top: 27px; padding: 29px 25px; background: #e9eee4; border-color: #d8e1ce; }
.setup-preview .aside-label { margin-bottom: 26px; color: #60675d; }
.identity-tile { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 22px; border: 1px solid #d7e0cd; border-radius: 17px; background: #fafbf6; color: #60675d; font-size: 28px; font-weight: 400; }
.setup-preview h2 { font-size: 27px; font-weight: 550; line-height: 1.5; color: #242724; letter-spacing: -.7px; overflow-wrap: anywhere; }
.configuration-state { display: block; margin-top: 6px; font-size: 12px; line-height: 1.7; color: #60675d; }
.preview-traits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.preview-traits>span { padding: 5px 8px; border: 1px solid #d7dfcf; border-radius: 5px; background: #f8faf3; color: #4d584b; font-size: 12px; line-height: 1.45; }
.setup-facts { border-top: 1px solid #d4dfc9; padding-top: 8px; margin-top: 25px; }
.setup-facts>div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 17px; font-size: 12px; line-height: 1.8; }
.setup-facts dt { color: #60675d; }
.setup-facts dd { color: #4d584b; text-align: right; overflow-wrap: anywhere; }
.preview-caption { margin-top: 25px; color: #60675d; font-size: 12px; line-height: 1.9; }
.setup-preview>.text-button { margin-top: 17px; color: #4d584b; }
.setup-preferences>h2, .plan-panel>h2 { color: #242724; font-size: 23px; line-height: 1.5; font-weight: 550; letter-spacing: -.6px; }
.setup-preferences .field-help { margin-top: 0; }
.readiness-list { list-style: none; padding: 0; margin: 24px 0; }
.readiness-list li { display: flex; gap: 12px; padding: 12px 0; }
.check-dot { flex: 0 0 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #bec8b2; }
.check-dot.ready { background: #617e4e; }
.readiness-list strong { font-size: 13px; line-height: 1.6; font-weight: 550; color: #4d584b; }
.readiness-list p { margin-top: 5px; color: #60675d; font-size: 12px; line-height: 1.85; }
.plan-receipt { padding: 19px 20px; margin-bottom: 20px; border: 1px solid #e0e7d5; border-radius: 10px; background: #f1f4e9; overflow-wrap: anywhere; }
.plan-receipt strong { font-size: 14px; line-height: 1.6; font-weight: 550; color: #4d584b; }
.plan-receipt p { font-size: 12px; line-height: 1.85; color: #60675d; margin-top: 5px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 3px; }

/* Balance: one clear primary surface and a quiet ledger. */
.balance-overview { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 46px; align-items: center; padding: 36px 39px; border: 1px solid #26362b; border-radius: 17px; background: #26362b; color: #fffef7; }
.balance-label { font-size: 14px; font-weight: 450; line-height: 1.7; color: #e0e6da; }
.balance-label>span { margin-left: 9px; color: #b9c8ae; font-size: 12px; font-weight: 400; }
.balance-number { color: #fffdf4; font-family: "Segoe UI Variable Display", "Segoe UI", sans-serif; font-size: clamp(58px,5.6vw,81px); font-weight: 450; letter-spacing: -3.5px; line-height: 1.15; font-variant-numeric: tabular-nums; margin: 16px 0 28px; overflow-wrap: anywhere; }
.balance-number>span { font-size: .39em; font-weight: 400; margin-right: 9px; letter-spacing: 0; }
.balance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.balance-actions .button.primary { background: #f5f4e8; color: #242724; }
.balance-actions .button.primary:hover { background: #fffef5; }
.balance-actions .button.secondary { border-color: #6c8062; background: transparent; color: #ecf1e4; }
.balance-actions .button.secondary:hover { background: #3c5036; }
.balance-totals { display: grid; gap: 27px; border-left: 1px solid #5b7151; padding-left: 39px; }
.balance-totals dt { color: #beccaf; font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.balance-totals dd { color: #f4f7eb; font-size: 30px; font-weight: 400; line-height: 1.3; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.balance-totals dd>span { font-size: 15px; margin-right: 5px; }
.customer-balance-note { max-width: 400px; color: #c6d2ba; font-size: 13px; line-height: 1.9; margin-top: 22px; }
.ledger { padding: 29px 32px 24px; margin-top: 25px; }
.ledger .section-head { margin-bottom: 25px; }
.ledger .section-head h2 { font-size: 21px; }
.record-count { color: #60675d; font-size: 12px; line-height: 1.6; white-space: nowrap; }
.table-scroll { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { padding: 0 13px 14px; border-bottom: 1px solid #e4e9d9; color: #60675d; font-size: 12px; font-weight: 450; line-height: 1.6; white-space: nowrap; }
td { padding: 22px 13px; border-bottom: 1px solid #e9edde; color: #4d584b; font-size: 14px; line-height: 1.6; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.date-column { font-size: 12px; color: #60675d; white-space: nowrap; }
.table-balance { color: #60675d; }
.amount { font-weight: 550; }
.positive { color: #4d584b; }
.entry-type { display: flex; align-items: center; gap: 12px; min-width: 0; }
.entry-type>div { min-width: 0; }
.entry-icon { display: grid; place-items: center; flex: 0 0 31px; height: 31px; background: #eef1e6; border-radius: 8px; color: #60675d; font-size: 19px; font-weight: 350; }
.entry-icon.incoming { color: #4d584b; background: #eaf0e0; }
.entry-type strong { display: block; color: #4d584b; font-size: 14px; font-weight: 550; line-height: 1.5; }
.entry-type small { display: block; max-width: 340px; margin-top: 6px; color: #60675d; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.entry-type .mobile-date, .mobile-balance { display: none; }
.ledger-note { margin-top: 18px; color: #60675d; font-size: 12px; line-height: 1.85; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; padding: 30px 20px; text-align: center; color: #60675d; }
.empty-state h3 { margin-top: 18px; color: #4d584b; font-size: 16px; line-height: 1.6; font-weight: 500; }
.empty-state p { margin-top: 8px; color: #60675d; font-size: 13px; line-height: 1.8; }

/* Editors */
.form-section+.form-section { margin-top: 32px; padding-top: 30px; border-top: 1px solid #e6eadc; }
.form-section>h2 { margin-bottom: 25px; color: #242724; font-size: 22px; font-weight: 550; line-height: 1.5; letter-spacing: -.5px; }
.field { display: block; min-width: 0; margin: 24px 0; }
.field:last-child { margin-bottom: 0; }
.field>span, .trait-field legend { display: block; margin-bottom: 10px; color: #4d584b; font-size: 13px; line-height: 1.6; font-weight: 500; }
.field small, .trait-field small { color: #60675d; font-size: 12px; font-weight: 400; margin-left: 7px; }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid #d8e0cd; border-radius: 8px; background: #fffefa; color: #242724; font-size: 14px; line-height: 1.6; transition: border-color .16s, outline-color .16s; }
.field input::placeholder, .field textarea::placeholder { color: #60675d; font-size: 13px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid #dfe8d6; outline-offset: 0; border-color: #859b70; }
.field textarea { resize: vertical; min-height: 145px; }
.field-row, .setup-preferences .field-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.field-row .field { margin-block: 0; }
.setup-preferences .field-row { margin: 24px 0; }
.setup-preferences .field-help { margin-top: -8px; }
.setup-preferences input[type=time] { width: 100%; }
.field-help { margin: 13px 0 23px; color: #60675d; font-size: 12px; line-height: 1.9; }
.trait-field { min-width: 0; border: 0; margin: 27px 0 0; padding: 0; }
.trait-options { display: flex; flex-wrap: wrap; gap: 8px; }
.trait { display: inline-flex; align-items: center; gap: 6px; min-height: 39px; padding: 9px 12px; border: 1px solid #d6e0c9; border-radius: 7px; background: #fffefa; color: #60675d; font-size: 12px; line-height: 1.5; }
.trait svg { width: 13px; height: 13px; }
.trait:hover { background: #f0f4e8; }
.trait.selected { border-color: #a0b58c; background: #edf3e3; color: #4d584b; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 31px; padding-top: 25px; border-top: 1px solid #e6ecdc; }
.save-hint { color: #60675d; font-size: 12px; line-height: 1.85; }
.profile-preview, .voice-side { position: sticky; top: 27px; padding: 29px 25px; }
.profile-preview .aside-label { margin-bottom: 27px; }
.profile-preview h2 { color: #242724; font-size: 29px; line-height: 1.4; font-weight: 550; letter-spacing: -.6px; overflow-wrap: anywhere; }
.profile-preview dl { border-top: 1px solid #e0e8d5; margin-top: 25px; padding-top: 8px; }
.profile-preview dl>div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 17px; font-size: 12px; line-height: 1.8; }
.profile-preview dt { color: #60675d; }
.profile-preview dd { color: #4d584b; text-align: right; }
.profile-backstory { border-top: 1px solid #e1e9d6; margin-top: 25px; padding-top: 23px; color: #60675d; font-size: 13px; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-section { border-bottom: 1px solid #e4ebd8; margin-bottom: 31px; padding-bottom: 31px; }
.template-section>h2 { color: #242724; font-size: 24px; font-weight: 550; line-height: 1.5; letter-spacing: -.55px; margin-top: 6px; }
.template-selects { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 15px; }
.template-selects select { width: 100%; text-overflow: ellipsis; }
.template-preview { padding: 21px; background: #f4f6ed; border: 1px solid #e1e9d5; border-radius: 10px; }
.template-preview>p { margin-top: 14px; color: #60675d; font-size: 13px; line-height: 1.95; }
.template-traits { display: flex; flex-wrap: wrap; gap: 6px; }
.template-traits>span { border: 1px solid #d5e2c7; background: #fffef8; color: #4d584b; padding: 5px 8px; border-radius: 5px; font-size: 12px; line-height: 1.5; }
.template-full { margin-top: 17px; color: #60675d; font-size: 12px; line-height: 1.9; }
.template-full summary, .template-sources summary { cursor: pointer; width: fit-content; }
.template-full p { margin-top: 12px; }
.template-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.template-actions button:disabled { cursor: default; }
.template-sources { color: #60675d; font-size: 12px; line-height: 1.9; }
.template-sources p { margin-top: 10px; }
.template-sources a { color: #4d584b; text-decoration: underline; text-underline-offset: 3px; }

/* Voice reference */
.upload-zone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 240px; padding: 30px 22px; border: 1px dashed #bfcfae; border-radius: 12px; background: #f3f6ec; text-align: center; cursor: pointer; }
.upload-zone.dragging { border-color: #738f5d; background: #eaf1de; }
.upload-zone:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-symbol { color: #60675d; margin-bottom: 17px; }
.upload-zone strong { max-width: 100%; color: #4d584b; font-size: 14px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
.upload-zone>span:not(.upload-symbol):not(.upload-button) { color: #60675d; font-size: 12px; line-height: 1.8; margin-top: 8px; }
.upload-button { margin-top: 19px; color: #4d584b; font-size: 13px; line-height: 1.6; }
.local-audio { margin: 25px 0; }
.local-audio>span { display: block; color: #60675d; font-size: 12px; line-height: 1.8; margin-bottom: 11px; }
audio { display: block; width: 100%; max-width: 100%; height: 38px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; color: #60675d; font-size: 12px; line-height: 1.9; margin-top: 25px; }
.checkbox>input { flex: 0 0 17px; width: 17px; height: 17px; margin: 3px 0 0; accent-color: #6c8d52; }
.saved-voice>h2 { color: #4d584b; font-size: 22px; font-weight: 550; line-height: 1.5; letter-spacing: -.5px; margin-bottom: 22px; }
.status-pill { display: inline-flex; gap: 6px; align-items: center; color: #60675d; font-size: 12px; line-height: 1.7; }
.voice-filename { margin: 19px 0 14px; color: #4d584b; font-size: 14px; line-height: 1.8; font-weight: 500; overflow-wrap: anywhere; }
.tiny { color: #60675d; font-size: 12px; line-height: 1.8; margin-top: 11px; }
.pending-note { border-top: 1px solid #dfe9d2; padding-top: 21px; margin-top: 24px; color: #60675d; font-size: 12px; line-height: 1.9; }
.pending-note strong { display: block; font-weight: 550; margin-bottom: 4px; }
.pending-note span { color: #60675d; }
.voice-empty { padding: 15px 0 9px; color: #70756c; }
.voice-empty>p { margin: 18px 0 7px; color: #60675d; font-size: 14px; line-height: 1.7; }
.voice-empty>span { color: #60675d; font-size: 12px; line-height: 1.8; }
.recording-tips { border-top: 1px solid #dfe9d1; padding-top: 23px; margin-top: 26px; }
.recording-tips h3 { color: #60675d; font-size: 13px; line-height: 1.7; font-weight: 550; margin-bottom: 12px; }
.recording-tips p { color: #60675d; font-size: 12px; line-height: 1.9; margin-top: 9px; }
.saved-transcript { font-size: 12px; line-height: 1.9; margin-top: 17px; }
.saved-transcript summary { color: #60675d; cursor: pointer; }
.saved-transcript p { white-space: pre-wrap; overflow-wrap: anywhere; color: #60675d; margin-top: 9px; }

/* Dialogs, recovery states and utility surfaces */
.page-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); margin-top: 39px; padding-top: 22px; color: #60675d; font-size: 12px; line-height: 1.8; }
.page-footer>span:first-child { color: #4d584b; font-weight: 500; }
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 23px; min-height: 100vh; padding: 30px; background: #f7f8f1; text-align: center; }
.boot-brand { color: #4d584b; font-size: 26px; letter-spacing: -.7px; font-weight: 600; }
.boot h1 { color: #4d584b; font-size: 29px; letter-spacing: -.6px; }
.boot>p { max-width: 520px; color: #60675d; font-size: 14px; line-height: 1.9; }
dialog { width: min(490px,calc(100% - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid #dfe8d3; border-radius: 18px; padding: 37px; color: #4d584b; background: #fffef8; box-shadow: 0 24px 90px #24321d24; }
dialog::backdrop { background: #20301863; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #eef4e3; color: #60675d; font-size: 23px; line-height: 1; }
dialog h2 { color: #4d584b; font-size: 27px; font-weight: 550; letter-spacing: -.7px; line-height: 1.5; margin: 0 0 13px; }
dialog p, .muted { color: #60675d; font-size: 13px; line-height: 1.9; }
dialog .form-bottom { justify-content: flex-end; }
.transaction-actions { flex-wrap: wrap; gap: 9px; }
.transaction-notice { margin: 17px 0; padding: 13px 15px; border-radius: 9px; border: 1px solid #e2e8d7; background: #f1f4e8; color: #60675d; font-size: 12px; line-height: 1.9; }
.transaction-review-status { color: #60675d; overflow-wrap: anywhere; }
input[readonly] { color: #60675d; background: #f1f5e7; }
#toast { position: fixed; left: 50%; bottom: 25px; z-index: 30; max-width: min(600px,calc(100% - 32px)); width: max-content; padding: 14px 20px; border-radius: 10px; background: #2a4520; color: #f6fbe9; font-size: 13px; line-height: 1.8; box-shadow: 0 8px 25px #20301922; opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: opacity .18s, transform .18s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
#toast.error { background: #924b36; color: #fffaf5; }

/* The workstation stays compact on smaller laptops and moves to a top rail on phones. */
@media(min-width:1600px) {
  #main-content { padding-inline: 68px; }
  .workflow-layout, .editor-layout { grid-template-columns: minmax(0,1fr) 312px; gap: 30px; }
}
@media(max-width:1180px) {
  .workspace { grid-template-columns: 204px minmax(0,1fr); }
  .global-header-inner { padding-inline: 15px; }
  .brand { font-size: 21px; padding-inline: 9px; }
  #main-content { padding-inline: 32px; }
  .workflow-layout, .editor-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
  .workflow-steps, .form-panel { padding: 27px; }
  .setup-preview, .profile-preview, .voice-side { padding: 26px 22px; }
  .balance-overview { grid-template-columns: minmax(0,1fr) 195px; gap: 30px; padding: 32px; }
  .balance-totals { padding-left: 28px; }
}
@media(max-width:980px) {
  .workflow-layout, .editor-layout { grid-template-columns: minmax(0,1fr); }
  .setup-preview, .profile-preview, .voice-side { position: static; }
  .setup-preview { display: grid; grid-template-columns: 78px minmax(0,1fr); column-gap: 22px; }
  .setup-preview .aside-label { grid-column: 1/-1; margin-bottom: 22px; }
  .identity-tile { grid-row: 2/5; margin: 0; }
  .setup-preview .preview-traits { margin-top: 12px; }
  .setup-facts { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .setup-preview .preview-caption, .setup-preview>.text-button { grid-column: 1/-1; }
  .voice-side { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .recording-tips { border-top: 0; border-left: 1px solid #dfe9d1; padding: 0 0 0 25px; margin: 0; }
  .balance-overview { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .balance-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-left: 0; border-top: 1px solid #5b7151; padding: 25px 0 0; }
  .balance-number { font-size: 69px; }
  .page-heading { align-items: flex-start; }
  .page-heading .start-button { margin-top: 27px; }
}
@media(max-width:720px) {
  .workspace { display: block; }
  .global-header { position: sticky; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid #dce4d3; background: rgba(246,248,239,.96); backdrop-filter: blur(16px); }
  .global-header-inner { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 22px 0; }
  .brand { min-height: 32px; padding: 0; font-size: 20px; gap: 9px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 15px; }
  .nav-caption, .nav-bottom { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); flex-basis: 100%; gap: 4px; margin-top: 13px; }
  .nav-item { flex-direction: column; justify-content: center; gap: 5px; min-height: 60px; padding: 9px 3px 11px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 12px; line-height: 1.4; text-align: center; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item.active { background: transparent; border-bottom-color: #7e9a64; }
  .nav-item:hover { background: #eaf0df; }
  .nav-index { display: inline-flex; height: 18px; }
  #main-content { padding: 20px 21px 27px; }
  .workspace-bar { gap: 12px; flex-wrap: wrap; min-height: 38px; padding-bottom: 17px; }
  .breadcrumb { font-size: 12px; }
  .breadcrumb>span { margin-inline: 8px; }
  .workspace-controls { gap: 8px; }
  .customer-picker { gap: 8px; }
  .customer-picker>span { font-size: 12px; }
  .customer-picker select { width: 146px; height: 33px; font-size: 12px; }
  .square-button { width: 31px; height: 31px; }
  .account-label { max-width: 180px; font-size: 12px; }
  .workspace-controls .mobile-logout { display: inline-flex; min-height: 34px; margin: 0; }
  .page-heading { display: block; margin: 31px 0 22px; }
  h1 { font-size: 33px; letter-spacing: -1px; }
  .page-kicker { margin-bottom: 10px; }
  .page-heading>div>p:last-child { font-size: 13px; line-height: 1.85; margin-top: 13px; }
  .page-heading .start-button { margin-top: 22px; }
  .heading-back { margin-top: 10px; }
  .current-customer { margin-bottom: 25px; gap: 9px; }
  .workflow-main { gap: 20px; }
  .workflow-layout, .editor-layout { gap: 20px; }
  .workflow-steps, .form-panel { padding: 25px 23px; border-radius: 13px; }
  .section-head { gap: 12px; align-items: flex-start; }
  .section-head h2, .setup-preferences>h2, .plan-panel>h2 { font-size: 21px; }
  .subtle-label { font-size: 12px; }
  .setup-step { gap: 12px; padding: 24px 0; }
  .step-number { flex-basis: 22px; font-size: 13px; }
  .step-title { align-items: flex-start; flex-wrap: wrap; gap: 5px 10px; }
  .step-title h3 { font-size: 14px; }
  .step-status { padding: 2px 6px; }
  .step-copy>p { font-size: 12px; line-height: 1.9; }
  .setup-preview, .profile-preview, .voice-side { padding: 25px 23px; border-radius: 13px; }
  .setup-facts { grid-template-columns: 1fr; }
  .setup-preview .preview-traits { grid-column: 2; }
  .setup-preview h2, .profile-preview h2 { font-size: 26px; }
  .balance-overview { padding: 29px 27px; border-radius: 14px; gap: 27px; }
  .balance-number { font-size: 64px; margin-top: 15px; letter-spacing: -2.8px; }
  .balance-totals dd { font-size: 27px; }
  .ledger { padding: 25px 23px 23px; border-radius: 13px; margin-top: 20px; }
  .ledger .section-head { margin-bottom: 14px; }
  .ledger .section-head h2 { font-size: 20px; }
  thead, .date-column, .table-balance { display: none; }
  td { padding: 20px 6px; font-size: 13px; }
  .entry-type { align-items: flex-start; gap: 9px; }
  .entry-icon { flex-basis: 25px; height: 25px; font-size: 16px; border-radius: 6px; margin-top: 2px; }
  .entry-type strong { font-size: 13px; }
  .entry-type small { max-width: 160px; font-size: 12px; }
  .entry-type .mobile-date { display: block; font-size: 12px; }
  .mobile-balance { display: block; font-size: 12px; font-weight: 400; color: #60675d; line-height: 1.7; margin-top: 5px; }
  .field-row, .setup-preferences .field-row, .template-selects { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .setup-preferences .field-row { gap: 20px; }
  .template-selects { gap: 0; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 49px; padding: 12px; }
  .template-section>h2 { font-size: 22px; }
  .template-preview { padding: 18px; }
  .form-section>h2 { font-size: 21px; }
  .trait { min-height: 42px; padding: 9px 11px; }
  .form-bottom { gap: 12px; margin-top: 28px; padding-top: 22px; }
  .save-hint { max-width: 48%; }
  .form-bottom .button { padding-inline: 15px; }
  .voice-side { display: block; }
  .recording-tips { border-left: 0; border-top: 1px solid #dfe9d1; padding: 22px 0 0; margin-top: 25px; }
  .upload-zone { min-height: 228px; padding: 27px 18px; }
  .page-footer { margin-top: 30px; padding-top: 20px; font-size: 12px; }
  .page-footer>span:last-child { text-align: right; }
  dialog { padding: 33px 25px 27px; border-radius: 15px; }
  dialog h2 { font-size: 25px; }
}
@media(max-width:360px) {
  #main-content { padding-inline: 16px; }
  .global-header-inner { padding-inline: 17px; }
  .workspace-bar { align-items: flex-start; }
  .workspace-controls { margin-left: auto; }
  .customer-picker select { width: 132px; }
  .account-label { max-width: 156px; }
  h1 { font-size: 30px; }
  .workflow-steps, .form-panel, .ledger { padding-inline: 20px; }
  .balance-overview { padding-inline: 24px; }
  .balance-number { font-size: 58px; }
  .form-bottom { align-items: flex-start; flex-wrap: wrap; }
  .save-hint { max-width: none; }
  .form-bottom>.button { margin-left: auto; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Shared brand mark across the public site and workspace. */
.brand-mark { border:0; border-radius:50%; background:#303f36; color:#fffefa; }
