/* ══════════════════════════════════════════════════════════════════════════
   ON AIR — Pentecost / UTTER Design System
   Broadcast Console Metal, Bone Silkscreen, Incandescent Lamp Liveness
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --panel: #1C1B19;
  --strip: #24221E;
  --strip-2: #2B2823;
  --well: #191816;
  --rule: #38342D;
  --rule-2: #2A2721;
  --legend: #E9E4D9;
  --dim: #A39B8D;
  --faint: #9A9182;

  --live: #FF5A1F;
  --live-ink: #1C1B19;
  --live-hover: #FF7038;
  --lamp-off: #7C7364;

  --good: #7FBF6A;
  --warn: #E8B33C;
  --bad: #E2564A;
  --focus: #E9E4D9;
  --chrome-close: #C4271B;

  --ui: "Segoe UI Variable Text", "Segoe UI", -apple-system, system-ui, "Microsoft JhengHei UI", "Malgun Gothic", "Noto Sans CJK TC", "Hiragino Sans", sans-serif;
  --mach: "Bahnschrift Condensed", "Bahnschrift", "Franklin Gothic Medium Cond", "Segoe UI", sans-serif;
  --num: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --t-fast: 90ms;
  --t-base: 160ms;
  --t-slow: 260ms;
  --ease: cubic-bezier(.2, .8, .3, 1);
  --ease-in: cubic-bezier(.4, 0, .7, .2);
}

/* Base Body & Reset Overrides for Bootstrap */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--panel) !important;
  color: var(--legend) !important;
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

a {
  color: var(--legend);
  text-decoration: none;
}
a:hover {
  color: var(--live);
}

/* ── Bootstrap Dark Mode & Contrast Overrides ────────────────────────────── */
p, ul, ol, li, span, div, td, th, dt, dd, label, h1, h2, h3, h4, h5, h6 {
  color: var(--legend);
}

.text-muted, .text-secondary {
  color: var(--dim) !important;
}

.text-faint, small.text-muted {
  color: var(--faint) !important;
}

.bg-light {
  background-color: var(--well) !important;
  color: var(--legend) !important;
}

.bg-secondary {
  background-color: var(--strip-2) !important;
  color: var(--legend) !important;
}

.card {
  background-color: var(--well) !important;
  border: 1px solid var(--rule-2) !important;
  color: var(--legend) !important;
}

.card-header {
  background-color: var(--strip) !important;
  border-bottom: 1px solid var(--rule-2) !important;
  color: var(--legend) !important;
  font-weight: 600;
}

.card-body {
  color: var(--legend) !important;
}

.card-footer {
  background-color: var(--strip) !important;
  border-top: 1px solid var(--rule-2) !important;
  color: var(--dim) !important;
}

.card-title, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--legend) !important;
}

.border-success { border-color: var(--good) !important; }
.border-warning { border-color: var(--warn) !important; }
.border-primary { border-color: var(--live) !important; }
.border-danger  { border-color: var(--bad) !important; }

.badge.bg-secondary {
  background-color: var(--strip-2) !important;
  color: var(--legend) !important;
  border: 1px solid var(--rule-2) !important;
}

.btn-success {
  background-color: var(--good) !important;
  border-color: var(--good) !important;
  color: #121212 !important;
  font-weight: 600;
}
.btn-success:hover {
  filter: brightness(1.1);
  color: #121212 !important;
}
.btn-primary {
  background-color: var(--live) !important;
  border-color: var(--live) !important;
  color: var(--live-ink) !important;
  font-weight: 600;
}
.btn-primary:hover {
  background-color: var(--live-hover) !important;
  border-color: var(--live-hover) !important;
  color: var(--live-ink) !important;
}
.btn-outline-primary {
  border-color: var(--live) !important;
  color: var(--live) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--live) !important;
  color: var(--live-ink) !important;
}

/* ── Typography & Silkscreen Legends ────────────────────────────────────── */
.lbl {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

.mach-text {
  font-family: var(--mach);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.num-text {
  font-family: var(--num);
}

/* ── Console Layout Frame ────────────────────────────────────────────────── */
.console {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--panel);
}

.tally {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  height: 50px;
  background: var(--strip);
  border-bottom: 1px solid var(--rule);
  flex: 0 0 50px;
  z-index: 100;
}

.tally .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--legend);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tally .brand img {
  height: 22px;
  width: auto;
}

.lamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--lamp-off);
  color: var(--panel);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-radius: 0;
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.lamp .bulb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--panel);
}
.lamp.on {
  background: var(--live);
  color: var(--live-ink);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, .45), 0 4px 18px -4px rgba(255, 90, 31, .8);
}

