/* console.css - the platform console shell (T14/T18) plus Business v2 (T17).
   Tokens, the four themes and the base .btn/.navbtn/.fchip/.chip/.pill/.tag colour rules all come
   from system.css (loaded first); this file is the structural layer staff.html's own inline
   <style> blocks and board.css supply on the staff console, ported to what this shell actually
   uses. Nothing here defines a colour that is not a token (DESIGN.md rule 4).

   Styles are inline in a few generated strings below (dash.js's own output does this too, e.g.
   style="margin:14px 0 4px") rather than a one-off class for every spacing tweak; the CSP in
   _headers allows it (style-src carries 'unsafe-inline'), and no script is ever inline. */

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-size: 14px; line-height: 1.45; padding-bottom: 40px; overflow-x: hidden;
}
.wrap { max-width: none; margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 32px); }
a { color: var(--accent); }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
*{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-thumb{background:var(--line);border-radius:4px}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- screens (sign-in, TOTP, MFA, no-access, the app) ------------------ */
.screen { display: none; }
.screen.on { display: block; }
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; width: 100%; max-width: 400px;
}
.card h1 { font-family: var(--display); font-size: 21px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.01em; }
.card p.sub { margin: 0 0 16px; color: var(--ink3); font-size: 13px; line-height: 1.5; }
.brandline { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 0 0 6px; }
.brandline b { font-family: var(--display); font-size: 19px; font-weight: 600; }
.brandline em { font-style: normal; color: var(--accent); }
.err { background: color-mix(in srgb, var(--crit) 14%, var(--surface)); color: var(--crit); border-radius: var(--r); padding: 9px 11px; font-size: 13px; margin: 12px 0; display: none; }
.err.on { display: block; }
.ok { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); border-radius: var(--r); padding: 9px 11px; font-size: 13px; margin: 12px 0; display: none; }
.ok.on { display: block; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---- forms -------------------------------------------------------------- */
label { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); margin: 13px 0 5px; }
input, textarea, select {
  width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 15px;
}
textarea { height: auto; min-height: 70px; padding: 9px 11px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input:disabled, select:disabled { color: var(--ink3); background: var(--surface2); }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 40px; }
.pweye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 15px; color: var(--ink3); padding: 4px 7px; }
.pweye.on { color: var(--accent); }
.hint { color: var(--ink3); font-size: 12.5px; line-height: 1.5; }

/* ---- buttons -------------------------------------------------------------- */
.btn { border: 0; border-radius: var(--r); padding: 9px 16px; font: inherit; font-weight: 600; font-size: 14px; background: var(--accent); color: var(--accent-ink); cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--surface2); color: var(--ink3); cursor: default; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--surface2); }
.btn.ghost.on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); border-color: var(--accent); }
.btn.danger { color: var(--crit); border-color: var(--crit); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.block { width: 100%; }

/* ---- dialogs, sheets, scrims ---------------------------------------------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); width: 100%; max-width: 480px; margin: auto; }
dialog::backdrop { background: rgba(6, 14, 20, .6); }
.scrim { position: fixed; inset: 0; background: rgba(6, 14, 20, .6); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.scrim[hidden] { display: none; }
.sheet { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; max-width: 480px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 18px; }
.sheet, .sheet * { color: var(--ink); }
.sheet .btn { color: var(--accent-ink); }
.sheet .btn.ghost { color: var(--ink); }
.sheet h2 { font-family: var(--display); font-size: 17px; margin: 0 0 12px; font-weight: 600; }
.sheet .acts { display: flex; gap: 9px; margin-top: 16px; }
.sheet .acts .btn { flex: 1; }

/* ---- header, doors -------------------------------------------------------- */
header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brandrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 0; }
.brand em { font-style: normal; color: var(--accent); }
.who { font-size: 11.5px; color: var(--ink3); }
.themebtn { border: 1px solid var(--line); background: var(--surface); color: var(--ink2); border-radius: 999px; width: 32px; height: 32px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.themebtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
nav.doors { display: flex; gap: 6px; padding: 4px 0 11px; overflow-x: auto; scrollbar-width: none; }
nav.doors::-webkit-scrollbar { display: none; }
.navbtn { flex: 0 0 auto; padding: 8px 13px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.navbtn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); border-color: var(--accent); }

