:root {
  --black: #02040a;
  --matte: #060913;
  --graphite: #101826;
  --panel: rgba(6, 10, 18, 0.86);
  --panel-strong: rgba(8, 14, 27, 0.94);
  --royal: #135cff;
  --royal-2: #082568;
  --cyan: #35d5ff;
  --gold: #d6b15f;
  --silver: #e7edf7;
  --silver-2: #9aa8bc;
  --line: rgba(231, 237, 247, 0.15);
  --green: #57df9b;
  --amber: #d8b75c;
  --red: #ff6377;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--silver);
  background:
    radial-gradient(circle at 20% 0%, rgba(19, 92, 255, 0.28), transparent 34%),
    radial-gradient(circle at 72% 12%, rgba(53, 213, 255, 0.13), transparent 30%),
    linear-gradient(135deg, #02040a 0%, #07101f 48%, #02040a 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(53, 213, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(231, 237, 247, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}

button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.ambient-grid, .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.ambient-grid {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(19, 92, 255, .14) 43%, transparent 44% 100%),
    linear-gradient(245deg, transparent 0 58%, rgba(53, 213, 255, .08) 59%, transparent 60% 100%);
  animation: drift 18s linear infinite;
  opacity: .65;
}
.scanlines {
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  opacity: .18;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 118px minmax(0, 1fr) 350px; position: relative; z-index: 1; }
.rail, .hud { background: rgba(2, 4, 10, 0.72); backdrop-filter: blur(20px); }
.rail { position: sticky; top: 0; height: 100vh; padding: 18px 12px; border-right: 1px solid var(--line); }
.brand-mark {
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,237,247,.24);
  border-radius: 8px;
  color: white;
  font-size: 31px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(19,92,255,.38), rgba(214,177,95,.08));
  box-shadow: inset 0 0 32px rgba(19,92,255,.25), 0 0 30px rgba(19,92,255,.16);
}
.nav { display: grid; gap: 9px; margin-top: 16px; }
.nav button {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  gap: 3px;
}
.nav button span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  border: 1px solid rgba(231,237,247,.12);
  color: var(--silver);
  background: rgba(231,237,247,.035);
}
.nav button.active { color: white; border-color: rgba(53,213,255,.55); background: rgba(19,92,255,.16); box-shadow: inset 0 0 30px rgba(19,92,255,.18); }

.main { min-width: 0; padding: 24px; }
.hud { position: sticky; top: 0; height: 100vh; overflow: auto; border-left: 1px solid var(--line); padding: 22px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; margin-bottom: 18px; }
.eyebrow { margin: 0; color: var(--cyan); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; }
h1 { margin: 8px 0 0; color: white; font-size: clamp(36px, 5.4vw, 78px); line-height: .92; letter-spacing: 0; text-shadow: 0 0 36px rgba(19,92,255,.28); }
.lead { margin: 12px 0 0; max-width: 840px; color: var(--silver-2); line-height: 1.55; font-size: 16px; }
body[data-active-view="agents"] .hero {
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 10px;
}
body[data-active-view="agents"] h1 { font-size: clamp(28px, 3vw, 44px); line-height: 1; }
body[data-active-view="agents"] .lead { display: none; }
body[data-active-view="agents"] .rank-card { padding: 10px; min-width: 0; }
body[data-active-view="agents"] .rank-card strong { font-size: 20px; }
body[data-active-view="agents"] .app-shell { grid-template-columns: 118px minmax(0, 1fr); }
body[data-active-view="agents"] .hud { display: none; }
body[data-active-view="agents"] .main { padding-right: 18px; }

.rank-card, .panel, .stat, .hud-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.rank-card { min-width: 244px; padding: 14px; text-align: right; }
.rank-card span, .rank-card small { display: block; color: var(--silver-2); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.rank-card strong { display: block; margin-top: 5px; color: white; font-size: 25px; line-height: 1; }
.xp { height: 8px; margin-top: 12px; border-radius: 999px; overflow: hidden; background: rgba(231,237,247,.08); }
.xp div { height: 100%; width: 74%; background: linear-gradient(90deg, var(--royal), var(--cyan), var(--gold)); animation: xpPulse 2.8s ease-in-out infinite; }

.view { display: none; }
.view.active { display: block; opacity: 1; transform: none; }
.stats, .content-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.stats { margin-bottom: 14px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.stat { grid-column: span 3; padding: 14px; min-height: 118px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--royal), var(--cyan), transparent); animation: scan 3.5s linear infinite; }
.stat span { color: var(--silver-2); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.stat strong { display: block; margin-top: 8px; color: white; font-size: 29px; }
.stat p, .card p, .row span, .division-card p, .agent-worker p, .hud-card p { display: block; margin: 7px 0 0; color: var(--silver-2); line-height: 1.38; font-size: 13px; }

.panel { overflow: hidden; background: var(--panel-strong); }
.panel-head {
  min-height: 56px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(19,92,255,.18), rgba(53,213,255,.04), rgba(214,177,95,.04));
}
.panel-head h2 { margin: 0; color: white; font-size: 16px; letter-spacing: 0; }
.panel-body { padding: 16px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(231,237,247,.04);
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}
.chip.blue { color: white; border-color: rgba(53,213,255,.5); background: rgba(19,92,255,.18); }
.chip.green { color: var(--green); border-color: rgba(87,223,155,.42); background: rgba(87,223,155,.08); }
.chip.amber { color: var(--amber); border-color: rgba(216,183,92,.45); background: rgba(216,183,92,.08); }

.ops-room {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 46%, rgba(19,92,255,.25), transparent 28%),
    linear-gradient(90deg, rgba(231,237,247,.05) 1px, transparent 1px),
    linear-gradient(rgba(231,237,247,.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,16,32,.95), rgba(2,4,10,.98));
  background-size: auto, 48px 48px, 48px 48px, auto;
}
.world-map {
  position: absolute;
  inset: 54px 58px;
  border: 1px solid rgba(53,213,255,.18);
  opacity: .72;
  background:
    radial-gradient(ellipse at 28% 42%, rgba(53,213,255,.18) 0 13%, transparent 14%),
    radial-gradient(ellipse at 54% 36%, rgba(231,237,247,.11) 0 12%, transparent 13%),
    radial-gradient(ellipse at 70% 56%, rgba(53,213,255,.16) 0 10%, transparent 11%),
    linear-gradient(90deg, transparent 49%, rgba(53,213,255,.22) 50%, transparent 51%);
}
.world-map span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); animation: beacon 2.2s infinite; }
.world-map span:nth-child(1) { left: 24%; top: 42%; } .world-map span:nth-child(2) { left: 48%; top: 31%; animation-delay: .4s; } .world-map span:nth-child(3) { right: 24%; top: 56%; animation-delay: .8s; } .world-map span:nth-child(4) { right: 15%; top: 38%; animation-delay: 1.2s; }
.ops-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 245px;
  height: 245px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(53,213,255,.5);
  background: radial-gradient(circle, rgba(19,92,255,.32), rgba(2,4,10,.88) 64%);
  box-shadow: 0 0 80px rgba(19,92,255,.34);
}
.ops-core p { margin: 0; color: var(--silver-2); font-size: 11px; font-weight: 900; text-transform: uppercase; max-width: 160px; }
.ops-core strong { display: block; margin-top: 8px; color: white; font-size: 23px; }
.core-ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(53,213,255,.45); animation: spin 18s linear infinite; }
.ops-screen {
  position: absolute;
  min-width: 168px;
  padding: 12px;
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 8px;
  background: rgba(2,4,10,.74);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
}
.ops-screen strong { display: block; color: white; font-size: 13px; }
.ops-screen span { display: block; margin-top: 8px; color: var(--cyan); font-size: 22px; font-weight: 900; }
.screen-a { left: 28px; top: 34px; } .screen-b { right: 28px; top: 34px; } .screen-c { left: 28px; bottom: 34px; } .screen-d { right: 28px; bottom: 34px; }
.data-stream { position: absolute; height: 2px; width: 180px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .75; animation: stream 4.5s linear infinite; }
.s1 { top: 34%; left: -190px; } .s2 { top: 64%; right: -190px; animation-direction: reverse; } .s3 { top: 50%; left: -190px; animation-delay: 1.4s; }

.command-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(280px, .7fr);
  gap: 14px;
  align-items: stretch;
}
.move-stack, .readiness-grid, .decision-queue {
  display: grid;
  gap: 10px;
}
.move-card, .readiness-card, .decision-queue article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(231,237,247,.035);
}
.move-card {
  min-height: 142px;
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.move-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--royal), var(--cyan), transparent);
}
.move-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.move-meta span, .move-card small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.move-card strong, .readiness-card strong, .decision-queue > strong {
  color: white;
  font-size: 15px;
}
.move-card p, .readiness-card p, .decision-queue p {
  margin: 0;
  color: var(--silver-2);
  line-height: 1.38;
  font-size: 13px;
}
.readiness-card {
  min-height: 102px;
  padding: 12px;
}
.readiness-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.readiness-card b {
  color: var(--cyan);
  font-size: 18px;
}
.readiness-bar {
  height: 8px;
  margin: 10px 0;
  border-radius: 999px;
  background: rgba(231,237,247,.08);
  overflow: hidden;
}
.readiness-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--royal), var(--cyan), var(--gold));
}
.decision-queue {
  padding: 14px;
  border: 1px solid rgba(53,213,255,.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19,92,255,.12), rgba(2,4,10,.38));
}
.decision-queue article {
  display: grid;
  grid-template-columns: 78px minmax(0,1fr);
  gap: 10px;
  padding: 10px;
}
.decision-queue span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.decision-queue b {
  color: white;
  font-size: 13px;
}

.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: rgba(231,237,247,.035); padding: 12px; }
.row strong, .card strong, .division-card strong { display: block; margin: 0; color: white; font-size: 15px; }
.division-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.division-card {
  min-height: 174px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19,92,255,.12), rgba(231,237,247,.035));
  position: relative;
  overflow: hidden;
}
.division-card::before { content: ""; position: absolute; inset: auto 14px 14px 14px; height: 46px; border: 1px solid rgba(53,213,255,.16); background: repeating-linear-gradient(90deg, rgba(53,213,255,.18) 0 8px, transparent 8px 14px); opacity: .45; animation: scan 4s linear infinite; }
.division-card b { display: inline-flex; margin-bottom: 10px; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }

