/* Page parts the design system's files do not define (NEW-26). Loaded after the vendored files. Tokens only, no raw colours. */
/* Two steps of the 4 px spacing scale that the screens use and the vendored tokens do not define (Session 57): without them every rule that named
   them was dropped whole by the browser (the admin tiles had no padding, the knowledge base boxes, the manual and the lists neither). */
:root { --space-5: 20px; --space-12: 48px; }
.tfu-scope { min-height: 100vh; display: flex; flex-direction: column; }
.tfu-scope > main { flex: 1; display: flex; flex-direction: column; }
.tfu-logo { display: inline-flex; align-items: center; border-radius: 12px; line-height: 0; }
.tfu-logo img { display: block; height: 48px; width: auto; }
.tfu-logo .tfu-logo-dark { display: none; }
[data-theme="dark"] .tfu-logo .tfu-logo-light { display: none; }
[data-theme="dark"] .tfu-logo .tfu-logo-dark { display: block; }
.signin-hero { flex: 1; display: grid; place-items: center; margin: var(--space-6); padding: var(--space-16) var(--space-6); }
.signin-card { width: min(440px, 100%); display: grid; gap: var(--space-5, 20px); font-family: var(--font-sans); }
.signin-card section { display: grid; gap: var(--space-4); }
.signin-card form { display: grid; gap: var(--space-4); }
.signin-card .tfu-field { display: grid; gap: var(--space-2); }
.signin-card .tfu-btn-primary { width: 100%; }
.signin-card .code-input { font-family: var(--font-display); font-size: 32px; line-height: 40px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-card .links { margin-top: 0 !important; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.signin-card .links button { color: var(--link); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.signin-card .sent-to b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.signin-card .spam { color: var(--text-muted); margin-top: 0 !important; }
.signin-msg:empty { display: none; }
@media (max-width: 639px) { .signin-hero { margin: var(--space-3); padding: var(--space-8) var(--space-3); } }

/* Page head with the Nurani wash (every screen after sign-in), and the parts of Our knowledge base */
.page-hero { margin: 0 0 var(--space-8); padding: var(--space-8) var(--space-6); }
.page-hero .page-head { margin-bottom: 0; }
@media (max-width: 639px) { .page-hero { padding: var(--space-6) var(--space-4); } }
.wrap-k { display: grid; gap: var(--space-5, 20px); max-width: 820px; }
.t { color: var(--text-muted); }
.k-text { margin: 0; white-space: pre-wrap; }
.k-meta { margin: 0; color: var(--text-muted); }
.form { display: grid; gap: var(--space-3); }
.say { margin: 0; color: var(--text-muted); }
.say.bad { color: var(--text); font-weight: 500; }
.say:empty { display: none; }
.k-edit { width: 100%; min-height: 9rem; }

/* The light and dark button in the top bar (the one weh-card.com has): a round bordered button with a half-and-half mark and the word Light or Dark;
   on a phone only the mark shows. Tokens only. */
.theme-toggle { flex: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-full); background: var(--surface); color: var(--text); font: 500 14px/20px var(--font-sans); cursor: pointer; }
.theme-toggle:hover { border-color: var(--border-control); }
.theme-toggle::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--text) 50%, var(--page) 50%); border: 1px solid var(--border-control); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.theme-toggle--end { margin-left: auto; }
@media (max-width: 719px) {
  .theme-toggle { width: 44px; min-height: 44px; justify-content: center; padding: 0; margin-left: auto; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Search access (NEW-26, wave 2; redesigned from the design canvas): which sites Google and Bing have shared with us. Ticks come from our own check, never from anyone reporting.
   Page layout only: every colour, size and component comes from the design system's tokens. Every rule sits under .wrap-acc,
   so no other screen is touched by it (the page parts in app.css are shared by all screens). The head is one wash with a glass panel, the figures are stat tiles,
   the table and the IndexNow box are panels. Light mode takes the blue and copper tints of the dashboard. On phones the table turns into one card per website. */
.wrap-acc .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding: 32px 40px; margin: 0 0 var(--space-6); }
.wrap-acc .head-row .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.wrap-acc .head-row .head-actions { padding: 16px 20px; min-width: 160px; max-width: 100%; }
.wrap-acc .glance-label { margin: 0; color: var(--text-muted); }
.wrap-acc .glance-value { margin: 0; font-size: 36px; line-height: 42px; font-weight: 600; color: var(--text); }
@media (max-width: 639px) { .wrap-acc .head-row { padding: var(--space-6) var(--space-4); } }
.wrap-acc .acc-tiles { margin-bottom: var(--space-6); }
.wrap-acc .acc-tiles .tfu-stat-value { font-size: 36px; line-height: 42px; }
.wrap-acc .acc { display: grid; gap: var(--space-6); max-width: 960px; }
.wrap-acc .acc-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.wrap-acc .acc-how { color: var(--text-muted); margin: 0; }
.wrap-acc .acc-who { margin: 0; overflow-wrap: anywhere; }
.wrap-acc .acc-inx { margin-top: var(--space-6); max-width: 960px; }
.wrap-acc .acc th[scope="row"] { overflow-wrap: anywhere; }
@media (max-width: 719px) {
  .wrap-acc .acc .tfu-table-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .wrap-acc .acc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wrap-acc .acc table, .wrap-acc .acc tbody { display: block; }
  .wrap-acc .acc tbody { display: grid; gap: var(--space-3); }
  .wrap-acc .acc tr { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .wrap-acc .acc th, .wrap-acc .acc td { display: block; padding: 0; border: 0 !important; }
  .wrap-acc .acc td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
}

[data-theme="light"] .wrap-acc .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wrap-acc .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wrap-acc .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wrap-acc .acc tr { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 80px); }

/* APIs, admin only (NEW-26, wave 4): the wash header with a glass panel, figures as stat tiles, a bar list, the tables in panels. Tokens only. Every rule sits
   under .adm-apis, so no other screen is touched. Light mode takes the blue and copper tints of the dashboard; dark mode is left as the design system gives it. */
.adm-apis .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.adm-apis .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.adm-apis .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 260px; display: grid; gap: 4px; }
.adm-apis .adm-glance { overflow-wrap: anywhere; }
@media (max-width: 639px) { .adm-apis .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .adm-apis .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.adm-apis .tfu-stats { margin-bottom: var(--space-6); }
.adm-apis .tfu-stat-value { font-size: 28px; line-height: 34px; overflow-wrap: anywhere; }
.adm-apis .adm-section { margin-bottom: var(--space-6); }
.adm-apis .section-note { margin: 0 0 var(--space-4); color: var(--text-muted); max-width: var(--measure); }
.adm-apis .adm-bars, .adm-apis .ds-bars { width: 100%; margin-bottom: var(--space-4); }
.adm-apis .when { color: var(--text-muted); }
.adm-apis .old { color: var(--error); }
.adm-apis .adm-old-tile .tfu-stat-sub { color: var(--error); }
.adm-apis #spend tfoot th, .adm-apis #spend tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; font-weight: 600; }
.adm-apis .msg:empty { display: none; }

[data-theme="light"] .adm-apis .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .adm-apis .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .adm-apis .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .adm-apis .title { color: var(--ink-strong); }

/* Income and costs, admin only (NEW-26, wave 4; roadmap COM-13): our runs' cost per customer against the fee they pay. Page layout only: colours, sizes and
   components come from the design system's tokens. Every rule sits under .costs. Light mode gets the blue and copper tints of the dashboard; dark is left as
   the design system gives it. */
.costs .cust { display: grid; gap: var(--space-4); }
.costs .cust > *, .costs .cust .tfu-box > * { min-width: 0; }
.costs .tfu-box > details.more:first-child { border-top: 0; padding-top: 0; }
.costs .tfu-stats { margin-bottom: var(--space-6); }
.costs .cust .tfu-stats { margin-bottom: 0; }
.costs .tfu-stat-value { font-size: 28px; line-height: 34px; overflow-wrap: anywhere; }
.costs .cust .tfu-stat-value { font-size: 26px; line-height: 32px; }
.costs .neg { color: var(--error); }
.costs .when { color: var(--text-muted); }
.costs .note-below { margin-top: var(--space-3); }
.costs .sub-head { margin-top: var(--space-4); }
.costs details.more .tfu-table-wrap { margin-top: var(--space-3); }
.costs .msg:empty { display: none; }
.costs #per tfoot th, .costs #per tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; font-weight: 600; }
.costs #per a { font-weight: 500; }
.costs .back { display: inline-flex; align-items: center; gap: var(--space-2); }

/* the wash header with the glass panel on it (the mockup's hero) */
.costs .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.costs .head-row.hero-wide { padding: 32px 40px; }
.costs .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.costs .head-row .page-head { margin-bottom: 0; }
.costs .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 0; }
.costs .head-actions .tfu-choice { margin: 0; }
@media (max-width: 639px) { .costs .head-row.hero-wide { padding: 24px 16px; } }

/* the charts */
.costs .cost-charts { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-bottom: var(--space-6); }
.costs .cust .cost-charts { margin-bottom: 0; }
.costs .cost-charts.cost-charts-one { grid-template-columns: minmax(0, 1fr); }
.costs .cost-chart { min-width: 0; }
.costs .cost-chart-title { font-size: 18px; line-height: 24px; }
.costs .ds-chart { width: 100%; min-width: 0; }
.costs .cost-chart-table { margin-bottom: var(--space-6); }
@media (max-width: 900px) { .costs .cost-charts { grid-template-columns: minmax(0, 1fr); } }
.costs .cost-shares { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--space-4); }
.costs .cost-share { display: grid; gap: var(--space-2); }
.costs .cost-share-figure { font-variant-numeric: tabular-nums; }

/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens */
[data-theme="light"] .costs .tfu-box-fill,
[data-theme="light"] .costs .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .costs .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .costs .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .costs .title { color: var(--ink-strong); }

/* Invite a company, admin only (NEW-26, wave 4): the form in a panel next to the list, the requests as cards, the invitations by state as stat tiles. Tokens only.
   Every rule sits under .adm-invite. The list turns into one card per company on phones. Light mode takes the blue and copper tints of the dashboard. */
.adm-invite .tfu-stats { margin-bottom: var(--space-6); }
.adm-invite .tfu-stat-value { font-size: 36px; line-height: 42px; }
.adm-invite .invite { display: grid; gap: var(--space-6); }
.adm-invite .invite .tfu-box { gap: var(--space-4); }
.adm-invite .work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: var(--space-6); align-items: start; }
.adm-invite .work > * { min-width: 0; }
@media (max-width: 1099px) { .adm-invite .work { grid-template-columns: minmax(0, 1fr); } }
.adm-invite .form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.adm-invite .msg:empty { display: none; }
.adm-invite .msg { margin-top: var(--space-2); }
.adm-invite .cap { color: var(--text-muted); max-width: var(--measure); }
.adm-invite .who { display: grid; gap: 2px; min-width: 0; }
.adm-invite .who b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.adm-invite .who .sub { color: var(--text-muted); overflow-wrap: anywhere; font-size: 13px; line-height: 18px; }
.adm-invite .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-2); }
.adm-invite .list td { vertical-align: middle; }
.adm-invite .reqs { display: grid; gap: var(--space-3); }
.adm-invite .req { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.adm-invite .req .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); align-items: baseline; }
.adm-invite .req .note { white-space: pre-line; overflow-wrap: anywhere; }
.adm-invite .sr, .adm .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.adm-invite .dlg-text { color: var(--text-muted); }
@media (max-width: 719px) {
  .adm-invite .list-wrap { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .adm-invite .list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .adm-invite .list, .adm-invite .list tbody { display: block; }
  .adm-invite .list tbody { display: grid; gap: var(--space-3); }
  .adm-invite .list tr { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .adm-invite .list td { display: block; padding: 0; border: 0 !important; }
  .adm-invite .acts { justify-content: flex-start; }
}

/* The dialogs sit outside .adm-invite's markup flow but inside it in the tree, so they take the same rules. */
.adm-invite .addr { font-family: var(--font-mono); font-size: 14px; overflow-wrap: anywhere; color: var(--text); }
.adm-invite .dlg-facts { margin-top: var(--space-4); }

[data-theme="light"] .adm-invite .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .adm-invite .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .adm-invite .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .adm-invite .req { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 80px); }

/* Admin runs (NEW-26, wave 4): one card for each customer, with the run strip. Page layout and light tints only; tokens only. Every rule sits under .adm-runs. */
.adm-runs .cust { display: grid; gap: var(--space-3); margin: 0 0 var(--space-6); }
.adm-runs .cust > * { min-width: 0; }
.adm-runs .cust-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.adm-runs .cust-head .title { margin: 0; }
.adm-runs .cust p { margin: 0; }
.adm-runs details.more .tfu-table-wrap { margin-top: var(--space-3); }
.adm-runs .hist { margin: var(--space-2) 0 0; padding-left: var(--space-5); }
.adm-runs .hist li { margin: 0 0 var(--space-1); }
.adm-runs .cust-hist { padding-top: var(--space-2); border-top: 1px solid var(--border); }
.adm-runs .cust-hist > details.more:first-child { border-top: 0; padding-top: 0; }
.adm-runs .ds-strip { width: 100%; }
/* "write now": one button for each site, the state, and the confirm dialog */
.adm-runs .wn { display: grid; gap: var(--space-2); }
.adm-runs .wn-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.adm-runs .wn-cost { color: var(--text-muted); }
.adm-runs #rules { margin: 0; max-width: var(--measure); }
.adm-runs .adm-tiles { margin-bottom: var(--space-6); }
.adm-runs #worst .tfu-badge { white-space: normal; }
@media (max-width: 639px) { .adm-runs .cust { padding: var(--space-4); } }


/* Subscriptions, admin only (NEW-26, wave 4; roadmap COM-25 and COM-13): set what each customer agreed with us, all in USD, and the upgrade options they see.
   The customer's Finance role sees the result on their subscription page. Page layout only: colours, sizes and components come from the design system's
   tokens. Every rule sits under .subadm. Light mode gets the blue and copper tints of the dashboard; dark is left as the design system gives it. */
.subadm .sub-form { display: grid; gap: var(--space-6); max-width: 920px; }
.subadm .grid2 { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 719px) { .subadm .grid2 { grid-template-columns: minmax(0, 1fr); } }
.subadm .rows { display: grid; gap: var(--space-2); }
.subadm .opts { gap: var(--space-4); }
.subadm .line { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) 160px auto; align-items: center; }
.subadm .line.kv { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
@media (max-width: 519px) { .subadm .line, .subadm .line.kv { grid-template-columns: minmax(0, 1fr) auto; } .subadm .line .tfu-input:first-child { grid-column: 1 / -1; } }
.subadm .money { position: relative; }
.subadm .money .tfu-input { padding-left: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.subadm .money::before { content: "USD"; position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--text-muted); font: 500 14px/20px var(--font-sans); pointer-events: none; }
.subadm .sum { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-top: var(--space-3); border-top: 1px solid var(--border); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.subadm .sum b { color: var(--text); font-weight: 600; }
.subadm .opt-box { display: grid; gap: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-sunk); }
.subadm .opt-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.subadm .opt-lines-label { margin-bottom: var(--space-2); }
.subadm .opt-add { margin-top: var(--space-2); }
.subadm .pend-row { margin-top: var(--space-3); }
.subadm .muted { color: var(--text-muted); }
.subadm .cap { color: var(--text-muted); margin: calc(-1 * var(--space-2)) 0 0; }
.subadm .save-bar { position: sticky; bottom: 0; z-index: 5; padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--page) 78%, transparent); }
.subadm .msg:empty { display: none; }

