:root {
  --navy: #0B1230;
  --navy-2: #1A2350;
  --orange: #FFB020;
  --lane: #FFB020;
  --teal: #2EE6C5;
  --sky: #22D3EE;
  --violet: #8B5CF6;
  --red: #FF4D6D;
  --bg: #060A1C;
  --paper: rgba(17, 25, 58, .62);
  --ink: #E8EDFF;
  --muted: #8C98C4;
  --line: rgba(120, 140, 220, .18);
  --chip: rgba(70, 90, 170, .16);
  --bubble-in: rgba(30, 42, 88, .9);
  --bubble-bot: rgba(34, 211, 238, .14);
  --bubble-me: rgba(139, 92, 246, .2);
  --shadow: 0 0 0 1px rgba(120,140,220,.06), 0 20px 40px -24px rgba(0, 0, 0, .8);
  --glow: 0 0 24px rgba(34, 211, 238, .25);
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --display: 'Chakra Petch', 'Sora', system-ui, sans-serif;
  --body: 'Sora', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
body { background:
  radial-gradient(900px 500px at 85% -10%, rgba(139,92,246,.22), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, rgba(34,211,238,.16), transparent 60%),
  linear-gradient(rgba(120,140,220,.05) 1px, transparent 1px) 0 0/40px 40px,
  linear-gradient(90deg, rgba(120,140,220,.05) 1px, transparent 1px) 0 0/40px 40px,
  var(--bg); background-attachment: fixed; }
.panel, .need-item, .list, .thread, .card, .car-card, .col, .wa-pill, .btn, .input, .empty, dialog { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100dvh; }
.rail { background: var(--navy); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--orange); display: grid; place-items: center; font: 800 14px var(--display); color: var(--navy); }
.brand b { font: 700 17px var(--display); display: block; }
.brand small { opacity: .65; font-size: 12px; }
.nav-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: #C9D3EA; padding: 11px 12px; border-radius: 12px; cursor: pointer; text-align: left; font-weight: 600; position: relative; }
.nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-btn[aria-current="page"]::before { content: ''; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--lane); }
.nav-btn .ico { width: 22px; text-align: center; font-size: 17px; }
.nav-btn .badge { margin-left: auto; background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.rail-foot { margin-top: auto; padding: 10px; font-size: 12.5px; color: #C9D3EA; }

main { min-width: 0; padding: 26px clamp(16px, 3vw, 40px) 110px; max-width: 1400px; width: 100%; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.wa-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 13px; cursor: pointer; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: #20C26A; box-shadow: 0 0 0 4px rgba(32,194,106,.18); }
.dot.warn { background: var(--lane); }
.dot.off { background: var(--red); }

/* mobile tab bar */
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  main { padding: 16px 16px 104px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--navy); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { background: none; border: 0; color: #AEB9D4; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 10px; position: relative; }
  .tabbar button .ico { font-size: 20px; }
  .tabbar button[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }
  .tabbar .badge { position: absolute; top: 2px; right: calc(50% - 22px); background: var(--orange); color: var(--navy); font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 99px; }
}

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); padding: 9px 14px; border-radius: 11px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.go { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 9px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 13.5px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 11px; padding: 10px 12px; }
textarea.input { resize: vertical; min-height: 90px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- login ---------- */
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(1200px 500px at 50% 120%, rgba(255,122,0,.25), transparent 60%), var(--navy); }
.gate-card { width: min(420px, 100%); background: var(--paper); border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); }
.gate-card h1 { font-size: 30px; margin: 18px 0 6px; }
.road { height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 22px, transparent 22px 36px), var(--navy-2); }

/* ---------- today ---------- */
.hello h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
.hello p { margin: 6px 0 0; color: var(--muted); font-size: 16px; max-width: 60ch; }

