/* Inter is the UI face of the /prop pages only (2026-09-22 mockup); every other page keeps the mono/display pair below. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Figtree:wght@400;500;600;700;800&display=swap');

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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ---- TradeCopier control desk theme — 2026-10-03 reskin (docs/superpowers/plans/2026-10-03-desk-reskin.md).
   Dark is the default; <html data-theme="light"> switches. Token NAMES are unchanged so every existing rule keeps working;
   the values follow docs/mockups/desk-saas (logo green as the brand colour, lifted graphite surfaces). ---- */
:root {
    --bg:#1A1E25; --bg2:#1D2229; --panel:#232830; --panel2:#282E37;
    --line:#343B46; --line2:#48515E;
    --ink:#EDF0F4; --text:#C9D1DA; --muted:#A7B0BB; --faint:#7B8491;
    --green:#36e0a0; --amber:#F5B544; --red:#FF6B6B; --blue:#4CC3E6;
    --glow-green:rgba(54,224,160,.35); --glow-red:rgba(255,107,107,.30);
    --green-soft:rgba(54,224,160,.14); --amber-soft:rgba(245,181,68,.16); --red-soft:rgba(255,107,107,.16); --blue-soft:rgba(76,195,230,.16);
    --green-ink:#06251A;   /* text on a solid green button */
    --mono:'JetBrains Mono', ui-monospace, Consolas, monospace;
    --disp:'Figtree', system-ui, sans-serif;
    --ui:'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.45);
    --bar:#13161B; --bar-line:#2A303A;
    /* legacy aliases so existing classes adopt the palette unchanged */
    --txt:#EDF0F4; --card:#232830; --accent:#36e0a0; --ok:#36e0a0; --bad:#FF6B6B;
    color-scheme: dark;
}
:root[data-theme="light"] {
    /* 2026-10-03: cool slate light mode — white top bar, light grey canvas, white cards */
    --bg:#F3F5F8; --bg2:#EEF1F5; --panel:#FFFFFF; --panel2:#F7F9FB;
    --line:#E3E8EE; --line2:#CBD5E1;
    --ink:#0F172A; --text:#334155; --muted:#334155; --faint:#334155;
    --green:#0FA37A; --amber:#D97706; --red:#DC2626; --blue:#0E7490;
    --glow-green:rgba(15,163,122,.25); --glow-red:rgba(220,38,38,.2);
    --green-soft:rgba(15,163,122,.12); --amber-soft:rgba(217,119,6,.12); --red-soft:rgba(220,38,38,.10); --blue-soft:rgba(14,116,144,.12);
    --green-ink:#FFFFFF;
    --shadow:0 1px 2px rgba(28,25,23,.04), 0 10px 30px -12px rgba(28,25,23,.10);
    --bar:#FFFFFF; --bar-line:#E3E8EE;
    --txt:#1C1917; --card:#FFFFFF; --accent:#0FA37A; --ok:#0FA37A; --bad:#DC2626;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); } /* any area outside the body (overscroll, oversize windows) stays dark */
body {
    font-family: var(--mono); color: var(--ink); margin: 0; padding: 1.5rem;
    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 (mockup signature) */
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; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.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: linear-gradient(180deg, #2a1418, #1a0e11); border-color: #5a2330; color: #ffd7df; }
.msg-banner { transition: opacity .5s ease; }   /* status banners fade out before auto-dismiss */
.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; }
}
/* mockup-style card: title bar with bottom border, body flush to the edges */
.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; }   /* ~10 rows visible, then scroll (mockup-style) */

/* themed scrollbars for the scroll regions (mockup parity) */
.osbody::-webkit-scrollbar, .feed-fanout::-webkit-scrollbar, .feed::-webkit-scrollbar, .mt-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.osbody::-webkit-scrollbar-thumb, .feed-fanout::-webkit-scrollbar-thumb, .feed::-webkit-scrollbar-thumb, .mt-scroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.osbody::-webkit-scrollbar-thumb:hover, .feed-fanout::-webkit-scrollbar-thumb:hover, .feed::-webkit-scrollbar-thumb:hover, .mt-scroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.osbody::-webkit-scrollbar-track, .feed-fanout::-webkit-scrollbar-track, .feed::-webkit-scrollbar-track, .mt-scroll::-webkit-scrollbar-track { background: transparent; }
.osbody, .feed-fanout, .feed, .mt-scroll { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }

/* ---- Live Copy Stream: single-deal fan-out (mockup parity) ---- */
.tag { font-size: .6rem; color: var(--faint); letter-spacing: 1.5px; text-transform: uppercase; }
.deal-hd { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(90,169,255,.05); border-bottom: 1px solid var(--line); font-family: var(--mono); }
.ev { font-family: var(--disp); font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; }
.ev.open { color: var(--blue); }
.ev.close { color: var(--amber); }
.deal-hd .dsym { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.deal-hd .dbuy { color: var(--green); font-weight: 700; }
.deal-hd .dsell { color: var(--red); font-weight: 700; }
.deal-hd .dlot { color: var(--muted); font-size: .78rem; }
.deal-hd .dlot b { color: var(--ink); }
.deal-hd .dord { font-size: .7rem; color: var(--faint); margin-left: auto; text-align: right; line-height: 1.5; }
.deal-hd .dord b { color: var(--muted); font-weight: 500; }
.fanbar { display: flex; align-items: center; gap: 12px; padding: 9px 16px; font-size: .66rem; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--bg2); font-family: var(--mono); }
.fanbar .fb-done { color: var(--green); font-weight: 700; }
.fanbar .fb-placed { color: var(--amber); font-weight: 700; }
.fanbar .fb-failed { color: var(--faint); }
.fanbar .prog { flex: 1; height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; display: flex; }
.fanbar .prog i { height: 100%; }
.feed-fanout { max-height: 340px; overflow: auto; }
.feed-fanout table { width: 100%; border-collapse: collapse; font-size: .72rem; font-family: var(--mono); }
.feed-fanout th { position: sticky; top: 0; background: var(--panel2); text-align: left; padding: 8px 16px; color: var(--faint); font-weight: 500; font-size: .58rem; letter-spacing: 1.4px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.feed-fanout td { padding: 8px 16px; border-bottom: 1px solid rgba(30,38,48,.5); color: var(--muted); font-variant-numeric: tabular-nums; }
.feed-fanout tr:last-child td { border-bottom: none; }
.feed-fanout tbody tr:hover td { background: rgba(90,169,255,.04); }
.feed-fanout .num { text-align: right; }
.feed-fanout .grp { color: var(--faint); }
.feed-fanout .ratio { color: var(--blue); font-weight: 600; }
.pill.done { color: var(--green); background: rgba(54,224,160,.1); border: 1px solid rgba(54,224,160,.3); }
.pill.done::before { background: var(--green); box-shadow: 0 0 7px var(--green); }
.pill.placed { color: var(--amber); background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.3); }
.pill.placed::before { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.pill.failed { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); }
.pill.failed::before { background: var(--red); box-shadow: 0 0 7px var(--red); }
.lat { font-weight: 700; }
.lat.ok { color: var(--green); }
.lat.warn { color: var(--amber); }
.lat.bad { color: var(--red); }
.kv { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; border-bottom: 1px solid rgba(30,38,48,.6); font-size: .82rem; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { font-variant-numeric: tabular-nums; color: var(--ink); }
.muted { color: var(--muted); }
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; }
.badge { display: inline-flex; align-items: center; padding: .18rem .6rem; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .5px; }
.badge.ok { background: rgba(54,224,160,.1); color: var(--green); border: 1px solid rgba(54,224,160,.3); }
.badge.bad { background: rgba(255,93,115,.1); color: var(--red); border: 1px solid rgba(255,93,115,.3); }
.dot.on { color: var(--green); } .dot.off { color: var(--muted); }
.side { font-weight: 700; } .side.buy { color: var(--green); } .side.sell { color: var(--red); }

.ksbtn { margin-top: .8rem; width: 100%; padding: .55rem; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; color: #fff; }
.ksbtn.stop { background: #d23b3b; } .ksbtn.stop:hover { background: #e54b4b; }
.ksbtn.go { background: #1f9d57; } .ksbtn.go:hover { background: #25b365; }
.ksbtn:disabled { opacity: .5; cursor: default; }
.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); }
/* ── Manage v2: add-panels above the tables, segmented tabs, badges + pills ─────────── */
.livenote { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .68rem; letter-spacing: .4px; margin-left: auto; }
.livenote .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(54,224,160,.7); }
.headrow { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; width: fit-content; margin-bottom: 1.1rem; }
.seg button { appearance: none; border: none; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .78rem;
    padding: .5rem 1.05rem; border-radius: 7px; cursor: pointer; display: flex; align-items: center; gap: 8px; letter-spacing: .02em; }
.seg button .n { font-size: .62rem; background: var(--panel2); border: 1px solid var(--line2); border-radius: 999px; padding: .08rem .48rem; color: var(--faint); }
.seg button.active { background: var(--panel2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2), 0 2px 8px rgba(0,0,0,.35); }
.seg button.active .n { color: var(--blue); border-color: rgba(90,169,255,.35); }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

.addpanel { padding: 14px 16px 16px; margin-bottom: 14px; }
.addpanel .aphead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.addpanel .aphead h3 { margin: 0; font-family: var(--disp); font-size: .72rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue); font-weight: 700; }
.addpanel .aphead .apline { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(90,169,255,.35), transparent); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f label { font-size: .58rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.f input, .f select { background: var(--bg2); border: 1px solid var(--line2); border-radius: 7px; padding: .44rem .55rem; font-size: .82rem; min-width: 0; width: 100%; box-sizing: border-box; }
.f input:focus, .f select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(90,169,255,.18); }
.f .sub { font-size: .6rem; color: var(--faint); }
.fields .combo { display: block; }
.fields .combo-input { width: 100%; box-sizing: border-box; }
.btnadd { appearance: none; border: none; border-radius: 5px; font-family: var(--mono); font-weight: 700; cursor: pointer; padding: .5rem 1.1rem; font-size: .8rem;
    background: #1f9d57; color: #fff; align-self: end; justify-self: start; min-width: 9rem; }
.btnadd:hover { filter: brightness(1.25); }
.modehint { margin-top: 10px; font-size: .68rem; color: var(--muted); background: var(--bg2); border: 1px dashed var(--line2); border-radius: 7px; padding: .45rem .7rem; width: fit-content; }
.modehint b { color: var(--amber); }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.searchbox { display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .42rem .7rem; color: var(--faint); min-width: 220px; }
.searchbox input { background: transparent; border: none; color: var(--ink); font-size: .78rem; outline: none; width: 100%; padding: 0; }
.fchip { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; background: rgba(90,169,255,.1); color: var(--blue); border: 1px solid rgba(90,169,255,.3); border-radius: 999px; padding: .22rem .65rem; }
.fchip button { background: none; border: none; color: inherit; cursor: pointer; opacity: .7; font-size: .68rem; padding: 0; }
.tcount { color: var(--faint); font-size: .7rem; margin-left: auto; }
.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); }

.tcard { overflow: hidden; padding: 0; }
.tscroll { overflow: auto; max-height: 430px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.tscroll::-webkit-scrollbar { width: 8px; height: 8px; }
.tscroll::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.tscroll::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.tscroll::-webkit-scrollbar-track { background: transparent; }
.tscroll table { white-space: nowrap; }
.tscroll thead th { position: sticky; top: 0; z-index: 2; background: var(--panel2); color: var(--muted); font-size: .6rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line2); }
.tscroll td { padding: .55rem .85rem; }
.tscroll tbody tr:hover td { background: rgba(90,169,255,.05); }
.tscroll .num { text-align: right; }
.acct { color: var(--ink); font-weight: 700; }
.mname { color: var(--faint); font-size: .68rem; }