/* ---- chips, pills, tags ---------------------------------------------------- */
.chip { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); padding: 3px 11px; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }
.fchip { border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; }
.fchip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }
.pill { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--surface2); color: var(--ink2); white-space: nowrap; display: inline-block; }
.pill.good { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.pill.warn { background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); }
.pill.crit { background: color-mix(in srgb, var(--crit) 16%, var(--surface)); color: var(--crit); }
.tag { font-family: var(--mono); display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.tag.support { background: color-mix(in srgb, var(--violet) 16%, var(--surface)); color: var(--violet); }

/* ---- the support banner: a distinct token colour, never mistaken for the app's own accent -- */
#supportbanner { background: color-mix(in srgb, var(--violet) 14%, var(--surface)); border-bottom: 1px solid var(--violet); padding: 8px 0; font-size: 13px; }
#supportbanner[hidden] { display: none; }
#supportbanner .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#supportbanner b { color: var(--violet); }
#supportbanner .sb-end { color: var(--ink3); font-family: var(--mono); font-size: 12px; }
#supportbanner .btn { margin-left: auto; }

/* ---- org switcher ----------------------------------------------------- */
.org-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 0; max-height: 50vh; overflow-y: auto; }
.org-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--ink); }
.org-row:hover { background: var(--surface2); }
.org-row.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.org-row .org-nm { flex: 1; font-weight: 600; font-size: 14px; }
.org-row .org-role { font-family: var(--mono); font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: .06em; }
.org-row.support .org-role { color: var(--violet); }
.org-sect { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin: 16px 0 6px; }
.org-sect:first-child { margin-top: 4px; }

/* ---- no-access screen --------------------------------------------------- */
.noaccess { text-align: center; padding: 60px 20px; }
.noaccess h1 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; }

/* ---- idle lock curtain, copied from staff.html --------------------------- */
#idlelock { position: fixed; inset: 0; z-index: 9999; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 20px; }
#idlelock[hidden] { display: none; }
.ilcard { width: 100%; max-width: 340px; text-align: center; }
.ilcard h2 { margin: 0 0 4px; font-size: 18px; font-family: var(--display); }
.ilcard label { text-align: left; }

/* ---- view schemes: a section the caller's scheme hides ------------------- */
[data-sec][hidden] { display: none !important; }

/* ---- Business v2 layout, and a small dash-panel subset ported from board.css
   so dash.js's head()/panel()/lines()/foot() render without pulling the whole file. */
.c-page { display: flex; flex-direction: column; gap: 14px; }
.c-page[hidden] { display: none; } /* the [hidden] UA rule and .c-page tie on specificity; this breaks the tie */
.c-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.c-col { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .c-pair { grid-template-columns: 1fr; } }
.c-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 14px; }