.highway { margin: 26px 0 28px; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 20px 20px 16px; position: relative; overflow: hidden; }
.highway-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.highway-head h2 { font-size: 19px; }
.highway-head span { color: #AEB9D4; font-size: 13.5px; }
.lanes { display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 0; overflow-x: auto; scrollbar-width: none; }
.lane { border: 0; background: none; color: inherit; text-align: left; padding: 12px 12px 16px; cursor: pointer; position: relative; border-left: 1px dashed rgba(255,255,255,.18); }
.lane:first-child { border-left: 0; }
.lane:hover { background: rgba(255,255,255,.06); }
.lane b { font: 800 34px/1 var(--display); display: block; font-variant-numeric: tabular-nums; }
.lane small { color: #C9D3EA; font-weight: 600; font-size: 12.5px; display: block; margin-top: 6px; }
.lane.hot b { color: var(--lane); }
.lane.goal b { color: #5BE3C9; }
.asphalt { height: 10px; margin-top: 4px; border-radius: 10px; background: repeating-linear-gradient(90deg, var(--lane) 0 26px, transparent 26px 44px) center/100% 2px no-repeat, #0B142B; position: relative; }
.car { position: absolute; top: -12px; font-size: 22px; transition: left 1.2s cubic-bezier(.2,.8,.2,1); transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) { .car { transition: none; } }

.today-grid > * { min-width: 0; }
.today-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1100px) { .today-grid { grid-template-columns: 1fr; } }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 20px; }

.need { display: grid; gap: 10px; }
.need-item { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; box-shadow: var(--shadow); }
.need-item.alta { border-left: 5px solid var(--orange); }
.need-item.media { border-left: 5px solid var(--lane); }
.need-item.baixa { border-left: 5px solid var(--line); }
.need-item .emoji { font-size: 26px; grid-row: span 3; line-height: 1.2; }
.need-item h3 { font: 700 16px var(--body); }
.need-item p { margin: 0; color: var(--muted); }
.need-item .row { margin-top: 8px; }
.empty { border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stats div b { font: 800 26px var(--display); display: block; font-variant-numeric: tabular-nums; }
.mini-stats div small { color: var(--muted); font-weight: 600; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { appearance: none; width: 52px; height: 30px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; border: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch:checked { background: #20C26A; }
.switch:checked::after { transform: translateX(22px); }
.activity { display: grid; gap: 2px; margin-top: 8px; }
.activity button { all: unset; cursor: pointer; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 9px 6px; border-radius: 10px; align-items: center; }
.activity button:hover { background: var(--chip); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--display); color: #fff; background: var(--navy-2); flex: none; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- pipeline ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { background: var(--chip); border-radius: 18px; padding: 12px; min-height: 200px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.col.drop { outline: 2px dashed var(--orange); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; font-weight: 700; }
.col-head span { background: var(--paper); border-radius: 99px; padding: 0 9px; font-size: 13px; }
.card { background: var(--paper); border-radius: 14px; padding: 12px; border: 1px solid var(--line); cursor: pointer; display: grid; gap: 6px; text-align: left; }
.card:hover { border-color: var(--muted); }
.card.needs { box-shadow: inset 4px 0 0 var(--orange); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-top b { font-size: 15px; }
.card .car-want { font-size: 13.5px; color: var(--muted); }
.docs-dots { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); }
.docs-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.docs-dots i.ok { background: var(--teal); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--chip); }
.tag.bot { background: #DDF5EF; color: #0B6E61; }
.tag.paused { background: #FFF1D6; color: #8A5A00; }
.tag.off { background: var(--chip); color: var(--muted); }

/* ---------- chats ---------- */
.chats { display: grid; grid-template-columns: 330px 1fr; gap: 18px; height: calc(100dvh - 120px); }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.list-head { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 6px; overflow-x: auto; }
.filters button { border: 1px solid var(--line); background: none; border-radius: 99px; padding: 4px 11px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filters button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.list-body { overflow-y: auto; flex: 1; }
.li { all: unset; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; padding: 11px 12px; cursor: pointer; border-bottom: 1px solid var(--line); align-items: center; }
.li:hover, .li[aria-current="true"] { background: var(--chip); }
.li .avatar { width: 40px; height: 40px; }
.li time { font-size: 12px; color: var(--muted); }
.conv { display: grid; grid-template-columns: 1fr 300px; gap: 18px; min-height: 0; }
.thread { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.thread-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.mode { display: inline-grid; grid-auto-flow: column; background: var(--chip); border-radius: 12px; padding: 3px; }
.mode button { border: 0; background: none; padding: 6px 11px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer; }
.mode button[aria-pressed="true"] { background: var(--paper); box-shadow: var(--shadow); }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background:
  radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0/22px 22px; }
.bubble { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px; background: var(--bubble-in); border: 1px solid var(--line); white-space: pre-wrap; word-wrap: break-word; }
.bubble.out { align-self: flex-end; background: var(--bubble-me); border-color: transparent; }
.bubble.bot { background: var(--bubble-bot); }
.bubble small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; text-align: right; }
.day-sep { align-self: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 2px 10px; border-radius: 99px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.composer textarea { min-height: 44px; max-height: 140px; }
.side { display: grid; gap: 14px; align-content: start; overflow-y: auto; }
.side .panel { padding: 14px; }
.side h3 { font-size: 15.5px; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.checks { display: grid; gap: 6px; }
.checks label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.progress { height: 8px; background: var(--chip); border-radius: 8px; overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #5BE3C9); transition: width .5s; }
.back { display: none; }
@media (max-width: 1180px) { .conv { grid-template-columns: 1fr; } .side { order: 2; } }
@media (max-width: 860px) {
  .chats { grid-template-columns: 1fr; height: auto; }
  .chats.open .list { display: none; }
  .chats:not(.open) .conv { display: none; }
  .thread { height: calc(100dvh - 160px); }
  .back { display: inline-flex; }
}

/* ---------- inventory ---------- */
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.car-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; }
.car-card:hover { border-color: var(--muted); }
.car-card .photo { aspect-ratio: 4/3; background: var(--chip) center/cover; display: grid; place-items: center; font-size: 40px; position: relative; }
.car-card .photo .tag { position: absolute; top: 10px; left: 10px; background: var(--paper); }
.car-card .body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.car-card .price { font: 800 22px var(--display); color: var(--orange); font-variant-numeric: tabular-nums; }
.car-card.sold { opacity: .55; }

/* ---------- modal ---------- */
dialog { border: 0; border-radius: 22px; padding: 0; width: min(640px, calc(100% - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(14, 21, 39, .55); backdrop-filter: blur(3px); }
.modal-head { padding: 18px 20px 6px; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 10px 20px 20px; display: grid; gap: 14px; max-height: 72dvh; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs figure { margin: 0; width: 92px; height: 70px; border-radius: 10px; background: center/cover; position: relative; }
.thumbs figure button { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.65); color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-size: 12px; }

/* ---------- settings ---------- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.settings .panel { display: grid; gap: 14px; }
.qr { width: 260px; max-width: 100%; aspect-ratio: 1; border-radius: 16px; background: #fff center/contain no-repeat; border: 1px solid var(--line); }
.logs { font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--chip); border-radius: 12px; padding: 12px; max-height: 260px; overflow: auto; white-space: pre-wrap; }

/* ---------- toast / confetti ---------- */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; width: 100%; height: 100%; }
.celebrate { position: fixed; inset: 0; display: grid; place-items: center; z-index: 85; pointer-events: none; }
.celebrate div { background: var(--navy); color: #fff; border-radius: 24px; padding: 22px 28px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.celebrate b { font: 800 26px var(--display); display: block; color: var(--lane); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .celebrate div { animation: none; } }


/* =================== FUTURISTA: centro de comando =================== */
h1, h2, h3 { letter-spacing: .01em; }
.rail { background: rgba(8, 13, 36, .78); border-right: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand-mark { background: linear-gradient(135deg, var(--sky), var(--violet)); color: #fff; box-shadow: var(--glow); font-family: var(--display); }
.nav-btn { color: var(--muted); }
.nav-btn[aria-current="page"] { background: linear-gradient(90deg, rgba(34,211,238,.16), rgba(139,92,246,.06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); }
.nav-btn[aria-current="page"]::before { background: var(--sky); box-shadow: 0 0 12px var(--sky); }
.nav-btn .badge, .tabbar .badge { background: var(--orange); color: #1A1300; }
@media (max-width: 860px) { .tabbar { background: rgba(8,13,36,.9); backdrop-filter: blur(16px); border-top: 1px solid var(--line); } .tabbar button[aria-current="page"] { color: var(--sky); background: rgba(34,211,238,.1); } }
.btn { background: rgba(30, 42, 88, .55); }
.btn:hover { border-color: rgba(34,211,238,.5); box-shadow: 0 0 0 3px rgba(34,211,238,.08); }
.btn.primary { background: linear-gradient(135deg, #1B9FD8, var(--violet)); border-color: transparent; color: #fff; box-shadow: 0 6px 24px -8px rgba(139,92,246,.7); }
.btn.go { background: linear-gradient(135deg, var(--sky), #2E8BFF); border-color: transparent; color: #04122A; box-shadow: 0 6px 24px -8px rgba(34,211,238,.8); }
.btn.ghost { background: transparent; }
.input, select.input, textarea.input { background: rgba(8, 13, 36, .6); }
select.input option { background: #0E1638; }
.tag.bot { background: rgba(46,230,197,.14); color: #6FF5DB; box-shadow: inset 0 0 0 1px rgba(46,230,197,.3); }
.tag.paused { background: rgba(255,176,32,.14); color: #FFCF70; box-shadow: inset 0 0 0 1px rgba(255,176,32,.3); }
.tag.off { color: var(--muted); }
.panel, .need-item, .card, .car-card, .list, .thread { border-color: var(--line); }
.need-item.alta { border-left-color: var(--red); box-shadow: -6px 0 24px -12px var(--red), var(--shadow); }
.need-item.media { border-left-color: var(--orange); }
.mini-stats div b, .lane b, .car-card .price { font-family: var(--display); }
.car-card .price { color: var(--sky); text-shadow: 0 0 18px rgba(34,211,238,.4); }
.dot.on { background: var(--teal); box-shadow: 0 0 0 4px rgba(46,230,197,.18), 0 0 12px var(--teal); }
.switch:checked { background: linear-gradient(90deg, var(--teal), var(--sky)); box-shadow: 0 0 16px rgba(46,230,197,.5); }
.progress i { background: linear-gradient(90deg, var(--sky), var(--teal)); box-shadow: 0 0 12px var(--teal); }
.docs-dots i.ok { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.filters button[aria-pressed="true"] { background: rgba(34,211,238,.16); color: var(--sky); border-color: rgba(34,211,238,.5); }
.mode button[aria-pressed="true"] { background: rgba(34,211,238,.18); color: #fff; box-shadow: inset 0 0 0 1px rgba(34,211,238,.4); }
.msgs { background: radial-gradient(circle at 1px 1px, rgba(120,140,220,.14) 1px, transparent 0) 0 0/22px 22px; }
.bubble { border-color: var(--line); }
.bubble.bot { border-color: rgba(34,211,238,.3); }
.bubble.out:not(.bot) { border: 1px solid rgba(139,92,246,.35); }
dialog { background: #0C1434; border: 1px solid var(--line); }
.gate { background: radial-gradient(800px 400px at 50% 110%, rgba(34,211,238,.25), transparent 60%), radial-gradient(700px 400px at 50% -10%, rgba(139,92,246,.3), transparent 60%), var(--bg); }
.gate-card { background: rgba(14, 22, 56, .8); border: 1px solid var(--line); backdrop-filter: blur(16px); }
.road { background: linear-gradient(90deg, var(--sky), var(--violet)); box-shadow: 0 0 18px rgba(34,211,238,.6); height: 3px; }
#toast { background: rgba(14,22,56,.95); border: 1px solid rgba(34,211,238,.4); box-shadow: var(--glow); }
.celebrate div { background: rgba(14,22,56,.95); border: 1px solid rgba(34,211,238,.5); box-shadow: 0 0 60px rgba(34,211,238,.35); }
.celebrate b { color: var(--sky); }
.logs { background: rgba(8,13,36,.7); }
.hello h1 { font-family: var(--display); font-weight: 700; text-transform: none; }

/* ---- command center ---- */
.cmd { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 18px; margin: 22px 0 26px; }
@media (max-width: 1100px) { .cmd { grid-template-columns: 1fr; } }
.orbit-wrap { position: relative; border-radius: 22px; border: 1px solid var(--line); background:
  radial-gradient(circle at 50% 50%, rgba(34,211,238,.10), transparent 55%), rgba(8, 13, 36, .55); overflow: hidden; min-height: 420px; }
.orbit-wrap canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.orbit-hud { position: absolute; left: 16px; top: 14px; right: 16px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.orbit-hud h2 { font-size: 17px; }
.orbit-hud span { color: var(--muted); font-size: 12.5px; }
.orbit-legend { position: absolute; left: 16px; bottom: 12px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); pointer-events: none; }
.orbit-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.orbit-tip { position: absolute; pointer-events: none; background: rgba(8,13,36,.92); border: 1px solid rgba(34,211,238,.5); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; transform: translate(-50%, -130%); white-space: nowrap; box-shadow: var(--glow); }
.feed { display: grid; gap: 0; max-height: 420px; overflow: hidden; position: relative; }
.feed::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, rgba(12,18,46,.95)); pointer-events: none; }
.feed-item { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: start; padding: 9px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; }
.feed-item:hover { background: rgba(34,211,238,.05); }
.feed-item .k { font-size: 16px; }
.feed-item time { font-size: 11.5px; color: var(--muted); font-family: var(--display); }
.feed-item.fresh { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(34,211,238,.18); } to { background: transparent; } }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: rgba(17,25,58,.55); position: relative; overflow: hidden; }
.kpi b { font: 700 30px/1 var(--display); display: block; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-weight: 600; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c, var(--sky)); box-shadow: 0 0 14px var(--c, var(--sky)); }
@media (prefers-reduced-motion: reduce) { .feed-item.fresh { animation: none; } }

.fu-box { border: 1px solid rgba(34,211,238,.25); border-radius: 14px; padding: 12px; background: rgba(34,211,238,.05); }
.fu-run { display: grid; gap: 4px; }
