/* Inter is the UI face of the signed-in (.prop) pages only (2026-09-22 mockup); the auth pages keep the mono/display pair. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* ============================================================================================
   Trader portal theme — ported from CopierAdmin/wwwroot/app.css.

   Same tokens, same fonts, same class vocabulary as the control desk, so a screenshot from either app is
   recognisably the same product and a component copied between them does not need restyling. What is NOT here is
   the copier's operational vocabulary (.dl-*, .feed*, .combo*, .mt*, .osgroup/.oshead/.osside, .searchbox,
   .tabs/.tab, .seg, .fanbar/.fchip, .tcard/.tscroll, .modebadge, .lat, .ev, .locked, .addpanel, .slavefilter):
   a trader has no dispatch feed, no master/slave tables and no admin forms, and dead CSS on a public page is
   just weight and a source of confusion for whoever edits it next.

   Added for this app: .meter* (a rule reading with currency headroom), .curve (the inline-SVG equity chart),
   .timeline/.phase (the challenge phase strip), .pager/.pg (lifted from MineTrades.razor.css) and .stats.
   The portal-header and KPI pieces (.portalhd, .pf-*, .chip, .kpis, .kpi, .live) come from MinePanel.razor.css —
   they were scoped there, and here they are global because several portal pages use them.
   ============================================================================================ */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ---- tokens (identical to the control desk) ---- */
