:root {
  --void: #06070b;
  --hull: #0c0f16;
  --plate: #121620;
  --edge: rgba(255, 255, 255, .07);
  --edge-hi: rgba(255, 255, 255, .14);
  --ink: #e9ecf5;
  --dim: #8b91a7;
  --mute: #5b6178;
  --ember: #ff3b4a;
  --ember-deep: #b3122a;
  --flare: #ffb13b;
  --pulse: #38e1ff;
  --venom: #3dffa2;
  --radius: 10px;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Russo One", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(255, 59, 74, .18), transparent 60%),
    radial-gradient(800px 600px at 110% 110%, rgba(56, 225, 255, .12), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--void);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  opacity: .35;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.dim { color: var(--dim); }
.num { text-align: right; }

svg.glyph {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emblem { display: block; filter: drop-shadow(0 0 12px rgba(255, 59, 74, .35)); }
.emblem .em-plate { fill: #10131c; stroke: rgba(255, 255, 255, .16); stroke-width: 2; }
.emblem .em-ember { fill: none; stroke: var(--ember); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.emblem .em-thin { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; stroke-linecap: round; }
.emblem .em-steel { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.emblem .em-dot { fill: var(--venom); }
.emblem .em-flare-fill { fill: var(--flare); }
.emblem .em-ember-fill { fill: var(--ember); }
.emblem .em-dim-fill { fill: rgba(233, 236, 245, .3); }
.emblem .em-mark { font-family: var(--display); font-size: 20px; fill: var(--flare); text-anchor: middle; }
.emblem .em-small { font-size: 16px; }
.emblem .em-sub { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--ember); text-anchor: middle; letter-spacing: 1px; }
.emblem .em-screen { fill: #07110c; stroke: var(--venom); stroke-width: 1.5; }
.emblem .em-digits { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: var(--venom); text-anchor: middle; }
.emblem .em-bars { stroke: var(--ink); stroke-width: 1.6; }
.emblem .em-blade { fill: #dfe4ef; stroke: rgba(0, 0, 0, .45); stroke-width: 1; }
.emblem .em-guard { fill: none; stroke: var(--flare); stroke-width: 5; stroke-linecap: round; }
.emblem .em-grip { fill: none; stroke: var(--ember); stroke-width: 8; stroke-linecap: round; }

.bunker { display: grid; grid-template-columns: 272px 1fr; min-height: 100vh; }
.radar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(12, 15, 22, .92), rgba(8, 10, 15, .96));
  border-right: 1px solid var(--edge);
  backdrop-filter: blur(10px);
}
.radar-brand { display: flex; align-items: center; gap: 12px; }
.radar-brand .emblem { width: 54px; height: 54px; }
.radar-title b { display: block; font: 15px/1.15 var(--display); letter-spacing: .02em; }
.radar-title small { font: 600 10.5px/1 var(--mono); letter-spacing: .32em; color: var(--ember); }
.radar-nav { display: flex; flex-direction: column; gap: 4px; }
.radar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--dim);
  font-weight: 500;
  transition: .2s;
}
.radar-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.radar-nav a.active { color: var(--ink); background: linear-gradient(90deg, rgba(255, 59, 74, .18), rgba(255, 59, 74, .02)); }
.radar-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: var(--ember);
  box-shadow: 0 0 12px var(--ember);
}
.radar-nav a.active .glyph { color: var(--ember); }

.depot-meter { margin-top: auto; padding: 14px; border: 1px solid var(--edge); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.depot-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.depot-head b { font: 600 11.5px var(--mono); color: var(--ink); }
.depot-bar { display: block; width: 100%; height: 6px; }
.depot-track { fill: rgba(255, 255, 255, .07); }
.depot-fill { fill: var(--pulse); }
.depot-fill.hot { fill: var(--ember); }
.depot-meter small { display: block; margin-top: 8px; font: 11px var(--mono); color: var(--mute); }

.operator { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--edge); }
.operator form { margin: 0; }
.operator-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  font: 16px var(--display);
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.operator-name { flex: 1; min-width: 0; }
.operator-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rank-owner { color: var(--flare); }
.rank-manager { color: var(--ember); }
.rank-reader { color: var(--pulse); }

.deck { padding: 26px 32px 48px; min-width: 0; }
.hud-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.trail { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font: 500 13px var(--mono); }
.trail a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--edge);
  color: var(--dim);
  word-break: break-all;
}
.trail a:hover { color: var(--ink); }
.trail a:last-child { color: var(--ink); border-color: rgba(255, 59, 74, .45); }
.trail i { color: var(--mute); font-style: normal; }
.scope {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 40px;
  min-width: 260px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: var(--hull);
  color: var(--dim);
}
.scope:focus-within { border-color: var(--pulse); box-shadow: 0 0 0 3px rgba(56, 225, 255, .12); }
.scope input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; }

