    @font-face {
      font-family:"Merriweather"; font-style:normal; font-weight:400; font-display:swap;
      src:url("/assets/fonts/merriweather-latin-400.woff2") format("woff2");
    }
    @font-face {
      font-family:"Merriweather"; font-style:normal; font-weight:700; font-display:swap;
      src:url("/assets/fonts/merriweather-latin-700.woff2") format("woff2");
    }
    @font-face {
      font-family:"Merriweather"; font-style:italic; font-weight:400; font-display:swap;
      src:url("/assets/fonts/merriweather-latin-italic.woff2") format("woff2");
    }
    @font-face {
      font-family:"Source Sans 3"; font-style:normal; font-weight:400 700; font-display:swap;
      src:url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
    }
    :root {
      --bg: #f5efe6;
      --bg-2: #efe6da;
      --ink: #111111;
      --muted: #6f6258;
      --panel: #18130f;
      --panel-2: #231711;
      --card: rgba(255, 251, 245, 0.78);
      --line: rgba(17, 17, 17, 0.08);
      --line-strong: rgba(17, 17, 17, 0.14);
      --orange: #f26422;
      --orange-2: #ff7a2f;
      --green: #20b26b;
      --red: #d9534f;
      --gold: #c89b3c;
      --shadow: 0 18px 45px rgba(35, 23, 17, 0.14);
      --radius-xl: 28px;
      --radius-lg: 22px;
      --radius-md: 18px;
      --radius-sm: 14px;
      --max: 1520px;
      --serif: Georgia, "Times New Roman", serif;
      --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: var(--sans);
      color: var(--ink);
      background:
        radial-gradient(1200px 700px at 80% -10%, rgba(242, 100, 34, 0.18), transparent 60%),
        radial-gradient(900px 540px at 12% 0%, rgba(17, 17, 17, 0.06), transparent 58%),
        linear-gradient(180deg, var(--bg) 0%, #f8f3eb 100%);
      min-height: 100vh;
    }

    a { color: inherit; }
    button, input { font: inherit; }

    .shell {
      max-width: var(--max);
      margin: 0 auto;
      padding: 18px 18px 26px;
    }

    .topbar {
      display: grid;
      grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(220px, 280px);
      grid-template-areas:
        'brand tabs actions'
        'routing routing routing';
      gap: 14px 16px;
      align-items: center;
      padding: 6px 2px 16px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 230px;
      grid-area: brand;
    }

    .brand-mark {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: radial-gradient(circle at 35% 35%, #2f241e 0 18%, #18130f 19% 48%, #f26422 49% 52%, #18130f 53% 100%);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 0 0 1px rgba(17,17,17,0.08);
    }

    .brand-title {
      font-family: var(--serif);
      font-size: 1.15rem;
      line-height: 1;
      letter-spacing: -0.03em;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 0.72rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #5d5147;
      background: rgba(255,255,255,0.42);
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 8px 12px;
      white-space: nowrap;
    }


    .brand-meta { display:grid; gap:7px; }
    .puerto-rico-clock { display:grid; grid-template-columns:auto auto; gap:5px 12px; align-items:baseline; padding:12px 14px 11px; color:#fff; background:#171717; border:1px solid rgba(255,255,255,.22); border-left:3px solid #f26422; border-radius:3px; box-shadow:inset 0 0 18px rgba(255,255,255,.035); font-family:var(--mono); font-variant-numeric:tabular-nums; }
    .puerto-rico-clock strong { color:#fff; font-size:1.28rem; line-height:1; letter-spacing:.1em; text-shadow:0 0 12px rgba(255,255,255,.22); }
    .puerto-rico-clock span { color:#fff; font-size:.72rem; line-height:1; letter-spacing:.16em; text-transform:uppercase; }
    .puerto-rico-clock small { grid-column:1 / -1; color:#fff; font-size:.72rem; line-height:1.35; letter-spacing:.12em; opacity:.82; }
    .tabs {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      min-width: 0;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      touch-action: pan-x;
      scrollbar-width: none;
      grid-area: tabs;
    }
    .tabs::-webkit-scrollbar { display: none; }

    .tab {
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.45);
      color: #2d241d;
      border-radius: 999px;
      padding: 10px 15px;
      cursor: pointer;
      transition: transform .16s ease, background .16s ease, border-color .16s ease;
      box-shadow: 0 8px 20px rgba(17,17,17,0.05);
      white-space: nowrap;
      flex: 0 0 auto;
    }
    .tab:hover { transform: translateY(-1px); border-color: rgba(242,100,34,0.3); }
    .tab.active {
      background: #191210;
      color: #fff;
      border-color: transparent;
      box-shadow: 0 12px 25px rgba(17,17,17,0.15);
    }
    .tab { position: relative; }
    .tab[data-badge]::after {
      content: attr(data-badge);
      position: absolute;
      top: -3px;
      right: -3px;
      background: #c71936;
      color: #fff;
      font-size: 0.6rem;
      font-weight: 700;
      line-height: 1;
      padding: 2px 5px;
      border-radius: 8px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
      z-index: 10;
    }
    .tab[data-view="telegram-chat"] {
      border-left: 2px solid #229ED9 !important;
      padding-left: 10px;
    }
    .tab[data-view="telegram-chat"]::before {
      content: '🔵 ';
      font-size: 0.8em;
    }

    .top-actions {
      display: flex;
      gap: 10px;
      align-items: center;
      justify-content: flex-end;
      width: 100%;
      min-width: 0;
      grid-area: actions;
    }

    .routing-strip {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 14px;
      align-items: center;
      margin-top: 14px;
      padding: 14px 16px;
      border: 1px solid rgba(17,17,17,0.08);
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,247,239,0.92));
      box-shadow: 0 12px 28px rgba(17,17,17,0.06);
    }
    .routing-strip-stage {
      display: grid;
      grid-template-columns: 46px 20px 46px;
      gap: 6px;
      align-items: center;
      justify-items: center;
      padding-right: 6px;
      border-right: 1px solid rgba(17,17,17,0.08);
    }
    .routing-strip-face {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 2px solid rgba(17,17,17,0.12);
      background-position: center 30%;
      background-size: cover;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 0 0 4px rgba(255,255,255,0.55);
    }
    .routing-strip-face.routing-zeus {
      background-image: url('/assets/deities/zeus.webp');
      border-color: rgba(242,100,34,0.56);
    }
    .routing-strip-face.routing-agent {
      background-image: var(--routing-strip-agent-face, url('/assets/deities/zeus.webp'));
    }
    .routing-strip-bolt {
      color: var(--orange);
      font: 700 1.55rem/1 var(--mono);
      text-shadow: 0 0 12px rgba(242,100,34,0.28);
      animation: routingStripPulse 1.4s ease-in-out infinite;
    }
    .routing-strip-copy {
      min-width: 0;
    }
    .routing-strip-copy .section-label {
      margin-bottom: 5px;
    }
    .routing-strip-state {
      color: #201711;
      font-family: var(--serif);
      font-size: 1.05rem;
      line-height: 1.15;
      font-weight: 700;
    }
    .routing-strip-caption {
      margin-top: 4px;
      color: var(--muted);
      font-size: 0.88rem;
      line-height: 1.35;
    }
    .routing-strip-path {
      margin-top: 6px;
      color: #5b4639;
      font: 600 0.72rem/1.3 var(--mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      overflow-wrap: anywhere;
    }
    .routing-strip-tabs {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 8px;
    }
    .routing-strip-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 11px;
      border-radius: 999px;
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.7);
      color: #3a2f27;
      font: 700 0.68rem/1 var(--mono);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .routing-strip-chip.active {
      background: #191210;
      color: #fff;
      border-color: transparent;
    }
    @keyframes routingStripPulse { 50% { transform: translateY(-1px) scale(1.04); filter: brightness(1.2); } }

    .search {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      min-width: 340px;
      border-radius: 999px;
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.55);
      box-shadow: 0 8px 20px rgba(17,17,17,0.04);
    }

    .search input {
      border: 0;
      outline: none;
      background: transparent;
      width: 100%;
      color: var(--ink);
    }

    .icon-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.6);
      display: grid;
      place-items: center;
      cursor: pointer;
      box-shadow: 0 8px 20px rgba(17,17,17,0.04);
    }

    .content {
      display: grid;
      gap: 18px;
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.9fr) minmax(360px, 0.95fr);
      gap: 18px;
    }

    .panel {
      border: 1px solid rgba(17,17,17,0.08);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .orchestrator {
      position: relative;
      border-radius: 32px;
      min-height: 610px;
      background:
        radial-gradient(700px 420px at 75% 22%, rgba(242,100,34,0.35), transparent 60%),
        radial-gradient(600px 380px at 56% 62%, rgba(255,255,255,0.04), transparent 52%),
        linear-gradient(145deg, #120e0b 0%, #0d0907 48%, #1e120d 100%);
      color: #f7efe6;
      padding: 26px;
    }

    .orchestrator::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(circle at 80% 45%, rgba(255, 140, 74, 0.08), transparent 18%);
      pointer-events: none;
    }

    .orchestrator-top {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 14px;
      margin-bottom: 16px;
    }

    .eyebrow {
      color: rgba(255, 235, 221, 0.74);
      letter-spacing: 0.28em;
      font-size: 0.71rem;
      text-transform: uppercase;
      margin-bottom: 14px;
    }

    .headline {
      margin: 0;
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(3.1rem, 6vw, 5.6rem);
      line-height: 0.9;
      letter-spacing: -0.06em;
      max-width: 10ch;
    }

    .headline .orange {
      color: #ff8a4b;
      font-style: italic;
      display: block;
    }

    .lede {
      max-width: 54ch;
      margin-top: 18px;
      color: rgba(247, 239, 230, 0.78);
      line-height: 1.6;
      font-size: 0.98rem;
    }

    .status-pills {
      display: grid;
      gap: 10px;
      justify-items: end;
    }

    .status-pill {
      padding: 11px 14px;
      border-radius: 999px;
      color: #fff7f0;
      font-size: 0.8rem;
      border: 1px solid rgba(255,255,255,0.10);
      background: rgba(255,255,255,0.08);
      backdrop-filter: blur(8px);
    }

    .status-pill.orange { background: rgba(242,100,34,0.95); }
    .status-pill.dark { background: rgba(255,255,255,0.08); }

    .network {
      position: relative;
      height: 420px;
      margin-top: 24px;
      border-radius: 26px;
      display: grid;
      place-items: center;
    }

    .network svg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      overflow: visible;
    }

    .node {
      position: absolute;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: rgba(7, 6, 5, 0.7);
      border: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 0 0 1px rgba(242,100,34,0.12), 0 0 28px rgba(242,100,34,0.18);
      font-size: 0.72rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #fff3ea;
      cursor: pointer;
      transform: translate(-50%, -50%);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .node:hover { transform: translate(-50%, -50%) scale(1.04); box-shadow: 0 0 0 1px rgba(242,100,34,0.28), 0 0 36px rgba(242,100,34,0.26); }
    .node.center {
      left: 50%;
      top: 50%;
      width: 96px;
      height: 96px;
      background: radial-gradient(circle at 35% 35%, #281713 0%, #100b09 65%);
      border-color: rgba(242,100,34,0.58);
      font-size: 0.86rem;
      font-weight: 700;
      letter-spacing: 0.14em;
    }
    .node small {
      display: block;
      position: absolute;
      top: calc(100% + 6px);
      left: 50%;
      transform: translateX(-50%);
      min-width: max-content;
      font-size: 0.55rem;
      letter-spacing: 0.16em;
      opacity: 0.75;
      white-space: nowrap;
    }

    .n1,.n12 { left:4.5%; } .n2,.n13 { left:13.6%; } .n3,.n14 { left:22.7%; }
    .n4,.n15 { left:31.8%; } .n5,.n16 { left:40.9%; } .n6,.n17 { left:50%; }
    .n7,.n18 { left:59.1%; } .n8,.n19 { left:68.2%; } .n9,.n20 { left:77.3%; }
    .n10,.n21 { left:86.4%; } .n11,.n22 { left:95.5%; }
    .n23 { left:5%; } .n24 { left:15%; } .n25 { left:25%; } .n26 { left:35%; }
    .n27 { left:45%; } .n28 { left:55%; } .n29 { left:65%; } .n30 { left:75%; }
    .n31 { left:85%; } .n32 { left:95%; }
    .n33 { left:5%; } .n34 { left:20%; } .n35 { left:35%; } .n36 { left:50%; }
    .n37 { left:65%; } .n38 { left:80%; } .n39 { left:95%; }
    .n1,.n2,.n3,.n4,.n5,.n6,.n7,.n8,.n9,.n10,.n11 { top:18%; }
    .n23,.n24,.n25,.n26,.n27,.n28,.n29,.n30,.n31,.n32 { top:36%; }
    .n33,.n34,.n35,.n36,.n37,.n38,.n39 { top:64%; }
    .n12,.n13,.n14,.n15,.n16,.n17,.n18,.n19,.n20,.n21,.n22 { top:82%; }

    .right {
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 18px;
    }

    .activity {
      border-radius: 32px;
      background: linear-gradient(180deg, #ff6a1f 0%, #fb5f18 100%);
      color: #fff7ef;
      padding: 22px;
      min-height: 610px;
      position: relative;
      overflow: hidden;
    }

    .activity::before {
      content: "";
      position: absolute;
      inset: auto -70px -70px auto;
      width: 220px;
      height: 220px;
      border-radius: 50%;
      background: rgba(255,255,255,0.08);
      filter: blur(3px);
    }

    .activity h2 {
      margin: 0;
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(2.4rem, 4vw, 4.2rem);
      line-height: 0.92;
      max-width: 7ch;
      letter-spacing: -0.05em;
    }

    .activity .sub {
      margin-top: 10px;
      color: rgba(255,250,245,0.85);
      font-size: 0.82rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .feed {
      margin-top: 18px;
      display: grid;
      gap: 10px;
      position: relative;
      z-index: 1;
    }

    .feed-item {
      border-radius: 20px;
      background: rgba(255,255,255,0.13);
      border: 1px solid rgba(255,255,255,0.12);
      padding: 12px 14px;
      backdrop-filter: blur(8px);
    }

    .feed-item .row {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      align-items: center;
      font-size: 0.8rem;
      margin-bottom: 6px;
    }

    .feed-item .row b { font-weight: 700; }
    .feed-item p {
      margin: 0;
      line-height: 1.45;
      font-size: 0.92rem;
      color: rgba(255,255,255,0.9);
    }

    .chat-section {
      display: grid;
      grid-template-columns: 310px minmax(0, 1fr);
      gap: 18px;
    }

    .chat-section[data-transport="telegram"] { grid-template-columns: minmax(0, 1fr); }
    .chat-section[data-orchestrator-only="true"] { grid-template-columns: minmax(0, 1fr); }
    .chat-section[data-orchestrator-only="true"] .chat-roster,
    .chat-section[data-transport="telegram"] .chat-roster,
    .chat-section[data-transport="telegram"] .chat-prompts,
    .chat-section[data-transport="telegram"] #newChat,
    .chat-section[data-transport="telegram"] #chooseDocuments,
    .chat-section[data-transport="telegram"] #downloadDraftButton,
    .chat-section[data-transport="telegram"] #emailDraftButton,
    .chat-section[data-transport="telegram"] .chat-upload-state { display: none; }
    
    /* Telegram specific visual differentiation */
    .chat-section[data-transport="telegram"] .chat-stream {
      background: linear-gradient(185deg, rgba(34, 158, 217, 0.08), rgba(34, 158, 217, 0.02));
      border: 1px solid rgba(34, 158, 217, 0.28);
      box-shadow: 0 10px 30px rgba(34, 158, 217, 0.05);
    }
    .chat-section[data-transport="telegram"] .chat-head {
      border-bottom: 2px solid #229ED9 !important;
    }
    .chat-section[data-transport="telegram"] .chat-input-row button {
      background: linear-gradient(135deg, #229ED9, #1d85b8);
      border-color: #229ED9;
      color: #fff;
    }
    .chat-section[data-transport="telegram"] .chat-input-row button:hover {
      background: linear-gradient(135deg, #2fa9e5, #229ED9);
    }
    html[data-theme="dark"] .chat-section[data-transport="telegram"] .chat-stream {
      background: linear-gradient(185deg, rgba(34, 158, 217, 0.15), rgba(34, 158, 217, 0.04));
      border-color: rgba(34, 158, 217, 0.38);
    }

    .chat-roster,
    .chat-stream {
      border-radius: 28px;
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(17,17,17,0.08);
      box-shadow: var(--shadow);
      padding: 18px;
      overflow: hidden;
    }

    .chat-roster h3,
    .chat-stream h3 {
      margin: 0;
      font-family: var(--serif);
      font-size: 1.45rem;
      letter-spacing: -0.03em;
    }

    .chat-roster p,
    .chat-stream p {
      color: var(--muted);
      line-height: 1.5;
      margin: 10px 0 0;
    }

    .chat-agent-list {
      display: grid;
      gap: 8px;
      margin-top: 14px;
    }

    .chat-agent {
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.66);
      padding: 12px 14px;
      border-radius: 16px;
      cursor: pointer;
      text-align: left;
      transition: transform .16s ease, border-color .16s ease, background .16s ease;
    }

    .chat-agent:hover { transform: translateY(-1px); border-color: rgba(242,100,34,0.28); }
    .chat-agent.active { background: #17110f; color: #fff; border-color: transparent; }
    .chat-agent span { display:block; font-size:0.75rem; opacity:0.72; margin-top:4px; }

    .chat-head {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px;
    }

    .chat-head-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      flex: 0 0 auto;
    }

    .chat-status {
      border-radius: 999px;
      background: #17110f;
      color: #ff8d4e;
      font-family: var(--serif);
      font-style: italic;
      font-size: 1.2rem;
      padding: 10px 14px;
      white-space: nowrap;
    }

    .chat-cosmos {
      position: relative;
      height: 360px;
      margin-top: 16px;
      overflow: hidden;
      border: 1px solid rgba(255,90,34,.22);
      border-radius: 18px;
      background: radial-gradient(circle at 50% 50%, rgba(45,25,18,.9), #09090b 68%);
    }

    .chat-cosmos::before {
      content: 'LIVE AGENT ORBIT';
      position: absolute;
      z-index: 1;
      top: 11px;
      left: 13px;
      color: rgba(255,117,69,.7);
      font: 700 .62rem/1 var(--mono);
      letter-spacing: .18em;
      pointer-events: none;
    }

    #chatCosmosCanvas { width: 100%; height: 100%; display: block; }

    .typing-indicator {
      display: none;
      align-items: center;
      gap: 10px;
      margin-top: 14px;
      color: #8f7b6a;
      font-size: 0.82rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .typing-indicator.active { display: flex; }

    .typing-dots {
      display: inline-flex;
      gap: 5px;
      align-items: center;
    }

    .typing-dots span {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--orange);
      animation: pulse 1.2s infinite ease-in-out;
    }

    .typing-dots span:nth-child(2) { animation-delay: 0.15s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.3s; }

    .message-stream {
      margin-top: 16px;
      display: grid;
      gap: 10px;
      max-height: none;
      overflow: visible;
      padding-right: 6px;
    }

    .message {
      border-radius: 18px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.74);
      border: 1px solid rgba(17,17,17,0.08);
    }

    .message .meta {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.7rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: #8f7b6a;
      margin-bottom: 8px;
    }

    .message.user {
      background: #17110f;
      color: #fff;
      margin-left: 18%;
      border-color: transparent;
    }

    .message.user .meta { color: rgba(255,255,255,0.6); }

    .message.assistant {
      margin-right: 10%;
      padding: 16px 18px 18px;
      background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,250,246,0.9));
      border-color: rgba(84,58,42,0.12);
      box-shadow: 0 10px 30px rgba(60,38,24,0.06);
    }

    .message-body {
      color: #2c2521;
      font-size: 0.96rem;
      line-height: 1.62;
      overflow-wrap: anywhere;
    }

    .message-body > :first-child { margin-top: 0; }
    .message-body > :last-child { margin-bottom: 0; }

    .message-body p { margin: 0 0 12px; color: inherit; }
    .message-body h2,
    .message-body h3,
    .message-body h4 {
      margin: 18px 0 8px;
      color: #211a17;
      font-family: var(--serif);
      letter-spacing: -0.02em;
      line-height: 1.2;
    }
    .message-body h2 { font-size: 1.3rem; }
    .message-body h3 { font-size: 1.12rem; }
    .message-body h4 { font-size: 1rem; }
    .message-body strong { color: #191311; font-weight: 750; }
    .message-body code {
      padding: 2px 6px;
      border-radius: 6px;
      background: rgba(72,49,37,0.08);
      color: #b64d1b;
      font-size: 0.88em;
    }
    .message-body ul,
    .message-body ol { margin: 8px 0 14px; padding-left: 22px; }
    .message-body li { margin: 5px 0; padding-left: 3px; }
    .message-body li::marker { color: var(--orange); }

    .message-toolbar {
      display: flex;
      gap: 8px;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid rgba(17,17,17,0.06);
    }
    .message-toolbar button {
      background: transparent;
      border: 1px solid rgba(17,17,17,0.12);
      border-radius: 4px;
      padding: 4px 8px;
      font-size: 0.65rem;
      font-weight: 600;
      color: #74685e;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      cursor: pointer;
    }
    .message-toolbar button:hover {
      background: rgba(17,17,17,0.04);
      color: #3b2c22;
    }
    .message-toolbar button.active {
      background: rgba(228,194,109,0.2);
      border-color: rgba(228,194,109,0.5);
      color: #8c6e2b;
    }

    .response-summary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1px;
      margin: 0 0 16px;
      overflow: hidden;
      border: 1px solid rgba(97,66,48,0.12);
      border-radius: 14px;
      background: rgba(97,66,48,0.1);
    }

    .response-summary-item {
      min-width: 0;
      padding: 10px 12px;
      background: rgba(255,255,255,0.92);
    }

    .response-summary-item.wide { grid-column: 1 / -1; }
    .response-summary-label {
      display: block;
      margin-bottom: 3px;
      color: #a85428;
      font-size: 0.64rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }
    .response-summary-value { color: #3a2d26; line-height: 1.42; }

    .message-table-wrap {
      margin: 10px 0 16px;
      overflow-x: auto;
      border: 1px solid rgba(97,66,48,0.12);
      border-radius: 12px;
    }
    .message-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
    .message-table th,
    .message-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid rgba(97,66,48,0.09); }
    .message-table th { background: #f5ece6; color: #633b27; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
    .message-table tr:last-child td { border-bottom: 0; }

    @media (max-width: 720px) {
      .response-summary { grid-template-columns: 1fr; }
      .response-summary-item.wide { grid-column: auto; }
      .message.assistant { margin-right: 0; }
    }

    .message.tool,
    .message.session_meta {
      background: rgba(242,100,34,0.08);
      border-color: rgba(242,100,34,0.18);
      margin-right: 8%;
    }

    .message.empty {
      opacity: 0.74;
      font-style: italic;
    }

    .message-artifact {
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      margin-top:14px;
      padding:10px 11px;
      border:1px solid rgba(90,72,26,.24);
      border-radius:5px;
      background:linear-gradient(135deg,rgba(255,248,220,.82),rgba(239,229,194,.68));
    }
    .message-artifact-copy { min-width:0; }
    .message-artifact-copy strong { display:block; color:#4d3b12; font:.72rem/1.2 var(--mono); letter-spacing:.07em; text-transform:uppercase; }
    .message-artifact-copy span { display:block; margin-top:3px; color:#6d6248; font-size:.72rem; overflow-wrap:anywhere; }
    .message-artifact-copy small { display:block; margin-top:4px; color:#665d49; font-size:.68rem; }
    .message-artifact-actions { display:flex; flex:0 0 auto; gap:7px; }
    .message-artifact-action { padding:7px 9px; border:1px solid rgba(91,70,22,.32); border-radius:4px; background:#fffaf0; color:#4d3b12; font:700 .66rem/1 var(--mono); cursor:pointer; text-decoration:none; }
    .message-artifact-action:hover,.message-artifact-action:focus-visible { border-color:#8b6c24; color:#17130a; outline:2px solid rgba(139,108,36,.22); outline-offset:2px; }
    @media (max-width:620px) { .message-artifact { align-items:flex-start; flex-direction:column; } }

    .chat-toolbar {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .floating-tools {
      position:fixed;
      z-index:90;
      right:20px;
      bottom:20px;
      display:grid;
      justify-items:end;
      gap:8px;
    }
    .chat-page-nav {
      display:grid;
      grid-template-columns:42px minmax(78px,auto) 42px;
      gap:6px;
      padding:6px;
      border:1px solid rgba(229,197,111,.28);
      border-radius:5px;
      background:rgba(17,19,24,.94);
      box-shadow:0 12px 32px rgba(0,0,0,.38);
      backdrop-filter:blur(10px);
    }
    .chat-page-nav button {
      min-width:0;
      min-height:38px;
      padding:9px 11px;
      border:1px solid rgba(255,255,255,.12);
      border-radius:3px;
      background:#20232a;
      color:#dfe2e7;
      font:700 .63rem/1 var(--mono);
      letter-spacing:.06em;
      text-transform:uppercase;
      cursor:pointer;
    }
    .chat-page-nav button:hover,
    .chat-page-nav button:focus-visible { outline:2px solid #79ceff; outline-offset:2px; border-color:#79ceff; color:#fff; }
    .chat-page-nav button:disabled { opacity:.38; cursor:not-allowed; }
    .chat-page-nav button[aria-pressed="true"] { color:#fff; background:#005ea8; border-color:#73b3e7; }
    @media (max-width:620px) {
      .floating-tools { right:10px; bottom:10px; }
      .chat-page-nav { grid-template-columns:38px 70px 38px; }
      .chat-page-nav button { min-height:36px; padding:8px 6px; }
    }

    .chat-input-row {
      display: flex;
      gap: 10px;
      margin-top: 14px;
      width: 100%;
    }

    .chat-input-row input {
      flex: 1;
      min-width: 0;
      border-radius: 999px;
      border: 1px solid rgba(17,17,17,0.14);
      padding: 12px 18px;
      background: rgba(255,255,255,0.9);
      outline: none;
      font-size: 0.92rem;
    }

    .chat-input-row button {
      border-radius: 999px;
      background: var(--orange);
      color: #fff;
      border: none;
      padding: 12px 24px;
      font-weight: 600;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(242,100,34,0.3);
      transition: transform .15s ease, background .15s ease;
    }
    .chat-input-row button:hover {
      transform: translateY(-1px);
      background: var(--orange-2);
    }

    .chat-input-row button:disabled {
      cursor: not-allowed;
      opacity: 0.58;
      transform: none;
    }

    .chat-input-row #stopBtn {
      border: 1px solid rgba(255, 124, 124, .72);
      background: linear-gradient(135deg, #b92f36, #7f1f29);
      box-shadow: 0 7px 24px rgba(185, 47, 54, .28);
    }
    .chat-input-row #stopBtn::before {
      content: '';
      width: 9px;
      height: 9px;
      display: inline-block;
      margin-right: 8px;
      border-radius: 1px;
      background: currentColor;
    }
    .chat-input-row #stopBtn:hover { background: linear-gradient(135deg, #d23b43, #94242f); }
    .chat-input-row #stopBtn:focus-visible,
    .chat-input-row #sendBtn:focus-visible {
      outline: 3px solid rgba(255, 255, 255, .78);
      outline-offset: 3px;
    }
    .chat-input-row input:disabled { opacity:.72; cursor:wait; }
    .chat-job-progress {
      display:grid;
      grid-template-columns:minmax(0,1fr);
      gap:7px;
      margin-top:12px;
      padding:9px 12px;
      border:1px solid rgba(112,105,235,.34);
      border-radius:4px;
      background:rgba(74,67,190,.09);
      color:#c8c5ff;
      font:600 .72rem/1 var(--mono);
      letter-spacing:.08em;
      text-transform:uppercase;
    }
    .chat-job-progress[hidden] { display:none; }
    .chat-job-progress-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .chat-job-progress-head strong { color:#d7d4ff; font-weight:700; }
    .chat-job-estimate { color:#f4f2ff; font-size:.68rem; text-align:right; white-space:nowrap; }
    .chat-job-progress[data-status="failed"] .chat-job-estimate { max-width:68%; color:#ff9b7a; white-space:normal; }
    .chat-job-track { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; }
    .chat-job-track i { height:3px; border-radius:2px; background:rgba(255,255,255,.12); overflow:hidden; }
    .chat-job-track i::after { content:''; display:block; width:100%; height:100%; background:#6e66ed; transform:translateX(-105%); }
    .chat-job-progress[data-step="1"] .chat-job-track i:nth-child(1)::after,
    .chat-job-progress[data-step="2"] .chat-job-track i:nth-child(-n+2)::after,
    .chat-job-progress[data-step="3"] .chat-job-track i::after { transform:translateX(0); }
    .chat-job-progress[data-running="true"] .chat-job-track i:last-child::after { animation:jobSignal 1.1s ease-in-out infinite; }
    .chat-job-meter { position:relative; height:8px; overflow:hidden; border:1px solid rgba(151,145,255,.34); border-radius:4px; background:rgba(255,255,255,.07); box-shadow:inset 0 1px 3px rgba(0,0,0,.35); }
    .chat-job-meter-fill { position:relative; display:block; width:0; height:100%; border-radius:3px; background:linear-gradient(90deg,#655ce5 0%,#8d83ff 62%,#ff7545 100%); box-shadow:0 0 12px rgba(112,105,235,.64); transition:width 1s ease; overflow:hidden; }
    .chat-job-meter-fill::after { content:''; position:absolute; inset:0; width:34%; background:linear-gradient(90deg,transparent,rgba(255,255,255,.52),transparent); transform:translateX(-120%); animation:estimateSweep 1.8s ease-in-out infinite; }
    .chat-job-log { margin-top:6px; max-height:80px; overflow-y:auto; font-size:0.65rem; color:#a2a8b3; display:grid; gap:4px; font-family:var(--mono); scrollbar-width:none; }
    .chat-job-log::-webkit-scrollbar { display:none; }
    .chat-job-log-entry { display:flex; gap:8px; line-height:1.3; }
    .chat-job-log-entry.active { color:#d7d4ff; }
    .chat-job-log-time { flex:0 0 auto; color:#6e66ed; }
    @keyframes jobSignal { 0%,100%{opacity:.35;transform:translateX(-45%)} 50%{opacity:1;transform:translateX(0)} }
    @keyframes estimateSweep { 0%{transform:translateX(-120%)} 65%,100%{transform:translateX(350%)} }
    @media (prefers-reduced-motion: reduce) {
      .chat-job-progress[data-running="true"] .chat-job-track i:last-child::after,
      .chat-job-meter-fill::after { animation:none; }
      .chat-job-meter-fill { transition:none; }
    }
    @media (max-width:700px) { .chat-job-progress-head { align-items:flex-start; flex-direction:column; gap:5px; } .chat-job-estimate { white-space:normal; text-align:left; } }

    .document-panel { margin-top:14px; padding:14px; border:1px solid rgba(255,255,255,.12); border-radius:8px; background:rgba(15,16,20,.72); }
    .document-panel-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
    .document-panel-head strong { color:#f2f3f5; font-size:.92rem; }
    .document-actions { display:flex; gap:8px; flex-wrap:wrap; }
    .document-action { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 12px; border:1px solid rgba(255,255,255,.15); border-radius:5px; background:#202228; color:#f0f1f3; font:600 .8rem/1 var(--sans); cursor:pointer; }
    .document-action:hover { border-color:rgba(255,90,34,.65); color:#fff; }
    .document-action.primary { border-color:transparent; background:var(--orange); }
    .document-action.clean { border-color:rgba(255,117,85,.32); color:#f2b3a5; }
    .document-action.clean::before { content:'×'; color:#ff7555; font-size:1rem; }
    .document-action.clean:hover:not(:disabled) { border-color:#ff7555; background:rgba(255,90,34,.09); color:#fff; }
    .document-action.clean:disabled { cursor:not-allowed; }
    .document-action[disabled] { opacity:.55; cursor:wait; }
    .document-status { margin-top:9px; color:#9fa3ab; font-size:.78rem; }
    .document-list { display:grid; gap:7px; margin-top:10px; max-height:190px; overflow:auto; }
    .document-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 10px; border:1px solid rgba(255,255,255,.09); border-radius:5px; background:rgba(255,255,255,.035); }
    .document-item-name { min-width:0; color:#e8e9eb; font-size:.8rem; overflow-wrap:anywhere; }
    .document-item-meta { display:block; margin-top:3px; color:#a2a6ae; font-size:.75rem; }
    .document-download { color:#ff7545; font-size:.76rem; font-weight:700; text-decoration:none; white-space:nowrap; }
    .document-download:hover { color:#fff; }
    .document-item-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
    .document-attach { padding:6px 8px; border:1px solid rgba(112,105,235,.55); border-radius:3px; background:rgba(102,94,229,.14); color:#cbc8ff; font:700 .7rem/1 var(--sans); cursor:pointer; }
    .document-attach:hover { border-color:#928cff; color:#fff; }
    .document-attach[disabled] { opacity:.62; cursor:default; }
    .attached-files { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
    .attached-file { padding:5px 8px; border-radius:4px; background:rgba(102,94,229,.18); color:#c9c6ff; font-size:.75rem; }
    .evidence-tabs { display:flex; gap:6px; margin-top:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.09); }
    .evidence-tab { padding:7px 10px; border:1px solid transparent; border-radius:4px; background:transparent; color:#92969f; font:700 .68rem/1 var(--mono); letter-spacing:.09em; text-transform:uppercase; cursor:pointer; }
    .evidence-tab.active { border-color:rgba(117,108,255,.5); background:rgba(117,108,255,.14); color:#d7d4ff; }
    .evidence-view[hidden] { display:none; }
    .document-send-form { display:grid; gap:9px; margin-top:11px; }
    .document-send-form label { display:grid; gap:5px; color:#b8bbc2; font-size:.72rem; }
    .document-send-form select,.document-send-form input,.document-send-form textarea { width:100%; border:1px solid rgba(255,255,255,.14); border-radius:4px; background:#111218; color:#f0f1f3; padding:9px; font:inherit; }
    .document-send-form textarea { min-height:72px; resize:vertical; }
    .document-send-note { color:#92969f; font-size:.72rem; line-height:1.45; }
    .document-send-status { min-height:1.2em; color:#c9c6ff; font-size:.74rem; line-height:1.4; }

    .office-view { display:none; position:relative; min-height:900px; overflow:hidden; grid-template-columns:minmax(0,1fr) auto; align-items:start; border:1px solid rgba(255,255,255,.08); border-radius:28px; background:#0c0907; color:#f6ede3; box-shadow:0 30px 80px rgba(20,12,8,.25); }
    .content.office-mode > section:not(.office-view) { display:none; }
    .content.office-mode .office-view { display:grid; }
    .office-copy { position:relative; z-index:2; max-width:620px; margin:28px 0 24px 30px; pointer-events:none; }
    .office-kicker { color:#c88d70; font-size:.75rem; font-weight:800; letter-spacing:.24em; text-transform:uppercase; }
    .office-copy h2 { margin:12px 0 8px; font-family:var(--serif); font-size:clamp(2.4rem,5vw,4.6rem); font-weight:500; letter-spacing:-.055em; line-height:.98; }
    .office-copy h2 em { color:#d85e30; font-weight:500; }
    .office-copy p { max-width:570px; margin:0; color:#aa9c91; line-height:1.5; }
    .office-stats { position:relative; z-index:3; display:flex; gap:10px; margin:30px 30px 24px 20px; }
    .office-stat { min-width:76px; padding:12px 14px; border:1px solid rgba(255,255,255,.07); border-radius:16px; background:rgba(255,255,255,.055); box-shadow:inset 0 1px rgba(255,255,255,.035); }
    .office-stat span { display:block; color:#8c7a70; font-size:.57rem; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
    .office-stat strong { display:block; margin-top:3px; font-family:var(--serif); font-size:1.8rem; font-weight:500; }
    #officeCanvas { display:block; grid-column:1 / -1; width:100%; height:900px; }
    .office-legend { position:absolute; z-index:3; right:28px; top:215px; display:flex; gap:16px; padding:9px 13px; border:1px solid rgba(255,255,255,.07); border-radius:999px; background:rgba(12,9,7,.76); color:#9d8e83; font-size:.63rem; letter-spacing:.12em; text-transform:uppercase; backdrop-filter:blur(10px); }
    .office-legend i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:50%; box-shadow:0 0 10px currentColor; }
    .office-legend .active { color:#46a7ff; }
    .office-legend .idle { color:#f27638; }
    .workspace-page { min-height:620px; padding:30px; border:1px solid rgba(17,17,17,.08); border-radius:28px; background:rgba(255,255,255,.78); box-shadow:var(--shadow); }
    .workspace-head { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding-bottom:24px; border-bottom:1px solid rgba(17,17,17,.09); }
    .workspace-head h2 { margin:5px 0 7px; font-family:var(--serif); font-size:clamp(2rem,4vw,3.6rem); letter-spacing:-.045em; }
    .workspace-head p { max-width:680px; margin:0; color:var(--muted); line-height:1.55; }
    .view-action { flex:0 0 auto; border:0; border-radius:999px; padding:12px 18px; background:#17110f; color:#fff; font-weight:700; cursor:pointer; }
    .view-action:hover { background:var(--orange); }
    .workflow-grid,.resource-grid,.docs-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }
    .workflow-card,.resource-grid article,.docs-grid article { padding:20px; border:1px solid rgba(17,17,17,.08); border-radius:20px; background:rgba(255,255,255,.75); }
    .workflow-card span,.resource-grid b { color:#c96c3b; font-size:.75rem; letter-spacing:.13em; text-transform:uppercase; }
    .workflow-card h3,.resource-grid h3,.docs-grid h3,.timeline-list h3 { margin:8px 0 7px; font-family:var(--serif); font-size:1.35rem; }
    .workflow-card p,.resource-grid p,.docs-grid p,.timeline-list p { margin:0 0 13px; color:var(--muted); line-height:1.55; }
    .workflow-card > div { color:#7a3c20; font-family:var(--mono); font-size:.78rem; }
    .resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .timeline-list { display:grid; gap:0; margin-top:24px; }
    .timeline-list article { display:grid; grid-template-columns:160px 1fr; gap:22px; padding:19px 4px; border-bottom:1px solid rgba(17,17,17,.08); }
    .timeline-list time { color:#c96c3b; font-size:.75rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
    .timeline-list h3 { margin-top:0; }
    [data-page][hidden] { display:none !important; }

    .chat-refresh {
      border: 1px solid rgba(17,17,17,0.08);
      background: #17110f;
      color: #fff;
      padding: 10px 14px;
      border-radius: 999px;
      cursor: pointer;
    }
    .chat-toolbar-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
    .chat-refresh.new-chat-button {
      display:inline-flex;
      align-items:center;
      gap:7px;
      border-color:rgba(141,131,255,.52);
      color:#ebe9ff;
      background:linear-gradient(135deg,rgba(91,82,205,.28),rgba(31,32,41,.96));
    }
    .new-chat-button::before { content:'+'; color:#a79fff; font:800 1rem/1 var(--mono); }
    .chat-refresh.new-chat-button:hover { border-color:#9b93ff; background:linear-gradient(135deg,rgba(112,102,230,.43),rgba(36,37,48,.98)); }
    .chat-refresh.new-chat-button:disabled { opacity:.46; cursor:not-allowed; }
    .chat-refresh:focus-visible,
    .new-chat-button:focus-visible { outline:3px solid rgba(141,131,255,.48); outline-offset:3px; }
    .chat-refresh.reset-chat-button {
      border-color: rgba(239, 68, 68, 0.45);
      color: #fecaca;
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(31, 32, 41, 0.96));
    }
    .chat-refresh.reset-chat-button:hover {
      border-color: #f87171;
      background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(45, 25, 25, 0.98));
    }
    .chat-refresh.reset-chat-button:focus-visible {
      outline: 3px solid rgba(239, 68, 68, 0.5);
      outline-offset: 3px;
    }
    .email-draft-button {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      min-height:38px;
      padding:9px 13px;
      border:1px solid rgba(228,188,96,.5);
      border-radius:999px;
      background:linear-gradient(135deg,rgba(89,68,25,.64),rgba(27,25,22,.94));
      color:#f4df9d;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 0 16px rgba(228,188,96,.08);
      font:700 .66rem/1 var(--mono);
      letter-spacing:.08em;
      text-transform:uppercase;
      white-space:nowrap;
      cursor:pointer;
      transition:border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;
    }
    .email-draft-button::before { content:'✉'; color:#ffd979; font:700 .9rem/1 Arial,sans-serif; }
    .email-draft-button:hover:not(:disabled),.email-draft-button:focus-visible:not(:disabled) { transform:translateY(-1px); border-color:#f2d47f; color:#fff7dc; box-shadow:0 0 18px rgba(228,188,96,.2); outline:none; }
    .email-draft-button:disabled { opacity:.46; cursor:not-allowed; filter:saturate(.55); }
    .download-draft-button { display:inline-flex; align-items:center; gap:7px; border-color:rgba(228,188,96,.5); color:#f4df9d; }
    .download-draft-button::before { content:'↓'; color:#ffd979; font:800 .92rem/1 var(--mono); }
    .download-draft-button:hover:not(:disabled),.download-draft-button:focus-visible:not(:disabled) { border-color:#f2d47f; color:#fff7dc; box-shadow:0 0 18px rgba(228,188,96,.16); outline:none; }
    .download-draft-button:disabled { opacity:.46; cursor:not-allowed; filter:saturate(.55); }
    .demo-route-button {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      min-height:38px;
      padding:9px 13px;
      border:1px solid rgba(240,200,108,.48);
      border-radius:999px;
      background:rgba(9,11,17,.88);
      color:#f0dfb4;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 0 16px rgba(117,108,255,.12);
      font:700 .66rem/1 var(--mono);
      letter-spacing:.1em;
      text-transform:uppercase;
      white-space:nowrap;
      cursor:pointer;
      transition:border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
    }
    .demo-route-button::before { content:'ϟ'; color:#c7c2ff; font:700 1rem/1 Georgia,serif; text-shadow:0 0 8px #756cff; }
    .demo-route-button:hover { transform:translateY(-1px); border-color:#d9bd72; color:#fff4d2; box-shadow:0 0 20px rgba(117,108,255,.28); }
    .demo-route-button.running { border-color:#8d83ff; color:#fff; box-shadow:0 0 22px rgba(117,108,255,.42); }
    .demo-route-button.running::before { color:#fff; animation:demoBoltPulse .58s steps(2,end) infinite; }
    @keyframes demoBoltPulse { 50% { opacity:.34; text-shadow:0 0 2px #756cff; } }
    .overview-route-toolbar { position:relative; z-index:7; display:flex; align-items:center; justify-content:space-between; gap:14px; margin:14px 0 2px; padding:10px 12px; border:1px solid rgba(213,184,113,.22); background:rgba(8,10,16,.68); }
    .overview-route-toolbar span { color:#aeb4c0; font:.65rem/1.45 var(--mono); letter-spacing:.06em; }
    .overview-route-toolbar .demo-route-button { flex:0 0 auto; }

    .chat-hint { color: var(--muted); font-size: 0.85rem; }

    @keyframes pulse {
      0%, 80%, 100% { transform: translateY(0); opacity: 0.42; }
      40% { transform: translateY(-2px); opacity: 1; }
    }

    .grid-3 {
      display: grid;
      grid-template-columns: 1.1fr 0.9fr 1.2fr;
      gap: 18px;
    }

    .card {
      border-radius: 28px;
      background: rgba(255,255,255,0.74);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(17,17,17,0.08);
      box-shadow: var(--shadow);
      padding: 20px;
      min-height: 240px;
      position: relative;
      overflow: hidden;
    }

    .card .section-label {
      color: #a38673;
      letter-spacing: 0.24em;
      text-transform: uppercase;
      font-size: 0.71rem;
      margin-bottom: 12px;
    }

    .metric {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 16px;
    }

    .metric .value {
      font-family: var(--serif);
      font-size: clamp(4rem, 7vw, 6.4rem);
      line-height: 0.9;
      letter-spacing: -0.08em;
    }

    .metric .meta {
      color: var(--muted);
      font-size: 0.92rem;
      max-width: 22ch;
      line-height: 1.45;
    }

    .mini-bar {
      margin-top: 18px;
      border-radius: 18px;
      background: #14110f;
      color: #f9efe5;
      padding: 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .mini-bar .status {
      color: #ff8d4e;
      font-family: var(--serif);
      font-size: 1.4rem;
      font-style: italic;
    }

    .ring-wrap {
      display: grid;
      place-items: center;
      margin-top: 10px;
    }

    .ring {
      position: relative;
      width: 180px;
      height: 180px;
      border-radius: 50%;
      background:
        conic-gradient(var(--orange) 0 var(--available-pct, 0%), #e6ddd3 var(--available-pct, 0%) 100%);
      display: grid;
      place-items: center;
      box-shadow: inset 0 0 0 1px rgba(17,17,17,0.06);
    }

    .ring::before {
      content: "";
      width: 136px;
      height: 136px;
      border-radius: 50%;
      background: #f4ede5;
      box-shadow: inset 0 0 0 1px rgba(17,17,17,0.05);
    }

    .ring-zeus {
      position: absolute;
      width: 136px;
      height: 136px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center 28%;
      filter: saturate(.92) contrast(1.06);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 22px rgba(255,90,34,.18);
    }

    .ring .ring-text {
      position: absolute;
      right: 6px;
      bottom: 6px;
      display: grid;
      place-items: center;
      min-width: 42px;
      height: 42px;
      padding: 0 8px;
      border: 2px solid #ff5a22;
      border-radius: 999px;
      color: #fff;
      background: rgba(16,17,21,.92);
      font-family: var(--mono);
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0;
      box-shadow: 0 5px 16px rgba(0,0,0,.42);
      z-index: 2;
    }

    .dot-grid {
      display: grid;
      grid-template-columns: repeat(8, 18px);
      gap: 8px;
      justify-content: end;
      margin-top: 18px;
    }

    .dot {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #222;
      opacity: 0.72;
    }
    .dot.orange { background: var(--orange); opacity: 1; }
    .dot.light { background: #ece5dc; opacity: 1; border: 1px solid rgba(17,17,17,0.08); }

    .agents-section {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 18px;
    }

    .sidebar-panel,
    .main-panel {
      border-radius: 28px;
      background: rgba(255,255,255,0.76);
      border: 1px solid rgba(17,17,17,0.08);
      box-shadow: var(--shadow);
      padding: 18px;
    }

    .sidebar-panel h3,
    .main-panel h3 {
      margin: 0 0 10px;
      font-family: var(--serif);
      font-size: 1.4rem;
      letter-spacing: -0.03em;
    }

    .filter-list {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .filter {
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.6);
      padding: 12px 14px;
      border-radius: 16px;
      cursor: pointer;
      text-align: left;
      transition: border-color .16s ease, transform .16s ease, background .16s ease;
    }
    .filter:hover { transform: translateY(-1px); border-color: rgba(242,100,34,0.28); }
    .filter.active { background: #17110f; color: #fff; border-color: transparent; }
    .filter .small { display:block; font-size:0.75rem; color: inherit; opacity:0.72; margin-top:3px; }

    .agent-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
      position: relative;
    }
    #agentLightningCanvas { position:absolute; inset:0; z-index:0; width:100%; height:100%; pointer-events:none; }

    .agent {
      border-radius: 20px;
      border: 1px solid rgba(17,17,17,0.08);
      background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(247, 241, 233, 0.8));
      padding: 14px;
      min-height: 168px;
      display: grid;
      gap: 10px;
      cursor: pointer;
      transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
      position:relative;
      z-index:1;
    }
    .agent:hover { transform: translateY(-2px); border-color: rgba(242,100,34,0.26); box-shadow: 0 16px 28px rgba(17,17,17,0.08); }
    .agent h4 { margin: 0; font-size: 1rem; }
    .agent p { margin: 0; color: var(--muted); line-height: 1.45; font-size: 0.88rem; }
    .agent-status { float:right; display:inline-flex; align-items:center; gap:6px; margin-top:3px; color:#a69287; font-size:.75rem; letter-spacing:.09em; text-transform:uppercase; }
    .agent-status::before { content:''; width:7px; height:7px; border-radius:50%; background:#f27638; box-shadow:0 0 8px rgba(242,118,56,.45); }
    .agent-status.working { color:#287bb9; }
    .agent-status.working::before { background:#379dff; box-shadow:0 0 10px rgba(55,157,255,.7); }
    .agent-status.unavailable::before { background:#aaa; box-shadow:none; }
    .agent-status.misconfigured { color:#c53d2f; }
    .agent-status.misconfigured::before { background:#e44936; box-shadow:0 0 9px rgba(228,73,54,.58); }
    .agent.dispatched { border-color:rgba(117,108,255,.66); box-shadow:0 0 0 2px rgba(117,108,255,.12),0 0 24px rgba(117,108,255,.28); }
    .agent.working { border-color:rgba(69,184,255,.78); box-shadow:0 0 0 2px rgba(69,184,255,.14),0 0 28px rgba(69,184,255,.34); }
    .agent.communicating:not(.working):not(.returning):not(.dispatched) { border-color:rgba(85,220,203,.3); box-shadow:inset 0 2px rgba(85,220,203,.28); }
    .agent.returning { border-color:rgba(255,211,107,.78); box-shadow:0 0 0 2px rgba(255,211,107,.14),0 0 28px rgba(255,174,57,.30); }
    .agent .pill-row { margin-top: auto; }
    .pill-row { display:flex; flex-wrap:wrap; gap:6px; }
    .pill {
      border: 1px solid rgba(17,17,17,0.08);
      background: rgba(255,255,255,0.66);
      color: #3d3129;
      border-radius: 999px;
      padding: 5px 8px;
      font-size: 0.72rem;
    }
    button.route-agent { font: inherit; cursor: pointer; }
    button.route-agent:hover,
    button.route-agent:focus-visible { color:#fff; border-color:#379dff; box-shadow:0 0 12px rgba(55,157,255,.3); outline:none; }

    .stats {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .stat {
      border-radius: 24px;
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(17,17,17,0.08);
      box-shadow: var(--shadow);
      padding: 16px;
      min-height: 150px;
      overflow: hidden;
    }

    .stat .kicker {
      font-size: 0.72rem;
      color: #8f7b6a;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    .stat .big {
      font-family: var(--serif);
      font-size: clamp(2.8rem, 5vw, 4.8rem);
      line-height: 0.92;
      letter-spacing: -0.07em;
    }

    .stat .caption {
      margin-top: 8px;
      color: var(--muted);
      line-height: 1.45;
      font-size: 0.88rem;
    }

    .command {
      margin-top: 12px;
      border-radius: 16px;
      background: #111111;
      color: #f8efe5;
      padding: 12px 14px;
      font-family: var(--mono);
      font-size: 0.78rem;
      display: flex;
      justify-content: space-between;
      gap: 10px;
    }

    .footer {
      margin-top: 18px;
      color: var(--muted);
      font-size: 0.82rem;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      padding: 0 4px;
    }

    .drawer {
      position: fixed;
      right: 16px;
      bottom: 16px;
      width: min(420px, calc(100vw - 32px));
      border-radius: 24px;
      background: rgba(17,17,17,0.96);
      color: #fff7ef;
      box-shadow: 0 24px 54px rgba(17,17,17,0.28);
      padding: 16px;
      display: none;
      z-index: 80;
    }
    .drawer.open { display: block; }
    .drawer-head { display:flex; justify-content:space-between; gap:10px; align-items:start; }
    .drawer h4 { margin: 0; font-size: 1.1rem; }
    .drawer p { color: rgba(255,255,255,0.78); line-height: 1.5; }
    .drawer ul { margin: 10px 0 0; padding-left: 18px; color: rgba(255,255,255,0.82); line-height: 1.5; }
    .drawer button {
      width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: transparent; color:#fff; cursor:pointer;
    }
    .drawer .drawer-chat-cta { width:auto; height:auto; margin-top:16px; padding:10px 14px; border-radius:999px; background:var(--orange); border:0; font-weight:700; }

    .fda-news-launcher { position:relative; z-index:1; display:flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.14); border-radius:999px; padding:12px 17px; background:#ff5a22; color:#fff; box-shadow:0 16px 38px rgba(0,0,0,.35); cursor:pointer; font-weight:800; }
    .fda-news-launcher::before { content:''; width:8px; height:8px; border-radius:50%; background:#fff; box-shadow:0 0 10px rgba(255,255,255,.8); }
    .fda-news-widget { position:fixed; right:20px; bottom:132px; z-index:89; width:min(430px,calc(100vw - 28px)); height:min(650px,calc(100vh - 158px)); display:grid; grid-template-rows:auto auto 1fr auto auto; overflow:hidden; border:1px solid rgba(255,255,255,.14); border-radius:22px; background:#181a1f; color:#f0f1f3; box-shadow:0 26px 70px rgba(0,0,0,.48); }
    .fda-news-widget.expanded { right:50%; bottom:50%; width:min(1100px,calc(100vw - 48px)); height:calc(100vh - 48px); transform:translate(50%,50%); }
    .fda-news-widget.expanded .fda-news-message { max-width:100%; font-size:.94rem; }
    .fda-news-widget.expanded .fda-news-message.user { max-width:72%; }
    .fda-news-widget[hidden] { display:none; }
    .fda-news-head { display:flex; justify-content:space-between; gap:16px; padding:17px 18px 13px; border-bottom:1px solid rgba(255,255,255,.09); }
    .fda-news-head b { display:block; font-family:var(--serif); font-size:1.2rem; }
    .fda-news-head span { display:block; margin-top:3px; color:#b9bdc5; font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; }
    .fda-news-actions { display:flex; align-items:center; gap:8px; }
    .fda-news-close,.fda-news-clear,.fda-news-expand { border:1px solid rgba(255,255,255,.12); background:#22252b; color:#e8e9ec; cursor:pointer; }
    .fda-news-close { width:34px; height:34px; border-radius:10px; }
    .fda-news-clear,.fda-news-expand { height:34px; border-radius:10px; padding:0 10px; font-size:.75rem; }
    .fda-news-scope { padding:10px 18px; color:#b9bdc6; background:rgba(255,90,34,.07); font-size:.76rem; line-height:1.45; }
    .fda-news-messages { min-height:0; overflow:auto; padding:14px 15px; display:grid; align-content:start; gap:10px; }
    .fda-news-message { max-width:92%; padding:11px 12px; border-radius:14px; background:#24272d; color:#e9eaed; font-size:.86rem; line-height:1.5; overflow-wrap:anywhere; }
    .fda-news-message.user { justify-self:end; background:#ff5a22; color:#fff; }
    .fda-news-message.system { color:#aeb3bd; border:1px solid rgba(255,255,255,.08); background:#1c1e23; }
    .fda-news-message.pending { display:flex; align-items:center; gap:9px; color:#d9dce2; }
    .fda-news-message.pending::before { content:''; flex:0 0 auto; width:13px; height:13px; border:2px solid rgba(141,204,255,.25); border-top-color:#8dccff; border-radius:50%; animation:fdaNewsSpin .8s linear infinite; }
    @keyframes fdaNewsSpin { to { transform:rotate(360deg); } }
    .fda-news-message .message-body { color:inherit; font-size:inherit; line-height:inherit; }
    .fda-news-message .message-body a { color:#8dccff; }
    .fda-news-message .message-body h2,.fda-news-message .message-body h3,.fda-news-message .message-body h4,.fda-news-message .message-body strong { color:#f0f1f3; }
    .fda-news-message .message-body code { background:#111318; color:#ff9a70; }
    .fda-news-message .message-table-wrap { border-color:rgba(255,255,255,.12); }
    .fda-news-message .message-table th,.fda-news-message .message-table td { color:#e6e8ec; border-color:rgba(255,255,255,.09); }
    .fda-news-message.user .message-body a { color:#fff; }
    .fda-news-quick { display:flex; gap:7px; overflow-x:auto; padding:0 15px 10px; }
    .fda-news-quick button { flex:0 0 auto; border:1px solid rgba(255,255,255,.11); border-radius:999px; padding:7px 10px; background:#22252b; color:#c8cbd2; cursor:pointer; font-size:.75rem; }
    .fda-news-form { display:grid; grid-template-columns:1fr auto; gap:8px; padding:12px 15px 15px; border-top:1px solid rgba(255,255,255,.09); }
    .fda-news-form input { min-width:0; border:1px solid rgba(255,255,255,.13); border-radius:12px; padding:11px 12px; outline:none; background:#101216; color:#fff; }
    .fda-news-form input:focus { border-color:#ff5a22; }
    .fda-news-form button { border:0; border-radius:12px; padding:0 15px; background:#ff5a22; color:#fff; font-weight:800; cursor:pointer; }
    .fda-news-form button:disabled { opacity:.55; cursor:wait; }

    /* Graphite intelligence theme: technical grid, precision typography,
       restrained orange telemetry, and small violet-blue data accents. */
    :root {
      --bg: #111216;
      --bg-2: #191b20;
      --ink: #f0f1f3;
      --muted: #92969f;
      --panel: #1a1c21;
      --panel-2: #22252b;
      --card: rgba(29, 31, 36, 0.96);
      --line: rgba(255, 255, 255, 0.11);
      --line-strong: rgba(255, 255, 255, 0.20);
      --orange: #ff5a22;
      --orange-2: #ff7442;
      --green: #45d49a;
      --red: #ff6376;
      --gold: #7067ee;
      --shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
      --radius-xl: 8px;
      --radius-lg: 6px;
      --radius-md: 4px;
      --radius-sm: 3px;
    }

    html { background:#101115; }

    body {
      background-color:#101115;
      background:
        radial-gradient(900px 580px at 90% -8%, rgba(92, 83, 230, 0.15), transparent 62%),
        radial-gradient(720px 520px at -8% 100%, rgba(255, 90, 34, 0.07), transparent 65%),
        linear-gradient(135deg, #0d0e11 0%, #17191e 52%, #101115 100%);
      background-color:#101115;
      background-attachment: fixed;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .28;
      background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 92%);
    }
    .shell { position: relative; z-index: 1; }
    .topbar { color: #f7f9ff; }
    .routing-strip {
      grid-area: routing;
      margin-top: 0;
      color: #f2f3f5;
      background:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(155deg, rgba(31, 33, 39, .98), rgba(22, 24, 29, .98));
      background-size: 28px 28px, 28px 28px, auto;
      border: 1px solid var(--line);
      box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035);
      backdrop-filter: blur(14px);
      border-radius: 8px;
    }
    .routing-strip-stage {
      border-right-color: rgba(255,255,255,.08);
    }
    .routing-strip-face {
      border-color: rgba(255,255,255,.12);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09), 0 0 0 4px rgba(0,0,0,0.28);
    }
    .routing-strip-face.routing-zeus {
      border-color: rgba(255, 90, 34, .55);
    }
    .routing-strip-bolt {
      color: #ff7a2f;
    }
    .routing-strip-state {
      color: #f4f5f7;
    }
    .routing-strip-caption { color: #a6acb7; }
    .routing-strip-path { color: #ffb27a; }
    .routing-strip-chip {
      border-color: rgba(255,255,255,.08);
      background: rgba(255,255,255,.04);
      color: #cfd4db;
      backdrop-filter: blur(12px);
    }
    .routing-strip-chip.active {
      background: linear-gradient(135deg, #292c33, #1d1f24);
      color: #fff;
      border-color: rgba(255, 90, 34, .45);
      box-shadow: inset 0 -2px #ff5a22, 0 12px 28px rgba(0, 0, 0, .24);
    }
    .badge,
    .tab,
    .search,
    .icon-btn {
      color: #c8cbd1;
      background: rgba(27, 29, 34, .86);
      border-color: var(--line);
      box-shadow: 0 10px 26px rgba(0, 0, 0, .18), inset 0 1px rgba(255,255,255,.035);
      backdrop-filter: blur(14px);
      border-radius: 4px;
    }
    .search input { color: #f2f3f5; }
    .search input::placeholder { color: #858a94; }
    .tab:hover,
    .filter:hover,
    .chat-agent:hover { border-color: rgba(255, 90, 34, .58); }
    .tab.active {
      color: #fff;
      background: linear-gradient(135deg, #292c33, #1d1f24);
      border-color: rgba(255, 90, 34, .45);
      box-shadow: inset 0 -2px #ff5a22, 0 12px 28px rgba(0, 0, 0, .24);
    }

    .panel,
    .card,
    .sidebar-panel,
    .main-panel,
    .chat-roster,
    .chat-stream,
    .workspace-page,
    .stat {
      color: #f2f3f5;
      border-color: var(--line);
      background:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(155deg, rgba(31, 33, 39, .97), rgba(22, 24, 29, .97));
      background-size: 28px 28px, 28px 28px, auto;
      box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035);
      backdrop-filter: blur(14px);
      border-radius: 8px;
    }
    .orchestrator {
      background:
        linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px),
        radial-gradient(650px 390px at 78% 18%, rgba(91, 83, 225, .17), transparent 60%),
        linear-gradient(145deg, #1c1e23 0%, #17191e 55%, #202329 100%);
      background-size: 34px 34px, 34px 34px, auto, auto;
      color: #f3f4f5;
      border-color: rgba(255, 255, 255, .13);
      border-radius: 8px;
    }
    .orchestrator::before { background: radial-gradient(circle at 80% 45%, rgba(255,90,34,.08), transparent 19%); }
    .eyebrow,
    .section-label,
    .card .section-label { color: #ff7545 !important; }
    .section-label,
    .eyebrow,
    .activity .sub,
    .stat .kicker { font-family: var(--mono); letter-spacing: .18em; }
    .headline,
    .activity h2,
    .workspace-head h2,
    .metric .value,
    .stat .big { font-family: var(--sans); font-weight: 300; }
    .headline .orange { color: #ff6530; }
    .lede { color: #afb2b9; }
    .status-pill { color: #e8e9eb; border-color: rgba(255,255,255,.13); background: rgba(22,24,29,.82); border-radius: 4px; }
    .status-pill.orange { color: #fff; background: linear-gradient(135deg, #ff5a22, #e84915); box-shadow: 0 8px 24px rgba(255,90,34,.18); }
    .status-pill.dark { background: rgba(20, 22, 27, .88); }
    .network svg g { stroke: rgba(255, 255, 255, .18); }
    .network svg circle:first-of-type { fill: rgba(255, 90, 34, .14); }
    .network svg circle:last-of-type { fill: #181a1f; stroke: #ff5a22; }
    .node {
      color: #f7f9ff;
      background: rgba(23, 25, 30, .94);
      border-color: rgba(255, 255, 255, .18);
      box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 0 24px rgba(0, 0, 0, .30);
    }
    .node:hover { box-shadow: 0 0 0 1px rgba(255,90,34,.55), 0 0 30px rgba(255,90,34,.22); }
    .node.center {
      background: radial-gradient(circle at 35% 35%, #5c52dc 0%, #20232a 68%);
      border-color: rgba(255,90,34,.72);
      box-shadow: 0 0 38px rgba(92,82,220,.16);
    }
    .synapse-field,
    .signal-field { fill: none; }
    .synapse {
      fill: none;
      stroke: rgba(255,255,255,.15);
      stroke-width: 1;
      vector-effect: non-scaling-stroke;
    }
    .neural-pulse {
      fill: none;
      stroke: #6d64ea;
      stroke-width: 1.6;
      stroke-linecap: round;
      stroke-dasharray: 3% 97%;
      stroke-dashoffset: 100%;
      opacity: .42;
      vector-effect: non-scaling-stroke;
      animation: neuronSignal 4.8s linear infinite;
      animation-delay: var(--delay, 0s);
    }
    .neural-pulse.working {
      stroke: #ff5a22;
      stroke-width: 3;
      stroke-dasharray: 10% 90%;
      opacity: 1;
      filter: drop-shadow(0 0 5px rgba(255,90,34,.9));
      animation-duration: .82s;
    }
    .node.working {
      border-color: #ff5a22;
      color: #fff;
      animation: neuronNode 1s ease-in-out infinite;
    }
    .node.center.communicating {
      border-color: #8c84ff;
      box-shadow: 0 0 0 1px rgba(140,132,255,.20), 0 0 44px rgba(92,82,220,.42);
    }
    .neural-pulse.communicating:not(.working):not(.returning):not(.dispatched) {
      stroke:#55dccb; stroke-width:1.35; stroke-dasharray:2% 98%; opacity:.28; animation-duration:7.5s;
    }
    .node.communicating:not(.working):not(.returning):not(.dispatched) {
      border-color:rgba(85,220,203,.5); box-shadow:0 0 0 2px rgba(85,220,203,.06),0 0 16px rgba(85,220,203,.16);
    }
    /* Original deity portrait set generated for the MyZeus agent network. */
    .network .node { font-size: 0; isolation: isolate; }
    .network .node::before {
      content: '';
      position: absolute;
      inset: 3px;
      z-index: -1;
      border-radius: 50%;
      background-image: linear-gradient(to top, rgba(5,6,9,.22), transparent 48%), var(--deity-face);
      background-position: center var(--face-y, 34%);
      background-size: cover;
      filter: saturate(.88) contrast(1.04);
      transition: filter .2s ease, transform .2s ease;
    }
    .network .node:hover::before { filter: saturate(1.05) contrast(1.08); transform: scale(1.025); }
    .network .node small { z-index: 2; font-size: .75rem; color: #f0f1f4; text-shadow: 0 2px 8px #000; opacity: 1; }
    .network .node.working {
      border-color: #379dff;
      box-shadow: 0 0 0 2px rgba(55,157,255,.22), 0 0 34px rgba(55,157,255,.72);
    }
    .network .node.working::before { filter: saturate(1.1) contrast(1.06) brightness(1.1); }
    .network .node[data-agent="zeus"] { --deity-face: url('/assets/deities/zeus.webp'); }
    .network .node[data-agent="hera"] { --deity-face: url('/assets/deities/hera.webp'); }
    .network .node[data-agent="poseidon"] { --deity-face: url('/assets/deities/poseidon.webp'); }
    .network .node[data-agent="demeter"] { --deity-face: url('/assets/deities/demeter.webp'); }
    .network .node[data-agent="athena"] { --deity-face: url('/assets/deities/athena.webp'); }
    .network .node[data-agent="apollo"] { --deity-face: url('/assets/deities/apollo.webp'); }
    .network .node[data-agent="hermesreg"] { --deity-face: url('/assets/deities/hermesreg.webp'); }
    .network .node[data-agent="artemis"] { --deity-face: url('/assets/deities/artemis.webp'); }
    .network .node[data-agent="ares"] { --deity-face: url('/assets/deities/ares.webp'); }
    .network .node[data-agent="aphrodite"] { --deity-face: url('/assets/deities/aphrodite.webp'); }
    .network .node[data-agent="hephaestus"] { --deity-face: url('/assets/deities/hephaestus.webp'); }
    .network .node[data-agent="kronos"] { --deity-face: url('/assets/deities/kronos.webp'); }
    .network .node[data-agent="argus"] { --deity-face: url('/assets/deities/argus.webp'); }
    .network .node[data-agent="asclepius"] { --deity-face: url('/assets/deities/asclepius.webp'); }
    .network .node[data-agent="daedalus"] { --deity-face: url('/assets/deities/daedalus.webp'); }
    .network .node[data-agent="dionysus"] { --deity-face: url('/assets/deities/dionysus.webp'); }
    .network .node[data-agent="hypatia"] { --deity-face: url('/assets/deities/hypatia.webp'); }
    .network .node[data-agent="iris"] { --deity-face: url('/assets/deities/iris.webp'); }
    .network .node[data-agent="janus"] { --deity-face: url('/assets/deities/janus.webp'); }
    .network .node[data-agent="nike"] { --deity-face: url('/assets/deities/nike.webp'); }
    .network .node[data-agent="orion"] { --deity-face: url('/assets/deities/orion.webp'); }
    .network .node[data-agent="prometheus"] { --deity-face: url('/assets/deities/prometheus.webp'); }
    .network .node[data-agent="vulcan"] { --deity-face: url('/assets/deities/vulcan.webp'); }
    .network .node[data-agent="themis"] { --deity-face: url('/assets/deities/themis.webp'); }
    .network .node[data-agent="panacea"] { --deity-face: url('/assets/deities/panacea.webp'); }
    .network .node[data-agent="hygieia"] { --deity-face: url('/assets/deities/hygieia.webp'); }
    .network .node[data-agent="rhea"] { --deity-face: url('/assets/deities/rhea.webp'); }
    .network .node[data-agent="atlas"] { --deity-face: url('/assets/deities/atlas.webp'); }
    .network .node[data-agent="ariadne"] { --deity-face: url('/assets/deities/ariadne.webp'); }
    .network .node[data-agent="hestia"] { --deity-face: url('/assets/deities/hestia.webp'); }
    .network .node[data-agent="eos"] { --deity-face: url('/assets/deities/eos.webp'); }
    .network .node[data-agent="nereus"] { --deity-face: url('/assets/deities/nereus.webp'); }
    .network .node[data-agent="calliope"] { --deity-face: url('/assets/deities/calliope.webp'); }
    .network .node[data-agent="gaia"] { --deity-face: url('/assets/deities/gaia.webp'); }
    .network .node[data-agent="proteus"] { --deity-face: url('/assets/deities/proteus.webp'); }
    .network .node[data-agent="mnemosyne"] { --deity-face: url('/assets/deities/mnemosyne.webp'); }
    .network .node[data-agent="hecate"] { --deity-face: url('/assets/deities/hecate.webp'); }
    .network .node[data-agent="metis"] { --deity-face: url('/assets/deities/metis.webp'); }
    .network .node[data-agent="boreas"] { --deity-face: url('/assets/deities/boreas.webp'); }
    .network .node[data-agent="nemesis"] { --deity-face: url('/assets/deities/nemesis.webp'); }
    /* Mount Olympus temple: the live orchestration map remains driven by server state. */
    .orchestrator {
      min-height: 760px;
      background:
        radial-gradient(circle at 50% 48%, rgba(69,113,185,.24), transparent 28%),
        linear-gradient(180deg, rgba(7,12,27,.24), rgba(8,8,13,.78)),
        linear-gradient(135deg, #172039, #080b13 58%, #17100b);
      border-color: rgba(210,176,105,.34);
      box-shadow: inset 0 0 0 1px rgba(255,224,157,.06), 0 28px 80px rgba(0,0,0,.4);
    }
    .orchestrator::before {
      background:
        radial-gradient(circle at 50% 62%, rgba(123,177,255,.18), transparent 18%),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.018) 80px);
    }
    .orchestrator-top { position:relative; z-index:6; margin-bottom:0; }
    .orchestrator .eyebrow { color:#d7b96f; }
    .orchestrator .headline { font-family:Georgia, 'Times New Roman', serif; text-shadow:0 3px 30px rgba(0,0,0,.55); }
    .orchestrator .headline .orange { color:#f0c86c; }
    .network.olympus-temple { height:500px; margin-top:12px; border-radius:5px; overflow:hidden; isolation:isolate; }
    .temple-atmosphere { position:absolute; inset:0; z-index:-5; background:radial-gradient(ellipse at 50% 23%, rgba(177,205,255,.18), transparent 32%), linear-gradient(180deg, transparent 57%, rgba(52,33,19,.6)); }
    .temple-moon { position:absolute; top:25px; right:8%; width:64px; height:64px; border-radius:50%; background:#dce7ff; box-shadow:0 0 60px rgba(188,213,255,.6); opacity:.65; }
    .temple-roof { position:absolute; z-index:-2; left:2%; right:2%; top:2px; height:96px; filter:drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
    .temple-pediment { position:absolute; left:9%; right:9%; top:0; height:58px; clip-path:polygon(50% 0,100% 100%,0 100%); background:linear-gradient(165deg,#cdb77f,#7b6643 58%,#332719); border-bottom:7px solid #d6bd7d; }
    .temple-pediment::after { content:'ΜΥΖΕΥΣ  ·  ΣΥΜΒΟΥΛΙΟΝ'; position:absolute; left:0; right:0; bottom:12px; text-align:center; color:#2a2118; font:700 .62rem/1 Georgia,serif; letter-spacing:.32em; }
    .temple-entablature { position:absolute; left:0; right:0; top:58px; height:25px; border-top:5px solid #dbc586; border-bottom:7px double #7c6540; background:linear-gradient(#bda36a,#80683e); }
    .temple-columns { position:absolute; z-index:-3; left:3%; right:3%; top:83px; bottom:55px; display:flex; justify-content:space-between; pointer-events:none; }
    .temple-column { position:relative; width:32px; background:repeating-linear-gradient(90deg,#6d5b3d 0 4px,#c4ae78 5px 9px,#8c744a 10px 13px); border-left:3px solid #d4bf86; border-right:3px solid #57462f; box-shadow:0 8px 20px rgba(0,0,0,.32); opacity:.54; }
    .temple-column::before,.temple-column::after { content:''; position:absolute; left:-9px; width:44px; height:14px; background:linear-gradient(#d1bd87,#735f3e); border:1px solid rgba(44,31,18,.6); }
    .temple-column::before { top:-8px; } .temple-column::after { bottom:-7px; }
    .temple-steps { position:absolute; z-index:-2; left:1%; right:1%; bottom:6px; height:64px; clip-path:polygon(5% 0,95% 0,100% 100%,0 100%); background:repeating-linear-gradient(180deg,#9e8657 0 12px,#5f4d34 13px 16px); box-shadow:0 -8px 30px rgba(0,0,0,.4); }
    .temple-throne { position:absolute; z-index:-1; left:50%; top:42%; width:132px; height:160px; transform:translate(-50%,-50%); border:7px ridge #b9964e; border-radius:58px 58px 12px 12px; background:linear-gradient(90deg,#2d1d15,#7f321d 48%,#2b1c14); box-shadow:0 0 0 7px rgba(59,42,24,.75),0 18px 38px rgba(0,0,0,.7),0 0 45px rgba(94,149,255,.16); }
    .temple-throne::before,.temple-throne::after { content:'⚡'; position:absolute; top:42px; color:#e6c66f; font-size:23px; text-shadow:0 0 14px #7ab6ff; }
    .temple-throne::before { left:-23px; } .temple-throne::after { right:-23px; transform:scaleX(-1); }
    .temple-route-legend { position:absolute; z-index:5; left:50%; bottom:14px; transform:translateX(-50%); display:flex; gap:18px; padding:7px 12px; border:1px solid rgba(213,184,113,.28); background:rgba(8,9,13,.76); color:#c9c4b7; font:.62rem/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
    .temple-route-legend i { display:inline-block; width:18px; height:8px; margin-right:6px; vertical-align:middle; background:#7ec8ff; clip-path:polygon(0 42%,36% 42%,48% 0,58% 100%,70% 56%,100% 56%,100% 72%,73% 72%,59% 100%,49% 34%,42% 64%,0 64%); box-shadow:0 0 8px #58aaff; }
    .temple-route-legend .return i { background:#ffd36b; box-shadow:0 0 8px #ffad33; }
    .temple-route-legend .idle i { background:#59e39a; box-shadow:0 0 8px #22c978; }
    .network.olympus-temple .node { z-index:3; width:68px; height:68px; border:3px ridge rgba(229,201,130,.82); background:#19150f; box-shadow:0 0 0 3px rgba(43,34,22,.82),0 10px 22px rgba(0,0,0,.5); }
    .network.olympus-temple .node::before { inset:4px; background-position:center var(--face-y,30%); filter:saturate(.98) contrast(1.08) brightness(1.04); }
    .network.olympus-temple .node small { top:calc(100% + 6px); padding:2px 5px; color:#f0dfb4; background:rgba(8,9,12,.72); font-family:Georgia,serif; font-size:.58rem; font-weight:700; letter-spacing:.1em; text-shadow:0 2px 8px #000; }
    .network.olympus-temple .node.center { width:112px; height:112px; top:47%; border:3px solid #d7b765; box-shadow:0 0 0 5px rgba(32,23,15,.8),0 0 46px rgba(100,163,255,.34); }
    .network.olympus-temple .node.center small { top:calc(100% + 12px); font-size:.75rem; color:#f4d981; }
    .network.olympus-temple svg { z-index:1; }
    .network.olympus-temple .synapse { display:none; }
    .network.olympus-temple .neural-pulse { stroke:#59e39a; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:bevel; stroke-dasharray:5 95; opacity:.68; filter:url(#lightningBolt); animation:neuronSignal 21.6s linear var(--delay,0s) infinite reverse; }
    .network.olympus-temple .neural-pulse.dispatched,
    .network.olympus-temple .neural-pulse.working,
    .network.olympus-temple .neural-pulse.returning { stroke-dasharray:100 0; animation-name:olympusLightningStrike; animation-timing-function:steps(1,end); animation-direction:normal; animation-play-state:running; }
    .network.olympus-temple .neural-pulse.dispatched { stroke:#c7c2ff; stroke-width:3.8; opacity:1; animation-duration:2.7s; }
    .network.olympus-temple .neural-pulse.working { stroke:#aee7ff; stroke-width:4.2; opacity:1; animation-duration:2.24s; }
    .network.olympus-temple .neural-pulse.returning { stroke:#ffe08a; stroke-width:3.8; opacity:1; animation-duration:2.7s; }
    .network.olympus-temple .node.dispatched { border-color:#928cff; box-shadow:0 0 0 5px rgba(117,108,255,.14),0 0 34px rgba(117,108,255,.58); }
    .network.olympus-temple .node.working { border-color:#7ec8ff; box-shadow:0 0 0 5px rgba(69,184,255,.14),0 0 38px rgba(69,184,255,.66); }
    .network.olympus-temple .node.returning { border-color:#ffd36b; animation:templeReturn 1s ease-in-out infinite; }
    .network.olympus-temple .node:not(.working):not(.returning):not(.dispatched):not(.center) { border-color:rgba(89,227,154,.58); animation:idleDeity 4.8s ease-in-out infinite; }
    @keyframes templeReturn { 50% { box-shadow:0 0 0 5px rgba(255,211,107,.16),0 0 36px rgba(255,174,57,.7); } }
    @keyframes idleDeity { 0%,100% { box-shadow:0 0 0 3px rgba(43,34,22,.82),0 0 10px rgba(34,201,120,.12),0 10px 22px rgba(0,0,0,.5); } 50% { box-shadow:0 0 0 4px rgba(89,227,154,.13),0 0 22px rgba(34,201,120,.38),0 10px 22px rgba(0,0,0,.5); } }
    @media (max-width:720px) {
      .network.olympus-temple { height:470px; }
      .network.olympus-temple .node { width:46px; height:46px; }
      .network.olympus-temple .node.center { width:94px; height:94px; }
      .temple-column { opacity:.48; }
      .temple-route-legend { gap:9px; font-size:.52rem; letter-spacing:.06em; }
    }
    @keyframes neuronSignal {
      to { stroke-dashoffset: 0%; }
    }
    @keyframes olympusLightningStrike {
      0%, 17%, 23%, 68%, 74%, 100% { opacity:1; }
      18%, 22%, 69%, 73% { opacity:.24; }
    }
    @keyframes neuronNode {
      0%, 100% { box-shadow: 0 0 0 1px rgba(255,90,34,.18), 0 0 18px rgba(255,90,34,.20); }
      50% { box-shadow: 0 0 0 4px rgba(255,90,34,.10), 0 0 34px rgba(255,90,34,.55); }
    }
    .activity {
      color: #f7f9ff;
      background:
        radial-gradient(420px 300px at 90% 6%, rgba(92, 82, 220, .18), transparent 62%),
        linear-gradient(155deg, #26292f 0%, #202228 52%, #181a1f 100%);
      border-color: rgba(255, 255, 255, .13);
      border-radius: 8px;
    }
    .activity::before { background: rgba(92,82,220,.12); }
    .activity .sub { color: #9d96ff; }
    .feed-item {
      background: rgba(18, 20, 24, .70);
      border-color: rgba(255, 255, 255, .10);
      box-shadow: inset 3px 0 rgba(255,90,34,.72);
      border-radius: 4px;
    }
    .feed-item p { color: #c6c9ce; }
    .oracle-intro { max-width:34ch; color:#b9bdc6 !important; font-size:.95rem; }
    .oracle-primary { width:100%; margin-top:22px; padding:17px 18px; border:1px solid rgba(255,189,99,.34); border-radius:5px; background:linear-gradient(135deg,#ff5a22,#c93a10); color:#fff; text-align:left; cursor:pointer; box-shadow:0 14px 34px rgba(255,90,34,.2); }
    .oracle-primary span { display:block; font:700 .66rem/1 var(--mono); letter-spacing:.16em; text-transform:uppercase; opacity:.76; }
    .oracle-primary strong { display:block; margin-top:7px; font:500 1.15rem/1.2 Georgia,serif; }
    .oracle-actions { display:grid; gap:9px; margin-top:12px; }
    .oracle-action { display:grid; grid-template-columns:36px minmax(0,1fr) auto; gap:11px; align-items:center; width:100%; padding:13px; border:1px solid rgba(255,255,255,.1); border-radius:5px; background:rgba(13,15,20,.66); color:#eceef2; text-align:left; cursor:pointer; transition:border-color .16s ease,transform .16s ease,background .16s ease; }
    .oracle-action:hover { transform:translateX(3px); border-color:rgba(255,189,99,.42); background:rgba(28,25,24,.92); }
    .oracle-action b { display:grid; place-items:center; width:36px; height:36px; border:1px solid rgba(215,184,105,.3); color:#eac56c; font:700 .65rem/1 var(--mono); }
    .oracle-action strong { display:block; font-size:.84rem; }
    .oracle-action small { display:block; margin-top:3px; color:#aeb2ba; font-size:.75rem; }
    .oracle-action em { color:#ff7545; font-style:normal; }
    .oracle-seal { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:18px; border:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.09); }
    .oracle-seal div { padding:11px 8px; background:#17191e; text-align:center; }
    .oracle-seal strong { display:block; color:#f2d27e; font:600 1rem/1 Georgia,serif; }
    .oracle-seal span { display:block; margin-top:4px; color:#787e88; font:.55rem/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; }

    .chat-agent,
    .filter,
    .agent,
    .workflow-card,
    .resource-grid article,
    .docs-grid article {
      color: #f0f1f3;
      border-color: var(--line);
      background: linear-gradient(155deg, rgba(38, 40, 46, .94), rgba(28, 30, 35, .94));
      box-shadow: inset 0 1px rgba(255,255,255,.04);
      border-radius: 5px;
    }
    .chat-agent.active,
    .filter.active {
      color: #fff;
      background: linear-gradient(135deg, #ff5a22, #e94a16);
      border-color: transparent;
      box-shadow: 0 9px 24px rgba(255,90,34,.18);
    }
    .chat-status,
    .mini-bar,
    .chat-refresh,
    .view-action,
    .command {
      color: #dedfe2;
      background: #15171b;
      border-color: rgba(255, 255, 255, .14);
      border-radius: 4px;
    }
    .chat-status,
    .mini-bar .status { color: #ff7545; }
    .view-action:hover { color: #fff; background: var(--orange); }
    .typing-indicator { color: #90949d; }
    .message {
      color: #e6e7e9;
      background: rgba(37, 39, 45, .92);
      border-color: rgba(255, 255, 255, .11);
      border-radius: 5px;
    }
    .message .meta { color: #8d919a; }
    .message.user {
      color: #fff;
      background: linear-gradient(135deg, #5047d6, #3d36ad);
      border-color: rgba(126, 118, 243, .30);
    }
    .message.assistant {
      background: linear-gradient(145deg, #f2f2f3, #dfe0e3);
      border-color: rgba(255, 255, 255, .20);
      box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    }
    .message-body { color: #25272c; }
    .message-body h2,
    .message-body h3,
    .message-body h4,
    .message-body strong { color: #18191c; }
    .message-body code { color: #c43e13; background: rgba(255, 90, 34, .10); }
    .response-summary { border-color: rgba(45,48,56,.16); background: rgba(45,48,56,.12); }
    .response-summary-item { background: rgba(247,247,248,.96); }
    .response-summary-label { color: #bf3f18; }
    .response-summary-value { color: #25272c; }
    .message-table-wrap { border-color: rgba(45,48,56,.18); }
    .message-table th,
    .message-table td { border-color: rgba(45,48,56,.12); }
    .message-table th { color: #272930; background: #d4d5d8; }
    .message.tool,
    .message.session_meta { background: rgba(255,90,34,.08); border-color: rgba(255,90,34,.22); }
    .chat-input-row input {
      color: #f1f2f3;
      background: rgba(15, 16, 20, .90);
      border-color: rgba(255,255,255,.16);
      border-radius: 4px;
    }
    .chat-input-row input::placeholder { color: #858991; }
    .chat-input-row button { color: #fff; border-radius: 4px; box-shadow: 0 7px 20px rgba(255,90,34,.20); }

    .workspace-head { border-color: var(--line); }
    .workflow-card span,
    .resource-grid b,
    .timeline-list time { color: #ff7545; }
    .workflow-card > div { color: #9993ff; }
    .timeline-list article { border-color: var(--line); }
    .ring { background: conic-gradient(#ff5a22 0 var(--available-pct, 0%), rgba(102,94,229,.26) var(--available-pct, 0%) 100%); box-shadow: 0 0 28px rgba(255,90,34,.08); }
    .ring::before { background: #202228; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); }
    .dot { background: #111317; }
    .dot.light { background: #565a63; border-color: rgba(255,255,255,.14); }
    .agent:hover { border-color: rgba(255,90,34,.52); box-shadow: 0 16px 34px rgba(0,0,0,.32); }
    .agent-status { color: #969aa3; }
    .agent-status::before { background: #ff5a22; box-shadow: 0 0 8px rgba(255,90,34,.42); }
    .agent-status.working { color: #8d87ff; }
    /* Council of Olympus — portrait-led specialist directory. */
    .agents-section { grid-template-columns:260px minmax(0,1fr); gap:14px; align-items:start; }
    .agents-section .sidebar-panel { position:sticky; top:14px; padding:0; overflow:hidden; border-radius:6px; background:#17191e; }
    .council-index-head { padding:20px 18px 17px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,#272118,#17191e 68%); }
    .council-index-head .section-label { color:#e6c46f; }
    .council-index-head h3 { margin-top:8px; font:500 1.7rem/1.05 Georgia,serif; }
    .council-index-head p { margin:8px 0 0; color:#999da6; font-size:.8rem; line-height:1.45; }
    .council-zeus { position:relative; display:block; width:calc(100% - 24px); min-height:96px; margin:12px; padding:15px 12px 13px 82px; border:1px solid rgba(229,197,111,.28); border-radius:4px; background:linear-gradient(135deg,rgba(97,65,25,.3),rgba(15,17,21,.96)); color:#f4ead1; text-align:left; cursor:pointer; }
    .council-zeus::before { content:''; position:absolute; left:12px; top:14px; width:56px; height:56px; border:2px solid #d7b765; border-radius:50%; background:url('/assets/deities/zeus.webp') center 28%/cover; box-shadow:0 0 18px rgba(235,195,87,.25); }
    .council-zeus span { display:block; color:#e6c46f; font:.58rem/1 var(--mono); letter-spacing:.15em; text-transform:uppercase; }
    .council-zeus strong { display:block; margin-top:7px; font:600 .9rem/1.2 Georgia,serif; }
    .council-zeus small { display:block; margin-top:4px; color:#aeb2ba; font-size:.75rem; }
    .agents-section .filter-list { gap:0; margin:0; padding:0 12px 14px; }
    .agents-section .filter { position:relative; padding:11px 10px 11px 15px; border:0; border-bottom:1px solid rgba(255,255,255,.07); border-radius:0; background:transparent; color:#d8dae0; }
    .agents-section .filter::before { content:''; position:absolute; left:0; top:14px; width:5px; height:5px; border-radius:50%; background:#5d626d; }
    .agents-section .filter:hover { transform:none; color:#fff; background:rgba(255,255,255,.035); }
    .agents-section .filter.active { color:#fff; background:linear-gradient(90deg,rgba(255,90,34,.18),transparent); }
    .agents-section .filter.active::before { background:#ff5a22; box-shadow:0 0 9px rgba(255,90,34,.8); }
    .agents-section .filter .small { color:#a1a6af; font-size:.75rem; }
    .agents-section .main-panel { padding:0; overflow:hidden; border-radius:6px; background:rgba(24,26,31,.92); }
    .agent-page-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:24px; align-items:end; padding:25px 26px 22px; border-bottom:1px solid var(--line); background:radial-gradient(circle at 84% 10%,rgba(255,90,34,.1),transparent 30%),linear-gradient(145deg,#20232a,#17191e); }
    .agent-page-head h2 { margin:7px 0 8px; color:#f4f1e9; font:500 clamp(2rem,4vw,3.8rem)/.95 Georgia,serif; letter-spacing:-.045em; }
    .agent-page-head p { max-width:62ch; margin:0; color:#9ca0a9; line-height:1.5; }
    .agent-page-stats { display:grid; grid-template-columns:repeat(3,90px); border:1px solid rgba(255,255,255,.1); background:rgba(255,255,255,.08); }
    .agent-page-stat { padding:12px 9px; background:#17191e; text-align:center; }
    .agent-page-stat + .agent-page-stat { border-left:1px solid rgba(255,255,255,.09); }
    .agent-page-stat strong { display:block; color:#f0cd78; font:600 1.45rem/1 Georgia,serif; }
    .agent-page-stat span { display:block; margin-top:5px; color:#777d87; font:.55rem/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
    .agents-section .agent-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; padding:1px; background:rgba(255,255,255,.08); }
    .agents-section .agent { position:relative; min-height:164px; padding:18px 100px 16px 18px; border:0; border-radius:0; background:linear-gradient(145deg,#1d1f24,#17191e); box-shadow:none; }
    .agents-section .agent::before { content:''; position:absolute; top:17px; right:17px; width:68px; height:82px; border:2px ridge rgba(220,189,112,.6); border-radius:36px 36px 6px 6px; background-image:linear-gradient(to top,rgba(7,8,10,.26),transparent 45%),var(--deity-face); background-position:center var(--face-y,30%); background-size:cover; box-shadow:0 0 0 3px rgba(8,9,12,.7),0 11px 24px rgba(0,0,0,.38); }
    .agents-section .agent::after { content:'View route  →'; align-self:end; color:#ff7545; font:.62rem/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .agents-section .agent:hover { z-index:2; transform:none; border-color:transparent; background:linear-gradient(145deg,#29251f,#1a1c21); box-shadow:inset 3px 0 #ff5a22,0 14px 30px rgba(0,0,0,.3); }
    .agents-section .agent h4 { margin-top:18px; color:#f0f1f3; font:600 1.05rem/1.1 Georgia,serif; }
    .agents-section .agent p { color:#9ca0a9; font-size:.79rem; line-height:1.48; }
    .agents-section .agent .pill-row { margin-top:4px; }
    .agents-section .agent-status { position:absolute; top:15px; left:18px; float:none; margin:0; }
    .council-brief { position:relative; display:grid; grid-template-columns:220px minmax(0,1fr) auto; gap:26px; align-items:center; min-height:214px; padding:25px 26px; overflow:hidden; border-bottom:1px solid rgba(255,255,255,.1); background:linear-gradient(115deg,#111319 0%,#1d1f25 52%,#211b15 100%); --selected-face:url('/assets/deities/apollo.webp'); }
    .council-brief::before { content:''; position:absolute; left:106px; right:30%; top:50%; height:1px; background:linear-gradient(90deg,rgba(255,255,255,.08),#72c9ff 36%,rgba(114,201,255,.12)); box-shadow:0 0 12px rgba(114,201,255,.34); transform:translateY(-50%); }
    .route-portrait { position:relative; z-index:1; width:190px; height:160px; }
    .route-zeus, .route-specialist { position:absolute; border-radius:50%; background-position:center 27%; background-size:cover; }
    .route-zeus { left:0; top:52px; width:55px; height:55px; border:2px solid #d9b85f; background-image:url('/assets/deities/zeus.webp'); box-shadow:0 0 0 5px #13151a,0 0 18px rgba(224,188,91,.25); }
    .route-specialist { right:0; top:14px; width:126px; height:126px; border:3px double rgba(234,202,121,.8); background-image:linear-gradient(to top,rgba(8,9,12,.42),transparent 45%),var(--selected-face); box-shadow:0 0 0 7px #17191e,0 18px 36px rgba(0,0,0,.48); transition:background-image .2s ease; }
    .route-bolt { position:absolute; left:47px; top:79px; width:31px; height:18px; color:#9cddff; font-size:1.3rem; filter:drop-shadow(0 0 7px #47baff); transform:rotate(-8deg); animation:routeSignal 1.8s ease-in-out infinite; }
    @keyframes routeSignal { 0%,100% { opacity:.38; transform:translateX(0) rotate(-8deg); } 50% { opacity:1; transform:translateX(15px) rotate(-8deg); } }
    .route-copy { position:relative; z-index:1; max-width:650px; }
    .route-copy h3 { margin:7px 0 6px; color:#f5f0e5; font:500 clamp(1.55rem,2.7vw,2.55rem)/1 Georgia,serif; letter-spacing:-.025em; }
    .route-copy > p { margin:0 0 12px; color:#a8abb3; font-size:.86rem; line-height:1.5; }
    .route-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 20px; margin:0; padding:0; list-style:none; }
    .route-evidence li { position:relative; padding-left:14px; color:#d6d7db; font-size:.75rem; line-height:1.4; }
    .route-evidence li::before { content:'◆'; position:absolute; left:0; top:.1em; color:#dfbc61; font-size:.5rem; }
    .route-actions { position:relative; z-index:1; display:grid; gap:10px; min-width:170px; }
    .route-profile { color:#7f848e; font:.56rem/1.35 var(--mono); letter-spacing:.06em; text-align:right; overflow-wrap:anywhere; }
    .route-chat { padding:13px 16px; border:1px solid #ff7040; border-radius:3px; background:#ff5a22; color:#fff; font:700 .68rem/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; cursor:pointer; box-shadow:0 8px 24px rgba(255,90,34,.2); }
    .route-chat:hover { background:#ff7040; }
    .council-roster-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; border-bottom:1px solid rgba(255,255,255,.08); background:#14161a; }
    .council-roster-head strong { color:#d9dbe0; font:600 .72rem/1 var(--mono); letter-spacing:.09em; text-transform:uppercase; }
    .council-roster-head span { color:#7f848e; font:.64rem/1 var(--mono); }
    .agents-section .agent { cursor:pointer; }
    .agents-section .agent.selected { z-index:2; background:linear-gradient(145deg,#2a251e,#1a1c21); box-shadow:inset 3px 0 #e5bd5d,inset 0 0 0 1px rgba(229,189,93,.24); }
    .agents-section .agent.selected::after { content:'Selected route  ✓'; color:#e5bd5d; }
    .agents-section .agent:focus-visible { z-index:3; outline:2px solid #79ceff; outline-offset:-3px; }
    .agent[data-agent="hera"] { --deity-face:url('/assets/deities/hera.webp'); }.agent[data-agent="poseidon"] { --deity-face:url('/assets/deities/poseidon.webp'); }.agent[data-agent="demeter"] { --deity-face:url('/assets/deities/demeter.webp'); }.agent[data-agent="athena"] { --deity-face:url('/assets/deities/athena.webp'); }
    .agent[data-agent="apollo"] { --deity-face:url('/assets/deities/apollo.webp'); }.agent[data-agent="artemis"] { --deity-face:url('/assets/deities/artemis.webp'); }.agent[data-agent="ares"] { --deity-face:url('/assets/deities/ares.webp'); }.agent[data-agent="aphrodite"] { --deity-face:url('/assets/deities/aphrodite.webp'); }
    .agent[data-agent="hephaestus"] { --deity-face:url('/assets/deities/hephaestus.webp'); }.agent[data-agent="hermesreg"] { --deity-face:url('/assets/deities/hermesreg.webp'); }.agent[data-agent="kronos"] { --deity-face:url('/assets/deities/kronos.webp'); }.agent[data-agent="argus"] { --deity-face:url('/assets/deities/argus.webp'); }
    .agent[data-agent="asclepius"] { --deity-face:url('/assets/deities/asclepius.webp'); }.agent[data-agent="daedalus"] { --deity-face:url('/assets/deities/daedalus.webp'); }.agent[data-agent="dionysus"] { --deity-face:url('/assets/deities/dionysus.webp'); }.agent[data-agent="hypatia"] { --deity-face:url('/assets/deities/hypatia.webp'); }
    .agent[data-agent="iris"] { --deity-face:url('/assets/deities/iris.webp'); }.agent[data-agent="janus"] { --deity-face:url('/assets/deities/janus.webp'); }.agent[data-agent="nike"] { --deity-face:url('/assets/deities/nike.webp'); }.agent[data-agent="orion"] { --deity-face:url('/assets/deities/orion.webp'); }
    .agent[data-agent="prometheus"] { --deity-face:url('/assets/deities/prometheus.webp'); }.agent[data-agent="vulcan"] { --deity-face:url('/assets/deities/vulcan.webp'); }
    .agent[data-agent="themis"] { --deity-face:url('/assets/deities/themis.webp'); }.agent[data-agent="panacea"] { --deity-face:url('/assets/deities/panacea.webp'); }.agent[data-agent="hygieia"] { --deity-face:url('/assets/deities/hygieia.webp'); }
    .agent[data-agent="rhea"] { --deity-face:url('/assets/deities/rhea.webp'); }.agent[data-agent="atlas"] { --deity-face:url('/assets/deities/atlas.webp'); }.agent[data-agent="ariadne"] { --deity-face:url('/assets/deities/ariadne.webp'); }.agent[data-agent="hestia"] { --deity-face:url('/assets/deities/hestia.webp'); }
    .agent[data-agent="eos"] { --deity-face:url('/assets/deities/eos.webp'); }.agent[data-agent="nereus"] { --deity-face:url('/assets/deities/nereus.webp'); }.agent[data-agent="calliope"] { --deity-face:url('/assets/deities/calliope.webp'); }
    .agent[data-agent="gaia"] { --deity-face:url('/assets/deities/gaia.webp'); }.agent[data-agent="proteus"] { --deity-face:url('/assets/deities/proteus.webp'); }.agent[data-agent="mnemosyne"] { --deity-face:url('/assets/deities/mnemosyne.webp'); }.agent[data-agent="hecate"] { --deity-face:url('/assets/deities/hecate.webp'); }
    .agent[data-agent="metis"] { --deity-face:url('/assets/deities/metis.webp'); }.agent[data-agent="boreas"] { --deity-face:url('/assets/deities/boreas.webp'); }.agent[data-agent="nemesis"] { --deity-face:url('/assets/deities/nemesis.webp'); }
    /* Hermes dispatch ledger — specialist selection, conversation, and evidence custody. */
    .chat-section { grid-template-columns:240px minmax(0,1fr); gap:12px; align-items:start; }
    .chat-roster { position:sticky; top:14px; max-height:calc(100vh - 40px); padding:0; overflow:auto; border-radius:6px; }
    .chat-roster-head { position:sticky; top:0; z-index:2; padding:18px 16px 14px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,#241f19,#17191e 74%); }
    .chat-roster-head h3 { margin-top:7px; color:#f0e9dc; font:500 1.5rem/1 Georgia,serif; }
    .chat-roster-head p { margin:7px 0 0; color:#9297a0; font-size:.74rem; line-height:1.4; }
    .agent-roster-search { width:100%; margin-top:12px; padding:9px 10px; border:1px solid rgba(255,255,255,.13); border-radius:3px; outline:none; background:#101216; color:#f2f3f5; font-size:.76rem; }
    .agent-roster-search:focus { border-color:#72c9ff; box-shadow:0 0 0 2px rgba(114,201,255,.12); }
    .chat-agent-list { gap:1px; margin:0; padding:1px; background:rgba(255,255,255,.08); }
    .chat-roster-group { margin:6px 9px 3px; font-size:.65rem; color:#858b95; text-transform:uppercase; letter-spacing:.05em; font-weight:700; border-bottom:1px solid rgba(255,255,255,.06); padding-bottom:4px; }
    .chat-agent { position:relative; min-height:58px; padding:10px 9px 9px 56px; border:0; border-radius:0; background:#181a1f; box-shadow:none; color:#d8dbe0; font-size:.85rem; font-weight:600; line-height:1.2; }
    .chat-agent::before { content:''; position:absolute; left:10px; top:9px; width:38px; height:38px; border:1px solid rgba(225,192,108,.48); border-radius:50%; background-image:linear-gradient(to top,rgba(8,9,12,.34),transparent 50%),var(--chat-face); background-position:center 30%; background-size:cover; box-shadow:0 0 0 3px rgba(8,9,12,.65); }
    .chat-agent:hover { transform:none; background:#22252b; }
    .chat-agent.active { color:#fff; background:linear-gradient(90deg,rgba(255,90,34,.24),#1b1d22 76%); box-shadow:inset 3px 0 #ff5a22; }
    .chat-agent.active::before { border-color:#e7c46b; box-shadow:0 0 0 3px rgba(8,9,12,.65),0 0 14px rgba(231,196,107,.3); }
    .chat-agent.dispatched { color:#f0edff; background:linear-gradient(90deg,rgba(117,108,255,.2),#1b1d22 78%); box-shadow:inset 3px 0 #928cff; }
    .chat-agent.working { color:#fff; background:linear-gradient(90deg,rgba(69,184,255,.24),#1b1d22 78%); box-shadow:inset 3px 0 #45b8ff; }
    .chat-agent.returning { color:#fff5d5; background:linear-gradient(90deg,rgba(255,173,51,.22),#1b1d22 78%); box-shadow:inset 3px 0 #ffad33; }
    .chat-agent.communicating:not(.working):not(.returning):not(.dispatched) { background:linear-gradient(90deg,rgba(85,220,203,.11),#1b1d22 78%); box-shadow:inset 3px 0 rgba(85,220,203,.68); }
    .chat-agent.dispatched::before,
    .chat-agent.communicating::before { border-color:#c7c2ff; box-shadow:0 0 0 3px rgba(8,9,12,.65),0 0 8px #928cff,0 0 19px rgba(146,140,255,.72); animation:sidebarAgentSignal 1.35s ease-in-out infinite; }
    .chat-agent.working::before { border-color:#aee7ff; box-shadow:0 0 0 3px rgba(8,9,12,.65),0 0 9px #45b8ff,0 0 22px rgba(69,184,255,.85); animation:sidebarAgentSignal .9s ease-in-out infinite; }
    .chat-agent.returning::before { border-color:#ffe08a; box-shadow:0 0 0 3px rgba(8,9,12,.65),0 0 9px #ffad33,0 0 22px rgba(255,173,51,.8); animation:sidebarAgentSignal 1.05s ease-in-out infinite; }
    @keyframes sidebarAgentSignal { 50% { filter:brightness(1.22); transform:scale(1.055); } }
    .chat-agent span { margin-top:3px; color:#858b95; font:.61rem/1.25 var(--mono); opacity:1; }
    .chat-roster-foot { margin:0 !important; padding:12px 14px 16px; border-top:1px solid var(--line); color:#a6abb4 !important; font-size:.75rem !important; }
    .chat-stream { min-width:0; padding:0; border-radius:6px; overflow:hidden; }
    .chat-head { min-height:126px; padding:20px 22px; align-items:center; border-bottom:1px solid var(--line); background:linear-gradient(135deg,#1b1e24,#17191e 58%,#241d15); }
    .chat-head h3 { margin-top:6px; color:#f4efe5; font:500 clamp(1.7rem,3vw,2.65rem)/1 Georgia,serif; }
    .chat-head p { margin-top:6px; color:#9297a1; font:.68rem/1.4 var(--mono); overflow-wrap:anywhere; }
    .dispatch-seal { display:grid; grid-template-columns:46px 48px minmax(90px,auto); align-items:center; flex:0 0 auto; }
    .dispatch-face { position:relative; z-index:1; width:46px; height:46px; border:2px solid #d8b65e; border-radius:50%; background-position:center 29%; background-size:cover; box-shadow:0 0 0 4px #181a1f; }
    .dispatch-zeus { background-image:url('/assets/deities/zeus.webp'); }
    .dispatch-agent { margin-left:-5px; background-image:var(--active-chat-face,url('/assets/deities/zeus.webp')); }
    .dispatch-link { height:1px; margin-left:-4px; background:linear-gradient(90deg,#72c9ff,rgba(114,201,255,.1)); box-shadow:0 0 9px rgba(114,201,255,.45); }
    .dispatch-label { grid-column:3; margin:-21px 0 0 8px; color:#d9bb6a; font:.55rem/1.35 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
    .chat-status { grid-column:3; justify-self:start; margin:5px 0 0 8px; padding:5px 8px; border:1px solid rgba(255,255,255,.1); font:600 .55rem/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
    .chat-cosmos { display:block; height:142px; margin:0; border:0; border-bottom:1px solid rgba(114,201,255,.14); border-radius:0; background:radial-gradient(ellipse at 50% 90%,rgba(64,116,177,.23),transparent 55%),#0d0f14; }
    .chat-cosmos::before { content:'LIVE ROUTE TELEMETRY'; }
    .message-stream { min-height:300px; max-height:none; overflow:visible; margin:0; padding:18px 20px; gap:12px; background:rgba(11,13,17,.45); }
    .chat-empty { display:grid; min-height:220px; place-items:center; color:#747984; font:.72rem/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .chat-session-header { display:flex; align-items:center; justify-content:center; gap:12px; margin:10px 0 24px; color:#858b95; font-size:.75rem; text-align:center; }
    .chat-session-header::before, .chat-session-header::after { content:''; flex:1; height:1px; background:rgba(255,255,255,.06); max-width:120px; }
    .session-badge { padding:3px 8px; border-radius:12px; font-weight:600; font-size:.65rem; text-transform:uppercase; letter-spacing:.05em; }
    .session-badge.new { color:#72c9ff; background:rgba(114,201,255,.15); }
    .session-badge.continuing { color:#e4c26d; background:rgba(228,194,109,.15); }
    .message { border-radius:4px; }
    .message.user { margin-left:15%; border-left:2px solid #8179ff; }
    .message.user .message-body { color:#fff; }
    .message.assistant { margin-right:7%; border-left:2px solid #dfbb62; }
    .chat-composer { padding:14px 18px 17px; border-top:1px solid var(--line); background:#16181d; }
    .chat-prompts { display:flex; gap:7px; overflow-x:auto; padding-bottom:10px; }
    .chat-prompt { flex:0 0 auto; padding:7px 9px; border:1px solid rgba(255,255,255,.1); border-radius:3px; background:#20232a; color:#aeb2ba; font-size:.67rem; cursor:pointer; }
    .chat-prompt:hover,.chat-prompt:focus-visible { color:#fff; border-color:rgba(228,188,96,.5); outline:none; }
    .requisition-wizard-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: linear-gradient(135deg, rgba(242,100,34,.22), rgba(200,155,60,.18));
      border: 1px solid rgba(228,188,96,.45);
      color: #f7e6c4;
      font-weight: 600;
      box-shadow: 0 2px 8px rgba(0,0,0,.25);
    }
    .requisition-wizard-btn:hover {
      background: linear-gradient(135deg, rgba(242,100,34,.4), rgba(200,155,60,.35));
      border-color: #f26422;
      color: #fff;
    }
    .requisition-modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(10, 11, 15, 0.82);
      backdrop-filter: blur(12px);
      padding: 16px;
      box-sizing: border-box;
    }
    .requisition-modal-backdrop[hidden] {
      display: none !important;
    }
    .requisition-modal {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 920px;
      max-height: min(90vh, 840px);
      background: linear-gradient(160deg, #1d1f26 0%, #14161b 100%);
      border: 1px solid rgba(228,188,96,.3);
      border-radius: 8px;
      box-shadow: 0 24px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
      overflow: hidden;
      color: #eee9e0;
    }
    .requisition-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 24px 16px;
      background: radial-gradient(circle at 85% 20%, rgba(242,100,34,.12), transparent 45%), linear-gradient(145deg, #242730, #191c22);
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .requisition-kicker {
      display: block;
      color: #f26422;
      font: 600 .62rem/1 var(--mono);
      letter-spacing: .16em;
      text-transform: uppercase;
      margin-bottom: 4px;
    }
    .requisition-header h3 {
      margin: 0;
      color: #f5f1e8;
      font: 500 1.45rem/1.1 Georgia, serif;
    }
    .requisition-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,.14);
      background: rgba(255,255,255,.04);
      color: #a5aab5;
      font-size: 1.1rem;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all .16s ease;
    }
    .requisition-close:hover {
      color: #fff;
      border-color: #f26422;
      background: rgba(242,100,34,.2);
    }
    .requisition-nav {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      background: #111317;
      border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .requisition-nav-item {
      padding: 12px 10px;
      border: 0;
      border-bottom: 2px solid transparent;
      background: transparent;
      color: #7b818d;
      font: 600 .66rem/1.2 var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all .16s ease;
      text-align: center;
    }
    .requisition-nav-item:hover {
      color: #c9ced9;
      background: rgba(255,255,255,.02);
    }
    .requisition-nav-item.active {
      color: #e4c26d;
      border-bottom-color: #f26422;
      background: rgba(242,100,34,.06);
    }
    .requisition-body {
      flex: 1 1 auto;
      overflow-y: auto;
      padding: 20px 24px;
    }
    .requisition-intro {
      margin: 0 0 16px;
      color: #a4a9b3;
      font-size: .82rem;
      line-height: 1.45;
    }
    .requisition-type-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 12px;
    }
    .req-card {
      position: relative;
      display: block;
      cursor: pointer;
      margin: 0;
    }
    .req-card input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .req-card-box {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: 14px 15px 12px;
      background: linear-gradient(145deg, #20232b, #17191f);
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 5px;
      transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
    }
    .req-card:hover .req-card-box {
      border-color: rgba(228,188,96,.45);
      transform: translateY(-1px);
    }
    .req-card input:checked + .req-card-box {
      border-color: #f26422;
      background: linear-gradient(145deg, #272a34, #1c1f27);
      box-shadow: 0 0 0 1px #f26422, 0 6px 16px rgba(242,100,34,.18);
    }
    .req-card-box strong {
      color: #f2eee4;
      font-size: .88rem;
      font-weight: 600;
      margin-bottom: 5px;
    }
    .req-card-box small {
      color: #9297a1;
      font-size: .71rem;
      line-height: 1.4;
      flex: 1 1 auto;
    }
    .req-tag {
      align-self: flex-start;
      margin-top: 10px;
      padding: 3px 6px;
      border-radius: 3px;
      border: 1px solid rgba(228,188,96,.25);
      color: #e4c26d;
      font: 600 .58rem/1 var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .req-form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px 18px;
    }
    .req-field {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .req-field.full-width {
      grid-column: 1 / -1;
    }
    .req-field span {
      color: #c8cdd7;
      font: 600 .68rem/1.2 var(--mono);
      letter-spacing: .06em;
      text-transform: uppercase;
    }
    .req-field input, .req-field select, .req-field textarea {
      width: 100%;
      padding: 10px 12px;
      background: #101216;
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 4px;
      color: #f2eee5;
      font-size: .82rem;
      font-family: inherit;
      box-sizing: border-box;
      transition: border-color .16s ease;
    }
    .req-field input:focus, .req-field select:focus, .req-field textarea:focus {
      outline: 0;
      border-color: #f26422;
      box-shadow: 0 0 0 2px rgba(242,100,34,.2);
    }
    .req-checkbox-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px 12px;
      padding: 12px 14px;
      background: #111317;
      border: 1px solid rgba(255,255,255,.09);
      border-radius: 4px;
    }
    .req-checkbox-grid label {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #adb2bd;
      font-size: .74rem;
      cursor: pointer;
    }
    .req-checkbox-grid input[type="checkbox"] {
      accent-color: #f26422;
      cursor: pointer;
    }
    .req-preview-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .req-preview-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .req-preview-head strong {
      color: #e4c26d;
      font: 600 .74rem/1 var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .req-copy-btn {
      padding: 5px 10px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      border-radius: 3px;
      color: #c9cfdc;
      font: 600 .64rem/1 var(--mono);
      cursor: pointer;
    }
    .req-copy-btn:hover {
      background: rgba(255,255,255,.12);
      color: #fff;
    }
    .req-prompt-preview {
      width: 100%;
      height: 220px;
      padding: 14px 16px;
      background: #0d0f13;
      border: 1px solid rgba(228,188,96,.28);
      border-radius: 5px;
      color: #8ed2ff;
      font-family: var(--mono);
      font-size: .74rem;
      line-height: 1.55;
      resize: none;
      box-sizing: border-box;
    }
    .req-delivery-note {
      padding: 12px 14px;
      border: 1px solid rgba(242,100,34,.3);
      background: rgba(242,100,34,.08);
      border-radius: 4px;
      color: #ffd8cb;
      font-size: .75rem;
      line-height: 1.45;
    }
    .requisition-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 24px;
      background: #14161b;
      border-top: 1px solid rgba(255,255,255,.08);
    }
    #reqStepIndicator {
      color: #838894;
      font: 600 .68rem/1 var(--mono);
      letter-spacing: .1em;
      text-transform: uppercase;
    }
    .requisition-footer-right {
      display: flex;
      gap: 10px;
    }
    .requisition-btn {
      padding: 9px 15px;
      border-radius: 3px;
      font: 700 .68rem/1 var(--mono);
      letter-spacing: .08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all .16s ease;
    }
    .requisition-btn.secondary {
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.14);
      color: #adb2be;
    }
    .requisition-btn.secondary:hover:not(:disabled) {
      background: rgba(255,255,255,.12);
      color: #fff;
    }
    .requisition-btn:disabled {
      opacity: .4;
      cursor: not-allowed;
    }
    .requisition-btn.primary {
      background: #ff5a22;
      border: 1px solid #ff7040;
      color: #fff;
    }
    .requisition-btn.primary:hover {
      background: #ff7040;
    }
    .requisition-btn.insert {
      background: #1e2533;
      border: 1px solid #72c9ff;
      color: #72c9ff;
    }
    .requisition-btn.insert:hover {
      background: #2b3548;
      color: #fff;
    }
    .requisition-btn.dispatch {
      background: linear-gradient(135deg, #f26422, #c89b3c);
      border: 1px solid #e4c26d;
      color: #fff;
      box-shadow: 0 4px 14px rgba(242,100,34,.3);
    }
    .requisition-btn.dispatch:hover {
      background: linear-gradient(135deg, #ff7a2f, #d9bb6a);
    }
    @media (max-width: 680px) {
      .requisition-nav-item { font-size: .56rem; padding: 10px 4px; }
      .req-form-grid { grid-template-columns: 1fr; }
      .req-checkbox-grid { grid-template-columns: 1fr; }
      .requisition-type-grid { grid-template-columns: 1fr; }
    }
    .chat-input-row { margin:0; }
    .chat-input-row input { padding:13px 14px; }
    .chat-input-row button { min-width:90px; }
    .chat-toolbar { margin:0; padding:10px 18px; border-top:1px solid var(--line); background:#121419; }
    .chat-upload-button { display:inline-flex; align-items:center; gap:7px; border-color:rgba(255,90,34,.55); color:#ffd5c6; }
    .chat-upload-button::before { content:'↑'; color:#ff7545; font:800 .9rem/1 var(--mono); }
    .chat-upload-consent { display:flex; align-items:flex-start; gap:8px; width:100%; color:#d5d8df; font:.68rem/1.45 var(--mono); }
    .chat-upload-consent input { flex:0 0 auto; margin-top:2px; accent-color:#ff5a22; }
    .chat-upload-state { display:flex; align-items:center; gap:10px; width:100%; min-height:22px; color:#858a94; font:.64rem/1.35 var(--mono); }
    .chat-upload-state .attached-files { display:flex; gap:6px; margin:0; }
    .chat-upload-state .attached-file { margin:0; padding:4px 7px; border-color:rgba(255,90,34,.25); background:rgba(255,90,34,.07); }
    .chat-email-composer { margin:0; padding:16px 18px 18px; border-top:1px solid rgba(117,108,255,.34); background:linear-gradient(145deg,rgba(63,57,142,.15),#15171c 65%); }
    .chat-email-composer-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .chat-email-composer-head strong { color:#eeeaff; font:600 .76rem/1 var(--mono); letter-spacing:.09em; text-transform:uppercase; }
    .chat-email-close { border:0; background:transparent; color:#999da6; cursor:pointer; font:.72rem/1 var(--mono); }
    .chat-email-close:hover,.chat-email-close:focus-visible { color:#fff; outline:none; text-decoration:underline; }
    .evidence-dock { display:none !important; }
    .evidence-dock .document-panel-head { display:block; padding:18px 16px 14px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,#242016,#17191e 72%); }
    .evidence-dock .document-panel-head strong { display:block; color:#f0e7d5; font:500 1.35rem/1 Georgia,serif; }
    .evidence-kicker { display:block; margin-bottom:6px; color:#ff7545; font:.58rem/1 var(--mono); letter-spacing:.17em; text-transform:uppercase; }
    .evidence-dock .document-actions { display:grid; gap:8px; margin-top:14px; }
    .evidence-dock .document-action { width:100%; min-height:40px; }
    .evidence-dock .document-action.primary::before { content:'↑'; font-size:1rem; }
    .evidence-dock .document-status { margin:0; padding:13px 15px; border-bottom:1px solid var(--line); color:#a2a6ae; line-height:1.45; }
    .evidence-dock .attached-files,.evidence-dock .document-list { margin:0; padding:0 12px; }
    .evidence-dock .document-list { max-height:280px; }
    .evidence-dock .document-item { border-radius:3px; }
    .evidence-custody { margin:12px; padding:12px; border:1px solid rgba(228,188,96,.18); background:rgba(228,188,96,.05); color:#adb1b9; font-size:.75rem; line-height:1.5; }
    .evidence-custody strong { display:block; margin-bottom:4px; color:#e3c674; font:.59rem/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
    /* Olympus operating folios — five distinct decision surfaces, one system. */
    .workspace-page { position:relative; min-height:650px; padding:0; overflow:hidden; border-radius:6px; background:#17191e; }
    .workspace-page::before { content:attr(data-folio); position:absolute; z-index:0; top:-24px; right:22px; color:rgba(255,255,255,.028); font:500 clamp(8rem,18vw,16rem)/1 Georgia,serif; pointer-events:none; }
    .workspace-head { position:relative; z-index:1; min-height:190px; padding:28px 30px 25px; align-items:end; border-bottom:1px solid var(--line); background:radial-gradient(circle at 82% 15%,rgba(228,188,96,.11),transparent 30%),linear-gradient(145deg,#22252b,#17191e 70%); }
    .workspace-head h2 { margin:7px 0 8px; color:#f2ede3; font:500 clamp(2.4rem,5vw,4.5rem)/.94 Georgia,serif; }
    .workspace-head p { color:#a0a4ad; }
    .workspace-head-side { display:grid; gap:12px; justify-items:end; }
    .workspace-folio-meta { display:flex; gap:1px; padding:1px; border:1px solid var(--line); background:rgba(255,255,255,.08); }
    .workspace-folio-meta span { min-width:92px; padding:11px 10px; background:#16181d; color:#858a94; font:.56rem/1.4 var(--mono); letter-spacing:.1em; text-align:center; text-transform:uppercase; }
    .workspace-folio-meta b { display:block; margin-bottom:5px; color:#e4c26d; font:600 1.05rem/1 Georgia,serif; letter-spacing:0; }
    .view-action,.folio-action { border:1px solid #ff7040; border-radius:3px; background:#ff5a22; color:#fff; font:700 .66rem/1 var(--mono); letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }
    .view-action { padding:12px 16px; }
    .folio-action { padding:10px 12px; }
    .view-action:hover,.folio-action:hover { background:#ff7040; }
    .workflow-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; padding:1px; background:rgba(255,255,255,.09); }
    .workflow-card { position:relative; min-height:235px; padding:24px; border:0; border-radius:0; background:linear-gradient(145deg,#202228,#181a1f); }
    .workflow-card::after { content:''; position:absolute; left:24px; right:24px; top:56px; height:1px; background:linear-gradient(90deg,#72c9ff,rgba(114,201,255,.06)); }
    .workflow-card span { color:#e3be63; font-family:var(--mono); }
    .workflow-card h3 { margin-top:30px; color:#f0ece4; font:500 1.65rem/1.08 Georgia,serif; }
    .workflow-card p { min-height:52px; color:#9da1aa; }
    .workflow-route { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:17px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
    .workflow-route code { color:#9f9aff; font:.67rem/1.45 var(--mono); }
    .resource-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:0; padding:1px; background:rgba(255,255,255,.09); }
    .resource-grid article { display:flex; flex-direction:column; min-height:345px; padding:24px 22px; border:0; border-radius:0; background:linear-gradient(160deg,#202229,#17191e); }
    .resource-grid article::before { content:''; width:48px; height:48px; margin-bottom:20px; border:1px solid rgba(228,188,96,.33); border-radius:50%; background-image:var(--resource-face); background-position:center 28%; background-size:cover; box-shadow:0 0 0 4px #13151a; }
    .resource-grid article:nth-child(1) { --resource-face:url('/assets/deities/apollo.webp'); }
    .resource-grid article:nth-child(2) { --resource-face:url('/assets/deities/demeter.webp'); }
    .resource-grid article:nth-child(3) { --resource-face:url('/assets/deities/athena.webp'); }
    .resource-grid h3 { color:#f0ece4; font:500 1.55rem/1.1 Georgia,serif; }
    .resource-list { display:flex; flex-wrap:wrap; gap:6px; margin:5px 0 20px; }
    .resource-list span { padding:5px 7px; border:1px solid rgba(255,255,255,.1); border-radius:3px; color:#afb3bb; font:.61rem/1 var(--mono); }
    .resource-grid .folio-action { align-self:flex-start; margin-top:auto; }
    .cadence-board { padding:0 26px 20px; }
    .timeline-list { margin:0; }
    .timeline-list article { position:relative; grid-template-columns:150px 28px minmax(0,1fr) 150px; gap:16px; align-items:start; padding:23px 4px; }
    .cadence-node { position:relative; width:13px; height:13px; margin-top:4px; border:2px solid #72c9ff; border-radius:50%; background:#17191e; box-shadow:0 0 12px rgba(114,201,255,.35); }
    .cadence-node::after { content:''; position:absolute; left:4px; top:13px; width:1px; height:82px; background:linear-gradient(#72c9ff,rgba(114,201,255,.04)); }
    .timeline-list article:last-child .cadence-node::after { display:none; }
    .timeline-list time { color:#e3bf67; }
    .timeline-list h3 { color:#efebe3; font:500 1.35rem/1.1 Georgia,serif; }
    .cadence-owner { display:flex; align-items:center; gap:8px; color:#afb2ba; font:.62rem/1.3 var(--mono); }
    .cadence-owner::before { content:''; flex:0 0 auto; width:32px; height:32px; border:1px solid rgba(228,188,96,.32); border-radius:50%; background-image:var(--owner-face); background-position:center 28%; background-size:cover; }
    .timeline-list article:nth-child(1) { --owner-face:url('/assets/deities/poseidon.webp'); }
    .timeline-list article:nth-child(2) { --owner-face:url('/assets/deities/artemis.webp'); }
    .timeline-list article:nth-child(3) { --owner-face:url('/assets/deities/hera.webp'); }
    .timeline-list article:nth-child(4) { --owner-face:url('/assets/deities/athena.webp'); }
    .docs-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:0; padding:1px; background:rgba(255,255,255,.09); }
    .docs-grid article { position:relative; min-height:210px; padding:25px 25px 22px 92px; border:0; border-radius:0; background:#191b20; }
    .doc-step { position:absolute; left:24px; top:25px; display:grid; place-items:center; width:46px; height:58px; border:1px solid rgba(228,188,96,.3); border-radius:24px 24px 4px 4px; color:#e1bf68; font:600 1.3rem/1 Georgia,serif; }
    .docs-grid h3 { margin-top:0; color:#efebe3; font:500 1.45rem/1.1 Georgia,serif; }
    .doc-rule { color:#858a94; font:.6rem/1.4 var(--mono); letter-spacing:.07em; text-transform:uppercase; }
    .governance-callout { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; margin:18px; padding:19px 20px; border:1px solid rgba(228,188,96,.22); background:linear-gradient(100deg,rgba(228,188,96,.08),rgba(23,25,30,.9)); }
    .governance-callout strong { display:block; color:#e5c775; font:.64rem/1 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
    .governance-callout p { margin:6px 0 0; color:#a5a9b1; font-size:.8rem; }
    .manual-layout { position:relative; z-index:1; display:grid; grid-template-columns:250px minmax(0,1fr); align-items:start; background:rgba(255,255,255,.08); gap:1px; }
    .manual-index { position:sticky; top:14px; padding:18px 14px; background:#14161b; }
    .manual-index strong { display:block; margin:0 6px 12px; color:#e5c775; font:.62rem/1 var(--mono); letter-spacing:.15em; text-transform:uppercase; }
    .manual-index button { display:block; width:100%; padding:10px 10px; border:0; border-left:2px solid transparent; background:transparent; color:#a9adb5; text-align:left; font:.7rem/1.3 var(--mono); cursor:pointer; }
    .manual-index button:hover,.manual-index button:focus-visible,.manual-index button.active { border-left-color:#ff5a22; outline:none; background:linear-gradient(90deg,rgba(255,90,34,.13),transparent); color:#fff; }
    .manual-index-note { margin:15px 6px 0; padding-top:13px; border-top:1px solid var(--line); color:#747a84; font-size:.67rem; line-height:1.5; }
    .manual-content { min-width:0; background:#191b20; }
    .manual-section { scroll-margin-top:18px; padding:30px clamp(22px,4vw,54px) 34px; border-bottom:1px solid var(--line); }
    .manual-section:last-child { border-bottom:0; }
    .manual-chapter { display:flex; align-items:center; gap:10px; color:#ff7545; font:.62rem/1 var(--mono); letter-spacing:.15em; text-transform:uppercase; }
    .manual-chapter::after { content:''; flex:1; height:1px; background:linear-gradient(90deg,rgba(255,117,69,.4),transparent); }
    .manual-section h3 { max-width:800px; margin:14px 0 10px; color:#f1ede5; font:500 clamp(1.75rem,3vw,2.65rem)/1.03 Georgia,serif; letter-spacing:-.025em; }
    .manual-section h4 { margin:24px 0 8px; color:#e8e3da; font:500 1.15rem/1.2 Georgia,serif; }
    .manual-section > p,.manual-section li,.manual-section dd { color:#adb1b9; font-size:.84rem; line-height:1.65; }
    .manual-section ol,.manual-section ul { margin:12px 0 0; padding-left:21px; }
    .manual-section li + li { margin-top:7px; }
    .manual-section li::marker { color:#e4bc60; font-family:var(--mono); font-weight:700; }
    .manual-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
    .manual-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
    .manual-card { padding:17px 18px; border:1px solid rgba(255,255,255,.09); background:#15171c; }
    .manual-card b { display:block; color:#e3c36f; font:.62rem/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
    .manual-card h4 { margin:8px 0 6px; }
    .manual-card p { margin:0; color:#9fa4ad; font-size:.78rem; line-height:1.55; }
    .manual-page-map { display:grid; grid-template-columns:140px minmax(0,1fr); margin:18px 0 0; border:1px solid var(--line); }
    .manual-page-map dt,.manual-page-map dd { margin:0; padding:11px 13px; border-bottom:1px solid var(--line); }
    .manual-page-map dt { color:#e2c16b; background:#14161b; font:.65rem/1.4 var(--mono); text-transform:uppercase; }
    .manual-page-map dd { background:#1d1f24; }
    .manual-page-map dt:last-of-type,.manual-page-map dd:last-of-type { border-bottom:0; }
    .manual-callout { margin-top:18px; padding:15px 17px; border-left:3px solid #72c9ff; background:rgba(114,201,255,.06); color:#b8bdc6; font-size:.78rem; line-height:1.6; }
    .manual-callout.warning { border-left-color:#e4bc60; background:rgba(228,188,96,.07); }
    .manual-callout strong { color:#f0ebe2; }
    .manual-code { margin:14px 0 0; padding:13px 15px; overflow:auto; border:1px solid rgba(255,255,255,.09); background:#0f1115; color:#9fd8ff; font:.7rem/1.55 var(--mono); white-space:pre-wrap; overflow-wrap:anywhere; }
    .manual-table-wrap { margin-top:17px; overflow-x:auto; border:1px solid var(--line); }
    .manual-table { width:100%; border-collapse:collapse; min-width:620px; }
    .manual-table th,.manual-table td { padding:11px 13px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
    .manual-table th { color:#e4c26c; background:#14161b; font:.61rem/1.3 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .manual-table td { color:#aeb2ba; background:#1a1c21; font-size:.76rem; line-height:1.5; }
    .manual-table tr:last-child td { border-bottom:0; }
    .manual-status-key { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:17px; }
    .manual-status-key div { padding:13px; border:1px solid var(--line); background:#15171c; }
    .manual-status-key i { display:inline-block; width:8px; height:8px; margin-right:7px; border-radius:50%; box-shadow:0 0 9px currentColor; }
    .manual-status-key b { color:#ece8e0; font-size:.76rem; }
    .manual-status-key p { margin:7px 0 0; color:#aeb2ba; font-size:.75rem; line-height:1.45; }
    .manual-status-key .idle { color:#ff713b; }.manual-status-key .working { color:#72c9ff; }.manual-status-key .returning { color:#59e39a; }
    .manual-glossary { display:grid; grid-template-columns:150px minmax(0,1fr); margin-top:17px; }
    .manual-glossary dt,.manual-glossary dd { margin:0; padding:10px 0; border-bottom:1px solid var(--line); }
    .manual-glossary dt { color:#e2c16b; font:.65rem/1.4 var(--mono); }

    .release-ledger { display:grid; gap:1px; margin-top:18px; border:1px solid var(--line); background:var(--line); }
    .release-ledger article { display:grid; grid-template-columns:92px minmax(0,1fr); gap:18px; padding:16px; background:#15171c; }
    .release-ledger time { color:#72c9ff; font:.64rem/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .release-ledger h4 { margin:0 0 6px; }
    .release-ledger p { margin:0; color:#9fa4ad; font-size:.78rem; line-height:1.55; }
    .glossary-page { min-height:680px; }
    .news-page { min-height:720px; }
    .news-brief {
      display:grid;
      grid-template-columns:minmax(0,1fr) auto;
      gap:22px;
      align-items:end;
      padding:24px;
      border-bottom:1px solid var(--line);
      background:radial-gradient(circle at 84% 15%,rgba(92,169,255,.13),transparent 31%),linear-gradient(145deg,#20232a,#17191e);
    }
    .news-brief h2 { margin:7px 0 8px; color:#f4f1e9; font:500 clamp(2rem,4vw,3.5rem)/.96 Georgia,serif; letter-spacing:-.04em; }
    .news-brief p { max-width:68ch; margin:0; color:#9ca1aa; line-height:1.55; }
    .news-run-state { min-width:240px; padding:14px 16px; border:1px solid rgba(229,197,111,.24); background:rgba(12,14,18,.72); }
    .news-run-state span,.news-run-state small { display:block; color:#8c929d; font:.6rem/1.4 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .news-run-state strong { display:block; margin:7px 0; color:#e7c66e; font:500 1.35rem/1 Georgia,serif; }
    .news-sources { display:flex; gap:6px; overflow-x:auto; padding:13px 24px; border-bottom:1px solid var(--line); background:#111318; }
    .news-source { flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid rgba(255,255,255,.09); background:#1b1e23; color:#b5bac3; font:.62rem/1 var(--mono); text-decoration:none; }
    .news-source::before { content:''; width:6px; height:6px; border-radius:50%; background:#59e39a; box-shadow:0 0 8px rgba(89,227,154,.5); }
    .news-source.source-pending::before { background:#e7c66e; box-shadow:0 0 8px rgba(231,198,110,.45); }
    .news-source.source-error::before { background:#ff6b6b; box-shadow:0 0 8px rgba(255,107,107,.45); }
    .news-source[href]:hover,.news-source[href]:focus-visible { border-color:#72c9ff; color:#fff; outline:none; }
    .news-source em { color:#737984; font-style:normal; }
    .news-tools { display:grid; grid-template-columns:minmax(220px,1fr) auto auto; gap:10px; padding:16px 24px; border-bottom:1px solid var(--line); background:#17191e; }
    .news-search { padding:10px 12px; border:1px solid rgba(255,255,255,.12); outline:0; background:#101216; color:#f1f2f4; }
    .news-filter,.news-refresh { padding:10px 12px; border:1px solid rgba(255,255,255,.12); background:#20232a; color:#d7dae0; font:.65rem/1 var(--mono); cursor:pointer; }
    .news-filter:focus,.news-search:focus { border-color:#72c9ff; outline:2px solid rgba(114,201,255,.14); }
    .news-refresh:hover,.news-refresh:focus-visible { border-color:#ff7545; color:#fff; outline:none; }
    .news-summary { display:flex; justify-content:space-between; gap:16px; padding:11px 24px; border-bottom:1px solid var(--line); color:#8e949e; font:.62rem/1.4 var(--mono); }
    .news-summary strong { color:#e1c36f; }
    .news-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; padding:1px; background:rgba(255,255,255,.08); }
    .news-card { position:relative; min-height:220px; padding:20px; background:linear-gradient(145deg,#1d1f24,#17191e); }
    .news-card-head { display:flex; justify-content:space-between; gap:12px; color:#ff7545; font:.58rem/1.4 var(--mono); letter-spacing:.09em; text-transform:uppercase; }
    .news-card h3 { margin:14px 0 9px; color:#f0ece4; font:500 1.35rem/1.16 Georgia,serif; }
    .news-card p { margin:0; color:#a5aab3; font-size:.79rem; line-height:1.58; }
    .news-card-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:15px; }
    .news-card-tags span { padding:5px 7px; border:1px solid rgba(114,201,255,.2); color:#9edbff; font:.56rem/1 var(--mono); text-transform:uppercase; }
    .news-card footer { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:18px; }
    .news-card footer span { color:#737984; font:.58rem/1.3 var(--mono); }
    .news-card a { color:#ff8b63; font:.62rem/1 var(--mono); text-decoration:none; text-transform:uppercase; }
    .news-card a:hover,.news-card a:focus-visible { color:#fff; outline:2px solid #79ceff; outline-offset:3px; }
    .news-empty { grid-column:1/-1; padding:54px 24px; background:#191b20; color:#9da2ab; text-align:center; line-height:1.6; }
    .ai-news-page { --ai-cyan:#55dccb; --ai-violet:#8c84ff; }
    .ai-news-page .news-brief {
      position:relative;
      overflow:hidden;
      background:
        radial-gradient(circle at 85% 18%,rgba(140,132,255,.22),transparent 30%),
        radial-gradient(circle at 18% 88%,rgba(85,220,203,.12),transparent 34%),
        linear-gradient(145deg,#18242b,#15171e 62%);
    }
    .ai-news-page .news-brief::after {
      content:'AI × GxP';
      position:absolute;
      right:-10px;
      bottom:-20px;
      color:rgba(255,255,255,.025);
      font:700 clamp(4rem,11vw,9rem)/1 var(--mono);
      letter-spacing:-.08em;
      pointer-events:none;
    }
    .ai-news-page .section-label,.ai-news-page .news-card-head { color:var(--ai-cyan); }
    .ai-news-page .news-run-state { border-color:rgba(85,220,203,.3); }
    .ai-news-page .news-run-state strong,.ai-news-page .news-summary strong { color:#b9fff6; }
    .ai-news-page .news-source::before { background:var(--ai-violet); box-shadow:0 0 9px rgba(140,132,255,.65); }
    .ai-news-page .news-source.source-ok::before { background:#59e39a; box-shadow:0 0 8px rgba(89,227,154,.5); }
    .ai-news-page .news-source.source-pending::before { background:#e7c66e; box-shadow:0 0 8px rgba(231,198,110,.45); }
    .ai-news-page .news-source.source-error::before { background:#ff6b6b; box-shadow:0 0 8px rgba(255,107,107,.45); }
    .ai-news-page .news-card { background:linear-gradient(150deg,#1a2229,#16181f); }
    .ai-news-page .news-card::before { content:''; position:absolute; inset:0 auto 0 0; width:2px; background:linear-gradient(var(--ai-cyan),var(--ai-violet)); opacity:.72; }
    .ai-news-page .news-card-tags span { border-color:rgba(140,132,255,.28); color:#c7c3ff; }
    .ai-news-page .news-card a { color:#7ce7d9; }
    .ai-news-tools { grid-template-columns:minmax(220px,1fr) auto auto auto; }
    .ai-signal-lattice { display:flex; align-items:center; gap:10px; height:22px; margin-top:18px; }
    .ai-signal-lattice i { width:7px; height:7px; border-radius:50%; background:var(--ai-cyan); box-shadow:0 0 12px rgba(85,220,203,.7); }
    .ai-signal-lattice i:nth-child(even) { background:var(--ai-violet); box-shadow:0 0 12px rgba(140,132,255,.7); }
    .ai-signal-lattice i::after { content:''; display:block; width:12px; height:1px; margin:3px 0 0 7px; background:linear-gradient(90deg,currentColor,transparent); opacity:.55; }
    @media (max-width:1000px) { .ai-news-tools { grid-template-columns:1fr 1fr; } }
    @media (max-width:800px) {
      .news-brief,.news-tools { grid-template-columns:1fr; }
      .news-grid { grid-template-columns:1fr; }
      .news-run-state { min-width:0; }
    }
    .glossary-tools { position:relative; z-index:1; display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:12px; padding:18px 24px; border-bottom:1px solid var(--line); background:#14161b; }
    .glossary-search { display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid rgba(255,255,255,.12); background:#1c1e24; color:#c8ccd3; }
    .glossary-search input { width:100%; border:0; outline:0; background:transparent; color:#f1ede5; }
    .glossary-search input::placeholder { color:#747a84; }
    .glossary-count { align-self:center; color:#e3c36f; font:.64rem/1 var(--mono); letter-spacing:.1em; text-transform:uppercase; }
    .glossary-index { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:5px; padding:14px 24px; border-bottom:1px solid var(--line); background:#191b20; }
    .glossary-letter { min-width:30px; padding:7px; border:1px solid rgba(255,255,255,.1); background:transparent; color:#aeb2ba; font:.64rem/1 var(--mono); cursor:pointer; }
    .glossary-letter:hover,.glossary-letter:focus-visible,.glossary-letter.active { outline:0; border-color:#ff7545; color:#fff; background:rgba(255,117,69,.12); }
    .glossary-grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; padding:1px; background:rgba(255,255,255,.09); }
    .glossary-entry { min-height:180px; padding:22px; background:#191b20; }
    .glossary-entry[hidden] { display:none; }
    .glossary-entry .term-letter { color:#ff7545; font:.58rem/1 var(--mono); letter-spacing:.14em; text-transform:uppercase; }
    .glossary-entry h3 { margin:13px 0 9px; color:#f0ece4; font:500 1.35rem/1.08 Georgia,serif; }
    .glossary-entry p { margin:0; color:#a7abb4; font-size:.78rem; line-height:1.58; }
    .glossary-entry footer { margin-top:14px; color:#7d838d; font:.58rem/1.3 var(--mono); letter-spacing:.08em; text-transform:uppercase; }
    .glossary-empty { grid-column:1 / -1; padding:42px; background:#191b20; color:#a7abb4; text-align:center; }
    .office-view { min-height:780px; border-radius:6px; }
    #officeCanvas { height:780px; }
    .office-copy { margin:30px 0 24px 32px; }
    .office-copy h2 { color:#f0eadd; font-family:Georgia,serif; }
    .office-command-rail { position:relative; z-index:4; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center; margin:16px 22px 20px; padding:14px 15px; border:1px solid rgba(255,255,255,.1); background:rgba(15,17,22,.86); backdrop-filter:blur(12px); }
    .office-command-copy { display:flex; align-items:center; gap:14px; }
    .office-command-copy::before { content:'LIVE'; color:#72c9ff; font:700 .57rem/1 var(--mono); letter-spacing:.15em; }
    .office-command-copy span { color:#b9bdc4; font-size:.75rem; }
    .office-command-actions { display:flex; gap:8px; }
    .pill { color: #d9dade; background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.12); border-radius: 3px; }
    .stat .kicker { color: #ff7545; }
    .stat .big[id] {
      font-size:clamp(2.25rem,3.3vw,4.2rem);
      overflow-wrap:anywhere;
    }
    #routingPath { overflow-wrap:anywhere; }
    #routingState { color:#ff7545; text-transform:uppercase; }
    .drawer {
      color: #f0f1f3;
      background: linear-gradient(155deg, rgba(31, 33, 39, .98), rgba(20, 22, 26, .98));
      border: 1px solid rgba(255,255,255,.14);
      box-shadow: 0 28px 70px rgba(0,0,0,.48);
      border-radius: 6px;
    }
    .footer {
      display:grid;
      grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
      align-items:center;
      padding-bottom:72px;
      color:#969aa3;
    }
    .footer > span:last-child { text-align:right; }
    .footer-credit {
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      color:#c7c9ce;
      white-space:nowrap;
    }
    .footer-portrait-link {
      display:inline-grid;
      flex:0 0 auto;
      width:38px;
      height:38px;
      overflow:hidden;
      border:1px solid rgba(228,194,109,.75);
      border-radius:50%;
      box-shadow:0 0 0 3px rgba(228,194,109,.08),0 8px 18px rgba(0,0,0,.24);
      transition:transform .16s ease,border-color .16s ease;
    }
    .footer-portrait-link:hover { transform:translateY(-1px); border-color:#f0d486; }
    .footer-portrait {
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center;
    }
    .footer-portrait-container {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin-right: 4px;
    }
    .footer-counter {
      font-size: 10px;
      font-family: var(--mono);
      font-weight: 700;
      background: rgba(228, 194, 109, 0.08);
      border: 1px solid rgba(228, 194, 109, 0.35);
      border-radius: 4px;
      padding: 1px 5px;
      color: #e4c27d;
      user-select: none;
      transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
      box-shadow: 0 2px 4px rgba(0,0,0,0.15);
      line-height: 1.2;
      display: inline-flex;
      align-items: center;
      gap: 2px;
    }
    .visitor-eye {
      font-size: 11px;
      line-height: 1;
    }
    .footer-counter.visitor-pulse {
      border-color: #ffcf70;
      box-shadow: 0 0 12px rgba(255, 207, 112, 0.4);
    }
    .footer-link {
      color:#c7c9ce;
      text-decoration:none;
      transition:color .16s ease;
    }
    .footer-link:hover { color:#fff; }
    .linkedin-icon {
      display:inline-grid;
      place-items:center;
      width:20px;
      height:20px;
      border-radius:3px;
      background:#0a66c2;
      color:#fff;
      font:bold 13px/1 Arial,sans-serif;
      letter-spacing:-.04em;
    }
    .portfolio-link {
      display:inline-flex;
      align-items:center;
      gap:5px;
      margin-left:3px;
      padding-left:11px;
      border-left:1px solid rgba(255,255,255,.14);
      color:#e4c26d;
      text-decoration:none;
      transition:color .16s ease;
    }
    .portfolio-link span { color:#b4b7be; }
    .portfolio-link:hover,.portfolio-link:hover span { color:#fff; }

    .hidden { display: none !important; }

    @media (max-width: 1240px) {
      .hero, .grid-3, .agents-section, .stats, .chat-section { grid-template-columns: 1fr; }
      .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .agents-section .sidebar-panel { position:static; }
      .chat-section { grid-template-columns:230px minmax(0,1fr); }
      .evidence-dock { position:static; grid-column:1 / -1; }
      .resource-grid { grid-template-columns:1fr; }
      .council-brief { grid-template-columns:190px minmax(0,1fr); }
      .route-actions { grid-column:2; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
      .orchestrator, .activity { min-height: auto; }
      .search { min-width: 260px; }
    }

    @media (max-width: 760px) {
      .topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
          'brand'
          'tabs'
          'actions'
          'routing';
        align-items: stretch;
      }
      .brand, .top-actions { min-width: 0; }
      .tabs { justify-content: flex-start; }
      .search { min-width: 0; width: 100%; }
      .agent-grid { grid-template-columns: 1fr; }
      .agent-page-head { grid-template-columns:1fr; }
      .agent-page-stats { grid-template-columns:repeat(3,1fr); }
      .agents-section .agent-grid { grid-template-columns:1fr; }
      .chat-section { grid-template-columns:1fr; }
      .content.office-mode .office-view { grid-template-columns:1fr; }
      .office-copy { grid-row:1; margin:24px 22px 12px; }
      .office-copy h2 { font-size:clamp(2.2rem,11vw,3.6rem); }
      .office-stats { grid-row:2; margin:0 22px 16px; flex-wrap:wrap; }
      .office-legend { position:relative; grid-column:1; grid-row:3; justify-self:start; top:auto; right:auto; margin:0 22px 18px; border-radius:12px; white-space:normal; flex-wrap:wrap; }
      #officeCanvas { grid-row:4; }
      .overview-route-toolbar { align-items:flex-start; flex-direction:column; }
      .chat-roster { position:static; max-height:390px; }
      .chat-head { align-items:flex-start; }
      .chat-head-actions { width:100%; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
      .dispatch-seal { grid-template-columns:40px 42px minmax(76px,auto); }
      .dispatch-face { width:40px; height:40px; }
      .message-stream { padding:14px 12px; }
      .message.user,.message.assistant { margin-left:0; margin-right:0; }
      .council-brief { grid-template-columns:1fr; gap:14px; }
      .route-portrait { width:178px; height:140px; }
      .route-specialist { width:108px; height:108px; }
      .route-actions { grid-column:auto; grid-template-columns:1fr; }
      .route-profile { text-align:left; }
      .route-evidence { grid-template-columns:1fr; }
      .top-actions { flex-wrap: wrap; }
      .metric { flex-direction: column; align-items: start; }
      .office-view { min-height:820px; }
      #officeCanvas { height:820px; }
      .office-copy { top:auto; left:auto; right:auto; }
      .office-copy p { max-width:100%; font-size:.82rem; }
      .office-stats { top:auto; right:auto; flex-direction:row; }
      .office-stat { min-width:60px; padding:8px 10px; }
      .office-stat strong { font-size:1.25rem; }
      .office-legend { top:auto; left:auto; right:auto; }
      .workspace-page { padding:0; }
      .workspace-head { display:grid; }
      .workspace-head-side { justify-items:start; }
      .workspace-folio-meta { flex-wrap:wrap; }
      .view-action { justify-self:start; }
      .workflow-grid,.resource-grid,.docs-grid { grid-template-columns:1fr; }
      .workflow-route { align-items:flex-start; flex-direction:column; }
      .timeline-list article { grid-template-columns:1fr; gap:4px; padding-left:36px; }
      .cadence-node { position:absolute; left:5px; top:22px; }
      .cadence-owner { margin-top:6px; }
      .docs-grid article { padding-left:82px; }
      .governance-callout,.office-command-rail { grid-template-columns:1fr; }
      .office-command-actions { flex-wrap:wrap; }
      .manual-layout { grid-template-columns:1fr; }
      .manual-index { position:static; display:flex; gap:4px; overflow-x:auto; padding:10px; }
      .manual-index strong,.manual-index-note { display:none; }
      .manual-index button { flex:0 0 auto; width:auto; border-left:0; border-bottom:2px solid transparent; white-space:nowrap; }
      .manual-index button:hover,.manual-index button:focus-visible,.manual-index button.active { border-left-color:transparent; border-bottom-color:#ff5a22; }
      .manual-card-grid,.manual-status-key { grid-template-columns:1fr; }
      .manual-page-map,.manual-glossary { grid-template-columns:1fr; }
      .manual-page-map dt,.manual-glossary dt { border-bottom:0; padding-bottom:3px; }
      .manual-page-map dd,.manual-glossary dd { padding-top:3px; }
      .chat-roster { padding-bottom:12px; }
      .network { height:540px; }
      .network svg { display:none; }
      .network .node { width:38px; height:38px; }
      .network .node.center { width:68px; height:68px; }
      .network .node small { font-size:.625rem; letter-spacing:.02em; }
      .network .n1,.network .n7,.network .n12,.network .n17 { left:8%; }
      .network .n2,.network .n8,.network .n13,.network .n18 { left:25%; }
      .network .n3,.network .n9,.network .n14,.network .n19 { left:42%; }
      .network .n4,.network .n10,.network .n15,.network .n20 { left:58%; }
      .network .n5,.network .n11,.network .n16,.network .n21 { left:75%; }
      .network .n6,.network .n22 { left:92%; }
      .network .n23,.network .n28 { left:10%; }.network .n24,.network .n29 { left:30%; }
      .network .n25,.network .n30 { left:50%; }.network .n26,.network .n31 { left:70%; }
      .network .n27,.network .n32 { left:90%; }
      .network .n1,.network .n2,.network .n3,.network .n4,.network .n5,.network .n6 { top:7%; }
      .network .n7,.network .n8,.network .n9,.network .n10,.network .n11 { top:21%; }
      .network .n7 { left:10%; }.network .n8 { left:30%; }.network .n9 { left:50%; }.network .n10 { left:70%; }.network .n11 { left:90%; }
      .network .n23,.network .n24,.network .n25,.network .n26,.network .n27 { top:35%; }
      .network .n28,.network .n29,.network .n30,.network .n31,.network .n32 { top:49%; }
      .network .n33,.network .n34,.network .n35,.network .n36 { top:58%; }
      .network .n33 { left:12%; }.network .n34 { left:37%; }.network .n35 { left:63%; }.network .n36 { left:88%; }
      .network .n37,.network .n38,.network .n39 { top:68%; }
      .network .n37 { left:20%; }.network .n38 { left:50%; }.network .n39 { left:80%; }
      .network .node.center { top:78%; }
      .network .n12,.network .n13,.network .n14,.network .n15,.network .n16 { top:88%; }
      .network .n12 { left:10%; }.network .n13 { left:30%; }.network .n14 { left:50%; }.network .n15 { left:70%; }.network .n16 { left:90%; }
      .network .n17,.network .n18,.network .n19,.network .n20,.network .n21,.network .n22 { top:97%; }
      .chat-roster > p:last-child { display:none; }
      .chat-agent-list { display:flex; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x proximity; padding-bottom:6px; }
      .chat-agent { flex:0 0 175px; scroll-snap-align:start; }
      .chat-stream { min-height:520px; }
      .network.olympus-temple { height: 620px; margin-top: 18px; }
      .node { width: 46px; height: 46px; font-size: .75rem; }
      .node.center { width: 72px; height: 72px; font-size: .76rem; }
      .node small { top:calc(100% + 4px); font-size:.625rem; letter-spacing:.04em; }
      .footer { grid-template-columns:1fr; justify-items:start; gap:10px; }
      .footer > span:last-child { text-align:left; }
      .footer-credit { justify-content:flex-start; flex-wrap:wrap; white-space:normal; }
      .fda-news-widget { right:7px; bottom:124px; width:calc(100vw - 14px); height:calc(100vh - 138px); border-radius:18px; }
    }

    /* Keep operational labels readable across dense desktop and mobile layouts. */
    .chat-cosmos::before,
    .eyebrow,
    .section-label,
    .card .section-label,
    .pill,
    .kicker,
    .stat .kicker,
    .office-stat span,
    .office-legend,
    .network .node small,
    .temple-pediment::after,
    .temple-route-legend,
    .network.olympus-temple .node small,
    .oracle-primary span,
    .oracle-action b,
    .oracle-seal span,
    .council-zeus span,
    .agent-page-stat span,
    .agents-section .agent::after,
    .route-profile,
    .route-chat,
    .council-roster-head span,
    .council-roster-head strong,
    .chat-roster-head p,
    .chat-agent span,
    .chat-head p,
    .dispatch-label,
    .chat-status,
    .chat-prompt,
    .evidence-kicker,
    .evidence-custody strong,
    .workspace-folio-meta span,
    .view-action,
    .folio-action,
    .workflow-route code,
    .resource-list span,
    .cadence-owner,
    .doc-rule,
    .governance-callout strong,
    .manual-index strong,
    .manual-index button,
    .manual-index-note,
    .manual-code,
    .manual-chapter,
    .manual-card b,
    .manual-page-map dt,
    .manual-table th,
    .manual-glossary dt,
    .office-command-copy::before {
      font-size: .75rem;
    }
    .message .meta span { font-size: .75rem; }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
      }
    }

    @media (max-width: 1050px) {
      .glossary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    }
    @media (max-width: 760px) {
      .brand { align-items:flex-start; min-width:0; }
      .brand-meta { justify-items:start; }
      .puerto-rico-clock { padding:10px 12px; }
      .glossary-tools { grid-template-columns:1fr; padding:14px; }
      .glossary-index { padding:12px 14px; }
      .glossary-grid { grid-template-columns:1fr; }
      .glossary-entry { min-height:0; }
      .release-ledger article { grid-template-columns:1fr; gap:7px; }
    }
    /* FDA-inspired regulatory shell: Merriweather headings, Source Sans body,
       federal blue hierarchy, square controls, and a high-contrast dark view. */
    :root,
    html[data-theme="light"] {
      color-scheme: light;
      --bg:#f5f7fa; --bg-2:#e7eef6; --ink:#1b1b1b; --muted:#4a5560;
      --panel:#ffffff; --panel-2:#eef4fa; --card:#ffffff;
      --line:rgba(16,57,96,.16); --line-strong:rgba(16,57,96,.3);
      --orange:#005ea8; --orange-2:#007cba; --green:#008659; --red:#c71936; --gold:#205493;
      --shadow:0 8px 24px rgba(16,57,96,.10);
      --serif:"Merriweather",Georgia,Cambria,"Times New Roman",serif;
      --sans:"Source Sans 3","Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
      --mono:"Source Sans 3","Source Sans Pro","Helvetica Neue",Helvetica,Arial,sans-serif;
    }
    html[data-theme="dark"] {
      color-scheme:dark;
      --bg:#091827; --bg-2:#102b42; --ink:#f5f8fb; --muted:#b9c8d6;
      --panel:#102b42; --panel-2:#163a58; --card:#102f49;
      --line:rgba(198,222,243,.18); --line-strong:rgba(198,222,243,.34);
      --orange:#73b3e7; --orange-2:#97d4ff; --green:#56d6a1; --red:#ff8da1; --gold:#9ecaf0;
      --shadow:0 12px 34px rgba(0,0,0,.28);
    }
    html,body { background:var(--bg); }
    body {
      color:var(--ink); font-family:var(--sans); font-size:16px; line-height:1.5;
      background-image:linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);
      background-attachment:fixed;
    }
    body::before { display:none; }
    .shell { max-width:1600px; padding:0 22px 30px; }
    .topbar {
      grid-template-columns:minmax(270px,340px) minmax(0,1fr);
      grid-template-areas:'brand actions' 'tabs tabs' 'routing routing';
      margin:0 -22px 22px; padding:14px 22px 0; gap:12px 18px;
      background:#005ea8; border-bottom:5px solid #003e73;
      box-shadow:0 4px 16px rgba(0,62,115,.18);
    }
    html[data-theme="dark"] .topbar { background:#071f33; border-bottom-color:#2c67a6; }
    .brand { min-width:250px; color:#fff; }
    .brand-mark {
      flex:0 0 42px; width:42px; height:42px; border:2px solid rgba(255,255,255,.92); border-radius:50%;
      background-image:linear-gradient(to top,rgba(0,24,71,.38),transparent 54%),url('/assets/deities/zeus.webp');
      background-position:center 27%; background-size:cover;
      box-shadow:0 0 0 3px rgba(7,31,51,.65),0 0 16px rgba(151,212,255,.26); transform:none;
    }
    .brand-title { font-family:var(--serif); font-size:1.24rem; font-weight:700; letter-spacing:-.015em; }
    .badge {
      color:#eaf4fb; background:transparent; border:0; padding:0; font-size:.72rem;
      letter-spacing:.04em; text-transform:none; box-shadow:none; backdrop-filter:none;
    }
    .puerto-rico-clock {
      padding:7px 10px 8px; color:#fff; background:rgba(0,24,71,.34);
      border:1px solid rgba(255,255,255,.28); border-left:4px solid #b3d1ff;
      box-shadow:none; font-family:var(--sans);
    }
    .puerto-rico-clock strong { font-size:1.1rem; letter-spacing:.035em; text-shadow:none; }
    .puerto-rico-clock span,.puerto-rico-clock small { font-size:.7rem; letter-spacing:.035em; text-transform:none; }
    .tabs {
      align-self:end; justify-content:center; flex-wrap:wrap; gap:2px;
      width:100%; overflow:visible; padding-top:2px;
    }
    .tab {
      min-height:44px; padding:10px 13px; color:#fff; background:transparent; border:0;
      border-bottom:4px solid transparent; border-radius:0; box-shadow:none;
      backdrop-filter:none; font-weight:600;
    }
    .tab:hover { transform:none; background:rgba(255,255,255,.1); border-bottom-color:#b3d1ff; }
    .tab.active { color:#001871; background:#fff; border-color:#fff; box-shadow:none; }
    html[data-theme="dark"] .tab.active { color:#fff; background:#163a58; border-color:#73b3e7; }
    .top-actions { min-width:0; }
    .search { width:100%; min-width:0; }
    .search,.theme-toggle {
      color:#1b1b1b; background:#fff; border:1px solid rgba(0,0,0,.16);
      border-radius:2px; box-shadow:none; backdrop-filter:none;
    }
    .search input { color:#1b1b1b; }
    .search input::placeholder { color:#555; }
    .theme-toggle {
      display:inline-grid; width:44px; height:44px; flex:0 0 44px;
      place-items:center; padding:0; cursor:pointer;
    }
    .theme-toggle svg {
      width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8;
      stroke-linecap:round; stroke-linejoin:round;
    }
    .theme-toggle .theme-sun { display:none; }
    html[data-theme="dark"] .theme-toggle .theme-moon { display:none; }
    html[data-theme="dark"] .theme-toggle .theme-sun { display:block; }
    .theme-toggle:hover { background:#e7f3fb; }
    .theme-toggle:focus-visible { outline:3px solid #fdb81e; outline-offset:2px; }
    .routing-strip {
      margin-bottom:14px; padding:12px 14px; color:var(--ink); background:var(--panel);
      background-image:none; border:1px solid rgba(0,80,120,.28); border-left:6px solid #007cba;
      border-radius:2px; box-shadow:0 5px 16px rgba(0,62,115,.14); backdrop-filter:none;
    }
    .routing-strip-state { color:var(--ink); font-family:var(--serif); font-weight:700; }
    .routing-strip-caption { color:var(--muted); }
    .routing-strip-path { color:#005ea8; }
    html[data-theme="dark"] .routing-strip-path { color:#97d4ff; }
    .routing-strip-chip { color:var(--muted); background:var(--panel-2); border-color:var(--line); backdrop-filter:none; }
    .routing-strip-chip.active { color:#fff; background:#005ea8; border-color:#005ea8; box-shadow:none; }
    .section-label,.eyebrow,.card .section-label {
      color:#005ea8 !important; font-family:var(--sans); letter-spacing:.065em; font-weight:700;
    }
    html[data-theme="dark"] .section-label,
    html[data-theme="dark"] .eyebrow,
    html[data-theme="dark"] .card .section-label { color:#97d4ff !important; }
    .headline,.activity h2,.workspace-head h2,.chat-head h3,.chat-roster-head h3 {
      font-family:var(--serif); font-weight:700;
    }
    .panel,.card,.sidebar-panel,.main-panel,.chat-roster,.chat-stream,.workspace-page,.stat {
      color:var(--ink); background:var(--panel); background-image:none; border-color:var(--line);
      border-radius:3px; box-shadow:var(--shadow); backdrop-filter:none;
    }
    .chat-roster-head,.chat-head,.chat-composer,.chat-toolbar {
      color:var(--ink); background:var(--panel); border-color:var(--line);
    }
    .chat-roster-head h3,.chat-head h3 { color:var(--ink); }
    .chat-roster-head p,.chat-head p,.chat-roster-foot,.chat-hint { color:var(--muted) !important; }
    .chat-agent { color:var(--ink); background:var(--panel); border-color:var(--line); }
    .chat-agent:hover { background:var(--panel-2); border-color:#007cba; }
    .chat-agent.active { color:#fff; background:#005ea8; box-shadow:inset 4px 0 #b3d1ff; }
    .chat-agent span { color:inherit; opacity:.8; }
    .chat-status { color:#fff; background:#005ea8; border-color:#005ea8; }
    .chat-input-row input,.agent-roster-search {
      color:var(--ink); background:var(--panel); border-color:var(--line-strong);
    }
    .chat-input-row input::placeholder,.agent-roster-search::placeholder { color:var(--muted); }
    .chat-input-row button,.folio-action,.view-action,.route-chat {
      color:#fff; background:#005ea8; border-color:#005ea8; border-radius:2px; box-shadow:none;
    }
    .chat-input-row button:hover,.folio-action:hover,.view-action:hover,.route-chat:hover { background:#1e5f89; }
    .chat-prompt,.chat-refresh,.document-action,.email-draft-button {
      color:var(--ink); background:var(--panel-2); border-color:var(--line-strong); border-radius:2px;
    }
    .chat-prompt:hover,.chat-prompt:focus-visible { color:#005ea8; border-color:#005ea8; }
    html[data-theme="dark"] .chat-prompt:hover,
    html[data-theme="dark"] .chat-prompt:focus-visible { color:#97d4ff; }
    .message.assistant { color:var(--ink); background:var(--panel-2); border-color:var(--line); }
    .message.user { color:#fff; background:#005ea8; border-color:#005ea8; }
    .footer { color:var(--muted); }
    @media (max-width:900px) {
      .topbar {
        grid-template-areas:'brand actions' 'tabs tabs' 'routing routing';
        grid-template-columns:minmax(0,1fr) auto;
      }
      .top-actions { min-width:0; }
      .search { display:none; }
    }
    /* Dark-view contrast repair for rendered assistant content and structured tables. */
    html[data-theme="dark"] .message.assistant .message-body,
    html[data-theme="dark"] .message.assistant .message-body p,
    html[data-theme="dark"] .message.assistant .message-body li,
    html[data-theme="dark"] .message.assistant .message-table td {
      color:#f5f8fb;
    }
    html[data-theme="dark"] .message.assistant .message-body h2,
    html[data-theme="dark"] .message.assistant .message-body h3,
    html[data-theme="dark"] .message.assistant .message-body h4,
    html[data-theme="dark"] .message.assistant .message-body strong {
      color:#ffffff;
    }
    html[data-theme="dark"] .message.assistant .message-body a { color:#97d4ff; }
    html[data-theme="dark"] .message.assistant .message-body code {
      color:#d8edff; background:#071f33; border-color:rgba(151,212,255,.28);
    }
    html[data-theme="dark"] .message.assistant .message-table-wrap {
      border-color:rgba(198,222,243,.28); background:#0b2235;
    }
    html[data-theme="dark"] .message.assistant .message-table th {
      color:#ffffff; background:#315a77; border-color:rgba(255,255,255,.2);
    }
    html[data-theme="dark"] .message.assistant .message-table td {
      background:#102f49; border-color:rgba(198,222,243,.18);
    }
    html[data-theme="dark"] .message.assistant .message-table tr:nth-child(even) td { background:#163a58; }

    .chat-section.auth-required {
      position:relative; display:block; min-height:620px;
    }
    .chat-section.auth-required > :not(.chat-auth-gate) { display:none; }
    .chat-auth-gate {
      min-height:620px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:clamp(24px,6vw,80px);
      border:1px solid var(--line); border-top:6px solid #2c67a6; border-radius:3px;
      background:
        linear-gradient(rgba(44,103,166,.055) 1px,transparent 1px),
        linear-gradient(90deg,rgba(44,103,166,.055) 1px,transparent 1px),
        var(--panel);
      background-size:32px 32px; box-shadow:var(--shadow);
    }
    .chat-auth-gate[hidden] { display:none; }
    .chat-auth-banner { margin-bottom:32px; text-align:center; max-width:580px; }
    .chat-auth-banner h1 { margin:0 0 12px; color:var(--ink); font:700 clamp(1.8rem,5vw,2.4rem)/1.15 var(--serif); }
    .chat-auth-banner p { margin:0; color:var(--muted); font-size:1.05rem; line-height:1.5; }
    .chat-auth-card {
      width:min(470px,100%); padding:clamp(26px,5vw,44px); margin-bottom:32px;
      color:var(--ink); background:var(--panel); border:1px solid var(--line-strong);
      border-radius:3px; box-shadow:0 20px 54px rgba(0,31,57,.18);
    }
    .chat-auth-examples { display:flex; gap:16px; flex-wrap:wrap; justify-content:center; max-width:800px; margin-top:16px; }
    .chat-auth-example { flex:1 1 240px; background:var(--panel-2); border:1px solid var(--line-strong); padding:16px 20px; border-radius:3px; font-size:.85rem; line-height:1.4; color:var(--muted); }
    .chat-auth-example strong { display:block; margin-bottom:6px; color:var(--ink); font-size:.9rem; }
    .chat-auth-lock {
      display:grid; width:48px; height:48px; place-items:center; margin-bottom:22px;
      color:#fff; background:#005ea8; border-radius:2px;
    }
    .chat-auth-lock svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.8; }
    .chat-auth-card h2 { margin:8px 0 10px; color:var(--ink); font:700 clamp(1.55rem,4vw,2.15rem)/1.15 var(--serif); }
    .chat-auth-card > p { margin:0 0 24px; color:var(--muted); }
    .chat-auth-form { display:grid; gap:16px; }
    .chat-auth-form label { display:grid; gap:7px; color:var(--ink); font-weight:700; }
    .chat-auth-form input {
      width:100%; min-height:48px; padding:10px 12px; color:var(--ink);
      background:var(--panel-2); border:1px solid var(--line-strong); border-radius:2px; outline:none;
    }
    .chat-auth-form input:focus { border-color:#73b3e7; box-shadow:0 0 0 3px rgba(115,179,231,.24); }
    .chat-auth-submit {
      min-height:48px; border:1px solid #005ea8; border-radius:2px;
      color:#fff; background:#005ea8; font-weight:700; cursor:pointer;
    }
    .chat-auth-submit:hover { background:#1e5f89; }
    .chat-auth-submit:disabled { opacity:.55; cursor:wait; }
    .chat-auth-status { min-height:22px; margin:0; color:var(--red); font-weight:600; }
    html[data-theme="dark"] .chat-auth-card { box-shadow:0 24px 64px rgba(0,0,0,.38); }
    .about-page { padding:0; overflow:hidden; }
    .about-hero {
      position:relative; isolation:isolate; min-height:clamp(590px,75vh,760px); display:flex; align-items:flex-end;
      padding:clamp(34px,6vw,82px); color:#fff; overflow:hidden;
      background-image:linear-gradient(90deg,rgba(2,28,51,.96) 0%,rgba(2,36,65,.82) 43%,rgba(2,36,65,.2) 76%),url('/assets/olympus-validation-hero.webp');
      background-size:cover; background-position:center; border-bottom:6px solid #73b3e7;
    }
    .about-hero::before {
      content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
      background:linear-gradient(180deg,rgba(0,94,168,.08),rgba(0,24,71,.38));
    }
    .about-hero-copy { width:min(760px,100%); }
    .about-kicker { display:flex; align-items:center; gap:10px; margin-bottom:18px; color:#b8dcf5; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
    .about-kicker::before { content:''; width:38px; height:3px; background:#fdb81e; }
    .about-hero h2 { max-width:720px; margin:0; color:#fff; font:700 clamp(2.7rem,6.4vw,5.65rem)/.98 var(--serif); letter-spacing:-.045em; text-wrap:balance; }
    .about-hero p { max-width:690px; margin:24px 0 0; color:#eef7fd; font-size:clamp(1.05rem,1.8vw,1.32rem); line-height:1.65; }
    .about-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:30px; }
    .about-action { min-height:48px; padding:12px 18px; border:2px solid #fff; border-radius:2px; color:#fff; background:rgba(0,24,71,.42); font-weight:800; cursor:pointer; }
    .about-action.primary { color:#001871; background:#fff; }
    .about-action:hover,.about-action:focus-visible { outline:3px solid #fdb81e; outline-offset:3px; }
    .about-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--line); background:var(--panel); }
    .about-proof div { padding:24px clamp(20px,3vw,42px); border-right:1px solid var(--line); }
    .about-proof div:last-child { border-right:0; }
    .about-proof strong { display:block; color:var(--ink); font-family:var(--serif); font-size:1.12rem; }
    .about-proof span { display:block; margin-top:5px; color:var(--muted); }
    .about-body { padding:clamp(42px,7vw,86px); background:var(--bg); }
    .about-intro { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(34px,7vw,100px); align-items:start; }
    .about-section-label { color:#73b3e7; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
    .about-intro h3,.about-services-head h3,.about-process h3 { margin:10px 0 0; color:var(--ink); font:700 clamp(2rem,4vw,3.6rem)/1.08 var(--serif); letter-spacing:-.035em; text-wrap:balance; }
    .about-intro-copy { padding-top:8px; }
    .about-intro-copy p { margin:0 0 18px; color:var(--muted); font-size:1.08rem; line-height:1.75; }
    .about-intro-copy strong { color:var(--ink); }
    .about-services { margin-top:clamp(58px,8vw,104px); }
    .about-services-head { display:flex; justify-content:space-between; gap:28px; align-items:end; }
    .about-services-head p { max-width:570px; margin:0; color:var(--muted); line-height:1.7; }
    .about-service-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:30px; }
    .about-service-card { padding:clamp(24px,3.3vw,38px); border:1px solid var(--line); border-top:5px solid #2c67a6; background:var(--panel); box-shadow:var(--shadow); }
    .about-service-card:nth-child(2) { border-top-color:#73b3e7; }
    .about-service-card:nth-child(3) { border-top-color:#fdb81e; }
    .about-service-card:nth-child(4) { border-top-color:#56d6a1; }
    .about-service-card b { color:#73b3e7; font-size:.78rem; letter-spacing:.09em; text-transform:uppercase; }
    .about-service-card h4 { margin:8px 0 11px; color:var(--ink); font:700 1.45rem/1.2 var(--serif); }
    .about-service-card p { margin:0; color:var(--muted); line-height:1.65; }
    .about-service-card ul { margin:18px 0 0; padding-left:19px; color:var(--ink); line-height:1.7; }
    .about-process { margin-top:clamp(58px,8vw,104px); }
    .about-process-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin-top:28px; background:var(--line); border:1px solid var(--line); }
    .about-step { min-height:230px; padding:28px 24px; background:var(--panel); }
    .about-step span { color:#73b3e7; font:800 .78rem/1 var(--mono); letter-spacing:.08em; }
    .about-step h4 { margin:24px 0 10px; color:var(--ink); font:700 1.18rem/1.25 var(--serif); }
    .about-step p { margin:0; color:var(--muted); line-height:1.6; }
    .about-assurance { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:30px; align-items:center; margin-top:38px; padding:28px 30px; color:#fff; background:#005ea8; border-left:8px solid #fdb81e; }
    .about-assurance strong { display:block; font:700 1.32rem/1.2 var(--serif); }
    .about-assurance p { margin:8px 0 0; color:#eef7fd; }
    .about-assurance .about-action { white-space:nowrap; }
    @media (max-width:900px) {
      .about-hero { min-height:620px; background-position:62% center; }
      .about-proof,.about-intro,.about-service-grid,.about-process-grid { grid-template-columns:1fr; }
      .about-proof div { border-right:0; border-bottom:1px solid var(--line); }
      .about-services-head,.about-assurance { align-items:start; grid-template-columns:1fr; flex-direction:column; }
      .about-step { min-height:0; }
    }
    @media (max-width:620px) {
      .about-hero { min-height:680px; padding:34px 22px; background-position:68% center; }
      .about-hero h2 { font-size:clamp(2.55rem,13vw,4rem); }
      .about-body { padding:40px 20px; }
      .about-actions,.about-actions .about-action { width:100%; }
      .about-services-head { display:grid; }
      .about-assurance { padding:24px 20px; }
    }

    /* Phone portrait: keep the operational hierarchy vertical and thumb-safe. */
    @media (max-width:620px) and (orientation:portrait) {
      html,body { max-width:100%; overflow-x:clip; }
      body { min-height:100dvh; background-attachment:scroll; }
      .shell {
        width:100%; max-width:100%;
        padding:0 12px calc(26px + env(safe-area-inset-bottom));
      }
      .topbar {
        margin:0 -12px 14px;
        padding:calc(12px + env(safe-area-inset-top)) 12px 0;
        grid-template-columns:minmax(0,1fr) 44px;
        grid-template-areas:'brand actions' 'tabs tabs' 'routing routing';
        gap:10px 12px;
      }
      .brand { gap:8px; min-width:0; }
      .brand-mark { flex:0 0 30px; width:30px; height:30px; }
      .brand-meta { min-width:0; }
      .brand-title { font-size:1.08rem; }
      .badge { white-space:normal; }
      .puerto-rico-clock {
        width:min(100%,240px); grid-template-columns:minmax(0,auto) minmax(0,1fr);
        gap:4px 8px; padding:7px 9px 8px;
      }
      .puerto-rico-clock strong { font-size:1rem; white-space:nowrap; }
      .puerto-rico-clock span,.puerto-rico-clock small { min-width:0; overflow-wrap:anywhere; }
      .top-actions { align-self:start; height:44px; justify-content:flex-end; }
      .tabs {
        width:100%; flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto; overflow-y:hidden;
        padding-bottom:2px; scroll-padding-inline:12px;
        scroll-snap-type:x proximity; -webkit-overflow-scrolling:touch;
      }
      .tab { min-height:46px; padding:10px 12px; scroll-snap-align:start; }

      .routing-strip {
        grid-template-columns:minmax(0,1fr); gap:11px;
        margin:0 0 12px; padding:12px;
      }
      .routing-strip-stage {
        grid-template-columns:42px 18px 42px; justify-content:start;
        padding:0 0 11px; border-right:0; border-bottom:1px solid var(--line);
      }
      .routing-strip-face { width:42px; height:42px; }
      .routing-strip-copy,.routing-strip-tabs { width:100%; min-width:0; }
      .routing-strip-tabs { justify-content:flex-start; }
      .routing-strip-chip { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

      .orchestrator { min-width:0; padding:20px 16px; }
      .orchestrator-top { flex-direction:column; align-items:stretch; }
      .headline { max-width:100%; font-size:clamp(2.7rem,13vw,4rem); overflow-wrap:anywhere; }
      .status-pills {
        display:flex; width:100%; min-width:0; flex-wrap:wrap;
        justify-content:flex-start; justify-items:initial; gap:8px;
      }
      .status-pill { max-width:100%; padding:9px 11px; overflow-wrap:anywhere; }
      .network.olympus-temple { width:100%; min-width:0; }
      .temple-route-legend {
        left:12px; right:12px; bottom:8px; width:auto; transform:none;
        justify-content:center; flex-wrap:wrap; gap:7px 12px;
        padding:7px 8px; line-height:1.35; white-space:normal;
      }

      .workspace-head { min-width:0; min-height:0; padding:22px 18px; }
      .workspace-head > div,.workspace-head-side { width:100%; min-width:0; }
      .workspace-head h2 { max-width:100%; font-size:clamp(2rem,11vw,3.2rem); overflow-wrap:anywhere; }
      .workspace-folio-meta { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); }
      .workspace-folio-meta span { min-width:0; }
      .view-action { max-width:100%; min-height:44px; white-space:normal; }
      .manual-table-wrap { max-width:100%; -webkit-overflow-scrolling:touch; }

      .chat-page-nav { bottom:calc(14px + env(safe-area-inset-bottom)); }
      .fda-news-widget {
        bottom:calc(124px + env(safe-area-inset-bottom));
        height:calc(100dvh - 138px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }
      .fda-news-widget.expanded {
        width:calc(100vw - 14px);
        height:calc(100dvh - 14px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
      }
    }
    .skip-link {
      position:fixed; left:16px; top:12px; z-index:10000; padding:10px 14px;
      color:#090b0f; background:#f0d486; border-radius:8px; font:700 .72rem/1 var(--mono);
      transform:translateY(-180%); transition:transform .16s ease;
    }
    .skip-link:focus { transform:translateY(0); }
    .trust-view { display:grid; gap:22px; }
    .trust-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
    .trust-card {
      padding:22px; border:1px solid var(--line); border-radius:16px;
      background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
    }
    .trust-card h3 { margin:7px 0 10px; font:700 1.05rem/1.25 var(--sans); }
    .trust-card p,.trust-card li { color:var(--muted); font-size:.82rem; line-height:1.65; }
    .trust-card ul { margin:10px 0 0; padding-left:18px; }
    .trust-card a { color:var(--gold); overflow-wrap:anywhere; }
    .trust-notice { border-color:rgba(240,212,134,.45); background:rgba(240,212,134,.07); }
    .trust-meta { margin-top:10px; color:var(--muted); font:.62rem/1.5 var(--mono); text-transform:uppercase; letter-spacing:.08em; }
    @media (max-width:800px) { .trust-grid { grid-template-columns:1fr; } }

    /* Olympus palace court — the About artwork anchors a disciplined, collision-free live roster. */
    .network.olympus-temple {
      height:640px;
      margin-top:18px;
      border:1px solid rgba(184,220,245,.34);
      border-radius:4px;
      background-image:
        linear-gradient(180deg,rgba(1,20,37,.25) 0%,rgba(2,32,57,.58) 52%,rgba(1,18,33,.9) 100%),
        linear-gradient(90deg,rgba(1,24,45,.62) 0%,transparent 22%,transparent 78%,rgba(1,24,45,.62) 100%),
        url('/assets/olympus-validation-hero.webp');
      background-position:center;
      background-size:cover;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 -120px 130px rgba(0,13,27,.54),0 22px 48px rgba(0,24,71,.24);
    }
    .network.olympus-temple::after {
      content:'';
      position:absolute;
      inset:0;
      z-index:0;
      pointer-events:none;
      background:
        linear-gradient(rgba(151,212,255,.055) 1px,transparent 1px),
        linear-gradient(90deg,rgba(151,212,255,.045) 1px,transparent 1px),
        radial-gradient(ellipse at 50% 50%,transparent 18%,rgba(1,15,29,.38) 100%);
      background-size:100% 80px,90px 100%,100% 100%;
    }
    .network.olympus-temple .temple-atmosphere { z-index:0; background:linear-gradient(180deg,rgba(115,179,231,.08),transparent 38%); }
    .network.olympus-temple .temple-moon,
    .network.olympus-temple .temple-roof,
    .network.olympus-temple .temple-columns,
    .network.olympus-temple .temple-steps { display:none; }
    .network.olympus-temple .temple-throne {
      z-index:2;
      top:51%;
      width:142px;
      height:176px;
      border-color:#d9b95f;
      background:linear-gradient(90deg,rgba(22,27,35,.92),rgba(64,78,101,.78) 48%,rgba(22,27,35,.92));
      box-shadow:0 0 0 7px rgba(5,21,37,.72),0 18px 38px rgba(0,0,0,.58),0 0 55px rgba(151,212,255,.22);
    }
    .network.olympus-temple .node {
      z-index:4;
      width:60px;
      height:60px;
      border:2px solid rgba(197,222,240,.88);
      background:#071827;
      box-shadow:0 0 0 4px rgba(3,19,34,.82),0 11px 24px rgba(0,0,0,.5);
    }
    .network.olympus-temple .node::before { inset:3px; }
    .network.olympus-temple .node small {
      top:calc(100% + 7px);
      width:max-content;
      min-width:0;
      max-width:80px;
      padding:4px 7px;
      overflow:visible;
      border:1px solid rgba(184,220,245,.28);
      border-radius:2px;
      color:#f6f9fc;
      background:rgba(3,20,36,.9);
      box-shadow:0 4px 13px rgba(0,0,0,.38);
      font-family:var(--sans);
      font-size:.54rem;
      font-weight:800;
      line-height:1;
      letter-spacing:.055em;
      text-align:center;
      text-shadow:0 1px 5px #000;
    }
    .network.olympus-temple .node:hover small,
    .network.olympus-temple .node:focus-visible small { color:#071f33; background:#fff; border-color:#fff; text-shadow:none; }
    .network.olympus-temple .node:focus-visible { outline:3px solid #fdb81e; outline-offset:5px; }
    .network.olympus-temple .node.center {
      top:51%;
      width:116px;
      height:116px;
      border-color:#f0cd78;
      box-shadow:0 0 0 6px rgba(3,19,34,.88),0 0 48px rgba(115,179,231,.42);
    }
    .network.olympus-temple .node.center small {
      top:calc(100% + 12px);
      padding:5px 12px;
      color:#071f33;
      background:#f0cd78;
      border-color:#fff0bd;
      font-size:.68rem;
      letter-spacing:.09em;
      text-shadow:none;
    }
    .network.olympus-temple svg { z-index:1; }
    .network.olympus-temple .temple-route-legend {
      z-index:6;
      bottom:12px;
      border-color:rgba(184,220,245,.34);
      border-radius:2px;
      background:rgba(2,24,43,.92);
      color:#eef7fd;
      box-shadow:0 8px 22px rgba(0,0,0,.3);
      font-family:var(--sans);
      font-weight:700;
      letter-spacing:.07em;
    }
    @media (min-width:901px) {
      .network.olympus-temple .n1,.network.olympus-temple .n2,.network.olympus-temple .n3,.network.olympus-temple .n4,.network.olympus-temple .n5,.network.olympus-temple .n6,.network.olympus-temple .n7,.network.olympus-temple .n8,.network.olympus-temple .n9,.network.olympus-temple .n10,.network.olympus-temple .n11 { top:16%; }
      .network.olympus-temple .n23,.network.olympus-temple .n24,.network.olympus-temple .n25,.network.olympus-temple .n26,.network.olympus-temple .n27,.network.olympus-temple .n28,.network.olympus-temple .n29,.network.olympus-temple .n30,.network.olympus-temple .n31,.network.olympus-temple .n32 { top:35%; }
      .network.olympus-temple .n33,.network.olympus-temple .n34,.network.olympus-temple .n35,.network.olympus-temple .n36,.network.olympus-temple .n37,.network.olympus-temple .n38,.network.olympus-temple .n39 { top:65%; }
      .network.olympus-temple .n33 { left:7%; }.network.olympus-temple .n34 { left:18.5%; }.network.olympus-temple .n35 { left:30%; }.network.olympus-temple .n36 { left:39%; }
      .network.olympus-temple .n37 { left:61%; }.network.olympus-temple .n38 { left:74.5%; }.network.olympus-temple .n39 { left:88%; }
      .network.olympus-temple .n12,.network.olympus-temple .n13,.network.olympus-temple .n14,.network.olympus-temple .n15,.network.olympus-temple .n16,.network.olympus-temple .n17,.network.olympus-temple .n18,.network.olympus-temple .n19,.network.olympus-temple .n20,.network.olympus-temple .n21,.network.olympus-temple .n22 { top:81%; }
    }
    @media (max-width:900px) {
      .network.olympus-temple { height:980px; background-position:58% center; }
      .network.olympus-temple svg { display:none; }
      .network.olympus-temple .temple-throne { top:48%; width:112px; height:140px; }
      .network.olympus-temple .node { width:44px; height:44px; }
      .network.olympus-temple .node small { top:calc(100% + 5px); max-width:60px; padding:3px 4px; font-size:.46rem; letter-spacing:.025em; }
      .network.olympus-temple .node.center { top:48%; width:86px; height:86px; }
      .network.olympus-temple .node.center small { top:calc(100% + 8px); font-size:.58rem; }
      .network.olympus-temple .n1,.network.olympus-temple .n2,.network.olympus-temple .n3,.network.olympus-temple .n4,.network.olympus-temple .n5 { top:6%; }
      .network.olympus-temple .n6,.network.olympus-temple .n7,.network.olympus-temple .n8,.network.olympus-temple .n9,.network.olympus-temple .n10 { top:16%; }
      .network.olympus-temple .n11,.network.olympus-temple .n12,.network.olympus-temple .n13,.network.olympus-temple .n14,.network.olympus-temple .n15 { top:26%; }
      .network.olympus-temple .n16,.network.olympus-temple .n17,.network.olympus-temple .n18,.network.olympus-temple .n19,.network.olympus-temple .n20 { top:36%; }
      .network.olympus-temple .n21,.network.olympus-temple .n22,.network.olympus-temple .n23,.network.olympus-temple .n24,.network.olympus-temple .n25 { top:60%; }
      .network.olympus-temple .n26,.network.olympus-temple .n27,.network.olympus-temple .n28,.network.olympus-temple .n29,.network.olympus-temple .n30 { top:70%; }
      .network.olympus-temple .n31,.network.olympus-temple .n32,.network.olympus-temple .n33,.network.olympus-temple .n34,.network.olympus-temple .n35 { top:80%; }
      .network.olympus-temple .n36,.network.olympus-temple .n37,.network.olympus-temple .n38,.network.olympus-temple .n39 { top:90%; }
      .network.olympus-temple .n1,.network.olympus-temple .n6,.network.olympus-temple .n11,.network.olympus-temple .n16,.network.olympus-temple .n21,.network.olympus-temple .n26,.network.olympus-temple .n31 { left:10%; }
      .network.olympus-temple .n2,.network.olympus-temple .n7,.network.olympus-temple .n12,.network.olympus-temple .n17,.network.olympus-temple .n22,.network.olympus-temple .n27,.network.olympus-temple .n32 { left:30%; }
      .network.olympus-temple .n3,.network.olympus-temple .n8,.network.olympus-temple .n13,.network.olympus-temple .n18,.network.olympus-temple .n23,.network.olympus-temple .n28,.network.olympus-temple .n33 { left:50%; }
      .network.olympus-temple .n4,.network.olympus-temple .n9,.network.olympus-temple .n14,.network.olympus-temple .n19,.network.olympus-temple .n24,.network.olympus-temple .n29,.network.olympus-temple .n34 { left:70%; }
      .network.olympus-temple .n5,.network.olympus-temple .n10,.network.olympus-temple .n15,.network.olympus-temple .n20,.network.olympus-temple .n25,.network.olympus-temple .n30,.network.olympus-temple .n35 { left:90%; }
      .network.olympus-temple .n36 { left:14%; }.network.olympus-temple .n37 { left:38%; }.network.olympus-temple .n38 { left:62%; }.network.olympus-temple .n39 { left:86%; }
    }

    /* Olympus observatory — a live data map, not a simulated arcade office. */
    .office-view {
      min-height:0;
      overflow:hidden;
      border:1px solid rgba(184,220,245,.34);
      border-radius:4px;
      color:#f6f9fc;
      background-image:
        linear-gradient(180deg,rgba(1,17,33,.34) 0%,rgba(2,35,63,.58) 48%,rgba(1,17,31,.94) 100%),
        linear-gradient(90deg,rgba(0,24,48,.72),transparent 42%,rgba(0,24,48,.34)),
        url('/assets/olympus-validation-hero.webp');
      background-position:center;
      background-size:cover;
      box-shadow:inset 0 0 0 1px rgba(255,255,255,.06),0 24px 60px rgba(0,24,71,.2);
    }
    .office-view::after {
      content:'';
      position:absolute;
      inset:0;
      z-index:0;
      pointer-events:none;
      background:radial-gradient(ellipse at 50% 54%,transparent 18%,rgba(0,17,34,.48) 100%);
    }
    .office-copy { z-index:3; max-width:670px; margin:28px 0 22px 32px; pointer-events:none; }
    .office-kicker { color:#b8dcf5; font-family:var(--sans); font-size:.7rem; letter-spacing:.13em; }
    .office-kicker::before { content:''; display:inline-block; width:30px; height:3px; margin:0 10px 2px 0; background:#fdb81e; }
    .office-copy h2 { margin:10px 0 9px; color:#fff; font:700 clamp(2.2rem,4.4vw,4.2rem)/1 var(--serif); letter-spacing:-.045em; text-shadow:0 5px 30px rgba(0,18,36,.7); }
    .office-copy h2 em { color:#b8dcf5; font-style:normal; font-weight:700; }
    .office-copy p { max-width:640px; color:#e5f2fb; font-size:.95rem; line-height:1.58; }
    .office-stats { z-index:4; display:grid; grid-template-columns:repeat(4,minmax(78px,1fr)); gap:1px; margin:29px 30px 22px 20px; border:1px solid rgba(184,220,245,.28); background:rgba(184,220,245,.18); box-shadow:0 12px 28px rgba(0,18,36,.24); }
    .office-stat { min-width:0; padding:11px 13px; border:0; border-radius:0; background:rgba(2,31,56,.82); box-shadow:none; backdrop-filter:blur(12px); }
    .office-stat span { color:#b8dcf5; font-family:var(--sans); font-size:.55rem; letter-spacing:.09em; }
    .office-stat strong { color:#fff; font:700 1.45rem/1.05 var(--serif); }
    #officeCanvas { position:relative; z-index:2; height:780px; border-top:1px solid rgba(184,220,245,.2); border-bottom:1px solid rgba(184,220,245,.2); }
    .office-legend { z-index:5; top:188px; right:28px; gap:14px; padding:9px 12px; border-color:rgba(184,220,245,.26); border-radius:2px; background:rgba(2,24,43,.88); color:#d7e8f4; font-family:var(--sans); letter-spacing:.07em; box-shadow:0 10px 24px rgba(0,0,0,.25); }
    .office-command-rail { z-index:5; margin:16px 22px 20px; border-color:rgba(184,220,245,.24); background:rgba(2,24,43,.9); box-shadow:0 12px 28px rgba(0,0,0,.24); }
    .office-command-copy::before { color:#56d6a1; }
    body.office-view-active #fdaNewsLauncher,
    body.office-view-active .chat-page-nav { display:none; }
    @media (max-width:900px) {
      .office-copy { margin:24px 20px 13px; }
      .office-copy h2 { font-size:clamp(2.25rem,10vw,3.6rem); }
      .office-copy p { font-size:.88rem; }
      .office-stats { grid-template-columns:repeat(2,minmax(0,1fr)); width:calc(100% - 40px); margin:0 20px 14px; }
      .office-legend { position:relative; grid-column:1; grid-row:3; top:auto; right:auto; margin:0 20px 14px; justify-self:stretch; justify-content:center; border-radius:2px; white-space:normal; flex-wrap:wrap; }
      #officeCanvas { grid-row:4; height:1180px; }
      .office-command-rail { margin:14px; }
    }
  
