:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #101311;
  --panel-2: #0e100f;
  --line: #242b26;
  --line-strong: #344238;
  --green: #00ff66;
  --green-soft: #9bffbd;
  --red: #ff4655;
  --muted: #738079;
  --text: #dce5df;
  --font:
    ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --touch: 44px;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  background:
    radial-gradient(
      ellipse at 65% 0%,
      rgba(0, 255, 102, 0.045),
      transparent 38%
    ),
    var(--bg);
  min-height: 100vh;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 220px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 5px rgba(0, 255, 102, 0.27));
}
.brand-mark circle {
  fill: var(--green);
  stroke: none;
}
.brand-copy {
  display: grid;
  gap: 1px;
}
.brand-copy strong {
  font-size: 16px;
  letter-spacing: 0.13em;
  color: #f0f8f2;
}
.brand-copy small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.top-status {
  display: flex;
  align-items: center;
  gap: 21px;
}
.status-pill,
.live-count {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-soft);
  font-size: 10px;
  letter-spacing: 0.07em;
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.1s ease-in-out infinite;
}
.clock-block,
.top-stat {
  display: grid;
  gap: 2px;
}
.clock-block small,
.top-stat small {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.clock-block time {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.top-stat b {
  font-weight: 500;
  color: var(--green);
  font-size: 13px;
}
.top-divider {
  height: 28px;
  width: 1px;
  background: var(--line-strong);
}
.mobile-menu {
  display: none !important;
}
.workspace {
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 24px clamp(16px, 2.8vw, 36px) 18px;
  display: grid;
  grid-template-columns: minmax(270px, 310px) minmax(0, 1fr);
  gap: 18px;
  flex: 1;
}
.station-panel,
.viewer-panel,
.log-panel {
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(18, 22, 19, 0.97),
    rgba(12, 14, 13, 0.98)
  );
}
.station-panel {
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 660px;
}
.panel-heading,
.log-heading,
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.panel-heading h1,
.log-heading h2 {
  font-size: 15px;
  letter-spacing: 0.11em;
  margin: 5px 0 0;
  font-weight: 600;
  color: #e5eee8;
}
.live-count {
  font-size: 9px;
  white-space: nowrap;
  padding-top: 5px;
  color: #a8b5ad;
}
.search-box {
  height: 46px;
  border: 1px solid var(--line-strong);
  background: #0a0d0b;
  margin: 21px 0 12px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
}
.search-box:focus-within {
  border-color: rgba(0, 255, 102, 0.65);
  box-shadow: 0 0 0 2px rgba(0, 255, 102, 0.08);
}
.search-glyph {
  font-size: 23px;
  color: var(--green);
  line-height: 1;
  transform: rotate(-20deg);
}
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}
.search-box input::placeholder {
  color: #66716a;
}
.search-box kbd {
  border: 1px solid var(--line-strong);
  color: #87938b;
  padding: 1px 5px;
  font-size: 9px;
}
.filter-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.filter-chip {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: #0d100e;
  color: #7f8b83;
  font-size: 9px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: var(--green);
  color: var(--green);
}
.filter-chip.is-active {
  border-color: rgba(0, 255, 102, 0.42);
  background: rgba(0, 255, 102, 0.07);
  color: var(--green);
}
.region-summary {
  display: flex;
  justify-content: space-between;
  margin: 22px 2px 9px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.11em;
}
.region-summary span:last-child {
  color: #98a59d;
}
.station-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  overflow: auto;
  max-height: 510px;
  scrollbar-color: #354139 transparent;
  scrollbar-width: thin;
}
.station-item {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  padding: 10px 8px;
  border: 1px solid transparent;
  border-left: 2px solid #2d3931;
  background: #101411;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}
.station-item:hover,
.station-item:focus-visible {
  border-color: #334238;
  background: #131a15;
  outline: none;
}
.station-item[aria-current="true"] {
  border-color: rgba(0, 255, 102, 0.42);
  border-left-color: var(--green);
  background: linear-gradient(
    90deg,
    rgba(0, 255, 102, 0.085),
    rgba(0, 255, 102, 0.015)
  );
}
.station-code {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #344238;
  color: var(--green);
  font-size: 9px;
}
.station-info {
  min-width: 0;
}
.station-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  color: #dbe6de;
}
.station-info small {
  display: block;
  margin-top: 5px;
  color: #87938b;
  font-size: 9px;
}
.station-info .station-meta {
  color: #626d66;
  font-size: 8px;
  letter-spacing: 0.06em;
}
.station-indicator {
  align-self: start;
  margin-top: 2px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.4);
}
.station-item[data-external="true"] .station-indicator {
  border-color: #b0b8b2;
  box-shadow: none;
}
.empty-state {
  padding: 24px 10px;
  text-align: center;
  color: #b5c1b9;
  font-size: 11px;
  line-height: 1.8;
}
.empty-state span {
  font-size: 9px;
  color: var(--muted);
}
.hidden {
  display: none !important;
}
.add-station-button {
  margin-top: auto;
  min-height: 46px;
  width: 100%;
  border: 1px dashed rgba(0, 255, 102, 0.4);
  background: rgba(0, 255, 102, 0.035);
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.07em;
  cursor: pointer;
}
.add-station-button span {
  font-size: 16px;
  padding-right: 5px;
}
.add-station-button:hover,
.add-station-button:focus-visible {
  background: rgba(0, 255, 102, 0.1);
  outline: 2px solid rgba(0, 255, 102, 0.22);
}
.local-note {
  color: #6f7b73;
  font-size: 9px;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 10px 1px 0;
}
.local-note span {
  color: #a1b0a6;
}
.main-column {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.viewer-panel {
  padding: 18px;
}
.feed-heading h2 {
  margin: 5px 0 4px;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.22;
  letter-spacing: 0.045em;
  color: #f0f7f2;
}
.feed-heading .eyebrow b {
  color: var(--green);
  font-weight: 500;
}
.location-line {
  margin: 0;
  color: #89968e;
  font-size: 10px;
}
.location-line span {
  color: var(--green);
}
.feed-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 6px;
}
.feed-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #314038;
  padding: 0 9px;
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: #a9b5ad;
}
.feed-badge .pulse-dot {
  width: 6px;
  height: 6px;
}
.feed-badge.is-error {
  border-color: rgba(255, 70, 85, 0.4);
  color: #ff8890;
}
.feed-badge.is-error .pulse-dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
.feed-badge.is-loading {
  color: #ffc96a;
  border-color: #51452f;
}
.feed-badge.is-loading .pulse-dot {
  background: #ffc96a;
  box-shadow: 0 0 8px #ffc96a;
}
.source-link {
  font-size: 9px;
  color: #9eaba2;
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 9px 2px;
  white-space: nowrap;
}
.source-link:hover,
.source-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
}
.screen-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16/9;
  min-height: 280px;
  max-height: clamp(360px, 54vw, 650px);
  margin-top: 17px;
  background: #050706;
  border: 1px solid #202a23;
  display: grid;
  place-items: center;
}
.screen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      rgba(0, 255, 102, 0.055) 50%,
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      0deg,
      transparent calc(50% - 0.5px),
      rgba(0, 255, 102, 0.045) 50%,
      transparent calc(50% + 0.5px)
    );
}
.screen-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 255, 102, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse, black 10%, transparent 77%);
}
.screen-frame.is-playing {
  background: #000;
}
.player-mount {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}
.player-mount iframe,
.player-mount video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  object-fit: contain;
}
.screen-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 26px;
}
.screen-placeholder strong {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #a8b4ac;
  margin-top: 18px;
}
.screen-placeholder p {
  font-size: 10px;
  color: #68756d;
  margin: 8px 0 0;
}
.placeholder-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 4px;
  transform: rotate(45deg);
}
.placeholder-mark span {
  width: 8px;
  height: 8px;
  border: 1px solid #56645a;
}
.placeholder-mark span:first-child {
  border-color: var(--green);
  background: rgba(0, 255, 102, 0.15);
}
.screen-corner {
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  border-color: rgba(0, 255, 102, 0.55);
  pointer-events: none;
}
.corner-tl {
  left: 9px;
  top: 9px;
  border-left: 1px solid;
  border-top: 1px solid;
}
.corner-tr {
  right: 9px;
  top: 9px;
  border-right: 1px solid;
  border-top: 1px solid;
}
.corner-bl {
  left: 9px;
  bottom: 9px;
  border-left: 1px solid;
  border-bottom: 1px solid;
}
.corner-br {
  right: 9px;
  bottom: 9px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.screen-overlay {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  color: #b7c4ba;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 4px #000;
  pointer-events: none;
}
.viewer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  color: #8d9a91;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.viewer-footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-mini {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #79877e;
  display: inline-block;
  flex: none;
}
.live-mini.active {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.resolution-label {
  color: #647169;
  white-space: nowrap;
}
.details-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 9px;
}
.detail-card {
  min-width: 0;
  min-height: 83px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: #0d100e;
  display: grid;
  align-content: start;
  gap: 5px;
}
.detail-card b {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #d3ded6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-card > span:not(.eyebrow) {
  font-size: 9px;
  color: #77847b;
}
.detail-card a {
  font-size: 9px;
  color: var(--green);
  text-decoration: none;
}
.detail-card a:hover {
  text-decoration: underline;
}
.detail-legal b {
  color: #b2c1b6;
}
.log-panel {
  padding: 14px 17px 11px;
}
.log-heading {
  align-items: center;
}
.log-heading h2 {
  font-size: 12px;
}
.text-button {
  min-height: 38px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #78857c;
  font-size: 9px;
  cursor: pointer;
}
.text-button:hover,
.text-button:focus-visible {
  color: var(--green);
  outline: 1px solid var(--line-strong);
}
.text-button span {
  font-size: 14px;
  padding-left: 5px;
}
.terminal-log {
  height: 112px;
  overflow: auto;
  margin-top: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-color: #354139 transparent;
  scrollbar-width: thin;
}
.log-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0;
  font-size: 10px;
  line-height: 1.6;
}
.log-time {
  color: #66736a;
  white-space: nowrap;
}
.log-level {
  color: var(--green);
  min-width: 45px;
}
.log-line.error .log-level,
.log-line.error .log-message {
  color: #ff717d;
}
.log-line.warn .log-level {
  color: #e4bd65;
}
.log-message {
  color: #a5b1a9;
  overflow-wrap: anywhere;
}
.terminal-prompt {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  color: #79867d;
  font-size: 9px;
}
.terminal-prompt span:first-child {
  color: var(--green);
}
.cursor-block {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--green);
  opacity: 0.75;
  animation: blink 1.1s steps(2, end) infinite;
}
.app-footer {
  width: min(100%, 1800px);
  margin: 0 auto;
  padding: 10px clamp(16px, 2.8vw, 36px) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #79867d;
  font-size: 8px;
  letter-spacing: 0.055em;
}
.muted,
.footer-right {
  color: #56635a;
}
.footer-sep {
  padding: 0 6px;
  color: var(--green);
}
.add-dialog {
  width: min(610px, calc(100vw - 24px));
  max-height: min(92dvh, 850px);
  padding: 0;
  border: 1px solid #3a4a3e;
  background: #0e110f;
  color: var(--text);
  box-shadow: 0 24px 100px #000b;
}
.add-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}
.add-form {
  padding: clamp(18px, 4vw, 28px);
  overflow: auto;
  max-height: min(92dvh, 850px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.dialog-header h2 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: 0.08em;
}
.close-dialog {
  width: 44px;
  height: 44px;
  font-size: 24px;
}
.form-intro {
  margin: 15px 0 19px;
  color: #929e95;
  font-size: 10px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}
.form-grid label:not(.consent-check) {
  display: grid;
  gap: 7px;
  color: #93a098;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.form-grid input,
.form-grid select {
  width: 100%;
  min-height: var(--touch);
  padding: 9px 10px;
  border: 1px solid #2f3a32;
  background: #090c0a;
  color: var(--text);
  font-size: 11px;
  letter-spacing: normal;
  outline: none;
  border-radius: 0;
}
.form-grid input:focus,
.form-grid select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 255, 102, 0.08);
}
.form-grid input::placeholder {
  color: #5b675e;
}
.form-grid small {
  font-size: 8px;
  color: #707c73;
  line-height: 1.5;
  letter-spacing: normal;
}
.field-wide {
  grid-column: 1/-1;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #aeb9b1;
  font-size: 10px;
  line-height: 1.65;
  cursor: pointer;
}
.consent-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  accent-color: var(--green);
}
.form-error {
  margin: 14px 0 0;
  padding: 10px;
  border-left: 2px solid var(--red);
  background: rgba(255, 70, 85, 0.06);
  color: #ff929a;
  font-size: 10px;
  line-height: 1.5;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.secondary-button,
.primary-button {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid #38453b;
  background: #121612;
  color: #b4c0b7;
  font-size: 10px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.primary-button {
  border-color: var(--green);
  background: var(--green);
  color: #061009;
  font-weight: 700;
}
.primary-button:hover {
  background: #6cff9a;
}
.secondary-button:hover {
  border-color: #87958b;
}
.toast {
  position: fixed;
  z-index: 30;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 15px);
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 520px);
  padding: 12px 16px;
  background: #111812;
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: #c6f9d5;
  font-size: 10px;
  line-height: 1.5;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
@keyframes pulse {
  50% {
    opacity: 0.45;
    box-shadow: 0 0 3px var(--green);
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: minmax(245px, 280px) minmax(0, 1fr);
    padding-top: 18px;
    gap: 12px;
  }
  .viewer-panel {
    padding: 14px;
  }
  .screen-frame {
    min-height: 250px;
  }
  .details-row {
    grid-template-columns: 1fr 1fr;
  }
  .detail-legal {
    grid-column: 1/-1;
    min-height: 65px;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
  .detail-legal .eyebrow {
    grid-column: 1/-1;
  }
  .detail-legal b {
    white-space: normal;
  }
  .details-row .detail-card:nth-child(2) {
    min-height: 83px;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 68px;
    padding-inline: 14px;
  }
  .brand {
    min-width: 0;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .brand-copy strong {
    font-size: 14px;
  }
  .brand-copy small {
    font-size: 8px;
  }
  .top-status {
    gap: 12px;
  }
  .top-status .status-pill {
    font-size: 0;
  }
  .top-status .status-pill .pulse-dot {
    width: 8px;
    height: 8px;
  }
  .top-divider {
    height: 24px;
  }
  .clock-block small,
  .top-stat small {
    font-size: 8px;
  }
  .clock-block time,
  .top-stat b {
    font-size: 11px;
  }
  .workspace {
    grid-template-columns: 1fr;
    padding: 12px 12px 15px;
    gap: 12px;
  }
  .station-panel {
    min-height: 0;
    padding: 13px 12px;
  }
  .panel-heading h1 {
    font-size: 13px;
  }
  .search-box {
    margin: 12px 0 9px;
  }
  .filter-row {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 3px;
  }
  .filter-chip {
    flex: 0 0 auto;
    min-height: var(--touch);
  }
  .region-summary {
    margin: 13px 2px 7px;
  }
  .station-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 210px;
    overflow: auto;
  }
  .station-item {
    min-height: 68px;
    padding: 8px 7px;
    grid-template-columns: 29px minmax(0, 1fr) auto;
  }
  .station-code {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  .station-info strong {
    font-size: 10px;
  }
  .station-info small {
    font-size: 8px;
  }
  .add-station-button {
    margin-top: 10px;
    min-height: var(--touch);
  }
  .mobile-menu {
    display: none !important;
  }
  .main-column {
    gap: 10px;
  }
  .viewer-panel {
    padding: 12px;
  }
  .viewer-toolbar {
    align-items: flex-start;
  }
  .feed-heading h2 {
    font-size: 17px;
  }
  .feed-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-top: 0;
  }
  .feed-badge {
    min-height: 27px;
    font-size: 8px;
    padding-inline: 7px;
  }
  .source-link {
    padding: 5px 2px;
  }
  .screen-frame {
    margin-top: 12px;
    min-height: 220px;
    max-height: none;
    aspect-ratio: 16/9;
  }
  .viewer-footer {
    min-height: 42px;
    font-size: 8px;
  }
  .resolution-label {
    font-size: 8px;
  }
  .details-row {
    gap: 7px;
  }
  .detail-card {
    padding: 10px;
    min-height: 76px;
  }
  .detail-card b {
    font-size: 9px;
  }
  .detail-card > span:not(.eyebrow) {
    font-size: 8px;
  }
  .log-panel {
    padding: 12px;
  }
  .terminal-log {
    height: 92px;
  }
  .app-footer {
    font-size: 7px;
  }
  .footer-right {
    max-width: 46%;
    text-align: right;
  }
}
@media (max-width: 480px) {
  .top-status {
    gap: 8px;
  }
  .top-status .status-pill,
  .top-status .top-divider:first-of-type {
    display: none;
  }
  .top-stat {
    display: none;
  }
  .workspace {
    padding-inline: 8px;
  }
  .station-list {
    grid-template-columns: 1fr;
    max-height: 190px;
  }
  .station-item {
    min-height: 60px;
  }
  .viewer-panel {
    padding: 10px;
  }
  .feed-heading .eyebrow {
    font-size: 8px;
  }
  .feed-heading h2 {
    font-size: 15px;
  }
  .location-line {
    font-size: 9px;
  }
  .feed-actions {
    gap: 2px;
  }
  .feed-badge {
    font-size: 7px;
  }
  .source-link {
    font-size: 8px;
  }
  .screen-frame {
    min-height: 190px;
  }
  .viewer-footer {
    align-items: flex-start;
    padding: 8px 0;
    flex-direction: column;
    gap: 4px;
  }
  .details-row {
    grid-template-columns: 1fr 1fr;
  }
  .detail-legal {
    grid-column: 1/-1;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field-wide {
    grid-column: auto;
  }
  .dialog-actions {
    justify-content: stretch;
  }
  .dialog-actions button {
    flex: 1;
    padding-inline: 8px;
  }
  .app-footer {
    line-height: 1.8;
  }
  .app-footer > span:first-child {
    max-width: 54%;
  }
}
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .station-panel {
    min-height: auto;
  }
  .station-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 180px;
  }
  .add-station-button {
    margin-top: 10px;
  }
  .screen-frame {
    min-height: 360px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.station-list li {
  position: relative;
}
.station-item.is-removable {
  padding-right: 34px;
}
.remove-station {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: #6f7b73;
  font-size: 18px;
  cursor: pointer;
}
.remove-station:hover,
.remove-station:focus-visible {
  border-color: rgba(255, 70, 85, 0.4);
  color: var(--red);
  outline: none;
}
.external-feed-note,
.player-error-note {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  padding: 26px;
  text-align: center;
}
.external-feed-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 255, 102, 0.44);
  border-radius: 50%;
  color: var(--green);
  font-size: 22px;
  margin-bottom: 15px;
}
.external-feed-note > strong {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #dce8df;
}
.external-feed-note p,
.player-error-note p {
  max-width: 370px;
  color: #87948b;
  font-size: 10px;
  line-height: 1.8;
}
.external-feed-note a,
.player-error-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 255, 102, 0.46);
  color: var(--green);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-decoration: none;
}
.external-feed-note a:hover,
.player-error-note a:hover {
  background: rgba(0, 255, 102, 0.08);
}
@media (max-width: 760px) {
  .source-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .remove-station {
    width: 38px;
    height: 38px;
  }
}