.office-panel .panel-body { padding: 10px; }
.office-room {
  min-height: calc(100vh - 182px);
  max-height: 920px;
  position: relative;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(231,237,247,.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(53,213,255,.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(231,237,247,.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(19,92,255,.09) 75%),
    radial-gradient(circle at 50% 50%, rgba(53,213,255,.18), transparent 35%),
    radial-gradient(circle at 50% 62%, rgba(19,92,255,.28), transparent 42%),
    linear-gradient(180deg, rgba(18,28,47,.98), rgba(4,8,16,.98));
  background-size: 54px 54px, 54px 54px, 54px 54px, 54px 54px, auto, auto, auto;
  background-position: 0 0, 0 27px, 27px -27px, -27px 0, 0 0, 0 0, 0 0;
}
.office-room::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(214,177,95,.1)); clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.office-wall {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(53,213,255,.16);
  background: linear-gradient(180deg, rgba(8,15,28,.96), rgba(2,4,10,.72));
}
.office-controls {
  position: absolute;
  z-index: 6;
  left: 18px;
  right: 18px;
  top: 16px;
  min-height: 52px;
  display: grid;
  grid-template-columns: 112px repeat(4, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(53,213,255,.2);
  border-radius: 8px;
  background: rgba(2,4,10,.76);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.office-controls button, .office-controls b {
  min-height: 30px;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 6px;
  background: rgba(19,92,255,.2);
  color: white;
  font-size: 11px;
  font-weight: 900;
}
.office-controls span {
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(231,237,247,.1);
  background: linear-gradient(180deg, rgba(104,134,177,.48), rgba(31,45,69,.62));
}
.office-controls b { display: grid; place-items: center; padding: 0 10px; color: var(--cyan); }
.back-wall {
  left: 6%;
  right: 6%;
  top: 88px;
  height: 130px;
  transform: perspective(500px) rotateX(-10deg);
  border-radius: 8px 8px 4px 4px;
}
.back-wall span {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.left-wall { left: 0; top: 122px; bottom: 0; width: 8%; clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%); }
.right-wall { right: 0; top: 122px; bottom: 0; width: 8%; clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
.window-bank {
  position: absolute;
  z-index: 1;
  left: 13%;
  right: 13%;
  top: 126px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.window-bank i {
  height: 54px;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(53,213,255,.22), rgba(19,92,255,.05));
  box-shadow: inset 0 0 18px rgba(53,213,255,.12);
}
.office-zone, .lounge, .holo-wall {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(53,213,255,.2);
  border-radius: 8px;
  background: rgba(2,4,10,.55);
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 10px;
}
.zone-content { left: 5%; top: 230px; }
.zone-sales { left: 5%; bottom: 9%; }
.zone-economics { right: 5%; top: 230px; }
.zone-automation { right: 5%; bottom: 9%; }
.lounge {
  color: var(--gold);
  border-color: rgba(214,177,95,.25);
  width: 130px;
  height: 84px;
  display: grid;
  place-items: end center;
}
.lounge span { position: relative; z-index: 2; margin-bottom: 3px; }
.lounge-left { left: 35%; top: 236px; }
.lounge-right { right: 35%; bottom: 46px; }
.sofa {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 28px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(214,177,95,.45), rgba(93,72,31,.7));
  box-shadow: 0 8px 18px rgba(0,0,0,.26);
}
.holo-wall {
  left: 50%;
  top: 246px;
  transform: translateX(-50%);
  min-width: 250px;
  text-align: center;
  color: white;
  box-shadow: 0 0 36px rgba(53,213,255,.13);
}
.holo-wall strong, .holo-wall span { display: block; }
.holo-wall span { margin-top: 4px; color: var(--cyan); font-size: 10px; }
.strategy-table { position: absolute; left: 50%; top: 62%; width: 260px; height: 164px; transform: translate(-50%,-50%); border: 1px solid rgba(53,213,255,.42); border-radius: 50%; background: radial-gradient(circle, rgba(53,213,255,.18), rgba(19,92,255,.09)); display: grid; place-items: center; text-align: center; box-shadow: 0 0 70px rgba(19,92,255,.2); z-index: 2; }
.strategy-table strong { color: white; font-size: 16px; } .strategy-table span { display: block; color: var(--silver-2); margin-top: 6px; font-size: 12px; }
.agent-worker {
  position: absolute;
  width: 112px;
  min-height: 118px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  z-index: 3;
  cursor: pointer;
  text-align: left;
}
.agent-worker:hover .name-tag, .agent-worker:focus-visible .name-tag { border-color: rgba(53,213,255,.78); box-shadow: 0 0 24px rgba(53,213,255,.2); }
.agent-worker.working .name-tag { border-color: rgba(87,223,155,.44); }
.agent-worker.waiting .name-tag { border-color: rgba(216,183,92,.44); }
.agent-worker[data-agent="Sam"] { left: 22%; top: 56%; animation: floatDesk 6s ease-in-out infinite; }
.agent-worker[data-agent="Neo"] { right: 22%; top: 56%; animation: floatDesk 6.4s ease-in-out infinite; }
.agent-worker[data-agent="Tess"] { left: 29%; bottom: 13%; animation: floatDesk 5.8s ease-in-out infinite; }
.agent-worker[data-agent="Ted"] { right: 31%; bottom: 13%; animation: floatDesk 6.2s ease-in-out infinite; }
.workstation { position: relative; height: 78px; }
.desk { position: absolute; left: 4px; right: 4px; bottom: 8px; height: 31px; border-radius: 4px; background: linear-gradient(180deg, rgba(231,237,247,.38), rgba(85,96,116,.56)); box-shadow: 0 10px 18px rgba(0,0,0,.28); }
.desk::before, .desk::after { content: ""; position: absolute; bottom: -28px; width: 8px; height: 28px; background: rgba(231,237,247,.32); }
.desk::before { left: 35px; } .desk::after { right: 35px; }
.monitor { position: absolute; left: 50%; top: -31px; width: 34px; height: 25px; transform: translateX(-50%); border: 1px solid rgba(53,213,255,.45); border-radius: 3px; background: linear-gradient(180deg, rgba(53,213,255,.9), rgba(19,92,255,.35)); box-shadow: 0 0 16px rgba(53,213,255,.42); animation: monitor 1.4s ease-in-out infinite; }
.keyboard { position: absolute; left: 50%; top: 9px; width: 58px; height: 7px; transform: translateX(-50%); border-radius: 999px; background: rgba(231,237,247,.58); }
.coffee { position: absolute; right: 12px; top: 3px; width: 10px; height: 12px; border-radius: 2px 2px 5px 5px; background: var(--gold); box-shadow: 0 0 10px rgba(214,177,95,.36); }
.chair { position: absolute; left: 50%; bottom: 0; width: 42px; height: 28px; transform: translateX(-50%); border-radius: 6px 6px 12px 12px; background: rgba(19,92,255,.44); border: 1px solid rgba(53,213,255,.24); }
.avatar-person {
  position: absolute;
  left: 50%;
  bottom: 23px;
  width: 42px;
  height: 62px;
  transform: translateX(-50%);
  z-index: 3;
}
.head, .standing-avatar .head {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(231,237,247,.46);
  background: radial-gradient(circle at 34% 24%, rgba(231,237,247,.6), rgba(19,92,255,.56) 52%, rgba(2,4,10,.98));
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(53,213,255,.3);
}
.torso, .standing-avatar .torso {
  width: 31px;
  height: 27px;
  margin: -2px auto 0;
  border-radius: 12px 12px 7px 7px;
  background: linear-gradient(180deg, rgba(53,213,255,.6), rgba(19,92,255,.28));
  border: 1px solid rgba(53,213,255,.22);
}
.arm {
  position: absolute;
  top: 37px;
  width: 8px;
  height: 28px;
  border-radius: 99px;
  background: rgba(53,213,255,.48);
  transform-origin: top;
  animation: armType 1.1s ease-in-out infinite;
}
.arm-left { left: 5px; transform: rotate(38deg); }
.arm-right { right: 5px; transform: rotate(-38deg); animation-delay: .18s; }
.typing-dots { display: flex; gap: 4px; align-items: center; height: 18px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: typing 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .16s; }
.typing-dots i:nth-child(3) { animation-delay: .32s; }
.idle .typing-dots i { background: var(--silver-2); animation-duration: 2.8s; }
.waiting .typing-dots i { background: var(--gold); }
.name-tag { margin-top: 7px; }
.name-tag {
  padding: 7px;
  border: 1px solid rgba(53,213,255,.26);
  border-radius: 7px;
  background: rgba(2,4,10,.78);
  box-shadow: 0 10px 26px rgba(0,0,0,.32);
}
.name-tag strong { display: block; color: white; font-size: 12px; }
.name-tag span { display: block; color: var(--cyan); font-size: 9px; margin-top: 2px; }
.activity-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 7px; color: var(--gold); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.agent-worker p { display: none; }
.avatar, .piece {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(231,237,247,.4);
  background: radial-gradient(circle at 35% 25%, rgba(231,237,247,.42), rgba(19,92,255,.24) 48%, rgba(2,4,10,.96));
  color: white;
  box-shadow: 0 0 28px rgba(19,92,255,.34);
  font-weight: 900;
}
.avatar { width: 42px; height: 42px; }
.pulse { width: 12px; height: 12px; border-radius: 99px; background: var(--green); box-shadow: 0 0 18px rgba(87,223,155,.9); }
.pulse.waiting { background: var(--amber); box-shadow: 0 0 18px rgba(216,183,92,.82); }
.pulse.idle { background: var(--silver-2); box-shadow: 0 0 12px rgba(231,237,247,.42); }
.standing-avatar {
  position: relative;
  width: 48px;
  height: 70px;
  z-index: 2;
}
.lounge .standing-avatar { position: absolute; left: 45px; bottom: 34px; transform: scale(.78); }
.walking-agent {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(53,213,255,.25);
  border-radius: 999px;
  background: rgba(2,4,10,.78);
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.walking-agent .standing-avatar { transform: scale(.62); margin: -16px -8px; }
.walker-one { left: 20%; top: 53%; animation: walkOne 12s linear infinite; }
.walker-two { right: 22%; top: 49%; animation: walkTwo 14s linear infinite; }
.room-label {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 198px;
  transform: translateX(-50%);
  padding: 6px 14px;
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 999px;
  background: rgba(2,4,10,.88);
  color: white;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.office-door {
  position: absolute;
  z-index: 2;
  left: 7%;
  bottom: 154px;
  width: 48px;
  height: 88px;
  border-radius: 24px 24px 6px 6px;
  background: linear-gradient(180deg, rgba(108,200,255,.9), rgba(37,79,132,.85));
  box-shadow: 0 0 24px rgba(53,213,255,.22);
}
.plant {
  position: absolute;
  z-index: 3;
  bottom: 84px;
  width: 34px;
  height: 72px;
  border-radius: 999px 999px 8px 8px;
  background: radial-gradient(circle at 50% 24%, #34d67b 0 34%, transparent 35%), linear-gradient(180deg, transparent 0 52%, #7a4d29 53% 100%);
}
.plant-left { left: 4%; }
.plant-right { right: 4%; }
.empty-desk {
  position: absolute;
  z-index: 2;
  width: 98px;
  height: 39px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(231,237,247,.36), rgba(85,96,116,.58));
  box-shadow: 0 12px 22px rgba(0,0,0,.3);
}
.empty-desk::before, .empty-desk::after {
  content: "";
  position: absolute;
  bottom: -23px;
  width: 7px;
  height: 23px;
  background: rgba(231,237,247,.32);
}
.empty-desk::before { left: 24px; }
.empty-desk::after { right: 24px; }
.empty-desk .monitor { top: -28px; }
.desk-a { left: 21%; top: 30%; }
.desk-b { right: 21%; top: 30%; }
.desk-c { left: 16%; top: 44%; }
.desk-d { left: 45%; top: 43%; }
.desk-e { right: 16%; top: 44%; }
.tiny-agent {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 3px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 900;
}
.tiny-agent .head {
  width: 26px;
  height: 26px;
}
.tiny-a { left: 33%; top: 57%; }
.tiny-b { left: 41%; top: 52%; }
.tiny-c { left: 49%; top: 67%; }
.tiny-d { right: 35%; top: 56%; }

.agent-chat-panel { scroll-margin-top: 18px; }
.agent-chat-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}
.agent-roster {
  display: grid;
  gap: 10px;
  align-content: start;
}
.agent-roster-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 8px;
  background: rgba(2,4,10,.62);
  color: white;
  text-align: left;
}
.agent-roster-card span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,237,247,.34);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, rgba(231,237,247,.48), rgba(19,92,255,.5) 54%, rgba(2,4,10,.98));
  font-weight: 950;
}
.agent-roster-card strong { font-size: 14px; }
.agent-roster-card small {
  min-width: 0;
  color: var(--silver-2);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.agent-roster-card.active {
  border-color: rgba(87,223,155,.58);
  background: linear-gradient(135deg, rgba(19,92,255,.22), rgba(87,223,155,.08));
  box-shadow: 0 0 32px rgba(53,213,255,.11);
}
.agent-console {
  min-height: 430px;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7,13,25,.88), rgba(2,4,10,.72)),
    repeating-linear-gradient(0deg, rgba(53,213,255,.04) 0 1px, transparent 1px 22px);
  overflow: hidden;
}
.agent-console-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(53,213,255,.16);
  background: rgba(2,4,10,.52);
}
.agent-console-head span {
  display: block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.agent-console-head strong { display: block; margin-top: 3px; color: white; font-size: 15px; }
.agent-chat-log {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 430px;
  overflow: auto;
  padding: 14px;
}
.agent-message {
  max-width: min(720px, 88%);
  padding: 10px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 8px;
  background: rgba(231,237,247,.045);
}
.agent-message.operator {
  justify-self: end;
  border-color: rgba(53,213,255,.32);
  background: rgba(19,92,255,.16);
}
.agent-message.agent {
  justify-self: start;
  border-color: rgba(87,223,155,.26);
}
.agent-message div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: white;
  font-size: 12px;
}
.agent-message time, .agent-message small { color: var(--silver-2); font-size: 11px; }
.agent-message p {
  margin: 7px 0;
  color: var(--silver);
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.agent-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(53,213,255,.16);
}
.agent-chat-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 8px;
  background: rgba(2,4,10,.66);
  color: white;
  padding: 10px;
  font: inherit;
}
.agent-chat-form button { align-self: stretch; }
.agent-metric-card .mini-action { margin-top: 10px; width: fit-content; }

