/* LEGALITY OS™ 4.9 — EXECUTIVE ACCESS sign-in + NEXUS command center (build v115)
   The Future Paralegals of America A NJ Non-Profit Corporation */
:root {
  --nx-bg: #0e1626; --nx-bg2: #111a2c; --nx-panel: #142035; --nx-panel2: #16233b;
  --nx-line: rgba(140,170,215,.24); --nx-line2: rgba(140,170,215,.13);
  --nx-text: #e8edf5; --nx-muted: #b2bfd3; --nx-muted2: #97a6bd;
  --nx-cyan: #7cc7e0; --nx-blue: #8aaef0; --nx-violet: #b3a1ee; --nx-green: #6fcfa6; --nx-amber: #e9bf7a; --nx-red: #ef8e9b;
  --nx-glow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.22);
  --serif: "Times New Roman", Times, serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--nx-bg); color: var(--nx-text); font: 16px/1.5 var(--serif); }

/* ===== EXECUTIVE ACCESS ===== */
#gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; overflow: hidden; color: #e9fbff;
  background: radial-gradient(1200px 700px at 15% 10%, rgba(54,241,205,.16), transparent 60%),
              radial-gradient(900px 600px at 90% 90%, rgba(155,140,255,.18), transparent 60%),
              linear-gradient(160deg, #030a14 0%, #06182b 45%, #020812 100%); }
#gate .g-numbers { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#gate .g-aurora { position: absolute; inset: -20%; z-index: 0; pointer-events: none; filter: blur(60px); animation: g-spin 26s linear infinite;
  background: conic-gradient(from 0deg at 50% 50%, rgba(100,219,230,0), rgba(100,219,230,.14), rgba(155,140,255,.12), rgba(54,241,205,.1), rgba(100,219,230,0)); }
#gate .g-aurora::after { content: none; }
.g-card { position: relative; z-index: 2; width: min(492px, calc(100vw - 32px)); padding: 34px 36px 30px; border-radius: 18px;
  background: rgba(6,22,38,.62); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(100,219,230,.45);
  box-shadow: 0 0 0 1px rgba(100,219,230,.15) inset, 0 0 28px rgba(100,219,230,.35), 0 0 80px rgba(54,241,205,.18), 0 30px 80px rgba(0,0,0,.55); }
.g-kicker { margin: 0 0 20px; font-size: 15px; letter-spacing: .02em; color: #f2feff; }
#gate h1 { margin: 0 0 18px; font: 700 34px/1.1 var(--serif); letter-spacing: .04em; color: #f2feff; animation: g-pulse 3.8s ease-in-out infinite;
  text-shadow: 0 0 6px rgba(100,219,230,.9), 0 0 18px rgba(100,219,230,.7), 0 0 42px rgba(54,241,205,.45); }
