/* Visual refresh, layered over shell.css. Based on research/visual-design.md and research/dashboard-ux.md.
   Swiss restraint: ink, white, hairline rules; sky blue only for "needs you"; green only for sent / approved. */

/* 5 + 6. Readable text colours, and dark mode layered the right way round */
:root { --muted: #5b6474; --faint: #8a93a2; --ok: #13753b; --raised: #ffffff; --overlay: #ffffff; --r-1: 4px; --r-2: 8px;
  --u-soon: #a86400; --u-later: #8a93a2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --page: #0d1117; --side: #090c11; --raised: #151a23; --overlay: #1b2130;
  --muted: #98a1b0; --faint: #7f8999; --u-later: #5d6878; } }
:root[data-theme="dark"] {
  --page: #0d1117; --side: #090c11; --raised: #151a23; --overlay: #1b2130;
  --muted: #98a1b0; --faint: #7f8999; --u-later: #5d6878; }
.sec-h span, .cols-head, .nav-h, .ftabs a span, .est, .m-more, .note-old span, .home-h span, .i-when.none { color: var(--muted); }

/* 1. Primary buttons are ink (sky on hover); green is kept for sending and approving */
.btn:not(.btn-quiet):not(.btn-danger) { background: var(--ink); border-color: var(--ink); color: var(--page); box-shadow: inset 0 1px 0 rgb(255 255 255 / .10); }
.btn:not(.btn-quiet):not(.btn-danger):hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-done, .rv-send, [data-auto="send"], [data-auto="go"] { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff !important; }
.btn-done:hover, .rv-send:hover, [data-auto="send"]:hover, [data-auto="go"]:hover { filter: brightness(1.08); }
.item.hot::before, .talk li.on { background: var(--accent); border-color: var(--accent); }

/* 2. Quiet rows: no urgency bar, no highlight. The reason is the one dark thing in a row; its detail is grey.
   Overdue gets a small red dot by the date instead of red text on every row. */
.item > button::before { display: none; }
.i-why > span:first-child { color: var(--ink); }
.i-why .i-sub { color: var(--muted); }
.i-tag .tag { background: none !important; border: 0 !important; padding: 0 !important; font-size: 13px; color: var(--muted); }
.item .i-when, .item.u-now .i-when, .item.u-soon .i-when { color: var(--muted); }
.item.u-now .i-when::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--u-now); margin-right: 8px; vertical-align: 2px; }

/* 3. Ruled lists instead of bordered cards: an ink rule on top, hairlines between rows */
.page .list, .table { border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: transparent; }
.cols-head { background: none; border-bottom: 1px solid var(--line); }
.today-main .collapsed { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.help, .check, .issues ul, .settings section { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-left: 0; padding-right: 0; }

/* 4. Type carries the design: a very large, light title */
.ph h1, .page-head h1 { font-size: clamp(40px, 2.4vw + 18px, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.ph-date { font-size: 13px; color: var(--muted); }

/* 7. No pills, no shouty labels, no ticks in boxes */
.tag, .i-tag .tag, .chip, .fchip, .demo-badge, .upd-tag, .upd-chip, .upd-exr i, .help-kind span, .as-starters button { border-radius: var(--r-1) !important; }
.upd-kicker, .upd-group h3 { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.upd-ticks li { border-bottom: 1px solid var(--line); padding: 8px 0; }
.upd-ticks li::before { display: none; }
.hlead-n { font-size: inherit; line-height: inherit; font-weight: 600; letter-spacing: -0.02em; }

/* 8. One radius scale: 4 px controls, 8 px floating panels, square lists */
.btn, input, select, textarea, kbd, .theme-switch { border-radius: var(--r-1); }
.sheet, .rv-compose .message, .toast, .as-panel, .drop { border-radius: var(--r-2); }
.monitor { border: 0; border-top: 1px solid var(--ink); border-radius: 0; padding: 16px 0 0; background: transparent; }

/* 9. Signature: the sky appears only when you're all caught up */
.blank.sky-done {
  max-width: none; min-height: 300px; margin-top: 24px; padding: 56px 48px; align-content: end;
  border-radius: var(--r-2); position: relative; isolation: isolate; overflow: hidden;
  background: #a9d2f2 url(/img/clouds-1200.jpg) 50% 40% / cover; color: #0e1726;
}
.blank.sky-done h2 { font-size: clamp(40px, 3vw + 16px, 64px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; color: #0e1726; }
.blank.sky-done h2 mark { background: linear-gradient(#fff, #fff) no-repeat 0 90% / 100% 78%; color: #0e1726; padding: 0 .08em 0 0; }
.blank.sky-done p { color: #0e1726; opacity: .8; font-size: 16px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blank.sky-done { background-color: #070d1c; } :root:not([data-theme="light"]) .blank.sky-done::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; filter: brightness(.34) saturate(1.35) hue-rotate(14deg) contrast(1.18); } :root:not([data-theme="light"]) .blank.sky-done h2, :root:not([data-theme="light"]) .blank.sky-done p { color: #e8edf5; } }
:root[data-theme="dark"] .blank.sky-done::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; filter: brightness(.34) saturate(1.35) hue-rotate(14deg) contrast(1.18); }
:root[data-theme="dark"] .blank.sky-done h2, :root[data-theme="dark"] .blank.sky-done p { color: #e8edf5; }

/* 6 + 10. Floating things are lifted; shadows are layered and tinted with ink */
.sheet, .as-panel, .rv-compose .message { background: var(--raised); }
.toast { background: var(--overlay); }
.as-panel, .sheet { box-shadow: 0 0 0 1px rgb(14 23 38 / .06), 0 2px 4px -1px rgb(14 23 38 / .06), 0 16px 40px -12px rgb(14 23 38 / .22); }
.as-fab { box-shadow: 0 0 0 1px rgb(14 23 38 / .06), 0 4px 12px -2px rgb(14 23 38 / .16); }
:root[data-theme="dark"] .sheet, :root[data-theme="dark"] .as-panel, :root[data-theme="dark"] .toast { box-shadow: 0 0 0 1px rgb(255 255 255 / .06), inset 0 1px 0 rgb(255 255 255 / .04); }
.item.sel > button { background: var(--wash); box-shadow: inset 2px 0 0 var(--accent); }
.item > button:focus-visible { outline-offset: -2px; }
.auto-msg textarea:focus, .auto-subj:focus { box-shadow: 0 0 0 1px var(--accent); }

/* The draft panel: no box, no blue wash; a plain ruled band like the lists */
.auto { border: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.auto-head { background: transparent; padding: 18px 0; }
.auto-title h2 { font-weight: 500; }

/* The rate monitor is reference, not work: it sits on the sidebar's tint so it reads as its own column */
.monitor { background: var(--side); border: 0; border-radius: var(--r-2); padding: 20px; }
.monitor input { background: var(--page); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .monitor { background: var(--raised); } }
:root[data-theme="dark"] .monitor { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .monitor { background: #171d28; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); } }
:root[data-theme="dark"] .monitor { background: #171d28; box-shadow: 0 0 0 1px rgb(255 255 255 / .06); }

/* Easier on the eyes: lower the glare without losing contrast (text still passes AA comfortably) */
:root { --page: #fbfcfd; --side: #f3f5f8; --rule: #c9ced6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --page: #10141b; --side: #0b0e13; --ink: #dfe5ee; --ink-2: #b9c1cd; --rule: #2c3442; } }
:root[data-theme="dark"] { --page: #10141b; --side: #0b0e13; --ink: #dfe5ee; --ink-2: #b9c1cd; --rule: #2c3442; }
.page .list, .table, .auto { border-top-color: var(--rule); }
.i-why > span:first-child { color: var(--ink-2); }
.i-name { font-weight: 500; }
.item > button { padding-top: 16px; padding-bottom: 16px; }
.i-sub { opacity: .9; }

/* Import: columns that don't look right */
.col-issues { margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid var(--u-now); background: var(--wash); border-radius: 0 var(--r-1) var(--r-1) 0; }
.col-issues strong { display: block; margin-bottom: 6px; }
.col-issues ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.mapping .status.bad { color: var(--u-now); font-weight: 500; }

/* Documents: a connected folder, read on this computer. Same ruled lists as the rest of the app. */
.docs-empty { max-width: 620px; margin-top: 32px; display: grid; gap: 14px; }
.docs-empty h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.docs-empty p { color: var(--ink-2); line-height: 1.55; }
.docs-points { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.docs-points li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.docs-fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.docs-status { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.docs-perm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r-2); background: var(--side); font-size: 14px; }
.docs-ask { display: flex; gap: 8px; max-width: 720px; }
.docs-ask input { flex: 1; min-width: 0; font-size: 15px; padding: 12px 14px; }
.docs-ai { font-size: 12px; color: var(--muted); }
.docs-ai.on { color: var(--ok); }
.docs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.docs-chip { font: inherit; font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-1); background: transparent; color: var(--ink-2); cursor: pointer; }
.docs-chip:hover { border-color: var(--ink-2); }
.docs-chip span { color: var(--muted); margin-left: 4px; }
.docs-h { font-size: 15px; font-weight: 500; margin: 24px 0 10px; }
.docs-h span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.docs-none { color: var(--muted); font-size: 14px; margin-top: 20px; }
.docs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.docs-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.docs-ext { font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-1); padding: 8px 0; text-align: center; }
.docs-main { display: grid; gap: 2px; min-width: 0; }
.docs-main b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-main span { font-size: 13px; color: var(--ink-2); }
.docs-main small { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs-acts { display: flex; align-items: center; gap: 12px; }
.docs-pack, .docs-sheet { margin-top: 28px; max-width: 520px; }
.docs-pack h3, .docs-sheet h2 { font-size: 15px; font-weight: 500; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: baseline; }
.docs-sheet h2 a { font-size: 13px; font-weight: 400; }
.docs-pack ul, .docs-sheet ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.docs-pack li, .docs-sheet li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.docs-pack li span:last-child, .docs-sheet li span:last-child { color: var(--muted); }
.docs-pack li.miss span:last-child, .docs-sheet li.miss span:last-child { color: var(--u-now); }
.docs-pack li.stale span:last-child, .docs-sheet li.stale span:last-child { color: var(--u-soon); }
.docs-sheet { margin: 20px 0; }
@media (max-width: 640px) { .docs-list li { grid-template-columns: 1fr; } .docs-ext { display: none; } .docs-ask { flex-direction: column; } }

/* Each client's documents, under their row in a folder's client list */
.cdocs { margin: -6px 0 12px; padding-left: 16px; font-size: 13px; }
.cdocs summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); }
.cdocs summary::-webkit-details-marker { display: none; }
.cdocs summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(-45deg); margin: 6px 2px 0 0; transition: transform .15s; }
.cdocs[open] summary::before { transform: rotate(45deg); margin-top: 4px; }
.cdocs summary:hover .cd-n { color: var(--ink); }
.cd-n { color: var(--ink-2); font-weight: 500; }
.cdocs summary:has(.cd-n:only-child) .cd-n { color: var(--faint); font-weight: 400; }
.cd-old { color: var(--u-soon); }
.cd-miss { color: var(--faint); }
.cdocs ul:not(.dtiles) { list-style: none; margin: 8px 0 0 22px; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.cdocs li:not(.dtile) { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cd-file { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-meta { color: var(--muted); white-space: nowrap; }
.cd-none { margin: 8px 0 0 22px; color: var(--muted); }
@media (max-width: 640px) { .cdocs li:not(.dtile) { grid-template-columns: 1fr auto; } .cd-meta { display: none; } }

/* Documents: a file's correction, inline */
li.fixing { display: block !important; }
.docs-fix { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0; }
.docs-fix b { font-weight: 500; flex-basis: 100%; }
.docs-fix select { font: inherit; font-size: 13px; padding: 6px 8px; max-width: 240px; }
.docs-files { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.docs-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.docs-files .cd-meta { grid-column: 1; }
.docs-files .docs-acts { grid-column: 2; grid-row: 1 / span 2; }
.docs-acts .btn-small { padding: 5px 10px; }

/* The command bar */
.dock { width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--r-2); background: var(--raised); color: var(--ink);
  box-shadow: 0 0 0 1px rgb(14 23 38 / .08), 0 24px 60px -16px rgb(14 23 38 / .35); overflow: auto; }
.dock::backdrop { background: rgb(14 23 38 / .28); }
.dock-form { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--raised); }
.dock-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 6px 0; box-shadow: none !important; }
.dock-form kbd { font-size: 11px; color: var(--muted); }
.dock-out { padding: 10px 18px 18px; }
.dock-h { font-weight: 500; margin: 8px 0; }
.dock-h span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.dock-pack { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin: 0 0 8px; }
.dock-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.dock-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dock-list .docs-main { min-width: 0; }
.docs-acts { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dock { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 60px -16px rgb(0 0 0 / .6); } }
:root[data-theme="dark"] .dock { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 60px -16px rgb(0 0 0 / .6); }
@media (max-width: 640px) { .dock { margin-top: 16px; } .dock-list li, .docs-files li { flex-wrap: wrap; } }
.dock-form input::-webkit-search-cancel-button { display: none; }

/* Documents: the preview window (Open) */
.docview { width: min(940px, calc(100vw - 32px)); height: min(88vh, 1100px); margin: 6vh auto auto; padding: 0; border: 0; border-radius: var(--r-2); background: var(--raised); color: var(--ink); box-shadow: 0 40px 80px -30px rgb(14 23 38 / .45); display: flex; flex-direction: column; overflow: hidden; }
.docview:not([open]) { display: none; }
.docview::backdrop { background: rgb(14 23 38 / .45); }
.docview-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.docview-head div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.docview-head b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docview-head span { font-size: 13px; color: var(--muted); }
.docview-x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.docview-x:hover { background: var(--wash, rgb(127 127 127 / .1)); color: var(--ink); }
.docview-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; background: color-mix(in srgb, var(--ink) 6%, var(--raised)); }
.docview-page { background: #fff; box-shadow: 0 2px 10px rgb(14 23 38 / .18); border-radius: 2px; }
.docview-img { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 2px 10px rgb(14 23 38 / .18); }
.docview-text { align-self: stretch; margin: 0; padding: 20px; background: var(--raised); border-radius: 6px; white-space: pre-wrap; font: 14px/1.5 var(--sans); }
.docview-wait { color: var(--muted); margin: auto; text-align: center; max-width: 40ch; }
.docs-chip-warn { border-color: color-mix(in srgb, #c27c0e 45%, var(--line)); }
.docs-chip-warn span { color: #b06a00; }

/* Documents, calmer: one summary line, plain ruled rows, row actions appear on hover */
.docs-sum { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.docs-sum .link { font-size: inherit; }
.docs-flag { color: var(--ink); background: var(--mark, #d6e9fb); padding: 1px 6px; border-radius: 4px; text-decoration: none; }
.docs-foot { font-size: 12px; color: var(--faint, var(--muted)); margin: 32px 0 0; max-width: 720px; }
.docs-list li { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; }
.docs-main span { color: var(--muted); }
.docs-acts .link { font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .docs-list li .docs-acts .link, .dock-list li .docs-acts .link, .docs-files li .docs-acts .link { opacity: 0; transition: opacity .15s; }
  .docs-list li:hover .docs-acts .link, .docs-list li:focus-within .docs-acts .link,
  .dock-list li:hover .docs-acts .link, .dock-list li:focus-within .docs-acts .link,
  .docs-files li:hover .docs-acts .link, .docs-files li:focus-within .docs-acts .link { opacity: 1; }
}

/* Documents: shades of blue (sky tints for surfaces, brand blue for what you can act on) */
:root { --d-sky-1: #f3f8fd; --d-sky-2: #e3effb; --d-sky-3: #cfe3f7; --d-blue: #1a73c8; --d-blue-ink: #0f4f8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --d-sky-1: #111a26; --d-sky-2: #152335; --d-sky-3: #1d3350; --d-blue: #5aa6ee; --d-blue-ink: #9ccaf6; } }
:root[data-theme="dark"] { --d-sky-1: #111a26; --d-sky-2: #152335; --d-sky-3: #1d3350; --d-blue: #5aa6ee; --d-blue-ink: #9ccaf6; }
.docs-ask input { background: var(--d-sky-1); border-color: var(--d-sky-3); }
.docs-ask input:focus { border-color: var(--d-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-blue) 22%, transparent); }
.docs-ask .btn { background: var(--d-blue); border-color: var(--d-blue); color: #fff; }
.docs-h { color: var(--d-blue-ink); }
.docs-h span { color: var(--d-blue); }
.docs-list { border-top-color: var(--d-sky-3); }
.docs-list li { border-bottom-color: var(--d-sky-2); border-radius: 0; transition: background .15s; }
.docs-list li:hover { background: var(--d-sky-1); box-shadow: -10px 0 0 var(--d-sky-1), 10px 0 0 var(--d-sky-1); }
.docs-main span { color: var(--muted); }
.docs-list .docs-acts .btn, .docs-files .docs-acts .btn, .dock-list .docs-acts .btn { border-color: var(--d-sky-3); color: var(--d-blue-ink); background: var(--d-sky-1); }
.docs-list .docs-acts .btn:hover, .docs-files .docs-acts .btn:hover, .dock-list .docs-acts .btn:hover { background: var(--d-sky-2); }
.docs-acts .link { color: var(--d-blue); }
.docs-flag { background: var(--d-sky-2); color: var(--d-blue-ink); }
.docs-sum .link.quiet { color: var(--d-blue); }
.docs-pack h3 { color: var(--d-blue-ink); }
.docs-pack ul { border-top-color: var(--d-sky-3); }
.docs-pack li { border-bottom-color: var(--d-sky-2); }
.docview-head { background: var(--d-sky-1); border-bottom-color: var(--d-sky-3); }
.docview-body { background: var(--d-sky-2); }
.docview-head .btn { border-color: var(--d-sky-3); color: var(--d-blue-ink); }
.docs-empty .btn { background: var(--d-blue); border-color: var(--d-blue); color: #fff; }
.docs-ask button.btn[type="submit"], .docs-empty button.btn[data-doc="connect"] { background: var(--d-blue); border-color: var(--d-blue); color: #fff; }
.docs-ask button.btn[type="submit"]:hover, .docs-empty button.btn[data-doc="connect"]:hover { background: var(--d-blue-ink); border-color: var(--d-blue-ink); }
.docs-foot .link { font-size: inherit; }

/* Repricing request: the two fields line up (same label spacing, same height) */
.rp-fields { align-items: start; }
.rp-fields .field { display: grid; gap: 6px; align-content: start; }
.rp-fields .field label { margin: 0; line-height: 1.3; }
.rp-fields .field .hint { margin: 2px 0 0; }
.rp-fields input[type="email"], .rp-rate .m-input { height: 44px; box-sizing: border-box; }
.rp-rate .m-input { min-height: 44px; padding: 0 12px; }
.rp-rate .m-input input { padding: 0; height: 100%; }

/* Today and the rest of the app: shades of blue to separate the parts (sky tints for panels, brand blue for headings and
   counts). Uses the Documents tokens (--d-sky-*, --d-blue*), which have dark-mode values. */
.nav a[aria-current="page"] { background: var(--d-sky-2); color: var(--d-blue-ink); box-shadow: inset 2px 0 0 var(--d-blue); }
.nav a:hover { background: var(--d-sky-1); }
.ph { border-bottom-color: var(--d-sky-3); }
.auto { border: 1px solid var(--d-sky-3); border-radius: var(--r-2); background: var(--d-sky-1); overflow: hidden; }
.auto-head { background: var(--d-sky-2); padding: 18px 20px; }
.auto-title h2 { color: var(--d-blue-ink); }
.sec > .sec-h, main .sec-h { color: var(--d-blue-ink); font-weight: 600; padding-bottom: 8px; border-bottom: 2px solid var(--d-sky-3); margin-bottom: 0; }
.sec-h span { color: var(--d-blue); }
.sec + .sec { margin-top: 28px; }
.list { border-top: 0; }
.list > li { border-bottom-color: var(--d-sky-2); }
.list > li:hover { background: var(--d-sky-1); }
.monitor { background: var(--d-sky-1); border: 1px solid var(--d-sky-3); border-radius: var(--r-2); }
.monitor h2, .monitor h3 { color: var(--d-blue-ink); }
.monitor h3 span { color: var(--d-blue); }
.monitor > * + * { border-top: 1px solid var(--d-sky-3); padding-top: 14px; }
.monitor input { background: var(--raised); border-color: var(--d-sky-3); }
.mon-col .sec-h { border-bottom: 0; }
.docs-misc { margin-top: 36px; }
.docs-misc .docs-fine { margin: -4px 0 10px; }

/* "From your notes": the chosen point is a pale sky card with a blue edge, so the text stays readable */
.talk li.on { background: var(--d-sky-2); border-color: var(--d-blue); color: var(--ink); box-shadow: inset 3px 0 0 var(--d-blue); }
.talk li.on .talk-from { color: var(--muted); }
.talk li.on .link { color: var(--d-blue-ink); }

/* Documents: icons, folders and tiles */
.di { width: 18px; height: 18px; flex: none; color: var(--d-blue-ink); }
.dfolders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 4px; }
.dfold { display: grid; justify-items: start; gap: 4px; padding: 16px 16px 14px; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--d-sky-1); border: 1px solid var(--d-sky-3); border-radius: 12px; transition: background .15s, border-color .15s, transform .15s; }
.dfold:hover { background: var(--d-sky-2); border-color: var(--d-blue); transform: translateY(-1px); }
.dfold:focus-visible { outline: 2px solid var(--d-blue); outline-offset: 2px; }
.dfold-ic { width: 34px; height: 34px; color: var(--d-blue); margin-bottom: 6px; }
.dfold b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.dfold-n { font-size: 13px; color: var(--muted); }
.dfold-kinds { display: flex; gap: 6px; margin-top: 8px; }
.dfold-kinds .di { width: 16px; height: 16px; color: var(--d-blue); opacity: .85; }
.dfold-misc { background: var(--raised); border-style: dashed; }
.dfolder-head { display: flex; align-items: center; gap: 12px; margin: 8px 0 14px; }
.dfolder-head .docs-h { margin: 0; }
.dfolder-head .docs-fine { margin: 2px 0 0; }
.dback { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--d-sky-3); background: var(--d-sky-1); color: var(--d-blue-ink); cursor: pointer; }
.dback:hover { background: var(--d-sky-2); }
.dback .di { width: 18px; height: 18px; }
.dtiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px 14px; }
.dtile { display: grid; gap: 8px; align-content: start; min-width: 0; }
.dtile-face { position: relative; display: block; padding: 0; border: 1px solid var(--d-sky-3); border-radius: 10px; background: var(--d-sky-1); cursor: pointer; overflow: hidden; aspect-ratio: 4 / 5; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dtile-face:hover { border-color: var(--d-blue); box-shadow: 0 10px 24px -14px rgb(26 115 200 / .55); transform: translateY(-1px); }
.dtile-face:focus-visible { outline: 2px solid var(--d-blue); outline-offset: 2px; }
.dtile-thumb { position: absolute; inset: 0; display: grid; place-items: center; }
.dtile-thumb .di-big { width: 40px; height: 40px; color: var(--d-blue); opacity: .75; }
.dtile-thumb.has-img { background: #fff; }
.dtile-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dtile-kind { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--raised); border: 1px solid var(--d-sky-3); box-shadow: 0 2px 6px rgb(14 23 38 / .12); }
.dtile-kind .di { width: 16px; height: 16px; }
.dtile-txt { display: grid; gap: 2px; min-width: 0; }
.dtile-txt b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile-txt span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile-acts { display: flex; gap: 12px; font-size: 13px; }
.dtile-acts .link { color: var(--d-blue); }
@media (hover: hover) and (pointer: fine) { .dtile .dtile-acts { opacity: 0; transition: opacity .15s; } .dtile:hover .dtile-acts, .dtile:focus-within .dtile-acts { opacity: 1; } }
.dtile .docs-fix { grid-column: 1 / -1; }
.docs-sheet .dtiles, .cdocs .dtiles { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.dock-list li { grid-template-columns: auto minmax(0, 1fr) auto; }
.dock-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--d-sky-2); }
.dock-ic .di { width: 17px; height: 17px; }
/* Tiles inside the client page and the client-list strips: undo the older list styling there */
.docs-sheet .dtiles, .cdocs .dtiles { border: 0; display: grid; }
.docs-sheet .dtiles > li.dtile, .cdocs .dtiles > li.dtile { display: grid; justify-content: stretch; padding: 0; border: 0; font-size: inherit; gap: 8px; }
.docs-sheet .dtiles > li.dtile span:last-child, .cdocs .dtiles > li.dtile span:last-child { color: inherit; }
.docs-sheet .dtile-txt span, .cdocs .dtile-txt span { color: var(--muted) !important; }
.docs-sheet .dtile-acts .link, .cdocs .dtile-acts .link { color: var(--d-blue) !important; }
/* The usual-documents checklist, as icons under each client and beside each line */
.cd-k { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 7px; background: var(--d-sky-2); color: var(--d-blue-ink); }
.cd-k .di { width: 15px; height: 15px; }
.cd-k i { font-style: normal; font-size: 12px; }
.cd-k.miss { background: transparent; box-shadow: inset 0 0 0 1px var(--d-sky-3); opacity: .55; }
.cd-k.miss .di { color: var(--muted); }
.cd-k.old { background: color-mix(in srgb, #c27c0e 14%, transparent); color: #9a5b00; }
.cd-k.old .di { color: #9a5b00; }
.cdocs summary { align-items: center; gap: 6px 8px; }
.cdocs summary .cd-n { margin-right: 6px; }
.pk-l { display: inline-flex; align-items: center; gap: 8px; }
.pk-l .di { width: 17px; height: 17px; }
.miss .pk-l .di { color: var(--muted); opacity: .6; }

/* Folders: frosted glass over a soft sky wash, so the blur has something to catch */
.dfolders { position: relative; isolation: isolate; padding: 18px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(60% 80% at 8% 10%, rgb(120 180 240 / .45), transparent 70%),
    radial-gradient(50% 70% at 92% 20%, rgb(170 210 250 / .55), transparent 70%),
    radial-gradient(70% 90% at 50% 110%, rgb(90 160 230 / .35), transparent 70%),
    var(--d-sky-1); }
.dfold { position: relative; background: rgb(255 255 255 / .52); border: 1px solid rgb(255 255 255 / .75);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 10px 28px -16px rgb(26 80 140 / .45); }
.dfold::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgb(255 255 255 / .55), rgb(255 255 255 / 0) 45%); }
.dfold:hover { background: rgb(255 255 255 / .68); border-color: rgb(255 255 255 / .95); transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 16px 34px -16px rgb(26 80 140 / .55); }
.dfold-misc { background: rgb(255 255 255 / .32); border-style: dashed; border-color: rgb(255 255 255 / .8); }
.dfold > * { position: relative; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfolders {
  background: radial-gradient(60% 80% at 8% 10%, rgb(40 100 170 / .45), transparent 70%), radial-gradient(50% 70% at 92% 20%, rgb(60 120 200 / .35), transparent 70%), radial-gradient(70% 90% at 50% 110%, rgb(30 80 150 / .4), transparent 70%), var(--d-sky-1); }
  :root:not([data-theme="light"]) .dfold { background: rgb(21 30 45 / .5); border-color: rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 30px -16px rgb(0 0 0 / .7); }
  :root:not([data-theme="light"]) .dfold::before { background: linear-gradient(160deg, rgb(255 255 255 / .08), transparent 45%); }
  :root:not([data-theme="light"]) .dfold:hover { background: rgb(30 44 66 / .6); border-color: rgb(255 255 255 / .18); }
  :root:not([data-theme="light"]) .dfold-misc { background: rgb(21 30 45 / .3); border-color: rgb(255 255 255 / .16); } }
:root[data-theme="dark"] .dfolders { background: radial-gradient(60% 80% at 8% 10%, rgb(40 100 170 / .45), transparent 70%), radial-gradient(50% 70% at 92% 20%, rgb(60 120 200 / .35), transparent 70%), radial-gradient(70% 90% at 50% 110%, rgb(30 80 150 / .4), transparent 70%), var(--d-sky-1); }
:root[data-theme="dark"] .dfold { background: rgb(21 30 45 / .5); border-color: rgb(255 255 255 / .1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 12px 30px -16px rgb(0 0 0 / .7); }
:root[data-theme="dark"] .dfold::before { background: linear-gradient(160deg, rgb(255 255 255 / .08), transparent 45%); }
:root[data-theme="dark"] .dfold:hover { background: rgb(30 44 66 / .6); border-color: rgb(255 255 255 / .18); }
:root[data-theme="dark"] .dfold-misc { background: rgb(21 30 45 / .3); border-color: rgb(255 255 255 / .16); }

/* The preview, premium: blurred backdrop, a frosted header, pages that float */
.docview { width: min(980px, calc(100vw - 32px)); height: min(90vh, 1120px); margin: 5vh auto auto; border-radius: 18px; overflow: hidden;
  background: transparent; box-shadow: 0 50px 120px -40px rgb(8 20 40 / .65), 0 0 0 1px rgb(255 255 255 / .35); animation: dv-in .16s cubic-bezier(.2,.8,.2,1); }
.docview::backdrop { background: rgb(10 24 44 / .42); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); animation: dv-fade .16s ease; }
@keyframes dv-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dv-fade { from { opacity: 0; } to { opacity: 1; } }
.docview-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 18px;
  background: rgb(255 255 255 / .72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgb(255 255 255 / .6); box-shadow: 0 1px 0 rgb(26 80 140 / .08); }
.docview-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--d-sky-2), var(--d-sky-3)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .8); }
.docview-ic .di { width: 20px; height: 20px; color: var(--d-blue-ink); }
.docview-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.docview-t b { font-weight: 600; font-size: 15px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docview-t span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.docview-chip { font-style: normal; font-size: 12px; font-weight: 500; color: var(--d-blue-ink); background: var(--d-sky-2); padding: 2px 8px; border-radius: 999px; }
.docview-pages { font-size: 12px; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.docview-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  color: var(--d-blue-ink); background: rgb(255 255 255 / .7); border: 1px solid var(--d-sky-3); transition: background .15s, border-color .15s; }
.docview-btn:hover { background: #fff; border-color: var(--d-blue); }
.docview-btn .di { width: 16px; height: 16px; }
.docview-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.docview-x:hover { background: rgb(14 23 38 / .07); color: var(--ink); }
.docview-x .di { width: 18px; height: 18px; color: currentColor; }
.docview-body { padding: 28px 24px 40px; gap: 22px;
  background: radial-gradient(70% 50% at 50% 0%, rgb(160 200 240 / .55), transparent 70%), linear-gradient(180deg, #e9f1fa, #dde8f4); }
.docview-fig { margin: 0; display: grid; justify-items: center; gap: 8px; }
.docview-fig figcaption { font-size: 12px; color: var(--muted); }
.docview-page { border-radius: 4px; box-shadow: 0 1px 2px rgb(14 23 38 / .08), 0 18px 40px -18px rgb(14 40 80 / .45); }
.docview-img { border-radius: 12px; box-shadow: 0 1px 2px rgb(14 23 38 / .08), 0 24px 50px -20px rgb(14 40 80 / .5); }
.docview-text { border-radius: 10px; box-shadow: 0 18px 40px -20px rgb(14 40 80 / .4); }
.docview-wait { display: flex; align-items: center; gap: 10px; }
.docview-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--d-sky-3); border-top-color: var(--d-blue); animation: dv-spin .8s linear infinite; }
@keyframes dv-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .docview-btn span, .docview-pages { display: none; } .docview-btn { padding: 0 10px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .docview-head { background: rgb(18 26 40 / .72); border-bottom-color: rgb(255 255 255 / .08); }
  :root:not([data-theme="light"]) .docview-btn { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
  :root:not([data-theme="light"]) .docview-btn:hover { background: rgb(255 255 255 / .12); }
  :root:not([data-theme="light"]) .docview-body { background: radial-gradient(70% 50% at 50% 0%, rgb(40 90 160 / .45), transparent 70%), linear-gradient(180deg, #121b28, #0d141f); }
  :root:not([data-theme="light"]) .docview { box-shadow: 0 50px 120px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .08); } }
:root[data-theme="dark"] .docview-head { background: rgb(18 26 40 / .72); border-bottom-color: rgb(255 255 255 / .08); }
:root[data-theme="dark"] .docview-btn { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
:root[data-theme="dark"] .docview-btn:hover { background: rgb(255 255 255 / .12); }
:root[data-theme="dark"] .docview-body { background: radial-gradient(70% 50% at 50% 0%, rgb(40 90 160 / .45), transparent 70%), linear-gradient(180deg, #121b28, #0d141f); }
:root[data-theme="dark"] .docview { box-shadow: 0 50px 120px -40px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .08); }
@media (prefers-reduced-motion: reduce) { .docview, .docview::backdrop { animation: none; } }
.sig-field { max-width: 640px; }
.sig-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.sig-head label:first-child { margin: 0; }
.sig-field textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; padding: 10px 12px; resize: vertical; }

/* Folders, take two: no panel behind them; each card is its own pane of frosted glass (a soft sky glow caught inside it,
   a white rim, a bright top edge and a soft shadow) sitting on the normal page */
.dfolders, :root[data-theme="dark"] .dfolders { padding: 0; border-radius: 0; overflow: visible; background: none; isolation: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfolders { background: none; } }
.dfold { overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, rgb(255 255 255 / .82), rgb(236 245 253 / .6));
  border: 1px solid rgb(255 255 255 / .9);
  box-shadow: 0 0 0 1px rgb(26 115 200 / .12), inset 0 1px 0 #fff, inset 0 -1px 0 rgb(26 115 200 / .06), 0 14px 30px -18px rgb(20 70 130 / .45);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.dfold::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 75%; height: 120%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(120 180 240 / .38), transparent); filter: blur(10px); }
.dfold::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(170deg, rgb(255 255 255 / .7) 0%, rgb(255 255 255 / 0) 38%); }
.dfold:hover { background: linear-gradient(145deg, rgb(255 255 255 / .92), rgb(230 242 253 / .72)); border-color: #fff; transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgb(26 115 200 / .22), inset 0 1px 0 #fff, 0 20px 36px -18px rgb(20 70 130 / .55); }
.dfold-misc { background: linear-gradient(145deg, rgb(255 255 255 / .6), rgb(240 246 252 / .4)); border-style: solid; }
.dfold-misc::before { background: radial-gradient(closest-side, rgb(150 170 200 / .3), transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfold { background: linear-gradient(145deg, rgb(40 56 80 / .55), rgb(20 30 46 / .45)); border-color: rgb(255 255 255 / .12);
    box-shadow: 0 0 0 1px rgb(0 0 0 / .3), inset 0 1px 0 rgb(255 255 255 / .12), 0 16px 34px -18px rgb(0 0 0 / .8); }
  :root:not([data-theme="light"]) .dfold::before { background: radial-gradient(closest-side, rgb(70 140 230 / .35), transparent); }
  :root:not([data-theme="light"]) .dfold::after { background: linear-gradient(170deg, rgb(255 255 255 / .1) 0%, transparent 38%); }
  :root:not([data-theme="light"]) .dfold:hover { background: linear-gradient(145deg, rgb(50 70 100 / .65), rgb(26 38 58 / .55)); border-color: rgb(255 255 255 / .2); } }
:root[data-theme="dark"] .dfold { background: linear-gradient(145deg, rgb(40 56 80 / .55), rgb(20 30 46 / .45)); border-color: rgb(255 255 255 / .12);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .3), inset 0 1px 0 rgb(255 255 255 / .12), 0 16px 34px -18px rgb(0 0 0 / .8); }
:root[data-theme="dark"] .dfold::before { background: radial-gradient(closest-side, rgb(70 140 230 / .35), transparent); }
:root[data-theme="dark"] .dfold::after { background: linear-gradient(170deg, rgb(255 255 255 / .1) 0%, transparent 38%); }
:root[data-theme="dark"] .dfold:hover { background: linear-gradient(145deg, rgb(50 70 100 / .65), rgb(26 38 58 / .55)); border-color: rgb(255 255 255 / .2); }
.dfold::before { inset: 0; width: auto; height: auto; border-radius: inherit; filter: none;
  background: radial-gradient(120% 90% at 100% 0%, rgb(140 190 240 / .22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(180 215 248 / .18), transparent 65%); }
.dfold-misc::before { background: radial-gradient(120% 90% at 100% 0%, rgb(160 175 200 / .16), transparent 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfold::before { background: radial-gradient(120% 90% at 100% 0%, rgb(70 140 230 / .22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(50 110 200 / .14), transparent 65%); } }
:root[data-theme="dark"] .dfold::before { background: radial-gradient(120% 90% at 100% 0%, rgb(70 140 230 / .22), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(50 110 200 / .14), transparent 65%); }
.sig-l { font-size: 13px; font-weight: 500; }
/* Settings, Your details: Send from your own email (Connect Gmail / Connect Outlook) */
.mail-conn { max-width: 640px; display: grid; gap: 8px; }
.mail-conn-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mail-conn-on { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.mail-conn .hint { margin: 0; }
.sig-acts { display: flex; align-items: center; gap: 12px; }
.sig-edit { min-height: 110px; max-height: 320px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--page); font-size: 14px; line-height: 1.5; outline: none; }
.sig-edit:focus { border-color: var(--d-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-blue) 20%, transparent); }
.sig-edit:empty::before { content: attr(data-empty); color: var(--faint); }
.sig-edit img { max-width: 240px; height: auto; vertical-align: middle; }
.sig-edit a { color: var(--d-blue); }

/* Icons: thin, sharp, black in light mode and white in dark */
.di, .dfold-ic, .dfold-kinds .di, .dtile-thumb .di-big, .dtile-kind .di, .cd-k .di, .pk-l .di, .docview-ic .di, .dock-ic .di, .docview-btn .di, .dback .di { color: var(--ink); opacity: 1; }
.dfold-ic { width: 32px; height: 32px; }
.dfold-kinds .di { width: 16px; height: 16px; opacity: .8; }
.dtile-thumb .di-big { width: 40px; height: 40px; opacity: .55; }
.cd-k.miss .di, .miss .pk-l .di { color: var(--muted); opacity: .6; }
.cd-k { color: var(--ink); }
svg.di { shape-rendering: geometricPrecision; }

/* 8 at a time */
.dpager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.dpager span { margin-right: 4px; }
.dpg { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--raised); cursor: pointer; }
.dpg:hover:not(:disabled) { border-color: var(--ink); }
.dpg:disabled { opacity: .35; cursor: default; }
.dpg .di { width: 16px; height: 16px; }
.dpg-next .di { transform: scaleX(-1); }

/* The full-access offer shown while trying the sample book */
.offer { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--raised); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgb(8 20 40 / .6), 0 0 0 1px rgb(255 255 255 / .2); animation: dv-in .3s cubic-bezier(.2,.8,.2,1); }
.offer::backdrop { background: rgb(10 24 44 / .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.offer-sky { position: relative; display: grid; align-content: space-between; gap: 22px; min-height: 150px; padding: 18px 22px 20px; background: #a9d2f2 url(../img/sky-hero-1200.jpg) 50% 30% / cover; color: #0e1726; }
.offer-mark { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.offer-line { margin: 0; font-size: 24px; line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; max-width: 15ch; }
.offer-line mark { background: #fff; color: #0e1726; padding: 0 .1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.offer-x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .75); color: #0e1726; cursor: pointer; }
.offer-x:hover { background: #fff; }
.offer-x svg { width: 14px; height: 14px; }
.offer-in { padding: 22px 24px 20px; display: grid; gap: 10px; }
.offer-in h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.offer-in p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.offer-form { display: grid; gap: 6px; margin-top: 6px; }
.offer-form label { font-size: 13px; font-weight: 500; margin-top: 6px; }
.offer-form input:not(.hp) { font: inherit; font-size: 15px; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--d-sky-3); background: var(--d-sky-1); color: var(--ink); }
.offer-form input:focus { outline: none; border-color: var(--d-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-blue) 20%, transparent); }
.offer-form .btn { margin-top: 12px; min-height: 44px; background: var(--d-blue); border-color: var(--d-blue); color: #fff; font-weight: 600; }
.offer-msg { min-height: 1.2em; font-size: 13px; }
.offer-msg.err { color: #c0392b; }
.offer-later { justify-self: center; font-size: 13px; margin-top: 2px; }
.offer .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.offer-form button.btn[type="submit"] { background: var(--d-blue); border-color: var(--d-blue); color: #fff; } .offer-form button.btn[type="submit"]:hover { background: var(--d-blue-ink); }

/* Folders, final: A · Frosted (macOS). A milky neutral pane, fine grain, hairline edge, soft shadow. No tint, no sheen. */
.dfold, .dfold-misc { isolation: isolate; overflow: hidden; border-style: solid;
  background: rgb(255 255 255 / .62); border: 1px solid rgb(14 23 38 / .07);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 8px 24px -14px rgb(14 23 38 / .28);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.dfold::before { content: none; display: none; }
.dfold::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .35; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.dfold:hover { background: rgb(255 255 255 / .82); border-color: rgb(14 23 38 / .12); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px -14px rgb(14 23 38 / .32); }
.dfold-misc { background: rgb(255 255 255 / .4); border-style: dashed; border-color: rgb(14 23 38 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dfold, :root:not([data-theme="light"]) .dfold-misc { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .09);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 10px 26px -14px rgb(0 0 0 / .7); }
  :root:not([data-theme="light"]) .dfold:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .14); }
  :root:not([data-theme="light"]) .dfold-misc { border-style: dashed; border-color: rgb(255 255 255 / .14); } }
:root[data-theme="dark"] .dfold, :root[data-theme="dark"] .dfold-misc { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .09);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 10px 26px -14px rgb(0 0 0 / .7); }
:root[data-theme="dark"] .dfold:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .14); }
:root[data-theme="dark"] .dfold-misc { border-style: dashed; border-color: rgb(255 255 255 / .14); }

/* Today, grouped into glass cards (the frosted style chosen for folders) */
.glass-pane { position: relative; isolation: isolate; overflow: hidden; background: rgb(255 255 255 / .62); border: 1px solid rgb(14 23 38 / .07); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 10px 28px -16px rgb(14 23 38 / .3); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); }
.glass-pane::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: .3; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.ti { width: 18px; height: 18px; flex: none; color: var(--ink); }
.gsec { margin-bottom: 30px; padding: 0 !important; border: 0 !important; background: none !important; }
.gsec-h { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 0 0 12px; padding: 0 !important; border: 0 !important; font-size: 15px !important; font-weight: 600 !important; color: var(--ink) !important; letter-spacing: -.01em; }
.gsec-ic, .gcard-ic { display: grid; place-items: center; flex: none; border: 1px solid rgb(14 23 38 / .1); }
.gsec-ic { width: 30px; height: 30px; border-radius: 9px; }
.gpill { font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px; border: 1px solid rgb(14 23 38 / .12); color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.5; }
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 760px) { .ggrid { grid-template-columns: 1fr; } }
.gcard { display: grid; grid-template-rows: auto 1fr auto; padding: 4px 18px 0; min-width: 0; }
.gcard-h { display: flex; align-items: center; gap: 10px; padding: 14px 0 12px; border-bottom: 1px solid rgb(14 23 38 / .07); }
.gcard-h h3 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; min-width: 0; }
.gcard-ic { width: 34px; height: 34px; border-radius: 10px; background: rgb(255 255 255 / .7); }
.gcard-list { list-style: none; margin: 0; padding: 0; align-self: start; }
.gcard-list > li.gi { border: 0 !important; border-top: 1px solid rgb(14 23 38 / .045) !important; margin: 0 -8px; padding: 0; background: none; }
.gcard-list > li.gi:first-child { border-top: 0 !important; }
.gcard-list > li.gi::before { display: none !important; }
.gi > button { display: grid !important; grid-template-columns: 32px minmax(0, 1fr) auto !important; gap: 12px !important; align-items: center; width: 100%; padding: 11px 8px !important; text-align: left; border-radius: 10px; }
.gi > button:hover, .gi.sel > button { background: rgb(14 23 38 / .04); }
.gi-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink); border: 1px solid rgb(14 23 38 / .1); background: rgb(255 255 255 / .6); }
.gi-txt { display: grid; gap: 2px; min-width: 0; }
.gi-name { font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.gi-why { font-size: 13.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.gi-why mark { background: #c4e3ff; color: #0e1726; padding: 1px 5px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.gi-also { font-size: 12.5px; line-height: 1.4; color: var(--ink); opacity: .75; }
:root[data-theme="dark"] .gi-why mark { background: #1d4a70; color: #eef3fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-why mark { background: #1d4a70; color: #eef3fa; } }
.gi-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.gi-meta i { font-style: normal; opacity: .6; }

.gi-when { font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.gi.u-now .gi-when { color: #c0392b; }
.gcard-f { min-height: 14px; }
.gcard-f:has(button) { border-top: 1px solid rgb(14 23 38 / .06); }
.gcard-f .link { display: block; width: 100%; text-align: left; padding: 11px 0; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.gcard-f .link:hover { text-decoration: underline; }
.mon-col > .gsec-h { margin-bottom: 12px; }
.monitor.glass-pane { padding: 18px !important; background: rgb(255 255 255 / .62); }
.m-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgb(14 23 38 / .1); margin-right: 8px; vertical-align: middle; font-style: normal; }
.m-ic .ti { width: 14px; height: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass-pane { background: rgb(255 255 255 / .045); border-color: rgb(255 255 255 / .09); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 12px 28px -16px rgb(0 0 0 / .7); }
  :root:not([data-theme="light"]) .gsec-ic, :root:not([data-theme="light"]) .gcard-ic, :root:not([data-theme="light"]) .gi-av, :root:not([data-theme="light"]) .m-ic { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); }
  :root:not([data-theme="light"]) .gpill { border-color: rgb(255 255 255 / .14); }
  :root:not([data-theme="light"]) .gcard-h, :root:not([data-theme="light"]) .gcard-f:has(button) { border-color: rgb(255 255 255 / .07); }
  :root:not([data-theme="light"]) .gcard-list > li.gi { border-top-color: rgb(255 255 255 / .05) !important; }
  :root:not([data-theme="light"]) .gi > button:hover, :root:not([data-theme="light"]) .gi.sel > button { background: rgb(255 255 255 / .05); }
  :root:not([data-theme="light"]) .gi.u-now .gi-when { color: #ff8a7a; } }
:root[data-theme="dark"] .glass-pane { background: rgb(255 255 255 / .045); border-color: rgb(255 255 255 / .09); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06), 0 12px 28px -16px rgb(0 0 0 / .7); }
:root[data-theme="dark"] .gsec-ic, :root[data-theme="dark"] .gcard-ic, :root[data-theme="dark"] .gi-av, :root[data-theme="dark"] .m-ic { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .05); }
:root[data-theme="dark"] .gpill { border-color: rgb(255 255 255 / .14); }
:root[data-theme="dark"] .gcard-h, :root[data-theme="dark"] .gcard-f:has(button) { border-color: rgb(255 255 255 / .07); }
:root[data-theme="dark"] .gcard-list > li.gi { border-top-color: rgb(255 255 255 / .05) !important; }
:root[data-theme="dark"] .gi > button:hover, :root[data-theme="dark"] .gi.sel > button { background: rgb(255 255 255 / .05); }
:root[data-theme="dark"] .gi.u-now .gi-when { color: #ff8a7a; }
:root[data-theme="dark"] .monitor.glass-pane, :root:not([data-theme="light"]) .monitor.glass-pane { }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .monitor.glass-pane { background: rgb(255 255 255 / .045); } }
:root[data-theme="dark"] .monitor.glass-pane { background: rgb(255 255 255 / .045); }
/* Cards keep their own row layout at every width (the older phone layout for list rows doesn't apply here) */
.gi > button { grid-template-areas: none !important; grid-template-rows: auto !important; min-height: 0 !important; height: auto !important; }
.gi > button > * { grid-area: auto !important; grid-row: auto !important; grid-column: auto !important; }
.gi .gi-when { align-self: center; }
.docs-cap { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; font-size: 14px; color: var(--ink); background: color-mix(in srgb, #c27c0e 12%, transparent); border: 1px solid color-mix(in srgb, #c27c0e 35%, transparent); }

/* Clawback: a quiet amber tag on Today cards, and the schedule table in Settings */
.gi-cb { color: #8a5a00; font-weight: 500; }
:root[data-theme="dark"] .gi-cb { color: #e8b04c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-cb { color: #e8b04c; } }
.claw-table { border-top: 1px solid var(--ink); margin: 14px 0 8px; }
.claw-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule, #e1e5eb); font-size: var(--t-sm, 15px); }
.claw-h { color: var(--muted); font-size: 13px; }
.claw-row em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 6px; }
.claw-row input { width: 100%; font: inherit; font-variant-numeric: tabular-nums; padding: 7px 10px; border: 1px solid var(--rule, #d5dae1); border-radius: 8px; background: transparent; color: inherit; }
@media (max-width: 560px) { .claw-row { grid-template-columns: 1fr; gap: 4px; } }

/* Calls with notes */
.call-btn { display: inline-flex; align-items: center; gap: 6px; }
.call-btn svg { width: 15px; height: 15px; }
.fact-call { display: flex; align-items: end; }
.rv-to + .call-btn { margin-left: 12px; }
.calldlg { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 28px; background: var(--page, #fff); color: var(--ink); box-shadow: 0 30px 80px -30px rgb(14 23 38 / .45); }
.calldlg::backdrop { background: rgb(10 24 44 / .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.calldlg h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 32px 8px 0; }
.calldlg-p { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.calldlg textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.5; padding: 12px; border: 1px solid var(--line, #d5dae1); border-radius: 10px; background: transparent; color: inherit; resize: vertical; }
.calldlg-acts { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.calldlg .close { position: absolute; top: 18px; right: 18px; }
/* The Calls page */
.calls-use { display: grid; gap: 6px; justify-items: end; font-size: 13px; color: var(--muted); }
.calls-use b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.calls-use i { display: block; width: 180px; height: 4px; border-radius: 2px; background: rgb(14 23 38 / .1); overflow: hidden; }
.calls-use em { display: block; height: 100%; background: var(--d-blue, #1a73c8); }
.calls-dial { padding: 16px 18px; margin: 4px 0 22px; }
.calls-dial .dial-how { font-size: 12.5px; margin-top: 8px; opacity: .8; }
.calls-dial label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.dial-row { display: flex; gap: 10px; }
.dial-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid rgb(14 23 38 / .14); border-radius: 10px; background: rgb(255 255 255 / .8); color: inherit; }
.dial-row .btn, .calls-list .btn { display: inline-flex; align-items: center; gap: 8px; }
.dial-row .btn svg, .calls-list .btn svg { width: 16px; height: 16px; }
.dial-msg { min-height: 1.2em; margin: 8px 0 0; font-size: 13px; color: #b42318; }
.dial-how { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.calls-sec { margin-bottom: 28px; }
.calls-list { list-style: none; margin: 0; padding: 4px 18px; }
.calls-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgb(14 23 38 / .06); }
.calls-list li:first-child { border-top: 0; }
.calls-list b { display: block; font-weight: 600; font-size: 15px; }
.calls-list span { font-size: 13px; color: var(--muted); }
.calls-list p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2, #33384a); white-space: pre-line; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dial-row input { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); } }
:root[data-theme="dark"] .dial-row input { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
.calls-top { display: flex; align-items: center; gap: 20px; }
.dial-name { margin-top: 12px; }
.dial-name label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.dial-name input { width: 100%; max-width: 420px; height: 42px; padding: 0 12px; font: inherit; border: 1px solid rgb(14 23 38 / .14); border-radius: 10px; background: rgb(255 255 255 / .8); color: inherit; }
.calldlg .dial-name input { max-width: none; }

/* Calls dashboard */
.calls-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.cs { display: grid; gap: 6px; align-content: start; padding: 16px 18px; text-align: left; font: inherit; color: inherit; }
.cs span { font-size: 13px; color: var(--muted); }
.cs b { font-size: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cs b small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.cs i { display: block; height: 4px; border-radius: 2px; background: rgb(14 23 38 / .1); overflow: hidden; margin-top: 2px; }
.cs i em { display: block; height: 100%; background: var(--d-blue, #1a73c8); }
.cs-link { cursor: pointer; transition: transform .2s; } .cs-link:hover { transform: translateY(-1px); }
.calls-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.cl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-head .gsec-h { margin: 0 !important; }
.cl-tabs { display: flex; gap: 4px; }
.cl-tab { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.cl-tab.on { color: var(--ink); background: rgb(255 255 255 / .7); border-color: rgb(14 23 38 / .1); }
.cl-tab span { font-variant-numeric: tabular-nums; color: var(--d-blue, #1a73c8); margin-left: 2px; }
.cl-search { margin-left: auto; height: 34px; min-width: 160px; max-width: 220px; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid rgb(14 23 38 / .12); border-radius: 8px; background: rgb(255 255 255 / .7); color: inherit; }
.cl-list { display: grid; gap: 12px; }
.callcard { padding: 16px 18px; display: grid; gap: 10px; }
.callcard header { display: flex; align-items: center; gap: 12px; }
.cc-av { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: rgb(255 255 255 / .8); border: 1px solid rgb(14 23 38 / .1); }
.cc-who { min-width: 0; flex: 1; display: grid; gap: 2px; }
.cc-who b { font-size: 15px; font-weight: 600; }
.cc-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cc-dir { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.cc-dir svg { width: 13px; height: 13px; } .cc-dir.in { color: #11804c; background: rgb(17 128 76 / .1); } .cc-dir.out { color: var(--d-blue, #1a73c8); background: rgb(26 115 200 / .1); }
.cc-badge { flex: none; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 6px; }
.cc-badge.to-review { background: #e3effb; color: #0f4c8a; } .cc-badge.saved { background: rgb(17 128 76 / .1); color: #11804c; } .cc-badge.none { background: rgb(14 23 38 / .06); color: var(--muted); }
.cc-sum { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.cc-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cc-more dl { display: block; columns: 2 260px; column-gap: 28px; margin: 10px 0 0; } .cc-more dl > div { break-inside: avoid; margin: 0 0 14px; }
.cc-more dt { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cc-more dd { margin: 0; font-size: 13.5px; } .cc-more ul { margin: 0; padding-left: 16px; } .cc-more li { margin: 2px 0; }
.callcard footer { display: flex; gap: 8px; flex-wrap: wrap; }
.calls-side .gsec-h { margin: 0 0 12px !important; justify-content: flex-start; text-align: left; min-height: 34px; }
.calls-side { text-align: left; }
.calls-side .calls-list { margin-bottom: 20px; }
.calls-none, .calls-empty p { color: var(--muted); font-size: 14px; }
.calldlg-meta { margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.nf { display: grid; gap: 5px; margin-bottom: 12px; }
.nf label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nf textarea, .nf input, .nf select { width: 100%; font: inherit; font-size: 14.5px; line-height: 1.45; padding: 9px 11px; border: 1px solid var(--line, #d5dae1); border-radius: 9px; background: transparent; color: inherit; }
.nf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.nf-date { grid-template-columns: auto 180px 1fr; align-items: center; gap: 10px; }
.nf-date span { font-size: 12.5px; color: var(--muted); }
.calldlg { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
@media (max-width: 900px) { .calls-grid { grid-template-columns: 1fr; } .calls-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .nf-two { grid-template-columns: 1fr; } .cc-more dl { columns: 1; } .nf-date { grid-template-columns: 1fr; } .cl-search { margin-left: 0; width: 100%; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl-tab.on, :root:not([data-theme="light"]) .cl-search { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); } :root:not([data-theme="light"]) .cc-badge.to-review { background: rgb(90 166 238 / .16); color: #9cc8f2; } }
:root[data-theme="dark"] .cl-tab.on, :root[data-theme="dark"] .cl-search { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .12); }
.dial-msg:empty { display: none; }

/* Home: add anything to the book by typing it */
.qadd { margin: 4px 0 28px; display: grid; gap: 8px; }
.qadd-l { font-size: 14px; font-weight: 600; }
.qadd-row { display: flex; gap: 10px; }
.qadd-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 16px; border: 1px solid rgb(14 23 38 / .14); border-radius: 10px; background: rgb(255 255 255 / .85); color: inherit; }
.qadd-row input:focus { outline: 2px solid var(--blue, #1a73c8); outline-offset: 1px; }
.qadd-out:empty { display: none; }
.qadd-ask { border: 1px solid rgb(14 23 38 / .12); border-radius: 10px; padding: 14px 16px; background: rgb(196 227 255 / .25); display: grid; gap: 10px; }
.qadd-ask p { margin: 0; }
.qadd-ask > ul:not(.qadd-hits) { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qadd-ask > ul:not(.qadd-hits) { grid-template-columns: max-content minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
.qadd-ask > ul:not(.qadd-hits) > li { display: contents; font-size: 14px; }
.qadd-ask > ul:not(.qadd-hits) > li span { color: var(--muted); font-size: 14px; }
.qadd-ask > ul:not(.qadd-hits) > li b { font-size: 14px; overflow-wrap: anywhere; }
.qadd-ask > ul:not(.qadd-hits) > li b { font-weight: 500; }
.qadd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.qadd-miss { margin: 0; font-size: 14px; color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qadd-row input { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); } :root:not([data-theme="light"]) .qadd-ask { border-color: rgb(255 255 255 / .12); background: rgb(29 74 112 / .3); } }
:root[data-theme="dark"] .qadd-row input { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
:root[data-theme="dark"] .qadd-ask { border-color: rgb(255 255 255 / .12); background: rgb(29 74 112 / .3); }

/* Documents: how a client earns decides their checklist */
.docs-income { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.docs-income label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.docs-income select { font: inherit; font-weight: 400; padding: 4px 8px; border: 1px solid rgb(14 23 38 / .14); border-radius: 6px; background: transparent; color: inherit; }

/* Attach files to a drafted email */
.attach-dlg { border: 1px solid rgb(14 23 38 / .12); border-radius: 12px; padding: 22px 24px; width: min(520px, calc(100vw - 32px)); background: var(--bg, #fff); color: var(--ink); box-shadow: 0 30px 80px -30px rgb(14 23 38 / .4); }
.attach-dlg::backdrop { background: rgb(14 23 38 / .35); }
.attach-dlg h2 { font-size: 18px; font-weight: 500; margin: 0 0 14px; }
.attach-dlg ul { list-style: none; margin: 0; padding: 0; max-height: 50vh; overflow: auto; border-top: 1px solid rgb(14 23 38 / .1); }
.attach-dlg li { border-bottom: 1px solid rgb(14 23 38 / .08); }
.attach-dlg label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 2px; cursor: pointer; }
.attach-dlg label span { display: grid; gap: 2px; min-width: 0; }
.attach-dlg label b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.attach-dlg label small { font-size: 12.5px; color: var(--muted); }
.attach-acts { display: flex; gap: 16px; align-items: center; margin-top: 16px; }

/* Home: the people to call first, with why, at reading size */
.hcall { display: grid; align-content: start; gap: 6px; padding: 20px 22px 14px; border-radius: 16px; background: var(--wash, #f0f8ff); border: 1px solid rgb(14 23 38 / .08); min-width: 0; }
.hcall-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 8px; }
.hcall-h h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hcall-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.hcall-list { margin: 0 -10px; }
.hcall-list > li.gi > button { border-radius: 10px; }
.hcall-more { justify-self: start; margin-top: 4px; font-size: 13.5px; color: var(--ink); text-underline-offset: 4px; }
.hcall-none { color: var(--muted); }
.hlead { align-items: start; }
.hlead-side { align-content: start; }
.hwhy { padding: 16px 18px 10px; border: 1px solid rgb(14 23 38 / .08); border-radius: 12px; background: var(--bg, #fff); }
.hwhy h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.hwhy ul { list-style: none; margin: 0; padding: 0; }
.hwhy li a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgb(14 23 38 / .06); color: var(--ink); text-decoration: none; font-size: 14px; }
.hwhy li:first-child a { border-top: 0; }
.hwhy li a:hover span:nth-child(2) { text-decoration: underline; text-underline-offset: 3px; }
.hwhy-ic { display: grid; place-items: center; color: var(--muted); }
.hwhy-ic svg { width: 18px; height: 18px; }
.hwhy b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hcall-h .btn { white-space: nowrap; flex: none; }
@media (max-width: 560px) { .hcall { padding: 16px 14px 10px; } .hcall-h h2 { font-size: 20px; } .hcall-list { margin: 0 -6px; } }

/* Draft header: channel tabs, recipient and buttons wrap instead of squeezing */
.compose-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.compose-head .rv-to { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.compose-head .btn { white-space: nowrap; flex: none; }
.rv-to + .call-btn { margin-left: 0; }
.rv-compose, .rv-compose > * { min-width: 0; }
/* Life events (new baby, wedding, new job, referral chance): easy to spot on every card */
.gi-tag { color: #0e1726; font-weight: 600; }
.gi-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1a73c8; margin: 0 6px 1px 0; vertical-align: middle; }
:root[data-theme="dark"] .gi-tag { color: #eef3fa; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-tag { color: #eef3fa; } }

.calls-dial, .calls-grid, .calls-log, .calls-side, .calls-stats { min-width: 0; }

/* Home uses the full width, like Today */
.page:has(.hlead) { max-width: none; }
/* A section reached from Home's side panel flashes once */
.flash { animation: flash .8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px #c4e3ff; } 100% { box-shadow: 0 0 0 3px transparent; } }

/* Home: Results and folders in the same frosted glass as Today */
.hres.glass-pane, .fcard.glass-pane { border-radius: 16px; }
.hres.glass-pane .hres-i { background: transparent; border-color: rgb(14 23 38 / .06); }
.fcard.glass-pane { background-clip: padding-box; }
.fcard.glass-pane:hover { background: rgb(255 255 255 / .78); }
.fcard-new.glass-pane { border-style: dashed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hres.glass-pane .hres-i { border-color: rgb(255 255 255 / .07); } :root:not([data-theme="light"]) .fcard.glass-pane:hover { background: rgb(255 255 255 / .07); } }
:root[data-theme="dark"] .hres.glass-pane .hres-i { border-color: rgb(255 255 255 / .07); }
:root[data-theme="dark"] .fcard.glass-pane:hover { background: rgb(255 255 255 / .07); }
/* Frosted glass, a tint darker */
.glass-pane, .monitor.glass-pane { background: rgb(232 239 247 / .72); border-color: rgb(14 23 38 / .09); }
.fcard.glass-pane:hover { background: rgb(222 232 243 / .82); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass-pane, :root:not([data-theme="light"]) .monitor.glass-pane { background: rgb(6 9 15 / .42); border-color: rgb(255 255 255 / .08); } :root:not([data-theme="light"]) .fcard.glass-pane:hover { background: rgb(6 9 15 / .55); } }
:root[data-theme="dark"] .glass-pane, :root[data-theme="dark"] .monitor.glass-pane { background: rgb(6 9 15 / .42); border-color: rgb(255 255 255 / .08); }
:root[data-theme="dark"] .fcard.glass-pane:hover { background: rgb(6 9 15 / .55); }

/* Client view on narrower screens: who and why, then the draft, then the details (instead of the draft at the bottom) */
@media (max-width: 999px) {
  .page.wide .rv { gap: 24px; min-height: 0; }
  .page.wide .rv-client { display: contents; }
  .page.wide .rv-who { order: 1; }
  .page.wide .rv-compose { order: 2; }
  .page.wide .rv-client > :not(.rv-who) { order: 3; }
  .page.wide .rv-compose .message { min-height: 220px; font-size: 16px; line-height: 1.6; padding: 18px; }
}
@media (min-width: 600px) and (max-width: 999px) {
  .page.wide .rv-client .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  .page.wide .rv { grid-template-columns: minmax(17rem, 4fr) minmax(0, 7fr); gap: 36px; }
  .page.wide .rv-compose .message { font-size: 16px; line-height: 1.6; padding: 20px 22px; }
  .page.wide .rv-who h1 { font-size: 34px; }
}

/* A note the broker just added: on the card, so it's not lost */
.gi-note { font-size: 12.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.gi-note::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #147a3d; margin: 0 6px 1px 0; vertical-align: middle; }

/* Client page: the client and the message each sit in their own padded panel */
@media (min-width: 1000px) {
  .page.wide .rv-client.glass-pane, .page.wide .rv-compose.glass-pane { padding: 26px 28px 28px; border-radius: 18px; }
  .page.wide .rv { align-items: start; }
}
@media (max-width: 999px) {
  .page.wide .rv-client.glass-pane { background: none; border: 0; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .page.wide .rv-client.glass-pane::after { display: none; }
  .page.wide .rv-compose.glass-pane { padding: 18px; border-radius: 16px; }
}
/* Notes on the client page */
.notes-box { display: grid; gap: 10px; }
.notes-box h2 { font-size: 15px; font-weight: 600; margin: 0; }
.notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgb(14 23 38 / .08); }
.notes-list li { padding: 10px 0; border-bottom: 1px solid rgb(14 23 38 / .06); display: grid; gap: 3px; }
.notes-list li p { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.notes-list li span { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.notes-list li.none { color: var(--muted); font-size: 13.5px; }
.notes-box textarea { font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(14 23 38 / .14); background: transparent; color: inherit; resize: vertical; }
.notes-acts { display: flex; justify-content: flex-end; }
:root[data-theme="dark"] .notes-list, :root[data-theme="dark"] .notes-list li { border-color: rgb(255 255 255 / .07); }
:root[data-theme="dark"] .notes-box textarea { border-color: rgb(255 255 255 / .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notes-list, :root:not([data-theme="light"]) .notes-list li { border-color: rgb(255 255 255 / .07); } :root:not([data-theme="light"]) .notes-box textarea { border-color: rgb(255 255 255 / .14); } }

/* Calls: which number clients see, made obvious */
.cid { border: 0; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; max-width: 640px; }
.cid legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.cid-opt { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 14px 16px; border: 1px solid rgb(14 23 38 / .12); border-radius: 12px; cursor: pointer; }
.cid-opt.on, .cid-opt:has(input:checked) { border-color: #1a73c8; box-shadow: 0 0 0 1px #1a73c8 inset; background: rgb(196 227 255 / .18); }
.cid-opt input { grid-row: span 2; margin-top: 3px; accent-color: #1a73c8; }
.cid-opt b { font-weight: 600; font-size: 14.5px; }
.cid-opt span { grid-column: 2; font-size: 13px; color: var(--muted); line-height: 1.45; }
.cid-status { grid-column: 3; grid-row: 1; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgb(14 23 38 / .06); white-space: nowrap; }
.dial-from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 12px 0 0; font-size: 14px; }
.dial-from span { color: var(--muted); }
.dial-from b { font-weight: 600; }
.dial-from a { font-size: 13px; color: inherit; text-underline-offset: 3px; }
:root[data-theme="dark"] .cid-opt { border-color: rgb(255 255 255 / .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cid-opt { border-color: rgb(255 255 255 / .12); } :root:not([data-theme="light"]) .cid-status { background: rgb(255 255 255 / .08); } }
:root[data-theme="dark"] .cid-status { background: rgb(255 255 255 / .08); }

/* Draft banner: what kinds of messages are in this week's batch */
.auto-title .mix { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.mix-i { font-size: 12.5px; padding: 2px 9px; border-radius: 999px; background: rgb(255 255 255 / .7); border: 1px solid rgb(14 23 38 / .08); color: var(--ink); }
:root[data-theme="dark"] .mix-i { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mix-i { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .1); } }

/* Investor relations: wholesale status and message checks */
.ws-badge { display: inline-block; margin: .5rem 0 0; padding: .3rem .6rem; border-radius: 8px; font-size: .82rem; font-weight: 500; }
.ws-ok { background: color-mix(in srgb, #1f9d55 12%, transparent); color: #17703f; }
.ws-warn { background: color-mix(in srgb, #d97706 14%, transparent); color: #92400e; }
.ws-stop { background: color-mix(in srgb, #dc2626 12%, transparent); color: #9f1d1d; }
.meta .warn { display: block; margin-top: .25rem; color: #b42318; }

.gi-ent { font-size: .8em; font-weight: 400; color: var(--muted, #667085); }

/* Calls: client picker */
.dial-box { position: relative; flex: 1; min-width: 0; }
.dial-box input { width: 100%; }
.dial-sug { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--raised, #fff); border: 1px solid var(--line, #e4e7ec); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); max-height: 360px; overflow-y: auto; }
.dial-sug li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.dial-sug li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-sug li span { color: var(--muted, #667085); font-variant-numeric: tabular-nums; }
.dial-sug li em { grid-column: 1 / -1; font-style: normal; font-size: .82em; color: var(--accent, #1d6fd8); }
.dial-sug li:hover, .dial-sug li.on { background: color-mix(in srgb, var(--accent, #1d6fd8) 9%, transparent); }

/* Sidebar: long folder lists fold away */
.nav-more > summary { list-style: none; cursor: pointer; padding: 8px 12px; font-size: .86rem; color: var(--muted, #667085); border-radius: 8px; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::before { content: '+'; display: inline-block; width: 18px; margin-right: 8px; text-align: center; }
.nav-more[open] > summary::before { content: '−'; }
.nav-more > summary:hover { color: inherit; background: color-mix(in srgb, currentColor 6%, transparent); }
.fmore { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: var(--muted, #667085); font-size: .86rem; }
.calls-dial { overflow: visible; position: relative; z-index: 6; }
.nav-more[open] { display: flex; flex-direction: column; }
.nav-more[open] > summary { order: 1; }
/* Calls: locked until a Calls access code is entered */
.unlock { display: grid; gap: 8px; margin-top: 8px; }
.unlock label { font-size: .86rem; font-weight: 500; }
.unlock input { font: inherit; padding: 10px 12px; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; letter-spacing: .02em; }
.unlock-msg:empty { display: none; }
.unlock-msg { color: #b42318; margin: 0; }
.unlock-help { font-size: .85rem; margin-top: 10px; }

/* Call notes: stage, details to save, transcript */
.cc-stage { display: inline-block; width: fit-content; justify-self: start; align-self: start; margin: 8px 0 0; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 500; text-transform: capitalize; background: color-mix(in srgb, currentColor 8%, transparent); }
.cc-stage.stage-hot { color: #b42318; } .cc-stage.stage-warm { color: #b54708; } .cc-stage.stage-cold { color: #475467; }
.cc-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--accent, #1d6fd8) 8%, transparent); font-size: .9rem; }
.cc-save b { font-weight: 500; }
.cc-trans p { white-space: pre-wrap; max-height: 320px; overflow-y: auto; font-size: .9rem; line-height: 1.55; }
/* Import: pick the practice (each opens its own address and client list) */
.practice-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.practice-pick > span { font-size: .86rem; color: var(--muted, #667085); margin-right: 4px; }
.practice-pick a { padding: 8px 14px; border: 1px solid var(--line, #d0d5dd); border-radius: 999px; font-size: .9rem; text-decoration: none; color: inherit; }
.practice-pick a[aria-current] { background: var(--ink, #101828); border-color: var(--ink, #101828); color: #fff; }
.practice-pick a:not([aria-current]):hover { background: color-mix(in srgb, currentColor 6%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .practice-pick a[aria-current] { background: #f2f4f7; border-color: #f2f4f7; color: #101828; } }
:root[data-theme="dark"] .practice-pick a[aria-current] { background: #f2f4f7; border-color: #f2f4f7; color: #101828; }

/* Onboarding: two clear steps on Import */
.onb-step { margin: 0 0 28px; }
.onb-step > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 600; margin: 0 0 12px; }
.onb-step > h2 span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink, #101828); color: #fff; font-size: .85rem; }
.practice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.practice-cards a { position: relative; display: grid; gap: 6px; padding: 18px 20px; border: 1.5px solid var(--line, #d0d5dd); border-radius: 14px; text-decoration: none; color: inherit; background: var(--raised, #fff); }
.practice-cards a b { font-weight: 600; font-size: 1rem; }
.practice-cards a span { color: var(--muted, #667085); font-size: .88rem; line-height: 1.4; }
.practice-cards a i { position: absolute; top: 14px; right: 14px; font-style: normal; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent, #1d6fd8); color: #fff; }
.practice-cards a[aria-current] { border-color: var(--accent, #1d6fd8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #1d6fd8) 18%, transparent); }
.practice-cards a:not([aria-current]):hover { border-color: color-mix(in srgb, var(--accent, #1d6fd8) 50%, var(--line, #d0d5dd)); }
.imp-more { margin: 0 0 14px; }
.imp-more > summary { cursor: pointer; color: var(--muted, #667085); font-size: .88rem; }
.imp-more .imp-into { margin-top: 10px; }
/* Import summary */
.found { max-width: 760px; }
.found-file { margin: 0; color: var(--muted, #667085); font-size: .88rem; }
.found h1 { margin: 4px 0 18px; }
.found-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.found-list li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raised, #fff); border: 1px solid var(--line, #e4e7ec); }
.found-list li > i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .8rem; }
.found-list li.ok > i { background: color-mix(in srgb, #12b76a 16%, transparent); color: #067647; }
.found-list li.bad > i { background: color-mix(in srgb, #f04438 16%, transparent); color: #b42318; }
.found-list li.meh > i { background: color-mix(in srgb, currentColor 8%, transparent); color: var(--muted, #667085); }
.found-list li b { display: block; font-weight: 600; }
.found-list li span { color: var(--muted, #667085); font-size: .9rem; }
.found-list .fixes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.found-warn { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, #f79009 12%, transparent); font-size: .9rem; }
.found-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.btn-big { font-size: 1.02rem; padding: 14px 22px; }
.map-more { margin-top: 28px; }
.map-more > summary { cursor: pointer; color: var(--muted, #667085); }
.practice-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin: 0 0 20px; border-radius: 12px; background: color-mix(in srgb, var(--accent, #1d6fd8) 10%, transparent); }
.practice-switch b { display: block; } .practice-switch span { font-size: .9rem; color: var(--muted, #667085); }
/* Home: first-time welcome */
.tour { padding: 20px 22px; margin: 0 0 20px; }
.tour h2 { margin: 0 0 12px; font-size: 1.05rem; }
.tour ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.tour li b { display: block; } .tour li span { color: var(--muted, #667085); font-size: .9rem; }
.tour-acts { display: flex; gap: 16px; align-items: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .practice-cards a, :root:not([data-theme="light"]) .found-list li { background: transparent; } }
:root[data-theme="dark"] .practice-cards a, :root[data-theme="dark"] .found-list li { background: transparent; }
.onb-wait .onb-body { opacity: .35; filter: grayscale(.4); }
.onb-hint { margin: -4px 0 12px; color: var(--accent, #1d6fd8); font-weight: 500; }
/* Onboarding, easy to follow at a glance: bigger steps, bigger text, one clear order */
.onb-step { margin: 0 0 36px; }
.onb-step > h2 { display: flex; align-items: center; gap: 14px; font-size: 1.45rem; line-height: 1.2; margin: 0 0 18px; }
.onb-step > h2 > span { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink, #101828); color: #fff; font-size: 1.15rem; font-weight: 600; }
.onb-step > h2 > div { display: grid; gap: 2px; }
.onb-step > h2 small { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #667085); }
.onb-wait > h2 > span { background: color-mix(in srgb, var(--ink, #101828) 35%, transparent); }
.practice-cards { gap: 16px; }
.practice-cards a { padding: 22px 24px; min-height: 120px; align-content: start; }
.practice-cards a b { font-size: 1.12rem; }
.practice-cards a[aria-current] b { padding-right: 76px; }
.practice-cards a span { font-size: 1rem; line-height: 1.45; }
.practice-cards a i { font-size: .8rem; padding: 3px 10px; }
.onb-hint { font-size: 1.05rem; margin: -6px 0 16px 54px; }
.onb-body > .imp-more { margin: 16px 0 0; }
.imp-drop strong { font-size: 1.25rem; }
.imp-drop span { font-size: 1rem; }
.found h1 { font-size: 2rem; }
.found-list li { padding: 14px 16px; }
.found-list li b { font-size: 1.05rem; }
.found-list li span { font-size: .98rem; }
@media (max-width: 640px) { .onb-step > h2 { font-size: 1.25rem; } .onb-step > h2 > span { width: 34px; height: 34px; } .onb-hint { margin-left: 0; } }
/* Sending a file to be set up, and the banner while it's with us */
.send-fix { margin-top: 24px; padding: 18px 20px; display: grid; gap: 12px; max-width: 760px; }
.send-fix b { display: block; font-size: 1.05rem; } .send-fix span { color: var(--muted, #667085); }
.send-ok { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.send-ok input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.send-fix .btn { justify-self: start; }
.send-msg:empty { display: none; } .send-msg { margin: 0; color: #b42318; }
.fix-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 0 0 24px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #1d6fd8) 9%, transparent); font-size: 1rem; }
.fix-banner b { display: block; font-size: 1.1rem; } .fix-banner span { color: var(--muted, #667085); }
.fix-banner.ready { background: color-mix(in srgb, #12b76a 12%, transparent); }

/* Welcome back, from the website */
.welcome-back { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; margin: 0 0 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #1d6fd8) 9%, transparent); }
.welcome-back b { display: block; font-size: 1.15rem; } .welcome-back span { color: var(--muted, #667085); }
/* Who should hear about this? */
.deal { padding: 20px 22px; margin: 20px 0; }
.deal h2 { margin: 0 0 4px; font-size: 1.2rem; }
.deal-sub { margin: 0 0 12px; color: var(--muted, #667085); font-size: .95rem; }
.deal-row { display: flex; gap: 10px; flex-wrap: wrap; }
.deal-row input { flex: 1 1 280px; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; background: var(--raised, #fff); color: inherit; }
.deal h3 { margin: 18px 0 8px; font-size: 1rem; } .deal h3 span, .deal-rel summary span { color: var(--muted, #667085); font-weight: 400; }
.deal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.deal-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--line, #e4e7ec); border-radius: 12px; }
.deal-item b { font-weight: 600; } .deal-item small { color: var(--muted, #667085); }
.deal-item span { display: block; color: var(--muted, #667085); font-size: .9rem; margin-top: 2px; }
.deal-item em { display: block; font-style: normal; font-size: .85rem; color: #b54708; margin-top: 4px; }
.deal-item.done { opacity: .6; }
.deal-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.deal-rel { margin-top: 16px; } .deal-rel summary { cursor: pointer; font-weight: 600; }
.deal-none, .deal-more { color: var(--muted, #667085); margin: 12px 0 0; }
/* Sign-in code: for when the email link opens in another browser */
.signin-code { display: grid; gap: 8px; margin-top: 12px; }
.signin-code label { font-weight: 500; }
.signin-code-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signin-code-row input { font: inherit; font-size: 1.2rem; letter-spacing: .2em; width: 10ch; padding: 10px 12px; border: 1px solid var(--line, #d0d5dd); border-radius: 10px; }
.signin-code-status:empty { display: none; }
.signin-have { justify-self: start; margin-top: 8px; }
/* Import, tidied: one column, a clear choice, the upload as the one big target */
.onb-step, .onb-step + .imp-foot, .found { max-width: 920px; }
.practice-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.practice-cards a { grid-template-columns: 22px 1fr; column-gap: 12px; row-gap: 6px; padding: 18px 20px; min-height: 0; }
.practice-cards a b { grid-column: 2; padding-right: 0 !important; line-height: 1.3; }
.practice-cards a span { grid-column: 2; }
.practice-cards .pc-dot { grid-row: 1; grid-column: 1; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line, #c4cad4); background: transparent; position: static; padding: 0; }
.practice-cards a[aria-current] .pc-dot { border-color: var(--accent, #1d6fd8); background: radial-gradient(circle, var(--accent, #1d6fd8) 0 5px, transparent 6px); }
.onb-body .imp { display: grid; grid-template-columns: 1fr; gap: 12px; }
.onb-body .imp-drop { min-height: 0; padding: 28px; }
.onb-body .imp-sample { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 14px 18px; min-height: 0; }
.onb-body .imp-sample strong { font-size: 1rem; } .onb-body .imp-sample span { flex: 1 1 260px; color: var(--muted, #667085); }
.onb-body .imp-sample .btn { margin: 0; }
@media (max-width: 760px) { .practice-cards { grid-template-columns: 1fr; } }
/* Sign-in: inputs and buttons the same height, in line */
.signin-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.signin-form input[type=email] { flex: 1 1 240px; }
.signin-form .btn, .signin-code-row .btn { display: inline-flex; align-items: center; }
.signin-code-row { align-items: stretch; }
.imp-signin .signin-form .btn, .imp-signin .signin-code-row .btn { margin-top: 0; }
.imp-signin .signin-form input, .imp-signin .signin-code-row input { margin: 0; }
.imp-signin .signin-status:empty { min-height: 0; }
.imp-signin .signin-code { margin-top: 4px; }
/* Import steps: a number and a title, with room under the page heading */
.ph + .onb-step, .ph + .fix-banner, .ph + .welcome { margin-top: 36px; }
.onb-step > h2 { gap: 14px; }
.onb-step { max-width: none; }

/* Editing a client, and saving a caller as one */
.client-edit { width: min(720px, calc(100vw - 32px)); }
.ce-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; max-height: 64vh; overflow-y: auto; padding: 2px; }
.ce-field { display: grid; gap: 4px; font-size: .9rem; } .ce-field > span { font-weight: 500; }
.ce-field input, .ce-field textarea, .ce-field select { font: inherit; padding: 9px 11px; border: 1px solid var(--line, #d0d5dd); border-radius: 9px; background: var(--raised, #fff); color: inherit; }
.ce-field.wide { grid-column: 1 / -1; }
.ce-more > summary { cursor: pointer; font-weight: 500; padding: 4px 0; } .ce-more > summary em { font-style: normal; font-weight: 400; color: var(--muted, #667085); margin-left: 6px; }
.ce-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 10px; }
@media (max-width: 560px) { .ce-more-grid { grid-template-columns: 1fr; } }
.ce-err { font-style: normal; color: #b42318; font-size: .82rem; } .ce-err:empty { display: none; } .ce-err.ce-warn { color: #8a5a00; } :root[data-theme="dark"] .ce-err.ce-warn { color: #f5c46b; }
.ce-acts { grid-column: 1 / -1; position: sticky; bottom: 0; background: inherit; padding-top: 6px; }
.edit-line { margin: 4px 0 8px; }
.note-edit { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line, #d0d5dd); border-radius: 8px; }
@media (max-width: 560px) { .ce-form { grid-template-columns: 1fr; } }

.ce-acts { position: static; padding-top: 10px; }
.client-edit .ce-form { padding-bottom: 4px; }
/* Confirmation messages: always readable (dark pill, white text), in light and dark */
.toast { background: #101828 !important; color: #fff !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #f2f4f7 !important; color: #101828 !important; } }
:root[data-theme="dark"] .toast { background: #f2f4f7 !important; color: #101828 !important; }
/* Call notes on a client: keep their lines */
.notes-list li p { white-space: pre-line; }
.cc-warn { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, #f79009 14%, transparent); font-size: .88rem; }
/* Dark mode: initials and stage pills readable */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cc-av { color: #f2f4f7; } :root:not([data-theme="light"]) .cc-stage { color: #f2f4f7; background: rgb(255 255 255 / .1); } }
:root[data-theme="dark"] .cc-av { color: #f2f4f7; } :root[data-theme="dark"] .cc-stage { color: #f2f4f7; background: rgb(255 255 255 / .1); }

/* Phones: bigger tap targets, room around the opt-out */
.optout-btn { margin-top: 10px; }
@media (pointer: coarse) {
  .btn-small { min-height: 40px; padding-left: 14px; padding-right: 14px; }
  .link { padding: 6px 0; }
  .signin-code-row input { width: 14ch; }
}
/* Phones: a bottom tab bar; Menu opens the full list, big and readable */
#tabbar { display: none; }
@media (max-width: 860px) {
  #tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--side, #f5f7fa); border-top: 1px solid var(--line, #e4e7ec); padding-bottom: env(safe-area-inset-bottom, 0px); }
  #tabbar a, #tabbar button { min-height: 58px; display: grid; place-items: center; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted, #667085); text-decoration: none; background: none; border: 0; }
  #tabbar a[aria-current] { color: var(--accent, #1d6fd8); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .side .nav { display: none; }
  .side.nav-open .nav { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: 56px; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; z-index: 44; padding: 12px 16px 24px; background: var(--side, #f5f7fa); }
  .side.nav-open .nav a, .side.nav-open .nav summary, .side.nav-open .nav button { font-size: 17px; min-height: 48px; display: flex; align-items: center; }
  .as-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
  .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important; }
}

.ce-form { align-items: start; }
.ce-acts { margin-top: 8px; border-top: 1px solid var(--line, #e4e7ec); padding-top: 12px; }
.qadd-acts small { opacity: .7; font-weight: 400; }

/* Settings: the hidden file picker never widens the page */
#s-sig-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.signin-code-row input { width: min(100%, 22ch) !important; }
/* Dark mode: "Mark as contacted" readable */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-contacted, :root:not([data-theme="light"]) .btn-done[data-sheet="contacted"] { color: #0b2b1f !important; } }
:root[data-theme="dark"] .btn-done[data-sheet="contacted"] { color: #0b2b1f !important; }
.qadd-q { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.qadd-q input[type="date"] { font: inherit; font-weight: 500; padding: 6px 10px; border: 1px solid var(--line, #d0d5dd); border-radius: 8px; background: var(--card, #fff); color: inherit; }
.deal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.deal-head h2 { overflow-wrap: anywhere; }
.save-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.save-row .hint { margin: 0; }
/* Add bar questions: label and answer on one line, centred */
.qadd-ask > ul:not(.qadd-hits) > li > * { align-self: center; }
.qadd-q { font-weight: 500; }
.qadd-q input[type="date"] { padding: 5px 10px; }
/* Deal results inside the add bar's box */
.qadd-deal .deal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qadd-deal .deal-head p { margin: 0; overflow-wrap: anywhere; }
.qadd-deal .deal-sub { margin: -4px 0 0; font-size: 14px; }
.qadd-deal h3 { margin: 6px 0 8px; font-size: 15px; } .qadd-deal h3 span { color: var(--muted); font-weight: 400; }
.qadd-deal .deal-item { background: rgb(255 255 255 / .7); border-color: rgb(14 23 38 / .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qadd-deal .deal-item { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); } }
:root[data-theme="dark"] .qadd-deal .deal-item { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.qadd-deal .deal-rel summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.qadd-deal .deal-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; row-gap: 10px; }
.qadd-deal .deal-acts { justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 900px) { .qadd-deal .deal-item { grid-template-columns: minmax(0, 1fr); } .qadd-deal .deal-acts { justify-content: flex-start; flex-wrap: wrap; } }
.qadd-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qadd-hit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; background: rgb(255 255 255 / .7); }
.qadd-hit span { display: grid; min-width: 0; } .qadd-hit b { font-weight: 600; } .qadd-hit small { color: var(--muted); overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qadd-hit { background: rgb(255 255 255 / .05); } }
:root[data-theme="dark"] .qadd-hit { background: rgb(255 255 255 / .05); }
.gi-wait { display: inline-flex; align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #1d4f7a; background: rgb(196 227 255 / .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-wait { color: #cfe6ff; background: rgb(29 74 112 / .55); } }
:root[data-theme="dark"] .gi-wait { color: #cfe6ff; background: rgb(29 74 112 / .55); }
.gi-waiting .gi-why mark { opacity: .75; }
/* All clients: a delete button at the end of each row */
#client-rows > li.item { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; }
#client-rows > li.item > [data-docs-for] { grid-column: 1 / -1; }
.crow-del { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; opacity: .35; transition: opacity .15s, background .15s, color .15s; }
.crow-del svg { width: 17px; height: 17px; }
#client-rows > li:hover .crow-del, .crow-del:focus-visible { opacity: 1; }
.crow-del:hover { color: #b42318; background: rgb(180 35 24 / .08); opacity: 1; }
@media (hover: none) { .crow-del { opacity: .7; } }
.edit-line .del-link { margin-left: 16px; }
.edit-line .del-link:hover { color: #b42318; }
.cols-head:has(+ #client-rows) { padding-right: 56px !important; }
/* Document previews under a client row */
.cdocs .dtiles { margin: 12px 0 4px 22px; max-width: 820px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 14px 12px; }
.cdocs .dtile { font-size: 13px; }
.twin-note { margin: 12px 0; padding: 12px 14px; border: 1px solid rgb(181 113 0 / .3); border-radius: 10px; background: rgb(255 214 140 / .18); display: grid; gap: 8px; font-size: 14px; }
.twin-note p { margin: 0; }
.twin-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.twin-chip { color: #8a5300 !important; border-color: rgb(181 113 0 / .35) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .twin-note { background: rgb(181 113 0 / .14); } :root:not([data-theme="light"]) .twin-chip { color: #f3c37a !important; } }
:root[data-theme="dark"] .twin-note { background: rgb(181 113 0 / .14); } :root[data-theme="dark"] .twin-chip { color: #f3c37a !important; }
.found-note { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 62ch; }
.clients-key { margin-top: 14px; border-top: 0; }
.mailpick h2 { margin: 0 0 6px; font-size: 1.15rem; } .mailpick p { margin: 0 0 14px; color: var(--muted); }
.mailpick-list { display: grid; gap: 8px; margin-bottom: 12px; } .mailpick-list .btn { justify-content: flex-start; text-align: left; }
.twin-note.mentioned { border-color: rgb(26 115 200 / .25); background: rgb(196 227 255 / .25); }
.calls-import { margin: 16px 0; padding: 14px 18px; }
.calls-import summary { cursor: pointer; font-weight: 600; } .calls-import summary span { font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 13px; }
.calls-import-msg { margin: 0 0 12px; color: var(--ink); font-weight: 500; font-size: 14px; } .calls-import-msg:empty { display: none; }
.calls-top { gap: 10px; flex-wrap: wrap; }
.nocontact-chip { color: var(--muted, #6b7280) !important; border-style: dashed !important; }
.cc-trans-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.callcard footer .cc-del { margin-left: auto; }
.tidy-note { margin: 0 0 10px; font-size: 13.5px; color: var(--muted, #6b7280); }
.tidy-note .link { margin-left: 6px; }
/* One kind of item this week (say, only job changes): the card takes the full width and its people flow into columns. */
.ggrid > .gcard:only-child { grid-column: 1 / -1; } /* a lone group: full width, people listed top to bottom */
.fix-banner.fix-top { margin: 0 0 20px; }

/* ---------- Ecommerce practice: warm paper ----------
   Beige paper and warm ink, with terracotta for "needs you", olive for done, and a few supporting colours:
   clay for urgent, ochre for soon, dusty plum for possible investors. Only on /ecommerce-mode/. */
:root[data-skin="ecommerce"] {
  --page: #fdfbf7; --side: #f8f4ec; --raised: #ffffff; --overlay: #ffffff;
  --line: #e8e0d1; --line-2: #ddd2bf;
  --ink: #2b2219; --ink-2: #4d4134; --muted: #7a6c5b; --faint: #a39582;
  --accent: #b5562f; --mark: #f1d3bf; --wash: #f6e6da; --ok: #5e6b2f;
  --cta: #5e6b2f; --cta-hover: #4b5625;
  --u-now: #b03a24; --u-soon: #b07a12; --u-week: #5e6b2f; --u-later: #b9ab95;
  --plum: #7d4e6b; --plum-wash: #efe0e8;
}
:root[data-skin="ecommerce"][data-theme="dark"] {
  --page: #1b1712; --side: #15120e; --raised: #241f18; --overlay: #2a241c;
  --line: #322a20; --line-2: #3d3428;
  --ink: #f1e8da; --ink-2: #d8cbb8; --muted: #a89984; --faint: #85775f;
  --accent: #e08a62; --mark: #5a3324; --wash: #2a1f18; --ok: #a7b46a;
  --cta: #6f7d35; --cta-hover: #829140;
  --u-now: #ef7a5f; --u-soon: #e0ae4e; --u-week: #a7b46a; --u-later: #4a3f31;
  --plum: #d39bbd; --plum-wash: #3a2633;
}
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) {
  --page: #1b1712; --side: #15120e; --raised: #241f18; --overlay: #2a241c;
  --line: #322a20; --line-2: #3d3428;
  --ink: #f1e8da; --ink-2: #d8cbb8; --muted: #a89984; --faint: #85775f;
  --accent: #e08a62; --mark: #5a3324; --wash: #2a1f18; --ok: #a7b46a;
  --cta: #6f7d35; --cta-hover: #829140;
  --u-now: #ef7a5f; --u-soon: #e0ae4e; --u-week: #a7b46a; --u-later: #4a3f31;
  --plum: #d39bbd; --plum-wash: #3a2633;
} }
:root[data-skin="ecommerce"] body { background: var(--page); }
:root[data-skin="ecommerce"] .glass-pane { background: color-mix(in srgb, var(--raised) 78%, transparent); border-color: var(--line); }
:root[data-skin="ecommerce"] .gi-why mark { background: var(--mark); color: var(--ink); }
:root[data-skin="ecommerce"] [data-gtype="prospect"] .gcard-ic, :root[data-skin="ecommerce"] [data-gtype="prospect"] h3 { color: var(--plum); }
:root[data-skin="ecommerce"] .gcard:has([data-gtype="prospect"]) .gi-why mark { background: var(--plum-wash); }
:root[data-skin="ecommerce"] .gcard:has([data-gtype="lapsed"]) .gi-why mark, :root[data-skin="ecommerce"] .gcard:has([data-gtype="atrisk"]) .gi-why mark { background: color-mix(in srgb, var(--u-now) 18%, transparent); }
:root[data-skin="ecommerce"] .gcard:has([data-gtype="reorder"]) .gi-why mark, :root[data-skin="ecommerce"] .gcard:has([data-gtype="partnercheck"]) .gi-why mark { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.ecom-links a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
:root[data-skin="ecommerce"] .facts > div { min-width: 0; }
:root[data-skin="ecommerce"] .facts dd { overflow-wrap: anywhere; }
:root[data-skin="ecommerce"] .facts > div.wide { grid-column: 1 / -1; }
.ecom-empty { max-width: 640px; margin: 40px 0; }
.ecom-empty h2 { font-size: 22px; margin: 0 0 8px; }
.ecom-empty p { color: var(--muted); margin: 0 0 20px; }
.ecom-empty-acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* Speak to add a contact (ecommerce) */
.ph:has(.va-open) { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.va-open { display: inline-flex; align-items: center; gap: 8px; }
.va-open svg, .va-mic svg { width: 18px; height: 18px; }
.voice-add .sheet-inner { max-width: 560px; }
.va-hint, .va-small, .va-heard { color: var(--muted); }
.va-small { font-size: 13px; }
.va-err { color: var(--u-now); display: block; margin-bottom: 6px; }
.va-mic { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 24px auto; padding: 28px 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised, var(--page)); color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.va-mic svg { width: 34px; height: 34px; color: var(--accent); }
.va-mic:hover, .va-mic:focus-visible { border-color: var(--accent); }
.va-live { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 24px 0; }
.va-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--u-now); animation: va-pulse 1.2s ease-in-out infinite; }
@keyframes va-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .va-dot { animation: none; } }
.va-working { margin: 32px 0; font-size: 17px; }
.va-heard { font-style: italic; border-left: 2px solid var(--line-2); padding-left: 12px; }
.va-same { background: var(--wash); padding: 10px 12px; border-radius: 8px; }
.va-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 16px 0; }
.va-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.va-form label.wide { grid-column: 1 / -1; }
.va-form input, .va-form select, .va-form textarea { font: inherit; font-size: 15px; color: var(--ink); background: var(--page); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; min-width: 0; }
.va-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .va-form { grid-template-columns: 1fr; } }
.li-sug { margin-top: 4px; }
.li-sug .li-h { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.li-sug ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.li-sug li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.li-sug li a { display: grid; color: var(--ink); text-decoration: none; min-width: 0; }
.li-sug li a span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.li-sug li small { grid-column: 1; color: var(--faint); font-size: 12px; }
.li-sug li .btn { grid-column: 2; grid-row: 1 / span 2; }
.facts > div.wide:has(> .li-sug) { display: block; grid-column: 1 / -1; }
.li-sug li { grid-template-columns: minmax(0, 1fr) max-content; }
.li-sug li .btn { white-space: nowrap; }
:root[data-skin="ecommerce"] body .hcall { background: #ffffff; border-color: var(--line); }
:root[data-skin="ecommerce"][data-theme="dark"] body .hcall { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) body .hcall { background: var(--raised); } }
.va-spell { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.va-spell .link { color: var(--accent); }
.facts div.li-wrap, .rv-client .facts div.li-wrap { display: block; padding: 12px 0; }
.li-sug .li-acts { margin: 0; font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.li-sug .li-acts a { color: var(--accent); }
.added-today { margin: 8px 0 28px; }
.added-today ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.added-today li button { width: 100%; text-align: left; display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
:root[data-skin="ecommerce"][data-theme="dark"] .added-today li button { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) .added-today li button { background: var(--raised); } }
.added-today li button:hover { border-color: var(--accent); }
.at-name { font-weight: 500; } .at-name small { color: var(--muted); font-weight: 400; }
.at-meta, .at-import, .at-more { font-size: 13px; color: var(--muted); }
.at-note { font-size: 13px; color: var(--ink-2); }
.li-upd ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.li-upd li { display: block; border: 0; padding: 0; font-size: 14px; }
.li-upd s { color: var(--faint); }
/* The store app reads best a little smaller on a laptop or desktop (as at 88% browser zoom); phones stay full size. */
@media (min-width: 1100px) {
  :root[data-skin="ecommerce"] body { zoom: .88; }
  /* Heights tied to the window shrink with the zoom, so they're scaled back up to fill it. */
  :root[data-skin="ecommerce"] .shell { min-height: 113.6vh; }
  :root[data-skin="ecommerce"] .side { height: 113.6vh; }
  :root[data-skin="ecommerce"] .page.wide .rv { min-height: calc(113.6vh - 150px); }
  :root[data-skin="ecommerce"] .choice.cw, :root[data-skin="ecommerce"] .addc { max-height: calc(113.6dvh - 24px); }
  :root[data-skin="ecommerce"] .calldlg { max-height: calc(113.6vh - 40px); }
}
.soc-sug li label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.soc-sug li a { color: var(--accent); overflow-wrap: anywhere; }
.soc-sug li small { color: var(--faint); font-size: 12px; }
.va-which { display: grid; gap: 4px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.va-which select { font: inherit; font-size: 15px; color: var(--ink); background: var(--page); border: 1px solid var(--accent); border-radius: 6px; padding: 8px 10px; }

/* ---------- Relationship OS onboarding (#setup) ----------
   Full size (the rest of this app is shown at 88%), one large headline, ruled lists, one accent for what's chosen. */
@media (min-width: 1100px) { :root[data-skin="ecommerce"] body.on-setup { zoom: 1; } }
body.setup-first .shell { grid-template-columns: minmax(0, 1fr); }
body.setup-first .side, body.setup-first .tabbar { display: none; }
body.on-setup .page { max-width: 1120px; margin-inline: auto; padding: 72px 48px 120px; }
.setup h1 { font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 600; }
.setup h2 { font-size: 22px; letter-spacing: -0.01em; margin: 56px 0 8px; font-weight: 600; }
.setup-sub { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 48px; max-width: 52ch; }
.setup-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.setup-label em { font-style: normal; font-weight: 400; color: var(--faint); margin-left: 6px; }
.setup-choose { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.setup-or { display: none; }
.setup-presets { border-top: 1px solid var(--ink); }
.setup-chip { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "b t" "s t"; gap: 2px 16px; align-items: center; width: 100%; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.setup-chip b { grid-area: b; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.setup-chip span { grid-area: s; font-size: 15px; color: var(--muted); }
.setup-tick { grid-area: t; color: var(--cta); opacity: 0; }
.setup-chip:hover b { color: var(--ok); }
.setup-chip.on b { color: var(--ok); }
.setup-chip.on .setup-tick { opacity: 1; }
.setup-chip:focus-visible, .setup-mic:focus-visible, .setup-opt:focus-within { outline: 2px solid var(--cta); outline-offset: 2px; }
.setup-say { display: flex; flex-direction: column; }
.setup-say > span { display: block; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.setup-say-box { position: relative; border-top: 1px solid var(--ink); }
.setup-say textarea { display: block; width: 100%; box-sizing: border-box; min-height: 330px; padding: 18px 56px 18px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 20px; line-height: 1.5; resize: none; }
.setup-say textarea:focus { outline: none; border-bottom-color: var(--cta); }
.setup-say textarea::placeholder { color: var(--muted); }
.setup-mic { position: absolute; right: 4px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.setup-mic.on { background: var(--u-now); border-color: var(--u-now); color: #fff; }
.setup-go { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; }
.setup-go .btn-big { font-size: 17px; padding: 14px 28px; }
.setup-go .link { font-size: 16px; }
.setup-err { color: var(--u-now); font-size: 15px; margin: 0; }
.setup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.setup-file, .setup-online { border-top: 1px solid var(--ink); padding-top: 18px; }
.setup-pick { cursor: pointer; font-size: 16px; }
.setup-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; max-width: 44ch; }
.setup-online .setup-label { margin-bottom: 4px; }
.setup-opt { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; color: var(--muted); line-height: 1.45; }
.setup-opt b { display: block; color: var(--ink); font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.setup-opt input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--cta); }
.setup-opt:has(input:checked) b { color: var(--ok); }
.setup-more .setup-sub .link { font-size: 18px; margin-left: 8px; }
.setup-steps { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--ink); max-width: 560px; }
.setup-steps li { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--faint); transition: color .4s; }
.setup-steps li.on { color: var(--ink); }
.setup-steps li.done { color: var(--muted); }
.setup-focus { font-size: 22px; line-height: 1.45; color: var(--ink-2); margin: 0 0 36px; max-width: 46ch; }
.setup-types { list-style: none; padding: 0; margin: 0 0 14px; border-top: 1px solid var(--ink); }
.setup-types li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 24px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setup-types .st-name { font: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); padding: 6px 2px; min-width: 0; }
.setup-types .st-name:hover, .setup-types .st-name:focus { border-bottom-color: var(--cta); outline: none; }
.setup-types label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.setup-types select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); color: var(--ink); }
.setup-types .st-del { font-size: 14px; }
.st-add { font-size: 16px; }
.setup-words { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; border-top: 1px solid var(--ink); padding-top: 16px; }
.sw { display: inline-flex; align-items: center; gap: 2px; padding: 6px 4px 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); color: var(--ink); font-size: 15px; }
.sw button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 6px; }
.sw-add { font: inherit; font-size: 15px; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; color: var(--ink); width: 170px; }
.sw-add:focus { outline: none; border-bottom-color: var(--cta); }
.setup-privacy { font-size: 15px; color: var(--muted); margin: 40px 0 0; max-width: 60ch; }
.setup-sum { list-style: none; padding: 0; margin: 8px 0 14px; border-top: 1px solid var(--line); }
.setup-sum li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.setup-sum span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) {
  body.on-setup .page { padding: 32px 16px 80px; }
  .setup h1 { font-size: 38px; }
  .setup-sub { font-size: 17px; margin-bottom: 32px; }
  .setup-choose, .setup-row { grid-template-columns: 1fr; gap: 36px; }
  .setup-say textarea { min-height: 140px; font-size: 18px; }
  .setup-types li { grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .setup-types .st-name { grid-column: 1 / -1; }
}
/* Setup options as squares, three across */
.setup-choose { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
.setup-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 0; }
.setup-chip { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; position: relative; padding: 18px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); }
.setup-chip b { font-size: 19px; line-height: 1.2; }
.setup-chip span { font-size: 14px; line-height: 1.4; }
.setup-tick { position: absolute; top: 16px; right: 16px; }
.setup-chip:hover { border-color: var(--ink-2); }
.setup-chip:hover b { color: var(--ink); }
.setup-chip.on { border-color: var(--cta); box-shadow: inset 0 0 0 1px var(--cta); }
.setup-chip.on b { color: var(--ok); }
.setup-say-box { border-top: 0; }
.setup-say textarea { min-height: 0; height: 100%; border: 1px solid var(--line-2); border-radius: 4px; background: var(--raised); padding: 18px 60px 18px 18px; }
.setup-say textarea:focus { border-color: var(--cta); }
.setup-mic { top: 14px; right: 14px; }
.setup-choose .setup-say { align-self: stretch; }
.setup-choose .setup-say-box { flex: 1; }
@media (max-width: 860px) {
  .setup-presets { grid-template-columns: 1fr 1fr; }
  .setup-chip { padding: 14px; }
  .setup-chip b { font-size: 17px; }
  .setup-say textarea { min-height: 150px; }
}
.setup-chip { align-items: flex-start; text-align: left; }
body.setup-first #tabbar { display: none; }
@media (max-width: 860px) {
  .setup-choose { grid-template-columns: 1fr; gap: 32px; }
  .setup-say textarea { height: auto; }
}
.setup-ic { position: absolute; top: 18px; left: 18px; color: var(--ink-2); }
.setup-chip.on .setup-ic { color: var(--cta); }
@media (max-width: 860px) { .setup-ic { top: 14px; left: 14px; width: 26px; height: 26px; } }
/* Uniform tiles: icon top, title on one line, description held to two lines, all at the same heights */
.setup-chip { justify-content: flex-end; gap: 0; }
.setup-chip b { font-size: 19px; line-height: 24px; height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: 6px; }
.setup-chip > span { display: block; font-size: 14px; line-height: 20px; height: 40px; overflow: hidden; }
.setup-ic { width: 28px; height: 28px; }
@media (max-width: 860px) { .setup-chip b { font-size: 17px; } .setup-ic { width: 26px; height: 26px; } }
/* Step 2: the same tiles as step 1 */
.setup-two { max-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-list { margin: 28px 0 0; font-size: 16px; color: var(--muted); }
.setup-list b { color: var(--ink); font-weight: 600; }
.setup-list .setup-pick { font-size: 16px; margin-left: 4px; }
@media (max-width: 860px) { .setup-two { max-width: none; } }
.setup-two { max-width: calc((100% - 48px) * 1.35 / 2.35); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setup-list .link.quiet { margin: 0 6px; }
@media (max-width: 860px) { .setup-two { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Onboarding fits one screen */
@media (min-width: 1100px) {
  :root[data-skin="ecommerce"] body.on-setup .shell { min-height: 100vh; }
  :root[data-skin="ecommerce"] body.on-setup .side { height: 100vh; }
}
body.on-setup .page { min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
body.on-setup .setup { margin: 0; width: 100%; }
.setup-sub { margin-bottom: 36px; }
.setup-go { margin-top: 36px; }
.setup-presets { width: 100%; max-width: calc(min(100%, (100vh - 420px) * 1.5 + 24px)); }
.setup-two { max-width: calc(min((100% - 48px) * 1.35 / 2.35, (100vh - 420px) * 1.5 + 24px)); }
.setup-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.setup-cols h2 { margin-top: 0; }
.setup-review .setup-focus { margin-bottom: 28px; }
.setup-types li { padding: 7px 0; gap: 16px; }
.setup-types .st-name { font-size: 18px; padding: 4px 2px; }
.setup-types select { padding: 5px 8px; font-size: 14px; }
.setup-hint { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.setup-review .setup-words { border-top: 1px solid var(--ink); }
@media (max-width: 860px) {
  body.on-setup .page { justify-content: flex-start; min-height: 0; }
  .setup-presets, .setup-two { max-width: none; }
  .setup-cols { grid-template-columns: 1fr; gap: 32px; }
}
body.on-setup .page { padding-top: 24px; padding-bottom: 24px; }
.setup h1 { margin-bottom: 12px; }
.setup-sub { margin-bottom: 28px; }
.setup-go { margin-top: 28px; }
.setup-review .setup-focus { font-size: 20px; margin-bottom: 20px; }
.setup-types li { padding: 4px 0; }
@media (max-height: 760px) and (min-width: 861px) { .setup h1 { font-size: 48px; } }

/* ---------- Setup, premium pass: white cards, soft depth, coloured icon squares ---------- */
:root[data-skin="ecommerce"] body.on-setup { background: radial-gradient(1200px 600px at 15% -10%, var(--raised) 0%, transparent 60%), var(--page); }
.setup { --card-sh: 0 1px 2px rgb(43 34 25 / .05), 0 6px 20px -6px rgb(43 34 25 / .10); --card-sh-hi: 0 2px 4px rgb(43 34 25 / .06), 0 16px 36px -10px rgb(43 34 25 / .18); }
.setup h1 { font-weight: 700; letter-spacing: -0.035em; }
.setup-prog { display: flex; gap: 6px; margin: 0 0 22px; }
.setup-prog i { width: 28px; height: 4px; border-radius: 2px; background: var(--line-2); }
.setup-prog i.on { background: var(--ink); }
.setup-label, .setup-say > span { font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.setup-presets { gap: 14px; }
.setup-chip { border: 0; border-radius: 20px; background: var(--raised); box-shadow: var(--card-sh); padding: 20px; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.setup-chip:hover { transform: translateY(-2px); box-shadow: var(--card-sh-hi); }
.setup-chip:active { transform: scale(.98); }
.setup-chip.on { box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-chip.on b { color: var(--ink); }
.setup-chip b { font-weight: 650; letter-spacing: -0.015em; }
.setup-ic-box { position: absolute; top: 18px; left: 18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--ink-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
.setup-ic-box .setup-ic { position: static; color: #fff; width: 22px; height: 22px; }
.setup-chip.on .setup-ic { color: #fff; }
.setup-ic-box[data-k="networking"] { background: linear-gradient(180deg, #c76a43, #b0532d); }
.setup-ic-box[data-k="founder"] { background: linear-gradient(180deg, #3d332a, #2b2219); }
.setup-ic-box[data-k="clients"] { background: linear-gradient(180deg, #6f7d3a, #5a6730); }
.setup-ic-box[data-k="fundraising"] { background: linear-gradient(180deg, #c49029, #a97a18); }
.setup-ic-box[data-k="ecommerce"] { background: linear-gradient(180deg, #8f5e7c, #774b66); }
.setup-ic-box[data-k="personal"] { background: linear-gradient(180deg, #cf6a5c, #b65446); }
.setup-ic-box[data-k="online"] { background: linear-gradient(180deg, #6f7d3a, #5a6730); }
.setup-ic-box[data-k="device"] { background: linear-gradient(180deg, #3d332a, #2b2219); }
.setup-tick { top: 18px; right: 18px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--cta); color: #fff; box-sizing: border-box; }
.setup-say textarea { border: 0; border-radius: 20px; background: var(--raised); box-shadow: var(--card-sh); padding: 22px 64px 22px 22px; transition: box-shadow .2s; }
.setup-say textarea:focus { box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-mic { top: 16px; right: 16px; border: 0; background: var(--page); box-shadow: inset 0 0 0 1px var(--line); }
.setup .btn-big { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 15px 26px; font-size: 17px; font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 8px 20px -8px rgb(43 34 25 / .45); transition: transform .2s, box-shadow .2s; }
.setup .btn-big:hover { transform: translateY(-1px); }
.setup .btn-big:active { transform: scale(.98); }
.btn-arrow { transition: transform .2s; }
.setup .btn-big:hover .btn-arrow { transform: translateX(3px); }
.setup-list { display: inline-flex; align-items: center; gap: 6px; padding: 12px 16px; border-radius: 14px; background: var(--raised); box-shadow: var(--card-sh); }
/* Review: one white card for folders, one for phrases */
.setup-card { background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); padding: 6px 18px 12px; }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px 28px; gap: 12px; margin: 0; padding: 10px 0 8px; font-size: 12px; font-weight: 600; color: var(--faint); border-bottom: 1px solid var(--line); }
.setup-types { border-top: 0; margin: 0; }
.setup-types li { grid-template-columns: minmax(0, 1fr) 150px 110px 28px; gap: 12px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.setup-types li:last-child { border-bottom: 0; }
.setup-types .st-name { font-size: 17px; font-weight: 600; width: 100%; }
.setup-types select { width: 100%; border: 0; border-radius: 10px; background: var(--page); padding: 7px 10px; font-size: 14px; }
.st-del { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.st-del:hover { background: var(--page); color: var(--u-now); }
.st-add { border: 0; background: none; color: var(--ok); font: inherit; font-size: 15px; font-weight: 600; padding: 10px 0 2px; cursor: pointer; }
.setup-review .setup-words { border-top: 0; background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); padding: 16px; }
.setup-review .sw { border: 0; border-radius: 10px; background: var(--page); padding: 7px 4px 7px 12px; font-size: 14px; }
.setup-review .sw-add { border-bottom: 0; background: none; }
.setup-steps { border-top: 0; background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); padding: 6px 20px; }
.setup-steps li:last-child { border-bottom: 0; }
:root[data-theme="dark"] .setup-chip, :root[data-theme="dark"] .setup-say textarea, :root[data-theme="dark"] .setup-card, :root[data-theme="dark"] .setup-review .setup-words, :root[data-theme="dark"] .setup-list, :root[data-theme="dark"] .setup-steps { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .setup-chip, :root:not([data-theme="light"]) .setup-say textarea, :root:not([data-theme="light"]) .setup-card, :root:not([data-theme="light"]) .setup-review .setup-words, :root:not([data-theme="light"]) .setup-list, :root:not([data-theme="light"]) .setup-steps { background: var(--raised); } :root[data-skin="ecommerce"]:not([data-theme="light"]) body.on-setup { background: var(--page); } }
@media (max-width: 860px) {
  .setup-ic-box { top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 10px; }
  .st-head { display: none; }
  .setup-types li { grid-template-columns: 1fr 1fr 28px; }
  .setup-types .st-name { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .setup-chip, .setup .btn-big, .btn-arrow { transition: none; } }
/* Step 2: the list card beside the lookup question */
.setup-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.setup-ask h2, .setup-src h2 { margin: 0 0 6px; font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
.setup-ask .setup-hint { margin-bottom: 18px; }
.setup-ask .setup-two { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-src { position: relative; display: flex; flex-direction: column; background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); padding: 22px 24px 18px; transition: box-shadow .2s; }
.setup-src.push { box-shadow: 0 0 0 1px color-mix(in srgb, var(--cta) 35%, transparent), var(--card-sh-hi); }
.setup-src.over { box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-src .setup-ic-box { position: static; margin-bottom: 16px; background: linear-gradient(180deg, #6f7d3a, #5a6730); }
.setup-rec { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--cta) 10%, transparent); padding: 4px 10px; border-radius: 8px; }
.setup-how { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0 0 16px; max-width: 46ch; }
.setup-how b { color: var(--ink); }
.setup-drop { flex: 1; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--page); color: var(--muted); font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.setup-drop b { color: var(--ink); }
.setup-drop em { font-style: normal; font-size: 13px; color: var(--faint); }
.setup-drop:hover, .setup-src.over .setup-drop { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 6%, var(--page)); }
.setup-src.has .setup-drop { flex: 0; min-height: 0; padding: 10px; }
.setup-nofile { align-self: flex-start; margin-top: 8px; font-size: 14px; }
.setup-safe { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: var(--faint); }
:root[data-theme="dark"] .setup-src { background: var(--raised); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .setup-src { background: var(--raised); } }
@media (max-width: 860px) { .setup-two-col { grid-template-columns: 1fr; gap: 28px; } .setup-rec { position: static; align-self: flex-start; margin-bottom: 12px; } }
/* Building: centred, a coloured icon per step that turns into a tick */
.setup-building { max-width: 520px; margin: 0 auto !important; text-align: center; }
.setup-building h1 { font-size: clamp(36px, 4.4vw, 52px); }
.setup-building .setup-sub { margin: 0 auto 32px; }
.setup-building .setup-steps { text-align: left; padding: 8px 22px; }
.setup-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 0; font-size: 17px; color: var(--faint); }
.st-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; opacity: .35; transform: scale(.92); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1); }
.st-ic[data-k="read"] { background: linear-gradient(180deg, #c76a43, #b0532d); }
.st-ic[data-k="folders"] { background: linear-gradient(180deg, #8f5e7c, #774b66); }
.st-ic[data-k="rhythm"] { background: linear-gradient(180deg, #c49029, #a97a18); }
.st-ic[data-k="priority"] { background: linear-gradient(180deg, #6f7d3a, #5a6730); }
.st-done { position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; padding: 2px; box-sizing: border-box; border-radius: 50%; background: var(--cta); color: #fff; box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s cubic-bezier(.2,.8,.2,1); }
.setup-steps li.on { color: var(--ink); }
.setup-steps li.on .st-ic { opacity: 1; transform: scale(1); animation: st-breathe 1.6s ease-in-out infinite; }
.setup-steps li.done { color: var(--ink-2); }
.setup-steps li.done .st-ic { opacity: 1; transform: scale(1); animation: none; }
.setup-steps li.done .st-done { opacity: 1; transform: scale(1); }
@keyframes st-breathe { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .setup-steps li.on .st-ic { animation: none; } }
/* Review, simplified: one line per folder, tap to change */
.setup-review { max-width: 640px; }
.setup-review .setup-focus { font-size: 19px; margin-bottom: 24px; }
.setup-review .setup-card { padding: 6px 8px; }
.setup-review .setup-types li { display: block; padding: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.st-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 12px; border: 0; background: none; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.st-row:hover { background: var(--page); }
.st-row b { font-size: 17px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-row em { font-style: normal; font-size: 15px; color: var(--muted); }
.st-chev { color: var(--faint); flex: none; }
.st-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.setup-review .st-open { display: flex; gap: 14px; padding: 14px 12px; background: var(--page); border-radius: 12px; }
.st-open .st-dot { margin-top: 12px; }
.st-edit { flex: 1; display: grid; gap: 10px; }
.st-edit .st-name { font: inherit; font-size: 17px; font-weight: 600; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.st-sel { display: flex; gap: 12px; flex-wrap: wrap; }
.st-sel label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.st-sel select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.st-acts { display: flex; gap: 16px; align-items: center; }
.setup-review .st-add { padding: 12px 12px 8px; }
.st-words-toggle { margin-top: 18px; font-size: 15px; }
.setup-review .setup-words { margin-top: 12px; }
.setup-review .setup-words .setup-hint { width: 100%; margin: 0 0 6px; }
:root[data-theme="dark"] .st-edit .st-name, :root[data-theme="dark"] .st-sel select { background: var(--raised); }
.setup-review .setup-types li.st-open { display: flex; gap: 14px; padding: 14px 12px; margin: 4px 0; background: var(--page); border-radius: 12px; border-bottom: 0; }
.setup-review .st-open .st-name { grid-column: auto; width: 100%; box-sizing: border-box; font-size: 17px; border: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.setup-review .st-open .st-name:focus { border-color: var(--cta); }
.st-acts .link { white-space: nowrap; font-size: 15px; }
.setup-src.has .setup-drop { flex: 0; align-items: flex-start; border: 0; background: none; padding: 0; min-height: 0; color: var(--ok); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.setup-src.has { justify-content: flex-start; }
/* Step 2 mirrors step 1: tiles on the left, one card on the right */
.setup-more .setup-src { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 20px 22px; border-radius: 20px; background: var(--raised); box-shadow: var(--card-sh); cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.setup-more .setup-src:hover { transform: translateY(-2px); box-shadow: var(--card-sh-hi); }
.setup-more .setup-src.over { box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-more .setup-src.has { box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-more .setup-src .setup-ic-box { position: absolute; top: 18px; left: 18px; margin: 0; background: linear-gradient(180deg, #6f7d3a, #5a6730); }
.setup-more .setup-src b { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.setup-more .setup-src span { font-size: 14px; line-height: 20px; color: var(--muted); max-width: 40ch; }
.setup-swap { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ok); margin-top: 8px; }
.setup-label .setup-rec { position: static; display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--cta) 10%, transparent); padding: 2px 8px; border-radius: 6px; }
.setup-more .setup-say { display: flex; flex-direction: column; }
/* Review mirrors step 1: folders on the left, phrases card on the right */
.setup-review { max-width: none; }
.setup-review .setup-sub { font-size: 18px; color: var(--muted); }
.setup-review .setup-say { display: flex; flex-direction: column; }
.setup-review .setup-say .setup-words { flex: 1; align-content: flex-start; margin-top: 0; background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); padding: 20px; }
.setup-review .setup-words .setup-hint { width: 100%; margin: 0 0 10px; }
.setup-review .st-words-toggle { margin: 0; font-size: 14px; }
.setup-review .sw-add { width: 100%; margin-top: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .setup-review .setup-say .setup-words { background: var(--raised); }
.setup-more .setup-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
.setup-more .setup-chip { aspect-ratio: 1.55; }
.setup-more .setup-src { justify-content: flex-start; padding-top: 80px; }
@media (max-width: 860px) { .setup-more .setup-chip { aspect-ratio: 1; } }
.setup-more .setup-src { padding-top: 72px; padding-bottom: 18px; }
/* Step 2: drop card and where-to-find-it card, side by side */
.setup-list-step .setup-drop-big { flex: none; aspect-ratio: auto; min-height: 360px; justify-content: center; align-items: center; text-align: center; padding: 28px; border: 2px dashed var(--line-2); box-shadow: none; background: color-mix(in srgb, var(--raised) 70%, transparent); }
.setup-list-step .setup-drop-big:hover, .setup-list-step .setup-drop-big.over { border-color: var(--cta); background: var(--raised); transform: none; }
.setup-list-step .setup-drop-big.has { border: 0; background: var(--raised); box-shadow: 0 0 0 2px var(--cta), var(--card-sh-hi); }
.setup-list-step .setup-drop-big .setup-ic-box { position: static; width: 56px; height: 56px; border-radius: 15px; margin-bottom: 14px; }
.setup-list-step .setup-drop-big .setup-ic-box .setup-ic { width: 26px; height: 26px; }
.setup-list-step .setup-drop-big b { font-size: 22px; }
.setup-list-step .setup-drop-big span { max-width: 36ch; }
.setup-how-card { list-style: none; margin: 0; padding: 8px 22px; flex: 1; background: var(--raised); border-radius: 20px; box-shadow: var(--card-sh); display: flex; flex-direction: column; justify-content: center; }
.setup-how-card li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); font-size: 16px; color: var(--ink); }
.setup-how-card li:last-child { border-bottom: 0; }
.setup-how-card i { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #6f7d3a, #5a6730); }
/* Step 3: two detailed choices */
.setup-priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; }
.setup-chip.setup-priv { aspect-ratio: auto; justify-content: flex-start; padding: 22px 24px 20px; gap: 0; }
.setup-chip.setup-priv .setup-ic-box { position: static; margin-bottom: 18px; }
.setup-chip.setup-priv b { height: auto; font-size: 22px; line-height: 1.2; white-space: normal; margin-bottom: 14px; }
.setup-priv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.setup-priv li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.setup-priv li svg { flex: none; margin-top: 2px; }
.setup-priv li.y svg { color: var(--cta); }
.setup-priv li.n svg { color: var(--faint); }
.setup-priv li.n span { color: var(--muted); }
.setup-safe-line { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
:root[data-theme="dark"] .setup-how-card, :root[data-theme="dark"] .setup-list-step .setup-drop-big.has { background: var(--raised); }
@media (max-width: 860px) { .setup-priv-grid { grid-template-columns: 1fr; } .setup-list-step .setup-drop-big { min-height: 220px; } }
.setup-mic.busy { opacity: .5; pointer-events: none; }
.where-filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.where-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.where-filters select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--raised); color: var(--ink); }
/* Their panel: where did you meet them? */
.met-q { padding: 12px 14px; margin-bottom: 6px; border-radius: 12px; background: color-mix(in srgb, var(--cta) 7%, var(--raised)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cta) 22%, transparent); }
.met-q dt { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.met-q dd { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.met-q input { flex: 1 1 150px; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--raised); color: var(--ink); }
.met-q input:focus { outline: none; border-color: var(--cta); }
.facts .met-q, dl .met-q { padding: 12px 14px; box-sizing: border-box; }
/* Home: where your people are. A small card in the side column; the full map opens as a popup. */
.pm-slot:empty { display: none; }
.pm-card { display: block; width: 100%; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgb(43 34 25 / .05), 0 6px 20px -6px rgb(43 34 25 / .12); cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pm-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(43 34 25 / .06), 0 14px 30px -10px rgb(43 34 25 / .2); }
.pm-card .pm-svg { display: block; width: 100%; height: 150px; background: #eef4f6; }
.pm-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 14px; }
.pm-cap b { font-size: 14px; font-weight: 600; }
.pm-cap em { font-style: normal; font-size: 12px; color: var(--muted); }
.pm-svg { background: #eef4f6; }
.pm-land { fill: #f8f4ec; stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.pm-dot { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 2px 4px rgb(43 34 25 / .28)); transition: transform .2s; }
.pm-pin { cursor: pointer; outline: none; }
.pm-pin:hover .pm-dot, .pm-pin:focus-visible .pm-dot { transform: scale(1.18); }
.pm-halo { fill: var(--cta); opacity: .14; animation: pm-pulse 2.6s ease-out infinite; transform-origin: center; }
.pm-ini { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.pm-badge { fill: var(--ink); stroke: #fff; stroke-width: 2.5; }
.pm-n { fill: #fff; font-size: 11px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.pm-label { fill: var(--ink); font-size: 13px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: #eef4f6; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
@keyframes pm-pulse { 0% { transform: scale(.7); opacity: .3; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pm-halo { animation: none; } }
.pm-dlg { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; background: var(--raised); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .35); }
.pm-dlg::backdrop { background: rgb(30 24 18 / .35); backdrop-filter: blur(3px); }
.pm-dlg-in { padding: 18px 20px 16px; }
.pm-dlg header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.pm-dlg h2 { margin: 0; font-size: 20px; }
.pm-dlg header span { color: var(--muted); font-size: 14px; flex: 1; }
.pm-x { align-self: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--page); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.pm-svg.big { display: block; width: 100%; height: auto; border-radius: 16px; }
.pm-away { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.pm-away .link { font-size: 14px; }
.pm-hint { margin: 8px 2px 0; font-size: 12px; color: var(--faint); }
:root[data-theme="dark"] .pm-card, :root[data-theme="dark"] .pm-svg { background: var(--raised); }
:root[data-theme="dark"] .pm-land { fill: color-mix(in srgb, var(--ink) 10%, var(--raised)); }
.pm-pin > circle:nth-child(2) { filter: none; }
:root[data-skin="ecommerce"] .page.wide .rv-client .facts dd { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) { .pm-dlg header { flex-wrap: wrap; } .pm-dlg h2 { font-size: 18px; flex: 1 1 100%; } .pm-dlg-in { padding: 14px 14px 12px; } }
.pm-dlg header { justify-content: flex-end; align-items: center; margin-bottom: 10px; }
.pm-dlg-in { position: relative; }
.pm-halo { transform-box: fill-box; transform-origin: center; }
/* Zoom: the map scales, the pins (.pm-s) are shrunk back so they keep their size; coastlines keep their weight */
.pm-wrap { position: relative; }
.pm-svg.big { touch-action: none; user-select: none; -webkit-user-select: none; }
.pm-svg.big.zoomed { cursor: grab; } .pm-svg.big.zoomed:active { cursor: grabbing; }
.pm-svg.big .pm-s { transform: scale(var(--pz, 1)); }
.pm-svg.big .pm-extra { display: none; }
.pm-svg.big.pm-far .pm-label { display: none; }
.pm-svg.big.pm-close .pm-extra { display: inline; } .pm-svg.big.pm-close .pm-more { display: none; }
.pm-svg.big .pm-land { vector-effect: non-scaling-stroke; }
.pm-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; border-radius: 12px; overflow: hidden; background: var(--raised); box-shadow: 0 1px 2px rgb(43 34 25 / .08), 0 6px 16px -6px rgb(43 34 25 / .25); }
.pm-zoom button { width: 36px; height: 36px; border: 0; background: none; color: var(--ink); font: 500 20px/1 inherit; cursor: pointer; }
.pm-zoom button + button { border-top: 1px solid var(--line); }
.pm-zoom button:hover:not(:disabled) { background: var(--page); }
.pm-zoom button:disabled { color: var(--faint); cursor: default; }
/* A tapped pin's card */
.pm-card-pop { position: absolute; z-index: 2; padding: 14px 16px; border-radius: 16px; background: var(--raised); box-shadow: 0 1px 2px rgb(43 34 25 / .08), 0 16px 36px -10px rgb(43 34 25 / .35); font-size: 13px; color: var(--ink-2); animation: pm-pop .16s ease-out; }
.pm-card-pop[hidden] { display: none; }
.pm-card-pop p { margin: 6px 0 0; line-height: 1.4; }
.pm-cp-who { display: flex; gap: 10px; align-items: center; }
.pm-cp-who b { display: block; font-size: 15px; color: var(--ink); }
.pm-cp-who .pm-cp-sub { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.pm-cp-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.pm-cp-where { margin-top: 10px !important; color: var(--ink); font-weight: 500; }
.pm-cp-note { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm-card-pop .btn { margin-top: 12px; width: 100%; padding: 8px 12px; font-size: 14px; }
@keyframes pm-pop { from { opacity: 0; transform: translateY(4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .pm-card-pop { animation: none; } }
.va-type { display: grid; gap: 8px; margin: 4px 0 14px; }
.va-type span { font-size: 14px; font-weight: 600; }
.va-type textarea { font: inherit; font-size: 15px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raised); color: var(--ink); resize: vertical; }
.va-type textarea:focus { outline: none; border-color: var(--cta); }
.voice-add .va-acts .link { align-self: center; }
/* Scan a card */
.va-opens { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.va-card-picks { margin: 18px 0 12px; }
.va-form > .wide { grid-column: 1 / -1; }
.va-form > label { align-content: start; }
.va-notes:has([data-va="dictate"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.va-notes:has([data-va="dictate"]) > span, .va-notes:has([data-va="dictate"]) > .va-note { flex: 1 1 100%; }
.va-card-picks label.btn { cursor: pointer; }
.va-card-picks label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.va-note-first { margin: 8px 0 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raised); color: var(--ink); line-height: 1.5; }
.va-note-first b { display: block; margin-bottom: 4px; }
/* LinkedIn connections: the guide on Import, the check before it goes in, the monthly reminder on Home */
.li-guide { margin: 16px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; }
.li-guide > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.li-guide > summary span { color: var(--muted); font-size: 14px; }
.li-guide ol { margin: 14px 0 10px; padding-left: 22px; display: grid; gap: 6px; line-height: 1.5; }
.li-guide-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 2px; }
.li-guide-acts span { color: var(--muted); font-size: 14px; flex: 1 1 260px; }
.li-guide-acts label.btn { cursor: pointer; }
.li-confirm { max-width: 640px; }
.li-confirm h2 { font-size: 1.3rem; margin: 0 0 12px; }
.li-confirm ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; line-height: 1.5; }
.li-confirm p { color: var(--muted); margin: 0 0 18px; }
.li-nudge-acts { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* Home: folders bar (every practice) */
.folderbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; }
.fchip em { font-style: normal; font-size: 12px; color: var(--muted); }
a.fchip:hover { border-color: var(--line-2); }
.fchip-act { cursor: pointer; color: var(--muted); border-style: dashed; background: transparent; }
.folderbar.editing .fchip { padding: 4px 6px 4px 10px; }
.folderbar.editing .fchip input { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--ink); width: 9.5em; padding: 3px 0; }
.folderbar.editing .fchip input:focus { outline: none; }
.folderbar.editing .fchip button { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 4px; display: grid; place-items: center; border-radius: 6px; }
.folderbar.editing .fchip button:hover { color: var(--u-now, #b03a24); background: var(--page); }
.fbar-new { width: 11em; border-style: dashed; }
.fbar-new:focus { outline: none; border-color: var(--cta, var(--accent)); }
.va-notes { display: grid; gap: 6px; }
.va-notes > span { font-size: 13px; color: var(--muted); }
.va-note { display: flex; gap: 6px; align-items: flex-start; }
.va-note textarea { flex: 1; min-height: 40px; field-sizing: content; resize: vertical; }
.va-note-x { border: 0; background: none; color: var(--faint); font-size: 20px; line-height: 1; padding: 8px 6px; cursor: pointer; border-radius: 8px; }
.va-note-x:hover { color: var(--u-now, #b03a24); background: var(--page); }
.va-notes > .link { justify-self: start; font-size: 14px; }
/* "Where did you meet them?" in the profile pop-up and review: question on top, inputs and Save in one row */
:root .sheet .facts div.met-q, :root .rv-client .facts div.met-q, :root .facts div.met-q { display: block; padding: 14px 16px; margin: 6px 0 10px; border-bottom: 0; }
:root .facts div.met-q dt { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; }
:root .facts div.met-q dd { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0; text-align: left; }
:root .facts div.met-q dd input { flex: 1 1 0; min-width: 0; }
:root .facts div.met-q dd .btn { flex: none; }
@media (max-width: 520px) { :root .facts div.met-q dd { flex-wrap: wrap; } :root .facts div.met-q dd input { flex-basis: 100%; } }
/* Notes on a profile: each its own padded row, date and Delete quiet on the right */
.note-add .note-old { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); font-size: 15px; line-height: 1.45; color: var(--ink); }
.note-add .note-old:first-of-type { margin-top: 14px; }
.note-add .note-old > span { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.note-add .note-old .note-del { font-size: 13px; padding: 0; }

/* Help, in the store and relationship look: beige page, a white card, the kinds as square tiles with icons (the broker
   app keeps its sky). */
.help-ic { display: none; }
:root[data-skin="ecommerce"] body.on-help::before, :root[data-skin="ecommerce"] body.on-help::after { display: none; }
:root[data-skin="ecommerce"] body.on-help .ph { border-bottom-color: var(--line); }
:root[data-skin="ecommerce"] body.on-help .ph-date { display: none; }
:root[data-skin="ecommerce"] .help-sky { margin-top: 24px; }
:root[data-skin="ecommerce"] .help-sky .help { max-width: 620px; gap: 22px; padding: clamp(22px, 3.4vw, 36px); border: 0; border-radius: 22px; background: var(--raised); box-shadow: var(--card-sh, 0 1px 2px rgb(43 34 25 / .05), 0 14px 34px -14px rgb(43 34 25 / .2)); backdrop-filter: none; }
:root[data-skin="ecommerce"] .help-kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
:root[data-skin="ecommerce"] .help-kinds legend { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
:root[data-skin="ecommerce"] .help-kind { display: block; }
:root[data-skin="ecommerce"] .help-sky .help-kind span { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; height: 100%; min-height: 104px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--page); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.3; transition: border-color .15s, background .15s, box-shadow .15s; }
:root[data-skin="ecommerce"] .help-ic { display: block; width: 34px; height: 34px; padding: 6px; border-radius: 10px; background: color-mix(in srgb, var(--cta) 12%, transparent); color: var(--cta); }
:root[data-skin="ecommerce"] .help-sky .help-kind span:hover { border-color: var(--line-2); }
:root[data-skin="ecommerce"] .help-sky .help-kind input:checked + span { background: var(--raised); color: var(--ink); border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 16%, transparent); }
:root[data-skin="ecommerce"] .help-sky .help-kind input:checked + span .help-ic { background: var(--cta); color: #fff; }
:root[data-skin="ecommerce"] .help-kind input:focus-visible + span { outline: 2px solid var(--cta); outline-offset: 2px; }
:root[data-skin="ecommerce"] .help-field { font-size: 15px; font-weight: 600; color: var(--ink); }
:root[data-skin="ecommerce"] .help-sky textarea, :root[data-skin="ecommerce"] .help-sky input[type=email] { margin-top: 10px; width: 100%; font: inherit; font-size: 15px; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); }
:root[data-skin="ecommerce"] .help-sky textarea:focus, :root[data-skin="ecommerce"] .help-sky input[type=email]:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 16%, transparent); }
:root[data-skin="ecommerce"] .help-actions .btn { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
:root[data-skin="ecommerce"] .help-done { font-size: 16px; line-height: 1.5; }
@media (max-width: 560px) { :root[data-skin="ecommerce"] .help-kinds { grid-template-columns: 1fr; } :root[data-skin="ecommerce"] .help-sky .help-kind span { min-height: 0; flex-direction: row; align-items: center; gap: 12px; } }

/* Adding a note on someone's page: a visible, tinted box (stores and relationships); elsewhere it looks as before. */
.note-add-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root[data-skin="ecommerce"] .note-add { margin-top: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--cta) 7%, var(--raised)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cta) 28%, transparent); display: grid; gap: 8px; }
:root[data-skin="ecommerce"] .note-add-l { position: static; width: auto; height: auto; clip: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
:root[data-skin="ecommerce"] .note-add textarea { margin: 0; width: 100%; min-height: 64px; font: inherit; font-size: 14.5px; line-height: 1.45; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--cta) 22%, var(--line)); border-radius: 10px; background: var(--raised); color: var(--ink); resize: vertical; }
:root[data-skin="ecommerce"] .note-add textarea:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cta) 16%, transparent); }
:root[data-skin="ecommerce"] .note-add .notes-acts .btn { background: var(--cta); border-color: var(--cta); color: #fff; }
/* Hand-offs under a draft: Gmail, Outlook, LinkedIn, calendar. Quiet links in one row. */
.handoff { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 4px 0 0; }
.handoff .link { padding: 6px 0; font-size: 14px; }

/* Ask your book: their job beside the name */
.ask-hit .ask-job { display: inline; font-style: normal; font-weight: 400; color: var(--muted); }

/* Under a draft (relationship OS): one send button, Mark as contacted or Skip, and one More menu for the rest. */
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 0; }
.send-row > .btn, .send-row > a.btn, .more-menu > summary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.more-menu { position: relative; }
.more-menu > summary { list-style: none; gap: 6px; cursor: pointer; user-select: none; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu[open] > summary svg { transform: rotate(180deg); }
.more-list { position: absolute; z-index: 60; left: 0; bottom: calc(100% + 6px); min-width: 240px; max-width: calc(100vw - 32px); display: grid; padding: 6px; background: var(--overlay, #fff); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -16px rgb(14 23 38 / .35); }
.send-row > .more-menu:last-child .more-list { left: auto; right: 0; }
.more-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: 0; background: none; text-align: left; border-radius: 8px; font: inherit; font-size: 15px; cursor: pointer; color: inherit; }
.more-list button:hover, .more-list button:focus-visible { background: var(--wash); }
.more-list kbd { font-size: 12px; color: var(--muted); }
.no-way .handoff { gap: 8px; }
.no-way .handoff .btn { min-height: 44px; }

/* Phones, relationship OS: thumb-sized targets and the send button kept in reach. Desktop and the broker modes unchanged. */
@media (max-width: 600px) {
  :root[data-skin="ecommerce"] .send-row > :is(.btn:not(.btn-quiet), .rv-send) { flex: 1 1 100%; }
  :root[data-skin="ecommerce"] .send-row > :is(.btn-quiet, .more-menu) { flex: 1 1 0; }
  :root[data-skin="ecommerce"] .send-row .more-menu > summary { width: 100%; }
  :root[data-skin="ecommerce"] .send-row .more-list { left: 0; right: 0; min-width: 0; }
  :root[data-skin="ecommerce"] .composer .send-row { position: sticky; bottom: 0; z-index: 5; margin-inline: -12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--page, var(--bg)); border-top: 1px solid var(--line); }
  :root[data-skin="ecommerce"] .rv-compose.glass-pane { overflow: clip; } /* hidden would stop the send row sticking */
  :root[data-skin="ecommerce"] .rv-compose .send-row { position: sticky; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin-inline: -12px; padding: 10px 12px; background: var(--raised, var(--bg)); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
  :root[data-skin="ecommerce"] :is(.sheet, .rv, .voice-add, .client-edit, .calldlg) :is(.edit-line .link, .channel [role=tab], .close, .handoff .link, .note-old .link, .va-acts :is(.link, .btn), .ce-acts .link, .talk .link, .mailpick-list .btn, .li-pick .link) { min-height: 44px; display: inline-flex; align-items: center; }
  :root[data-skin="ecommerce"] .close { min-width: 44px; justify-content: center; }
  :root[data-skin="ecommerce"] :is(#view, .sheet, .calldlg) :is(.btn, button.link, a.link, .facts dd a, .va-open, .crow-del) { min-height: 44px; }
  :root[data-skin="ecommerce"] :is(#view, .sheet, .calldlg) :is(button.link, a.link, .facts dd a) { display: inline-flex; align-items: center; }
  :root[data-skin="ecommerce"] .crow-del { min-width: 44px; }
  :root[data-skin="ecommerce"] #view :is(.hcall-more, .home-more, .home-more a, a[href="#due"]:not([class])) { min-height: 44px; display: inline-flex; align-items: center; }
  :root[data-skin="ecommerce"] .channel { gap: 4px 20px; }
  :root[data-skin="ecommerce"] .rvh .link { min-height: 44px; display: inline-flex; align-items: center; }
  /* The weekly list: each row's channel, draft and buttons with room to tap */
  :root[data-skin="ecommerce"] .auto-foot { flex-wrap: wrap; align-items: center; font-size: 13px; }
  :root[data-skin="ecommerce"] .auto-foot > span:last-child { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
  :root[data-skin="ecommerce"] .auto-foot .btn, :root[data-skin="ecommerce"] .auto-foot .link { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
  :root[data-skin="ecommerce"] .auto-foot .btn { flex: 1 1 auto; justify-content: center; }
  :root[data-skin="ecommerce"] .auto-ch-label { font-size: 13px; font-weight: 600; }
  /* Dialogs fit the screen with the keyboard up (dvh follows the visible area); the Save button stays in reach */
  :root[data-skin="ecommerce"] .calldlg { max-height: calc(100dvh - 24px); }
  :root[data-skin="ecommerce"] .client-edit { flex-direction: column; padding: 20px 16px 0; }
  :root[data-skin="ecommerce"] .client-edit[open] { display: flex; }
  :root[data-skin="ecommerce"] .client-edit .ce-form { max-height: none; flex: 1 1 auto; min-height: 0; }
  :root[data-skin="ecommerce"] .client-edit .ce-acts { position: sticky; bottom: 0; background: var(--page, var(--bg)); padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 2; }
  :root[data-skin="ecommerce"] .client-edit .ce-acts .btn { flex: 1 1 auto; min-height: 48px; }
  :root[data-skin="ecommerce"] .voice-add .va-acts { position: sticky; bottom: 0; z-index: 2; background: var(--bg); margin-inline: -24px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
  :root[data-skin="ecommerce"] .voice-add .va-acts .btn-big { flex: 1 1 100%; justify-content: center; }
  :root[data-skin="ecommerce"] .sheet, :root[data-skin="ecommerce"] .voice-add { height: 100dvh; max-height: 100dvh; }
  :root[data-skin="ecommerce"] :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { font-size: max(16px, 1em); }
}
/* The card photo kept on a contact (this device only) */
.card-photo { display: flex; align-items: center; gap: 12px; }
.card-photo button.card-thumb { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: none; cursor: zoom-in; width: 96px; height: 60px; flex: none; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-photo .link { min-height: 44px; }
.card-view { width: min(900px, calc(100vw - 24px)); padding: 12px; }
.card-view img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; }
.card-view .calldlg-acts { justify-content: space-between; }

/* Sending email: one clear block in Settings, and Gmail first when someone sends */
.send-email { margin: 8px 0 20px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: 14px; display: grid; gap: 14px; max-width: 680px; }
.send-email h3 { margin: 0; font-size: 1.02rem; }
.send-email .field { margin: 0; }
.mailpick-direct { display: grid; gap: 6px; margin-bottom: 14px; }
.mailpick-direct .btn { justify-content: center; }
.mailpick-direct .hint { margin: 0; font-size: 13px; color: var(--muted); }
.mailpick .mailpick-or { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Your plan (relationship OS, #plan) and the plans popup after setup: plan cards, a ticked list of what each has,
   the Calls add-on as its own cards. Colours are the palette's own tokens, so light and dark both follow. */
.plan-page { display: grid; gap: 22px; max-width: 1000px; }
.plan-page > .hint { margin: 0; }
.plan-meter { gap: 12px; }
.plan-meter > div { display: grid; gap: 4px; }
.plan-meter i, .plan-use i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.plan-meter em, .plan-use em { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.plan-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.plan-head > div:first-child { display: grid; gap: 4px; }
.plan-head-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.plan-head-act .hint { margin: 0; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); min-width: 0; }
.pcard.is-rec { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent), 0 22px 44px -30px color-mix(in srgb, var(--ink) 45%, transparent); }
.pcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.pcard h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.pbadge { flex: none; font-style: normal; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--side); color: var(--ink-2); border: 1px solid var(--line); }
.pbadge.rec { background: color-mix(in srgb, var(--ok) 14%, var(--raised)); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ink); }
.pbadge.mine { background: var(--ink); border-color: var(--ink); color: var(--page); }
.pprice { margin: 0; display: flex; align-items: baseline; gap: 4px; }
.pprice b { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pprice span { font-size: 15px; color: var(--muted); }
.pcard-sub { margin: 0; font-size: 15px; color: var(--muted); }
.pcheck { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.pcheck li { display: flex; align-items: flex-start; gap: 10px; }
.pk { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ok); }
.pcheck li.n { color: var(--muted); }
.pcheck li.n .pk { color: var(--faint); }
.pcard-act { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
.pcard-act .btn { width: 100%; justify-content: center; }
.pcard-act .hint { margin: 0; text-align: center; }
.plan-sec-h { margin-top: 18px; display: grid; gap: 6px; }
.plan-sec-h h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.plan-sec-h p { margin: 0; font-size: 15px; color: var(--muted); max-width: 62ch; }
.paddons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.paddon { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); min-width: 0; }
label.paddon { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
label.paddon:hover { border-color: var(--line-2); }
label.paddon .pcard-top { padding-right: 28px; justify-content: flex-start; flex-wrap: wrap; }
.paddon input { position: absolute; top: 20px; right: 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.paddon.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.paddon h3 { font-size: 16px; }
.paddon .pprice b { font-size: 26px; }
.paddon .pcheck { font-size: 14px; gap: 7px; margin: 0; padding-top: 12px; }
.paddon .pk { width: 16px; height: 16px; }
.plan-calls-note { margin: 0; }
/* Four plans in a row; two by two on mid screens, one column on phones */
.pcards.pcards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcards-4 .pcard { padding: 22px; }
.pcards-4 .pprice b { font-size: 34px; }
.pcards-4 .pcheck { font-size: 14px; gap: 8px; }
.pcards-4 .pk { width: 16px; height: 16px; }
.payg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); }
.payg-t { flex: 1 1 420px; display: grid; gap: 8px; min-width: 0; }
.payg-t .pcard-top { justify-content: flex-start; min-height: 0; }
.payg h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.payg p { margin: 0; font-size: 15px; color: var(--muted); max-width: 70ch; }
.payg p b { color: var(--ink); font-weight: 600; }
.payg-act { flex: none; }
.founders { margin-top: 6px; background: var(--side); }
.founders-row { display: flex; gap: 8px; flex: 1 1 320px; max-width: 420px; }
.founders-row input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); }
.founders-status { flex-basis: 100%; margin: 0; }
.founders-status:empty { display: none; }
/* Popups: a short, quiet pick list */
.plandlg:has(.pmin) { width: min(520px, calc(100vw - 32px)); padding: 32px 32px 26px; }
.pmin h2 { margin: 4px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.pmin > .calldlg-p { margin: 0 0 20px; }
.pmin-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ok); }
.prows { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--raised); }
.prow { position: relative; display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; transition: background .15s; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow:hover { background: color-mix(in srgb, var(--ink) 3%, var(--raised)); }
.prow input { position: absolute; opacity: 0; pointer-events: none; }
.prow-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.prow.on { background: color-mix(in srgb, var(--ok) 6%, var(--raised)); }
.prow.on .prow-dot { border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--raised), inset 0 0 0 9px var(--ink); }
.prow input:focus-visible ~ .prow-dot { outline: 2px solid var(--ink); outline-offset: 2px; }
.prow-name { display: grid; gap: 2px; min-width: 0; }
.prow-name b { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.prow-name small { font-size: 13.5px; color: var(--muted); }
.prow-price { text-align: right; white-space: nowrap; }
.prow-price b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.prow-price small { display: block; font-size: 12.5px; color: var(--muted); }
.pmin .plan-small { margin: 12px 0 0; }
.pmin-acts { display: grid; gap: 10px; margin-top: 20px; justify-items: center; }
.pmin-acts .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15.5px; }
.pmin-foot { display: flex; justify-content: center; gap: 10px; margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.pmin-foot a, .pmin-foot .link { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
/* Teams: price, what's included, seats */
.pteam-price { margin: 0 0 14px; }
.pteam-price b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pteam-price span { color: var(--muted); font-size: 14.5px; }
.pteam .pcheck { margin: 0 0 16px; }
.pseats { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.pseats label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.pseats-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pseats-row input { width: 72px; font: inherit; text-align: center; padding: 7px 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 8px; background: var(--raised); color: var(--ink); }
.pseats-row .btn-small { min-width: 36px; justify-content: center; }
.pseats-total { margin-left: auto; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.pteam-off { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.team-plan-price { margin: 0 0 4px; }
@media (max-width: 480px) {
  .plandlg:has(.pmin) { padding: 26px 18px 20px; }
  .prow { padding: 14px; gap: 12px; }
  .prow-name small { font-size: 13px; }
}
.plan-page .actions { margin: 0; }
/* The popup: the same cards, compact */
.plandlg.plandlg-wide { width: min(1000px, calc(100vw - 32px)); }
.pintro-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 32px 18px 0; }
.pintro-head h2 { margin: 2px 0 6px; }
.pintro-head .calldlg-p { margin: 0; }
.pintro-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 15%, var(--raised)); color: var(--ok); }
.pintro-ic .pk { width: 22px; height: 22px; margin: 0; }
.pcards.compact { gap: 12px; }
.pcard.compact { padding: 18px 20px; gap: 8px; border-radius: 16px; }
.pcard.compact .pprice b { font-size: 30px; }
.pcard.compact .pcard-sub { font-size: 14px; }
.pcard.compact .pcheck { font-size: 14px; gap: 6px; padding-top: 10px; margin-top: 2px; }
.pcard.compact .pk { width: 16px; height: 16px; }
.pstrip { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--side); }
.pstrip b { font-size: 14px; font-weight: 600; color: var(--ink); }
.pstrip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; }
.pstrip li { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: 13.5px; color: var(--ink); }
.pstrip li em { font-style: normal; color: var(--muted); }
.pstrip p { margin: 0; font-size: 13px; color: var(--muted); }
.plandlg > .hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.plandlg .paddons { margin: 0 0 14px; }
@media (max-width: 1100px) { .pcards.pcards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pcards, .paddons, .pcards.pcards-4 { grid-template-columns: 1fr; }
  .pcard { padding: 22px; }
  .plandlg .pcard.compact .pcheck { grid-template-columns: 1fr 1fr; column-gap: 12px; }
}
@media (max-width: 420px) { .plandlg .pcard.compact .pcheck { grid-template-columns: 1fr; } }

/* Light and dark audit fixes (relationship OS unless marked shared). Every colour is a palette token. */
/* Shared, dark only: phone, number, date and web address fields had the browser's grey box instead of the page's own. */
:root[data-theme="dark"] input:is([type="tel"], [type="number"], [type="date"], [type="url"]) { background: var(--bg); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input:is([type="tel"], [type="number"], [type="date"], [type="url"]) { background: var(--bg); color: var(--ink); } }
/* Primary buttons on hover: dark text on the bright dark-mode accent (white on it was too faint) */
:root[data-skin="ecommerce"][data-theme="dark"] .btn:not(.btn-quiet):not(.btn-danger):hover { color: var(--page); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) .btn:not(.btn-quiet):not(.btn-danger):hover { color: var(--page); } }
/* Setup in dark: the big buttons in the setup's own olive, not a pale cream block */
:root[data-skin="ecommerce"][data-theme="dark"] .setup .btn-big, :root[data-skin="ecommerce"][data-theme="dark"] .setup .btn-big:hover { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) .setup .btn-big, :root[data-skin="ecommerce"]:not([data-theme="light"]) .setup .btn-big:hover { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .3); } }
/* Small grey text that was below 4.5:1 */
:root[data-skin="ecommerce"] .page .list .i-when.none { color: var(--muted) !important; }
:root[data-skin="ecommerce"] p > kbd { opacity: 1; color: var(--muted); border-color: var(--line-2); }
:root[data-skin="ecommerce"] .calls-dial .dial-how { opacity: 1; }
:root[data-skin="ecommerce"] #tabbar a[aria-current][href] { color: var(--ink); box-shadow: inset 0 2px 0 var(--accent); }
.plandlg .plan-off { color: var(--ink); margin: 12px 0 0; }
/* Settings, Calls: the chosen caller ID option on a dark page */
:root[data-skin="ecommerce"][data-theme="dark"] :is(.cid-opt.on, .cid-opt:has(input:checked)) { background: color-mix(in srgb, var(--ok) 10%, transparent); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) :is(.cid-opt.on, .cid-opt:has(input:checked)) { background: color-mix(in srgb, var(--ok) 10%, transparent); } }
/* The warm palette in dark had three cool blue-black tokens left from the broker app (fields, rules and cards showed
   navy on brown). They follow the warm palette now. */
:root[data-skin="ecommerce"][data-theme="dark"] { --bg: var(--page); --rule: var(--line-2); --card: var(--raised); }
@media (prefers-color-scheme: dark) { :root[data-skin="ecommerce"]:not([data-theme="light"]) { --bg: var(--page); --rule: var(--line-2); --card: var(--raised); } }
/* Phones: the plans popup scrolls, and its two buttons stay in reach at the bottom */
@media (max-width: 760px) {
  .plandlg-wide { padding: 22px 18px 0; }
  .plandlg-wide .calldlg-acts { position: sticky; bottom: 0; z-index: 2; margin: 14px -18px 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--page); border-top: 1px solid var(--line); }
  .plandlg-wide .calldlg-acts .btn { flex: 1 1 auto; justify-content: center; }
  .plandlg-wide .pcard.compact .pcard-sub { display: none; }
  .plandlg-wide .pintro-head { margin-right: 40px; }
}
.plan-page .plan-cap { padding: 16px; border: 1px solid var(--line); border-radius: 10px; }
.plan-page .plan-cap-row input { width: 120px; font: inherit; font-size: 15px; padding: 8px 10px; min-height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--page); color: var(--ink); }
.plan-page .plan-cap .hint { margin: 0; }

/* Other numbers on the edit form (relationship OS): one row each, what it is and the number */
.ce-phones > span { display: block; }
.ce-phone-rows { display: grid; gap: 8px; margin: 6px 0 4px; }
.ce-phone-rows:empty { display: none; }
.ce-phone-row { display: grid; grid-template-columns: minmax(96px, 120px) 1fr auto; gap: 8px; align-items: center; }
.ce-phone-row select, .ce-phone-row input { min-width: 0; }
.ce-phones [data-ce="add-phone"] { justify-self: start; margin-top: 2px; }

/* Connected people on a card (relationship OS) */
.links { margin: 18px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.links h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.links-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.links-list li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.links-name { font-weight: 600; }
.links-rel { font-size: 13.5px; color: var(--muted); }
.links-x { margin-left: auto; font-size: 13px; }
.links-add summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.links-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.links-form select { min-width: 0; max-width: 100%; }
.links-line { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.links-line span { color: var(--muted); }

/* Calls setup: your mobile and the number they see */
.calldlg:has(.csetup) { width: min(520px, calc(100vw - 32px)); padding: 32px 32px 26px; }
.csetup h2 { margin: 4px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.csetup > .calldlg-p { margin: 0 0 18px; }
.csetup-mob { display: grid; gap: 6px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--ink); }
.csetup-mob input { font: inherit; font-weight: 400; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); }
.csetup-q { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.csetup .prow-price small { font-size: 12px; }
.csetup-err { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.csetup-err:empty { display: none; }
@media (max-width: 480px) { .calldlg:has(.csetup) { padding: 26px 18px 20px; } }

.links-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 14px; color: var(--ink); }

/* Settings, Claude and ChatGPT: the private connector link */
.conn-box { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.conn-box p { margin: 0; }
.conn-url { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.conn-url input { font: inherit; font-weight: 400; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); width: 100%; }
.conn-steps { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.conn-steps b { color: var(--ink); font-weight: 600; }

/* Inner circle (relationship OS) */
.inner { margin: 0 0 18px; }
.inner h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.inner-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.inner-p { flex: none; display: grid; justify-items: center; gap: 6px; width: 68px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.inner-p span:last-child { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inner-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 600; background: var(--raised); border: 1.5px solid color-mix(in srgb, var(--ok) 45%, var(--line)); color: var(--ink); }
.star-btn.on { color: var(--ink); font-weight: 600; }
.star-mark { color: var(--ok); margin-right: 6px; }
/* Select many in People */
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); position: sticky; top: 8px; z-index: 5; }
.bulk b { font-weight: 600; margin-right: 4px; }
.bulk-tag { display: inline-flex; gap: 6px; }
.bulk-tag input { width: 110px; font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--page); color: var(--ink); }
.selecting .item { position: relative; }
.crow-check { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); background: var(--raised); z-index: 2; padding: 0; cursor: pointer; }
.selecting .crow { padding-left: 44px; }
.item.sel .crow-check { background: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 4px var(--raised); }
.item.sel { background: color-mix(in srgb, var(--ok) 6%, transparent); }

/* Book a meeting */
.calldlg:has(.meet) { width: min(480px, calc(100vw - 32px)); padding: 30px 30px 24px; }
.meet h2 { margin: 0 0 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.meet-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.meet-row label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; }
.meet-row input, .meet-row select { font: inherit; font-weight: 400; font-size: 15px; padding: 10px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); min-width: 0; }
.meet-v { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.meet .hint { margin: 0 0 6px; }
@media (max-width: 460px) { .meet-row { grid-template-columns: 1fr 1fr; } .meet-row label:first-child { grid-column: 1 / -1; } }

/* Sign in: the email box and the code box the same size, each with its button the same width */
.imp-signin .signin-form, .imp-signin .signin-code-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: stretch; max-width: 520px; }
.imp-signin .signin-form input#signin-email, .imp-signin .signin-code-row input#signin-code { width: 100%; max-width: none; flex: none; margin: 0; height: 52px; box-sizing: border-box; padding: 0 16px; font: inherit; font-size: 16px; letter-spacing: normal; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); }
.imp-signin .signin-code-row input#signin-code { letter-spacing: .12em; }
.imp-signin .signin-form button.btn, .imp-signin .signin-code-row button.btn { height: 52px; justify-content: center; width: 100%; margin: 0; }
.imp-signin .signin-form .hp { display: none; }
@media (max-width: 480px) { .imp-signin .signin-form, .imp-signin .signin-code-row { grid-template-columns: 1fr; } }
.imp-signin .signin-form, .imp-signin .signin-code, .imp-signin .signin-code-row { width: 100%; max-width: 520px; justify-self: stretch; align-self: stretch; }
.imp-signin .signin-code-row input#signin-code { width: 100% !important; }

/* The edit line under a name: room between each action */
.edit-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.edit-line .del-link { margin-left: 0; }
/* The big pricing popup */
.plandlg:has(.pbig) { width: min(1140px, calc(100vw - 32px)); padding: 34px 34px 26px; }
.pbig-head { max-width: 640px; margin: 0 0 22px; }
.pbig-head h2 { margin: 4px 0 8px; font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.pbig-head .calldlg-p { margin: 0; font-size: 16px; }
.pbig .pcards-4 { gap: 14px; }
.pbig .pcard { padding: 22px 20px; }
.pbig .pcard.is-rec { transform: translateY(-4px); }
.pbig .pcheck li.n { color: var(--muted); }
.pbig-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pbig-acts { display: inline-flex; align-items: center; gap: 18px; }
.founder-link { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.founder-link:hover { color: var(--clay-2); }
:root { --clay: #b4532b; --clay-2: #8f3f1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --clay: #e8936a; --clay-2: #f2b08e; } }
:root[data-theme="dark"] { --clay: #e8936a; --clay-2: #f2b08e; }
@media (max-width: 760px) { .plandlg:has(.pbig) { padding: 24px 16px 18px; } .pbig-head h2 { font-size: 24px; } .pbig .pcard.is-rec { transform: none; } }
/* Inner circle on Home: a card like the sections around it, not floating */
.inner { margin: 16px 0 18px; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--raised); }
.inner h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.inner h2::before { content: "★"; color: var(--ok); font-size: 15px; }
.inner-row { gap: 16px; }
/* Select mode: a tick column, then the row, then delete */
#client-rows.selecting > li.item { grid-template-columns: 40px minmax(0, 1fr) 40px; }
#client-rows.selecting .crow-check { position: static; transform: none; justify-self: center; }
#client-rows.selecting .crow { padding-left: 0; }
/* Breathing room under a folder's tabs */
.askbook { margin-top: 18px; }
/* Linking someone: a proper-sized name box */
.links-form input#link-who { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 15px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); box-sizing: border-box; }
.links-form select { height: 46px; }
/* Move someone into a folder */
.move-here { display: grid; gap: 8px; margin-top: 18px; max-width: 520px; }
.move-here label { font-weight: 600; font-size: 14px; color: var(--ink); }
.move-here-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.move-here-row input { font: inherit; font-size: 15px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); min-width: 0; }
.move-here-row .btn { height: 46px; }
/* Sidebar folders: delete on hover */
.nav-folder-row { position: relative; }
.nav-folder-row .nav-folder { padding-right: 34px; }
.nav-folder-del { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; }
.nav-folder-del svg { width: 15px; height: 15px; }
.nav-folder-row:hover .nav-folder-del, .nav-folder-del:focus-visible { opacity: 1; }
.nav-folder-del:hover { color: #b42318; background: rgb(180 35 24 / .08); }
@media (hover: none) { .nav-folder-del { opacity: .6; } }
/* Select mode tick box: visible in both themes */
#client-rows.selecting .crow-check { border: 1.5px solid var(--muted); width: 22px; height: 22px; }
#view .askbook { margin-top: 20px; }
/* Call with notes: in the value column, under the number */
.facts > div.fact-call, .sheet .facts > div.fact-call { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; border-bottom: 1px solid var(--line); }
.facts > div.fact-call > .call-btn { grid-column: 2; justify-self: start; }
:root[data-skin="ecommerce"] .facts > div.fact-call { grid-column: 1 / -1; }

/* Every box in a popup looks the same: one height, border, corner and focus ring, in both themes */
:is(.calldlg, .sync-dlg, .plandlg) :is(input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=password], input[type=search], input:not([type]), select):not(.hp) {
  font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); box-shadow: none; }
:is(.calldlg, .sync-dlg, .plandlg) :is(input, select):focus-visible { outline: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); outline-offset: 2px; border-color: var(--ink); }
.sync-dlg .sync-confirm input { width: 100%; max-width: 360px; letter-spacing: .15em; text-transform: uppercase; }

/* Card selects (Folder, Keep in touch) stay inside the card */
.facts .move-sel { max-width: 100%; min-width: 0; width: 100%; box-sizing: border-box; }
.facts dd { min-width: 0; }
.every-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.every-custom input { width: 70px; font: inherit; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); }
.every-custom select { height: 40px; }
/* The map in dark mode: dark sea, dark land, readable labels (it used fixed light colours) */
:root { --map-sea: #eef4f6; --map-land: #f8f4ec; --map-card: #fff; --map-ring: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --map-sea: #17222a; --map-land: #2a251e; --map-card: #1f1b16; --map-ring: #1f1b16; } }
:root[data-theme="dark"] { --map-sea: #17222a; --map-land: #2a251e; --map-card: #1f1b16; --map-ring: #1f1b16; }
.pm-card { background: var(--map-card); }
.pm-card .pm-svg, .pm-svg { background: var(--map-sea); }
.pm-land { fill: var(--map-land); }
.pm-dot, .pm-badge { stroke: var(--map-ring); }
.pm-label { stroke: var(--map-sea); }
/* Editing a note on the card */
.note-old.editing { display: grid; gap: 8px; }
.note-edit-t { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); resize: vertical; }
.note-edit-acts { display: flex; align-items: center; gap: 14px; }
.note-old .note-edit { margin-left: 6px; }
.note-all { margin-top: 6px; }

/* Who are you? */
.me-form { display: grid; gap: 14px; max-width: 620px; margin: 6px 0 22px; }
.me-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.me-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); min-width: 0; }
.me-form label em { font-style: normal; font-weight: 400; color: var(--muted); }
.me-form input, .me-form textarea { font: inherit; font-weight: 400; font-size: 16px; min-height: 48px; padding: 10px 14px; box-sizing: border-box; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); }
.me-form textarea { resize: vertical; line-height: 1.5; }
.calldlg.me-dlg { width: min(600px, calc(100vw - 32px)); padding: 30px 30px 24px; }
.me-dlg h2 { margin: 4px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.setup-go .link { margin-left: 16px; }
@media (max-width: 520px) { .me-row { grid-template-columns: 1fr; } }

/* Notes directory */
.notes-dir { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.notes-month { margin: 18px 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.notes-row { border-bottom: 1px solid var(--line); }
.notes-open { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; width: 100%; padding: 14px 4px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.notes-open:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.notes-who { font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.notes-who em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--side); color: var(--muted); }
.notes-text { font-size: 15px; line-height: 1.5; color: var(--ink-2, var(--ink)); white-space: pre-line; }
.notes-at { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .notes-open { grid-template-columns: 1fr auto; } .notes-text { grid-column: 1 / -1; grid-row: 2; } }
/* Settings: AI assistant steps, and Calls at a glance */
.conn-how { display: grid; gap: 8px; margin-top: 6px; }
.conn-how details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--raised); }
.conn-how summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.conn-how ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink); }
.calls-now { margin: 6px 0 12px; display: grid; gap: 0; max-width: 460px; }
.calls-now div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.calls-now dt { color: var(--muted); }
.calls-now dd { margin: 0; color: var(--ink); }

.conn-paste { display: grid; gap: 8px; margin-top: 14px; max-width: 620px; }
.conn-paste label { font-size: 14px; color: var(--muted); }
.conn-paste-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.conn-paste-row input { font: inherit; font-size: 14px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); min-width: 0; }

/* Phones: Home keeps what you act on; the card reads top to bottom */
@media (max-width: 760px) {
  :root[data-skin="ecommerce"] .hstat, :root[data-skin="ecommerce"] .hwhy, :root[data-skin="ecommerce"] .home-split,
  :root[data-skin="ecommerce"] .fgrid, :root[data-skin="ecommerce"] .home-h:has(+ .fgrid) { display: none; }
  :root[data-skin="ecommerce"] .va-opens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
  :root[data-skin="ecommerce"] .va-opens .va-open { justify-content: center; padding: 10px 6px; font-size: 13.5px; min-height: 44px; }
  :root[data-skin="ecommerce"] .va-opens .va-open svg { width: 16px; height: 16px; }
  :root[data-skin="ecommerce"] .pm-card .pm-svg { height: 120px; }
  :root[data-skin="ecommerce"] .tour { padding: 16px 18px; }
  :root[data-skin="ecommerce"] .tour ol li span { display: none; }
  :root[data-skin="ecommerce"] .inner { padding: 14px 16px; }
  /* The card: label above value, full width */
  :root[data-skin="ecommerce"] .sheet .facts > div, :root[data-skin="ecommerce"] .facts > div.fact-call { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  :root[data-skin="ecommerce"] .facts > div.fact-call > .call-btn { grid-column: 1; }
  :root[data-skin="ecommerce"] .facts dt { font-size: 13px; }
  :root[data-skin="ecommerce"] .edit-line { gap: 4px 16px; }
  :root[data-skin="ecommerce"] .sheet h1, :root[data-skin="ecommerce"] .sheet .sheet-head h2 { font-size: 30px; }
}
/* Map colours win over the skin's own (dark mode included) */
:root[data-skin] .pm-card .pm-svg, :root[data-skin] .pm-svg { background: var(--map-sea); }
:root[data-skin] .pm-land { fill: var(--map-land); }
@media (max-width: 760px) {
  :root[data-skin="ecommerce"] .va-opens .va-open svg { display: none; }
  :root[data-skin="ecommerce"] .va-opens .va-open { white-space: nowrap; font-size: 13px; padding: 10px 4px; }
  :root[data-skin="ecommerce"] .edit-line { margin-bottom: 0; }
  :root[data-skin="ecommerce"] .sheet .edit-line + * { margin-top: 8px; }
}

.note-old.done .note-t { color: var(--muted); }
.note-done { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; margin-right: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.conn-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }

.conn-linked { margin: 14px 0 0; font-size: 14px; color: var(--ok); }
.conn-linked:empty { display: none; }
.conn-k { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: 13px; }
/* Notes on a card: the text, then one quiet line of date · Edit · Delete */
.note-old:not(.editing) { display: grid; gap: 8px; }
.note-old .note-t { font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.note-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.note-act, :root[data-skin] .note-act { all: unset; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; min-height: 0; }
.note-act:hover { color: var(--ink); }
.note-act-del:hover { color: #b42318; }
.note-act:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.note-old:not(.editing) { text-align: left; justify-items: start; width: 100%; box-sizing: border-box; }
.note-old .note-t { width: 100%; }

.note-old, .note-old .note-t { white-space: normal; }
.note-pin { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; margin-right: 4px; border-radius: 999px; background: color-mix(in srgb, var(--clay) 16%, transparent); color: var(--clay); }
/* Card notes: the older "date on the right" rule no longer applies to the note text */
.note-add .note-old:not(.editing) { display: grid; gap: 8px; }
.note-add .note-old > .note-t { margin-left: 0; white-space: normal; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; color: var(--ink); }
.note-add .note-old > .note-meta { margin-left: 0; white-space: normal; font-size: 13px; }
.nav-folder-row .nav-folder { padding-right: 62px; }
.nav-folder-ren { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; opacity: 0; }
.nav-folder-ren svg { width: 14px; height: 14px; }
.nav-folder-row:hover .nav-folder-ren, .nav-folder-ren:focus-visible { opacity: 1; }
.nav-folder-ren:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
@media (hover: none) { .nav-folder-ren { opacity: .6; } }

/* Today rows (relationship OS): a coloured chip says what kind of thing it is; the note stays to one line. */
.gi-why { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.gi-kind { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; line-height: 1.2; }
.gi-k-todo { background: color-mix(in srgb, var(--clay, #c2410c) 18%, transparent); color: var(--clay, #c2410c); }
.gi-k-fu { background: color-mix(in srgb, #3b82c4 18%, transparent); color: #2f74b5; }
.gi-k-bday { background: color-mix(in srgb, #c0448f 16%, transparent); color: #b03c82; }
.gi-k-new { background: color-mix(in srgb, #147a3d 16%, transparent); color: #147a3d; }
:root[data-theme="dark"] .gi-k-fu { color: #8cc3f2; } :root[data-theme="dark"] .gi-k-bday { color: #f09ac9; } :root[data-theme="dark"] .gi-k-new { color: #7fd19d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-k-fu { color: #8cc3f2; } :root:not([data-theme="light"]) .gi-k-bday { color: #f09ac9; } :root:not([data-theme="light"]) .gi-k-new { color: #7fd19d; } }
body.rel .gi-note, .gi .gi-note { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; opacity: .8; }

/* ---------- Settings (relationship OS): pill tabs, each section its own textured card with a colour edge ---------- */
:root[data-skin="ecommerce"] .settings { gap: 20px; max-width: 820px; margin-top: 8px; }
:root[data-skin="ecommerce"] .ftabs:has(+ .settings) { border-bottom: 0; gap: 6px; flex-wrap: wrap; margin: 16px 0 20px; }
:root[data-skin="ecommerce"] .ftabs:has(+ .settings) a { padding: 7px 14px; margin: 0; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; background: var(--raised); }
:root[data-skin="ecommerce"] .ftabs:has(+ .settings) a:hover { border-color: var(--accent); color: var(--ink); }
:root[data-skin="ecommerce"] .ftabs:has(+ .settings) a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
:root[data-skin="ecommerce"] .settings > section {
  --edge: var(--accent);
  position: relative; overflow: hidden; padding: 26px 28px 28px 32px; gap: 18px;
  border: 1px solid var(--line-2); border-radius: 18px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, color-mix(in srgb, var(--edge) 9%, var(--raised)) 0%, var(--raised) 55%);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent), 0 10px 28px -18px color-mix(in srgb, var(--ink) 30%, transparent);
}
:root[data-skin="ecommerce"] .settings > section::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--edge); }
:root[data-skin="ecommerce"] .settings > section > h2 { border: 0; padding: 0; font-size: 22px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
/* a colour per tab */
:root[data-skin="ecommerce"] .settings > section.set-about { --edge: var(--plum); }
:root[data-skin="ecommerce"] .settings > section[data-g="security"] { --edge: var(--ok); }
:root[data-skin="ecommerce"] .settings > section[data-g="ai"] { --edge: var(--plum); }
:root[data-skin="ecommerce"] .settings > section[data-g="details"] { --edge: var(--u-soon); }
:root[data-skin="ecommerce"] .settings > section[data-g="email"] { --edge: #3b82c4; }
:root[data-skin="ecommerce"] .settings > section[data-g="calls"] { --edge: var(--ok); }
:root[data-skin="ecommerce"] .settings > section[data-g="drafting"] { --edge: var(--u-soon); }
:root[data-skin="ecommerce"] .settings > section[data-g="data"] { --edge: var(--u-now); }
/* boxes inside a section: a soft inset panel, not another outline */
:root[data-skin="ecommerce"] .settings > section .send-email,
:root[data-skin="ecommerce"] .settings > section .setup-sum { border: 0; border-radius: 14px; padding: 18px 20px; background: color-mix(in srgb, var(--edge) 7%, var(--page)); }
:root[data-skin="ecommerce"] .settings > section h3 { font-size: 15px; margin: 0 0 6px; }
:root[data-skin="ecommerce"] .settings > section .hint { opacity: .8; }
:root[data-skin="ecommerce"] .settings .set-about .me-form { gap: 14px; }

.met-q .met-q-no { justify-self: start; margin-top: 8px; font-size: 13px; }

/* Folder colours */
.nav-folder-row .nav-folder svg { color: var(--fc, currentColor); }
.nav-folder-row .nav-folder svg path, .nav-folder-row .nav-folder svg { fill: color-mix(in srgb, var(--fc, transparent) 22%, transparent); }
.fcard[style*="--fc"] { background: linear-gradient(160deg, color-mix(in srgb, var(--fc) 14%, transparent), transparent 60%); border-top: 3px solid var(--fc); }
.fcard[style*="--fc"] .fcard-top svg { color: var(--fc); }
/* AI assistants: logos */
.ai-logo { width: 18px; height: 18px; flex: none; }
.ai-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-2); }
.ai-chip .ai-logo { width: 22px; height: 22px; }
.ai-chatgpt { color: var(--ink); }
.ai-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-row p { margin: 0 0 0 8px; flex: 1 1 260px; color: var(--ink-2); }
.conn-how summary { display: flex; align-items: center; gap: 10px; }
.ai-soon { font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 999px; background: color-mix(in srgb, var(--plum, #8E75FF) 18%, transparent); color: var(--plum, #8E75FF); }
dialog.ai-pop { max-width: 440px; width: calc(100% - 32px); padding: 32px 28px 26px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--raised, #fff); color: var(--ink); text-align: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
dialog.ai-pop::backdrop { background: rgba(20, 16, 10, .45); }
.ai-pop-logos { display: flex; justify-content: center; gap: 14px; margin-bottom: 18px; }
.ai-pop-logos .ai-chip { width: 64px; height: 64px; border-radius: 18px; }
.ai-pop-logos .ai-chip .ai-logo { width: 34px; height: 34px; }
.ai-pop h2 { font-size: 26px; margin: 0 0 8px; }
.ai-pop p { color: var(--ink-2); margin: 0 0 22px; line-height: 1.5; }
.ai-pop-acts { display: flex; justify-content: center; gap: 10px; }
#sync-security .actions .hint { align-self: center; }

.conn-how .conn-note { display: block; margin: 8px 0 2px; padding: 8px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, #D97757 12%, transparent); }

/* Which folder someone is in: a small tag in the folder's colour */
.gi-folder { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 1.5; vertical-align: 1px; color: var(--fc); background: color-mix(in srgb, var(--fc) 14%, transparent); }

/* Merge two people; add a number from the card */
.merge-dlg .mg-in { width: 100%; margin: 6px 0 10px; }
.merge-dlg .mg-pick { margin: 0 0 14px; font-size: 14px; color: var(--ink-2); }
.add-num { margin: -2px 0 6px; }
.add-num .link { font-size: 13px; }

.ai-can { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.ai-can li { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--edge, var(--plum)) 8%, var(--page)); display: grid; gap: 2px; }
.ai-can b { font-size: 14px; }
.ai-can span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ai-can li.no b { color: var(--ok, #5e6b2f); }

/* Home bar: several people at once */
.qadd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; padding: 0; }
.qadd-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line-2); font-size: 14px; }
.qadd-chips button { border: 0; background: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; cursor: pointer; }
.qadd-chips button:hover { color: var(--ink); }

/* Edit details: notes folded away, so a long history doesn't crowd the form */
.ce-notes { border: 1px solid var(--line-2); border-radius: 12px; padding: 0; }
.ce-notes > summary { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: 14px; list-style: none; }
.ce-notes > summary::-webkit-details-marker { display: none; }
.ce-notes > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.ce-notes[open] > summary::after { transform: rotate(180deg); }
.ce-notes > summary em { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--wash, var(--line)); color: var(--ink-2); }
.ce-notes > summary small { font-weight: 400; font-size: 12px; color: var(--muted); }
.ce-notes-list { display: grid; gap: 10px; padding: 0 14px 14px; max-height: 340px; overflow-y: auto; }
.ce-note { display: grid; gap: 4px; }
.ce-note > span { font-size: 12px; color: var(--muted); }
.ce-note textarea { width: 100%; }

/* Today rows, calmer: one coloured word per row (what kind of thing it is). The reason is plain text, the folder is
   quiet grey like the company, no pills. */
.gi .gi-why:has(.gi-kind) mark { background: none !important; color: var(--ink) !important; padding: 0; }
.gi .gi-kind { background: none !important; padding: 0; font-size: 11px; letter-spacing: .05em; }
.gi .gi-folder { background: none; color: var(--muted); padding: 0; margin-left: 2px; font-weight: 400; font-size: 13px; }
.gi .gi-folder::before { content: "· "; }
.gi .nocontact-chip { background: none !important; border: 0 !important; padding: 0 !important; margin-left: 6px; color: var(--faint) !important; font-size: 12px; font-weight: 400; }

.rm-asks { display: grid; gap: 10px; }
.rm-ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rm-ask small { display: block; color: var(--muted); font-size: 13px; }
.rm-acts { display: flex; gap: 8px; }

/* Home bar answers: copy a detail */
.ask-li-copy { display: flex; align-items: center; gap: 8px; }
.ask-li-copy > .ask-hit { flex: 1; min-width: 0; }
.ask-copy { flex: none; }
.ask-copy.copied { color: var(--ok, #5e6b2f); border-color: currentColor; }

/* Today rows: tick a to-do or follow-up off, however you did it */
li.gi:has(> .gi-done) { position: relative; }
.gi-done { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: var(--raised); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, color .15s, border-color .15s; }
li.gi:hover > .gi-done, .gi-done:focus-visible { opacity: 1; }
.gi-done:hover { color: var(--ok, #5e6b2f); border-color: currentColor; }
.gi-done svg { width: 16px; height: 16px; }
@media (hover: none) { .gi-done { opacity: 1; } }

/* Today rows, warm but calm: the initials in their folder's colour, a dot before the folder, a soft tag for the kind.
   The reason stays plain text. */
li.gi[style*="--fc"] .gi-av { background: color-mix(in srgb, var(--fc) 16%, transparent); color: color-mix(in srgb, var(--fc) 80%, var(--ink)); border-color: transparent; font-weight: 600; }
.gi .gi-folder::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--fc); margin: 0 6px 1px 4px; vertical-align: middle; }
.gi .gi-kind { padding: 2px 8px !important; border-radius: 999px; }
.gi .gi-k-todo { background: color-mix(in srgb, var(--clay, #c2410c) 13%, transparent) !important; }
.gi .gi-k-fu { background: color-mix(in srgb, #3b82c4 13%, transparent) !important; }
.gi .gi-k-bday { background: color-mix(in srgb, #c0448f 12%, transparent) !important; }
.gi .gi-k-new { background: color-mix(in srgb, #147a3d 12%, transparent) !important; }
.gi .gi-why { gap: 10px; align-items: center; }
.gi > button[data-review] { min-height: 0; padding-top: 12px; padding-bottom: 12px; }
li.gi > button.gi-done { position: absolute !important; margin: 0 !important; }

/* Done on a Today row: always visible and labelled, so it's never clicked by accident; Undo in the toast. */
li.gi > button.gi-done { opacity: 1 !important; width: auto; height: 28px; padding: 0 10px 0 8px; gap: 4px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); right: 72px; }
li.gi > button.gi-done svg { width: 14px; height: 14px; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 160px; }
@media (max-width: 560px) { li.gi > button.gi-done span { display: none; } li.gi > button.gi-done { right: 56px; padding: 0 8px; } li.gi:has(> .gi-done) > button[data-review] { padding-right: 96px; } }
#toast .toast-undo { margin-left: 10px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-decoration: underline; cursor: pointer; pointer-events: auto; }
#toast:has(.toast-undo) { pointer-events: auto; }
li.gi > button.gi-done, li.gi.sel > button.gi-done { border: 1px solid var(--line-2) !important; border-left-width: 1px !important; background: var(--raised) !important; box-shadow: none !important; }
li.gi > button.gi-done:hover { color: var(--ok, #5e6b2f) !important; border-color: currentColor !important; }

.note-act.note-done { color: var(--ok, #5e6b2f); font-weight: 500; }

/* Done on a row: the same size and shape as "Open Today" (outlined), lined up with its right edge; the countdown
   sits just to its left. */
li.gi > button.gi-done { height: 28px !important; padding: 0 12px 0 10px !important; border-radius: 4px !important; font-size: 13px !important; font-weight: 500 !important; gap: 6px !important; right: 12px !important; color: var(--ink) !important; }
.hcall-list > li.gi > button.gi-done { right: 16px !important; }
li.gi > button.gi-done svg { width: 13px !important; height: 13px !important; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 100px !important; }
.hcall-list > li.gi:has(> .gi-done) > button[data-review] { padding-right: 104px !important; }
@media (max-width: 560px) { li.gi > button.gi-done { padding: 0 9px !important; } li.gi:has(> .gi-done) > button[data-review] { padding-right: 56px !important; } }
.hcall-list > li.gi > button.gi-done { right: 18px !important; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 116px !important; }
.hcall-list > li.gi:has(> .gi-done) > button[data-review] { padding-right: 122px !important; }
/* Done: smaller, with room before the countdown */
li.gi > button.gi-done { height: 24px !important; padding: 0 8px 0 7px !important; font-size: 12px !important; gap: 4px !important; color: var(--ink-2) !important; }
li.gi > button.gi-done svg { width: 11px !important; height: 11px !important; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 112px !important; }
.hcall-list > li.gi:has(> .gi-done) > button[data-review] { padding-right: 116px !important; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 122px !important; }
.hcall-list > li.gi:has(> .gi-done) > button[data-review] { padding-right: 126px !important; }

/* Nobody due (relationship OS): a quiet note, not the sky panel */
.blank.done.calm-done { background: none !important; min-height: 0 !important; padding: 44px 24px !important; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.blank.done.calm-done::before, .blank.done.calm-done::after { content: none !important; }
.calm-done h2 { font-size: 22px; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.calm-done p { margin: 0; color: var(--muted); font-size: 14px; }
.calm-done-tick { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok, #5e6b2f) 14%, transparent); color: var(--ok, #5e6b2f); }
.calm-done-tick svg { width: 18px; height: 18px; }
.blank.done.calm-done { grid-column: 1 / -1; width: 100%; box-sizing: border-box; margin-top: 16px; }

.welcome-dev { max-width: 560px; display: grid; gap: 14px; margin-top: 12px; font-size: 15px; }
.welcome-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); }
.signin-invite { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Contact card, calmer: More menu opens downward; LinkedIn on one quiet line; lighter dropdowns. */
.edit-line .edit-more { display: inline-block; }
.edit-line .edit-more > summary { min-height: 0 !important; display: inline; }
.edit-line .edit-more .more-list { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; min-width: 200px; }
.edit-line .edit-more .del-link { color: var(--danger, #b3261e); }
.li-none { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 2px 0 4px; font-size: 14px; color: var(--muted); }
.li-none > span { min-width: 120px; margin-right: 6px; }
.facts .move-sel { width: auto; min-height: 0; padding: 4px 28px 4px 10px; border-color: transparent; background-color: var(--wash, transparent); border-radius: 10px; font-size: 15px; }
.links-add > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 14px; }
.links-add > summary::-webkit-details-marker { display: none; }
.links:not(:has(> h2)) { margin-top: 2px; }

/* Today's one: a circle. The week's seven days ring the person's initial; the streak sits on it. Colour from what the book is for. */
.one-today { --ot-base: #b5532f; --ot-dot: #e7dbd1; display: flex; align-items: center; gap: 14px; margin: 14px 0 12px; }
.one-today.ot-networking { --ot-base: #4f6b43; --ot-dot: #dbe2d4; }
.one-today.ot-clients { --ot-base: #2c3f6b; --ot-dot: #d8dee9; }
.one-today.ot-founder { --ot-base: #6b3a74; --ot-dot: #e5dae7; }
.one-today.ot-fundraising { --ot-base: #24603f; --ot-dot: #d5e1da; }
.one-today.ot-ecommerce { --ot-base: #9c3f4d; --ot-dot: #ead9dc; }
.one-today { --ot-hot: var(--ot-base); }
:root[data-theme="dark"] .one-today { --ot-dot: rgb(255 255 255 / .13); --ot-hot: color-mix(in oklab, var(--ot-base) 62%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .one-today { --ot-dot: rgb(255 255 255 / .13); --ot-hot: color-mix(in oklab, var(--ot-base) 62%, #fff); } }
.one-today .ot-ring { position: relative; flex: none; width: 58px; height: 58px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; color: inherit; }
.one-today.ot-done .ot-ring { cursor: default; }
.one-today .ot-arcs { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.one-today .ot-arcs circle { fill: none; stroke: var(--ot-dot); stroke-width: 4; stroke-linecap: round; }
.one-today .ot-arcs circle.on { stroke: var(--ot-hot); }
.one-today .ot-init { position: absolute; inset: 8px; display: grid; place-items: center; border-radius: 50%; background: var(--ot-hot); color: #fff; font-weight: 600; font-size: 17px; }
.one-today .ot-init svg { width: 18px; height: 18px; }
.one-today .ot-badge { position: absolute; right: -6px; bottom: -4px; display: inline-flex; align-items: center; gap: 1px; padding: 1px 6px 1px 4px; border-radius: 999px; font-size: 11.5px; font-weight: 650; line-height: 16px; color: var(--ot-hot); background: var(--bg, #fff); border: 1px solid var(--ot-dot); font-variant-numeric: tabular-nums; }
.one-today .ot-badge svg { width: 11px; height: 11px; }
.one-today .ot-badge.off { color: var(--muted); }
.one-today .ot-text { min-width: 0; }
.one-today h2 { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.one-today .ot-text p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.one-today .ot-yes { margin-left: 6px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ot-hot); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.one-today .ot-yes:hover { filter: brightness(1.06); }

/* Today's one, at the top of Home: a soft wash of the book's colour, a bigger ring, the week underneath. */
.one-today { position: relative; gap: 18px; margin: 4px 0 18px; padding: 16px 18px; border-radius: 20px; background: color-mix(in oklab, var(--ot-hot) 7%, transparent); }
.one-today .ot-ring { width: 76px; height: 76px; }
.one-today .ot-arcs circle { stroke-width: 3.5; }
.one-today .ot-init { inset: 10px; font-size: 22px; }
.one-today .ot-init svg { width: 22px; height: 22px; }
.one-today .ot-text { flex: 1 1 auto; }
.one-today h2 { font-size: 18px; }
.one-today .ot-text > p { font-size: 14px; }
.one-today .ot-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.one-today .ot-st { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ot-hot); }
.one-today .ot-st svg { width: 13px; height: 13px; }
.one-today .ot-st.off { color: var(--muted); font-weight: 500; }
.one-today .ot-week { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.one-today .ot-week li { display: grid; justify-items: center; gap: 2px; font-size: 10px; color: var(--muted); }
.one-today .ot-week i { width: 8px; height: 8px; border-radius: 50%; background: var(--ot-dot); }
.one-today .ot-week li.on i { background: var(--ot-hot); }
.one-today .ot-week li.now i { box-shadow: inset 0 0 0 1.5px var(--ot-hot); }
.one-today .ot-week li.now.on i { box-shadow: none; }
.one-today .ot-acts { display: flex; gap: 8px; flex: none; align-self: center; }
.one-today .ot-go { min-height: 34px; padding: 0 14px; border: 1px solid color-mix(in oklab, var(--ot-hot) 30%, transparent); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.one-today .ot-yes { margin-left: 0; min-height: 34px; }
@media (max-width: 600px) { .one-today { flex-wrap: wrap; } .one-today .ot-acts { width: 100%; padding-left: 94px; } }

/* Today's one as a square tile, beside the add bar. */
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 18px; align-items: start; }
.home-top-main { min-width: 0; }
.hlead-side .one-today { flex-direction: column; justify-content: center; align-items: center; gap: 12px; width: 264px; min-height: 264px; margin: 0 0 14px; padding: 20px 18px 18px; text-align: center; }
.hlead-side .one-today .ot-ring { width: 104px; height: 104px; }
.hlead-side .one-today .ot-init { inset: 13px; font-size: 30px; }
.hlead-side .one-today .ot-init svg { width: 30px; height: 30px; }
.hlead-side .one-today .ot-text { flex: none; }
.hlead-side .one-today h2 { font-size: 17px; }
.hlead-side .one-today .ot-text > p { font-size: 13.5px; }
.hlead-side .one-today .ot-row { flex-direction: column; gap: 8px; margin-top: 10px; }
.hlead-side .one-today .ot-acts { width: auto; padding: 0; align-self: center; }
@media (max-width: 760px) {
  .home-top { grid-template-columns: 1fr; }
  .hlead-side .one-today { order: -1; width: auto; min-height: 0; }
}

/* Get started: five little pastel tiles, each with its own colour. Flat: no glows or shadows. */
.gs { margin: 0 0 16px; }
.gs-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.gs-h h2 { margin: 0; font-size: 15.5px; font-weight: 600; }
.gs-count { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--wash, rgb(0 0 0 / .05)); font-variant-numeric: tabular-nums; }
.gs-h .link { margin-left: auto; font-size: 13px; }
.gs-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--gs-n, 5), minmax(0, 1fr)); gap: 10px; }
.gs-tiles > li { display: flex; min-width: 0; }
.gs-tile { --gs-bg: #f6e7dc; --gs-ink: #8a3f22; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 12px 12px 11px; border: 0; border-radius: 18px; background: var(--gs-bg); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.gs-tile:hover { transform: translateY(-2px); }
.gs-tile b { margin-top: auto; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.gs-tile small { font-size: 12px; color: color-mix(in oklab, var(--gs-ink) 75%, var(--muted)); }
.gs-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: rgb(255 255 255 / .7); color: var(--gs-ink); }
.gs-ic svg { width: 19px; height: 19px; }
.gs-clay { --gs-bg: #f6e7dc; --gs-ink: #a24a27; }
.gs-plum { --gs-bg: #efe6f2; --gs-ink: #6b3a74; }
.gs-sky { --gs-bg: #e5eef5; --gs-ink: #2f5d84; }
.gs-butter { --gs-bg: #f6efd6; --gs-ink: #8a6a12; }
.gs-sage { --gs-bg: #e6efe4; --gs-ink: #456b3d; }
.gs-tile.done { cursor: default; opacity: .6; }
.gs-tile.done:hover { transform: none; }
.gs-tile.done .gs-ic { background: var(--gs-ink); color: #fff; }
.gs-tile.done b { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--gs-ink) 40%, transparent); }
.gs-pips { display: inline-flex; gap: 4px; margin-top: 2px; }
.gs-pips i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--gs-ink) 22%, transparent); }
.gs-pips i.on { background: var(--gs-ink); }
:root[data-theme="dark"] .gs-tile { --gs-bg: color-mix(in oklab, var(--gs-ink) 22%, #1d1916); color: #f3ebe4; }
:root[data-theme="dark"] .gs-tile small { color: color-mix(in oklab, var(--gs-ink) 40%, #d8ccc3); }
:root[data-theme="dark"] .gs-ic { background: rgb(255 255 255 / .1); color: color-mix(in oklab, var(--gs-ink) 45%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-tile { --gs-bg: color-mix(in oklab, var(--gs-ink) 22%, #1d1916); color: #f3ebe4; } :root:not([data-theme="light"]) .gs-tile small { color: color-mix(in oklab, var(--gs-ink) 40%, #d8ccc3); } :root:not([data-theme="light"]) .gs-ic { background: rgb(255 255 255 / .1); color: color-mix(in oklab, var(--gs-ink) 45%, #fff); } }
.gs-all { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: #f6e7dc; }
.gs-all .gs-ic { background: #a24a27; color: #fff; }
.gs-all p { margin: 0; flex: 1; }
@media (max-width: 900px) { .gs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .gs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gs-tile { min-height: 100px; } }

.hlead-side .one-today { width: auto; min-height: 0; margin: 0 0 14px; }
.gs-tile b { margin-top: 10px; }
.gs-cta { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding: 6px 12px 6px 13px; border-radius: 999px; background: var(--gs-ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.gs-tile small + .gs-cta { margin-top: 12px; }
.gs-cta svg { width: 13px; height: 13px; }
.gs-tile:hover .gs-cta svg { transform: translateX(2px); }
.gs-tile { min-height: 150px; }
:root[data-theme="dark"] .gs-cta { background: color-mix(in oklab, var(--gs-ink) 55%, #fff); color: #1d1916; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-cta { background: color-mix(in oklab, var(--gs-ink) 55%, #fff); color: #1d1916; } }

/* After setup: who's waiting on you? Fields on the left, the message writing itself on the right. No glows. */
.first-dlg { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--ink); overflow: hidden; }
.first-dlg[open] { animation: first-in .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes first-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.first-dlg::backdrop { background: rgb(28 20 14 / .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (prefers-reduced-motion: reduce) { .first-dlg[open] { animation: none; } }
.first-step { position: relative; display: block; }
.first-step .close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--wash, rgb(0 0 0 / .05)); color: var(--ink); cursor: pointer; }
.first-l { display: flex; flex-direction: column; gap: 4px; padding: 40px 36px 32px; }
.first-l h2 { margin: 0 0 6px; font-size: 30px; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.first-f { display: grid; gap: 2px; padding: 10px 0 8px; border-bottom: 1px solid var(--line); cursor: text; }
.first-f:focus-within { border-bottom-color: var(--accent); }
.first-f span { font-size: 12px; font-weight: 600; color: var(--muted); }
.first-f input { width: 100%; min-height: 30px; padding: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent; color: var(--ink); font: inherit; font-size: 18px; }
.first-f input::placeholder { color: color-mix(in oklab, var(--muted) 55%, transparent); }
.first-err { min-height: 20px; margin: 10px 0 0; font-size: 13.5px; color: var(--danger, #b3261e); }
.first-next { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 18px; padding: 0 22px; border-radius: 999px; }
.first-next:hover svg { transform: translateX(2px); }
.first-r { display: grid; place-items: center; padding: 32px; background: #efe3d6; }
.first-phone { width: min(280px, 100%); padding: 18px 16px 14px; border-radius: 26px; background: #fbf7f2; color: #2b2219; }
.first-to { margin: 0 0 14px; font-size: 12.5px; color: #7a6c5b; text-align: center; }
.first-to b { color: #2b2219; font-weight: 600; }
.first-bubble { margin: 0 0 0 auto; max-width: 92%; padding: 11px 14px; border-radius: 18px 18px 6px 18px; background: #b5562f; color: #fff; font-size: 14.5px; line-height: 1.35; animation: first-pop .25s ease; }
@keyframes first-pop { from { opacity: .4; } to { opacity: 1; } }
.first-meta { margin: 8px 2px 0; font-size: 11px; color: #9a8b7a; text-align: right; }
:root[data-theme="dark"] .first-r { background: #2c221b; } :root[data-theme="dark"] .first-phone { background: #1d1814; color: #f2e9e1; } :root[data-theme="dark"] .first-to b { color: #f2e9e1; } :root[data-theme="dark"] .first-step .close { background: rgb(255 255 255 / .08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .first-r { background: #2c221b; } :root:not([data-theme="light"]) .first-phone { background: #1d1814; color: #f2e9e1; } :root:not([data-theme="light"]) .first-to b { color: #f2e9e1; } :root:not([data-theme="light"]) .first-step .close { background: rgb(255 255 255 / .08); } }
@media (max-width: 640px) { .first-step { grid-template-columns: 1fr; } .first-r { order: -1; padding: 22px 20px 18px; } .first-l { padding: 22px 22px 22px; } .first-l h2 { font-size: 24px; margin-bottom: 10px; } .first-next { margin-top: 12px; } }

/* Plans: each name in its own colour; Connect+ suggested for lots of calls. */
.pcard-free .pcard-top h3 { color: #4f6b43; }
.pcard-backbook .pcard-top h3 { color: #a24a27; }
.pcard-calls_100 .pcard-top h3 { color: #2f5d84; }
.pcard-calls_175 .pcard-top h3 { color: #6b3a74; }
:root[data-theme="dark"] .pcard-free .pcard-top h3 { color: #a9c39f; } :root[data-theme="dark"] .pcard-backbook .pcard-top h3 { color: #e59a77; } :root[data-theme="dark"] .pcard-calls_100 .pcard-top h3 { color: #93b8d8; } :root[data-theme="dark"] .pcard-calls_175 .pcard-top h3 { color: #c9a3d1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pcard-free .pcard-top h3 { color: #a9c39f; } :root:not([data-theme="light"]) .pcard-backbook .pcard-top h3 { color: #e59a77; } :root:not([data-theme="light"]) .pcard-calls_100 .pcard-top h3 { color: #93b8d8; } :root:not([data-theme="light"]) .pcard-calls_175 .pcard-top h3 { color: #c9a3d1; } }
.pbadge.rec-calls { color: #6b3a74; border-color: color-mix(in oklab, #6b3a74 35%, transparent); background: color-mix(in oklab, #6b3a74 8%, transparent); white-space: normal; text-align: right; max-width: 60%; }

.first-sub { margin: 0 0 18px; font-size: 15px; color: var(--muted); }
.first-l .first-acts { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 0; border: 0; }
.first-l .first-acts .first-next { margin-top: 0; }
.first-skip { padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14.5px; cursor: pointer; }
.first-skip:hover { color: var(--ink); }

/* Get started, calmer: neutral tiles; colour only in the small icon. */
.gs-tile, :root[data-theme="dark"] .gs-tile { background: var(--raised, transparent); border: 1px solid var(--line); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-tile { background: var(--raised, transparent); color: var(--ink); } }
.gs-tile small, :root[data-theme="dark"] .gs-tile small { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-tile small { color: var(--muted); } }
.gs-ic, :root[data-theme="dark"] .gs-ic { background: color-mix(in oklab, var(--gs-ink) 9%, transparent); color: var(--gs-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-ic { background: rgb(255 255 255 / .06); color: color-mix(in oklab, var(--gs-ink) 50%, #fff); } }
.gs-cta, :root[data-theme="dark"] .gs-cta { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gs-cta { background: transparent; color: var(--ink); } }
.gs-tile:hover { border-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.gs-tile:hover .gs-cta { border-color: var(--ink); }
.gs-pips i { background: var(--line); } .gs-pips i.on { background: var(--ink); }
.gs-count { background: var(--wash, rgb(0 0 0 / .05)); color: var(--muted); }
/* Home banners: a × to close each one. */
section.welcome-back.has-x { position: relative; padding-right: 52px; }
.nudge-x { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.nudge-x:hover { color: var(--ink); background: var(--wash, rgb(0 0 0 / .05)); }
/* Home: Added today sits under Contact first, in the left column. */
.hlead-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hlead-main > * { margin-top: 0; }
.hlead-main { background: none !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
/* Today rows: "130d ago" stays on one line. */
.gi-when { white-space: nowrap; flex-shrink: 0; }
.hlead-main > :not(:first-child) { margin-top: 4px !important; }
/* Today rows: the folder as a small labelled pill, softly in its own colour. */
.gi .gi-folder { display: inline-flex; align-items: center; gap: 0; margin-left: 8px; padding: 1px 9px 1px 7px; border: 1px solid color-mix(in oklab, var(--fc) 32%, transparent); border-radius: 999px; background: color-mix(in oklab, var(--fc) 7%, transparent); color: color-mix(in oklab, var(--fc) 60%, var(--ink)); font-size: 12px; font-weight: 500; line-height: 1.5; vertical-align: 2px; }
.gi .gi-folder::before { content: ""; width: 6px; height: 6px; margin: 0 6px 0 0; border-radius: 50%; background: var(--fc); }
:root[data-skin="ecommerce"] .settings { max-width: 1000px; }
/* Folder pill, quieter: neutral border and text; only the dot keeps the folder's colour. */
.gi .gi-folder { border-color: var(--line); background: transparent; color: var(--muted); font-weight: 400; }
/* Today: lighter group panels (plain surface, thin border, no tint or shadow) and softer reason highlights. */
:root[data-skin="ecommerce"] .gcard.glass-pane { background: var(--raised, #fff) !important; border: 1px solid var(--line) !important; box-shadow: none !important; backdrop-filter: none !important; }
:root[data-skin="ecommerce"]:not([data-theme="light"]) .gcard.glass-pane { background: var(--raised, rgb(255 255 255 / .03)) !important; }
:root[data-skin="ecommerce"] .gcard .gi-why mark { background: color-mix(in oklab, var(--ink) 5%, transparent) !important; }
:root[data-skin="ecommerce"] .gcard-ic { background: transparent; }
/* Every screen lines up with Home: the same side margins and full width on larger screens. */
@media (min-width: 900px) { :root[data-skin="ecommerce"] .page { max-width: none !important; padding-left: 48px !important; padding-right: 48px !important; } }
.li-one { margin: 14px 0 8px; }
.li-guide-note { margin: 0 0 12px; color: var(--muted); max-width: 60ch; }
.pbadge.rec-calls { white-space: nowrap; max-width: none; text-align: center; }

/* Plans, tidier: four side by side when there's room, only what's included, buttons level at the bottom. */
.pcards-4 { gap: 12px; }
@media (min-width: 1000px) { .pcards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.pcards-4 .pcard { display: flex; flex-direction: column; padding: 20px 18px 18px; border-radius: 18px; box-shadow: none !important; }
.pcards-4 .pcard .pcheck li.n { display: none; }
.pcards-4 .pcard .pcheck { flex: 1; margin-bottom: 14px; }
.pcards-4 .pcard .pcheck li { font-size: 14px; padding: 3px 0; }
.pcards-4 .pcard-act { margin-top: auto; }
.pcards-4 .pcard-top h3 { font-size: 16px; }
.pcards-4 .pcard-sub { font-size: 13.5px; }
.pcards-4 .pcard.is-rec { border: 1.5px solid var(--ink) !important; }
.pcards-4 .pcard .pbadge { font-size: 11px; padding: 2px 8px; }
.pcards-4 .pcard b, .pcards-4 .pcard .pcard-price b { letter-spacing: -.02em; }
.pcards-4 .pprice b { font-size: 30px; } .pcards-4 .pprice { margin: 6px 0 4px; }
.pcards-4 .pcard .pcheck { display: block !important; flex: 0 0 auto; }
.pcards-4 .pcard .pcheck + * , .pcards-4 .pcard-act { margin-top: auto; }
.cid-verify { margin-left: 10px; font-size: 13.5px; }
.cid-verify-out { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.cid-code { font-size: 18px; letter-spacing: .12em; color: var(--ink); }
.csetup-agree { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.csetup-agree[hidden] { display: none; }
.csetup-agree input { margin-top: 3px; flex: none; }
.calldlg-remind { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--wash, rgb(0 0 0 / .05)); font-size: 14px; font-weight: 600; }

/* Contact page, tidier: "+ Add another number" on one line, left; the last-message/outcome box as two compact rows. */
.add-num { display: block !important; justify-self: start; text-align: left; margin: 0 0 6px !important; }
.add-num .link { white-space: nowrap; font-size: 13px; }
.oc { padding: 12px 14px !important; display: grid; gap: 8px; }
.oc .oc-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 13.5px; color: var(--muted); }
.oc .oc-line > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc .oc-line .btn-small { flex: none; min-height: 30px; padding: 0 12px; font-size: 13px; }
.oc .oc-out { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.oc .oc-out h3 { margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.oc .oc-out .oc-line { flex: 1; justify-content: flex-start; color: var(--ink); }
.oc .oc-out .oc-line .link { margin-left: auto; font-size: 13px; }
.oc .oc-when { color: var(--muted); font-size: 12.5px; }
.oc .oc-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.oc .oc-pick .btn-small { min-height: 30px; padding: 0 11px; font-size: 13px; }
.oc > .oc-line { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; }
.oc > .oc-line .btn { min-height: 34px !important; padding: 0 12px !important; font-size: 13px !important; margin: 0 !important; flex: none; }
.add-num { border: 0 !important; padding-bottom: 0 !important; }
.add-num::after, .add-num::before { display: none !important; }
/* Lookup lines ("No other profiles found online · Search again"): the link matches the line, small and quiet. */
.li-sug .li-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 13.5px; color: var(--muted); }
.li-sug .li-acts .link, .li-sug .li-acts a { font-size: 13.5px !important; min-height: 0 !important; padding: 0 !important; color: var(--muted) !important; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; border: 0 !important; }
.li-sug .li-acts .link:hover, .li-sug .li-acts a:hover { color: var(--ink) !important; text-decoration-color: currentColor; }
.li-sug .li-acts, .li-sug .li-acts .li-h { font-size: 13.5px !important; line-height: 1.5 !important; }
.li-sug .li-acts .link, .li-sug .li-acts a { font: inherit !important; font-weight: 400 !important; letter-spacing: normal !important; }

/* Import (relationship OS): three plain choices, then the drop zone */
.imp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 920px; margin-top: 24px; }
.imp-choice { display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.imp-choice.on { border-color: var(--ink-2, var(--ink)); }
.imp-choice .imp-icon { margin: 0; }
.imp-choice h2 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.imp-choice p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.imp-choice .btn { margin-top: 4px; cursor: pointer; }
.imp-choices + .li-guide { max-width: 920px; box-sizing: border-box; }
.imp.imp-rel { display: block; max-width: 920px; margin-top: 12px; }
.imp-rel .imp-drop { min-height: 0; padding: 18px 20px; gap: 4px; border-radius: 14px; }
.imp-rel .imp-drop strong { font-size: 1rem; font-weight: 600; }
.imp-rel .imp-drop span { font-size: 14px; }
.imp-alt { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.imp-alt .link { padding: 0; font-size: 14px; }
@media (max-width: 760px) { .imp-choices { grid-template-columns: 1fr; } .imp-choice { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto; align-items: center; padding: 16px; } .imp-choice .btn { grid-column: 1 / -1; width: 100%; justify-content: center; } }

/* LinkedIn connections: the header note and Ask's "Add to book" rows */
.li-conn-dlg .li-conn-n { font-variant-numeric: tabular-nums; }
.li-conn-hits .li-conn-hit { cursor: default; }
.li-conn-row { display: flex; align-items: center; gap: 8px; }
.li-conn-row > .li-conn-hit { flex: 1 1 auto; min-width: 0; }
.li-conn-done { font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 6px; }
@media (max-width: 760px) { :root[data-skin="ecommerce"] .va-opens:has(.va-li) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Get started as notifications: no outer box; each step is its own compact row, like a phone notification. */
.gs .gs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gs:not(.gs-open) .gs-tiles > li:nth-child(n+4) { display: none; }
.gs-more { margin-top: 10px; font-size: 13px; }
@media (max-width: 900px) { .gs .gs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gs .gs-tiles > li { width: auto; }
.gs .gs-tile { min-height: 0; display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 1px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--raised, #fff); border: 1px solid var(--line); }
.gs .gs-tile:hover { transform: none; border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.gs .gs-tile .gs-ic { grid-row: 1 / 3; position: relative; width: 36px; height: 36px; border-radius: 11px; }
.gs .gs-tile .gs-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #c0532e; border: 2px solid var(--raised, #fff); }
.gs .gs-tile b { grid-column: 2; margin: 0; align-self: end; font-size: 14px; }
.gs .gs-tile small { grid-column: 2; align-self: start; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs .gs-tile .gs-cta { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; border: 0 !important; background: none !important; color: var(--muted); font-size: 13px; font-weight: 500; }
.gs .gs-tile:hover .gs-cta { color: var(--ink); }
.gs .gs-tile .gs-pips { margin: 3px 0 0; }
@media (max-width: 560px) { .gs .gs-tiles { grid-template-columns: 1fr; } }
/* Folder cards: easier to see (a touch of the folder colour), and who's drifting stands out. */
.fcard.glass-pane[style*="--fc"] { border: 1px solid color-mix(in oklab, var(--fc) 30%, transparent) !important; background: color-mix(in oklab, var(--fc) 7%, var(--raised, #fff)) !important; }
.fcard.glass-pane[style*="--fc"]:hover { background: color-mix(in oklab, var(--fc) 12%, var(--raised, #fff)) !important; border-color: color-mix(in oklab, var(--fc) 55%, transparent) !important; }
:root[data-theme="dark"] .fcard.glass-pane[style*="--fc"] { background: color-mix(in oklab, var(--fc) 11%, #1f1b17) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fcard.glass-pane[style*="--fc"] { background: color-mix(in oklab, var(--fc) 11%, #1f1b17) !important; } :root:not([data-theme="light"]) .fcard.glass-pane[style*="--fc"]:hover { background: color-mix(in oklab, var(--fc) 16%, #1f1b17) !important; } }
.fcard-n.fc-loss b, .fcard-n.fc-loss { color: #c0532e; }
:root[data-theme="dark"] .fcard-n.fc-loss, :root[data-theme="dark"] .fcard-n.fc-loss b { color: #e58a66; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fcard-n.fc-loss, :root:not([data-theme="light"]) .fcard-n.fc-loss b { color: #e58a66; } }
.fcard-next strong { font-weight: 600; color: var(--ink); }
/* Contact page: one look per job. Actions are pills; adding is quiet "+" text; names are plain text. No underlines. */
.edit-line > .link, .edit-line .edit-more > summary.link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line) !important; border-radius: 999px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none !important; box-shadow: none !important; list-style: none; }
.edit-line .edit-more > summary.link::-webkit-details-marker { display: none; }
.edit-line > .link:hover, .edit-line .edit-more > summary.link:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent) !important; }
.edit-line > .star-btn.on { border-color: color-mix(in oklab, #b8860b 45%, transparent) !important; color: #8a6a12; background: color-mix(in oklab, #b8860b 8%, transparent); }
:root[data-theme="dark"] .edit-line > .star-btn.on { color: #e8c766; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .edit-line > .star-btn.on { color: #e8c766; } }
.edit-line { gap: 8px; }
[data-action="add-number"].link, .li-none .link, .li-none a, .links-name.link, .links-x.link, .links-add > summary { text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
[data-action="add-number"].link, .li-none .link, .li-none a, .links-add > summary { color: var(--muted); font-weight: 500; }
[data-action="add-number"].link:hover, .li-none .link:hover, .li-none a:hover, .links-add > summary:hover { color: var(--ink); }
.links-name.link { color: var(--ink); font-weight: 600; }
.links-name.link:hover { color: color-mix(in oklab, var(--ink) 70%, transparent); }
.edit-line details.edit-more > summary.link { display: inline-flex !important; min-height: 34px !important; padding: 0 14px !important; border: 1px solid var(--line) !important; border-radius: 999px !important; align-items: center; }
.fcard.glass-pane { box-shadow: none !important; }
/* Setup, who are you: centred and calmer. */
.setup.setup-me { width: 100%; max-width: 620px !important; margin-left: auto !important; margin-right: auto !important; align-self: center; text-align: center; }
.setup-me .setup-prog { justify-content: center; }
.setup-me h1 { font-size: clamp(32px, 3.6vw, 44px); margin-bottom: 10px; }
.setup-me .setup-sub { font-size: 16px; max-width: 46ch; margin: 0 auto 30px; }
.setup-me .me-form { text-align: left; font-size: 15px; }
.setup-me .me-form input, .setup-me .me-form textarea { font-size: 16px; }
.setup-me .setup-go { justify-content: center; margin-top: 28px; }
.setup-me .setup-go .btn-big { font-size: 16px; padding: 12px 26px; }

/* No reply yet: a quiet "Waiting" chip, and one tap to say they replied */
.gi-k-wait { background: color-mix(in srgb, #8a7a68 18%, transparent); color: #6f6253; }
:root[data-theme="dark"] .gi-k-wait { color: #cbbba8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gi-k-wait { color: #cbbba8; } }

/* ===== Usability fixes (Nov 25) ===== */
/* ---------- People list: names first, nothing sideways ---------- */
#client-rows > li.item { grid-template-columns: minmax(0, 1fr); }
#client-rows.selecting > li.item { grid-template-columns: 40px minmax(0, 1fr); }
.crow, .table .cols-head { grid-template-columns: minmax(9rem, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 5.5rem !important; column-gap: 16px; }
.table .cols-head { padding-right: 16px !important; }
.table .cols-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crow .i-name { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: clip; }
.crow .i-nm { flex: 0 0 auto; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow .i-name .fchip { display: block; flex: 0 100 auto; min-width: 0; margin: 0; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: none; font-size: 11px; line-height: 1.5; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) {
  .crow, .table .cols-head { grid-template-columns: minmax(8rem, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr) 5.5rem !important; }
  .crow .i-tag, .table .cols-head > span:nth-child(3) { display: none; }
}
@media (max-width: 860px) {
  .crow { grid-template-columns: minmax(0, 1fr) auto !important; }
}
.crow-check, #client-rows.selecting .crow-check { display: grid; place-items: center; width: 22px !important; height: 22px !important; min-height: 0 !important; min-width: 0 !important; padding: 0; justify-self: center; align-self: center; color: var(--page, #fff); }
#client-rows.selecting .crow-check { position: relative !important; top: auto !important; left: auto !important; transform: none !important; overflow: hidden; }
.crow-check svg { position: absolute; inset: 0; margin: auto; display: block; width: 15px; height: 15px; }
.where-filters label > span { white-space: nowrap; }
#client-rows .item.sel .crow-check, .crow-check[aria-checked="true"] { background: var(--ink); border-color: var(--ink); box-shadow: none; }
.where-filters { max-width: 100%; }
.where-filters label { min-width: 0; max-width: 100%; }
.where-filters select { min-width: 0; max-width: min(100%, 22rem); text-overflow: ellipsis; }

/* ---------- Sidebar: a space before every count ---------- */
.nav a { gap: 8px; }
.nav a > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav .nav-n { flex-shrink: 0; }

/* ---------- Today cards: one column until there's room, Done in the flow with its label ---------- */
@media (max-width: 1180px) { .today-main .ggrid { grid-template-columns: minmax(0, 1fr) !important; } }
li.gi:has(> .gi-done) { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
li.gi:has(> .gi-done) > button[data-review] { padding-right: 8px !important; min-width: 0; }
li.gi > button.gi-done { position: static !important; transform: none !important; margin: 0 12px 0 0 !important; height: 32px !important; padding: 0 12px 0 10px !important; font-size: 13px !important; }
li.gi > button.gi-done span { display: inline !important; }
.hcall-list > li.gi > button.gi-done { margin-right: 16px !important; }

/* ---------- Draft view ---------- */
.compose-head .rv-to { flex: 1 1 100%; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-compose.glass-pane, :root[data-skin="ecommerce"] .rv-compose.glass-pane { overflow: visible !important; }
.rv-compose .send-row .more-list { top: calc(100% + 6px); bottom: auto; left: auto; right: 0; }
.rv-compose .send-row > .more-menu:not(:last-child) .more-list { left: 0; right: auto; }
.rv-compose .send-row .more-list.up { top: auto; bottom: calc(100% + 6px); }
:root[data-skin="ecommerce"] .rv-compose .send-row { position: static !important; margin-inline: 0 !important; padding: 0 !important; background: none !important; border-top: 0 !important; }
@media (max-width: 1280px) {
  .rv-client .facts { grid-template-columns: minmax(0, 1fr) !important; }
  .rv-client .facts > div { grid-column: 1 !important; }
}
.rv-client .facts select, .rv-client .facts input { max-width: 100%; min-width: 0; }
:root .rv-client .facts div.met-q dd { flex-wrap: wrap; }
:root .rv-client .facts div.met-q dd input { flex: 1 1 100%; }
.rv-client .facts dd { overflow-wrap: break-word; word-break: normal; }

/* ---------- The chat button, toasts and the phone menu stay out of the way ---------- */
#view { padding-bottom: 88px; }
body[data-view="review"] #assist, body[data-view="import"] #assist, body[data-view="setup"] #assist, body.on-setup #assist { display: none; }
.toast { left: 16px !important; right: auto !important; transform: none !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; max-width: min(440px, calc(100vw - 32px)); }
@media (max-width: 860px) {
  #assist { bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  .toast { top: calc(64px + env(safe-area-inset-top, 0px)) !important; bottom: auto !important; left: 16px !important; right: 16px !important; max-width: none; }
  .side.nav-open .nav { width: 100vw; max-width: none !important; left: 0 !important; right: 0 !important; z-index: 46; background: var(--page, var(--side)) !important; opacity: 1; backdrop-filter: none; -webkit-mask-image: none !important; mask-image: none !important; }
  /* Today cards on a phone: the text gets the width, Done sits under it. */
  li.gi:has(> .gi-done) { grid-template-columns: minmax(0, 1fr); }
  li.gi > button.gi-done { justify-self: start; margin: -4px 0 12px 64px !important; }
  .hcall-list > li.gi > button.gi-done { margin: -4px 0 12px 64px !important; }
  .side.nav-open .nav a, .side.nav-open .nav summary, .side.nav-open .nav button { min-height: 44px; font-size: 16px; }
  /* The bottom bar already has these four. */
  .side.nav-open .nav > a:is([href="#home"], [href="#due"], [href="#calls"], [href="#clients"]) { display: none !important; }
}

/* ---------- Thumb-sized targets on touch screens ---------- */
@media (pointer: coarse) {
  .note-old .link, .notes-list .link, li.gi > button.gi-done, #toast .toast-undo, .folderbar .fchip, .ot-acts :is(button, a), .cl-tab, .links-add > summary, .channel [role="tab"], .search, #client-search, .edit-line > .link, .edit-line .edit-more > summary.link, .tel-btn { min-height: 44px !important; }
  .note-old .link, .notes-list .link, #toast .toast-undo, .links-add > summary, .channel [role="tab"] { display: inline-flex; align-items: center; padding-inline: 8px; }
  li.gi > button.gi-done { height: 44px !important; }
}
.fact-call { display: flex; flex-wrap: wrap; gap: 8px; }
.tel-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }

/* ---------- Keyboard shortcuts sheet ---------- */
.keys-dlg { max-width: 420px; }
.keys-list { display: grid; gap: 6px; margin: 12px 0 0; }
.keys-list > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; align-items: center; }
.keys-list dt { color: var(--muted); font-size: 13px; }
.keys-list dd { margin: 0; }

/* ---------- Due rows on narrow screens: Done stays on the row's right, the tag runs into its line ---------- */
.gi .gi-folder { white-space: nowrap; }
@media (max-width: 860px) {
  li.gi:has(> .gi-done) { grid-template-columns: minmax(0, 1fr) auto !important; align-items: start !important; border-radius: 10px; }
  li.gi > button.gi-done, .hcall-list > li.gi > button.gi-done { justify-self: end; margin: 12px 8px 0 0 !important; padding: 0 10px !important; }
  li.gi:has(> .gi-done) > button[data-review] { padding-right: 4px !important; }
  /* One highlight for the whole row, Done included. */
  li.gi:has(> .gi-done):hover, li.gi.sel:has(> .gi-done) { background: rgb(14 23 38 / .04); }
  li.gi:has(> .gi-done) > button[data-review]:hover, li.gi.sel:has(> .gi-done) > button[data-review] { background: none !important; box-shadow: none !important; }
  .gi .gi-why { display: block; }
  .gi .gi-why .gi-kind { display: inline-block; margin: 0 8px 2px 0; vertical-align: 1px; }
}
@media (max-width: 860px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) li.gi:has(> .gi-done):hover, :root:not([data-theme="light"]) li.gi.sel:has(> .gi-done) { background: rgb(255 255 255 / .05); } }
@media (max-width: 860px) { :root[data-theme="dark"] li.gi:has(> .gi-done):hover, :root[data-theme="dark"] li.gi.sel:has(> .gi-done) { background: rgb(255 255 255 / .05); } }

/* ---------- Draft "More" menu: wide enough for one line per item, never the width of the button ---------- */
.send-row .more-list, :root[data-skin="ecommerce"] .send-row .more-list { min-width: 240px !important; width: max-content; max-width: calc(100vw - 32px) !important; }
.send-row .more-list button { white-space: nowrap; }
.send-row > .more-menu:last-child .more-list, :root[data-skin="ecommerce"] .send-row > .more-menu:last-child .more-list { left: auto !important; right: 0 !important; }
.send-row > .more-menu:not(:last-child) .more-list, :root[data-skin="ecommerce"] .send-row > .more-menu:not(:last-child) .more-list { left: 0 !important; right: auto !important; }

/* ---------- Due rows on a phone: a smaller Done, the folder close to the name ---------- */
@media (max-width: 560px) {
  li.gi > button.gi-done, .hcall-list > li.gi > button.gi-done { height: 40px !important; padding: 0 10px !important; font-size: 13px !important; margin: 8px 6px 0 0 !important; }
  .gi .gi-folder { margin-left: 4px; }
}

/* ---------- Draft view: lots of notes fold behind a count ---------- */
.notes-list > li.notes-fold { padding: 0; border: 0; background: none; }
.notes-fold > details > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13.5px; color: var(--muted); }
.notes-fold > details > summary::-webkit-details-marker { display: none; }
.notes-fold > details > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.notes-fold > details[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.notes-fold > details > summary:hover { color: var(--ink); }
.notes-fold > details > .notes-list { margin: 0; padding: 0; }

/* ---------- Show how you write ---------- */
.tone-dlg { max-width: min(520px, calc(100vw - 32px)); }
.tone { display: grid; gap: 12px; position: relative; }
.tone h2 { margin: 0; padding-right: 32px; }
.tone-p { margin: 0; color: var(--muted); line-height: 1.5; }
.tone textarea { width: 100%; min-height: 150px; resize: vertical; font: inherit; line-height: 1.5; padding: 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 12px; background: var(--raised, transparent); color: var(--ink); }
.tone-small { margin: 0; font-size: 12.5px; color: var(--muted); }
.tone-err { margin: 0; font-size: 13.5px; color: var(--u-now, #b5562f); }
.tone-traits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tone-traits li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; line-height: 1.4; }
.tone-traits li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #b5562f; transform: translateY(-1px); }
.tone-q { margin: 6px 0 0; font-weight: 600; }
.tone-acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tone .close { position: absolute; top: 0; right: 0; }

/* ---------- Due rows: the countdown sits by Done, not in the middle ---------- */
li.gi:has(> .gi-done) > button[data-review] { grid-template-columns: auto minmax(0, 1fr) auto !important; }
li.gi:has(> .gi-done) .gi-when { justify-self: end; text-align: right; font-size: 13px; padding-left: 8px; }
li.gi:has(> .gi-done) .gi-when:empty { display: none; }

/* ---------- Today's one: Someone else, and the streak opens ---------- */
.one-today button.ot-st { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; cursor: pointer; }
.one-today button.ot-st:hover { text-decoration: underline; text-underline-offset: 3px; }
.one-today button.ot-ring { cursor: pointer; }
.one-today .ot-other { font-size: 13.5px; color: var(--muted); white-space: nowrap; padding: 0 6px; min-height: 36px; }
.one-today .ot-other:hover { color: var(--ink); }

/* ---------- Streak popup ---------- */
.streak-dlg { max-width: min(460px, calc(100vw - 32px)); }
.streak { position: relative; display: grid; gap: 16px; }
.streak .close { position: absolute; top: 0; right: 0; }
.sk-top { display: flex; gap: 14px; align-items: center; padding-right: 32px; }
.sk-flame { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--ot-hot, #c2562f); background: color-mix(in oklab, var(--ot-hot, #c2562f) 12%, transparent); }
.sk-flame svg { width: 26px; height: 26px; }
.sk-top h2 { margin: 0; font-size: 22px; }
.sk-top p { margin: 2px 0 0; color: var(--muted); }
.sk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.sk-stats div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sk-stats dt { font-size: 12px; color: var(--muted); }
.sk-stats dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.sk-cal { display: grid; gap: 6px; }
.sk-wd, .sk-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.sk-wd li { text-align: center; font-size: 11px; color: var(--muted); }
.sk-days li { aspect-ratio: 1; border-radius: 8px; background: color-mix(in oklab, var(--ink) 6%, transparent); }
.sk-days li.on { background: var(--ot-hot, #c2562f); }
.sk-days li.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.sk-days li.later { background: none; border: 1px dashed var(--line); }
.sk-h { margin: 4px 0 0; font-size: 15px; }
.sk-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.sk-people :is(button, span:first-child) { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border: 0; background: none; border-radius: 10px; font: inherit; color: var(--ink); text-align: left; }
.sk-people button { cursor: pointer; }
.sk-people button:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.sk-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--sand-ink, #6e4b32); background: var(--sand, #f1e6d8); }
.sk-people b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sk-people small { color: var(--muted); font-size: 12.5px; }
.sk-none { margin: 0; color: var(--muted); }
li.gi:has(> .gi-done) > button[data-review] { width: 100% !important; max-width: none !important; justify-self: stretch !important; margin-right: 0 !important; }
/* Small centred popups (streak, how you write) */
dialog.bb-pop { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); height: auto; margin: auto; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--raised, var(--page, #fff)); color: var(--ink); overflow: auto; }
dialog.bb-pop::backdrop { background: rgb(20 16 10 / .35); }
dialog.bb-pop .sheet-inner { padding: 0; }
.sk-people li > :is(button, span) { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border: 0; background: none; border-radius: 10px; font: inherit; color: var(--ink); text-align: left; }
.sk-people li > span .sk-av, .sk-people li > button .sk-av { display: grid; }
/* Done is in the flow now: no room kept for the old floating one. */
.hcall-list > li.gi:has(> .gi-done) > button[data-review], .gcard-list > li.gi:has(> .gi-done) > button[data-review], li.gi:has(> .gi-done) > button[data-review] { padding-right: 8px !important; }
dialog.bb-pop { min-height: 0 !important; height: auto !important; max-height: calc(100dvh - 48px) !important; inset: 0 !important; bottom: auto; top: 50% !important; transform: translateY(-50%); }
.sk-cal { max-width: 300px; justify-self: center; width: 100%; }
.sk-days li { border-radius: 6px; }
.sk-people .sk-av { width: 32px !important; height: 32px; padding: 0 !important; border-radius: 50% !important; display: grid !important; place-items: center; color: var(--sand-ink, #6e4b32); background: var(--sand, #f1e6d8) !important; }
dialog.bb-pop[open], dialog.bb-pop:modal { height: fit-content !important; block-size: fit-content !important; min-block-size: 0 !important; }

/* Setup, every step after "who are you": the same calm scale, centred, fits one screen. */
.setup:not(.setup-me) { width: 100%; max-width: 860px !important; margin-left: auto !important; margin-right: auto !important; align-self: center; }
.setup:not(.setup-me) > .setup-prog { justify-content: center; }
.setup:not(.setup-me) > h1 { font-size: clamp(30px, 3.4vw, 42px); text-align: center; margin-bottom: 10px; }
.setup:not(.setup-me) > .setup-sub { font-size: 16px; max-width: 52ch; margin: 0 auto 28px; text-align: center; }
.setup:not(.setup-me) .setup-go { justify-content: center; margin-top: 24px; }
.setup:not(.setup-me) .setup-go .btn-big { font-size: 16px; padding: 12px 26px; }
/* What will you use it for: compact tiles in two rows, your own words below. */
.setup-use .setup-choose { display: block; }
.setup-use .setup-presets { max-width: none; width: 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.setup-use .setup-chip { aspect-ratio: auto; height: auto; min-height: 0; display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "i b" "i s"; column-gap: 12px; row-gap: 2px; align-items: start; align-content: start; padding: 14px; border-radius: 14px; }
.setup-use .setup-ic-box { position: static; grid-area: i; align-self: start; width: 32px; height: 32px; border-radius: 9px; }
.setup-use .setup-ic-box .setup-ic { width: 17px; height: 17px; }
.setup-use .setup-chip b { grid-area: b; font-size: 15px; line-height: 20px; height: auto; margin: 0; }
.setup-use .setup-chip > span { grid-area: s; font-size: 12.5px; line-height: 17px; height: auto; overflow: visible; }
.setup-use .setup-tick { top: 8px; right: 8px; width: 14px; height: 14px; }
.setup-use .setup-say { margin-top: 22px; }
.setup-use .setup-say textarea { height: auto; min-height: 0; font-size: 15px; padding: 14px 56px 14px 14px; border-radius: 14px; }
.setup-use .setup-mic { top: 10px; right: 10px; width: 34px; height: 34px; }
@media (max-width: 860px) { .setup-use .setup-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Setup sits in the lower middle of the screen, not up against the top. */
@media (min-width: 861px) { body.on-setup .page { padding-top: max(24px, 9vh) !important; padding-bottom: 24px !important; } }
/* Job hunting and Events tiles get their own colour (they fell back to the pale default). */
.setup-ic-box[data-k="jobs"] { background: #4f6d8a; }
.setup-ic-box[data-k="events"] { background: #3f7a6e; }
/* Streak popup: always fits the screen (the list scrolls), a small five-week grid. */
dialog.bb-pop.streak-dlg { top: 0 !important; bottom: 0 !important; transform: none !important; margin: auto !important; max-height: calc(100dvh - 32px) !important; overflow: hidden; }
.streak-dlg .sheet-inner.streak { display: flex; flex-direction: column; gap: 14px; max-height: calc(100dvh - 74px); }
.streak-dlg .sk-people { flex: 1 1 auto; min-height: 80px; max-height: none; overflow: auto; }
.streak-dlg .sk-cal { width: auto; max-width: none; justify-self: start; align-self: center; gap: 4px; }
.streak-dlg .sk-wd, .streak-dlg .sk-days { grid-template-columns: repeat(7, 18px); gap: 4px; }
.streak-dlg .sk-wd li { font-size: 10px; line-height: 12px; }
.streak-dlg .sk-days li { width: 18px; height: 18px; aspect-ratio: auto; border-radius: 4px; }
.streak-dlg .sk-days li.now { outline-width: 1.5px; }
.streak-dlg .sk-people :is(button, span:first-child), .streak-dlg .sk-people li > :is(button, span) { padding: 6px; }
/* Building your Backbook: the step card sits under the heading, centred. */
.setup.setup-building { max-width: 480px !important; }
.setup-building .setup-steps { margin: 0 auto; width: 100%; max-width: 480px; box-sizing: border-box; }
.setup-building .setup-steps li { font-size: 15px; padding: 11px 0; }

/* Call notes: summary, then each section's points one per line; long ones fold behind More. */
.nl { display: block; }
.nl + .nl { margin-top: 2px; }
.nl b { font-weight: 600; font-size: .86em; color: var(--muted); letter-spacing: .01em; }
.nl:not(.nl-sum) > b { display: inline-block; margin-top: 8px; }
.nl-pt { padding-left: 14px; position: relative; }
.nl-pt::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.nfold { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.nfold.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.nfold-more { display: inline-block; margin-top: 4px; font-size: 13px; }
/* The note list styles every span as a small flex row: call-note lines are plain text blocks. */
:is(.notes-list li, .note-old) span.nl { display: block; margin: 0; font-size: inherit; color: inherit; gap: 0; }
:is(.notes-list li, .note-old) span.nl + span.nl { margin-top: 2px; }
:is(.notes-list li, .note-old) span.nfold { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; margin: 0; font-size: inherit; color: inherit; gap: 0; white-space: normal; }
:is(.notes-list li, .note-old) span.nfold.open { display: block; -webkit-line-clamp: unset; overflow: visible; }
:is(.notes-list li, .note-old) span.nl-pt { padding-left: 14px; position: relative; }
:is(.notes-list li, .note-old) span.nl-next { margin-top: 8px; }
:is(.notes-list li, .note-old) span.nl-next > b { display: inline; margin: 0 4px 0 0; }
.setup-ic-box[data-k="recruitment"] { background: #6b5a86; }
.setup-ic-box[data-k="trades"] { background: #9a6a3c; }
/* Recruiters: pick the role for a call, the checklist while it rings, and the match in the note. */
.role-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 0 0 14px; }
.role-opt { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); font: inherit; cursor: pointer; }
.role-opt b { font-weight: 500; font-size: 15px; }
.role-opt small { font-size: 12.5px; color: var(--muted); }
.role-opt.on, .role-opt:hover { border-color: var(--ink); }
.role-new b { color: var(--accent, var(--ink)); }
.role-form textarea { width: 100%; box-sizing: border-box; font: 14px/1.45 var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); color: var(--ink); resize: vertical; }
.role-err { color: #a2412a; font-size: 13px; margin: 6px 0 0; }
.call-role { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.call-role b { display: block; font-weight: 500; font-size: 15px; }
.call-role span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.call-role ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.nf-match { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.nf-match > b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.nf-match ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.nf-match li span { display: inline-block; width: 18px; font-weight: 600; }
.nf-match li.m-yes span { color: #4f7a3a; }
.nf-match li.m-no span { color: #a2412a; }
.nf-match li.m-q span { color: var(--muted); }
.nf-pitch { margin: 10px 0 4px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.nf-score { display: flex; align-items: baseline; gap: 2px; margin: 0 0 4px; }
.nf-score strong { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.nf-score span { font-size: 14px; color: var(--muted); }

/* Recruiters: job pages */
.job-sub { margin: 4px 0 0; color: var(--ink-2, #6b6258); }
.job-musts, .job-cands { margin: 22px 0; }
.job-musts h2, .job-cands h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.job-cands h2 span { color: var(--ink-3, #8a8075); font-weight: 400; margin-left: 4px; }
.job-musts ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.job-row { display: flex; align-items: center; gap: 14px; }
.list .item.job-row > .job-open { display: flex; grid-template-columns: none; width: auto; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; background: none; border: 0; padding: 11px 12px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.job-fit { font-size: 13px; color: var(--ink-3, #8a8075); white-space: nowrap; }
.job-fit b { font-size: 17px; color: var(--ink, #2a241f); }
.job-strong b { color: #3f6b45; } .job-weak b { color: #a24a2e; }
.job-acts { margin-top: 28px; }
.nav a.nav-job { min-width: 0; max-width: 100%; overflow: hidden; }
.nav-job span:first-child { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-musts li { display: flex; align-items: baseline; gap: 10px; }
.job-musts li .link { font-size: 12px; }
.job-must-add { margin-top: 10px; max-width: 520px; }
.list .item.job-row > button.link { width: auto; display: inline-block; padding: 6px 12px 6px 0; }
/* Notes: the search bar, in Home's style */
.notes-ask { margin: 8px 0 18px; }
.notes-ans:not(:empty) { margin-top: 12px; }
/* Phone and tablet Menu: the Folders and Jobs headings, "+ New folder" and "+ New job" (hidden in the narrow sidebar) */
@media (max-width: 860px) {
  .side.nav-open .nav .nav-h:not(:empty) { display: block !important; margin: 16px 0 4px; font-size: 12px; text-transform: none; }
  .side.nav-open .nav .nav-new { display: block !important; }
  .side.nav-open .nav .nav-new button { font-size: 16px; min-height: 44px; padding: 6px 0; color: var(--accent, #b5562f); }
  .side.nav-open .nav a.nav-job { min-width: 0; }
  .side.nav-open .nav a.nav-job span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
dialog.ask-text { border: 1px solid var(--line, rgba(43,34,25,.14)); border-radius: 14px; padding: 20px; width: min(360px, calc(100vw - 32px)); background: var(--page, #fbf8f2); color: var(--ink, #2b2219); }
dialog.ask-text::backdrop { background: rgba(43,34,25,.25); }
dialog.ask-text h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
dialog.ask-text label span { display: block; font-size: 13px; color: var(--muted, #7a6c5b); margin-bottom: 6px; }
dialog.ask-text input { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2, rgba(43,34,25,.2)); border-radius: 8px; font: inherit; background: var(--page, #fff); color: inherit; }
.ask-text-acts { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.nav-closed summary { padding: 6px 10px; font-size: 13px; color: var(--muted); cursor: pointer; list-style: none; }
.nav-closed summary::-webkit-details-marker { display: none; }
.job-pitch { margin: 22px 0 0; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
dialog.pitch-dlg { width: min(560px, calc(100vw - 32px)); }
dialog.pitch-dlg textarea { width: 100%; margin-top: 10px; padding: 12px; border: 1px solid var(--line-2, rgba(43,34,25,.2)); border-radius: 8px; font: inherit; font-size: 14px; line-height: 1.5; background: var(--page, #fff); color: inherit; }
.nav-job-client { display: block; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.nav-job { align-items: flex-start; }
/* Job page on a phone: name and status get the full width, fit and Remove go underneath; room for the chat button */
@media (max-width: 560px) {
  .list .item.job-row { flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; }
  .list .item.job-row > .job-open { flex: 1 1 100%; }
  .list .item.job-row > .job-fit { margin-left: 12px; white-space: normal; }
  .job-acts, .job-pitch { padding-bottom: 72px; }
  .move-here-row { padding-right: 64px; }
}
.va-many { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.va-many li { padding: 8px 10px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 8px; font-size: 14px; }
.va-many li span { color: var(--muted); }
/* ---------- Note authors (team book) ---------- */
.note-by { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--ink, #2b2219); }
.note-by i { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #efe0d4; color: #8a3f20; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.note-by.note-by-me i { background: var(--ink, #2b2219); color: var(--page, #fbf8f2); }
.notes-at .note-by { margin-right: 6px; }

/* ---------- Job page ---------- */
.jv-head h1 { margin-bottom: 8px; }
.jv-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.jv-facts span { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 999px; color: var(--ink-2, #4d4134); }
.jv { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 18px; }
.jv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.jv-bar h2, .jv-card h2 { font-size: 15px; font-weight: 600; margin: 0; }
.jv-add { display: flex; gap: 8px; margin-bottom: 14px; }
.jv-add input, .jv-must-add input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2, rgba(43,34,25,.2)); border-radius: 10px; font: inherit; font-size: 14px; background: var(--page, #fff); color: inherit; }
.jc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jc { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; padding: 16px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 14px; background: var(--card, rgba(255,255,255,.45)); }
.jc-rank { font-size: 13px; font-weight: 600; color: var(--muted, #7a6c5b); padding-top: 9px; text-align: center; }
.jc-body { min-width: 0; display: grid; gap: 8px; }
.jc-name { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.jc-name b { display: block; font-size: 15.5px; font-weight: 600; }
.jc-name em { display: block; font-style: normal; font-size: 13px; color: var(--muted, #7a6c5b); }
.jc-name:hover b { color: var(--accent, #b5562f); }
.jc-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #efe6d6; color: var(--ink-2, #4d4134); font-size: 13px; font-weight: 700; }
.jc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jc-chips span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #f1ebe0; color: var(--ink-2, #4d4134); }
.jc-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jc-pills li { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line, rgba(43,34,25,.12)); }
.jc-pills li.jp-ok { background: #f6e6dc; border-color: #ebcdbb; color: #8a3f20; }
.jc-pills li.jp-check { color: var(--muted, #7a6c5b); border-style: dashed; }
.jc-note { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; font-size: 13.5px; color: var(--ink-2, #4d4134); }
.jc-note time { font-size: 12px; color: var(--muted, #7a6c5b); }
.jc-note.jc-none, .jc-added { margin: 0; font-size: 12.5px; color: var(--muted, #7a6c5b); }
.jc-side { display: grid; justify-items: end; align-content: start; gap: 8px; min-width: 110px; }
.jc-score { text-align: right; }
.jc-score b { display: block; font-size: 22px; line-height: 1; font-weight: 600; }
.jc-score b small { font-size: 14px; font-weight: 500; color: var(--muted, #7a6c5b); }
.jc-score span { font-size: 12px; color: var(--muted, #7a6c5b); }
.jc-score.jc-strong b, .jc-score.jc-strong b small { color: var(--accent, #b5562f); }
.jc-score.jc-none span { font-size: 12.5px; }
.jc-meter { display: flex; gap: 3px; }
.jc-meter i { width: 14px; height: 5px; border-radius: 3px; background: #e7dccb; }
.jc-meter i.on { background: var(--accent, #b5562f); }
.jv-side { display: grid; gap: 12px; position: sticky; top: 16px; }
.jv-card { padding: 16px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 14px; display: grid; gap: 10px; }
.jv-musts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.jv-musts li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(43,34,25,.08)); }
.jv-musts li .link { font-size: 12px; }
.jv-must-add { display: flex; gap: 6px; }
.jv-how p { margin: 0; font-size: 13px; color: var(--muted, #7a6c5b); line-height: 1.5; }
.jv-side .job-acts { margin: 0; }
@media (max-width: 900px) { .jv { grid-template-columns: minmax(0, 1fr); } .jv-side { position: static; order: -1; } .jv-how { display: none; } }
@media (max-width: 560px) { .jc { grid-template-columns: minmax(0, 1fr); padding: 14px; } .jc-rank { display: none; } .jc-side { grid-auto-flow: column; justify-items: start; justify-content: space-between; align-items: center; } .jc-score { text-align: left; } .jv-bar { flex-wrap: wrap; } .jv-add { padding-right: 56px; } }

/* ---------- Calendar ---------- */
/* Settings → Calendar, the Today and Home items, and #agenda. Brand: beige, terracotta for what you act on. */
.cal-set .cal-acts, .cal-empty .cal-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.cal-on { margin: 6px 0 2px; }
.cal-status { margin: 0; font-size: 13.5px; color: var(--muted, #7a6c5b); }
.cal-err { margin: 6px 0; font-size: 13.5px; color: var(--accent, #b5562f); }
.cal-link { margin: 14px 0 6px; border-top: 1px solid var(--line, rgba(43,34,25,.12)); padding-top: 12px; }
.cal-link summary { cursor: pointer; font-weight: 600; }
.cal-form { margin: 10px 0 6px; display: grid; gap: 6px; }
.cal-form label { font-size: 13px; font-weight: 600; }
.cal-row { display: flex; gap: 8px; }
.cal-row input { flex: 1; min-width: 0; }
.cal-how { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2, #4d4134); line-height: 1.5; }
.cal-how em { font-style: normal; font-weight: 600; }
.cal-file { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-top: 12px; }
.cal-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; margin: 0 0 8px; }
.cal-h .link { font-size: 13px; font-weight: 500; }
.cal-today, .cal-met { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 14px; }
.cal-today ul, .cal-met ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-item, .cal-met li { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line, rgba(43,34,25,.08)); }
.cal-item:first-child, .cal-met li:first-child { border-top: 0; padding-top: 0; }
.cal-txt { flex: 1 1 260px; min-width: 0; font-size: 14.5px; }
.cal-soon .cal-txt b { color: var(--accent, #b5562f); font-weight: 600; }
.cal-note { display: block; margin-top: 3px; font-size: 13px; color: var(--muted, #7a6c5b); }
/* Coming up: slim row, day block · meeting · Join */
.cal-today:has(.cal-up) { padding: 10px 14px 12px; }
.cal-today:has(.cal-up) .cal-h { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #7a6c5b); margin-bottom: 8px; }
.cal-item.cal-up { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; flex-wrap: nowrap; padding: 6px 0; }
.cal-when { display: grid; justify-items: center; gap: 1px; padding: 5px 0; border-radius: 10px; background: color-mix(in srgb, var(--accent, #b5562f) 9%, transparent); line-height: 1.1; }
.cal-when b { font-size: 12px; font-weight: 700; color: var(--accent, #b5562f); text-transform: uppercase; letter-spacing: .03em; }
.cal-when span { font-size: 12px; color: var(--ink, #2b2219); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cal-main { display: grid; gap: 1px; min-width: 0; }
.cal-t { font-size: 14.5px; font-weight: 600; color: var(--ink, #2b2219); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-sub { font-size: 13px; color: var(--muted, #7a6c5b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-sub .link { font-size: inherit; color: var(--ink-2, #4d4134); }
.cal-up .cv-join { margin-left: 0; }
.cal-met li em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted, #7a6c5b); }
.cal-btns { display: flex; gap: 6px; flex: none; }
/* A meeting an assistant asked to book: waits here for Add to calendar, Edit or Dismiss. */
.cal-asks { border-color: color-mix(in srgb, var(--accent, #b5562f) 35%, transparent); background: color-mix(in srgb, var(--accent, #b5562f) 4%, transparent); }
.cal-ask .cal-ask-l { display: block; }
.cal-ask .cal-ask-l b { font-weight: 600; }
.cal-ask small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted, #7a6c5b); }
.cal-ask .cal-btns { flex-wrap: wrap; }
.ag-day { margin: 0 0 22px; }
.ag-dh { display: flex; gap: 10px; align-items: baseline; font-size: 15px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line, rgba(43,34,25,.12)); }
.ag-dh span { font-size: 13px; font-weight: 500; color: var(--muted, #7a6c5b); }
.ag-today .ag-dh { color: var(--accent, #b5562f); border-bottom-color: var(--accent, #b5562f); }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-m { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 14px; }
.ag-today .ag-m { border-color: var(--accent, #b5562f); background: var(--wash, #f6e6da); }
.ag-done { opacity: .92; }
.ag-time { font-size: 13.5px; font-weight: 600; color: var(--ink-2, #4d4134); padding-top: 2px; }
.ag-body h3 { margin: 0 0 4px; font-size: 15.5px; }
.ag-loc { margin: 0 0 6px; font-size: 13px; color: var(--muted, #7a6c5b); }
.ag-people { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ag-p { display: flex; gap: 10px; align-items: flex-start; }
.ag-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wash, #efe6d6); color: var(--ink-2, #4d4134); font-size: 12.5px; font-weight: 700; border: 1px solid var(--line, rgba(43,34,25,.12)); }
.ag-pb { min-width: 0; display: grid; gap: 2px; }
.ag-pb p { margin: 0; }
.ag-pn { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.ag-pn .link { font-weight: 600; }
.ag-pn span, .ag-meta { font-size: 13px; color: var(--muted, #7a6c5b); }
.ag-note { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; font-size: 13.5px; color: var(--ink-2, #4d4134); }
.ag-how { font-size: 13.5px; }
.ag-new { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.ag-chip { font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--accent, #b5562f); background: transparent; color: var(--accent, #b5562f); cursor: pointer; }
.ag-chip:hover { background: var(--wash, #f6e6da); }
@media (max-width: 560px) { .ag-m { grid-template-columns: minmax(0, 1fr); gap: 4px; } .cal-row { flex-direction: column; } .cal-btns { width: 100%; } .cal-today, .cal-met { padding: 12px; } }
.settings[data-tab="calendar"] > section[data-g="calendar"] { display: block; }
/* Calendar page (#agenda): Week and Agenda, the meeting panel. Thin lines, terracotta for people you know. */
.page:has(.cv) { max-width: 1320px; }
.cv { --cv-grey: color-mix(in srgb, var(--ink) 5%, var(--page)); }
.cv-top { align-items: flex-end; }
.cv-top .ph-date { font-variant-numeric: tabular-nums; }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cv-seg { display: inline-flex; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.cv-seg button { font: inherit; font-size: 13px; font-weight: 500; padding: 5px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; }
.cv-seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.cv-nav { display: inline-flex; align-items: center; gap: 4px; }
.cv-arr, .cv-today { font: inherit; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; }
.cv-arr { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.cv-today { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.cv-arr:hover, .cv-today:hover, .cv-seg button:not([aria-pressed="true"]):hover { background: var(--cv-grey); }
.cv-sync { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 13px; color: var(--muted); }
.cv-sync .link { font-size: 13px; }
.cv-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 18px; }
.cv-open .cv-wrap { grid-template-columns: minmax(0, 1fr) 360px; }
.cv-main { min-width: 0; }
/* Week grid */
.cv-week { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--page); }
.cv-row { display: grid; grid-template-columns: 52px repeat(var(--days), minmax(0, 1fr)); }
.cv-head { border-bottom: 1px solid var(--line); }
.cv-dh { display: flex; align-items: center; gap: 6px; padding: 10px 10px; border-left: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cv-dh b { font-size: 16px; font-weight: 500; color: var(--ink); letter-spacing: 0; min-width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; }
.cv-dh.cv-on { color: var(--accent); }
.cv-dh.cv-on b { background: var(--accent); color: var(--page); }
.cv-gut { font-size: 11px; color: var(--faint); }
.cv-allday { border-bottom: 1px solid var(--line); }
.cv-allday .cv-gut { padding: 8px 6px 0 0; text-align: right; }
.cv-adc { display: grid; gap: 3px; align-content: start; padding: 4px; border-left: 1px solid var(--line); min-width: 0; }
.cv-ad { font: inherit; font-size: 12px; font-weight: 600; text-align: left; padding: 3px 8px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 6px; background: var(--cv-grey); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-body { height: calc(var(--hours) * var(--hour)); }
.cv-times { position: relative; }
.cv-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cv-col { position: relative; min-width: 0; border-left: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% var(--hour); }
.cv-col.cv-on { background-color: color-mix(in srgb, var(--wash) 50%, transparent); }
.cv-now { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--accent); z-index: 3; pointer-events: none; }
.cv-now::before { content: ""; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cv-ev { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden; padding: 4px 7px 5px; text-align: left; font: inherit; font-size: 12px; line-height: 1.25; color: var(--ink); border: 1px solid var(--line-2); border-left: 3px solid var(--line-2); border-radius: 8px; background: var(--cv-grey); cursor: pointer; }
.cv-known.cv-ev, .cv-known.cv-ad { background: var(--wash); border-color: var(--mark); border-left-color: var(--accent); }
.cv-ev:hover, .cv-ad:hover { border-color: var(--ink-2); border-left-color: var(--ink-2); }
.cv-known.cv-ev:hover, .cv-known.cv-ad:hover { border-color: var(--accent); }
.cv-picked { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 2; }
.cv-past { opacity: .7; }
.cv-tm { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv-ti { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; word-break: normal; hyphens: none; text-overflow: ellipsis; }
.cv-small { flex-direction: row; align-items: center; gap: 6px; padding-top: 1px; padding-bottom: 1px; }
.cv-small .cv-ti { -webkit-line-clamp: 1; }
.cv-avs { display: flex; align-items: center; flex: none; }
.cv-ev > .cv-avs { margin-top: auto; padding-top: 3px; }
.cv-r1 { display: flex; align-items: center; justify-content: space-between; gap: 4px; width: 100%; flex: none; min-height: 18px; }
.cv-r1 .cv-av { width: 18px; height: 18px; font-size: 8.5px; }
.cv-ti { flex: none; max-width: 100%; }
.cv-av { width: 20px; height: 20px; margin-left: -5px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); background: var(--page); border: 1px solid var(--line-2); }
.cv-av:first-child { margin-left: 0; }
.cv-av.on { color: var(--accent); border-color: var(--accent); }
.cv-more { margin-left: 4px; font-size: 10.5px; color: var(--muted); }
/* The meeting panel (a sheet on a phone) */
.cv-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding: 16px 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.cv-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cv-when { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cv-when span { color: var(--ok); }
.cv-x { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.cv-x:hover { background: var(--cv-grey); }
.cv-panel h2 { margin: 6px 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.cv-panel .ag-people { margin-top: 14px; gap: 0; }
.cv-panel .ag-p { padding: 14px 0; border-top: 1px solid var(--line); }
.cv-shade { display: none; }
/* People on a meeting (panel and agenda) */
.cv .ag-people { gap: 14px; }
.cv .ag-pn b { font-weight: 600; }
.ag-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ag-acts .btn-small { min-height: 30px; padding: 0 12px; font-size: 13px; }
.ag-how { margin-right: 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.ag-none { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ag-p.ag-new .ag-av { background: transparent; border-style: dashed; color: var(--muted); }
/* Agenda, in the same cards as the panel */
.cv-m-agenda .ag-day { margin: 0 0 24px; }
.cv .ag-m { background: var(--raised); border-color: var(--line); padding: 14px 16px; }
.cv .ag-today .ag-m { background: var(--raised); border-color: var(--line); }
.cv .ag-m.cv-known { border-left: 3px solid var(--accent); }
.cv .ag-time { font-variant-numeric: tabular-nums; }
.cv .ag-time span { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.cv .ag-done { opacity: 1; }
.cv .ag-done .ag-body h3, .cv .ag-done .ag-time { color: var(--muted); }
.cv-blank { margin-top: 8px; }
.cv-empty { margin-top: 28px; max-width: 620px; padding: 28px 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.cv-empty h2 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cv-empty p { margin: 0; color: var(--ink-2); }
.cv-empty .cal-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (max-width: 1100px) { .cv-open .cv-wrap { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 899px) {
  .cv-open .cv-wrap { grid-template-columns: minmax(0, 1fr); }
  .cv-panel { position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0; top: auto; max-height: 80vh; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .cv-shade { display: block; position: fixed; inset: 0; z-index: 1000; background: rgb(27 23 18 / .32); }
}
@media (max-width: 699px) {
  .cv-bar { width: 100%; justify-content: space-between; }
  .cv-sync { width: 100%; }
  .cv-row { grid-template-columns: 40px repeat(var(--days), minmax(0, 1fr)); }
  .cv-dh { padding: 8px 6px; font-size: 11.5px; }
  .cv-times span { right: 5px; font-size: 10px; }
  .cv .ag-m { padding: 12px 14px; }
}
/* Calendar: Join, booking a slot, the booking dialog, starting soon */
.cv-hit { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.cv-hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cv-ev > :not(.cv-hit):not(.cv-join) { position: relative; pointer-events: none; }
.cv-ev:not(.cv-known) { background-image: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ink) 4%, transparent) 6px 7px); }
.cv-col[data-cal="slot"] { cursor: cell; }
.cv-vid { width: 15px; height: 15px; flex: none; }
.cv-join { position: absolute; z-index: 2; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; text-decoration: none; color: var(--page); background: var(--accent); opacity: 0; transition: opacity .12s; }
.cv-ev:hover .cv-join, .cv-ev:focus-within .cv-join, .cv-live .cv-join, .cv-join:focus-visible { opacity: 1; }
@media (hover: none) { .cv-join { opacity: 1; } }
.cv-small .cv-join { top: 50%; bottom: auto; transform: translateY(-50%); padding: 1px 6px; }
.cv-small .cv-join span, .cv-narrow .cv-join span { display: none; }
.cv-narrow .cv-join { padding: 2px 5px; }
.cv-live { border-color: var(--accent); }
.cv-draft { position: absolute; left: 2px; right: 2px; z-index: 2; border: 1.5px dashed var(--accent); border-radius: 8px; background: color-mix(in srgb, var(--wash) 70%, transparent); font-size: 11.5px; font-weight: 600; color: var(--accent); padding: 3px 7px; pointer-events: none; }
.cv-joinbig { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 2px; text-decoration: none; }
.cv-joinbig .cv-vid { width: 18px; height: 18px; }
.ag-th { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cv-join.ag-join, .cal-item .cv-join { position: static; opacity: 1; flex: none; padding: 4px 10px 4px 8px; font-size: 12.5px; }
.cal-item .cv-join { display: inline-flex; margin-left: 8px; vertical-align: middle; }
/* Book a meeting: one field style, a person picker, minutes as a segmented control, a switch, "Your day". */
.bk-dlg { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--raised); color: var(--ink); overflow: visible; }
.bk-dlg::backdrop { background: rgb(27 23 18 / .2); }
.bk-dlg.bk-at { position: fixed; margin: 0; }
.bk-dlg:not(.bk-at) { margin-top: max(16px, 8vh); }
.bk { display: grid; gap: 16px; padding: 22px 24px 20px; max-height: calc(100vh - 34px); overflow: auto; }
.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.bk-x { width: 32px; height: 32px; margin-right: -6px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.bk-x svg { width: 18px; height: 18px; }
.bk-x:hover { background: var(--cv-grey, color-mix(in srgb, var(--ink) 5%, var(--page))); color: var(--ink); }
.bk-l { display: block; margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.bk-fld { min-width: 0; }
.bk .bk-f { box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 12px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--page); border: 1px solid var(--line-2); border-radius: 10px; outline: 0; box-shadow: none; -webkit-appearance: none; appearance: none; }
.bk .bk-f:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line-2)); }
.bk .bk-f:focus, .bk .bk-f:focus-visible { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
.bk .bk-f::placeholder { color: var(--faint); }
.bk-iw { position: relative; display: block; }
.bk-iw > svg { position: absolute; right: 10px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.bk-iw .bk-f { padding: 0 32px 0 11px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bk-iw .bk-f::-webkit-calendar-picker-indicator { position: absolute; right: 0; top: 0; width: 34px; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.bk-iw .bk-f::-webkit-datetime-edit { padding: 0; }
.bk-iw .bk-f::-webkit-datetime-edit-fields-wrapper { padding: 0; }
/* With */
.bk-with { position: relative; }
.bk-box { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 6px; box-sizing: border-box; background: var(--page); border: 1px solid var(--line-2); border-radius: 10px; cursor: text; }
.bk-box:focus-within, .bk-box-on { border-color: var(--accent); outline: 1px solid var(--accent); }
.bk-qw { flex: 1 1 140px; min-width: 120px; display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.bk-qw svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.bk-qw input { flex: 1; min-width: 0; min-height: 0; height: 32px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); padding: 0; }
.bk-qw input::placeholder { color: var(--faint); }
.bk-chip { --pc: var(--accent); display: inline-flex; align-items: center; gap: 8px; max-width: 100%; height: 34px; padding: 0 4px 0 3px; border: 1px solid color-mix(in srgb, var(--pc) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--pc) 8%, var(--page)); }
.bk-chip .ag-av { width: 26px; height: 26px; font-size: 10.5px; border-color: var(--pc); color: var(--pc); background: var(--page); }
.bk-cn { display: flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; }
.bk-cn b { font-weight: 600; font-size: 14px; }
.bk-cn small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.bk-cx { width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: inherit; font-size: 15px; line-height: 1; cursor: pointer; }
.bk-cx:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.bk-pop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 340px; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.bk-chips { display: flex; gap: 6px; padding: 10px 10px 8px; overflow-x: auto; border-bottom: 1px solid var(--line); flex: none; scrollbar-width: none; }
.bk-chips button { flex: none; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.bk-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); }
.bk-opts { list-style: none; margin: 0; padding: 4px; overflow: auto; }
.bk-g { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.bk-o { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.bk-o.bk-hi, .bk-o:hover { background: var(--wash); }
.bk-o .ag-av { width: 30px; height: 30px; font-size: 11px; }
.bk-on { min-width: 0; }
.bk-on b { display: block; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-on small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-em { font-size: 12px; color: var(--faint); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-noem { color: var(--muted); }
.bk-addem { display: flex; gap: 6px; align-items: center; }
.bk .bk-f-s { height: 32px; width: 170px; font-size: 13px; padding: 0 8px; border-radius: 8px; }
.bk-none { padding: 14px 10px; font-size: 13.5px; color: var(--muted); }
.bk-mini { height: 28px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--page); font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.bk-mini:hover { border-color: var(--accent); color: var(--accent); }
.bk-mini.bk-link { height: auto; padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; }
.bk-warn-s { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
/* Day, time, minutes */
.bk-when { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 10px; }
.bk-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: 44px; padding: 3px; box-sizing: border-box; border: 1px solid var(--line-2); border-radius: 10px; background: var(--page); }
.bk-seg button { border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.bk-seg button[aria-checked="true"] { background: var(--ink); color: var(--page); }
.bk-seg button:not([aria-checked="true"]):hover { background: var(--wash); }
.bk-seg button:focus-visible { outline: 1px solid var(--accent); }
/* The switch */
.bk-sw { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.bk-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-tr { position: relative; flex: none; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.bk-tr span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--page); transition: transform .15s; }
.bk-sw input:checked + .bk-tr { background: var(--accent); }
.bk-sw input:checked + .bk-tr span { transform: translateX(16px); }
.bk-sw input:focus-visible + .bk-tr { outline: 1px solid var(--accent); outline-offset: 2px; }
.bk-sw .cv-vid { width: 18px; height: 18px; color: var(--muted); }
/* Your day */
.bk-day { padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
.bk-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bk-dh .bk-l { margin: 0; }
.bk-ds { font-size: 12.5px; color: var(--muted); }
.bk-track { position: relative; height: 30px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 3%, var(--page)); }
.bk-track .bk-tk { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); font-size: 0; }
.bk-b { position: absolute; top: 3px; bottom: 3px; padding: 0; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, var(--page)); cursor: pointer; overflow: hidden; }
.bk-b:hover, .bk-b:focus-visible { background: color-mix(in srgb, var(--ink) 26%, var(--page)); outline: 0; }
.bk-slot { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); pointer-events: none; overflow: hidden; display: flex; flex-direction: column; }
.bk-ticks { position: relative; height: 16px; margin-top: 4px; }
.bk-ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bk-ticks span:first-child { transform: none; }
.bk-ticks span:last-child { transform: translateX(-100%); }
.bk-free { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.bk-cap { color: var(--ink-2); }
.bk-clash { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.bk-clash > svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.bk-clash > span { flex: 1 1 200px; }
/* Footer */
.bk-hint { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.bk-acts { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 12px; }
.bk-cancel { height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.bk-cancel:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink); }
.bk .bk-go { min-height: 40px; padding: 0 18px; border-radius: 10px; }
.bk-also { margin: 10px 0 0; text-align: right; font-size: 12.5px; color: var(--faint); }
.bk-also button { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.bk-also button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 699px) {
  .bk-dlg, .bk-dlg:not(.bk-at) { position: fixed; inset: auto 0 0 0; width: 100vw; max-width: 100vw; margin: 0; border-radius: 18px 18px 0 0; border-bottom: 0; max-height: 92vh; animation: none; }
  .bk { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; }
  .bk-when { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bk-when > .bk-fld:last-child { grid-column: 1 / -1; }
  .bk-pop { max-height: 46vh; }
  .bk-em { display: none; }
  .bk-noem { display: inline; }
}
/* Starting soon */
.cal-soonbar { position: fixed; z-index: 900; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); padding: 8px 8px 8px 14px; border: 1px solid var(--accent); border-radius: 999px; background: var(--raised); color: var(--ink); font-size: 14px; }
.cal-soonbar[hidden] { display: none; }
.cal-soon-t { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.cal-soon-t .cv-vid { color: var(--accent); }
.cal-soon-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-soonbar .btn-small { min-height: 30px; padding: 0 12px; font-size: 13px; text-decoration: none; }
.cal-soonbar .cv-x { width: 28px; height: 28px; font-size: 16px; }
@media (max-width: 699px) { .cal-soonbar { left: 12px; right: 12px; transform: none; bottom: 84px; border-radius: 14px; flex-wrap: wrap; } .cal-soon-t { flex: 1 1 100%; } .cal-soon-t > span { white-space: normal; } }
/* Calendar blocks: short ones keep the title to one line; narrow ones drop the initials before the title */
.cv-mid .cv-ti, .cv-small .cv-ti { -webkit-line-clamp: 1; display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cv-small .cv-ti { flex: 1; min-width: 0; }
.cv-narrow .cv-r1 .cv-avs { display: none; }
.cv-tm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cv-small:has(.cv-join):is(.cv-live, :hover) { padding-right: 30px; }
.cv-ev:has(.cv-join):is(.cv-live, :hover):not(.cv-small) .cv-ti { padding-right: 52px; }
.cv-narrow:has(.cv-join):is(.cv-live, :hover):not(.cv-small) .cv-ti { padding-right: 26px; }
@media (max-width: 699px) { .cal-soonbar { z-index: 1100; right: 76px; } } /* clear of the chat button, which sits at the bottom right */
/* Calendar: a calm colour per person (or folder). Never colour alone: initials and names stay. */
:root { --pc0: #b5562f; --pc1: #5e6b2f; --pc2: #4a6283; --pc3: #8f6114; --pc4: #7d4e6b; --pc5: #2f6f6a; --cv-none: #c9bfae; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pc0: #e08a62; --pc1: #a7b46a; --pc2: #8fa8cc; --pc3: #e0ae4e; --pc4: #d39bbd; --pc5: #6fb5ad; --cv-none: #5a4f40; } }
:root[data-theme="dark"] { --pc0: #e08a62; --pc1: #a7b46a; --pc2: #8fa8cc; --pc3: #e0ae4e; --pc4: #d39bbd; --pc5: #6fb5ad; --cv-none: #5a4f40; }
.pc[style*="--pc"] { border-color: var(--pc); color: var(--pc); }
.ag-av.pc { background: color-mix(in srgb, var(--pc) 9%, var(--page)); }
.cv-ev, .cv-known.cv-ev, .cv-ev:hover, .cv-known.cv-ev:hover { border-left-width: 1px; }
.cv-ev { padding-left: 10px; }
.cv-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; display: flex; flex-direction: column; border-radius: 8px 0 0 8px; overflow: hidden; pointer-events: none; z-index: 1; }
.cv-edge i { flex: 1; }
.cv-av.on.pc { background: var(--page); font-weight: 700; }
.cv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.cv-lg-l { font-weight: 500; }
.cv-seg-s button { font-size: 12px; padding: 3px 11px; }
.cv-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.cv-keys li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.cv-keys i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc); }
.cv-keys i.cv-k-none { background: var(--cv-none); }
.cv-legend + .cv-wrap { margin-top: 12px; }
/* Your day, tinted by who's in each meeting */
.bk-b { display: flex; flex-direction: column; }
.bk-b i, .bk-slot i { flex: 1; display: block; }
.bk-b.bk-b-on { opacity: .9; }
.bk-slot.bk-slot-p { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--page); }
.bk-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 8px 0 0; padding: 0; font-size: 12px; color: var(--ink-2); }
.bk-keys li { display: inline-flex; align-items: center; gap: 6px; }
.bk-keys > li > i { width: 10px; height: 10px; border-radius: 3px; display: inline-flex; flex-direction: column; overflow: hidden; }
.bk-keys .bk-k-split i { flex: 1; }
.bk-keys .bk-k-busy { background: color-mix(in srgb, var(--ink) 16%, var(--page)); }
/* Calendar: person colours actually show (the stripe was being reset by the generic child rule above) */
.cv-ev > .cv-edge.cv-edge, .cv-ad > .cv-edge.cv-edge { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; display: flex; flex-direction: column; }
.cv-known.cv-ev, .cv-known.cv-ad { background: color-mix(in srgb, var(--pc, var(--accent)) 13%, var(--page)); border-color: color-mix(in srgb, var(--pc, var(--accent)) 30%, transparent); border-left-color: transparent; padding-left: 11px; }
.cv-known.cv-ev:hover, .cv-known.cv-ad:hover { border-color: var(--pc, var(--accent)); border-left-color: transparent; }
.cv-ev:not(.cv-known) { padding-left: 11px; }
/* Calendar, tester round: narrow blocks show the title only; pending bookings; Agenda's folded strangers; phone header. */
.cv-narrow .cv-r1, .cv-narrow.cv-small .cv-tm { display: none; }
.cv-narrow:not(.cv-small) .cv-ti { -webkit-line-clamp: 2; display: -webkit-box; white-space: normal; }
.cv-pending { opacity: .62; border-style: dashed !important; }
.cv-pending .cv-tm::before { content: "Pending · "; }
.cv-pend { margin: 10px 0 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.cv-pend-tag { display: inline-block; margin-right: 8px; padding: 1px 8px; border: 1px dashed var(--line-2); border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--muted); vertical-align: 2px; }
.ag-m.cv-pending { opacity: .7; }
.ag-others { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.ag-others .link { font-size: 13px; }
.ag-empty { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.ag-me { font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.cv .ag-day { scroll-margin-top: 96px; }
.cv-lg-btn { display: none; }
.bk-av-g { border-style: dashed !important; background: transparent !important; color: var(--muted) !important; font-weight: 600; }
.bk-chip-g { border-style: dashed; background: transparent; }
.bk-addbook { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.bk-addbook input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
@media (max-width: 699px) {
  .cv { padding-bottom: 84px; } /* clear of the chat button */
  .cv-top { gap: 10px; padding-bottom: 12px; }
  .cv-top h1 { font-size: 30px; }
  .cv-bar { gap: 8px; }
  .cv-sync { width: auto; flex: 1; font-size: 12.5px; }
  .cv-legend { margin-top: 8px; gap: 8px; }
  .cv-lg-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
  .cv-lg-btn[aria-expanded="true"] { background: var(--ink); color: var(--page); border-color: var(--ink); }
  .cv-legend:not(.cv-lg-open) > :not(.cv-lg-btn) { display: none; }
  .cv-legend + .cv-wrap { margin-top: 10px; }
}
/* Booking picker: the search box sits inside the field, so it has no border or ring of its own (the field shows the terracotta ring) */
#bk-q, #bk-q:focus, #bk-q:focus-visible { border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; padding-left: 0; }
/* What's new: a beige header with a small picture of the feature, the details scroll, the buttons stay put */
dialog.news-dlg { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line, rgba(43,34,25,.14)); border-radius: 18px; background: var(--page, #fbf8f2); color: var(--ink, #2b2219); overflow: hidden; }
dialog.news-dlg::backdrop { background: rgba(43, 34, 25, .38); }
.nw { display: flex; flex-direction: column; max-height: min(720px, calc(100dvh - 48px)); }
.nw-head { background: #efdcc8; padding: 22px 26px 0; flex: none; }
.nw-tag { display: inline-block; margin: 0; padding: 3px 10px; border-radius: 999px; background: #fbf7f1; color: #8a3f20; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.nw-head h2 { margin: 10px 0 16px; font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
.nw-head h2 span { color: #b5562f; }
.nw-art { background: #fbf7f1; border-radius: 14px 14px 0 0; padding: 14px 16px 16px; display: grid; gap: 8px; border: 1px solid rgba(43,34,25,.08); border-bottom: 0; }
.nw-sw { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: 999px; background: #f1e6d8; font-size: 12px; font-weight: 600; color: #6f6253; }
.nw-sw span { padding: 4px 12px; border-radius: 999px; }
.nw-sw .nw-sw-on { background: #fff; color: var(--ink, #2b2219); border: 1px solid rgba(43,34,25,.1); }
.nw-note { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid rgba(43,34,25,.08); }
.nw-note p { margin: 0; font-size: 13px; line-height: 1.35; color: #4d4134; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nw-note b { color: var(--ink, #2b2219); font-weight: 600; }
.nw-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); }
.nw-week { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: 18px 26px 26px; gap: 0 4px; margin-top: 4px; }
.nw-week span { font-size: 10.5px; font-weight: 600; color: #8b7d6c; border-bottom: 1px solid rgba(43,34,25,.1); }
.nw-week i { font-style: normal; grid-column: calc(var(--x) + 1); grid-row: calc(var(--y) + 2) / span var(--h); margin: 3px 0 0; padding: 3px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; line-height: 1.25; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); border-left: 3px solid var(--c); overflow: hidden; }
.nw-body { overflow-y: scroll; padding: 4px 18px 6px 26px; flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: auto; scrollbar-color: auto; }
.nw-body:focus, .nw-body:focus-visible { outline: none; }
@supports not selector(::-webkit-scrollbar) { .nw-body { scrollbar-width: thin; scrollbar-color: #d6c2ad #f1e6d8; } }
.nw-body::-webkit-scrollbar { width: 8px; background: transparent; }
.nw-body::-webkit-scrollbar-track { background: #f1e6d8; border-radius: 8px; margin: 10px 0; }
.nw-body::-webkit-scrollbar-thumb { background: #d6c2ad; border-radius: 8px; border: 2px solid var(--page, #fbf8f2); }
dialog.news-dlg:focus, dialog.news-dlg:focus-visible { outline: none; }
.nw-acts .btn:focus-visible, .nw-acts .link:focus-visible { outline: 2px solid #b5562f; outline-offset: 2px; }
.nw-f { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line, rgba(43,34,25,.12)); }
.nw-ic { width: 38px; height: 38px; border-radius: 11px; background: #f6e6dc; color: #b5562f; display: grid; place-items: center; }
.nw-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nw-f h3 { margin: 1px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.nw-f p { margin: 0; font-size: 14px; line-height: 1.5; color: #4d4134; }
.nw-f ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.nw-f li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.45; color: #6f6253; }
.nw-f li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #b5562f; }
.nw-priv { margin: 14px 0 10px; padding: 10px 12px; border-radius: 10px; background: #f3e9dc; font-size: 13px; line-height: 1.45; color: #4d4134; }
.nw-acts { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 26px; border-top: 1px solid var(--line, rgba(43,34,25,.12)); background: var(--page, #fbf8f2); }
.nw-acts .link { margin-right: auto; }
@media (max-width: 560px) { .nw-head { padding: 18px 18px 0; } .nw-head h2 { font-size: 25px; } .nw-body { padding: 2px 18px 6px; } .nw-acts { padding: 12px 18px; flex-wrap: wrap; } .nw-week { display: none; } }
/* LinkedIn connections: a light "+ Add" pill, one line, not a heavy black block */
.li-conn-add { display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap; padding: 7px 14px 7px 11px; border: 1px solid var(--line-2, rgba(43,34,25,.2)); border-radius: 999px; background: var(--page, #fbf8f2); color: var(--ink, #2b2219); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.li-conn-add svg { width: 14px; height: 14px; color: var(--accent, #b5562f); }
.li-conn-add:hover { border-color: var(--accent, #b5562f); color: var(--accent, #b5562f); }
/* Calendar: follow-ups and date fields in the all-day strip and at the top of each Agenda day (Backbook-only). */
.cv-fu { --pc: var(--accent); display: flex; align-items: stretch; min-width: 0; border: 1px dashed color-mix(in srgb, var(--pc) 45%, var(--line-2)); border-radius: 6px; background: var(--page); font-size: 12px; }
.cv-fu-late { border-style: solid; border-color: var(--accent); }
.cv-fu-b { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 7px; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.cv-fu-b i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.cv-fu-b > span { min-width: 0; display: grid; }
.cv-fu-b b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-fu-b small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-fu-late small { color: var(--accent); font-weight: 600; }
.cv-fu-field .cv-fu-b i { border-radius: 2px; }
.cv-fu-x { flex: none; width: 24px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.cv-fu-x svg { width: 13px; height: 13px; }
.cv-fu-x:hover { color: var(--ink); background: var(--wash); }
.cv-fu-b:hover b { text-decoration: underline; text-underline-offset: 2px; }
.ag-fu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; }
.ag-fu-l { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.ag-fu .cv-fu { max-width: 100%; }
.cv-fu-t { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.cv-fu-t input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
@media (max-width: 699px) { .cv-fu-x { width: 32px; } }
/* Calendar, tester round 3: the first hour labelled, Join on past meetings (quiet), room for the chat button. */
.cv-times span.cv-t0 { transform: translateY(2px); }
.cv-join-past { margin-top: 12px; }
.cv { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ag-inother { color: var(--ink-2); }
@media (max-width: 699px) { .cv-allday .cv-fu-x { display: none; } .cv-allday .cv-fu-b { padding-right: 6px; } } /* phone week: the chip opens the card; Done and Add live in the Agenda */

/* Check my inbox for replies (Settings, Email; inbox-check.js) */
.inbox-check { max-width: 640px; display: grid; gap: 10px; margin-top: 16px; }
.inbox-check .hint, .inbox-status { margin: 0; }
.inbox-status { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.inbox-levels { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.inbox-check .inbox-level { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 14px; border: 1px solid var(--line-2, var(--line)); border-radius: 10px; background: var(--raised, #fff); cursor: pointer; font-size: 14.5px; }
.inbox-check .inbox-level:has(input:checked) { border-color: var(--accent); }
.inbox-check .inbox-level:has(input:disabled) { cursor: default; opacity: .7; }
.inbox-check .inbox-level input[type=radio] { width: 16px; height: 16px; min-height: 0; flex: none; padding: 0; margin: 2px 0 0; accent-color: var(--accent); }
.inbox-level > span { display: grid; gap: 3px; min-width: 0; }
.inbox-level b { font-weight: 600; font-size: 14.5px; }
.inbox-level .hint { margin: 0; font-size: 13.5px; line-height: 1.45; }
/* Today: one reply per row, name and actions on one line, their words under it, suggestions under that */
.inbox-today .ibx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ibx-item { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line, rgba(43,34,25,.12)); }
.ibx-item:first-child { border-top: 0; padding-top: 4px; }
.ibx-item:last-child { padding-bottom: 0; }
.ibx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.ibx-who { font-size: 15px; min-width: 0; }
.ibx-who b { font-weight: 600; }
.ibx-who .hint { font-size: 13px; }
.ibx-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; vertical-align: 1px; background: var(--accent-soft, rgb(181 86 47 / .12)); color: var(--accent-ink, var(--accent)); }
.ibx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.ibx-saved { font-size: 13px; padding: 0 4px; }
.ibx-quote { margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--accent); font-size: 15px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.inbox-sugs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.inbox-sugs li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 10px 8px 12px; border: 1px solid var(--line, rgba(43,34,25,.12)); border-radius: 10px; font-size: 14px; color: var(--ink); }
.inbox-sugs li > span:first-child { flex: 1 1 200px; min-width: 0; }
.ibx-sug-b { display: flex; gap: 6px; }
@media (max-width: 560px) { .ibx-acts { margin-left: 0; } }

/* Outlook isn't connected up yet: a quiet note beside the Google button */
.conn-soon { align-self: center; font-size: 13px; color: var(--muted); padding: 0 4px; }

/* Setup, Sync your calendar: one centred column. Google is one big button; a calendar link is a quiet row that opens in place. */
.setup-cal-step .setup-cal { width: min(460px, 100%); margin: 30px auto 6px; display: grid; gap: 12px; text-align: left; }
.setup-cal-step .cal-set { display: grid; gap: 12px; }
.setup-cal-step .cal-acts { display: grid; gap: 10px; }
.setup-cal-step .cal-acts .btn { width: 100%; min-height: 56px; justify-content: center; font-size: 16.5px; border-radius: 14px; }
.setup-cal-step .conn-soon { display: none; }
.setup-cal-step .cal-link { border: 1px solid var(--line-2, var(--line)); border-radius: 14px; background: var(--raised, #fff); }
.setup-cal-step .cal-link > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 0 18px; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.setup-cal-step .cal-link > summary::-webkit-details-marker { display: none; }
.setup-cal-step .cal-link > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.setup-cal-step .cal-link[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.setup-cal-step .cal-link > :not(summary) { margin: 0 18px 16px; }
.setup-cal-step .cal-link .hint { font-size: 13px; color: var(--muted); }
.setup-cal-step .cal-on { margin: 0; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--ok, #5e7f5b) 10%, transparent); font-size: 15.5px; text-align: center; }
.setup-cal-step .setup-go { justify-content: center; }

/* What will you use it for: calm pills, not a wall of cards. One small icon, the name; the picked one shows its hint. */
.setup.setup-use .setup-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; margin: 0 auto; }
.setup.setup-use .setup-chip { display: inline-flex; align-items: center; gap: 9px; width: auto; min-height: 46px; padding: 0 18px 0 12px; border: 1px solid var(--line-2, var(--line)); border-radius: 999px; background: var(--raised, #fff); box-shadow: none; transition: border-color .15s, background .15s; }
.setup.setup-use .setup-chip:hover { border-color: color-mix(in srgb, var(--accent, #b5562f) 45%, var(--line)); }
.setup.setup-use .setup-ic-box { width: 28px; height: 28px; border-radius: 8px; color: #fff; display: grid !important; place-items: center; padding: 0 !important; }
.setup.setup-use .setup-ic-box .setup-ic { width: 15px; height: 15px; }
.setup.setup-use .setup-chip b { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.setup.setup-use .setup-chip > span { display: none; }
.setup.setup-use .setup-chip .setup-tick { display: none; }
.setup.setup-use .setup-chip.on { border-color: var(--accent, #b5562f); background: color-mix(in srgb, var(--accent, #b5562f) 7%, var(--raised, #fff)); }
.setup.setup-use .setup-chip.on > span { display: inline; font-size: 13.5px; color: var(--muted); }
.setup.setup-use .setup-chip.on > span::before { content: "· "; }
.setup.setup-use .setup-label { display: block; text-align: center; margin-bottom: 14px; }
@media (max-width: 560px) { .setup.setup-use .setup-presets { justify-content: flex-start; } .setup.setup-use .setup-chip.on > span { display: none; } }
.setup.setup-use .setup-chip { flex-direction: row; aspect-ratio: auto !important; height: auto !important; min-height: 46px !important; grid-template: none; position: relative; text-align: left; white-space: nowrap; }
.setup.setup-use .setup-chip .setup-ic-box { position: static !important; inset: auto !important; margin: 0 !important; flex: none; }
.setup.setup-use .setup-chip .setup-ic { display: block; margin: 0 !important; position: static !important; inset: auto !important; transform: none !important; width: 16px !important; height: 16px !important; color: #fff; stroke: currentColor; }
.setup.setup-use .setup-chip b, .setup.setup-use .setup-chip.on > span { position: static !important; margin: 0 !important; height: auto !important; transform: none !important; }
.setup.setup-use .setup-chip .setup-ic-box { align-self: center !important; transform: none !important; top: auto !important; translate: none !important; }
/* Setup, calendar link: a clean field and a terracotta Connect. */
.setup-cal-step .cal-link .cal-form { display: grid; gap: 8px; }
.setup-cal-step .cal-link .cal-form label { font-size: 13px; font-weight: 600; color: var(--muted); }
.setup-cal-step .cal-link .cal-row { display: flex; gap: 8px; align-items: stretch; }
.setup-cal-step .cal-link input[type=url] { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--page, #fbf8f2); border: 1px solid var(--line-2, var(--line)); border-radius: 12px; box-shadow: none; outline: none; }
.setup-cal-step .cal-link input[type=url]::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.setup-cal-step .cal-link input[type=url]:focus { border-color: #b5562f; box-shadow: 0 0 0 3px color-mix(in srgb, #b5562f 16%, transparent); }
.setup-cal-step .cal-link .cal-row .btn { height: 46px; padding: 0 20px; border-radius: 12px; background: #b5562f; border-color: #b5562f; color: #fff; }
.setup-cal-step .cal-link .cal-row .btn:hover { background: #9d4826; border-color: #9d4826; }
.setup-cal-step .cal-link > summary { padding: 0 18px; }
.setup-cal-step .cal-link[open] > summary { min-height: 50px; }
@media (max-width: 560px) { .setup-cal-step .cal-link .cal-row { flex-direction: column; } .setup-cal-step .cal-link .cal-row .btn { width: 100%; } }

/* Setup progress: "Step 2 of 5 · What you'll use it for" over one slim line. Replaces the five dashes. */
.setup .setup-prog { display: grid; justify-items: center; gap: 8px; margin: 0 auto 22px; width: min(260px, 100%); }
.setup.setup-me .setup-prog { justify-items: start; margin-left: 0; }
.setup .setup-prog i { all: unset; }
.setup-prog-t { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #7a6c5b); white-space: nowrap; }
.setup-prog-bar { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line-2, #e7dccd); overflow: hidden; }
.setup-prog-bar i { position: absolute !important; inset: 0 auto 0 0 !important; display: block !important; height: 3px !important; border-radius: 3px; background: #b5562f !important; transition: width .35s ease; }

/* Setup, Your folders: fits one screen on a laptop. Tighter rows, smaller chips, less air between blocks. */
@media (min-width: 861px) {
  body.on-setup .page:has(.setup-review) { padding-top: max(16px, 4vh) !important; }
  .setup.setup-review > h1 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 6px; }
  .setup.setup-review > .setup-sub { font-size: 15px; margin: 0 auto 18px; max-width: 60ch; }
  .setup-review .setup-choose { gap: 28px; align-items: start; }
  .setup-review .setup-label { font-size: 12.5px; margin-bottom: 8px; }
  .setup-review .setup-card { padding: 6px 10px; border-radius: 16px; }
  .setup-review .st-row { min-height: 46px; padding: 8px 10px; font-size: 16px; gap: 12px; }
  .setup-review .st-row b { font-size: 16px; font-weight: 600; }
  .setup-review .st-row em { font-size: 14px; }
  .setup-review .st-dot { width: 10px; height: 10px; border-radius: 3px; }
  .setup-review .st-add { min-height: 40px; padding: 6px 10px; font-size: 14.5px; }
  .setup-review .setup-words { padding: 14px 16px; border-radius: 16px; gap: 6px; }
  .setup-review .setup-words + .setup-label { margin-top: 16px; }
  .setup-review .setup-hint { font-size: 13.5px; line-height: 1.45; margin: 0 0 8px; }
  .setup-review .sw { min-height: 30px; padding: 4px 10px; font-size: 13.5px; border-radius: 999px; }
  .setup-review .sw button { width: 20px; height: 20px; font-size: 14px; }
  .setup-review .setup-go { margin-top: 18px !important; }
}
/* Setup folders: custom catch-up, "Every [3] [weeks]" */
.setup-review .st-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.setup-review .st-custom[hidden] { display: none; }
.setup-review .st-custom input { width: 64px; height: 36px; padding: 0 10px; border: 1px solid var(--line-2, var(--line)); border-radius: 10px; font: inherit; color: var(--ink); background: var(--raised, #fff); }
.setup-review .st-custom select { height: 36px; padding: 0 8px; border: 1px solid var(--line-2, var(--line)); border-radius: 10px; font: inherit; color: var(--ink); background: var(--raised, #fff); }
.setup-review .st-custom :is(input, select):focus { outline: none; border-color: #b5562f; }
.setup-review .st-sel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.setup-review .st-sel > label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.setup-review .st-custom { margin-top: 0; height: 40px; }
.setup-review .st-edit .st-name:focus, .setup-review .st-sel select:focus { outline: none; border-color: #b5562f; box-shadow: 0 0 0 3px color-mix(in srgb, #b5562f 14%, transparent); }
.setup-review .st-edit .st-sel { display: flex !important; flex-direction: row !important; flex-wrap: wrap; grid-template-columns: none; }
.setup-review .st-open { align-items: flex-start; }
.setup-review .st-open > .st-dot, .setup-review .st-open .st-dot { margin-top: 16px; }

/* ---------- Onboarding fixes (fresh-user test, Nov) ---------- */
/* Step 1's progress line is centred like every other step. */
.setup.setup-me .setup-prog { justify-items: center; margin-left: auto; margin-right: auto; }
/* Step 2: a picked chip doesn't grow; what it covers shows under the grid, in space kept for it. */
.setup.setup-use .setup-chip > span, .setup.setup-use .setup-chip.on > span { display: none !important; }
.setup-pick-hint { min-height: 20px; margin: 10px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); text-align: center; }
/* Step 3: the "Where to find it" card is as tall as its steps; the step's links all look the same. */
.setup-list-step .setup-choose { align-items: start; }
.setup-list-step .setup-say { align-self: start; }
.setup-list-step .setup-how-card { flex: none; justify-content: flex-start; padding: 6px 22px; }
.setup .setup-go .link { text-decoration: none; color: var(--muted); }
.setup .setup-go .link:hover, .setup .setup-go .link:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
/* Calendar step: the link's own error under the field, and where each calendar keeps its link. */
.cal-form .cal-url-err { margin: 8px 0 0; font-size: 14px; color: #b5562f; }
.cal-form input[aria-invalid="true"] { border-color: #b5562f; }
.cal-help { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: left; }
.cal-help li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.cal-help b { font-weight: 600; color: var(--ink); }
/* Your folders: centred like the other steps; the less-used parts fold under More options. */
.setup.setup-review .setup-choose { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; max-width: 560px; margin-left: auto; margin-right: auto; gap: 14px !important; }
.setup-review .setup-extra { display: block; }
.setup-review .setup-extra > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--muted); padding: 4px 0; }
.setup-review .setup-extra > summary::-webkit-details-marker { display: none; }
.setup-review .setup-extra > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.setup-review .setup-extra[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.setup-review .setup-extra > summary:hover { color: var(--ink); }
.setup-review .setup-extra[open] > summary { margin-bottom: 10px; }
.setup-review .setup-extra .setup-words + .setup-label { margin-top: 16px; }
/* Home: their top people above Get started. */
.hstart { margin: 0 0 20px; }
.hstart .hcall-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
/* Sign in after setup: one heading, a visible Skip, and no chat button over the words. */
.signin-page .imp-signin > strong { display: none; }
.signin-page .signin-skip { justify-self: start; }
body[data-view="signin"] #assist { display: none; }

@media (max-width: 640px) {
  /* Setup on a phone: tighter, so a step fits without scrolling when it can (no room kept for a hidden menu bar). */
  body.setup-first { padding-bottom: 0 !important; }
  body.on-setup #view { padding-bottom: 0; }
  body.on-setup .page { padding-top: 12px !important; padding-bottom: 12px !important; min-height: 0 !important; }
  .setup .setup-prog { margin-bottom: 14px; }
  .setup:not(.setup-me) > h1, .setup.setup-me h1 { font-size: 28px; margin-bottom: 6px; }
  .setup:not(.setup-me) > .setup-sub, .setup-me .setup-sub { font-size: 15px; margin-bottom: 18px; }
  .setup-me .me-form { gap: 10px; }
  .setup .setup-go { margin-top: 16px !important; gap: 12px; }
  .setup-privacy-step .setup-priv { padding: 14px 16px; }
  .setup-privacy-step .setup-priv ul { margin-top: 6px; gap: 2px; }
  .setup-privacy-step .setup-priv li { font-size: 14px; }
  .setup-privacy-step .setup-priv-grid { gap: 10px; }
  .setup-privacy-step .setup-ic-box { display: none; }
  .setup-list-step .setup-say { display: none; } /* "Where to find it" is for a computer */
  /* The main button stays in view: a bar along the bottom. */
  .setup-privacy-step .setup-go, .setup-review .setup-go { position: sticky; bottom: 0; z-index: 6; margin-left: -16px !important; margin-right: -16px !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--page, #faf8f5); border-top: 1px solid var(--line); }
  .setup-privacy-step .setup-go .btn-big, .setup-review .setup-go .btn-big { flex: 1 1 auto; justify-content: center; }
  /* Today rows: name and reason on their own lines, a small Done. */
  li.gi:has(> .gi-done) { align-items: center !important; }
  li.gi > button.gi-done, .hcall-list > li.gi > button.gi-done { align-self: center; justify-self: end; width: 40px !important; height: 40px !important; min-height: 40px !important; margin: 0 6px 0 0 !important; padding: 0 !important; justify-content: center; border-radius: 50% !important; }
  li.gi > button.gi-done span { display: none !important; }
  li.gi > button.gi-done svg { width: 15px !important; height: 15px !important; }
  li.gi > button[data-review] { grid-template-columns: 32px minmax(0, 1fr) !important; row-gap: 2px !important; }
  li.gi > button[data-review] > .gi-when { grid-column: 2 !important; justify-self: start; text-align: left; font-size: 12px; line-height: 1.2; }
  li.gi > button[data-review] > .gi-when:empty, li.gi > button[data-review] > .gi-when.is-today { display: none; } /* "today" goes without saying under This week */
  li.gi:has(> .gi-done) > button[data-review], .hcall-list > li.gi:has(> .gi-done) > button[data-review] { padding-right: 4px !important; }
  .gi-txt { grid-template-columns: minmax(0, 1fr); }
  .gi .gi-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gi .gi-why { min-width: 0; }
}
@media (max-width: 860px) {
  /* The draft's Send stays above the bottom menu. */
  :root body[data-view="review"] .rv-compose .send-row, :root[data-skin="ecommerce"] body[data-view="review"] .rv-compose .send-row { position: sticky !important; bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; z-index: 6; margin-inline: -12px !important; padding: 10px 12px !important; background: var(--raised, var(--page, #faf8f5)) !important; border-top: 1px solid var(--line) !important; }
  body[data-view="review"] .rv-compose .send-row :is(button, summary) { white-space: nowrap; }
}
/* Coming up: the day/time block, cleaner. A thin outlined chip, day small caps in terracotta, time with a small am/pm. */
.cal-item.cal-up { grid-template-columns: 64px minmax(0, 1fr) auto; }
.cal-when { padding: 6px 4px; gap: 2px; border-radius: 12px; background: transparent; border: 1px solid color-mix(in srgb, var(--accent, #b5562f) 30%, transparent); }
.cal-when b { font-size: 10.5px; letter-spacing: .08em; }
.cal-when span { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.cal-when span small { font-size: 10px; font-weight: 500; margin-left: 1px; color: var(--muted, #7a6c5b); }
:root[data-theme="dark"] .cal-when { border-color: color-mix(in srgb, var(--accent, #c9714a) 40%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-when { border-color: color-mix(in srgb, var(--accent, #c9714a) 40%, transparent); } }
/* Coming up, v3: a calendar tile. Terracotta band with the day, the date big underneath; the row gets a soft card. */
.cal-item.cal-up { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 14px; background: color-mix(in srgb, var(--accent, #b5562f) 5%, transparent); }
.cal-item.cal-up + .cal-item.cal-up { margin-top: 6px; }
.cal-when { display: grid; grid-template-rows: auto 1fr; justify-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--accent, #b5562f) 35%, transparent); background: var(--raised, #fff); text-align: center; }
.cal-when b { display: block; padding: 3px 0 2px; background: var(--accent, #b5562f); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cal-when span { display: block; padding: 3px 0 4px; font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink, #2b2219); }
.cal-time { color: var(--accent, #b5562f); font-weight: 600; }
:root[data-theme="dark"] .cal-when { background: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-when { background: transparent; } }
/* Booking: With people / Just for me. */
.bk-kind { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 10px; border-radius: 999px; background: var(--side, #f1e6d8); }
.bk-kind button { border: 0; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted, #7a6c5b); padding: 6px 14px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.bk-kind button[aria-checked="true"] { background: var(--raised, #fff); color: var(--ink, #2b2219); box-shadow: 0 0 0 1px var(--line, rgba(43,34,25,.12)); }
.bk-with[hidden], .bk-sw[hidden] { display: none !important; }
.bk-f.bk-need { border-color: #b5562f; }
/* Week view: appointments with nobody else in them (a haircut, the gym) in a quiet neutral, so they don't read as client meetings. */
.cv-ev.cv-personal { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink, #2b2219) 4%, transparent) 0 6px, transparent 6px 12px), var(--raised, #fff) !important; border-left-color: color-mix(in srgb, var(--ink, #2b2219) 25%, transparent) !important; color: var(--muted, #7a6c5b); }
.cv-ev.cv-personal .cv-ti { color: var(--ink-2, #4d4134); font-weight: 500; }
/* Setup, Choose your plan (Step 1 of 7 for people on the plans): Free and Network side by side, stacked on phones. */
.setup-plan-step.is-wait { min-height: 60vh; }
.setup-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 720px; margin: 0 auto; }
.setup-plan-grid.one { grid-template-columns: minmax(0, 360px); justify-content: center; }
.setup-plan { display: flex; flex-direction: column; gap: 0; min-width: 0; padding: 24px 24px 22px; border: 1px solid var(--line-2, #e7dccd); border-radius: 14px; background: var(--raised, #fff); text-align: left; }
.setup-plan.is-rec { border-color: #b5562f; }
.setup-plan h2 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.setup-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-plan-rec { font-style: normal; font-size: 12px; font-weight: 600; color: #b5562f; background: color-mix(in srgb, #b5562f 10%, transparent); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.setup-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 16px; }
.setup-plan-price b { font-size: 36px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.setup-plan-price span { font-size: 15px; color: var(--muted); }
.setup-plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.setup-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; color: var(--ink-2, var(--ink)); }
.setup-plan li svg { flex: none; margin-top: 2px; color: #b5562f; }
.setup-plan .btn { margin-top: auto; width: 100%; justify-content: center; font-size: 16px; padding: 13px 20px; box-shadow: none !important; }
.setup-plan-calls { max-width: 720px; margin: 18px auto 0; font-size: 14px; color: var(--muted); }
.setup-plan-calls > summary { cursor: pointer; width: fit-content; margin: 0 auto; font-weight: 500; }
.setup-plan-calls > summary:hover { color: var(--ink); }
.setup-plan-calls ul { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 6px; }
.setup-plan-calls li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.setup-plan-calls li b { font-weight: 600; color: var(--ink); }
.setup-plan-calls p { margin: 6px 0 0; }
.setup-plan-signin { max-width: 520px; margin: 22px auto 0; text-align: left; }
.setup-plan-signin[hidden] { display: none; }
.setup-plan-note { max-width: 720px; margin: -12px auto 18px; text-align: center; font-size: 15px; color: #b5562f; }
.setup-plan-foot { margin: 16px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) {
  .setup-plan-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .setup-plan { padding: 18px 18px 16px; }
  .setup-plan.is-rec { order: -1; }
  .setup-plan-price { margin: 10px 0 12px; }
  .setup-plan-price b { font-size: 30px; }
  .setup-plan ul { margin-bottom: 16px; gap: 6px; }
  .setup-plan-calls li { grid-template-columns: 90px minmax(0, 1fr); }
}

/* Choose your plan: four plans. A row on wide screens, 2x2 when narrower, stacked on phones (Network first). */
.setup-plan-grid:not(.one) { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1080px; gap: 14px; }
@media (max-width: 1100px) { .setup-plan-grid:not(.one) { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
@media (max-width: 640px) { .setup-plan-grid:not(.one) { grid-template-columns: minmax(0, 1fr); } }
.setup-plan-grid:not(.one) .setup-plan { padding: 22px 20px 20px; }
.setup-plan-grid:not(.one) .setup-plan-price { white-space: nowrap; }
.setup-plan-grid:not(.one) .setup-plan-price b { font-size: clamp(30px, 3vw, 40px); }
.setup-plan-grid:not(.one) .setup-plan .btn { white-space: nowrap; padding-left: 12px; padding-right: 12px; }
.setup-plan-grid:not(.one) .setup-plan-top { flex-wrap: wrap; gap: 6px 10px; }
@media (min-width: 1101px) { .setup-plan-grid:not(.one) .setup-plan-top { flex-direction: column-reverse; align-items: flex-start; } .setup-plan-grid:not(.one) .setup-plan-top .setup-plan-rec { margin: -8px 0 0; } }
.setup-plan-grid:not(.one) .setup-plan { position: relative; }
.setup-plan-grid:not(.one) .setup-plan-price { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.setup-plan-grid:not(.one) .setup-plan-price b { font-size: 36px; line-height: 1.05; }
.setup-plan-grid:not(.one) .setup-plan-price span { margin: 2px 0 0; }
@media (min-width: 1101px) {
  .setup-plan-grid:not(.one) .setup-plan-top { flex-direction: row; }
  .setup-plan-grid:not(.one) .setup-plan-top .setup-plan-rec { position: absolute; top: -12px; left: 20px; margin: 0; background: #f6e6dc; }
}
/* Phones: all four plans on one screen. Each plan is a compact row: name, price and what's in it on the left, its button on the right. */
@media (max-width: 640px) {
  .setup-plan-step h1 { font-size: 26px; margin-top: 4px; margin-bottom: 4px; }
  .setup-plan-step .setup-sub { font-size: 14px; margin-bottom: 12px; }
  .setup-plan-grid:not(.one) { gap: 8px; }
  .setup-plan-grid:not(.one) .setup-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; }
  .setup-plan-grid:not(.one) .setup-plan > * { grid-column: 1; }
  .setup-plan-grid:not(.one) .setup-plan h2 { font-size: 17px; }
  .setup-plan-grid:not(.one) .setup-plan-top { justify-content: flex-start; gap: 8px; }
  .setup-plan-grid:not(.one) .setup-plan-top .setup-plan-rec { position: static; font-size: 11px; padding: 1px 8px; background: #f6e6dc; }
  .setup-plan-grid:not(.one) .setup-plan-price { flex-direction: row; align-items: baseline; gap: 4px; margin: 0; }
  .setup-plan-grid:not(.one) .setup-plan-price b { font-size: 20px; }
  .setup-plan-grid:not(.one) .setup-plan-price span { font-size: 13px; margin: 0; }
  .setup-plan-grid:not(.one) .setup-plan ul { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 0; }
  .setup-plan-grid:not(.one) .setup-plan li { font-size: 12.5px; gap: 4px; line-height: 1.35; color: var(--muted); }
  .setup-plan-grid:not(.one) .setup-plan li svg { width: 12px; height: 12px; margin-top: 2px; }
  .setup-plan-grid:not(.one) .setup-plan .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; margin: 0; min-height: 40px; padding: 0 14px; font-size: 14px; }
  .setup-plan-step .setup-plan-foot { margin-top: 10px; font-size: 12px; }
}

/* Choose your plan: Teams, its own offer under the four plans. Same card style, laid out as one wide row:
   name and price | what's in it (two columns) | button. On phones it's a compact row like the others. */
.setup-plan-grid.setup-plan-grid-team { grid-template-columns: minmax(0, 1fr); margin-top: 14px; }
.setup-plan-grid-team .setup-plan-team { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 28px; align-items: center; }
.setup-plan-grid-team .setup-plan-team h2 { grid-column: 1; grid-row: 1; }
.setup-plan-grid-team .setup-plan-team .setup-plan-price { grid-column: 1; grid-row: 2; margin: 6px 0 0; }
.setup-plan-grid-team .setup-plan-team ul { grid-column: 2; grid-row: 1 / span 2; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.setup-plan-grid-team .setup-plan-team .btn { grid-column: 3; grid-row: 1 / span 2; width: auto; margin: 0; padding-left: 28px; padding-right: 28px; }
@media (max-width: 1100px) {
  .setup-plan-grid-team .setup-plan-team { grid-template-columns: 150px minmax(0, 1fr) auto; column-gap: 18px; }
  .setup-plan-grid-team .setup-plan-team ul { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 640px) {
  .setup-plan-grid.setup-plan-grid-team { margin-top: 8px; }
  .setup-plan-grid-team .setup-plan-team { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; column-gap: 12px; row-gap: 2px; }
  .setup-plan-grid-team .setup-plan-team h2, .setup-plan-grid-team .setup-plan-team .setup-plan-price, .setup-plan-grid-team .setup-plan-team ul { grid-column: 1; grid-row: auto; }
  .setup-plan-grid-team .setup-plan-team .setup-plan-price { margin: 0; }
  .setup-plan-grid-team .setup-plan-team ul { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 2px 0 0; }
  .setup-plan-grid-team .setup-plan-team ul li:nth-child(n+3) { display: none; }
  .setup-plan-grid-team .setup-plan-team .btn { grid-column: 2; grid-row: 1 / span 3; }
}

/* Teams payment popup: brand terracotta, not the green accent. */
.pteam .pmin-kicker { color: #b5562f; }
.pteam .pcheck li.y svg { color: #b5562f; }

/* Choose your plan: the Teams tile stands apart from the personal plans. Dark ink tile, warm text, terracotta button. */
.setup-plan-grid-team .setup-plan-team { background: #2b2219; border-color: #2b2219; color: #f3ebdd; position: relative; }
.setup-plan-grid-team .setup-plan-team h2 { color: #fdfbf7; }
.setup-plan-grid-team .setup-plan-team .setup-plan-price b { color: #fdfbf7; }
.setup-plan-grid-team .setup-plan-team .setup-plan-price span { color: #cbbba3; }
.setup-plan-grid-team .setup-plan-team li { color: #eadfcd; }
.setup-plan-grid-team .setup-plan-team li svg { color: #e08a5f; }
.setup-plan-grid-team .setup-plan-team .btn { background: #b5562f; border-color: #b5562f; color: #fff; }
.setup-plan-grid-team .setup-plan-team .btn:hover { background: #9c4724; border-color: #9c4724; }
.setup-plan-grid-team .setup-plan-team .btn:focus-visible { outline: 2px solid #f3ebdd; outline-offset: 2px; }
.setup-plan-team-tag { position: absolute; top: -12px; left: 20px; font-style: normal; font-size: 12px; font-weight: 600; color: #fdfbf7; background: #b5562f; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 640px) {
  .setup-plan-grid-team .setup-plan-team li { color: #cbbba3; }
  .setup-plan-team-tag { position: static; grid-column: 1; justify-self: start; margin-bottom: 4px; font-size: 11px; padding: 1px 8px; }
}

/* Choose your plan, more premium: warm shadows in our colours, a gentle lift on hover, Network lifted most. */
.setup-plan-grid .setup-plan { box-shadow: 0 1px 2px rgba(43, 34, 25, .05), 0 10px 28px -14px rgba(181, 86, 47, .28); transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  .setup-plan-grid .setup-plan:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 34, 25, .06), 0 18px 40px -16px rgba(181, 86, 47, .38); }
}
.setup-plan-grid .setup-plan.is-rec { border-width: 1.5px; background: linear-gradient(180deg, #fffaf4 0%, #fff 60%); box-shadow: 0 2px 4px rgba(181, 86, 47, .08), 0 22px 48px -18px rgba(181, 86, 47, .45); }
.setup-plan-grid .setup-plan.is-rec .btn { background: #b5562f; border-color: #b5562f; color: #fff; }
.setup-plan-grid .setup-plan.is-rec .btn:hover { background: #9c4724; border-color: #9c4724; }
.setup-plan-grid .setup-plan.is-rec .setup-plan-rec { background: #b5562f; color: #fff; }
.setup-plan-grid .setup-plan .btn-quiet { background: #fdfbf7; border-color: #e3d2bd; }
.setup-plan-grid .setup-plan .btn-quiet:hover { border-color: #b5562f; color: #8a3f20; }
.setup-plan-grid-team .setup-plan-team { box-shadow: 0 2px 4px rgba(43, 34, 25, .12), 0 22px 48px -18px rgba(43, 34, 25, .55); }
@media (hover: hover) { .setup-plan-grid-team .setup-plan-team:hover { box-shadow: 0 2px 6px rgba(43, 34, 25, .14), 0 26px 56px -18px rgba(43, 34, 25, .6); } }
@media (prefers-reduced-motion: reduce) { .setup-plan-grid .setup-plan { transition: none; } .setup-plan-grid .setup-plan:hover { transform: none; } }
.setup-plan-grid.setup-plan-grid-team .setup-plan-team .btn,
.setup-plan-grid.setup-plan-grid-team .setup-plan-team .btn-quiet { background: #b5562f; border-color: #b5562f; color: #fff; }
.setup-plan-grid.setup-plan-grid-team .setup-plan-team .btn:hover { background: #c8653a; border-color: #c8653a; color: #fff; }
@media (max-width: 640px) { .setup-plan-grid.setup-plan-grid-team .setup-plan-team li { color: #e2d6c3; } }

/* Meeting panel: Delete event, a quiet text button at the foot. */
.cv-panel .cv-del { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line, #eadfce); }
.cv-panel .cv-del-b { color: #a5432a; font-size: 14px; }
.cv-panel .cv-del-b:hover { color: #8a3420; text-decoration: underline; }
/* Calendar week: the teammate taking a meeting (team books only), in their colour. */
.cv-ev .cv-av.cv-taker { background: var(--pc, #b5562f); border-color: transparent; color: #fff; font-weight: 600; }

/* ---------- Frosted glass (staging only: mode.js sets data-glass off the live names) ----------
   The Mia walkthrough's look: a hazed, blurred mountain photo in warm beige with a fine grain, and frosted glass panes
   over it (warm white .58, blur 32 px, saturate 1.15, a 1 px white edge). No glow, no drop shadows. Light theme only. */
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) {
  --raised: rgb(255 253 249 / .8); --side: rgb(255 252 247 / .66); --line: rgb(43 34 25 / .1); --line-2: rgb(43 34 25 / .14);
  --muted: #5e5141; --faint: #85765f;
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) body { background: #ebe1d3; }
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(rgb(246 239 229 / .12) 0%, rgb(246 239 229 / .5) 50%, rgb(246 239 229 / .66) 100%), url("img/haze.jpg") center 30% / cover no-repeat;
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) .side {
  background: rgb(255 252 247 / .58); -webkit-backdrop-filter: blur(32px) saturate(1.15); backdrop-filter: blur(32px) saturate(1.15);
  border-right: 1px solid rgb(255 255 255 / .7);
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) :is(.bulk, .dock-form, .cv-panel, .tabbar, #tabbar) {
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) :is(.hcall, .hstat) { background: rgb(255 253 249 / .8); border-color: rgb(255 255 255 / .75); }
/* Dark: the same hazed ground under a deep warm veil, dark glass panes. */
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] { --raised: rgb(38 32 25 / .82); --side: rgb(27 23 18 / .66); --muted: #b8a993; --faint: #9a8b74; --line: rgb(255 240 220 / .08); --line-2: rgb(255 240 220 / .12); }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] body { background: #1b1712; }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(rgb(22 18 14 / .62), rgb(22 18 14 / .7)), url("img/haze.jpg") center 30% / cover no-repeat; }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] .side, :root[data-skin="ecommerce"][data-glass][data-theme="dark"] :is(.bulk, .dock-form, .cv-panel, .tabbar, #tabbar) { -webkit-backdrop-filter: blur(32px) saturate(1.1); backdrop-filter: blur(32px) saturate(1.1); }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] .side { background: rgb(27 23 18 / .55); border-right: 1px solid rgb(255 240 220 / .08); }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] :is(.hcall, .hstat, .cal-today, .cal-met, .plan-now, .set-about) { background: rgb(38 32 25 / .82); }
@media (prefers-color-scheme: dark) {
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) { --raised: rgb(36 31 24 / .62); --side: rgb(27 23 18 / .55); --line: rgb(255 240 220 / .08); --line-2: rgb(255 240 220 / .12); }
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) body { background: #1b1712; }
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) body::before { background: linear-gradient(rgb(22 18 14 / .62), rgb(22 18 14 / .7)), url("img/haze.jpg") center 30% / cover no-repeat; }
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) body::after { mix-blend-mode: overlay; }
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) .side { background: rgb(27 23 18 / .55); border-right: 1px solid rgb(255 240 220 / .08); }
  :root[data-skin="ecommerce"][data-glass]:not([data-theme]) :is(.hcall, .hstat) { background: rgb(36 31 24 / .62); }
}
/* Panels with no fill of their own: a glass fill so text stays readable over the photo. */
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) :is(.cal-today, .cal-met, .plan-now, .set-about) { background: rgb(255 253 249 / .8); border-color: rgb(255 255 255 / .75); }
/* The "New in Backbook" popup is drawn in light colours, so it keeps the light palette in dark mode too
   (its text and lines followed the dark theme and vanished on the light panels). */
:root[data-theme="dark"] dialog.news-dlg {
  color-scheme: light;
  --page: #fbf8f2; --side: #f8f4ec; --raised: #ffffff; --overlay: #ffffff; --bg: #fbf8f2;
  --line: #e8e0d1; --line-2: #ddd2bf;
  --ink: #2b2219; --ink-2: #4d4134; --muted: #7a6c5b; --faint: #a39582;
  --accent: #b5562f; --mark: #f1d3bf; --wash: #f6e6da; --ok: #5e6b2f; --cta: #5e6b2f; --cta-hover: #4b5625;
  background: #fbf8f2; color: #2b2219;
}
/* Light glass, lifted: whiter frosted panes with a bright top edge and a soft warm shadow, over a slightly richer ground,
   so the panels stand off the photo the way the dark ones do. */
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) { --raised: rgb(249 243 234 / .74); }
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) body::before {
  background: linear-gradient(rgb(240 230 216 / .05) 0%, rgb(240 230 216 / .34) 55%, rgb(240 230 216 / .5) 100%), url("img/haze.jpg") center 30% / cover no-repeat;
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) :is(.gs-tile, .hcall, .hstat, .cal-today, .cal-met, .plan-now, .set-about, .pcard, .bulk, .cv-panel, .one-today) {
  background: rgb(249 243 234 / .74);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .55);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .7), 0 1px 2px rgb(92 56 30 / .08), 0 18px 40px -16px rgb(120 72 40 / .32);
}
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) .side { background: rgb(255 253 249 / .7); box-shadow: inset -1px 0 0 rgb(255 255 255 / .8); }
/* Contrast fixes (WCAG AA): section counts, the selected Settings tab, the calls badge and Delete contact in dark. */
:root[data-skin="ecommerce"] .sec-h span { color: var(--d-blue-ink, #4d6d31); }
:root[data-skin="ecommerce"][data-theme="dark"] .sec-h span { color: #a7b46a; }
:root[data-skin="ecommerce"][data-theme="dark"] .ftabs:has(+ .settings) a[aria-current="page"] { color: #1b1712; }
:root[data-theme="dark"] .pbadge.rec-calls { color: var(--plum, #d39bbd); border-color: color-mix(in oklab, #d39bbd 40%, transparent); }
:root[data-theme="dark"] .edit-line .edit-more .del-link { color: #f08a7a; }
/* Plan popups: the heading never runs under the close button. */
.plandlg #plandlg-t { padding-right: 44px; }
/* Teams stands out wherever the plans are listed (Your plan, plan popups): the dark tile from setup, terracotta button. */
.payg.team-plan { position: relative; background: #2b2219; border-color: #2b2219; color: #eadfcd; box-shadow: 0 1px 2px rgba(43, 34, 25, .08), 0 14px 32px -16px rgba(181, 86, 47, .45); }
.payg.team-plan h3, .payg.team-plan .team-plan-price b { color: #fdfbf7; }
.payg.team-plan p, .payg.team-plan .team-plan-price { color: #eadfcd; }
.payg.team-plan .hint { color: #cbbba3; }
.payg.team-plan .pbadge { background: #b5562f; border-color: #b5562f; color: #fff; }
.payg.team-plan .payg-act .btn, .payg.team-plan .payg-act .btn.btn-quiet { background: #b5562f; border-color: #b5562f; color: #fff; }
.payg.team-plan .payg-act .btn:hover { background: #9c4724; border-color: #9c4724; }
.payg.team-plan .payg-act .btn:focus-visible { outline: 2px solid #f3ebdd; outline-offset: 2px; }
.payg.team-plan .plan-seats label, .payg.team-plan .plan-seats { color: #eadfcd; }

/* Folders bar, minimised to one chip. */
.folderbar-min .fchip { cursor: pointer; font: inherit; }
.folderbar-min .fchip-chev { margin-left: 2px; opacity: .7; }
:root[data-skin] .folderbar-min .fchip { min-height: 36px; box-sizing: border-box; padding: 0 12px; gap: 6px; font-size: 13.5px; border-radius: 999px !important; }
@media (max-width: 860px) { :root[data-skin] .folderbar-min .fchip { min-height: 44px; } }

/* Book a meeting: Repeats. */
.bk-rep .bk-sel select { appearance: auto; min-width: 11em; }
.bk-when .bk-rep { grid-column: 1 / -1; }
.bk-rep .bk-sel select { padding-left: 12px; }
@media (max-width: 640px) { .bk-when > .bk-fld:nth-child(3) { grid-column: 1 / -1; } }
/* Glass look: popups, menus and floating panels stay solid (the page must never show through them). */
:root[data-skin="ecommerce"][data-glass]:not([data-theme="dark"]) :is(dialog, .bk-pop, .pm-card-pop, .cal-soonbar, #assist, #toast) { --raised: #ffffff; --side: #f8f4ec; --line: #e8e0d1; --line-2: #ddd2bf; }
:root[data-skin="ecommerce"][data-glass][data-theme="dark"] :is(dialog, .bk-pop, .pm-card-pop, .cal-soonbar, #assist, #toast) { --raised: #241f18; --side: #15120e; --line: #322a20; --line-2: #3d3428; }
/* Person card, calmer. The urgent reason: terracotta text with a dot, not a highlighter block. */
:root[data-skin="ecommerce"] .sheet .reasons mark { background: none; color: var(--accent); font-weight: 500; padding: 0; }
/* Team row: one quiet line. The names are tappable text with a small arrow, not boxes. */
:root[data-skin] .sheet .team-card-line { gap: 2px 14px; margin: 2px 0 8px; font-size: 13.5px; }
:root[data-skin] .sheet .team-assign label { gap: 2px; }
:root[data-skin] .sheet .team-assign select {
  -webkit-appearance: none; appearance: none; height: auto; min-height: 32px; max-width: 200px; padding: 2px 22px 2px 6px; margin: 0;
  border: 1px solid transparent; border-radius: 8px; background-color: transparent; color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a39582' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 14px;
}
:root[data-skin] .sheet .team-assign select:hover { border-color: var(--line-2); }
@media (max-width: 860px) { :root[data-skin] .sheet .team-assign select { min-height: 40px; } }
/* Team row as two tidy columns (label, then the name), like the details below it. */
:root[data-skin] .sheet .team-card-line { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; }
:root[data-skin] .sheet .team-card-line > .team-by { grid-column: 1 / -1; margin-bottom: 4px; }
:root[data-skin] .sheet .team-assign, :root[data-skin] .sheet .team-assign label { display: contents; }
:root[data-skin] .sheet .team-assign select { justify-self: start; margin-left: -6px; }
/* Person card: one label column for every row (team, Mobile, Email, LinkedIn), so the values all start on one line. */
:root[data-skin="ecommerce"] .sheet { --fact-l: 120px; }
@media (min-width: 861px) {
  :root[data-skin="ecommerce"] .sheet .facts > div.fact-call { grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; }
  :root[data-skin="ecommerce"] .sheet .li-none > span { min-width: calc(var(--fact-l) - 6px); margin-right: 0; }
}
:root[data-skin] .sheet .team-card-line { grid-template-columns: var(--fact-l, 120px) minmax(0, 1fr); column-gap: 0; }

/* Team rows in the person card: the same rows as the details below (label column, hairlines), selects as quiet text. */
:root[data-skin] .sheet .team-card-line.team-rows { display: block; margin: 4px 0 12px; }
:root[data-skin] .sheet .team-facts { margin: 0; }
:root[data-skin] .sheet .team-facts label { color: inherit; font: inherit; }
:root[data-skin] .sheet .team-facts select {
  -webkit-appearance: none; appearance: none; height: auto; min-height: 0; max-width: 100%; padding: 0 22px 0 0; margin: 0;
  border: 0; border-radius: 0; background-color: transparent; color: var(--ink); font: inherit; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23a39582' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 14px;
}
:root[data-skin] .sheet .team-facts select:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
:root[data-skin] .sheet .team-notes { margin: 8px 0 0; }
/* Same column as Email and Mobile: 120px label, 16px gap. */
@media (min-width: 861px) {
  :root[data-skin] .sheet .team-facts > div { grid-template-columns: var(--fact-l, 120px) minmax(0, 1fr); column-gap: 16px; }
  :root[data-skin="ecommerce"] .sheet .li-none > span:first-child { flex: 0 0 130px; width: 130px; min-width: 0; margin-right: 0; }
}
/* Added today: every card the same size. Name and folder on one line each, the note clamped to two lines (its space
   kept when there's no note), every row of cards the same height. */
.added-today ul { grid-auto-rows: 1fr; }
.added-today li { display: flex; min-width: 0; }
.added-today li button { height: 100%; min-width: 0; grid-template-rows: auto auto 1fr; align-content: start; }
.added-today .at-name, .added-today .at-meta { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.added-today .at-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; min-height: 2.9em; }
/* Check my inbox: what their email is asking for, above the quote. */
.inbox-today .ibx-ask { margin: 6px 0 0; font-size: 14px; color: var(--ink); }
.inbox-today .ibx-ask span { margin-right: 8px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, var(--accent)); }
/* From your calendar: a minus folds it to its heading, a plus opens it. */
.cal-today .cal-h-r { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.cal-today .cal-min { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--ink-2, var(--ink)); font: 500 16px/1 inherit; cursor: pointer; }
.cal-today .cal-min:hover { border-color: var(--line-2, var(--line)); color: var(--ink); }
.cal-today.cal-today-min .cal-h { margin-bottom: 0; align-items: center; }
/* Check my inbox paused (Google's hour is up): one line with Resume. */
.inbox-paused .ibx-paused { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; color: var(--ink); }

/* Calendar page sits a little lower on desktop, so it reads centred in the window rather than pinned to the top. */
@media (min-width: 900px) and (min-height: 700px) { .cv { margin-top: clamp(16px, 5vh, 56px); } }

/* "You'll sign in first…" under the plan cards: its own breathing room, not stuck to the card above. */
:root .plan-signin { margin: 18px 0 4px; text-align: center; }
.plan-page .plan-signin { text-align: left; }
/* Your plan, signed out: one clear bar saying to sign in first, above the plans. */
.plan-signin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, var(--page)); }
.plan-signin-bar > div { display: grid; gap: 2px; }
.plan-signin-bar span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 640px) { .plan-signin-bar { flex-direction: column; align-items: stretch; } }

/* Sign in, then pay: the two steps, numbered, the first one on. */
.signin-steps { list-style: none; counter-reset: st; display: grid; gap: 10px; margin: 0 0 22px; padding: 0; }
.signin-steps li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; color: var(--muted); }
.signin-steps li::before { content: counter(st); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); align-self: start; }
.signin-steps li.on { color: var(--ink); }
.signin-steps li.on::before { background: var(--ink); color: var(--page); border-color: var(--ink); }
.signin-steps span { font-size: 14px; color: var(--ink-2); }

/* Paid while signed out: the code box. */
.paid-code { display: flex; gap: 10px; margin: 16px 0 6px; }
.paid-code input { flex: 1; min-width: 0; font-size: 18px; letter-spacing: .2em; text-align: center; }
.paid-done #paid-resend { margin-top: 6px; }

/* "Let your AI read your book": the opt-in switch under what assistants can do. */
.ai-read { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.ai-read input { margin-top: 3px; flex: none; }
.ai-read > span { display: grid; gap: 4px; }
.ai-read .hint { font-size: 13px; line-height: 1.5; }

/* Pick your plan: one screen, no scrolling, on laptops down to 1280×720. */
@media (min-width: 761px) {
  .plandlg:has(.pbig) { padding: 24px 28px 16px; max-height: calc(100dvh - 24px); }
  .pbig-head { margin: 0 0 14px; }
  .pbig-head h2 { margin: 0 0 4px; font-size: 26px; }
  .pbig-head .calldlg-p { font-size: 15px; }
  .pbig .pcards-4 { gap: 12px; }
  .pbig .pcard { padding: 16px 16px 16px; gap: 8px; }
  .pbig .pcard.is-rec { transform: translateY(-2px); }
  .pbig .pprice b { font-size: 28px; }
  .pbig .pcard-sub { font-size: 13px; margin: 0; }
  .pbig .pcheck { font-size: 13px; gap: 5px; padding-top: 10px; margin-top: 2px; line-height: 1.35; }
  .pbig .pk { width: 14px; height: 14px; }
  .pbig .pcard .btn { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
  .pbig .team-plan { margin-top: 12px; padding: 12px 18px; }
  .pbig .team-plan h3 { font-size: 15px; }
  .pbig .team-plan p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; }
  .pbig-foot { margin-top: 12px; padding-top: 12px; font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .pbig .pcard-sub { display: none; }
  .pbig-head .calldlg-p { display: none; }
}

/* Phone Menu: the top bar's frosted glass (backdrop-filter) made it the frame for the fixed menu panel, so the panel was
   clipped to the bar's height and looked like nothing happened. While the menu is open the bar drops the frost and the
   clipping, and the panel fills the screen again. */
.side.nav-open { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; overflow: visible !important; }

/* Google verification note: a frosted glass card before any Google sign-in. */
dialog.gnote { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px; overflow: auto; color: var(--ink, #231c15);
  background: linear-gradient(160deg, rgb(255 253 249 / .86), rgb(248 241 231 / .74)); -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), 0 0 0 1px rgb(255 255 255 / .6), 0 40px 90px -30px rgb(40 25 12 / .55); }
dialog.gnote::backdrop { background: rgb(30 22 14 / .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gnote-in { padding: 28px 28px 22px; }
.gnote-eye { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgb(255 255 255 / .7); box-shadow: inset 0 0 0 1px rgb(43 34 25 / .08); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2, #4a3e31); }
.gnote-eye svg { width: 16px; height: 16px; }
.gnote h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.gnote-lede { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2, #4a3e31); }
.gnote-mock { margin: 0 0 18px; padding: 16px 18px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(43 34 25 / .08), 0 10px 24px -16px rgb(40 25 12 / .4); font-family: Roboto, Arial, sans-serif; color: #202124; }
.gm-t { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.gm-s { margin: 0 0 12px; font-size: 12px; color: #5f6368; }
.gm-row { display: flex; justify-content: space-between; align-items: center; }
.gm-adv { position: relative; font-size: 13px; font-weight: 500; color: #1a73e8; padding: 3px 6px; margin-left: -6px; border-radius: 6px; box-shadow: 0 0 0 2px #b5562f; }
.gm-adv::after { content: "1"; position: absolute; top: -10px; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #b5562f; color: #fff; font: 700 11px/18px Arial, sans-serif; text-align: center; }
.gm-back { font-size: 13px; font-weight: 500; color: #fff; background: #1a73e8; padding: 7px 14px; border-radius: 6px; }
.gm-go { position: relative; display: inline-block; margin: 12px 0 0; font-size: 12.5px; color: #1a73e8; text-decoration: underline; padding: 2px 6px; margin-left: -6px; border-radius: 6px; box-shadow: 0 0 0 2px #b5562f; }
.gm-go::after { content: "2"; position: absolute; top: -10px; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: #b5562f; color: #fff; font: 700 11px/18px Arial, sans-serif; text-align: center; text-decoration: none; }
.gnote-steps { list-style: none; counter-reset: gs; display: grid; gap: 10px; margin: 0 0 16px; padding: 0; }
.gnote-steps li { counter-increment: gs; display: grid; grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 1px; }
.gnote-steps li::before { content: counter(gs); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: #b5562f; }
.gnote-steps b { font-size: 14.5px; font-weight: 600; }
.gnote-steps span { font-size: 13px; color: var(--muted, #8c7d6a); }
.gnote-small { margin: 0 0 18px; font-size: 12.5px; line-height: 1.5; color: var(--muted, #8c7d6a); }
.gnote-acts { display: flex; align-items: center; gap: 16px; }
.gnote-acts .btn { flex: 1; justify-content: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) dialog.gnote { background: linear-gradient(160deg, rgb(52 44 35 / .86), rgb(30 25 20 / .8)); color: #f3ece2; } :root:not([data-theme="light"]) .gnote-eye { background: rgb(255 240 220 / .08); color: #e9dfd0; } }
:root[data-theme="dark"] dialog.gnote { background: linear-gradient(160deg, rgb(52 44 35 / .86), rgb(30 25 20 / .8)); color: #f3ece2; }
:root[data-theme="dark"] .gnote-eye { background: rgb(255 240 220 / .08); color: #e9dfd0; }


/* The free-trial welcome: dark warm glass (the homepage's dark look), a glowing day ring, the serif line in silver. */
dialog.plandlg.trial-dlg { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 30px; overflow: hidden; color: #f3ece2;
  background: radial-gradient(120% 80% at 50% -10%, rgb(194 100 63 / .28), transparent 60%), linear-gradient(170deg, rgb(44 37 30 / .94), rgb(24 20 16 / .96));
  -webkit-backdrop-filter: blur(30px) saturate(1.3); backdrop-filter: blur(30px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgb(255 240 220 / .14), 0 0 0 1px rgb(255 240 220 / .08), 0 50px 110px -30px rgb(0 0 0 / .7); }
dialog.plandlg.trial-dlg::backdrop { background: rgb(20 15 10 / .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
dialog.plandlg.trial-dlg > .close { top: 16px; right: 16px; color: #e9dfd0; background: rgb(255 240 220 / .08); border-color: rgb(255 240 220 / .12); }
.trial-hi { position: relative; padding: 38px 32px 26px; text-align: center; isolation: isolate; }
.trial-hi::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); }
.trial-ring { position: relative; width: 104px; height: 104px; margin: 0 auto 16px; filter: drop-shadow(0 0 18px rgb(214 120 80 / .45)); }
.trial-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.trial-ring circle { fill: none; stroke-width: 5; }
.tr-bg { stroke: rgb(255 240 220 / .1); }
.tr-fg { stroke: url(#tr-g); stroke-linecap: round; animation: tr-draw 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tr-draw { from { stroke-dasharray: 0 999; } }
.trial-ring span { position: absolute; inset: 0; display: grid; place-content: center; line-height: 1; }
.trial-ring b { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; color: #fbf6ee; }
.trial-ring small { margin-top: 3px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #c9bba8; }
.trial-eye { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #e8936a; }
.trial-h { margin: 0 0 12px; font-weight: 400; line-height: 1; }
.trial-h .serif { display: inline-block; padding: 0 .04em .08em; font-family: "Times New Roman", Times, serif; font-size: 44px; letter-spacing: -0.03em;
  background: linear-gradient(172deg, #ffffff 0%, #e4dfd8 32%, #9d978f 52%, #c8c2b9 60%, #f1ede7 78%, #ffffff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trial-lede { max-width: 30em; margin: 0 auto 22px; font-size: 15px; line-height: 1.6; color: #d6cabb; }
.trial-lede b { color: #fbf6ee; font-weight: 600; }
.trial-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; padding: 0; text-align: left; }
.trial-grid li { display: grid; gap: 2px; padding: 14px 14px 13px; border-radius: 16px; background: linear-gradient(160deg, rgb(255 240 220 / .09), rgb(255 240 220 / .03)); box-shadow: inset 0 1px 0 rgb(255 240 220 / .1), inset 0 0 0 1px rgb(255 240 220 / .07); }
.trial-grid svg { width: 22px; height: 22px; margin-bottom: 8px; color: #e8936a; }
.trial-grid b { font-size: 14px; font-weight: 600; color: #fbf6ee; }
.trial-grid span { font-size: 12.5px; color: #b9ab97; }
.trial-acts .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; font-weight: 600; color: #231c15 !important; background: linear-gradient(180deg, #fbf6ee, #ecdfcc) !important; border: 0 !important; box-shadow: 0 10px 30px -12px rgb(232 147 106 / .6); }
.trial-small { margin: 14px 0 0; font-size: 12px; color: #9e9080; }
@media (max-width: 420px) { .trial-grid { grid-template-columns: 1fr; } .trial-h .serif { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) { .tr-fg { animation: none; } }

.trial-hi .trial-h { margin-left: 0; margin-right: 0; padding: 0; text-align: center; width: 100%; }
/* The trial headline: plain warm cream in the serif (no gradient), centred (the dialog title normally leaves room for ×). */
.plandlg .trial-hi #plandlg-t.trial-h { padding: 0; margin: 0 0 12px; text-align: center; }
.trial-h .serif { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #f6efe4; }

/* LinkedIn: the logo like the assistants', and the export-change note. */
.li-eye { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 12px 5px 8px; border-radius: 999px; background: rgb(10 102 194 / .08); font-size: 12px; font-weight: 600; color: #0a66c2; }
.li-eye .ai-logo { width: 16px; height: 16px; }
.li-deadline { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(160deg, rgb(10 102 194 / .07), rgb(10 102 194 / .03)); box-shadow: inset 0 0 0 1px rgb(10 102 194 / .16); }
.li-deadline p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2, #4a3e31); }
.li-deadline b { color: var(--ink, #231c15); }
.li-dl-logo { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px -2px rgb(10 102 194 / .35); }
.li-dl-logo .ai-logo { width: 18px; height: 18px; }
.li-start .pmin-acts { flex-wrap: wrap; }
/* Relationships Home: one list beside today's one person; nothing repeated below. */
.hlead-solo { grid-template-columns: minmax(0, 1fr); }
.hlead:has(> .hlead-side > .one-today:only-child) { grid-template-columns: minmax(0, 1fr) 264px; gap: 20px; }
.hlead:has(> .hlead-side > .one-today:only-child) > .hlead-side { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hlead-side .one-today:only-child { margin: 0; width: 100%; min-width: 0; box-sizing: border-box; }
.hlead + .qa, .hlead + section, .hlead + form { margin-top: 28px; }
@media (max-width: 860px) { .hlead:has(> .hlead-side > .one-today:only-child) { grid-template-columns: minmax(0, 1fr); } }
/* Today: groups stack in two columns like a masonry, no stretched cards with empty space. */
.ggrid { display: block; columns: 2 360px; column-gap: 16px; }
.ggrid > .gcard { break-inside: avoid; margin: 0 0 16px; }
.ggrid > .gcard:only-child { column-span: all; }
@media (max-width: 1180px) { .today-main .ggrid { columns: 1; } }
@media (max-width: 760px) { .ggrid { columns: 1; } }
/* Phone: today's one is a compact row under the list, not a big square. */
@media (max-width: 860px) {
  .hlead-side .one-today:only-child { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; min-height: 0; padding: 16px; gap: 14px; text-align: left; }
  .hlead-side .one-today:only-child .ot-ring { width: 64px; height: 64px; }
  .hlead-side .one-today:only-child .ot-init { inset: 8px; font-size: 20px; }
  .hlead-side .one-today:only-child .ot-text { flex: 1 1 0; min-width: 0; }
  .hlead-side .one-today:only-child .ot-row { flex-direction: row; margin-top: 6px; }
  .hlead-side .one-today:only-child .ot-acts { width: 100%; justify-content: flex-end; }
}
.cv-panel .cv-del { display: flex; align-items: center; gap: 14px; }
.cal-edit form { min-width: min(440px, 86vw); }
.cal-edit .ce-row { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 10px; }
.cal-edit label { display: grid; gap: 4px; margin: 0 0 12px; }
.team-act > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.team-act > summary::-webkit-details-marker { display: none; }
.team-act > summary .team-h { margin-bottom: 0; }
.team-act-n { font-size: 13px; color: var(--muted); }
.team-act-t { margin-left: auto; font-size: 13px; color: var(--muted); }
.team-act-t::after { content: 'Minimise'; } .team-act:not([open]) .team-act-t::after { content: 'Show'; }
.team-act[open] > summary { margin-bottom: 10px; }
/* LinkedIn import: three short steps, one line of warning. */
.li-guide > summary { padding: 2px 0; }
.li-guide .li-deadline { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 0; background: none; border: 0; box-shadow: none; font-size: 14px; line-height: 1.45; color: var(--muted); }
.li-guide .li-deadline b { color: var(--ink); font-weight: 600; }
.li-guide .li-dl-logo { width: 24px; height: 24px; border-radius: 6px; box-shadow: none; }
.li-guide .li-dl-logo .ai-logo { width: 14px; height: 14px; }
.li-steps { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.li-steps > li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.li-steps .li-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 600; background: var(--line); color: var(--ink); }
.li-steps li > div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.li-steps li > div > b { font-size: 15px; font-weight: 600; color: var(--ink); }
.li-steps li > div > span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.li-steps li > div > span b { color: var(--ink-2, var(--ink)); font-weight: 600; }
.li-steps .btn { margin-top: 4px; }
@media (max-width: 860px) { .li-steps { grid-template-columns: 1fr; } }
.li-steps .btn { white-space: nowrap; }
.li-guide > summary { align-items: center; }
.li-guide .li-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; }
.li-guide .li-mark .ai-logo { width: 14px; height: 14px; }
.li-steps .li-soon { font-size: 13px; line-height: 1.45; color: var(--accent-ink, #a5432a); }
.li-steps > li { background: var(--raised, rgb(255 255 255 / .5)); box-shadow: var(--card-sh, 0 1px 2px rgb(43 34 25 / .05)); }
:root[data-theme="dark"] .li-steps > li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); box-shadow: none; }
:root[data-theme="dark"] .li-steps .li-n { background: rgb(255 255 255 / .14); }
:root[data-theme="dark"] .li-steps .li-soon { color: #e8a184; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .li-steps > li { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); box-shadow: none; } :root:not([data-theme="light"]) .li-steps .li-n { background: rgb(255 255 255 / .14); } :root:not([data-theme="light"]) .li-steps .li-soon { color: #e8a184; } }
.imp-choice { cursor: pointer; transition: border-color .15s, transform .15s; }
.imp-choice:hover { border-color: var(--ink-2, var(--ink)); }
:root[data-skin] .sheet .team-card-line:has(> [data-team-act="move-team"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