.leaderboard { display: grid; gap: 10px; }
.game-master-card {
  min-height: 176px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(214,177,95,.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214,177,95,.16), rgba(19,92,255,.12)),
    radial-gradient(circle at 16% 18%, rgba(53,213,255,.18), transparent 30%),
    rgba(3,8,18,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.gm-rank {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214,177,95,.55);
  border-radius: 8px;
  background: rgba(214,177,95,.12);
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
}
.gm-main span, .gm-stats small {
  display: block;
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.gm-main strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 28px;
  line-height: 1;
}
.gm-main p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--silver-2);
  font-size: 13px;
  line-height: 1.4;
}
.gm-stats {
  min-width: 118px;
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}
.gm-stats b {
  color: white;
  font-size: 20px;
}
.pipeline-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pipeline-column {
  min-height: 138px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19,92,255,.12), rgba(231,237,247,.035));
}
.pipeline-column strong { display: block; margin-top: 12px; color: white; font-size: 15px; }
.pipeline-column p { margin: 7px 0 0; color: var(--silver-2); line-height: 1.38; font-size: 13px; }
.approval-list { display: grid; gap: 12px; }
.approval-status {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(53,213,255,.24);
  border-radius: 8px;
  background: rgba(19,92,255,.1);
  color: var(--silver-2);
  font-size: 12px;
  font-weight: 800;
}
.approval-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(231,237,247,.035);
}
.approval-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: start; }
.approval-top strong { display: block; color: white; font-size: 16px; }
.approval-top span { display: block; margin-top: 4px; color: var(--cyan); font-size: 12px; font-weight: 900; }
.score-badge {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(53,213,255,.48);
  border-radius: 8px;
  background: rgba(19,92,255,.18);
  color: white;
  font-size: 19px;
}
.hook-line { margin: 12px 0; color: white; line-height: 1.45; }
.approval-card dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0; }
.approval-card dt { color: var(--silver-2); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.approval-card dd { margin: 3px 0 0; color: var(--silver); font-size: 12px; line-height: 1.35; }
.approval-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.approval-actions button {
  min-height: 34px;
  border: 1px solid rgba(53,213,255,.35);
  border-radius: 7px;
  background: rgba(19,92,255,.18);
  color: white;
  font-weight: 900;
  cursor: pointer;
}
.approval-actions .final-release-button {
  border-color: rgba(255,198,87,.8);
  background: linear-gradient(135deg, rgba(255,198,87,.25), rgba(19,92,255,.28));
  color: #fff7d1;
  box-shadow: 0 0 18px rgba(255,198,87,.18);
}
.approval-card small { display: block; margin-top: 10px; color: var(--silver-2); line-height: 1.35; }
.calendar-list { display: grid; gap: 10px; }
.market-briefing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.briefing-card {
  min-height: 238px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(19,92,255,.12), rgba(231,237,247,.035));
}
.briefing-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.briefing-meta span { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.briefing-card strong { color: white; font-size: 17px; line-height: 1.2; }
.briefing-card p { margin: 0; color: var(--silver-2); line-height: 1.42; font-size: 13px; }
.briefing-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
.briefing-card dt { color: var(--silver-2); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.briefing-card dd { margin: 3px 0 0; color: var(--silver); font-size: 12px; line-height: 1.35; }
.briefing-link {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  padding: 0 12px;
  border: 1px solid rgba(53,213,255,.42);
  border-radius: 7px;
  background: rgba(19,92,255,.18);
  color: white;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.social-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.social-filters article { min-height: 104px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(231,237,247,.035); }
.social-filters strong { display: block; color: white; font-size: 14px; }
.social-filters span { display: block; margin-top: 7px; color: var(--silver-2); line-height: 1.35; font-size: 12px; }
.dominus-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(53,213,255,.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19,92,255,.18), rgba(2,4,10,.72));
}
.dominus-header h2 {
  margin: 6px 0 0;
  color: white;
  font-size: clamp(25px, 3vw, 44px);
  line-height: 1;
}
.dominus-season {
  min-width: 210px;
  padding: 12px;
  border: 1px solid rgba(214,177,95,.32);
  border-radius: 8px;
  background: rgba(214,177,95,.08);
  text-align: right;
}
.dominus-season span, .dominus-kpis span, .dominus-kpis small, .weekly-review-grid span {
  display: block;
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.dominus-season strong, .dominus-kpis strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 20px;
}
.dominus-kpis {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.dominus-kpis article {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(231,237,247,.035);
}
.dominus-kpis small {
  margin-top: 8px;
  color: var(--cyan);
}
.dominus-games-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.dominus-game-card {
  min-height: 156px;
}
.dominus-game-card small {
  display: block;
  margin-top: 9px;
  color: var(--silver-2);
  line-height: 1.35;
  font-size: 11px;
}
.bottleneck-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(216,183,92,.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(216,183,92,.12), rgba(231,237,247,.035));
}
.bottleneck-card strong { color: white; font-size: 18px; line-height: 1.25; }
.bottleneck-card b { color: var(--gold); font-size: 14px; }
.bottleneck-card p { margin: 0; color: var(--silver-2); line-height: 1.45; }
.dominus-table { overflow-x: auto; }
.dominus-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.dominus-table th, .dominus-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 12px;
}
.dominus-table th {
  color: var(--silver-2);
  font-size: 10px;
  text-transform: uppercase;
}
.dominus-table td { color: var(--silver); }
.funnel-stack, .achievement-grid, .data-source-grid, .automation-status-grid, .weekly-review-grid { display: grid; gap: 10px; }
.funnel-stack article, .achievement-grid article, .data-source-grid article, .automation-status-grid article, .weekly-review-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(231,237,247,.035);
}
.funnel-stack article > div:first-child, .data-source-grid article > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.funnel-stack strong, .achievement-grid strong, .data-source-grid strong, .weekly-review-grid strong {
  color: white;
  font-size: 14px;
}
.funnel-stack span {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
}
.achievement-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.achievement-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 70px;
}
.data-source-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.automation-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.automation-status-grid article {
  min-height: 116px;
  background: linear-gradient(180deg, rgba(19,92,255,.1), rgba(231,237,247,.028));
}
.automation-status-grid .chip {
  margin-bottom: 9px;
}
.automation-status-grid strong {
  display: block;
  color: white;
  font-size: 15px;
}
.data-source-grid p, .automation-status-grid p {
  margin: 8px 0 0;
  color: var(--silver-2);
  line-height: 1.35;
  font-size: 12px;
}
.dominus-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}
.dominus-sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dominus-sync-grid article {
  min-height: 128px;
  padding: 12px;
  border: 1px solid rgba(53,213,255,.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19,92,255,.12), rgba(3,8,18,.48));
}
.dominus-sync-grid strong {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 15px;
}
.dominus-sync-grid p {
  margin: 8px 0 0;
  color: var(--silver-2);
  font-size: 12px;
  line-height: 1.38;
}
.dominus-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px));
  gap: 10px;
  align-items: center;
  justify-content: start;
}
.dominus-actions > .mini-action {
  min-height: 40px;
  align-self: start;
}
.dominus-upload {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(191, 198, 213, .16);
  border-radius: 8px;
  background: rgba(3, 8, 18, .44);
}
.backup-import {
  border: 1px solid rgba(191, 198, 213, .14);
  border-radius: 8px;
  background: rgba(3, 8, 18, .34);
  padding: 10px;
}
.backup-import summary {
  cursor: pointer;
  color: var(--silver);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.backup-import[open] summary { margin-bottom: 10px; }
.dominus-upload select, .dominus-upload input {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2,4,10,.72);
  color: var(--silver);
  padding: 0 10px;
}
.dominus-upload input {
  padding: 7px 10px;
}
.dominus-manual-entry {
  border: 1px solid rgba(47, 111, 255, .2);
  border-radius: 8px;
  background: rgba(3, 8, 18, .52);
  display: grid;
  gap: 10px;
  padding: 12px;
}
.manual-entry-head {
  display: grid;
  grid-template-columns: minmax(180px, 280px) auto;
  gap: 8px;
  justify-content: start;
}
.manual-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}
.manual-entry-head select,
.manual-entry-grid input,
.manual-entry-grid select {
  min-height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(2,4,10,.72);
  color: var(--silver);
  padding: 0 10px;
}
.template-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(191, 198, 213, .12);
  border-radius: 8px;
  background: rgba(3, 8, 18, .34);
}
.template-links a {
  border: 1px solid rgba(191, 198, 213, .22);
  border-radius: 7px;
  color: var(--silver);
  font-size: 12px;
  padding: 7px 10px;
  text-decoration: none;
  background: rgba(8, 13, 24, .58);
}
.template-links a:hover {
  border-color: rgba(47, 111, 255, .5);
  color: var(--white);
}
.weekly-review-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.weekly-review-grid.compact-review {
  grid-template-columns: 1fr;
}
.weekly-review-grid article {
  min-height: 108px;
}
.compact-review article {
  min-height: 72px;
}
.weekly-review-grid strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}
.leader-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(231,237,247,.035); }
.leader-row strong { color: white; }
.leader-row span { display: block; margin-top: 4px; color: var(--silver-2); font-size: 12px; font-weight: 800; }
.rank { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: rgba(19,92,255,.18); color: white; font-weight: 900; }
.bar { height: 8px; margin-top: 8px; border-radius: 999px; background: rgba(231,237,247,.08); overflow: hidden; }
.bar div { height: 100%; background: linear-gradient(90deg, var(--royal), var(--cyan), var(--gold)); }
.score-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 10px; }
.score-grid.dominus-games-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.score-card { min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(231,237,247,.035); }
.score-card strong { color: white; display: block; font-size: 14px; }
.score-card b { color: var(--cyan); display: block; margin-top: 12px; font-size: 28px; }