:root {
    /* light by default (2026-10-03); the dark set is under :root[data-theme="dark"] below */
    --bg:#F3F5F8; --bg2:#EEF1F5; --panel:#FFFFFF; --panel2:#F7F9FB;
    --line:#E3E8EE; --line2:#CBD5E1;
    --ink:#0F172A; --muted:#334155; --faint:#334155;
    --green:#0FA37A; --amber:#D97706; --red:#DC2626; --blue:#0E7490;
    --glow-green:rgba(15,163,122,.22); --glow-red:rgba(220,38,38,.18);
    --err-bg:#FEF2F2; --err-line:#FECACA; --err-ink:#991B1B;
    --ok-bg:#ECFDF5; --ok-line:#A7F3D0; --ok-ink:#065F46;
    --bar-top:#FFFFFF; --login-top:#FFFFFF;
    --mono:'JetBrains Mono', ui-monospace, Consolas, monospace;
    --disp:'Bricolage Grotesque', system-ui, sans-serif;
    /* legacy aliases so classes carried over from the admin adopt the palette unchanged */
    --txt:#0F172A; --card:#FFFFFF; --accent:#0E7490; --ok:#0FA37A; --bad:#DC2626;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg:#0a0d11; --bg2:#0e1218; --panel:#11161d; --panel2:#141a22;
    --line:#1e2630; --line2:#27313d;
    --ink:#e8eef5; --muted:#7e8a99; --faint:#566270;
    --green:#36e0a0; --amber:#ffb547; --red:#ff5d73; --blue:#5aa9ff;
    --glow-green:rgba(54,224,160,.35); --glow-red:rgba(255,93,115,.30);
    --err-bg:#2a1418; --err-line:#5a2330; --err-ink:#ffd7df;
    --ok-bg:#16321f; --ok-line:#2a6a42; --ok-ink:#b9f5cf;
    --bar-top:#0b0f17; --login-top:#0a0d11;
    --txt:#e8eef5; --card:#11161d; --accent:#5aa9ff; --ok:#36e0a0; --bad:#ff5d73;
    color-scheme: dark;
}
* { box-sizing: border-box; }
body {
    font-family: var(--mono); color: var(--ink); margin: 0; padding: 24px 16px 48px;   /* 16 px gutter at every width (2026-09-22 mockup) */
    letter-spacing: .2px; -webkit-font-smoothing: antialiased; min-height: 100vh;
    background:
        radial-gradient(1100px 600px at 78% -8%, rgba(90,169,255,.07), transparent 60%),
        radial-gradient(900px 500px at 5% 110%, rgba(54,224,160,.06), transparent 55%),
        var(--bg);
}
/* faint engineering grid behind everything */
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; opacity: .18;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 85%);
            mask-image: radial-gradient(circle at 50% 30%, #000, transparent 85%);
}
.title { font-family: var(--disp); font-size: 1.5rem; font-weight: 800; letter-spacing: .3px; margin: 0 0 1rem; color: var(--ink); }
.title .sub { color: var(--faint); font-weight: 400; font-size: .9rem; font-family: var(--mono); letter-spacing: .5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 13px; padding: 1rem 1.2rem; margin-bottom: 14px; }
.card h2 { font-family: var(--disp); font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--ink); margin: 0 0 .85rem; }
.card.err { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.msg-banner { transition: opacity .5s ease; }
.msg-out { opacity: 0; }
/* SSR pages (no circuit to run a fade timer): pure-CSS auto-dismiss — fade + collapse after 4s (errors 8s). */
.msg-autofade { max-height: 12rem; animation: msgfade .55s ease 4s forwards; }
.msg-autofade.err { animation-delay: 8s; }
@keyframes msgfade {
    to { opacity: 0; max-height: 0; margin: 0; padding: 0; border-width: 0; overflow: hidden; visibility: hidden; }
}
.card.flush { padding: 0; overflow: hidden; }
.cardhd { display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.cardhd h2 { margin: 0; }
.cardhd .meta { margin-left: auto; font-family: var(--mono); font-size: .66rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.osbody { padding: 12px 14px; max-height: 360px; overflow-y: auto; }

/* themed scrollbars for the scroll regions */
.osbody::-webkit-scrollbar { width: 8px; height: 8px; }
.osbody::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.osbody::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.osbody::-webkit-scrollbar-track { background: transparent; }
.osbody { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }

.tag { font-size: .6rem; color: var(--faint); letter-spacing: 1.5px; text-transform: uppercase; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th { text-align: left; color: var(--faint); font-weight: 500; font-size: .58rem; letter-spacing: 1.4px; text-transform: uppercase; border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
td { padding: .5rem .6rem; border-bottom: 1px solid rgba(30,38,48,.55); color: var(--muted); font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.side { font-weight: 700; } .side.buy { color: var(--green); } .side.sell { color: var(--red); }
.hint { color: var(--muted); font-size: .75rem; margin-top: .4rem; text-align: center; }

a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
input, select { background: var(--panel2); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: .3rem .45rem; font-size: .85rem; font-family: var(--mono); }
/* Login fields stay numeric but drop the spinner arrows — incrementing a login by 1 is meaningless. */
.nospin::-webkit-outer-spin-button, .nospin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nospin { -moz-appearance: textfield; appearance: textfield; }
.rowbtns { display: inline-flex; align-items: center; gap: .35rem; }
.mini { border: none; border-radius: 5px; padding: .2rem .5rem; margin: 0 .1rem; font-size: .78rem; cursor: pointer; background: var(--line); color: var(--txt); white-space: nowrap; }
.mini:hover { filter: brightness(1.25); }
.mini.ok { background: #1f9d57; color: #fff; } .mini.bad { background: #d23b3b; color: #fff; }
.ok-card { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.ghostbtn { background: transparent; border: 1px solid var(--line2); color: var(--muted); font-weight: 500; font-size: .72rem; padding: .4rem .8rem; border-radius: 8px; font-family: var(--mono); cursor: pointer; }
.ghostbtn:hover { color: var(--ink); border-color: var(--muted); }
.empty { text-align: center; color: var(--faint); padding: 2.2rem 1rem; font-size: .82rem; }

/* ---- state pills / tags ---- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 20px; font-size: .62rem; font-weight: 700; letter-spacing: .5px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.pill.on { color: var(--green); background: rgba(54,224,160,.1); border: 1px solid rgba(54,224,160,.3); }
.pill.on::before { background: var(--green); box-shadow: 0 0 7px var(--green); }
.pill.off { color: var(--muted); background: rgba(126,138,153,.08); border: 1px solid var(--line2); }
.pill.off::before { background: var(--muted); }
.pill.open { color: var(--blue); background: rgba(90,169,255,.1); border: 1px solid rgba(90,169,255,.3); }
.pill.open::before { background: var(--blue); box-shadow: 0 0 7px var(--blue); }
.pill.close { color: var(--green); background: rgba(54,224,160,.1); border: 1px solid rgba(54,224,160,.3); }
.pill.close::before { background: var(--green); box-shadow: 0 0 7px var(--green); }
.pill.bad { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); }
.pill.bad::before { background: var(--red); box-shadow: 0 0 7px var(--red); }
.partialtag { color: var(--amber); background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.3);
    font-size: .58rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    padding: 1px 6px; border-radius: 6px; margin-left: 6px; }

/* ---- open positions table ---- */
.ostable { font-family: var(--mono); font-size: .72rem; }
.ostable th { font-size: .58rem; letter-spacing: 1.4px; text-transform: uppercase; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-weight: 500; }
.ostable td { padding: 8px 16px; border-bottom: 1px solid rgba(30,38,48,.5); color: var(--muted); }
.ostable tr:last-child td { border-bottom: none; }
.ostable tbody tr:hover td { background: rgba(90,169,255,.04); }
.ostable .num { text-align: right; font-variant-numeric: tabular-nums; }
.ostable .mono { color: var(--ink); }

/* ---- money / P&L ---- */
.pnl { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.pnl.pos { color: var(--green); }
.pnl.neg { color: var(--red); }
.pnl.flat { color: var(--muted); }
.pnl.stale { color: var(--faint); font-weight: 400; }
.pnl.sub { font-size: .68rem; padding: 2px 8px; border-radius: 6px; background: rgba(90,169,255,.06); border: 1px solid var(--line); }
.cardhd .pnl.total { font-size: .8rem; }

/* ---- portal header + KPI tiles (from CopierAdmin MinePanel.razor.css, global here) ---- */
.portalhd { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.pf-av { width: 54px; height: 54px; border-radius: 15px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-weight: 700; font-size: 20px; color: #04120c;
    background: linear-gradient(135deg, var(--green), #1fb37f); box-shadow: 0 6px 22px rgba(54,224,160,.22); }
.pf-id { min-width: 0; }
.pf-name { font-family: var(--disp); font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.pf-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pf-sub b { color: var(--ink); font-family: var(--mono); font-weight: 700; }
.pf-spring { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px;
    background: var(--panel2); border: 1px solid var(--line2); font-size: 12px; color: var(--muted); }
.chip.chip-link { margin-left: auto; color: var(--blue); text-decoration: none; font-family: var(--mono);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.chip.chip-link:hover { border-color: var(--blue); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
    border-radius: 13px; padding: 13px 15px; min-width: 0; }   /* min-width:0 lets the tile shrink to its grid track */
.kpi .lbl { font-size: 10px; letter-spacing: .11em; color: var(--faint); text-transform: uppercase; font-weight: 600; }
/* clip an unbreakable large monetary value to the tile instead of overflowing the page on narrow screens */
.kpi .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px;
    margin-top: 5px; letter-spacing: -.01em; line-height: 1.15;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi .val.pos { color: var(--green); }
.kpi .val.neg { color: var(--red); }
.kpi .val.neu { color: var(--ink); }
.kpi .val.flat { color: var(--muted); }
.kpi .sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
/* statistics block: the same tiles, packed tighter inside a card */
.kpis.stats { margin-bottom: 0; padding: 12px 14px 14px; }
.kpis.stats .kpi .val { font-size: 18px; }

.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700;
    letter-spacing: .11em; color: var(--green); }
.live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 8px var(--green); animation: portalpulse 1.6s ease-in-out infinite; }
.live.off { color: var(--faint); }
.live.off .d { background: var(--faint); box-shadow: none; animation: none; }
@keyframes portalpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .live .d { animation: none; } }

/* ============================================================================================
   Portal vocabulary — the pieces the control desk does not have.
   ============================================================================================ */

/* ---- rule meter (.meter / .mm) — styled in the 2026-09-22 mockup block at the end of this file ---- */

/* ---- equity curve (inline SVG, no chart library) ---- */
.curve { width: 100%; overflow: hidden; }
.curve svg { display: block; width: 100%; height: auto; }
.curve .c-equity { fill: none; stroke: var(--green); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.curve .c-balance { fill: none; stroke: var(--blue); stroke-width: 1.1; opacity: .5; vector-effect: non-scaling-stroke; }
.curve .c-ref { stroke-dasharray: 4 4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve .c-ref.floor { stroke: var(--red); }
.curve .c-ref.daily { stroke: var(--amber); }
.curve .c-ref.target { stroke: var(--green); }
.curve .c-lbl { font-family: var(--mono); font-size: 9px; fill: var(--faint); }
/* A de-overlapped label is tied to its line by colour and, when it had to move, a short solid leader. */
.curve .c-lbl.floor { fill: var(--red); }
.curve .c-lbl.daily { fill: var(--amber); }
.curve .c-lbl.target { fill: var(--green); }
.curve .c-lead { stroke: var(--faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve .c-lead.floor { stroke: var(--red); }
.curve .c-lead.daily { stroke: var(--amber); }
.curve .c-lead.target { stroke: var(--green); }

/* ---- phase timeline ---- */
.timeline { display: flex; gap: 10px; flex-wrap: wrap; }
.phase { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--bg2); padding: 12px 14px; }
.phase .ph-ord { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.phase .ph-name { font-family: var(--disp); font-weight: 700; font-size: 1rem; color: var(--ink); margin-top: 3px; }
.phase .ph-meta { font-size: .68rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.phase.done { border-color: rgba(54,224,160,.3); }
.phase.done .ph-ord { color: var(--green); }
.phase.current { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(90,169,255,.25); }
.phase.current .ph-ord { color: var(--blue); }
.phase.next { opacity: .6; }

/* ---- pagination (lifted from MineTrades.razor.css) ---- */
.pager { display:flex; align-items:center; gap:.3rem; flex-wrap:wrap; margin:.9rem 0 2rem; justify-content:center; }
.pg { background:var(--panel2); border:1px solid var(--line2); color:var(--muted); border-radius:7px;
    padding:.35rem .65rem; font-family:var(--mono); font-size:.76rem; cursor:pointer; min-width:2rem; }
.pg:hover:not(:disabled) { color:var(--ink); border-color:var(--muted); }
.pg:disabled { opacity:.4; cursor:default; }
.pg.cur { color:var(--bg); background:var(--green); border-color:var(--green); font-weight:700; }
.pg-gap { color:var(--faint); padding:0 .2rem; }

/* ---- Top app bar ---- */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1.3rem; margin: -24px -16px 20px; /* full-bleed past the body padding */
    background: linear-gradient(180deg, var(--bar-top), var(--bg)); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark { width: 30px; height: 30px; color: var(--green); flex: none; filter: drop-shadow(0 0 6px var(--glow-green)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--disp); font-weight: 800; letter-spacing: .04em; color: var(--ink); font-size: 1.1rem; }
.brand-sub { font-size: .56rem; letter-spacing: .34em; color: var(--muted); font-weight: 600; margin-top: .18rem; }
.appbar-right { display: flex; align-items: center; gap: 1.1rem; font-family: var(--mono); }
.ab-sep { width: 1px; height: 26px; background: var(--line); }
.ab-stat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.ab-lbl { font-size: .56rem; letter-spacing: .24em; color: var(--muted); }
.ab-val { font-size: .95rem; font-weight: 700; color: var(--txt); font-variant-numeric: tabular-nums; }
.ab-navlink { color: var(--blue); text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: .4rem .7rem; border: 1px solid var(--line2); border-radius: 6px; }
.ab-navlink:hover { background: rgba(90,169,255,.12); }
.ab-logout { margin: 0; }
.ab-logout button { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: .38rem .85rem; font-size: .72rem; cursor: pointer; letter-spacing: .04em; }
.ab-logout button:hover { color: var(--txt); border-color: var(--muted); }

/* mobile hamburger (CSS-only via a hidden checkbox) — hidden on desktop, shown ≤680px */
.nav-cb { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 36px;
    padding: 8px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; cursor: pointer; flex: none; }
.hamburger span { display: block; height: 2px; width: 100%; background: var(--txt); border-radius: 2px;
    transition: transform .22s ease, opacity .18s ease; }
.nav-cb:checked ~ .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-cb:checked ~ .hamburger span:nth-child(2) { opacity: 0; }
.nav-cb:checked ~ .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Two-factor setup ---- */
.tfa-key { margin: .25rem 0 .25rem; padding: .7rem .8rem; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; }
.tfa-key-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.tfa-key-val { font-family: var(--mono); font-size: .8rem; letter-spacing: .16em; color: var(--ink); word-break: break-all; }
.tfa-codes { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .8rem; margin: .25rem 0 1rem; padding: .8rem; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; }
.tfa-codes code { font-family: var(--mono); font-size: .9rem; color: var(--green); }
.tfa-qr { display: flex; justify-content: center; margin: .15rem 0 .16rem; }
.tfa-qr img { background: #fff; padding: 7px; border-radius: 10px; }

#blazor-error-ui { background: #d23b3b; color: #fff; bottom: 0; left: 0; right: 0; position: fixed; padding: .6rem 1.25rem; display: none; }
#blazor-error-ui .reload, #blazor-error-ui .dismiss { color: #fff; }

/* ---- Sign-in / auth pages ---- */
/* Auth pages use the no-appbar AuthLayout, so the wrapper is normal page flow (min-height:100vh) — a card
   taller than the viewport scrolls with the page, which is reliable on every screen size (incl. mobile). */
.login-wrap { min-height: 100vh; box-sizing: border-box;
    background: radial-gradient(900px 520px at 50% -12%, rgba(54,224,160,.07), transparent 60%),
                linear-gradient(180deg, var(--login-top), var(--bg2)); }
/* margin:auto on the card centers it when it fits and top-aligns (page scrolls) when it's taller. */
.login-inner { min-height: 100vh; display: flex; padding: 1.5rem 1rem; box-sizing: border-box; }
.login-card { position: relative; width: 100%; max-width: 380px; margin: auto; box-sizing: border-box; overflow: hidden;
    background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line);
    border-radius: 16px; padding: 1.75rem 1.6rem 1.3rem;
    box-shadow: 0 30px 70px -42px #000, 0 1px 0 rgba(255,255,255,.03) inset; }
.login-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54,224,160,.6), transparent); }
.login-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 14px; background: rgba(54,224,160,.06); margin-bottom: .9rem; }
.login-mark svg { width: 28px; height: 28px; color: var(--green); filter: drop-shadow(0 0 7px var(--glow-green)); }
.login-ring { position: absolute; inset: -1px; border-radius: 14px; border: 1px solid rgba(54,224,160,.5);
    animation: login-ping 2.6s ease-out infinite; }
@keyframes login-ping { 0% { transform: scale(.9); opacity: .85; } 100% { transform: scale(1.28); opacity: 0; } }
.login-eyebrow { font-family: var(--mono); font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }
.login-title { margin: .35rem 0 .15rem; font-family: var(--disp); font-weight: 800; font-size: 1.7rem; letter-spacing: .01em; color: var(--ink); }
.login-sub { margin: 0 0 1.25rem; color: var(--muted); font-size: .85rem; }
.two-login-sub { margin: 0 0 0.25rem; color: var(--muted); font-size: .8rem; }
.login-label { display: block; margin-bottom: .8rem; }
.login-label > span { display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .35rem; }
.login-input { display: block; width: 100%; box-sizing: border-box; padding: .6rem .7rem; font-size: .9rem;
    background: var(--bg2); border: 1px solid var(--line2); border-radius: 9px; color: var(--ink); font-family: var(--mono); }
.login-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,169,255,.18); }
.login-btn { width: 100%; margin-top: .4rem; padding: .65rem; border: none; border-radius: 10px; cursor: pointer;
    font-family: var(--mono); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
    color: #06231a; background: linear-gradient(180deg, #45ecb0, var(--green)); }
.login-btn:hover { filter: brightness(1.06); }
.login-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.login-error { background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); border-radius: 9px; padding: .55rem .7rem; margin-bottom: .95rem; font-size: .82rem; font-family: var(--mono); }
.login-error.ok-card { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }
.login-foot { display: flex; align-items: center; gap: .5rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.login-foot .login-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); flex: none; }
@media (prefers-reduced-motion: reduce) { .login-ring { animation: none; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { padding: 16px 16px 40px; }
  body .appbar { margin-left: -16px; margin-right: -16px; margin-top: -16px; }
  /* top bar → hamburger: brand + ☰ on row 1; nav collapses into a tap-to-open stacked menu.
     NOTE: body/.appbar prefixes raise specificity above the LATER base .appbar/.hamburger/.appbar-right rules. */
  body .appbar { flex-wrap: wrap; gap: .5rem .7rem; padding: .55rem .8rem; justify-content: space-between; }
  body .appbar .hamburger { display: flex; }
  body .appbar .appbar-right { display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch;
      gap: 0; margin-top: .5rem; padding-top: .4rem; border-top: 1px solid var(--line); }
  body .appbar .nav-cb:checked ~ .appbar-right { display: flex; }
  .appbar .ab-stat, .appbar .ab-sep { display: none; }   /* USER / UTC drop on phones */
  .brand-mark { width: 26px; height: 26px; }
  .brand-text { font-size: .98rem; }
  .appbar .ab-navlink { width: 100%; padding: .7rem .6rem; font-size: .82rem; border: none;
      border-bottom: 1px solid var(--line); border-radius: 0; }
  .appbar .ab-navlink:hover { background: rgba(90,169,255,.08); }
  .ab-logout { margin-top: .55rem; }
  .appbar .ab-logout button { width: 100%; padding: .6rem; font-size: .78rem; }
  .title { font-size: 1.2rem; line-height: 1.35; }
  .card { padding: .85rem .95rem; }
  .cardhd { flex-wrap: wrap; }
  .osbody { overflow-x: auto; }
  .portalhd { gap: 12px; }
  .chip.chip-link { margin-left: 0; }
  .pf-name { font-size: 20px; }
  .kpi .val { font-size: 20px; }
  .timeline { flex-direction: column; }
}
@media (max-width: 480px) {
    .login-inner { padding: 1rem .75rem; }
    .login-card { padding: 1.4rem 1.15rem 1.1rem; border-radius: 14px; }
    .login-title { font-size: 1.45rem; }
    .tfa-codes { grid-template-columns: 1fr; }
}

/* ==== Portal clarity pass of 2026-09-20 (docs/superpowers/plans/2026-09-20-ui-clarity.md).
   MainLayout wraps @Body in `.prop`, so these rules reach every signed-in page and none of the auth pages.
   The vocabulary (.pagehd .notice .fields .tag .legend .fold .sect) is the same text as the control desk's
   block in CopierAdmin/wwwroot/app.css, minus the admin-only pieces (tabs, locked rows). ==== */
.prop { display: block; min-width: 0; max-width: 100%; }

.prop .pagehd { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.prop .pagehd .pagehd-id { flex: 1 1 320px; min-width: 0; }
.prop .pagehd h1 { font-family: var(--disp); font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--ink); line-height: 1.2; }
.prop .pagehd .purpose { margin: 5px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; max-width: 76ch; }
.prop .pagehd .purpose b { color: var(--ink); font-weight: 600; }
.prop .pagehd .pagehd-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 2px; }
.prop .nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.prop .chip.chip-link { margin-left: 0; }
.prop .chip.chip-link.primary { color: #06231a; background: linear-gradient(180deg, #45ecb0, var(--green)); border-color: transparent; }
.prop .title { margin-bottom: .35rem; }
.prop .title + .purpose { margin: 0 0 14px; color: var(--muted); font-size: .8rem; line-height: 1.5; max-width: 76ch; }

.prop .cardhd { flex-wrap: wrap; row-gap: 8px; }
.prop .cardhd .muted { font-size: .74rem; line-height: 1.4; }
.prop .cardnote { padding: 10px 16px 0; color: var(--muted); font-size: .76rem; line-height: 1.5; max-width: 90ch; }
.prop .card > .cardnote { padding: 0 0 10px; }
.prop .card > h2 + .cardnote { margin-top: -.4rem; }
.prop .card.flush .cardnote + .osbody, .prop .card.flush .cardnote + .kpis { margin-top: 6px; }
.prop .card.flush > .pad { padding: 12px 16px 14px; }
.prop .card.flush > .pad.tight { padding-top: 0; }
.prop .card.flush > .cardft { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.prop .card > p:last-child { margin-bottom: 0; }

.prop .notice { display: block; border: 1px solid var(--line2); border-left-width: 4px; border-radius: 10px; padding: 12px 16px; margin: 0 0 14px;
    background: var(--panel2); color: var(--ink); font-size: .8rem; line-height: 1.55; }
.prop .notice > b { display: block; font-family: var(--disp); font-size: .95rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0; }
.prop .notice p { margin: 0; color: var(--muted); }
.prop .notice p + p { margin-top: 6px; }
.prop .notice.bad { border-left-color: var(--red); background: rgba(255,93,115,.07); }
.prop .notice.bad > b { color: var(--red); }
.prop .notice.warn { border-left-color: var(--amber); background: rgba(255,181,71,.07); }
.prop .notice.warn > b { color: var(--amber); }
.prop .notice.ok { border-left-color: var(--green); background: rgba(54,224,160,.07); }
.prop .notice.ok > b { color: var(--green); }
.prop .notice.info { border-left-color: var(--blue); }
.prop .notice.info > b { color: var(--blue); }

.prop .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; margin: 0 0 12px; }
.prop .fields > label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: .68rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.prop .fields > label > input, .prop .fields > label > select { width: 100%; min-width: 0; background: var(--bg2); border: 1px solid var(--line2); border-radius: 7px;
    padding: .44rem .55rem; font-size: .82rem; color: var(--ink); font-weight: 400; letter-spacing: 0; }
.prop .fields > label > input:focus, .prop .fields > label > select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(90,169,255,.18); }
.prop .fields > .actions { display: flex; gap: 8px; align-self: end; }
.prop .rowbtns { flex-wrap: wrap; gap: 8px; }
.prop .hint { text-align: left; line-height: 1.5; }
.prop .foot { color: var(--muted); font-size: .74rem; line-height: 1.55; margin: 4px 0 18px; max-width: 90ch; }

.prop .sect { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }
.prop .sect h3 { margin: 0; font-family: var(--disp); font-size: .92rem; font-weight: 700; color: var(--ink); }
.prop .sect .sub { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.prop .conditions { margin: .4rem 0 0; padding-left: 1.1rem; line-height: 1.65; color: var(--muted); font-size: .8rem; }
.prop .conditions li::marker { color: var(--faint); }

.prop .tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line2); background: var(--panel2);
    font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; white-space: nowrap; vertical-align: middle; line-height: 1.4; }
.prop .tag.ok { color: var(--green); border-color: rgba(54,224,160,.35); background: rgba(54,224,160,.08); }
.prop .tag.warn { color: var(--amber); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.prop .tag.bad { color: var(--red); border-color: rgba(255,93,115,.35); background: rgba(255,93,115,.08); }
.prop .tag.info { color: var(--blue); border-color: rgba(90,169,255,.35); background: rgba(90,169,255,.08); }
.prop .tag[title] { cursor: help; border-bottom-style: dotted; }
.prop .pager .tag { text-transform: none; letter-spacing: .02em; }

.prop .legend { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; line-height: 1.5; }
.prop .legend b { color: var(--ink); font-weight: 600; }
.prop .legend .tag { margin-right: 4px; }

.prop .osbody { max-height: none; overflow: auto; padding: 0; }
.prop .osbody > .muted, .prop .osbody > .empty { display: block; padding: 16px; color: var(--muted); font-size: .8rem; line-height: 1.5; max-width: 80ch; text-align: left; }
.prop .ostable { white-space: nowrap; min-width: 100%; }
.prop .ostable th { position: sticky; top: 0; background: var(--panel2); z-index: 1; }
.prop .ostable td { vertical-align: middle; }
.prop .ostable .wrap { white-space: normal; min-width: 220px; max-width: 460px; line-height: 1.45; }
.prop .ostable td.empty { padding: 18px 16px; text-align: center; }

.prop .kpis { padding: 12px 16px; margin: 0; }
.prop .kpis.stats { padding: 12px 16px 14px; }
.prop .card.flush .kpis + .osbody { border-top: 1px solid var(--line); }
.prop .kpi .lbl { white-space: normal; line-height: 1.3; }
.prop .kpi .val { font-size: 20px; }
.prop .kpi .val small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.prop .kpi .sub { line-height: 1.45; white-space: normal; }
.prop .price { font-family: var(--mono); font-weight: 700; font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.prop .price small { color: var(--muted); font-weight: 500; font-size: .72rem; margin-left: 4px; }

.prop .pill.bad { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); }
.prop .pill.bad::before { background: var(--red); box-shadow: 0 0 7px var(--red); }
.prop .pill .d { display: none; }   /* the pill draws its own dot with ::before; the extra <span class="d"> was a second one */

.prop details.fold { border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); margin: 0 0 10px; }
.prop details.fold > summary { cursor: pointer; list-style: none; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .8rem; color: var(--ink); }
.prop details.fold > summary::-webkit-details-marker { display: none; }
.prop details.fold > summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
    transform: rotate(-45deg); transition: transform .15s; flex: none; margin: 0 2px 0 1px; }
.prop details.fold[open] > summary::before { transform: rotate(45deg); }
.prop details.fold > .fold-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .prop details.fold > summary::before { transition: none; } }

@media (max-width: 680px) {
  .prop .pagehd h1 { font-size: 1.2rem; }
  .prop .kpis, .prop .kpis.stats { grid-template-columns: 1fr 1fr; padding: 10px 12px; gap: 8px; }
  .prop .kpi { padding: 10px 12px; }
  .prop .fields { grid-template-columns: 1fr 1fr; }
  .prop .legend, .prop .cardnote, .prop .card.flush > .pad, .prop .card.flush > .cardft { padding-left: 12px; padding-right: 12px; }
  .prop .osbody > .muted, .prop .osbody > .empty { padding: 12px; }
  .prop .notice { padding: 10px 12px; }
}
@media (max-width: 460px) {
  .prop .fields { grid-template-columns: 1fr; }
  .prop .cardhd { padding: 11px 12px; }
}

/* clarity pass addenda */
.prop .pagehd h1 small { font-size: .8rem; font-weight: 500; font-family: var(--mono); letter-spacing: 0; }
.prop .pagehd .purpose .pill, .prop .pagehd .purpose .tag { vertical-align: middle; margin-right: 4px; }
.prop .portalhd .pagehd-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.prop .portalhd .pf-sub .tag { margin-right: 2px; }
@media (max-width: 680px) { .prop .portalhd .pagehd-side { margin-left: 0; } }
.prop .card.flush > .cardnote { padding: 10px 16px 0; }
.prop .pad > .muted, .prop .card.flush > .muted { font-size: .8rem; line-height: 1.5; }

/* challenge header: the plan type in plain words, the term in the tooltip */
.prop .pf-sub [title] { cursor: help; border-bottom: 1px dotted var(--line2); }

/* ==== 2026-09-22 mockup (docs/design/2026-09-22-mockup/portal-*.html): layout, components and type on the signed-in
   pages. Colours stay the app's own tokens — the mockup's semantic roles map onto them here (ok→green, warn→amber,
   breach→red, stale→faint, accent→blue). Inter for prose and controls; JetBrains Mono only where alignment matters
   (money, logins, timestamps, counts). Everything below is scoped to `.prop`; the app bar and the auth pages are
   untouched. Full width, 16 px gutter, fluid auto-fit grids; tables scroll inside their card. ==== */
.prop { --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ok-soft: rgba(54,224,160,.12); --warn-soft: rgba(255,181,71,.14); --breach-soft: rgba(255,93,115,.14);
    --accent-soft: rgba(90,169,255,.14); --stale-soft: rgba(86,98,112,.22);
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35);
    font-family: var(--ui); font-size: 14px; line-height: 1.5; color: var(--ink); }
.prop .mono, .prop .num, .prop code, .prop .pnl, .prop .price { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.prop .up { color: var(--green); } .prop .dn { color: var(--red); }

/* page header: 24/600 title, one quiet sentence, pills beside the title, actions on the right */
.prop .pagehd { align-items: flex-end; gap: 16px; margin: 0 0 20px; }
.prop .pagehd h1, .prop .title { font-family: var(--ui); font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0; color: var(--ink); line-height: 1.2; }
.prop .pagehd h1 small { font-size: 13px; }
.prop .pagehd .purpose, .prop .title + .purpose { font-size: 14px; margin: 4px 0 0; max-width: 640px; }
.prop .title + .purpose { margin-bottom: 20px; }
.prop .pagehd .pagehd-side { gap: 10px; padding-bottom: 4px; }
.prop .pagehd .titlerow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prop .pagehd .subline { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.prop .pagehd .subline b { font-family: var(--mono); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.prop .pagehd .subline [title] { cursor: help; border-bottom: 1px dotted var(--line2); }
.prop .crumb { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.prop .live { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }

/* cards: one hairline, a soft shadow, 18 px padding, 14/18 header, 16/600 title */
.prop .card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.prop .card.flush { padding: 0; }
.prop .card h2, .prop .cardhd h2 { font-family: var(--ui); font-size: 16px; font-weight: 600; text-transform: none; letter-spacing: -.01em; margin: 0 0 12px; }
.prop .cardhd { padding: 14px 18px; gap: 12px; }
.prop .cardhd h2 { margin: 0; }
.prop .cardhd .muted, .prop .cardhd .meta { font-family: var(--ui); font-size: 12px; letter-spacing: 0; }
.prop .cardhd .pnl.total { font-size: 13px; }
.prop .cardnote, .prop .card.flush > .cardnote { font-size: 13px; padding: 12px 18px 0; }
.prop .card > .cardnote { padding: 0 0 12px; }
.prop .card.flush > .pad { padding: 18px; }
.prop .card.flush > .pad.tight { padding-top: 0; }
.prop .card.flush > .cardft { padding: 12px 18px; gap: 10px; }
.prop .legend { font-size: 12px; padding: 12px 18px; gap: 6px 20px; }
.prop .osbody > .muted, .prop .osbody > .empty { padding: 18px; font-size: 13px; }
.prop .empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 6px; font-size: 13px; }
.prop .empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.prop .ostable td.empty { border-width: 0 0 1px; border-style: solid; border-radius: 0; }
.prop .foot, .prop .hint { font-family: var(--ui); font-size: 12px; }
.prop .pad > .muted, .prop .card.flush > .muted, .prop .card > p.muted, .prop .card > p { font-size: 13px; line-height: 1.5; }
.prop .card > p:first-of-type { margin-top: 0; }
.prop .conditions { font-size: 13px; }
.prop .grid2 { gap: 16px; }
.prop .g2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; margin-bottom: 16px; }
.prop .g-main { display: grid; gap: 16px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; margin-bottom: 16px; }
.prop .g-main > .col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.prop .g2 > .card, .prop .g-main .card, .prop .grid2 > .card { margin-bottom: 0; }
.prop .g2 > *, .prop .grid2 > * { min-width: 0; }
@media (max-width: 960px) { .prop .g-main { grid-template-columns: minmax(0, 1fr); } }
.prop .section { margin-top: 28px; }
.prop .section > h3 { font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.prop .kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13px; margin: 0; }
.prop .kv dt { color: var(--muted); }
.prop .kv dd { margin: 0; font-family: var(--mono); text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.prop .kv dd small { display: block; font-family: var(--ui); font-size: 11.5px; color: var(--muted); font-weight: 400; }

/* stat tiles: label / mono number / one-line context, in a fluid auto-fit grid */
.prop .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding: 0; margin: 0 0 16px; }
.prop .card.flush .kpis, .prop .kpis.stats { padding: 14px 18px; margin: 0; gap: 12px; }
.prop .kpi { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.prop .kpi .lbl { font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.prop .kpi .val { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.prop .kpis.stats .kpi .val { font-size: 18px; }
.prop .kpi .val small { font-family: var(--ui); font-size: 12px; font-weight: 500; }
.prop .kpi .sub { font-size: 12px; margin-top: 2px; }
.prop .price { font-size: 16px; font-weight: 600; }
.prop .price small { font-family: var(--ui); font-size: 12px; }

/* tables: 11 px uppercase headers, 13 px cells, hover row, mono numbers right-aligned, two-line cells */
.prop .ostable { font-family: var(--ui); font-size: 13px; }
.prop .ostable th { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 10px 12px; color: var(--muted); background: var(--panel); border-bottom: 1px solid var(--line); }
.prop .ostable td { padding: 11px 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.prop .ostable tbody tr:hover td { background: var(--panel2); }
.prop .ostable .num, .prop .ostable td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.prop .ostable .mono { font-family: var(--mono); color: var(--ink); }
.prop .ostable .muted { color: var(--muted); }
.prop .ostable .sub { display: block; font-size: 11.5px; color: var(--muted); }
.prop .who { font-weight: 500; }
.prop .who small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.prop .side { font-family: var(--ui); font-weight: 600; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; }
.prop .side.buy { background: var(--ok-soft); } .prop .side.sell { background: var(--breach-soft); }

/* inline room bar in a table cell: a 5 px bar, then the currency figure */
.prop .ib { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.prop .ib .b { flex: 1; height: 5px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.prop .ib .b i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.prop .ib.warn .b i { background: var(--amber); } .prop .ib.bad .b i { background: var(--red); }
.prop .ib span { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; min-width: 64px; text-align: right; color: var(--ink); }

/* pills and tags: text always, colour second; the four live states carry a dot, stale a hollow one */
.prop .pill { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; padding: 2px 9px; border-radius: 99px; text-transform: none; white-space: nowrap; }
.prop .pill::before { box-shadow: none; }
.prop .pill.on, .prop .pill.ok, .prop .pill.close { color: var(--green); background: var(--ok-soft); border: 1px solid transparent; }
.prop .pill.on::before, .prop .pill.ok::before, .prop .pill.close::before { background: currentColor; }
.prop .pill.warn { color: var(--amber); background: var(--warn-soft); border: 1px solid transparent; }
.prop .pill.warn::before { background: currentColor; }
.prop .pill.bad, .prop .pill.breach { color: var(--red); background: var(--breach-soft); border: 1px solid transparent; }
.prop .pill.bad::before, .prop .pill.breach::before { background: currentColor; box-shadow: none; }
.prop .pill.stale { color: var(--muted); background: var(--stale-soft); border: 1px solid transparent; }
.prop .pill.stale::before { background: transparent; border: 1.5px solid currentColor; box-sizing: border-box; }
.prop .pill.info, .prop .pill.open { color: var(--blue); background: var(--accent-soft); border: 1px solid transparent; }
.prop .pill.open::before { background: currentColor; box-shadow: none; }
.prop .pill.neutral, .prop .pill.off { color: var(--muted); background: var(--panel2); border: 1px solid var(--line2); }
.prop .pill.neutral::before, .prop .pill.info::before { display: none; }
.prop .tag { font-family: var(--ui); font-size: 10.5px; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; }
.prop .pnl.sub { font-size: 11.5px; }

/* buttons and links: the UI face, 8 px radius; the primary action is the accent the app uses for focus */
.prop .chip, .prop .chip.chip-link { font-family: var(--ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; padding: 6px 12px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); }
.prop .chip.chip-link:hover { border-color: var(--muted); text-decoration: none; }
.prop .chip.chip-link.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.prop .chip.chip-link.primary:hover { filter: brightness(1.12); }
.prop .ghostbtn { font-family: var(--ui); font-weight: 500; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); }
.prop .ghostbtn:hover { border-color: var(--muted); }
.prop .pg { font-family: var(--ui); font-size: 12.5px; font-weight: 500; border-radius: 8px; padding: 5px 10px; color: var(--ink); }
.prop .pg.cur { background: var(--blue); border-color: var(--blue); color: #fff; }
.prop .pager { margin: 16px 0 24px; }
.prop .linky { color: var(--blue); font-weight: 500; }
.prop .rowbtns { gap: 8px; }
.prop .login-btn { width: auto; margin: 0; font-family: var(--ui); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; background: var(--blue); border-radius: 8px; padding: 9px 16px; }
.prop .login-btn:hover { filter: brightness(1.12); }

/* notices as banners: one hairline in the state colour, a soft fill, 13 px */
.prop .notice { border-radius: 6px; border-left-width: 1px; padding: 12px 16px; font-size: 13px; margin: 0 0 16px; }
.prop .notice > b { font-family: var(--ui); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.prop .notice.bad { border-color: rgba(255,93,115,.4); background: var(--breach-soft); }
.prop .notice.warn { border-color: rgba(255,181,71,.4); background: var(--warn-soft); }
.prop .notice.ok { border-color: rgba(54,224,160,.4); background: var(--ok-soft); }
.prop .notice.info { border-color: rgba(90,169,255,.4); background: var(--accent-soft); }

/* forms: a fluid grid of labelled controls, 36 px inputs, 8 px radius */
.prop .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin: 0 0 16px; }
.prop .card > .fields:last-child { margin-bottom: 0; }
.prop .fields > label { gap: 6px; font-family: var(--ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.prop .fields > label > input, .prop .fields > label > select { font-family: var(--ui); font-size: 13.5px; color: var(--ink); background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; height: 36px; }
.prop .fields > label > select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.prop .fields > .actions { gap: 8px; }

/* section labels 13/600 uppercase */
.prop .sect { margin: 24px 0 10px; gap: 8px 12px; }
.prop .sect h3 { font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.prop .sect .sub { font-size: 12.5px; }
.prop .pad.tight > .sect:first-child { margin-top: 8px; }

/* rule meter: name + rule summary left, HEADROOM IN CURRENCY right, an 8 px bar under both; stale = dashed, no figure */
.prop .meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: end; padding: 12px 0; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.prop .meter:first-child, .prop .sect + .meter, .prop .cardnote + .meter { border-top: 0; padding-top: 0; }
.prop .meter .name { font-weight: 500; min-width: 0; color: var(--ink); }
.prop .meter .name small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.prop .meter .name .tag { margin-left: 6px; vertical-align: 1px; }
.prop .meter .room { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.prop .meter .room small { display: block; font-family: var(--ui); font-size: 11.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.prop .meter .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--line2); position: relative; margin-top: 4px; overflow: hidden; }
.prop .meter .bar b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--green); transition: width .25s linear; }
.prop .meter.warn .bar b { background: var(--amber); } .prop .meter.warn .room { color: var(--amber); }
.prop .meter.bad .bar b { background: var(--red); } .prop .meter.bad .room { color: var(--red); }
.prop .meter.stale .bar b, .prop .meter.suspended .bar b { background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 10px); }
.prop .meter.stale .room, .prop .meter.suspended .room { color: var(--muted); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .prop .meter .bar b, .prop .mm .m .b i { transition: none; } }

/* account card (home): plan + login/phase line, status pills, hero equity, mini meters with the room next to each bar, footer */
.prop .acct { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.prop .acct .id { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; }
.prop .acct .id .t { font-weight: 600; font-size: 15px; min-width: 0; }
.prop .acct .id .t small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prop .acct .id .st { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.prop .acct .eq { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop .acct .eq small { font-family: var(--ui); font-size: 13px; font-weight: 500; margin-left: 8px; color: var(--muted); letter-spacing: 0; }
.prop .acct .eq.muted { color: var(--muted); font-weight: 500; }
.prop .acct.warn { border-color: rgba(255,181,71,.45); }
.prop .acct.bad { border-color: rgba(255,93,115,.45); }
.prop .acct .facts { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.prop .acct .facts b { font-family: var(--mono); color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.prop .mm { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px 16px; }
.prop .mm .m { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prop .mm .m .l { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.prop .mm .m .l b { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.prop .mm .m .l b small { font-family: var(--ui); font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.prop .mm .m .b { height: 5px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.prop .mm .m .b i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .25s linear; }
.prop .mm .m.warn .b i { background: var(--amber); } .prop .mm .m.warn .l b { color: var(--amber); }
.prop .mm .m.bad .b i { background: var(--red); } .prop .mm .m.bad .l b { color: var(--red); }
.prop .mm .m.stale .b i, .prop .mm .m.suspended .b i { background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 10px); }
.prop .mm .m.stale .l b, .prop .mm .m.suspended .l b { color: var(--muted); font-weight: 400; }
.prop .acct .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.prop .acct .ft .links { display: flex; gap: 14px; flex-wrap: wrap; }

/* equity card: the P&L strip above the chart, legend beneath */
.prop .eqstrip { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.prop .eqstrip .l { font-size: 12px; color: var(--muted); }
.prop .eqstrip .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 18px; letter-spacing: -.01em; }
.prop .eqstrip .v.hero { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.prop .eqlegend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 10px; }
.prop .eqlegend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.prop .curve .c-lbl { font-size: 9px; }

/* phase / order timeline: numbered cards, the current one outlined in the accent */
.prop .timeline { gap: 12px; }
.prop .phase { border-radius: 6px; padding: 14px; background: var(--panel2); }
.prop .phase .ph-ord { font-family: var(--ui); font-size: 11px; letter-spacing: .06em; font-weight: 600; }
.prop .phase .ph-name { font-family: var(--ui); font-size: 14px; font-weight: 600; margin-top: 2px; }
.prop .phase .ph-meta { font-size: 12px; }
.prop .phase.current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }

/* the credentials hand-off (AuthLayout, no .prop): the same type, card, button and field shapes as the signed-in pages */
.cred { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5; }
.cred .login-card { max-width: 480px; border-radius: 10px; padding: 24px 22px 18px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.35); }
.cred .login-card::before { display: none; }
.cred .login-eyebrow { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.cred .login-title { font-family: inherit; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.cred h2.login-title { font-size: 16px; }
.cred .login-sub, .cred .two-login-sub { font-size: 14px; }
.cred .login-error { font-family: inherit; font-size: 13px; border-radius: 6px; }
.cred .tfa-key { border-radius: 6px; padding: 12px 14px; margin: 0 0 8px; }
.cred .tfa-key-label { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cred .tfa-key-val { font-size: 15px; letter-spacing: .04em; }
.cred .ghostbtn { font-family: inherit; font-weight: 500; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); }
.cred .login-label > span { font-family: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.cred .login-input { font-family: inherit; font-size: 13.5px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--panel2); }
.cred .login-btn { font-family: inherit; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; background: var(--blue); border-radius: 8px; padding: 9px 16px; }
.cred .login-foot { font-family: inherit; font-size: 12px; letter-spacing: 0; text-transform: none; }

.prop details.fold { border-radius: 6px; background: var(--panel2); margin: 0 0 8px; }
.prop details.fold > summary { padding: 12px 14px; font-size: 14px; }

@media (max-width: 680px) {
  .prop .pagehd h1, .prop .title { font-size: 20px; }
  .prop .pagehd { margin-bottom: 16px; }
  .prop .kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
  .prop .card.flush .kpis, .prop .kpis.stats { padding: 12px; }
  .prop .kpi { padding: 12px; }
  .prop .kpi .val { font-size: 20px; }
  .prop .card { padding: 14px; }
  .prop .cardhd { padding: 12px 14px; }
  .prop .card.flush > .pad, .prop .card.flush > .cardft { padding: 14px; }
  .prop .card.flush > .pad.tight { padding-top: 0; }
  .prop .legend, .prop .cardnote, .prop .card.flush > .cardnote { padding-left: 14px; padding-right: 14px; }
  .prop .osbody > .muted, .prop .osbody > .empty { padding: 14px; }
  .prop .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
  .prop .acct { padding: 14px; }
  .prop .acct .eq { font-size: 22px; }
  .prop .eqstrip { gap: 16px; }
  .prop .eqstrip .v.hero { font-size: 24px; }
}

/* ==== 2026-09-25 catalog chooser (docs/superpowers/plans/2026-09-25-portal-catalog-chooser.md): model tabs, size
   pills, one rules table. The tab bar is the control desk's .flow / .flow-tab vocabulary without the icon: a row of
   equal cells, the current one lit with a thick top edge in the accent. Tabs and pills scroll sideways on a phone;
   the table gives way to one card per phase under 720 px, so the page itself never scrolls horizontally. ==== */
.prop .flow { display: flex; gap: 1px; margin: 0 0 16px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line);
    overflow-x: auto; scrollbar-width: none; max-width: 100%; min-width: 0; align-items: stretch; }
.prop .flow::-webkit-scrollbar { display: none; }
.prop .flow-tab { position: relative; flex: 1 0 auto; min-width: 168px; max-width: 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px 12px;
    background: var(--panel2); color: var(--muted); text-decoration: none; border-top: 3px solid transparent; transition: background .15s, color .15s; }
.prop .flow-tab:hover, .prop .flow-tab:focus-visible { background: var(--panel); color: var(--ink); outline: none; text-decoration: none; }
.prop .flow-tab.on { background: var(--panel); color: var(--ink); border-top-color: var(--blue); }
.prop .flow-tab .lbl { font-weight: 600; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.prop .flow-tab.on .lbl { color: var(--blue); }
.prop .flow-tab .tl { font-size: 12px; line-height: 1.4; color: var(--muted); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prop .flow-tab .cnt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); line-height: 1.5; margin-top: auto; }
.prop .flow-tab.on .cnt { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (prefers-reduced-motion: reduce) { .prop .flow-tab { transition: none; } }

.prop .sizes { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; padding: 2px; max-width: 100%; }
.prop .sizes::-webkit-scrollbar { display: none; }
.prop .sizepill { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); text-decoration: none; }
.prop .sizepill b { font-family: var(--mono); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.prop .sizepill small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prop .sizepill:hover, .prop .sizepill:focus-visible { border-color: var(--muted); text-decoration: none; outline: none; }
.prop .sizepill.on { border-color: var(--blue); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.prop .sizepill.on small { color: var(--ink); }

.prop .ostable.rules th.ph small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); font-size: 11px; }
.prop .ostable.rules td { white-space: pre-line; vertical-align: top; min-width: 160px; max-width: 380px; line-height: 1.45; }
.prop .ostable.rules td.lbl { color: var(--muted); font-weight: 500; white-space: nowrap; min-width: 0; }
.prop .ostable.rules tr.grp td { background: var(--panel2); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 7px 12px; white-space: nowrap; }
.prop .ostable.rules tbody tr.grp:hover td { background: var(--panel2); }
.prop .rules-cards { display: none; }
.prop .priceline { font-size: 13px; color: var(--muted); }
.prop .priceline b { font-family: var(--mono); color: var(--ink); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ==== 2026-09-25 public catalog: the "N challenges · one-time fee" headline block above the chooser, one card per model ==== */
.prop .hero { margin: 0 0 20px; }
.prop .hero h2 { font-family: var(--ui); font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 4px; color: var(--ink); }
.prop .hero > .purpose { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 640px; }
.prop .famgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.prop .famcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); min-width: 0; box-shadow: var(--shadow); }
.prop .famcard .fname { font-weight: 600; font-size: 14px; color: var(--ink); }
.prop .famcard .ftl { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.prop .famcard .ffrom { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 4px; }
.prop .famcard .ffrom b { font-size: 17px; font-weight: 600; color: var(--ink); }
.prop .famcard .fmeta { font-size: 12.5px; color: var(--ink); }
.prop .famcard .fsizes { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; overflow-wrap: anywhere; }
.prop .famcard > .chip { align-self: flex-start; margin-top: 8px; }
.prop .cardft .signin { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .prop .rules-wide { display: none; }
  .prop .rules-cards { display: grid; gap: 12px; padding: 14px; }
  .prop .rcard { border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); padding: 12px 14px; min-width: 0; }
  .prop .rcard .rc-hd { font-weight: 600; font-size: 13px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .prop .rcard dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 7px 12px; margin: 0; font-size: 12.5px; }
  .prop .rcard dt { color: var(--muted); }
  .prop .rcard dd { margin: 0; white-space: pre-line; line-height: 1.45; overflow-wrap: anywhere; }
  .prop .flow-tab { min-width: 150px; max-width: 240px; }
  .prop .card.flush > .cardft .pf-spring { display: none; }
}

/* theme button in the bar (same look as Sign out) */
.ab-theme { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: .38rem .85rem; font-size: .72rem; cursor: pointer; letter-spacing: .04em; font-family: var(--mono); }
.ab-theme:hover { color: var(--txt); border-color: var(--muted); }
/* light mode: the dark-only decorations step back */
body::before { opacity: .18; }
:root:not([data-theme="dark"]) body::before { opacity: .3; }
:root:not([data-theme="dark"]) .card { background: var(--panel); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px -12px rgba(15,23,42,.10); }