.tally .meta {
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--dim);
}

.tally .spacer { flex: 1; }

.tally .clock {
  font-family: var(--num);
  font-size: 13px;
  color: var(--legend);
}

/* Rack & Main Layout */
.abody {
  flex: 1;
  display: flex;
  min-height: calc(100vh - 50px);
}

.rack {
  width: 210px;
  flex: 0 0 210px;
  background: var(--well);
  border-right: 1px solid var(--rule);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
}

.rack .grp {
  padding: 12px 16px 4px;
}
.rack .grp:first-child { padding-top: 2px; }

.rack a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 16px;
  color: var(--dim);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.rack a svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--lamp-off);
  transition: color var(--t-fast) var(--ease);
}
.rack a::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--lamp-off);
  transition: background var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.rack a:hover {
  color: var(--legend);
  background: var(--strip-2);
}
.rack a:hover svg {
  color: var(--legend);
}
.rack a.on {
  color: var(--legend);
  background: var(--strip-2);
}
.rack a.on svg {
  color: var(--live);
  filter: drop-shadow(0 0 5px rgba(255,90,31,.5));
}
.rack a.on::after {
  background: var(--live);
  box-shadow: 0 0 7px var(--live);
}
.rack a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.desk {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
}

.ahead {
  padding: 24px 30px 0;
}
.ahead h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--legend);
}
.ahead .hk {
  font-size: 13px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.figs {
  display: flex;
  gap: 30px;
  margin: 20px 30px 0;
  padding: 14px 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
}
.fig .v {
  font-family: var(--num);
  font-size: 19px;
  color: var(--legend);
  line-height: 1.1;
}
.fig .k {
  font-size: 11px;
  color: var(--faint);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.abody2 {
  padding: 22px 30px 30px;
  flex: 1;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 15px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.btn-1, .btn-primary {
  background: var(--live) !important;
  color: var(--live-ink) !important;
  border-color: var(--live) !important;
}
.btn-1:hover, .btn-primary:hover {
  background: var(--live-hover) !important;
  border-color: var(--live-hover) !important;
  color: var(--live-ink) !important;
}
.btn-2, .btn-outline-secondary, .btn-secondary {
  background: transparent !important;
  color: var(--legend) !important;
  border-color: var(--rule) !important;
}
.btn-2:hover, .btn-outline-secondary:hover, .btn-secondary:hover {
  background: var(--strip-2) !important;
  border-color: var(--lamp-off) !important;
  color: var(--legend) !important;
}
.btn-3, .btn-danger, .btn-outline-danger {
  background: transparent !important;
  color: var(--bad) !important;
  border-color: rgba(226, 86, 74, .45) !important;
}
.btn-3:hover, .btn-danger:hover, .btn-outline-danger:hover {
  background: rgba(226, 86, 74, .14) !important;
  border-color: var(--bad) !important;
  color: var(--bad) !important;
}
.btn-4, .btn-link {
  background: transparent !important;
  color: var(--dim) !important;
  border-color: transparent !important;
  padding: 8px 10px;
}
.btn-4:hover, .btn-link:hover {
  color: var(--legend) !important;
  background: var(--strip-2) !important;
}
.btn[disabled], .btn.disabled {
  opacity: 1 !important;
  background: var(--strip) !important;
  color: var(--lamp-off) !important;
  border-color: var(--rule-2) !important;
  cursor: not-allowed !important;
}
.btn .sp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(28,27,25,.35);
  border-top-color: var(--live-ink);
  animation: sp .7s linear infinite;
}
.btn-2 .sp {
  border-color: var(--rule);
  border-top-color: var(--legend);
}
@keyframes sp { to { transform: rotate(360deg); } }

.iconbtn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.iconbtn:hover {
  color: var(--legend);
  border-color: var(--rule);
}
.iconbtn svg {
  width: 14px;
  height: 14px;
}

/* ── Inputs & Form Controls ─────────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field > label, label {
  font-size: 12.5px;
  color: var(--dim);
  font-weight: 600;
  margin-bottom: 4px;
}
.field .help, .form-text {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
  margin-top: 4px;
}

.inp, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="url"], input[type="search"], textarea, .form-control {
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: var(--legend) !important;
  background: var(--well) !important;
  border: 1px solid var(--rule) !important;
  padding: 8px 11px !important;
  width: 100%;
  border-radius: 0 !important;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.inp::placeholder, input::placeholder, textarea::placeholder {
  color: var(--lamp-off) !important;
}
.inp:hover, input:hover, textarea:hover {
  border-color: var(--lamp-off) !important;
}
.inp:focus, input:focus, textarea:focus {
  outline: none !important;
  border-color: var(--focus) !important;
  background: var(--panel) !important;
  box-shadow: none !important;
}
.inp[disabled], input[disabled], textarea[disabled] {
  background: var(--strip) !important;
  color: var(--lamp-off) !important;
  cursor: not-allowed !allowed;
}
.inp.bad, input.is-invalid, textarea.is-invalid {
  border-color: var(--bad) !important;
}

.inp-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.inp-wrap svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--faint);
  pointer-events: none;
}
.inp-wrap .inp {
  padding-left: 32px !important;
}

/* Custom Select */
.sel, select, .form-select {
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: var(--legend) !important;
  background: var(--well) !important;
  border: 1px solid var(--rule) !important;
  padding: 8px 32px 8px 11px !important;
  width: 100%;
  border-radius: 0 !important;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9182' stroke-width='2'%3E%3Cpath d='M4 8l8 8 8-8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 11px 11px !important;
}
.sel select:hover, select:hover, .form-select:hover {
  border-color: var(--lamp-off) !important;
}
.sel select:focus, select:focus, .form-select:focus {
  outline: none !important;
  border-color: var(--focus) !important;
  box-shadow: none !important;
}

/* ── Checkboxes & Radios (On Air Design System Specs) ───────────────────── */
input[type="checkbox"], input[type="radio"], .form-check-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  background-color: var(--well) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  outline: none !important;
  cursor: pointer;
  vertical-align: middle;
  position: relative;
  margin-top: 0 !important;
  flex: 0 0 16px;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

input[type="checkbox"]:hover, input[type="radio"]:hover, .form-check-input:hover {
  border-color: var(--lamp-off) !important;
}

input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible, .form-check-input:focus, .form-check-input:focus-visible {
  outline: 2px solid var(--focus) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
  border-color: var(--focus) !important;
}

/* Checked state: Live Orange Background with Metal Ink SVG Checkmark */
input[type="checkbox"]:checked, .form-check-input[type="checkbox"]:checked {
  background-color: var(--live) !important;
  border-color: var(--live) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231C1B19'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 12px 12px !important;
}

/* Radio Checked state: Live Orange sharp square indicator */
input[type="radio"], .form-check-input[type="radio"] {
  border-radius: 0 !important;
}

input[type="radio"]:checked, .form-check-input[type="radio"]:checked {
  background-color: var(--well) !important;
  border-color: var(--live) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF5A1F'%3E%3Crect x='4' y='4' width='8' height='8'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: 10px 10px !important;
}

/* Indeterminate checkbox state */
input[type="checkbox"]:indeterminate, .form-check-input:indeterminate {
  background-color: var(--strip-2) !important;
  border-color: var(--live) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FF5A1F'%3E%3Crect x='3' y='7' width='10' height='2'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding-left: 0 !important;
}
.form-check .form-check-input {
  float: none !important;
  margin-left: 0 !important;
}
.form-check-label {
  cursor: pointer;
  color: var(--legend) !important;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
}

/* Keycap & Capture */
.keycap {
  font-family: var(--mach);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--strip-2);
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  padding: 3px 8px;
  color: var(--legend);
}
.capture {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--well);
  border: 1px dashed var(--lamp-off);
  padding: 8px 11px;
}
.capture.armed {
  border-style: solid;
  border-color: var(--live);
  background: var(--panel);
}