.g-lead { margin: 0 0 16px; color: #cfeff6; }
#gate label { display: block; margin: 0 0 8px; color: #cfeff6; }
#gate input { width: 100%; height: 42px; padding: 0 14px; margin-bottom: 16px; border-radius: 8px; font: 16px var(--serif); letter-spacing: .12em;
  background: rgba(2,12,22,.75); color: #eafcff; border: 1px solid rgba(100,219,230,.5); box-shadow: 0 0 12px rgba(100,219,230,.18) inset; transition: box-shadow .25s, border-color .25s; }
#gate input:focus { outline: none; border-color: #64dbe6; box-shadow: 0 0 0 3px rgba(100,219,230,.35), 0 0 24px rgba(100,219,230,.55); }
#g-signin { width: 100%; height: 48px; border-radius: 10px; cursor: pointer; font: 17px system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
  background: linear-gradient(180deg, #13707e, #0f5f6c); border: 1px solid rgba(100,219,230,.7);
  box-shadow: 0 0 14px rgba(100,219,230,.55), 0 0 36px rgba(54,241,205,.25); text-shadow: 0 0 8px rgba(100,219,230,.6); transition: transform .15s, box-shadow .25s; }
#g-signin:hover, #g-signin:focus-visible { transform: translateY(-1px); box-shadow: 0 0 22px rgba(100,219,230,.9), 0 0 60px rgba(54,241,205,.45); outline: none; }
#g-signin[disabled] { opacity: .7; cursor: progress; }
.g-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 14px; color: #ffd6dc; }
.g-msg.ok { color: #9ff6ff; }
.g-offline { margin-top: 6px; background: none; border: 0; padding: 0; color: #9ff6ff; text-decoration: underline; font: 14px var(--serif); cursor: pointer; }
.g-build { position: absolute; right: 18px; bottom: 14px; z-index: 3; font: 600 11px/1 var(--mono); letter-spacing: .18em; color: #9ff6ff; padding: 7px 12px;
  border: 1px solid rgba(100,219,230,.5); border-radius: 999px; background: rgba(3,14,26,.6); box-shadow: 0 0 16px rgba(100,219,230,.4); text-shadow: 0 0 8px rgba(100,219,230,.8); }
@keyframes g-spin { to { transform: rotate(360deg); } }
@keyframes g-pulse { 0%,100% { text-shadow: 0 0 6px rgba(100,219,230,.9), 0 0 18px rgba(100,219,230,.65), 0 0 40px rgba(54,241,205,.4); } 50% { text-shadow: 0 0 10px rgba(100,219,230,1), 0 0 30px rgba(100,219,230,.85), 0 0 70px rgba(54,241,205,.6); } }
@media (prefers-reduced-motion: reduce) { #gate .g-aurora, #gate h1 { animation: none; } }

/* ===== NEXUS command center ===== */
.nx-shell { min-height: 100vh; background: var(--nx-bg); background-image: linear-gradient(180deg, rgba(124,199,224,.05), transparent 320px); }
.nx-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 18px; padding: 10px 22px; min-height: 64px; flex-wrap: wrap;
  background: rgba(16,26,44,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--nx-line); }
.nx-brand { display: flex; align-items: center; gap: 10px; }
.nx-brand svg { width: 34px; height: 34px; } .nx-brand polygon { fill: none; stroke: var(--nx-cyan); stroke-width: 3; } .nx-brand text { fill: var(--nx-cyan); font: 700 24px var(--serif); text-anchor: middle; }
.nx-brand b { display: block; letter-spacing: .06em; } .nx-brand span { font-size: 11px; color: var(--nx-muted); }
@media (max-width: 1500px) { .nx-brand span { display: none; } }
.nx-tabs { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; align-items: center; }
.nx-tabs > a, .nx-dd-btn { display: inline-block; padding: 8px 10px; border-radius: 8px; color: var(--nx-muted); text-decoration: none; font: 15px var(--serif); background: none; border: 0; cursor: pointer; }
.nx-tabs > a:hover, .nx-dd-btn:hover, .nx-tabs > a.on { color: var(--nx-text); background: rgba(124,199,224,.12); box-shadow: inset 0 -2px 0 var(--nx-cyan); }
.nx-dd { position: relative; }
.nx-dd-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; padding: 6px; border-radius: 10px; background: var(--nx-panel); border: 1px solid var(--nx-line); box-shadow: var(--nx-glow); z-index: 6; }
.nx-dd:hover .nx-dd-menu, .nx-dd:focus-within .nx-dd-menu, .nx-dd.open .nx-dd-menu { display: block; }
.nx-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.nx-dd-menu a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--nx-text); text-decoration: none; }
.nx-dd-menu a:hover { background: rgba(124,199,224,.12); } .nx-dd-menu small { color: var(--nx-muted2); }
.nx-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--nx-muted); }
.nx-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--nx-cyan); background: var(--nx-cyan); color: #0b1422; font: 14px var(--serif); cursor: pointer; }
.nx-btn.ghost { background: transparent; color: var(--nx-cyan); }
#nx-view { padding: 20px 26px 30px; }
.nx-grid3 { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.6fr) minmax(300px, 1fr); gap: 18px; }
@media (max-width: 1240px) { .nx-grid3 { grid-template-columns: 1fr 1fr; } .nx-wide { grid-column: 1 / -1; order: -1; } }
@media (max-width: 820px) { .nx-grid3 { grid-template-columns: 1fr; } }
.nx-panel { background: linear-gradient(180deg, var(--nx-panel), var(--nx-bg2)); border: 1px solid var(--nx-line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--nx-glow); min-width: 0; }
.nx-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.nx-ph h2 { margin: 0; font: 600 18px var(--serif); } .nx-ph p { margin: 2px 0 0; color: var(--nx-muted2); font-size: 13px; }
.nx-pill { font-size: 12px; color: var(--nx-muted); border: 1px solid var(--nx-line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.nx-ring { display: grid; place-items: center; margin: 4px 0 10px; } .nx-ring svg { width: min(220px, 100%); }
.nx-ring-halo { fill: none; stroke: var(--nx-line2); stroke-width: 1; } .nx-ticks line { stroke: var(--nx-line); stroke-width: 1.2; }
.nx-ring-track { fill: none; stroke: rgba(140,170,215,.14); stroke-width: 12; }
.nx-ring-val { fill: none; stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 110px 110px; filter: drop-shadow(0 0 6px rgba(124,199,224,.6)); transition: stroke-dashoffset .8s; }
.nx-ring-core { fill: rgba(124,199,224,.06); stroke: var(--nx-line2); }
.nx-ring-cap { fill: var(--nx-muted); font: 12px var(--serif); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.nx-ring-num { fill: var(--nx-text); font: 700 36px var(--serif); text-anchor: middle; } .nx-ring-pc { font-size: 18px; fill: var(--nx-muted); }
.nx-ring-sub { fill: var(--nx-cyan); font: 13px var(--serif); text-anchor: middle; }
.nx-health { --nx-a: var(--nx-cyan); --nx-b: var(--nx-violet); }
.nx-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.nx-chips div { border: 1px solid var(--nx-line2); border-radius: 10px; padding: 8px; text-align: center; background: rgba(124,199,224,.04); }
.nx-chips span { display: block; font-size: 12px; color: var(--nx-muted2); } .nx-chips b { font-size: 20px; }
.nx-subhead { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted2); }
.nx-subhead a { color: var(--nx-cyan); text-transform: none; letter-spacing: 0; text-decoration: none; }
.nx-ops, .nx-checks, .nx-log { list-style: none; margin: 0; padding: 0; }
.nx-ops li a { display: grid; grid-template-columns: 1fr 90px 42px; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; color: var(--nx-text); text-decoration: none; }
.nx-ops li a:hover { background: rgba(124,199,224,.08); } .nx-ops small { display: block; color: var(--nx-muted2); font-size: 12px; }
.nx-bar { height: 6px; border-radius: 6px; background: rgba(140,170,215,.14); overflow: hidden; } .nx-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--nx-cyan), var(--nx-violet)); }
.nx-ops b { text-align: right; font-size: 14px; }
.nx-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 10px; font-size: 13px; }
.nx-checks li { display: flex; align-items: center; gap: 7px; color: var(--nx-muted); } .nx-checks i { width: 8px; height: 8px; border-radius: 50%; background: var(--nx-red); box-shadow: 0 0 6px var(--nx-red); flex: none; }
.nx-checks li.ok i { background: var(--nx-green); box-shadow: 0 0 6px var(--nx-green); }
.nx-warn { margin: 10px 0 0; font-size: 13px; color: var(--nx-amber); }
.nx-map { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 6px 0 12px; }
.nx-state { border: 1px solid var(--nx-line); border-radius: 10px; padding: 10px 6px; text-align: center; background: rgba(124,199,224,.05); text-decoration: none; color: var(--nx-text); position: relative; overflow: hidden; }
.nx-state::before { content: ""; position: absolute; inset: auto 0 0 0; height: var(--lvl, 0%); background: linear-gradient(0deg, rgba(124,199,224,.28), rgba(179,161,238,.08)); }
.nx-state b { position: relative; display: block; font-size: 20px; letter-spacing: .06em; } .nx-state span { position: relative; font-size: 12px; color: var(--nx-muted); }
.nx-state small { position: relative; display: block; font-size: 11px; color: var(--nx-muted2); }
.nx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nx-stats div { border: 1px solid var(--nx-line2); border-radius: 10px; padding: 8px 10px; } .nx-stats span { display: block; font-size: 12px; color: var(--nx-muted2); }
.nx-stats b { font-size: 20px; } .nx-stats small { display: block; font-size: 11px; color: var(--nx-muted2); }
.nx-chart { width: 100%; height: auto; } .nx-chart-line { fill: none; stroke-width: 2.5; } .nx-grid { stroke: var(--nx-line2); } .nx-axis { fill: var(--nx-muted2); font: 10px var(--serif); }
.nx-shield { display: grid; justify-items: center; text-align: center; margin: 4px 0 8px; } .nx-shield svg { width: 170px; }
.nx-shield circle { fill: none; stroke: var(--nx-line); } .nx-sh-o2 { stroke-dasharray: 4 6; } .nx-sh-cross line { stroke: var(--nx-cyan); stroke-width: 2; }
.nx-sh-body { fill: rgba(124,199,224,.12); stroke: var(--nx-cyan); stroke-width: 2.5; filter: drop-shadow(0 0 8px rgba(124,199,224,.55)); }
.nx-low .nx-sh-body { stroke: var(--nx-amber); fill: rgba(233,191,122,.12); } .nx-sh-tick { fill: none; stroke: var(--nx-green); stroke-width: 4; stroke-linecap: round; }
.nx-shield span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted2); } .nx-shield strong { font-size: 24px; } .nx-shield small { color: var(--nx-muted); }
.nx-log li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--nx-line2); font-size: 14px; }
.nx-log small { display: block; font-size: 12px; color: var(--nx-muted2); } .nx-log b { font-weight: 600; white-space: nowrap; }
.nx-ok { color: var(--nx-green); } .nx-bad { color: var(--nx-red); } .nx-warnt { color: var(--nx-amber); }
.nx-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 18px; padding: 12px 16px; border: 1px solid var(--nx-line); border-radius: 14px; background: var(--nx-panel); align-items: center; }
@media (max-width: 1100px) { .nx-strip { grid-template-columns: repeat(3, 1fr); } .nx-emblem { display: none; } }
.nx-strip span { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted2); } .nx-strip b { font-size: 16px; }
.nx-emblem svg { width: 46px; display: block; margin: auto; } .nx-emblem polygon { fill: none; stroke: var(--nx-cyan); stroke-width: 2; } .nx-emblem text { fill: var(--nx-cyan); font: 700 20px var(--serif); text-anchor: middle; }
.nx-setup { margin-top: 12px; }

