:root {
  --void: #06090d;
  --space: #0c1118;
  --space-2: #121923;
  --space-3: #1b2633;
  --ink: #111827;
  --muted: #738194;
  --paper: #eef2f5;
  --paper-2: #f8fafc;
  --line: rgba(132, 151, 176, 0.26);
  --glass: rgba(255, 255, 255, 0.78);
  --cyan: #00b7b7;
  --cyan-soft: rgba(0, 183, 183, 0.16);
  --gold: #d8ad43;
  --gold-soft: rgba(216, 173, 67, 0.18);
  --red: #c33a3a;
  --orange: #c97125;
  --green: #18894d;
  --shadow: 0 28px 80px rgba(5, 9, 13, 0.3);
  --soft-shadow: 0 18px 44px rgba(17, 24, 39, 0.12);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 183, 183, 0.12), transparent 28%),
    radial-gradient(circle at 86% 16%, rgba(216, 173, 67, 0.13), transparent 26%),
    linear-gradient(135deg, #e9eef2, #f8fafc);
}

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.hidden { display: none !important; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; letter-spacing: 0; }

.login-screen,
.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 183, 183, 0.26), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(216, 173, 67, 0.18), transparent 28%),
    linear-gradient(135deg, #05080c, #121923 58%, #0a2a2b);
}

.login-shell {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(310px, 520px) minmax(320px, 430px);
  gap: 42px;
  align-items: stretch;
}

.brand-mark {
  min-height: 560px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0, rgba(255, 255, 255, 0.045) 1px, transparent 1px, transparent 46px);
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: min(350px, 74vw);
  filter: drop-shadow(0 30px 48px rgba(0, 0, 0, 0.5));
}

.login-intel {
  width: min(390px, 100%);
  padding: 16px 18px;
  border: 1px solid rgba(216, 173, 67, 0.34);
  border-radius: 8px;
  background: rgba(6, 9, 13, 0.64);
}

.login-intel span,
.login-intel strong { display: block; }

.login-intel span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-intel strong {
  margin-top: 4px;
  font-size: 22px;
}

.login-panel {
  position: relative;
  align-self: center;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.94));
  box-shadow: var(--shadow);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), #de6355);
}

.login-panel h1 {
  margin-bottom: 28px;
  color: var(--space);
  font-size: 35px;
}

.login-panel label,
.dialog-fields label,
.filter-row label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.login-panel label + label,
.login-panel label + button { margin-top: 16px; }

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(132, 151, 176, 0.38);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 183, 183, 0.14);
}

.primary-action,
.ghost-action,
.danger-action,
.icon-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.primary-action {
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, #0c1118, #20364a 58%, #058d8d);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.primary-action:hover { background: linear-gradient(135deg, #121923, #058d8d 58%, #d8ad43); }

.ghost-action {
  padding: 10px 14px;
  color: var(--space);
  background: #e5ecf1;
}

.danger-action {
  padding: 10px 14px;
  color: var(--red);
  background: #fff0f0;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  color: var(--space);
  background: #e5ecf1;
}

.ghost-action:hover,
.icon-button:hover { background: #d8e3eb; }

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.loading-card {
  width: min(470px, 100%);
  padding: 30px;
  display: grid;
  justify-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(6, 9, 13, 0.68);
  box-shadow: var(--shadow);
}

.loading-card img {
  width: 136px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.44));
}

.loading-card .eyebrow { color: #cbd5e1; }

.loading-grid {
  width: 180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0;
}

.loading-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  animation: pulseCell 1.1s ease-in-out infinite;
}

.loading-grid span:nth-child(2),
.loading-grid span:nth-child(4),
.loading-grid span:nth-child(9) { animation-delay: 0.16s; }

.loading-grid span:nth-child(3),
.loading-grid span:nth-child(5),
.loading-grid span:nth-child(7) { animation-delay: 0.32s; }

.loading-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.loading-bar span {
  display: block;
  width: 54%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #f0d37a);
  animation: loadingSweep 0.9s ease-in-out infinite alternate;
}

@keyframes pulseCell {
  0%, 100% { transform: scale(0.94); background: rgba(255, 255, 255, 0.12); }
  50% { transform: scale(1); background: rgba(216, 173, 67, 0.82); }
}

@keyframes loadingSweep {
  from { transform: translateX(-42%); }
  to { transform: translateX(88%); }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background:
    radial-gradient(circle at 14% 0%, rgba(0, 183, 183, 0.12), transparent 28%),
    radial-gradient(circle at 90% 4%, rgba(216, 173, 67, 0.14), transparent 24%),
    linear-gradient(135deg, #e7edf1, #f8fafc);
}

.ops-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(320px, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 9, 13, 0.98), rgba(18, 25, 35, 0.96)),
    var(--space);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 52px rgba(6, 9, 13, 0.28);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.36));
}

.ops-brand span,
.ops-status {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-brand strong {
  display: block;
  color: #fff;
  font-size: 22px;
}

.command-search {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.command-search .icon { color: var(--gold); }

.command-search input {
  min-height: 36px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

.command-search input::placeholder { color: #9fb0c5; }

.command-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(520px, calc(100vh - 130px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(12, 17, 24, 0.98), rgba(25, 35, 49, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.suggestion-group { display: grid; gap: 7px; }

.suggestion-group + .suggestion-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.suggestion-group > span {
  color: #9fb0c5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.suggestion-item {
  min-height: 58px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.suggestion-item:hover {
  border-color: rgba(216, 173, 67, 0.54);
  background: linear-gradient(90deg, rgba(216, 173, 67, 0.16), rgba(0, 183, 183, 0.1));
}

.suggestion-item small,
.suggestion-empty {
  margin: 0;
  color: #a9b8c8;
  font-size: 12px;
  font-weight: 800;
}

.ops-status {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--space-3);
  font-size: 12px;
}

.status-pill.online { background: var(--green); }

.ops-status .ghost-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.module-dock {
  position: sticky;
  top: 86px;
  z-index: 12;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: repeat(10, minmax(82px, 1fr));
  gap: 8px;
  background: rgba(248, 250, 252, 0.82);
  border-bottom: 1px solid rgba(132, 151, 176, 0.22);
  backdrop-filter: blur(16px);
}

.nav-item {
  min-height: 58px;
  padding: 8px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(132, 151, 176, 0.22);
  border-radius: 8px;
  color: var(--space-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-item .icon {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

.nav-item:hover,
.nav-item.active {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(216, 173, 67, 0.58);
  background: linear-gradient(135deg, var(--space), var(--space-3));
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.16);
}

.ops-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 314px;
  gap: 20px;
  padding: 20px;
}

.main-area { min-width: 0; }

.view { display: none; }
.active-view { display: block; }

.insight-rail {
  position: sticky;
  top: 174px;
  height: calc(100vh - 194px);
  display: grid;
  align-content: start;
  gap: 14px;
}

.agent-card,
.rail-card,
.data-wall,
.stat-card,
.record-card,
.panel,
.module-cover {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.84));
  box-shadow: var(--soft-shadow);
}

.agent-card {
  padding: 15px;
  display: grid;
  gap: 10px;
}

.agent-card span,
.agent-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.agent-card strong {
  display: block;
  color: var(--space);
  font-size: 18px;
}

.side-intel {
  display: grid;
  gap: 14px;
}

.rail-card {
  padding: 14px;
}

.rail-score {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(12, 17, 24, 0.96), rgba(27, 38, 51, 0.92)),
    var(--space);
}

.rail-score span,
.rail-score small {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rail-score strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 48px;
  line-height: 1;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rail-head h3 {
  color: var(--space);
  font-size: 15px;
}

.rail-head span {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e4ebf1;
  color: var(--space);
  font-size: 12px;
  font-weight: 900;
}

.rail-list {
  display: grid;
  gap: 8px;
}

.rail-list button {
  padding: 10px;
  display: grid;
  gap: 3px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.rail-list button:hover {
  border-color: rgba(216, 173, 67, 0.58);
}

.rail-list strong { color: var(--space); }
.rail-list small,
.rail-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: 18px;
}

.briefing-stage {
  position: relative;
  min-height: 360px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: end;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 183, 183, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(6, 9, 13, 0.98), rgba(27, 38, 51, 0.92)),
    var(--space);
  box-shadow: var(--shadow);
}

.briefing-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold), #de6355);
}

.briefing-copy {
  position: relative;
  z-index: 1;
}

.briefing-copy .eyebrow { color: #cbd5e1; }

.briefing-copy h3 {
  max-width: 760px;
  color: #fff;
  font-size: 42px;
  line-height: 1.03;
}

.briefing-copy p {
  max-width: 700px;
  margin: 12px 0 0;
  color: #dbe5ef;
  line-height: 1.55;
}

.briefing-actions {
  position: absolute;
  left: 28px;
  top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.briefing-actions button {
  min-height: 38px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.briefing-actions button:hover {
  border-color: rgba(216, 173, 67, 0.58);
}

.signal-ring {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(216, 173, 67, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 183, 183, 0.18), rgba(255, 255, 255, 0.04));
}

.signal-ring::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.signal-ring strong {
  color: #fff;
  font-size: 52px;
}

.signal-ring span {
  color: #cbd5e1;
  font-weight: 900;
}

.metric-lanes {
  display: grid;
  gap: 14px;
}

.stat-card {
  min-height: 80px;
  padding: 15px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-align: left;
  border-left: 3px solid var(--cyan);
}

.stat-card span,
.stat-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--space);
  font-size: 30px;
}

.data-wall {
  padding: 18px;
}

.wide-wall { grid-column: 1 / 2; }
.audit-wall { grid-column: 2 / 3; }

.panel-head {
  min-height: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h3,
.panel-head h3,
.toolbar h3 {
  color: var(--space);
  font-size: 18px;
}

.soft-count {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--space);
  background: #e3eaf0;
  font-size: 12px;
  font-weight: 900;
}

.sector-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sector-tile {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 15px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(0, 183, 183, 0.28);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(6, 9, 13, 0.96), rgba(27, 38, 51, 0.92));
  text-align: left;
}

.sector-tile::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(216, 173, 67, 0.42);
  border-radius: 50%;
}

.sector-tile strong,
.sector-tile span,
.sector-tile b {
  position: relative;
  z-index: 1;
}

.sector-tile span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sector-tile b {
  color: #f0d37a;
  font-size: 36px;
}

.intel-feed,
.timeline,
.case-radar,
.mini-list {
  display: grid;
  gap: 10px;
}

.intel-row,
.radar-row,
.mini-row,
.audit-row {
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.intel-row {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  display: grid;
  gap: 4px;
  color: var(--ink);
  text-align: left;
}

.intel-row span,
.intel-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intel-row strong {
  color: var(--space);
  font-size: 14px;
}

.radar-row {
  width: 100%;
  min-height: 66px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 34%);
  gap: 14px;
  align-items: center;
  color: var(--ink);
  text-align: left;
}

.radar-row strong,
.radar-row small { display: block; }
.radar-row strong { color: var(--space); }

.radar-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.radar-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #d7e1e8;
}

