
/* ============================================================
   ANOTHER STATION // MIDNIGHT CITY
   Entry + runtime system shell V1.0
   ============================================================ */

:root {
  --station-cyan: #63ecf3;
  --station-cyan-dim: rgba(99, 236, 243, 0.58);
  --station-cyan-soft: rgba(99, 236, 243, 0.12);
  --station-ink: #02070d;
  --station-panel: rgba(4, 12, 20, 0.78);
  --station-panel-strong: rgba(2, 8, 14, 0.94);
  --station-line: rgba(99, 236, 243, 0.24);
  --station-text: rgba(231, 252, 255, 0.94);
  --station-muted: rgba(186, 221, 226, 0.62);
  --station-ok: #70f5b2;
}

.station-legacy-entry {
  display: none !important;
}

.station-entry-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(18px, 4vw, 56px);
  font-family: "Share Tech Mono", monospace;
  color: var(--station-text);
  pointer-events: auto;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 20%, rgba(29, 183, 229, 0.12), transparent 34%),
    radial-gradient(circle at 80% 72%, rgba(116, 67, 255, 0.13), transparent 35%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.42), rgba(2, 6, 12, 0.76));
  opacity: 1;
  transition: opacity 420ms ease, transform 520ms ease;
}

.station-entry-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 3px,
      rgba(96, 236, 243, 0.035) 4px
    );
}

.station-entry-shell.is-leaving {
  opacity: 0;
  transform: scale(1.012);
  pointer-events: none;
}

.station-entry-shell.is-hidden {
  display: none;
}

.station-entry-frame {
  width: min(980px, 100%);
  border: 1px solid var(--station-line);
  background:
    linear-gradient(135deg, rgba(7, 22, 31, 0.94), rgba(4, 10, 17, 0.88));
  box-shadow:
    0 28px 100px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
}

.station-entry-topbar {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--station-line);
  background: rgba(99, 236, 243, 0.035);
}

.station-entry-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--station-cyan);
  letter-spacing: 0.11em;
  font-size: 12px;
}

.station-entry-dot,
.station-system-trigger-dot,
.station-status-led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--station-ok);
  box-shadow: 0 0 14px rgba(112, 245, 178, 0.7);
}

.station-language-switch,
.station-system-segmented {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--station-line);
  background: rgba(0, 0, 0, 0.2);
}

