/* Backbook app shell. Modelled on triage tools rather than CRMs: quiet chrome, hairline rows on white,
   one accent (sky) for "needs you", green for done. Type scale 12 / 13 / 15 / 20 / 30, spacing 4–8–12–16–24–32–48. */
:root {
  --page: #ffffff; --side: #f7f8fa; --line: #eceef2; --line-2: #e2e5ea;
  --ink: #0e1726; --ink-2: #3a4352; --muted: #6b7280; --faint: #9aa1ad;
  --accent: #1a73c8; --mark: #c4e3ff; --wash: #f2f8ff; --ok: #147a3d;
  --sans: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Host Grotesk", "Helvetica Neue", Arial, sans-serif; /* figures use tabular numbers instead of a monospace face */
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #0c0f15; --side: #10141c; --line: #1c222d; --line-2: #262d3a;
  --ink: #e8edf5; --ink-2: #c3cad6; --muted: #8e97a6; --faint: #6b7586;
  --accent: #86c3ff; --mark: #1d4a70; --wash: #111c2b; --ok: #5ccf98; } }
:root[data-theme="dark"] {
  --page: #0c0f15; --side: #10141c; --line: #1c222d; --line-2: #262d3a;
  --ink: #e8edf5; --ink-2: #c3cad6; --muted: #8e97a6; --faint: #6b7586;
  --accent: #86c3ff; --mark: #1d4a70; --wash: #111c2b; --ok: #5ccf98; }

body { background: var(--page); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 20px 12px 16px; background: var(--side); border-right: 1px solid var(--line); }
.side .wordmark { padding: 4px 10px; font-size: 17px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; border-radius: 6px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { background: var(--line); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--page); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--line-2); }
.nav-n { font: 400 12px/1 var(--mono); color: var(--muted); }
.side-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.side-foot p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.demo-badge { justify-self: start; }

/* Page */
.page { max-width: 1040px; width: 100%; margin: 0; padding: 40px 48px 96px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.ph h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.ph-date { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.ph-right { display: flex; align-items: center; gap: 16px; }
.ph-meta { font-size: 13px; color: var(--muted); }
.hint-line { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 2px; border-radius: 4px; border: 1px solid currentColor; font: 500 11px/1 var(--mono); opacity: .6; }
.btn kbd { border-color: rgba(255,255,255,.4); opacity: .8; }
.btn-quiet kbd { border-color: var(--line-2); }
.btn { border-radius: 7px; font-size: 14px; padding: 0 14px; min-height: 36px; gap: 8px; }
.btn-quiet { background: var(--page); border-color: var(--line-2); color: var(--ink); }
.btn-quiet:hover { border-color: var(--ink-2); background: var(--page); color: var(--ink); }

/* Sections + rows */
.sec { margin-top: 28px; }
.sec-h { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.sec-h span { font: 400 12px/1 var(--mono); color: var(--faint); }
.list { list-style: none; margin: 0; padding: 0; }
.item { border-radius: 8px; }
.item > button, .later-row { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 8.5rem 6.5rem 4.5rem; align-items: center; gap: 16px; padding: 11px 12px; background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer; font-size: 15px; color: var(--ink); }
.later-row { cursor: default; }
.item > button:hover, .item.sel > button { background: var(--side); }
.item.sel > button { box-shadow: inset 0 0 0 1px var(--line-2); }
.item.hot > button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--accent); }
.i-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-why { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-tag .tag { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.i-lender { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-when { justify-self: end; font: 400 13px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.item.hot .i-when { color: var(--ink); }
.i-when.ok { color: var(--ok); }
.collapsed { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 11px 12px; border: 1px dashed var(--line-2); border-radius: 8px; background: none; font-size: 15px; text-align: left; cursor: pointer; color: var(--ink); }
.collapsed:hover { background: var(--side); }
.collapsed .muted { font-size: 13px; }
.page-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.page-foot a { color: var(--ink); }
.keys { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.keys kbd { margin: 0 2px 0 6px; }
.blank { padding: 48px 12px; display: grid; gap: 10px; max-width: 520px; }
.blank h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.blank p { color: var(--muted); }
.blank.done h2 { font-size: 30px; }

/* Review */
.rvh { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; margin-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.rvh .link { padding: 4px 0; font-size: 13px; }
.rvh-n { margin-left: auto; font-family: var(--mono); font-size: 12px; }
.rvh .link, .rvh-n { white-space: nowrap; flex: none; }
.segs { display: flex; gap: 3px; min-width: 0; overflow: hidden; }
.rvbar { flex: 0 1 200px; min-width: 60px; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.rvbar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); transition: width .3s ease; }
.segs i { width: 18px; height: 4px; border-radius: 2px; background: var(--line-2); }
.segs i.done { background: var(--ok); }
.segs i.now { background: var(--accent); }
.rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 1000px) { .rv { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 48px; } }
.rv-client, .rv-compose { background: none; border: 0; padding: 0; }
.rv-client { display: grid; gap: 24px; }
.rv-who h1 { font-size: 30px; font-weight: 600; }
.chip { font-size: 13px; padding: 4px 10px; background: var(--side); border-color: var(--line-2); }
.chip.hot { background: var(--mark); }
.rv-client .facts { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.rv-client .facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rv-client .facts dt { font-size: 13px; }
.rv-client .facts dd, .rv-client .facts dd.mono { font-size: 14px; text-align: right; }
.talk { border-top: 0; padding-top: 0; }
.talk h2 { font-size: 13px; }
.talk li { border-radius: 8px; padding: 10px 12px; border-color: var(--line-2); }
.talk li.on { border-color: var(--accent); background: var(--wash); }
.talk li p { font-size: 14px; }
.talk .talk-from { font-size: 12px; font-style: italic; }
.memo textarea { border-radius: 8px; border-color: var(--line-2); font-size: 14px; }
.rv-compose { display: grid; gap: 14px; }
.compose-head { padding-bottom: 4px; }
.rv-compose .message { min-height: 200px; border-radius: 10px; border: 1px solid var(--line-2); padding: 18px; font-size: 16px; line-height: 1.65; box-shadow: 0 1px 2px rgba(14,23,38,.04); }
.rv-compose .meta { font-size: 12px; }
.rv-actions { border-top: 0; padding-top: 4px; gap: 8px; }
.slide-in { animation: none; } /* review mode steps through dozens of people: each one appears instantly */
@keyframes slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide-in { animation: none; } }
.finish { display: grid; gap: 14px; max-width: 640px; padding-top: 24px; }
.finish h1 { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; }
.finish-sum { color: var(--muted); }
.finish .list { margin-top: 8px; border-top: 1px solid var(--line); }
.finish .later-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 0 0 2rem; }
.finish-next { font-size: 13px; }

/* Other views inherit the calmer page */
.page-head h1 { font-size: 30px; font-weight: 600; }
.card { border-radius: 10px; }

/* Phone */
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .side .wordmark { padding: 0; flex: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 6px 8px; white-space: nowrap; }
  .side-foot { display: none; }
  .page { padding: 24px 16px 80px; }
  .item > button, .later-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 12px; }
  .i-name { grid-column: 1; grid-row: 1; }
  .i-why { grid-column: 1; grid-row: 2; font-size: 13px; white-space: normal; }
  .i-tag { grid-column: 2; grid-row: 2; justify-self: end; }
  .i-lender { display: none; }
  .i-when { grid-column: 2; grid-row: 1; }
  .ph-right { width: 100%; justify-content: space-between; }
  .keys, .page-foot .keys, .rvh .keys { display: none; }
  .segs i { width: 10px; }
  .rv-actions kbd { display: none; }
}

/* Calls to action: deep green */
:root { --cta: #0b4f2a; --cta-hover: #083b1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cta: #1f7a47; --cta-hover: #26905a; } }
:root[data-theme="dark"] { --cta: #1f7a47; --cta-hover: #26905a; }
.btn:not(.btn-quiet):not(.btn-danger) { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn:not(.btn-quiet):not(.btn-danger):hover { background: var(--cta-hover); border-color: var(--cta-hover); color: #fff; }
.btn-done { background: var(--cta); border-color: var(--cta); }
.segs i.done { background: var(--cta); }
.item.hot > button::before { background: var(--cta); }
.talk li.on { border-color: var(--cta); }
@media (max-width: 860px) { .side { overflow: hidden; } .nav { overflow-x: auto; min-width: 0; scrollbar-width: none; } .nav::-webkit-scrollbar { display: none; } }

/* ===== Remaining views on the same system ===== */
.ph-count { font: 400 14px/1 var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.search { width: 16rem; max-width: 100%; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 14px; background: var(--page); }
.cols-head { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 8.5rem 11rem 5.5rem; gap: 16px; padding: 18px 12px 6px; font-size: 12px; color: var(--faint); }
.cols-head span:last-child { text-align: right; }
.crow { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 8.5rem 11rem 5.5rem !important; }
@media (max-width: 860px) { .cols-head { display: none; } .crow { grid-template-columns: minmax(0, 1fr) auto !important; } }

/* Import + mapping */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.035em; }

.drop { border: 1px dashed var(--line-2); border-radius: 12px; padding: 40px 32px; background: var(--side); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--wash); }
.drop strong { font-size: 17px; font-weight: 500; }
.help { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.help h2 { font-size: 15px; font-weight: 500; }
.help ul { border-top: 0; }
.help li { border-bottom: 1px solid var(--line); font-size: 13px; padding: 9px 0; }
.help li:last-child { border-bottom: 0; }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; }
.mapping th, .mapping td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mapping thead th { background: var(--side); border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 12px; color: var(--muted); }
.mapping tbody tr:last-child td { border-bottom: 0; }
.mapping select { border-radius: 7px; border-color: var(--line-2); }
.check { padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.issues ul { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.issues li { border-bottom: 1px solid var(--line); }
.issues li:last-child { border-bottom: 0; }

/* Settings */
.settings { gap: 32px; max-width: 680px; margin-top: 24px; }
.settings section { padding: 24px; border: 1px solid var(--line); border-radius: 12px; gap: 16px; }
.settings h2 { font-size: 15px; font-weight: 500; padding: 0; border: 0; }
.field input, .field select, .field textarea { border-radius: 7px; border-color: var(--line-2); min-height: 38px; font-size: 15px; }
.field label { font-size: 13px; }

/* Client panel (dialog) */
.sheet { border-left: 1px solid var(--line); box-shadow: -24px 0 60px -30px rgba(14,23,38,.25); }
.sheet::backdrop { background: rgba(14,23,38,.18); }
.sheet-inner { gap: 20px; padding: 28px 28px 40px; }
.sheet-head h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.sheet .facts { border-top: 1px solid var(--line); }
.sheet .facts div { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 14px; }
.sheet .facts dd.mono { font-family: var(--sans); font-size: 14px; }
.sheet .composer { border-top: 0; padding-top: 0; }
.sheet .message { border-radius: 10px; border-color: var(--line-2); }
.close { border-radius: 7px; border-color: var(--line-2); }
.toast { border-radius: 8px; }
.later-row { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) 4rem 9rem 10rem; }
.later-row .i-when, .later-row .link { justify-self: end; white-space: nowrap; }
@media (max-width: 860px) { .later-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* Review gets the whole page */
.page.wide { max-width: none; padding: 32px 56px 64px; }
.page.wide .rv { grid-template-columns: minmax(0, 1fr); gap: 40px; min-height: calc(100vh - 150px); }
@media (min-width: 1000px) { .page.wide .rv { grid-template-columns: minmax(20rem, 5fr) minmax(0, 8fr); gap: 56px; } }
.page.wide .rv-who h1 { font-size: 40px; letter-spacing: -0.04em; }
.page.wide .chip { font-size: 14px; padding: 6px 12px; }
.page.wide .rv-client { gap: 32px; align-content: start; }
.page.wide .rv-client .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.page.wide .rv-client .facts div { padding: 12px 0; }
.page.wide .rv-client .facts dt { font-size: 13px; }
.page.wide .rv-client .facts dd, .page.wide .rv-client .facts dd.mono { font-size: 16px; }
.page.wide .talk li p { font-size: 15px; }
.page.wide .rv-compose { gap: 18px; align-content: start; }
.page.wide .rv-compose .message { min-height: 340px; font-size: 18px; line-height: 1.7; padding: 24px 26px; }
.page.wide .compose-head { font-size: 15px; }
.page.wide .rv-actions .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.page.wide .rvh { margin-bottom: 36px; }
@media (max-width: 860px) { .page.wide { padding: 20px 16px 64px; } .page.wide .rv-who h1 { font-size: 30px; } .page.wide .rv-compose .message { min-height: 260px; font-size: 16px; } .page.wide .rv-client .facts { grid-template-columns: 1fr; } }

/* Urgency colours for the bar beside a name */
:root { --u-now: #c3341f; --u-soon: #c98a0b; --u-week: #0b4f2a; --u-later: #c9ced6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --u-now: #ff7b63; --u-soon: #e9b44c; --u-week: #4fbf85; --u-later: #3a4352; } }
:root[data-theme="dark"] { --u-now: #ff7b63; --u-soon: #e9b44c; --u-week: #4fbf85; --u-later: #3a4352; }
.item[class*="u-"] > button::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; }
.item.u-now > button::before { background: var(--u-now); }
.item.u-soon > button::before { background: var(--u-soon); }
.item.u-week > button::before { background: var(--u-week); }
.item.u-later > button::before { background: var(--u-later); }
.item.u-now .i-when { color: var(--u-now); }
.item.u-soon .i-when, .item.u-week .i-when { color: var(--ink); }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-left: 8px; }
.legend i:first-child { margin-left: 0; }
.legend i.u-now { background: var(--u-now); } .legend i.u-soon { background: var(--u-soon); } .legend i.u-week { background: var(--u-week); } .legend i.u-later { background: var(--u-later); }
@media (max-width: 860px) { .legend { width: 100%; } }

/* Today: list + rate monitor */
.page:has(.today-grid) { max-width: 1360px; }
.today-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1240px) { .today-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.item > button { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) 8rem 10.5rem 4.5rem; }
.mon-col { align-self: start; position: sticky; top: 24px; }
.monitor { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 16px; background: var(--page); }
.monitor h2 { font-size: 15px; font-weight: 600; }
.monitor h3 { font-size: 13px; font-weight: 500; display: flex; gap: 8px; align-items: baseline; }
.monitor h3 span { font: 400 12px/1 var(--mono); color: var(--muted); }
.m-note { margin: -8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.m-stats { display: grid; gap: 0; border-top: 1px solid var(--line); }
.m-stats div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.m-stats span { color: var(--muted); }
.m-stats b { font: 500 13px/1 var(--mono); }

.m-bench { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.m-input { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 10px; background: var(--page); }
.m-input:focus-within { border-color: var(--accent); }
.m-input input { flex: 1; min-width: 0; border: 0; padding: 8px 0; font: 500 15px/1 var(--mono); background: transparent; color: var(--ink); box-shadow: none !important; }
.m-input i { font-style: normal; color: var(--muted); }
.m-list { list-style: none; margin: -6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.m-list li { border-bottom: 1px solid var(--line); }
.m-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; background: none; border: 0; text-align: left; cursor: pointer; font-size: 13px; color: var(--ink); }
.m-list button:hover { background: var(--side); }
.m-list span { display: grid; gap: 2px; font-weight: 500; }
.m-list em { font: 400 11px/1.2 var(--mono); color: var(--muted); font-style: normal; }
.m-list b { font: 500 12px/1 var(--mono); color: var(--cta); }
@media (max-width: 1239px) { .mon-col { position: static; } }
.item > button:not(.crow) { grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto 4.5rem; gap: 20px; padding: 12px 12px 12px 16px; }
.i-who { display: grid; gap: 3px; min-width: 0; }
.i-loan { font: 400 12px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.i-why { white-space: normal; line-height: 1.35; }
.item[class*="u-"] > button::before { top: 14px; bottom: 14px; }
.page.wide .rv-client .facts div { display: grid; gap: 4px; justify-content: stretch; }
.page.wide .rv-client .facts dd, .page.wide .rv-client .facts dd.mono { text-align: left; white-space: nowrap; }
@media (max-width: 860px) {
  .item > button:not(.crow) { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; }
  .i-who { grid-column: 1; grid-row: 1; }
  .item > button:not(.crow) .i-why { grid-column: 1 / -1; grid-row: 2; }
  .item > button:not(.crow) .i-tag { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
  .item > button:not(.crow) .i-when { grid-column: 2; grid-row: 1; }
}
/* Monitor visible at laptop widths too */
@media (min-width: 1100px) { .today-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; } .mon-col { position: sticky; } }
@media (min-width: 1100px) and (max-width: 1360px) { .page:has(.today-grid) { padding-left: 32px; padding-right: 32px; } .item > button:not(.crow) { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto 4rem; gap: 14px; } }
@media (max-width: 1099px) { .today-grid { grid-template-columns: minmax(0, 1fr); } .mon-col { order: -1; position: static; } .m-hist, .m-list, .monitor .m-note:last-child { display: none; } .m-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 0; } .m-stats div { display: grid; border: 0; padding: 0; gap: 4px; } }

.m-note:first-child { margin-top: 0; }
.mon-col .sec-h { padding: 0 20px; }
@media (max-width: 1099px) { .today-grid { gap: 0; } .monitor h3 { display: none; } }

/* Appearance switch */
.theme-sw { margin-top: auto; align-self: flex-start; display: flex; gap: 2px; padding: 2px; margin-left: 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--page); }
.theme-sw + .side-foot { margin-top: 0; }
.theme-sw button { display: grid; place-items: center; width: 28px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.theme-sw button:hover { color: var(--ink); }
.theme-sw button[aria-checked="true"] { background: var(--line); color: var(--ink); }
.theme-sw svg { width: 15px; height: 15px; }
@media (max-width: 860px) { .theme-sw { order: 3; margin: 0 0 0 auto; flex: none; align-self: center; border: 0; padding: 0; background: none; } .theme-sw button:not([aria-checked="true"]) { display: none; } .theme-sw button[aria-checked="true"] { background: none; color: var(--muted); } }
@media (max-width: 860px) { .side .wordmark { order: 0; } }

/* Ready to send */
.auto { margin-top: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--page); overflow: hidden; }
.auto-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 18px 20px; background: var(--wash); }
.auto-title h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.auto-title p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.auto-head.busy .auto-title h2 { color: var(--ink-2); }
.auto-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.auto-acts .btn { min-height: 40px; }
.auto-acts .btn:disabled { opacity: .45; cursor: default; }
.auto-q { max-width: 26rem; font-size: 13px; color: var(--ink-2); text-align: right; }
.chev { width: 14px; height: 14px; transition: transform .12s; }
.chev.up { transform: rotate(180deg); }
.auto-sign { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.auto-sign input { width: 14rem; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; color: var(--ink); background: var(--page); }
.auto-list { border-top: 1px solid var(--line); }
.auto-item { display: grid; grid-template-columns: 24px 13rem auto minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.auto-item:last-child { border-bottom: 0; }
.auto-item.off .auto-who, .auto-item.off .auto-msg { opacity: .45; }
.auto-item.sent { background: var(--side); }
.auto-check { padding-top: 2px; }
.auto-check input { width: 16px; height: 16px; accent-color: var(--cta); }
.auto-who { display: grid; gap: 3px; font-size: 14px; }
.auto-who span { font-size: 13px; color: var(--muted); }

.auto-msg { display: grid; gap: 6px; min-width: 0; }
.auto-msg textarea, .auto-subj { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: 14px/1.5 var(--sans); color: var(--ink); background: var(--page); resize: vertical; }
.auto-subj { font-weight: 500; }
.auto-msg textarea:focus, .auto-subj:focus { outline: none; border-color: var(--accent); }
.auto-msg textarea:disabled { color: var(--muted); }
.auto-foot { display: flex; justify-content: space-between; gap: 12px; font: 400 12px/1.4 var(--sans); color: var(--muted); }
.auto-foot em { font-style: normal; color: var(--ok); }
.auto-foot strong { color: var(--u-now); font-weight: 500; }
@media (max-width: 1099px) { .auto-item { grid-template-columns: 24px minmax(0, 1fr) auto; } .auto-msg { grid-column: 2 / -1; } }
@media (max-width: 640px) {
  .auto-head { grid-template-columns: 1fr; padding: 16px; }
  .auto-acts { justify-content: flex-start; }
  .auto-acts .btn { flex: 1; }
  .auto-q { text-align: left; flex-basis: 100%; }
  .auto-item { padding: 14px 16px; }
}
.btn-small { min-height: 32px; padding: 0 12px; font-size: 13px; }
.auto-foot { align-items: baseline; } .auto-foot .link { padding: 0; font-size: 12px; flex: none; }
.auto-msg textarea { overflow: hidden; }

/* Monitor: market line and estimates */
.m-cash { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.m-cash b { font: 500 15px/1 var(--mono); color: var(--ink); }
.m-cash em { font: 400 12px/1 var(--mono); font-style: normal; }
.m-cash em.up { color: var(--u-now); }
.m-cash em.down { color: var(--ok); }
.est { font-style: normal; font-size: 11px; color: var(--faint); }
.m-bench small { font-size: 12px; color: var(--faint); }
.m-bench small.stale { color: var(--u-soon); }
.m-adv { margin: -8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.m-adv b { font: 500 12px/1 var(--mono); color: var(--ink); }
.m-adv .link { padding: 0; font-size: 12px; color: var(--accent); }
.m-benches .m-adv { margin: -2px 0 4px; }
.monitor h3 + .m-list { margin-top: -6px; }
.facts .wide { grid-column: 1 / -1; }
.facts dd { overflow-wrap: anywhere; }
.m-list b { white-space: nowrap; }
.m-more { margin: -10px 0 0; font-size: 12px; color: var(--faint); }
.m-how { font-size: 12px; color: var(--muted); }
.m-how summary { cursor: pointer; list-style: none; color: var(--muted); }
.m-how summary::-webkit-details-marker { display: none; }
.m-how summary::after { content: ' +'; }
.m-how[open] summary::after { content: ' −'; }
.m-how summary:hover { color: var(--ink); }
.m-how p { margin: 8px 0 0; line-height: 1.5; }

/* Import: two choices */
.imp { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 28px; }
.imp-drop, .imp-sample { display: grid; align-content: center; justify-items: start; gap: 8px; padding: 32px; border-radius: 14px; }
.imp-drop { min-height: 260px; border: 1.5px dashed var(--line-2); background: var(--side); cursor: pointer; transition: border-color .15s, background .15s; }
.imp-drop:hover, .imp-drop.over { border-color: var(--accent); background: var(--wash); }
.imp-drop strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.imp-drop span:not(.btn):not(.imp-icon), .imp-sample span { font-size: 14px; color: var(--muted); }
.imp-drop .btn { margin-top: 12px; }
.imp-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--page); border: 1px solid var(--line-2); color: var(--ink); margin-bottom: 4px; }
.imp-icon svg { width: 20px; height: 20px; }
.imp-sample { border: 1px solid var(--line); }
.imp-sample strong { font-size: 16px; font-weight: 600; }
.imp-sample .btn { margin-top: 8px; }
.imp-foot { margin-top: 16px; font-size: 13px; color: var(--muted); }
.imp-foot .link { padding: 0; font-size: 13px; }
@media (max-width: 760px) { .imp { grid-template-columns: 1fr; } .imp-drop { min-height: 200px; padding: 24px; } .imp-sample { padding: 24px; } }

/* Sorting sequence */
.sorting { max-width: 520px; margin: 8vh auto 0; display: grid; gap: 6px; }
.sorting h1 { font-size: 30px; letter-spacing: -0.02em; }
.sort-sub { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.sort-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
.sort-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); opacity: .28; transform: translateY(4px); transition: opacity .4s ease, transform .4s ease; }
.sort-steps li.now, .sort-steps li.done { opacity: 1; transform: none; }
.sort-steps li div { display: grid; gap: 3px; }
.sort-steps strong { font-size: 15px; font-weight: 500; }
.sort-steps span { font-size: 13px; color: var(--muted); }
.sort-steps li span { opacity: 0; transition: opacity .35s ease .15s; }
.sort-steps li.done span { opacity: 1; }
.sort-steps i { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.sort-steps li.now i { border-color: var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.sort-steps li.done i { border-color: var(--cta); background: var(--cta); }
.sort-steps li.done i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.sorting .link { justify-self: start; padding: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .sort-steps li, .sort-steps li span { transition: none; } .sort-steps li.now i { animation: none; } }

/* Tables: every list sits in a bordered card, with a header band where there are columns */
.page .list, .table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--page); }
.table .list { border: 0; border-radius: 0; }
.page .list > .item { border-bottom: 1px solid var(--line); border-radius: 0; }
.page .list > .item:last-child { border-bottom: 0; }
.page .list > .item > button, .page .list .later-row { border-radius: 0; padding-top: 15px; padding-bottom: 15px; padding-left: 20px; padding-right: 16px; }
.page .list > .item.sel > button { box-shadow: none; }
.page .list > .item > button:hover, .page .list > .item.sel > button { background: var(--side); }
.page .list > .blank { border-bottom: 0; padding: 24px 20px; }
.cols-head { margin: 0; padding: 11px 16px 11px 20px; background: var(--side); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted); }
.today-main .collapsed { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 15px 20px; }
.sec-h { padding: 0 4px; }
.table-scroll { border: 1px solid var(--line); border-radius: 12px; }
.mapping th, .mapping td { padding: 13px 16px; }
.page-foot { border-top-color: var(--line); }
@media (max-width: 1099px) { .monitor .m-more, .monitor .m-how { display: none; } }
.optout-line { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.optout-line .link { padding: 0; font-size: 13px; }
.auto-ch-label { font-size: 12px; color: var(--muted); padding-top: 3px; }
.page .actions label.btn { cursor: pointer; }
.page .list .i-when.none { color: var(--faint) !important; }
@media (max-width: 860px) { .shell { grid-template-rows: auto 1fr; } }
.field .hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.trial-note { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--wash); font-size: 13px; color: var(--ink-2); }

/* Folders in the sidebar */
.nav-h { margin: 14px 10px 4px; font-size: 12px; color: var(--faint); }
.nav-h:empty { margin: 6px 0; height: 1px; background: var(--line); }
.nav a > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nav-ic { width: 15px; height: 15px; flex: none; color: var(--muted); }
.nav-new button { width: 100%; text-align: left; padding: 6px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.nav-new button:hover { background: var(--line); color: var(--ink); }
.nav-new input { width: 100%; padding: 6px 9px; border: 1px solid var(--accent); border-radius: 6px; font: inherit; font-size: 13px; background: var(--page); color: var(--ink); outline: none; }
@media (max-width: 860px) { .nav-h, .nav-new { display: none; } .nav-ic { display: none; } }

/* Folder page tabs */
.ftabs { display: flex; align-items: center; gap: 4px; margin: 20px 0 4px; border-bottom: 1px solid var(--line); }
.ftabs a:not(.ftabs-act) { padding: 9px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: var(--muted); text-decoration: none; }
.ftabs a[aria-current="page"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--ink); }
.ftabs a span { margin-left: 4px; font-size: 12px; color: var(--faint); }
.ftabs-spacer { flex: 1; }
.ftabs-act { font-size: 13px; color: var(--muted); padding: 0 6px; }
@media (max-width: 640px) { .ftabs { flex-wrap: wrap; } .ftabs-spacer { flex-basis: 100%; height: 0; } .ftabs-act { padding: 8px 6px; } }
.fchip { display: inline-block; margin-left: 8px; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 11px; font-weight: 400; color: var(--muted); vertical-align: 2px; }
.imp-into { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.imp-into select, .imp-into input { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--page); color: var(--ink); font: inherit; font-size: 14px; }

/* Home */
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.hstat { display: grid; gap: 4px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--page); transition: border-color .15s; }
.hstat:hover { border-color: var(--line-2); background: var(--side); }
.hstat b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hstat span { font-size: 14px; }
.hstat em { font-style: normal; font-size: 12px; color: var(--muted); }
.home-h { margin: 36px 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fcard { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.fcard:hover { border-color: var(--line-2); background: var(--side); }
.fcard-top { display: flex; align-items: center; gap: 8px; }
.fcard-top .nav-ic { width: 18px; height: 18px; }
.fcard-top b { font-size: 17px; font-weight: 600; }
.fcard-top span { margin-left: auto; font-size: 12px; color: var(--muted); }
.fcard-n { font-size: 14px; color: var(--ink-2); }
.fcard-n b { font-size: 22px; font-weight: 600; color: var(--ink); margin-right: 2px; }
.fbar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.fbar i { display: block; min-width: 4px; }
.fbar i.u-now { background: var(--u-now); } .fbar i.u-soon { background: var(--u-soon); } .fbar i.u-week { background: var(--u-week); } .fbar i.u-later, .fbar i.u-none { background: var(--line-2); }
.fcard-next { font-size: 13px; color: var(--muted); }
.fcard-next strong { font-weight: 500; color: var(--ink); }
.fcard-new { border-style: dashed; align-content: center; justify-items: start; min-height: 150px; }
.fcard-new span { font-size: 15px; font-weight: 500; }
.fcard-new em { font-style: normal; font-size: 13px; color: var(--muted); }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.home-more { margin: 12px 4px 0; font-size: 13px; }
.hmon { gap: 14px; }
@media (max-width: 1099px) { .home-split { grid-template-columns: minmax(0, 1fr); } .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .hstat b { font-size: 24px; } .hstat { padding: 14px 16px; } }
.m-benches { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.m-benches a { display: flex; justify-content: space-between; color: var(--ink); text-decoration: none; padding: 6px 0; border-top: 1px solid var(--line); }
.m-benches a:hover b { color: var(--accent); }
.m-benches b { font-weight: 500; }
.page:has(.hstats) { max-width: 1360px; }
@media (max-width: 640px) { .rvh { gap: 12px; } .rvh .link { white-space: nowrap; } .rvh-n { white-space: nowrap; } .rvh .segs, .rvh .rvbar { display: none; } .rvh .keys { display: none; } }

/* Repricing request */
.rp-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--wash); }
.rp-call p { margin: 0; font-size: 14px; color: var(--ink-2); }
.rp-fields { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 12px; margin: 16px 0 8px; }
.rp-fields .field { margin: 0; }
.rp-rate .m-input { min-height: 38px; }
.rp-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
#rp-body { min-height: 300px; font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) { .rp-fields { grid-template-columns: 1fr; } }
.m-bench-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 13px; }
.m-bench-row .m-input { width: 7.5rem; }
.m-bench-row .m-input input { padding: 6px 0; font-size: 14px; }
.cal-line { margin: 10px 0 0; } .cal-line .link, .page-foot .link { padding: 0; font-size: inherit; }

/* Drafting: shimmer while writing, slide in when done */
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.message.is-drafting, .skel i { background: linear-gradient(90deg, var(--side) 0%, var(--wash) 40%, var(--side) 80%) 0 0 / 200% 100%; animation: shimmer 1.6s linear infinite; }
.message.is-drafting::placeholder { color: var(--muted); }
.skel { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.skel span { font-size: 13px; color: var(--muted); }
.skel i { display: block; height: 9px; border-radius: 4px; }
.skel i:nth-child(3) { width: 92%; } .skel i:nth-child(4) { width: 64%; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auto-msg textarea.arrived { animation: arrive .45s ease both; }
.auto-prog { display: block; height: 3px; margin-top: 12px; max-width: 360px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.auto-prog i { display: block; height: 100%; background: var(--cta); transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .message.is-drafting, .skel i, .auto-msg textarea.arrived { animation: none; } }
.note-add { display: grid; gap: 6px; margin: 16px 0 4px; }
.note-add label { font-size: 13px; color: var(--muted); }
.note-row { display: flex; gap: 8px; }
.note-row input { flex: 1; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; font-size: 14px; background: var(--page); color: var(--ink); }
.note-old { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
.note-old span { color: var(--faint); font-size: 12px; margin-left: 4px; }

/* Updates and Help */
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.upd-foot { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.upd-foot a { color: var(--ink); }
.help { display: grid; gap: 20px; max-width: 560px; }
/* Help: the whole page sits on the Backbook sky (a starry night in dark mode), with the form on frosted glass. */
body.on-help::before, body.on-help::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.on-help::before { background: #a9d2f2 url(/img/clouds-2000.jpg) 50% 40% / cover; }
body.on-help::after { opacity: 0; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><circle cx='103.6' cy='48.3' r='1.2' fill='white' fill-opacity='0.38'/><circle cx='262.8' cy='30.1' r='1.0' fill='white' fill-opacity='0.39'/><circle cx='162.4' cy='12.0' r='0.8' fill='white' fill-opacity='0.62'/><circle cx='77.0' cy='176.3' r='0.5' fill='white' fill-opacity='0.89'/><circle cx='39.6' cy='71.4' r='1.2' fill='white' fill-opacity='0.73'/><circle cx='19.8' cy='187.4' r='0.5' fill='white' fill-opacity='0.98'/><circle cx='14.9' cy='274.7' r='0.7' fill='white' fill-opacity='0.62'/><circle cx='173.0' cy='182.7' r='1.0' fill='white' fill-opacity='0.88'/><circle cx='57.8' cy='186.1' r='1.2' fill='white' fill-opacity='0.47'/><circle cx='31.2' cy='227.9' r='1.0' fill='white' fill-opacity='0.39'/><circle cx='65.9' cy='217.7' r='0.8' fill='white' fill-opacity='0.86'/><circle cx='149.0' cy='295.5' r='0.7' fill='white' fill-opacity='0.54'/><circle cx='254.2' cy='223.7' r='0.6' fill='white' fill-opacity='0.40'/><circle cx='96.1' cy='158.4' r='0.7' fill='white' fill-opacity='0.82'/><circle cx='92.1' cy='313.7' r='0.5' fill='white' fill-opacity='0.68'/><circle cx='52.8' cy='109.5' r='0.8' fill='white' fill-opacity='0.62'/><circle cx='307.8' cy='24.8' r='1.0' fill='white' fill-opacity='0.72'/><circle cx='280.2' cy='100.4' r='1.2' fill='white' fill-opacity='0.58'/><circle cx='158.9' cy='255.0' r='0.5' fill='white' fill-opacity='0.90'/><circle cx='302.3' cy='151.7' r='1.2' fill='white' fill-opacity='0.39'/><circle cx='234.0' cy='99.1' r='1.0' fill='white' fill-opacity='1.00'/><circle cx='263.0' cy='91.1' r='0.8' fill='white' fill-opacity='0.93'/><circle cx='111.0' cy='301.0' r='0.7' fill='white' fill-opacity='0.46'/><circle cx='37.5' cy='18.9' r='0.7' fill='white' fill-opacity='0.43'/><circle cx='79.2' cy='125.1' r='0.8' fill='white' fill-opacity='0.40'/><circle cx='143.7' cy='175.8' r='0.6' fill='white' fill-opacity='0.88'/><circle cx='276.5' cy='89.1' r='0.8' fill='white' fill-opacity='0.99'/><circle cx='218.5' cy='121.7' r='0.6' fill='white' fill-opacity='0.45'/><circle cx='56.4' cy='74.2' r='0.6' fill='white' fill-opacity='0.36'/><circle cx='265.9' cy='58.3' r='0.7' fill='white' fill-opacity='0.35'/><circle cx='134.1' cy='118.2' r='1.0' fill='white' fill-opacity='0.56'/><circle cx='40.2' cy='274.9' r='1.0' fill='white' fill-opacity='0.78'/><circle cx='236.7' cy='146.1' r='1.2' fill='white' fill-opacity='0.87'/><circle cx='125.6' cy='127.7' r='0.5' fill='white' fill-opacity='0.66'/><circle cx='128.1' cy='61.0' r='0.6' fill='white' fill-opacity='0.64'/><circle cx='35.2' cy='192.2' r='0.5' fill='white' fill-opacity='0.35'/><circle cx='48.4' cy='32.5' r='0.7' fill='white' fill-opacity='0.75'/><circle cx='22.5' cy='66.5' r='0.8' fill='white' fill-opacity='0.45'/><circle cx='80.7' cy='111.2' r='0.7' fill='white' fill-opacity='0.66'/><circle cx='36.9' cy='156.2' r='0.8' fill='white' fill-opacity='0.66'/><circle cx='99.8' cy='46.1' r='1.2' fill='white' fill-opacity='0.57'/><circle cx='84.7' cy='265.2' r='0.6' fill='white' fill-opacity='0.69'/></svg>") 0 0 / 320px 320px, linear-gradient(180deg, rgba(4,8,22,.55), rgba(6,12,30,.2) 55%, rgba(11,14,20,.6)); }
body.on-help .ph { border-bottom-color: rgba(14,23,38,.18); }
body.on-help .ph-date { color: rgba(14,23,38,.72); }
.help-sky { margin-top: 28px; }
.help-sky .help { padding: clamp(20px, 3vw, 32px); border-radius: 14px; background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.6); box-shadow: 0 24px 60px -32px rgba(14,23,38,.55); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); }
.help-sky .help-kind span { background: rgba(255,255,255,.55); }
.help-sky .help-kind input:checked + span { background: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.on-help::before { background-color: #070d1c; filter: brightness(.34) saturate(1.35) hue-rotate(14deg) contrast(1.18); } :root:not([data-theme="light"]) body.on-help::after { opacity: 1; } :root:not([data-theme="light"]) body.on-help .ph { border-bottom-color: rgba(255,255,255,.14); } :root:not([data-theme="light"]) body.on-help .ph-date { color: rgba(238,243,250,.72); } :root:not([data-theme="light"]) .help-sky .help { background: rgba(11,14,20,.5); border-color: rgba(255,255,255,.1); } :root:not([data-theme="light"]) .help-sky .help-kind span { background: rgba(11,14,20,.35); } :root:not([data-theme="light"]) .help-sky .help-kind input:checked + span { background: var(--ink); color: var(--page); } }
:root[data-theme="dark"] body.on-help::before { background-color: #070d1c; filter: brightness(.34) saturate(1.35) hue-rotate(14deg) contrast(1.18); }
:root[data-theme="dark"] body.on-help::after { opacity: 1; }
:root[data-theme="dark"] body.on-help .ph { border-bottom-color: rgba(255,255,255,.14); }
:root[data-theme="dark"] body.on-help .ph-date { color: rgba(238,243,250,.72); }
:root[data-theme="dark"] .help-sky .help { background: rgba(11,14,20,.5); border-color: rgba(255,255,255,.1); }
:root[data-theme="dark"] .help-sky .help-kind span { background: rgba(11,14,20,.35); }
:root[data-theme="dark"] .help-sky .help-kind input:checked + span { background: var(--ink); color: var(--page); }
.help-kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.help-kinds legend { padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.help-kind input { position: absolute; opacity: 0; pointer-events: none; }
.help-kind span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; cursor: pointer; }
.help-kind input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--page); }
.help-kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-field { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.help-field textarea, .help-field input { width: 100%; font: inherit; font-size: 15px; color: var(--ink); }
.help-actions { display: flex; align-items: center; gap: 16px; }
.help-status { font-size: 14px; color: var(--muted); }
.help-done { margin: 0; font-size: 15px; line-height: 1.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Replies and outcomes (client panel, Sent) */
.oc { display: grid; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.oc-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0; font-size: 14px; color: var(--ink-2); }
.oc-out { display: grid; gap: 8px; }
.oc-out h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.oc-out .oc-line { justify-content: flex-start; }
.oc-when { font-size: 12px; color: var(--muted); }
.oc-ok { color: var(--ok); }
.oc-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.oc-form { display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: 10px 12px; align-items: end; }
.oc-form .field { margin: 0; }
.oc-form.one { grid-template-columns: 9rem; }
.oc-acts { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.oc-hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.i-reply { justify-self: start; font-size: 13px; }
@media (max-width: 860px) { .i-reply:empty { display: none; } }

/* Ask Backbook helper */
#assist { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; justify-items: end; gap: 10px; }
.as-fab { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 14px; border: 1px solid var(--ink); border-radius: 99px; background: var(--ink); color: var(--page); font: 500 14px/1 var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(14, 23, 38, .18); }
.as-fab svg { width: 18px; height: 18px; }
.as-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#assist.open .as-fab { display: none; }
.as-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 96px)); display: grid; grid-template-rows: auto 1fr auto auto; background: var(--page); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px -12px rgba(14, 23, 38, .35); overflow: hidden; }
.as-panel[hidden] { display: none; }
.as-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.as-x { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; width: 32px; height: 32px; cursor: pointer; border-radius: 6px; }
.as-x:hover { color: var(--ink); }
.as-log { overflow-y: auto; padding: 14px 16px; display: grid; align-content: start; gap: 10px; overscroll-behavior: contain; }
.as-msg { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 88%; }
.as-assistant { background: var(--wash); justify-self: start; border-bottom-left-radius: 4px; }
.as-user { background: var(--ink); color: var(--page); justify-self: end; border-bottom-right-radius: 4px; }
.as-typing { color: var(--muted); }
.as-starters { display: grid; gap: 6px; justify-items: start; }
.as-starters button { border: 1px solid var(--line); background: none; color: var(--ink); border-radius: 99px; padding: 7px 12px; font: 400 13px/1.3 var(--sans); cursor: pointer; text-align: left; }
.as-starters button:hover { border-color: var(--ink); }
.as-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.as-form textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; font: inherit; font-size: 14px; }
.as-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 0 14px 10px; font-size: 12px; color: var(--muted); }
.as-foot span { margin-right: auto; }
.as-foot .link { font-size: 12px; padding: 4px 0; }
@media (max-width: 560px) {
  .as-panel { width: calc(100vw - 24px); height: calc(100svh - 88px); }
  #assist { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
}
@media print { #assist { display: none; } }
#view::after { content: ""; display: block; height: 64px; } /* room for the Ask button */
.as-left { margin: 0; padding: 8px 14px 0; font-size: 12px; color: var(--muted); }
.as-form textarea:disabled, .as-starters button:disabled { opacity: .5; cursor: not-allowed; }
.pause-note { margin: 0; padding: 14px 16px; background: var(--wash); border-radius: 8px; font-size: 15px; line-height: 1.5; }

/* Sign in to import */
.imp-signin { cursor: default; border-style: solid; }
.imp-signin:hover { border-color: var(--line-2); background: var(--side); }
a.imp-drop { color: inherit; text-decoration: none; }
.signin-page { display: grid; gap: 24px; max-width: 620px; margin-top: 28px; }
.signin-page .imp-signin { min-height: 0; }
.signin-why { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.signin-why li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.signin-why b { color: var(--ink); font-weight: 600; }
.signin-back { justify-self: start; }
.signin-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; max-width: 440px; margin-top: 4px; }
.signin-form input[type="email"] { flex: 1 1 220px; min-width: 0; }
.signin-status { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.signin-terms { font-size: 13px; color: var(--muted); } .signin-terms a { color: inherit; text-decoration: underline; }

/* Phones: no zoom on focus, no keyboard hints, easier taps, and a hint that the menu scrolls */
@media (hover: none) { kbd { display: none; } }
@media (max-width: 860px) {
  input, select, textarea { font-size: 16px !important; }
  .m-adv .link { display: inline-block; padding: 10px 6px; margin: -10px -6px; font-size: 13px; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
.upd-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; background: var(--mark); color: var(--ink); }
.upd-tag.upd-improved { background: var(--wash); border: 1px solid var(--line); }
.upd-tag.upd-fixed { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pager-n { margin-right: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pager .btn[disabled] { opacity: .4; cursor: default; }
.settings[data-tab] > section { display: none; }
.settings[data-tab="details"] > section[data-g="details"], .settings[data-tab="drafting"] > section[data-g="drafting"],
.settings[data-tab="setup"] > section[data-g="setup"], .settings[data-tab="account"] > section[data-g="account"], .settings[data-tab="data"] > section[data-g="data"], .settings[data-tab="commission"] > section[data-g="commission"], .settings[data-tab="calls"] > section[data-g="calls"], .settings[data-tab="email"] > section[data-g="email"], .settings[data-tab="plan"] > section[data-g="plan"], .settings[data-tab="security"] > section[data-g="security"], .settings[data-tab="ai"] > section[data-g="ai"] { display: grid; }

/* Empty folder: move clients you already have */
.ask { display: grid; gap: 10px; width: 100%; max-width: 560px; margin: 36px auto 0; padding-top: 28px; border-top: 1px solid var(--line); text-align: left; }
.ask-l { font-size: 14px; font-weight: 500; color: var(--ink); }
.ask-row { display: flex; gap: 8px; }
.ask-row input { flex: 1; min-width: 0; }
.ask-note { margin: 0; font-size: 13px; color: var(--muted); }
.ask-found { margin: 8px 0 0; font-size: 14px; }
.ask-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.ask-list li + li { border-top: 1px solid var(--line); }
.ask-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.ask-list input { accent-color: var(--ink); width: 16px; height: 16px; }
.ask-list span { margin-left: auto; font-size: 12px; color: var(--muted); }
.ask-acts { display: flex; align-items: center; gap: 16px; }
.toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; } /* above the Ask button */
.sent-msg { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--side); }
.sent-subj { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-weight: 500; }
.sent-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }

/* Home: one lead number, the rest supporting */
.hlead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.hlead-main { position: relative; display: grid; align-content: start; gap: 6px; padding: 28px 28px 30px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow: hidden; }
.hlead-main:hover { border-color: var(--line-2); }
.hlead-n { font-size: clamp(56px, 7vw, 84px); line-height: .95; font-weight: 600; letter-spacing: -0.05em; }
.hlead-l { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.hlead-s { font-size: 14px; color: var(--muted); }
.hlead-btn { justify-self: start; margin-top: 18px; pointer-events: none; }
.hlead-side { display: grid; gap: 12px; }
.hlead-side .hstat { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: baseline; padding: 14px 18px; }
.hlead-side .hstat b { grid-row: span 2; font-size: 28px; min-width: 2.2ch; font-variant-numeric: tabular-nums; } /* same text start for 1 or 2 digits */
.hlead-side .hstat em { grid-column: 2; }
@media (max-width: 860px) { .hlead { grid-template-columns: minmax(0, 1fr); } }
.home-h span { margin-left: 6px; font-weight: 400; color: var(--faint); }
.hres { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hres-i { display: grid; gap: 3px; align-content: start; padding: 18px 20px; color: var(--ink); text-decoration: none; }
.hres-i + .hres-i { border-left: 1px solid var(--line); }
.hres-i:hover { background: var(--side); }
.hres-i b { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.hres-i span { font-size: 14px; }
.hres-i em { font-style: normal; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) { .hres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hres-i:nth-child(3) { border-left: 0; } .hres-i:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Updates: release notes */
.upd-rel { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink); }
.upd-rel + .upd-rel { margin-top: 56px; }
.upd-older-h { margin: 56px 0 0; padding-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); }
.upd-old { border-bottom: 1px solid var(--line); }
.upd-old > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px minmax(0, 1fr) 14px; align-items: center; gap: 16px; padding: 16px 0; }
.upd-old > summary::-webkit-details-marker { display: none; }
.upd-old > summary:hover .upd-old-t { color: var(--ink); }
.upd-old-d { font-weight: 500; }
.upd-old-t { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upd-old > summary svg { width: 14px; height: 14px; color: var(--muted); transition: transform .25s; }
.upd-old[open] > summary svg { transform: rotate(45deg); }
.upd-old .upd-rel { margin: 0 0 28px; padding-top: 0; border-top: 0; }
.upd-old .upd-rel-h h2 { display: none; }
@media (max-width: 560px) { .upd-old > summary { grid-template-columns: minmax(0, 1fr) 14px; gap: 4px 12px; } .upd-old-t { grid-column: 1; white-space: normal; } .upd-old > summary svg { grid-row: 1; grid-column: 2; } }
.upd-rel-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.upd-rel-h h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.upd-chips { display: flex; gap: 6px; }
.upd-chip { padding: 5px 11px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.upd-chip b { color: var(--ink); font-weight: 600; }
.upd-feat { display: grid; gap: 12px; padding: 26px 28px 28px; border-radius: 16px; background: var(--wash); border: 1px solid var(--line); }
.upd-kicker { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.upd-feat h3 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; }
.upd-feat > p { margin: 0; max-width: 64ch; line-height: 1.6; color: var(--muted); }
.upd-feat .btn { justify-self: start; margin-top: 6px; }
.upd-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.upd-ticks li::before { content: "✓"; display: inline-block; margin-right: 8px; padding: 0 5px; background: var(--mark); border-radius: 3px; }
.upd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
@media (max-width: 760px) { .upd-cards { grid-template-columns: minmax(0, 1fr); } }
.upd-card { display: grid; align-content: start; gap: 8px; padding: 20px 22px 22px; border-radius: 14px; border: 1px solid var(--line); }
.upd-card .upd-tag { justify-self: start; margin: 0; }
.upd-card h3 { margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.upd-card > p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.upd-ex { display: grid; margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--side); border: 1px solid var(--line); }
.upd-exr { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.upd-exr + .upd-exr, .upd-exr + .upd-say, .upd-say + .upd-exr { border-top: 1px solid var(--line); }
.upd-exr span { display: grid; gap: 1px; min-width: 0; }
.upd-exr b { font-size: 14px; font-weight: 500; }
.upd-exr small { font-size: 12px; color: var(--muted); }
.upd-exr i { font-style: normal; font-size: 12px; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.upd-exr i.on { border-color: transparent; background: var(--ok); color: #fff; }
.upd-exr em { font-style: normal; font-weight: 500; font-size: 14px; }
.upd-exr em.ok { color: var(--ok); }
.upd-say { margin: 0; padding: 8px 0; font-size: 14px; }
.upd-say mark { background: var(--mark); color: var(--ink); padding: 1px 4px; }
.upd-small { margin-top: 28px; }
.upd-small-h { margin: 0 0 6px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.upd-group { margin-top: 16px; }
.upd-group h3 { margin: 0 0 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.upd-group ul { list-style: none; margin: 0; padding: 0; }
.upd-group li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.upd-group li b { color: var(--ink); font-weight: 500; }
.welcome { margin: 20px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; }
.welcome .link { padding: 0 0 0 6px; font-size: 14px; }
.as-fab { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; } /* compact, so it covers less */
.as-fab svg { width: 20px; height: 20px; }
.auto-who .auto-loan { font-size: 12px; }
.auto-idle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 8px; font-size: 13px; color: var(--muted); }
.auto-idle p { margin: 0; }

/* Our own dropdown arrow, sat a little in from the edge instead of the browser's, which hugs the border. */
html select:not([multiple]) {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}

.note-snip { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* No rate monitor (wealth and investor practices): Today uses the full width rather than leaving its column empty. */
.today-grid:not(:has(> .mon-col)) { grid-template-columns: minmax(0, 1fr) !important; }

/* Settings, Plan (relationship OS) and the plan popups */
.plan-now { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.plan-now b { font-size: 16px; font-weight: 600; }
.plan-now span, .plan-up p, .plan-q span { color: var(--muted); font-size: var(--t-sm); }
.plan-up, .plan-calls { display: grid; gap: 12px; }
.plan-up h3, .plan-calls h3 { font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.plan-q { margin: 4px 0 0; font-weight: 500; }
.plan-q span { display: block; font-weight: 400; }
.plan-opts { display: grid; gap: 8px; }
.plan-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.plan-opt input { accent-color: var(--ink); grid-row: span 2; align-self: center; }
.plan-opt b { font-weight: 600; font-size: 15px; }
.plan-opt span { grid-column: 2; color: var(--muted); font-size: var(--t-sm); }
.plan-opt.on { border-color: var(--ink); }
.plan-use { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-use > div { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; }
.plan-use span { color: var(--muted); font-size: var(--t-sm); }
.plan-use b { font-size: 20px; font-weight: 600; }
.plan-use small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-use i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.plan-use em { display: block; height: 100%; background: var(--ink); }
.plan-cap { display: grid; gap: 6px; }
.plan-cap label { font-size: var(--t-sm); font-weight: 500; }
.plan-cap-row { display: flex; gap: 8px; align-items: center; }
.plan-cap-row input { width: 110px; }
.plan-off { color: var(--ink); background: var(--line); border-radius: 8px; padding: 10px 12px; font-size: var(--t-sm); margin: 0; }
.plandlg .plan-opts { margin: 0 0 14px; }
.plandlg .plan-small { font-size: 13px; margin: 0 0 10px; }
.plandlg .calldlg-acts { flex-wrap: wrap; }

/* Sync: the recovery code and the device list */
.sync-dlg { max-width: 460px; }
.sync-dlg .calldlg-acts { flex-wrap: wrap; }
.sync-dlg .calldlg-acts .link { white-space: nowrap; }
.sync-code { font: 600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; background: var(--side); border-radius: 10px; padding: 14px 12px; text-align: center; white-space: nowrap; overflow-x: auto; user-select: all; }
.sync-match { font: 600 30px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-align: center; margin: 12px 0; }
.sync-confirm input, .sync-recover input { font: 600 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; width: 100%; max-width: 360px; }
.sync-msg { min-height: 1.4em; color: var(--muted, #5b6474); }
.dev-list { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; }
.dev-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line, #e1e5eb); border-radius: 10px; padding: 10px 12px; }
.dev-list .dev-meta { color: var(--muted, #5b6474); font-size: var(--t-sm, 14px); }
.sync-status { font-size: var(--t-sm, 14px); color: var(--muted, #5b6474); }
