/* BKCG Ops. Brand: Forest #0F5D3B as solid fill, hairline or type only.
   Status colours are for data states only. No separators between the dark
   sidebar, top bar and footer. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-400-normal.503e7cbdb484.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-500-normal.e5e6761eaecb.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.79e62f3332cd.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.5b629bd8abb4.woff2") format("woff2"); }

:root {
  --forest: #0F5D3B; --forest-950: #04211A;
  --ink: #0F172A; --ink-2: #475569; --stone: #94A3BB;
  --line: rgba(148,163,187,.55); --line-2: rgba(148,163,187,.3);
  --glacier: #F6F8FA;
  --good: #0CA30C; --warning: #FAB219; --serious: #EC835A; --critical: #D03B3B;
  --good-text: #0B7A0B; --warning-text: #8A5A00; --critical-text: #C02E2E;
  /* Data-viz roles */
  --s-total: #2A78D6; --s-etf: #12A4B6; --s-stock: #EB6834; --s-option: #4A3AA7; --s-other: #B8B4AA;
  --usd: #1F3F77; --cad: #64748B; --market: #A23B87; --compare: #9A968C;
  --acerto: #1B7F45; --astha: #B8860B;
  --sidebar-w: 248px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--forest-950); font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); font-variant-numeric: tabular-nums; }