.lfb-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.lfb-panel.lfb-hot { border-color: var(--accent); }
.lfb-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); display: flex; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.lfb-kicker span { color: var(--ink3); letter-spacing: .04em; text-transform: none; font-size: 12px; }
.lfd-top { margin: 2px 0 14px; }
.lfb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lfb-stamp { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.lfb-stamp b { color: var(--accent); font-weight: 600; }
.lfd-headright { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lfb-live { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; color: var(--ink); }
.lfd-lines { display: flex; flex-direction: column; }
.lfd-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13.5px; }
.lfd-line:last-child { border-bottom: 0; }
.lfd-lk { color: var(--ink); min-width: 0; overflow-wrap: anywhere; } .lfd-lv { font-family: var(--mono); text-align: right; font-size: 12.5px; color: var(--ink2); white-space: nowrap; }
.lfd-ln { font-size: 11.5px; color: var(--ink3); font-weight: 400; margin-top: 2px; }
.lfd-line.lfd-sub .lfd-lk { padding-left: 14px; color: var(--ink2); font-size: 12.5px; }
.lfd-line.lfd-total .lfd-lk, .lfd-line.lfd-total .lfd-lv { font-weight: 700; color: var(--ink); }
.lfd-line.lfd-head { border-bottom: 0; padding: 10px 0 2px; }
.lfd-line.lfd-head .lfd-lk { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.lfb-muted { color: var(--ink3); font-size: 12.5px; padding: 10px 0; }

/* Business: org profile form, theme swatches, module switches, members grid, credentials */
.c-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.c-field { margin: 0; }
.c-field.c-wide { grid-column: 1 / -1; }
.c-actions { margin-top: 14px; display: flex; gap: 8px; }

.c-themes { display: flex; gap: 10px; flex-wrap: wrap; }
.c-theme { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 8px; cursor: pointer; font: inherit; color: var(--ink2); font-size: 12px; }
.c-theme.on { border-color: var(--accent); color: var(--ink); }
.c-theme i { width: 34px; height: 34px; border-radius: 6px; display: block; }

.c-switchrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.c-switchrow:last-child { border-bottom: 0; }
.c-switcht { flex: 1; font-size: 13.5px; }
.c-switcht small { display: block; color: var(--ink3); font-size: 11.5px; margin-top: 1px; }
.c-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface2); cursor: pointer; flex: 0 0 auto; padding: 0; }
.c-switch i { position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink3); transition: transform .15s ease, background-color .15s ease; }
.c-switch.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
.c-switch.on i { transform: translateX(16px); background: var(--accent); }
.c-switch:disabled { opacity: .5; cursor: default; }

.c-grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.c-grid th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); padding: 6px 8px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.c-grid td { padding: 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.c-grid tr:last-child td { border-bottom: 0; }
.c-grid .c-c { text-align: center; }
.c-who { font-weight: 600; }
.c-who small { display: block; font-weight: 400; color: var(--ink3); font-size: 11.5px; font-family: var(--mono); }
.c-scroll { overflow-x: auto; }
.c-check { width: 15px; height: 15px; stroke: var(--good); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.c-x { color: var(--ink3); }
.c-cell { background: transparent; border: 0; cursor: pointer; padding: 4px; display: inline-flex; }
.c-cell:disabled { cursor: default; }

.c-perm-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 14px; align-items: center; }
.c-perm-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); grid-column: 1 / -1; margin-top: 8px; }
.c-perm-group:first-child { margin-top: 0; }

.c-sec { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin: 16px 0 6px; }
.c-sec:first-child { margin-top: 0; }

.loading { padding: 40px 0; text-align: center; color: var(--ink3); animation: c-pulse 1.4s ease-in-out infinite; }
@keyframes c-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 560px) {
  .c-form { grid-template-columns: 1fr; }
  .brand { font-size: 16px; }
}

/* ---- dashboard kit, continued: hero()/chan()/bars()/foot(), the pieces of dash.js Business v2
   never called and the SEO module (T20, stage B) is the first to need. Ported from the same
   source (board.css's own "Dashboard kit" section) as the subset above, at the module-format
   layer rather than seo.css, because every module in this format shares one board layout. Tone
   classes read the platform's own names (--good/--warn/--crit/--sky) directly rather than going
   through board.css's --jade/--clay aliases, which exist for files that predate those names. */
.lfb-lead, .lfb-tiktok { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
.lfb-lead * { box-sizing: border-box; min-width: 0; }
.lfb-stats { display: flex; flex-direction: column; gap: 9px; border-right: 1px solid var(--line); padding-right: 18px; }
.lfb-chart { display: flex; flex-direction: column; gap: 8px; }
.lfb-big { font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink); }
.lfb-big.lfb-gold { color: var(--accent); }
.lfb-big.lfd-good { color: var(--good); } .lfb-big.lfd-warn { color: var(--warn); }
.lfb-sub { font-size: 13.5px; color: var(--ink2); }
.lfb-sub b { color: var(--ink); font-weight: 600; }
.lfb-sub b.lfd-good { color: var(--good); } .lfb-sub b.lfd-warn { color: var(--warn); }
.lfb-kv { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; font-size: 13.5px; margin: 0; }
.lfb-kv dt { color: var(--ink3); margin: 0; }
.lfb-kv dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.lfb-kv dd.lfd-good { color: var(--good); } .lfb-kv dd.lfd-warn { color: var(--warn); }
@media (max-width: 1080px) { .lfb-lead { grid-template-columns: 200px minmax(0, 1fr); } .lfb-lead .lfb-big { font-size: 32px; } }
@media (max-width: 760px) { .lfb-lead { grid-template-columns: minmax(0, 1fr); } }

