:root {
  --bg: oklch(10.5% 0.006 210);
  --surface-1: oklch(14.5% 0.010 205);
  --surface-2: oklch(18.5% 0.014 205);
  --surface-3: oklch(22.5% 0.016 205);
  --ink: oklch(95.5% 0.008 200);
  --muted: oklch(73.5% 0.018 205);
  --line: oklch(31.5% 0.025 205);
  --primary: oklch(69% 0.120 195);
  --primary-strong: oklch(61% 0.135 195);
  --success: oklch(74.5% 0.155 155);
  --warning: oklch(80% 0.155 82);
  --danger: oklch(65% 0.180 28);
  --info: oklch(70% 0.125 235);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-caption: 0.75rem;
  --text-meta: 0.875rem;
  --text-body: 1rem;
  --text-subhead: 1.125rem;
  --text-heading: 1.5rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% -20%, oklch(22% 0.028 195), transparent 40%),
    var(--bg);
  font: 400 var(--text-body)/1.55 var(--font-ui);
  font-kerning: normal;
}
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 0.125rem solid var(--primary); outline-offset: 0.1875rem; }
.skip-link { position: fixed; left: var(--space-lg); top: -5rem; z-index: 100; padding: var(--space-md) var(--space-lg); background: var(--primary); color: var(--bg); }
.skip-link:focus { top: var(--space-lg); }
.eyebrow { margin: 0 0 var(--space-sm); color: var(--primary); font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

.auth-page { display: grid; place-items: center; padding: var(--space-xl); }
.auth-shell { width: min(64rem, 100%); display: grid; grid-template-columns: minmax(20rem, 28rem) 1fr; border: 0.0625rem solid var(--line); background: var(--surface-1); }
.auth-panel, .auth-context { padding: clamp(1.5rem, 4vw, 4rem); }
.auth-panel { background: var(--surface-2); }
.auth-panel h1, .auth-context h2 { margin: 0 0 var(--space-lg); line-height: 1.15; }
.auth-panel h1 { font-size: 2rem; }
.auth-intro, .auth-context li, .field-help { color: var(--muted); }
.auth-context { display: flex; flex-direction: column; justify-content: center; border-left: 0.0625rem solid var(--line); }
.auth-context h2 { max-width: 16ch; font-size: 2rem; }
.auth-context ul { display: grid; gap: var(--space-md); padding-left: 1.25rem; }
.auth-form { display: grid; gap: var(--space-md); }
.auth-form label { font-size: var(--text-meta); font-weight: 700; }
.auth-form input { width: 100%; min-height: 3rem; padding: var(--space-md) var(--space-lg); color: var(--ink); background: var(--bg); border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); font: 700 1.5rem/1 var(--font-data); letter-spacing: 0.35em; }
.auth-divider { display: flex; align-items: center; gap: var(--space-md); margin: var(--space-xl) 0; color: var(--muted); font-size: var(--text-caption); text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; height: 0.0625rem; flex: 1; background: var(--line); }
.notice { margin: var(--space-lg) 0; padding: var(--space-md) var(--space-lg); border: 0.0625rem solid; border-radius: var(--radius-sm); }
.notice-error { color: oklch(84% 0.09 28); border-color: var(--danger); background: oklch(20% 0.04 28); }
.notice-success { color: oklch(86% 0.08 155); border-color: var(--success); background: oklch(20% 0.035 155); }
.brand-mark { display: inline-flex; align-items: end; gap: 0.1875rem; height: 2rem; margin-bottom: var(--space-xl); }
.brand-mark i { display: block; width: 0.3125rem; border-radius: 999px; background: var(--primary); }
.brand-mark i:nth-child(1) { height: 1.25rem; }
.brand-mark i:nth-child(2) { height: 2rem; }
.brand-mark i:nth-child(3) { height: 0.875rem; }
.button { min-height: 2.75rem; border: 0.0625rem solid transparent; border-radius: var(--radius-sm); padding: var(--space-md) var(--space-lg); font-weight: 700; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-0.0625rem); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .6; }
.button-primary { color: var(--bg); background: var(--primary); }
.button-primary:hover { background: oklch(75% 0.125 195); }
.button-secondary { color: var(--ink); background: var(--surface-3); border-color: var(--line); }
.button-secondary:hover, .button-ghost:hover { border-color: var(--primary); }
.button-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.button-small { min-height: 2.75rem; padding: var(--space-sm) var(--space-md); font-size: var(--text-meta); }

