:root {
  color-scheme: dark;
  --page: #0c0e11;
  --panel: #15181d;
  --text: #f5f6f2;
  --muted: #b1b8bf;
  --accent: #e4fb83;
  --line: #353c44;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1rem, 3vh, 2.5rem) clamp(1rem, 4vw, 4rem);
  color: var(--text);
  background: radial-gradient(ellipse at 18% 0%, #202a25, transparent 56%), var(--page);
  line-height: 1.5;
}

.studio {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  width: min(100%, 67rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
  box-shadow: 0 1.5rem 5rem #0007;
}

.station {
  display: grid;
  grid-template-rows: auto minmax(10rem, 1fr) auto;
  min-width: 0;
  padding: clamp(1.5rem, 4.4vw, 3.25rem);
  background: radial-gradient(ellipse at 55% 50%, #344629, transparent 76%),
    linear-gradient(145deg, #273429, #151e1b 68%);
  border-inline-end: 1px solid #384537;
}

.station-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.station-logo {
  display: block;
  flex: none;
  width: clamp(7rem, 9vw, 8rem);
  height: auto;
  margin-inline-start: -.8rem;
  filter: drop-shadow(0 .45rem .7rem #0006);
}

.station-art {
  display: grid;
  align-items: center;
  margin-inline: calc(clamp(1.5rem, 4.4vw, 3.25rem) * -1);
  overflow: hidden;
}

.station-art svg {
  display: block;
  width: 100%;
  height: auto;
  mask-image: linear-gradient(transparent, black 20% 80%, transparent);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.signal-dot {
  display: inline-block;
  width: .46rem;
  height: .46rem;
  margin-inline-end: .45rem;
  border-radius: 50%;
  background: currentColor;
  vertical-align: .09em;
}

.station-title {
  margin: .35rem 0 .25rem;
  font-size: clamp(2.2rem, 4.9vw, 4.5rem);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.065em;
}

.station-description { margin: .8rem 0 0; color: #c6d0c3; font-size: .95rem; }

.access {
  width: min(100%, 35rem);
  align-self: center;
  justify-self: center;
  min-width: 0;
  padding: clamp(1.5rem, 4.8vh, 3rem) clamp(1.5rem, 4.2vw, 3.5rem);
}

.access-header { margin-block-end: 1.45rem; }

h1 {
  margin: .32rem 0 .45rem;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.support { margin: 0; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }

.google-button {
  display: inline-flex;
  max-width: 100%;
  border-radius: .35rem;
  text-decoration: none;
}

.google-button img { display: block; width: 13.5rem; max-width: 100%; height: auto; }
.google-button:hover { filter: brightness(.94); }

.divider {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.15rem 0;
  color: var(--muted);
  font-size: .8rem;
  text-align: center;
}

.divider::before, .divider::after { content: ""; flex: 1 1 1rem; border-top: 1px solid var(--line); }

.credentials { display: grid; gap: .9rem; }
.credentials label { display: grid; gap: .35rem; font-size: .84rem; font-weight: 650; }

.credentials input {
  width: 100%;
  min-width: 0;
  min-height: 2.85rem;
  padding: .55rem .75rem;
  border: 1px solid #505a64;
  border-radius: .6rem;
  color: var(--text);
  background: #101216;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.credentials input:focus { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.action, .text-action {
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.action {
  min-height: 2.85rem;
  padding: .6rem .9rem;
  border: 1px solid #8f9c62;
  border-radius: .6rem;
  color: var(--text);
  background: #272d22;
}

.action:hover { background: #333d2b; }
.action:disabled { opacity: .65; cursor: wait; }

.text-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .4rem 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  text-align: start;
  text-decoration: underline;
  text-decoration-color: #9aaa66;
  text-underline-offset: .18em;
}

.text-action svg { flex: none; }
.text-action:hover { text-decoration-color: currentColor; }
.text-action[aria-expanded="true"] { margin-block-end: .6rem; }

.access-help {
  display: grid;
  gap: .45rem;
  margin: 1.3rem 0 .3rem;
  padding-block-start: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .84rem;
}

.access-help p { margin: 0; }
.access-help strong { color: var(--text); font-weight: 650; }
.field-hint { font-size: .8rem; }
#login-setup { margin-block-start: 1rem; }

.feedback {
  margin: 0 0 1rem;
  padding: .7rem .85rem;
  border: 1px solid #95535c;
  border-radius: .55rem;
  color: #ffd4d9;
  background: #341e24;
  font-size: .88rem;
  overflow-wrap: anywhere;
}

.form-feedback { margin: 0; }

@media (max-width: 48rem) {
  body { align-items: start; }
  .studio { grid-template-columns: minmax(0, 1fr); max-width: 34rem; border-radius: 1.15rem; }
  .station { grid-template-rows: auto auto; gap: .75rem; border-inline-end: 0; border-bottom: 1px solid #384537; }
  .station-art, .station-description, .station-copy .eyebrow { display: none; }
  .station-title { margin: 0; font-size: 1.65rem; letter-spacing: -.045em; }
  .station-brand { font-size: 1rem; }
  .station-logo { width: 5rem; margin-inline-start: -.45rem; }
  .access { width: 100%; }
}
