:root {
  --bg: #0b1014; --panel: #11191d; --panel2: #172126; --line: #293438; --fg: #edf0eb; --dim: #9da8a9;
  --gold: #c7a57c; --gold2: #f0d4aa; --ok: #3fbf7f; --warn: #e3a52a; --bad: #e0514f; --info: #4f8fe0;
  --radius: 0px; --font: "Segoe UI", system-ui, -apple-system, sans-serif; --mono: Consolas, "Cascadia Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.45; }
a { color: var(--gold); text-decoration: none; } a:hover { text-decoration: none; color: var(--gold2); }
a.btn:hover, .topnav a:hover, .menu-list a:hover { color: var(--fg); }
h1, h2, h3 { margin: 0 0 8px; font-weight: 600; letter-spacing: .2px; }
h1 { font-size: 20px; } h2 { font-size: 16px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.2px; } h3 { font-size: 14px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 16px; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0a1015; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.brand .sq { width: 14px; height: 14px; background: var(--gold); border-radius: 0; }
.spacer { flex: 1; }
.btn { background: var(--panel2); color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 8px 14px; cursor: pointer; font: inherit; }
.btn:hover { border-color: var(--gold); } .btn:disabled { opacity: .5; cursor: default; }
.btn.gold { background: var(--gold); color: #0a0d10; border-color: var(--gold); font-weight: 600; } .btn.gold:hover { background: var(--gold2); }
.btn.danger { border-color: var(--bad); color: var(--bad); } .btn.sm { padding: 4px 10px; font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; } .grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } .grid.c4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; }
.stat .k { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; } .stat .v { font-size: 22px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .v.gold { color: var(--gold); } .pos { color: var(--ok); } .neg { color: var(--bad); }
label { display: block; color: var(--dim); font-size: 12px; margin: 10px 0 4px; }
input, select, textarea { width: 100%; background: #0b1318; color: var(--fg); border: 1px solid var(--line); border-radius: 0; padding: 9px 10px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* wide tables scroll inside their card instead of spilling out */
.tablewrap { overflow-x: auto; max-width: 100%; }
.tablewrap table { min-width: 720px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; } th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; } tr:hover td { background: #162126; }
.num { text-align: right; font-variant-numeric: tabular-nums; } td.num, th.num { text-align: right; }
.key { font-family: var(--mono); font-size: 13px; letter-spacing: .5px; color: var(--gold2); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 0; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; border: 1px solid transparent; }
.pill.active, .pill.ok, .pill.verified, .pill.paid { background: rgba(63,191,127,.15); color: var(--ok); border-color: rgba(63,191,127,.4); }
.pill.suspended, .pill.pending, .pill.open, .pill.invoiced, .pill.warning { background: rgba(227,165,42,.15); color: var(--warn); border-color: rgba(227,165,42,.4); }
.pill.expired, .pill.revoked, .pill.deactivated, .pill.rejected, .pill.overdue, .pill.critical { background: rgba(224,81,79,.15); color: var(--bad); border-color: rgba(224,81,79,.4); }
.pill.info, .pill.waived { background: rgba(79,143,224,.15); color: var(--info); border-color: rgba(79,143,224,.4); }
.muted { color: var(--dim); } .small { font-size: 12px; } .mono { font-family: var(--mono); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: none; color: var(--dim); padding: 10px 14px; cursor: pointer; font: inherit; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--gold); border-bottom-color: var(--gold); }
.toast { position: fixed; right: 16px; bottom: 16px; background: var(--panel2); border: 1px solid var(--gold); color: var(--fg); padding: 12px 16px; border-radius: 0; max-width: 420px; z-index: 50; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.toast.bad { border-color: var(--bad); }
.auth { max-width: 420px; margin: 60px auto; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--dim); }
.dot.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); } .dot.stale { background: var(--warn); } .dot.off { background: var(--bad); }
canvas.spark { width: 100%; height: 120px; display: block; }
details summary { cursor: pointer; color: var(--gold); }
.hidden { display: none !important; }
@media (max-width: 720px) { .wrap { padding: 10px; } table { font-size: 12px; } th, td { padding: 6px 5px; } }

/* ---- admin layout fixes (2026-10-16) ---- */
.card { min-width: 0; }
.tablewrap { overflow-x: auto; max-width: 100%; }
.tablewrap table { min-width: 100%; width: max-content; }
.tablewrap th, .tablewrap td { white-space: nowrap; }
.tablewrap td.wrap { white-space: normal; max-width: 260px; }
.broker-card { border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; margin-bottom: 12px; background: var(--panel2); }
.broker-card .hd { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.broker-card .hd .code { font-family: var(--mono); color: var(--gold2); font-weight: 600; }
.broker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 14px; }
.broker-card label { margin-top: 6px; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; margin: 10px 14px 0 0; }
.chk input { width: auto; }
.admins-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.admins-row input { flex: 1; min-width: 160px; }