.search { display: flex; gap: 10px; margin-bottom: 14px; }
.search input, .auth-form input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(2,4,10,.72); color: white; padding: 0 13px; outline: none; }
.search button, .auth-form button, .text-button, .sound-button { min-height: 42px; padding: 0 14px; border: 1px solid rgba(53,213,255,.45); border-radius: 8px; color: white; background: linear-gradient(135deg, rgba(19,92,255,.7), rgba(8,37,104,.9)); font-weight: 900; cursor: pointer; white-space: nowrap; }
.mini-action {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(53,213,255,.4);
  border-radius: 7px;
  background: rgba(19,92,255,.18);
  color: white;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.auth-form { display: grid; gap: 8px; margin-top: 10px; }
.text-button { width: 100%; margin-top: 8px; background: transparent; color: var(--silver-2); }
.sound-button { width: 100%; margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cards.one-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-height: 132px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(231,237,247,.035); }
.hud-card { padding: 14px; margin-bottom: 12px; }
.hud-card h3 { margin: 0; color: white; font-size: 14px; }
.feed { display: grid; gap: 10px; margin-top: 12px; }
.feed div { padding-left: 12px; border-left: 2px solid var(--royal); color: var(--silver-2); font-size: 13px; line-height: 1.35; }
.feed strong { display: block; color: white; margin-bottom: 3px; }

@keyframes drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stream { to { transform: translateX(calc(100vw + 260px)); } }
@keyframes beacon { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes scan { 0% { transform: translateX(-20%); } 100% { transform: translateX(20%); } }
@keyframes monitor { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes floatDesk { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes xpPulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.4); } }
@keyframes typing { 0%,100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: 1; } }
@keyframes armType { 0%,100% { height: 25px; } 50% { height: 31px; } }
@keyframes walkOne { 0%,100% { transform: translate(0, 0); } 25% { transform: translate(120px, 36px); } 50% { transform: translate(248px, 6px); } 75% { transform: translate(128px, -32px); } }
@keyframes walkTwo { 0%,100% { transform: translate(0, 0); } 25% { transform: translate(-110px, -26px); } 50% { transform: translate(-238px, 22px); } 75% { transform: translate(-118px, 48px); } }

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 104px minmax(0,1fr); }
  .hud { position: static; height: auto; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 6; }
  .stat { grid-column: span 6; }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .score-grid, .dominus-games-grid, .score-grid.dominus-games-grid, .dominus-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dominus-sync-grid { grid-template-columns: 1fr; }
  .automation-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline-board, .social-filters, .market-briefing-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .command-deck { grid-template-columns: 1fr; }
  .agent-chat-shell { grid-template-columns: 1fr; }
  .agent-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dominus-actions { grid-template-columns: 1fr; }
  .dominus-action-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dominus-upload { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app-shell, body[data-active-view="agents"] .app-shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 10px; overflow-x: hidden; max-width: 100vw; }
  .brand-mark { width: 64px; height: 64px; }
  .nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 0; }
  .nav button { min-height: 54px; font-size: 10px; }
  .main { padding: 16px; }
  .hero, body[data-active-view="agents"] .hero { grid-template-columns: 1fr; }
  body[data-active-view="agents"] .main { padding: 16px; }
  .rank-card { text-align: left; min-width: 0; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12, .stat { grid-column: span 12; }
  .cards, .division-map, .score-grid, .dominus-games-grid, .score-grid.dominus-games-grid, .dominus-kpis, .dominus-sync-grid, .pipeline-board, .social-filters, .market-briefing-list, .approval-card dl, .briefing-card dl, .achievement-grid, .data-source-grid, .automation-status-grid, .weekly-review-grid { grid-template-columns: 1fr; }
  .dominus-header { grid-template-columns: 1fr; }
  .dominus-season { text-align: left; min-width: 0; }
  .game-master-card { grid-template-columns: 1fr; align-items: start; }
  .gm-rank { width: 58px; height: 58px; font-size: 19px; }
  .gm-stats { justify-items: start; text-align: left; }
  .leader-row { grid-template-columns: 42px minmax(0,1fr); }
  .leader-row .chip { justify-self: start; grid-column: 2; }
  .dominus-actions { grid-template-columns: 1fr; }
  .dominus-action-row { grid-template-columns: 1fr; }
  .dominus-upload { grid-template-columns: 1fr; }
  .manual-entry-head, .manual-entry-grid { grid-template-columns: 1fr; }
  .command-deck { grid-template-columns: 1fr; }
  .decision-queue article { grid-template-columns: 1fr; }
  .agent-chat-shell, .agent-chat-form { grid-template-columns: 1fr; }
  .agent-roster { grid-template-columns: 1fr; }
  .agent-message { max-width: 100%; }
  .ops-room { min-height: 760px; }
  .ops-core { top: 42%; width: 205px; height: 205px; }
  .world-map { inset: 98px 16px 170px; }
  .ops-screen { left: 16px !important; right: 16px !important; min-width: 0; }
  .screen-a { top: 18px; } .screen-b { top: 98px; } .screen-c { bottom: 98px; } .screen-d { bottom: 18px; }
  .office-room { min-height: 1080px; }
  .office-controls { grid-template-columns: 1fr 1fr; }
  .office-controls span, .office-controls b { display: none; }
  .office-zone, .lounge, .holo-wall, .walking-agent, .window-bank, .office-wall, .room-label, .office-door, .plant, .empty-desk, .tiny-agent { display: none; }
  .strategy-table { top: 50%; width: 210px; height: 136px; }
  .agent-worker { left: 16px !important; right: 16px !important; width: auto; }
  .agent-worker[data-agent="Sam"] { top: 96px; }
  .agent-worker[data-agent="Neo"] { top: 300px; }
  .agent-worker[data-agent="Tess"] { top: 676px; bottom: auto; }
  .agent-worker[data-agent="Ted"] { top: 880px; bottom: auto; }
  .cards.one-col { grid-template-columns: 1fr; }
  .search { display: grid; }
}