.feed-badge.is-external {
  border-color: #39443c;
  color: #a8b4aa;
}
.feed-badge.is-external .pulse-dot {
  background: #79867c;
  box-shadow: none;
  animation: none;
}

/* G.P.S.C.C. global command-center refinement */
:root {
  --bg: #050505;
  --panel: rgba(13, 17, 14, 0.82);
  --panel-2: rgba(8, 11, 9, 0.88);
  --red: #e11d48;
  --crimson: #e11d48;
}

html,
body {
  background-color: var(--bg);
}
body {
  background:
    radial-gradient(
      ellipse at 74% -8%,
      rgba(0, 255, 102, 0.075),
      transparent 34%
    ),
    radial-gradient(
      ellipse at 0% 42%,
      rgba(225, 29, 72, 0.035),
      transparent 28%
    ),
    var(--bg);
}
* {
  scrollbar-color: #24432f #080a09;
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: #080a09;
}
*::-webkit-scrollbar-thumb {
  border: 2px solid #080a09;
  background: #24432f;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}
.topbar {
  min-height: 76px;
  height: auto;
  gap: 14px;
  background: rgba(5, 5, 5, 0.83);
  border-bottom-color: rgba(0, 255, 102, 0.16);
}
.brand-copy em {
  color: #9fb5a5;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.04em;
}
.top-status {
  min-width: 0;
  gap: clamp(8px, 1vw, 18px);
}
.top-status .status-pill {
  white-space: nowrap;
  font-size: 9px;
}
.top-stat b,
.clock-block time {
  font-variant-numeric: tabular-nums;
}
.station-panel,
.viewer-panel,
.log-panel,
.detail-card {
  border-color: rgba(125, 164, 137, 0.2);
  background: linear-gradient(
    145deg,
    rgba(18, 24, 20, 0.72),
    rgba(7, 9, 8, 0.88)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 44px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.station-panel {
  border-left-color: rgba(0, 255, 102, 0.24);
}
.select-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 0 9px;
}
.select-filter-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #82948a 50%) calc(100% - 12px)
      17px / 5px 5px no-repeat,
    linear-gradient(135deg, #82948a 50%, transparent 50%) calc(100% - 8px)
      17px / 5px 5px no-repeat,
    rgba(5, 8, 6, 0.86);
  color: #b7c6bc;
  font-size: 9px;
  cursor: pointer;
}
.select-filter-row select:focus-visible {
  border-color: var(--green);
}
.filter-row {
  gap: 6px;
}
.filter-chip {
  min-height: 38px;
  border-color: rgba(115, 141, 122, 0.2);
  background: rgba(6, 9, 7, 0.72);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.filter-chip.is-active {
  border-color: rgba(0, 255, 102, 0.54);
  background: rgba(0, 255, 102, 0.08);
  box-shadow: 0 0 18px rgba(0, 255, 102, 0.06);
}
.station-item {
  min-height: 78px;
  border-color: rgba(255, 255, 255, 0.025);
  border-left-color: rgba(0, 255, 102, 0.35);
  background: rgba(11, 15, 12, 0.7);
}
.station-indicator {
  animation: pulse 2.1s ease-in-out infinite;
}
.station-item[data-source-only="true"] .station-indicator {
  border-color: #95a29a;
  box-shadow: none;
  animation: none;
}
.station-state {
  align-self: start;
  margin: 0 2px 0 0;
  color: #91cda4;
  font-size: 7px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.station-item[data-source-only="true"] .station-state {
  color: #a0aaa3;
}
.live-count {
  color: #9af2b6;
}
.search-box {
  background: rgba(5, 8, 6, 0.8);
}
.region-summary {
  letter-spacing: 0.09em;
}
.feed-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fullscreen-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 255, 102, 0.27);
  background: rgba(0, 255, 102, 0.035);
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}
.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  border-color: var(--green);
  background: rgba(0, 255, 102, 0.11);
  transform: translateY(-1px);
}
.screen-frame {
  border-color: rgba(0, 255, 102, 0.28);
  box-shadow:
    inset 0 0 34px rgba(0, 255, 102, 0.025),
    0 0 36px rgba(0, 0, 0, 0.36);
}
.screen-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  max-height: none;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  background: #000;
}
.screen-frame:fullscreen .player-mount iframe,
.screen-frame:fullscreen .player-mount video {
  object-fit: contain;
}
.feed-badge.is-ready,
.feed-badge.is-playing {
  border-color: rgba(0, 255, 102, 0.35);
  color: #b8f5cb;
}
.feed-badge.is-external {
  border-color: rgba(171, 183, 174, 0.24);
  color: #a8b4aa;
}
.detail-card {
  background: rgba(8, 11, 9, 0.68);
}
.log-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.simulation-label {
  color: #77867c;
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.log-line.sim .log-level {
  color: #c2a76a;
}
.log-line.sim .log-message {
  color: #a99a75;
}
.log-line.error .log-level,
.log-line.error .log-message {
  color: #fb7185;
}
.app-footer {
  border-top-color: rgba(0, 255, 102, 0.13);
}
.footer-right strong {
  color: #9bdcae;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.form-grid input:focus-visible,
.form-grid select:focus-visible {
  outline: 2px solid rgba(0, 255, 102, 0.72);
  outline-offset: 1px;
}
@media (max-width: 1100px) {
  .topbar {
    flex-wrap: wrap;
    padding-block: 9px;
  }
  .top-status {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
}
@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    flex-wrap: nowrap;
  }
  .top-status {
    gap: 9px;
  }
  .top-status .status-pill {
    font-size: 0;
  }
  .top-status .status-divider {
    display: none;
  }
  .bandwidth-stat {
    display: none;
  }
  .select-filter-row select {
    min-height: var(--touch);
  }
  .filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }
  .filter-chip {
    flex: 0 0 auto;
    min-height: var(--touch);
  }
  .station-list {
    max-height: 270px;
  }
  .viewer-toolbar {
    flex-wrap: wrap;
  }
  .fullscreen-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }
  .simulation-label {
    font-size: 7px;
  }
  .log-actions {
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .top-status .top-stat {
    display: none;
  }
  .top-status .clock-block {
    display: grid;
  }
  .brand-copy em {
    font-size: 7px;
  }
  .details-row {
    grid-template-columns: 1fr 1fr;
  }
  .log-heading {
    align-items: flex-start;
  }
  .simulation-label {
    display: none;
  }
  .screen-frame {
    min-height: 180px;
  }
}

