/* Fr8Max workspace — operations ledger UI.
   The signed-in desk is a dark green card surface.
   The night-yard sign-in scene keeps its own colours and is not part of that desk. */

:root {
  --obsidian: #080808;
  --chrome: #CDCBCA;
  --crimson: #D41514;
  --sidebar-width: 256px;
  --topbar-height: 60px;
  --font-sans: Barlow, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", Barlow, sans-serif;
  --line: rgba(205, 203, 202, 0.10);
  --line-strong: rgba(205, 203, 202, 0.20);
  --surface: rgba(205, 203, 202, 0.035);
  --surface-2: rgba(205, 203, 202, 0.065);
  --text: var(--chrome);
  --text-2: rgba(205, 203, 202, 0.66);
  --text-3: rgba(205, 203, 202, 0.42);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
}

/* ---------- Ground ---------- */
html, body { min-height: 100dvh; margin: 0; }
html { background: var(--obsidian); color-scheme: dark; scrollbar-color: var(--line-strong) var(--obsidian); }
body { background: var(--obsidian); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { display: none; }
html:has(.fr8-sign-in),
body:has(.fr8-sign-in) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}
::selection { background: var(--crimson); color: var(--chrome); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
a, button, summary, [role="button"] { -webkit-tap-highlight-color: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; }
body:has(.load-editor-scrim) { overflow: hidden; }

/* ---------- Login ---------- */
/* Own class so ConMax .connection-screen { justify-items: start } cannot pin this to the left.
   Viewport-locked USA/Canada brokerage scene with a lightly frosted spatial glass sign-in.
   This sign-in stage is exempt from the three-colour marketing lock. */
#app:has(> .fr8-sign-in) {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--obsidian);
}
.fr8-sign-in {
  position: fixed;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  overscroll-behavior: none;
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0c1a14;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  perspective: 1600px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}
.fr8-sign-in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0c1a14 url("login-map.svg?v=16") center / contain no-repeat;
}
.fr8-sign-in:has(.fr8-sign-map)::before { background-image: none; background-color: transparent; }
.fr8-sign-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0c1a14;
}
.fr8-sign-map-pan {
  position: absolute;
  inset: 0;
  transform: none;
}
.fr8-sign-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  pointer-events: none;
}
.fr8-sign-truck { pointer-events: none; }
.fr8-sign-in > .login-card,
.fr8-sign-in > h1 { position: relative; z-index: 2; }
.fr8-sign-in > .login-card {
  width: min(420px, 100%);
  margin-inline: auto;
  padding: 36px 32px;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0%, rgba(16, 22, 32, 0.78) 38%, rgba(10, 14, 22, 0.86) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 28px 70px rgba(0, 0, 0, 0.32),
    0 0 48px rgba(255, 193, 74, 0.08);
  backdrop-filter: blur(8px) saturate(1.12);
  -webkit-backdrop-filter: blur(8px) saturate(1.12);
  transform: translateZ(72px);
  color: #F2F0EC;
}
.fr8-sign-in > .login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 36%);
}
.fr8-sign-in > .login-card > * {
  position: relative;
  z-index: 1;
}
.fr8-sign-in > .login-card .brand,
.fr8-sign-in > .login-card h1 {
  color: #F2F0EC;
}
.fr8-sign-in > .login-card p {
  color: rgba(242, 240, 236, 0.88);
}
.fr8-sign-in > .login-card .field {
  color: rgba(205, 203, 202, 0.78);
}
.login-card {
  width: min(400px, 100%);
  margin-inline: auto;
  padding: 34px;
  box-sizing: border-box;
  background: var(--obsidian);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
}
.workspace-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 26px; }
.brand { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.brand span { display: inline; margin: 0; padding: 0; border: 0; color: var(--crimson); font: inherit; letter-spacing: inherit; vertical-align: baseline; }
.powered-by { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 9px; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.powered-by .via-mark { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; color: var(--text-2); }
.boot-kicker { margin: 0 0 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); }
.fr8-sign-in h1 { max-width: none; margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 2.8rem); font-weight: 600; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; color: var(--text); }
.fr8-sign-in p { max-width: 38ch; margin: 0 0 24px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.fr8-sign-in .login-form { display: grid; gap: 14px; width: 100%; margin: 0; }
.login-form { display: grid; gap: 14px; width: 100%; margin: 0; }
.login-form .field { display: grid; gap: 6px; margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.login-form input { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; background: rgba(8, 8, 8, 0.6); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.login-form input:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(212, 21, 20, 0.14); }
.fr8-sign-in .login-form input {
  background: rgba(8, 10, 14, 0.78);
  border: 1px solid rgba(205, 203, 202, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #F4F2F0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.fr8-sign-in .login-form input:focus {
  border-color: rgba(255, 193, 74, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 3px rgba(255, 193, 74, 0.2);
}
.login-form button { height: 42px; margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--chrome); border: 1px solid var(--chrome); border-radius: var(--r-sm); color: var(--obsidian); font-family: inherit; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.login-form button:hover { background: var(--crimson); border-color: var(--crimson); color: var(--chrome); }
.field-error { min-height: 1em; margin: 0; color: var(--crimson); font-size: 11px; line-height: 1.4; }

/* ---------- Shell ---------- */
.layout { position: relative; isolation: isolate; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 16px; align-items: start; min-height: 100dvh; padding: 16px; box-sizing: border-box; }
.layout::before { display: none; }
.layout .sidebar {
  position: sticky;
  top: 16px;
  inset: auto;
  width: auto;
  height: calc(100dvh - 32px);
  margin: 0;
  padding: 18px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 80;
}
.layout .sidebar .workspace-brand { margin: 0 0 4px; padding: 0 10px; }
.layout .sidebar .brand { padding: 0; font-size: 23px; color: var(--text); }
.layout .sidebar .powered-by { margin-top: 6px; padding: 0; }
.layout .sidebar .nav-label { margin: 26px 10px 8px; padding: 0; font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.layout .sidebar .nav { display: flex; flex-direction: column; gap: 2px; }
.layout .sidebar .nav a { position: relative; min-height: 36px; display: flex; align-items: center; margin: 0; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-2); font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.layout .sidebar .nav a:hover { background: var(--surface-2); color: var(--text); transform: none; box-shadow: none; }
.layout .sidebar .nav a.active { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 var(--crimson); }
.layout .sidebar .nav a.active::before { display: none; }
.layout .sidebar .role-nav-more { margin: 16px 0 0; padding-top: 8px; border-top: 1px solid var(--line); }
.layout .sidebar .role-nav-more summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.layout .sidebar .role-nav-more summary::-webkit-details-marker { display: none; }
.layout .sidebar .role-nav-more summary::after { content: "+"; font-size: 12px; color: var(--text-3); }
.layout .sidebar .role-nav-more[open] summary::after { content: "\2212"; }
.layout .sidebar .role-nav-more summary:hover { background: var(--surface); color: var(--text-2); }
.layout .sidebar .role-nav-group { margin-top: 10px; }
.layout .sidebar .role-nav-group > span { display: block; margin-bottom: 2px; padding: 0 10px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.layout .sidebar .role-nav-switch { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }

.layout .main { position: relative; min-width: 0; background: var(--obsidian); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: none; }
.layout .topbar { position: sticky; top: 0; z-index: 60; height: auto; min-height: var(--topbar-height); margin: 0; padding: 10px 24px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: rgba(8, 8, 8, 0.94); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.layout .breadcrumbs { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.layout .crumb-mark { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.layout .breadcrumbs strong { color: var(--text-2); font-weight: 600; }
.layout .workspace-sync-indicator { max-width: 260px; margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 0; overflow: hidden; background: none; border: 0; border-radius: 0; color: var(--text-3); font-size: 10px; letter-spacing: 0.04em; white-space: nowrap; text-overflow: ellipsis; }
.layout .workspace-sync-indicator::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--chrome); box-shadow: none; animation: none; }
.layout .broker-signout { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.layout .broker-signout .btn { min-height: 28px; padding: 0 9px; font-size: 10px; letter-spacing: 0.04em; }

.broker-nav-mobile { display: none; }

.layout .workspace { min-height: auto; padding: 28px clamp(20px, 3.2vw, 40px) 40px; background: transparent; position: relative; isolation: auto; }
.layout .workspace::before { display: none; }
.layout .workspace > * { position: static; z-index: auto; }
.layout .workspace:has(> .console) .page-head { display: none; }
.workspace .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.workspace .page-head h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 600; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.workspace .page-head p { margin: 6px 0 0; color: var(--text-2); font-size: 13px; }
.workspace .broker-notice { margin: 0 0 18px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--crimson); border-radius: var(--r-sm); box-shadow: none; color: var(--text-3); font-size: 10.5px; line-height: 1.6; }
.workspace .broker-notice strong { color: var(--crimson); font-weight: 600; letter-spacing: 0.03em; }
.workspace .broker-error { margin: 0 0 12px; color: var(--crimson); font-size: 12px; line-height: 1.5; }
.workspace .broker-error:empty { display: none; }

/* ---------- Shared typography ---------- */
.workspace h2, .workspace h3 { color: var(--text); }
.workspace p { line-height: 1.6; }
.workspace .load-kicker { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); }
.workspace small { font-size: 11px; }

/* ---------- Panels ---------- */
.workspace .panel { position: relative; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; overflow: hidden; }
.workspace .panel:hover { border-color: var(--line); }
.workspace .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 13px 20px; background: transparent; border-bottom: 1px solid var(--line); }
.workspace .panel-head h2 { margin: 0; font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--text); }
.workspace .panel-head-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.workspace .panel p { margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.workspace .panel > p { padding: 12px 20px; }
.workspace .panel > p:first-child { padding-top: 14px; }
.workspace .panel > .broker-actions { padding: 14px 20px; }
.workspace .panel > .broker-actions + .table-scroll { border-top: 1px solid var(--line); }
.workspace .panel > .table-scroll + p { border-top: 1px solid var(--line); }
.workspace .panel h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.workspace .panel > details { padding: 12px 20px; border-top: 1px solid var(--line); }
.workspace .panel summary { cursor: pointer; color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.workspace .panel summary:hover { color: var(--text); }
.workspace .broker-more { margin-top: 12px; }

/* ---------- Tables ---------- */
.workspace .table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.workspace .data-table { width: 100%; border: 0; border-collapse: collapse; border-radius: 0; background: transparent; color: var(--text); font-size: 12px; text-align: left; }
.workspace .data-table th { padding: 9px 16px; background: transparent; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.workspace .data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--text); font-size: 12px; line-height: 1.45; vertical-align: middle; font-variant-numeric: tabular-nums; }
.workspace .data-table tr:last-child td { border-bottom: 0; }
.workspace .data-table tr { transition: none; }
.workspace .data-table tr:hover td, .workspace .data-table tr:active td { background: rgba(205, 203, 202, 0.03); transform: none; }
.workspace .data-table td small { display: block; margin-top: 3px; color: var(--text-3); font-size: 10.5px; }
.workspace .data-table td strong { color: var(--text); font-weight: 600; }
.workspace .data-table td.cell-ref { white-space: nowrap; }
.workspace .data-table .btn { min-height: 26px; padding: 0 8px; font-size: 10px; }
.workspace .data-table details { margin-top: 5px; }
.workspace .data-table summary { cursor: pointer; color: var(--text-3); font-size: 10px; }
.workspace .data-table details p { margin: 8px 0 0; color: var(--text-2); font-size: 11px; line-height: 1.6; }

/* ---------- Empty states ---------- */
.workspace .empty { padding: 40px 20px; text-align: center; color: var(--text-3); font-size: 12px; }
.workspace .empty strong { display: block; margin-bottom: 4px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.workspace .empty p { max-width: 420px; margin: 0 auto 16px; }

/* ---------- Buttons ---------- */
.layout .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; margin: 0; padding: 0 11px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-family: inherit; font-size: 11.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; cursor: pointer; overflow: visible; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.1s ease; }
.layout .btn:hover { background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); transform: none; box-shadow: none; }
.layout .btn:active { opacity: 0.78; transform: none; box-shadow: none; }
.layout .btn.primary:active { opacity: 0.86; }
.layout .btn.primary { background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); }
.layout .btn.primary:hover { background: var(--crimson); border-color: var(--crimson); color: var(--chrome); }
.layout .btn.secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.layout .btn.secondary:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.layout .btn.small { min-height: 26px; padding: 0 8px; font-size: 10.5px; }
.layout .btn.full { width: 100%; }
.layout .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.workspace .broker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }

/* ---------- Fields and forms ---------- */
.workspace .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.workspace .field.wide { grid-column: 1 / -1; }
.workspace input, .workspace select, .workspace textarea { width: 100%; min-width: 0; min-height: 36px; box-sizing: border-box; padding: 8px 10px; background: rgba(8, 8, 8, 0.55); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.workspace textarea { min-height: 84px; resize: vertical; }
.workspace input::placeholder, .workspace textarea::placeholder { color: var(--text-3); }
.workspace input:focus, .workspace select:focus, .workspace textarea:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(212, 21, 20, 0.12); }
.workspace input[type="checkbox"], .workspace input[type="radio"] { width: auto; min-height: 0; accent-color: var(--crimson); }
.workspace input[type="file"] { padding: 7px 8px; }
.workspace .broker-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.workspace .broker-form > p, .workspace .broker-form > h3, .workspace .broker-form > .broker-actions { grid-column: 1 / -1; }
.workspace .broker-form > p { margin: 0 0 12px; }
.workspace .panel > .broker-form { padding: 14px 20px 18px; }
.workspace .broker-form .field-error { margin: 0 0 10px; }
.workspace .broker-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 12px; padding: 0; background: none; border: 0; }
.workspace .broker-filters .field { min-width: 168px; margin: 0; }
.workspace .broker-filters > p { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: 10.5px; line-height: 1.5; }

/* ---------- Stats as a ruled ledger ---------- */
.workspace .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; margin: 0 0 20px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.workspace .stat { min-height: 0; padding: 16px 18px; background: var(--obsidian); border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; transition: none; }
.workspace .stat::before, .workspace .stat::after { display: none; }
.workspace .stat:hover { transform: none; border: 0; box-shadow: none; }
.workspace .stat-label { margin: 0 0 9px; color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.workspace .stat-value { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.workspace .stat small, .workspace .stat .stat-foot { display: block; margin-top: 6px; color: var(--text-3); font-size: 10.5px; }

/* ---------- Simple chart rows (performance and ageing) ---------- */
.workspace .broker-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.workspace .broker-chart-grid .panel { margin: 0; }
.workspace .broker-chart { display: grid; margin: 0 0 8px; }
.workspace .broker-chart-row { display: grid; grid-template-columns: minmax(88px, 150px) minmax(48px, 1fr) minmax(56px, auto); align-items: center; gap: 12px; width: 100%; min-height: 34px; padding: 6px 20px; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--text-2); font-family: inherit; font-size: 11.5px; text-align: left; cursor: pointer; }
.workspace .broker-chart-row:first-child { border-top: 0; }
.workspace .broker-chart-row:hover { background: var(--surface-2); color: var(--text); }
.workspace .broker-chart-row strong { text-align: right; color: var(--text); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
a.broker-chart-row { text-decoration: none; color: inherit; }
.workspace .broker-chart-row small { display: block; margin-top: 2px; color: var(--text-3); font-size: 10px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.workspace .broker-chart-row.is-person { grid-template-columns: minmax(140px, 240px) minmax(48px, 1fr) minmax(72px, auto); min-height: 46px; }
.workspace .broker-chart-track { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.workspace .broker-chart-track > span { display: block; height: 100%; min-width: 2px; background: var(--crimson); border-radius: inherit; }

/* ---------- Role desks ---------- */
.workspace .role-stage { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 0 0 16px; }
.workspace .role-stage-primary, .workspace .role-stage-selector, .workspace .role-stage-metrics { min-width: 0; }
.workspace .role-stage-selector { margin-top: 16px; }
.workspace .role-stage-metrics .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.workspace .role-stage-work { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.workspace .role-stage-work > div { display: grid; gap: 16px; min-width: 0; }
.workspace .role-stage-work .panel { margin: 0; }
.workspace .team-hero { margin: 0 0 16px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; }
.workspace .team-hero h2 { margin: 6px 0 8px; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.workspace .team-hero p { max-width: 78ch; margin: 0 0 14px; color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.workspace .team-hero .team-caveat { color: var(--text-3); font-size: 11px; }
.workspace .team-hero .broker-actions { margin-top: 4px; }

/* ---------- Hierarchy entry ---------- */
.org-entry { min-height: 100dvh; padding: 32px clamp(16px, 4vw, 48px); box-sizing: border-box; background: var(--obsidian); color: var(--text); }
.org-entry .org-chart { max-width: 1100px; margin: 0 auto; }
.org-chart-title { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.org-chart-note { max-width: 72ch; margin: -12px 0 24px; color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.org-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.org-list .org-list { margin: 10px 0 0 18px; padding-left: 16px; border-left: 1px solid var(--line); }
.org-role { display: block; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.org-role-link { transition: background-color 0.15s ease, border-color 0.15s ease; }
.org-role-link:hover { background: var(--surface-2); border-color: var(--line-strong); transform: none; }
.org-role-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.org-role-description { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; line-height: 1.45; }
.org-role-state { display: inline-block; margin-top: 8px; color: var(--crimson); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.org-person { display: flex; gap: 12px; align-items: flex-start; }
.org-person-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.org-person-copy { min-width: 0; }
.org-entry .org-top > .org-role { border-left: 2px solid var(--crimson); }

/* ---------- Overview console ---------- */
.console { margin: 0 0 24px; perspective: none; }
.console-masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 32px; align-items: end; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.console-masthead.is-bare { grid-template-columns: minmax(0, 1fr); }
.console-kicker { margin: 0 0 10px; color: var(--crimson); font-size: 9.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.console-masthead h1 { margin: 0 0 8px; color: var(--text); font-family: var(--font-display); font-size: clamp(2.4rem, 3.8vw, 3.4rem); font-weight: 600; line-height: 0.92; letter-spacing: 0.02em; text-transform: uppercase; }
.console-lede { max-width: 64ch; margin: 0; color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.console-tools { min-width: 0; }
.console-tools .broker-filters { display: grid; gap: 7px; margin: 0; padding: 0; background: none; border: 0; }
.console-tools .field { min-width: 0; margin: 0; font-size: 9px; letter-spacing: 0.14em; }
.console-tools .field select { margin-top: 4px; }
.console-tools p { margin: 0; color: var(--text-3); font-size: 10px; line-height: 1.5; }

.console-statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0; border-bottom: 1px solid var(--line); }
.console-statusbar > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-right: 1px solid var(--line); color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.console-statusbar > span:first-child { padding-left: 0; }
.console-statusbar > span:last-child { border-right: 0; }
.console-statusbar b { color: var(--text-2); font-weight: 600; letter-spacing: 0.08em; }
.console-live { color: var(--text-2); }
.console-live i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--crimson); box-shadow: none; animation: none; }
.console-checked { margin-left: auto; }

.console-ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.console-metric { min-width: 0; padding: 18px 20px 20px; border-left: 1px solid var(--line); }
.console-metric:first-child { padding-left: 0; border-left: 0; }
.console-metric:last-child { padding-right: 0; }
.console-metric-head { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; }
.console-metric-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid var(--line); border-radius: 8px; color: var(--text-2); }
.console-metric-icon svg { display: block; width: 15px; height: 15px; }
.console-metric-label { display: block; margin-bottom: 10px; color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.console-metric-head .console-metric-label { margin-bottom: 0; }
.console-metric.is-alert .console-metric-label { color: var(--text-2); }
.console-metric strong { display: block; margin-bottom: 5px; color: var(--text); font-family: var(--font-display); font-size: clamp(2.3rem, 3vw, 2.9rem); font-weight: 500; line-height: 0.85; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.console-metric.is-alert strong { color: var(--crimson); }
.console-metric-foot { display: block; color: var(--text-3); font-size: 10.5px; line-height: 1.4; }

.console-board { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin: 0 0 16px; }
.console-panel, .console-queue-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.console-panel { display: flex; flex-direction: column; padding: 18px 20px; }
.console-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.console-panel-head h2 { margin: 0; color: var(--text); font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.01em; }
.console-panel-head span { color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.console-figure { display: flex; flex: 1; flex-direction: column; justify-content: flex-end; margin: 0; }
.console-figure svg { display: block; width: 100%; height: auto; max-height: 220px; overflow: visible; }
.console-baseline { stroke: var(--line-strong); stroke-width: 1; }
.console-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; }
.console-axis-label { fill: var(--text-3); font-family: var(--font-sans); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }
.console-chart-label { fill: var(--text-3); font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; }
.console-chart-label.is-current { fill: var(--text); }
.console-area { fill: url(#fr8-volume-area); transform-box: fill-box; transform-origin: bottom; animation: fr8-area-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.console-area-stop-top { stop-color: var(--crimson); stop-opacity: 0.34; }
.console-area-stop-bottom { stop-color: var(--crimson); stop-opacity: 0; }
.console-line-stop-a, .console-line-stop-b, .console-ring-stop-a, .console-ring-stop-b, .console-ring-stop-c, .console-ring-stop-d { stop-color: var(--crimson); }
.console-line { fill: none; stroke: url(#fr8-volume-line); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: fr8-chart-draw 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
.console-point { outline: none; }
.console-hit { fill: transparent; pointer-events: all; }
.console-point-dot { fill: var(--crimson); stroke: var(--surface); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: fr8-point-in 0.4s ease-out both; animation-delay: calc(var(--i, 0) * 90ms + 0.5s); transition: transform 0.15s ease; }
.console-point.is-current .console-point-dot { fill: var(--text); }
.console-point-halo { fill: none; stroke: var(--crimson); stroke-width: 1.5; opacity: 0.45; transform-box: fill-box; transform-origin: center; animation: fr8-halo 2.4s ease-out infinite; }
.console-point:hover .console-point-dot { transform: scale(1.35); }
.console-tip { opacity: 0; pointer-events: none; transition: opacity 0.14s ease; }
.console-tip rect { fill: var(--obsidian); stroke: var(--line-strong); stroke-width: 1; }
.console-tip text { fill: var(--chrome); font-family: var(--font-sans); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
.console-point:hover .console-tip { opacity: 1; }
.console-figure figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--text-3); font-size: 10.5px; }
.console-figure figcaption b { color: var(--text-2); font-weight: 600; text-align: right; }
@keyframes fr8-chart-draw { from { stroke-dashoffset: 1; } }
@keyframes fr8-area-in { from { opacity: 0; transform: scaleY(0.35); } }
@keyframes fr8-point-in { from { opacity: 0; transform: scale(0.2); } }
@keyframes fr8-metric-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fr8-fade-in { from { opacity: 0; } }
@keyframes fr8-fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes fr8-icon-in { from { opacity: 0; transform: scale(0.6); } }
@keyframes fr8-bar-grow { from { transform: scaleX(0); } }
@keyframes fr8-column-grow { from { transform: scaleY(0); } }
@keyframes fr8-ring-sweep { from { stroke-dashoffset: 100; } }
@keyframes fr8-halo { 0% { transform: scale(0.7); opacity: 0.5; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes fr8-live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.45); } 50% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0); } }

.console-ring { position: relative; display: grid; place-items: center; width: 156px; height: 156px; margin: 6px auto 12px; }
.console-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.console-ring-track { fill: none; stroke: var(--line); stroke-width: 10; }
.console-ring-value { fill: none; stroke: url(#fr8-ring-line); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--share, 0)); animation: fr8-ring-sweep 1.25s cubic-bezier(0.16, 0.8, 0.24, 1) both; }
.console-ring-copy { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: 112px; height: 112px; border-radius: 50%; background: var(--surface); text-align: center; }
.console-ring-copy strong { color: var(--text); font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.console-ring-copy small { max-width: 12ch; color: var(--text-3); font-size: 10px; line-height: 1.3; }

.console-ratio { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.console-ratio strong { color: var(--text); font-family: var(--font-display); font-size: clamp(2.8rem, 3.4vw, 3.6rem); font-weight: 500; line-height: 0.8; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.console-ratio strong span { margin-left: 1px; color: var(--text-3); font-size: 0.42em; }
.console-ratio > span { max-width: 18ch; padding-bottom: 2px; color: var(--text-3); font-size: 10.5px; line-height: 1.45; }
.console-ratio b { display: block; color: var(--text-2); font-size: 11px; font-weight: 600; }
.console-mix { margin: 0; }
.console-legend { list-style: none; margin: 0; padding: 0; display: grid; }
.console-legend li { display: grid; grid-template-columns: minmax(78px, auto) minmax(32px, 1fr) 30px 38px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 11px; }
.console-legend li:first-child { border-top: 0; }
.console-mix-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
button.console-mix-label, button.console-count { margin: 0; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.console-count { text-decoration: underline; text-underline-offset: 3px; }
.console-swatch { width: 5px; height: 5px; flex: none; border-radius: 50%; background: rgba(205, 203, 202, 0.5); }
.console-swatch.is-dim { background: rgba(205, 203, 202, 0.28); }
.console-swatch.is-accent { background: var(--crimson); }
.console-mix-track { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; }
.console-mix-track > span { display: block; height: 100%; min-width: 2px; background: rgba(205, 203, 202, 0.55); border-radius: inherit; }
.console-mix-track > span.is-dim { background: rgba(205, 203, 202, 0.28); }
.console-mix-track > span.is-accent { background: var(--crimson); }
.console-legend b { color: var(--text); font-size: 11px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.console-legend em { color: var(--text-3); font-size: 10px; font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }

.console-queue-panel { margin: 0; }
.console-queue-panel .console-panel-head { margin: 0; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.console-queue { list-style: none; margin: 0; padding: 0; }
.console-queue li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 20px; border-top: 1px solid var(--line); }
.console-queue li:first-child { border-top: 0; }
.console-queue li:hover { background: rgba(205, 203, 202, 0.02); }
.console-queue-index { color: var(--text-3); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.console-queue-copy { min-width: 0; }
.console-queue-copy strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.console-queue-copy small { display: block; margin-top: 2px; color: var(--text-3); font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.console-queue .btn { min-height: 26px; padding: 0 9px; border-color: transparent; color: var(--text-2); font-size: 10.5px; }
.console-queue .btn:hover { background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); }
.console-caption { margin: 12px 0 0; color: var(--text-3); font-size: 10px; line-height: 1.5; }
.console-queue-panel > .console-caption { margin: 0; padding: 9px 20px; border-top: 1px solid var(--line); }
.console-queue-panel > .console-caption + .console-caption { padding-top: 0; border-top: 0; }
.console-note { max-width: 100ch; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--text-3); font-size: 10px; line-height: 1.6; }

/* ---------- Load editor ---------- */
.load-editor-scrim { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; background: rgba(8, 8, 8, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: sheetFadeIn 0.15s ease; }
@keyframes sheetFadeIn { from { opacity: 0; } to { opacity: 1; } }
.load-editor-dialog { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 1040px; max-height: 92dvh; background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 40px 120px -40px #000; overflow: hidden; isolation: isolate; }
.load-editor-header { padding: 20px 28px; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); }
.load-editor-header h2 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text); }
.load-editor-header p { margin: 0; color: var(--text-2); font-size: 11.5px; }
.load-editor-close { position: absolute; top: 16px; right: 16px; z-index: 10; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; }
.load-editor-close:hover { background: var(--crimson); border-color: var(--crimson); color: var(--chrome); transform: none; }
.load-editor-nav { display: flex; gap: 4px; padding: 8px 28px; border-bottom: 1px solid var(--line); overflow-x: auto; overscroll-behavior-x: contain; }
.load-section-link { flex: none; min-height: 28px; padding: 0 9px; background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); color: var(--text-3); font-family: inherit; font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; }
.load-section-link:hover { background: var(--surface-2); color: var(--text); }
.load-dialog-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 20px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }
.load-form-section { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.load-form-section:first-of-type { padding-top: 0; border-top: 0; }
.load-form-section h3 { grid-column: 1 / -1; margin: 0 0 12px; color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.load-form-section .wide, .load-editor-intro, .load-dialog-form > .wide { grid-column: 1 / -1; }
.load-editor-footer { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.load-editor-footer span { margin-right: auto; color: var(--text-3); font-size: 10.5px; }

/* ---------- Contextual load preview ---------- */
.load-spatial-preview { position: fixed; z-index: 100; right: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 24px; background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: 0 32px 100px -40px #000; color: var(--text); }
.load-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.load-preview-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.load-preview-route { display: grid; gap: 14px; margin: 16px 0; padding: 14px 0 14px 16px; border-block: 1px solid var(--line); border-left: 2px solid var(--crimson); }
.load-preview-route strong { color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.load-spatial-preview dl { margin: 0; display: grid; gap: 0; }
.load-spatial-preview dl div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.load-spatial-preview dt { color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.load-spatial-preview dd { margin: 0; color: var(--text); font-size: 12px; text-align: right; overflow-wrap: anywhere; }

/* ---------- Load workspace ---------- */
.load-hero { margin: 0 0 16px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.load-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.load-back { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--text-2); font-family: inherit; font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.load-back:hover { color: var(--text); }
.load-hero-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.load-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid rgba(212, 21, 20, 0.36); border-radius: 999px; color: var(--crimson); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.load-owner { color: var(--text-3); font-size: 10px; letter-spacing: 0.04em; }
.load-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 18px; }
.load-identity h2 { margin: 4px 0; font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }
.load-identity p { margin: 0; color: var(--text-2); font-size: 12.5px; overflow-wrap: anywhere; }
.load-money { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin: 0; }
.load-money div { min-width: 92px; }
.load-money dt { margin-bottom: 4px; color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.load-money dd { margin: 0; color: var(--text); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; white-space: nowrap; }
.load-money dd.is-negative { color: var(--crimson); }
.load-route { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; background: rgba(8, 8, 8, 0.35); border: 1px solid var(--line); border-radius: var(--r-md); }
.load-route-stop span { display: block; margin-bottom: 4px; color: var(--text-3); font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.load-route-stop strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: 0.02em; }
.load-route-stop small { display: block; margin-top: 3px; color: var(--text-2); font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
.load-route-line { position: relative; height: 1px; background: var(--line-strong); }
.load-route-line::before, .load-route-line::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border: 1px solid var(--text-3); border-radius: 50%; background: var(--obsidian); }
.load-route-line::before { left: 0; }
.load-route-line::after { right: 0; border-color: var(--crimson); background: var(--crimson); }
.load-geo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 14px; align-items: stretch; }
.load-geo-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.load-geo-left .load-progress { margin: 0; }
.load-geo .load-route { min-width: 0; }
.load-map { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.load-map-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.load-map-precision { color: var(--text-3); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.load-map-canvas { position: relative; width: 100%; min-height: 190px; aspect-ratio: 1000 / 560; overflow: hidden; background: radial-gradient(ellipse at 48% 46%, rgba(205, 203, 202, 0.075) 0%, rgba(8, 8, 8, 0) 68%); border: 1px solid var(--line); border-radius: var(--r-md); }
.load-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.load-map-land { fill: rgba(205, 203, 202, 0.085); stroke: rgba(205, 203, 202, 0.28); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.load-map-borders { fill: none; stroke: rgba(205, 203, 202, 0.16); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.load-map-countries text { fill: rgba(205, 203, 202, 0.34); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: 6px; text-anchor: middle; }
.load-map-route-under { fill: none; stroke: rgba(8, 8, 8, 0.85); stroke-width: 5; vector-effect: non-scaling-stroke; }
.load-map-route { fill: none; stroke: var(--crimson); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.load-map-pin { position: absolute; z-index: 2; width: 0; height: 0; }
.load-map-pin-dot { position: absolute; top: -4.5px; left: -4.5px; box-sizing: border-box; width: 9px; height: 9px; border: 1.5px solid var(--chrome); border-radius: 50%; background: var(--obsidian); box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.6); }
.load-map-pin-delivery .load-map-pin-dot { border-color: var(--crimson); background: var(--crimson); box-shadow: 0 0 0 3px rgba(212, 21, 20, 0.22); }
.load-map-canvas.is-coincident .load-map-pin-pickup .load-map-pin-dot { top: -7.5px; left: -7.5px; width: 15px; height: 15px; }
.load-map-pin-label { position: absolute; bottom: 8px; left: 10px; min-width: max-content; max-width: 190px; padding: 3px 6px; background: rgba(8, 8, 8, 0.86); border: 1px solid var(--line); border-radius: 4px; white-space: nowrap; }
.load-map-pin-label strong { display: block; overflow: hidden; color: var(--text); font-size: 9.5px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; }
.load-map-pin-label small { display: block; color: var(--text-3); font-size: 8px; font-weight: 600; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.load-map-pin.is-below .load-map-pin-label { top: 8px; bottom: auto; }
.load-map-pin.is-left .load-map-pin-label { right: 10px; left: auto; text-align: right; }
.load-map figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 7px; color: var(--text-3); font-size: 9.5px; line-height: 1.45; }
.load-map-attribution { color: var(--text-3); font-size: 8.5px; opacity: 0.8; }
.load-map-pending .load-map-canvas { display: grid; place-items: center; }
.load-map-loading { margin: 0; padding: 16px; color: var(--text-3); font-size: 10px; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.load-progress { margin: 14px 0 0; padding: 14px 16px 16px; background: rgba(8, 8, 8, 0.35); border: 1px solid var(--line); border-radius: var(--r-md); }
.load-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.load-progress-count { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.load-progress-count strong { color: var(--text); font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; }
.load-progress-count small { color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.load-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.load-steps li { position: relative; min-width: 0; padding: 26px 8px 0 0; }
.load-steps li::after { content: ""; position: absolute; top: 9px; left: 21px; right: 0; height: 1px; background: var(--line-strong); }
.load-steps li:last-child::after { display: none; }
.load-steps li.is-linked::after { background: rgba(212, 21, 20, 0.55); }
.load-step-mark { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--obsidian); color: var(--text-3); font-size: 10px; font-weight: 700; line-height: 1; }
.load-steps li.is-done .load-step-mark { background: var(--crimson); border-color: var(--crimson); color: var(--obsidian); }
.load-steps strong { display: block; color: var(--text-3); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-steps li.is-done strong { color: var(--text); }
.load-progress-track { height: 3px; margin-top: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.load-progress-track span { display: block; height: 100%; background: var(--crimson); border-radius: inherit; }
.load-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 14px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--crimson); border-radius: var(--r-md); }
.load-next p { margin: 4px 0 0; color: var(--text); font-size: 12.5px; line-height: 1.5; }
.load-next .load-next-missing { color: var(--text-3); font-size: 11px; }
.load-next-action:empty { display: none; }
.load-next-action .btn { min-height: 36px; padding: 0 16px; background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); font-size: 10.5px; letter-spacing: 0.06em; }
.load-next-action .btn:hover { background: var(--crimson); border-color: var(--crimson); color: var(--chrome); }
.load-hero-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 14px; }
.load-hero-actions details { position: relative; }
.load-hero-actions summary { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; cursor: pointer; list-style: none; }
.load-hero-actions summary::-webkit-details-marker { display: none; }
.load-hero-actions summary:hover { background: var(--surface-2); }
.load-hero-actions details[open] summary { background: var(--surface-2); border-color: var(--text-3); }
.load-hero-actions details[open] { flex-basis: 100%; }
.load-hero-actions .broker-actions { flex-basis: 100%; padding-top: 10px; }
.load-hero-note { margin: 4px 0 0 auto; color: var(--text-3); font-size: 10px; }
.load-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.load-detail-stack { display: grid; gap: 20px; align-content: start; }
.load-sub { min-width: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.load-sub:first-child { padding-top: 0; border-top: 0; }
.load-sub h3 { margin: 0 0 8px; color: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.load-sub > p { margin: 0; padding: 0 0 8px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.load-sub .table-scroll { margin-top: 4px; }
.load-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; cursor: pointer; list-style: none; }
.load-fold > summary::-webkit-details-marker { display: none; }
.load-fold > summary strong { display: block; color: var(--text); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; }
.load-fold > summary small { display: block; margin-top: 2px; color: var(--text-3); font-size: 10px; letter-spacing: 0.02em; }
.load-fold[open] > summary { border-bottom: 1px solid var(--line); }
.load-fold-mark { color: var(--text-3); font-size: 0; line-height: 1; }
.load-fold-mark::before { content: "＋"; font-size: 16px; }
.load-fold[open] .load-fold-mark { color: var(--crimson); }
.load-fold[open] .load-fold-mark::before { content: "−"; }
.load-fold-body { display: grid; gap: 22px; padding: 16px 20px 22px; }
.load-fold-body .load-sub:first-child { padding-top: 0; border-top: 0; }
.load-brief { border: 1px solid var(--line); border-radius: var(--r-md); }
.load-brief > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; cursor: pointer; list-style: none; }
.load-brief > summary::-webkit-details-marker { display: none; }
.load-brief > summary strong { display: block; color: var(--text); font-size: 11.5px; font-weight: 600; }
.load-brief > summary small { display: block; margin-top: 2px; color: var(--text-3); font-size: 9.5px; }
.load-brief[open] > summary { border-bottom: 1px solid var(--line); }
.load-brief > p { margin: 0; padding: 12px 14px; color: var(--text-2); font-size: 11.5px; line-height: 1.55; }
.load-brief > .broker-actions { padding: 12px 14px; }
.load-brief > .broker-actions + p { padding-top: 0; }

/* ---------- Notifications ---------- */
.workspace .notifications { position: fixed; top: 20px; right: 20px; z-index: 220; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.workspace .notification { max-width: 360px; padding: 12px 14px; background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: 0 20px 50px -24px #000; pointer-events: auto; animation: slideIn 0.18s ease; }
.workspace .notification.crimson { border-left: 2px solid var(--crimson); }
.workspace .notification-title { margin-bottom: 3px; color: var(--text); font-size: 12px; font-weight: 600; }
.workspace .notification-body { color: var(--text-2); font-size: 11px; line-height: 1.45; }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Footer ---------- */
.workspace .footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-transparency: reduce) {
  .layout .topbar, .layout .sidebar, .workspace .panel, .console-panel, .console-queue-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .layout .topbar { background: var(--obsidian); }
  .fr8-sign-in > .login-card {
    background: rgba(12, 18, 28, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (forced-colors: active) {
  .layout .sidebar, .layout .main, .layout .topbar, .workspace .panel, .workspace .stat, .console-panel, .console-queue-panel { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
  .fr8-sign-in::before, .fr8-sign-map { display: none; }
  .fr8-sign-in .login-card { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .layout .btn:hover, .layout .sidebar .nav a:hover, .workspace .stat:hover, .workspace .panel:hover, .workspace .data-table tr:hover, .console-bar:hover rect { transform: none; }
  .fr8-sign-in { perspective: none; transform-style: flat; }
  .fr8-sign-map-pan,
  .fr8-sign-in > .login-card { transform: none; }
  .fr8-sign-live { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .load-detail-grid { grid-template-columns: 1fr; }
  .load-geo { grid-template-columns: 1fr; align-items: start; }
  .load-geo .load-map { max-width: 460px; }
}
@media (max-width: 1100px) {
  .console-board { grid-template-columns: 1fr; }
  .console-panel-mix { display: grid; grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1.4fr); gap: 0 24px; }
  .console-panel-mix .console-panel-head { grid-column: 1 / -1; }
  .console-ratio { align-items: center; margin: 0; padding: 0; border-bottom: 0; }
  .console-mix { min-width: 0; }
  .console-panel-mix > .console-caption { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .workspace .role-stage { grid-template-columns: 1fr; }
  .workspace .role-stage-metrics .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workspace .role-stage-work { grid-template-columns: 1fr; }
  .load-map-canvas { min-height: 220px; }
}
@media (max-width: 900px) {
  .layout { display: block; padding: 0; }
  .layout .sidebar { position: static; top: auto; width: auto; height: auto; flex-direction: row; align-items: center; padding: 10px 16px; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(8, 8, 8, 0.96); overflow: visible; }
  .layout .sidebar .workspace-brand { margin: 0; padding: 0; }
  .layout .sidebar .brand { font-size: 20px; }
  .layout .sidebar .powered-by, .layout .sidebar .nav-label, .layout .sidebar .nav { display: none; }
  .layout .main { border: 0; border-radius: 0; }
  .layout .topbar { position: static; top: auto; padding: 10px 16px; gap: 8px; }
  .layout .workspace-sync-indicator { max-width: none; font-size: 9px; white-space: normal; }
  .layout .broker-signout { margin-left: auto; }
  .layout .workspace { padding: 20px 16px 32px; }
  .broker-nav-mobile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(8, 8, 8, 0.96); border-bottom: 1px solid var(--line); }
  .broker-nav-mobile > a, .broker-nav-mobile summary, .broker-nav-mobile .role-nav-switch a { display: inline-flex; align-items: center; min-height: 30px; padding: 0 9px; background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text-2); font-size: 11px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
  .broker-nav-mobile > a.active, .broker-nav-mobile .role-nav-switch a.active { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); box-shadow: inset 2px 0 var(--crimson); }
  .broker-nav-mobile details { flex: 1 0 100%; }
  .broker-nav-mobile summary { list-style: none; }
  .broker-nav-mobile summary::-webkit-details-marker { display: none; }
  .broker-nav-mobile summary::after { content: "+"; margin-left: 6px; color: var(--text-3); }
  .broker-nav-mobile details[open] summary::after { content: "\2212"; }
  .broker-nav-mobile .role-nav-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
  .broker-nav-mobile .role-nav-group > span { flex: 1 0 100%; color: var(--text-3); font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
  .broker-nav-mobile .role-nav-switch { flex: 1 0 100%; }
  .workspace .stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .workspace .role-stage-metrics .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace .broker-chart-grid { grid-template-columns: 1fr; }
  .load-editor-scrim { padding: 12px; }
  .load-editor-dialog { max-height: 94dvh; }
  .workspace input, .workspace select, .workspace textarea, .login-form input { font-size: 16px; }
  .workspace input:not([type="checkbox"]):not([type="radio"]), .workspace select { min-height: 42px; }
  .workspace textarea { min-height: 104px; }
}
@media (max-width: 760px) {
  .console-masthead { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .console-tools { max-width: 320px; }
  .console-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-metric { padding: 14px 16px; }
  .console-metric:first-child { padding-left: 0; }
  .console-metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .console-metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .console-metric strong { font-size: 2.4rem; }
  .console-statusbar > span { padding: 6px 10px; }
  .console-statusbar > span:first-child { padding-left: 0; }
  .console-checked { flex-basis: 100%; margin-left: 0; padding-left: 0; border-right: 0; }
  .console-panel-mix { display: block; }
  .console-ratio { margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
  .console-figure figcaption { flex-direction: column; gap: 3px; }
  .console-figure figcaption b { text-align: left; }
  .console-queue li { grid-template-columns: 20px minmax(0, 1fr); row-gap: 7px; }
  .console-queue .btn { grid-column: 2; justify-self: start; }
  .workspace .page-head { align-items: flex-start; flex-direction: column; }
  .workspace .panel > p, .workspace .panel > .broker-actions { padding-inline: 14px; }
  .workspace .panel-head { padding-inline: 14px; }
  .workspace .data-table th, .workspace .data-table td { padding-inline: 12px; }
  .workspace .broker-chart-row { padding-inline: 14px; grid-template-columns: minmax(76px, 120px) minmax(36px, 1fr) minmax(52px, auto); gap: 8px; }
  .workspace .broker-form, .load-dialog-form, .load-form-section { grid-template-columns: 1fr; }
  .load-dialog-form { padding: 16px; }
  .load-editor-header { padding: 16px 18px; }
  .load-editor-header h2 { font-size: 22px; }
  .load-editor-nav { padding: 8px 18px; }
  .load-form-section .wide, .load-editor-intro, .load-dialog-form > .wide { grid-column: auto; }
  .load-spatial-preview { right: 12px; bottom: 12px; width: calc(100vw - 24px); max-height: 86dvh; padding: 18px; }
  .load-hero { padding: 16px; }
  .load-hero-main { grid-template-columns: 1fr; gap: 16px; }
  .load-identity h2 { font-size: 36px; }
  .load-money { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .load-money dd { font-size: 19px; }
  .load-route { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .load-route-line { display: none; }
  .load-route-stop { padding-left: 10px; border-left: 2px solid var(--line-strong); }
  .load-route-stop:last-child { border-left-color: var(--crimson); }
  .load-map-canvas { min-height: 180px; }
  .load-map-pin-label { max-width: 150px; }
  .load-map figcaption { font-size: 9px; }
  .load-progress { padding: 12px; }
  .load-progress-count strong { font-size: 21px; }
  .load-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .load-steps li { padding-right: 8px; }
  .load-steps li::after { display: none; }
  .load-steps li:nth-child(3n) { padding-right: 0; }
  .load-next { grid-template-columns: 1fr; gap: 12px; }
  .load-next-action .btn { width: 100%; }
  .load-hero-actions { flex-direction: column; align-items: stretch; }
  .load-hero-actions details { width: 100%; }
  .load-hero-actions summary { justify-content: space-between; }
  .load-hero-note { margin: 0; }
  .load-detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .load-fold > summary { padding-inline: 14px; }
  .load-fold-body { padding: 14px 14px 18px; }
  .workspace .footer { flex-direction: column; gap: 4px; }
}
@media (max-width: 480px) {
  .workspace .panel > p, .workspace .panel > .broker-actions, .workspace .panel > details { padding-inline: 12px; }
  .workspace .stats { grid-template-columns: 1fr; }
  .console-tools { max-width: none; }
  .console-legend li { grid-template-columns: minmax(74px, auto) minmax(24px, 1fr) 26px 34px; gap: 8px; }
  .load-money { gap: 8px; }
  .load-money dd { font-size: 17px; }
  .load-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .load-steps li:nth-child(3n) { padding-right: 8px; }
  .load-steps li:nth-child(2n) { padding-right: 0; }
  .workspace .team-hero { padding: 18px; }
}

@media (hover: none) {
  .login-form button:hover { background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); }
  .layout .btn:hover { background: transparent; border-color: var(--line-strong); color: var(--text); }
  .layout .btn.primary:hover { background: var(--chrome); border-color: var(--chrome); color: var(--obsidian); }
  .layout .btn.secondary:hover { background: transparent; border-color: var(--line-strong); color: var(--text); }
  .layout .sidebar .nav a:hover { background: transparent; color: var(--text-2); box-shadow: none; }
  .layout .sidebar .nav a.active:hover { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 var(--crimson); }
  .layout .sidebar .role-nav-more summary:hover { background: transparent; color: var(--text-3); }
  .workspace .panel:hover { border-color: var(--line); }
  .workspace .panel summary:hover { color: var(--text-2); }
  .workspace .stat:hover { transform: none; }
  .workspace .data-table tr:hover td { background: transparent; }
  .workspace .broker-chart-row:hover { background: transparent; color: var(--text-2); }
  .workspace .org-role-link:hover { background: var(--surface); border-color: var(--line); }
  .console-queue li:hover { background: transparent; }
  .console-queue .btn:hover { background: transparent; border-color: var(--line-strong); color: var(--text); }
  .console-bar:hover rect { fill: rgba(205, 203, 202, 0.22); }
  .console-bar.is-current:hover rect { fill: var(--crimson); }
  .load-editor-close:hover { background: transparent; border-color: var(--line); color: var(--text-2); }
  .load-section-link:hover { background: transparent; color: var(--text-3); }
}

/* ---------- Green card desk (authenticated Fr8Max workspace) ----------
   Owner request, 28 November 2026: the signed-in desk uses the dark green card
   dashboard — deep ground, lifted panels, green volume bars. Counts stay recorded.
   The night-yard sign-in scene stays separate. */
html:has(.fr8-green-desk),
html:has(.org-entry) {
  background: #121816;
  color-scheme: dark;
  scrollbar-color: rgba(125, 255, 198, 0.28) #121816;
}
body:has(.fr8-green-desk),
body:has(.org-entry) {
  background:
    radial-gradient(980px 460px at 78% -8%, rgba(47, 191, 138, 0.08), transparent 62%),
    radial-gradient(720px 420px at 0% 100%, rgba(16, 72, 54, 0.10), transparent 58%),
    #121816;
  color: #E7F2EC;
  color-scheme: dark;
}
.org-entry {
  --obsidian: #121816;
  --chrome: #E7F2EC;
  --crimson: #3DDC97;
  --text: #E7F2EC;
  --text-2: rgba(231, 242, 236, 0.72);
  --text-3: rgba(231, 242, 236, 0.48);
  --line: rgba(231, 242, 236, 0.10);
  --line-strong: rgba(231, 242, 236, 0.18);
  --surface: #1A201E;
  --surface-2: rgba(31, 169, 122, 0.12);
  background: transparent;
  color: #E7F2EC;
}
.org-entry .org-role-state { color: #7DFFC6; }
.org-entry .org-top > .org-role { border-left-color: #3DDC97; }
.org-entry .org-person-mark { background: rgba(31, 169, 122, 0.16); color: #E7F2EC; }
.fr8-green-desk {
  --obsidian: #121816;
  --chrome: #E7F2EC;
  --text: #E7F2EC;
  --text-2: rgba(231, 242, 236, 0.72);
  --text-3: rgba(231, 242, 236, 0.48);
  --line: rgba(231, 242, 236, 0.10);
  --line-strong: rgba(231, 242, 236, 0.18);
  --surface: #1A201E;
  --surface-2: rgba(31, 169, 122, 0.12);
  --teal: #3DDC97;
  --crimson: #3DDC97;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  background: transparent;
  color: #E7F2EC;
  color-scheme: dark;
}
.fr8-green-desk .sidebar {
  background: #161C1A;
  border-color: rgba(125, 255, 198, 0.10);
  box-shadow: 0 24px 60px -36px rgba(0, 0, 0, 0.7);
}
.fr8-green-desk .sidebar .nav a.active {
  background: rgba(31, 169, 122, 0.18);
  color: #E7FFF4;
  box-shadow: none;
}
.fr8-green-desk .nav a { gap: 9px; }
.fr8-green-desk .nav-icon { display: grid; place-items: center; width: 18px; height: 18px; flex: none; color: #9FC9BC; }
.fr8-green-desk .nav-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fr8-green-desk .nav a:hover .nav-icon { color: #E7F2EC; }
.fr8-green-desk .nav a.active .nav-icon { color: #7DFFC6; }
.fr8-green-desk .main {
  background: #141A18;
  border-color: rgba(125, 255, 198, 0.10);
  box-shadow: 0 30px 80px -48px rgba(0, 0, 0, 0.8);
}
.fr8-green-desk .topbar {
  background: #141A18;
  border-bottom-color: rgba(125, 255, 198, 0.08);
}
.fr8-green-desk .broker-signout { margin-left: auto; }
.fr8-green-desk .book-select { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.fr8-green-desk .book-select > span { color: rgba(231, 242, 236, 0.5); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.fr8-green-desk .book-select select { min-width: 150px; max-width: 220px; height: 34px; padding: 0 30px 0 10px; border: 1px solid rgba(125, 255, 198, 0.22); border-radius: 9px; background: #0E1412; color: #E7F2EC; font: inherit; font-size: 11.5px; }
.fr8-green-desk .workspace-sync-indicator::before,
.fr8-green-desk .console-live i { background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.16); }
.fr8-green-desk .load-kicker,
.fr8-green-desk .console-kicker { color: #7DFFC6; }
.fr8-green-desk .broker-notice {
  background: #1A201E;
  color: rgba(231, 242, 236, 0.72);
  border-color: rgba(125, 255, 198, 0.12);
  border-left-color: #3DDC97;
  border-radius: 14px;
}
.fr8-green-desk .broker-notice strong { color: #7DFFC6; }
.fr8-green-desk .broker-error,
.fr8-green-desk .field-error,
.fr8-green-desk .load-money dd.is-negative { color: #F0A3A0; }
.fr8-green-desk .btn.primary,
.fr8-green-desk .load-next-action .btn {
  background: #1FA97A;
  border-color: #1FA97A;
  color: #04140F;
}
.fr8-green-desk .btn.primary:hover,
.fr8-green-desk .load-next-action .btn:hover {
  background: #3DDC97;
  border-color: #3DDC97;
  color: #04140F;
}
.fr8-green-desk .btn:hover { background: rgba(231, 242, 236, 0.92); border-color: rgba(231, 242, 236, 0.92); color: #121816; }
.fr8-green-desk input,
.fr8-green-desk select,
.fr8-green-desk textarea {
  background: #0E1412;
  border-color: rgba(125, 255, 198, 0.16);
  color: #E7F2EC;
}
.fr8-green-desk input:focus,
.fr8-green-desk select:focus,
.fr8-green-desk textarea:focus {
  border-color: #3DDC97;
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.18);
}
.fr8-green-desk :where(a, button, input, select, textarea, summary):focus-visible { outline-color: #3DDC97; }
.fr8-green-desk .panel,
.fr8-green-desk .console-panel,
.fr8-green-desk .console-queue-panel,
.fr8-green-desk .team-hero,
.fr8-green-desk .load-hero,
.fr8-green-desk .stat {
  background: #1A201E;
  border-color: rgba(125, 255, 198, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.fr8-green-desk .panel-head h2,
.fr8-green-desk .console-panel-head h2,
.fr8-green-desk .data-table td,
.fr8-green-desk .console-metric strong,
.fr8-green-desk .console-ratio strong { color: #F4FFF9; }
.fr8-green-desk .data-table th,
.fr8-green-desk .data-table td small,
.fr8-green-desk .console-metric-foot,
.fr8-green-desk .console-caption,
.fr8-green-desk .panel p { color: rgba(231, 242, 236, 0.58); }
.fr8-green-desk .data-table tr:hover td,
.fr8-green-desk .console-queue li:hover { background: rgba(31, 169, 122, 0.08); }
.fr8-green-desk .stats {
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.fr8-green-desk .stats .stat {
  min-height: 104px;
  border: 1px solid rgba(125, 255, 198, 0.10);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fr8-metric-in 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.fr8-green-desk .admin-volume,
.fr8-green-desk .admin-margin-board { margin: 0 0 16px; }
.fr8-green-desk .stat-head { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; }
.fr8-green-desk .stat-head .stat-label { margin: 0; }
.fr8-green-desk .stat-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: rgba(61, 220, 151, 0.16); color: #7DFFC6; }
.fr8-green-desk .stat-icon svg { display: block; width: 15px; height: 15px; }
.fr8-green-desk .stats .stat:nth-child(5n+1) .stat-icon { background: rgba(61, 220, 151, 0.16); color: #7DFFC6; }
.fr8-green-desk .stats .stat:nth-child(5n+2) .stat-icon { background: rgba(86, 184, 255, 0.16); color: #56B8FF; }
.fr8-green-desk .stats .stat:nth-child(5n+3) .stat-icon { background: rgba(240, 169, 79, 0.16); color: #F0A94F; }
.fr8-green-desk .stats .stat:nth-child(5n+4) .stat-icon { background: rgba(240, 120, 123, 0.16); color: #F0787B; }
.fr8-green-desk .stats .stat:nth-child(5n+5) .stat-icon { background: rgba(232, 200, 74, 0.16); color: #E8C84A; }
.fr8-green-desk .console-column-bar { transform-box: fill-box; transform-origin: bottom center; animation: fr8-column-grow 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.fr8-green-desk .console-column-value { fill: #F4FFF9; font-size: 10px; font-weight: 600; }
.fr8-green-desk .console-column-label { fill: rgba(231, 242, 236, 0.62); font-size: 10.5px; }
.fr8-green-desk .console-figure-columns svg { max-height: 250px; }
.fr8-green-desk .stats .stat-value { font-family: var(--font-sans); font-size: clamp(1.1rem, 1.4vw, 1.5rem); line-height: 1.2; overflow-wrap: normal; white-space: normal; }
.fr8-green-desk .admin-margin-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 0.85fr); gap: 16px; margin: 0 0 16px; align-items: start; }
.fr8-green-desk .admin-margin-left { display: grid; gap: 16px; min-width: 0; }
.fr8-green-desk .admin-margin-board { display: grid; gap: 16px; margin: 0; }
.fr8-green-desk .top-customers { position: sticky; top: 16px; }
.fr8-green-desk .top-customer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fr8-green-desk .top-customer-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 10px 0; border-top: 1px solid rgba(231, 242, 236, 0.08); animation: fr8-fade-up 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }
.fr8-green-desk .top-customer-list li:first-child { border-top: 0; }
.fr8-green-desk .top-customer-list strong { display: block; color: #F4FFF9; font-size: 12px; font-weight: 600; }
.fr8-green-desk .top-customer-list small { display: block; margin-top: 2px; color: rgba(231, 242, 236, 0.5); font-size: 10px; }
.fr8-green-desk .top-customer-list b { color: #F4FFF9; font-size: 11px; font-variant-numeric: tabular-nums; }
.fr8-green-desk .top-customer-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: rgba(231, 242, 236, 0.08); overflow: hidden; }
.fr8-green-desk .top-customer-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14956A, #7DFFC6); transform-origin: left center; animation: fr8-bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fr8-green-desk .top-customer-empty { color: rgba(231, 242, 236, 0.55); font-size: 11px; }
.fr8-green-desk .console-ring-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.fr8-green-desk .console-ring-metrics > div { padding: 8px 6px; background: rgba(231, 242, 236, 0.03); border: 1px solid rgba(125, 255, 198, 0.10); border-radius: 10px; text-align: center; }
.fr8-green-desk .console-ring-metrics span { display: block; color: rgba(231, 242, 236, 0.5); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.fr8-green-desk .console-ring-metrics strong { display: block; margin-top: 4px; color: #F4FFF9; font-size: 12px; font-variant-numeric: tabular-nums; }
.fr8-green-desk .status-pill { display: inline-flex; align-items: center; padding: 4px 9px; border: 1px solid rgba(125, 255, 198, 0.18); border-radius: 999px; background: rgba(231, 242, 236, 0.06); color: #E7F2EC; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.fr8-green-desk .status-pill.is-good { background: rgba(61, 220, 151, 0.14); border-color: rgba(61, 220, 151, 0.35); color: #7DFFC6; }
.fr8-green-desk .status-pill.is-live { background: rgba(86, 184, 255, 0.14); border-color: rgba(86, 184, 255, 0.32); color: #9FD2FF; }
.fr8-green-desk .status-pill.is-work { background: rgba(240, 169, 79, 0.14); border-color: rgba(240, 169, 79, 0.32); color: #F0C489; }
.fr8-green-desk .status-pill.is-dim { color: rgba(231, 242, 236, 0.55); }
.fr8-green-desk .account-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
.fr8-green-desk .account-kpi { display: flex; align-items: flex-start; gap: 11px; min-width: 0; min-height: 104px; padding: 13px 14px; background: #1A201E; border: 1px solid rgba(125, 255, 198, 0.10); border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); animation: fr8-metric-in 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }
.fr8-green-desk .account-kpi .stat-icon { width: 30px; height: 30px; }
.fr8-green-desk .account-kpis .account-kpi:nth-child(1) .stat-icon { background: rgba(61, 220, 151, 0.16); color: #7DFFC6; }
.fr8-green-desk .account-kpis .account-kpi:nth-child(2) .stat-icon { background: rgba(240, 169, 79, 0.16); color: #F0A94F; }
.fr8-green-desk .account-kpis .account-kpi:nth-child(3) .stat-icon { background: rgba(240, 120, 123, 0.16); color: #F0787B; }
.fr8-green-desk .account-kpis .account-kpi:nth-child(4) .stat-icon { background: rgba(86, 184, 255, 0.16); color: #56B8FF; }
.fr8-green-desk .account-kpis .account-kpi:nth-child(5) .stat-icon { background: rgba(232, 200, 74, 0.16); color: #E8C84A; }
.fr8-green-desk .account-kpi > div { min-width: 0; }
.fr8-green-desk .account-kpi-label { display: block; color: rgba(231, 242, 236, 0.58); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.fr8-green-desk .account-kpi strong { display: block; margin-top: 6px; color: #F4FFF9; font-family: var(--font-sans); font-size: clamp(0.95rem, 1.05vw, 1.15rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.fr8-green-desk .account-kpi small { display: block; margin-top: 4px; color: rgba(231, 242, 236, 0.42); font-size: 10px; }
.fr8-green-desk .console-currency-legend { display: inline-flex; align-items: center; gap: 6px; }
.fr8-green-desk .console-currency-legend i { width: 8px; height: 8px; border-radius: 3px; }
.fr8-green-desk .console-column-rate { fill: rgba(231, 242, 236, 0.58); font-size: 9px; }
.fr8-green-desk .console-column-value,
.fr8-green-desk .console-column-rate,
.fr8-green-desk .console-column-label { animation: fr8-fade-in 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms + 0.35s); }
.fr8-green-desk .console-grid-line,
.fr8-green-desk .console-axis-label,
.fr8-green-desk .console-baseline { animation: fr8-fade-in 0.6s ease-out both; }
.fr8-green-desk .console-figure figcaption { animation: fr8-fade-up 0.5s ease-out 0.55s both; }
.fr8-green-desk .stat-icon,
.fr8-green-desk .console-metric-icon { animation: fr8-icon-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 0.1s); }
.fr8-green-desk .desk-step { animation: fr8-fade-up 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 60ms); }
.fr8-green-desk .console-side-list li,
.fr8-green-desk .console-queue li,
.fr8-green-desk .console-legend li { animation: fr8-fade-up 0.45s ease-out both; animation-delay: calc(var(--i, 0) * 55ms); }
.fr8-green-desk .console-masthead { border-bottom: 0; padding-bottom: 4px; }
.fr8-green-desk .console-masthead h1 { font-family: var(--font-sans); font-size: clamp(1.7rem, 2.2vw, 2.05rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; text-transform: none; }
.fr8-green-desk .console-statusbar { border: 0; margin: 0 0 6px; }
.fr8-green-desk .console-figure svg { max-height: 280px; }
.fr8-green-desk .console-ledger {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
  border-bottom: 0;
}
.fr8-green-desk .console-board-lower { grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.8fr); }
.fr8-green-desk .console-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fr8-green-desk .console-side-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(231, 242, 236, 0.04); }
.fr8-green-desk .console-side-list strong { display: block; color: #F4FFF9; font-size: 13px; font-weight: 600; }
.fr8-green-desk .console-side-list small { display: block; margin-top: 2px; color: rgba(231, 242, 236, 0.5); font-size: 11px; }
.fr8-green-desk .console-side-list .btn { border-radius: 999px; background: rgba(31, 169, 122, 0.16); border-color: transparent; color: #7DFFC6; }
.fr8-green-desk .console-legend li { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "label count pct" "bar bar bar"; gap: 8px 10px; padding: 11px 0; }
.fr8-green-desk .console-mix-label { grid-area: label; }
.fr8-green-desk .console-legend b { grid-area: count; }
.fr8-green-desk .console-legend em { grid-area: pct; }
.fr8-green-desk .console-mix-track { grid-area: bar; height: 10px; }
.fr8-green-desk .console-ring { width: 168px; height: 168px; margin: 4px auto 12px; }
.fr8-green-desk .console-ring-track { stroke: rgba(231, 242, 236, 0.08); stroke-width: 9; }
.fr8-green-desk .console-ring-value { stroke-width: 9; filter: drop-shadow(0 0 10px rgba(61, 220, 151, 0.35)); }
.fr8-green-desk .console-ring-stop-a { stop-color: #E8C84A; }
.fr8-green-desk .console-ring-stop-b { stop-color: #56B8FF; }
.fr8-green-desk .console-ring-stop-c { stop-color: #3DDC97; }
.fr8-green-desk .console-ring-stop-d { stop-color: #F0A94F; }
.fr8-green-desk .console-ring-copy { width: 118px; height: 118px; background: #1A201E; }
.fr8-green-desk .console-ring-copy strong { color: #F4FFF9; font-family: var(--font-sans); font-size: 28px; font-weight: 600; line-height: 1; }
.fr8-green-desk .console-ring-copy small { max-width: 12ch; color: rgba(231, 242, 236, 0.55); font-size: 10px; line-height: 1.3; }
.fr8-green-desk .console-live i { animation: fr8-live-pulse 2.4s ease-in-out infinite; }
.fr8-green-desk .console-mix-track > span,
.fr8-green-desk .broker-chart-track > span { transform-origin: left center; animation: fr8-bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fr8-green-desk .console-metric {
  padding: 16px 16px 14px;
  background: #1A201E;
  border: 1px solid rgba(125, 255, 198, 0.10);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: fr8-metric-in 0.45s ease-out both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.fr8-green-desk .console-metric:first-child,
.fr8-green-desk .console-metric:last-child { padding: 16px 16px 14px; }
.fr8-green-desk .console-metric-icon {
  border-color: transparent;
  background: rgba(31, 169, 122, 0.16);
  color: #7DFFC6;
}
.fr8-green-desk .console-metric:nth-child(2) .console-metric-icon { background: rgba(224, 161, 90, 0.16); color: #F0B878; }
.fr8-green-desk .console-metric:nth-child(3) .console-metric-icon { background: rgba(224, 122, 61, 0.16); color: #F09A63; }
.fr8-green-desk .console-metric:nth-child(4) .console-metric-icon { background: rgba(47, 191, 138, 0.16); color: #5FE0AE; }
.fr8-green-desk .console-metric:nth-child(5) .console-metric-icon { background: rgba(61, 220, 151, 0.16); color: #3DDC97; }
.fr8-green-desk .console-metric.is-alert strong { color: #F4FFF9; }
.fr8-green-desk .console-grid-line { stroke: rgba(231, 242, 236, 0.08); }
.fr8-green-desk .console-axis-label { fill: rgba(231, 242, 236, 0.38); }
.fr8-green-desk .console-area-stop-top { stop-color: #3DDC97; stop-opacity: 0.36; }
.fr8-green-desk .console-area-stop-bottom { stop-color: #3DDC97; stop-opacity: 0; }
.fr8-green-desk .console-line-stop-a { stop-color: #14956A; }
.fr8-green-desk .console-line-stop-b { stop-color: #7DFFC6; }
.fr8-green-desk .console-line { filter: drop-shadow(0 6px 12px rgba(47, 191, 138, 0.35)); }
.fr8-green-desk .console-point-dot { stroke: #1A201E; }
.fr8-green-desk .console-point.is-current .console-point-dot { fill: #E7FFF4; }
.fr8-green-desk .console-point-halo { stroke: #3DDC97; }
.fr8-green-desk .console-tip rect { fill: #0E1412; stroke: rgba(125, 255, 198, 0.24); }
.fr8-green-desk .console-tip text { fill: #E7F2EC; }
.fr8-green-desk .broker-chart-row.is-lead .broker-chart-track > span { background: #3DDC97; }
.fr8-green-desk .broker-chart-row.is-lead strong { color: #F4FFF9; }
.fr8-green-desk .broker-chart-track > span,
.fr8-green-desk .console-mix-track > span,
.fr8-green-desk .console-swatch.is-accent { background: #1FA97A; }
.fr8-green-desk .console-mix-track { height: 8px; background: rgba(231, 242, 236, 0.08); }
.fr8-green-desk .console-mix-track > span.is-accent { background: linear-gradient(90deg, #14956A, #7DFFC6); }
.fr8-green-desk .console-mix-track > span.is-dim,
.fr8-green-desk .console-swatch.is-dim { background: rgba(231, 242, 236, 0.22); }
.fr8-green-desk .load-route,
.fr8-green-desk .load-progress,
.fr8-green-desk .load-next { background: #1A201E; border-color: rgba(125, 255, 198, 0.10); }
.fr8-green-desk .load-next { border-left-color: #3DDC97; }
.fr8-green-desk .load-status { color: #7DFFC6; border-color: rgba(61, 220, 151, 0.35); }
.fr8-green-desk .load-steps li.is-done .load-step-mark,
.fr8-green-desk .load-progress-track span { background: #1FA97A; border-color: #1FA97A; color: #04140F; }
.fr8-green-desk .load-steps li.is-linked::after { background: rgba(61, 220, 151, 0.55); }
.fr8-green-desk .load-route-line::after { border-color: #3DDC97; background: #3DDC97; }
.fr8-green-desk .load-map-canvas { background: #161C1A; }
.fr8-green-desk .load-map-land { fill: #222826; stroke: #343C38; }
.fr8-green-desk .load-map-borders { stroke: #2A322E; }
.fr8-green-desk .load-map-countries text { fill: rgba(231, 242, 236, 0.38); }
.fr8-green-desk .load-map-route { stroke: #3DDC97; }
.fr8-green-desk .load-map-route-under { stroke: #161C1A; }
.fr8-green-desk .load-map-pin-dot { border-color: #E7F2EC; background: #161C1A; box-shadow: 0 0 0 3px rgba(12, 24, 21, 0.85); }
.fr8-green-desk .load-map-pin-delivery .load-map-pin-dot { background: #3DDC97; border-color: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.22); }
.fr8-green-desk .load-map-pin-label { background: #1A201E; color: #E7F2EC; }
.fr8-green-desk .load-editor-nav { flex-wrap: wrap; overflow: visible; }
.fr8-green-desk .load-dialog-form { overflow-x: clip; }
.fr8-green-desk .load-editor-dialog,
.fr8-green-desk .load-spatial-preview { background: #1A201E; color: #E7F2EC; }
.fr8-green-desk .load-editor-scrim { background: rgba(8, 10, 9, 0.62); }
.fr8-green-desk .load-editor-close:hover { background: #1FA97A; border-color: #1FA97A; color: #04140F; }
.fr8-green-desk .footer { color: rgba(231, 242, 236, 0.48); border-color: rgba(125, 255, 198, 0.10); }
.fr8-green-desk .desk-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.fr8-green-desk .desk-flow-note { grid-column: 1 / -1; margin: 0; color: rgba(231, 242, 236, 0.5); font-size: 11.5px; }
.fr8-green-desk .desk-step { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; padding: 14px 14px 12px; background: #1A201E; border: 1px solid rgba(125, 255, 198, 0.10); border-radius: 16px; color: #E7F2EC; font: inherit; text-align: left; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.fr8-green-desk .desk-step span { color: #7DFFC6; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.fr8-green-desk .desk-step strong { color: #F4FFF9; font-family: var(--font-display); font-size: 28px; font-weight: 600; line-height: 1; }
.fr8-green-desk .desk-step small { color: rgba(231, 242, 236, 0.52); font-size: 11px; line-height: 1.35; }
.fr8-green-desk .desk-step:hover { border-color: rgba(61, 220, 151, 0.55); background: rgba(31, 169, 122, 0.12); }
.fr8-green-desk .lane-assist { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; background: rgba(31, 169, 122, 0.12); border: 1px solid rgba(61, 220, 151, 0.28); border-radius: 14px; }
.fr8-green-desk .lane-assist[hidden] { display: none; }
.fr8-green-desk .lane-assist p { margin: 0; color: #E7F2EC; font-size: 12.5px; line-height: 1.5; }
@media (max-width: 1100px) {
  .fr8-green-desk .console-panel-mix { display: flex; flex-direction: column; }
  .fr8-green-desk .admin-margin-layout { grid-template-columns: 1fr; }
  .fr8-green-desk .top-customers { position: static; }
  .fr8-green-desk .console-ledger,
  .fr8-green-desk .account-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fr8-green-desk .sidebar,
  .fr8-green-desk .broker-nav-mobile { background: #161C1A; }
  .fr8-green-desk .broker-nav-mobile > a.active,
  .fr8-green-desk .broker-nav-mobile .role-nav-switch a.active { box-shadow: none; background: rgba(31, 169, 122, 0.18); color: #E7FFF4; }
  .fr8-green-desk .console-ledger,
  .fr8-green-desk .account-kpis,
  .fr8-green-desk .desk-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fr8-green-desk .console-board,
  .fr8-green-desk .console-board-lower { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fr8-green-desk .desk-step,
  .fr8-green-desk .btn { transition: none; }
  .fr8-green-desk .console-live i,
  .fr8-green-desk .console-metric,
  .fr8-green-desk .stats .stat,
  .fr8-green-desk .console-mix-track > span,
  .fr8-green-desk .broker-chart-track > span,
  .fr8-green-desk .console-column-bar,
  .fr8-green-desk .console-column-value,
  .fr8-green-desk .console-column-rate,
  .fr8-green-desk .console-column-label,
  .fr8-green-desk .console-grid-line,
  .fr8-green-desk .console-axis-label,
  .fr8-green-desk .console-baseline,
  .fr8-green-desk .console-figure figcaption,
  .fr8-green-desk .account-kpi,
  .fr8-green-desk .stat-icon,
  .fr8-green-desk .console-metric-icon,
  .fr8-green-desk .desk-step,
  .fr8-green-desk .console-side-list li,
  .fr8-green-desk .console-queue li,
  .fr8-green-desk .console-legend li,
  .fr8-green-desk .top-customer-list li,
  .fr8-green-desk .top-customer-track > span,
  .console-line,
  .console-area,
  .console-point-dot,
  .console-point-halo,
  .console-ring-value { animation: none; }
  .console-line { stroke-dasharray: none; }
  .console-point-dot,
  .console-tip { transition: none; }
}