/* Mission Control 2.0 — isolated preview layer */
.command-v2-view { position: relative; }
.command-v2-shell { display: grid; gap: 16px; }
.command-v2-hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at 18% 18%, rgba(19,92,255,.34), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(231,237,247,.12), transparent 24%),
    linear-gradient(135deg, rgba(8,14,27,.96), rgba(2,4,10,.98));
  box-shadow: 0 30px 100px rgba(0,0,0,.55), inset 0 0 80px rgba(19,92,255,.12);
  overflow: hidden;
  position: relative;
}
.command-v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(53,213,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(231,237,247,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 76%);
  animation: commandV2Drift 24s linear infinite;
}
.command-v2-hero > * { position: relative; z-index: 1; }
.command-v2-hero h2 { margin: 10px 0 0; max-width: 920px; color: white; font-size: clamp(42px, 6vw, 86px); line-height: .9; letter-spacing: -.04em; text-shadow: 0 0 44px rgba(19,92,255,.34); }
.command-v2-hero p { margin: 16px 0 0; max-width: 920px; color: var(--silver-2); font-size: 16px; line-height: 1.6; }
.command-v2-brief-card {
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 12px;
  padding: 18px;
  background: rgba(2,4,10,.68);
  box-shadow: inset 0 0 48px rgba(19,92,255,.12);
}
.command-v2-brief-card span, .command-v2-brief-card p { color: var(--silver-2); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.command-v2-brief-card strong { display: block; margin-top: 12px; color: white; font-size: 28px; line-height: 1; }
.command-v2-brief-card p { text-transform: none; letter-spacing: 0; font-weight: 700; line-height: 1.5; }
.command-v2-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.command-v2-main-grid { align-items: stretch; }
.command-v2-span-4 { grid-column: span 4; }
.command-v2-span-5 { grid-column: span 5; }
.command-v2-span-7 { grid-column: span 7; }
.command-v2-span-8 { grid-column: span 8; }
.command-v2-span-12 { grid-column: span 12; }
.command-v2-panel {
  border: 1px solid rgba(231,237,247,.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8,14,27,.95), rgba(3,6,13,.96));
  box-shadow: 0 24px 80px rgba(0,0,0,.46);
  overflow: hidden;
}
.command-v2-panel > header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(231,237,247,.14);
  background: linear-gradient(90deg, rgba(19,92,255,.22), rgba(53,213,255,.05), rgba(231,237,247,.04));
}
.command-v2-panel > header div { display: flex; align-items: center; gap: 12px; }
.command-v2-panel > header span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(53,213,255,.45);
  border-radius: 9px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  background: rgba(19,92,255,.16);
}
.command-v2-panel h3 { margin: 0; color: white; font-size: 17px; }
.command-v2-panel > header b { color: var(--cyan); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-panel blockquote { margin: 16px 16px 0; color: white; border-left: 3px solid var(--royal); padding-left: 14px; font-size: 18px; line-height: 1.35; }
.command-v2-mission-list, .command-v2-briefing, .command-v2-horizons, .command-v2-scores, .command-v2-scoreboard, .command-v2-hq, .command-v2-alerts { padding: 16px; }
.command-v2-mission-list { display: grid; gap: 12px; }
.command-v2-mission {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(231,237,247,.13);
  border-radius: 10px;
  background: rgba(231,237,247,.035);
}
.command-v2-rank { display: grid; place-items: center; border-radius: 10px; color: white; font-size: 18px; font-weight: 1000; background: linear-gradient(135deg, rgba(19,92,255,.6), rgba(53,213,255,.12)); }
.command-v2-mission-main > div { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.command-v2-mission strong, .command-v2-horizons strong, .command-v2-scores strong, .command-v2-kpi strong, .command-v2-hq strong, .command-v2-alert strong { color: white; }
.command-v2-mission p, .command-v2-horizons p, .command-v2-scores p, .command-v2-kpi p, .command-v2-hq p, .command-v2-alert p { color: var(--silver-2); line-height: 1.45; }
.command-v2-status { white-space: nowrap; color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.command-v2-status-critical .command-v2-status, .command-v2-alert-critical span { color: var(--red); }
.command-v2-status-waiting .command-v2-status, .command-v2-kpi-watch small { color: var(--amber); }
.command-v2-status-completed .command-v2-status, .command-v2-kpi-on_track small { color: var(--green); }
.command-v2-progress { height: 8px; margin: 10px 0; border-radius: 999px; background: rgba(231,237,247,.08); overflow: hidden; }
.command-v2-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--royal), var(--cyan)); box-shadow: 0 0 18px rgba(53,213,255,.45); }
.command-v2-mission small, .command-v2-scores small, .command-v2-kpi small, .command-v2-alert small { color: var(--silver-2); font-weight: 800; }
.command-v2-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0 16px 16px; }
.command-v2-metrics div { padding: 14px; border: 1px solid rgba(231,237,247,.12); border-radius: 10px; background: rgba(2,4,10,.44); }
.command-v2-metrics span, .command-v2-kpi span, .command-v2-alert span { display: block; color: var(--silver-2); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.command-v2-metrics strong { display: block; margin-top: 6px; color: white; font-size: 24px; }
.command-v2-briefing { display: grid; gap: 12px; }
.command-v2-briefing section { padding: 12px; border: 1px solid rgba(231,237,247,.1); border-radius: 10px; background: rgba(231,237,247,.035); }
.command-v2-briefing h4 { margin: 0 0 8px; color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-briefing p { margin: 7px 0 0; color: var(--silver-2); line-height: 1.38; }
.command-v2-question { padding: 14px; border-radius: 10px; color: white; background: linear-gradient(135deg, rgba(19,92,255,.32), rgba(214,177,95,.12)); font-weight: 900; line-height: 1.35; }
.command-v2-horizons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.command-v2-horizons article, .command-v2-scores article, .command-v2-kpi, .command-v2-hq article, .command-v2-alert { padding: 14px; border: 1px solid rgba(231,237,247,.12); border-radius: 10px; background: rgba(231,237,247,.035); }
.command-v2-horizons article > div:first-child, .command-v2-scores article > div:first-child { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.command-v2-horizons ul { margin: 10px 0; padding-left: 18px; color: var(--silver-2); }
.command-v2-horizons b { color: var(--cyan); font-size: 13px; }
.command-v2-scores { display: grid; gap: 12px; }
.command-v2-scores b { color: white; font-size: 24px; }
.command-v2-scoreboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.command-v2-kpi { min-height: 148px; }
.command-v2-kpi b { display: block; margin-top: 10px; color: white; font-size: 22px; }
.command-v2-kpi-critical { border-color: rgba(255,99,119,.32); box-shadow: inset 0 0 28px rgba(255,99,119,.06); }
.command-v2-kpi-on_track { border-color: rgba(87,223,155,.28); }
.command-v2-hq { min-height: 410px; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; align-items: end; background: radial-gradient(circle at 50% 20%, rgba(19,92,255,.2), transparent 32%); }
.command-v2-hq article { min-height: 245px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.command-v2-hq article::before { content: ""; position: absolute; inset: 12px 12px auto; height: 72px; border: 1px solid rgba(53,213,255,.18); border-radius: 8px; background: linear-gradient(135deg, rgba(19,92,255,.18), rgba(2,4,10,.16)); }
.command-v2-room-orb { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); animation: beacon 2.4s ease-in-out infinite; }
.command-v2-hq span { color: var(--cyan); font-size: 12px; font-weight: 900; }
.command-v2-alerts { display: grid; gap: 12px; }
.command-v2-alert-critical { border-color: rgba(255,99,119,.38); }
.command-v2-alert-watch { border-color: rgba(216,183,92,.34); }
@keyframes commandV2Drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(54px,54px,0); } }
@media (max-width: 1200px) {
  .command-v2-hero { grid-template-columns: 1fr; }
  .command-v2-span-4, .command-v2-span-5, .command-v2-span-7, .command-v2-span-8 { grid-column: span 12; }
  .command-v2-hq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .command-v2-horizons, .command-v2-scoreboard, .command-v2-metrics, .command-v2-hq { grid-template-columns: 1fr; }
  .command-v2-hero { padding: 18px; }
  .command-v2-hero h2 { font-size: 42px; }
}

/* Command 2.0 globe bridge merge */
.command-v2-bridge {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px) 330px;
  min-height: 360px;
  align-items: center;
}
.command-v2-bridge-copy { align-self: center; }
.command-v2-globe-stage {
  position: relative;
  min-height: 330px;
  display: grid;
  place-items: center;
  perspective: 900px;
  isolation: isolate;
}
.command-v2-globe-stage::before {
  content: "";
  position: absolute;
  width: 92%;
  height: 36%;
  bottom: 20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(53,213,255,.18), rgba(19,92,255,.06) 42%, transparent 72%);
  filter: blur(8px);
  transform: rotateX(68deg);
}
.command-v2-globe {
  position: relative;
  width: clamp(250px, 28vw, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(53,213,255,.55);
  background:
    radial-gradient(circle at 32% 26%, rgba(231,237,247,.72), transparent 5%),
    radial-gradient(circle at 48% 44%, rgba(53,213,255,.18), transparent 28%),
    radial-gradient(circle at 52% 54%, rgba(19,92,255,.42), rgba(2,4,10,.84) 68%);
  box-shadow:
    inset -28px -24px 58px rgba(0,0,0,.78),
    inset 14px 12px 40px rgba(53,213,255,.18),
    0 0 38px rgba(53,213,255,.24),
    0 0 90px rgba(19,92,255,.18);
  transform-style: preserve-3d;
  animation: commandV2GlobeFloat 6s ease-in-out infinite;
  overflow: hidden;
}
.command-v2-globe::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: inherit;
  background:
    linear-gradient(120deg, transparent 0 32%, rgba(53,213,255,.24) 33% 34%, transparent 35% 100%),
    radial-gradient(circle at 38% 38%, transparent 0 31%, rgba(231,237,247,.14) 32% 33%, transparent 34% 100%);
  opacity: .8;
  animation: commandV2GlobeScan 11s linear infinite;
}
.command-v2-globe::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.18), transparent 42%);
  mix-blend-mode: screen;
}
.command-v2-globe .longitude,
.command-v2-globe .latitude {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(53,213,255,.26);
  border-radius: 50%;
}
.command-v2-globe .l1 { transform: rotateY(62deg); }
.command-v2-globe .l2 { transform: rotateY(118deg); }
.command-v2-globe .l3 { transform: rotateZ(90deg) rotateY(66deg); }
.command-v2-globe .a1 { transform: scaleY(.34); top: 22%; bottom: 22%; }
.command-v2-globe .a2 { transform: scaleY(.58); top: 13%; bottom: 13%; }
.command-v2-globe .a3 { transform: scaleY(.82); top: 6%; bottom: 6%; }
.command-v2-globe .node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan), 0 0 30px rgba(53,213,255,.5);
}
.command-v2-globe .n1 { top: 25%; left: 34%; }
.command-v2-globe .n2 { top: 42%; right: 25%; }
.command-v2-globe .n3 { bottom: 29%; left: 25%; }
.command-v2-globe .n4 { bottom: 23%; right: 35%; }
.command-v2-globe .n5 { top: 54%; left: 48%; background: var(--gold); box-shadow: 0 0 16px var(--gold), 0 0 30px rgba(214,177,95,.5); }
.command-v2-orbit {
  position: absolute;
  width: clamp(290px, 33vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(231,237,247,.18);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-18deg);
  box-shadow: 0 0 28px rgba(53,213,255,.08);
}
.command-v2-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  top: 12%;
  left: 49%;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.command-v2-orbit.orbit-two { width: clamp(330px, 37vw, 500px); transform: rotateX(70deg) rotateZ(28deg); opacity: .64; }