/* ===== LEGALITY OS hubs (overlay) in the 4.9 palette and type ===== */
html #los88, html #los88-rec, html .l8-modal {
  --ink: #0e1626; --slate: #111a2c; --raise: #142035; --raise2: #18263f; --line: rgba(140,170,215,.24); --line2: rgba(140,170,215,.36);
  --text: #e8edf5; --mute: #b2bfd3; --dim: #97a6bd; --accent: #7cc7e0; --accent-ink: #0b1422; --gold: #e9bf7a; --ok: #6fcfa6; --bad: #ef8e9b; --info: #8aaef0;
  --serif: "Times New Roman", Times, serif; --sans: "Times New Roman", Times, serif;
  font-size: 15px;
}

/* ===== v117: menus, office, theme toggle, hubs below the header ===== */
.nx-dd-menu.nx-dd-abbr { min-width: 170px; }
.nx-dd.shut .nx-dd-menu { display: none !important; }
.nx-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--nx-amber); color: #1a1205; font: 700 12px/20px var(--serif); text-align: center; }
.nx-loc select { height: 32px; border-radius: 8px; border: 1px solid var(--nx-line); background: var(--nx-panel); color: var(--nx-text); font: 13px var(--serif); padding: 0 8px; max-width: 190px; }
.nx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nx-theme { width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--nx-line); background: transparent; color: var(--nx-text); cursor: pointer; font-size: 16px; }
html #los88 { top: var(--nx-h, 64px) !important; }
html #los88 .l8-nav { display: none !important; }