.app-shell { min-height: 100vh; display: grid; grid-template: 5rem 1fr / 15.5rem minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; grid-row: 1 / 3; display: flex; flex-direction: column; border-right: 0.0625rem solid var(--line); background: oklch(12.5% 0.008 205); }
.brand-lockup { min-height: 5rem; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); border-bottom: 0.0625rem solid var(--line); }
.brand-lockup .brand-mark { margin: 0; height: 1.75rem; }
.brand-lockup strong, .brand-lockup span { display: block; }
.brand-lockup strong { font-size: var(--text-meta); letter-spacing: .08em; }
.brand-lockup span { color: var(--muted); font-size: var(--text-caption); }
.sidebar nav { display: grid; gap: var(--space-xs); padding: var(--space-lg) var(--space-md); }
.nav-item { min-height: 2.75rem; display: flex; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-md); color: var(--muted); text-decoration: none; border: 0.0625rem solid transparent; border-radius: var(--radius-sm); }
.nav-item:hover { color: var(--ink); background: var(--surface-2); }
.nav-item.active { color: var(--primary); background: oklch(21% 0.035 195); border-color: oklch(34% 0.055 195); }
.nav-item b { margin-left: auto; min-width: 1.5rem; text-align: center; color: var(--ink); background: var(--surface-3); border-radius: 999px; font-size: var(--text-caption); }
.sidebar-foot { margin-top: auto; display: grid; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); border-top: 0.0625rem solid var(--line); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot small { margin-left: 1rem; color: var(--muted); }
.text-button { min-height: 2.75rem; padding: 0; color: var(--muted); background: none; border: 0; cursor: pointer; }
.text-button:hover { color: var(--ink); }
.command-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: stretch; border-bottom: 0.0625rem solid var(--line); background: oklch(12.5% 0.008 205 / .96); backdrop-filter: blur(12px); }
.command-facts { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(10rem, 1fr)); margin: 0; }
.command-facts > div { display: flex; flex-direction: column; justify-content: center; padding: var(--space-md) var(--space-xl); border-right: 0.0625rem solid var(--line); }
.command-facts dt { color: var(--muted); font-size: var(--text-caption); }
.command-facts dd { margin: var(--space-xs) 0 0; font: 700 var(--text-meta)/1.2 var(--font-data); font-variant-numeric: tabular-nums; }
.session-chip { display: flex; align-items: center; padding: 0 var(--space-xl); color: var(--primary); font-size: var(--text-caption); font-weight: 700; letter-spacing: .08em; }
.mobile-brand { display: none; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 21.25rem; grid-template-areas: "switch decisions" "operations decisions" "timeline decisions" "channels decisions"; gap: var(--space-lg); padding: var(--space-lg); align-items: start; }
.view-switcher { grid-area: switch; width: fit-content; display: inline-flex; padding: .1875rem; border: .0625rem solid var(--line); border-radius: var(--radius-md); background: var(--surface-1); }
.view-tab { min-height: 2.75rem; padding: var(--space-sm) var(--space-lg); color: var(--muted); border: 0; border-radius: var(--radius-sm); background: transparent; font-weight: 700; cursor: pointer; transition: color .18s ease, background-color .18s ease; }
.view-tab:hover { color: var(--ink); }
.view-tab.is-active { color: var(--bg); background: var(--primary); }
.operations-zone, .office-zone, .decision-rail, .timeline-zone, .channel-zone { border: 0.0625rem solid var(--line); background: var(--surface-1); }
.operations-zone { grid-area: operations; padding: var(--space-xl); }
.office-zone { grid-area: operations; overflow: hidden; }
.decision-rail { grid-area: decisions; position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow: auto; }
.timeline-zone { grid-area: timeline; }
.channel-zone { grid-area: channels; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.section-heading h1 { margin: 0; font-size: var(--text-heading); }
.section-heading > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: var(--text-meta); text-align: right; }
.section-subheading, .decision-rail > header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-lg) var(--space-xl); border-bottom: 0.0625rem solid var(--line); }
.section-subheading h2, .decision-rail h2 { margin: 0; font-size: var(--text-subhead); }
.tactical-runway { position: relative; display: grid; grid-template-columns: repeat(5, minmax(10rem, 1fr)); gap: var(--space-md); margin: 0; padding: 0; list-style: none; }
.tactical-runway::before { content: ""; position: absolute; top: 2.35rem; left: 4%; right: 4%; height: 0.125rem; background: var(--line); }
.station { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--surface-2); border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); }
.station:hover { border-color: oklch(48% 0.06 195); }
.station-top { position: relative; z-index: 1; min-height: 3.25rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-md); border-bottom: 0.0625rem solid var(--line); background: var(--surface-2); }
.station-order { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--primary); border: 0.0625rem solid var(--primary-strong); border-radius: 50%; font: 700 var(--text-caption)/1 var(--font-data); }
.mode-label { color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.station-identity { display: grid; grid-template-columns: 2rem 1fr; align-items: center; gap: var(--space-sm); padding: var(--space-lg) var(--space-md) var(--space-sm); }
.station-symbol { color: var(--primary); font-size: 1.5rem; text-align: center; }
.station h2 { margin: 0; font-size: var(--text-body); line-height: 1.25; }
.station > p { min-height: 4.5rem; margin: 0; padding: 0 var(--space-md) var(--space-md); color: var(--muted); font-size: var(--text-meta); }
.station dl { margin: 0; padding: var(--space-md); border-top: 0.0625rem solid var(--line); }
.station dl div + div { margin-top: var(--space-md); }
.station dt { color: var(--muted); font-size: var(--text-caption); }
.station dd { margin: var(--space-xs) 0 0; font-size: var(--text-meta); }
.station-link { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: var(--space-sm) var(--space-md); color: var(--primary); border-top: 0.0625rem solid var(--line); text-decoration: none; font-size: var(--text-meta); font-weight: 700; }
.station-link:hover { background: oklch(22% 0.035 195); }
.station-link.disabled { color: var(--muted); }
.status-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: var(--space-sm); border-radius: 50%; vertical-align: .05em; }
.status-ok { background: var(--success); box-shadow: 0 0 .6rem oklch(74.5% 0.155 155 / .4); }
.status-warn { background: var(--warning); }
.status-off { background: var(--muted); }
.count-badge { display: grid; place-items: center; min-width: 2rem; height: 2rem; color: var(--bg); background: var(--primary); border-radius: 999px; font: 700 var(--text-meta)/1 var(--font-data); }
.decision-list { display: grid; gap: var(--space-md); padding: var(--space-lg); }
.decision { padding: var(--space-lg); border: 0.0625rem solid var(--line); background: var(--surface-2); transition: opacity .18s ease, transform .18s ease; }
.decision-leaving { opacity: 0; transform: translateX(1rem); }
.decision-meta { display: flex; justify-content: space-between; gap: var(--space-sm); color: var(--muted); font-size: var(--text-caption); }
.decision h3 { margin: var(--space-sm) 0; font-size: var(--text-body); }
.decision p { margin: 0 0 var(--space-md); color: var(--muted); font-size: var(--text-meta); }
.decision-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.empty-state { padding: var(--space-2xl) var(--space-lg); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 3rem; height: 3rem; margin: 0 auto var(--space-lg); color: var(--success); border: 0.0625rem solid var(--success); border-radius: 50%; }
.empty-state h3 { margin: 0 0 var(--space-sm); font-size: var(--text-body); }
.empty-state p { margin: 0; color: var(--muted); font-size: var(--text-meta); }
.safety-note { margin: 0; padding: var(--space-lg); color: var(--muted); border-top: 0.0625rem solid var(--line); font-size: var(--text-caption); }
.health-label { color: var(--muted); font-size: var(--text-meta); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-meta); }
th, td { padding: var(--space-md) var(--space-xl); border-bottom: 0.0625rem solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: var(--text-caption); letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.table-empty { color: var(--muted); text-align: center; }
.channel-list { display: grid; grid-template-columns: 1fr 1fr; }
.channel-row { min-height: 4.5rem; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-xl); border-bottom: 0.0625rem solid var(--line); }
.channel-row:nth-child(odd) { border-right: 0.0625rem solid var(--line); }
.channel-row strong, .channel-row small { display: block; }
.channel-row small { color: var(--muted); }
.channel-row > a { min-width: 2.75rem; min-height: 2.75rem; display: grid; place-items: center; color: var(--primary); border: 0.0625rem solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.channel-row > a:hover { border-color: var(--primary); background: oklch(22% 0.035 195); }
.bottom-nav { display: none; }

.office-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); padding: var(--space-xl); border-bottom: .0625rem solid var(--line); }
.office-heading h1 { margin: 0; font-size: var(--text-heading); }
.office-heading > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: var(--text-meta); text-align: right; }
.office-legend { display: flex; flex-wrap: wrap; gap: var(--space-lg); padding: var(--space-md) var(--space-xl); color: var(--muted); border-bottom: .0625rem solid var(--line); font-size: var(--text-caption); }
.office-legend span { display: inline-flex; align-items: center; gap: var(--space-sm); }
.office-led { width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 50%; background: var(--muted); box-shadow: 0 0 .5rem transparent; }
.led-working { background: var(--primary); box-shadow: 0 0 .6rem oklch(69% .12 195 / .55); }
.led-waiting { background: var(--warning); box-shadow: 0 0 .6rem oklch(80% .155 82 / .45); }
.led-idle { background: var(--success); }