.command-v2-orbit.orbit-two::after { top: 77%; background: var(--gold); box-shadow: 0 0 16px var(--gold); }
.command-v2-globe-label {
  position: absolute;
  z-index: 2;
  min-width: 124px;
  padding: 10px 12px;
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 10px;
  background: rgba(2,4,10,.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0,0,0,.32);
}
.command-v2-globe-label strong { display: block; color: white; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-globe-label span { display: block; margin-top: 3px; color: var(--cyan); font-size: 13px; font-weight: 900; }
.command-v2-globe-label.label-a { top: 22px; left: 8px; }
.command-v2-globe-label.label-b { top: 58px; right: 0; border-color: rgba(255,99,119,.32); }
.command-v2-globe-label.label-b span { color: var(--red); }
.command-v2-globe-label.label-c { bottom: 62px; left: 0; }
.command-v2-globe-label.label-d { bottom: 28px; right: 18px; }
@keyframes commandV2GlobeFloat {
  0%, 100% { transform: translateY(0) rotateX(4deg) rotateY(-8deg); }
  50% { transform: translateY(-10px) rotateX(6deg) rotateY(8deg); }
}
@keyframes commandV2GlobeScan {
  from { transform: rotate(0deg) scale(1.03); }
  to { transform: rotate(360deg) scale(1.03); }
}
@media (max-width: 1350px) {
  .command-v2-bridge { grid-template-columns: 1fr 420px; }
  .command-v2-bridge .command-v2-brief-card { grid-column: span 2; }
}
@media (max-width: 980px) {
  .command-v2-bridge { grid-template-columns: 1fr; }
  .command-v2-bridge .command-v2-brief-card { grid-column: auto; }
  .command-v2-globe-stage { min-height: 300px; }
}

/* Command 2.0 Personal Performance module */
.command-v2-personal-panel {
  border-color: rgba(87,223,155,.22);
  background:
    radial-gradient(circle at 12% 20%, rgba(87,223,155,.10), transparent 28%),
    linear-gradient(180deg, rgba(8,14,27,.95), rgba(3,6,13,.96));
}
.command-v2-personal {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(360px, 1.6fr) minmax(260px, .9fr);
  gap: 14px;
  padding: 16px;
}
.command-v2-personal-hero,
.command-v2-personal-metric,
.command-v2-personal-focus {
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 12px;
  background: rgba(231,237,247,.035);
}
.command-v2-personal-hero {
  min-height: 245px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 12%, rgba(87,223,155,.16), transparent 28%),
    rgba(231,237,247,.035);
}
.command-v2-personal-hero strong { display: block; color: white; font-size: 24px; line-height: 1.05; letter-spacing: -.02em; }
.command-v2-personal-hero p,
.command-v2-personal-focus p,
.command-v2-personal-metric p { color: var(--silver-2); line-height: 1.45; }
.command-v2-personal-ring {
  --score: 0;
  width: 142px;
  aspect-ratio: 1;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(2,4,10,.96) 0 56%, transparent 57%),
    conic-gradient(var(--green) calc(var(--score) * 1%), rgba(231,237,247,.10) 0);
  box-shadow: 0 0 34px rgba(87,223,155,.18), inset 0 0 24px rgba(0,0,0,.55);
}
.command-v2-personal-ring span { color: white; font-size: 38px; font-weight: 1000; line-height: 1; }
.command-v2-personal-ring small { color: var(--silver-2); font-size: 10px; font-weight: 900; text-transform: uppercase; text-align: center; }
.command-v2-personal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.command-v2-personal-metric { min-height: 112px; padding: 14px; }
.command-v2-personal-metric span { color: var(--silver-2); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-personal-metric strong { display: block; margin-top: 10px; color: white; font-size: 22px; }
.command-v2-personal-watch { border-color: rgba(216,183,92,.28); }
.command-v2-personal-baseline { border-color: rgba(53,213,255,.20); }
.command-v2-personal-focus { padding: 16px; }
.command-v2-personal-focus h4 { margin: 0 0 12px; color: var(--green); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-personal-focus p { margin: 10px 0 0; padding-left: 12px; border-left: 2px solid rgba(87,223,155,.35); }
@media (max-width: 1250px) {
  .command-v2-personal { grid-template-columns: 1fr; }
  .command-v2-personal-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .command-v2-personal-metrics { grid-template-columns: 1fr; }
}

/* Command 2.0 Operating System refinement */
.command-v2-strategic-panel {
  border-color: rgba(214,177,95,.26);
  background:
    radial-gradient(circle at 78% 18%, rgba(214,177,95,.12), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(19,92,255,.18), transparent 34%),
    linear-gradient(180deg, rgba(8,14,27,.97), rgba(3,6,13,.96));
}
.command-v2-strategic-core {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(300px, 1fr) minmax(280px, .9fr);
  gap: 16px;
  padding: 18px 18px 0;
  align-items: stretch;
}
.command-v2-strategic-core blockquote {
  margin: 0;
  min-height: 170px;
  display: grid;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(214,177,95,.25);
  border-radius: 14px;
  color: white;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, rgba(214,177,95,.16), rgba(19,92,255,.12));
}
.command-v2-strategic-core p,
.command-v2-strategic-core strong {
  margin: 0;
  display: grid;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 14px;
  color: var(--silver-2);
  line-height: 1.55;
  background: rgba(231,237,247,.035);
}
.command-v2-strategic-core strong { color: white; border-color: rgba(53,213,255,.25); }
.command-v2-strategic-panel .command-v2-scores {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  display: grid;
  gap: 12px;
}
.command-v2-os-panel {
  border-color: rgba(53,213,255,.22);
}
.command-v2-os-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 18px;
  overflow: hidden;
}
.command-v2-os-flow article {
  position: relative;
  min-height: 230px;
  padding: 18px;
  border: 1px solid rgba(231,237,247,.12);
  background:
    linear-gradient(180deg, rgba(231,237,247,.05), rgba(231,237,247,.02)),
    rgba(2,4,10,.36);
}
.command-v2-os-flow article:first-child { border-radius: 14px 0 0 14px; }
.command-v2-os-flow article:last-child { border-radius: 0 14px 14px 0; }
.command-v2-os-flow article:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -13px;
  top: 50%;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: #040814;
  border: 1px solid rgba(53,213,255,.28);
  transform: translateY(-50%);
  font-weight: 1000;
}
.command-v2-os-flow span { color: var(--cyan); font-size: 12px; font-weight: 1000; }
.command-v2-os-flow strong { display: block; margin-top: 8px; color: white; font-size: 22px; }
.command-v2-os-flow p { color: var(--silver-2); line-height: 1.45; }
.command-v2-os-flow b { display: block; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-os-flow small { display: block; margin-top: 10px; color: var(--silver-2); font-weight: 800; line-height: 1.35; }
.command-v2-alert-critical:first-child,
.command-v2-alert-critical:nth-child(3) {
  background: linear-gradient(135deg, rgba(255,99,119,.12), rgba(231,237,247,.035));
}
@media (max-width: 1250px) {
  .command-v2-strategic-core,
  .command-v2-strategic-panel .command-v2-scores,
  .command-v2-os-flow { grid-template-columns: 1fr; }
  .command-v2-os-flow article,
  .command-v2-os-flow article:first-child,
  .command-v2-os-flow article:last-child { border-radius: 12px; margin-bottom: 10px; }
  .command-v2-os-flow article:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -18px; transform: translateX(50%); }
}