/* the wash header with the glass panel on it (the mockup's hero): the customer is chosen on the panel */
.subadm .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.subadm .head-row.hero-wide { padding: 32px 40px; }
.subadm .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.subadm .head-row .page-head { margin-bottom: 0; }
.subadm .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 0; max-width: 100%; }
.subadm .head-actions .tfu-choice { margin: 0; }
@media (max-width: 639px) { .subadm .head-row.hero-wide { padding: 24px 16px; } }

/* the figures at the top */
.subadm .sub-tiles { margin-bottom: var(--space-6); }
.subadm .tfu-stat-value { font-size: 26px; line-height: 32px; overflow-wrap: anywhere; }
.subadm .sub-ring-title { font-size: 18px; line-height: 24px; }
.subadm .sub-ring-body { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.subadm .sub-ring-chart { min-width: 0; }
.subadm .sub-ring .tfu-legend { min-width: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 719px) { .subadm .sub-ring-body { grid-template-columns: minmax(0, 1fr); } }

/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens */
[data-theme="light"] .subadm .tfu-box-fill,
[data-theme="light"] .subadm .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .subadm .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .subadm .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }

/* Your brands (NEW-30): the editor in Settings, for Finance and the Company admin (ui/screens/brands/BrandsBox.jsx). Layout only: colours and sizes
   come from the design system's tokens. In Settings the box spans both columns; each brand is a block under a line, its fields one under the other. */
.wrap-settings .br-edit { grid-column: 1 / -1; }
.br-rows { display: grid; gap: var(--space-4); }
.br-row { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.br-row-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.br-row-head .label { margin: 0; overflow-wrap: anywhere; }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.br-list li { padding-top: var(--space-3); border-top: 1px solid var(--border); }
.br-list p { margin: 0; overflow-wrap: anywhere; }
.say.bad { color: var(--error); }

/* Your competitors (NEW-26, wave 2): who we compare you with, at every run. Page layout only: every colour, size and component comes from the
   design system's tokens. Every rule sits under .wrap-cp, so no other screen is touched by it (the page parts in app.css are shared by all screens). */
.wrap-cp { display: grid; gap: var(--space-6); max-width: 820px; }
.wrap-cp .rows { display: grid; gap: var(--space-2); }
.wrap-cp .comp-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 559px) {
  .wrap-cp .comp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wrap-cp .comp-row .tfu-input:first-child { grid-column: 1 / -1; }
}
/* NEW-30: with brands of its own, each row also has the brand choice. */
.wrap-cp .comp-row.has-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px auto; }
@media (max-width: 559px) { .wrap-cp .comp-row.has-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
.wrap-cp .t { color: var(--text-muted); }
.wrap-cp .group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-cp .count { color: var(--text-muted); font-variant-numeric: tabular-nums; margin: 0; }
.wrap-cp .count.bad { color: var(--attention-text, var(--text)); font-weight: 500; }
.wrap-cp .form { display: grid; gap: var(--space-4); }
.wrap-cp .row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3); }
.wrap-cp .say { margin: 0; color: var(--text-muted); }
.wrap-cp .say.ok { color: var(--accent-text); }
.wrap-cp .say.bad { color: var(--text); font-weight: 500; }
.wrap-cp .say:empty { display: block; }
.wrap-cp .sum-c { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); }

/* The redesign (NEW-26, from the design canvas): the head is one wash with a glass panel holding the figure, the list sits in a tinted panel.
   Light mode takes the blue and copper tints of the dashboard; dark mode is left as the design system gives it. Tokens only. */
.cp-view .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.cp-view .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.cp-view .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 220px; display: grid; gap: 4px; }
.cp-view .cp-figure { margin: 0; font-size: 44px; line-height: 48px; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .cp-view .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .cp-view .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.wrap-cp .tfu-box { padding: var(--space-6); }
@media (max-width: 559px) { .wrap-cp .tfu-box { padding: var(--space-4); } }
[data-theme="light"] .wrap-cp .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .cp-view .cp-glance .cp-figure { color: var(--ink-strong); }
.wrap-cp .comp-row { padding: var(--space-1) 0; }
[data-theme="light"] .wrap-cp .count { color: var(--ink-strong); }

/* Your countries (NEW-26, wave 2): where we measure you, at every run. Page layout only: every colour, size and component comes from the
   design system's tokens. Every rule sits under .wrap-c, so no other screen is touched by it (the page parts in app.css are shared by all screens). */
.wrap-c { display: grid; gap: var(--space-6); max-width: 820px; }
.wrap-c .rows { display: grid; gap: var(--space-2); }
.wrap-c .c-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.wrap-c .c-row:last-child { border-bottom: 0; }
.wrap-c .c-name { font-weight: 500; }
.wrap-c .c-own { color: var(--accent-text); }
.wrap-c .t { color: var(--text-muted); }
@media (max-width: 559px) {
  .wrap-c .c-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .wrap-c .c-row .c-own { grid-column: 1 / -1; order: 3; }
}
.wrap-c .group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-c .count { color: var(--text-muted); font-variant-numeric: tabular-nums; margin: 0; }
.wrap-c .count.bad { color: var(--attention-text, var(--text)); font-weight: 500; }
.wrap-c .form { display: grid; gap: var(--space-4); }
.wrap-c .row { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3); }
.wrap-c .say { margin: 0; color: var(--text-muted); }
.wrap-c .say.ok { color: var(--accent-text); }
.wrap-c .say.bad { color: var(--text); font-weight: 500; }
.wrap-c .sum-c { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); }

/* The redesign (NEW-26, from the design canvas): the head is one wash with a glass panel holding the figure, the list sits in a tinted panel, the own market is a badge.
   Light mode takes the blue and copper tints of the dashboard; dark mode is left as the design system gives it. Tokens only. */
.cn-view .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.cn-view .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.cn-view .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 220px; display: grid; gap: 4px; }
.cn-view .cn-figure { margin: 0; font-size: 44px; line-height: 48px; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .cn-view .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .cn-view .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.wrap-c .tfu-box { padding: var(--space-6); }
@media (max-width: 559px) { .wrap-c .tfu-box { padding: var(--space-4); } }
[data-theme="light"] .wrap-c .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .cn-view .cn-glance .cn-figure { color: var(--ink-strong); }
.wrap-c .c-row { padding: var(--space-3) var(--space-2); }
[data-theme="light"] .wrap-c .c-row:nth-child(odd) { background: linear-gradient(90deg, var(--nl-wash-tint) 0%, transparent 70%); }

/* The board view (NEW-40, instant): the board pack on the dashboard page, and its print form. Tokens only: the They Find Us design system, in both themes. */
.bp { max-width: 960px; margin: 0 auto; padding: var(--space-4) 0 var(--space-8); }
.bp-bar { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-6); }
.bp-eyebrow { margin: 0; color: var(--accent-text); }
.bp-title { margin: var(--space-1) 0 var(--space-2); }
.bp-lead { margin: 0 0 var(--space-6); max-width: var(--measure); color: var(--text-muted); }
.bp-page { padding: var(--space-10) 0 0; break-inside: avoid-page; }
.bp-page-first { padding-top: var(--space-4); }
html[data-theme] .bp-page .bp-pt.title { margin: 0 0 var(--space-4); }
html[data-theme] .bp-page .bp-h.subtitle { margin: var(--space-6) 0 var(--space-3); }
.bp-text { margin: 0 0 var(--space-3); max-width: 75ch; }
.bp-note { margin: 0 0 var(--space-3); color: var(--text-muted); max-width: 75ch; }
.bp-list { margin: 0 0 var(--space-3); padding-left: var(--space-6); max-width: 75ch; }
.bp-list li { margin: 0 0 var(--space-2); }

/* the one navy panel of the report */
.bp-panel { background: var(--panel); color: var(--on-navy); border-radius: var(--radius-lg); padding: var(--space-8); }
.bp-pe { margin: 0; color: var(--copper-300); }
html[data-theme] .bp-panel .bp-ps.title { margin: var(--space-2) 0 0; max-width: 760px; color: var(--on-navy); }

/* tiles with an arrow for each change */
.bp-tiles { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: var(--space-4) 0 var(--space-4); }
.bp-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }
.bp-tl, .bp-ts { margin: 0; color: var(--text-muted); }
.bp-tv { margin: var(--space-1) 0 var(--space-2); font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.bp-mv { margin: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--text); }
.bp-arrow { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bp-arrow-none { display: inline-block; }

/* numbered cards: what the board decides, what comes next */
.bp-cards { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-3); }
.bp-card { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }
.bp-card p { margin: 0; color: var(--text-muted); }
.bp-cl { margin: 0 0 2px; color: var(--text); }
.bp-mk { flex: none; width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--attention); color: var(--navy); }

/* bars: shares by company, assistant and country */
.bp-rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); margin: 0 0 var(--space-4); }
.bp-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 64px; align-items: center; gap: var(--space-3); padding: 6px 0; }
.bp-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-you .bp-nm { font-weight: 600; }
.bp-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-chg { grid-column: 2 / 4; margin-top: -8px; color: var(--text-muted); text-align: right; }
.bp-track { display: block; height: 12px; background: var(--surface-sunk); border-radius: var(--radius-sm); overflow: hidden; }
.bp-track i { display: block; height: 100%; background: var(--chart-5); border-radius: var(--radius-sm); }
.bp-navy .bp-track i, .bp-cellbar .bp-track i { background: var(--chart-1); }
.bp-track-s { height: 10px; flex: 1; min-width: 70px; }
.bp-cellbar { display: flex; align-items: center; gap: var(--space-3); }
.bp-cellbar .bp-val { text-align: left; white-space: nowrap; font-weight: 500; }
.bp-figs { margin-top: var(--space-3); }
.bp-figs summary { cursor: pointer; color: var(--accent-text); font-weight: 500; }

/* questions won: one square for each general question */
.bp-won { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; margin: 0 0 var(--space-4); }
.bp-wn { margin: 0; font-family: var(--font-display); font-size: 40px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.bp-wc { margin: 0; color: var(--text-muted); }
.bp-sq { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.bp-sq i { width: 18px; height: 18px; border-radius: 4px; background: var(--chart-5); opacity: 0.55; }
.bp-sq i.bp-me { background: var(--chart-1); opacity: 1; }

/* risks: one amber note */
.bp-risk { border-left: 4px solid var(--attention); background: var(--attention-tint); border-radius: var(--radius-md); padding: var(--space-4) var(--space-6); display: grid; gap: var(--space-2); margin: 0 0 var(--space-3); }
.bp-risk p { margin: 0; color: var(--attention-text); }

.bp-tw { overflow-x: auto; margin: 0 0 var(--space-4); }
.bp-table { width: 100%; border-collapse: collapse; }
.bp-table th, .bp-table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); vertical-align: middle; }
.bp-table thead th { font-weight: 600; color: var(--text-muted); font-size: 13px; letter-spacing: 0.04em; }
.bp-fig { margin: 0 0 var(--space-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }
.bp-fig figcaption { margin-bottom: var(--space-2); }
.bp-fig svg { width: 100%; height: auto; }
.bp-axis { stroke: var(--chart-axis); stroke-width: 1; }
.bp-line { stroke: var(--chart-1); stroke-width: 3; stroke-linecap: round; }
.bp-dot { fill: var(--chart-1); }
.bp-lab { fill: var(--text); font-size: 16px; font-weight: 700; }
.bp-lab2 { fill: var(--text-muted); font-size: 13px; }
.bp-foot { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--text-muted); }
.bp-panel, .bp-mk, .bp-risk, .bp-track, .bp-track i, .bp-sq i { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media (max-width: 560px) { .bp-row { grid-template-columns: 1fr 56px; } .bp-track { grid-column: 1 / 3; order: 3; } .bp-chg { grid-column: 1 / 3; text-align: left; } .bp-panel { padding: var(--space-6); } }
@media print {
  body * { visibility: hidden; }
  .bp-print, .bp-print * { visibility: visible; }
  .bp-print { position: absolute; left: 0; top: 0; width: 100%; max-width: none; padding: 0; }
  .no-print { display: none !important; }
  .bp-page { break-before: page; }
  .bp-page:first-of-type { break-before: auto; }
}

/* The "are you found more" cards of the customer dashboard, group found (NEW-26, wave 3): three rules the old page wrote as inline styles. Tokens only, scoped under .dash. */
.dash .tfu-table td.nw { white-space: nowrap; }
.dash h4.placed-h { margin: var(--space-4) 0 var(--space-2); }
.dash .dlg-note.model-note { margin: var(--space-4) 0 0; }

/* The pulse and the design system's charts on the dashboard (NEW-26, wave 3, the redesign). Tokens only. */
.dash .pulse { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; margin: 0 0 var(--space-6); }
.dash .pulse-gauge { align-items: center; text-align: center; justify-content: center; }
.dash .pulse-title { font-size: 18px; line-height: 24px; }
.dash .pulse-dial { width: 200px; height: 200px; }
.dash .pulse-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-content: start; }
.dash .pulse-tile { display: flex; flex-direction: column; gap: var(--space-2); }
.dash .pulse-line { display: block; }
.dash .pulse-spark { margin-top: var(--space-2); }
.dash .ds-chart { width: 100%; }
@media (max-width: 900px) { .dash .pulse { grid-template-columns: 1fr; } .dash .pulse-tiles { grid-template-columns: 1fr; } }
/* the gauge shows its figure as a percent */
.dash .pulse-dial [data-current-value]::after { content: "%"; font-size: .6em; margin-left: 2px; }

