:root {
  color-scheme: dark;
  --bg: #060708;
  --panel: rgba(16, 18, 21, .96);
  --line: rgba(255, 255, 255, .11);
  --muted: #8f969d;
  --text: #f5f7f8;
  --blue: #64cffa;
  --radius: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; width: 100%; }
html { overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% 45%, rgba(26, 64, 82, .20), transparent 34%),
    radial-gradient(circle at 14% 86%, rgba(68, 39, 98, .13), transparent 32%),
    var(--bg);
  color: var(--text);
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ambient { position: fixed; width: 42vw; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-one { top: -24vw; right: -12vw; background: #4fc6ff; }
.ambient-two { bottom: -30vw; left: -14vw; background: #7755b7; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(6, 7, 8, .72);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand img { width: 56px; height: 30px; object-fit: contain; }
.brand span { display: grid; line-height: 1; }
.brand b { font-size: 14px; letter-spacing: .19em; }
.brand small { margin-top: 6px; font-size: 9px; letter-spacing: .43em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.ask-bar { position: relative; flex: 1 1 auto; max-width: 480px; margin: 0 28px; display: flex; align-items: center; }
.ask-bar input { width: 100%; height: 40px; padding: 0 48px 0 16px; border: 1px solid rgba(108,184,255,.28); border-radius: 999px; color: var(--text); background: rgba(108,184,255,.06); outline: none; font-size: 13px; }
.ask-bar input::placeholder { color: #7f8b95; }
.ask-bar input:focus { border-color: rgba(108,184,255,.7); background: rgba(108,184,255,.09); box-shadow: 0 0 0 3px rgba(108,184,255,.10); }
.ask-bar > button { position: absolute; right: 5px; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #061015; background: #cfe9ff; font-weight: 800; cursor: pointer; }
.ask-bar > button:hover { background: white; }
.ask-result { position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30; padding: 14px 40px 14px 14px; border: 1px solid rgba(108,184,255,.26); border-radius: 16px; background: rgba(12,15,18,.98); box-shadow: 0 24px 70px rgba(0,0,0,.6); color: #c9d2d9; font-size: 12px; line-height: 1.45; }
.ask-result[hidden] { display: none; }
.ask-dismiss { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: #8f969d; font-size: 18px; cursor: pointer; }
.ask-dismiss:hover { color: white; }
.owner-chip { display: inline-block; flex: none; padding: 3px 6px; border: 1px solid; border-radius: 999px; font-size: 7.5px; font-weight: 800; font-style: normal; letter-spacing: .1em; white-space: nowrap; }
.chip-john { color: #9fdcff; border-color: rgba(100,207,250,.35); background: rgba(100,207,250,.08); }
.chip-operator { color: #8ee0b8; border-color: rgba(96,230,173,.32); background: rgba(96,230,173,.07); }
.chip-robin { color: #d4bfff; border-color: rgba(197,167,255,.38); background: rgba(197,167,255,.09); }
.receipt-line { margin: 0; }
.receipt-line.is-done { color: #9fe6c3; }
.receipt-line.is-failed { color: #e7b479; }
.receipt-card { margin-top: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.025); }
.receipt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.receipt-top b { color: var(--text); font-size: 12px; }
.receipt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: #8f969d; font-size: 10px; letter-spacing: .03em; }
.receipt-meta a { color: #9fdcff; font-weight: 750; letter-spacing: .08em; text-decoration: none; }
.receipt-meta a:hover { color: white; }
.quick-add-button {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(100,207,250,.35);
  border-radius: 999px; color: #dff7ff; background: rgba(68,174,219,.10); cursor: pointer;
  font-size: 10px; font-weight: 750; letter-spacing: .12em;
}
.quick-add-button:hover { border-color: rgba(100,207,250,.75); background: rgba(68,174,219,.16); }
.quick-add-button span { font-size: 15px; line-height: .7; }
.mode-badge, .data-state, .quiet-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .14em;
  padding: 9px 12px;
}
.mode-badge { color: #d9c9ff; border-color: rgba(181, 146, 255, .27); }
.data-state { display: flex; align-items: center; gap: 8px; cursor: default; }
.data-state span { width: 7px; height: 7px; border-radius: 50%; background: #f0ba6d; box-shadow: 0 0 12px #f0ba6d; }
.state-live span { background: #60e6ad; box-shadow: 0 0 12px #60e6ad; }
.state-unknown span { background: #f0ba6d; box-shadow: 0 0 12px #f0ba6d; }
.state-loading span { animation: pulse 1s ease-in-out infinite; }
.quiet-button { cursor: pointer; color: var(--muted); }
.quiet-button:hover { color: white; border-color: rgba(255,255,255,.25); }

.command-shell { width: 100%; min-height: calc(100vh - 84px); overflow-x: clip; }
.universe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.5vw, 48px);
  width: 100%;
  min-height: calc(100vh - 84px);
  padding: 34px clamp(30px, 4vw, 72px) 28px;
  overflow-x: clip;
}
.universe-copy { position: relative; z-index: 3; max-width: 320px; }
.eyebrow { margin: 0 0 10px; color: #929aa2; font-size: 10px; letter-spacing: .28em; font-weight: 700; }
.universe-copy h1 { margin: 0; text-transform: uppercase; letter-spacing: -.025em; font-size: clamp(34px, 4.4vw, 70px); line-height: .92; font-stretch: condensed; }
.universe-copy > p:last-child { color: var(--muted); font-size: 13px; margin-top: 16px; }
.orbit-stage {
  position: relative;
  width: min(880px, 100%);
  height: min(720px, calc(100svh - 146px));
  min-height: 600px;
  margin: 0 auto;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.orbit-stage.is-dragging, .orbit-stage.is-dragging .world-node { cursor: grabbing; }
.orbit-stage:focus-visible { outline: 1px solid rgba(100,207,250,.55); outline-offset: 5px; border-radius: 24px; }
.orbit-stage::before {
  content: ""; position: absolute; inset: 7% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 100, 124, .15), rgba(6,7,8,0) 61%);
  filter: blur(10px);
}
.orbit-line { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(136, 199, 221, .12); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-line::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border-top: 1px solid rgba(129, 216, 247, .30); transform: rotate(-28deg); }
.orbit-line-outer { width: var(--orbit-diameter, 560px); height: var(--orbit-diameter, 560px); }
.center-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 176px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  align-content: center; z-index: 2; border: 1px solid rgba(255,255,255,.19);
  background: radial-gradient(circle at 35% 25%, rgba(118, 210, 244, .18), transparent 35%), rgba(10,12,14,.88);
  box-shadow: 0 0 0 12px rgba(255,255,255,.018), 0 0 90px rgba(84, 199, 239, .12), inset 0 0 30px rgba(255,255,255,.025);
  pointer-events: none;
}
.center-core img { width: 77px; margin-bottom: 9px; }
.center-core strong { font-size: 14px; letter-spacing: .18em; }
.center-core > span { margin-top: 5px; color: #92999f; font-size: 9px; letter-spacing: .46em; padding-left: .46em; }
.core-halo { position: absolute; inset: -23px; border: 1px solid rgba(98, 206, 247, .12); border-radius: 50%; }
.orbit-anchor { position: absolute; left: 50%; top: 50%; z-index: 4; will-change: transform; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.orbit-stage.is-dragging .orbit-anchor { transition: none; }
.world-node { position: absolute; transform: translate(-50%, -50%); width: 154px; border: 0; background: none; cursor: grab; text-align: center; }
.orbit-stage.is-dragging .world-node { cursor: grabbing; }
.world-icon {
  position: relative; margin: 0 auto 11px; display: grid; place-items: center; width: 68px; height: 68px;
  border-radius: 50%; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%), rgba(11,13,15,.94);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 14%, transparent), inset 0 0 14px rgba(255,255,255,.025);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.world-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.world-node:hover .world-icon, .world-node:focus-visible .world-icon { transform: scale(1.09); border-color: var(--accent); box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 26%, transparent); }
.orbit-anchor.is-focused { z-index: 7; }
.orbit-anchor.is-focused .world-icon { transform: scale(1.15); border-color: var(--accent); background: radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 52%), rgba(11,13,15,.98); box-shadow: 0 0 42px color-mix(in srgb, var(--accent) 34%, transparent), inset 0 0 18px rgba(255,255,255,.045); }
.orbit-anchor.is-focused .world-label b { color: var(--accent); font-size: 12px; }
.world-node:focus-visible { outline: 1px solid white; outline-offset: 8px; border-radius: 12px; }
.world-label { display: grid; text-shadow: 0 2px 14px #000; }
.world-label b { font-size: 11px; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; }
.world-label small { display: none; }
.world-status { position: absolute; top: 3px; left: calc(50% + 19px); width: 8px; height: 8px; border-radius: 50%; border: 2px solid #0a0c0e; background: #7e858c; }
.world-status.status-live { background: #60e6ad; box-shadow: 0 0 11px #60e6ad; }
.world-status.status-unknown { background: #ce9d60; }
.world-status.status-attention { background: #ef7d86; box-shadow: 0 0 11px rgba(239,125,134,.85); }
.area-quickstem { --accent: #43d6ff; }
.area-extreme { --accent: #b493ff; }
.area-producer { --accent: #ffab64; }
.area-bespoke { --accent: #79e6ba; }
.area-studios { --accent: #f3d58b; }
.area-master { --accent: #eb956b; }
.area-advertising { --accent: #ff6f91; }
.area-operator { --accent: #6cb8ff; }
.area-team { --accent: #c5a7ff; }

.workspace { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.workspace.is-open { visibility: visible; pointer-events: auto; }
.workspace-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .3s ease; backdrop-filter: blur(6px); }
.workspace-panel {
  position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(690px, calc(100vw - 24px));
  overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 5%, rgba(23,26,29,.98)), rgba(10,12,14,.99));
  box-shadow: -30px 0 90px rgba(0,0,0,.55); transform: translateX(104%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
}
.workspace-panel::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.workspace.is-open .workspace-backdrop { opacity: 1; }
.workspace.is-open .workspace-panel { transform: translateX(0); }
.workspace-header { display: grid; grid-template-columns: 46px 1fr auto auto; gap: 11px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); }
.workspace-header h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); text-transform: uppercase; letter-spacing: -.025em; line-height: .95; }
.workspace-header .eyebrow { display: none; }
.workspace-symbol { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: var(--accent, white); }
.workspace-symbol svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.close-button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; border-radius: 50%; font-size: 27px; line-height: 1; cursor: pointer; color: #aaa; }
.close-button:hover { color: white; border-color: rgba(255,255,255,.3); }
.workspace-add-button { padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); cursor: pointer; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.workspace-add-button:hover { border-color: var(--accent); }
.workspace-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.workspace-meta:has(> [hidden]:first-child):has(> [hidden]:last-child) { display: none; }
.area-links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.area-links[hidden] { display: none; }
.area-links a { padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.area-links a:hover, .area-links a:focus-visible { border-color: var(--accent); outline: none; }
.sales-card { margin-top: 6px; }
.sales-card[hidden] { display: none; }
.sales-card .section-heading span.is-warn { color: #d9a866; }
.sales-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.sales-tile { padding: 10px 11px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--accent) 6%, rgba(255,255,255,.02)); }
.sales-tile span { display: block; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.sales-tile strong { display: block; margin-top: 5px; font-size: 19px; font-variant-numeric: tabular-nums; }
.sales-tile small { display: block; margin-top: 2px; color: #7f878e; font-size: 9px; letter-spacing: .05em; }
.workspace-status { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: #9aa1a7; font-size: 8px; font-weight: 750; letter-spacing: .14em; }
.workspace-status[hidden] { display: none; }
.workspace-status i { width: 7px; height: 7px; border-radius: 50%; background: #ce9d60; }
.workspace-status.status-live { color: #8cd9b5; }
.workspace-status.status-live i { background: #60e6ad; box-shadow: 0 0 10px rgba(96,230,173,.7); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 10px 0 4px; }
.metrics[hidden] { display: none; }
.metric { padding: 10px 11px; min-height: 58px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--accent) 5%, rgba(255,255,255,.02)); }
.metric span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.metric strong { display: block; margin-top: 5px; font-size: 17px; }
.metric.unknown strong { font-size: 13px; color: #d1a464; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 8px; }
.section-heading h3 { margin: 0; font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.section-heading span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.section-heading a { color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-decoration: none; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.add-section[hidden] { display: none; }
.connections-card { margin-bottom: 16px; }
.connection-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.connection-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; min-height: 48px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.connection-row b { display: block; overflow: hidden; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.connection-row > span { padding: 5px 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; color: #9ea5ab; font-size: 8px; letter-spacing: .1em; white-space: nowrap; }
.connection-row.state-live, .connection-row.state-connected { border-color: rgba(96,230,173,.25); background: rgba(96,230,173,.055); }
.connection-row.state-stale, .connection-row.state-routed { border-color: rgba(224,180,117,.24); background: rgba(224,180,117,.05); }
.connection-row.state-blocked { border-color: rgba(227,138,138,.26); background: rgba(227,138,138,.055); }
.connection-row.state-missing, .connection-row.state-locked { border-color: rgba(188,162,226,.24); background: rgba(188,162,226,.05); }
.connection-row.state-live > span, .connection-row.state-connected > span { color: #83e4b8; border-color: rgba(96,230,173,.28); }
.connection-row.state-stale > span, .connection-row.state-routed > span { color: #e0b475; border-color: rgba(224,180,117,.25); }
.connection-row.state-blocked > span { color: #e38a8a; border-color: rgba(227,138,138,.28); }
.connection-row.state-missing > span, .connection-row.state-locked > span { color: #bca2e2; border-color: rgba(188,162,226,.25); }
.section-tile { --tile: var(--accent); display: grid; grid-template-columns: minmax(0,1fr) 42px; min-height: 50px; border: 1px solid color-mix(in srgb, var(--tile) 34%, transparent); border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--tile) 12%, rgba(255,255,255,.025)), rgba(255,255,255,.012)); overflow: hidden; }
.section-tile:hover, .section-tile:focus-within { border-color: var(--tile); background: color-mix(in srgb, var(--tile) 17%, rgba(255,255,255,.02)); }
.tile-open { display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 9px 4px 9px 11px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.tile-open:focus-visible, .tile-add:focus-visible { outline: 1px solid white; outline-offset: -3px; border-radius: 10px; }
.tile-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--tile); box-shadow: 0 0 12px color-mix(in srgb, var(--tile) 65%, transparent); }
.tile-open strong { font-size: 11px; line-height: 1.2; }
.tile-open em { min-width: 20px; padding: 2px 6px; border-radius: 999px; color: var(--tile); background: color-mix(in srgb, var(--tile) 16%, transparent); font-size: 10px; font-style: normal; font-weight: 750; text-align: center; }
.tile-add { border: 0; border-left: 1px solid color-mix(in srgb, var(--tile) 22%, transparent); background: none; color: var(--tile); font-size: 17px; cursor: pointer; }
.tile-add:hover { background: color-mix(in srgb, var(--tile) 14%, transparent); }
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; margin-top: 12px; }
.status-strip[hidden] { display: none; }
.strip-tile { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-left: 3px solid #8f969d; border-radius: 11px; color: inherit; text-align: left; background: rgba(255,255,255,.025); cursor: pointer; }
.strip-tile:hover, .strip-tile:focus-visible { border-color: color-mix(in srgb, var(--accent) 50%, transparent); outline: none; }
.strip-tile span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.strip-tile b { font-size: 16px; }
.strip-tile small { color: #8f969d; font-size: 10px; }
.strip-tile.tone-good { border-left-color: #60e6ad; }
.strip-tile.tone-warn { border-left-color: #f0ba6d; }
.strip-tile.tone-bad { border-left-color: #ef7d86; background: rgba(239,125,134,.05); }
.section-view { margin-top: 12px; }
.section-view[hidden] { display: none; }
.section-view-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-back { padding: 7px 10px 7px 6px; border: 0; background: none; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.section-back:hover, .section-back:focus-visible { color: white; outline: none; }
.section-add { padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .12em; cursor: pointer; }
.section-view-title { margin: 6px 0 12px; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.section-widget:empty { display: none; }
.section-widget { display: grid; gap: 10px; margin-bottom: 14px; }
#section-items:empty { display: none; }
.section-empty { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.widget-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: #b9c0c6; font-size: 12px; }
.widget-wait { margin: 0; color: var(--muted); font-size: 12px; }
.widget-alert { padding: 10px 12px; border: 1px solid rgba(239,125,134,.4); border-radius: 10px; color: #ffc9cd; background: rgba(239,125,134,.08); font-size: 12px; font-weight: 650; }
.widget-links { display: flex; flex-wrap: wrap; gap: 6px; }
.widget-links a { padding: 8px 11px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); font-size: 9px; font-weight: 750; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.widget-links a:hover { border-color: var(--accent); }
.state-pill { padding: 4px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #c8ced3; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.state-pill.tone-good { color: #8ee0b8; border-color: rgba(96,230,173,.4); background: rgba(96,230,173,.08); }
.state-pill.tone-warn { color: #f0c98a; border-color: rgba(240,186,109,.4); background: rgba(240,186,109,.08); }
.state-pill.tone-bad { color: #f5a3a9; border-color: rgba(239,125,134,.45); background: rgba(239,125,134,.09); }
.sales-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.sales-tile.tone-bad { border-color: rgba(239,125,134,.5); }
.sales-tile.tone-good strong { color: #9fe6c3; }
.sales-tile.tone-warn strong { color: #f0c98a; }
.cap-bar { display: block; height: 4px; margin: 6px 0 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.cap-bar b { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.band { margin-right: 4px; padding: 1px 5px; border-radius: 999px; font-style: normal; font-weight: 750; }
.band.tone-good { color: #8ee0b8; background: rgba(96,230,173,.1); }
.band.tone-accent { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.band.tone-warn { color: #f0c98a; background: rgba(240,186,109,.1); }
.band.tone-bad { color: #f5a3a9; background: rgba(239,125,134,.1); }
.funnel-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); color: #b9c0c6; font-size: 11px; }
.funnel-line b { color: var(--text); font-variant-numeric: tabular-nums; }
.funnel-line em { color: var(--accent); font-style: normal; font-weight: 700; }
.funnel-line i { color: #5f666c; font-style: normal; }
.palette-0 { --tile: #43d6ff; }
.palette-1 { --tile: #b493ff; }
.palette-2 { --tile: #ffab64; }
.palette-3 { --tile: #79e6ba; }
.palette-4 { --tile: #ff6f91; }
.palette-5 { --tile: #f3d58b; }
.files-card, .items-card { margin-top: 15px; }
.files-card[hidden], .items-card[hidden] { display: none; }
.file-list { display: grid; gap: 6px; }
.file-row { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; align-items: center; min-height: 48px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; background: rgba(255,255,255,.02); }
.file-row:hover, .file-row:focus-visible { border-color: color-mix(in srgb, var(--accent) 52%, transparent); background: color-mix(in srgb, var(--accent) 8%, rgba(255,255,255,.02)); outline: none; }
.file-row i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, rgba(255,255,255,.02)); font-size: 8px; font-style: normal; font-weight: 800; }
.file-row b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-row > span { color: #777f86; font-size: 8px; letter-spacing: .06em; white-space: nowrap; }
.file-drop { border-style: dashed; }
.item-list { display: grid; gap: 7px; }
.command-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-left: 3px solid #7f868d; border-radius: 10px; background: rgba(255,255,255,.02); }
.command-item.lane-problems { border-left-color: #ef7d86; background: rgba(239,125,134,.045); }
.command-item.lane-problems small { color: #e9a0a6; }
.command-item.lane-right-now { border-left-color: #43d6ff; background: rgba(67,214,255,.045); }
.command-item.lane-waiting { border-left-color: #f0ba6d; background: rgba(240,186,109,.035); }
.command-item.lane-robin { border-left-color: #c5a7ff; background: rgba(197,167,255,.04); }
.command-item.lane-running { border-left-color: #60e6ad; background: rgba(96,230,173,.035); }
.command-item b { display: block; font-size: 12px; line-height: 1.35; }
.command-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.item-actions { display: flex; align-items: center; gap: 8px; }
.item-actions > span { padding: 4px 6px; border: 1px solid rgba(255,255,255,.10); border-radius: 999px; color: #aab0b5; background: rgba(255,255,255,.025); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.item-complete { padding: 6px 8px; border: 1px solid rgba(107,221,170,.28); border-radius: 7px; color: #8ee0b8; background: rgba(83,189,139,.08); cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.item-complete:hover { border-color: rgba(107,221,170,.58); }
.item-link { padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 7px; color: var(--accent); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.item-link:hover { border-color: var(--accent); }
.item-complete:disabled { opacity: .45; cursor: wait; }
.item-feedback { grid-column: 1 / -1; min-height: 0; color: #cda66e; font-size: 10px; }
.item-feedback:empty { display: none; }
.items-overflow { display: grid; gap: 7px; }
.items-overflow summary { margin-top: 3px; padding: 9px; color: var(--accent); cursor: pointer; text-align: center; font-size: 9px; font-weight: 750; letter-spacing: .1em; list-style: none; }
.items-overflow summary::-webkit-details-marker { display: none; }
.items-overflow[open] summary { margin-bottom: 7px; }
.items-overflow .command-item + .command-item { margin-top: 7px; }
.operator-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.operator-lanes[hidden] { display: none; }
.lane { --lane: #8f969d; padding: 0; border: 1px solid color-mix(in srgb, var(--lane) 26%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--lane) 5%, rgba(255,255,255,.02)); }
.lane-right-now { --lane: #43d6ff; }
.lane-running { --lane: #60e6ad; }
.lane-waiting { --lane: #f0ba6d; }
.lane-problems { --lane: #ef7d86; }
.lane-later { --lane: #8f969d; }
.lane-robin { --lane: #c5a7ff; }
.lane summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 10px 12px; color: var(--lane); cursor: pointer; list-style: none; }
.lane summary::-webkit-details-marker { display: none; }
.lane summary span { color: #dfe3e6; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.lane summary strong { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: color-mix(in srgb, var(--lane) 14%, transparent); font-size: 11px; }
.lane ul { margin: 0; padding: 0 12px 12px; list-style: none; display: grid; gap: 8px; }
.lane li { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; line-height: 1.35; }
.lane li em { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-style: normal; }
.lane li small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.lane li.lane-more { justify-content: center; color: var(--lane); font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.lane-empty { color: #686e74; font-size: 12px; }
.activity-card, .chat-card, .audit-card { margin-top: 15px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); }
.activity-chart { height: 112px; display: flex; align-items: end; gap: 10px; }
.activity-day { flex: 1; min-width: 0; display: grid; align-items: end; gap: 7px; height: 100%; text-align: center; color: var(--muted); font-size: 9px; }
.activity-bar { min-height: 3px; border-radius: 4px 4px 1px 1px; background: linear-gradient(#6bd3ff, #306e8e); box-shadow: 0 0 14px rgba(75,190,237,.15); }
.chat-lock { display: inline-flex; align-items: center; gap: 7px; color: #bf9761; font-size: 10px; letter-spacing: .08em; }
.chat-lock span { border: 1px solid rgba(210,161,92,.35); border-radius: 5px; padding: 3px 5px; }
.chat-card h3 { margin: 14px 0 6px; }
.chat-card h3 { font-size: 13px; }
.chat-card textarea { width: 100%; min-height: 94px; resize: vertical; padding: 13px; color: white; border: 1px solid var(--line); border-radius: 12px; background: #090b0d; outline: none; }
.chat-card textarea:focus { border-color: #5e9fc2; box-shadow: 0 0 0 3px rgba(87,170,212,.10); }
.chat-card form button, .login-form button { margin-top: 9px; border: 0; border-radius: 10px; padding: 11px 16px; color: #071015; background: #e9f8ff; font-weight: 700; cursor: pointer; }
#command-result { min-height: 18px; margin-top: 10px; color: #c79b60; font-size: 12px; }
#audit-list { display: grid; gap: 7px; }
.audit-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); font-size: 11px; }
.audit-row span { color: var(--muted); }
.operator-details { margin-top: 15px; border-top: 1px solid var(--line); }
.operator-details[hidden] { display: none; }
.operator-details summary { width: fit-content; margin-top: 12px; color: #777f86; cursor: pointer; font-size: 9px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(410px, 100%); padding: 44px; border: 1px solid var(--line); border-radius: 24px; background: rgba(13,15,17,.9); box-shadow: 0 30px 90px #000; }
.login-mark { width: 92px; height: 48px; object-fit: contain; }
.login-card h1 { margin: 0; font-size: 48px; letter-spacing: -.04em; }
.login-copy { color: var(--muted); margin: 8px 0 26px; }
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 7px; color: #adb3b8; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.login-form input { width: 100%; padding: 12px; color: white; background: #080a0b; border: 1px solid var(--line); border-radius: 10px; }
.form-error { margin-bottom: 15px; padding: 10px; color: #ffd2d2; background: rgba(192,63,63,.15); border: 1px solid rgba(231,94,94,.25); border-radius: 9px; font-size: 12px; }

.capture { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.capture.is-open { visibility: visible; pointer-events: auto; }
.capture-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); opacity: 0; backdrop-filter: blur(10px); transition: opacity .22s ease; }
.capture.is-open .capture-backdrop { opacity: 1; }
.capture-card { position: absolute; top: 50%; left: 50%; width: min(600px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow-y: auto; padding: 28px; border: 1px solid rgba(100,207,250,.22); border-radius: 24px; background: linear-gradient(145deg, rgba(22,25,28,.99), rgba(8,10,12,.99)); box-shadow: 0 34px 120px rgba(0,0,0,.72); transform: translate(-50%, calc(-50% + 18px)) scale(.98); opacity: 0; transition: transform .24s ease, opacity .24s ease; }
.capture.is-open .capture-card { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.capture-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.capture-header h2 { margin: 0; font-size: 38px; line-height: 1; text-transform: uppercase; letter-spacing: -.025em; }
.capture-copy { margin: 16px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.capture form { display: grid; gap: 14px; }
.capture form > label, .capture-fields-two label { display: grid; gap: 7px; color: #abb2b8; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.capture label small { color: #6f777e; font-size: 8px; }
.capture input[type="text"], .capture input:not([type]), .capture input[type="date"], .capture textarea, .capture select { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; color: white; background: #080a0b; outline: none; text-transform: none; letter-spacing: 0; color-scheme: dark; }
.capture textarea { min-height: 82px; resize: vertical; }
.capture input:focus, .capture textarea:focus, .capture select:focus { border-color: #5eabc9; box-shadow: 0 0 0 3px rgba(87,170,212,.10); }
.capture-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capture-kind { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.capture-kind label { cursor: pointer; }
.capture-kind input { position: absolute; opacity: 0; pointer-events: none; }
.capture-kind span { display: block; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #8f979e; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.capture-kind input:checked + span { color: #dff7ff; border-color: rgba(100,207,250,.55); background: rgba(70,183,229,.12); }
.capture-owner { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.capture-owner[hidden] { display: none; }
.capture-owner label { cursor: pointer; }
.capture-owner input { position: absolute; opacity: 0; pointer-events: none; }
.capture-owner span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 999px; color: #8f979e; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.capture-owner small { padding: 2px 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #8f969d; font-size: 7px; letter-spacing: .1em; }
.owner-john input:checked + span { color: #dff7ff; border-color: rgba(100,207,250,.6); background: rgba(70,183,229,.13); }
.owner-operator input:checked + span { color: #d7fbe9; border-color: rgba(96,230,173,.6); background: rgba(96,230,173,.11); }
.owner-robin input:checked + span { color: #efe6ff; border-color: rgba(197,167,255,.65); background: rgba(197,167,255,.13); }
.capture-owner input:focus-visible + span { outline: 1px solid white; outline-offset: 2px; }
.capture-owner input:disabled + span { opacity: .45; cursor: not-allowed; }
.capture-submit { padding: 13px 18px; border: 0; border-radius: 11px; color: #061015; background: #e8f8ff; font-weight: 800; cursor: pointer; }
.capture-submit:disabled { opacity: .5; cursor: wait; }
.capture-result { min-height: 18px; margin-top: 13px; color: #d7b373; font-size: 12px; line-height: 1.45; }
.capture-result.success { color: #79ddb0; }
.capture-shortcut { margin: 16px 0 0; color: #636b72; text-align: center; font-size: 9px; letter-spacing: .06em; }
kbd { display: inline-block; min-width: 18px; margin: 0 2px; padding: 3px 5px; border: 1px solid var(--line); border-bottom-color: rgba(255,255,255,.22); border-radius: 5px; color: #9ca4aa; background: rgba(255,255,255,.03); }

@keyframes pulse { 50% { opacity: .35; } }

@media (max-height: 760px) and (min-width: 761px) {
  .universe { padding-top: 18px; padding-bottom: 18px; }
}

@media (max-width: 1240px) {
  .universe { display: block; padding: 28px 30px 34px; }
  .universe-copy { text-align: center; max-width: none; margin-bottom: 4px; }
  .universe-copy h1 { font-size: clamp(38px, 5.5vw, 58px); }
  .orbit-stage { width: min(760px, 92vw); height: min(620px, calc(100svh - 260px)); min-height: 520px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .ask-bar { margin: 0 16px; }
}

@media (max-width: 760px) {
  .app-header { height: auto; min-height: 72px; flex-wrap: wrap; padding: 12px 16px; row-gap: 10px; }
  .ask-bar { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .ask-bar input { font-size: 16px; }
  .sales-tile strong { font-size: 16px; }
  .sales-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand img { width: 43px; }
  .brand b { font-size: 11px; }
  .mode-badge { display: none; }
  .quick-add-button { padding: 10px; font-size: 0; }
  .quick-add-button span { font-size: 18px; }
  .data-state { font-size: 0; padding: 10px; }
  .command-shell { min-height: calc(100svh - 72px); }
  .universe { min-height: calc(100svh - 72px); padding: 0 8px 20px; }
  .universe-copy {
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% - 32px);
    transform: translateX(-50%);
    pointer-events: none;
  }
  .universe-copy .eyebrow { display: none; }
  .universe-copy h1 { font-size: 26px; letter-spacing: .035em; white-space: nowrap; }
  .universe-copy > p:last-child { margin: 7px 0 0; font-size: 11px; }
  .orbit-stage { width: 100%; height: calc(100svh - 124px); min-height: 600px; margin: 0; }
  .center-core { width: 120px; }
  .center-core img { width: 53px; margin-bottom: 7px; }
  .center-core strong { font-size: 10px; }
  .center-core > span { font-size: 7px; letter-spacing: .34em; padding-left: .34em; }
  .core-halo { inset: -15px; }
  .world-node { width: 106px; }
  .world-icon { width: 46px; height: 46px; margin-bottom: 8px; }
  .world-icon svg { width: 21px; height: 21px; }
  .world-label b { font-size: 9px; line-height: 1.12; }
  .world-label small { display: none; }
  .world-status { top: 0; right: auto; left: calc(50% + 13px); }
  .workspace-panel { inset: 0; width: 100%; border-radius: 0; padding: 22px 16px 36px; }
  .workspace-header { grid-template-columns: 48px 1fr auto; }
  .workspace-add-button { grid-column: 2; grid-row: 2; justify-self: start; }
  .close-button { grid-column: 3; grid-row: 1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .operator-lanes { grid-template-columns: 1fr; }
  .lane:first-child { grid-column: auto; }
  .capture-card { inset: 0; width: 100%; max-height: 100vh; border-radius: 0; transform: translateY(18px); }
  .capture.is-open .capture-card { transform: translateY(0); }
  .capture-fields-two { grid-template-columns: 1fr; }
}

@media (min-width: 481px) and (max-width: 760px) {
  .quick-add-button { padding: 9px 13px; font-size: 10px; }
  .quick-add-button span { font-size: 15px; }
  .data-state { padding: 9px 12px; font-size: 10px; }
  .center-core { width: 154px; }
  .center-core img { width: 67px; margin-bottom: 8px; }
  .center-core strong { font-size: 12px; }
  .center-core > span { font-size: 8px; letter-spacing: .40em; padding-left: .40em; }
  .core-halo { inset: -20px; }
  .world-node { width: 130px; }
  .world-icon { width: 58px; height: 58px; margin-bottom: 9px; }
  .world-icon svg { width: 25px; height: 25px; }
  .world-label b { font-size: 10px; }
  .world-status { top: 2px; left: calc(50% + 17px); }
}

@media (max-width: 430px) {
  .universe-copy h1 { font-size: 24px; }
  .universe-copy > p:last-child { margin-top: 6px; }
  .orbit-stage { height: calc(100svh - 124px); min-height: 540px; }
  .center-core { width: 104px; }
  .center-core img { width: 46px; }
  .world-node { width: 88px; }
  .world-icon { width: 41px; height: 41px; margin-bottom: 6px; }
  .world-icon svg { width: 19px; height: 19px; }
  .world-label b { font-size: 8px; }
  .world-status { left: calc(50% + 11px); }
}

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