/* Command 2.0 interactive mission dashboard */
.command-v2-top-moves {
  margin: 16px 16px 0;
  padding: 14px;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(19,92,255,.14), rgba(231,237,247,.035));
}
.command-v2-top-moves > strong { display:block; color:white; font-size:14px; text-transform:uppercase; letter-spacing:.08em; }
.command-v2-top-moves > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:10px; }
.command-v2-top-moves article { display:grid; grid-template-columns:34px 1fr; gap:10px; padding:10px; border:1px solid rgba(231,237,247,.12); border-radius:10px; background:rgba(2,4,10,.42); }
.command-v2-top-moves span { display:grid; place-items:center; width:30px; height:30px; border-radius:8px; background:rgba(53,213,255,.16); color:var(--cyan); font-weight:1000; }
.command-v2-top-moves p { margin:0; color:white; font-weight:900; line-height:1.2; }
.command-v2-top-moves small { grid-column:2; color:var(--silver-2); font-weight:800; text-transform:uppercase; font-size:10px; }
.command-v2-mission-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.command-v2-mission-meta span { padding:6px 8px; border:1px solid rgba(231,237,247,.12); border-radius:999px; color:var(--silver-2); font-size:11px; font-weight:900; text-transform:uppercase; background:rgba(2,4,10,.38); }
.command-v2-priority-critical { border-color:rgba(255,99,119,.38); box-shadow:inset 3px 0 0 rgba(255,99,119,.8); }
.command-v2-priority-high { box-shadow:inset 3px 0 0 rgba(216,183,92,.8); }
.command-v2-status-completed { opacity:.72; }
.command-v2-status-completed .command-v2-rank { background:linear-gradient(135deg, rgba(87,223,155,.45), rgba(53,213,255,.12)); }
.command-v2-mission-detail { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.command-v2-mission-detail p { margin:0; padding:9px; border:1px solid rgba(231,237,247,.10); border-radius:8px; background:rgba(231,237,247,.025); font-size:12px; }
.command-v2-mission-detail b { color:white; }
.command-v2-mission-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.command-v2-mission-actions button,
.command-v2-quick-add button {
  border:1px solid rgba(53,213,255,.28);
  border-radius:9px;
  color:white;
  background:linear-gradient(135deg, rgba(19,92,255,.30), rgba(53,213,255,.08));
  padding:9px 11px;
  font-weight:900;
  cursor:pointer;
}
.command-v2-mission-actions button:hover,
.command-v2-quick-add button:hover { border-color:rgba(53,213,255,.65); box-shadow:0 0 18px rgba(53,213,255,.12); }
.command-v2-quick-add { display:grid; grid-template-columns:1fr auto; gap:10px; padding:0 16px 16px; }
.command-v2-quick-add input { width:100%; border:1px solid rgba(231,237,247,.14); border-radius:10px; background:rgba(2,4,10,.5); color:white; padding:12px; }
.command-v2-next-move { margin:0 16px 16px; padding:14px; border:1px solid rgba(214,177,95,.28); border-radius:12px; background:linear-gradient(135deg, rgba(214,177,95,.10), rgba(19,92,255,.08)); }
.command-v2-next-move strong { color:white; text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.command-v2-next-move p { color:white; font-weight:900; line-height:1.35; }
.command-v2-next-move small { color:var(--silver-2); line-height:1.4; }
.command-v2-weekly { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:16px; }
.command-v2-weekly article,
.command-v2-sunday section,
.command-v2-sunday article { border:1px solid rgba(231,237,247,.12); border-radius:12px; background:rgba(231,237,247,.035); padding:14px; }
.command-v2-weekly article > div { display:flex; justify-content:space-between; gap:10px; }
.command-v2-weekly strong,
.command-v2-sunday strong { color:white; }
.command-v2-weekly span,
.command-v2-sunday span { color:var(--cyan); font-size:11px; font-weight:1000; text-transform:uppercase; }
.command-v2-weekly p,
.command-v2-weekly small,
.command-v2-sunday p { color:var(--silver-2); line-height:1.4; }
.command-v2-sunday { display:grid; grid-template-columns:1.25fr repeat(5,1fr); gap:12px; padding:0 16px 16px; }
.command-v2-sunday h4 { margin:0 0 8px; color:var(--cyan); text-transform:uppercase; letter-spacing:.08em; font-size:12px; }
.command-v2-agent-completion { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:16px; }
.command-v2-agent-completion section { border:1px solid rgba(231,237,247,.12); border-radius:12px; padding:14px; background:rgba(231,237,247,.035); }
.command-v2-agent-completion h4 { margin:0 0 12px; color:var(--cyan); text-transform:uppercase; letter-spacing:.08em; }
.command-v2-agent-completion section > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.command-v2-agent-completion article { padding:12px; border:1px solid rgba(231,237,247,.10); border-radius:10px; background:rgba(2,4,10,.34); }
.command-v2-agent-completion strong { display:block; color:white; }
.command-v2-agent-completion span { display:block; margin-top:4px; color:var(--cyan); font-size:12px; font-weight:900; }
.command-v2-agent-completion p { color:var(--silver-2); margin:8px 0 0; font-size:12px; }
@media (max-width: 1300px) {
  .command-v2-weekly,
  .command-v2-sunday,
  .command-v2-agent-completion,
  .command-v2-agent-completion section > div { grid-template-columns:1fr 1fr; }
  .command-v2-mission-detail { grid-template-columns:1fr; }
}
@media (max-width: 760px) {
  .command-v2-top-moves > div,
  .command-v2-weekly,
  .command-v2-sunday,
  .command-v2-agent-completion,
  .command-v2-agent-completion section > div,
  .command-v2-quick-add { grid-template-columns:1fr; }
}

/* Command 2.0 executive KPI strip above globe */
.command-v2-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.command-v2-kpi-strip article {
  position: relative;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background:
    radial-gradient(circle at 82% 20%, rgba(53,213,255,.10), transparent 30%),
    linear-gradient(180deg, rgba(11,18,31,.92), rgba(5,8,16,.94));
  box-shadow: 0 18px 46px rgba(0,0,0,.34), inset 0 0 30px rgba(19,92,255,.05);
  overflow: hidden;
}
.command-v2-kpi-strip article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--cyan), transparent);
  box-shadow: 0 0 18px rgba(53,213,255,.8);
}
.command-v2-kpi-strip span {
  display: block;
  color: var(--silver-2);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.command-v2-kpi-strip strong {
  display: block;
  margin-top: 12px;
  color: white;
  font-size: clamp(28px, 3vw, 42px);
  line-height: .9;
  letter-spacing: -.04em;
}
.command-v2-kpi-strip p {
  margin: 12px 0 0;
  max-width: 320px;
  color: var(--silver-2);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}
@media (max-width: 1100px) {
  .command-v2-kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .command-v2-kpi-strip { grid-template-columns: 1fr; }
}

/* Command 2.0 hero title reduction */
.command-v2-bridge-copy-minimal {
  align-self: center;
  max-width: 420px;
}
.command-v2-bridge-copy-minimal .eyebrow {
  margin: 0;
  color: var(--cyan);
}
.command-v2-objective-line {
  margin-top: 14px !important;
  padding: 14px 16px;
  border: 1px solid rgba(53,213,255,.20);
  border-radius: 12px;
  background: rgba(2,4,10,.44);
  font-size: 14px !important;
  line-height: 1.5 !important;
}
@media (min-width: 1351px) {
  .command-v2-bridge { grid-template-columns: minmax(260px, .72fr) minmax(360px, 560px) 330px; }
}

/* Dominus Entrepreneur XP Engine */
.command-v2-xp-panel {
  border-color: rgba(214,177,95,.28);
  background:
    radial-gradient(circle at 18% 18%, rgba(214,177,95,.12), transparent 30%),
    radial-gradient(circle at 78% 22%, rgba(53,213,255,.12), transparent 28%),
    linear-gradient(180deg, rgba(8,14,27,.97), rgba(3,6,13,.96));
}
.command-v2-xp-engine { padding: 16px; display: grid; gap: 14px; }
.command-v2-xp-scoreboard { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 12px; }
.command-v2-xp-scoreboard article,
.command-v2-command-components article,
.command-v2-xp-categories article,
.command-v2-xp-widgets article,
.command-v2-xp-ledger article,
.command-v2-proof-rules {
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 12px;
  background: rgba(231,237,247,.035);
  padding: 14px;
}
.command-v2-xp-scoreboard span,
.command-v2-xp-categories span,
.command-v2-xp-widgets span,
.command-v2-xp-ledger span { color: var(--silver-2); font-size: 11px; font-weight: 1000; text-transform: uppercase; letter-spacing: .08em; }
.command-v2-xp-scoreboard strong { display:block; margin-top:10px; color:white; font-size: clamp(24px, 3vw, 42px); line-height: .95; }
.command-v2-command-score { background: linear-gradient(135deg, rgba(214,177,95,.18), rgba(19,92,255,.12)) !important; border-color: rgba(214,177,95,.30) !important; }
.command-v2-command-score strong { font-size: 60px; }
.command-v2-command-score b { color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.command-v2-level-track { padding: 10px 2px; }
.command-v2-level-track div { height: 12px; border-radius: 999px; background: rgba(231,237,247,.08); overflow: hidden; }
.command-v2-level-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg, var(--gold), var(--cyan)); box-shadow:0 0 18px rgba(214,177,95,.45); }
.command-v2-level-track p { margin:8px 0 0; color: var(--silver-2); font-weight: 900; }
.command-v2-command-components { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
.command-v2-command-components article > div { display:flex; justify-content:space-between; gap:10px; }
.command-v2-command-components strong,
.command-v2-xp-categories strong,
.command-v2-xp-ledger strong { color:white; }
.command-v2-command-components b,
.command-v2-xp-categories b,
.command-v2-xp-ledger b { color: var(--cyan); }
.command-v2-command-components small,
.command-v2-xp-categories small,
.command-v2-xp-ledger small { color: var(--silver-2); font-weight: 800; text-transform: uppercase; }
.command-v2-xp-categories { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
.command-v2-xp-categories strong { display:block; margin-top:10px; font-size:24px; }
.command-v2-xp-categories p { color: var(--silver-2); line-height:1.4; }
.command-v2-xp-widgets { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.command-v2-xp-widgets strong { display:block; margin-top:8px; color:white; font-size:16px; line-height:1.25; }
.command-v2-xp-ledger { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }
.command-v2-xp-ledger h4,
.command-v2-proof-rules h4 { grid-column: 1 / -1; margin:0; color:var(--gold); text-transform:uppercase; letter-spacing:.08em; font-size:13px; }
.command-v2-proof-rules { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:10px; }
.command-v2-proof-rules h4 { grid-column:1 / -1; }
.command-v2-proof-rules p { margin:0; padding-left:10px; border-left:2px solid rgba(214,177,95,.35); color:var(--silver-2); line-height:1.4; font-size:13px; }
@media (max-width: 1250px) {
  .command-v2-xp-scoreboard,
  .command-v2-command-components,
  .command-v2-xp-categories,
  .command-v2-xp-widgets,
  .command-v2-xp-ledger,
  .command-v2-proof-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .command-v2-xp-scoreboard,
  .command-v2-command-components,
  .command-v2-xp-categories,
  .command-v2-xp-widgets,
  .command-v2-xp-ledger,
  .command-v2-proof-rules { grid-template-columns: 1fr; }
}

/* XP Engine team-review guardrails */
.command-v2-xp-guardrails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.command-v2-xp-guardrails article {
  border: 1px solid rgba(214,177,95,.20);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(214,177,95,.08), rgba(231,237,247,.03));
}
.command-v2-xp-guardrails h4 {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}
.command-v2-xp-guardrails p {
  margin: 9px 0 0;
  padding-left: 10px;
  border-left: 2px solid rgba(214,177,95,.35);
  color: var(--silver-2);
  line-height: 1.4;
  font-size: 13px;
}
.command-v2-xp-guardrails small {
  display: block;
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 900;
}
@media (max-width: 1100px) {
  .command-v2-xp-guardrails { grid-template-columns: 1fr; }
}

/* Dominus tab XP engine placement */
.dominus-xp-engine-panel {
  margin: 16px 0;
}
.dominus-xp-engine-panel > header span {
  width: 34px;
}

/* Dominus should open directly as the scoreboard, without global Command Center title */
body[data-active-view="dominus"] .hero {
  display: none;
}
body[data-active-view="dominus"] .dominus-header {
  margin-top: 0;
}

/* Social scheduled posting queue visibility */
.scheduled-posting-details summary {
  cursor: pointer;
  color: white;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 0 16px;
}
.scheduled-posting-queue {
  display: grid;
  gap: 12px;
}
.scheduled-posting-card {
  border: 1px solid rgba(231,237,247,.14);
  border-radius: 12px;
  background: rgba(231,237,247,.035);
  padding: 14px;
}
.scheduled-posting-card.not-posted {
  border-color: rgba(255,99,119,.35);
  box-shadow: inset 3px 0 0 rgba(255,99,119,.72);
}
.scheduled-posting-card.posted {
  border-color: rgba(87,223,155,.35);
  box-shadow: inset 3px 0 0 rgba(87,223,155,.72);
}
.scheduled-posting-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.scheduled-posting-card strong { color: white; }
.scheduled-posting-card span { color: var(--cyan); font-weight: 900; font-size: 12px; text-transform: uppercase; }
.scheduled-posting-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}
.scheduled-posting-card dt { color: var(--silver-2); font-size: 11px; font-weight: 1000; text-transform: uppercase; }
.scheduled-posting-card dd { margin: 4px 0 0; color: white; font-weight: 800; overflow-wrap: anywhere; }
.scheduled-posting-card a { color: var(--cyan); }
.scheduled-posting-issue {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,99,119,.08);
  color: var(--silver-2);
  line-height: 1.45;
}
@media (max-width: 980px) {
  .scheduled-posting-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .scheduled-posting-card > div:first-child,
  .scheduled-posting-card dl { grid-template-columns: 1fr; display: grid; }
}

