/* Orbit in Titan's look (11 Nov 2026, the user: "enhance the quality of the orbit make it same like titan", navy by default).
   Loaded after styles.css: it only re-dresses what is there. One solid navy behind everything (light is a choice under your
   name, kept per browser as orbit.theme); Titan's two typefaces; the ORBIT wordmark with its slow sheen; a glass top bar;
   cards that come alive under the pointer (a soft light, a lit rim, a small lift), each with one accent from Titan's
   colour-blind-checked set (azure, teal, periwinkle, gold) and a fine accent edge a light passes along now and then; charts in
   the card's accent with a quiet glow; pointing at a row brings it forward and steps the rest back; pop-ups centred over a
   blurred page. Motion is quiet and stops when the device asks for less. */

/* ---------- the two themes ---------- */
:root {
  --bg: #E9EEF4; --panel: #F7F9FC; --panel-2: #EEF2F7; --line: #D7DEE8; --line-2: #E3E8EF;
  --accent: #1F67C2; --accent-soft: rgba(46, 116, 214, .11);
  --grad: linear-gradient(135deg, #2563C4 0%, #0E7BA6 100%);
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --v1: #1369CB; --v2: #00896D; --v3: #A56D0F; --v4: #5E59BB;
  --ti-a: #0E3B7D; --ti-b: #1F67C2; --ti-c: #8CC4FF; --glow: rgba(46, 116, 214, .36);
  --bar: rgba(240, 244, 249, .72); --scrim: rgba(184, 196, 212, .45);
  --card-glow: rgba(30, 111, 217, .10); --card-rim: rgba(30, 111, 217, .55); --card-lift: 0 18px 36px -20px rgba(15, 40, 90, .45);
}
:root[data-theme="dark"] {
  --bg: #060A15; --panel: #0B1120; --panel-2: #10172A; --ink: #EEF0F4; --ink-2: #ADB3BF; --muted: #8E95A4;
  --line: #222B40; --line-2: #172034; --field-line: #3D4A66;
  --accent: #4A94EC; --accent-ink: #ffffff; --accent-soft: rgba(57, 135, 229, .16);
  --grad: linear-gradient(135deg, #3987E5 0%, #2A8FC4 100%);
  --ok: #3DD6A3; --warn: #F2B84B; --bad: #FF6B78; --info: #8FA8FF;
  --ok-bg: #0E2A24; --warn-bg: #2B2210; --bad-bg: #2E1219; --info-bg: #161E3D;
  --v1: #3C8DEA; --v2: #20A888; --v3: #BA882E; --v4: #7E7ED5;
  --ti-a: #8FB0E0; --ti-b: #E6F0FF; --ti-c: #FFFFFF; --glow: rgba(57, 135, 229, .45);
  --bar: rgba(6, 10, 21, .84); --scrim: rgba(2, 4, 10, .62);
  --card-glow: rgba(70, 150, 255, .11); --card-rim: rgba(120, 185, 255, .6); --card-lift: 0 20px 40px -20px rgba(0, 0, 0, .7);
  --shadow-1: inset 0 1px 0 rgba(150, 190, 255, .05); --shadow-2: 0 8px 24px rgb(0 0 0 / .55); --shadow-3: 0 24px 64px rgb(0 0 0 / .7);
  --mm-bg: #070C18; --mm-disc: #10182A;
  color-scheme: dark;
}
:root[data-theme="dark"] #view-map .graph-box:has(> #graph:not([hidden])) { --mm-bg: #070C18; --mm-disc: #10182A; }

body { font-family: var(--text); background: var(--bg); }
h1, h2, h3, h4, .page-head h2, .auth-title, .card-head h3, .modal-body h3 { font-family: var(--display); font-weight: 600; letter-spacing: .005em; }
:is(.dv-big b, .wf-big b, .dv-tile b, .wf-kpi b, .dv-fig b, .wf-trend-say > b, .dv-donut-mid b, .mg-kpi b) { font-family: var(--display); letter-spacing: -.01em; }

/* ---------- the top bar: glass, and the ORBIT wordmark with Titan's slow sheen ---------- */
.top { position: sticky; top: 0; background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line); }
.brand .title { font: 700 20px/1 var(--display); letter-spacing: .26em; padding-right: .1em; text-transform: uppercase; color: var(--ti-b);
  background: linear-gradient(105deg, var(--ti-a) 0%, var(--ti-b) 38%, var(--ti-c) 50%, var(--ti-b) 62%, var(--ti-a) 100%);
  background-size: 240% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 9px var(--glow)); animation: lk-sheen 8s ease-in-out infinite; }