.station-language-switch button,
.station-system-segmented button {
  border: 0;
  min-width: 42px;
  padding: 7px 10px;
  color: var(--station-muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.station-language-switch button.is-active,
.station-system-segmented button.is-active {
  color: #021014;
  background: var(--station-cyan);
  box-shadow: 0 0 18px rgba(99, 236, 243, 0.18);
}

.station-entry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
}

.station-entry-main {
  min-height: 390px;
  padding: clamp(28px, 5vw, 56px);
  border-right: 1px solid var(--station-line);
}

.station-entry-kicker,
.station-system-kicker {
  margin-bottom: 22px;
  color: var(--station-cyan-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.station-entry-main h1 {
  margin: 0;
  color: #e9fdff;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-shadow: 0 0 34px rgba(99, 236, 243, 0.09);
}

.station-entry-lead {
  max-width: 650px;
  margin: 30px 0 8px;
  color: var(--station-cyan);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}

.station-entry-body {
  max-width: 650px;
  margin: 0;
  color: var(--station-muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.station-entry-status {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(99, 236, 243, 0.12);
  background: rgba(99, 236, 243, 0.025);
  color: var(--station-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.station-entry-status .station-status-led {
  grid-row: 1 / 3;
}

.station-entry-status strong {
  color: var(--station-ok);
  font-size: 11px;
  font-weight: 400;
}

.station-entry-side {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(99, 236, 243, 0.035), transparent 62%);
}

.station-entry-side-title {
  color: var(--station-cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.station-entry-side p {
  color: var(--station-muted);
  font-size: 12px;
  line-height: 1.65;
}

.station-entry-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--station-line);
}

.station-entry-side .station-entry-muted {
  color: rgba(186, 221, 226, 0.48);
}

.station-entry-meta {
  margin: auto 0 0;
  display: grid;
  gap: 9px;
}

.station-entry-meta div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 9px;
  border-top: 1px solid rgba(99, 236, 243, 0.08);
}

.station-entry-meta dt,
.station-entry-meta dd {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.station-entry-meta dt {
  color: var(--station-muted);
}

.station-entry-meta dd {
  color: var(--station-cyan);
  text-align: right;
}

.station-entry-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 1fr;
  align-items: stretch;
  border-top: 1px solid var(--station-line);
}

#stationEntryLaunch {
  min-height: 66px;
  border: 0;
  border-right: 1px solid var(--station-line);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  color: #021014;
  background: var(--station-cyan);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: filter 160ms ease, opacity 160ms ease;
}

#stationEntryLaunch:disabled {
  color: rgba(231, 252, 255, 0.44);
  background: rgba(99, 236, 243, 0.08);
  cursor: wait;
}

#stationEntryLaunch:not(:disabled):hover {
  filter: brightness(1.08);
}

.station-launch-icon {
  font-size: 11px;
}

.station-entry-credit {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: rgba(186, 221, 226, 0.42);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

/* Runtime system --------------------------------------------------- */

.station-system-trigger {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3500;
  min-height: 34px;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(99, 236, 243, 0.24);
  padding: 0 10px;
  color: rgba(220, 250, 253, 0.78);
  background: rgba(3, 11, 18, 0.64);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.2);
  font-family: "Share Tech Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.78;
}

.station-system-trigger.is-ready {
  display: inline-flex;
}

.station-system-trigger:hover {
  opacity: 1;
  border-color: rgba(99, 236, 243, 0.52);
}

.station-system-trigger kbd {
  margin-left: 3px;
  border: 1px solid rgba(99, 236, 243, 0.18);
  padding: 2px 5px;
  color: var(--station-cyan);
  background: rgba(99, 236, 243, 0.05);
  font: inherit;
  font-size: 9px;
}

.station-system-panel {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(1, 5, 10, 0.48);
  backdrop-filter: blur(8px);
  font-family: "Share Tech Mono", monospace;
  color: var(--station-text);
  pointer-events: auto;
}

.station-system-panel.is-open {
  display: flex;
}

.station-system-card {
  width: min(470px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--station-line);
  background: var(--station-panel-strong);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
}

.station-system-header {
  padding: 22px 22px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--station-line);
}

.station-system-header h2 {
  margin: 0;
  color: #e9fdff;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.station-system-header p {
  margin: 5px 0 0;
  color: var(--station-muted);
  font-size: 11px;
}

.station-system-header .station-system-kicker {
  margin: 0 0 8px;
}

.station-system-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--station-line);
  color: var(--station-cyan);
  background: rgba(99, 236, 243, 0.04);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.station-system-section {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(99, 236, 243, 0.11);
}

.station-system-section-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--station-cyan);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.station-system-section-head output {
  color: var(--station-ok);
}

.station-system-grid {
  display: grid;
  gap: 6px;
}

.station-system-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.station-system-grid button {
  min-height: 58px;
  border: 1px solid rgba(99, 236, 243, 0.13);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  padding: 9px 10px;
  color: var(--station-muted);
  background: rgba(99, 236, 243, 0.025);
  font: inherit;
  cursor: pointer;
}