.station-item {
  grid-template-columns: 34px minmax(0, 1fr) auto 7px;
}
@media (max-width: 760px) {
  .station-item {
    grid-template-columns: 29px minmax(0, 1fr) auto 6px;
  }
}

.catalog-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a6b1aa;
  font-size: 8px;
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.catalog-marker {
  width: 6px;
  height: 6px;
  border: 1px solid #728077;
  background: #425048;
}
.station-item[data-status="publisher-only"] {
  border-left-color: rgba(150, 164, 153, 0.55);
}
.station-item[data-status="publisher-only"] .station-indicator {
  border-color: #95a29a;
  box-shadow: none;
  animation: none;
}
.station-item[data-status="publisher-only"] .station-state {
  color: #a0aaa3;
}
.station-item[data-status="unverified"] {
  border-left-color: rgba(229, 177, 78, 0.7);
}
.station-item[data-status="unverified"] .station-indicator {
  border-color: #e5b14e;
  background: rgba(229, 177, 78, 0.22);
  box-shadow: none;
  animation: none;
}
.station-item[data-status="unverified"] .station-state {
  color: #e5b14e;
}
.station-item[data-status="offline"] {
  border-left-color: rgba(225, 29, 72, 0.8);
}
.station-item[data-status="offline"] .station-indicator {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.28);
  box-shadow: none;
  animation: none;
}
.station-item[data-status="offline"] .station-state {
  color: #fb7185;
}
.station-item[data-status="live-candidate"] .station-state {
  color: #d7bb7a;
}
.feed-badge.is-offline {
  border-color: rgba(225, 29, 72, 0.6);
  color: #fb7185;
}
.feed-badge.is-offline .pulse-dot {
  background: #e11d48;
  box-shadow: none;
  animation: none;
}
.feed-badge.is-unverified {
  border-color: rgba(229, 177, 78, 0.55);
  color: #e5b14e;
}
.feed-badge.is-unverified .pulse-dot {
  background: #e5b14e;
  box-shadow: none;
  animation: none;
}
.screen-frame:has(.feed-badge.is-offline) .screen-corner,
.screen-frame:has(.feed-badge.is-unverified) .screen-corner {
  border-color: rgba(225, 29, 72, 0.54);
}
.external-feed-note:has(+ *) {
  max-width: min(600px, 90%);
}

.screen-frame.is-offline .screen-corner {
  border-color: rgba(225, 29, 72, 0.54);
}
.screen-frame.is-unverified .screen-corner {
  border-color: rgba(229, 177, 78, 0.68);
}
.external-feed-note[data-status="offline"] .external-feed-symbol {
  border-color: rgba(225, 29, 72, 0.7);
  color: #fb7185;
}
.external-feed-note[data-status="unverified"] .external-feed-symbol {
  border-color: rgba(229, 177, 78, 0.7);
  color: #e5b14e;
}
