:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(14, 14, 14, 0.86);
  --panel-strong: rgba(24, 24, 24, 0.94);
  --ink: #f4f4f4;
  --muted: #b9b9b9;
  --soft: #777;
  --line: rgba(244, 244, 244, 0.14);
  --line-strong: rgba(244, 244, 244, 0.28);
  --red: #e42112;
  --red-soft: rgba(228, 33, 18, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(228, 33, 18, 0.18), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(244, 244, 244, 0.08), transparent 28%),
    #050505;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 76px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(460px, 100%);
}

.login-panel,
.control-strip,
.stream-stats-row article,
.obs-panel,
.live-panel,
.side-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel {
  padding: 30px;
}

.login-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 22px rgba(228, 33, 18, 0.25));
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.login-copy,
.side-panel p,
.message-list p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.login-form input,
.hunt-form input,
.hunt-form select,
.hunt-table input,
.hunt-table select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  color: var(--ink);
  padding: 12px;
  outline: none;
}

.login-form input:focus,
.hunt-form input:focus,
.hunt-form select:focus,
.hunt-table input:focus,
.hunt-table select:focus {
  border-color: rgba(228, 33, 18, 0.64);
  box-shadow: 0 0 24px rgba(228, 33, 18, 0.18);
}

.login-form button,
.small-button,
.ghost-button,
.quick-actions button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #070707;
  padding: 10px 14px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.login-form button:hover,
.small-button:hover,
.ghost-button:hover,
.quick-actions button:hover {
  transform: translateY(-2px);
  border-color: rgba(228, 33, 18, 0.62);
  background: var(--red);
  color: #fff;
}

.login-alert {
  margin: 18px 0 0;
  border: 1px solid rgba(228, 33, 18, 0.42);
  background: var(--red-soft);
  padding: 12px;
  color: #fff;
  font-weight: 800;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.admin-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.admin-nav a,
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-nav a[aria-current="page"] {
  border-color: rgba(228, 33, 18, 0.5);
  color: #fff;
}

.admin-main {
  display: grid;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.control-strip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.live-state {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--soft);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.07);
}

.live-state.is-live .status-dot,
.obs-state.is-live .status-dot {
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(228, 33, 18, 0.15), 0 0 30px rgba(228, 33, 18, 0.45);
}

.live-state strong {
  font-size: 0.88rem;
  text-transform: uppercase;
}

.live-state em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}

.control-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.control-shortcuts a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.control-shortcuts a:hover,
.control-shortcuts a:focus-visible {
  border-color: rgba(228, 33, 18, 0.5);
  color: #fff;
  outline: none;
}

.obs-panel {
  padding: 22px;
}

.obs-state {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 180px;
}

.obs-state strong {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.obs-state em,
.obs-health-row em,
.obs-help {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}

.obs-connect-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 0.85fr) 72px auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.obs-connect-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.obs-connect-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  color: var(--ink);
  padding: 10px;
  outline: none;
}

.obs-connect-form input:focus {
  border-color: rgba(228, 33, 18, 0.64);
  box-shadow: 0 0 24px rgba(228, 33, 18, 0.18);
}

.remember-option {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  font-size: 0.68rem;
  line-height: 1.1;
}

.remember-option input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--red);
}

.remember-option span {
  max-width: none;
  white-space: nowrap;
}

.obs-health-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.obs-health-row article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-color: rgba(244, 244, 244, 0.11);
  background: rgba(0, 0, 0, 0.24);
  padding: 10px 12px;
}

.obs-health-row article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: rgba(244, 244, 244, 0.26);
}

.obs-health-row article.live-signal::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(228, 33, 18, 0.62);
}

.obs-health-row span {
  display: block;
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.obs-health-row strong {
  display: block;
  color: #fff;
  font-size: clamp(0.9rem, 1.55vw, 1.28rem);
  font-weight: 950;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.obs-health-row em {
  margin-left: 2px;
  font-size: 0.68rem;
}

.obs-health-row .state-card strong {
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
}

.obs-help {
  margin: 14px 0 0;
}

.stream-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.stream-stats-row article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  overflow: hidden;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-color: rgba(244, 244, 244, 0.11);
  background: rgba(0, 0, 0, 0.24);
}

.stream-stats-row article::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  height: auto;
  content: "";
  background: rgba(244, 244, 244, 0.26);
}