/* Chips */
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--legend);
  background: var(--strip-2);
  border: 1px solid var(--rule);
  padding: 4px 9px;
}
.chip button {
  background: none;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 14px;
}
.chip button:hover {
  color: var(--bad);
}

/* ── Choice Controls ─────────────────────────────────────────────────────── */
.tog {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}
.tog .track {
  width: 38px;
  height: 21px;
  background: var(--lamp-off);
  border-radius: 999px;
  position: relative;
  flex: 0 0 38px;
  transition: background var(--t-base) var(--ease);
}
.tog .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--panel);
  transition: transform var(--t-base) var(--ease);
}
.tog input { position: absolute; opacity: 0; width: 0; height: 0; }
.tog input:checked + .track { background: var(--live); }
.tog input:checked + .track::after { transform: translateX(17px); }
.tog .tl { font-size: 13.5px; color: var(--legend); }

.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
}
.radio .mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--lamp-off);
  flex: 0 0 16px;
  margin-top: 2px;
  position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio input:checked + .mark { border-color: var(--live); }
.radio input:checked + .mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--live);
}
.radio .rl { font-size: 13.5px; color: var(--legend); }

/* Segmented */
.seg {
  display: inline-flex;
  border: 1px solid var(--rule);
}
.seg button {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--dim);
  background: transparent;
  border: 0;
  padding: 7px 14px;
  cursor: pointer;
  border-right: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--legend); background: var(--strip-2); }