.office-floor { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(12rem, 1fr)); gap: var(--space-lg); padding: var(--space-2xl); background: oklch(12.2% .012 205); }
.office-floor::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .32; background-image: linear-gradient(30deg, transparent 49.5%, oklch(34% .025 205) 50%, transparent 50.5%), linear-gradient(150deg, transparent 49.5%, oklch(34% .025 205) 50%, transparent 50.5%); background-size: 3rem 1.75rem; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.office-agent { min-width: 0; }
.office-pod { position: relative; height: 100%; overflow: hidden; border: .0625rem solid var(--line); border-radius: var(--radius-md); background: linear-gradient(155deg, oklch(20% .016 205), oklch(15.5% .010 205)); transition: border-color .2s ease, box-shadow .2s ease; }
.pod-sign { min-height: 3.4rem; display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-bottom: .0625rem solid var(--line); background: oklch(17.5% .012 205); }
.pod-sign strong { font-size: var(--text-meta); line-height: 1.2; }
.pod-sign span { color: var(--muted); font-size: .625rem; font-weight: 700; letter-spacing: .05em; text-align: right; }
.workstation { position: relative; height: 12rem; contain: layout paint; }
.workstation::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: .6rem; height: 1.1rem; border-radius: 50%; background: oklch(4% .005 205 / .65); filter: blur(.5rem); }
.monitor { position: absolute; z-index: 3; top: 1rem; left: 1rem; width: 5.8rem; height: 3.8rem; display: flex; flex-direction: column; gap: .35rem; padding: .6rem; border: .25rem solid oklch(25% .015 205); border-radius: .3rem; background: oklch(8% .018 210); box-shadow: inset 0 0 1rem oklch(69% .12 195 / .08); }
.monitor span { display: block; height: .22rem; border-radius: 999px; background: oklch(51% .075 195); transform-origin: left center; }
.monitor span:nth-child(2) { width: 72%; }
.monitor span:nth-child(3) { width: 44%; }
.monitor-neck { position: absolute; z-index: 2; top: 4.75rem; left: 3.45rem; width: .55rem; height: 1.35rem; background: oklch(28% .014 205); }
.monitor-neck::after { content: ""; position: absolute; left: -.75rem; bottom: 0; width: 2rem; height: .3rem; border-radius: 999px; background: oklch(28% .014 205); }
.office-chair { position: absolute; z-index: 2; right: 1rem; bottom: 1.5rem; width: 3.7rem; height: 5rem; border: .35rem solid oklch(28% .018 205); border-bottom: 0; border-radius: 1.5rem 1.5rem .5rem .5rem; background: oklch(17% .013 205); }
.office-character { --uniform: oklch(53% .105 195); position: absolute; z-index: 4; right: 1.25rem; bottom: 2.5rem; width: 4rem; height: 6.2rem; transform-origin: center bottom; }
.office-character.character-2 { --uniform: oklch(61% .125 82); }
.office-character.character-3 { --uniform: oklch(58% .11 235); }
.office-character.character-4 { --uniform: oklch(60% .12 155); }
.office-character.character-5 { --uniform: oklch(57% .105 310); }
.agent-head { position: absolute; top: 0; left: 50%; width: 2.25rem; height: 2.35rem; transform: translateX(-50%); border-radius: 48% 48% 44% 44%; background: oklch(72% .075 60); box-shadow: inset 0 -.22rem oklch(60% .07 55); }
.agent-hair { position: absolute; left: -.05rem; right: -.05rem; top: -.08rem; height: .72rem; border-radius: 1rem 1rem .25rem .25rem; background: oklch(19% .025 40); }
.character-2 .agent-hair { height: .9rem; border-radius: 50% 50% 35% 35%; background: oklch(27% .06 45); }
.character-3 .agent-hair { clip-path: polygon(0 100%, 10% 15%, 35% 35%, 52% 0, 70% 35%, 100% 18%, 100% 100%); background: oklch(23% .03 250); }
.character-4 .agent-hair { height: .55rem; background: oklch(16% .01 205); }
.character-5 .agent-hair { height: .85rem; border-radius: 50% 50% 20% 20%; background: oklch(24% .04 25); }
.agent-face::before, .agent-face::after { content: ""; position: absolute; top: 1rem; width: .18rem; height: .18rem; border-radius: 50%; background: oklch(18% .02 40); }
.agent-face::before { left: .65rem; }
.agent-face::after { right: .65rem; }
.agent-body { position: absolute; left: 50%; bottom: 0; width: 3.15rem; height: 4.1rem; transform: translateX(-50%); border-radius: 1.1rem 1.1rem .4rem .4rem; background: var(--uniform); box-shadow: inset 0 -.55rem oklch(25% .04 205 / .45); }
.agent-arm { position: absolute; top: .72rem; width: .72rem; height: 3rem; border-radius: 999px; background: var(--uniform); transform-origin: center .3rem; }
.arm-left { left: -.22rem; transform: rotate(32deg); }
.arm-right { right: -.22rem; transform: rotate(-32deg); }
.office-desk { position: absolute; z-index: 5; left: .65rem; right: .65rem; bottom: 1.2rem; height: 2.2rem; border-top: .5rem solid oklch(43% .035 70); background: linear-gradient(90deg, oklch(27% .02 65), oklch(34% .025 70)); box-shadow: 0 .45rem 0 oklch(12% .01 205 / .6); }
.office-desk i { position: absolute; bottom: -1.35rem; width: .35rem; height: 1.35rem; background: oklch(24% .018 205); }
.office-desk i:first-child { left: .45rem; }
.office-desk i:last-child { right: .45rem; }
.decision-beacon { position: absolute; z-index: 7; top: .7rem; right: .7rem; width: 1.8rem; height: 1.8rem; display: none; place-items: center; color: oklch(18% .03 82); border-radius: 50%; background: var(--warning); font: 900 var(--text-meta)/1 var(--font-data); box-shadow: 0 0 0 .35rem oklch(80% .155 82 / .14); }
.agent-readout { min-height: 4.8rem; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-sm); padding: var(--space-md); border-top: .0625rem solid var(--line); }
.agent-readout strong { font-size: var(--text-meta); }
.agent-readout small { grid-column: 2; color: var(--muted); font-size: .6875rem; line-height: 1.35; }
.office-agent[data-state="available"] .office-led { background: var(--success); }
.office-agent[data-state="scheduled"] .office-led { background: var(--info); }
.office-agent[data-state="working"] .office-led { background: var(--primary); box-shadow: 0 0 .6rem oklch(69% .12 195 / .55); }
.office-agent[data-state="waiting"] .office-led { background: var(--warning); box-shadow: 0 0 .6rem oklch(80% .155 82 / .5); }
.office-agent[data-state="working"] .office-pod { border-color: oklch(55% .10 195); box-shadow: inset 0 0 1.5rem oklch(69% .12 195 / .08); }
.office-agent[data-state="waiting"] .office-pod { border-color: oklch(63% .12 82); }
.office-agent[data-state="waiting"] .decision-beacon { display: grid; animation: office-beacon 1.4s ease-in-out infinite; }
.office-agent[data-state="working"] .arm-left { animation: office-type-left .55s steps(2, end) infinite; }
.office-agent[data-state="working"] .arm-right { animation: office-type-right .55s steps(2, end) infinite reverse; }
.office-agent[data-state="working"] .monitor span { animation: office-screen .9s ease-in-out infinite alternate; }
.office-agent[data-state="available"] .office-character,
.office-agent[data-state="scheduled"] .office-character { animation: office-breathe 4s ease-in-out infinite; }
.office-agent[data-state="scheduled"] .monitor span { opacity: .58; }
.office-checkpoint { grid-column: 1 / -1; min-height: 4.5rem; display: grid; grid-template-columns: 2.75rem 1fr auto; align-items: center; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border: .0625rem solid oklch(40% .05 82); background: oklch(19% .025 82); }
.office-checkpoint > span { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--warning); border: .0625rem solid var(--warning); border-radius: 50%; font: 800 .7rem/1 var(--font-data); }
.office-checkpoint strong { font-size: var(--text-meta); }
.office-checkpoint small { color: var(--muted); }
.office-truth { margin: 0; padding: var(--space-md) var(--space-xl); color: var(--muted); border-top: .0625rem solid var(--line); font-size: var(--text-caption); }
@keyframes office-type-left { 0% { transform: rotate(32deg); } 100% { transform: rotate(45deg); } }
@keyframes office-type-right { 0% { transform: rotate(-32deg); } 100% { transform: rotate(-45deg); } }
@keyframes office-screen { from { transform: scaleX(.58); opacity: .6; } to { transform: scaleX(1); opacity: 1; } }
@keyframes office-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.12rem); } }
@keyframes office-beacon { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 .3rem oklch(80% .155 82 / .12); } 50% { transform: scale(1.06); box-shadow: 0 0 0 .55rem oklch(80% .155 82 / .04); } }

