/* Reference cockpit: dark peripheral rail, horizon, luminous hierarchy and assistant. */
:root {
  color-scheme: dark;
  --paper: #0a111f;
  --ink: #edf2fb;
  --muted: #aebbd0;
  --line: #52637f;
  --champagne: #f0d4ab;
  --glass: linear-gradient(155deg, #26354d 0%, #142238 46%, #111b2c 100%);
  --champagne-button: linear-gradient(145deg, #ffedcd 5%, #e9c79e 51%, #b89472 100%);
  --rail: clamp(176px, 17.5vw, 262px);
  --assistant: clamp(240px, 23vw, 335px);
  background: #070e1c;
}
body {
  min-height: 100vh;
  background: url('assets/horizon.webp') right top / min(1220px, 88vw) auto no-repeat,
    radial-gradient(ellipse at 63% 31%, #122744 0, transparent 56%), #080e1c;
}
:focus-visible { outline-color: #e3c697; }
.top {
  position: fixed; inset: 0 auto 0 0; z-index: 4; width: var(--rail);
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  gap: 14px; padding: 27px 14px 18px; border: 0; border-right: 1px solid #53617b;
  background: radial-gradient(ellipse 180px 130px at 26% 0%, #cfaa7659, transparent 93%),
    radial-gradient(ellipse 230px 120px at 22% 93%, #c1a17f38, transparent 98%),
    linear-gradient(145deg, #151d2f 0%, #0c1425 66%, #19243a 100%);
}
.brand { margin: 0 5px 16px; gap: 9px; color: var(--champagne); }
.brand-emblem { width: clamp(37px, 4vw, 60px); height: auto; filter: drop-shadow(0 1px 14px #f6c98250); }
.brand strong { display: block; font: 800 clamp(19px, 2vw, 30px)/1 Manrope, sans-serif; text-transform: uppercase; letter-spacing: -.025em; }
.brand small { display: block; color: #e9c99d; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 5px; }
.top nav { display: grid; gap: 7px; }
.top nav a, .top .top-chat { justify-content: start; display: flex; gap: 10px; min-height: 46px; border-radius: 12px; }
.top nav a [aria-hidden], .top .top-chat [aria-hidden] { width: 21px; text-align: center; color: var(--champagne); font-size: 20px; }
.top nav a[aria-current] {
  color: #fff5e7; border-color: #e4c69b; background: linear-gradient(150deg,#806b55,#2b3246 55%,#735d46);
  box-shadow: inset 0 0 15px #f4c88854, 0 3px 14px #d6aa7125;
}
.top nav a:hover:not([aria-current]), .top .top-chat:hover { color: white; background: #25334b; }
.top .top-chat { background: transparent; border-color: #44536d; }
.rail-account { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 9px 10px;
  border: 1px solid #8590a757; border-radius: 14px; background: linear-gradient(135deg,#45516b5c,#262b3c9c); }
.rail-account strong, .rail-account small { display: block; overflow-wrap: anywhere; }
.rail-account strong { font-size: 13px; }
.rail-account small { font-size: 10px; color: var(--muted); }
main, .footer { margin-left: var(--rail); margin-right: 0; width: auto; padding-inline: clamp(14px, 1.65vw, 30px); }
.commandbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding-top: 12px; }
.quick-search { display: flex; align-items: center; gap: 7px; width: min(58%, 640px); padding: 1px 3px 1px 12px;
  background: linear-gradient(155deg,#1d2b42d9,#122139d4); border: 1px solid #5b6d8b; border-radius: 999px; }
.quick-search > span { font-size: 23px; color: #c1d5ef; }
.quick-search input { min-width: 0; flex: 1; background: none; border: 0; min-height: 40px; font-size: 13px; }
.quick-search button { min-height: 36px; border-radius: 999px; padding-block: 4px; background: #243652; font-size: 11px; }
.company-shortcut { display: flex; gap: 9px; align-items: center; text-align: left; min-width: min(220px,29%); border-radius: 13px; padding: 5px 11px; }
.company-shortcut small, .company-shortcut strong { display: block; overflow-wrap: anywhere; }
.company-shortcut small { color: var(--muted); font-size: 10px; }
.hero { padding: clamp(13px, 2vw, 28px) 0 19px; }
.hero h1 { font: 505 clamp(32px, 3.45vw, 63px)/1.07 var(--serif); letter-spacing: -.044em; margin: 5px 0 2px; color: #f0f3ff; text-shadow: 0 2px 21px #8ba9e977,0 1px 3px #050b16; }
.hero p { font-size: clamp(13px,1.42vw,21px); color: #c2cce1; }
.eyebrow { color: #dfc5a1; }
.status-dot { background: #e6c594; box-shadow: 0 0 9px #edc78d7a; }
.summary {
  width: calc(100% - var(--assistant) - 13px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 13px;
}
.summary > div { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  min-height: 77px; border: 1px solid #7487a77a; border-radius: 16px; background: linear-gradient(145deg,#334762dc,#1d3354d9 47%,#122038e8); box-shadow: inset 0 1px 16px #a0bbf328; }
.summary strong { display: block; font-size: 23px; line-height: 1; color: #f4f4fb; }
.summary > div > span:last-child { color: #d3ddf0; font-size: 11px; }
.orb { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #f7ebff; font-size: 21px; text-shadow: 0 0 10px #d4d7ff;
  background: radial-gradient(circle at 32% 28%, #586bc2, #22346e 40%, #0d142e 64%, #6454bf 83%, #e3caff 95%);
  border: 1px solid #c6b8eb; box-shadow: 0 0 15px #b69bfa7a, inset 0 0 8px #d3c6ff8c; }
.orb.metric, .orb.mini { background: radial-gradient(circle at 34% 25%,#58759b,#213753 56%,#18263d); color: #fff0d4; border-color: #8493a959; box-shadow: inset 0 1px 8px #cdd9f163; }
.orb.metric { width: 38px; height: 38px; font-size: 17px; }
.orb.mini { width: 32px; height: 32px; font-size: 16px; }
.studio { display: grid; grid-template-columns: minmax(0,1fr) var(--assistant); gap: 13px; }
.workspace { border-color: #5e708da3; border-radius: 20px; overflow: visible;
  background: linear-gradient(163deg,#182339dc,#0b1425 52%,#132544);
  box-shadow: inset 0 0 28px #5477b220, 0 10px 32px #0005; }
.workspace-head { padding: 9px 13px; gap: 6px; flex-wrap: wrap; }
.workspace-head h2, .dialog-head h2, .guide h2 { color: #f2f5fc; }
.workspace-head h2 { font-size: 16px; }
.workspace-title p { color: #b7c7df; }
.segments { background: #0b1424a1; border: 1px solid #485d7a; }
.segments button { color: #d8e2f5; padding-inline: 12px; min-height: 40px; }
.segments button span { color: var(--champagne); }
.segments button[aria-pressed="true"] { color: #fff; background: linear-gradient(155deg,#3b5477,#253751); box-shadow: inset 0 0 8px #a4bef37a; }
.org-menu summary, .accent { color: #1b2030; border-color: #f3d9b8; background: var(--champagne-button); box-shadow: 0 0 14px #ecbb8262, inset 0 0 6px #fff3cf; }
.org-menu summary:hover, .org-menu[open] summary, .accent:hover { color: #101725; background: linear-gradient(145deg,#fff1d7,#edc698); }
.menu-items { background: #18243a; border-color: #6a7c99; }
.menu-items button:hover { background: #2a3a56; }
.quiet, .guide-action.secondary, .live-toggle { color: #edf3fd; background: var(--glass); border-color: #63748f; }
.quiet:hover, .guide-action.secondary:hover, .live-toggle:hover { background: #30425f; }
.canvas, .canvas[data-view="future"] {
  flex: 1; min-height: 405px; max-height: 690px; border-color: #485e7f78;
  background: radial-gradient(ellipse at 54% 26%,#284b7e67,transparent 71%),
    radial-gradient(ellipse at 50% 103%,#497eb34c,transparent 59%),
    radial-gradient(#8ca9e164 .65px,transparent 1.4px) #0b1427;
  background-size: auto,auto,87px 72px,auto;
}
.canvas[data-view="future"] { background-color: #101c34; }
.tree { padding: 17px 18px 22px; }
.leadership { display: grid; justify-items: center; gap: 22px; }
.leadership .node { width: min(236px,80vw); min-height: 57px; padding-inline: 12px; }
.leadership #leader-node { width: min(205px,72vw); border-color: #aa997d9a;
  background: linear-gradient(148deg,#514944,#242938 56%,#293748); box-shadow: inset 0 1px 13px #f7d8a53d; }
.leadership .claudia { background: linear-gradient(144deg,#574f56,#22344f 38%,#14253f 74%,#4a3e4d);
  border: 1px solid #f3d9b5; box-shadow: 0 0 17px #e4bea477, inset 0 0 12px #fbdbb179; }
.leadership .claudia small { color: #d6e0f3; }
.avatar { color: #fff0d5; background: radial-gradient(circle at 27% 28%,#566683,#24334e 60%,#1d293f);
  border: 1px solid #8494af8c; box-shadow: inset 0 0 9px #a5b8de35; }
.leadership .avatar.ct { color: #e9efff; background: radial-gradient(circle at 30% 25%,#5478bd,#172b55 54%,#142641 70%,#60c3f5 100%); border: 1px solid #96d4fb; box-shadow: 0 0 9px #80c4ffac; }
.services { margin-top: 26px; gap: 12px; }
.branch, .people, .squad { gap: 11px; }
.branch { position: relative; }
.node, .agent-card { border-color: #7385a1ad; background: var(--glass); box-shadow: inset 0 1px 14px #aac6f82b, 0 4px 11px #050b18a8; }
.node:hover, .agent-card:hover { border-color: #e3c59a; box-shadow: inset 0 1px 14px #b3c8f63b, 0 3px 12px #e6b47733; }
.node strong, .agent-card strong { color: #f2f5ff; }
.node small, .agent-card small { color: #bfcee6; }
.service {
  border-color: color-mix(in srgb,var(--tone) 65%,#4f5c77); background: linear-gradient(145deg,color-mix(in srgb,var(--tone) 37%,#172137),#1f314c 68%,#142338);
  box-shadow: inset 0 1px 14px #c3d6fd32,0 3px 8px #0005;
}
.service .avatar { color: color-mix(in srgb,var(--tone) 75%,white); background: #182538; }
.person.human { background: linear-gradient(158deg,#323d53,#18273f 62%,#122038); }
.person.ai { background: linear-gradient(155deg,#344362,#172a47 64%,#152339); min-height: 110px; }
.person.ai .avatar { width: 47px; height: 47px; border: 1px solid #d5c2a7; box-shadow: 0 0 9px #d8b8873b; }
.person.ai.is-live, .person.human.is-live { outline-color: #f3d1a1; }
.node-state { color: #ffe3b9; }
#edges path { stroke: #c8d8ed; stroke-width: 1.25; filter: drop-shadow(0 0 3px #87b9f4); }
#edges .flow { stroke: #ffe4bb; filter: drop-shadow(0 0 4px #f8bc73); }
.workspace-foot { color: #aebfd8; padding: 10px 13px; }
#company-name { font-weight: 800; color: #e4edfc; }
.guide {
  justify-content: flex-start; align-self: stretch; margin-top: -90px; gap: 17px; padding: 16px;
  background: linear-gradient(151deg,#262d45,#111b31 35%,#0d1629 83%,#1f2940);
  border: 1px solid #6f7d9bb8; border-radius: 19px; box-shadow: inset 0 0 24px #a1a9dc1b,0 6px 25px #0007;
}
.guide h3 { font-family: Manrope,sans-serif; font-size: clamp(17px,1.5vw,25px); font-weight: 800; }
.guide-head small, .guide p { color: #c3cfe4; }
.guide-action { background: var(--champagne-button); color: #121b2c; border-color: #f5dab5; font-size: 12px; box-shadow: 0 0 11px #ecbc8448; }
.guide-action.secondary { box-shadow: inset 0 1px 12px #c9daff1c; }
.guide-action.secondary span { margin-left: auto; }
.live-panel { background: linear-gradient(153deg,#34425b,#17273f 54%,#111d31); border: 1px solid #7586a2a3; border-radius: 14px; padding: 12px; }
.live-head > span { color: #ffe5c0; border-color: #b39c7c; }
.live-toggle .status-dot { background: #eacc99; }
#live-title { color: #f1d2a7; }
.scene-live { color: #f2e0ba; background: #27324a; }
.scene-live button:hover { background: #394561; }
.footer { color: #aebed5; }
.library-tools #results, .unassigned { color: #c3d0e7; }
dialog { background: #111d32; border-color: #71819e; box-shadow: 0 15px 48px #020711b8; }
dialog::backdrop { background: #030814b0; }
input,select { color: #f2f5fd; background: #132139; border-color: #667d9d; }
input::placeholder { color: #a9bad1; }
.bubble { background: #202f49; color: #dce7fa; }
.bubble.user { background: #394562; color: #fff0db; }
.error { color: #ffc1af; }
.icon:hover { background: #2b3b58; }
.notice { color: #251e1a; background: var(--champagne-button); }
@media (max-width: 1130px) {
  :root { --rail: 166px; --assistant: 230px; }
  .summary > div { padding: 8px; gap: 5px; }
  .orb.metric { width: 29px; height: 29px; font-size: 13px; }
  .studio { grid-template-columns: minmax(0,1fr) var(--assistant); }
  .guide { display: flex; }
  .live-panel { margin-top: auto; }
}
@media (max-width: 940px) {
  :root { --rail: 0px; --assistant: 225px; }
  .top { position: relative; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 7px;
    padding: 7px 12px; background: #0d1526ec; border: 0; border-bottom: 1px solid #4d5e7c; }
  .brand { margin: 0; }
  .brand-emblem { width: 30px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 8px; margin-top: 3px; }
  .top nav { display: flex; gap: 4px; }
  .top nav a { min-height: 44px; margin: 0; }
  .top nav a span { display: none; }
  .top .top-chat { justify-self: end; justify-content: center; }
  .rail-account { display: none; }
  .commandbar { padding-top: 8px; }
}
@media (max-width: 680px) {
  body { background-size: 780px auto,auto,auto; background-position: top 35px right -166px,center,center; }
  .top nav a { padding-inline: 8px; }
  .top .top-chat { width: 44px; padding: 0; }
  .top .top-chat span:last-child { display: none; }
  main,.footer { padding-inline: 10px; }
  .commandbar { display: none; }
  .hero { padding-block: 13px 10px; }
  .hero h1 { font-size: clamp(27px,7vw,39px); }
  .summary { width: 100%; gap: 5px; margin-bottom: 8px; }
  .summary > div { min-height: 52px; border-radius: 10px; padding: 5px 7px; }
  .summary .orb { display: none; }
  .summary > div > span:last-child { font-size: 9px; }
  .summary strong { font-size: 16px; margin-top: 2px; }
  .studio { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .workspace,.guide { border-radius: 14px; }
  .workspace-head { padding: 5px 7px; }
  .workspace-title p { padding-bottom: 0; }
  .segments button { min-height: 42px; }
  .canvas,.canvas[data-view="future"] { min-height: 0; max-height: none; }
  .tree { padding-block: 13px; }
  .leadership { display: grid; gap: 16px; }
  .leadership .node { min-height: 53px; }
  .services { margin-top: 22px; }
  .guide { margin-top: 0; gap: 11px; }
  .guide-head { grid-column: auto; }
}
.canvas::before { content: ''; position: absolute; pointer-events: none; inset: auto 4% 5% -26%; height: 85px;
  border-bottom: 1px solid #caac796a; border-radius: 0 0 60% 100%; transform: rotate(12deg);
  box-shadow: 0 4px 11px -7px #f4cb82; }
.canvas::after { content: ''; position: absolute; pointer-events: none; inset: auto 7% 3% 6%; height: 130px;
  border-bottom: 1px solid #7aa6ef61; border-radius: 0 0 80% 75%;
  box-shadow: 0 6px 16px -11px #8acbff; }
.top .rail-jump {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 15px;
  color: #b7c8e0; font-size: 13px; font-weight: 800; border: 1px solid transparent;
  border-radius: 12px; background: transparent; text-align: left;
}
.top .rail-jump:hover { color: white; background: #25334b; }
.guide {
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  gap: 13px; padding: 0;
}
.guide-main {
  flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 17px;
  background: linear-gradient(151deg,#262d45,#111b31 35%,#0d1629 83%,#1f2940);
  border: 1px solid #6f7d9bb8; border-radius: 19px; box-shadow: inset 0 0 24px #a1a9dc1b,0 6px 25px #0007;
}
.live-panel { margin-top: 0; min-height: 159px; }
@media (max-width: 940px) { .top .rail-jump { display: none; } }
@media (max-width: 680px) { .guide { gap: 8px; } .guide-main { border-radius: 14px; } }
.tree { z-index: 1; }
.scene-live button:focus-visible, .guide :focus-visible { outline-color: #f0d4ab; }
.service {
  background: linear-gradient(145deg,color-mix(in srgb,var(--tone) 48%,#172137),#1f314c 68%,#142338);
}
@media (max-width: 680px) {
  .top nav a { min-height: 44px; }
}