.dossier {
  position: relative;
  padding: 22px;
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(18, 22, 32, .9), rgba(12, 15, 22, .9));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
}
.dossier::before, .dossier::after { content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; }
.dossier::before { top: -1px; left: -1px; border-top: 2px solid var(--ember); border-left: 2px solid var(--ember); border-top-left-radius: var(--radius); }
.dossier::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--pulse); border-right: 2px solid var(--pulse); border-bottom-right-radius: var(--radius); }
.dossier.narrow { max-width: 520px; }
.dossier-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.dossier-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 18px var(--display); letter-spacing: .02em; word-break: break-all; }
.dossier-head h2 .glyph { width: 22px; height: 22px; color: var(--ember); }
.dossier-note { margin: -6px 0 18px; color: var(--dim); max-width: 760px; }
.slot-count { font: 600 12px var(--mono); color: var(--dim); }
.deck-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.deck-actions form { margin: 0; }
.deck-foot { margin-top: 20px; }
.table-scroll { overflow-x: auto; }

.clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font: 600 13px var(--sans);
  background: rgba(255, 255, 255, .06);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: .2s;
  white-space: nowrap;
}
.clip-btn:hover { filter: brightness(1.2); }
.clip-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.clip-btn.ember { background: linear-gradient(135deg, var(--ember), var(--ember-deep)); }
.clip-btn.pulse { background: linear-gradient(135deg, #1fb5d6, #1a6fd1); }
.clip-btn.ghost { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.clip-btn.danger { background: rgba(255, 59, 74, .14); color: #ff8c96; }
.clip-btn.danger:hover { background: var(--ember); color: #fff; }
.clip-btn.wide { width: 100%; height: 46px; font-size: 14px; }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  color: var(--dim);
  cursor: pointer;
  transition: .15s;
}
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .06); border-color: var(--edge); }
.icon-btn.danger:hover { color: var(--ember); border-color: rgba(255, 59, 74, .4); background: rgba(255, 59, 74, .08); }

.snapshot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.snapshot-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  min-height: 136px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
  transition: .2s;
}
a.snapshot-tile:hover { border-color: rgba(255, 59, 74, .5); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 59, 74, .2); }
.snapshot-tile b { font: 20px var(--display); }
.snapshot-tile small { color: var(--dim); }
.snapshot-slot { font: 700 11px var(--mono); letter-spacing: .14em; color: var(--mute); }
.snapshot-tile.fresh { border-color: rgba(61, 255, 162, .35); background: linear-gradient(160deg, rgba(61, 255, 162, .08), transparent 60%); }
.snapshot-tile.fresh .snapshot-slot { color: var(--venom); }
.snapshot-tile.monthly { border-color: rgba(56, 225, 255, .35); background: linear-gradient(160deg, rgba(56, 225, 255, .08), transparent 60%); }
.snapshot-tile.monthly .snapshot-slot { color: var(--pulse); }
.snapshot-tile.vacant { border-style: dashed; align-items: center; justify-content: center; color: var(--mute); background: none; }
.snapshot-tile.vacant .glyph { width: 22px; height: 22px; }
.snapshot-games { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 8px; }
.game-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 4px;
  font: 700 10px var(--mono);
  letter-spacing: .06em;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, .25);
  vertical-align: middle;
}
.snapshot-games .game-tag { margin-left: 0; }
.game-css { color: #ff9f43; }
.game-csgo { color: #f5c542; }
.game-cs2 { color: #5aa9ff; }
.game-cs16 { color: #7ee081; }
.game-unknown { color: var(--dim); }

.salvo-bar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px; 12px;
  border: 1px solid rgba(56, 225, 255, .35);
  border-radius: var(--radius);
  background: rgba(10, 20, 28, .94);
  backdrop-filter: blur(8px);
}
.salvo-bar[hidden] { display: none; }
.salvo-bar > span { margin-right: auto; color: var(--dim); }
.salvo-bar b { color: var(--pulse); font-family: var(--mono); }

.crate-list { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.crate-list th { padding: 6px 12px; text-align: left; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.crate-list th.num { text-align: right; }
.crate-row td { padding: 8px 12px; background: rgba(255, 255, 255, .022); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); transition: background .15s; }
.crate-row td:first-child { border-left: 1px solid var(--edge); border-radius: 8px 0 0 8px; }
.crate-row td:last-child { border-right: 1px solid var(--edge); border-radius: 0 8px 8px 0; }
.crate-row:hover td { background: rgba(255, 255, 255, .05); }
.crate-row.picked td { background: rgba(56, 225, 255, .07); border-color: rgba(56, 225, 255, .3); }
.crate-row[hidden] { display: none; }
.crate-pick { width: 44px; }
.crate-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; word-break: break-all; }
.crate-name:hover span { color: var(--pulse); }
.crate-tools { width: 1%; white-space: nowrap; text-align: right; }
.crate-tools form { display: inline; }

.glyph-folder .glyph { color: var(--flare); }
.glyph-map .glyph { color: #7ee081; }
.glyph-plugin .glyph { color: var(--ember); }
.glyph-config .glyph { color: var(--pulse); }
.glyph-script .glyph { color: #c792ff; }
.glyph-log .glyph { color: var(--dim); }
.glyph-demo .glyph { color: #ff7ab6; }
.glyph-image .glyph { color: #5aa9ff; }
.glyph-sound .glyph { color: #f5c542; }
.glyph-archive .glyph { color: #ff9f43; }
.glyph-model .glyph { color: #9be7ff; }
.glyph-vault .glyph { color: var(--venom); }
.glyph-file .glyph { color: var(--mute); }

input[type=checkbox], input[type=radio] { accent-color: var(--pulse); }
.crate-list input[type=checkbox], .toggle input[type=checkbox] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--edge-hi);
  border-radius: 4px;
  background: var(--hull);
  cursor: pointer;
}
.crate-list input[type=checkbox]:checked, .toggle input[type=checkbox]:checked { background: var(--pulse); border-color: var(--pulse); }
.crate-list input[type=checkbox]:checked::after, .toggle input[type=checkbox]:checked::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #041016;
  border-bottom: 2px solid #041016;
  transform: rotate(-45deg) translate(1px, -1px);
}
.crate-list input[type=checkbox]:indeterminate { background: rgba(56, 225, 255, .4); border-color: var(--pulse); }

.spec-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.spec-strip div { padding: 8px 14px; border: 1px solid var(--edge); border-radius: 8px; background: rgba(255, 255, 255, .02); }
.spec-strip dt { font: 600 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.spec-strip dd { margin: 2px 0 0; font: 600 13px var(--mono); }
.scroll-lines {
  margin: 0;
  padding: 14px 0;
  max-height: 72vh;
  overflow: auto;
  counter-reset: line;
  list-style: none;
  background: #07090e;
  border: 1px solid var(--edge);
  border-radius: 8px;
  font: 12.5px/1.65 var(--mono);
}
.scroll-lines li { counter-increment: line; display: flex; min-height: 1.65em; }
.scroll-lines li::before {
  content: counter(line);
  flex: none;
  width: 60px;
  padding-right: 14px;
  margin-right: 14px;
  text-align: right;
  color: var(--mute);
  user-select: none;
  border-right: 1px solid var(--edge);
}
.scroll-lines li:hover { background: rgba(56, 225, 255, .05); }
.scroll-lines code { white-space: pre; color: #d6dbea; padding-right: 16px; font: inherit; }
.frame-view {
  margin: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(#10131b 0 25%, #0b0e14 0 50%) 0 0 / 24px 24px;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.frame-view img { max-width: 100%; max-height: 72vh; }
.sound-view { width: 100%; }
.void-note { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px; color: var(--dim); text-align: center; grid-column: 1 / -1; }
.void-note .glyph { width: 34px; height: 34px; color: var(--mute); }

.signal-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.signal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid;
  font-weight: 500;
  transition: opacity .6s, transform .6s;
}
.signal-stack .signal { margin-bottom: 0; }
.signal span { white-space: pre-line; word-break: break-word; }
.signal.fade { opacity: 0; transform: translateY(-6px); }
.signal-ok { color: var(--venom); border-color: rgba(61, 255, 162, .3); background: rgba(61, 255, 162, .07); }
.signal-error { color: #ff8c96; border-color: rgba(255, 59, 74, .35); background: rgba(255, 59, 74, .08); }
.signal-warn { color: var(--flare); border-color: rgba(255, 177, 59, .35); background: rgba(255, 177, 59, .08); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-cap { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.field input, .field select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--edge-hi);
  border-radius: 8px;
  background: #090b11;
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: .15s;
}
.field input:focus, .field select:focus { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 59, 74, .15); }
.field-row { display: flex; gap: 8px; align-items: center; }
.field-row input { flex: 1; }
.field-row .icon-btn { width: 42px; height: 42px; border-color: var(--edge-hi); }
.toggles { flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; min-height: 42px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--dim); }
.forge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: end; }
.forge-grid.single { grid-template-columns: 1fr; }
.forge-grid .clip-btn { height: 42px; }

.rig-list { display: grid; gap: 12px; }
.rig { padding: 16px; border: 1px solid var(--edge); border-radius: var(--radius); background: rgba(255, 255, 255, .02); }
.rig.off { opacity: .6; }
.rig-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rig-head .game-tag { margin-left: 0; }
.rig-head h3 { margin: 0; font: 16px var(--display); }
.rig-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; font: 12px var(--mono); color: var(--dim); }
.rig-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rig-meta .glyph { width: 15px; height: 15px; }
.rig-tools { margin-top: 12px; }
.rig details { margin-top: 12px; }
summary { cursor: pointer; color: var(--pulse); font-weight: 600; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
summary::-webkit-details-marker { display: none; }
.rig details[open] summary { margin-bottom: 14px; }

.cadence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.cadence { padding: 18px; border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(160deg, rgba(255, 59, 74, .09), transparent 55%); }
.cadence.monthly { background: linear-gradient(160deg, rgba(56, 225, 255, .09), transparent 55%); }
.cadence h3 { margin: 0 0 4px; font: 17px var(--display); }
.cadence p { margin: 0 0 14px; color: var(--dim); }
.cadence form { margin: 0; }
.cadence-stats { display: flex; gap: 22px; margin-bottom: 14px; font: 12px var(--mono); color: var(--dim); }
.cadence-stats b { display: block; font: 20px var(--display); color: var(--ink); }

.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th { text-align: left; padding: 8px 10px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--edge); }
.ledger td { padding: 10px; border-bottom: 1px solid var(--edge); vertical-align: middle; }
.ledger pre { margin: 8px 0 0; max-height: 260px; overflow: auto; white-space: pre-wrap; font: 11.5px/1.5 var(--mono); color: var(--dim); background: #07090e; padding: 10px; border-radius: 6px; }
.ledger details summary { font-size: 12px; margin-left: 8px; }
.state-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 700 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.state-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.state-done { color: var(--venom); background: rgba(61, 255, 162, .1); }
.state-partial { color: var(--flare); background: rgba(255, 177, 59, .1); }
.state-failed, .state-aborted { color: var(--ember); background: rgba(255, 59, 74, .1); }
.state-running { color: var(--pulse); background: rgba(56, 225, 255, .1); }
.state-running::before { animation: beacon 1s infinite; }
@keyframes beacon { 50% { opacity: .2; } }

.roster-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.roster-actions form { margin: 0; }
.inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.inline-form input, .inline-form select { height: 34px; padding: 0 10px; border: 1px solid var(--edge-hi); border-radius: 6px; background: #090b11; color: var(--ink); font: inherit; }
.inline-form .clip-btn { height: 34px; padding: 0 12px; }

.emblem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.emblem-pick { position: relative; cursor: pointer; }
.emblem-pick input { position: absolute; opacity: 0; pointer-events: none; }
.emblem-pick > span { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 20px 12px 16px; border: 1px solid var(--edge); border-radius: var(--radius); background: rgba(255, 255, 255, .02); transition: .2s; }
.emblem-pick .emblem { width: 100px; height: 100px; }
.emblem-pick b { font: 14px var(--display); }
.emblem-pick small { color: var(--dim); text-align: center; font-size: 12px; }
.emblem-pick:hover > span { border-color: var(--edge-hi); transform: translateY(-2px); }
.emblem-pick input:checked + span { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 0 30px rgba(255, 59, 74, .25); background: rgba(255, 59, 74, .06); }
.emblem-pick input:focus-visible + span { outline: 2px solid var(--pulse); outline-offset: 2px; }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate-console { width: min(420px, 100%); padding: 36px 32px 26px; text-align: center; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.gate-radar { position: relative; width: 136px; height: 136px; margin: 0 auto 18px; display: grid; place-items: center; }
.gate-radar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 59, 74, .5), transparent 28%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%);
  mask: radial-gradient(circle, transparent 60%, #000 61%);
  animation: sweep 3.2s linear infinite;
}
.gate-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.gate-radar .emblem { position: relative; z-index: 1; width: 92px; height: 92px; }
@keyframes sweep { to { transform: rotate(1turn); } }
.gate h1 { margin: 0; font: 30px var(--display); letter-spacing: .04em; }
.gate h1 span { color: var(--ember); text-shadow: 0 0 18px rgba(255, 59, 74, .6); }
.gate-sub { margin: 6px 0 24px; color: var(--dim); }
.gate-form { display: grid; gap: 14px; text-align: left; }
.gate-form .clip-btn { margin-top: 6px; }
.gate-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font: 11px var(--mono); letter-spacing: .1em; color: var(--mute); }
.blink { width: 7px; height: 7px; border-radius: 50%; background: var(--venom); box-shadow: 0 0 10px var(--venom); animation: beacon 1.4s infinite; }

@media (max-width: 960px) {
  .bunker { grid-template-columns: 1fr; }
  .radar { position: relative; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-right: 0; border-bottom: 1px solid var(--edge); }
  .radar-nav { order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .depot-meter { display: none; }
  .operator { margin-left: auto; padding-top: 0; border-top: 0; }
  .operator-name { display: none; }
  .deck { padding: 18px 14px 40px; }
  .scope { min-width: 0; width: 100%; }
  .crate-list th:nth-child(4), .crate-row td:nth-child(4) { display: none; }
  .rig-meta { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .radar-nav a span { display: none; }
  .radar-title b { font-size: 13px; }
  .crate-list th:nth-child(3), .crate-row td:nth-child(3) { display: none; }
}
.depot-gauge + .depot-gauge { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge); }
.depot-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.depot-head b { white-space: nowrap; }
.depot-head b.offline { color: var(--ember); }
.depot-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 4px;
  font: 600 10.5px var(--mono);
  color: var(--pulse);
  background: rgba(56, 225, 255, .08);
  border: 1px solid rgba(56, 225, 255, .3);
  vertical-align: middle;
  white-space: nowrap;
}
.depot-tag .glyph { width: 12px; height: 12px; }
.dossier-note .depot-tag { margin-left: 0; margin-right: 6px; }
.tile-depots { display: inline-flex; align-items: center; gap: 6px; font: 11px var(--mono); }
.tile-depots .glyph { width: 13px; height: 13px; }
.inline-link { color: var(--pulse); border-bottom: 1px dashed rgba(56, 225, 255, .5); }
.depot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.depot-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .02);
}
.depot-card.primary { border-color: rgba(61, 255, 162, .35); background: linear-gradient(160deg, rgba(61, 255, 162, .07), transparent 55%); }
.depot-card.offline { border-color: rgba(255, 59, 74, .4); background: linear-gradient(160deg, rgba(255, 59, 74, .08), transparent 55%); }
.depot-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.depot-card-head h3 { margin: 0; font: 16px var(--display); }
.depot-card .rig-meta { margin-left: 0; }
.depot-card .rig-meta span { word-break: break-all; }
.depot-card .dossier-note { margin: 0; }
.depot-card details[open] summary { margin-bottom: 10px; }
.depot-figures { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 11.5px var(--mono); color: var(--dim); }
.depot-forge { margin-top: 18px; }
.command-line {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: #07090e;
  border: 1px solid var(--edge);
  border-radius: 8px;
  font: 13px var(--mono);
  color: var(--venom);
}