.seg button[aria-pressed="true"], .seg button.active {
  background: var(--live);
  color: var(--live-ink);
}

/* ── Lists & Tables ──────────────────────────────────────────────────────── */
.list {
  border: 1px solid var(--rule-2);
}
.lrow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: var(--well);
  border-bottom: 1px solid var(--rule-2);
  transition: background var(--t-fast) var(--ease);
}
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--strip-2); }
.lrow .term { flex: 0 0 160px; font-size: 13.5px; color: var(--legend); font-weight: 600; }
.lrow .sp2 { flex: 1; font-size: 12.5px; color: var(--dim); min-width: 0; }
.lrow .acts { display: flex; gap: 4px; opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.lrow:hover .acts, .lrow:focus-within .acts { opacity: 1; }

table.dt, table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--dim) !important;
  margin-bottom: 0 !important;
}
table.dt th, table.table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint) !important;
  padding: 9px 12px;
  background: var(--strip) !important;
  border-bottom: 1px solid var(--rule) !important;
  border-top: 0 !important;
}
table.dt td, table.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-2) !important;
  color: var(--dim) !important;
  background: var(--well) !important;
  vertical-align: middle;
}
table.dt tr:hover td, table.table tr:hover td {
  background: var(--strip-2) !important;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 44px 24px;
  background: var(--well);
  border: 1px solid var(--rule-2);
}
.empty svg {
  width: 28px;
  height: 28px;
  color: var(--lamp-off);
  margin-bottom: 12px;
}
.empty h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--legend);
  font-weight: 650;
}
.empty p {
  margin: 0 auto 16px;
  font-size: 13px;
  color: var(--faint);
  max-width: 44ch;
  line-height: 1.5;
}

/* Skeleton Loader */
.sk {
  background: linear-gradient(90deg, var(--strip) 0%, var(--strip-2) 50%, var(--strip) 100%);
  background-size: 200% 100%;
  animation: shim 1.4s ease-in-out infinite;
  height: 11px;
  display: inline-block;
}
@keyframes shim { to { background-position: -200% 0; } }

/* ── Status Pills, Banners & Indicators ──────────────────────────────────── */
/* StatusPill — SEMANTIC AXIS ONLY (good / warn / bad) */
.status-pill, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--legend) !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
}
.status-pill .l, .badge .l {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp-off);
  flex: 0 0 8px;
}
.status-pill .l.good, .badge.bg-success .l, .badge-success .l {
  background: var(--good);
  box-shadow: 0 0 6px rgba(127, 191, 106, .6);
}
.status-pill .l.warn, .badge.bg-warning .l, .badge-warning .l {
  background: var(--warn);
  box-shadow: 0 0 6px rgba(232, 179, 60, .55);
}
.status-pill .l.bad, .badge.bg-danger .l, .badge-danger .l {
  background: var(--bad);
  box-shadow: 0 0 6px rgba(226, 86, 74, .55);
}

/* LiveLamp — ACCENT AXIS ONLY */
.live-lamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--live);
}
.live-lamp .l {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 7px var(--live);
  flex: 0 0 8px;
}

/* Wave & Meter */
.wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 17px;
}
.wave i {
  width: 2.5px;
  border-radius: 1px;
  display: block;
  background: var(--live);
  animation: vu 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .2s; }
.wave i:nth-child(3) { animation-delay: .4s; }
.wave i:nth-child(4) { animation-delay: .1s; }
@keyframes vu { 0%, 100% { height: 18%; } 50% { height: 100%; } }

.meter {
  display: flex;
  gap: 2px;
  height: 16px;
  align-items: flex-end;
  max-width: 220px;
}
.meter i {
  flex: 1;
  background: var(--lamp-off);
  transition: background var(--t-fast) var(--ease);
}
.meter i.on { background: var(--live); }
.meter i.pk { background: var(--warn); }