/* ---- detail panel (admin) ---- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 0; width: min(1320px, 100%); margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.6); position: relative; }
.modal .mhead { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #0a1015; z-index: 2; border-radius: 0; }
.modal .mbody { padding: 16px 18px 22px; }
.xclose { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 16px; line-height: 1; }
.xclose:hover { border-color: var(--gold); color: var(--gold); }
.subtabs { display: flex; gap: 14px; flex-wrap: wrap; align-items: stretch; }
.subtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; background: none; border: 1px solid var(--line); color: var(--dim); padding: 4px 14px; border-radius: 0; cursor: pointer; font: inherit; }
.subtabs button.on { color: var(--gold); border-color: var(--gold); background: rgba(199,165,124,.08); }
.innertabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 18px 0 12px; flex-wrap: wrap; }
.innertabs button { background: none; border: none; color: var(--dim); padding: 8px 12px; cursor: pointer; font: inherit; border-bottom: 2px solid transparent; font-size: 13px; }
.innertabs button.on { color: var(--fg); border-bottom-color: var(--gold); }
.acct-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.acct-head .idrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-head .idrow .acct { font-family: var(--mono); font-size: 22px; font-weight: 700; }
.acct-head .meta { color: var(--dim); font-size: 13px; margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.acct-head .box { background: var(--panel2); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; }
.acct-head .box .k { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; } .acct-head .box .v { font-weight: 600; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 0; border: 1px solid var(--line); font-size: 12px; color: var(--fg); background: var(--panel2); }
.chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); } .chip.ok .d { background: var(--ok); } .chip.bad .d { background: var(--bad); } .chip.warn .d { background: var(--warn); }
.chip.tag { color: var(--info); border-color: rgba(79,143,224,.4); background: rgba(79,143,224,.08); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 10px 12px; }
.tile .k { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: 1px; } .tile .v { font-size: 20px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; } .tile .s { color: var(--dim); font-size: 11px; margin-top: 2px; }
.curve-card { background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; margin-top: 14px; }
.curve-card .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.range { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 0; padding: 2px; }
.range button { background: none; border: none; color: var(--dim); padding: 4px 10px; border-radius: 0; cursor: pointer; font: inherit; font-size: 12px; }
.range button.on { background: var(--panel2); color: var(--fg); }
canvas.curve { width: 100%; height: 280px; display: block; margin-top: 8px; }
.legend { color: var(--dim); font-size: 12px; display: flex; gap: 14px; margin-top: 4px; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--gold); vertical-align: middle; margin-right: 5px; } .legend i.e { border-top: 2px dashed #9da8a9; }
.act { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act .ico { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--dim); }
.act.ok .ico { background: var(--ok); } .act.bad .ico { background: var(--bad); } .act.warn .ico { background: var(--warn); } .act.info .ico { background: var(--info); }
.act .t { color: var(--dim); font-size: 12px; white-space: nowrap; margin-left: auto; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #18252a; }
@media (max-width: 860px) { .acct-head { grid-template-columns: 1fr; } }
/* admin: KPI tiles double as navigation (v5) */
.stat.nav { cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.stat.nav:hover { border-color: var(--gold); }
.stat.nav.on { border-color: var(--gold); background: rgba(199,165,124,.08); box-shadow: inset 0 -3px 0 var(--gold); }
.stat .s { color: var(--dim); font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v.warn { color: var(--warn); } .stat .v.neg { color: var(--bad); } .stat .v .gold { color: var(--gold); }
tr.total td { font-weight: 600; border-top: 2px solid var(--line); background: var(--panel2); }
tr.subtotal td { color: var(--dim); font-size: 12px; background: #162126; }
.stat .v.pair { font-size: 18px; }

/* customer accounts: one row per license, bound accounts stacked line by line and aligned across columns */
.acct-tbl td { vertical-align: top; padding-top: 6px; padding-bottom: 6px; }
.acct-tbl .chd { height: 38px; overflow: hidden; cursor: pointer; line-height: 1.3; }
.acct-tbl .chd:hover { color: var(--gold); }
.acct-tbl .ln { height: 26px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-top: 1px dashed rgba(255,255,255,.06); }
.acct-tbl .ln:hover { color: var(--gold); }
.acct-tbl .ln .pill, .acct-tbl .ln .btn { line-height: normal; vertical-align: middle; }
.acct-tbl .ln .key { font-size: 11px; }
.acct-tbl th, .acct-tbl td { padding-left: 6px; padding-right: 6px; }
.acct-tbl .ln .dot { vertical-align: middle; }
.acct-tbl tbody tr:not(:last-child) td { border-bottom: 1px solid var(--gold); }
.acct-tbl .ln .pill { font-size: 10px; padding: 1px 6px; }
#appView .tab th.num, #appView .tab td.num { text-align: left; }
.acct-tbl tbody tr:first-child td { border-top: 1px solid var(--gold); }
.acct-tbl .btn.del { position: relative; display: inline-block; width: 16px; height: 16px; padding: 0; margin: 0 0 0 3px; border-radius: 50%; vertical-align: middle; }
.acct-tbl .btn.del::before, .acct-tbl .btn.del::after { content: ''; position: absolute; left: 50%; top: 50%; width: 8px; height: 2px; border-radius: 0; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.acct-tbl .btn.del::after { transform: translate(-50%, -50%) rotate(-45deg); }
.acct-tbl .btn.del:hover { background: var(--bad); color: #fff; }
/* gold separators on every console view */
#appView .tab table th, #appView .tab table tbody td { border-bottom: 1px solid var(--gold); }
#stats { margin-bottom: 16px; }
.wkstatus { width: 130px; padding: 4px 8px; }
.acct-tbl .cname { display: flex; align-items: center; gap: 7px; line-height: 18px; }
.acct-tbl .cname .btn.del { margin: 0; flex: 0 0 16px; }

/* admin top bar navigation */
.topnav { display: flex; align-items: center; gap: 22px; margin-left: 22px; }
.topnav a, .topnav summary { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); cursor: pointer; font-size: 13px; user-select: none; white-space: nowrap; list-style: none; }
.topnav summary::-webkit-details-marker { display: none; }
.topnav a:hover, .topnav summary:hover, .topnav .on { color: var(--fg); }
.topnav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topnav .chev { font-size: 10px; margin-left: -2px; }
.topnav .pill { font-size: 10px; padding: 1px 6px; }
.menu { position: relative; }
.menu-list { position: absolute; top: 30px; left: -10px; background: var(--panel); border: 1px solid var(--line); border-radius: 0; padding: 6px; min-width: 180px; z-index: 30; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.menu-list a { padding: 8px 10px; border-radius: 0; justify-content: space-between; }
.menu-list a:hover { background: #18252a; }
tr.hot td { background: rgba(224,82,82,.06); }
@media (max-width: 760px) { .topnav a span:not(.pill) { display: none; } }

/* P/L view */
.pnl-hero { text-align: center; padding: 26px 16px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(63,191,127,.06), rgba(63,191,127,0)); }
.pnl-hero .k { color: var(--dim); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.pnl-hero .big { font-size: 46px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.pnl-hero .sub { display: flex; justify-content: center; gap: 14px; font-size: 14px; font-weight: 600; }
.segs { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); }
.segs button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; color: var(--dim); padding: 7px 14px; border-radius: 0; cursor: pointer; font: inherit; font-weight: 600; }
.segs button.on { background: var(--panel2); color: var(--fg); border-color: var(--line); }
.segs button.on.pos { color: var(--ok); border-color: rgba(63,191,127,.5); background: rgba(63,191,127,.08); }
.segs button.on.neg { color: var(--bad); border-color: rgba(224,81,79,.5); background: rgba(224,81,79,.08); }
.segs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pnl-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px 1.4fr 2fr 1.2fr 1.6fr 18px; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); cursor: pointer; }
.pnl-card:hover { border-color: var(--dim); }
.pnl-card.pos, .pnl-card.neg, .pnl-card.flat { color: var(--fg); }
.pnl-card.pos { border-color: rgba(63,191,127,.3); } .pnl-card.neg { border-color: rgba(224,81,79,.3); }
.pnl-card .pnl-fill { position: absolute; right: 0; top: 0; bottom: 0; width: var(--w, 0%); pointer-events: none; }
.pnl-card.pos .pnl-fill { background: rgba(63,191,127,.09); } .pnl-card.neg .pnl-fill { background: rgba(224,81,79,.10); }
.pnl-card > * { position: relative; }
.pnl-card .ic { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pnl-card.pos .ic { background: rgba(63,191,127,.14); color: var(--ok); } .pnl-card.neg .ic { background: rgba(224,81,79,.14); color: var(--bad); } .pnl-card.flat .ic { background: var(--panel2); color: var(--dim); }
.pnl-card .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pnl-card .who b { font-size: 15px; } .pnl-card .who .muted { font-size: 13px; }
.pnl-card .col .k { color: var(--dim); font-size: 12px; margin-bottom: 2px; } .pnl-card .col { font-size: 15px; }
.pnl-card .val { text-align: right; } .pnl-card .val .big { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pnl-card.pos .val .big { color: var(--ok); } .pnl-card.neg .val .big { color: var(--bad); } .pnl-card.flat .val .big { color: var(--dim); }
.pnl-card .val .small { color: var(--dim); font-size: 12px; }
.pnl-card .chev { color: var(--dim); font-size: 20px; text-align: right; }
@media (max-width: 900px) { .pnl-card { grid-template-columns: 44px 1fr 1fr 18px; } .pnl-card .col { display: none; } }
.prod { padding: 14px 0; border-bottom: 1px solid var(--gold); } .prod:last-child { border-bottom: none; } .prod input { width: 100%; }

/* 2026-11-02 portal feedback: password eye, getting-started steps */
.pwwrap { position: relative; } .pwwrap input { padding-right: 40px; }
.pweye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; line-height: 0; }
.pweye:hover, .pweye.on { color: var(--gold); }
ol.steps { margin: 10px 0 0 18px; padding: 0; } ol.steps li { margin: 6px 0; line-height: 1.45; }

/* ==== 2026-11-21: theme aligned with the public site (nordictradingtech.com) ====
   Colours live in :root above; this block carries the site's type, square corners and button style. */
:root { --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif; --display: Manrope, "DM Sans", "Segoe UI", sans-serif; --teal: #9ebcba; }
html, body { -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(ellipse at 88% -8%, #1b2729 0%, var(--bg) 58%) fixed var(--bg); min-height: 100vh; }
::selection { background: var(--gold); color: #111; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }
h1 { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.05em; line-height: 1.12; }
h2 { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.03em; text-transform: none; color: var(--fg); }
h3 { font-family: var(--display); letter-spacing: -.02em; }
.eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .23em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }

/* top bar: the site's lockup */
.topbar { min-height: 66px; padding: 0 clamp(14px, 3vw, 40px); background: #0a1015c9; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-bottom: 1px solid #ffffff18; }
.brand, a.brand, a.brand:hover { color: var(--fg); letter-spacing: 0; text-transform: none; gap: 11px; }
.brand svg { height: 36px; width: 32px; flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.brand-name b { font-family: var(--display); font-size: 17px; letter-spacing: .21em; font-weight: 700; }
.brand-name small { font-size: 8px; color: var(--gold); letter-spacing: .22em; font-weight: 700; text-transform: uppercase; }
.toplink { font-size: 12px; color: #d3d9d5; transition: color .2s; white-space: nowrap; }
.toplink:hover { color: var(--gold2); }

/* buttons: uppercase, tracked, square - gold primary and outline secondary as on the site */
.btn { background: transparent; border: 1px solid #b8c0bb66; padding: 10px 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; line-height: 1.3; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: #ffffff12; border-color: #e5e5df; }
.btn.gold { color: #0a0d10; font-weight: 800; } .btn.gold:hover { border-color: var(--gold2); color: #0a0d10; }
.btn.sm { padding: 6px 11px; font-size: 10px; letter-spacing: .1em; }
.btn.danger:hover { background: rgba(224,81,79,.12); border-color: var(--bad); }
a.btn { display: inline-flex; align-items: center; justify-content: center; }

/* surfaces */
.card { background: linear-gradient(135deg, #162126, #10171b); padding: 20px; }
.stat, .tile, .broker-card, .curve-card { background: #131c21; }
.stat .k, .tile .k, .acct-head .box .k { letter-spacing: .14em; font-size: 10px; }
.stat .v, .tile .v, .pnl-hero .big, .pnl-card .val .big { font-family: var(--display); letter-spacing: -.03em; }
.stat .v.key, .key { font-family: var(--mono); letter-spacing: .5px; }
label { font-size: 11px; color: #cad3cc; text-transform: uppercase; letter-spacing: .1em; }
.chk { text-transform: none; letter-spacing: 0; }
input, select, textarea { border-color: #435055; padding: 11px 12px; }
th { font-size: 10px; letter-spacing: .13em; font-weight: 600; }
.pill, .chip { border-radius: 0; letter-spacing: .1em; font-size: 10px; }
.tabs button { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; padding: 14px 16px; transition: color .2s; }
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--gold2); }
.innertabs button, .subtabs button, .segs button, .range button { letter-spacing: .04em; }
.toast { background: #152025; }
.modal { background: #10181d; }
details summary { color: var(--gold); }

/* sign-in card */
.auth { max-width: 440px; margin: clamp(40px, 9vh, 110px) auto 40px; }
.auth .card { padding: 34px 32px 30px; border-color: #3a4649; }
.auth h1 { font-size: 34px; margin-bottom: 10px; }
@media (max-width: 720px) { .brand-name b { font-size: 15px; } .brand svg { height: 32px; width: 28px; } .auth .card { padding: 26px 20px; } .tabs button { padding: 12px 11px; letter-spacing: .08em; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