.stream-stats-row article.live-signal::before {
  background: var(--red);
  box-shadow: 0 0 18px rgba(228, 33, 18, 0.62);
}

.stream-stats-row span {
  display: block;
  color: var(--soft);
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.stream-stats-row strong {
  display: block;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.stream-stats-row .follower-card strong {
  font-size: clamp(0.7rem, 0.95vw, 0.86rem);
  line-height: 1.05;
  text-align: right;
  text-transform: none;
}

.overlay-goal-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px minmax(120px, 0.9fr) auto;
  gap: 8px;
  align-items: end;
  margin: 10px 0 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  padding: 10px;
}

.overlay-goal-form > div {
  display: grid;
  gap: 3px;
}

.overlay-goal-form span,
.overlay-goal-form label {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overlay-goal-form strong {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
}

.overlay-goal-form label {
  display: grid;
  gap: 5px;
  letter-spacing: 0.08em;
}

.overlay-goal-form input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 8px 9px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.overlay-goal-form input:focus {
  border-color: rgba(228, 33, 18, 0.72);
  outline: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  gap: 18px;
}

.live-panel,
.side-panel {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-title h2,
.side-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.message-list {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 8px;
}

.message {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
  padding: 12px;
}

.message.is-new {
  border-color: rgba(228, 33, 18, 0.62);
  background: rgba(228, 33, 18, 0.12);
  animation: new-message-pulse 1200ms ease-out;
}

@keyframes new-message-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 33, 18, 0.48);
    transform: translateY(-2px);
  }

  100% {
    box-shadow: 0 0 0 18px rgba(228, 33, 18, 0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .message.is-new {
    animation: none;
  }
}

.message strong {
  display: block;
  color: #fff;
}

.message span {
  color: var(--soft);
  font-size: 0.78rem;
}

.message p {
  margin: 8px 0 0;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-panel section + section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compact-title {
  margin-bottom: 10px;
}

.compact-title h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1;
}

.compact-title .eyebrow {
  margin-bottom: 7px;
  font-size: 0.66rem;
}

.calls-list {
  display: grid;
  gap: 8px;
  max-height: 38vh;
  overflow: auto;
}

.calls-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
  padding: 10px;
}

.calls-list article.is-picked {
  border-color: rgba(228, 33, 18, 0.4);
  background: rgba(228, 33, 18, 0.09);
}

.calls-list .empty-call {
  display: block;
}

.calls-list strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.calls-list p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
}

.call-actions {
  display: flex;
  gap: 6px;
}