.radar-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.audit-row {
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--cyan);
}

.audit-row span,
.audit-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.audit-row strong {
  color: var(--space);
  font-size: 13px;
}

.mini-row {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.mini-row strong {
  display: block;
  color: var(--space);
}

.mini-row span {
  color: var(--muted);
  font-size: 13px;
}

.module-cover {
  min-height: 170px;
  margin-bottom: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  gap: 18px;
  align-items: end;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 183, 183, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(6, 9, 13, 0.96), rgba(27, 38, 51, 0.9));
  box-shadow: var(--shadow);
}

.module-cover::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(216, 173, 67, 0.36);
  border-radius: 50%;
}

.module-cover .eyebrow { color: #cbd5e1; }

.module-cover h3 {
  color: #fff;
  font-size: 32px;
}

.module-cover span {
  display: block;
  max-width: 720px;
  margin-top: 8px;
  color: #dbe5ef;
}

.module-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.module-metrics button {
  min-height: 86px;
  padding: 12px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.module-metrics button:hover {
  border-color: rgba(216, 173, 67, 0.5);
  background: rgba(216, 173, 67, 0.12);
}

.module-metrics strong { font-size: 30px; }

.module-metrics small {
  color: #cbd5e1;
  font-weight: 900;
  text-transform: uppercase;
}

.toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-row {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
  gap: 14px;
}

.record-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  border-top: 3px solid #cfd9e6;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.record-card::before {
  content: "";
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.record-card:hover,
.stat-card:hover,
.sector-tile:hover,
.intel-row:hover,
.radar-row:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 173, 67, 0.58);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.14);
}

.record-card.featured-card { border-top-color: var(--gold); }

.record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.record-top h3 {
  color: var(--space);
  font-size: 18px;
}

.record-meta {
  display: grid;
  gap: 7px;
  color: #475467;
  font-size: 13px;
}