@keyframes lk-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
.tabs button.on { box-shadow: inset 0 -2px 0 var(--accent), 0 6px 14px -10px var(--glow); }
.tabs button.on, .tabs button:hover { color: var(--ink); }

/* ---------- buttons and fields ---------- */
.btn.primary, .btn.good { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -8px var(--glow); }
.btn.primary:hover, .btn.good:hover { background: var(--grad); filter: brightness(1.08); }
:root[data-theme="dark"] :is(input, select, textarea) { background: #070C18; border-color: var(--field-line); }
:root[data-theme="dark"] .seg { background: #070C18; }
:root[data-theme="dark"] .seg button.on { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--field-line); }

/* ---------- cards that come alive (Titan: "the cards also make them a live") ---------- */
.lk { position: relative; isolation: isolate; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; }
.lk::before { /* the rim lights where the pointer is */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--card-rim), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s; }
.lk::after { /* a soft light under the pointer */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, -20%), var(--card-glow), transparent 65%); opacity: 0; transition: opacity .4s; }
.lk:hover::before, .lk:hover::after { opacity: 1; }
.lk:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--acc, var(--accent)) 50%, transparent); box-shadow: var(--card-lift); }
/* each card one accent, in turn; its rim, glow and charts follow it */
.lk { --acc: var(--v1); --card-rim: color-mix(in srgb, var(--acc) 75%, transparent); --card-glow: color-mix(in srgb, var(--acc) 13%, transparent); }
.lk.a2 { --acc: var(--v2); } .lk.a3 { --acc: var(--v4); } .lk.a4 { --acc: var(--v3); }
/* the accent edge, a corner of its colour, and the light that passes along the edge (not over the heroes' own washes) */
.lk.edge { background-image:
    linear-gradient(90deg, transparent, color-mix(in srgb, #fff 82%, var(--acc)) 50%, transparent),
    linear-gradient(90deg, transparent 3%, color-mix(in srgb, var(--acc) 80%, transparent) 28%, color-mix(in srgb, var(--acc) 80%, transparent) 72%, transparent 97%),
    radial-gradient(460px 170px at 100% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 70%);
  background-size: 150px 2px, 100% 2px, 100% 100%; background-position: -170px 0, 0 0, 0 0; background-repeat: no-repeat; }
.lk.edge > .card-head h3::before, .lk.edge > h3:first-child::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin: 0 9px 1px 0;
  vertical-align: middle; background: var(--acc); box-shadow: 0 0 8px color-mix(in srgb, var(--acc) 70%, transparent); }
:root[data-theme="dark"] .card { box-shadow: inset 0 1px 0 rgba(150, 190, 255, .05); }
@media (prefers-reduced-motion: no-preference) {
  .lk.edge { animation: lk-edge 11s cubic-bezier(.45, 0, .25, 1) infinite; animation-delay: calc(2.5s + var(--n, 0) * 1.3s); }
}
@keyframes lk-edge { 0%, 84% { background-position: -170px 0, 0 0, 0 0; } 100% { background-position: calc(100% + 170px) 0, 0 0, 0 0; } }

/* ---------- charts in the card's accent, with a quiet glow; what you point at comes forward ---------- */
.lk :is(.dv-row, .wf-row) .dv-bar > i, .lk .dv-wait .dv-bar > i { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, transparent), var(--acc));
  box-shadow: 0 0 10px -3px color-mix(in srgb, var(--acc) 60%, transparent); }
.lk .wf-c > i { background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 85%, #fff), color-mix(in srgb, var(--acc) 70%, transparent));
  box-shadow: 0 -2px 12px -4px color-mix(in srgb, var(--acc) 60%, transparent); }