/* Isometric pixel-office map: state overlays remain live, artwork is decorative. */
.pixel-pan-hint { display: none; }
.pixel-office-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; background: #10151b; scrollbar-color: #4b6670 #10151b; scrollbar-width: thin; }
.pixel-office-scroll:focus-visible { outline: .125rem solid var(--primary); outline-offset: -.125rem; }
.pixel-office-scene { position: relative; min-width: 52rem; aspect-ratio: 1672 / 941; overflow: hidden; background: #303a4e; image-rendering: pixelated; }
.pixel-office-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: pixelated; user-select: none; }
.pixel-office-scene::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .19; background: radial-gradient(circle at 23% 39%, oklch(78% .15 190 / .6), transparent 3.2%), radial-gradient(circle at 47% 22%, oklch(78% .15 190 / .5), transparent 3.4%), radial-gradient(circle at 79% 35%, oklch(78% .15 190 / .55), transparent 3.2%), radial-gradient(circle at 23% 68%, oklch(78% .15 190 / .5), transparent 3.2%), radial-gradient(circle at 55% 60%, oklch(78% .15 190 / .55), transparent 3.4%); mix-blend-mode: screen; animation: pixel-screen-flicker 2.1s steps(2, end) infinite; }
.office-terminal { --terminal-accent: #a8b0b2; position: absolute; z-index: 4; width: 23%; min-width: 10rem; display: grid; gap: .18rem; padding: .88rem .7rem .58rem; color: #d3dad8; border: .125rem solid var(--terminal-accent); border-radius: 0; background: rgb(3 8 8 / .93); box-shadow: .25rem .25rem 0 rgb(0 0 0 / .58), inset 0 0 .85rem color-mix(in srgb, var(--terminal-accent) 16%, transparent); font-family: "IBM Plex Mono", "Courier New", monospace; text-shadow: 0 0 .35rem color-mix(in srgb, var(--terminal-accent) 45%, transparent); }
.office-terminal::before { content: ""; position: absolute; left: 44%; bottom: -.65rem; width: 1rem; height: .7rem; background: inherit; border-right: .125rem solid var(--terminal-accent); border-bottom: .125rem solid var(--terminal-accent); transform: rotate(45deg); }
.office-terminal::after { content: ""; position: absolute; inset: .75rem 0 0; pointer-events: none; opacity: .12; background: repeating-linear-gradient(to bottom, transparent 0 .18rem, var(--terminal-accent) .2rem .22rem); }
.terminal-chrome { position: absolute; inset: 0 0 auto; height: .62rem; display: flex; justify-content: end; gap: .18rem; padding: .14rem .2rem; background: #536066; border-bottom: .125rem solid #111719; }
.terminal-chrome i { width: .28rem; height: .28rem; display: block; border: .0625rem solid #172024; background: #879297; }
.terminal-chrome i:last-child { background: #9a3e3e; }
.terminal-system { position: relative; z-index: 1; overflow: hidden; color: #f4f5ee; font-size: clamp(.56rem, .78vw, .82rem); line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.terminal-status { position: relative; z-index: 1; display: flex; align-items: center; gap: .28rem; color: var(--terminal-accent); font-size: clamp(.52rem, .7vw, .74rem); line-height: 1.2; white-space: nowrap; }
.terminal-status .office-led { background: var(--terminal-accent); box-shadow: 0 0 .45rem var(--terminal-accent); }
.terminal-status b { overflow: hidden; max-width: 46%; font-weight: 700; text-overflow: ellipsis; }
.terminal-status em { margin-left: -.2rem; font-style: normal; }
.office-terminal small { position: relative; z-index: 1; overflow: hidden; color: #98a19f; font-size: clamp(.46rem, .62vw, .66rem); line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.office-terminal[data-state="available"] { --terminal-accent: #b0b8b8; }
.office-terminal[data-state="scheduled"] { --terminal-accent: #78a8d8; }
.office-terminal[data-state="working"] { --terminal-accent: #65e37c; animation: pixel-terminal-work 1.2s steps(2, end) infinite; }
.office-terminal[data-state="waiting"] { --terminal-accent: #f2c85b; animation: pixel-terminal-wait 1.5s ease-in-out infinite; }
.office-terminal[data-state="working"] .terminal-cursor { animation: pixel-cursor .7s steps(1, end) infinite; }
.office-terminal[data-state="waiting"] .terminal-status::after { content: "DECISIÓN"; margin-left: auto; padding: .1rem .2rem; color: #16130a; background: var(--terminal-accent); font-size: .5rem; font-weight: 900; text-shadow: none; }
.terminal-1 { left: 3.5%; top: 23%; }
.terminal-2 { left: 34.5%; top: 7%; }
.terminal-3 { right: 3.5%; top: 19%; }
.terminal-4 { left: 3.5%; top: 55%; }
.terminal-5 { left: 41%; top: 49%; }
.neyser-desk-marker { position: absolute; right: 4.2%; bottom: 4.5%; z-index: 4; width: 20%; min-width: 9.5rem; display: grid; grid-template-columns: 2.1rem 1fr; align-items: center; gap: .14rem .45rem; padding: .42rem; color: #cfd8d5; border: .125rem solid #58d5c8; background: rgb(3 8 8 / .9); box-shadow: .22rem .22rem 0 rgb(0 0 0 / .5); font-family: "IBM Plex Mono", "Courier New", monospace; }
.neyser-desk-marker > span { grid-row: 1 / 3; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; color: #071312; background: #58d5c8; font-size: .65rem; font-weight: 900; }
.neyser-desk-marker strong { font-size: clamp(.5rem, .66vw, .7rem); }
.neyser-desk-marker small { color: #65e37c; font-size: clamp(.46rem, .59vw, .62rem); }
@keyframes pixel-screen-flicker { 0%, 100% { opacity: .13; } 50% { opacity: .23; } }
@keyframes pixel-terminal-work { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.0625rem); } }
@keyframes pixel-terminal-wait { 0%, 100% { box-shadow: .25rem .25rem 0 rgb(0 0 0 / .58), 0 0 0 rgb(242 200 91 / 0); } 50% { box-shadow: .25rem .25rem 0 rgb(0 0 0 / .58), 0 0 1rem rgb(242 200 91 / .48); } }
@keyframes pixel-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 90rem) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-areas: "switch" "operations" "decisions" "timeline" "channels"; }
  .decision-rail { position: static; max-height: none; }
  .tactical-runway { grid-template-columns: repeat(3, minmax(12rem, 1fr)); }
  .tactical-runway::before { display: none; }
}

@media (max-width: 60rem) {
  .app-shell { grid-template: 4.5rem 1fr / 4.5rem minmax(0, 1fr); }
  .brand-lockup > div:last-child, .nav-item:not(.active), .sidebar-foot { display: none; }
  .brand-lockup { justify-content: center; padding: var(--space-lg); }
  .sidebar nav { padding: var(--space-lg) var(--space-sm); }
  .nav-item.active { justify-content: center; font-size: 0; }
  .nav-item.active span { font-size: var(--text-subhead); }
  .command-facts > div:nth-child(3), .session-chip { display: none; }
  .command-facts { grid-template-columns: 1fr 1fr; }
  .office-floor { grid-template-columns: repeat(2, minmax(12rem, 1fr)); }
}

@media (max-width: 45rem) {
  body { padding-bottom: max(4.25rem, env(safe-area-inset-bottom)); }
  .auth-page { padding: 0; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; }
  .auth-context { border-left: 0; border-top: 0.0625rem solid var(--line); }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .command-bar { min-height: 4.25rem; }
  .mobile-brand { display: flex; flex-direction: column; justify-content: center; padding: var(--space-sm) var(--space-lg); }
  .mobile-brand strong { font-size: var(--text-meta); letter-spacing: .08em; }
  .mobile-brand span { color: var(--muted); font-size: var(--text-caption); }
  .command-facts { margin-left: auto; flex: 0; display: block; }
  .command-facts > div { min-width: 8rem; height: 100%; padding: var(--space-sm) var(--space-lg); }
  .command-facts > div:not(:first-child) { display: none; }
  .workspace { display: flex; flex-direction: column; padding: var(--space-md); gap: var(--space-md); }
  .operations-zone, .timeline-zone, .channel-zone, .decision-rail { width: 100%; }
  .office-zone, .view-switcher { width: 100%; }
  .view-tab { flex: 1; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .tactical-runway { grid-template-columns: 1fr; }
  .station > p { min-height: 0; }
  .channel-list { grid-template-columns: 1fr; }
  .channel-row:nth-child(odd) { border-right: 0; }
  .office-heading { align-items: start; flex-direction: column; }
  .office-heading > p { text-align: left; }
  .pixel-pan-hint { display: block; margin: 0; padding: .55rem var(--space-md); color: #7fcbc5; border-bottom: .0625rem solid var(--line); background: #0d1718; font: 700 .64rem/1.2 var(--font-data); letter-spacing: .04em; text-transform: uppercase; }
  .pixel-office-scene { min-width: 52rem; }
  .office-floor { grid-template-columns: 1fr; padding: var(--space-md); }
  .office-checkpoint { grid-template-columns: 2.75rem 1fr; }
  .office-checkpoint small { grid-column: 2; }
  .bottom-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; min-height: 4.25rem; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: var(--surface-2); border-top: 0.0625rem solid var(--line); }
  .bottom-nav a, .bottom-nav button { min-height: 3.75rem; display: grid; place-items: center; padding: 0; color: var(--muted); text-decoration: none; border: 0; background: transparent; font-size: var(--text-caption); font-weight: 700; }
  .bottom-nav a:active, .bottom-nav button:active, .bottom-nav button.is-active { color: var(--primary); background: oklch(22% 0.035 195); }
  th, td { padding: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