.posting-pipeline-warning {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(255,99,119,.34);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,99,119,.10), rgba(231,237,247,.035));
}
.posting-pipeline-warning strong { color: white; }
.posting-pipeline-warning p { margin: 8px 0 0; color: var(--silver-2); line-height: 1.45; }

.publisher-activation-status article {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(19,92,255,.12), rgba(231,237,247,.035));
}
.publisher-activation-status article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.publisher-activation-status strong { color: white; }
.publisher-activation-status p,
.publisher-activation-status small { color: var(--silver-2); line-height: 1.45; }
.publisher-status-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.publisher-status-grid section {
  padding: 10px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.publisher-status-grid span { color: var(--silver-2); font-size: 11px; font-weight: 1000; text-transform: uppercase; }
.publisher-status-grid strong { display: block; margin-top: 5px; font-size: 24px; }
@media (max-width: 880px) {
  .publisher-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .publisher-status-grid { grid-template-columns: 1fr; }
}

.direct-api-readiness {
  margin-top: 12px;
}
.direct-api-readiness > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.direct-api-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.direct-api-platform-grid section {
  padding: 12px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.direct-api-platform-grid section.ready { border-color: rgba(87,223,155,.32); box-shadow: inset 3px 0 0 rgba(87,223,155,.72); }
.direct-api-platform-grid section.blocked { border-color: rgba(255,99,119,.34); box-shadow: inset 3px 0 0 rgba(255,99,119,.72); }
.direct-api-platform-grid strong { display: block; color: white; }
.direct-api-platform-grid span { display: block; margin-top: 4px; color: var(--silver-2); font-size: 12px; }
.direct-api-platform-grid b { display: block; margin-top: 8px; color: var(--cyan); font-size: 12px; text-transform: uppercase; }
.direct-api-platform-grid p { color: var(--silver-2); line-height: 1.35; font-size: 12px; }
@media (max-width: 1100px) {
  .direct-api-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .direct-api-platform-grid { grid-template-columns: 1fr; }
}

.executor-preview {
  margin-top: 12px;
}
.executor-preview > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.executor-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.executor-preview-grid section {
  padding: 12px;
  border: 1px solid rgba(216,183,92,.26);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.executor-preview-grid strong { display: block; color: white; text-transform: capitalize; }
.executor-preview-grid span { display: block; margin-top: 6px; color: var(--silver-2); font-size: 12px; font-weight: 850; }
@media (max-width: 980px) {
  .executor-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .executor-preview-grid { grid-template-columns: 1fr; }
}

.eligible-release-panel {
  margin-top: 12px;
}
.eligible-release-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.eligible-release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.eligible-release-grid section {
  padding: 12px;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.eligible-release-grid strong { display: block; color: white; text-transform: capitalize; }
.eligible-release-grid span { display: block; margin-top: 6px; color: var(--silver-2); font-size: 12px; font-weight: 850; }
@media (max-width: 860px) {
  .eligible-release-grid { grid-template-columns: 1fr; }
}

.publishing-recovery-checklist {
  margin-top: 12px;
}
.publishing-recovery-checklist > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.recovery-step-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.recovery-step-grid section {
  min-height: 174px;
  padding: 12px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.recovery-step-grid section span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(53,213,255,.12);
  font-weight: 1000;
}
.recovery-step-grid strong { display: block; margin-top: 10px; color: white; line-height: 1.2; }
.recovery-step-grid b { display: block; margin-top: 8px; color: var(--gold); text-transform: uppercase; font-size: 11px; }
.recovery-step-grid p,
.recovery-step-grid small { color: var(--silver-2); line-height: 1.35; font-size: 12px; }
.recovery-step-available { border-color: rgba(87,223,155,.30) !important; }
.recovery-step-needed { border-color: rgba(216,183,92,.26) !important; }
.recovery-step-requires_approval { border-color: rgba(255,99,119,.34) !important; }
.recovery-current-blocker {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(255,99,119,.28);
  border-radius: 10px;
  background: rgba(255,99,119,.07);
}
.recovery-current-blocker strong { color: white; }
.recovery-current-blocker p { margin: 0; color: var(--silver-2); line-height: 1.4; }
@media (max-width: 1300px) {
  .recovery-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .recovery-step-grid,
  .recovery-current-blocker { grid-template-columns: 1fr; }
}

.scheduled-posting-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.scheduled-posting-actions button {
  border: 1px solid rgba(53,213,255,.28);
  border-radius: 9px;
  color: white;
  background: linear-gradient(135deg, rgba(19,92,255,.30), rgba(53,213,255,.08));
  padding: 9px 11px;
  font-weight: 900;
  cursor: pointer;
}
.scheduled-posting-actions button:hover { border-color: rgba(53,213,255,.65); }

.recovered-approval-list {
  display: grid;
  gap: 12px;
}
.recovered-approval-card {
  padding: 12px;
  border: 1px solid rgba(53,213,255,.22);
  border-radius: 10px;
  background: rgba(2,4,10,.38);
}
.recovered-approval-card strong { display: block; color: white; }
.recovered-approval-card span { display: block; margin-top: 4px; color: var(--cyan); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.recovered-approval-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.recovered-approval-card dt { color: var(--silver-2); font-size: 10px; font-weight: 1000; text-transform: uppercase; }
.recovered-approval-card dd { margin: 3px 0 0; color: white; font-size: 12px; overflow-wrap: anywhere; }
.recovered-approval-card p,
.recovered-approval-card small { color: var(--silver-2); line-height: 1.35; }
.recovered-approval-card.empty { border-color: rgba(231,237,247,.12); }
@media (max-width: 680px) { .recovered-approval-card dl { grid-template-columns: 1fr; } }

.release-control-summary {
  margin-bottom: 12px;
  border-color: rgba(216,183,92,.28) !important;
  background: linear-gradient(135deg, rgba(216,183,92,.10), rgba(19,92,255,.08)) !important;
}
.release-control-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.release-control-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.release-control-grid section {
  padding: 12px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background: rgba(2,4,10,.42);
}
.release-control-grid span {
  display: block;
  color: var(--silver-2);
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.release-control-grid strong {
  display: block;
  margin-top: 6px;
  color: white;
  font-size: 26px;
}
@media (max-width: 1100px) {
  .release-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .release-control-grid { grid-template-columns: 1fr; }
}

.publisher-go-live-checklist {
  margin-top: 12px;
  border-color: rgba(255,99,119,.32) !important;
  background: linear-gradient(135deg, rgba(255,99,119,.09), rgba(231,237,247,.035)) !important;
}
.publisher-go-live-checklist > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.go-live-gate-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.go-live-gate-grid section {
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(231,237,247,.12);
  border-radius: 10px;
  background: rgba(2,4,10,.42);
}
.go-live-gate-grid strong { display: block; color: white; line-height: 1.2; }
.go-live-gate-grid b { display: block; margin-top: 8px; color: var(--gold); font-size: 11px; text-transform: uppercase; }
.go-live-gate-grid p { color: var(--silver-2); line-height: 1.35; font-size: 12px; }
.go-live-blocked, .go-live-locked { border-color: rgba(255,99,119,.34) !important; }
.go-live-after_publish { border-color: rgba(53,213,255,.26) !important; }
.go-live-current-decision {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 14px;
  padding: 12px;
  border: 1px solid rgba(216,183,92,.28);
  border-radius: 10px;
  background: rgba(216,183,92,.07);
}
.go-live-current-decision strong { color: white; }
.go-live-current-decision p { margin: 0; color: var(--silver-2); line-height: 1.4; }
@media (max-width: 1300px) {
  .go-live-gate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .go-live-gate-grid,
  .go-live-current-decision { grid-template-columns: 1fr; }
}

.scheduled-manual-package {
  margin-top: 12px;
  border: 1px solid rgba(53,213,255,.18);
  border-radius: 10px;
  padding: 10px;
  background: rgba(2,4,10,.30);
}
.scheduled-manual-package summary {
  cursor: pointer;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.scheduled-manual-package dl {
  margin-top: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.scheduled-manual-package dd {
  white-space: pre-wrap;
}
@media (max-width: 760px) {
  .scheduled-manual-package dl { grid-template-columns: 1fr; }
}

.scheduled-copy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.scheduled-copy-actions button {
  border: 1px solid rgba(231,237,247,.16);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(2,4,10,.46);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.scheduled-copy-actions button:hover { border-color: rgba(53,213,255,.55); color: white; }
