:root {
  --bg: #07111f;
  --panel: #0d1b2d;
  --panel-2: #12243a;
  --line: #27405f;
  --text: #edf5ff;
  --muted: #9db0c8;
  --blue: #39a6ff;
  --green: #35d07f;
  --amber: #ffb742;
  --red: #ff5364;
  --gray: #7d8b9f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(57, 166, 255, .16), transparent 34rem),
    var(--bg);
}

button, input { font: inherit; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem clamp(1rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.45rem, 3vw, 2.1rem); }
h2 { margin-bottom: .4rem; font-size: 1.35rem; }

.eyebrow {
  margin-bottom: .35rem;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}

main { padding: 1.25rem clamp(1rem, 5vw, 4rem) 3rem; }

.notice {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: .8rem 1rem;
  color: #fff4d7;
  background: rgba(255, 183, 66, .12);
  border: 1px solid rgba(255, 183, 66, .4);
  border-radius: .75rem;
}

.panel {
  padding: 1.25rem;
  background: linear-gradient(145deg, rgba(18,36,58,.95), rgba(13,27,45,.95));
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

.narrow { max-width: 29rem; margin: 3rem auto 0; }
.muted { color: var(--muted); line-height: 1.55; }
.hidden { display: none !important; }

form { display: grid; gap: 1rem; }
label { display: grid; gap: .45rem; color: #cfe0f6; font-weight: 700; }
input {
  width: 100%;
  padding: .78rem .9rem;
  color: var(--text);
  background: #07111f;
  border: 1px solid var(--line);
  border-radius: .6rem;
  outline: none;
}
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,166,255,.18); }

.button, .icon-button {
  border: 0;
  border-radius: .65rem;
  cursor: pointer;
  font-weight: 800;
}
.button { padding: .72rem 1rem; }
.button.primary { color: #03111d; background: var(--green); }
.button.secondary { color: var(--text); background: var(--panel-2); border: 1px solid var(--line); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.icon-button { width: 2.4rem; height: 2.4rem; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); }
.error { min-height: 1.4rem; margin: 0; color: #ff9aa5; }

.studio-grid { display: grid; grid-template-columns: minmax(15rem, 22rem) 1fr; gap: 1.25rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.station-list { display: grid; gap: .6rem; margin-top: 1.1rem; }
.station-button {
  width: 100%;
  padding: .8rem;
  color: var(--text);
  text-align: left;
  background: #0a1727;
  border: 1px solid var(--line);
  border-radius: .65rem;
  cursor: pointer;
}
.station-button[aria-current="true"] { border-color: var(--blue); background: rgba(57,166,255,.12); }
.station-button strong, .station-button span { display: block; }
.station-button span { margin-top: .25rem; color: var(--muted); font-size: .8rem; }

.service-state { padding: .35rem .55rem; color: var(--muted); background: #091523; border-radius: 99px; font-size: .75rem; }
.live-team { display: grid; grid-template-columns: repeat(5, minmax(9rem, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.member-card { min-height: 11rem; padding: .85rem; background: #091523; border: 1px solid var(--line); border-radius: .8rem; }
.member-card.empty { border-style: dashed; opacity: .7; }
.member-topline { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.avatar { display: grid; place-items: center; width: 2rem; height: 2rem; background: #203a58; border-radius: 50%; font-weight: 900; }
.status-pill { padding: .25rem .45rem; border-radius: 99px; font-size: .63rem; font-weight: 900; letter-spacing: .05em; }
.status-offline { color: #dce3ec; background: rgba(125,139,159,.3); }
.status-online { color: #e7f5ff; background: rgba(57,166,255,.35); }
.status-checking { color: #2b1800; background: var(--amber); }
.status-ready { color: #002e18; background: var(--green); }
.status-on-air { color: white; background: var(--red); }
.status-muted, .status-backstage { color: #d7e5f5; background: #35516f; }
.member-name { margin: .8rem 0 .2rem; font-size: 1rem; }
.member-role, .member-detail { margin-bottom: .35rem; color: var(--muted); font-size: .78rem; }
.owner-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.disabled-explanation { margin: .8rem 0 0; color: #ff9aa5; font-size: .86rem; }

@media (max-width: 1050px) {
  .live-team { grid-template-columns: repeat(2, minmax(10rem, 1fr)); }
}

@media (max-width: 760px) {
  .studio-grid { grid-template-columns: 1fr; }
  .live-team { grid-template-columns: 1fr; }
}
