/* ============================================================
   Operations Workspace — shared template stylesheet
   Used by: trade-review.html, workflow-management.html, forms-library.html
   Framework: docs/design-system/operations-workspace.md
   One consistent shell (nav + topbar + login gate) plus the shared
   building blocks every operations page reuses: KPI strip, tabs,
   filter bar, data table, and a right-side detail drawer.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; background: #f4f6f9; color: #1a2332; display: flex; min-height: 100vh; }

/* ── NAV (shared shell) ── */
.nav { width: 196px; min-width: 196px; background: #0f1f38; color: #c8d6e8; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; flex-shrink: 0; }
.nav-logo { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); cursor: pointer; }
.nav-logo .brand { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: #fff; text-transform: uppercase; }
.nav-logo .sub { font-size: 9px; color: #7a9bbf; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px; }
.nav-logo .star { font-size: 22px; margin-bottom: 4px; }
.nav-section { padding: 14px 12px 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #4a6a8a; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 7px 14px; font-size: 12.5px; color: #a8c0d8; cursor: pointer; transition: background 0.15s; position: relative; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.1); color: #fff; font-weight: 500; }
.nav-item .icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-item .icon svg { width: 16px; height: 16px; }
.nav-badge { background: #3b82f6; color: #fff; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 10px; margin-left: auto; }
.nav-assistant { margin: auto 12px 10px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 10px 12px; }
.nav-assistant .label { font-size: 10px; color: #7a9bbf; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px; }
.nav-assistant .ask { font-size: 12px; color: #c8d6e8; }
.nav-profile { display: flex; align-items: center; gap: 10px; margin: 0 8px 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; border-top: 1px solid rgba(255,255,255,0.07); border-top-left-radius: 0; border-top-right-radius: 0; transition: background 0.15s; }
.nav-profile:hover { background: rgba(255,255,255,0.08); }
.nav-profile-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#3b82f6,#1d4ed8); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.02em; }
.nav-profile-meta { min-width: 0; }
.nav-profile-name { font-size: 12.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-profile-sub { font-size: 10.5px; color: #7a9bbf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-logout { display: flex; align-items: center; gap: 9px; margin: 0 8px 12px; padding: 7px 14px; font-size: 12.5px; color: #ff6b6b; cursor: pointer; transition: background 0.15s; border-radius: 6px; }
.nav-logout:hover { background: rgba(255,107,107,0.1); color: #ff8787; }
.nav-logout .icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.nav-logout .icon svg { width: 16px; height: 16px; }

/* Top-right Sign Out button */
.top-sign-out { position: fixed; top: 16px; right: 20px; z-index: 9998; background: rgba(255,255,255,0.08); color: #e0e7f1; border: 1px solid rgba(255,255,255,0.12); padding: 7px 14px; font-size: 12px; font-weight: 500; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.15s; backdrop-filter: blur(8px); }
.top-sign-out:hover { background: rgba(255,107,107,0.15); color: #ff8787; border-color: rgba(255,107,107,0.3); }
.top-sign-out .icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.top-sign-out .icon svg { width: 16px; height: 16px; }

/* ============================================================
   LOCKED SIDEBAR — exact structural mirror of Advisor Home
   (index.html). Scoped under `.nav.sidebar` so these rules
   override the older bare `.nav` / `.nav-item` styles above and
   the navigation renders identically on every workspace page.
   ============================================================ */
.nav.sidebar { width: 264px; min-width: 264px; background: linear-gradient(180deg,#0c1830,#0a1428); color: #cdd7ee; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.nav.sidebar .side-scroll { flex: 1; overflow-y: auto; padding: 18px 14px 8px; }
.nav.sidebar .side-scroll::-webkit-scrollbar { width: 7px; }
.nav.sidebar .side-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }

.nav.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; cursor: pointer; }
.nav.sidebar .brand .logo { width: 32px; height: 32px; border: 2px solid #e9c46a; border-radius: 9px; display: grid; place-items: center; color: #e9c46a; font-size: 15px; }
.nav.sidebar .brand .name { font-weight: 800; letter-spacing: .06em; font-size: 14px; color: #fff; }

.nav.sidebar .divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 4px; }
.nav.sidebar .sec-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: #7f8cab; text-transform: uppercase; padding: 0 10px; margin: 14px 0 6px; }

.nav.sidebar .nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #c2cde3; font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; transition: background .14s, color .14s; position: relative; }
.nav.sidebar .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.sidebar .nav-item.active { background: #fff; color: #0c1830; font-weight: 700; box-shadow: 0 1px 3px rgba(16,24,40,.06), 0 6px 18px rgba(16,24,40,.06); }
.nav.sidebar .nav-item .ic { width: 6px; height: 6px; border-radius: 50%; flex: none; margin-left: 2px; }
.nav.sidebar .nav-item .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.sidebar .nav-item .badge { background: #e5484d; color: #fff; font-size: 10.5px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; margin-left: auto; }
.nav.sidebar .nav-item .caret { font-size: 9px; opacity: .75; transition: transform .2s; flex: none; width: 12px; text-align: center; margin-left: auto; }
.nav.sidebar .nav-item.open .caret { transform: rotate(90deg); }
.nav.sidebar .nav-item.disabled { opacity: .4; cursor: default; }
.nav.sidebar .nav-item.disabled:hover { background: none; color: #c2cde3; }

.nav.sidebar .children { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.nav.sidebar .children.open { max-height: 900px; }
.nav.sidebar #householdChildren.open { max-height: 1400px; }
.nav.sidebar .children .nav-item { font-size: 12.5px; padding-left: 18px; color: #aab6d2; }
.nav.sidebar .children .nav-item .lbl { font-weight: 500; }
/* Nested (second-level) group, e.g. Assets > Investments */
.nav.sidebar .children .subchildren .nav-item { padding-left: 34px; }
.nav.sidebar .children .nav-item.parent .caret { margin-left: auto; font-size: 8px; transition: transform .2s ease; }
.nav.sidebar .children .nav-item.parent.open .caret { transform: rotate(90deg); }

.nav.sidebar .side-foot { border-top: 1px solid rgba(255,255,255,.08); padding: 10px 14px 14px; }
.nav.sidebar .foot-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #aeb9d3; font-size: 12.5px; cursor: pointer; }
.nav.sidebar .foot-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.sidebar .foot-item .dotc { width: 8px; height: 8px; border-radius: 50%; background: #12a150; flex: none; box-shadow: 0 0 0 3px rgba(18,161,80,.2); }
.nav.sidebar .side-foot .nav-profile { margin: 8px 0 0; border-top: 0; border-radius: 9px; padding: 10px 6px; }
.nav.sidebar .sign-out-btn { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: #f5a524; font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid rgba(245,165,36,.25); background: rgba(245,165,36,.08); margin-top: 8px; justify-content: center; transition: all .14s; }
.nav.sidebar .sign-out-btn:hover { background: rgba(245,165,36,.15); border-color: rgba(245,165,36,.4); }
.nav.sidebar .sign-out-btn svg { width: 16px; height: 16px; }

/* ── MAIN ── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── TOPBAR ── */
.topbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.topbar-title { font-size: 15px; font-weight: 600; color: #1a2332; }
.topbar-search { flex: 1; max-width: 460px; position: relative; margin-left: 16px; }
.topbar-search input { width: 100%; padding: 7px 12px 7px 34px; border: 1px solid #d1d9e6; border-radius: 8px; font-size: 13px; color: #1a2332; background: #f8fafc; outline: none; }
.topbar-search input:focus { border-color: #3b82f6; background: #fff; }
.topbar-search .si { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ── PAGE HEADER ── */
.page-scroll { flex: 1; overflow-y: auto; }
.page-head { padding: 22px 28px 8px; display: flex; align-items: flex-start; gap: 16px; }
.page-head .ph-icon { font-size: 26px; line-height: 1; margin-top: 2px; }
.page-head h1 { font-size: 24px; font-weight: 800; color: #0f1f38; letter-spacing: -0.01em; }
.page-head p { font-size: 13px; color: #64748b; margin-top: 3px; max-width: 640px; }
.page-head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Sample-data ribbon (shown while live wiring is pending) */
.sample-flag { display: inline-flex; align-items: center; gap: 6px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600; }
.sample-flag .dot { width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.live-flag { display: inline-flex; align-items: center; gap: 6px; background: #e7f6ee; color: #12683a; border: 1px solid #a7e0c1; border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600; }
.live-flag .dot { width: 7px; height: 7px; border-radius: 50%; background: #12a150; box-shadow: 0 0 0 3px rgba(18,161,80,.18); }

/* ── KPI STRIP (Hero-style, dark navy like Household Overview) ── */
.kpi-strip { display: grid; gap: 16px; padding: 24px 28px 26px; grid-auto-flow: column; grid-auto-columns: 1fr; overflow-x: auto; background: linear-gradient(135deg, #1a2744 0%, #0f1f38 100%); border-radius: 14px; margin: 0 28px 20px; box-shadow: 0 4px 16px rgba(15,31,56,.2); }
.kpi-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px 18px; min-width: 160px; display: flex; align-items: center; gap: 14px; transition: all .15s; }
.kpi-card:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.kpi-card .kpi-ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.kpi-card .kpi-content { flex: 1; min-width: 0; }
.kpi-card .kpi-label { font-size: 11px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.kpi-card .kpi-value { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 3px; }
.kpi-card .kpi-sub { font-size: 11px; color: #7f8cab; }
.kpi-card .kpi-sub.up { color: #4ade80; }
.kpi-card .kpi-sub.down { color: #f87171; }
.kpi-card.link { cursor: pointer; }
.kpi-card.link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ── TABS BAR ── */
.tabs { display: flex; align-items: center; gap: 22px; padding: 14px 28px 0; border-bottom: 1px solid #e2e8f0; }
.tab { padding: 8px 2px 12px; font-size: 13px; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tab:hover { color: #1a2332; }
.tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.tab .tab-count { background: #e0e7ff; color: #4338ca; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 10px; }

/* ── FILTER BAR ── */
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 14px 28px; flex-wrap: wrap; }
.filter-select { font-size: 12.5px; padding: 7px 12px; border: 1px solid #d1d9e6; border-radius: 8px; background: #fff; color: #374151; cursor: pointer; outline: none; }
.filter-select:focus { border-color: #3b82f6; }
.filter-search { position: relative; }
.filter-search input { padding: 7px 12px 7px 30px; border: 1px solid #d1d9e6; border-radius: 8px; font-size: 12.5px; background: #fff; color: #1a2332; outline: none; min-width: 200px; }
.filter-search .si { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 13px; }
.filter-spacer { margin-left: auto; }
.view-toggle { display: inline-flex; border: 1px solid #d1d9e6; border-radius: 8px; overflow: hidden; }
.view-toggle button { padding: 6px 12px; font-size: 12px; border: none; background: #fff; color: #64748b; cursor: pointer; }
.view-toggle button.active { background: #eff6ff; color: #2563eb; font-weight: 600; }

/* Category / folder ribbon (Forms) */
.chip-ribbon { display: flex; align-items: center; gap: 8px; padding: 4px 28px 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #374151; font-size: 12.5px; cursor: pointer; transition: all .12s; }
.chip:hover { border-color: #93c5fd; }
.chip.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.chip .chip-count { background: #f1f5f9; color: #64748b; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 8px; }
.chip.active .chip-count { background: rgba(255,255,255,.22); color: #fff; }

/* ── BODY SPLIT (table + drawer) ── */
.ops-body { display: flex; flex: 1; gap: 0; overflow: hidden; }
.ops-main { flex: 1; overflow-y: auto; padding: 0 28px 28px; }
.ops-rail { width: 320px; min-width: 320px; border-left: 1px solid #e2e8f0; background: #fff; overflow-y: auto; flex-shrink: 0; }

/* ── DATA TABLE ── */
.data-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data thead th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #94a3b8; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; background: #fafbfc; white-space: nowrap; }
table.data tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; font-size: 12.5px; color: #374151; vertical-align: middle; }
table.data tbody tr { cursor: pointer; transition: background .1s; }
table.data tbody tr:hover { background: #f8fafc; }
table.data tbody tr.selected { background: #eff6ff; box-shadow: inset 3px 0 0 #2563eb; }
table.data tbody tr:last-child td { border-bottom: none; }
.cell-primary { font-weight: 600; color: #1a2332; }
.cell-secondary { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.cell-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.cell-flex { display: flex; align-items: center; gap: 10px; }
.link-text { color: #2563eb; font-weight: 600; }

/* Avatars */
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }

/* ── STATUS PILLS ── */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.pill-amber { background: #fef3c7; color: #b45309; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-green { background: #dcfce7; color: #15803d; }
.pill-gray { background: #f1f5f9; color: #64748b; }
.pill-purple { background: #f3e8ff; color: #7c3aed; }

/* Progress (workflow step) */
.prog { height: 5px; background: #eef2f7; border-radius: 4px; overflow: hidden; margin-top: 6px; width: 120px; }
.prog > span { display: block; height: 100%; border-radius: 4px; }

/* Step label */
.step-label { font-weight: 600; color: #1a2332; }
.step-sub { font-size: 11px; color: #94a3b8; margin-top: 1px; }

/* ── DETAIL DRAWER (right rail) ── */
.rail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #94a3b8; font-size: 13px; gap: 10px; padding: 40px 24px; text-align: center; }
.rail-empty .big { font-size: 30px; opacity: .5; }
.rail-head { padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f0; }
.rail-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; }
.rail-title { font-size: 17px; font-weight: 800; color: #0f1f38; margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rail-close { background: none; border: none; font-size: 20px; color: #94a3b8; cursor: pointer; line-height: 1; }
.rail-close:hover { color: #374151; }
.rail-sub { font-size: 12px; color: #64748b; margin-top: 3px; }
.rail-pills { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.rail-actions { display: flex; gap: 8px; padding: 14px 20px; flex-wrap: wrap; }
.rail-section { padding: 4px 20px 16px; }
.rail-section-label { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94a3b8; margin: 8px 0; display: flex; align-items: center; justify-content: space-between; }
.rail-kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid #f5f7fa; }
.rail-kv:last-child { border-bottom: none; }
.rail-kv .k { color: #64748b; }
.rail-kv .v { font-weight: 600; color: #1a2332; text-align: right; }
.rail-list-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #374151; padding: 7px 0; border-bottom: 1px solid #f5f7fa; }
.rail-list-item:last-child { border-bottom: none; }
.rail-list-item .li-ic { color: #2563eb; }
.ver-item { padding: 8px 0; border-bottom: 1px solid #f5f7fa; }
.ver-item:last-child { border-bottom: none; }
.ver-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #1a2332; }
.ver-meta { font-size: 11px; color: #94a3b8; margin-top: 2px; }

/* ── FOOTER PANELS (activity zone) ── */
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; }
.panel h4 { font-size: 13px; font-weight: 700; color: #1a2332; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel h4 .more { font-size: 11px; color: #2563eb; font-weight: 600; cursor: pointer; }
.panel-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid #f5f7fa; }
.panel-row:last-child { border-bottom: none; }
.panel-row .pk { color: #374151; }
.panel-row .pv { font-weight: 700; color: #1a2332; }
.bar-track { flex: 1; height: 8px; background: #eef2f7; border-radius: 5px; overflow: hidden; margin: 0 10px; }
.bar-track > span { display: block; height: 100%; border-radius: 5px; }

/* ── BUTTONS ── */
.btn-primary { background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .15s; }
.btn-primary:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; color: #fff; border: none; border-radius: 8px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: #fff; color: #374151; border: 1px solid #d1d9e6; border-radius: 8px; padding: 8px 14px; font-size: 12.5px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background .12s; }
.btn-outline:hover { background: #f8fafc; }
.btn-outline.danger { color: #dc2626; border-color: #fca5a5; }
.btn-outline.danger:hover { background: #fef2f2; }

.empty-state { padding: 50px 20px; text-align: center; color: #94a3b8; font-size: 13px; }

/* ── LOGIN GATE (shared restored sign-in) ── */
#loginGate.login-gate{ position:fixed; inset:0; z-index:9999; min-height:100vh; display:grid; place-items:center; background:#061426; }
#loginGate.hidden{ display:none; }
.login-image-page{ position:relative; width:min(100vw, calc(100vh * 1.5)); max-width:100vw; max-height:100vh; aspect-ratio:3 / 2; }
.login-image-background{ display:block; width:100%; height:100%; object-fit:contain; }
.login-image-hitbox{ position:absolute; left:70.85%; top:80.15%; width:24.25%; height:15.85%; border:0; border-radius:20px; background:transparent; cursor:pointer; }
.login-image-hitbox:focus-visible{ outline:3px solid rgba(255,255,255,.92); outline-offset:3px; }
.login-gate-message{ position:absolute; left:6%; right:6%; bottom:4%; margin:0; padding:12px 14px; border-radius:14px; background:rgba(6,20,38,.86); color:#f5f8ff; font-size:.95rem; line-height:1.4; text-align:center; box-shadow:0 10px 24px rgba(0,0,0,.22); }
.login-gate-message.hidden{ display:none; }
body.auth-pending{ visibility:hidden; }
body.auth-pending #loginGate.login-gate{ visibility:visible; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: #0f1f38; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 2000; display: none; align-items: center; gap: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

/* Approved dense type scale for standalone Investment operational pages. */
body.investment-ops-workspace {
  font-size: 12.5px;
}

body.investment-ops-workspace .page-head h1 {
  font-size: 26px;
  line-height: 1.12;
}

body.investment-ops-workspace .page-head p,
body.investment-ops-workspace :is(button, input, select, textarea) {
  font-size: 12.5px;
}

body.investment-ops-workspace .kpi-card .kpi-value {
  font-size: 22px;
  line-height: 1.08;
}

body.investment-ops-workspace table.data {
  font-size: 11.5px;
}

body.investment-ops-workspace table.data thead th {
  font-size: 10px;
}

body.investment-ops-workspace table.data tbody td {
  padding-block: 10px;
  font-size: 11.5px;
  line-height: 1.35;
}

body.investment-ops-workspace :is(.pill, .live-flag, .sample-flag) {
  font-size: 10px;
}

@media (max-width: 820px) {
  body.investment-ops-workspace .page-head h1 {
    font-size: 24px;
  }

  body.investment-ops-workspace .kpi-card .kpi-value {
    font-size: 20px;
  }
}
.toast.show { display: flex; }