.station-system-grid button strong {
  color: inherit;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.station-system-grid button small {
  color: rgba(186, 221, 226, 0.42);
  font-size: 9px;
}

.station-system-grid button.is-active {
  border-color: rgba(99, 236, 243, 0.58);
  color: #eafcff;
  background: rgba(99, 236, 243, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 236, 243, 0.05);
}

.station-system-grid button.is-active small {
  color: var(--station-ok);
}

.station-system-note,
.station-system-controls p {
  margin: 10px 0 0;
  color: rgba(186, 221, 226, 0.5);
  font-size: 10px;
  line-height: 1.55;
}

.station-system-footer {
  padding: 16px 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.station-system-footer button {
  min-height: 38px;
  border: 1px solid var(--station-line);
  padding: 0 14px;
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.station-system-reset {
  color: var(--station-muted);
  background: transparent;
}

.station-system-done {
  color: #031116;
  background: var(--station-cyan);
}

/* Keep the shell practical on smaller displays. */
@media (max-width: 820px) {
  .station-entry-shell {
    padding: 12px;
    align-items: start;
  }

  .station-entry-frame {
    margin: 10px 0;
  }

  .station-entry-grid {
    grid-template-columns: 1fr;
  }

  .station-entry-main {
    min-height: auto;
    padding: 32px 24px;
    border-right: 0;
    border-bottom: 1px solid var(--station-line);
  }

  .station-entry-side {
    padding: 22px 24px;
  }

  .station-entry-status-grid {
    grid-template-columns: 1fr;
  }

  .station-entry-footer {
    grid-template-columns: 1fr;
  }

  #stationEntryLaunch {
    border-right: 0;
    border-bottom: 1px solid var(--station-line);
  }

  .station-system-panel {
    align-items: flex-end;
    padding: 0;
  }

  .station-system-card {
    width: 100%;
    max-height: min(86vh, 760px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .station-system-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .station-entry-topbar {
    padding: 0 12px;
  }

  .station-entry-signal {
    font-size: 9px;
  }

  .station-entry-main h1 {
    font-size: clamp(38px, 16vw, 62px);
  }

  .station-system-trigger {
    top: 10px;
    left: 10px;
  }
}


/* Pause / resume layer after pointer lock is released. */
.station-resume-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(1, 5, 10, 0.58);
  backdrop-filter: blur(12px);
  font-family: "Share Tech Mono", monospace;
  color: var(--station-text);
  pointer-events: auto;
}

.station-world-started #blocker:not(.hide) .station-resume-overlay {
  display: grid;
}

.station-resume-card {
  width: min(440px, 100%);
  border: 1px solid var(--station-line);
  padding: 26px;
  background: rgba(3, 10, 17, 0.94);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

.station-resume-card h2 {
  margin: 0;
  color: #e9fdff;
  font-size: 24px;
  font-weight: 400;
}

.station-resume-card p {
  margin: 9px 0 22px;
  color: var(--station-muted);
  font-size: 11px;
  line-height: 1.55;
}

.station-resume-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.station-resume-actions button {
  min-height: 42px;
  border: 1px solid var(--station-line);
  color: var(--station-cyan);
  background: rgba(99, 236, 243, 0.05);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.station-resume-actions button:first-child {
  color: #031116;
  background: var(--station-cyan);
}

.station-system-open #stationResumeOverlay {
  display: none !important;
}


/* Rhythm light intensity -------------------------------------------------- */

.station-rhythm-control {
  display: grid;
  gap: 8px;
}

#stationRhythmIntensity {
  width: 100%;
  accent-color: var(--station-cyan);
  cursor: pointer;
}

#stationRhythmIntensityOutput.is-high {
  color: #ffd27a;
}

.station-rhythm-meter {
  display: flex;
  justify-content: space-between;
  color: rgba(186, 221, 226, 0.38);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.station-rhythm-state {
  width: fit-content;
  border: 1px solid rgba(99, 236, 243, 0.18);
  padding: 3px 6px;
  color: rgba(186, 221, 226, 0.6);
  background: rgba(99, 236, 243, 0.035);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.station-rhythm-state.is-high {
  border-color: rgba(255, 176, 91, 0.45);
  color: #ffd27a;
  background: rgba(255, 155, 64, 0.07);
}

.station-rhythm-state.is-pending {
  animation: stationRhythmWarningPulse 900ms ease-in-out infinite alternate;
}

@keyframes stationRhythmWarningPulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* High-intensity acknowledgement overlay ------------------------------- */

.station-rhythm-warning {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 3, 7, 0.78);
  backdrop-filter: blur(12px);
  font-family: "Share Tech Mono", monospace;
}

.station-rhythm-warning.is-open {
  display: flex;
}

.station-rhythm-warning-card {
  width: min(460px, calc(100vw - 40px));
  border: 1px solid rgba(255, 176, 91, 0.42);
  padding: 22px;
  color: var(--station-text);
  background: rgba(5, 10, 16, 0.97);
  box-shadow: 0 26px 100px rgba(0, 0, 0, 0.64);
}

.station-rhythm-warning-badge {
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 176, 91, 0.48);
  padding: 4px 7px;
  color: #ffd27a;
  background: rgba(255, 155, 64, 0.07);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.station-rhythm-warning-card h2 {
  margin: 0;
  color: #fff5de;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.station-rhythm-warning-card p {
  margin: 12px 0 18px;
  color: rgba(225, 238, 240, 0.72);
  font-size: 11px;
  line-height: 1.65;
}

.station-rhythm-warning-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.station-rhythm-warning-actions button {
  min-height: 44px;
  border: 1px solid rgba(99, 236, 243, 0.22);
  padding: 8px 10px;
  color: var(--station-text);
  background: rgba(99, 236, 243, 0.05);
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.station-rhythm-warning-actions [data-rhythm-warning="reduce"] {
  border-color: rgba(99, 236, 243, 0.45);
  color: #dffcff;
}

.station-rhythm-warning-actions [data-rhythm-warning="accept"] {
  border-color: rgba(255, 176, 91, 0.48);
  color: #ffd27a;
  background: rgba(255, 155, 64, 0.08);
}

@media (max-width: 520px) {
  .station-rhythm-warning-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .station-rhythm-state.is-pending {
    animation: none;
  }
}

/* ============================================================
   STATION ADAPTIVE ENERGY TOP CONTROL V1.2
   ============================================================ */

.station-top-controls {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 3500;
  display: none;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 36px);
  pointer-events: auto;
  font-family: "Share Tech Mono", monospace;
}

.station-top-controls.is-ready {
  display: flex;
}

.station-top-controls .station-system-trigger {
  position: relative;
  top: auto;
  left: auto;
  z-index: auto;
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 34px;
}

/*
 * Always-visible compact control: no floating popover, no viewport clipping.
 * The intensity slider now lives on the same horizontal rail as SYSTEM/F2.
 */
.station-pulse-inline {
  min-width: 230px;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(99, 236, 243, 0.25);
  padding: 0 10px;
  color: rgba(220, 250, 253, 0.78);
  background: rgba(3, 11, 18, 0.64);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.2);
  opacity: 0.88;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

.station-pulse-inline:hover,
.station-pulse-inline:focus-within {
  opacity: 1;
  border-color: rgba(99, 236, 243, 0.50);
  background: rgba(3, 13, 21, 0.78);
}

.station-pulse-inline.is-high,
.station-pulse-inline:has(.station-pulse-inline-label.is-high) {
  border-color: rgba(255, 196, 111, 0.58);
}

.station-pulse-inline-label {
  min-width: 82px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(220, 250, 253, 0.78);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  user-select: none;
}

.station-pulse-trigger-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(99, 236, 243, 0.92);
  box-shadow: 0 0 10px rgba(99, 236, 243, 0.58);
}

.station-pulse-inline-label strong {
  min-width: 34px;
  margin-left: auto;
  color: var(--station-cyan);
  font: inherit;
  font-weight: 700;
  text-align: right;
}

.station-pulse-inline-label strong.is-high,
.station-pulse-inline-label.is-high strong {
  color: #ffd39a;
}

.station-pulse-inline-control {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.station-inline-range {
  width: 126px;
  min-width: 80px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--station-cyan);
}

.station-inline-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(151, 217, 224, 0.30);
}