.modebadge { display: inline-flex; align-items: center; gap: 5px; font-size: .62rem; font-weight: 700; letter-spacing: .6px; border-radius: 6px; padding: .2rem .55rem; }
.modebadge.eq { background: rgba(90,169,255,.12); color: var(--blue); border: 1px solid rgba(90,169,255,.3); }
.modebadge.mu { background: rgba(178,141,255,.12); color: #b28dff; border: 1px solid rgba(178,141,255,.3); }
.modebadge.fx { background: rgba(255,181,71,.12); color: var(--amber); border: 1px solid rgba(255,181,71,.3); }
.setting .u { color: var(--faint); font-size: .66rem; margin-left: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 700; border-radius: 999px; padding: .18rem .6rem; letter-spacing: .5px; }
.pill.on { background: rgba(54,224,160,.1); color: var(--green); border: 1px solid rgba(54,224,160,.3); }
.pill.off { background: rgba(126,138,153,.08); color: var(--muted); border: 1px solid var(--line2); }
.pill .d { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.acts { display: flex; gap: 6px; justify-content: flex-end; opacity: .45; transition: opacity .12s; }
tr:hover .acts, .acts:focus-within { opacity: 1; }
.linky { background: none; border: none; color: var(--blue); font-family: var(--mono); font-size: .78rem; cursor: pointer; padding: 0; }
.linky:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .acts { transition: none; } }

/* Manage page tabs */
.tabs { display: flex; gap: 2px; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.tab { background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--muted); padding: .6rem 1.2rem; font-size: .82rem; font-weight: 600; cursor: pointer; letter-spacing: .03em; font-family: var(--mono); }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.slavefilter { float: right; font-weight: 400; font-size: .78rem; text-transform: none; letter-spacing: 0; color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; }
.slavefilter input { width: 9.5rem; }

/* searchable master combobox (slave add-row) — styled dropdown with full scrollable option list */
.combo { position: relative; display: inline-block; }
.combo-input { width: 11rem; padding-right: 2.2rem; }
/* 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; }
/* Read-only cell that mirrors a derived value (e.g. slave Sizing follows its master). */
.locked { display: inline-block; color: var(--muted); font-size: .85rem; }
.rowbtns { display: inline-flex; align-items: center; gap: .35rem; }
.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); }
/* 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; }
.combo-arrow { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); cursor: pointer; user-select: none; line-height: 1; color: var(--muted); font-size: 1.5rem; }
.combo-arrow:hover { color: var(--ink); }
.combo-panel { position: absolute; top: calc(100% + 3px); left: 0; min-width: 100%; z-index: 60; max-height: 240px; overflow-y: auto; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.5); padding: 4px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.combo-opt { padding: .42rem .6rem; border-radius: 5px; cursor: pointer; font-size: .85rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.combo-opt:hover { background: rgba(90,169,255,.14); }
.combo-opt.sel { background: rgba(90,169,255,.22); color: var(--blue); }
.combo-empty { padding: .42rem .6rem; color: var(--muted); font-size: .82rem; }
.combo-panel::-webkit-scrollbar { width: 8px; }
.combo-panel::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.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: #16321f; border-color: #2a6a42; color: #b9f5cf; }
.feed { max-height: 220px; overflow-y: auto; font-family: var(--mono); font-size: .82rem; }
.feedline { padding: .12rem 0; border-bottom: 1px solid rgba(42,51,70,.5); white-space: pre-wrap; }
.feedline .t { color: var(--accent); margin-right: .5rem; }

/* ---- Dispatch Latency: grouped master→slave feed with Δ bar (parsed from the existing feed lines) ---- */
.dl { max-height: 360px; overflow-y: auto; font-family: var(--mono); }
.dl-legend { display: flex; gap: 12px; align-items: center; padding: 0 0 9px; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); flex-wrap: wrap; }
.dl-legend .sw { width: 13px; height: 4px; border-radius: 2px; display: inline-block; margin-right: 4px; vertical-align: middle; }
.dl-legend .nt { margin-left: auto; text-transform: none; letter-spacing: .02em; }
.dl-row { display: grid; grid-template-columns: 58px 56px 1fr auto; align-items: center; gap: 10px; padding: 4px 2px; font-size: .76rem; }
.dl-row.master { border-top: 1px solid rgba(42,51,70,.5); margin-top: 3px; padding-top: 8px; }
.dl-row.master:first-child { border-top: none; margin-top: 0; }
.dl-t { color: var(--faint); font-size: .66rem; font-variant-numeric: tabular-nums; }
.dl-ev { justify-self: start; font-weight: 700; font-size: .56rem; letter-spacing: .08em; padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.dl-ev.open  { color: var(--blue);  background: rgba(90,169,255,.13); }
.dl-ev.close { color: var(--amber); background: rgba(255,181,71,.13); }
.dl-ev.copy  { color: #8fb6e8;      background: rgba(90,169,255,.08); }
.dl-ev.skip, .dl-ev.blocked, .dl-ev.other { color: var(--faint); background: rgba(255,255,255,.04); }
.dl-body { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.dl-row.child .dl-body { position: relative; padding-left: 20px; }
.dl-row.child .dl-body::before { content: ""; position: absolute; left: 5px; top: 50%; width: 9px; height: 1px; background: var(--line2); }
.dl-who { color: var(--ink); font-weight: 700; }
.dl-sym { color: #aeb9c6; }
.dl-side { font-size: .56rem; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; }
.dl-side.buy  { color: var(--green); background: rgba(54,224,160,.1); }
.dl-side.sell { color: var(--red);   background: rgba(255,93,115,.1); }
.dl-kv { color: var(--muted); font-size: .72rem; }
.dl-px { color: #cbd5e1; font-variant-numeric: tabular-nums; }
.dl-fan { color: var(--faint); font-size: .72rem; }
.dl-note { color: var(--faint); font-size: .72rem; }
.dl-right { display: flex; align-items: center; gap: 11px; justify-self: end; font-variant-numeric: tabular-nums; }
.dl-clock { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.dl-clock b { color: var(--ink); font-weight: 600; }
.dl-bar { position: relative; width: 116px; height: 8px; }
.dl-bar .trk { position: absolute; inset: 0; border-radius: 5px; background: rgba(255,255,255,.05); overflow: hidden; }
.dl-bar .fil { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.dl-bar .fil.ok   { background: linear-gradient(90deg,#1f9d57,var(--green)); }
.dl-bar .fil.warn { background: linear-gradient(90deg,#c7902f,var(--amber)); }
.dl-bar .fil.bad  { background: linear-gradient(90deg,#c63d4e,var(--red)); }
.dl-bar .sla { position: absolute; top: -3px; bottom: -3px; left: 25%; width: 1px; background: rgba(255,255,255,.22); }
.dl-ms { width: 50px; text-align: right; font-weight: 700; font-size: .8rem; }
.dl-ms small { font-size: .56rem; color: var(--faint); font-weight: 400; }
.dl-ms.ok { color: var(--green); } .dl-ms.warn { color: var(--amber); } .dl-ms.bad { color: var(--red); }
/* ---- Responsive: collapse the fixed multi-column dashboard on narrow screens ---- */
@media (max-width: 1024px) {
  .grid  { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  /* Manage page: let the wide account tables scroll horizontally instead of breaking the page. */
  .tabs { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  body { padding: 1rem .8rem; }
  body .appbar { margin-left: -.8rem; margin-right: -.8rem; }  /* match reduced body padding; body-prefix beats the later base .appbar rule */
  /* 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 (same trick as the body .appbar margin above), else source order would let them win. */
  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; }   /* MANAGER / 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; }
  .grid { grid-template-columns: 1fr; }
  .title { font-size: 1.2rem; line-height: 1.35; }
  .card { padding: .85rem .95rem; }
  .cardhd, .deal-hd, .oshead, .fanbar { flex-wrap: wrap; }
  .mt-scroll, .feed-fanout, .osbody, .dl { overflow-x: auto; }
  .dl-row { grid-template-columns: 50px 50px 1fr; }
  .dl-right { grid-column: 1 / -1; justify-self: start; padding-left: 70px; }
  .dl-bar { width: 90px; }
}
@media (max-width: 460px) {
  /* tiny screens: drop the MANAGER/UTC info chips so the brand + actions fit cleanly */
  .appbar .ab-stat, .appbar .ab-sep { display: none; }
}

/* ---- Live Copy Stream: open slave positions grouped by master ---- */
.osgroup { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: var(--bg2); }
.osgroup:last-child { margin-bottom: 0; }
.oshead { display: flex; align-items: center; gap: 11px; padding: 11px 16px;
    background: rgba(90,169,255,.05);
    border-bottom: 1px solid var(--line); font-family: var(--mono); }
.osside { font-weight: 700; font-size: .62rem; letter-spacing: .5px; padding: 3px 9px; border-radius: 6px; }
.osside.buy { color: var(--green); background: rgba(54,224,160,.1); border: 1px solid rgba(54,224,160,.3); }
.osside.sell { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); }
.ossym { font-weight: 700; letter-spacing: .04em; color: var(--ink); font-size: .95rem; }
.osmeta { color: var(--muted); font-size: .7rem; }
.osmeta b { color: var(--ink); font-weight: 700; }
.osstat { margin-left: auto; color: var(--faint); font-size: .62rem; letter-spacing: 1px; text-transform: uppercase; }
.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); }
.ostable .grp { color: var(--faint); }
.ostable .ratio { color: var(--blue); font-weight: 600; }
.oshead-close { margin-left: auto; font-size: .64rem; letter-spacing: .04em; padding: .2rem .6rem; white-space: nowrap; }

/* ---- Live profit (worker-pushed MT5 floating 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; }
.mrem { color: var(--muted); font-size: .68rem; }
.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; }

/* ---- Recent master trades: deals table (mockup parity) ---- */
.mt-scroll { max-height: 360px; overflow-y: auto; }   /* ~10 rows visible, then scroll */
.mt { width: 100%; border-collapse: collapse; font-size: .72rem; font-family: var(--mono); }
.mt th { position: sticky; top: 0; z-index: 1; background: var(--panel2); text-align: left; padding: 10px 16px; color: var(--faint); font-weight: 500; font-size: .58rem; letter-spacing: 1.4px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mt td { padding: 10px 16px; border-bottom: 1px solid rgba(30,38,48,.5); color: var(--muted); font-variant-numeric: tabular-nums; }
.mt tr:last-child td { border-bottom: none; }
.mt tbody tr:hover td { background: rgba(90,169,255,.04); }
.mt .num { text-align: right; }
.mt .sym { color: var(--ink); font-weight: 600; }
.mt .dir-buy { color: var(--green); font-weight: 600; }
.mt .dir-sell { color: var(--red); font-weight: 600; }
.mt .dt { line-height: 1.3; padding-top: 7px; padding-bottom: 7px; }
.mt .dt .d { display: block; font-size: .6rem; color: var(--faint); letter-spacing: .3px; }
.mt .dt .tm { display: block; font-size: .68rem; color: var(--muted); }
.mode { font-size: .58rem; letter-spacing: 1px; color: var(--faint); border: 1px solid var(--line2); border-radius: 5px; padding: 2px 7px; }
.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.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); }

/* ---- Top app bar (mockup parity) ---- */
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem 1.3rem; margin: -1.5rem -1.5rem 1.3rem; /* full-bleed past the body padding */
    background: linear-gradient(180deg, #0b0f17, 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-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); }

/* ---- Connection status: glowing LIVE pill (worker Link row) ---- */
.livepill { display: inline-flex; align-items: center; gap: .6rem; padding: .32rem .85rem .32rem .62rem; border-radius: 10px; font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .15em; }
.livepill .lp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; position: relative; }
.livepill.on { color: #36e0a0; border: 1px solid rgba(54,224,160,.4); background: rgba(54,224,160,.07); }
.livepill.on .lp-dot { background: #36e0a0; box-shadow: 0 0 8px rgba(54,224,160,.6); }
/* Radar "ping" ring expanding out of the dot — matches LIVE · PUMP FULL in the mockup. */
.livepill.on .lp-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #36e0a0; animation: lp-ping 1.8s ease-out infinite; }
.livepill.off { color: var(--red); border: 1px solid rgba(255,93,115,.4); background: rgba(255,93,115,.07); }
.livepill.off .lp-dot { background: var(--red); box-shadow: 0 0 7px var(--red); }
@keyframes lp-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

#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 page + top bar */
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .4rem .9rem; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.topbar-user strong { color: var(--txt); }
.topbar-logout { margin: 0; }
.topbar-logout button { border: 1px solid var(--line); background: var(--line); color: var(--txt); border-radius: 6px; padding: .25rem .65rem; font-size: .78rem; cursor: pointer; }
.topbar-logout button:hover { filter: brightness(1.25); }

/* full-viewport scroll layer that escapes the dashboard body padding */
/* 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, #0a0d11, #0c1016); }
/* 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: #3a1620; border: 1px solid #6a2a35; color: #f5b9c5; border-radius: 9px; padding: .55rem .7rem; margin-bottom: .95rem; font-size: .82rem; font-family: var(--mono); }
.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; } }
@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; }
}
/* ==== Prop pages (/prop/*) — ported verbatim from PropPortal/wwwroot/app.css lines 162–202 and 374–377 on 2026-09-20.
   The prop admin pages were written against the portal's kpi/chip/live vocabulary, which this file never had,
   so every /prop page rendered as unstyled text. Same design tokens in both apps; nothing above this line changed. ==== */
.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; } }
@media (max-width: 680px) {
  .portalhd { gap: 12px; }
  .chip.chip-link { margin-left: 0; }
  .pf-name { font-size: 20px; }
  .kpi .val { font-size: 20px; }
}

/* ==== Prop pages v2 — the clarity pass of 2026-09-20 (docs/superpowers/plans/2026-09-20-ui-clarity.md).
   Every rule below is scoped to `.prop`, the wrapper each /prop/* page carries, so the copier's own pages
   (Home, Trades, MyPanel, Users…) are untouched. The same vocabulary (.pagehd .notice .fields .tag .legend
   .fold .sect) exists word for word in PropPortal/wwwroot/app.css. ==== */
/* /prop pages use the full viewport width with a 16px gutter: the body's 1.5rem padding (0.8rem on a phone) is
   pulled back to 16px here, and nowhere else, so the copier pages keep their spacing. */
.prop { display: block; min-width: 0; width: auto; margin: 0 calc(16px - 1.5rem); }
@media (max-width: 680px) { .prop { margin: 0 calc(16px - .8rem); } }

/* page header: one title, one sentence saying what the page is for, the way back on the right */
.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; }

/* the prop desk tab bar (.flow) is styled in the 2026-09-22 mockup block at the end of this file */
.prop .chip.chip-link.primary { color: #06231a; background: linear-gradient(180deg, #45ecb0, var(--green)); border-color: transparent; }

/* cards */
.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.flush .cardnote + .osbody, .prop .card.flush .cardnote + .kpis { margin-top: 6px; }

/* notices: a bold first line that says what is true, a wrapping second line that says what to do */
.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 ul { margin: 6px 0 0; padding-left: 1.2rem; color: var(--muted); }
.prop .notice .mono { word-break: break-all; }
.prop .notice .rowbtns { margin-top: 10px; }
.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); }

/* forms: a real grid of labelled controls; the old markup had label text and input on one inline run */
.prop .fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 14px; align-items: start; margin: 0 0 12px; }
.prop .card.flush > .fields { padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); }
.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 > label > input:disabled, .prop .fields > label > select:disabled { opacity: .55; }
.prop .fields .hint { text-align: left; margin: 0; font-size: .64rem; color: var(--faint); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
.prop .fields > label.check { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 20px; font-weight: 500; color: var(--ink); letter-spacing: 0; font-size: .76rem; }
.prop .fields > label.check > input { width: auto; margin: 0; accent-color: var(--green); }
.prop .fields > label.check .hint { flex-basis: 100%; padding-left: 21px; }
.prop .fields > .wide { grid-column: 1 / -1; }
.prop .choices { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; grid-column: 1 / -1; }
.prop .choices .choices-lbl { flex-basis: 100%; font-size: .68rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.prop .choices > label { display: inline-flex; gap: 6px; align-items: center; font-size: .76rem; color: var(--ink); }
.prop .choices > label > input { margin: 0; accent-color: var(--green); }
.prop .choices .hint { flex-basis: 100%; text-align: left; margin: 0; font-size: .64rem; color: var(--faint); }
.prop .rowbtns { flex-wrap: wrap; gap: 8px; }
.prop .card > .rowbtns { margin-top: 6px; }
.prop .btnadd { min-width: 0; }
.prop .btnadd.danger { background: #b83a4b; }
.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 .foot code, .prop .hint code, .prop .notice code { font-family: var(--mono); color: var(--ink); background: var(--panel2); border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; font-size: .95em; }

/* sections inside a card (the plan editor) */
.prop .sect { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.prop .sect:first-child, .prop .cardhd + .sect { border-top: none; padding-top: 0; margin-top: 4px; }
.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 .sect .mono { font-size: .68rem; }

/* folds: native <details>, so rarely used groups stay one click away with no script */
.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 > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 10px; }
.prop details.fold > summary .sname { font-weight: 700; }
.prop details.fold > summary .sval { font-family: var(--mono); color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; }
.prop details.fold > summary .smeta { color: var(--muted); font-size: .72rem; }
.prop details.fold > .fold-body { padding: 4px 14px 14px; border-top: 1px solid var(--line); }
.prop details.fold > .fold-body > .help { color: var(--muted); font-size: .74rem; line-height: 1.5; margin: 10px 0 12px; max-width: 90ch; }
.prop details.fold.quiet { background: transparent; border-style: dashed; }
.prop details.fold details.fold { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .prop details.fold > summary::before { transition: none; } }

/* tags: colour AND a word, never colour alone */
.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 .pill.bad { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.3); }
.prop .pill.bad .d { background: var(--red); box-shadow: 0 0 7px var(--red); }
.prop .pill.warn { color: var(--amber); background: rgba(255,181,71,.1); border: 1px solid rgba(255,181,71,.3); }
.prop .pill.warn .d { background: var(--amber); }
.prop .pill::before { display: none; }   /* the prop pages draw the dot with <span class="d">; the copier's ::before dot would be a second one */

/* legends: the technical terms a table shows, each with its meaning */
.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; }

/* tables: scroll inside the panel, never off the page; no vertical cap on these pages */
.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; }
.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 .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.prop .ostable .stack { line-height: 1.4; }
.prop .ostable .stack small { display: block; color: var(--faint); font-size: .64rem; }
.prop .ostable td.rowbtns { display: table-cell; }
.prop .ostable td .rowbtns { display: inline-flex; flex-wrap: nowrap; }
.prop .ostable td input { width: 11rem; }
.prop tr.locked { display: table-row; color: inherit; font-size: inherit; }
.prop tr.locked td { background: rgba(90,169,255,.07); }
.prop tr.stale td { background: rgba(255,181,71,.06); }

/* tiles */
.prop .kpis { padding: 12px 16px; margin: 0; }
.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 .val.warn { color: var(--amber); }
.prop .kpi .sub { line-height: 1.45; white-space: normal; }

/* the plan editor's phase tabs use .tab.on, which the copier's .tab.active rule never covered */
.prop .tabs { flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 14px; }
.prop .tab { padding: .55rem .9rem; font-size: .78rem; }
.prop .tab.on { color: var(--ink); border-bottom-color: var(--blue); }
.prop .tabs .ghostbtn { margin-left: auto; }
.prop .tabs .ghostbtn + .ghostbtn { margin-left: 0; }
.prop .ghostbtn.small { padding: .28rem .6rem; font-size: .68rem; }

@media (max-width: 680px) {
  .prop .pagehd h1 { font-size: 1.2rem; }
  .prop .kpis { grid-template-columns: 1fr 1fr; padding: 10px 12px; gap: 8px; }
  .prop .kpi { padding: 10px 12px; }
  .prop .fields { grid-template-columns: 1fr 1fr; }
  .prop .fields > label.check { padding-top: 0; }
  .prop .legend, .prop .cardnote { padding-left: 12px; padding-right: 12px; }
  .prop .osbody > .muted, .prop .osbody > .empty { padding: 12px; }
  .prop .tabs .ghostbtn { margin-left: 0; }
  .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 .rowbtns { max-width: 100%; }
.prop .rowbtns > select, .prop .cardhd > select { max-width: 100%; min-width: 0; flex: 1 1 12rem; }
.prop .cardhd > select { flex: 0 1 auto; }
.prop .card.flush > .cardnote { padding: 10px 16px 0; }
.prop .pad > .muted, .prop .card.flush > .muted { font-size: .8rem; line-height: 1.5; }

/* fleet: the reason under a verdict (which rules are close to or past their limit), from the same reading the account page shows */
.prop .ostable .stack small.why { white-space: normal; min-width: 240px; max-width: 320px; line-height: 1.35; margin-top: 3px; cursor: help; }

/* ==== plan editor: rule chooser, rule builder, formula editor, breach block (2026-09-22) ==== */
.prop .rule-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 0 0 14px; }
.prop .rule-add-card { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); min-width: 0; }
.prop .rule-add-card > b { font-family: var(--disp); font-size: .86rem; color: var(--ink); }
.prop .rule-add-card > p { margin: 0 0 4px; color: var(--muted); font-size: .72rem; line-height: 1.45; flex: 1; }
.prop .rule-add-card .rowbtns { margin: 0; }
.prop .rule-add-card select { flex: 1 1 10rem; min-width: 0; }

/* the composed rule reads as one sentence */
.prop .rname { display: flex; flex-direction: column; gap: 5px; margin: 10px 0 12px; font-size: .68rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; max-width: 420px; }
.prop .rname > input { width: 100%; 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 .rname > input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(90,169,255,.18); }
.prop .sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); font-size: .9rem; color: var(--ink); margin: 0 0 10px; }
.prop .sentence .w { color: var(--muted); font-weight: 600; font-size: .8rem; }
.prop .sentence select, .prop .sentence input { background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: .4rem .55rem; font-size: .84rem; color: var(--ink); min-width: 0; }
.prop .sentence select:focus, .prop .sentence input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(90,169,255,.18); }
.prop .sentence select.measure { flex: 1 1 16rem; max-width: 100%; }
.prop .sentence input.val { width: 7.5rem; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.prop .sentence .cmp { display: inline-flex; align-items: center; padding: .34rem .6rem; border-radius: 7px; border: 1px solid var(--line2); background: var(--panel2); font-size: .8rem; color: var(--ink); font-weight: 600; }
.prop .sentence .unit { color: var(--muted); font-size: .84rem; }
.prop .sentence .about { flex-basis: 100%; color: var(--faint); font-size: .68rem; line-height: 1.4; }
.prop .preview { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.prop .preview b { color: var(--ink); font-family: var(--mono); font-weight: 600; word-break: break-word; }
.prop .preview .fig-lab { font-size: .68rem; letter-spacing: .04em; font-weight: 600; }
.prop .warnrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .74rem; color: var(--muted); }
.prop .warnrow input { width: 5rem; background: var(--bg2); border: 1px solid var(--line2); border-radius: 7px; padding: .3rem .5rem; font-size: .8rem; color: var(--ink); }

/* formula editor: a dark code box with the verdict pinned under it */
.prop .code { width: 100%; box-sizing: border-box; resize: vertical; min-height: 4.6rem; font-family: var(--mono); font-size: .86rem; line-height: 1.5; color: #e6edf3; background: #0b0f14;
    border: 1px solid var(--line2); border-radius: 9px 9px 0 0; padding: .6rem .75rem; tab-size: 4; }
.prop .code:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(90,169,255,.18); }
.prop .code:disabled { opacity: .6; }
.prop .code::placeholder { color: #4b5a6b; }
.prop .fstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 7px 10px; border: 1px solid var(--line2); border-top: none; border-radius: 0 0 9px 9px; background: var(--bg2); font-size: .74rem; color: var(--muted); margin: 0 0 12px; }
.prop .fstatus .pill-s { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.prop .fstatus .pill-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prop .fstatus.ok .pill-s { color: var(--green); background: rgba(54,224,160,.1); border: 1px solid rgba(54,224,160,.35); }
.prop .fstatus.bad .pill-s { color: var(--red); background: rgba(255,93,115,.1); border: 1px solid rgba(255,93,115,.35); }
.prop .fstatus.bad { border-color: rgba(255,93,115,.4); }
.prop .fstatus .echo { flex-basis: 100%; font-family: var(--mono); font-size: .8rem; color: #e6edf3; white-space: pre-wrap; word-break: break-word; }
.prop .fstatus .echo mark { background: rgba(255,93,115,.28); color: var(--red); border-bottom: 2px solid var(--red); border-radius: 2px; padding: 0 1px; }
.prop .figpanel { border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 10px 12px; margin: 0 0 12px; }
.prop .figpanel .fp-hd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: .68rem; letter-spacing: .04em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.prop .figpanel .fp-hd small { font-weight: 400; letter-spacing: 0; color: var(--faint); }
.prop .figgrp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.prop .figgrp .gname { flex-basis: 100%; font-size: .64rem; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-top: 2px; }
.prop .fig { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink);
    font-family: var(--mono); font-size: .74rem; cursor: pointer; line-height: 1.5; max-width: 100%; }
.prop .fig small { color: var(--faint); font-family: var(--font, inherit); font-size: .62rem; }
.prop .fig:hover, .prop .fig:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }
.prop .fig.off { border-style: dashed; opacity: .6; }
.prop .fig:disabled { cursor: default; opacity: .5; }
.prop .ops { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 0; font-size: .7rem; color: var(--muted); }
.prop .ops .op { font-family: var(--mono); color: var(--ink); background: var(--panel2); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; font-size: .72rem; }
.prop .ops .lbl { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin-right: 2px; }
.prop .ops .ex { background: none; border: none; padding: 0; color: var(--blue); font-family: var(--mono); font-size: .72rem; cursor: pointer; text-decoration: underline dotted; }
.prop .ops .ex:disabled { opacity: .5; cursor: default; }
.prop .trycard { border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); padding: 12px 14px; margin: 0 0 12px; }
.prop .trycard .tc-hd { font-family: var(--disp); font-size: .84rem; color: var(--ink); margin-bottom: 2px; }
.prop .trycard .tc-sub { color: var(--muted); font-size: .7rem; line-height: 1.45; margin-bottom: 8px; }
.prop .trycard .rowbtns { margin: 0; }
.prop .trycard select { flex: 1 1 14rem; min-width: 0; max-width: 100%; background: var(--panel2); border: 1px solid var(--line2); border-radius: 7px; padding: .4rem .55rem; font-size: .82rem; color: var(--ink); }
.prop .verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.prop .verdict .big { font-family: var(--disp); font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; padding: 6px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); }
.prop .verdict .big.t { color: var(--amber); border-color: rgba(255,181,71,.4); background: rgba(255,181,71,.1); }
.prop .verdict .big.f { color: var(--green); border-color: rgba(54,224,160,.4); background: rgba(54,224,160,.1); }
.prop .verdict .big.e { color: var(--red); border-color: rgba(255,93,115,.4); background: rgba(255,93,115,.1); font-size: 1.05rem; }
.prop .verdict .vtxt { flex: 1 1 200px; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.prop .verdict .vfigs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.prop .verdict .vfigs span { font-family: var(--mono); font-size: .72rem; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line2); background: var(--panel2); color: var(--ink); }
.prop .verdict .vfigs span i { font-style: normal; color: var(--muted); }

