/* Sacred Command Center · accounts module styles. Owned by the accounts module agent. Use the semantic tokens from theme.css only (no hex, no rgba): tests/static.mjs S-a2 fails the build on a literal color.
   Accounts lists, the touchpoint marks, the Book of business containers and the Add-client wizard. No colored side stripes, no status dot without its word,
   no pills, no glow. The only marks are Live (a dot beside the word), the alert mark, Gilt and the owner mark. */

/* ── Touchpoint words and marks ────────────────────────────────────────────────────────── */
.acc-tp { display: inline-flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.acc-tp--idle { color: var(--text-2); font-weight: 600; }
.acc-at { color: var(--text-3); font-weight: 500; font-size: var(--fs-caption); letter-spacing: var(--caption-ls); }
.acc-cell-btn { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; padding: 0 var(--s-1); margin: 0 calc(var(--s-1) * -1); border-radius: var(--r-button); color: inherit; font: inherit; text-align: left; position: relative; }
.acc-cell-btn::after { content: ""; position: absolute; inset: -8px -4px; }
@media (hover: hover) { .acc-cell-btn:hover { background: var(--hover); } }
.acc-strip { display: inline-flex; align-items: center; gap: var(--s-3); min-width: 0; }
.acc-marks { display: inline-flex; align-items: center; gap: 6px; }
.acc-mark { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--text-3); }
.acc-mark--live { background: var(--live); }
.acc-mark--idle { background: var(--text-3); }
.acc-mark--none, .acc-mark--off, .acc-mark--loading { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
svg.acc-mark { width: 16px; height: 16px; border-radius: 0; background: transparent; box-shadow: none; color: var(--accent-mark); stroke-width: 1.75; }
.acc-strip-n { color: var(--text-2); font-weight: 600; font-size: var(--fs-caption); white-space: nowrap; }
.acc-site { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.acc-site:hover { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 0.2em; }

/* ── Notes above a list, the legend, other tenants ─────────────────────────────────────── */
.acc-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); }
.acc-hand { color: var(--text-2); font-size: var(--fs-caption); line-height: 1.45; letter-spacing: var(--caption-ls); }
.acc-hand b { color: var(--text); font-weight: 700; }
.acc-legend { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); margin: 0; font-size: var(--fs-caption); letter-spacing: var(--caption-ls); line-height: 1.45; }
.acc-legend > div { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); min-width: 0; }
.acc-legend dt { color: var(--text); font-weight: 700; white-space: nowrap; }
.acc-legend dd { margin: 0; color: var(--text-3); }
.acc-others { margin-top: var(--s-3); }
.acc-legend-d { color: var(--text-2); font-size: var(--fs-caption); }
.acc-legend-d summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; font-weight: 600; }
.acc-legend-d .acc-legend { margin-top: var(--s-1); }
.acc-others .ctr .table-wrap { border: 0; border-radius: 0; }

/* ── The touchpoint sheet ──────────────────────────────────────────────────────────────── */
.acc-sheet { display: flex; flex-direction: column; gap: var(--s-3); }
.acc-sheet-state { margin: 0; font-size: var(--fs-h3); font-weight: 700; }
.acc-sheet-why { margin: 0; color: var(--text-2); max-width: var(--measure); }
.acc-sheet .kv { grid-template-columns: minmax(8rem, max-content) minmax(0, 1fr); }

