:root {
  color-scheme: dark;
  --paper: #0c111c;
  --ink: #edf1f8;
  --muted: #a9b5c9;
  --line: #ffffff21;
  --champagne: #e8c89d;
  --rail: 82px;
  --assistant: 320px;
  --serif: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0c111c;
}
body { min-height: 100vh; background: radial-gradient(ellipse at 42% 42%,#16263d 0%,#101927 44%,#0b111c 75%); }
body::before {
  content: ''; pointer-events: none; position: absolute; z-index: 0; inset: 52px 0 auto var(--rail); height: 390px;
  opacity: .31;
}
:focus-visible { outline: 2px solid #e8c89d; outline-offset: 3px; }
.top {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 4; display: flex; flex-direction: column;
  align-items: stretch; gap: 12px; padding: 18px 6px 12px; background: #0f1521; border: 0; border-right: 1px solid #ffffff17;
}
.brand { margin: 0 auto 10px; height: 47px; width: 51px; justify-content: center; }
.brand-emblem { width: 38px; height: 38px; }
.brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.top nav { display: grid; gap: 6px; }
.top nav a, .rail-jump, .top .top-chat {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; min-height: 58px;
  padding: 6px 2px; border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: #b7c3d6; font-size: 8.5px; font-weight: 750; line-height: 1.15; cursor: pointer;
}
.top nav a[aria-current] { color: #f0d7b5; border-color: #e8c89d35; background: #bca27b19; }
.top nav a:hover,.rail-jump:hover,.top .top-chat:hover { color: #f7f5f2; background: #ffffff12; }
.top nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.top .top-chat span:first-child { color: var(--champagne); font-size: 19px; }
.rail-account { display: grid; justify-items: center; gap: 4px; margin-top: auto; text-align: center; }
.rail-account strong { display: block; max-width: 70px; overflow-wrap: anywhere; font-size: 9px; font-weight: 750; }
.rail-account small { display: none; }
main,.footer { position: relative; margin-left: var(--rail); margin-right: 0; width: auto; padding-inline: clamp(18px,2.4vw,47px); }
.commandbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #ffffff15; }
.quick-search { width: min(415px,56%); display: flex; align-items: center; gap: 4px; border: 1px solid #ffffff2a; border-radius: 9px; padding: 0 4px 0 10px; background: #121b2a8c; }
.quick-search > span { flex: none; color: #b7c4da; font-size: 21px; }
.quick-search input { min-width: 0; flex: 1; background: none; border: 0; min-height: 34px; font-size: 12px; padding-inline: 5px; }
.quick-search button { min-height: 30px; border: 0; background: transparent; padding: 4px 7px; color: var(--muted); font-size: 10px; }
.company-shortcut { display: flex; gap: 7px; align-items: center; text-align: left; }
.company-shortcut small,.company-shortcut strong { display: block; }
.company-shortcut small { color: var(--muted); font-size: 10px; }
.company-shortcut .orb { width: 25px; height: 25px; font-size: 15px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 9px; padding: 19px 0 15px; }
.hero h1 { font: 750 clamp(30px,2.35vw,36px)/1.12 Manrope,sans-serif; margin: 4px 0 0; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.eyebrow { color: #b7c2d5; font-size: 10px; letter-spacing: .10em; }
.status-dot { background: #dec39e; }
.summary { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 2px; font-size: 11px; color: var(--muted); }
.summary strong { color: #edf1fa; font-weight: 800; font-size: 12px; margin-right: 2px; }
.studio { display: grid; grid-template-columns: minmax(0,1fr); align-items: stretch; gap: 21px; }
.studio[data-assistant="open"] { grid-template-columns: minmax(0,1fr) var(--assistant); }
.workspace { display: flex; flex-direction: column; min-width: 0; background: none; border: 0; border-radius: 0; }
.workspace-head { z-index: 2; position: relative; padding: 7px 0 10px; border-block: 1px solid #ffffff17; gap: 6px 10px; flex-wrap: wrap; }
.workspace-title h2 { font-size: 16px; }
.workspace-title p { color: #aab9cf; }
.studio-controls { gap: 6px; }
.segments { border: 1px solid #ffffff23; background: #111925c2; padding: 2px; border-radius: 11px; }
.segments button { color: #bac6d8; border-radius: 8px; min-height: 36px; padding: 5px 12px; font-size: 12px; }
.segments button[aria-pressed="true"] { color: #f2f5fc; background: #2a384f; box-shadow: none; }
.segments button span { color: #ecd1ad; }
.org-menu summary,.accent,.guide-action { border-color: #ecd7b3; color: #1b1620; background: #e6c79f; border-radius: 9px; box-shadow: none; }
.org-menu summary { min-height: 42px; }
.org-menu summary:hover,.org-menu[open] summary,.accent:hover,.guide-action:hover { color: #1b1620; background: #f3dbb7; }
.menu-items { background: #1b2435; border-color: #ffffff31; }
.menu-items button:hover { background: #29364a; }
.quiet,.assistant-toggle { color: #e2e8f4; background: #172131cc; border-color: #ffffff29; border-radius: 9px; }
.quiet:hover,.assistant-toggle:hover { background: #29354a; }
.assistant-toggle { display: flex; align-items: center; gap: 6px; min-height: 42px; }
.assistant-toggle span:first-child { color: var(--champagne); }
.canvas,.canvas[data-view="future"] {
  position: relative; overflow: auto; scrollbar-width: none; border: 0; flex: 1; min-height: 410px; max-height: max(410px,calc(100dvh - 270px));
  background: radial-gradient(ellipse at 51% 47%,#223b5b67,transparent 71%),
    radial-gradient(#7a94bd21 .7px,transparent 1px);
  background-size: auto,36px 36px; touch-action: pan-y;
}
.canvas::-webkit-scrollbar { display: none; }
.canvas.dragging { cursor: grabbing; user-select: none; }
.canvas:not(.dragging) .tree { cursor: grab; }
.canvas .tree button { cursor: pointer; }
.tree { position: relative; padding: 24px clamp(13px,3vw,46px) 25px; min-width: 100%; }
#edges path { stroke: #8ca3c4; stroke-opacity: .67; stroke-width: 1; vector-effect: non-scaling-stroke; }
#edges .direction-link { stroke: #e2c197; stroke-opacity: .85; }
#edges .flow { stroke: #f7d8ac; stroke-opacity: 1; stroke-width: 1.6; }
.leadership { display: grid; justify-items: center; gap: 23px; }
.leadership .node,.leadership #leader-node { width: min(229px,87%); min-height: 59px; }
.node,.agent-card { border: 1px solid #aebfe238; border-radius: 13px; background: #192334d9; box-shadow: 0 5px 12px #070d172e; }
.node:hover,.agent-card:hover { border-color: #c9ad88ad; box-shadow: 0 5px 14px #070e195e; background: #223047; }
.leadership #leader-node { border-color: #afa38d57; }
.leadership .claudia { background: #223047e8; border: 1px solid #d5b68b9e; box-shadow: 0 6px 18px #090e1980; }
.node strong,.agent-card strong { color: #edf2fb; }
.node small,.agent-card small { color: #b8c5d9; }
.avatar { width: 40px; height: 40px; background: #28354b; color: #ede3d4; border: 1px solid #a0b0cb42; }
.avatar.ct { background: #263c59; color: #edcc9f; border-color: #bba58b63; }
.services { max-width: 1100px; gap: clamp(10px,1.3vw,22px); margin-top: 30px; }
.branch,.people,.squad { gap: 11px; }
.people { padding-inline: 4px; }
.service {
  border-color: color-mix(in srgb,var(--tone) 75%,transparent); background: color-mix(in srgb,var(--tone) 16%,#192334);
  box-shadow: 0 5px 12px #070d1734; min-height: 54px;
}
.service .avatar { width: 29px; height: 29px; color: #e3e7f2; background: #1e2b3c; }
.person.human { background: #182232eb; min-height: 56px; }
.agent-row { gap: 7px; }
.person.ai { background: #1b283ce8; min-height: 101px; padding: 8px 4px; }
.person.ai .avatar { width: 44px; height: 44px; border: 1px solid #b5c3de70; }
.person.ai.is-live,.person.human.is-live { outline: 1px solid #e6c79f; outline-offset: 2px; }
.person.ai.is-live .avatar { animation: none; }
.node-state { color: #e8ccaa; }
.unassigned { color: var(--muted); }
.workspace-foot { min-height: 48px; padding: 4px 0; border-top: 1px solid #ffffff17; color: var(--muted); }
.workspace-foot .zoom { order: 2; display: flex; flex: none; border: 1px solid #ffffff24; border-radius: 9px; background: #171f2ed9; }
.workspace-foot > span:last-child { order: 3; }
.zoom button { min-width: 34px; min-height: 40px; padding: 4px 6px; border: 0; border-radius: 7px; background: transparent; color: #e2eaf8; font-size: 12px; font-weight: 750; }
.zoom button:disabled { opacity: .42; cursor: default; }
.zoom button:hover:not(:disabled) { background: #ffffff19; }
.guide {
  min-width: 0; margin-top: 0; padding: 14px 0 13px 15px; display: flex; flex-direction: column; align-self: stretch; gap: 22px;
  background: #101725b8; color: var(--ink); border: 0; border-left: 1px solid #ffffff1a; border-radius: 0;
}
.guide-main { display: flex; flex-direction: column; gap: 20px; }
.guide-head { display: flex; gap: 9px; align-items: center; }
.guide-head > .icon { margin-left: auto; }
.guide h2,.dialog-head h2 { color: var(--ink); font-size: 17px; }
.guide h3 { font: 750 17px/1.26 Manrope,sans-serif; margin-bottom: 6px; }
.guide p,.guide-head small { color: #b6c4d9; }
.orb,.mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; flex: none; color: #f1d8b8; font-size: 21px; background: radial-gradient(circle at 34% 25%,#3b4e73,#21314c 56%,#18253a); border: 1px solid #b1b8cf53; }
.guide-action,.live-toggle { min-height: 42px; font-size: 12px; }
.guide-action.secondary,.live-toggle { color: #e2e9f4; background: #182336; border: 1px solid #ffffff25; border-radius: 9px; }
.guide-action.secondary:hover,.live-toggle:hover { background: #28374e; color: #f6f7fa; }
.live-panel { border: 0; border-top: 1px solid #ffffff23; margin: 0; padding: 13px 0 0; }
.live-head h3 { font-size: 14px; }
.live-head > span { color: #e7cdaa; border-color: #d3b88c57; }
#live-title { color: #e3c9a6; }
.scene-live { color: #ecddc7; background: #273044; }
.scene-live button:hover { background: #394561; }
.footer { color: #a8b7ce; padding-block: 10px 16px; }
.library-tools #results { color: var(--muted); }
.agent-card:hover { border-color: #dec49b; background: #223147; }
dialog { background: #151f31; border-color: #a9b8d357; box-shadow: 0 15px 48px #020711b8; }
dialog::backdrop { background: #030814b0; }
input,select { color: #f2f5fd; background: #182338; border-color: #63718e; }
input::placeholder { color: #a9bad1; }
.bubble { background: #202f49; color: #dce7fa; }
.bubble.user { background: #394562; color: #fff0db; }
.error { color: #ffc1af; }
.icon:hover { background: #2b3b58; }
.notice { color: #211a23; background: #e8c89d; }
#assistant-modal[open] {
  position: fixed; inset: 0; margin: 0; height: 100dvh; width: 100%; max-height: none; max-width: none; padding: 0; border: 0; border-radius: 0;
}
#assistant-modal .guide { min-height: 100%; padding: 18px; border: 0; }
@media (max-width: 1100px) {
  .studio[data-assistant="open"] { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 820px) {
  :root { --rail: 0px; }
  .top { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; padding: 4px 12px; border: 0; border-bottom: 1px solid #ffffff20; }
  .brand { margin: 0; width: auto; gap: 6px; height: 44px; }
  .brand-emblem { width: 29px; height: 29px; }
  .brand > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .brand strong { font: 750 17px/1 Manrope,sans-serif; }
  .brand small { display: block; color: #e6c79f; font-size: 8px; margin-top: 2px; }
  .top nav { display: flex; gap: 2px; }
  .top nav a,.top .top-chat { min-height: 44px; padding: 4px 7px; font-size: 9px; }
  .top nav svg { width: 16px; height: 16px; }
  .top .rail-jump,.rail-account { display: none; }
  .top .top-chat { justify-self: end; }
  main,.footer { padding-inline: 13px; }
  .tree { padding-inline: 12px; }
}
@media (max-width: 680px) {
  body::before { inset-block-start: 50px; height: 265px; background-size: 710px auto; background-position: top right -170px; opacity: .25; }
  .commandbar { display: none; }
  .hero { display: grid; padding: 12px 0 9px; gap: 5px; }
  .hero h1 { font-size: 28px; }
  .summary { font-size: 10px; gap: 4px 12px; }
  .workspace-head { padding: 5px 0; }
  .workspace-title p { font-size: 10px; }
  .segments button { min-height: 40px; padding-inline: 9px; }
  .assistant-label { display: none; }
  .assistant-toggle { width: 44px; justify-content: center; padding: 0; }
  .canvas,.canvas[data-view="future"] { min-height: 0; max-height: none; touch-action: pan-x pan-y; }
  .tree { padding-block: 14px; }
  .leadership { display: grid; gap: 15px; }
  .leadership .node,.leadership #leader-node { min-height: 50px; }
  .services { margin-top: 23px; }
  .person.ai .avatar { width: 44px; height: 44px; }
  .workspace-foot { padding: 5px 2px; }
  .workspace-foot > span { display: none; }
  .workspace-foot .zoom { margin-left: auto; }
  .scene-live { display: flex; }
}
.leadership { grid-template-columns: minmax(0,242px); justify-content: center; }
.leadership .node,.leadership #leader-node { width: min(230px,100%); }
.leadership #leader-node { width: min(210px,100%); }
.agent-row:has(> :only-child) { grid-template-columns: minmax(0,1fr); justify-items: center; }
.agent-row > .person.ai:only-child { width: min(100%,166px); }
.guide-action { width: fit-content; max-width: 100%; padding-inline: 14px; }
.guide-action.secondary { width: fit-content; padding-inline: 2px; min-height: 39px; color: #d7e2f4; background: none; border-color: transparent; margin-top: 2px; }
.guide-action.secondary:hover { color: #f1d8b8; background: #ffffff0d; }
.drawer { width: min(100%,330px); }
@media (min-width: 1101px) {
  .canvas,.canvas[data-view="future"] { min-height: clamp(445px,calc(100dvh - 282px),750px); }
  .tree { padding-top: clamp(27px,4.7vh,54px); }
  .services { margin-top: 37px; }
}
@media (max-width: 680px) { .drawer { width: 100%; } }

/* M01.4 — The canvas is the work surface. Color and reflected light mark the hierarchy. */
:root {
  --rail: clamp(139px,11.25vw,181px);
  --assistant: 304px;
  --champagne: #efd0a0;
  --paper: #080f1d;
}
body { background: radial-gradient(ellipse at 29% 56%,#142741 0%,#090f1d 56%,#070d18 100%); }
body::before {
  inset: 62px 0 0 0;
  height: auto;
  background: url('assets/luminous-field.svg') center 40% / cover no-repeat;
  opacity: .8;
}
.top {
  padding: 21px 10px 13px;
  background: linear-gradient(135deg,#101827ee,#090f1dce 54%,#14243ded);
  border-right-color: #9ab0d332;
  backdrop-filter: blur(13px);
}
.brand { width: auto; height: auto; min-height: 36px; margin: 0 2px 18px; white-space: normal; justify-content: flex-start; }
.brand > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.brand strong { display: block; font-size: clamp(19px,1.9vw,29px); color: #f3f5fb; letter-spacing: -.052em; font-weight: 580; }
.brand small { color:#e7bc87; font-size: 11px; display: block; margin-top: 2px; letter-spacing:.06em; font-weight: 650; }
.top nav { gap: 7px; }
.top nav a, .rail-jump, .top .top-chat { flex-direction: row; justify-content: flex-start; min-height: 45px; font-size: 11px; gap: 9px; padding: 6px 8px; border-radius: 9px; font-weight: 730; }
.top nav a[aria-current] { border-color:#f1ce948c; background: linear-gradient(128deg,#5b402e,#192337 70%); box-shadow: inset 0 1px 5px #ffe0ac57,0 0 13px #dca97929; }
.top nav svg { color: #e6bc89; flex: none; }
.top .top-chat span:first-child { width: 18px; text-align:center; }
.rail-account { display:flex; text-align:left; justify-content:flex-start; margin-inline: 5px; }
.rail-account strong { font-size: 10px; max-width: 90px; }
.rail-account .avatar { width: 27px; height: 27px; font-size: 9px; }
main,.footer { padding-inline: clamp(13px,1.7vw,34px); }
.commandbar { height: 57px; border-color:#a1b6da25; }
.quick-search { width: min(520px,58%); background:linear-gradient(180deg,#141f36dd,#0a1223d9); border-radius:999px; }
.company-shortcut { border-radius:999px; }
.hero { padding: clamp(12px,2.1vh,28px) 0 14px; align-items:center; }
.hero h1 { font-size:clamp(28px,3vw,45px); letter-spacing:-.05em; }
.hero p { margin-top: 3px; }
.summary { gap: 8px; justify-content: end; }
.summary > span { min-width: 106px; padding: 7px 10px; border: 1px solid #8eadd33d; border-radius: 11px; display: grid; background: linear-gradient(165deg,#243952c4,#0f1b30f0); box-shadow: inset 0 1px 9px #8bb6ff29,0 5px 10px #02071159; }
.summary strong { font-size: 20px; line-height: 1.12; color:#f0f3fb; }
.studio { gap: 14px; }
.workspace-head { border-top: 0; border-bottom-color:#b4cad325; padding:5px 0 7px; }
.crumb { padding:0; color:inherit; border:0; background:none; font:inherit; }
.crumb:hover { color:var(--champagne); }
#service-level { color:#e9c79e; font-weight:600; }
.workspace-title p { margin: 1px 0 0; }
.canvas,.canvas[data-view="future"] {
  flex: none; overflow: clip; min-height: 420px; max-height: none; height: calc(100dvh - 236px);
  background: radial-gradient(ellipse at 48% 43%,#21446928,transparent 71%),radial-gradient(#85a8d91f .65px,transparent 1.2px);
  background-size:auto,32px 32px;
  touch-action:none;
}
.tree { width:max-content; min-width:0; padding: 10px 28px 22px; transform-origin: 0 0; }
#edges path { stroke-width:1.55; stroke-opacity:.82; filter: drop-shadow(0 0 4px #75a8f270); }
#edges .direction-link { stroke:#f5d6a4; }
#edges .flow { stroke-width:2; stroke-opacity:1; filter: drop-shadow(0 0 6px #f4bc6c); }
.leadership { grid-template-columns: minmax(0,272px); gap:28px; }
.leadership .node,.leadership #leader-node { width:100%; min-height:66px; padding:9px 16px; }
.leadership #leader-node { width: 244px; background:linear-gradient(156deg,#453a36,#172339 47%,#162337); border-color:#efcc988f; box-shadow:inset 0 1px 14px #f5cd9f39,0 6px 18px #0206109c; }
.leadership .claudia {
  min-height:75px; background:linear-gradient(147deg,#333d52,#111b2c 44%,#223d65 83%);
  border-color:#f0c992; box-shadow: inset 0 1px 16px #f2d1a96b, 0 0 19px #e6a14e38;
}
.leadership .claudia strong { font-size:20px; }
.avatar.ct,.guide-head .orb {
  background: radial-gradient(circle at 27% 23%,#eacfa9 0%,#9d7167 14%,#2c3755 31%,#111b30 58%,#605498 73%,#d1a8fb 86%,#1d2f50 100%);
  border:1px solid #e3c9f79e; box-shadow:0 0 9px #e5bbfd4a;
  color: #f9e3ca;
}
.services {
  grid-template-columns: repeat(var(--columns),268px); width:max-content; max-width:none;
  grid-auto-rows: auto; gap:28px; margin:34px auto 0; padding:0;
}
.branch,.people,.squad { gap:13px; }
.branch { min-width: 268px; position: relative; }
.branch-indicator { color:var(--tone); margin-left:auto; font-size:17px; font-weight:650; }
.node, .agent-card { border-radius:13px; }
.node:hover,.agent-card:hover { border-color:#f1cd96d4; }
.service {
  min-height:64px; padding:9px 11px; border-color:color-mix(in srgb,var(--tone) 78%,transparent);
  background:linear-gradient(150deg,color-mix(in srgb,var(--tone) 41%,#152339),#142339 68%,color-mix(in srgb,var(--tone) 15%,#18243b));
  box-shadow:inset 0 1px 12px color-mix(in srgb,var(--tone) 58%,transparent),0 0 13px color-mix(in srgb,var(--tone) 25%,transparent);
}
.service .avatar { width:38px; height:38px; background:transparent; color:var(--tone); border:0; box-shadow:none; }
.service svg { width:25px;height:25px; fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round; }
.service[aria-expanded=true] { border-color:var(--tone); }
.people { padding-inline: 10px 3px; }
.person.human { background:linear-gradient(155deg,#2c3b55,#131f34 63%,#14243a); min-height:61px; border-color:#91adcf7d; box-shadow:inset 0 1px 9px #91b6e529,0 5px 12px #02050e90; }
.person.ai,.inspection-agent {
  background:linear-gradient(153deg,#34435e,#111c2f 59%,#1a2c46);
  box-shadow:inset 0 1px 10px #9fb6da25,0 6px 14px #0206117a;
  border-color:color-mix(in srgb,var(--tone,#8cb1e2) 53%,transparent);
}
.person.ai .avatar { width:46px; height:46px; }
.service-tools { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; padding-top:5px; }
.service-tools .quiet { min-height:36px;font-size:10px;padding:4px 8px; }
.inspection-title { display:flex; gap:11px;align-items:center; }
.inspection-team { display:grid; gap:7px; }
.inspection-team h3 { margin:.3em 0; font-size:14px; }
.inspection-agent { min-height:61px; }
.guide {
  align-self:start; margin-top:9px; border:1px solid #7998c46b; border-radius:17px; padding:15px;
  background:linear-gradient(151deg,#27374dd4,#0b1425ec 37%,#101b2eea 79%,#2c2f40d9);
  box-shadow:inset 0 1px 13px #89afd52d,0 10px 36px #0108119c;
}
.guide-head .orb { width:53px;height:53px; }
.guide-main { gap:15px; }
.guide-action,.guide-action.secondary {
  width:100%; text-align:left; min-height:40px; margin-top:5px; padding:7px 10px;
  color:#e9effb; border:1px solid #9db8d838; border-radius:9px;
  background:linear-gradient(155deg,#293b55,#111b2d 82%); box-shadow: inset 0 1px 7px #bde1fd18;
}
.guide-action:hover,.guide-action.secondary:hover { color:#ffdfb4;background:#293f5d; }
.guide-conversation { display:flex; align-items:center;justify-content:space-between; gap:8px; min-height:44px;
  color:#e8d1b5; border:1px solid #e0b77e80; border-radius:11px; background:linear-gradient(155deg,#352f34,#111d30);
  padding:7px 11px; text-align:left; font-size:12px; box-shadow:inset 0 1px 9px #e3c09844;
}
.guide-conversation:hover { border-color:#f5d2a4; }
.workspace-foot { padding:4px 0; }
.workspace-foot > span:last-child { order:3; }
.zoom svg { width:17px;height:17px; display:block; margin:auto; fill:none;stroke:currentColor;stroke-width:1.5; stroke-linecap:round; }
.workspace:fullscreen,.workspace.immersive {
  width:100%; height:100%; padding:10px clamp(10px,2.8vw,40px); background:#0b1528 url('assets/luminous-field.svg') center / cover no-repeat;
  overflow:auto;
}
.workspace.immersive { position:fixed;inset:0;z-index:20; }
.workspace:fullscreen .canvas,.workspace.immersive .canvas { height:auto; flex:1; min-height:290px; }
.immersive-body { overflow:hidden; }
@media (max-width: 1100px) { :root{ --rail:126px; } }
@media (max-width: 820px) {
  :root { --rail:0px; }
  .top { padding:4px 12px; background:#0c1424f4; }
  .brand { margin:0; }
  .brand strong { font-size:17px; }
  .brand small { font-size:8px; }
  .top nav a,.top .top-chat { flex-direction:column;justify-content:center;gap:2px; font-size:9px; }
  .rail-account { display:none; }
}
@media (max-width:680px) {
  body::before { inset:48px 0 0; background-size:auto 78vh; background-position:56% 15%; }
  main,.footer { padding-inline:10px; }
  .hero { display:flex; align-items:start; flex-direction:column;gap:6px; padding-block:8px; }
  .hero h1 { font-size:27px; }
  .hero p { display:none; }
  .summary { justify-content:start; }
  .summary > span { display:block; min-width:0;padding:2px 6px;font-size:9px;border-radius:6px; }
  .summary strong { font-size:11px; }
  .canvas,.canvas[data-view="future"] { height:calc(100dvh - 237px);min-height:290px; touch-action:none; }
  .tree { padding-block:5px 13px; }
  .leadership { gap:17px; }
  .leadership .node,.leadership #leader-node { min-height:55px; }
  .services { margin-top:26px; }
  .guide { margin:0; }
}
.workspace { position:relative; }
.workspace-foot {
  position:absolute; inset:auto 0 7px; z-index:2; justify-content:space-between; border:0;
  padding:0 6px; min-height:44px; pointer-events:none; font-size:10px;
}
.workspace-foot .zoom {
  pointer-events:auto; background:#0b1528f0; border-color:#a1b7d646;
  box-shadow:inset 0 1px 5px #9abdff25, 0 4px 15px #010811a1;
}
.workspace-foot > span:last-child { display:none; }
.workspace-foot > #canvas-help { color:#b5c5dd; text-shadow:0 1px 2px #050913; }
.service:hover,.service[aria-expanded=true]:hover {
  background:linear-gradient(150deg,color-mix(in srgb,var(--tone) 48%,#152339),#142339 68%,color-mix(in srgb,var(--tone) 18%,#18243b));
  border-color:var(--tone); box-shadow:inset 0 1px 12px color-mix(in srgb,var(--tone) 52%,transparent),0 0 14px color-mix(in srgb,var(--tone) 31%,transparent);
}
.workspace:fullscreen .workspace-foot,.workspace.immersive .workspace-foot { inset-inline:12px; }
@media (max-width:680px) { .workspace-foot { min-height:42px; bottom:5px; } }