.station-inline-range::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -5px;
  border: 1px solid rgba(220, 255, 255, 0.48);
  border-radius: 50%;
  background: var(--station-cyan);
  box-shadow: 0 0 10px rgba(99, 236, 243, 0.44);
  -webkit-appearance: none;
}

.station-inline-range:focus-visible {
  outline: 1px solid rgba(99, 236, 243, 0.68);
  outline-offset: 4px;
}

.station-inline-state {
  display: none;
}

@media (max-width: 720px) {
  .station-top-controls {
    top: 10px;
    left: 10px;
    gap: 6px;
    max-width: calc(100vw - 20px);
  }

  .station-top-controls .station-system-trigger {
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }

  .station-pulse-inline {
    min-width: 0;
    width: min(196px, calc(100vw - 118px));
    height: 32px;
    gap: 6px;
    padding: 0 8px;
  }

  .station-pulse-inline-label {
    min-width: 66px;
    gap: 5px;
    font-size: 9px;
  }

  .station-pulse-inline-label strong {
    min-width: 30px;
  }

  .station-inline-range {
    width: 100%;
    min-width: 58px;
  }
}

@media (max-width: 430px) {
  .station-pulse-inline {
    width: min(160px, calc(100vw - 112px));
    padding-right: 7px;
  }

  .station-pulse-inline-label > span[data-station-copy="pulse"] {
    display: none;
  }

  .station-pulse-inline-label {
    min-width: 42px;
  }
}