/* Light theme only: a little more colour from the design system's own tokens (the Nurani wash and the copper tints). Dark is left as it is. */
[data-theme="light"] .dash .tfu-box-fill,
[data-theme="light"] .dash .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .dash .pulse-tile,
[data-theme="light"] .dash .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .dash .pulse-gauge { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 32%, var(--surface) 70%); }
[data-theme="light"] .dash .pulse-tile:nth-child(odd),
[data-theme="light"] .dash .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .dash .tfu-stat-sub-up { color: var(--accent-text); }
[data-theme="light"] .dash .title { color: var(--ink-strong); }

/* The header as one wash with the glass panel on it (the mockup's hero) */
.dash .head-row.hero-wide { padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.dash .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.dash .head-row.hero-wide .head-actions { padding: 16px 20px; }
.dash .ds-bars { width: 100%; }
.dash .run-strip { grid-column: 1 / -1; }
/* Run by run: one copper at five strengths, so the scale reads the same in light and dark (a stronger colour is a higher share) */
.dash .bg-run-none { background-color: var(--border); }
.dash .bg-run-0 { background-color: transparent; box-shadow: inset 0 0 0 1px var(--border-control); }
.dash .bg-run-1 { background-color: var(--accent-mark); opacity: .25; }
.dash .bg-run-2 { background-color: var(--accent-mark); opacity: .5; }
.dash .bg-run-3 { background-color: var(--accent-mark); opacity: .75; }
.dash .bg-run-4 { background-color: var(--accent-mark); }
.dash .run-cap { margin-top: var(--space-3); }
.dash .run-key { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.dash .run-key li { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--text-muted); }
.dash .run-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.dash .pulse-lines { display: flex; flex-direction: column; gap: 2px; }
.dash .tfu-stat-sub { align-items: flex-start; }

/* Work delivered: each figure is a tile like the pulse tiles */
.dash .work > div { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.dash .work dd { font-size: 36px; line-height: 40px; }
[data-theme="light"] .dash .work > div { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 34%, var(--surface) 70%); }
[data-theme="light"] .dash .work > div:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 34%, var(--surface) 70%); }
/* the status words of "Where each change stands" and the like read as badges */
.dash .chg .stage, .dash .chg .tfu-badge { font-weight: 700; }

/* The three top sections of the customer dashboard (NEW-26, wave 3, group top). The old page had one rule for every element with the hidden attribute
   ([hidden] { display: none !important }, in _ui/app.css). The new stylesheet has none, and the boxes, the tab row and the buttons set their own display,
   so a hidden summary, tab, card or button would still show. This puts the rule back, inside .dash. (It belongs in dashboard.css; see the report.) */
.dash [hidden] { display: none !important; }

/* The customer dashboard (NEW-26, wave 3): the old page's rules, scoped under .dash so they cannot touch another screen. Tokens only.
   The tooltip and the dialog sit outside .dash. */
/* The customer dashboard, on the They Find Us design system. Built by scripts/team_site_build.py, which puts the data
   in the tfu-data block below. Scope (Michiel, 2026-10-18): we make the customer easier to find in Google, Bing and AI
   assistants; their own web analytics are out of scope, and there is no money on this page. The page answers three
   questions: is it working, are you found more, and what did we do. Details sit behind buttons.
   Charts: chart-1 to chart-5 in order, exact values on hover or tap, and a table with the same figures.
   No customer is written in here: names, sites, competitors and the rhythm come from the data. */
.dash .head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.dash .head-row .page-head { margin-bottom: 0; }
.dash .head-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.dash .status { color: var(--text-muted); }

/* the Latest run / Two weeks / Month switch (Michiel, 2026-10-17: weekly, biweekly and monthly views) */
.dash .period-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3) var(--space-6); margin: 0 0 var(--space-8); }
.dash .period-row .tfu-choice-legend, .dash .period-pick .tfu-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash .period-row .tfu-choice-options { gap: var(--space-2); }
.dash .period-pick { min-width: 220px; }

/* the three questions */
.dash .section > h2 { margin-bottom: var(--space-4); }
.dash .board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 899px) { .dash .board { grid-template-columns: minmax(0, 1fr); } }
.dash .board > .tfu-box { min-width: 0; gap: var(--space-3); }
.dash .board > .wide { grid-column: 1 / -1; }
.dash .board .card-head { flex-wrap: nowrap; align-items: flex-start; }
.dash .board .card-head > h3 { min-width: 0; padding-top: var(--space-1); }
.dash .board .card-head > .tfu-btn { flex: none; }
.dash .board .cap { color: var(--text-muted); max-width: var(--measure); }
.dash .board .foot { margin-top: auto; padding-top: var(--space-2); color: var(--text-muted); }

/* where you stand (Release 26): one sentence, the headline figures and who the assistants name, first on the page. It follows the
   period switch and uses the same figures as the table below ("is it working"). No amount of money is ever written here. */
.dash .now-line { margin: 0 0 var(--space-6); max-width: 62ch; font: 700 22px/30px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
@media (max-width: 639px) { .dash .now-line { font-size: 19px; line-height: 27px; } }
.dash .kpis { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4); }
.dash .kpi { min-width: 0; padding: var(--space-4) var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.dash .kpi .label { margin: 0; color: var(--text-muted); }
.dash .kpi .val { margin: var(--space-1) 0 0; font: 800 32px/38px var(--font-display); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.dash .kpi .sm { display: block; margin-top: var(--space-1); color: var(--text-muted); font-size: 13px; line-height: 18px; }
.dash .kpi .dd { margin: 0; display: block; margin-top: var(--space-1); }
.dash .voice { display: grid; gap: var(--space-3); }
.dash .vrow { display: grid; grid-template-columns: minmax(6rem, 11rem) minmax(0, 1fr) 3.2rem; align-items: center; gap: var(--space-3); }
.dash .vrow .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.dash .vrow .tr { height: 10px; border-radius: var(--radius-full); background: var(--surface-sunk); overflow: hidden; }
.dash .vrow .tr i { display: block; height: 100%; border-radius: var(--radius-full); background: var(--border-strong); }
.dash .vrow.you .nm { font-weight: 700; }
.dash .vrow.you .tr i { background: var(--chart-1); }
.dash .vrow .v { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dash .vrow.you .v { color: var(--text); font-weight: 700; }
.dash .setup { display: grid; grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr); gap: var(--space-3) var(--space-4); margin: 0; }
.dash .setup dt { color: var(--text-muted); }
.dash .setup dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.dash .setup.asked { margin-top: var(--space-3); }
.dash .setup dd .sm { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.dash .asked + .cap { margin: var(--space-3) 0 0; }
@media (max-width: 639px) { .dash .vrow { grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr) 3rem; } .dash .setup { grid-template-columns: minmax(0, 1fr); gap: var(--space-1) 0; } .dash .setup dd { margin-bottom: var(--space-3); } }

/* is it working: the sentence from the monthly report, then the start against now */
.dash .verdict { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-6); align-items: start; }
@media (max-width: 899px) { .dash .verdict { grid-template-columns: minmax(0, 1fr); } }
.dash .verdict .tfu-panel { gap: var(--space-4); }
.dash .verdict .one { margin: 0; font: 700 22px/30px var(--font-display); letter-spacing: -0.01em; color: var(--on-navy); }
@media (max-width: 639px) { .dash .verdict .one { font-size: 19px; line-height: 27px; } }
.dash .verdict .src { color: var(--on-navy); opacity: .8; }
.dash .verdict .tfu-panel .tfu-btn { align-self: flex-start; }
.dash .verdict .tfu-box { min-width: 0; gap: var(--space-3); }

.dash .board .tfu-table-wrap, .dash .verdict .tfu-table-wrap { box-shadow: none; }
.dash .tfu-table td .sm, .dash .tfu-table th .sm { display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; font-weight: 400; }
.dash .tfu-table td b { font-weight: 500; }
.dash .tfu-table td.ba { white-space: nowrap; }
.dash .dd { margin-left: var(--space-1); font-size: 12px; white-space: nowrap; }
.dash .up, .dash .down, .dash .flat { display: inline-flex; align-items: center; gap: 2px; }
.dash .up { color: var(--accent-text); } .dash .down { color: var(--error); } .dash .flat { color: var(--text-muted); }
.dash .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dash .page-url { overflow-wrap: anywhere; }

/* charts */
.dash .chart-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); }
.dash .chart-tools .tfu-chart-title { color: var(--text-muted); }
.dash .chart-box { min-height: 190px; }
.dash .tfu-chart svg text.end { fill: var(--text); font-weight: 500; }
.dash .tfu-legend-key { background: var(--key, var(--chart-1)); }
.dash .linkish { padding: 0; border: 0; background: none; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }

/* Release 43, the management view: a note under the headline figures, the card by assistant, and the Google and Bing chart with its two switches */
.dash .kpi-note { margin: calc(-1 * var(--space-2)) 0 var(--space-6); color: var(--text-muted); max-width: var(--measure); }
.dash .chart-choices { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.dash .chart-choices .tfu-choice-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash .chart-choices .tfu-choice-options { gap: var(--space-2); }

/* Release 47, the management summary: one compact block above "Where you stand". The same figures as the page below it; no amount
   of money is ever written here. */
.dash .mg .now-line { font-size: 18px; line-height: 26px; margin-bottom: var(--space-4); max-width: 80ch; }
.dash .mg-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.dash .mg-kpis .kpi { padding: var(--space-3) var(--space-4); }
.dash .mg-kpis .kpi .val { font-size: 26px; line-height: 32px; }
.dash .mg-kpis .kpi .dd { margin-left: 0; white-space: normal; font-size: 12px; line-height: 16px; }
.dash .mg-spark { display: block; width: 100%; height: 24px; margin-top: var(--space-2); overflow: visible; }
.dash .mg-spark polyline { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.dash .mg-kpi.srch .mg-spark polyline { stroke: var(--chart-2); }
.dash .mg-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.dash .mg-board > .tfu-box, .dash .mg > .tfu-box { min-width: 0; gap: var(--space-2); }
.dash .mg .tfu-box { padding: var(--space-3) var(--space-4); }
.dash .mg .work { gap: var(--space-3) var(--space-4); }
.dash .mg .work dd { font-size: 22px; line-height: 28px; }
.dash .mg-board .vrow { grid-template-columns: minmax(4rem, 8rem) minmax(0, 1fr) 3rem; }
.dash .mg-board .vrow.mg-asst { grid-template-columns: minmax(4rem, 7rem) minmax(0, 1fr) 2.8rem 3.6rem; }
.dash .mg-asst-list { display: grid; gap: var(--space-2); }
.dash .mg-asst-head { color: var(--text-muted); font-size: 12px; line-height: 16px; }
.dash .mg-asst-head .h1 { grid-column: 2 / 4; }
.dash .mg-asst-head .h2, .dash .mg-asst .v2 { text-align: right; }
.dash .mg-asst .v2 { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dash .mg-asst.total { border-top: 1px solid var(--border); padding-top: var(--space-2); }
.dash .mg-asst.total .nm { font-weight: 700; }
.dash .mg-asst .tr i { background: var(--chart-1); }
/* NEW-17: the summary as the website shows it: run dates, three tabs, one work line */
.dash .mg-meta { color: var(--text-muted); margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.dash .mg-tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-4); }
.dash .mg-tab { font: inherit; font-size: 14px; line-height: 20px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; }
.dash .mg-tab[aria-selected="true"] { background: var(--chart-1); border-color: var(--chart-1); color: var(--surface); }
.dash .mg-tab:focus-visible { outline: 2px solid var(--chart-1); outline-offset: 2px; }
.dash .mg-workline { margin: 0 0 var(--space-4); max-width: 80ch; }
.dash .mg-kpis .kpi .gap { display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; }

/* what we did */
.dash .work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; }
.dash .work div { min-width: 0; }
.dash .work dt { color: var(--text-muted); }
.dash .work dd { margin: var(--space-1) 0 0; font: 800 28px/34px var(--font-display); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.dash .work dd .sm { display: block; font: 400 13px/18px var(--font-sans); letter-spacing: 0; color: var(--text-muted); }
.dash .heads, .dash .dec, .dash .chg { list-style: none; margin: 0; padding: 0; }
.dash .heads li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-6); border-bottom: 1px solid var(--border); color: var(--text); }
.dash .heads li:last-child, .dash .dec li:last-child, .dash .chg li:last-child { border-bottom: 0; }
.dash .heads li::before { content: ""; position: absolute; left: 2px; top: calc(var(--space-3) + 8px); width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--accent-mark); }
.dash .dec-box { padding: var(--space-4) var(--space-6); border-radius: var(--radius-md); background: var(--surface-sunk); }
.dash .dec-title { margin: 0 0 var(--space-1); display: flex; align-items: center; gap: var(--space-2); }
.dash .dec-box .dec li { border-bottom-color: var(--border-strong); }
.dash .dec-note { margin: var(--space-2) 0 0; color: var(--text-muted); }
.dash .dec { counter-reset: d; }
.dash .dec li { counter-increment: d; position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-8); border-bottom: 1px solid var(--border); color: var(--text); }
.dash .dec li::before { content: counter(d); position: absolute; left: 0; top: var(--space-3); width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--surface); color: var(--text-muted); font: 500 12px/24px var(--font-sans); text-align: center; }
.dash .chg li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: var(--space-2) var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
@media (max-width: 899px) { .dash .chg li { grid-template-columns: minmax(0, 1fr); } }
.dash .chg .what b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.dash .chg .what span { display: block; color: var(--text-muted); }
.dash .stages { display: grid; gap: var(--space-2); align-content: start; }
.dash .stages .st { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0; color: var(--text); font-size: 14px; line-height: 20px; }
.dash .stages .st .tfu-badge { flex: none; }