/* ===== light mode (sign-in screen stays dark) ===== */
:root[data-theme=light] {
  --nx-bg: #f3f5f9; --nx-bg2: #f7f9fc; --nx-panel: #ffffff; --nx-panel2: #fbfcfe;
  --nx-line: #cfd8e5; --nx-line2: #e1e7f0; --nx-text: #14213a; --nx-muted: #3f4f68; --nx-muted2: #55657d;
  --nx-cyan: #0b6a8f; --nx-blue: #2a56c4; --nx-violet: #5f3bb5; --nx-green: #0e6f52; --nx-amber: #8a5300; --nx-red: #a8213a;
  --nx-glow: 0 1px 2px rgba(20,33,58,.06), 0 6px 18px rgba(20,33,58,.07); color-scheme: light;
}
:root[data-theme=light] .nx-top { background: rgba(255,255,255,.94); }
:root[data-theme=light] .nx-btn { color: #fff; }
:root[data-theme=light] .nx-btn.ghost { color: var(--nx-cyan); }
:root[data-theme=light] .nx-count { color: #fff; }
:root[data-theme=light] #los88, :root[data-theme=light] #los88-rec, :root[data-theme=light] .l8-modal {
  --ink: #f3f5f9; --slate: #ffffff; --raise: #ffffff; --raise2: #f6f8fb; --line: #d3dbe7; --line2: #aebbd0;
  --text: #14213a; --mute: #3f4f68; --dim: #55657d; --accent: #0b6a8f; --accent-ink: #ffffff; --gold: #8a5300; --ok: #0e6f52; --bad: #a8213a; --info: #2a56c4;
}

/* ===== analytics (every hub) ===== */
.lc-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.lc-band .lc-wide { grid-column: span 2; }
@media (max-width: 1280px) { .lc-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .lc-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .lc-band { grid-template-columns: 1fr; } .lc-band .lc-wide { grid-column: auto; } }
.lc-panel { background: linear-gradient(180deg, var(--raise, #142035), var(--slate, #111a2c)); border: 1px solid var(--line, rgba(140,170,215,.24)); border-radius: 14px; padding: 12px 14px; min-width: 0; box-shadow: 0 0 0 1px rgba(124,199,224,.05) inset, 0 8px 24px rgba(0,0,0,.18); }
.lc-panel header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.lc-panel h3 { margin: 0; font: 600 15px "Times New Roman", Times, serif; color: var(--text, #e8edf5); }
.lc-panel small { color: var(--dim, #97a6bd); font-size: 12px; }
.lc-chart { width: 100%; height: auto; display: block; }
.lc-grid { stroke: var(--line, rgba(140,170,215,.2)); stroke-dasharray: 3 5; }
.lc-ax { fill: var(--dim, #97a6bd); font: 10px "Times New Roman", Times, serif; }
.lc-dn { fill: var(--text, #e8edf5); font: 700 26px "Times New Roman", Times, serif; }
.lc-legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute, #b2bfd3); margin-top: 4px; }
.lc-legend i, .lc-donut li i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.lc-bars li { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; color: var(--mute, #b2bfd3); }
.lc-bars b { height: 8px; border-radius: 6px; background: rgba(140,170,215,.14); overflow: hidden; }
.lc-bars b i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7cc7e0, #b3a1ee); box-shadow: 0 0 8px rgba(124,199,224,.6); }
.lc-bars em { font-style: normal; color: var(--text, #e8edf5); font-size: 13px; }
.lc-donut { display: flex; gap: 12px; align-items: center; } .lc-donut svg { width: 120px; flex: none; } .lc-donut svg path { filter: drop-shadow(0 0 4px rgba(124,199,224,.5)); }
.lc-donut ul { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--mute, #b2bfd3); display: grid; gap: 4px; } .lc-donut b { color: var(--text, #e8edf5); }
.lc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 14px; }
@media (max-width: 800px) { .lc-kpis { grid-template-columns: 1fr 1fr; } }
.lc-kpis div { border: 1px solid var(--line, rgba(140,170,215,.24)); border-radius: 12px; padding: 10px 14px; background: var(--raise, #142035); }
.lc-kpis span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim, #97a6bd); }
.lc-kpis b { font-size: 22px; color: var(--text, #e8edf5); } .lc-kpis b.neg { color: var(--bad, #ef8e9b); } .lc-kpis b.pos { color: var(--ok, #6fcfa6); }
.ops-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding-left: 14px; border-left: 4px solid var(--hub, #7cc7e0); }
.l8-check { display: flex; gap: 8px; align-items: center; margin: 6px 0; color: var(--text, #e8edf5); }

/* light mode: LEGALITY OS hubs and FPOA Docs Hub surfaces */
:root[data-theme=light] #los88 .l8-top, :root[data-theme=light] #los88 .l8-assign, :root[data-theme=light] .l8-rec-head { background: #ffffff !important; }
:root[data-theme=light] .l8-input, :root[data-theme=light] .l8-select, :root[data-theme=light] .l8-textarea { color-scheme: light; background: #ffffff !important; color: #14213a !important; border-color: #cfd8e5 !important; }
:root[data-theme=light] .l8-agency-list, :root[data-theme=light] .l8-studio-side, :root[data-theme=light] .l8-rail { background: #f7f9fc !important; }
:root[data-theme=light] .l8-bar .tr, :root[data-theme=light] .lc-bars b { background: #e3e9f1 !important; }
:root[data-theme=light] .l8-chip.fed, :root[data-theme=light] .l8-chip.fpoa { background: #eef5fb !important; border-color: #cfd8e5 !important; color: #0b4f6c !important; }
:root[data-theme=light] .l8-vres.ok, :root[data-theme=light] .h9-ready.ok { background: #e8f6ef !important; border-color: #b9e2cd !important; color: #0e6f52 !important; }
:root[data-theme=light] .l8-toast { background: #14213a !important; color: #fff !important; }
:root[data-theme=light] .h9-head, :root[data-theme=light] .h9-lib, :root[data-theme=light] .h9-insp, :root[data-theme=light] .h9-bar { background: #ffffff !important; }
:root[data-theme=light] .h9-tb, :root[data-theme=light] .h9-tbb, :root[data-theme=light] .h9-tag, :root[data-theme=light] .h9-actions button, :root[data-theme=light] .h9-menu, :root[data-theme=light] .h9-msbox { background: #ffffff !important; color: #14213a !important; border-color: #cfd8e5 !important; }
:root[data-theme=light] .h9-item[aria-current="true"], :root[data-theme=light] .h9-rv.cur { background: #e8f1f8 !important; }
:root[data-theme=light] .h9-canvas, :root[data-theme=light] .l8-studio-paper-wrap { background: #e9edf3 !important; }
:root[data-theme=light] .h9-brand b, :root[data-theme=light] .h9-brand small { color: #14213a !important; }
:root[data-theme=light] .lc-panel { background: #ffffff; box-shadow: 0 1px 2px rgba(20,33,58,.06), 0 6px 18px rgba(20,33,58,.07); }
:root[data-theme=light] .lc-kpis div { background: #ffffff; }

/* ===== Form INTAKE-02 ===== */
.i2-sec { margin-top: 14px; }
.i2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; align-items: end; }
@media (max-width: 900px) { .i2-grid { grid-template-columns: 1fr 1fr; } }
.i2-grid .l8-wide { grid-column: 1 / -1; }
.i2-label { grid-column: 1 / -1; margin-top: 8px; font-weight: 600; color: var(--text, #e8edf5); }
.i2-check { display: flex; gap: 8px; align-items: flex-start; color: var(--text, #e8edf5); font-size: 14px; }
.i2-check input { margin-top: 3px; }
.i2-radio { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--text, #e8edf5); }
.i2-radio legend { font-size: 12px; color: var(--mute, #b2bfd3); margin-bottom: 4px; width: 100%; }


/* ===== v119 ===== */
/* menus open above the hubs (hubs sit just under this header) */
html #los88 { z-index: 2147482990 !important; }
.nx-top { z-index: 2147482995 !important; }
.nx-dd-menu { z-index: 2147482996; }
/* no grid lines anywhere */
.h9-canvas, .l8-studio-paper-wrap, #h9-canvas { background-image: none !important; }
.nx-grid, .lc-grid { display: none; }
/* record: notes and files */
.rx-wrap { max-width: 1100px; }
.rx-note { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin-top: 10px; background: var(--raise2, rgba(124,199,224,.04)); }
.rx-note.pin { border-left-color: var(--gold, #e9bf7a); }
.rx-note header { display: flex; gap: 12px; align-items: center; } .rx-note header span { color: var(--dim); font-size: 12px; flex: 1; }
.rx-note p { margin: 6px 0 0; }
/* uploads */
.up-link { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.up-link > div:first-child { flex: 1; min-width: 220px; } .up-link p { margin: 2px 0 0; }
.up-link code { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--accent); font-size: 13px; }
.up-act { white-space: nowrap; } .up-sel { width: auto !important; max-width: 220px; display: inline-block; height: 30px; padding: 2px 6px; font-size: 12px; }
/* full-screen detail page for operations-hub records */
.l8-modal.ops-full { padding: 0 !important; align-items: stretch !important; justify-content: stretch !important; top: var(--nx-h, 64px) !important; }
.l8-modal.ops-full > div { width: 100% !important; max-width: none !important; height: 100%; max-height: none !important; border-radius: 0 !important; overflow: auto; padding: 26px 34px !important; }
.l8-modal.ops-full .l8-form { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 900px) { .l8-modal.ops-full .l8-form { grid-template-columns: 1fr !important; } }
/* Docs Hub: clickable check boxes on the page */
.h9-chk { display: inline-grid; place-items: center; min-width: 1.15em; padding: 0 1px; margin: 0 2px 0 0; font: inherit; line-height: 1; color: inherit; background: transparent; border: 0; border-radius: 3px; cursor: pointer; }
.h9-chk:hover, .h9-chk:focus-visible { outline: 2px solid #36d6e7; outline-offset: 1px; background: rgba(54,214,231,.12); }
.h9-chk.on { color: #0b4f6c; }
/* agency laws */
.l8-laws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .l8-laws { grid-template-columns: 1fr; } }
.l8-laws .l8-small { grid-column: 1 / -1; }
:root[data-theme=light] .l8-btn.pri, :root[data-theme=light] .h9-actions button.pri { color: #ffffff !important; background: #0b6a8f !important; border-color: #0b6a8f !important; }
:root[data-theme=light] .h9-ready.warn { background: #fff4e0 !important; color: #7a4a00 !important; border-color: #e9c27a !important; }
:root[data-theme=light] .h9-ready { color: #14213a; }
:root[data-theme=light] .l8-btn.danger { color: #a8213a !important; border-color: #d9a3ad !important; }

/* ===== v120: one-row header that fits every screen ===== */
.nx-top { flex-wrap: nowrap !important; gap: 14px; padding: 8px 18px; min-height: 58px; }
.nx-brand { flex: none; }
.nx-tabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap !important; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.nx-tabs::-webkit-scrollbar { display: none; }
.nx-tabs > a, .nx-dd-btn { white-space: nowrap; flex: none; }
.nx-dd { flex: none; position: static; }
.nx-dd-menu { position: fixed !important; top: var(--nx-h, 58px) !important; left: auto !important; }
.nx-user { flex: none; white-space: nowrap; }
#nx-who { display: inline-flex; align-items: center; gap: 8px; }
.nx-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--nx-cyan); color: var(--nx-cyan); font: 700 12px var(--serif); letter-spacing: .04em; }
.nx-who-text { display: none; }
@media (min-width: 1800px) { .nx-who-text { display: inline; } }
@media (max-width: 1600px) { .nx-brand > div { display: none; } .nx-tabs > a, .nx-dd-btn { padding: 8px 8px; font-size: 14.5px; } .nx-loc select { max-width: 150px; } }
@media (max-width: 1300px) { .nx-tabs > a, .nx-dd-btn { padding: 7px 6px; font-size: 14px; } .nx-loc select { max-width: 120px; } }
/* content always fits the window */
#nx-view, #los88 .l8-body, #l8-body { max-width: 100%; overflow-x: hidden; }
.l8-table { max-width: 100%; }
#los88 table { display: table; }
#los88 .l8-panel { min-width: 0; overflow-x: auto; }
.lc-band > *, .nx-grid3 > * { min-width: 0; }
.i2-warn { border-color: var(--bad, #ef8e9b) !important; }
/* analytics panels fill each row with no gaps at any width */
.lc-band { display: flex !important; flex-wrap: wrap; gap: 14px; }
.lc-band > .lc-panel { flex: 1 1 260px; }
.lc-band > .lc-panel.lc-wide { flex: 2 1 540px; }
/* client portal thread in the record */
.pm-thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow: auto; }
.pm { max-width: 78%; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); }
.pm.st { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, transparent); } .pm.cl { background: var(--raise2, rgba(124,199,224,.05)); }
.pm b { display: block; }