/* the breach block: hard/soft first, then what happens on MT5 */
.prop .breach { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); margin: 4px 0 12px; }
.prop .breach-hd { font-family: var(--disp); font-size: .84rem; font-weight: 700; color: var(--ink); }
.prop .breach-note { color: var(--faint); font-size: .68rem; line-height: 1.45; }
.prop .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.prop .seg-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); color: var(--muted); cursor: pointer; font: inherit; }
.prop .seg-opt b { font-size: .8rem; color: var(--ink); }
.prop .seg-opt small { font-size: .68rem; line-height: 1.4; }
.prop .seg-opt.on.bad { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: rgba(255,93,115,.08); }
.prop .seg-opt.on.bad b { color: var(--red); }
.prop .seg-opt.on.warn { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); background: rgba(255,181,71,.08); }
.prop .seg-opt.on.warn b { color: var(--amber); }
.prop .seg-opt:disabled { cursor: default; opacity: .7; }
.prop .seg-opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.prop .switches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.prop .switch { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; }
.prop .switch > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.prop .switch .track { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line2); position: relative; transition: background .15s; margin-top: 2px; }
.prop .switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.prop .switch > input:checked ~ .track { background: var(--green); }
.prop .switch > input:checked ~ .track::after { transform: translateX(14px); }
.prop .switch > input:focus-visible ~ .track { outline: 2px solid var(--blue); outline-offset: 2px; }
.prop .switch > input:disabled ~ .track { opacity: .5; }
.prop .switch .sw-ico { flex: none; font-size: 1rem; line-height: 1.3; width: 1.4rem; text-align: center; }
.prop .switch .sw-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prop .switch .sw-txt b { font-size: .78rem; color: var(--ink); }
.prop .switch .sw-txt small { font-size: .66rem; color: var(--muted); line-height: 1.4; }
.prop .switch:has(> input:checked) { border-color: rgba(54,224,160,.4); }
.prop details.fold.tech { margin-top: 12px; }
.prop details.fold.tech > summary { padding: 6px 12px; font-size: .7rem; color: var(--faint); }
.prop details.fold.tech > .fold-body { padding: 8px 12px 10px; font-family: var(--mono); font-size: .68rem; color: var(--muted); line-height: 1.6; word-break: break-word; }
.prop details.fold.tech > .fold-body b { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .prop .switch .track, .prop .switch .track::after { transition: none; } }