.lk .wf-line, .lk .dv-line { stroke: var(--acc); filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--acc) 40%, transparent)); }
.lk :is(.wf-wash-top, .dv-wash-top) { stop-color: var(--acc); } .lk :is(.wf-wash-end, .dv-wash-end) { stop-color: var(--acc); }
.lk .wf-paybar { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 55%, transparent), var(--acc)) !important; }
.lk .dv-donut svg, .lk .wf-donut svg { filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--acc) 22%, transparent)); }
:is(.dv-row, .wf-row, .wf-co) { transition: opacity .2s; }
:is(.wf-co-list, .wf-deps, .wf-sites, .dv-wait-list):hover :is(.wf-co, .wf-row, .dv-row):not(:hover) { opacity: .5; }
.wf-cols:hover .wf-c:not(:hover) > i { opacity: .45; }
.wf-cols .wf-c > i { transition: opacity .2s; }

/* the figures: Titan's tiles, an accent edge on each */
.dv-tile.lk::before, .wf-kpi.lk::before { display: block; }
.wf-kpi.lk { border-color: color-mix(in srgb, var(--acc) 22%, var(--line)); }

/* ---------- pop-ups: centred over a blurred page ---------- */
dialog { border-color: var(--line); box-shadow: var(--shadow-3); }
dialog::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:root[data-theme="dark"] dialog { background: var(--panel); }
.dv-tip { font-family: var(--text); }
:root[data-theme="dark"] .dv-tip { background: rgba(8, 14, 28, .96); color: #E6EDF7; border: 1px solid rgba(255, 255, 255, .14); }

/* ---------- the theme switch under your name ---------- */
.me-theme { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s2) 0 var(--s3); font-size: 13px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { .brand .title, .lk.edge { animation: none; } .lk:hover { transform: none; } }
@media print { .brand .title { -webkit-text-fill-color: currentColor; background: none; filter: none; } }

/* ---------- Meet the agents (public/film.js): Titan's video, dark always, the whole screen ---------- */
.film-open { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.film-open svg { width: 14px; height: 14px; fill: currentColor; }
.agents-head { align-items: flex-start; margin-bottom: var(--s4); } .agents-head .lead { margin: 0; }
dialog#film { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #070C18; color: #EAF1FB; overflow: hidden; }
dialog#film::backdrop { background: #070C18; }
dialog#film[open] { display: block; animation: fvin .45s ease-out; }
@keyframes fvin { from { opacity: 0; } }
.fv { position: relative; width: 100%; height: 100%; overflow: hidden; font-family: var(--text); }
#fm-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.fv-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: linear-gradient(180deg, rgba(5, 9, 18, .78), transparent); transition: opacity .35s; }
.fv-close { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .07); color: #EAF1FB; font-size: 13px; cursor: pointer; min-height: 0; } .fv-close:hover { background: rgba(255, 255, 255, .16); }
.fv-now { display: grid; line-height: 1.2; min-width: 0; } .fv-now small { font-size: 11.5px; color: #9FB4D3; } .fv-now b { font: 600 16px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fv-cap { position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); width: min(860px, calc(100% - 40px)); margin: 0; text-align: center; font: 500 clamp(17px, 1.75vw, 24px)/1.34 var(--display); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); pointer-events: none; transition: bottom .35s; }
.fv-cap.in { animation: fvcap .5s ease-out; } @keyframes fvcap { from { opacity: 0; transform: translateX(-50%) translateY(8px); } }
.fv-card { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.97); display: grid; justify-items: center; gap: 6px; padding: 20px 40px; border-radius: 18px; background: rgba(8, 14, 28, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(120, 170, 255, .38); box-shadow: 0 0 60px rgba(50, 120, 255, .28); opacity: 0; transition: opacity .45s, transform .45s; pointer-events: none; text-align: center; }
.fv-card.on { opacity: 1; transform: translate(-50%, -50%); } .fv-card small { font-size: 13px; letter-spacing: .02em; color: #9FC4FF; } .fv-card b { font: 700 clamp(24px, 3.2vw, 44px)/1.15 var(--display); }
.fv-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(5, 9, 18, .92), rgba(5, 9, 18, .6) 60%, transparent); transition: opacity .35s, transform .35s; }
.fv-ctl { display: flex; align-items: center; gap: 10px; }
.fv-b { flex: none; display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; } .fv-b:hover { background: rgba(255, 255, 255, .18); } .fv-b svg { width: 17px; height: 17px; fill: currentColor; }
#fm-play { width: 46px; height: 46px; background: #2E74D6; border-color: #2E74D6; } #fm-voice.off { opacity: .45; }
#fm-time { flex: none; min-width: 86px; font-size: 13px; color: #C7D6EC; font-variant-numeric: tabular-nums; }
#fm-bar { position: relative; flex: 1 1 auto; height: 24px; cursor: pointer; touch-action: none; min-width: 80px; }
#fm-bar i { position: absolute; top: 9px; height: 6px; border-radius: 1px; } #fm-bar i.a { background: rgba(255, 255, 255, .2); } #fm-bar i.b { background: rgba(255, 255, 255, .32); }
#fm-fill { position: absolute; left: 0; top: 9px; height: 6px; border-radius: 1px; background: linear-gradient(90deg, #2E74D6, #3CCBE8); pointer-events: none; }
#fm-head { position: absolute; top: 4px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #6FB6FF; pointer-events: none; }
.fv-scenes { display: flex; gap: 5px; margin-top: 7px; overflow-x: auto; scrollbar-width: none; } .fv-scenes::-webkit-scrollbar { display: none; }
.fv-scenes button { flex: none; min-height: 0; padding: 3px 11px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: transparent; color: #BFD0E8; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.fv-scenes button:hover { border-color: #6FB6FF; } .fv-scenes button.on { background: #2E74D6; border-color: #2E74D6; color: #fff; }
.fv-ai { margin-left: auto; font-size: 12px; color: #9FB4D3; }
.fv-tip { position: fixed; z-index: 3; display: grid; gap: 1px; max-width: 280px; padding: 7px 11px; border-radius: 9px; background: rgba(8, 14, 28, .95); border: 1px solid rgba(255, 255, 255, .16); font-size: 12.5px; line-height: 1.32; pointer-events: none; color: #EAF1FB; }
.fv-tip[hidden] { display: none; } .fv-tip b { font: 700 14px var(--display); } .fv-tip span { color: #D5E0F0; }
.fv.idle .fv-foot, .fv.idle .fv-top { opacity: 0; } .fv.idle .fv-foot { transform: translateY(14px); } .fv.idle .fv-cap { bottom: 34px; } .fv.idle #fm-c { cursor: none; }
@media (max-width: 720px) {
  .fv-cap { bottom: 118px; font-size: 15.5px; } .fv-top { padding: 8px 10px; } .fv-foot { padding: 20px 10px 8px; } .fv-card { padding: 14px 22px; } #fm-time { min-width: 0; font-size: 11.5px; } #fm-full { display: none; }
  .fv-b { width: 34px; height: 34px; } #fm-play { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { dialog#film[open], .fv-cap.in { animation: none; } }

/* ---------- the Step guide (public/guide.js) ---------- */
.me-links { margin: 0 0 var(--s3); font-size: 13px; }
.gd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.gd-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-roles button { min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--panel); color: var(--ink-2); font-size: 13px; cursor: pointer; }
.gd-roles button:hover { border-color: var(--field-line); color: var(--ink); }
.gd-roles button.on { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
#gdQ { flex: 1 1 260px; max-width: 420px; }
#view-guide .page { display: flex; flex-direction: column; gap: var(--s4); }
#view-guide .page > .lead { margin: 0; }
.gd-yours .card-head h3 { font-size: 17px; }
.gd-your-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.gd-your { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-decoration: none; background: var(--panel-2); }
.gd-your:hover { border-color: var(--accent); }
.gd-your b { font-family: var(--display); font-weight: 600; } .gd-your span { grid-column: 1; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gd-your em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font: 700 24px var(--display); color: var(--accent); }
.gd-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.gd-steps::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--line), var(--line-2)); }
.gd-stage { margin: var(--s4) 0 var(--s2) 44px; font: 600 12px var(--text); letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.gd-stage:first-child { margin-top: 0; }
.gd-step { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s3); padding: 8px 0; transition: opacity .2s; }
.gd-step.other { opacity: .5; } .gd-step.other:hover { opacity: 1; }
.gd-n { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.gd-step.mine .gd-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.gd-step.gate .gd-n { border-color: var(--ok); }
.gd-act { margin: 4px 0 6px; font-weight: 600; color: var(--ink); }
.gd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); font-size: 12.5px; }
.gd-agent { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); color: var(--ink); font-weight: 600; }
.gd-agent i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.gd-agent small { font-weight: 400; color: var(--ink-2); }
.gd-sla { padding: 1px 8px; border-radius: var(--r-pill); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.gd-ppl { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.gd-ppl li.me { color: var(--ink); } .gd-ppl li.me b { color: var(--accent); }
.gd-ppl b { font-weight: 600; color: var(--ink); }
.gd-ok { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--ok); }
.gd-ok i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); font-style: normal; font-size: 11px; }
.gd-reqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s3); }
.gd-reqs li { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); }
.gd-reqs li.mine { border-color: var(--accent); }
.gd-reqs b { font-family: var(--display); font-weight: 600; }
.gd-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0; font-size: 12.5px; }
.gd-path span { padding: 1px 9px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-weight: 600; } .gd-path i { font-style: normal; color: var(--muted); }
.gd-reqs p { margin: 0; font-size: 13px; color: var(--ink-2); }