.call-actions button,
.calls-toolbar button {
  min-height: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.call-actions button:hover,
.call-actions button:focus-visible,
.calls-toolbar button:hover,
.calls-toolbar button:focus-visible {
  border-color: rgba(228, 33, 18, 0.62);
  background: var(--red);
  outline: none;
}

.calls-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.quick-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.quick-actions button {
  width: 100%;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.74rem;
}

.compact-actions {
  grid-template-columns: 1fr;
}

.timecode-panel,
.rumble-agent-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rumble-send-form {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.rumble-send-form label {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rumble-send-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rumble-send-form input {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  padding: 0 10px;
  min-height: 38px;
  font-size: 0.78rem;
}

.rumble-send-form input:focus {
  border-color: rgba(228, 33, 18, 0.62);
  outline: none;
}

.mini-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-panel-title strong {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-panel-title a,
.mini-panel-title button,
.timecode-item button,
.rumble-outbox-item button {
  min-height: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.66rem;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
}

.mini-panel-title a:hover,
.mini-panel-title a:focus-visible,
.mini-panel-title button:hover,
.mini-panel-title button:focus-visible,
.timecode-item button:hover,
.timecode-item button:focus-visible,
.rumble-outbox-item button:hover,
.rumble-outbox-item button:focus-visible {
  border-color: rgba(228, 33, 18, 0.62);
  background: var(--red);
  color: #fff;
  outline: none;
}

.timecode-list,
.rumble-outbox-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
}

.timecode-list article,
.rumble-outbox-list article {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  padding: 9px;
}

.timecode-item,
.rumble-outbox-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.timecode-list strong,
.rumble-outbox-list strong {
  display: block;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.timecode-list p,
.timecode-list em,
.rumble-outbox-list p,
.rumble-outbox-list span {
  display: block;
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 0.72rem;
  line-height: 1.3;
  font-style: normal;
}

.rumble-outbox-item.is-processing {
  border-color: rgba(228, 33, 18, 0.42);
}

.hunt-form-panel,
.hunt-table-panel,
.slot-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%), var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hunt-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.hunt-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hunt-form .wide-field {
  grid-column: span 2;
}

.catalog-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.slot-suggest-panel {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 12px;
}

.slot-suggest-panel button {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  padding: 12px;
  text-align: left;
}

.slot-suggest-panel button:hover,
.slot-suggest-panel button:focus-visible {
  border-color: rgba(228, 33, 18, 0.62);
  background: rgba(228, 33, 18, 0.13);
}

.slot-suggest-panel span,
.hunt-table small {
  color: var(--muted);
  font-size: 0.78rem;
}

.hunt-table-wrap {
  overflow-x: auto;
}

.hunt-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.hunt-table th,
.hunt-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.hunt-table th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hunt-table input,
.hunt-table select {
  min-height: 38px;
  padding: 8px;
}

.hunt-table strong {
  white-space: nowrap;
}

.hunt-table .positive {
  color: #78f09a;
}

.hunt-table .negative {
  color: #ff746d;
}

.table-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.table-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.table-actions button:hover {
  border-color: rgba(228, 33, 18, 0.62);
  background: var(--red);
}

.bonus-summary strong {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.slots-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
}

.slots-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.slots-toolbar input,
.slot-card input,
.bulk-import-field {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.46);
  color: var(--ink);
  padding: 10px;
  outline: none;
}

.slots-toolbar input,
.slot-card input {
  min-height: 42px;
}

.bulk-import-field {
  min-height: 110px;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
}

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

.slot-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.slot-visual {
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.32);
}

.slot-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slot-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, hsla(var(--slot-hue), 80%, 58%, 0.55), transparent 36%),
    linear-gradient(135deg, hsla(var(--slot-hue), 70%, 22%, 0.86), rgba(0, 0, 0, 0.92));
}

.slot-placeholder span {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 1000;
}

.slot-body {
  min-width: 0;
}

.slot-body > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.slot-body h2 {
  margin: 6px 0 10px;
  font-size: 1.2rem;
  line-height: 1;
  text-transform: uppercase;
}

.slot-slug {
  display: block;
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.slot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.slot-meta em {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 4px 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.slot-body label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.slot-body button {
  margin-top: 8px;
  min-height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.empty-card {
  grid-column: 1 / -1;
  display: block;
}

.copy-state {
  min-height: 22px;
  margin: 12px 0 0;
}

@media (max-width: 860px) {
  .admin-header,
  .control-strip,
  .admin-layout,
  .stream-stats-row,
  .obs-connect-form,
  .obs-health-row,
  .hunt-form,
  .slots-toolbar,
  .slots-grid {
    grid-template-columns: 1fr;
  }

  .hunt-form .wide-field {
    grid-column: auto;
  }

  .admin-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .control-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .live-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .live-state em {
    grid-column: 2;
  }

  .control-shortcuts {
    justify-content: flex-start;
  }

  .obs-state {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  .admin-header {
    width: min(100% - 22px, 1240px);
  }

  .admin-main {
    width: min(100% - 22px, 1240px);
  }

  .admin-brand span {
    display: none;
  }

  .control-strip,
  .live-panel,
  .side-panel,
  .obs-panel,
  .login-panel,
  .hunt-form-panel,
  .hunt-table-panel {
    padding: 18px;
  }

  .slot-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }
}