/* phone: the two tables become one block per row, with the column name beside each figure */
@media (max-width: 639px) { .dash .stack thead { display: none; } .dash .stack, .dash .stack tbody, .dash .stack tr, .dash .stack th, .dash .stack td { display: block; width: 100%; } .dash .stack tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); } .dash .stack tr:last-child { border-bottom: 0; } .dash .stack th[scope="row"] { grid-column: 1 / -1; padding: 0 !important; border: 0 !important; background: none; } .dash .stack td { padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; } .dash .stack td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; } .dash .stack td .dd { margin-left: 0; display: block; }
  .dash .stack td.wait { grid-column: 1 / -1; }
}

/* tooltip */
.tip { position: fixed; z-index: 60; pointer-events: none; max-width: 280px; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); box-shadow: var(--shadow-dialog); font: 400 14px/20px var(--font-sans); }
.tip .r { display: flex; align-items: center; gap: var(--space-2); }
.tip i { flex: none; width: 8px; height: 8px; border-radius: var(--radius-full); display: inline-block; }

/* the dialog for reports and tables */
.tfu-dialog.wide { width: min(1080px, calc(100vw - 2 * var(--space-4))); }
.dash .dlg-note { color: var(--text-muted); margin-bottom: var(--space-4); max-width: var(--measure); }
.dash .dlg-pick { max-width: 280px; margin-bottom: var(--space-6); }
.dash .prose h5, .dash .prose h6 { font: 700 16px/24px var(--font-display); margin: var(--space-6) 0 var(--space-2); }
.dash .prose h4 { font: 700 20px/26px var(--font-display); margin: var(--space-8) 0 var(--space-3); }
.dash .prose h3 { font: 700 20px/26px var(--font-display); margin: var(--space-6) 0 var(--space-3); }
.dash .st-msg { display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; margin-top: 2px; }
.dash .tfu-table .tfu-select { min-width: 170px; }
.dash footer { padding: 0 0 calc(var(--space-8) + env(safe-area-inset-bottom)); color: var(--text-muted); }
/* NEW-27: three priority actions, right after the one-page summary */
.dash .pri .pri-list { margin-top: var(--space-2); max-width: 80ch; }
.dash .pri .pri-head { margin: 0; color: var(--text); }
.dash .pri .pri-why { margin: var(--space-1) 0 var(--space-2); color: var(--text); }
/* The board report's sentiment: how the answers describe you (only for a company with the switch on) */
.dash .sn .sn-counts { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-3); }
.dash .sn .sn-count b { font: 700 20px/26px var(--font-display); color: var(--text); }
.dash .sn .sn-count span { color: var(--text-muted); }
.dash .sn .sn-quotes { list-style: none; padding: 0; margin: 0 0 var(--space-3); max-width: 80ch; }
.dash .sn .sn-quote { margin: 0 0 var(--space-3); }
.dash .sn .sn-label { margin: 0; color: var(--text-muted); }
.dash .sn .sn-text { margin: var(--space-1) 0 0; padding-left: var(--space-3); border-left: 2px solid var(--border-strong); color: var(--text); }
/* NEW-27: visits from AI assistants, next to the Google and Bing card */
.dash .vis-total { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-3); color: var(--text); }
.dash .vis-total .vis-num { font: 700 28px/32px var(--font-display); }
.dash .vis-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); max-width: 480px; }
.dash .vis-row { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-1) 0; border-bottom: 1px solid var(--border); color: var(--text); }
.dash .vis-row .nm { min-width: 0; overflow-wrap: anywhere; }
.dash .vis-row .v { font-variant-numeric: tabular-nums; }
.dash .vis-note { margin: 0; color: var(--text-muted); max-width: 80ch; }