/* ==== plan editor: numbered steps (2026-09-22) — the stepper header, the numbered rule sections, the review, the Back/Next row ==== */
.prop .stepnum { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line2);
    background: var(--panel2); color: var(--muted); font-family: var(--mono); font-size: .7rem; font-weight: 700; line-height: 1; }
.prop .stepper { display: flex; align-items: stretch; gap: 0; margin: 0 0 14px; padding: 4px 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.prop .step { flex: 1 1 0; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 6px 8px; border: none; background: none; color: var(--muted); font: inherit; font-size: .76rem; text-align: left; cursor: pointer; border-radius: 8px; }
.prop .step:hover, .prop .step:focus-visible { color: var(--ink); background: var(--panel2); outline: none; }
.prop .step .stitle { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prop .step:not(:last-child)::after { content: ""; flex: 1 0 12px; height: 1px; background: var(--line2); margin: 0 4px 0 8px; }
.prop .step.on { color: var(--ink); font-weight: 700; }
.prop .step.on .stepnum { background: var(--blue); border-color: var(--blue); color: #06162a; }
.prop .step.done .stepnum { border-color: var(--green); color: var(--green); background: rgba(54,224,160,.1); }
.prop .stepcur { display: none; }
.prop .stepnav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.prop .stepnav .muted { font-size: .72rem; }
.prop .stepnav .btnadd { margin-left: auto; }
.prop .stepnav .ghostbtn:disabled { opacity: .45; cursor: default; }

/* the numbered sections inside a rule card: 1 Name · 2 Condition · 3 When broken · 4 Strikes (optional) */
.prop .rsect { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; font-family: var(--disp); font-size: .84rem; font-weight: 700; color: var(--ink); }
.prop .rsect .stepnum, .prop details.fold > summary .sname .stepnum { width: 20px; height: 20px; font-size: .64rem; margin-right: 2px; }
.prop .rsect small, .prop details.fold > summary .sname small { font-family: var(--font, inherit); font-weight: 400; color: var(--muted); font-size: .7rem; }
.prop details.fold > summary .sname { display: inline-flex; align-items: center; gap: 6px; }
.prop .breach > .rsect { margin: 0; }
.prop .rsect + .rname { margin-top: 0; }

/* the review step: the plan's facts, then one card per phase with its rules in the traders' wording */
.prop .review { display: flex; flex-direction: column; gap: 12px; }
.prop .rv-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.prop .rv-facts > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.prop .rv-facts .rv-lab { font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.prop .rv-facts b { font-size: .92rem; color: var(--ink); word-break: break-word; }
.prop .rv-facts small { font-size: .64rem; }
.prop .rv-phase { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
.prop .rv-hd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: .84rem; }
.prop .rv-hd b { font-family: var(--disp); color: var(--ink); }
.prop .rv-hd .muted { font-size: .72rem; }
.prop .rv-cls { margin: 10px 0 4px; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.prop .rv-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.prop .rv-rules li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: .8rem; color: var(--ink); padding: 6px 10px; border-radius: 7px; background: var(--panel2); border: 1px solid var(--line); }
.prop .rv-rules .sval { font-family: var(--mono); color: var(--blue); font-weight: 700; word-break: break-word; }
.prop .review .notice { margin: 0; }
.prop .review > .muted { font-size: .8rem; }

@media (max-width: 680px) {
  .prop .stepper { padding-bottom: 8px; margin-bottom: 6px; border-bottom: none; scrollbar-width: thin; }
  .prop .step { flex: 0 0 auto; padding: 6px 4px; }
  .prop .step .stitle { display: none; }
  .prop .step:not(:last-child)::after { flex-basis: 18px; margin: 0 2px; }
  .prop .stepcur { display: block; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--disp); font-size: .9rem; font-weight: 700; color: var(--ink); }
  .prop .stepnav .btnadd { margin-left: 0; flex: 1 1 100%; }
}
@media (max-width: 460px) {
  .prop .sentence { padding: 10px 12px; }
  .prop .sentence select.measure { flex-basis: 100%; }
  .prop .sentence input.val { flex: 1 1 5rem; }
  .prop .verdict .big { font-size: 1.25rem; }
  .prop .code { font-size: .8rem; }
}

/* ==== 2026-09-22 mockup (docs/design/2026-09-22-mockup): layout, components and type on the /prop desk.
   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 (numbers, logins, hashes, codes). Everything below is scoped to `.prop`; the app bar and the copier
   pages are untouched. ==== */
.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 { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.prop .num { font-variant-numeric: tabular-nums; }

/* page header: 24/600 title, one quiet sentence, actions on the right */
.prop .pagehd { align-items: flex-end; gap: 16px; margin: 0 0 20px; }
.prop .pagehd h1 { font-family: var(--ui); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.prop .pagehd h1 small { font-size: 13px; }
.prop .pagehd .purpose { font-size: 14px; margin-top: 4px; max-width: 640px; }
.prop .pagehd .pagehd-side { gap: 10px; padding-bottom: 4px; }
.prop .nav { margin: 0 0 20px; }
.prop .live { font-family: var(--ui); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; }

/* the tab bar: full-width equal cells, icon over an uppercase label, the current cell lit and joined to the panel
   below with a thick top edge in the accent; API keys is the last cell behind a small gap. Scrolls sideways under 860 px. */
.prop .flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-bottom: 0;
    border-radius: 12px 12px 0 0; background: var(--line); overflow: hidden; max-width: 100%; min-width: 0; align-items: stretch; }
.prop .flow-tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 16px 8px 12px;
    background: var(--panel2); color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
    border-top: 3px solid transparent; transition: background .15s, color .15s; }
.prop .flow-tab svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.prop .flow-tab:hover, .prop .flow-tab:focus-visible { background: var(--panel); color: var(--ink); outline: none; }
.prop .flow-tab.on { background: var(--panel); color: var(--blue); border-top-color: var(--blue); }
.prop .flow-tab .lbl { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.prop .flow-tab .cnt { font-family: var(--mono); font-size: 11px; letter-spacing: 0; padding: 1px 6px; border-radius: 99px; background: var(--panel); color: var(--ink); line-height: 1.4; }
.prop .flow-tab.on .cnt { background: var(--blue); color: #06162a; }
.prop .flow-tab.alert .cnt { background: var(--breach-soft); color: var(--red); }
.prop .flow-tab.flow-set { margin-left: 6px; }
.prop .flow-tab.flow-set::before { content: ""; position: absolute; left: -4px; top: 18%; bottom: 18%; width: 1px; background: var(--line2); }
@media (max-width: 860px) {
  .prop .flow { display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 12px; border-bottom: 1px solid var(--line); }
  .prop .flow-tab { flex: 1 0 auto; min-width: 112px; }
}
@media (prefers-reduced-motion: reduce) { .prop .flow-tab { transition: none; } }

/* 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 .shown { margin-left: auto; font-size: 12px; color: var(--muted); }
.prop .cardhd .filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.prop .cardnote, .prop .card.flush > .cardnote { font-size: 13px; padding: 12px 18px 0; }
.prop .card > .cardnote { padding: 0 0 12px; }
.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; }
.prop .empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.prop .foot, .prop .hint { font-family: var(--ui); font-size: 12px; }
.prop .pad > .muted, .prop .card.flush > .muted { font-size: 13px; }

/* stat cards: 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 20px; }
.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; }

/* tables: 11 px uppercase headers, 11/12 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, .prop .ostable .grp { color: var(--muted); }
.prop .ostable .sub { display: block; font-size: 11.5px; color: var(--muted); }
.prop .ostable .stack small { font-size: 11.5px; color: var(--muted); }
.prop .ostable .stack small.why { font-family: var(--ui); }
.prop .ostable td input { font-family: var(--ui); }
.prop .who { font-weight: 500; }
.prop .who small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.prop .ostable .who small.mono { font-family: var(--mono); }
.prop tr.amber td { background: rgba(255,181,71,.05); }

/* 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.breach .b i { background: var(--red); }
.prop .ib.stale .b i { background: repeating-linear-gradient(90deg, var(--faint) 0 6px, transparent 6px 10px); }
.prop .ib span { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; min-width: 64px; text-align: right; color: var(--ink); }
.prop .ib.warn span { color: var(--amber); }
.prop .ib.breach span { color: var(--red); }
.prop .ib.stale span { color: var(--muted); }

/* pills and tags: text always, colour second */
.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 .d { width: 6px; height: 6px; box-shadow: none; }
.prop .pill.on, .prop .pill.ok { color: var(--green); background: var(--ok-soft); border: 1px solid transparent; }
.prop .pill.warn { color: var(--amber); background: var(--warn-soft); border: 1px solid transparent; }
.prop .pill.bad, .prop .pill.breach { color: var(--red); background: var(--breach-soft); border: 1px solid transparent; }
.prop .pill.bad .d { box-shadow: none; }
.prop .pill.stale { color: var(--muted); background: var(--stale-soft); border: 1px solid transparent; }
.prop .pill.info { color: var(--blue); background: var(--accent-soft); border: 1px solid transparent; }
.prop .pill.neutral, .prop .pill.off { color: var(--muted); background: var(--panel2); border: 1px solid var(--line2); }
.prop .pill:is(.ok, .warn, .breach, .stale):not(:has(.d))::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.prop .pill.stale:not(:has(.d))::before { background: transparent; border: 1.5px solid currentColor; box-sizing: border-box; }
.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 .btnadd { font-family: var(--ui); font-weight: 500; font-size: 13.5px; padding: 8px 14px; border-radius: 8px; background: var(--blue); color: #fff; }
.prop .btnadd:hover { filter: brightness(1.12); }
.prop .btnadd:disabled { opacity: .5; cursor: default; filter: none; }
.prop .btnadd.danger { background: var(--red); color: #fff; }
.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.small { font-size: 12px; padding: 4px 9px; }
.prop .ghostbtn:hover { border-color: var(--muted); }
.prop .linky { font-family: inherit; font-size: inherit; color: var(--blue); }
.prop .rowbtns { gap: 8px; }
.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.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.prop .chip.chip-link.primary: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; valid / invalid states on the control itself */
.prop .fields { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0 0 16px; }
.prop .card.flush > .fields { padding: 14px 18px; }
.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, .prop .rname > input, .prop .sentence select, .prop .sentence input, .prop .trycard select, .prop .warnrow input, .prop .rowbtns > select, .prop .cardhd > select, .prop .ostable td input {
    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 > input.mono, .prop .sentence input.val, .prop .ostable td input.mono { font-family: var(--mono); }
.prop .fields > label > input.ok { border-color: var(--green); }
.prop .fields > label > input.bad { border-color: var(--red); box-shadow: 0 0 0 2px var(--breach-soft); }
.prop .fields .hint, .prop .choices .hint { font-size: 11.5px; color: var(--faint); line-height: 1.4; }
.prop .fields .hint.bad { color: var(--red); }
.prop .fields .hint.ok { color: var(--green); }
.prop .fields > label.check { font-family: var(--ui); font-size: 13.5px; font-weight: 500; color: var(--ink); padding-top: 26px; }
.prop .fields > label.check > input { height: auto; accent-color: var(--blue); }
.prop .choices > label { font-family: var(--ui); font-size: 13.5px; }
.prop .choices > label > input { accent-color: var(--blue); }
.prop .choices .choices-lbl { font-size: 12.5px; letter-spacing: 0; }
.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; }

/* choice cards (mode on the new-account page, add-a-rule): a card with the radio hidden, lit in the accent when chosen */
.prop .choice { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0 0 16px; }
.prop .choice .c { position: relative; display: block; padding: 14px; border: 1px solid var(--line2); border-radius: 6px; background: var(--panel2); cursor: pointer; color: var(--ink); min-width: 0; }
.prop .choice .c > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.prop .choice .c b { display: block; margin-bottom: 2px; font-weight: 600; font-size: 14px; }
.prop .choice .c span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.prop .choice .c.on { border-color: var(--blue); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.prop .choice .c:has(> input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.prop .choice-lbl { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.prop .divider { height: 1px; background: var(--line); margin: 16px 0; }

/* plan editor: stepper (done = green tick, current = accent, upcoming = outline), phase tabs with the accent underline,
   section labels 13/600 uppercase, rules as rows in the inset colour with the open one outlined in the accent */
.prop .stepper { padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.prop .step { font-family: var(--ui); font-size: 13px; font-weight: 500; gap: 8px; padding: 6px 4px; }
.prop .step:not(:last-child)::after { flex: 1 0 24px; margin: 0 12px; }
.prop .stepnum { width: 22px; height: 22px; font-size: 11px; background: transparent; }
.prop .step:hover, .prop .step:focus-visible { background: transparent; }
.prop .step:focus-visible .stepnum { box-shadow: 0 0 0 3px var(--accent-soft); }
.prop .step.on { font-weight: 600; }
.prop .step.on .stepnum { background: var(--blue); border-color: var(--blue); color: #fff; }
.prop .step.done .stepnum { background: var(--green); border-color: var(--green); color: #06131a; }
.prop .stepcur { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.prop .stepnav { margin-top: 24px; padding-top: 16px; }
.prop .stepnav .muted { font-size: 12px; }
.prop .tabs { gap: 2px; margin: 0 0 16px; padding: 0; border-bottom: 1px solid var(--line); }
.prop .tab { font-family: var(--ui); font-size: 13px; font-weight: 500; letter-spacing: 0; padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.prop .tab .muted { font-size: 12px; }
.prop .tab.on { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }
.prop .sect { margin: 28px 0 12px; padding-top: 0; border-top: none; gap: 8px 12px; }
.prop .sect:first-child, .prop .cardhd + .sect, .prop .cardnote + .sect, .prop .stepcur + .sect, .prop .notice + .sect, .prop .tabs + .sect { margin-top: 4px; }
.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 details.fold { border-radius: 6px; background: var(--panel2); margin: 0 0 8px; }
.prop details.fold > summary { padding: 12px 14px; font-size: 14px; gap: 10px; }
.prop details.fold > summary .sname { font-weight: 500; }
.prop details.fold > summary .sval { color: var(--ink); font-weight: 600; }
.prop details.fold > summary .smeta { font-size: 12px; }
.prop details.fold[open]:not(.quiet):not(.tech) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.prop details.fold > .fold-body { padding: 4px 14px 16px; }
.prop details.fold > .fold-body > .help { font-size: 13px; margin: 12px 0; }
.prop details.fold.tech > summary { font-size: 12px; }
.prop .rsect { font-family: var(--ui); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 16px 0 10px; }
.prop .rsect small, .prop details.fold > summary .sname small { font-family: var(--ui); font-size: 12px; letter-spacing: 0; text-transform: none; }
.prop .rsect .stepnum, .prop details.fold > summary .sname .stepnum { width: 20px; height: 20px; font-size: 10.5px; }
.prop .rule-add { gap: 12px; margin: 0 0 16px; }
.prop .rule-add-card { padding: 14px; border-radius: 6px; background: var(--panel2); border-color: var(--line2); }
.prop .rule-add-card > b { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.prop .rule-add-card > p { font-size: 12px; }
.prop .rule-add-card select { font-family: var(--ui); font-size: 13px; }
.prop .rname { font-family: var(--ui); font-size: 12.5px; font-weight: 500; letter-spacing: 0; margin: 12px 0 16px; }
.prop .sentence { border-radius: 6px; font-size: 14px; padding: 12px 14px; margin: 0 0 12px; }
.prop .sentence .w, .prop .sentence .cmp { font-size: 13px; }
.prop .sentence .cmp { border-radius: 8px; padding: 0 10px; height: 36px; }
.prop .preview, .prop .warnrow { font-size: 13px; }
.prop .breach, .prop .figpanel, .prop .trycard { border-radius: 6px; padding: 14px; margin: 0 0 16px; }
.prop .breach-hd, .prop .trycard .tc-hd { font-family: var(--ui); font-size: 14px; font-weight: 600; }
.prop .breach-note, .prop .trycard .tc-sub { font-size: 12px; }
.prop .seg-opt, .prop .switch { border-radius: 6px; padding: 12px 14px; font-family: var(--ui); }
.prop .seg-opt b, .prop .switch .sw-txt b { font-size: 14px; font-weight: 600; }
.prop .seg-opt small, .prop .switch .sw-txt small { font-size: 12px; }
.prop .switch > input:checked ~ .track { background: var(--blue); }
.prop .switch:has(> input:checked) { border-color: rgba(90,169,255,.5); }
.prop .fig { font-size: 12.5px; }
.prop .fig small, .prop .ops, .prop .ops .lbl { font-family: var(--ui); }
.prop .verdict .big { font-family: var(--ui); font-size: 22px; font-weight: 600; border-radius: 8px; }
.prop .verdict .vtxt { font-size: 13px; }
.prop .review { gap: 16px; }
.prop .rv-facts, .prop .rv-phase { border-radius: 6px; padding: 14px 16px; }
.prop .rv-facts .rv-lab, .prop .rv-cls { font-family: var(--ui); font-size: 11px; letter-spacing: .06em; }
.prop .rv-facts b { font-size: 15px; font-weight: 600; }
.prop .rv-hd { font-size: 14px; }
.prop .rv-hd b { font-family: var(--ui); font-weight: 600; }
.prop .rv-rules li { font-size: 13px; padding: 8px 12px; border-radius: 6px; }
.prop .rv-rules .sval { color: var(--ink); }
.prop .review > .muted { font-size: 13px; }

/* two-column sections (needs a human / being built, editor + aside) */
.prop .g2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.prop .grid2 { gap: 16px; }
.prop .section { margin-top: 28px; }
.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; }

@media (max-width: 680px) {
  .prop .pagehd h1 { 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 .legend, .prop .cardnote, .prop .card.flush > .cardnote, .prop .card.flush > .fields { 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%, 160px), 1fr)); gap: 12px; }
  .prop .fields > label.check { padding-top: 0; }
  .prop .stepper { padding-bottom: 10px; }
}
/* rule-card footer: the destructive action sits alone on the right, same size as the other buttons, red text */
.prop .rowbtns.end { justify-content: flex-end; width: 100%; margin-left: auto; }
.prop .ghostbtn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.prop .ghostbtn.danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); border-color: var(--red); }

/* ==== 2026-10-03 reskin — copier pages (Home, Manage, Trades, Users, My/Mine panels, account pages).
   Shared vocabulary restyled to docs/mockups/desk-saas: Figtree UI face, flat panels with one hairline and a soft shadow,
   pill buttons and state pills, sentence-case labels, the logo green as the single accent. The /prop pages keep the
   `.prop`-scoped rules above and only inherit the tokens. ==== */
html { background: var(--bg); }
body { font-family: var(--ui); font-size: 13.5px; line-height: 1.45; letter-spacing: 0; padding: 0 20px 40px; background: var(--bg); }
body::before { display: none; }
.title { font-family: var(--ui); font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.title .sub { font-family: var(--ui); font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.grid, .grid2 { gap: 12px; margin-bottom: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.card h2 { font-family: var(--ui); font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: -.01em; margin: 0 0 10px; }
.cardhd { padding: 12px 16px; gap: 10px; }
.cardhd .meta, .tag, .osstat, .tcount, .mname, .hint, .modehint, .kv span, .dl-note, .dl-kv, .dl-fan, .dl-clock { font-family: var(--ui); letter-spacing: 0; text-transform: none; }
.cardhd .meta { font-size: 12.5px; }
.tag { font-size: 12px; color: var(--muted); }
.osstat { font-size: 12px; }

/* tables: sentence-case 12 px headers on the inset surface, 13 px cells, hover row */
table, .mt, .ostable, .feed-fanout table { font-family: var(--ui); font-size: 13px; }
th, .mt th, .ostable th, .feed-fanout th, .tscroll thead th { font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); padding: 8px 12px; background: var(--panel2); border-bottom: 1px solid var(--line); }
td, .mt td, .ostable td, .feed-fanout td, .tscroll td { font-size: 13px; color: var(--ink); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.mt .dt .d, .mt .dt .tm { font-size: 12px; letter-spacing: 0; }
.mt tbody tr:hover td, .ostable tbody tr:hover td, .tscroll tbody tr:hover td, .feed-fanout tbody tr:hover td { background: var(--panel2); }
.ostable .mono, .mt .sym, .acct, .dl-who, .dl-px, .pnl, .kpi .val, .ab-val, .combo-opt { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kv { font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.kv b { font-family: var(--mono); }

/* pills, badges, tags: text first, soft fill, no border, no glow */
.pill, .badge, .modebadge, .mode, .osside, .dl-ev, .dl-side, .partialtag, .fchip, .seg button .n { font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: 999px; padding: 2px 9px; border-color: transparent; }
.pill::before { width: 6px; height: 6px; box-shadow: none !important; }
.pill.on, .pill.close, .pill.done, .badge.ok { background: var(--green-soft); color: var(--green); }
.pill.open { background: var(--blue-soft); color: var(--blue); }
.pill.placed, .partialtag { background: var(--amber-soft); color: var(--amber); }
.pill.failed, .badge.bad { background: var(--red-soft); color: var(--red); }
.pill.off { background: var(--panel2); color: var(--muted); }
.osside.buy, .dl-side.buy { background: var(--green-soft); color: var(--green); }
.osside.sell, .dl-side.sell { background: var(--red-soft); color: var(--red); }
.modebadge.eq, .dl-ev.open, .dl-ev.copy { background: var(--blue-soft); color: var(--blue); }
.modebadge.mu { background: rgba(178,141,255,.16); color: #B28DFF; }
.modebadge.fx, .dl-ev.close { background: var(--amber-soft); color: var(--amber); }
.mode, .dl-ev.skip, .dl-ev.blocked, .dl-ev.other { background: var(--panel2); color: var(--muted); border: 1px solid var(--line2); }
.fchip { background: var(--green-soft); color: var(--green); }
.dot.on { color: var(--green); }

/* buttons: pills; the primary action is the logo green */
.mini, .ghostbtn, .btnadd, .ksbtn, .linky { font-family: var(--ui); letter-spacing: 0; text-transform: none; }
.mini { font-weight: 600; font-size: 12.5px; padding: 4px 11px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink); }
.mini:hover { filter: none; border-color: var(--muted); }
.mini.ok { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.mini.bad { background: var(--red-soft); border-color: transparent; color: var(--red); }
.ghostbtn { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 30px; font-weight: 600; font-size: 13px; line-height: 1; padding: 0 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.ghostbtn:hover { text-decoration: none; }
.btnadd { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; font-weight: 700; font-size: 13.5px; line-height: 1; border-radius: 999px; background: var(--green); color: var(--green-ink); height: 30px; padding: 0 14px; min-width: 0; text-decoration: none; }
.btnadd:hover { text-decoration: none; }
.btnadd:hover { filter: brightness(1.08); }
.ksbtn { border-radius: 999px; font-weight: 700; padding: 8px; }
.ksbtn.stop { background: var(--red-soft); color: var(--red); } .ksbtn.stop:hover { background: var(--red); color: #fff; }
.ksbtn.go { background: var(--green); color: var(--green-ink); } .ksbtn.go:hover { background: var(--green); filter: brightness(1.08); }
.linky { color: var(--accent); font-size: 13px; font-weight: 600; }
.acts { opacity: 1; }
a { color: var(--accent); }
.ok-card { background: var(--green-soft); border-color: transparent; color: var(--green); }
.card.err { background: var(--red-soft); border-color: transparent; color: var(--red); }

/* forms */
input, select, .f input, .f select, .searchbox, .combo-input, .login-input { font-family: var(--ui); font-size: 13.5px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; color: var(--ink); }
input, select, .f input, .f select, .combo-input { padding: 6px 10px; }
input:focus, select:focus, .f input:focus, .f select:focus, .login-input:focus, .searchbox:focus-within { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.f label { font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.f .sub { font-size: 12px; }
.addpanel .aphead h3 { font-family: var(--ui); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.addpanel .aphead .apline { background: var(--line); }
.modehint { font-size: 12.5px; border-style: solid; border-radius: 10px; }
.searchbox { border-radius: 999px; padding: 6px 12px; }
.searchbox input { font-size: 13px; }
.combo-panel { border-radius: 12px; box-shadow: var(--shadow); }
.combo-opt { font-family: var(--ui); border-radius: 8px; }
.combo-opt:hover, .combo-opt.sel { background: var(--green-soft); color: var(--green); }

/* segmented controls and tabs */
.seg { border-radius: 999px; padding: 3px; background: var(--panel2); border-color: transparent; }
.seg button { border-radius: 999px; font-family: var(--ui); font-weight: 600; font-size: 13px; padding: 6px 14px; letter-spacing: 0; }
.seg button.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.seg button.active .n { color: var(--green); border-color: transparent; }
.tab { font-family: var(--ui); font-weight: 600; font-size: 13px; letter-spacing: 0; }
.tab.active { border-bottom-color: var(--green); }

/* tiles and live indicators */
.kpi { background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); }
.kpi .lbl { font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.kpi .val { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; }
.livepill { font-family: var(--ui); letter-spacing: 0; font-size: 12.5px; border-radius: 999px; padding: 4px 12px 4px 10px; }
.livepill.on { background: var(--green-soft); border-color: transparent; }
.livepill.off { background: var(--red-soft); border-color: transparent; }
.livenote { font-family: var(--ui); letter-spacing: 0; font-size: 12.5px; }
.deal-hd, .oshead, .fanbar { background: var(--panel2); font-family: var(--ui); }
.osgroup { border-radius: 10px; background: var(--panel); }
.ev { font-family: var(--ui); font-size: 15px; letter-spacing: 0; }
.ossym { letter-spacing: 0; }
.dl { font-family: var(--ui); }
.dl-row { font-size: 13px; }
.dl-t { font-size: 12px; }
.dl-ev, .dl-side { font-size: 11.5px; padding: 2px 8px; }
.dl-legend { font-family: var(--ui); font-size: 12px; letter-spacing: 0; text-transform: none; }
.dl-bar .trk { background: var(--line); }
.dl-bar .fil.ok { background: var(--green); } .dl-bar .fil.warn { background: var(--amber); } .dl-bar .fil.bad { background: var(--red); }
.feed, .feedline { font-family: var(--ui); }
.osbody, .feed-fanout, .feed, .mt-scroll, .tscroll, .dl { scrollbar-color: var(--line2) transparent; }

/* account pages (AuthLayout: no app bar) */
.login-wrap { background: var(--bg); }
.login-card { background: var(--panel); border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 26px 26px 20px; max-width: 400px; }
.login-card::before { display: none; }
.login-mark { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); border-color: transparent; margin: 0 auto 10px; }
/* 2026-10-05: the logo animates as it did before the reskin — a pulsing ring on the sign-in mark, still squares. */
.login-ring { inset: -1px; border-radius: 13px; border-color: var(--glow-green); }
.login-eyebrow { font-family: var(--ui); font-size: 12px; letter-spacing: 0; text-transform: none; text-align: center; color: var(--muted); }
.login-title { font-family: var(--ui); font-size: 20px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.login-sub, .two-login-sub { text-align: center; font-size: 13px; font-family: var(--ui); }
.login-label > span { font-family: var(--ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
.login-input { height: 38px; padding: 0 12px; font-size: 14px; }
.login-btn { font-family: var(--ui); height: 38px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; background: var(--green); color: var(--green-ink); }
.login-btn:focus-visible { outline: 2px solid var(--green); }
.login-foot { font-family: var(--ui); font-size: 12px; letter-spacing: 0; text-transform: none; justify-content: center; color: var(--muted); }
.login-error { background: var(--red-soft); border-color: transparent; color: var(--red); border-radius: 10px; font-family: var(--ui); }
.tfa-key-label { font-family: var(--ui); letter-spacing: 0; text-transform: none; font-size: 12.5px; font-weight: 600; }
.tfa-codes code { color: var(--green); }

/* the app bar: charcoal in both themes, animated mark, pill nav, chips on the right */
.appbar { position: sticky; top: 0; z-index: 20; margin: 0 -20px 14px; padding: 0 20px; height: 54px; background: var(--bar); border-bottom: 1px solid var(--bar-line); gap: 12px; justify-content: flex-start; }
.brand { gap: 10px; text-decoration: none; margin-right: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; color: #36E0A0; filter: drop-shadow(0 0 6px rgba(54,224,160,.45)); }
.brand-text { font-family: var(--ui); font-size: 14px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.brand-sub { font-size: 8.5px; letter-spacing: .32em; color: #A8A29E; margin-top: 2px; }
.ab-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.ab-navlink, .appbar .ab-navlink { height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; border: 0; color: #A8A29E; font-family: var(--ui); font-weight: 600; font-size: 13.5px; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap; }
.ab-navlink:hover, .appbar .ab-navlink:hover { color: #fff; background: transparent; text-decoration: none; }
.ab-navlink.on, .appbar .ab-navlink.on { background: #fff; color: #1C1917; }
.appbar-right { margin-left: auto; gap: 8px; font-family: var(--ui); min-width: 0; }
.ab-sep { display: none; }
.ab-stat { flex-direction: row; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: #D6D3D1; }
.ab-lbl { font-size: 11px; letter-spacing: .02em; color: #A8A29E; }
.ab-val { font-size: 12.5px; color: #fff; }
.ab-theme { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #44403C; background: transparent; color: #D6D3D1; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ab-theme:hover { color: #fff; border-color: #78716C; }
.ab-user { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #36E0A0; color: #06251A; font-weight: 800; font-size: 11.5px; text-decoration: none; flex: none; }
.ab-user:hover { text-decoration: none; filter: brightness(1.08); }
.ab-logout button { font-family: var(--ui); border-radius: 999px; border-color: #44403C; color: #D6D3D1; padding: 0 12px; height: 30px; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }
.ab-logout button:hover { color: #fff; border-color: #78716C; }
.hamburger { background: transparent; border-color: #44403C; border-radius: 10px; }
.hamburger span { background: #D6D3D1; }

/* responsive: the bar wraps with a hamburger menu, grids stack, tables scroll inside their card */
@media (max-width: 1000px) {
  body { padding: 0 12px 32px; }
  body .appbar { margin: 0 -12px 12px; padding: 8px 12px; height: auto; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
  body .appbar .hamburger { display: flex; order: 2; }
  body .appbar .appbar-right { display: flex; order: 1; width: auto; margin: 0 0 0 auto; padding: 0; border: 0; flex-direction: row; align-items: center; gap: 8px; }
  .appbar .ab-stat { display: none; }
  .ab-tabs, body .appbar .ab-tabs { display: none; order: 9; width: 100%; flex-direction: column; gap: 2px; background: transparent; padding: 8px 0 4px; border-top: 1px solid #2A2724; margin-top: 4px; border-radius: 0; }
  body .appbar .nav-cb:checked ~ .ab-tabs { display: flex; }
  .ab-navlink, .appbar .ab-navlink { height: 42px; width: 100%; border-radius: 8px; padding: 0 12px; font-size: 14px; border: 0; }
  .ab-navlink.on, .appbar .ab-navlink.on { background: rgba(255,255,255,.12); color: #fff; }
  .ab-logout { margin: 0; }
  .appbar .ab-logout button { width: auto; padding: 0 12px; }
  .grid, .grid2 { grid-template-columns: 1fr; }
  .card { overflow-x: auto; }
  .title { font-size: 16px; }
}
@media (max-width: 560px) {
  .ab-theme span { display: none; }
  .appbar .ab-logout { display: none; }
  body .appbar .nav-cb:checked ~ .appbar-right .ab-logout { display: block; }
}

/* dashboard, reskin pass 2 (2026-10-03): five compact cards, latency as a table beside the skipped copies */
.stats5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.card.stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.card.stat .k { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card.stat .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.card.stat .v small { font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.card.stat .v.pos { color: var(--green); } .card.stat .v.neg { color: var(--red); } .card.stat .v.flat, .card.stat .v.muted { color: var(--muted); }
.card.stat .v .livepill, .card.stat .v .badge { font-size: 12.5px; vertical-align: middle; }
.card.stat .s { font-size: 12px; color: var(--muted); }
.card.stat .kv { padding: 4px 0; font-size: 12.5px; }
.card.stat .kv:first-of-type { border-top: 0; }
.r32 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; margin-bottom: 12px; }
.r32 > .card { margin: 0; }
.dlt { width: 100%; border-collapse: collapse; }
.dlt th, .dlt td { padding: 7px 12px; white-space: nowrap; }
.dlt tr.grp td { background: var(--green-soft); color: var(--ink); font-weight: 600; }
.dlt tr.grp:hover td { background: var(--green-soft); }
.dlt .dl-right { display: inline-flex; }
.dlt .dl-fan { color: var(--ink); font-weight: 600; }
.dlt .dl-clock { margin-left: 8px; }
.cardhd .dl-legend { margin-left: auto; padding: 0; gap: 10px; }
.cardhd .dl-legend + .mini { margin-left: 8px; }
@media (max-width: 1000px) {
  .stats5 { grid-template-columns: 1fr 1fr; }
  .r32 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .stats5 { grid-template-columns: 1fr; } }
.dl { overflow-x: auto; }
.dlt .dl-sym, .dlt .dl-side, .dlt .dl-kv { margin-right: 6px; }
.dlt .dl-bar { width: 90px; }
.dlt tr.grp td:last-child { white-space: normal; }
.card.stat .v.muted { font-family: var(--ui); font-size: 18px; font-weight: 700; }

/* manage, reskin pass 2 (2026-10-03): title band with figures, master cards, slave table with row edit, folds */
.pagehd2 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pagehd2 .title { margin: 0; }
.pagehd2 .figs { display: flex; gap: 18px; margin-left: auto; }
.pagehd2 .fig { display: flex; flex-direction: column; } .pagehd2 .fig .k { font-size: 12px; color: var(--muted); } .pagehd2 .fig .v { font-family: var(--mono); font-size: 17px; font-weight: 700; }
.pagehd2 .acts2 { display: flex; gap: 8px; align-items: center; }
.secthd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.secthd > b { font-size: 15px; margin-right: 4px; }
.grow { flex: 1; }
.chips { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel2); border-radius: 999px; }
.chips button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chips button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.inl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.inl select { padding: 4px 8px; font-size: 12.5px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 10px; margin-bottom: 12px; }
.card.mcard { padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.card.mcard.editing { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.mh { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 10.5px; color: #fff; background: linear-gradient(135deg, #0E8A86, #0369A1); flex: none; }
.avatar.b { background: linear-gradient(135deg, #F97316, #F5A623); } .avatar.c { background: linear-gradient(135deg, #16A34A, #0E8A86); } .avatar.d { background: linear-gradient(135deg, #F5A623, #DC2626); }
.mt { min-width: 0; flex: 1; } .mt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mt small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn { display: grid; grid-template-columns: repeat(4, auto); gap: 4px 10px; justify-content: space-between; } .mn small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; } .mn b { font-size: 13px; white-space: nowrap; }
.mn .linky { font-size: 13px; font-weight: 700; }
.mf { display: flex; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.editpanel { border-color: var(--green); }
.aphead .mini { margin-left: 8px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 10px; } .who .n { font-weight: 600; } .who small { display: block; color: var(--muted); font-size: 12px; }
tr.editing td { background: var(--green-soft); }
.tcard .cardhd .searchbox { min-width: 200px; }
.tcard > .foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
details.fold { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); margin: 0 0 12px; }
details.fold > summary { cursor: pointer; list-style: none; padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
details.fold > summary::-webkit-details-marker { display: none; }
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; }
details.fold[open] > summary::before { transform: rotate(45deg); }
details.fold > summary .muted { font-size: 12.5px; }
details.fold > .fold-body { padding: 4px 16px 14px; border-top: 1px solid var(--line); }
details.fold > .fold-body .fields { margin-top: 10px; }
@media (max-width: 1000px) { .pagehd2 .figs { margin-left: 0; } .mcards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .mcards { grid-template-columns: 1fr; } .mn { grid-template-columns: 1fr 1fr; } }

/* users and account pages, reskin pass 2 */
.r32.users, .r32.account { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.r32.account { grid-template-columns: 340px minmax(0, 1fr); }
.r32 > div > .card { margin-bottom: 12px; }
tr.dim td { opacity: .6; }
.tcard .cardhd .chips { margin-left: 4px; }
.rowbtns.acts input { width: 9rem; }
@media (max-width: 1000px) { .r32.users, .r32.account { grid-template-columns: 1fr; } }
.r32.users .kv b, .r32.account .kv b { font-family: var(--ui); font-weight: 600; text-align: right; }
.r32.users .rowbtns.acts { flex-wrap: wrap; justify-content: flex-start; }
.r32.users .rowbtns.acts input { width: 7.5rem; }
.r32.users table td:last-child { white-space: normal; min-width: 320px; }

/* add / edit pages (masters, slaves), reskin pass 3 (2026-10-03) */
.crumbs { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.pagehd2 .title .avatar { width: 30px; height: 30px; font-size: 11px; margin-right: 2px; }
.pagehd2 .title .pill { font-size: 12px; }
.r32.editgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
.addpanel .lead { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.addpanel .fields { align-items: start; }
.f .sub.bad { color: var(--red); } .f .sub.warn { color: var(--amber); }
.f input.ro { background: var(--panel2); color: var(--muted); }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.choice .c { position: relative; display: block; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice .c > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice .c b { display: block; font-size: 14px; margin-bottom: 2px; }
.choice .c span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.choice .c.on { border-color: var(--green); background: var(--green-soft); }
.card.preview .big { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 2px; }
.flow { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.flow .box { flex: 1; padding: 10px 12px; border-radius: 10px; background: var(--panel2); min-width: 0; }
.flow .box small { display: block; color: var(--muted); font-size: 12px; } .flow .box b { font-size: 16px; }
.flow .arr { color: var(--faint); font-size: 18px; }
.steps { display: flex; flex-direction: column; }
.steps .step { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: flex-start; } .steps .step:first-child { border-top: 0; }
.steps .step > span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--panel2); color: var(--faint); flex: none; }
.steps .step > span.ok { background: var(--green-soft); color: var(--green); } .steps .step > span.bad { background: var(--red-soft); color: var(--red); } .steps .step > span.warn { background: var(--amber-soft); color: var(--amber); }
.steps .step small { display: block; color: var(--muted); font-size: 12px; }
.card.danger { border-color: rgba(255,107,107,.35); }
.tips { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; } .tips li { margin: 4px 0; }
a.link { color: var(--accent); font-weight: 600; }
a.mini { text-decoration: none; display: inline-flex; align-items: center; }
@media (max-width: 1000px) { .r32.editgrid { grid-template-columns: 1fr; } .choice { grid-template-columns: 1fr; } }
.card.stat .spark { display: block; width: 100%; height: 36px; margin-top: 4px; }
.r32.mypanel { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.r32.mypanel .copiers { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
a.plain { color: inherit; } a.plain:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 1000px) { .r32.mypanel { grid-template-columns: 1fr; } }
.pagehd2 .acts2 { margin-left: auto; }
.pagehd2 .figs + .acts2 { margin-left: 0; }
.card.preview .kv b { font-family: var(--ui); font-weight: 600; text-align: right; }
/* live figures on master cards / pages (pass 3b) */
.mn b.num, .live3 b.num { font-family: var(--mono); }
.pos { color: var(--green); } .neg { color: var(--red); } .flat { color: var(--muted); }
.live3 { display: flex; gap: 22px; margin: 6px 0 10px; } .live3 small { display: block; color: var(--muted); font-size: 12px; } .live3 b { font-size: 20px; }
.withbtn { display: flex; gap: 6px; align-items: center; } .withbtn input { flex: 1; }
.tcard .filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.tcard .cardhd .btnadd { height: 30px; font-size: 12.5px; }

/* slave page: bars of the last copies (mockup "Live" card) */
.pbars { display: block; width: 100%; height: 48px; margin: 4px 0 2px; }

/* slave page Account section: two columns, master full width, unit / button inside the control (mockup) */
.fields.acct2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields.acct2 .f.wide { grid-column: 1 / -1; }
.inwrap { display: flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 7px; padding-right: 6px; }
.inwrap.ro { background: var(--panel2); }
.inwrap input, .inwrap select { flex: 1; border: none; background: transparent; box-shadow: none; }
.inwrap input:focus, .inwrap select:focus { box-shadow: none; }
.inwrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.inwrap .unit { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; padding: 0 6px; }
.inwrap .mini.soft { background: var(--green-soft); color: var(--green); border-color: transparent; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .fields.acct2 { grid-template-columns: 1fr; } }

/* add / edit pages: footer bar under the form (mockup .fbar) */
.card.fbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--panel2); flex-wrap: wrap; }
.card.fbar .note { color: var(--muted); font-size: 13px; }
.card.fbar .grow { flex: 1; }

/* top bar: search, worker status and bell (mockup nav.js) */
.ab-search { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid transparent; color: #A8A29E; flex: 0 1 260px; min-width: 0; margin: 0; font-family: var(--ui); }
.ab-search:focus-within { border-color: var(--green); }
.ab-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: #fff; font: inherit; font-size: 13px; padding: 0; box-shadow: none; }
.ab-search input::placeholder { color: #A8A29E; }
.ab-search kbd { font: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: #D6D3D1; white-space: nowrap; }
.ab-status { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.ab-status i { width: 8px; height: 8px; border-radius: 50%; }
.ab-status.on { background: rgba(21,128,61,.25); color: #86EFAC; } .ab-status.on i { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.ab-status.off { background: rgba(185,28,28,.25); color: #FCA5A5; } .ab-status.off i { background: #F87171; box-shadow: 0 0 0 3px rgba(248,113,113,.2); }
.ab-bell { width: 30px; height: 30px; border-radius: 999px; border: 1px solid #44403C; background: transparent; color: #D6D3D1; display: inline-flex; align-items: center; justify-content: center; position: relative; text-decoration: none; flex: none; }
.ab-bell:hover { color: #fff; border-color: #78716C; text-decoration: none; }
.ab-bell .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #F87171; border: 2px solid var(--bar); }
@media (max-width: 1280px) { .ab-search { flex-basis: 150px; } .ab-search kbd { display: none; } }
@media (max-width: 1000px) { .appbar .ab-search { display: none; } }
@media (max-width: 760px) { body .appbar .appbar-right .ab-status { align-self: flex-start; } }
/* Manage header like the mockup .hello: title, one muted sentence, actions on the right */
.pagehd2.hello { align-items: center; }
.pagehd2.hello > div:first-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pagehd2 .lead2 { margin: 0; color: var(--muted); font-size: 12.5px; }
.ab-logout button, .btnadd, .ghostbtn { white-space: nowrap; }

/* light mode top bar: the bar is white, so every hard-coded dark-bar colour gets a light counterpart */
:root[data-theme="light"] .appbar { box-shadow: 0 1px 0 var(--bar-line), 0 6px 18px -14px rgba(15,23,42,.25); }
:root[data-theme="light"] .brand-text { color: var(--ink); }
:root[data-theme="light"] .brand-sub { color: var(--muted); }
:root[data-theme="light"] .brand-mark { color: var(--green); filter: drop-shadow(0 0 6px rgba(15,163,122,.25)); }
:root[data-theme="light"] .ab-tabs { background: #EEF1F5; }
:root[data-theme="light"] .ab-navlink, :root[data-theme="light"] .appbar .ab-navlink { color: #475569; }
:root[data-theme="light"] .ab-navlink:hover, :root[data-theme="light"] .appbar .ab-navlink:hover { color: var(--ink); }
:root[data-theme="light"] .ab-navlink.on, :root[data-theme="light"] .appbar .ab-navlink.on { background: #0F172A; color: #fff; }
:root[data-theme="light"] .ab-search { background: #EEF1F5; color: var(--faint); }
:root[data-theme="light"] .ab-search input { color: var(--ink); }
:root[data-theme="light"] .ab-search input::placeholder { color: var(--faint); }
:root[data-theme="light"] .ab-search kbd { background: #FFFFFF; color: #475569; border: 1px solid var(--line); }
:root[data-theme="light"] .ab-status.on { background: #DCFCE7; color: #15803D; } :root[data-theme="light"] .ab-status.on i { background: #16A34A; box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
:root[data-theme="light"] .ab-status.off { background: #FEE2E2; color: #B91C1C; } :root[data-theme="light"] .ab-status.off i { background: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,.18); }
:root[data-theme="light"] .ab-theme, :root[data-theme="light"] .ab-bell, :root[data-theme="light"] .ab-logout button { border-color: var(--line2); color: #334155; background: #fff; }
:root[data-theme="light"] .ab-theme:hover, :root[data-theme="light"] .ab-bell:hover, :root[data-theme="light"] .ab-logout button:hover { color: var(--ink); border-color: #94A3B8; }
:root[data-theme="light"] .ab-user { background: var(--green); color: #fff; }
:root[data-theme="light"] .hamburger span { background: var(--ink); }

/* compact prop desk (2026-10-03): tighter header, one-row flow strip, dense KPI cards and table */
.prop .pagehd { margin: 0 0 10px; gap: 12px; align-items: center; }
.prop .pagehd h1 { font-size: 20px; }
.prop .pagehd .purpose { font-size: 12.5px; margin-top: 2px; max-width: none; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .prop .pagehd .purpose { white-space: normal; } }
.prop .pagehd .pagehd-side { padding-bottom: 0; }
.prop .flow { margin: 0 0 12px; border-radius: 10px 10px 0 0; overflow: hidden; }
.prop .flow-tab { flex-direction: row; gap: 7px; padding: 8px 8px 7px; font-size: 11px; letter-spacing: .06em; }
.prop .flow-tab svg { width: 17px; height: 17px; }
.prop .kpis { gap: 8px; padding: 10px 12px; }
.prop .kpi { padding: 9px 11px; }
.prop .kpi .lbl { font-size: 10px; }
.prop .kpi .val { font-size: 17px; line-height: 1.2; }
.prop .kpi .sub { font-size: 11px; line-height: 1.35; margin-top: 2px; }
.prop .card { padding: 12px 14px; }
.prop .card.flush { padding: 0; }
.prop .cardhd { padding: 9px 14px; }
.prop .cardhd h2 { font-size: 14px; }
.prop .filters.listbar { padding: 8px 14px; }
.prop .ostable th { padding: 6px 12px; }
.prop .ostable td { padding: 6px 12px; font-size: 12.5px; }
.prop .ostable td .sub { font-size: 11px; }
.prop .notice { padding: 9px 14px; margin: 0 0 10px; }
.prop .cardnote, .prop .card.flush > .cardnote { font-size: 12px; padding: 8px 14px; }

/* live pill, middle state: engine alive but nothing evaluated */
.live.warn { color: var(--amber); }
.live.warn .d { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,181,68,.2); animation: none; }

/* prop KPI card with the dashboard-style live pill and a heartbeat row */
.prop .kpi .val .livepill { font-size: 12.5px; vertical-align: middle; }
.prop .kpi .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); margin: 2px 0 4px; }
.prop .kpi .kv span { color: var(--muted); } .prop .kpi .kv b { font-family: var(--mono); color: var(--ink); }

/* plan editor: the derived Type on the section heading line, right-aligned */
.prop .sect .typeinline { margin-left: auto; color: var(--ink); font-weight: 500; cursor: help; text-align: right; }
.prop .sect .typeinline .muted { font-weight: 400; font-size: .72rem; }
.prop .sect .typeinline b { font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }

/* plan editor: the plan block in four columns (two rows: identity + price, then the account) */
.prop .fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .prop .fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prop .fields.four { grid-template-columns: 1fr; } }

/* light mode: small print is thin, so give it a little weight and size for the darker faint colour to show */
:root[data-theme="light"] .prop .hint, :root[data-theme="light"] .prop .sect .sub, :root[data-theme="light"] .f .sub, :root[data-theme="light"] .prop .sect .typeinline .muted { font-weight: 500; }
:root[data-theme="light"] .prop .hint { font-size: 12px; }

/* review facts: five per row (two rows), the description full width */
.prop .rv-facts { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prop .rv-facts .rv-wide { grid-column: 1 / -1; }
@media (max-width: 1100px) { .prop .rv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prop .rv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* searchable select (SearchSelect.razor) */
.ssel { position: relative; min-width: 260px; }
.ssel-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg2); color: var(--ink); font: inherit; font-size: 13.5px; cursor: pointer; text-align: left; }
.ssel-btn:focus-visible, .ssel.open .ssel-btn { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ssel-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssel-chev { color: var(--muted); font-size: 12px; flex: none; }
.ssel-backdrop { position: fixed; inset: 0; z-index: 30; }
.ssel-panel { position: absolute; z-index: 31; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 420px; max-height: 360px; overflow: auto; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); padding: 8px; }
.ssel-search { width: 100%; box-sizing: border-box; height: 32px; margin-bottom: 6px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg2); color: var(--ink); font: inherit; font-size: 13px; }
.ssel-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ssel-grp { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 8px 8px 4px; user-select: none; }
.ssel-opt { padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13.5px; color: var(--ink); white-space: nowrap; user-select: none; }
.ssel-opt.hi { background: var(--panel2); }
.ssel-opt.sel { color: var(--green); font-weight: 600; }
.ssel-opt.sel::after { content: " ✓"; }
.ssel-none { padding: 10px; color: var(--muted); font-size: 13px; }

/* compact table for a narrow column (the slaves list on the master page) */
.tcard .tscroll { overflow-x: auto; }
table.slim { width: 100%; }
table.slim th, table.slim td { padding: 8px 12px; }
table.slim th { white-space: nowrap; }
table.slim .modebadge, table.slim .pill, table.slim .mini { white-space: nowrap; }
table.slim .sub2 { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; white-space: nowrap; }
table.slim .who { min-width: 0; }
table.slim .who > div { min-width: 0; }
table.slim .who small { white-space: normal; overflow-wrap: anywhere; }
table.slim td.r { text-align: right; width: 1%; }