.record-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  width: max-content;
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--space-3);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge.green { background: var(--green); }
.badge.red { background: var(--red); }
.badge.orange { background: var(--orange); }
.badge.gold { color: #1f2937; background: #f0d37a; }

.empty-state {
  padding: 28px;
  border: 1px dashed #aebdcc;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-weight: 800;
}

.settings-grid {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  gap: 14px;
}

.settings-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.settings-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.arsys-card { border-top: 3px solid var(--gold); }
.audit-panel { margin-top: 18px; }

.record-dialog {
  width: min(880px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.record-dialog::backdrop { background: rgba(6, 9, 13, 0.7); }

.record-dialog form {
  padding: 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.dialog-head,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-fields {
  margin: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dialog-fields .wide { grid-column: 1 / -1; }

.check-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  border: 1px solid rgba(132, 151, 176, 0.38);
  border-radius: 8px;
  background: #fff;
}

.check-grid label {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.check-grid input {
  width: 16px;
  min-height: 16px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(380px, calc(100vw - 44px));
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--space);
  box-shadow: var(--shadow);
  font-weight: 900;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 183, 183, 0.14), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(216, 173, 67, 0.12), transparent 24%),
    linear-gradient(135deg, #070b10, #111923 48%, #0a1f22);
}

.app-shell {
  color: #e5edf5;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 183, 183, 0.16), transparent 28%),
    radial-gradient(circle at 92% 6%, rgba(216, 173, 67, 0.12), transparent 24%),
    linear-gradient(135deg, #070b10, #111923 52%, #0b151c);
}

.module-dock {
  background: rgba(9, 13, 18, 0.74);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-item {
  color: #d9e5ef;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.agent-card,
.rail-card,
.data-wall,
.stat-card,
.record-card,
.panel,
.settings-card {
  color: #e5edf5;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.24);
}

.panel h3,
.panel-head h3,
.toolbar h3,
.record-top h3,
.rail-head h3,
.agent-card strong,
.stat-card strong,
.intel-row strong,
.radar-row strong,
.audit-row strong,
.mini-row strong,
.settings-card h3 {
  color: #ffffff;
}

.toolbar .eyebrow,
.record-meta,
.settings-card p,
.rail-list small,
.rail-empty,
.audit-row span,
.audit-row small,
.intel-row span,
.intel-row small,
.radar-row small,
.mini-row span,
.stat-card span,
.stat-card small,
.agent-card span,
.agent-card small {
  color: #aebdcb;
}

.soft-count,
.rail-head span {
  color: #eaf3fa;
  background: rgba(255, 255, 255, 0.1);
}

.rail-list button,
.intel-row,
.radar-row,
.mini-row,
.audit-row {
  color: #e5edf5;
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
}

.filter-row label,
.dialog-fields label {
  color: #d8e2ec;
}

.record-dialog form {
  color: #e5edf5;
  background: linear-gradient(180deg, #111923, #0b121a);
}

input,
select,
textarea {
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #8394a8;
}

.check-grid {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
}

.empty-state {
  color: #aebdcb;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.login-panel input {
  color: var(--ink);
  background: #fff;
  border-color: rgba(132, 151, 176, 0.38);
}

.login-panel input::placeholder {
  color: #7b8794;
}

/* FiveM police PDA visual layer */
:root {
  --pda-blue: #1fb6ff;
  --pda-blue-soft: rgba(31, 182, 255, 0.18);
  --pda-amber: #ffd166;
  --pda-red: #ff4d5e;
  --pda-green: #42d77d;
  --pda-panel: rgba(10, 18, 28, 0.86);
  --pda-panel-2: rgba(14, 27, 42, 0.92);
  --pda-border: rgba(96, 176, 224, 0.28);
}

body {
  background:
    radial-gradient(circle at 50% -10%, rgba(31, 182, 255, 0.2), transparent 34%),
    radial-gradient(circle at 14% 84%, rgba(255, 209, 102, 0.08), transparent 24%),
    linear-gradient(135deg, #02060a, #06101a 42%, #03070c);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.8) 4px);
}

.login-screen,
.loading-screen {
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 182, 255, 0.22), transparent 36%),
    linear-gradient(135deg, #02060a, #071521 54%, #03070c);
}

.brand-mark,
.login-panel,
.loading-card {
  border: 2px solid rgba(31, 182, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(15, 30, 46, 0.92), rgba(6, 12, 20, 0.92));
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.18),
    0 34px 90px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-panel {
  color: #eaf6ff;
}

.login-panel h1,
.login-panel .eyebrow {
  color: #eaf6ff;
}

.login-panel label {
  color: #b9d8ec;
}

.login-panel input {
  min-height: 46px;
  color: #eaf6ff;
  background: rgba(1, 7, 12, 0.82);
  border-color: rgba(31, 182, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.login-panel input::placeholder {
  color: #7393aa;
}

.app-shell {
  width: min(1760px, calc(100vw - 28px));
  min-height: calc(100vh - 28px);
  margin: 14px auto;
  overflow: hidden;
  border: 10px solid #05080d;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 19, 31, 0.98), rgba(4, 9, 15, 0.98)),
    #05080d;
  box-shadow:
    0 0 0 2px rgba(31, 182, 255, 0.22),
    0 38px 120px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell::before {
  content: "MVPD PDA / CAD-MDT";
  position: fixed;
  left: 28px;
  bottom: 20px;
  z-index: 8;
  color: rgba(185, 216, 236, 0.52);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.ops-header {
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.98), rgba(11, 28, 45, 0.98)),
    #06101a;
  border-bottom: 1px solid rgba(31, 182, 255, 0.26);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.44),
    inset 0 -1px 0 rgba(31, 182, 255, 0.12);
}

.ops-brand strong {
  color: #eaf6ff;
  text-shadow: 0 0 16px rgba(31, 182, 255, 0.32);
}

.ops-brand span,
.ops-status,
.status-strip {
  color: #94c8e8;
}

.command-search {
  border-color: rgba(31, 182, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(13, 34, 52, 0.72), rgba(4, 11, 18, 0.72));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.command-search .icon,
.nav-item .icon {
  color: var(--pda-blue);
  filter: drop-shadow(0 0 8px rgba(31, 182, 255, 0.38));
}

.command-suggestions {
  border-color: rgba(31, 182, 255, 0.28);
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.98), rgba(2, 8, 14, 0.98));
}

.module-dock {
  background:
    linear-gradient(180deg, rgba(6, 16, 26, 0.92), rgba(3, 8, 14, 0.88));
  border-bottom-color: rgba(31, 182, 255, 0.2);
}

.nav-item {
  color: #b9d8ec;
  border-color: rgba(31, 182, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(12, 29, 45, 0.78), rgba(5, 12, 20, 0.78));
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  border-color: rgba(31, 182, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(31, 182, 255, 0.22), rgba(5, 12, 20, 0.92));
  box-shadow:
    0 0 0 1px rgba(31, 182, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ops-layout {
  background:
    radial-gradient(circle at 42% 0%, rgba(31, 182, 255, 0.08), transparent 36%),
    linear-gradient(135deg, rgba(5, 13, 22, 0.98), rgba(2, 7, 12, 0.98));
}

.agent-card,
.rail-card,
.data-wall,
.stat-card,
.record-card,
.panel,
.settings-card,
.module-cover {
  border-color: var(--pda-border);
  background:
    linear-gradient(180deg, rgba(13, 30, 47, 0.88), rgba(5, 12, 20, 0.86));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.briefing-stage,
.module-cover,
.rail-score {
  background:
    radial-gradient(circle at 80% 10%, rgba(31, 182, 255, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(5, 13, 22, 0.98), rgba(8, 27, 42, 0.94));
  border-color: rgba(31, 182, 255, 0.28);
}

.briefing-stage::after,
.login-panel::before {
  background: linear-gradient(90deg, var(--pda-blue), var(--pda-amber), var(--pda-red));
}

.briefing-copy h3,
.module-cover h3,
.panel h3,
.panel-head h3,
.toolbar h3,
.record-top h3,
.rail-head h3,
.agent-card strong,
.stat-card strong,
.intel-row strong,
.radar-row strong,
.audit-row strong,
.mini-row strong,
.settings-card h3 {
  color: #f4fbff;
}

.briefing-copy p,
.module-cover span,
.record-meta,
.settings-card p,
.rail-list small,
.rail-empty,
.audit-row span,
.audit-row small,
.intel-row span,
.intel-row small,
.radar-row small,
.mini-row span,
.stat-card span,
.stat-card small,
.agent-card span,
.agent-card small {
  color: #9fc2d9;
}

.status-pill {
  color: #071018;
  background: var(--pda-blue);
  box-shadow: 0 0 18px rgba(31, 182, 255, 0.25);
}

.status-pill.online {
  color: #04110a;
  background: var(--pda-green);
  box-shadow: 0 0 18px rgba(66, 215, 125, 0.22);
}

.badge {
  color: #061018;
  background: var(--pda-blue);
}

.badge.green {
  background: var(--pda-green);
}

.badge.red {
  color: #fff;
  background: var(--pda-red);
}

.badge.orange {
  background: var(--pda-amber);
}

.badge.gold {
  background: var(--pda-amber);
}

.signal-ring,
.hero-orbit {
  border-color: rgba(31, 182, 255, 0.48);
  box-shadow:
    0 0 28px rgba(31, 182, 255, 0.18),
    inset 0 0 40px rgba(31, 182, 255, 0.08);
}

.sector-tile {
  border-color: rgba(31, 182, 255, 0.28);
  background:
    radial-gradient(circle at 86% 78%, rgba(31, 182, 255, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(4, 12, 20, 0.96), rgba(11, 29, 45, 0.92));
}

.sector-tile::after {
  border-color: rgba(31, 182, 255, 0.34);
}

.sector-tile b {
  color: var(--pda-amber);
}

.rail-list button,
.intel-row,
.radar-row,
.mini-row,
.audit-row {
  border-color: rgba(31, 182, 255, 0.14);
  background: rgba(3, 10, 17, 0.54);
}

.record-card::before,
.radar-bar i,
.loading-bar span {
  background: linear-gradient(90deg, var(--pda-blue), var(--pda-amber));
}

.record-card:hover,
.stat-card:hover,
.sector-tile:hover,
.intel-row:hover,
.radar-row:hover,
.rail-list button:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 182, 255, 0.5);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(31, 182, 255, 0.1);
}

input,
select,
textarea {
  color: #eaf6ff;
  border-color: rgba(31, 182, 255, 0.24);
  background: rgba(2, 8, 14, 0.74);
}

.login-panel input {
  color: #eaf6ff;
  background: rgba(1, 7, 12, 0.82);
  border-color: rgba(31, 182, 255, 0.34);
}

.primary-action {
  background: linear-gradient(135deg, #0a1c2b, #0f78a6 58%, #1fb6ff);
  box-shadow: 0 0 22px rgba(31, 182, 255, 0.16);
}

.primary-action:hover {
  background: linear-gradient(135deg, #0a1c2b, #1fb6ff 58%, #ffd166);
}

.ghost-action,
.icon-button {
  color: #eaf6ff;
  background: rgba(31, 182, 255, 0.11);
}

.ghost-action:hover,
.icon-button:hover {
  background: rgba(31, 182, 255, 0.2);
}

.empty-state {
  color: #9fc2d9;
  border-color: rgba(31, 182, 255, 0.22);
  background: rgba(3, 10, 17, 0.46);
}

.record-dialog form {
  color: #eaf6ff;
  background:
    linear-gradient(180deg, rgba(9, 20, 32, 0.98), rgba(3, 9, 15, 0.98));
}

@media (max-width: 760px) {
  .app-shell {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

/* Full FiveM MDT/PDA pass */
:root {
  --mdt-bg: #02070d;
  --mdt-screen: #07121d;
  --mdt-panel: rgba(8, 21, 34, 0.92);
  --mdt-panel-deep: rgba(3, 10, 18, 0.94);
  --mdt-blue: #29baff;
  --mdt-blue-2: #0a75ff;
  --mdt-ice: #dff6ff;
  --mdt-muted: #83aac4;
  --mdt-line: rgba(41, 186, 255, 0.26);
  --mdt-warn: #ffd166;
  --mdt-alert: #ff5068;
}

body {
  font-family: "Segoe UI", "Arial Narrow", Arial, sans-serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(41, 186, 255, 0.28), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(10, 117, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #010409, #06111d 48%, #02070d);
}

.app-shell {
  position: relative;
  border: 14px solid #02050a;
  outline: 2px solid rgba(41, 186, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(4, 13, 22, 0.98), rgba(3, 9, 16, 0.99)),
    var(--mdt-bg);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.035),
    0 44px 140px rgba(0, 0, 0, 0.72),
    inset 0 0 80px rgba(41, 186, 255, 0.08);
}

.app-shell::before {
  content: "MVPD MDT 7.4 / SECURE CAD LINK";
  position: absolute;
  left: 22px;
  bottom: 8px;
  z-index: 30;
  color: rgba(131, 170, 196, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.app-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 29;
  border: 1px solid rgba(41, 186, 255, 0.14);
  border-radius: 8px;
  box-shadow: inset 0 0 46px rgba(41, 186, 255, 0.05);
}

.ops-header {
  min-height: 92px;
  background:
    linear-gradient(180deg, rgba(8, 21, 34, 0.98), rgba(3, 10, 18, 0.98)),
    var(--mdt-panel-deep);
  border-bottom: 1px solid rgba(41, 186, 255, 0.32);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.46),
    inset 0 -1px 0 rgba(41, 186, 255, 0.16);
}

.ops-brand img {
  filter:
    drop-shadow(0 0 12px rgba(41, 186, 255, 0.28))
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.52));
}

.ops-brand span {
  color: var(--mdt-muted);
}

.ops-brand strong,
.briefing-copy h3,
.module-cover h3 {
  color: var(--mdt-ice);
  text-shadow: 0 0 18px rgba(41, 186, 255, 0.32);
}

.command-search {
  min-height: 52px;
  border-color: rgba(41, 186, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(10, 29, 48, 0.86), rgba(2, 8, 15, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 0 22px rgba(41, 186, 255, 0.08);
}

.command-search input {
  font-family: Consolas, "Cascadia Mono", monospace;
}

.module-dock {
  background:
    linear-gradient(180deg, rgba(7, 18, 30, 0.94), rgba(2, 7, 13, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(41, 186, 255, 0.24);
}

.nav-item {
  min-height: 64px;
  border-color: rgba(41, 186, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 27, 43, 0.86), rgba(3, 9, 16, 0.88));
  color: #b8d8eb;
  font-family: Consolas, "Cascadia Mono", monospace;
  text-transform: uppercase;
}

.nav-item.active {
  border-color: rgba(41, 186, 255, 0.72);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(41, 186, 255, 0.26), rgba(3, 9, 16, 0.94));
  box-shadow:
    inset 0 0 24px rgba(41, 186, 255, 0.12),
    0 0 24px rgba(41, 186, 255, 0.18);
}

.ops-layout {
  background:
    linear-gradient(rgba(41, 186, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 186, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 35% 0%, rgba(41, 186, 255, 0.14), transparent 38%),
    linear-gradient(135deg, #06101a, #02070d);
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.briefing-stage {
  min-height: 390px;
  background:
    radial-gradient(circle at 82% 22%, rgba(41, 186, 255, 0.24), transparent 28%),
    radial-gradient(circle at 16% 86%, rgba(10, 117, 255, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(5, 15, 26, 0.98), rgba(2, 8, 15, 0.96));
  border-color: rgba(41, 186, 255, 0.34);
}

.briefing-stage::before {
  content: "";
  position: absolute;
  right: 26px;
  top: 26px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(41, 186, 255, 0.24);
  background:
    conic-gradient(from 120deg, rgba(41, 186, 255, 0.24), transparent 38%, rgba(255, 209, 102, 0.2), transparent 76%),
    radial-gradient(circle, transparent 56%, rgba(41, 186, 255, 0.09) 57%);
  opacity: 0.8;
}

.briefing-actions button,
.module-metrics button {
  font-family: Consolas, "Cascadia Mono", monospace;
  color: var(--mdt-ice);
  border-color: rgba(41, 186, 255, 0.28);
  background: rgba(3, 10, 18, 0.64);
}

.signal-ring {
  border-color: rgba(41, 186, 255, 0.58);
  background:
    radial-gradient(circle, rgba(41, 186, 255, 0.18), rgba(3, 10, 18, 0.54));
  box-shadow:
    0 0 40px rgba(41, 186, 255, 0.2),
    inset 0 0 34px rgba(41, 186, 255, 0.12);
}

.signal-ring strong {
  color: var(--mdt-ice);
  text-shadow: 0 0 18px rgba(41, 186, 255, 0.4);
}

.agent-card,
.rail-card,
.data-wall,
.stat-card,
.record-card,
.panel,
.settings-card,
.module-cover {
  border-color: rgba(41, 186, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(9, 25, 41, 0.9), rgba(3, 10, 18, 0.9));
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.data-wall,
.record-card,
.stat-card {
  position: relative;
  overflow: hidden;
}

.data-wall::after,
.record-card::after,
.stat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 46%);
}

.stat-card {
  border-left-color: var(--mdt-blue);
}

.stat-card strong {
  font-family: Consolas, "Cascadia Mono", monospace;
  color: #ffffff;
}

.sector-tile {
  border-color: rgba(41, 186, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(3, 10, 18, 0.98), rgba(10, 31, 50, 0.9));
}

.sector-tile b {
  color: var(--mdt-warn);
  font-family: Consolas, "Cascadia Mono", monospace;
}

.record-card {
  border-top-color: rgba(41, 186, 255, 0.56);
}

.record-card::before {
  background: linear-gradient(90deg, var(--mdt-blue), var(--mdt-warn));
  box-shadow: 0 0 14px rgba(41, 186, 255, 0.34);
}

.badge,
.status-pill {
  font-family: Consolas, "Cascadia Mono", monospace;
  box-shadow: 0 0 16px rgba(41, 186, 255, 0.22);
}

.intel-row,
.radar-row,
.mini-row,
.audit-row,
.rail-list button {
  border-color: rgba(41, 186, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 22, 36, 0.78), rgba(2, 8, 15, 0.76));
}

.radar-bar {
  background: rgba(41, 186, 255, 0.12);
}

.radar-bar i {
  background: linear-gradient(90deg, var(--mdt-blue-2), var(--mdt-blue), var(--mdt-warn));
  box-shadow: 0 0 14px rgba(41, 186, 255, 0.32);
}

.primary-action {
  color: #021018;
  background: linear-gradient(135deg, #8be1ff, var(--mdt-blue) 58%, #ffffff);
}

.primary-action:hover {
  background: linear-gradient(135deg, #ffffff, var(--mdt-warn) 58%, var(--mdt-blue));
}

.ghost-action,
.icon-button {
  border: 1px solid rgba(41, 186, 255, 0.2);
  background: rgba(41, 186, 255, 0.11);
}

.record-dialog {
  border: 2px solid rgba(41, 186, 255, 0.22);
}

.record-dialog form {
  background:
    linear-gradient(rgba(41, 186, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 186, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #081522, #02070d);
  background-size: 28px 28px, 28px 28px, auto;
}

input,
select,
textarea {
  font-family: Consolas, "Cascadia Mono", monospace;
  border-color: rgba(41, 186, 255, 0.26);
  background: rgba(1, 8, 14, 0.82);
}

.login-panel input {
  color: var(--mdt-ice);
  background: rgba(1, 8, 14, 0.86);
}

/* Responsive hardening for all devices */
html,
body {
  overflow-x: hidden;
}

.app-shell,
.ops-header,
.module-dock,
.ops-layout,
.main-area,
.executive-grid,
.record-grid,
.settings-grid,
.sector-board,
.insight-rail {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
}

.briefing-copy h3 {
  font-size: clamp(28px, 4vw, 42px);
}

.module-cover h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.record-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

@media (min-width: 1761px) {
  .app-shell {
    width: min(1760px, calc(100vw - 28px));
  }
}

@media (max-width: 1440px) {
  .app-shell {
    width: calc(100vw - 18px);
    margin: 9px auto;
  }

  .ops-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 1180px) {
  .ops-header {
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1fr);
    gap: 12px;
  }

  .ops-status {
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .ops-layout {
    grid-template-columns: 1fr;
  }

  .insight-rail {
    position: static;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-intel {
    display: contents;
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .wide-wall,
  .audit-wall {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .module-dock {
    top: auto;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 12px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .module-dock::-webkit-scrollbar {
    height: 6px;
  }

  .module-dock::-webkit-scrollbar-thumb {
    background: rgba(41, 186, 255, 0.28);
    border-radius: 999px;
  }

  .nav-item {
    min-width: 96px;
    scroll-snap-align: start;
  }

  .briefing-stage,
  .module-cover {
    grid-template-columns: 1fr;
  }

  .signal-ring {
    width: 190px;
    justify-self: start;
  }

  .sector-board,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100vw;
    min-height: 100vh;
    margin: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
  }

  .app-shell::before,
  .app-shell::after {
    display: none;
  }

  .ops-header {
    position: sticky;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .ops-brand img {
    width: 44px;
    height: 44px;
  }

  .ops-brand strong {
    font-size: 18px;
  }

  .command-search {
    min-height: 46px;
  }

  .command-suggestions {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 116px;
    max-height: calc(100vh - 140px);
  }

  .ops-status {
    align-items: stretch;
    gap: 8px;
  }

  .ops-status .ghost-action {
    width: 100%;
  }

  .ops-layout {
    padding: 12px;
  }

  .insight-rail,
  .sector-board,
  .settings-grid,
  .filter-row,
  .dialog-fields,
  .module-metrics,
  .radar-row,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .briefing-stage {
    min-height: auto;
    padding: 20px;
  }

  .briefing-actions {
    position: static;
    margin-bottom: 80px;
  }

  .signal-ring {
    width: 160px;
  }

  .module-cover {
    min-height: auto;
    padding: 18px;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .record-top,
  .toolbar,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar-actions,
  .record-actions {
    justify-content: flex-start;
  }

  .login-screen,
  .loading-screen {
    padding: 16px;
  }

  .brand-mark {
    min-height: 300px;
    padding: 20px;
  }

  .brand-mark img {
    width: min(220px, 68vw);
  }

  .login-panel {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nav-item {
    min-width: 78px;
    min-height: 54px;
    font-size: 10px;
  }

  .nav-item .icon {
    width: 18px;
    height: 18px;
  }

  .ops-status .status-pill,
  #clock {
    width: 100%;
    justify-content: center;
  }

  .briefing-copy h3 {
    font-size: 27px;
  }

  .sector-tile {
    min-height: 104px;
  }

  .record-card,
  .data-wall,
  .panel,
  .rail-card,
  .stat-card {
    padding: 14px;
  }

  .icon-button {
    width: 42px;
    min-width: 42px;
  }
}

/* Premium polish pass */
button,
.record-card,
.data-wall,
.rail-card,
.stat-card,
.nav-item,
.sector-tile,
.intel-row,
.radar-row,
.module-metrics button,
.briefing-actions button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(41, 186, 255, 0.85);
  outline-offset: 2px;
}

.ops-header::after,
.module-dock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 186, 255, 0.72), rgba(255, 209, 102, 0.42), transparent);
}

.ops-header,
.module-dock {
  position: sticky;
}

.ops-brand {
  position: relative;
}

.ops-brand::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mdt-green, #42d77d);
  box-shadow: 0 0 16px rgba(66, 215, 125, 0.72);
  position: absolute;
  left: 41px;
  bottom: 5px;
}

.ops-brand img,
.brand-mark img,
.loading-card img {
  transform: translateZ(0);
}

.command-search:hover,
.command-search:focus-within {
  border-color: rgba(41, 186, 255, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 28px rgba(41, 186, 255, 0.16);
}

.command-suggestions {
  backdrop-filter: blur(18px);
}

.suggestion-item:hover {
  transform: translateX(3px);
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: auto 10px 6px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.nav-item.active::after {
  background: linear-gradient(90deg, transparent, var(--mdt-blue), transparent);
  box-shadow: 0 0 12px rgba(41, 186, 255, 0.7);
}

.briefing-stage,
.module-cover,
.data-wall,
.record-card,
.rail-card,
.stat-card,
.panel {
  backdrop-filter: blur(16px);
}

.briefing-stage {
  isolation: isolate;
}

.briefing-stage::before {
  animation: radarSweep 5.5s linear infinite;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.briefing-copy h3,
.module-cover h3 {
  max-width: 980px;
}

.briefing-actions button:hover,
.module-metrics button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(41, 186, 255, 0.18);
}

.signal-ring {
  animation: ringPulse 2.8s ease-in-out infinite;
}

@keyframes ringPulse {
  0%,
  100% { box-shadow: 0 0 30px rgba(41, 186, 255, 0.18), inset 0 0 34px rgba(41, 186, 255, 0.1); }
  50% { box-shadow: 0 0 52px rgba(41, 186, 255, 0.3), inset 0 0 44px rgba(41, 186, 255, 0.16); }
}

.data-wall,
.record-card,
.rail-card,
.stat-card,
.panel {
  position: relative;
}

.data-wall::before,
.record-card::before,
.rail-card::before,
.stat-card::before,
.panel::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(41, 186, 255, 0.48);
  border-left: 1px solid rgba(41, 186, 255, 0.48);
  pointer-events: none;
}

.record-card::before {
  width: 42px;
  height: 3px;
  top: 16px;
  left: 16px;
  border: 0;
}

.record-card {
  padding-top: 26px;
}

.panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(41, 186, 255, 0.12);
}

.soft-count {
  border: 1px solid rgba(41, 186, 255, 0.18);
}

.sector-tile:hover {
  transform: translateY(-3px) scale(1.01);
}

.sector-tile strong {
  letter-spacing: 0;
}

.sector-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 44%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.sector-tile:hover::before {
  transform: translateX(120%);
}

.intel-row:hover,
.radar-row:hover,
.rail-list button:hover {
  transform: translateX(3px);
}

.record-card:hover {
  transform: translateY(-4px);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.primary-action,
.ghost-action,
.danger-action,
.icon-button {
  position: relative;
  overflow: hidden;
}

.primary-action::after,
.ghost-action::after,
.danger-action::after,
.icon-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.primary-action:hover::after,
.ghost-action:hover::after,
.danger-action:hover::after,
.icon-button:hover::after {
  transform: translateX(120%);
}

.login-panel {
  backdrop-filter: blur(20px);
}

.login-panel button {
  width: 100%;
}

.login-panel input:focus {
  box-shadow:
    0 0 0 3px rgba(41, 186, 255, 0.16),
    inset 0 0 18px rgba(41, 186, 255, 0.06);
}

.loading-card {
  animation: panelFloat 3.8s ease-in-out infinite;
}

@keyframes panelFloat {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.toast {
  border: 1px solid rgba(41, 186, 255, 0.28);
  background: linear-gradient(180deg, rgba(8, 21, 34, 0.96), rgba(2, 8, 15, 0.96));
}

/* Professional production refinement */
html {
  scrollbar-color: rgba(41, 186, 255, 0.36) rgba(2, 8, 15, 0.8);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(2, 8, 15, 0.82);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 15, 0.82);
  border-radius: 999px;
  background: rgba(41, 186, 255, 0.42);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(41, 186, 255, 0.68);
}

body {
  font-size: 15px;
  line-height: 1.45;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.ops-header {
  grid-template-columns: minmax(260px, 360px) minmax(360px, 1fr) minmax(300px, auto);
}

.ops-brand strong {
  line-height: 1.05;
}

.ops-status {
  justify-content: flex-end;
}

.command-search {
  max-width: 900px;
  justify-self: stretch;
}

.command-search input {
  letter-spacing: 0;
}

.module-dock {
  align-items: stretch;
}

.nav-item {
  min-height: 62px;
  letter-spacing: 0;
}

.nav-item span:last-child {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-layout {
  align-items: start;
}

.briefing-stage,
.module-cover,
.data-wall,
.rail-card,
.record-card,
.stat-card,
.panel {
  border-radius: 8px;
}

.briefing-copy h3,
.module-cover h3,
.toolbar h3,
.panel-head h3 {
  letter-spacing: 0;
}

.briefing-copy p,
.module-cover span,
.settings-card p,
.record-meta {
  max-width: 78ch;
}

.briefing-actions {
  z-index: 2;
}

.signal-ring {
  min-width: 170px;
}

.metric-lanes {
  align-content: stretch;
}

.stat-card {
  min-height: 92px;
  align-content: center;
}

.stat-card strong,
.sector-tile b,
.rail-score strong,
.signal-ring strong {
  font-variant-numeric: tabular-nums;
}

.panel-head h3::before,
.toolbar h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--mdt-blue);
  box-shadow: 0 0 12px rgba(41, 186, 255, 0.65);
  vertical-align: 2px;
}

.soft-count,
.badge,
.status-pill {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.record-card {
  min-height: 245px;
  align-content: start;
}

.record-top {
  min-height: 54px;
}

.record-top h3 {
  overflow-wrap: anywhere;
}

.record-meta {
  line-height: 1.5;
}

.record-meta span {
  overflow-wrap: anywhere;
}

.record-actions {
  margin-top: auto;
  padding-top: 6px;
}

.icon-button {
  min-height: 40px;
}

.filter-row {
  align-items: end;
}

.toolbar {
  min-height: 54px;
}

.toolbar-actions .primary-action {
  min-width: 154px;
}

.module-cover {
  isolation: isolate;
}

.module-cover > div {
  position: relative;
  z-index: 1;
}

.module-metrics button {
  min-width: 0;
}

.module-metrics strong {
  font-variant-numeric: tabular-nums;
}

.sector-board {
  align-items: stretch;
}

.sector-tile {
  min-height: 132px;
}

.intel-row,
.radar-row,
.rail-list button {
  min-width: 0;
}

.intel-row strong,
.radar-row strong,
.rail-list strong {
  overflow-wrap: anywhere;
}

.record-dialog {
  overflow: hidden;
}

.record-dialog form {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -20px -20px 0;
  padding: 20px;
  border-bottom: 1px solid rgba(41, 186, 255, 0.16);
  background: linear-gradient(180deg, rgba(9, 20, 32, 0.98), rgba(3, 9, 15, 0.96));
}

.dialog-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin: 0 -20px -20px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(41, 186, 255, 0.16);
  background: linear-gradient(0deg, rgba(9, 20, 32, 0.98), rgba(3, 9, 15, 0.94));
}

input,
select,
textarea {
  caret-color: var(--mdt-blue);
}

select option {
  color: #eaf6ff;
  background: #06101a;
}

.toast {
  backdrop-filter: blur(14px);
}

.view {
  animation: viewIn 180ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1180px) {
  .ops-header {
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr);
  }

  .command-search {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .ops-header {
    min-height: auto;
  }

  .module-dock {
    padding-bottom: 12px;
  }

  .nav-item {
    min-height: 58px;
  }

  .briefing-actions {
    margin-bottom: 18px;
  }

  .signal-ring {
    min-width: 0;
    justify-self: center;
  }

  .record-card {
    min-height: auto;
  }

  .record-actions {
    justify-content: stretch;
  }

  .record-actions .icon-button {
    flex: 1;
  }

  .dialog-head,
  .dialog-actions {
    position: static;
  }
}

/* MVPD final professional MDT polish */
:root {
  --mvpd-blue: #35b8ff;
  --mvpd-blue-2: #0a74ff;
  --mvpd-gold: #ffd166;
  --mvpd-red: #ff4f68;
  --mvpd-white: #f4fbff;
  --mvpd-muted: #9fbed4;
  --mvpd-line: rgba(53, 184, 255, 0.28);
}

html {
  scrollbar-color: rgba(53, 184, 255, 0.4) rgba(2, 8, 15, 0.9);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(2, 8, 15, 0.9);
}

::-webkit-scrollbar-thumb {
  border: 2px solid rgba(2, 8, 15, 0.9);
  border-radius: 999px;
  background: rgba(53, 184, 255, 0.46);
}

body {
  font-size: 15px;
  line-height: 1.45;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  position: relative;
  box-shadow:
    0 0 0 2px rgba(53, 184, 255, 0.16),
    0 44px 150px rgba(0, 0, 0, 0.74),
    inset 0 0 96px rgba(53, 184, 255, 0.07);
}

.app-shell::before {
  content: "MVPD MDT / VICE CITY CAD LINK";
  position: absolute;
  left: 22px;
  bottom: 8px;
  z-index: 30;
  color: rgba(159, 190, 212, 0.58);
  font-size: 10px;
  font-weight: 900;
}

.ops-header {
  min-height: 92px;
  grid-template-columns: minmax(260px, 360px) minmax(360px, 1fr) minmax(300px, auto);
  background:
    linear-gradient(180deg, rgba(8, 21, 34, 0.99), rgba(2, 8, 15, 0.98));
}

.ops-header::after,
.module-dock::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 184, 255, 0.74), rgba(255, 209, 102, 0.46), transparent);
}

.ops-brand {
  position: relative;
}

.ops-brand::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #42d77d;
  box-shadow: 0 0 16px rgba(66, 215, 125, 0.72);
  position: absolute;
  left: 42px;
  bottom: 5px;
}

.ops-brand strong,
.briefing-copy h3,
.module-cover h3 {
  color: var(--mvpd-white);
  text-shadow: 0 0 20px rgba(53, 184, 255, 0.34);
}

.command-search {
  max-width: 900px;
  justify-self: stretch;
}

.command-search:hover,
.command-search:focus-within {
  border-color: rgba(53, 184, 255, 0.66);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 0 30px rgba(53, 184, 255, 0.16);
}

.module-dock {
  position: sticky;
  top: 92px;
  z-index: 12;
  backdrop-filter: blur(16px);
}

.nav-item {
  letter-spacing: 0;
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  inset: auto 10px 6px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.nav-item.active::after {
  background: linear-gradient(90deg, transparent, var(--mvpd-blue), transparent);
  box-shadow: 0 0 12px rgba(53, 184, 255, 0.7);
}

.briefing-stage,
.module-cover,
.data-wall,
.record-card,
.rail-card,
.stat-card,
.panel {
  backdrop-filter: blur(16px);
}

.briefing-stage::before {
  content: "";
  position: absolute;
  right: 26px;
  top: 26px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(53, 184, 255, 0.24);
  background:
    conic-gradient(from 120deg, rgba(53, 184, 255, 0.25), transparent 38%, rgba(255, 209, 102, 0.18), transparent 76%),
    radial-gradient(circle, transparent 56%, rgba(53, 184, 255, 0.08) 57%);
  animation: mvpdSweep 5.5s linear infinite;
}

@keyframes mvpdSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.briefing-copy,
.briefing-actions,
.signal-ring {
  position: relative;
  z-index: 1;
}

.signal-ring {
  min-width: 170px;
  animation: mvpdPulse 2.8s ease-in-out infinite;
}

@keyframes mvpdPulse {
  0%, 100% { box-shadow: inset 0 0 42px rgba(53, 184, 255, 0.1), 0 0 28px rgba(53, 184, 255, 0.14); }
  50% { box-shadow: inset 0 0 52px rgba(53, 184, 255, 0.16), 0 0 48px rgba(53, 184, 255, 0.24); }
}

.data-wall,
.record-card,
.rail-card,
.stat-card,
.panel,
.module-cover {
  position: relative;
  overflow: hidden;
}

.data-wall::before,
.rail-card::before,
.stat-card::before,
.panel::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 18px;
  height: 18px;
  border-top: 1px solid rgba(53, 184, 255, 0.48);
  border-left: 1px solid rgba(53, 184, 255, 0.48);
  pointer-events: none;
}

.panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(53, 184, 255, 0.12);
}

.panel-head h3::before,
.toolbar h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--mvpd-blue);
  box-shadow: 0 0 12px rgba(53, 184, 255, 0.65);
  vertical-align: 2px;
}

.soft-count,
.badge,
.status-pill,
.stat-card strong,
.sector-tile b,
.rail-score strong,
.signal-ring strong {
  font-variant-numeric: tabular-nums;
}

.record-card {
  min-height: 245px;
  padding-top: 26px;
}

.record-top {
  min-height: 54px;
}

.record-card::before {
  width: 42px;
  height: 3px;
  top: 16px;
  left: 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mvpd-blue), var(--mvpd-gold));
  box-shadow: 0 0 14px rgba(53, 184, 255, 0.34);
}

.record-meta span,
.record-top h3,
.intel-row strong,
.radar-row strong,
.rail-list strong {
  overflow-wrap: anywhere;
}

.record-actions {
  margin-top: auto;
  padding-top: 6px;
}

.sector-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 44%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.sector-tile:hover::before {
  transform: translateX(120%);
}

button,
.record-card,
.data-wall,
.rail-card,
.stat-card,
.nav-item,
.sector-tile,
.intel-row,
.radar-row,
.module-metrics button,
.briefing-actions button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

button:hover,
.record-card:hover,
.data-wall:hover,
.rail-card:hover,
.stat-card:hover,
.sector-tile:hover,
.intel-row:hover,
.radar-row:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 184, 255, 0.56);
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(53, 184, 255, 0.1);
}

.intel-row:hover,
.radar-row:hover,
.rail-list button:hover {
  transform: translateX(3px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(53, 184, 255, 0.9);
  outline-offset: 2px;
}

.record-dialog form {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -20px -20px 0;
  padding: 20px;
  border-bottom: 1px solid rgba(53, 184, 255, 0.16);
  background: linear-gradient(180deg, rgba(9, 20, 32, 0.98), rgba(3, 9, 15, 0.94));
}

.dialog-actions {
  position: sticky;
  bottom: -20px;
  z-index: 2;
  margin: 0 -20px -20px;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(53, 184, 255, 0.16);
  background: linear-gradient(0deg, rgba(9, 20, 32, 0.98), rgba(3, 9, 15, 0.94));
}

select option {
  color: #eaf6ff;
  background: #07121d;
}

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

@media (max-width: 980px) {
  .module-dock {
    top: auto;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .app-shell::before {
    display: none;
  }

  .ops-header {
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .briefing-actions {
    margin-bottom: 18px;
  }

  .signal-ring {
    min-width: 0;
    justify-self: center;
  }

  .record-actions {
    justify-content: stretch;
  }
}

/* Executive-grade MVPD MDT visual system */
:root {
  --pro-bg: #02060b;
  --pro-panel: rgba(6, 17, 28, 0.92);
  --pro-panel-2: rgba(10, 26, 42, 0.86);
  --pro-blue: #2fb8ff;
  --pro-blue-2: #5dd7ff;
  --pro-gold: #f2c75b;
  --pro-red: #ff4f68;
  --pro-text: #f5fbff;
  --pro-muted: #a5c4d9;
  --pro-line: rgba(47, 184, 255, 0.32);
}

body {
  background:
    radial-gradient(circle at 50% -12%, rgba(47, 184, 255, 0.26), transparent 34%),
    radial-gradient(circle at 8% 88%, rgba(242, 199, 91, 0.1), transparent 24%),
    linear-gradient(135deg, #010409, #07111d 48%, #02060b);
}

.login-screen {
  background:
    radial-gradient(circle at 24% 18%, rgba(47, 184, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(242, 199, 91, 0.16), transparent 28%),
    linear-gradient(135deg, #010409, #07111d 52%, #02060b);
}

.login-shell {
  align-items: center;
}

.brand-mark {
  position: relative;
  min-height: 600px;
  background:
    linear-gradient(180deg, rgba(9, 25, 40, 0.92), rgba(2, 8, 15, 0.92)),
    linear-gradient(rgba(47, 184, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 184, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 30px 30px, 30px 30px;
}

.brand-mark::before {
  content: "AUTHORIZED PERSONNEL ONLY";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(242, 199, 91, 0.32);
  border-radius: 8px;
  color: var(--pro-gold);
  background: rgba(242, 199, 91, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(47, 184, 255, 0.16);
  border-radius: 8px;
}

.brand-mark img {
  width: min(380px, 74vw);
}

.login-intel {
  border-color: rgba(47, 184, 255, 0.28);
  background: rgba(3, 11, 19, 0.72);
}

.login-panel {
  padding: 36px;
  background:
    linear-gradient(180deg, rgba(9, 25, 40, 0.96), rgba(2, 8, 15, 0.96));
}

.login-panel::after {
  content: "SECURE SESSION / MYSQL LIVE";
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(47, 184, 255, 0.16);
  color: var(--pro-muted);
  font-size: 11px;
  font-weight: 900;
}

.ops-header {
  border-bottom-color: rgba(47, 184, 255, 0.34);
}

.ops-brand img {
  width: 58px;
  height: 58px;
}

.ops-brand strong {
  font-size: 24px;
}

.ops-status {
  font-size: 11px;
}

.module-dock {
  padding: 13px 22px;
}

.nav-item {
  min-height: 68px;
  background:
    linear-gradient(180deg, rgba(13, 32, 51, 0.82), rgba(3, 9, 16, 0.9));
}

.nav-item.active {
  background:
    linear-gradient(180deg, rgba(47, 184, 255, 0.28), rgba(3, 9, 16, 0.96));
}

.ops-layout {
  gap: 22px;
  padding: 22px;
}

.briefing-stage {
  min-height: 420px;
  padding: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(47, 184, 255, 0.26), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(242, 199, 91, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(4, 13, 23, 0.98), rgba(10, 29, 46, 0.94));
}

.briefing-copy h3 {
  max-width: 900px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 0.98;
}

.briefing-copy p {
  font-size: 16px;
}

.briefing-actions {
  top: 32px;
  left: 32px;
}

.briefing-actions button {
  min-height: 42px;
  padding: 9px 14px;
  background: rgba(47, 184, 255, 0.1);
}

.signal-ring {
  width: 210px;
}

.signal-ring strong {
  font-size: 58px;
}

.metric-lanes {
  gap: 16px;
}

.stat-card {
  min-height: 104px;
  padding: 18px;
  border-left-width: 4px;
}

.stat-card strong {
  font-size: 34px;
}

.data-wall,
.rail-card,
.record-card,
.panel,
.stat-card,
.module-cover {
  background:
    linear-gradient(180deg, rgba(9, 25, 40, 0.9), rgba(3, 10, 18, 0.88));
}

.data-wall {
  padding: 20px;
}

.panel-head h3,
.toolbar h3 {
  font-size: 19px;
}

.sector-tile {
  min-height: 150px;
  padding: 18px;
}

.sector-tile strong {
  font-size: 18px;
}

.sector-tile b {
  font-size: 32px;
}

.intel-row,
.radar-row,
.rail-list button,
.audit-row,
.mini-row {
  background:
    linear-gradient(180deg, rgba(9, 25, 40, 0.72), rgba(2, 8, 15, 0.72));
}

.record-grid {
  gap: 16px;
}

.record-card {
  min-height: 270px;
  padding: 20px;
  padding-top: 30px;
}

.record-card::before {
  top: 18px;
  left: 20px;
}

.record-top h3 {
  font-size: 20px;
}

.record-meta {
  font-size: 13.5px;
}

.module-cover {
  min-height: 190px;
  padding: 26px;
}

.module-cover h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.module-metrics button {
  min-height: 96px;
}

.module-metrics strong {
  font-size: 36px;
}

.toolbar {
  padding: 14px 16px;
  border: 1px solid rgba(47, 184, 255, 0.14);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.32);
}

.filter-row {
  padding: 14px;
  border: 1px solid rgba(47, 184, 255, 0.12);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.28);
}

.primary-action {
  color: #03111a;
  font-weight: 1000;
}

.badge.red {
  box-shadow: 0 0 18px rgba(255, 79, 104, 0.28);
}

.badge.green {
  box-shadow: 0 0 18px rgba(66, 215, 125, 0.22);
}

.badge.orange,
.badge.gold {
  box-shadow: 0 0 18px rgba(242, 199, 91, 0.22);
}

.toast {
  right: 28px;
  bottom: 28px;
}

@media (max-width: 1180px) {
  .ops-layout {
    padding: 18px;
  }

  .briefing-stage {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .brand-mark {
    min-height: 340px;
  }

  .brand-mark::before {
    left: 18px;
    right: auto;
  }

  .briefing-stage {
    min-height: auto;
    padding: 22px;
  }

  .briefing-copy h3 {
    font-size: 32px;
  }

  .signal-ring {
    width: 170px;
  }

  .toolbar,
  .filter-row {
    padding: 12px;
  }
}

@media (max-width: 1280px) {
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .insight-rail {
    position: static;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-intel {
    display: contents;
  }
}

@media (max-width: 1120px) {
  .ops-header {
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr);
  }

  .ops-status {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .module-dock {
    top: 136px;
    grid-template-columns: repeat(5, minmax(82px, 1fr));
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .wide-wall,
  .audit-wall {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .login-shell,
  .ops-header,
  .briefing-stage,
  .module-cover,
  .module-metrics,
  .sector-board,
  .filter-row,
  .dialog-fields,
  .settings-grid,
  .insight-rail {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    min-height: 340px;
  }

  .brand-mark img {
    width: min(220px, 70vw);
  }

  .module-dock {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-layout {
    padding: 14px;
  }

  .briefing-copy h3 {
    font-size: 31px;
  }

  .signal-ring {
    width: 180px;
  }

  .radar-row {
    grid-template-columns: 1fr;
  }

  .record-top,
  .toolbar,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .ops-header {
    gap: 14px;
    padding: 18px;
  }

  .ops-brand {
    grid-template-columns: 54px 1fr;
    align-items: center;
  }

  .ops-brand img {
    width: 54px;
    height: 54px;
  }

  .ops-brand strong {
    font-size: clamp(30px, 9vw, 42px);
    line-height: 0.95;
  }

  .command-search {
    min-height: 58px;
    border-radius: 8px;
  }

  .command-search input {
    font-size: 15px;
  }

  .ops-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
    justify-content: initial;
  }

  .ops-status .status-pill,
  .ops-status #clock,
  .ops-status .ghost-action {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .ops-status #clock {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(47, 184, 255, 0.18);
    background: rgba(3, 14, 24, 0.68);
    color: #bfeaff;
  }

  .ops-status .ghost-action {
    padding: 0 14px;
  }

  .module-dock {
    display: flex;
    gap: 10px;
    margin: 0 -14px;
    padding: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .module-dock::-webkit-scrollbar {
    height: 0;
  }

  .nav-item {
    flex: 0 0 132px;
    min-height: 104px;
    scroll-snap-align: start;
  }

  .briefing-stage {
    overflow: hidden;
  }

  .briefing-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .briefing-actions .ghost-action {
    min-height: 54px;
    justify-content: center;
  }
}

.comms-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(47, 184, 255, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(47, 184, 255, 0.24), rgba(1, 12, 23, 0.92)),
    #03111a;
  color: #e9fbff;
  display: grid;
  place-items: center;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.42), 0 0 28px rgba(47, 184, 255, 0.22);
}

.comms-fab:hover,
.comms-fab.active {
  border-color: rgba(93, 215, 255, 0.78);
  transform: translateY(-2px);
}

.comms-fab .icon {
  width: 29px;
  height: 29px;
}

.comms-unread {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border: 2px solid #04111c;
  border-radius: 999px;
  background: #ff4f68;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 1000;
}

.comms-backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 8, 16, 0.34);
  backdrop-filter: blur(3px);
}

.comms-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(430px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(47, 184, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 184, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(3, 17, 28, 0.98), rgba(1, 8, 15, 0.98));
  color: #e9fbff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.comms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(47, 184, 255, 0.16);
}

.comms-head h3 {
  font-size: 25px;
}

.comms-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(47, 184, 255, 0.14);
  background: rgba(1, 8, 15, 0.42);
}

.comms-tab {
  min-height: 44px;
  border: 1px solid rgba(47, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 12, 22, 0.76);
  color: #bfeaff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 1000;
}

.comms-tab.active {
  border-color: rgba(93, 215, 255, 0.62);
  background: rgba(47, 184, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(47, 184, 255, 0.76);
}

.comms-view {
  min-height: 0;
  display: none;
  grid-template-rows: 1fr auto;
  gap: 12px;
  padding: 14px;
}

.comms-view.active-comms {
  display: grid;
}

.comms-feed {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.comms-message {
  border: 1px solid rgba(47, 184, 255, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 12, 22, 0.74);
}

.comms-message.mine {
  border-color: rgba(66, 215, 125, 0.34);
  background: rgba(66, 215, 125, 0.1);
}

.comms-message > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.comms-message strong {
  color: #fff;
}

.comms-message time {
  color: #8db7c9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.comms-message p {
  margin: 0;
  color: #d7f4ff;
  line-height: 1.45;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
}

.chat-form input {
  border-color: rgba(47, 184, 255, 0.24);
  background: rgba(1, 8, 15, 0.84);
  color: #e9fbff;
}

.radio-console {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 184, 255, 0.16);
  border-radius: 8px;
  background: rgba(2, 12, 22, 0.74);
}

.radio-console p {
  margin: 10px 0 0;
  color: #9cc8d9;
  font-size: 13px;
}

.radio-message audio {
  width: 100%;
  margin: 4px 0 8px;
}

.comms-panel .empty-state {
  border-color: rgba(47, 184, 255, 0.16);
  background: rgba(2, 12, 22, 0.64);
  color: #9cc8d9;
}

@media (max-width: 760px) {
  .comms-fab {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }

  .comms-panel {
    inset: 10px;
    width: auto;
  }
}

.history-action,
.comms-history {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(47, 184, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 12, 22, 0.62);
  color: #bfeaff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
}

.history-action {
  grid-column: 1 / -1;
}

.history-action:hover,
.comms-history:hover {
  border-color: rgba(93, 215, 255, 0.5);
  background: rgba(47, 184, 255, 0.14);
  color: #fff;
}

/* Premium dark command skin */
:root {
  --void: #020609;
  --space: #071017;
  --space-2: #0d1a24;
  --space-3: #142738;
  --ink: #e8f4f6;
  --muted: #8fa8b7;
  --paper: #09151d;
  --paper-2: #0e202c;
  --line: rgba(101, 196, 219, 0.18);
  --glass: rgba(7, 16, 23, 0.82);
  --cyan: #38d6e8;
  --cyan-soft: rgba(56, 214, 232, 0.12);
  --gold: #e5bf63;
  --gold-soft: rgba(229, 191, 99, 0.14);
  --red: #ff5f73;
  --orange: #f39a45;
  --green: #42d77d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

body {
  color: var(--ink);
  background:
    linear-gradient(rgba(56, 214, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 214, 232, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #020609 0%, #071017 44%, #0b1e25 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px),
    linear-gradient(120deg, rgba(229, 191, 99, 0.06), transparent 36%, rgba(56, 214, 232, 0.05));
}

.login-screen,
.loading-screen,
.app-shell {
  background:
    linear-gradient(rgba(56, 214, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 214, 232, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #020609, #071017 48%, #0b2028);
  background-size: 40px 40px, 40px 40px, auto;
}

.brand-mark,
.login-panel,
.loading-card,
.agent-card,
.rail-card,
.data-wall,
.stat-card,
.record-card,
.panel,
.module-cover,
.toolbar,
.profile-hero,
.profile-metric,
.report-console,
.agent-directory,
.report-feed,
.daily-report-card,
.agent-profile-card {
  border: 1px solid rgba(101, 196, 219, 0.2);
  background:
    linear-gradient(180deg, rgba(14, 32, 44, 0.94), rgba(4, 12, 18, 0.88)),
    var(--space);
  color: var(--ink);
  box-shadow: var(--soft-shadow), inset 0 1px 0 rgba(255,255,255,0.05);
}

.login-panel {
  color: var(--ink);
}

.login-panel h1,
.ops-brand strong,
.rail-head h3,
.agent-card strong,
.record-card h3,
.toolbar h3,
.panel-head h3,
.profile-copy h3,
.report-console h3,
.agent-directory h3,
.report-feed h3,
.daily-report-card h4,
.agent-profile-card h4 {
  color: #f2fbff;
}

.login-panel label,
.dialog-fields label,
.filter-row label,
.daily-report-form label {
  color: #bcd2dc;
}

input,
select,
textarea {
  color: #f2fbff;
  border-color: rgba(101, 196, 219, 0.22);
  background: rgba(2, 9, 14, 0.76);
}

input::placeholder,
textarea::placeholder {
  color: #7392a2;
}

select option {
  color: #0b1620;
  background: #f2fbff;
}

.primary-action {
  color: #031017;
  background: linear-gradient(135deg, #e5bf63, #38d6e8);
  box-shadow: 0 16px 32px rgba(56, 214, 232, 0.18);
}

.primary-action:hover {
  background: linear-gradient(135deg, #fff0a8, #6eeaff);
}

.ghost-action,
.icon-button {
  color: #dff8ff;
  border: 1px solid rgba(101, 196, 219, 0.18);
  background: rgba(56, 214, 232, 0.08);
}

.ghost-action:hover,
.icon-button:hover {
  background: rgba(56, 214, 232, 0.16);
}

.ops-header {
  border-bottom-color: rgba(101, 196, 219, 0.16);
  background:
    linear-gradient(180deg, rgba(4, 12, 18, 0.98), rgba(7, 16, 23, 0.94));
}

.command-search,
.command-suggestions,
.suggestion-item {
  border-color: rgba(101, 196, 219, 0.18);
  background: rgba(2, 9, 14, 0.64);
}

.module-dock {
  top: 86px;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  background: rgba(3, 10, 15, 0.82);
  border-bottom-color: rgba(101, 196, 219, 0.16);
}

.nav-item {
  color: #bfeaff;
  border-color: rgba(101, 196, 219, 0.16);
  background: rgba(9, 21, 29, 0.9);
}

.nav-item .icon {
  color: var(--cyan);
}

.nav-item:hover,
.nav-item.active {
  color: #031017;
  border-color: rgba(229, 191, 99, 0.72);
  background: linear-gradient(135deg, #e5bf63, #38d6e8);
  box-shadow: 0 18px 42px rgba(56, 214, 232, 0.16);
}

.ops-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
}

.briefing-stage {
  border: 1px solid rgba(101, 196, 219, 0.2);
  background:
    linear-gradient(90deg, rgba(5, 16, 23, 0.94), rgba(10, 34, 42, 0.88)),
    linear-gradient(rgba(56, 214, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 214, 232, 0.04) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.briefing-copy p,
.record-meta,
.record-meta span,
.profile-copy p,
.agent-profile-card p,
.daily-report-card p,
.daily-report-card span,
.report-notes,
.rail-list small,
.rail-empty,
.soft-count {
  color: var(--muted);
}

.stat-card,
.sector-tile,
.intel-row,
.radar-row,
.rail-list button {
  border-color: rgba(101, 196, 219, 0.16);
  background: rgba(2, 9, 14, 0.52);
  color: var(--ink);
}

.stat-card:hover,
.sector-tile:hover,
.intel-row:hover,
.radar-row:hover,
.rail-list button:hover,
.record-card:hover,
.daily-report-card:hover,
.agent-profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 191, 99, 0.46);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(229, 191, 99, 0.08) inset;
}

.record-card,
.daily-report-card,
.agent-profile-card,
.stat-card,
.sector-tile,
.intel-row,
.radar-row {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.badge {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(143, 168, 183, 0.12);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.profile-hero {
  min-height: 260px;
  padding: 24px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 116px;
  gap: 20px;
  align-items: center;
}

.profile-badge,
.agent-avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 191, 99, 0.36);
  background: linear-gradient(145deg, rgba(229, 191, 99, 0.16), rgba(56, 214, 232, 0.12));
  color: #fff7cf;
  font-weight: 1000;
}

.profile-badge {
  width: 112px;
  height: 112px;
  border-radius: 8px;
  font-size: 38px;
}

.profile-copy h3 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 0.96;
}

.profile-copy p {
  margin: 10px 0 0;
  font-weight: 800;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-tags > span:not(.badge) {
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 999px;
  color: #bfeaff;
  background: rgba(56, 214, 232, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.profile-score {
  display: grid;
  place-items: center;
  align-content: center;
  width: 116px;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 214, 232, 0.32);
  border-radius: 8px;
  background: rgba(2, 9, 14, 0.58);
}

.profile-score strong {
  color: #e5bf63;
  font-size: 44px;
  line-height: 1;
}

.profile-score span,
.profile-metric span,
.profile-metric small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-metric {
  min-height: 118px;
  padding: 16px;
  display: grid;
  align-content: space-between;
}

.profile-metric strong {
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
}

.report-console,
.agent-directory,
.report-feed {
  padding: 18px;
}

.daily-report-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.daily-report-form .wide,
.daily-report-form .primary-action.wide {
  grid-column: 1 / -1;
}

.agent-profile-list,
.daily-report-feed {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.agent-profile-card {
  padding: 14px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
}

.agent-profile-card.current {
  border-color: rgba(229, 191, 99, 0.5);
}

.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.agent-profile-card h4,
.agent-profile-card p,
.agent-profile-card span {
  margin: 0;
}

.agent-profile-card p,
.agent-profile-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 800;
}

.agent-profile-card > strong {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #031017;
  background: linear-gradient(135deg, #e5bf63, #38d6e8);
}

.daily-report-card {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.daily-report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.daily-report-top h4,
.daily-report-top span,
.daily-report-card p {
  margin: 0;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-kpis span {
  min-height: 62px;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 8px;
  background: rgba(2, 9, 14, 0.52);
  text-align: center;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-kpis strong {
  color: #e5bf63;
  font-size: 22px;
}

.report-notes {
  display: grid;
  gap: 7px;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .profile-grid,
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .insight-rail {
    position: static;
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-grid,
  .profile-hero,
  .profile-stat-strip,
  .daily-report-form,
  .report-kpis,
  .daily-report-top {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    justify-items: start;
  }

  .profile-score {
    width: 100%;
    aspect-ratio: auto;
    min-height: 96px;
  }

  .agent-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .agent-profile-card > strong {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
  }

  .insight-rail {
    grid-template-columns: 1fr;
  }

  .module-dock {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .nav-item {
    flex: 0 0 132px;
    min-height: 96px;
    scroll-snap-align: start;
  }
}

/* Profile responsive refinement */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.profile-grid > *,
.profile-hero > *,
.daily-report-card > *,
.agent-profile-card > * {
  min-width: 0;
}

.profile-hero,
.profile-stat-strip,
.report-feed {
  grid-column: 1 / -1;
}

.report-console,
.agent-directory,
.report-feed {
  min-width: 0;
}

.profile-chip {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(229, 191, 99, 0.34);
  border-radius: 999px;
  color: #fff7cf;
  background: rgba(229, 191, 99, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.profile-chip:hover {
  background: rgba(229, 191, 99, 0.2);
}

.viewing-agent-note {
  margin-top: 14px;
  padding: 12px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(229, 191, 99, 0.22);
  border-radius: 8px;
  background: rgba(229, 191, 99, 0.08);
  color: #f7e7ae;
}

.viewing-agent-note span {
  color: #b7cad4;
  font-size: 13px;
  font-weight: 800;
}

.profile-report-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px);
  gap: 12px;
  margin-top: 14px;
}

.profile-report-tools label {
  display: grid;
  gap: 7px;
  color: #bcd2dc;
  font-size: 13px;
  font-weight: 900;
}

.agent-profile-card {
  width: 100%;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.agent-profile-card.selected {
  border-color: rgba(56, 214, 232, 0.72);
  background:
    linear-gradient(180deg, rgba(22, 58, 73, 0.9), rgba(6, 18, 25, 0.92)),
    var(--space);
  box-shadow: 0 18px 52px rgba(56, 214, 232, 0.12), inset 0 0 0 1px rgba(56, 214, 232, 0.16);
}

.agent-profile-card h4,
.agent-profile-card p,
.agent-profile-card span,
.daily-report-card h4,
.daily-report-card p,
.daily-report-card span {
  overflow-wrap: anywhere;
}

.daily-report-card {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

@media (min-width: 1181px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  }

  .report-console {
    align-self: start;
  }

  .agent-directory {
    align-self: start;
    max-height: min(780px, calc(100vh - 220px));
    overflow: auto;
  }
}

@media (max-width: 980px) {
  .profile-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-report-tools {
    grid-template-columns: 1fr;
  }

  .report-feed {
    order: 4;
  }
}

@media (max-width: 560px) {
  .profile-hero,
  .report-console,
  .agent-directory,
  .report-feed {
    padding: 14px;
  }

  .profile-badge {
    width: 84px;
    height: 84px;
    font-size: 30px;
  }

  .profile-copy h3 {
    font-size: clamp(28px, 12vw, 42px);
  }

  .profile-stat-strip {
    grid-template-columns: 1fr;
  }

  .profile-metric {
    min-height: 92px;
  }

  .daily-report-form input,
  .daily-report-form select,
  .daily-report-form textarea,
  .profile-report-tools input,
  .profile-report-tools select {
    min-height: 48px;
    font-size: 16px;
  }

  .daily-report-card {
    padding: 14px;
  }

  .report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* PDA operational polish */
.active-view {
  animation: viewEnter 0.22s ease both;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-pill.syncing {
  color: #031017;
  background: linear-gradient(135deg, #e5bf63, #38d6e8);
  animation: syncPulse 1s ease-in-out infinite alternate;
}

.status-pill.offline {
  color: #ffd6dc;
  background: rgba(255, 95, 115, 0.18);
  border: 1px solid rgba(255, 95, 115, 0.26);
}

@keyframes syncPulse {
  from { filter: brightness(0.9); }
  to { filter: brightness(1.15); }
}

.pda-quick-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 20px 0;
}

.pda-quick-card {
  min-height: 74px;
  padding: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 8px;
  color: #dff8ff;
  background:
    linear-gradient(180deg, rgba(14, 32, 44, 0.86), rgba(3, 10, 15, 0.9)),
    var(--space);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pda-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 191, 99, 0.5);
  background: linear-gradient(180deg, rgba(20, 48, 61, 0.92), rgba(5, 16, 23, 0.94));
}

.pda-quick-card > .icon {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid rgba(56, 214, 232, 0.22);
  border-radius: 8px;
  color: #38d6e8;
  background: rgba(56, 214, 232, 0.08);
}

.pda-quick-card strong,
.pda-quick-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pda-quick-card strong {
  color: #fff;
  font-size: 14px;
}

.pda-quick-card small {
  margin-top: 3px;
  color: #8fa8b7;
  font-size: 12px;
  font-weight: 800;
}

.pda-quick-card.sync-live > .icon {
  color: #42d77d;
  border-color: rgba(66, 215, 125, 0.3);
  background: rgba(66, 215, 125, 0.1);
}

.pda-quick-card.sync-syncing > .icon {
  color: #e5bf63;
  border-color: rgba(229, 191, 99, 0.35);
  background: rgba(229, 191, 99, 0.12);
}

.pda-quick-card.sync-offline > .icon,
.pda-quick-card.alerting > .icon {
  color: #ff8a98;
  border-color: rgba(255, 95, 115, 0.34);
  background: rgba(255, 95, 115, 0.12);
}

.agent-card {
  overflow: hidden;
  position: relative;
}

.agent-card::before,
.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #38d6e8, #e5bf63, #ff5f73);
}

.agent-credential {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.agent-credential-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 191, 99, 0.36);
  border-radius: 8px;
  color: #fff7cf;
  background:
    linear-gradient(145deg, rgba(229, 191, 99, 0.16), rgba(56, 214, 232, 0.12)),
    rgba(2, 9, 14, 0.62);
  font-size: 20px;
  font-weight: 1000;
}

.agent-credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.agent-credential-grid span {
  min-height: 58px;
  padding: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  border: 1px solid rgba(101, 196, 219, 0.14);
  border-radius: 8px;
  color: #8fa8b7;
  background: rgba(2, 9, 14, 0.48);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.agent-credential-grid strong {
  color: #e5bf63;
  font-size: 16px;
}

.agent-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(5, 16, 23, 0.95), rgba(12, 42, 54, 0.78)),
    repeating-linear-gradient(90deg, rgba(56, 214, 232, 0.05) 0, rgba(56, 214, 232, 0.05) 1px, transparent 1px, transparent 34px);
}

.profile-hero::after {
  content: "MVPD ID";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.05);
  font-size: clamp(52px, 12vw, 130px);
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
}

.profile-badge,
.profile-score,
.profile-copy {
  position: relative;
  z-index: 1;
}

.daily-report-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid rgba(56, 214, 232, 0.54);
}

.daily-report-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 214, 232, 0.62), transparent);
}

.daily-report-top h4 {
  font-size: 20px;
}

.report-notes {
  padding: 12px;
  border: 1px solid rgba(101, 196, 219, 0.12);
  border-radius: 8px;
  background: rgba(2, 9, 14, 0.42);
}

@media (max-width: 1180px) {
  .pda-quick-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  body:has(.app-shell:not(.hidden)) {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .app-shell {
    min-height: 100vh;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .ops-header {
    position: sticky;
    top: 0;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .ops-brand strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .command-search {
    min-height: 48px;
  }

  .ops-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 80;
    margin: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(101, 196, 219, 0.18);
    border-bottom: 0;
    background: rgba(2, 8, 13, 0.94);
    backdrop-filter: blur(18px);
  }

  .nav-item {
    flex: 0 0 78px;
    min-height: 64px;
    padding: 8px 6px;
    gap: 4px;
    font-size: 10px;
  }

  .nav-item .icon {
    width: 20px;
    height: 20px;
  }

  .pda-quick-panel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 12px 0;
    scroll-snap-type: x mandatory;
  }

  .pda-quick-panel::-webkit-scrollbar {
    height: 0;
  }

  .pda-quick-card {
    flex: 0 0 248px;
    min-height: 70px;
    scroll-snap-align: start;
  }

  .ops-layout {
    padding: 12px;
  }

  .comms-fab {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .ops-status {
    grid-template-columns: 1fr;
  }

  .pda-quick-card {
    flex-basis: 220px;
  }

  .agent-credential-grid,
  .report-kpis {
    grid-template-columns: 1fr;
  }

  .daily-report-top {
    display: grid;
  }
}

/* Cinematic login + command center pass */
.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent, rgba(56, 214, 232, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 5px);
  animation: loginScan 4.2s linear infinite;
}

.terminal-ribbon {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.terminal-ribbon span {
  min-height: 30px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(229, 191, 99, 0.32);
  border-radius: 8px;
  color: #fff7cf;
  background: rgba(2, 9, 14, 0.72);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.scan-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border: 1px solid rgba(56, 214, 232, 0.18);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: orbitPulse 2.8s ease-in-out infinite alternate;
}

.scan-orbit::before,
.scan-orbit::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 1px dashed rgba(229, 191, 99, 0.22);
  border-radius: inherit;
}

.scan-orbit::after {
  inset: 22%;
  border-color: rgba(56, 214, 232, 0.2);
}

.login-panel {
  backdrop-filter: blur(18px);
}

.login-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.login-status-grid span {
  min-height: 58px;
  padding: 9px;
  display: grid;
  align-content: center;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 8px;
  color: #8fa8b7;
  background: rgba(2, 9, 14, 0.46);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-status-grid strong {
  display: block;
  margin-bottom: 3px;
  color: #38d6e8;
  font-size: 13px;
}

@keyframes loginScan {
  from { background-position: 0 -220px, 0 0; }
  to { background-position: 0 520px, 0 0; }
}

@keyframes orbitPulse {
  from { opacity: 0.32; transform: translate(-50%, -50%) scale(0.96); }
  to { opacity: 0.72; transform: translate(-50%, -50%) scale(1.03); }
}

.command-center-wall {
  grid-column: 1 / -1;
}

.tactical-center {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
  margin-top: 14px;
}

.tactical-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 214, 232, 0.14), transparent 26%),
    linear-gradient(rgba(56, 214, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 214, 232, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(2, 9, 14, 0.9), rgba(11, 35, 45, 0.76));
  background-size: auto, 32px 32px, 32px 32px, auto;
}

.tactical-map::before,
.tactical-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(56, 214, 232, 0.14);
  border-radius: 50%;
  animation: mapSweep 3.8s ease-in-out infinite alternate;
}

.tactical-map::after {
  inset: 34%;
  border-color: rgba(229, 191, 99, 0.18);
  animation-delay: 0.7s;
}

@keyframes mapSweep {
  from { transform: scale(0.94); opacity: 0.34; }
  to { transform: scale(1.05); opacity: 0.72; }
}

.tactical-marker {
  position: absolute;
  z-index: 2;
  width: 128px;
  min-height: 74px;
  padding: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(101, 196, 219, 0.26);
  border-radius: 8px;
  color: #dff8ff;
  background: rgba(2, 9, 14, 0.76);
  text-align: center;
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

.tactical-marker.hot {
  border-color: rgba(229, 191, 99, 0.5);
  background: rgba(229, 191, 99, 0.12);
}

.tactical-marker strong {
  color: #e5bf63;
  font-size: 26px;
  line-height: 1;
}

.tactical-marker span {
  margin-top: 5px;
  color: #bfeaff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.marker-north { top: 12%; left: 12%; }
.marker-center { top: 40%; left: 42%; }
.marker-east { right: 10%; top: 22%; }
.marker-west { left: 14%; bottom: 12%; }

.live-ops-stack {
  display: grid;
  gap: 10px;
}

.live-ops-row {
  min-height: 78px;
  padding: 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(101, 196, 219, 0.16);
  border-radius: 8px;
  color: #dff8ff;
  background: rgba(2, 9, 14, 0.54);
  text-align: left;
}

.live-ops-row .icon {
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid rgba(56, 214, 232, 0.18);
  border-radius: 8px;
  color: #38d6e8;
  background: rgba(56, 214, 232, 0.08);
}

.live-ops-row strong,
.live-ops-row small {
  display: block;
}

.live-ops-row small {
  margin-top: 4px;
  color: #8fa8b7;
  font-size: 12px;
  font-weight: 800;
}

.live-ops-row b {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #031017;
  background: linear-gradient(135deg, #e5bf63, #38d6e8);
}

.daily-report-feed {
  position: relative;
}

.daily-report-feed::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(56,214,232,0.5), rgba(229,191,99,0.2), transparent);
}

.timeline-report-card {
  padding-left: 62px;
}

.report-date-node {
  position: absolute;
  left: 10px;
  top: 18px;
  z-index: 2;
  width: 42px;
  height: 48px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(229, 191, 99, 0.38);
  border-radius: 8px;
  color: #fff7cf;
  background: rgba(2, 9, 14, 0.92);
}

.report-date-node strong,
.report-date-node span {
  line-height: 1;
}

.report-date-node strong {
  font-size: 17px;
}

.report-date-node span {
  margin-top: 3px;
  color: #8fa8b7;
  font-size: 10px;
  font-weight: 1000;
}

@media (max-width: 980px) {
  .tactical-center {
    grid-template-columns: 1fr;
  }

  .tactical-map {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .terminal-ribbon {
    position: static;
    order: -2;
    justify-content: center;
  }

  .terminal-ribbon span:nth-child(n+2) {
    display: none;
  }

  .login-status-grid,
  .live-ops-row {
    grid-template-columns: 1fr;
  }

  .tactical-map {
    min-height: 300px;
  }

  .tactical-marker {
    width: 104px;
    min-height: 66px;
  }

  .tactical-marker strong {
    font-size: 22px;
  }

  .marker-center {
    left: 35%;
  }

  .daily-report-feed::before {
    left: 16px;
  }

  .timeline-report-card {
    padding-left: 52px;
  }

  .report-date-node {
    left: 6px;
  }
}