/* NEW-35: where the assistants read about you, and the Optimise dialog */
.dash .src-share { grid-template-columns: minmax(3rem, 1fr) 3rem; min-width: 8rem; }
.dash .opt-btn { display: inline-flex; margin-top: var(--space-2); }
.dash .opt-packs { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.dash .opt-packs li { display: grid; gap: var(--space-1); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.dash .opt-packs li:last-child { border-bottom: 0; }
.dash .opt-packs .sm { color: var(--text-muted); font-size: 13px; line-height: 18px; }
.dash .opt-packs li[data-ready="yes"] .opt-state { color: var(--text); font-weight: 600; }

/* Delete everything (Release 63, in React with NEW-26 wave 2; redesigned from the design canvas). Page layout only: every colour, size and component comes from the tokens and the design system's files. */
.wrap-e { display: grid; gap: var(--space-6); max-width: 960px; }
.wrap-e .t { color: var(--text-muted); }
.wrap-e .list-e { margin: 0; padding: 0 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.wrap-e .form { display: grid; gap: var(--space-4); max-width: 820px; }
.wrap-e .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-e .say { margin: 0; color: var(--text-muted); }
.wrap-e .say.bad { color: var(--text); font-weight: 500; }
.wrap-e .say:empty { display: none; }
.wrap-e .say.ok { color: var(--text-muted); }
/* the wash header with the glass panel on it (the mockup's hero): the cancellation window is the one figure worth a glance */
.wrap-e-head.head-row { margin-bottom: var(--space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.wrap-e-head.hero-wide { padding: 32px 40px; }
.wrap-e-head.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.wrap-e-head .page-head { margin-bottom: 0; }
.wrap-e-head.hero-wide .head-actions { padding: 16px 20px; min-width: 0; max-width: 100%; display: grid; gap: var(--space-2); justify-items: start; }
.wrap-e-head .head-actions .tfu-stat-label, .wrap-e-head .head-actions .tfu-stat-value { margin: 0; }
.wrap-e-head .head-actions .tfu-stat-value { font-size: 36px; line-height: 40px; }
/* the three lists side by side on a wide screen, one under the other on a phone */
.wrap-e .lists-e { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.wrap-e .lists-e .tfu-box { height: 100%; box-sizing: border-box; }
@media (max-width: 899px) { .wrap-e .lists-e { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) { .wrap-e-head.hero-wide { padding: 24px 16px; } }
/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens */
[data-theme="light"] .wrap-e .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wrap-e-head .head-actions .tfu-stat-value { color: var(--ink-strong); }

/* Fact check (Release 25): AI answers that seem to contradict a confirmed fact; the Approver decides. Layout only: colours and
   components come from the tokens and the design system's files. */
.wrap-f { display: grid; gap: var(--space-6); max-width: 820px; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.count { color: var(--text-muted); font-variant-numeric: tabular-nums; margin: 0; }
.day { margin: 0; color: var(--text-muted); }
.list-f { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.flag { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.flag:first-child { padding-top: 0; border-top: 0; }
.flag p { margin: 0; overflow-wrap: anywhere; }
.flag-quote { padding: 0 0 0 var(--space-4); border-left: 2px solid var(--border-strong); }
.flag-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.flag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.wrap-f .say.ok { color: var(--accent-text); }
.cov-list { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.cov-list li { overflow-wrap: anywhere; }

/* The redesign (NEW-26, from the design canvas): the wash header with a glass panel, the figures as stat tiles, a bar chart of the days, the answers as
   panels. Tokens only. Every rule sits under .fcx, so no other screen is touched. Light mode takes the blue and copper tints of the dashboard; dark mode
   is left as the design system gives it. */
.fcx .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.fcx .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.fcx .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 220px; display: grid; gap: 4px; }
.fcx .fcx-glance { overflow-wrap: anywhere; }
@media (max-width: 639px) { .fcx .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .fcx .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.fcx .fcx-tiles { margin-bottom: var(--space-6); }
.fcx .tfu-stat-value { font-size: 32px; line-height: 38px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fcx .fcx-chart { margin-bottom: var(--space-6); }
.fcx .fcx-bars { width: 100%; }
.fcx .wrap-f { max-width: none; }
.fcx .flag p { max-width: var(--measure); }
.fcx .flag { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.fcx .flag:first-child { padding-top: var(--space-4); border-top: 1px solid var(--border); }
.fcx .flag-quote { border-left-width: 3px; }
.fcx .list-f { gap: var(--space-3); }
.fcx .day { padding-top: var(--space-2); }
.fcx .say:empty { display: none; }

[data-theme="light"] .fcx .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .fcx .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .fcx .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .fcx .flag { background: var(--surface); }
[data-theme="light"] .fcx .flag-quote { border-left-color: var(--accent-mark); }

/* Your facts (NEW-26, wave 1): what AI answers should get right, confirmed by the Approver. Page layout only: every colour, size and
   component comes from the design system's tokens. Every rule sits under .wrap-f, so no other screen is touched by it (the page parts
   in app.css are shared by all screens). */
.wrap-f { display: grid; gap: var(--space-6); max-width: 820px; }
.wrap-f .t { color: var(--text-muted); }
.wrap-f .group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-f .count { color: var(--text-muted); font-variant-numeric: tabular-nums; margin: 0; }
.wrap-f .list-f { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.wrap-f .fact { display: grid; gap: var(--space-2); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.wrap-f .fact:first-child { padding-top: 0; border-top: 0; }
.wrap-f .fact-text { margin: 0; overflow-wrap: anywhere; }
.wrap-f .fact-src { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.wrap-f .fact-quote { margin: 0; padding: 0 0 0 var(--space-4); border-left: 2px solid var(--border-strong); color: var(--text-muted); overflow-wrap: anywhere; }
.wrap-f .fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.wrap-f .fact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.wrap-f .form { display: grid; gap: var(--space-4); }
.wrap-f .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-f .say { margin: 0; color: var(--text-muted); }
.wrap-f .say.ok { color: var(--accent-text); }
.wrap-f .say.bad { color: var(--text); font-weight: 500; }
.wrap-f .say:empty { display: none; }
.wrap-f .read { margin-top: var(--space-2); color: var(--text-muted); overflow-wrap: anywhere; }
.wrap-f .sub { display: grid; gap: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.wrap-f .sub:first-of-type { padding-top: 0; border-top: 0; }
.wrap-f .sub-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-f .sub-title { margin: 0; font-size: var(--text-lg, 1.125rem); font-weight: 600; }
.wrap-f .mini { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.wrap-f .mini li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); overflow-wrap: anywhere; }
.wrap-f select.tfu-input { max-width: 100%; }
.wrap-f textarea.tfu-input { min-height: 0; }

/* The redesign (NEW-26): the wash header with a glass panel and a progress bar, the tints in light mode. Tokens only. Every rule sits under .fx. */
.fx .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.fx .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.fx .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 260px; display: grid; gap: var(--space-2); }
.fx .fx-glance { font-variant-numeric: tabular-nums; }
.fx .glance-bar { width: 100%; }
.fx .fact-line .tfu-badge { font-weight: 700; }
@media (max-width: 639px) {
  .fx .head-row.hero-wide { padding: var(--space-6) var(--space-4); }
  .fx .head-row.hero-wide .head-actions { min-width: 0; width: 100%; }
}
[data-theme="light"] .fx .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .fx .sub-title { color: var(--ink-strong); }

/* Our knowledge base, the redesign (NEW-26, from the design canvas): the wash header with a glass panel and a progress bar, the figures as stat tiles, the
   headings as panels. Tokens only. Every rule sits under .kbp, so no other screen is touched (the page's earlier rules stay in app.css). Light mode takes the
   blue and copper tints of the dashboard; dark mode is left as the design system gives it. */
.kbp .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.kbp .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.kbp .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 240px; display: grid; gap: 8px; }
.kbp .kbp-glance { overflow-wrap: anywhere; }
.kbp .kbp-progress { width: 100%; }
@media (max-width: 639px) { .kbp .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .kbp .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.kbp .kbp-tiles { margin-bottom: var(--space-6); }
.kbp .tfu-stat-value { font-size: 32px; line-height: 38px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kbp .wrap-k { max-width: none; }
.kbp .k-text, .kbp .k-meta { max-width: var(--measure); overflow-wrap: anywhere; }
.kbp .tfu-box { padding: var(--space-5); }

[data-theme="light"] .kbp .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .kbp .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .kbp .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .kbp .k-text { border-left: 3px solid var(--accent-mark); padding-left: var(--space-4); }

/* The manual (onboarding build step 5): our own Markdown, rendered on the server. Page layout only: every colour, size and
   component comes from the tokens and the design system's files. Redesigned from the design canvas (NEW-26): one wash, the contents list on a
   glass panel at the side, the text on a card at a readable measure. */
.man { display: grid; gap: var(--space-6); grid-template-columns: minmax(180px, 260px) minmax(0, 760px); align-items: start; padding: var(--space-8); }
.man .man-side { padding: var(--space-5); min-width: 0; }
.man .man-eyebrow { margin: 0 0 var(--space-3); }
.man-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.man-list a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.man-list a:hover { background: var(--surface-sunk); }
.man-list a[aria-current] { font-weight: 600; color: var(--accent-text); background: var(--accent-tint); }
.man-body { min-width: 0; padding: var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.man-body h1 { margin: 0 0 var(--space-4); }
.man-body h2 { margin: var(--space-6) 0 var(--space-2); }
.man-body h3 { margin: var(--space-5) 0 var(--space-2); }
.man-body p { margin: 0 0 var(--space-3); }
.man-body ol, .man-body ul { margin: 0 0 var(--space-3); padding-left: var(--space-6); }
.man-body p, .man-body li { line-height: 1.6; }
.man-body blockquote { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--accent-mark); background: var(--accent-tint); border-radius: var(--radius-md); }
.man-body img, .man-body pre, .man-body table { max-width: 100%; overflow-x: auto; }
/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens */
[data-theme="light"] .man .man-side { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--nl-glass-fill) 62%); }
[data-theme="light"] .man .man-body { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 160px); }
[data-theme="light"] .man .man-body h1 { color: var(--ink-strong); }
@media (max-width: 900px) { .man { grid-template-columns: minmax(0, 1fr); padding: var(--space-6) var(--space-4); } .man-body { padding: var(--space-5) var(--space-4); } }

/* The menu of the customer app (NEW-39). Three levels that look different on purpose (Michiel, 24 Nov 2026: main items and sub-items must be identifiable):
   1 the entries in the bar: large, bold, in the bar itself (the design system's own bar);
   2 the tabs of the open entry: a rounded panel under the bar, smaller type, the open tab filled;
   3 the second row (Subscription settings): smaller still, plain text, set in under the open tab with a line at its side. */
main > .wrap { min-width: 0; max-width: 100%; }
#navLinks a { font-weight: 700; }

.menu-tabs { max-width: 100%; margin: 0 0 var(--space-5); padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.menu-tabs ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu-tab { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); font: inherit; font-size: .875rem; font-weight: 500; text-decoration: none; cursor: pointer; }
a.menu-tab:hover, .menu-tab-btn:hover { background: var(--accent-tint); color: var(--text); }
a.menu-tab[aria-current="page"], .menu-tab-btn[aria-selected="true"] { background: var(--accent-tint); color: var(--accent-text); font-weight: 700; }
.menu-tab-coming { opacity: .45; cursor: default; }
.menu-tab-coming small { font-size: .75em; margin-left: 4px; }
.menu-count { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--accent-mark); color: var(--surface); font-size: .8em; line-height: 1.5; }

/* The second row: plain, smaller, set in. */
.menu-tabs-sub { margin: calc(-1 * var(--space-3)) 0 var(--space-5) var(--space-4); padding: 0 0 0 var(--space-3); background: none; border: 0; border-left: 3px solid var(--border); border-radius: 0; }
.menu-tabs-sub .menu-tab { padding: 4px 10px; font-size: .8125rem; border-radius: 0; border-bottom: 2px solid transparent; }
.menu-tabs-sub a.menu-tab:hover { background: none; border-bottom-color: var(--border); }
.menu-tabs-sub a.menu-tab[aria-current="page"] { background: none; border-bottom-color: currentColor; color: var(--text); }

/* Tabs inside a page (Proof outside your site, Reports) are tabs of the second kind: the same panel as the tabs of an entry. */
.menu-tabs-in { margin-top: var(--space-4); }

.menu-coming { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px dashed var(--border); opacity: .55; }
.menu-coming-h { font-size: 1rem; margin: 0 0 8px; }
.menu-coming ul { margin: 0; padding-left: 1.2em; }

/* The Menu button's panel: the entries, the tabs of the open entry under it, then Switch company and Sign out last, set apart by a line. */
.menu-sub { list-style: none; margin: 2px 0 6px; padding-left: 14px; font-size: .9em; }
.menu-sub-coming { opacity: .45; }
.menu-signout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

/* Phone and tablet: the tabs wrap onto rows (no sideways scrolling), each a comfortable target. */
@media (max-width: 900px) {
  .menu-tab { min-height: 44px; padding: 10px 12px; }
  .menu-tabs-sub .menu-tab { min-height: 40px; }
  .menu-sub a, .menu-sub span { display: block; padding: 8px 0; }
}

.menu-dash a { font-weight: 700; }
.menu-dash { margin-bottom: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }

/* The owner's page (Michiel, 2026-11-19), the home of the admin of theyfindus.com. Page layout only: colours, sizes and components come from the design system's
   tokens. Every rule sits under .owner. Light mode gets the blue and copper tints of the dashboard; dark is left as the design system gives it. */
.owner { display: grid; gap: var(--space-6); }
.owner > * { min-width: 0; }
.owner .tfu-stats { margin: 0; }
.owner .tfu-stat-value { font-size: 28px; line-height: 34px; overflow-wrap: anywhere; }
.owner .own-stats .tfu-stat-value { font-size: 24px; line-height: 30px; }
.owner .tfu-meta { color: var(--text-muted); }
.owner .title { margin: 0 0 var(--space-3); }

/* the wash header with the glass panel on it */
.owner .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin: 0; }
.owner .head-row.hero-wide { padding: 32px 40px; }
.owner .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.owner .head-row .page-head { margin-bottom: 0; }
.owner .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 220px; display: grid; gap: var(--space-1); }
@media (max-width: 639px) { .owner .head-row.hero-wide { padding: 24px 16px; } }

/* what needs you */
.owner .own-needs { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-6); border: 1px solid var(--border-strong); border-left: 4px solid var(--attention); border-radius: var(--radius-md); background: var(--attention-tint); }
.owner .own-title { font-size: 18px; line-height: 24px; margin: 0; }
.owner .own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.owner .own-list li { display: block; }
.owner .own-list a { font-weight: 500; }

/* the boxes */
.owner .own-grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .owner .own-grid { grid-template-columns: minmax(0, 1fr); } }
.owner .own-box { display: grid; gap: var(--space-4); align-content: start; }
.owner .own-note { margin: 0; }
.owner .own-addon { margin: 0; }

/* bars for the packages */
.owner .own-bars { display: grid; gap: var(--space-2); }
.owner .own-bar { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 2ch; align-items: center; gap: var(--space-3); }
.owner .own-bar-name { font: 500 14px/20px var(--font-sans); overflow-wrap: anywhere; }
.owner .own-bar .tfu-stat-bar { margin-top: 0; }

/* the table of customers */
.owner .own-table th[scope="row"] { white-space: nowrap; }
.owner .own-table td { vertical-align: top; }
.owner .own-table .own-plan { min-width: 150px; font-weight: 500; }
.owner .own-table .tfu-badge { white-space: normal; text-align: left; }

/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens */
[data-theme="light"] .owner .tfu-box-fill { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .owner .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .owner .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .owner .title, [data-theme="light"] .owner .own-title { color: var(--ink-strong); }

/* People (NEW-26, wave 2): the people of a company and what each can do. Page layout only: every colour, size and component comes
   from the design system's tokens. Every rule sits under .wrap-p, so no other screen is touched by it (the page parts in app.css are
   shared by all screens). Redesigned from the design canvas: the head is one wash with a glass panel, a stat tile for each role, the people in one panel and the
   forms in panels beside it, roles as badges. The head and the tiles sit outside .wrap-p, under .view-people. Light mode takes the blue and copper tints of the dashboard. */
.wrap-p { display: grid; gap: var(--space-6); max-width: 1100px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.wrap-p > * { grid-column: 2; min-width: 0; }
.wrap-p > .people-box, .wrap-p > .tfu-notice, .wrap-p > p { grid-column: 1; }
.wrap-p > .people-box { grid-row: 1 / span 3; }
@media (max-width: 999px) { .wrap-p { grid-template-columns: minmax(0, 1fr); } .wrap-p > *, .wrap-p > .people-box { grid-column: 1; grid-row: auto; } }
.wrap-p .people { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.wrap-p .person { display: grid; gap: var(--space-2); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.wrap-p .person:last-child { border-bottom: 0; }
.wrap-p .p-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-p .p-name { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.wrap-p .p-mail { margin: 0; color: var(--text-muted); overflow-wrap: anywhere; }
.wrap-p .chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.wrap-p .chip { margin: 0; padding: 0; font-size: var(--text-sm, 0.875rem); }
.wrap-p .p-acts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.wrap-p .form { display: grid; gap: var(--space-4); }
.wrap-p .pair { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 559px) { .wrap-p .pair { grid-template-columns: minmax(0, 1fr); } }
.wrap-p .roles { display: grid; gap: var(--space-2); margin: 0; padding: 0; border: 0; }
.wrap-p .role { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2); align-items: start; }
.wrap-p .role small { color: var(--text-muted); display: block; }
.wrap-p .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-p .say { margin: 0; color: var(--text-muted); }
.wrap-p .say.ok { color: var(--accent-text); }
.wrap-p .say.bad { color: var(--text); font-weight: 500; }
.wrap-p .say:empty { display: none; }
.wrap-p .t { color: var(--text-muted); }

.view-people .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding: 32px 40px; margin: 0 0 var(--space-6); }
.view-people .head-row .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.view-people .head-row .head-actions { padding: 16px 20px; min-width: 160px; max-width: 100%; }
.view-people .glance-label { margin: 0; color: var(--text-muted); }
.view-people .glance-value { margin: 0; font-size: 36px; line-height: 42px; font-weight: 600; color: var(--text); }
@media (max-width: 639px) { .view-people .head-row { padding: var(--space-6) var(--space-4); } }
.view-people .people-tiles { margin-bottom: var(--space-6); max-width: 1100px; }
.view-people .people-tiles .tfu-stat-value { font-size: 36px; line-height: 42px; }
.view-people .tfu-stat-sub { overflow-wrap: anywhere; }
.view-people .wrap-p .person { padding: var(--space-4); border: 1px solid var(--border-control); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.view-people .wrap-p .person:last-child { border-bottom: 1px solid var(--border-control); }
.view-people .wrap-p .p-acts { justify-content: flex-end; }

[data-theme="light"] .view-people .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .view-people .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .view-people .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }

/* Prices (NEW-26, wave 2; the rules of Release 40, Michiel 2026-11-10): every price before a customer agrees to anything, also during Getting started.
   Page layout only: every colour, size and component comes from the design system's tokens. The numbers come from the same settings as the quote,
   never from this file. Every rule sits under .prices, so no other screen is touched by it. */
.prices .tfu-num { white-space: nowrap; }
.prices .calc { display: grid; gap: var(--space-4); grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; margin-bottom: var(--space-4); }
@media (max-width: 899px) { .prices .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .prices .calc { grid-template-columns: minmax(0, 1fr); } }
.prices .calc label { display: grid; gap: var(--space-1); font-weight: 600; }
.prices .calc select { font: inherit; padding: var(--space-2) var(--space-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); color: inherit; }
.prices .quote .qrow { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-1) 0; }
.prices .quote .qrow > span:last-child { white-space: nowrap; }
.prices .quote .qrow.total { font-weight: 600; border-top: 1px solid var(--border); margin-top: var(--space-1); padding-top: var(--space-2); }
.prices .care li { margin-bottom: var(--space-3); }
.prices .freq { margin: var(--space-3) 0 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.prices .freq li { display: flex; flex-direction: column; gap: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); padding: var(--space-4); margin: 0; }
.prices #example { margin-top: var(--space-5); }
.prices .tables { display: grid; gap: var(--space-6); }

/* The redesign from the design canvas "Pricing" (NEW-26, 18 Nov). The wash header with the glass panel on it, each part of the page as a card, the three ways to
   check as three tiles, the calculator on a card and the quote as a tile. Tokens only; the tints are in the light theme only. */
.prices .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.prices .head-row.hero-wide { padding: 32px 40px; }
.prices .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.prices .head-row .page-head { margin-bottom: 0; }
.prices .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 0; display: grid; gap: var(--space-1); justify-items: start; }
.prices .glance-fig { font: 800 32px/36px var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .prices .head-row.hero-wide { padding: 24px 16px; } .prices .glance-fig { font-size: 26px; line-height: 30px; } }
.prices .section { padding: var(--space-6); margin-bottom: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); min-width: 0; }
.prices .section .title { margin-top: 0; }
@media (max-width: 639px) { .prices .section { padding: var(--space-4); } }
.prices .freq-name { font: 700 18px/24px var(--font-display); }
.prices .freq li > span, .prices .freq li { overflow-wrap: anywhere; }
@media (max-width: 899px) { .prices .freq { grid-template-columns: minmax(0, 1fr); } }
.prices .calc-panel { margin-bottom: var(--space-4); }
.prices .calc-panel .calc { margin-bottom: 0; }
.prices .quote { margin-top: var(--space-4); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.prices .quote .qrow.total { font-size: 18px; line-height: 24px; }
.prices .tfu-table-wrap { max-width: 100%; }

/* Light theme only: the blue and copper tints of the dashboard, from the design system's own tokens. Dark is left as the design system gives it. */
[data-theme="light"] .prices .section { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .prices .freq li { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .prices .freq li:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .prices .calc-panel { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 32%, var(--surface) 70%); }
[data-theme="light"] .prices .title { color: var(--ink-strong); }

/* NEW-35 phase B: Proof outside your site */
.proof-view .proof-field { display: grid; gap: var(--space-1); margin-bottom: var(--space-4); }
.proof-view .proof-field .tfu-input { max-width: 36rem; }
.proof-view .proof-note { margin: 0; color: var(--text-muted); }
.proof-view .proof-note.pending { color: var(--text); font-weight: 600; }
.proof-view .proof-field[data-state="pending"] .tfu-input { border-color: var(--chart-1); }
.proof-view .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.proof-view .tfu-table th, .proof-view .tfu-table td { vertical-align: top; }
.proof-view .tfu-table td .sm { display: block; color: var(--text-muted); font-size: 13px; line-height: 18px; }
.proof-view .proof-field textarea.tfu-input { min-height: 6rem; resize: vertical; font: inherit; }
.proof-view .proof-pre { margin: var(--space-2) 0; padding: var(--space-3); background: var(--surface-sunk); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; white-space: pre; font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.proof-view .proof-block { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.proof-view .proof-block:first-of-type { border-top: 0; }
.proof-view .proof-lines, .proof-view .proof-picks { margin: var(--space-2) 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); }
.proof-view .proof-sub { margin: var(--space-3) 0 var(--space-1); font-weight: 700; }

/* The pages people see before they sign in: the request form and the two They Said pages (NEW-26, wave 4, the redesign). Tokens only, every rule under .pub.
   The look is the sign-in mockup of the design system: the Nurani wash with a glass panel; light mode gets the blue and copper tints, dark stays as the system gives it. */
/* the new stylesheet has no global [hidden] rule (the earlier one, /_ui/app.css, had), and the buttons set their own display */
.pub [hidden] { display: none !important; }
.pub .pub-hero { flex: 1; display: grid; place-items: center; align-content: center; margin: var(--space-6); padding: var(--space-12) var(--space-6); gap: var(--space-4); }
.pub .pub-hero--top { flex: 0 0 auto; padding: var(--space-10) var(--space-6); }
.pub .pub-card { width: min(440px, 100%); display: grid; gap: var(--space-5, 20px); font-family: var(--font-sans); }
.pub .pub-card--wide { width: min(640px, 100%); }
.pub .pub-card--manual { width: min(560px, 100%); }
.pub .pub-card section { display: grid; gap: var(--space-4); }
.pub .pub-card h1 { margin: 0; }
.pub .pub-card .tfu-lead { margin: 0; }
.pub .pub-card form { display: grid; gap: var(--space-4); }
.pub .pub-card .tfu-field { display: grid; gap: var(--space-2); }
.pub .pub-card .tfu-btn-primary { width: 100%; }
.pub .pub-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.pub .pub-rows { display: grid; gap: var(--space-2); }
.pub .pub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; }
.pub .pub-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pub .pub-fine { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }
.pub .pub-fine p { margin: 0; }
.pub .pub-stack { display: grid; gap: var(--space-3); }
.pub .pub-stack .tfu-btn { width: 100%; }
.pub .pub-code { font-family: var(--font-display); font-size: 32px; line-height: 40px; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }
.pub .pub-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.pub .pub-links button { color: var(--link); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pub .pub-sent b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.pub .pub-msg:empty { display: none; }
.pub .pub-manual { margin: 0; text-align: center; }
.pub .pub-manual a { color: var(--text-muted); }
.pub .pub-done { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--accent-tint); color: var(--accent-text); }

/* The home-screen manual: each phone's steps in a tinted tile */
.pub .pub-body { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 var(--space-4) var(--space-10); }
.pub .pub-tiles { display: grid; gap: var(--space-4); }
.pub .pub-tile { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); }
.pub .os h2 { margin: 0 0 var(--space-4); display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.pub .os h2 .where { color: var(--text-muted); font-family: var(--font-sans); font-weight: 400; font-size: 16px; }
.pub ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.pub ol.steps li { counter-increment: s; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.pub ol.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--accent-tint); color: var(--accent-text); font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.pub ol.steps li > p { grid-column: 2; margin: 4px 0 0; }
.pub ol.steps .note { color: var(--text-muted); margin-top: var(--space-1); }
.pub .key { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border: 1px solid var(--border-control); border-radius: var(--radius-sm); background: var(--surface-sunk); font-weight: 500; white-space: nowrap; }
.pub .key svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pub details.other summary { cursor: pointer; color: var(--link); }
.pub details.other[open] summary { margin-bottom: var(--space-4); }
.pub .pub-actions { margin-top: var(--space-6); }
.pub .pub-actions .tfu-btn { width: 100%; }

/* Light theme only: the blue wash and the copper tint from the design system's own tokens */
[data-theme="light"] .pub .pub-fine { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 40%, var(--surface) 100%); }
[data-theme="light"] .pub .pub-tile { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 34%, var(--surface) 70%); }
[data-theme="light"] .pub .pub-tile.other { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 34%, var(--surface) 70%); }
[data-theme="light"] .pub .pub-card h1 { color: var(--ink-strong); }

@media (max-width: 639px) {
  .pub .pub-hero { margin: var(--space-3); padding: var(--space-8) var(--space-3); }
  .pub .pub-hero--top { padding: var(--space-6) var(--space-3); }
  .pub .pub-pair { grid-template-columns: 1fr; }
  .pub .pub-tile { padding: var(--space-4); }
  .pub .pub-card h1 { font-size: 28px; line-height: 34px; }
}

/* Client questions (roadmap APP-9; NEW-26, wave 2), on the They Find Us design system. Phone first: one hand, one question, a few taps.
   The client's words are the point of the page, so the question field gets the room. The same page serves They Said
   (said.theyfindus.com, APP-17); server.js adds its home-screen settings. Every rule sits under .wrap-q, so no other screen is touched. */
.wrap-q .layout { display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); column-gap: var(--space-10); align-items: start; }
.wrap-q .layout > * { min-width: 0; }
@media (max-width: 1023px) { .wrap-q .layout { grid-template-columns: minmax(0, 1fr); max-width: var(--measure); margin: 0 auto; } }

/* the question */
.wrap-q .ask { display: grid; gap: var(--space-2); margin-bottom: var(--space-8); }
.wrap-q .q-eyebrow { color: var(--accent-text); }
.wrap-q .ask label.headline { display: block; margin: 0; }
@media (max-width: 639px) { .wrap-q .ask label.headline { font-size: 28px; line-height: 34px; } }
.wrap-q .ask .hint { color: var(--text-muted); margin-bottom: var(--space-4); }
.wrap-q .quote { position: relative; border: 1px solid var(--border-control); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); padding: var(--space-4) var(--space-4) var(--space-3) calc(var(--space-10) + var(--space-3)); }
.wrap-q .quote::before { content: "\201C"; position: absolute; left: var(--space-4); top: var(--space-1); font-family: var(--font-display); font-size: 56px; line-height: 56px; font-weight: 800; color: var(--accent-mark); pointer-events: none; }
.wrap-q .quote:focus-within { border-color: var(--accent-mark); box-shadow: inset 0 0 0 1px var(--accent-mark), var(--shadow-card); }
.wrap-q .quote textarea { display: block; width: 100%; min-height: 160px; padding: 0; border: 0; background: transparent; color: var(--text); resize: none; font-family: var(--font-sans); font-size: 19px; line-height: 30px; }
.wrap-q .quote textarea::placeholder { color: var(--text-muted); }
.wrap-q .quote textarea:focus-visible { outline: none; }
.wrap-q .ask.is-error .quote { border-color: var(--error); }
.wrap-q .ask.is-error .tfu-field-error { display: flex; }
.wrap-q .count { min-height: 16px; text-align: right; color: var(--text-muted); font-size: 12px; line-height: 16px; }

/* about the question */
.wrap-q .about { display: grid; gap: var(--space-8); }
.wrap-q .two { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--space-4); align-items: end; }
@media (max-width: 519px) { .wrap-q .two { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }
.wrap-q .use .tfu-choice-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 519px) { .wrap-q .use .tfu-choice-options { grid-template-columns: minmax(0, 1fr); } }
.wrap-q .opt { color: var(--text-muted); font-weight: 400; }
.wrap-q .tfu-choice.is-error .tfu-choice-option { border-color: var(--error); }
.wrap-q .tfu-choice .tfu-field-error { margin-top: var(--space-2); }
.wrap-q .tfu-choice.is-error .tfu-field-error { display: flex; }

/* save: stays in reach on a phone */
.wrap-q .save-bar { position: sticky; bottom: 0; z-index: 5; margin-top: var(--space-8); padding: var(--space-4) 0 calc(var(--space-4) + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--page) 78%, transparent); }
.wrap-q .save-bar .row { gap: var(--space-4); }
.wrap-q .save-bar .tfu-btn-primary { min-width: 200px; }
@media (max-width: 519px) { .wrap-q .save-bar .tfu-btn-primary { flex: 1 1 100%; } }
.wrap-q .save-note { color: var(--text-muted); }
.wrap-q #formMsg:empty { display: none; }
.wrap-q #formMsg { margin-top: var(--space-2); }

/* saved */
.wrap-q .saved { display: grid; gap: var(--space-4); padding: var(--space-8) var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
@media (max-width: 639px) { .wrap-q .saved { padding: var(--space-6) var(--space-4); } }
.wrap-q .saved:focus { outline: none; }
.wrap-q .saved h2 { display: flex; align-items: center; gap: var(--space-3); }
.wrap-q .saved h2 .tfu-icon { color: var(--accent-mark); }
.wrap-q .saved p { color: var(--text-muted); }
.wrap-q .saved blockquote { margin: 0; padding-left: var(--space-4); border-left: 2px solid var(--accent-mark); color: var(--text); }
@media (prefers-reduced-motion: no-preference) { .wrap-q .saved { animation: q-arrive 240ms ease-out; } @keyframes q-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } }

/* the person's questions */
.wrap-q .mine { margin-top: var(--space-10); }
@media (min-width: 1024px) { .wrap-q .mine { margin-top: 0; position: sticky; top: calc(var(--nav-height) + var(--space-8)); } }
.wrap-q .mine > h2 { margin: 0 0 var(--space-1); }
.wrap-q .mine .sub { color: var(--text-muted); margin-bottom: var(--space-4); }
.wrap-q .qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.wrap-q .qlist li { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.wrap-q .qlist q { display: block; color: var(--text); quotes: "\201C" "\201D"; overflow-wrap: anywhere; }
.wrap-q .qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); color: var(--text-muted); font-size: 13px; line-height: 18px; }

/* The redesign (NEW-26, from the design canvas): the question sits on a wash, the field is a glass panel on it, the list of the person's questions is a
   tinted panel beside the form. The page is as wide as the layout needs (the tracked page's narrower wrap is not wanted here). Light mode takes the blue
   and copper tints of the dashboard; dark mode is left as the design system gives it. Tokens only. */
.wrap-q.qn { display: block; max-width: none; }
.wrap-q.qn .ask.nl-hero { padding: 28px 32px; gap: var(--space-2); }
@media (max-width: 639px) { .wrap-q.qn .ask.nl-hero { padding: var(--space-5) var(--space-4); } }
.wrap-q.qn .ask .quote.nl-glass { box-shadow: var(--shadow-card); }
.wrap-q.qn .ask .hint { margin-bottom: var(--space-3); }
.wrap-q.qn .mine { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
@media (max-width: 559px) { .wrap-q.qn .mine { padding: var(--space-4); } }
.wrap-q.qn .qlist li { box-shadow: var(--shadow-card); }
[data-theme="light"] .wrap-q.qn .mine { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wrap-q.qn .qlist li:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 34%, var(--surface) 70%); }
[data-theme="light"] .wrap-q.qn .qlist li:nth-child(even) { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 34%, var(--surface) 70%); }
[data-theme="light"] .wrap-q.qn .saved { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wrap-q.qn .mine > h2 { color: var(--ink-strong); }

/* The run report and the monthly report (Release 116): the They Find Us look for the text the engine writes. Each part of the report is a section (see reportLayout in
   dashboard/did.logic.js): the headlines in the navy panel, the findings in cards, what we suggest next as numbered cards. Tokens only, both themes. */
html[data-theme] .rp .rp-s { margin: var(--space-4) 0 0; }
html[data-theme] .rp .rp-s > h4 { margin: 0 0 var(--space-3); font: 700 20px/26px var(--font-display); letter-spacing: -0.01em; color: var(--text); }
html[data-theme] .rp .rp-s ul, html[data-theme] .rp .rp-s ol { list-style: none; margin: 0; padding: 0; }
html[data-theme] .rp .rp-s p { margin: 0 0 var(--space-3); }

/* the headlines: one navy panel */
html[data-theme] .rp .rp-head { background: var(--panel); color: var(--on-navy); border-radius: var(--radius-lg); padding: var(--space-8); }
html[data-theme] .rp .rp-head > h4 { margin-bottom: var(--space-3); font: 500 12px/16px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-300); }
html[data-theme] .rp .rp-head li, html[data-theme] .rp .rp-head p { font: 700 20px/28px var(--font-display); letter-spacing: -0.01em; color: var(--on-navy); }
html[data-theme] .rp .rp-head li { padding: var(--space-3) 0; border-top: 1px solid color-mix(in srgb, var(--on-navy-muted) 35%, transparent); }
html[data-theme] .rp .rp-head li:first-child { border-top: 0; padding-top: 0; }
html[data-theme] .rp .rp-head li:last-child { padding-bottom: 0; }
html[data-theme] .rp .rp-head p:last-child { margin-bottom: 0; }

/* the findings: one card for each */
html[data-theme] .rp .rp-find ul, html[data-theme] .rp .rp-other ul { display: grid; gap: var(--space-3); }
html[data-theme] .rp .rp-find li, html[data-theme] .rp .rp-other li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }

/* what we suggest next: numbered cards */
html[data-theme] .rp .rp-next ul { display: grid; gap: var(--space-3); counter-reset: rp-n; }
html[data-theme] .rp .rp-next li { counter-increment: rp-n; display: flex; gap: var(--space-4); align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: var(--space-4); }
html[data-theme] .rp .rp-next li::before { content: counter(rp-n); flex: none; width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; font: 700 15px/1 var(--font-display); background: var(--attention); color: var(--navy); }

/* a table in a report keeps its columns, in the design's table */
html[data-theme] .rp table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
html[data-theme] .rp th, html[data-theme] .rp td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); }
html[data-theme] .rp th { font-weight: 600; color: var(--text-muted); font-size: 13px; letter-spacing: 0.04em; }
html[data-theme] .rp-intro { margin: 0 0 var(--space-3); }

html[data-theme] .prose.rp { max-width: none; }

/* Review (the Approver's page), on the They Find Us design system. The draft text is the point of the page.
   The flags come first, because approval waits for them (hard rule 1). The decision stays in reach while reading:
   beside the text on wide screens, at the bottom of the screen on phones.
   Every rule sits under .rv, so no other screen's page parts can meet these. Tokens only, no raw colours. */

/* one draft: text on the left, facts and the decision on the right; on phones: facts, flags and text, decision */
.rv .detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--space-8); align-items: stretch; }
.rv .d-main { display: grid; gap: var(--space-6); align-content: start; min-width: 0; }
.rv .d-main > * { min-width: 0; }
.rv .d-side { display: flex; flex-direction: column; gap: var(--space-6); min-width: 0; }
.rv .d-decide { position: sticky; top: calc(var(--nav-height) + var(--space-4)); }
@media (max-width: 959px) {
  .rv .detail { display: flex; flex-direction: column; gap: var(--space-6); }
  .rv .d-side { display: contents; }
  .rv .d-facts { order: 1; }
  .rv .d-main { order: 2; }
  .rv .d-roster { order: 3; }
  .rv .d-decide { order: 4; top: auto; bottom: 0; margin: 0 calc(-1 * var(--space-2)); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); box-shadow: var(--shadow-dialog); z-index: 5; }
  .rv .d-decide > h2 { display: none; }
  .rv .d-decide .decide-msg { margin-bottom: var(--space-2); }
}
.rv .decide-msg { color: var(--text-muted); margin-bottom: var(--space-4); }
.rv .decide-msg.is-open { color: var(--attention-text); }
.rv .decide-btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.rv .decide-btns .tfu-btn-primary { flex: 1 1 auto; }