/* ============================================================
 * STATION LIVE SYNC TOP CONTROL V0.1
 * ============================================================ */

.station-top-controls .station-live-sync-trigger {
  min-width: 118px;
  gap: 8px;
  padding: 0 10px;
  white-space: nowrap;
}

.station-live-sync-trigger strong {
  min-width: 36px;
  margin-left: 4px;
  color: rgba(180, 222, 226, 0.72);
  font: inherit;
  font-weight: 700;
  text-align: right;
}

.station-live-sync-trigger.is-live {
  border-color: rgba(99, 236, 243, 0.62);
  background: rgba(4, 20, 27, 0.82);
  box-shadow:
    0 0 0 1px rgba(99, 236, 243, 0.08) inset,
    0 0 22px rgba(99, 236, 243, 0.10);
}

.station-live-sync-trigger.is-live .station-live-sync-dot {
  background: #84fff4;
  box-shadow:
    0 0 7px rgba(132, 255, 244, 0.90),
    0 0 16px rgba(132, 255, 244, 0.45);
}

.station-live-sync-trigger.is-live strong {
  color: #9ffdf5;
}

.station-live-sync-trigger.is-error {
  border-color: rgba(255, 178, 112, 0.44);
}

.station-live-sync-trigger.is-error strong {
  color: #ffd19b;
}

@media (max-width: 820px) {
  .station-top-controls .station-live-sync-trigger {
    min-width: 92px;
    padding: 0 8px;
  }

  .station-live-sync-trigger strong {
    min-width: 30px;
  }
}


/* ============================================================
 * PRACTICAL MUSIC SYNC COACH V1.0
 * ============================================================ */

.station-music-sync-coach {
  position: fixed;
  top: 58px;
  left: 12px;
  width: min(360px, calc(100vw - 24px));
  z-index: 15050;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(99, 236, 243, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(7, 19, 26, 0.97), rgba(2, 8, 13, 0.97));
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(99, 236, 243, 0.04) inset;
  color: rgba(220, 249, 250, 0.92);
  font-family: "Share Tech Mono", monospace;
  backdrop-filter: blur(14px);
}

.station-music-sync-coach-kicker {
  margin-bottom: 5px;
  color: rgba(117, 235, 241, 0.58);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.station-music-sync-coach-title {
  margin-bottom: 8px;
  color: #b9fcff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.station-music-sync-coach-body {
  color: rgba(215, 238, 239, 0.78);
  font-size: 10px;
  line-height: 1.55;
}

.station-music-sync-coach-steps {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px 8px;
  align-items: center;
  margin: 12px 0;
}

.station-music-sync-coach-steps span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(99, 236, 243, 0.28);
  border-radius: 999px;
  color: #8ef9fd;
  font-size: 9px;
}

.station-music-sync-coach-steps b {
  color: rgba(239, 253, 253, 0.92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.station-music-sync-coach-actions {
  display: flex;
  gap: 8px;
}

.station-music-sync-coach-actions button {
  min-height: 32px;
  border: 1px solid rgba(99, 236, 243, 0.30);
  border-radius: 6px;
  background: rgba(13, 38, 47, 0.70);
  color: #bafcff;
  font: 10px/1 "Share Tech Mono", monospace;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.station-music-sync-coach-actions button:first-child {
  flex: 1;
  padding: 0 12px;
  border-color: rgba(99, 236, 243, 0.54);
  background: rgba(14, 54, 64, 0.82);
}

.station-music-sync-coach-actions button:last-child {
  padding: 0 10px;
  color: rgba(202, 224, 225, 0.70);
}

.station-music-sync-coach-note {
  margin-top: 9px;
  color: rgba(165, 203, 205, 0.48);
  font-size: 8px;
  line-height: 1.4;
}

.station-live-sync-trigger:not(.is-live):not(.is-error) {
  animation: stationMusicSyncHint 3.8s ease-in-out infinite;
}

@keyframes stationMusicSyncHint {
  0%, 78%, 100% {
    box-shadow: none;
  }
  86% {
    box-shadow: 0 0 18px rgba(99, 236, 243, 0.12);
  }
}

@media (max-width: 820px) {
  .station-music-sync-coach {
    top: 54px;
  }
}