/* Bar charts: one scale per chart, tallest bar = 100% */
.lfb-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; }
.lfb-bars.lfd-dense { gap: 3px; }
.lfb-bars > div { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 4px; }
.lfb-bars .lfb-n { font-family: var(--mono); font-size: 11.5px; text-align: center; color: var(--ink3); font-variant-numeric: tabular-nums; }
.lfb-bars.lfd-dense .lfb-n { display: none; }
.lfb-bars .lfb-n.lfb-hi { color: var(--ink); }
.lfb-bars .lfb-b { background: color-mix(in srgb, var(--accent) 38%, var(--surface2)); border-radius: 3px 3px 0 0; min-height: 2px; }
.lfb-bars .lfb-b.lfb-hi { background: var(--accent); }
.lfb-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink3); text-align: center; letter-spacing: .06em; }
.lfb-days.lfd-dense { font-size: 9.5px; letter-spacing: 0; }
.lfb-chartfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3); border-top: 1px solid var(--line); padding-top: 9px; }

/* Share rows: label, bar, amount, share of the whole */
.lfd-chans { display: flex; flex-direction: column; gap: 1px; }
.lfd-chans.lfd-cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 28px; }
.lfd-chan { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; }
.lfd-noshare .lfd-chan { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; }
.lfd-cl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.lfd-chan .lfb-t { height: 9px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.lfd-chan .lfb-t > i { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 38%, var(--surface2)); border-radius: 3px; }
.lfd-chan.lfd-top1 .lfb-t > i { background: var(--accent); }
.lfd-cv { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); }
.lfd-cp { font-family: var(--mono); font-size: 11px; color: var(--ink3); text-align: right; font-variant-numeric: tabular-nums; }
.lfd-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.lfd-act { cursor: pointer; }
.lfd-act:hover .lfd-cl { color: var(--accent); }
.lfd-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.lfd-chan.lfd-on { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.lfd-chan.lfd-on .lfd-cl { color: var(--accent); font-weight: 600; }
.lfd-more { grid-column: 1 / -1; }
.lfd-more > summary { list-style: none; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); padding: 7px 0 3px; border-top: 1px solid var(--line); margin-top: 4px; }
.lfd-more > summary::-webkit-details-marker { display: none; }
.lfd-more > summary::after { content: "▾"; margin-left: 6px; }
.lfd-more[open] > summary::after { content: "▴"; }
.lfd-more > summary:hover, .lfd-more > summary:focus-visible { color: var(--accent); outline: none; }
@media (max-width: 560px) { .lfd-chan { grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) auto 30px; gap: 8px; } }

/* Totals row under a lead panel or on its own */
.lfb-foot { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.lfb-foot .lfb-kicker { font-size: 10.5px; }
.lfb-foot .lfb-v { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 2px; }
.lfb-foot .lfb-v.lfb-gold { color: var(--accent); } .lfb-foot .lfb-v.lfb-sky { color: var(--sky); } .lfb-foot .lfb-v.lfb-clay { color: var(--crit); }
.lfb-foot .lfb-muted { font-size: 12px; }

/* A dashboard board's own layout: a stamp strip, tabs, a lead panel, then rows of panels */
.lfd-page { display: flex; flex-direction: column; gap: 14px; }
.lfd-page .lfb-foot { margin-top: 0; }
.lfd-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.lfd-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -2px; }
.lfd-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lfd-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lfd-tri.lfd-start, .lfd-pair.lfd-start { align-items: start; }
.lfd-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 900px) { .lfd-tri, .lfd-pair, .lfd-chans.lfd-cols2 { grid-template-columns: minmax(0, 1fr); } }