/* the decision, once made */
.rv .decided { margin-bottom: var(--space-6); }
.rv .decided blockquote { margin: var(--space-2) 0 0; padding-left: var(--space-3); border-left: 2px solid currentColor; color: var(--text); }
.rv .decided ul { margin: var(--space-2) 0 0; padding-left: 1.2em; }
.rv .decided .row { margin-top: var(--space-3); }
.rv .decided .row .small { color: var(--text-muted); }
.rv .reopen-msg { margin-top: var(--space-3); }

/* the topic the drafting run chose and why: at the top, so topic and text are approved in one step */
.rv .topic { margin-top: var(--space-3); display: grid; gap: var(--space-1); }
.rv .topic p { margin: 0; }
.rv .topic .label { color: var(--text-muted); margin-right: var(--space-1); }
.rv .topic-why { color: var(--text-muted); }

/* a monthly report: the counted figures under the text, read-only, wider than a text */
.rv .counted { max-width: none; }
.rv .counted .tfu-table-wrap { margin-bottom: var(--space-4); }
.rv .counted td:first-child { min-width: 180px; }
.rv .counted td:not(:first-child) { white-space: nowrap; }
.rv .d-counted { gap: var(--space-4); }

/* flags: the design system's FlagsList. An answered flag shows "Answered" with the copper check. */
.rv .tfu-flags-list label { display: block; }
.rv .tfu-flags-list .tfu-input { background: var(--surface); }

/* the text and the editor */
.rv .text-note { color: var(--text-muted); }
.rv .ver-banner .tfu-btn { margin-top: var(--space-3); }
.rv .editor { display: grid; gap: var(--space-4); }
.rv .editor textarea.tfu-input.src { min-height: 60vh; font-family: var(--font-mono); font-size: 14px; line-height: 22px; }
.rv .preview { border-top: 1px solid var(--border); padding-top: var(--space-6); }
.rv .msg:empty { display: none; }
.rv .d-text { gap: var(--space-4); }
.rv .d-text .prose { margin-top: var(--space-2); }
.rv .pending { margin-left: var(--space-2); vertical-align: middle; }

/* small parts that were inline styles on the earlier page */
.rv .nowrap { white-space: nowrap; }
.rv .addr-note { color: var(--text-muted); }
.rv .claims-note { margin-top: var(--space-2); }
.rv .dlg-lead { color: var(--text-muted); margin-bottom: var(--space-6); }
.rv .dlg-msg { margin-top: var(--space-4); }

/* The redesign (NEW-26): the wash header with a glass panel, tiles, the beam on the decision box, the blue and copper tints in light mode. Tokens only. */
.rv .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.rv .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.rv .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 260px; display: grid; gap: var(--space-2); }
.rv .rv-glance { overflow-wrap: anywhere; }
.rv .glance-bar { width: 100%; }
.rv .tfu-stats { margin-bottom: var(--space-6); }
.rv .tfu-stat-value { font-variant-numeric: tabular-nums; }
.rv .tfu-flags-list li { padding-top: var(--space-3); }
@media (max-width: 639px) {
  .rv .head-row.hero-wide { padding: var(--space-6) var(--space-4); }
  .rv .head-row.hero-wide .head-actions { min-width: 0; width: 100%; }
  .rv .tfu-stats { grid-template-columns: 1fr; }
}
[data-theme="light"] .rv .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .rv a.tfu-box { background: linear-gradient(180deg, var(--nl-wash-tint) 0%, var(--surface) 120px); }
[data-theme="light"] .rv .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .rv .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .rv .d-decide { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 32%, var(--surface) 70%); }
[data-theme="light"] .rv .title { color: var(--ink-strong); }

/* Settings (NEW-26, wave 2; roadmap APP-14; redesigned from the design canvas): where we send mail for this customer. Page layout only: every colour, size and component comes
   from the design system's tokens. The page parts in app.css are shared, so every rule sits under .wrap-settings (the boxes) or .view-settings (the head and the
   figures). The head is one wash with a glass panel, the figures are stat tiles, each brand and the IndexNow box are panels. Light mode takes the blue and copper tints
   of the dashboard. */
.wrap-settings { display: grid; gap: var(--space-6); max-width: 1100px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.wrap-settings > * { min-width: 0; }
@media (max-width: 999px) { .wrap-settings { grid-template-columns: minmax(0, 1fr); } }
.wrap-settings .brands { display: grid; gap: var(--space-6); }
.wrap-settings .form { display: grid; gap: var(--space-4); }
.wrap-settings .last { color: var(--text-muted); margin: 0; }
.wrap-settings .say { margin: 0; color: var(--text-muted); }
.wrap-settings .say.ok { color: var(--accent-text); }
.wrap-settings .say:empty { display: none; }
.wrap-settings .readonly { margin: 0; overflow-wrap: anywhere; color: var(--text); }
.wrap-settings .ro-label { color: var(--text-muted); }
.wrap-settings .inx-site { display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.wrap-settings .inx-site code { overflow-wrap: anywhere; }
.wrap-settings .inx-site h3 { margin: 0; }
.wrap-settings .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
/* NEW-27: Report recipients, for the Approver: one row per address with its Remove button. */
.wrap-settings .rr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.wrap-settings .rr-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.wrap-settings .rr-who { display: grid; gap: var(--space-1); min-width: 0; }
.wrap-settings .rr-email { margin: 0; overflow-wrap: anywhere; color: var(--text); }
.wrap-settings .rr-added { margin: 0; color: var(--text-muted); }
/* The They Find Us link (Michiel, 2026-11-19): the line for the footer wraps on a phone; a refused save shows in the error colour. */
.wrap-settings .link-html code { overflow-wrap: anywhere; }
.wrap-settings .say.link-err { color: var(--error); }
/* NEW-27: the Google Analytics property; the steps for the property's Administrator wrap on a phone (our address is long). */
.wrap-settings .ga-steps { margin: 0; padding-left: var(--space-6); display: grid; gap: var(--space-1); overflow-wrap: anywhere; }

.view-settings .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); padding: 32px 40px; margin: 0 0 var(--space-6); }
.view-settings .head-row .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.view-settings .head-row .head-actions { padding: 16px 20px; min-width: 160px; max-width: 100%; }
.view-settings .glance-label { margin: 0; color: var(--text-muted); }
.view-settings .glance-value { margin: 0; font-size: 36px; line-height: 42px; font-weight: 600; color: var(--text); }
@media (max-width: 639px) { .view-settings .head-row { padding: var(--space-6) var(--space-4); } }
.view-settings .settings-tiles { margin-bottom: var(--space-6); max-width: 1100px; }
.view-settings .settings-tiles .tfu-stat-value { font-size: 36px; line-height: 42px; }

[data-theme="light"] .view-settings .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .view-settings .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .view-settings .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }

/* Getting started (onboarding build step 2, docs/onboarding-design.md section 8b): five steps on one screen, with a saved
   position, so someone can stop and come back. Page layout only: colours, sizes and components come from tokens.css and
   bundle.css. On phones the step list is a row of numbers above the step. Every rule sits under .wrap-s, so no other screen is touched
   by it (the page parts in app.css are shared by all screens). */