a { color: var(--forest); }
a:hover { color: var(--forest-950); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
th .sr-only, td .sr-only { position: fixed; top: 0; left: 0; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--forest-950); color: #FFFFFF; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo-btn { height: 72px; flex-shrink: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; padding: 0 24px; }
.sidebar .logo-full { width: 184px; height: auto; display: block; }
.sidebar .logo-mark { width: 42px; height: auto; display: none; }
.sidebar nav { padding: 12px 16px 16px 0; display: flex; flex-direction: column; gap: 2px; }
.sb-mod, .sb-sec { display: flex; align-items: center; text-decoration: none; font-size: 14px; color: rgba(255,255,255,.72); }
.sb-mod { gap: 12px; min-height: 44px; padding: 0 12px 0 24px; font-weight: 600; }
.sb-mod svg { flex-shrink: 0; }
.sb-sec { min-height: 38px; padding: 0 12px 0 54px; font-weight: 500; }
.sb-mod:hover, .sb-sec:hover { color: #FFFFFF; }
.sb-mod.open { color: #FFFFFF; font-weight: 700; }
.sb-mod.on, .sb-sec.on { color: #FFFFFF; font-weight: 700; box-shadow: inset 3px 0 0 #FFFFFF; }

body.sb-collapsed { --sidebar-w: 72px; }
body.sb-collapsed .sidebar .logo-btn { justify-content: center; padding: 0; }
body.sb-collapsed .logo-full, body.sb-collapsed .sb-label, body.sb-collapsed .sb-sec { display: none; }
body.sb-collapsed .logo-mark { display: block; }
body.sb-collapsed .sidebar nav { padding: 12px 0 16px 0; }
body.sb-collapsed .sb-mod { padding: 0 0 0 27px; }
body.sb-collapsed .sb-mod.open { box-shadow: inset 3px 0 0 #FFFFFF; }

.main-col { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; flex-shrink: 0; background: var(--forest-950); display: flex; align-items: center; gap: 12px; padding: 0 24px 0 32px; }
.crumbs { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; min-width: 0; }
.crumb { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.62); text-decoration: none; }
.crumb:hover { color: #FFFFFF; }
.crumb-sep { color: rgba(255,255,255,.35); }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: #FFFFFF; }
.topbar .spacer { flex-grow: 1; }
.avatar { width: 36px; height: 36px; border-radius: 999px; border: none; background: var(--forest); color: #FFFFFF; font: 700 13px "Plus Jakarta Sans", sans-serif; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.avatar::-webkit-details-marker { display: none; }
.menu { position: relative; }
.menu-panel { position: absolute; right: 0; top: 44px; z-index: 20; min-width: 220px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgba(4,33,26,.18); display: flex; flex-direction: column; }
.menu-panel .who { padding: 10px 12px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu-panel .who b { display: block; color: var(--ink); font-size: 14px; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; font: 500 14px "Plus Jakarta Sans", sans-serif; color: var(--ink); text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--glacier); }

.tabband { height: 44px; flex-shrink: 0; background: #FFFFFF; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; gap: 26px; padding: 0 32px; overflow-x: auto; }
.tabband a { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.tabband a.on { color: var(--forest); font-weight: 700; box-shadow: inset 0 -2px 0 var(--forest); }
.tabband .group { display: flex; align-items: center; margin-left: 10px; margin-right: -12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); white-space: nowrap; text-transform: uppercase; }

main.content { background: var(--glacier); flex-grow: 1; padding: 28px 32px; display: flex; flex-direction: column; gap: 24px; }

.footer { height: 44px; flex-shrink: 0; background: var(--forest-950); display: flex; align-items: center; gap: 14px; padding: 0 32px; font-size: 12px; color: rgba(255,255,255,.64); }
.footer .grow { flex-grow: 1; }
.env { display: inline-flex; align-items: center; gap: 7px; color: #FFFFFF; font-weight: 600; }

/* Components */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; }
.kpi { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.kpi { min-width: 0; }
.kpi .st { white-space: normal; }
.muted { color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.t { width: 100%; border-collapse: collapse; }
.t th { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.t td { font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: none; }

.btn, .btn2 { min-height: 40px; padding: 0 16px; border-radius: 8px; font: 600 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; white-space: nowrap; }
.btn { border: none; background: var(--forest); color: #FFFFFF; }
.btn:hover { background: var(--forest-950); color: #FFFFFF; }
.btn2 { border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); font-weight: 500; }
.btn2:hover { border-color: var(--stone); }
.btn:disabled, .btn2:disabled { background: #FFFFFF; border: 1px solid var(--line); color: var(--stone); cursor: not-allowed; }

.empty { padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty h2 { margin: 0; font-size: 18px; font-weight: 700; }

/* Segmented control (in-page views) */
.seg { display: inline-flex; background: var(--glacier); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); }
.seg a.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.seg .n { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.tag { font-size: 10px; font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink-2); }
.cat { width: 30px; height: 30px; border-radius: 8px; background: var(--glacier); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--forest); flex-shrink: 0; }
.fb-ring { width: 8px; height: 8px; border-radius: 999px; border: 2px solid var(--market); display: inline-block; flex-shrink: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.jrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); font-size: 13px; }
.jrow:hover { background: var(--glacier); }
.jrow.on { background: var(--glacier); box-shadow: inset 3px 0 0 var(--forest); }
.jrow .ttl { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jrow .ttl b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow .amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.closegrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.homegrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.shgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--forest); color: var(--ink); }
.tile b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.tile .hd { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.ccy { font-size: 10px; font-weight: 700; letter-spacing: .04em; border-radius: 4px; padding: 1px 5px; border: 1px solid var(--line); color: var(--ink-2); }
.pk-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--forest); }
.pk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-grid > div:not(.kv) { display: flex; flex-direction: column; gap: 2px; }
.pk-grid > div:not(.kv) > span { font-size: 11px; color: var(--ink-2); }
.pk-grid > div:not(.kv) > b { font-size: 18px; font-weight: 700; }
.pack { background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(15,23,42,.06); padding: 40px 44px; display: flex; flex-direction: column; gap: 18px; max-width: 700px; width: 100%; box-sizing: border-box; }
@media (max-width: 900px) { .pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pack { padding: 24px 18px; } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal .dow { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 118px; box-sizing: border-box; padding: 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cal .day:nth-child(7n) { border-right: none; }
.cal .dn { font-size: 13px; font-weight: 600; }
.cal .out .dn { color: var(--stone); }
.cal .today { box-shadow: inset 0 0 0 2px var(--forest); }
.cal .ev { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 6px; border: 1px solid var(--line); border-radius: 6px; background: #FFFFFF; line-height: 1.25; color: var(--ink); text-decoration: none; overflow: hidden; }
.cal .ev span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.ag .dt { width: 52px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 0; }
.ag .dt b { font-size: 18px; line-height: 1.1; }
.ag .dt span { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
@media (max-width: 900px) { .cal .day { min-height: 64px; padding: 4px; } .cal .ev span:last-child { display: none; } .cal .dow { padding: 8px 4px; } }
.fgrid { display: grid; gap: 0 10px; }
.fgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shgrid.w400 { grid-template-columns: minmax(0, 1fr) 400px; }
.shgrid.w420 { grid-template-columns: minmax(0, 1fr) 420px; }
.shgrid.w440 { grid-template-columns: minmax(0, 1fr) 440px; }
.shgrid.w460 { grid-template-columns: minmax(0, 1fr) 460px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.opt:has(input:checked) { border-color: var(--forest); }
.opt input { width: 18px; height: 18px; margin: 0; accent-color: #0F5D3B; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.av { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.av.acerto { background: var(--acerto); color: #FFFFFF; }
.av.astha { background: var(--astha); color: var(--ink); }
.av.lg { width: 40px; height: 40px; font-size: 13px; }
.sm { min-height: 30px !important; padding: 0 10px !important; font-size: 12px !important; }
.grp td { font-size: 11px !important; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); background: var(--glacier); padding-top: 8px !important; padding-bottom: 8px !important; }
.sec-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); margin: 0; }

.messages { display: flex; flex-direction: column; gap: 8px; }
.msg { background: #FFFFFF; border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.msg.error { border-left-color: var(--critical); }
.msg.warning { border-left-color: var(--warning); }

/* Forms (also styles allauth's default elements) */
form p { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=file], select, textarea {
  height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: 400 15px "Plus Jakarta Sans", sans-serif; color: var(--ink); background: #FFFFFF; width: 100%;
}
textarea { height: auto; padding: 10px 12px; }
input[type=file] { padding: 9px 12px; font-size: 13px; }
.check { display: flex; flex-direction: row !important; align-items: center; gap: 8px !important; font-size: 13px; font-weight: 600; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: #0F5D3B; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--forest); outline-offset: 1px; }
.errorlist { list-style: none; margin: 0 0 8px; padding: 0; color: var(--critical-text); font-size: 13px; font-weight: 600; }
.panel button, .auth-card button, .panel .btnlike { min-height: 44px; padding: 0 16px; border-radius: 8px; border: none; background: var(--forest); color: #FFFFFF; font: 600 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; margin: 4px 8px 4px 0; }
.panel button[type=button], .auth-card button[type=button] { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.panel { padding: 24px; max-width: 720px; }
.panel h1, .panel h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.panel table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.panel th, .panel td { text-align: left; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }

/* Auth pages */
body.auth { background: var(--glacier); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 32px 16px; }
.auth-wrap .logo { width: 280px; height: auto; }
.auth-card { width: 100%; max-width: 420px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth-card h1 { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.auth-card button[type=submit] { width: 100%; margin: 8px 0 0; }
.auth-card hr { border: 0; border-top: 1px solid var(--line-2); margin: 20px 0; }
.auth-env { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--warning-text); text-transform: uppercase; }

.menu-btn, .drawer-close, .drawer-backdrop, .drawer-who, .bottomnav { display: none; }

@media (max-width: 900px) {
  .seg.fill { display: flex; width: 100%; flex-wrap: nowrap; }
  .seg.fill a { flex: 1 1 0; justify-content: center; padding: 0 4px; }
  /* The sidebar becomes a drawer; a bottom bar carries the main modules. */
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 318px; max-width: 86vw; --sidebar-w: 318px;
    height: auto; transform: translateX(-100%); transition: transform .2s ease, visibility .2s; visibility: hidden; overflow-y: auto; }
  body.drawer-open .sidebar { transform: none; visibility: visible; }
  body.drawer-open { overflow: hidden; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(4,33,26,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .drawer-close { display: flex; position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: #FFFFFF; cursor: pointer; }
  .sidebar .logo-btn { pointer-events: none; }
  body.sb-collapsed .logo-full { display: block; }
  body.sb-collapsed .sb-label { display: inline; }
  body.sb-collapsed .sb-sec { display: flex; }
  body.sb-collapsed .logo-mark { display: none; }
  body.sb-collapsed .sb-mod { padding: 0 12px 0 24px; }
  .sb-mod { min-height: 48px; font-size: 15px; }
  .sb-sec { min-height: 44px; font-size: 14px; }
  .drawer-who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 14px 20px 20px; color: #FFFFFF; font-size: 14px; }
  .drawer-who > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: rgba(255,255,255,.64); }
  .drawer-who b { font-size: 14px; color: #FFFFFF; }
  .menu-btn { display: flex; width: 36px; height: 36px; margin-left: -4px; align-items: center; justify-content: center; border: 0; background: transparent; padding: 0; cursor: pointer; flex-shrink: 0; }
  .menu-btn img { width: 28px; height: auto; display: block; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: 64px; padding-bottom: env(safe-area-inset-bottom); background: var(--forest-950); }
  .bottomnav a, .bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent;
    color: rgba(255,255,255,.64); font: 500 11px "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; }
  .bottomnav .on { color: #FFFFFF; font-weight: 700; }
  .main-col { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { padding: 0 16px; height: 56px; }
  .topbar h1 { font-size: 18px; }
  .crumb, .crumb-sep { display: none; }
  .tabband { padding: 0 16px; gap: 22px; }
  main.content { padding: 16px; }
  .footer { padding: 0 16px; white-space: nowrap; }
  .footer .foot-meta { display: none; }
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
  .closegrid { grid-template-columns: minmax(0, 1fr); }
  .shgrid, .shgrid.w400, .shgrid.w420, .shgrid.w440, .shgrid.w460 { grid-template-columns: minmax(0, 1fr); }
  .fgrid.c3, .fgrid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fgrid .span3 { grid-column: 1 / -1 !important; }
  .homegrid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .jrow { flex-wrap: wrap; row-gap: 4px; }
  .jrow .ttl { flex: 1 1 0; }
  .jrow .jst { width: auto !important; flex-basis: 100%; padding-left: 106px; }
}
.auth-card #passkey_login { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); font-weight: 600; width: 100%; margin: 0; }
.foot-link { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.82); text-decoration: none; }
.foot-link:hover { color: #FFFFFF; }

/* Financial statements */
.fs { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 36px 44px; display: flex; flex-direction: column; min-width: 0; }
.fs .hd { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; gap: 16px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 20px 0 6px; border-bottom: 1px solid var(--ink); }
.fs .sh { font-size: 13px; font-style: italic; color: var(--ink-2); padding: 10px 0 2px; }
.fs .ln { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px; gap: 16px; align-items: baseline; padding: 7px 0; font-size: 14px; color: var(--ink); text-decoration: none; }
.fs a.ln:hover { background: var(--glacier); }
.fs a.ln.on { margin: 0 -14px; padding: 7px 14px; box-shadow: inset 3px 0 0 var(--forest); font-weight: 600; }
.fs .ln .v { text-align: right; white-space: nowrap; }
.fs .ln .v.p { color: var(--ink-2); }
.fs .tot { border-top: 1px solid var(--ink); font-weight: 700; }
.fs .dbl { border-bottom: 3px double var(--ink); }
.fs .ph { color: var(--ink-2); font-style: italic; }
.fs.one .hd, .fs.one .ln { grid-template-columns: minmax(0, 1fr) 120px; }
@media (max-width: 900px) {
  .fs { padding: 20px 16px; }
  .fs .hd, .fs .ln { grid-template-columns: minmax(0, 1fr) 92px 84px; gap: 8px; font-size: 13px; }
  .fs.one .hd, .fs.one .ln { grid-template-columns: minmax(0, 1fr) 92px; }
}

@media print {
  .sidebar, .topbar, .tabband, .footer, .bottomnav, .drawer-backdrop, .noprint { display: none !important; }
  body, .shell, main.content { background: #FFFFFF !important; }
  main.content { padding: 0 !important; }
  .shgrid { display: block !important; }
  .fs { border: 0; padding: 0; }
}
.t.tight th, .t.tight td { padding: 6px 4px; }
.t.tight td:first-child, .t.tight th:first-child { padding-left: 0; }
.t.tight td:last-child, .t.tight th:last-child { padding-right: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.two > div { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.set { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.set h2 { margin: 0; font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.set h2 a, .set h2 span { font-size: 13px; font-weight: 600; }
/* Search (⌘K) */
.search-btn { display: flex; align-items: center; gap: 8px; width: 220px; height: 36px; padding: 0 8px 0 11px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: rgba(255,255,255,.65); font: 400 14px "Plus Jakarta Sans", sans-serif; cursor: pointer; margin-right: 12px; }
.search-btn:hover { border-color: rgba(255,255,255,.5); }
.search-btn .lbl { flex-grow: 1; text-align: left; }
.search-btn kbd { font: 600 11px "Plus Jakarta Sans", sans-serif; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 1px 6px; }
.kbd { font: 600 11px "Plus Jakarta Sans", sans-serif; color: var(--ink-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--glacier); }
.sr-overlay { position: fixed; inset: 0; background: rgba(4,33,26,.55); z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 96px 16px 16px; }
.sr-overlay[hidden] { display: none; }
.sr-box { width: 720px; max-width: 100%; max-height: calc(100vh - 128px); display: flex; flex-direction: column; background: #FFFFFF; border-radius: 16px; box-shadow: 0 24px 64px rgba(4,33,26,.35); overflow: hidden; }
.sr-in { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.sr-in input { flex-grow: 1; height: 40px; border: 0 !important; outline: none !important; font: 500 18px "Plus Jakarta Sans", sans-serif; padding: 0 !important; }
.sr-chips { display: flex; gap: 6px; padding: 12px 20px 4px; flex-wrap: wrap; flex-shrink: 0; }
.sr-chip { min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink-2); font: 500 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; }
.sr-chip.on { border-color: var(--forest); color: var(--forest); font-weight: 700; }
.sr-list { overflow-y: auto; padding-bottom: 6px; }
.sr-grp { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--ink-2); padding: 12px 20px 6px; }
.sr-res { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 20px; text-decoration: none; color: var(--ink); font-size: 14px; }
.sr-res:hover, .sr-res.on { background: var(--glacier); box-shadow: inset 3px 0 0 var(--forest); color: var(--ink); }
.sr-ic { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; box-sizing: border-box; }
.sr-main { flex-grow: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sr-t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-s { font-size: 12px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-w { flex-shrink: 0; }
.sr-empty { padding: 28px 20px; color: var(--ink-2); font-size: 14px; }
.sr-foot { display: flex; gap: 16px; align-items: center; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
@media (max-width: 900px) {
  .search-btn { width: 40px; padding: 0; justify-content: center; border: 0; margin-right: 4px; }
  .search-btn .lbl, .search-btn kbd { display: none; }
  .sr-overlay { padding: 12px 8px; }
  .sr-box { max-height: calc(100vh - 24px); }
  .sr-foot, .sr-w { display: none; }
}
/* Notifications */
.bell { position: relative; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; margin-right: 6px; }
.bell:hover { background: rgba(255,255,255,.08); color: #FFFFFF; }
.bell-n { position: absolute; top: 5px; right: 3px; min-width: 16px; height: 16px; box-sizing: border-box; border-radius: 99px; background: var(--warning); color: var(--ink); font: 700 10px "Plus Jakarta Sans", sans-serif; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.nt-overlay { position: fixed; inset: 0; background: rgba(4,33,26,.55); z-index: 60; }
.nt-overlay[hidden] { display: none; }
.nt-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 440px; max-width: 100%; background: #FFFFFF; box-shadow: -24px 0 64px rgba(4,33,26,.3); display: flex; flex-direction: column; }
.nt-head { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; gap: 10px; }
.nt-x { width: 36px; height: 36px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nt-list { flex-grow: 1; overflow-y: auto; }
.nt { display: flex; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.nt:hover { background: var(--glacier); color: var(--ink); }
.nt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; flex-shrink: 0; }
a.sr-chip { display: inline-flex; align-items: center; text-decoration: none; }
.nt-page { padding: 0; overflow: hidden; }
.nt-page .nt-x { display: none; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.three > div { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (max-width: 1100px) { .three { grid-template-columns: minmax(0, 1fr); } }