/* Banners / Alerts */
.ban, .alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  background: var(--well) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  color: var(--dim) !important;
  margin-bottom: 16px;
}
.ban svg, .alert svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 2px;
}
.ban .bt, .alert .bt {
  flex: 1;
  font-size: 13px;
  color: var(--dim);
  line-height: 1.5;
}
.ban .bt b, .alert .bt b {
  color: var(--legend);
  display: block;
  margin-bottom: 2px;
  font-weight: 650;
}
.ban.info, .alert-info { border-color: var(--rule) !important; }
.ban.info svg, .alert-info svg { color: var(--faint); }
.ban.warn, .alert-warning { border-color: rgba(232,179,60,.4) !important; }
.ban.warn svg, .alert-warning svg { color: var(--warn); }
.ban.err, .alert-danger { border-color: rgba(226,86,74,.45) !important; }
.ban.err svg, .alert-danger svg { color: var(--bad); }
.ban.ok, .alert-success { border-color: rgba(127,191,106,.4) !important; }
.ban.ok svg, .alert-success svg { color: var(--good); }

/* ── Panel / Card Containers ─────────────────────────────────────────────── */
.panel, .card {
  background: var(--well) !important;
  border: 1px solid var(--rule-2) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--legend) !important;
}
.card-header {
  background: var(--strip) !important;
  border-bottom: 1px solid var(--rule) !important;
  color: var(--legend) !important;
  padding: 10px 14px !important;
  font-weight: 650;
  font-size: 13.5px;
}
.card-body {
  padding: 16px 18px !important;
}
.card-footer {
  background: var(--strip) !important;
  border-top: 1px solid var(--rule-2) !important;
  padding: 10px 14px !important;
}

/* Modal / Sheet */
.sheet, .modal-content {
  background: var(--panel) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 0 !important;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .85) !important;
  color: var(--legend) !important;
}
.sheet .sh, .modal-header {
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--rule-2) !important;
  font-size: 14.5px;
  font-weight: 650;
  color: var(--legend) !important;
}
.sheet .sb, .modal-body {
  padding: 16px 18px !important;
  font-size: 13px;
  color: var(--dim) !important;
}
.sheet .sf, .modal-footer {
  padding: 12px 18px !important;
  border-top: 1px solid var(--rule-2) !important;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

/* Dropdown Menus */
.dropdown-menu {
  background: var(--well) !important;
  border: 1px solid var(--rule-2) !important;
  border-radius: 0 !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .6) !important;
  padding: 4px 0 !important;
}
.dropdown-item {
  color: var(--legend) !important;
  font-size: 12.5px !important;
  padding: 7px 14px !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.dropdown-item:hover, .dropdown-item:focus {
  background: var(--strip-2) !important;
  color: var(--legend) !important;
}
.dropdown-item.active, .dropdown-item:active {
  background: var(--strip-2) !important;
  color: var(--live) !important;
  font-weight: 600 !important;
}

/* Channel Strips */
.chan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  background: var(--well);
  border: 1px solid var(--rule-2);
  margin-bottom: 6px;
}
.chan .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lamp-off);
  flex: 0 0 8px;
}
.chan.up .dot {
  background: var(--good);
  box-shadow: 0 0 7px rgba(127, 191, 106, .65);
}
.chan .nm {
  flex: 0 0 140px;
  font-size: 13.5px;
  color: var(--legend);
  font-weight: 600;
}
.chan .txt {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chan .prov {
  font-family: var(--mach);
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Keyword Editor specific */
.kw-text { cursor: pointer; }
.kw-tag .btn-close { font-size: 0.55em; filter: invert(1); }
.kw-add-input { max-width: 220px; }

/* ── Mobile & Tablet Responsive Adaptation (On Air Design System) ───────── */
@media (max-width: 991.98px) {
  .tally {
    padding: 0 10px !important;
    gap: 6px !important;
    height: 48px !important;
  }
  .tally .brand span {
    font-size: 12.5px !important;
    letter-spacing: .03em !important;
  }
  .tally .clock {
    display: none !important;
  }
  .tally .lamp {
    padding: 2px 5px !important;
    font-size: 9px !important;
  }
  
  .abody {
    flex-direction: column !important;
    min-height: auto !important;
  }
  
  .rack {
    display: none !important;
  }
  
  .ahead {
    padding: 16px 16px 0 !important;
  }
  .ahead h1 {
    font-size: 18px !important;
  }
  
  .abody2 {
    padding: 14px 16px 24px !important;
  }
  
  .figs {
    margin: 10px 16px 0 !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }
  .fig {
    flex: 1 1 45% !important;
  }

  /* Responsive Data Tables & Containers */
  .table-responsive, table.dt, div.p-0 > table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  .panel, .card {
    max-width: 100% !important;
  }

  .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-sm-6 {
    width: 100% !important;
  }

  /* Form & Control adjustments for touch viewports */
  .btn {
    padding: 9px 14px !important;
  }
  .inp, select, .sel {
    font-size: 14px !important;
  }
}