.wrap-s .ob { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (min-width: 880px) { .wrap-s .ob { grid-template-columns: 240px minmax(0, 720px); gap: var(--space-8); } .wrap-s .ob-side { position: sticky; top: var(--space-6); } }
.wrap-s .ob-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.wrap-s .ob-step { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--control-height); padding: var(--space-2); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text); font: 400 15px/20px var(--font-sans); text-align: left; cursor: pointer; }
.wrap-s .ob-step:hover { background: var(--surface-sunk); }
.wrap-s .ob-step[aria-current] { background: var(--accent-tint); font-weight: 500; }
.wrap-s .ob-num { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; border: 2px solid var(--border-control); border-radius: var(--radius-full); color: var(--text-muted); font: 500 13px/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.wrap-s .ob-step[aria-current] .ob-num { border-color: var(--accent-mark); color: var(--accent-text); }
.wrap-s .ob-step.is-done .ob-num { border-color: var(--accent-mark); background: var(--accent-mark); color: var(--surface); }
.wrap-s .ob-saved { margin-top: var(--space-3); color: var(--text-muted); }
@media (max-width: 879px) {
  .wrap-s .ob-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .wrap-s .ob-step { justify-content: center; padding: var(--space-1); }
  .wrap-s .ob-step .ob-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wrap-s .ob-saved { display: none; }
}
.wrap-s .ob-box { gap: var(--space-4); }
.wrap-s .ob-of { color: var(--accent-text); }
.wrap-s #stepTitle:focus { outline: none; } /* focus moves here at each step, for screen readers; nobody types here */
.wrap-s .ob-form { display: grid; gap: var(--space-6); }
.wrap-s .rows { display: grid; gap: var(--space-2); }
.wrap-s .pair { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 559px) { .wrap-s .pair { grid-template-columns: minmax(0, 1fr); } }
.wrap-s .site-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.wrap-s .comp-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
.wrap-s .q-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) 150px auto; align-items: start; }
.wrap-s textarea.q-text { min-height: 0; }
/* NEW-30: with brands, a question and a competitor get a Brand choice before the Remove button */
.wrap-s .comp-row.has-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px auto; }
.wrap-s .q-row.has-brand { grid-template-columns: minmax(0, 1fr) 150px 170px auto; }
@media (max-width: 559px) {
  .wrap-s .comp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wrap-s .comp-row .tfu-input:first-child { grid-column: 1 / -1; }
  .wrap-s .q-row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
  .wrap-s .q-row .q-text { grid-column: 1 / -1; }
  .wrap-s .comp-row.has-brand, .wrap-s .q-row.has-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
}
.wrap-s .group { display: grid; gap: var(--space-2); }
.wrap-s .person-row { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); }
.wrap-s .person-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.wrap-s .person-head p { margin: 0; }
.wrap-s .p-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-2) var(--space-4); margin: 0; padding: 0; border: 0; }
.wrap-s .p-roles legend { grid-column: 1 / -1; padding: 0; }
.wrap-s .p-roles small { color: var(--text-muted); display: block; }
.wrap-s .who { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.wrap-s .who li { display: grid; gap: 2px; }
.wrap-s .data-note { display: grid; gap: var(--space-2); margin-top: var(--space-6); }
.wrap-s .data-note p { margin: 0; }
.wrap-s .scope { display: grid; gap: var(--space-2); }
.wrap-s .chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.wrap-s .chips .chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-2); border: 1px solid var(--border-control); border-radius: 999px; }
.wrap-s .chip-first { color: var(--text-muted); }
.wrap-s .pair-add { margin-top: var(--space-2); }
.wrap-s .add-picked { margin-top: var(--space-6); }
.wrap-s .mt-2 { margin-top: var(--space-2); }
.wrap-s .brands { min-height: 0; }
.wrap-s .ob-narrow { max-width: 720px; }
.wrap-s .ob-done { max-width: 720px; display: grid; gap: var(--space-6); }
.wrap-s .ob-first { display: grid; gap: var(--space-4); }
.wrap-s .quote { display: grid; gap: var(--space-1); }
.wrap-s .quote .qrow { display: flex; justify-content: space-between; gap: var(--space-3); }
.wrap-s .quote .qrow > span:last-child { white-space: nowrap; }   /* Release 39: the longer labels wrap, the amount never does */
.wrap-s .quote .qrow.total { font-weight: 600; border-top: 1px solid var(--border); padding-top: var(--space-2); margin-top: var(--space-1); }
.wrap-s .prepare-list { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); }
.wrap-s .group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-s .count { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.wrap-s .quiet { color: var(--text-muted); }
.wrap-s .ob-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-s .msg:empty { display: none; }
.wrap-s .missing { margin: var(--space-2) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); }
.wrap-s .missing button { padding: 0; border: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.wrap-s .sum-q { margin: 0; padding-left: 1.2em; }
.wrap-s .more-body .sum-q { color: var(--text); }
.wrap-s .comp-note { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: calc(-1 * var(--space-1)) 0 var(--space-2); color: var(--text-muted); overflow-wrap: anywhere; }
/* Release 44: advice under a tracked question and the mix above the list. Advice only: it never blocks a save. */
.wrap-s .q-note { grid-column: 1 / -1; margin: calc(-1 * var(--space-1)) 0 var(--space-2); color: var(--text-muted); overflow-wrap: anywhere; }
.wrap-s .q-note[hidden] { display: none; }
.wrap-s .q-mix { margin: 0; color: var(--text-muted); max-width: var(--measure); }
.wrap-s .q-help { margin: var(--space-2) 0 0; }
.wrap-s .q-help ul { margin: var(--space-2) 0 0; padding-left: var(--space-6); }
.wrap-s .read { color: var(--text-muted); overflow-wrap: anywhere; }
/* Release 45: "Review my questions". Advice only: nothing is saved until the customer presses a button and saves the step. */
.wrap-s .q-rev { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.wrap-s .q-rev-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-s .q-rev p, .wrap-s .q-rev ul { margin: 0; }
.wrap-s .q-rev-panel { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); }
.wrap-s .q-rev-adds { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.wrap-s .q-rev-add { display: grid; gap: var(--space-1); overflow-wrap: anywhere; }
.wrap-s .q-rev-item { grid-column: 1 / -1; display: grid; gap: var(--space-2); margin: calc(-1 * var(--space-1)) 0 var(--space-2); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--accent-mark); background: var(--accent-tint); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.wrap-s .q-rev-item p { margin: 0; }
.wrap-s .q-rev-item[hidden] { display: none; }
.wrap-s .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Redesign from the design canvas (NEW-26): the wash header with the glass panel on it, the steps as a card, the tints of the dashboard. Tokens only. */
.wrap-s .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.wrap-s .head-row.hero-wide { padding: 32px 40px; }
.wrap-s .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.wrap-s .head-row .page-head { margin-bottom: 0; }
.wrap-s .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 200px; max-width: 100%; display: grid; gap: var(--space-2); justify-items: start; }
.wrap-s .head-actions .tfu-stat-label, .wrap-s .head-actions .tfu-stat-value { margin: 0; }
.wrap-s .head-actions .tfu-stat-value { font-size: 36px; line-height: 40px; }
.wrap-s .ob-meter { width: 100%; height: 8px; border-radius: var(--radius-full); background: var(--border); overflow: hidden; }
.wrap-s .ob-meter > span { display: block; height: 100%; border-radius: var(--radius-full); background: var(--accent-mark); }
@media (max-width: 639px) { .wrap-s .head-row.hero-wide { padding: 24px 16px; } }
.wrap-s .ob-side { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.wrap-s .ob-box { box-shadow: var(--shadow-card); }
.wrap-s .ob-step.is-done .ob-label { color: var(--text); }
.wrap-s .ob-step[aria-current] .ob-num { background: var(--surface); }
@media (max-width: 879px) { .wrap-s .ob-side { padding: var(--space-2); } }
[data-theme="light"] .wrap-s .ob-side { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wrap-s .ob-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wrap-s .data-note, [data-theme="light"] .wrap-s .q-rev-panel { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wrap-s .head-actions .tfu-stat-value, [data-theme="light"] .wrap-s .ob-box .tfu-box-title { color: var(--ink-strong); }
.wrap-s .data-note { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }

/* Your subscription (NEW-26, wave 2): what the customer agreed with us, all in USD, with the options to upgrade. Page layout only: every colour, size and
   component comes from the design system's tokens. Every rule sits under .subs, so no other screen is touched by it (the page parts in app.css are shared). */
.subs .tfu-stat-value { font-size: 28px; line-height: 34px; overflow-wrap: anywhere; }
.subs .two { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 899px) { .subs .two { grid-template-columns: minmax(0, 1fr); } }
.subs #incl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
.subs #incl > div { align-content: start; }
@media (max-width: 519px) { .subs #incl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 639px) {
  .subs .tfu-stat-value { font-size: 22px; line-height: 28px; }
  /* history as a list on phones: each change one block, the column names as small labels */
  .subs .hist thead { display: none; }
  .subs .hist, .subs .hist tbody, .subs .hist tr, .subs .hist td { display: block; }
  .subs .hist tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); }
  .subs .hist tbody tr:last-child { border-bottom: 0; }
  .subs .hist td { padding: 0; border: 0; text-align: left; }
  .subs .hist td.tfu-num { text-align: left; margin-top: var(--space-1); }
  .subs .hist td[data-k]::before { content: attr(data-k) ": "; color: var(--text-muted); }
}
.subs .tfu-table tfoot th, .subs .tfu-table tfoot td { border-top: 1px solid var(--border-strong); border-bottom: 0; font-weight: 600; }
.subs .price-note { margin-top: var(--space-3); color: var(--text-muted); }
.subs .opt { display: grid; gap: var(--space-4); align-content: start; }
.subs .opt .tfu-checklist li { padding: var(--space-2) 0; font-size: 15px; line-height: 21px; }
.subs .opt .tfu-check { width: 24px; height: 24px; }
.subs .opt-price { display: grid; gap: 2px; padding-top: var(--space-4); border-top: 1px solid var(--border); }
.subs .opt-price .big { font: 700 22px/28px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.subs .opt-price .diff { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.subs .opt .tfu-btn { justify-self: start; }
.subs .opt-hint { color: var(--text-muted); }
.subs .pending-row { margin-top: var(--space-3); }
.subs .summary { margin-bottom: var(--space-2); color: var(--text-muted); max-width: var(--measure); }
.subs .dlg-lead { color: var(--text-muted); margin-bottom: var(--space-4); }
.subs .dlg-what { margin-bottom: var(--space-4); }
.subs .dlg-next { margin-top: var(--space-4); color: var(--text-muted); }
.subs .dlg-next b { color: var(--text); font-weight: 500; }
.subs .msg { margin-top: var(--space-4); }
.subs .msg:empty { display: none; }
.subs .hist td, .subs .hist th { white-space: normal; }
@media (max-width: 639px) { .subs .tfu-dialog-foot { flex-wrap: wrap; } .subs .tfu-dialog-foot .tfu-btn { width: 100%; } }

/* The redesign from the design canvas "Usage and bills" (NEW-26, 18 Nov). The wash header with the glass panel on it, tinted tiles, cards, the upgrade options as
   cards with their price as the headline. Tokens only; the tints are in the light theme only. */
.subs .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.subs .head-row.hero-wide { padding: 32px 40px; }
.subs .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.subs .head-row .page-head { margin-bottom: 0; }
.subs .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 0; display: grid; gap: var(--space-1); justify-items: start; }
.subs .glance-fig { font: 800 32px/36px var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 639px) { .subs .head-row.hero-wide { padding: 24px 16px; } .subs .glance-fig { font-size: 26px; line-height: 30px; } }
.subs .tfu-stats .tfu-stat { box-shadow: var(--shadow-card); }
.subs .opt { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-card); padding: var(--space-6); min-width: 0; }
.subs .opt-price .big { font-size: 32px; line-height: 36px; font-weight: 800; color: var(--ink-strong); }
.subs .tfu-table-wrap { max-width: 100%; }
.subs .tfu-table tfoot tr { background: var(--accent-tint); }
.subs .hist { box-shadow: none; }
[data-theme="light"] .subs .tfu-box, [data-theme="light"] .subs .opt { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .subs .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .subs .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .subs .title { color: var(--ink-strong); }

/* Tracked questions (Release 10): what we ask the AI assistants at every run. Page layout only: every colour, size and component comes from the
   design system's tokens. Every rule sits under .wrap-q, so no other screen is touched by it (the page parts in app.css are shared by all screens). */
.wrap-q { display: grid; gap: var(--space-6); max-width: 820px; }
.wrap-q .rows { display: grid; gap: var(--space-2); }
.wrap-q .q-row { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr) 150px auto; align-items: start; }
.wrap-q textarea.q-text { min-height: 0; }
.wrap-q .q-type { align-self: center; color: var(--text-muted); }
@media (max-width: 559px) {
  .wrap-q .q-row { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
  .wrap-q .q-row .q-text { grid-column: 1 / -1; }
}
/* NEW-30: with brands of its own, each question also has the brand choice. */
.wrap-q .q-row.has-brand { grid-template-columns: minmax(0, 1fr) 150px 220px auto; }
@media (max-width: 559px) { .wrap-q .q-row.has-brand { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } }
.wrap-q .group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.wrap-q .count { color: var(--text-muted); font-variant-numeric: tabular-nums; margin: 0; }
.wrap-q .count.bad { color: var(--attention-text, var(--text)); font-weight: 500; }
.wrap-q .form { display: grid; gap: var(--space-4); }
.wrap-q .row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-q .say { margin: 0; color: var(--text-muted); }
.wrap-q .say.ok { color: var(--accent-text); }
.wrap-q .say.bad { color: var(--text); font-weight: 500; }
.wrap-q .sum-q { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.wrap-q .t { color: var(--text-muted); }
.wrap-q .quiet { color: var(--text-muted); }
/* Release 45: "Review my questions" (the same panel as Getting started, /_ui/question-review.js). Advice only: nothing is saved until the
   Approver presses Save. */
.wrap-q .q-rev { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.wrap-q .q-rev-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.wrap-q .q-rev p, .wrap-q .q-rev ul { margin: 0; }
.wrap-q .q-rev-panel { display: grid; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md); }
.wrap-q .q-rev-adds { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.wrap-q .q-rev-add { display: grid; gap: var(--space-1); overflow-wrap: anywhere; }
.wrap-q .q-rev-item { grid-column: 1 / -1; display: grid; gap: var(--space-2); margin: calc(-1 * var(--space-1)) 0 var(--space-2); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--accent-mark); background: var(--accent-tint); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.wrap-q .q-rev-item p { margin: 0; }
.wrap-q .q-rev-item[hidden] { display: none; }

/* The redesign (NEW-26, from the design canvas): the head is one wash with a glass panel holding the figure, the list sits in a tinted panel, the
   type of a question is a badge. Light mode takes the blue and copper tints of the dashboard; dark mode is left as the design system gives it. Tokens only. */
.tk-view .head-row.hero-wide { display: flex; flex-wrap: wrap; gap: var(--space-6); padding: 32px 40px; align-items: center; margin-bottom: var(--space-6); }
.tk-view .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 520px; overflow: visible; }
.tk-view .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 220px; display: grid; gap: 4px; }
.tk-view .tk-figure { margin: 0; font-size: 44px; line-height: 48px; font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .tk-view .head-row.hero-wide { padding: var(--space-6) var(--space-4); } .tk-view .head-row.hero-wide .head-actions { min-width: 0; width: 100%; } }
.wrap-q.tk .tfu-box { padding: var(--space-6); }
.wrap-q.tk .q-row { padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.wrap-q.tk .q-row:last-child { border-bottom: 0; }
.wrap-q.tk .q-type { margin: 0; }
@media (max-width: 559px) { .wrap-q.tk .tfu-box { padding: var(--space-4); } }
[data-theme="light"] .wrap-q.tk .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wrap-q.tk .q-rev-panel { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .tk-view .tk-glance .tk-figure { color: var(--ink-strong); }

/* Webmaster tasks (the webmaster view, roadmap APP-10), on the They Find Us design system. One task per approved change.
   The webmaster builds it and says what happened; we then check the live page and tell Bing and the other IndexNow engines (not Google: IndexNow does not reach it).
   Every rule sits under .wm, so no other screen's page parts can meet these. Tokens only, no raw colours. */

/* one task: facts and the report beside the text on wide screens; facts, text, report on phones */
.wm .detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto 1fr; column-gap: var(--space-8); row-gap: var(--space-6); align-items: start; }
.wm .d-facts { grid-column: 2; grid-row: 1; }
.wm .d-report { grid-column: 2; grid-row: 2; display: grid; gap: var(--space-6); }
.wm .d-main { grid-column: 1; grid-row: 1 / span 3; display: grid; gap: var(--space-6); min-width: 0; }
.wm .d-main > *, .wm .d-facts, .wm .d-report { min-width: 0; }
@media (max-width: 959px) {
  .wm .detail { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .wm .d-facts, .wm .d-report, .wm .d-main { grid-column: 1; grid-row: auto; }
}
.wm .copy-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.wm .copy-say { color: var(--accent-text); }
.wm .copy-say:empty { display: none; }
.wm details.more { border-top: 1px solid var(--border); }
.wm details.more > summary { min-height: var(--control-height); color: var(--text); font: 500 15px/20px var(--font-sans); }
.wm details.more > .more-body { padding-bottom: var(--space-4); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-muted); }
.wm .what { color: var(--text-muted); max-width: var(--measure); white-space: pre-wrap; }
.wm .text-note { color: var(--text-muted); }
.wm .d-text .prose { margin-top: var(--space-2); }
.wm .tfu-notice ul { margin: var(--space-1) 0 0; padding-left: 1.2em; }
.wm .approved-words { color: var(--text-muted); }

/* the report */
.wm .form { display: grid; gap: var(--space-6); }
.wm .form .tfu-choice.is-error .tfu-choice-option { border-color: var(--error); }
.wm .form .tfu-choice .tfu-field-error { margin-top: var(--space-2); }
.wm .form .tfu-choice.is-error .tfu-field-error { display: flex; }
.wm .form textarea.tfu-input.short { min-height: 76px; }
.wm .opt { color: var(--text-muted); font-weight: 400; }
.wm .result-lines { display: grid; gap: var(--space-2); color: var(--text); }
.wm .result-lines a { overflow-wrap: anywhere; }
.wm .result-lines .changes { white-space: pre-wrap; color: var(--text-muted); }
.wm .hist td.when { white-space: nowrap; color: var(--text-muted); }
.wm .hist .sm { display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; }

/* The redesign from the design canvas "Review" (NEW-26, 18 Nov). The wash header with the glass panel on it, tinted tiles and cards. Tokens only; the tints are in
   the light theme only. */
.wm .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.wm .head-row.hero-wide { padding: 32px 40px; }
.wm .head-row.hero-wide .page-hero { background: none; padding: 0; margin: 0; border-radius: 0; flex: 1 1 420px; overflow: visible; }
.wm .head-row .page-head { margin-bottom: 0; }
.wm .head-row.hero-wide .head-actions { padding: 16px 20px; min-width: 0; display: grid; gap: var(--space-1); justify-items: start; }
.wm .glance-fig { font: 800 32px/36px var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 639px) { .wm .head-row.hero-wide { padding: 24px 16px; } .wm .glance-fig { font-size: 26px; line-height: 30px; } }
.wm .tfu-stats .tfu-stat { box-shadow: var(--shadow-card); }
.wm .cards .tfu-box { box-shadow: var(--shadow-card); min-width: 0; overflow-wrap: anywhere; }
.wm .tfu-table-wrap { max-width: 100%; }
[data-theme="light"] .wm .tfu-box { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--surface) 140px); }
[data-theme="light"] .wm .tfu-stats .tfu-stat { background: linear-gradient(180deg, var(--copper-100) 0%, var(--accent-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wm .tfu-stats .tfu-stat:nth-child(odd) { background: linear-gradient(180deg, var(--nl-wash) 0%, var(--nl-wash-tint) 30%, var(--surface) 62%); }
[data-theme="light"] .wm .title { color: var(--ink-strong); }