/* ======================================================================================================================
   Easy on the eyes (12 Nov 2026, the user: "enhance the quality of how the look and easy for eyes to see ... even if you feel
   that you want to change the structure it's okay"). The 13 tabs that ran off the top bar are a side menu in groups, as
   Titan's (narrow to icons, or a drawer on a phone); cards stand a step further from the page; text is larger and lighter
   grey where it was small and dim; reading pages sit in the middle at one width; the accent edge and the pointer light are
   for the Dashboard, the Agents and the Step guide only, so lists stay calm.
   ====================================================================================================================== */
:root { --side-w: 240px; --top-h: 60px; --side-bg: #F3F6FA; --hover-bg: rgba(31, 103, 194, .07); }
:root[data-theme="dark"] {
  --panel: #0D1427; --panel-2: #121A2F; --line: #252F48; --line-2: #1A2339; --field-line: #3E4B68;
  --ink-2: #C3C9D3; --muted: #9AA2B2; --side-bg: #080D1A; --hover-bg: rgba(140, 180, 255, .07);
}
html.side-narrow { --side-w: 76px; }
body { font-size: 15px; line-height: 1.55; }

/* the top bar: the menu button (phone), the wordmark, then status and you */
.top { height: var(--top-h); min-height: var(--top-h); padding: 0 20px; gap: 14px; }
.top .brand { margin-right: auto; }
.side-btn { display: none; flex: none; place-items: center; width: 40px; height: 40px; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
.side-btn svg, .side-fold svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* the side menu */
.side { position: fixed; z-index: 18; top: var(--top-h); left: 0; bottom: 0; width: var(--side-w); display: flex; flex-direction: column; padding: 12px 12px 10px;
  background: var(--side-bg); border-right: 1px solid var(--line); overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; transition: width .25s cubic-bezier(.2, .8, .2, 1); }
.side .tabs { display: flex; flex-direction: column; gap: 2px; align-self: auto; overflow: visible; min-width: 0; }
.side-h { margin: 16px 12px 6px; font: 600 11px/1.2 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.side-h:first-child { margin-top: 4px; }
.side .tabs button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; box-shadow: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-align: left; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.side .tabs button:hover { background: var(--hover-bg); color: var(--ink); }
.side .tabs button.on { background: var(--accent-soft); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.side .tabs button:focus-visible { outline-offset: -2px; }
.tab-ico { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.side .tabs button.on .tab-ico { color: var(--accent); opacity: 1; }
.tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side .tabs .badge { margin-left: auto; }
.side-fold { flex: none; display: grid; place-items: center; align-self: flex-end; width: 36px; height: 36px; min-height: 0; margin-top: 12px; padding: 0; border: 1px solid var(--line);
  border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.side-fold:hover { color: var(--ink); border-color: var(--field-line); }
html.side-narrow .side-fold svg { transform: scaleX(-1); }
html.side-narrow .side { padding-inline: 10px; }
html.side-narrow .side-h { height: 1px; margin: 12px 8px; overflow: hidden; color: transparent; background: var(--line); }
html.side-narrow .side-h:first-child { display: none; }
html.side-narrow .side .tabs button { justify-content: center; padding: 0; }
html.side-narrow .tab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.side-narrow .side .tabs .badge { position: absolute; top: 4px; right: 6px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
main { margin-left: var(--side-w); transition: margin-left .25s cubic-bezier(.2, .8, .2, 1); }
.side:has(> .tabs[hidden]) { display: none; }
body:has(.side > .tabs[hidden]) main { margin-left: 0; }
.side-scrim { display: none; }
@media (max-width: 900px) { /* a phone or small tablet: the menu is a drawer */
  .side-btn { display: grid; }
  .side { width: min(280px, 84vw); transform: translateX(-105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-3); }
  html.side-open .side { transform: none; }
  html.side-open .side-scrim { display: block; position: fixed; inset: var(--top-h) 0 0; z-index: 17; background: var(--scrim); }
  main { margin-left: 0; }
  .side-fold { display: none; }
  html.side-narrow .side .tabs button { justify-content: flex-start; padding: 0 12px; } html.side-narrow .tab-label { position: static; width: auto; height: auto; clip: auto; }
  html.side-narrow .side-h { height: auto; margin: 16px 12px 6px; color: var(--muted); background: none; } html.side-narrow .side-h:first-child { display: block; }
  .top { padding: 0 12px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .side, main { transition: none; } }

/* every page uses the full width (16 Nov: "remove the empty spaces left and right") */
:is(#view-approvals, #view-hrdata, #view-inbox, #view-empreq, #view-cases, #view-companies, #view-comms, #view-users, #view-dashboard, #view-agents, #view-guide) .page > * { max-width: none; margin-inline: 0; }

/* larger, lighter small text */
.lead { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card-head > .muted, .dv-grid .card-head > .muted, .head-sum { font-size: 13.5px; }
.dv-table, .wf-heat, .ulog-table { font-size: 13.5px; }
.dv-table thead th { font-size: 12.5px; }
.tag, .st { font-size: 12.5px; }
.card { border-color: var(--line); }
:root[data-theme="dark"] .card { background: var(--panel); }
:root[data-theme="dark"] .badge { background: rgba(242, 184, 75, .18); color: #F6C66A; }

/* the activity log on Users: its own scroll box, its header kept in view */
.ulog-wrap { max-height: 560px; overflow: auto; border: 1px solid var(--line-2); border-radius: var(--r-md); }
.ulog-table thead th { position: sticky; top: 0; z-index: 1; background: var(--panel); }
/* a button that reads as a link: no box behind it */
button.link { background: none; border: 0; box-shadow: none; padding: 0; min-height: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link:hover { color: var(--ink); }
@media (max-width: 900px) { /* the top bar stays one line on a phone: menu, ORBIT, status, you */
  .top { flex-wrap: nowrap; height: var(--top-h); min-height: var(--top-h); }
  .top .brand { min-width: 0; flex: 0 1 auto; }
  .top .brand .title { font-size: 17px; letter-spacing: .2em; }
  .top .sys-sum { max-width: 120px; } .top .me-sum { max-width: 96px; }
}
/* the header's old two-row layout (the tabs were in it until 12 Nov 2026) no longer applies at any width */
@media (max-width: 1400px) {
  .top { display: flex; padding: 0 20px; min-height: var(--top-h); }
  .sys, .me { grid-area: auto; }
  .side .tabs { grid-column: auto; margin: 0; padding: 0; overflow: visible; }
  .side .tabs button { min-height: 42px; }
}
@media (max-width: 900px) { .top { padding: 0 12px; } }
/* the management figures and the hero's figures fit the space the menu leaves, never cut */
#wf { container-type: inline-size; }
.mg-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@container (min-width: 960px) { .mg-row { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } .mg-kpi b { font-size: 26px; } }
@container (max-width: 520px) { .mg-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.wf-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
@media (max-width: 640px) { .wf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
/* the companies side by side: columns as wide as their figures (scrolls sideways when the page is narrower) */
.wf-ctable { table-layout: auto; min-width: 1060px; }
.wf-ctable :is(th, td) { padding-left: 14px; }

/* ---------- See it in Orbit: the video's button, and the Orbit tab that follows it (public/filmcase.js, 12 Nov) ---------- */
.fc-open { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 0; margin-left: 8px; padding: 6px 13px; border: 1px solid #2E74D6; border-radius: 999px; background: #2E74D6; color: #fff; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fc-open:hover { background: #3B82E6; } .fc-open svg { width: 14px; height: 14px; fill: currentColor; }
@media (max-width: 600px) { .fv-top .fv-ai { display: none; } .fc-open { padding: 5px 10px; font-size: 12.5px; } }
.fc-bar { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; width: min(820px, calc(100vw - 32px));
  padding: 10px 12px 10px 16px; border: 1px solid rgba(111, 182, 255, .45); border-radius: 14px; background: rgba(7, 12, 24, .94); color: #EAF1FB; box-shadow: 0 18px 50px rgb(0 0 0 / .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--text); }
.fc-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #2FD39A; box-shadow: 0 0 0 0 rgba(47, 211, 154, .6); animation: fcpulse 1.8s infinite; }
@keyframes fcpulse { 70% { box-shadow: 0 0 0 9px rgba(47, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 211, 154, 0); } }
.fc-txt { display: grid; gap: 1px; min-width: 0; flex: 1; line-height: 1.35; } .fc-txt small { font-size: 12px; color: #9FB4D3; } .fc-txt b { font: 500 14.5px var(--display, inherit); }
#fcNote:empty { display: none; } #fcNote { font-size: 13px; color: #F2C46B; } #fcNote a { color: #9FC4FF; margin-left: 4px; }
.fc-bar .btn { flex: none; color: #EAF1FB; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
html.fc-following #view-cases .page, html.fc-following #view-empreq .page, html.fc-following #view-guide .page, html.fc-following #view-agents .page { padding-bottom: 130px; }
.ps-step.fc-lit, .gd-step.fc-lit, .gd-proc.fc-lit, .agent-card.fc-lit { position: relative; border-radius: 12px; outline: 2px solid #4C9BFF; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(76, 155, 255, .16); transition: box-shadow .4s, outline-color .4s; }
@media (prefers-reduced-motion: reduce) { .fc-dot { animation: none; } .fc-lit { transition: none; } }
/* the step's real document beside the case, and how it was filled (public/filmcase.js fcDock) */
.fc-dock { position: fixed; z-index: 55; top: 72px; right: 16px; bottom: 104px; width: min(520px, 40vw); display: flex; flex-direction: column; border: 1px solid rgba(111, 182, 255, .4); border-radius: 14px;
  background: #070C18; color: #EAF1FB; box-shadow: 0 18px 50px rgb(0 0 0 / .45); overflow: hidden; font-family: var(--text); animation: fcdin .35s ease-out; }
@keyframes fcdin { from { opacity: 0; transform: translateX(16px); } }
.fc-dock.fc-said { animation: fcsaid 1.4s ease-out; } /* a document the narrator has just named */
@keyframes fcsaid { 0% { box-shadow: 0 0 0 0 rgba(111, 182, 255, .75), 0 18px 50px rgb(0 0 0 / .45); } 100% { box-shadow: 0 0 0 14px rgba(111, 182, 255, 0), 0 18px 50px rgb(0 0 0 / .45); } }
@media (prefers-reduced-motion: reduce) { .fc-dock.fc-said { animation: none; outline: 2px solid #6FB6FF; } }
html.fc-docked #view-cases .page, html.fc-docked #view-guide .page, html.fc-docked #view-empreq .page { padding-right: calc(min(520px, 40vw) + 28px); }
.fcd-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fcd-head > div { display: grid; min-width: 0; flex: 1; line-height: 1.3; } .fcd-head small { font-size: 12px; color: #9FB4D3; } .fcd-head b { font: 600 15px var(--display, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcd-fold { flex: none; min-height: 0; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: transparent; color: #EAF1FB; cursor: pointer; transition: transform .25s; }
.fc-dock.folded { bottom: auto; } .fc-dock.folded > :not(.fcd-head) { display: none; } .fc-dock.folded .fcd-fold { transform: rotate(-90deg); }
.fcd-chips { display: flex; gap: 5px; padding: 8px 14px 0; overflow-x: auto; scrollbar-width: none; }
.fcd-chips button { flex: none; min-height: 0; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: transparent; color: #BFD0E8; font-size: 12px; cursor: pointer; white-space: nowrap; }
.fcd-chips button.on { background: #2E74D6; border-color: #2E74D6; color: #fff; }
.fcd-how { flex: 0 1 auto; max-height: 46%; overflow-y: auto; padding: 8px 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); overscroll-behavior: contain; }
.fcd-made, .fcd-note { margin: 2px 0 6px; font-size: 12.5px; color: #9FB4D3; }
.fcd-g { margin: 8px 0 0; } .fcd-g h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font: 600 13px var(--text); color: #D5E0F0; }
.fcd-g h4 i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 11px; background: rgba(76, 155, 255, .25); color: #9FC4FF; }
.fcd-g.fcd-person h4 i, .fcd-g.fcd-manager h4 i { background: rgba(47, 211, 154, .2); color: #6FE3B5; } .fcd-g.fcd-hr h4 i, .fcd-g.fcd-team h4 i { background: rgba(242, 196, 107, .2); color: #F2C46B; }
.fcd-g h4 span { margin-left: auto; font-weight: 400; color: #9FB4D3; }
.fcd-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fcd-g li, .fcd-signed, .fcd-body { opacity: 0; animation: fcdfill .45s ease-out forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes fcdfill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fcd-g li { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 10px; padding: 3px 8px; border-radius: 6px; font-size: 12.5px; line-height: 1.35; }
.fcd-g li:nth-child(odd) { background: rgba(255, 255, 255, .035); } .fcd-g li span { color: #9FB4D3; } .fcd-g li b { font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.fcd-g li b { background: linear-gradient(90deg, rgba(111, 182, 255, .35), transparent) no-repeat 0 100% / 0 2px; animation: fcdline .9s ease-out forwards; animation-delay: inherit; }
@keyframes fcdline { to { background-size: 100% 2px; } }
.fcd-g li.more { display: block; color: #9FB4D3; font-style: italic; background: none; }
.fcd-signed { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 7px 10px; border-radius: 8px; background: rgba(47, 211, 154, .12); color: #6FE3B5; font-size: 13px; }
.fcd-body { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: #C9D6EA; }
.fcd-doc { flex: 1; min-height: 180px; width: 100%; border: 0; background: #fff; }
.fcd-foot { display: flex; justify-content: flex-end; padding: 8px 12px; } .fcd-foot .btn { color: #EAF1FB; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
@media (max-width: 900px) {
  .fc-dock { top: auto; left: 8px; right: 8px; bottom: 150px; width: auto; height: 50vh; height: 50dvh; }
  .fc-dock.folded { height: auto; } html.fc-docked #view-cases .page, html.fc-docked #view-guide .page { padding-right: 0; padding-bottom: 72vh; }
}
@media (prefers-reduced-motion: reduce) { .fc-dock, .fcd-g li, .fcd-signed, .fcd-body, .fcd-g li b { animation: none; opacity: 1; background-size: 100% 2px; } }
html.fc-docked .case-cols { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "prog" "side" "rec"; } /* one column beside the document */
html.fc-docked .case-cols.has-now { grid-template-areas: "now" "prog" "side" "rec"; }
.fcd-head, .fcd-chips, .fcd-foot { flex: none; } /* the document takes what is left, never the chips */