/* ── Book of business: the page scrolls (containers sit above the list), so the fixed-height list page rule does not apply ── */
.acc-book { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.acc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.acc-kpi { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.acc-kpi-l { font-size: var(--fs-caption); font-weight: 600; letter-spacing: var(--caption-ls); color: var(--text-3); }
.acc-kpi-n { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; color: var(--text); }
.acc-kpi-n.is-bad { color: var(--text); }
.acc-ctrs { column-count: 2; column-gap: var(--s-3); }   /* two columns that fill top to bottom: an open container never leaves a hole beside it */
.acc-ctr { min-width: 0; break-inside: avoid; margin-bottom: var(--s-3); }
.acc-ctr .ctr .table-wrap { border: 0; border-radius: 0; }
.acc-ctr-note { margin: 0; padding: var(--s-3); }
.acc-mix, .acc-ctr .ctr-in > .kv { padding: var(--s-3); }
.acc-book .lv { min-height: 28rem; }
@media (min-width: 768px) and (min-height: 560px) {
  .view:has(.acc-book), .view:has(.acc-others) { display: block; height: auto; overflow: visible; }
  .view:has(.acc-book) .module, .view:has(.acc-others) .module { display: block; }
  .view:has(.acc-book) .lv, .view:has(.acc-others) .lv { min-height: 28rem; }
  .view:has(.acc-book) .lv-bar, .view:has(.acc-others) .lv-bar { position: static; }
  .view:has(.acc-book) .lv-body > .table-wrap, .view:has(.acc-others) .lv-body > .table-wrap { height: auto; max-height: 36rem; }
}
@media (max-width: 1099px) { .acc-ctrs { column-count: 1; } }
@media (max-width: 719px) { .acc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Five tiles (Owed from Mercury beside the four hand-entered ones): one row when there is room, else the fifth takes a full row of its own */
.acc-kpis--5 > .acc-kpi:last-child { grid-column: 1 / -1; }
@media (min-width: 1360px) { .acc-kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .acc-kpis--5 > .acc-kpi:last-child { grid-column: auto; } }

/* ── The Add-client wizard ─────────────────────────────────────────────────────────────── */
.acc-wiz { display: flex; flex-direction: column; gap: var(--s-4); max-width: 52rem; min-width: 0; }
.acc-steps { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.acc-step { color: var(--text-3); }
.acc-step[aria-current="step"] { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.acc-step-h { margin: 0; font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
.acc-step-h:focus { outline: none; }
.acc-form { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); align-items: start; }
.acc-c12 { grid-column: span 12; }
.acc-c6 { grid-column: span 6; }
.acc-c4 { grid-column: span 4; }
.acc-c2 { grid-column: span 2; }
.acc-other { margin-top: var(--s-2); }
.acc-nav { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.acc-nav .acc-right { margin-left: auto; }
.acc-nav .acc-right + .btn { margin-left: 0; }
.acc-nav--wrap { gap: var(--s-2) var(--s-3); }
.acc-cands { display: flex; flex-wrap: wrap; gap: var(--s-3); min-height: 0; }
.acc-cand { flex-direction: column; height: auto; padding: var(--s-2); gap: var(--s-1); }
.acc-cand img { width: 84px; height: 84px; object-fit: contain; background: var(--linen); border-radius: var(--r-button); display: block; }
.acc-cand.is-picked { box-shadow: inset 0 0 0 2px var(--text); }
.acc-gate { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-3); margin: 0; }
.acc-upload { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.acc-back { color: inherit; text-decoration: none; }
.acc-back:hover { text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 0.2em; }
.acc-review { display: flex; flex-direction: column; gap: var(--s-2); }
.acc-review-t { margin: 0; font-size: var(--fs-h3); font-weight: 700; }
.acc-review-s { margin: 0; color: var(--text-2); line-height: 1.7; overflow-wrap: anywhere; }
.acc-login { display: flex; flex-direction: column; gap: var(--s-2); max-width: 24rem; }
.acc-result-t { margin: 0; color: var(--text-2); max-width: var(--measure); }
.acc-wiz .list > .row { align-items: center; gap: var(--s-3); }
.acc-wiz .list > .row > .chip, .acc-wiz .list > .row > .late { min-width: 4.75rem; }
.acc-wiz .row .row-s { margin-left: 0; clip-path: none; }
.acc-wiz .row .row-s > *::before { content: none; }
.acc-wiz .row .row-s > * { margin-left: 0; overflow-wrap: anywhere; }
@media (max-width: 719px) { .acc-c6, .acc-c4 { grid-column: span 12; } .acc-c2 { grid-column: span 12; } }

/* ── The onboarding checklist sheet ────────────────────────────────────────────────────── */
.acc-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-2); margin-bottom: var(--s-3); }
.acc-plan-n { font-size: var(--fs-stat); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: var(--text); }
.acc-plan-bar { flex: 1 0 100%; margin-top: var(--s-1); }
.acc-step-row { align-items: center; gap: var(--s-2); }
.acc-step-row.is-child { padding-left: var(--s-6); }
.acc-step-row.is-done .row-t { color: var(--text-3); }
.acc-step-body { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; color: inherit; font: inherit; min-height: var(--tap); justify-content: center; }
.acc-meta { font-size: var(--fs-caption); line-height: 1.45; letter-spacing: var(--caption-ls); color: var(--text-3); }
.acc-meta .late { color: var(--text); }
.acc-step-more { padding: 0; }
.acc-more-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--tap); padding: 0 var(--s-3); color: var(--text-2); font: inherit; font-weight: 600; text-align: left; }
@media (hover: hover) { .acc-more-btn:hover { background: var(--hover); } }
.acc-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.acc-facts li { display: flex; align-items: center; gap: var(--s-2); color: var(--text-2); font-weight: 600; }
.acc-facts .is-warn { color: var(--text); }
.acc-facts .i { color: var(--accent-mark); }

/* ── Wizard v2: step chips that can be opened again, fieldsets, the brand form, the plan and analytics steps ───────────── */
.acc-step { position: relative; padding: 0; }
.acc-step-b { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-2); color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; background: none; border: 0; border-radius: inherit; }
.acc-step-b::after { content: ""; position: absolute; inset: -6px -2px; }
.acc-step-b:disabled { cursor: default; }
@media (hover: hover) { .acc-step-b:not(:disabled):hover { color: var(--text); } }
.acc-fs { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.acc-fs-t { padding: 0; margin-bottom: var(--s-1); font-size: var(--fs-caption); font-weight: 700; letter-spacing: var(--caption-ls); color: var(--text-2); }
.acc-brand { gap: var(--s-5); }
.acc-colour { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.acc-swatch { flex: none; width: 28px; height: 28px; border-radius: var(--r-button); box-shadow: inset 0 0 0 1px var(--line-strong); }
.acc-swatch.is-empty { background: transparent; }
.acc-hex { max-width: 12rem; font-variant-numeric: tabular-nums; }
.acc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: end; }
.acc-row--file { grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) minmax(0, 1.6fr) minmax(6.5rem, 7.5rem) auto; }
.acc-row-x { align-self: end; }
.acc-row-flex { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.acc-pkgs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s-3); }
.acc-pkg { width: 100%; height: auto; min-height: 0; flex-direction: column; align-items: flex-start; gap: var(--s-1); padding: var(--s-3); text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; }
.acc-pkg .caption { text-transform: none; letter-spacing: var(--caption-ls); font-weight: 500; }
.acc-pkg.is-picked { box-shadow: inset 0 0 0 2px var(--text); }
.acc-pkg-n { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; color: var(--text); }
.acc-off { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.acc-off-i { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); max-width: 100%; }
.acc-off-i .btn { max-width: 100%; height: auto; min-height: 32px; padding-block: var(--s-2); line-height: 1.3; white-space: normal; text-align: left; }
.acc-off-i .state { white-space: normal; flex-wrap: wrap; min-width: 0; }
.acc-nav--wrap .btn { max-width: 100%; height: auto; min-height: var(--tap); white-space: normal; text-align: center; }
.acc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.acc-item { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3); min-width: 0; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); }
.acc-item .caption { margin: 0; max-width: var(--measure); }
.acc-item-f { max-width: 24rem; }
@media (max-width: 719px) {
  .acc-row, .acc-row--file { grid-template-columns: minmax(0, 1fr); }
  .acc-row-x { justify-self: start; }
  .acc-hex { max-width: none; }
}

.acc-notice { display: flex; flex-direction: column; gap: var(--s-1); align-items: flex-start; }

/* ── The onboarding checklist page (F11) ───────────────────────────────────────────────── */
.acc-fullview { margin: 0 0 var(--s-3); }
.acc-onb .rp-main { min-width: 0; }
.acc-ob-lead { margin: 0 0 var(--s-3); max-width: var(--measure); }
.acc-ob-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5); margin-bottom: var(--s-5); }
@media (min-width: 1280px) { .acc-ob-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.acc-ob { gap: var(--s-3); }
.acc-ob-g { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.acc-ob-gt { margin: var(--s-2) 0 0; font-size: var(--fs-caption); font-weight: 700; letter-spacing: var(--caption-ls); color: var(--text-2); }
.acc-ob-off { margin-top: var(--s-1); }
.acc-ob-act { align-self: center; flex: none; }
.acc-needs { max-width: var(--measure); }
.acc-step-body--static { cursor: default; }
.acc-step-row .check:disabled { opacity: 1; cursor: default; }
