:root {
  --bg: #f7f6f2;
  --surface: #fff;
  --ink: #20242b;
  --muted: #606874;
  --line: #e1e5eb;
  --blue: #1655c0;
  --blue-press: #104497;
  --blue-soft: #eaf0fd;
  --blue-ink: #153f86;
  --bad: #a12d25;
  --bad-bg: #fff0ee;
  --ok: #24623b;
  --ok-bg: #eaf5ee;
  --warn: #785313;
  --warn-bg: #fff5df;
  --shadow: 0 4px 24px #21314a06;
  --warm: #98603a;
  --paper: #fbf1e1;
  --sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  transition: background 0.15s;
}
a {
  color: var(--blue);
  overflow-wrap: anywhere;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #8ab0f4;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.58;
  cursor: wait;
}
input,
textarea,
select {
  border: 1px solid #c9d0da;
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 42px;
  max-width: 100%;
}
textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.8;
}
input {
  width: 100%;
}
select {
  min-width: 104px;
}
label {
  font-size: 13px;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 21px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
p {
  margin-bottom: 12px;
}
.hint,
.intro,
.spec-sub,
.station-tag,
.auth-note {
  color: var(--muted);
}
.key-card {
  margin-top: 24px;
}
.key-card input {
  width: 100%;
}
.key-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.key-actions button {
  font-size: 12px;
  min-height: 38px;
  padding: 7px 12px;
}
.hint {
  font-size: 12px;
  line-height: 1.7;
  margin: 8px 0 0;
}
.intro {
  font-size: 14px;
  margin: 14px 0 0;
  line-height: 1.9;
}
.primary,
.quiet {
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 42px;
  padding: 9px 20px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: var(--blue-press);
}
.quiet {
  background: #f2f5fa;
  border-color: #dce2ec;
  color: var(--blue-ink);
}
.quiet:hover {
  background: var(--blue-soft);
}
.linkish,
.text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 8px;
  font-size: 13px;
}
.danger {
  color: var(--bad);
}
.text-btn:hover {
  background: var(--bad-bg);
  border-radius: 8px;
}
.chassis {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  height: 100vh;
}
.dock {
  padding: 30px 18px 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.brand {
  padding: 0 2px;
}
.brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.8px;
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin: 10px 0 0;
}
.inbox-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  background: #f0f3f8;
  font-size: 12px;
}
.inbox-symbol {
  display: none;
}
.inbox-btn #inbox-badge {
  display: inline-block;
  background: var(--blue);
  color: white;
  border-radius: 10px;
  min-width: 18px;
  margin-left: 3px;
}
.dock-nav {
  display: grid;
  gap: 4px;
  margin: 30px 0 24px;
}
.nav-btn {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-btn:hover {
  background: #f4f6fa;
}
.nav-btn.is-on {
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.rack-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rack-title {
  display: block;
  margin: 0 12px 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1px;
}
.new-channel {
  border: 1px dashed #b9c7dc;
  color: var(--blue-ink);
  background: transparent;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  font-size: 13px;
}
.new-channel:hover {
  background: var(--blue-soft);
}
#show-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  overflow: auto;
}
#show-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  min-width: 0;
}
#show-list button.active {
  background: #f0f3f8;
}
#show-list strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 600;
}
#show-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.rack-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
}
.dock-foot {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 10px 0;
  line-height: 1.9;
}
.dock-foot p {
  margin: 0;
}
.desk {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#studio,
#resources-view,
#settings-view {
  overflow: auto;
  flex: 1;
  min-height: 0;
  padding: 48px 48px 36px;
}
#studio > *,
#resources-view > *,
#settings-view > * {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.radio-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}
.radio-heading > div {
  min-width: 0;
}
.station-art {
  width: clamp(150px, 23vw, 260px);
  height: auto;
  flex: none;
}
.station-monogram {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  flex: none;
  background: var(--paper);
  border: 1px solid #e4d3b9;
  border-radius: 6px;
  color: var(--warm);
  font:
    600 10px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.station-caption {
  min-width: 0;
}
.icon {
  width: 17px;
  height: 17px;
  flex: none;
  vertical-align: middle;
}
.brand-mark:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 19px;
  margin-right: 9px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #c58a55 0 40%, #315d9e 40% 100%);
  vertical-align: -1px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--warm);
  font-weight: 700;
  margin-bottom: 16px;
}
.radio-heading h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.4;
  letter-spacing: -1.2px;
  font-weight: 650;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.wish-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.wish-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    120deg,
    #7291bf 0 15px,
    #fbf5eb 15px 26px,
    #d6a57d 26px 41px,
    #fbf5eb 41px 52px
  );
}
.wish-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.wish-top label,
.wish-label {
  font-size: 15px;
  font-weight: 650;
}
.wish-label {
  display: block;
  margin-bottom: 12px;
}
#wish {
  background: #fbfcfe;
  border-color: #d8dfe9;
  font-size: 15px;
  min-height: 112px;
}
#wish:focus {
  background: #fff;
}
.series-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
}
.series-hero-title .title-line {
  display: block;
}
.theme-picker {
  border: 0;
  margin: 22px 0 0;
  padding: 0;
}
.theme-picker legend {
  font-weight: 650;
  margin-bottom: 12px;
}
.topic-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 14px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  min-height: 38px;
  cursor: pointer;
}
.topic-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.topic-chip:hover,
.theme-option.is-on {
  background: var(--blue-soft);
  border-color: #bdcfed;
  color: var(--blue-ink);
}
.custom-theme-label {
  margin-top: 14px;
}
.series-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  margin-top: 26px;
}
.series-options label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  min-width: 0;
}
.series-options label > span {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}
.series-options select {
  width: 100%;
  font-size: 14px;
  min-height: 42px;
}
.listening-options {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 24px;
  align-items: center;
}
.listening-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}
.listening-options select {
  font-size: 13px;
}
.understanding {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin: 18px 0 0;
}
.wish-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #edf0f4;
  margin-top: 24px;
  padding-top: 20px;
}
.wish-actions .hint {
  margin: 0;
  max-width: 280px;
}
.wish-actions > div {
  display: flex;
  gap: 10px;
}
.wish-actions .primary {
  min-width: 132px;
}
.wish-actions-create {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.wish-actions-create .hint {
  max-width: none;
}
.wish-actions-create .primary {
  width: 100%;
  min-height: 48px;
}
.quiet-notes {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
}
.quiet-notes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiet-notes .icon {
  color: var(--warm);
  width: 15px;
  height: 15px;
}
.channel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.channel-toolbar .tabs {
  border: 0;
  margin-bottom: 0;
}
.delete-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.delete-control:hover:not(:disabled) {
  color: var(--bad);
  background: var(--bad-bg);
  border-color: #eccac5;
}
.delete-control:disabled {
  cursor: not-allowed;
}
.tabs {
  display: flex;
  gap: 24px;
  margin-top: 0;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
}
.tabs button.is-on {
  border-bottom-color: var(--blue);
  color: var(--blue);
  font-weight: 650;
}
.series-banner {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 70%, var(--wash));
}
.series-banner p {
  margin: 0.35em 0 0;
}
.series-banner .station-tag {
  margin: 0;
}
.series-locked h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.locked-facts {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}
.locked-facts div {
  display: grid;
  gap: 2px;
}
.locked-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.locked-facts dd {
  margin: 0;
  font-weight: 600;
}
.voice-row select:disabled {
  opacity: 0.9;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, var(--wash));
}
.episode-wish-label {
  display: block;
  margin: 22px 0 8px;
}
.episode-wish-label span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
  font-size: 11px;
}
.channel-management {
  font-size: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
}
.channel-management label {
  display: block;
  max-width: 380px;
  margin: 14px 0;
}
.channel-management input {
  display: block;
  margin-top: 6px;
}
.episode-section {
  margin-top: 34px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 17px;
  margin: 0;
}
.section-heading .hint {
  margin: 0;
}
.empty-episodes {
  text-align: center;
  padding: 30px 16px;
  border: 1px dashed #d7dee8;
  border-radius: 16px;
  color: var(--muted);
}
.empty-episodes > span {
  font-size: 25px;
  color: #8194af;
}
.empty-episodes p {
  margin: 6px 0;
  font-size: 14px;
}
.empty-episodes small {
  font-size: 12px;
}
.letter-episode {
  background: linear-gradient(110deg, #fffcf7, #fff 45%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  overflow: hidden;
}
.episode-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  align-items: center;
}
.episode-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.episode-type {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.episode-type .icon {
  background: var(--paper);
  color: var(--warm);
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid #e4d3b9;
  border-radius: 7px;
}
.episode-type {
  color: var(--blue);
  font-weight: 600;
}
.letter-episode h3 {
  margin-bottom: 10px;
}
.episode-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.episode-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.episode-actions .primary,
.episode-actions .quiet {
  min-height: 36px;
  padding: 6px 17px;
  font-size: 12px;
}
.episode-actions .hint {
  margin: 0;
}
.job-stage {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--blue-ink);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  flex: none;
  width: 13px;
  height: 13px;
  border: 2px solid #bfd0ee;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.episode-error {
  font-size: 13px;
  color: var(--bad);
  overflow-wrap: anywhere;
}
.letter-episode.failed {
  border-color: #eccac5;
}
.transcript {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.transcript-body pre {
  font: 14px/1.9 var(--sans);
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
}
.transcript-body h4 {
  margin-bottom: 8px;
}
.expression-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.expression-list span {
  padding: 3px 8px;
  background: var(--blue-soft);
  border-radius: 5px;
  color: var(--blue-ink);
}
.search-suggestions {
  width: 100%;
  height: 112px;
  border: 0;
  margin-top: 12px;
}
.voice-card h2 {
  margin-bottom: 8px;
}
.voice-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.voice-row label {
  flex: 1;
  min-width: 180px;
}
.voice-row select {
  display: block;
  width: 100%;
  margin-top: 8px;
}
.voice-row .quiet,
.voice-row .linkish {
  flex: none;
}
.player {
  background: white;
  border-top: 1px solid var(--line);
  padding: 12px 24px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.2fr) auto;
  align-items: center;
  gap: 20px;
}
.player-top {
  min-width: 0;
}
.player-top strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.player-top .linkish {
  padding: 0;
  font-size: 11px;
}
.player audio {
  width: 100%;
  height: 38px;
}
.speed-control {
  font-size: 11px;
  color: var(--muted);
}
.player-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.mode-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.mode-control select {
  min-height: 34px;
  padding: 5px 8px;
  font-size: 12px;
  min-width: 110px;
}
.speed-control select {
  min-width: 74px;
  min-height: 32px;
  padding: 4px;
  font-size: 12px;
}
.statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 24px;
  flex: none;
}
.status-main {
  flex: 1;
  min-width: 0;
}
.statusbar p {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.statusbar[data-tone="busy"] {
  background: #edf3ff;
  color: var(--blue-ink);
}
.statusbar[data-tone="error"] {
  background: var(--bad-bg);
  color: var(--bad);
}
.statusbar[data-tone="warn"] {
  background: var(--warn-bg);
  color: var(--warn);
}
.statusbar[data-tone="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}
#status-dismiss {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 12px;
  white-space: nowrap;
}
.inbox {
  position: fixed;
  z-index: 20;
  top: 78px;
  left: 22px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px #10203c24;
  padding: 14px;
}
.inbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inbox ul {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  max-height: 55vh;
  overflow: auto;
}
.inbox li button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 12px 8px;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.inbox li button:hover {
  background: var(--bg);
}
.inbox strong {
  font-size: 13px;
}
.inbox small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.conflict {
  margin: 12px 24px 0 !important;
  padding: 16px;
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 12px;
}
.conflict p {
  font-size: 13px;
  margin: 0;
}
.fold-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.desk-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.desk-head h1 {
  font-size: 30px;
  margin: 0;
}
.station-tag {
  font-size: 12px;
  margin: 0;
}
.desk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.desk-actions button {
  font-size: 12px;
  padding: 8px 12px;
}
.auth-banner {
  background: var(--blue-soft);
  border-radius: 14px;
  padding: 18px;
  margin-top: 24px;
}
.auth-badge {
  font-size: 11px;
  color: var(--blue-ink);
  font-weight: 700;
}
.auth-note {
  font-size: 13px;
  margin: 6px 0;
}
.settings-rack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.spec-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
.spec-head {
  display: flex;
  gap: 12px;
}
.spec-index {
  color: var(--blue);
  font-size: 11px;
  padding-top: 4px;
}
.spec-card h2 {
  font-size: 16px;
  margin: 0;
}
.spec-sub {
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0 0;
}
.spec-body {
  margin-top: 20px;
}
.spec-body input {
  display: block;
  margin-top: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mono-input {
  min-width: 0;
}
@media (min-width: 1450px) {
  #studio,
  #resources-view,
  #settings-view {
    padding-top: 64px;
  }
  .radio-heading {
    margin-bottom: 40px;
  }
}
@media (max-width: 1100px) {
  #studio,
  #resources-view,
  #settings-view {
    padding: 32px;
  }
  .wish-card {
    padding: 24px;
  }
  .wish-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .wish-actions .hint {
    max-width: none;
  }
  .wish-actions > div {
    align-self: flex-end;
  }
  .settings-rack {
    grid-template-columns: 1fr;
  }
  .player {
    grid-template-columns: 1fr 1fr;
  }
  .player-options {
    grid-column: 1/-1;
  }
  .desk-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .desk-actions {
    justify-content: flex-start;
  }
}
.nav-icon, .channel-switch, .channel-switch-label, .new-symbol { display: none; }
.channel-toolbar { align-items: center; border: 0; }
.channel-toolbar #open-compose { display: inline-flex; align-items: center; gap: 8px; }
.channel-menu, .episode-menu { position: relative; }
.channel-menu > summary, .episode-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 12px; color: var(--muted); border-radius: 10px; }
.channel-menu > summary::-webkit-details-marker, .episode-menu > summary::-webkit-details-marker { display: none; }
.channel-menu[open] > summary, .episode-menu[open] > summary { background: var(--blue-soft); color: var(--blue-ink); }
.channel-menu-items, .episode-menu > .delete-control { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px #21314a1a; padding: 6px; width: 220px; }
.channel-menu-items button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; background: transparent; border: 0; border-radius: 8px; text-align: left; padding: 12px; font-size: 13px; }
.channel-menu-items button:hover { background: #f4f6fa; }
.channel-menu-items .danger { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.channel-source { font-size: 13px; color: var(--muted); margin-bottom: 24px; overflow-wrap: anywhere; }
.channel-source > summary { cursor: pointer; padding: 8px 0; }
.channel-source .source-credit { margin: 8px 0 0; border-radius: 10px; }
.episode-menu > summary { min-width: 42px; font-size: 20px; padding: 0 8px; }
.episode-menu > .delete-control { min-height: 48px; width: 160px; color: var(--bad); white-space: normal; }
.player-settings > summary { cursor: pointer; font-size: 12px; color: var(--blue-ink); }
.player-settings[open] .player-options { margin-top: 10px; }
.settings-help { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.settings-help > summary { font-size: 13px; color: var(--blue-ink); display: flex; align-items: center; }
.model-actions, .library-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.model-actions { margin: 20px auto 28px; }
.library-settings { margin-top: 28px; }
.library-actions { margin-top: 16px; }
/* Phone layout is a listening surface, with navigation separate from content. */
@media (max-width: 720px) {
  .chassis { height: 100vh; height: 100dvh; min-height: 0; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr); padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .dock { padding: 0 20px 12px; border: 0; border-bottom: 1px solid var(--line); display: block; background: #fff; }
  .brand { padding: 0; }
  .brand-top { min-height: 64px; justify-content: space-between; gap: 12px; }
  .brand-mark { font-size: 21px; white-space: nowrap; }
  .brand-sub, .dock-foot, .rack-head, #show-list { display: none; }
  .inbox-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 48px; min-height: 48px; padding: 10px; background: transparent; }
  .inbox-symbol { display: block; width: 23px; height: 23px; }
  .inbox-label, .channel-switch-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .rack-section { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
  body:not(.has-channels) .rack-section, body[data-view="settings"] .rack-section, body[data-view="resources"] .rack-section { display: none; }
  .channel-switch { display: block; flex: 1; width: 100%; min-width: 0; background: #f5f6f8; border: 1px solid #e4e7ec; font-size: 14px; font-weight: 600; padding: 10px 12px; }
  .new-channel { display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; padding: 0; border: 1px solid var(--line); border-radius: 12px; font-size: 24px; background: #fff; }
  .new-channel > span:not(.new-symbol) { display: none; }
  .new-symbol { display: block; }
  .dock-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; height: calc(68px + env(safe-area-inset-bottom)); padding: 5px 16px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; background: #fff; border-top: 1px solid var(--line); }
  .nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px 6px; min-width: 48px; min-height: 56px; text-align: center; font-size: 11px; border-radius: 12px; line-height: 1.4; }
  .nav-icon { display: block; width: 23px; height: 23px; }
  .nav-btn.is-on { background: #edf2fc; }
  .desk { min-width: 0; min-height: 0; }
  #studio, #resources-view, #settings-view { overflow: auto; overscroll-behavior-y: contain; min-width: 0; padding: 24px 20px 28px; }
  .radio-heading { margin-bottom: 20px; gap: 12px; align-items: center; }
  .radio-heading > div { flex: 1; }
  .radio-heading h1 { font-size: 26px; line-height: 1.35; letter-spacing: -.6px; }
  .radio-heading .intro { margin-top: 8px; margin-bottom: 0; font-size: 13px; line-height: 1.65; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 10px; }
  .station-art { width: 64px; margin: 0; }
  .station-monogram { display: none; }
  button, summary, input, textarea, select { min-height: 48px; }
  input, textarea, select { font-size: 16px; min-width: 0; }
  .primary, .quiet, .linkish, .text-btn, .delete-control, .topic-chip { min-height: 48px; white-space: normal; overflow-wrap: anywhere; }
  .channel-toolbar { margin-bottom: 20px; padding: 0; border: 0; gap: 12px; flex-wrap: nowrap; }
  .channel-toolbar > #open-compose { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; padding: 12px 16px; }
  .channel-menu { flex: none; }
  .channel-menu > summary { min-height: 48px; padding: 12px 10px; font-size: 13px; }
  .channel-menu-items { width: 208px; }
  .channel-source { margin-bottom: 20px; font-size: 12px; }
  .channel-source > summary { line-height: 1.5; padding: 10px 0; }
  .editor-tabs { gap: 20px; margin-bottom: 20px; }
  .editor-tabs button { flex: 1; min-width: 0; padding: 10px 4px; font-size: 14px; }
  .wish-card { padding: 22px 18px; border-radius: 16px; }
  .wish-top { gap: 12px; margin-bottom: 20px; }
  .wish-top label, .wish-label { font-size: 14px; }
  .wish-top select { flex: 1; width: 100%; min-width: 100px; }
  #wish { min-height: 120px; font-size: 15px; }
  .topic-chips { gap: 8px; }
  .topic-chip { padding: 8px 12px; font-size: 12px; min-height: 48px; }
  .series-options { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .series-options label > span { font-size: 13px; }
  .series-options select { min-height: 48px; font-size: 14px; }
  .listening-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 20px; }
  .listening-options label { display: flex; flex-direction: column; align-items: stretch; gap: 6px; font-size: 12px; }
  .listening-options select { width: 100%; min-width: 0; padding: 8px; font-size: 14px; }
  .wish-actions { flex-direction: column; align-items: stretch; margin-top: 20px; padding-top: 18px; gap: 12px; }
  .wish-actions .hint { max-width: none; }
  .wish-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
  .wish-actions button { flex: 1 1 120px; min-width: 0; padding: 10px; font-size: 13px; }
  .wish-actions .primary { min-width: 0; }
  .wish-actions-create .primary { width: 100%; min-height: 48px; }
  .quiet-notes { gap: 8px 16px; font-size: 10px; }
  .episode-section { margin-top: 0; }
  .section-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .mode-control { flex: none; font-size: 12px; }
  .section-heading .mode-control > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mode-control select, .speed-control select { min-height: 48px; font-size: 13px; }
  .letter-episode { padding: 18px; border-radius: 16px; margin-bottom: 14px; }
  .letter-episode h3 { font-size: 20px; line-height: 1.45; margin-top: 8px; }
  .episode-heading { align-items: center; flex-wrap: nowrap; gap: 8px; }
  .episode-type { font-size: 10px; white-space: normal; }
  .episode-type .icon { width: 25px; height: 25px; padding: 4px; }
  .episode-tools { flex-direction: row; align-items: center; gap: 4px; }
  .episode-tools time { font-size: 10px; }
  .episode-menu > summary { min-width: 48px; min-height: 48px; }
  .episode-actions { gap: 10px; }
  .episode-actions .primary, .episode-actions .quiet { min-height: 48px; font-size: 14px; }
  .episode-actions .hint { flex-basis: 100%; margin: 0; }
  .transcript { margin-top: 16px; }
  .pair { grid-template-columns: minmax(0,1fr); }
  .voice-row { gap: 8px; }
  .voice-row label { flex-basis: 100%; min-width: 0; }
  .voice-row .quiet { flex: 1; }
  .spec-card { padding: 20px 18px; border-radius: 16px; }
  .spec-head { gap: 12px; }
  .spec-head h2 { font-size: 18px; }
  .spec-sub { font-size: 12px; }
  .settings-rack { gap: 16px; }
  .desk-head { margin-bottom: 20px; }
  .key-card { margin-top: 16px; }
  .key-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .key-actions .primary, .key-actions #key-state { grid-column: 1/-1; }
  .key-actions button { min-height: 48px; font-size: 13px; }
  .model-actions { flex-direction: column; }
  .model-actions button { width: 100%; }
  .library-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
  .library-actions .linkish { grid-column: 1/-1; }
  .library-actions button { padding: 10px; font-size: 13px; }
  .player, .native-client .player { position: relative; flex: none; padding: 10px 16px; gap: 4px 8px; grid-template-columns: minmax(0,1fr) auto; border-top: 1px solid #d6deea; box-shadow: 0 -4px 24px #21314a08; }
  .player-top { grid-column: 1/-1; display: flex; align-items: center; gap: 8px; }
  .player-top strong { flex: 1; font-size: 12px; line-height: 1.5; white-space: nowrap; }
  .player-top .linkish { min-height: 48px; padding: 6px; font-size: 12px; }
  .player audio, .native-client .native-audio, .native-audio { grid-column: 1; width: 100%; min-width: 0; }
  .player audio { height: 48px; }
  .native-audio { gap: 6px; }
  .native-client .native-audio button { min-width: 48px; min-height: 48px; padding: 6px; font-size: 12px; }
  .native-audio input[type="range"] { min-width: 28px; min-height: 48px; padding: 0; }
  .native-audio .hint { font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .player-settings { grid-column: 2; grid-row: 2; }
  .player-settings > summary { min-width: 48px; max-width: 80px; font-size: 11px; padding: 8px 6px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 10px; list-style: none; }
  .player-options { position: absolute; bottom: calc(100% + 8px); right: 12px; width: min(340px,calc(100vw - 24px)); background: #fff; padding: 18px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 40px #21314a24; display: grid; grid-template-columns: minmax(0,1fr) minmax(80px,.7fr); gap: 12px; z-index: 35; }
  .player-options label { display: grid; gap: 6px; font-size: 12px; }
  .player-options select { min-width: 0; width: 100%; min-height: 48px; font-size: 14px; }
  .statusbar { min-height: 0; padding: 10px 16px; max-height: 100px; overflow: auto; font-size: 12px; }
  .inbox { top: 60px; left: 12px; right: 12px; width: auto; max-height: calc(100dvh - 145px); overflow: auto; z-index: 45; }
  .inbox ul { max-height: 50dvh; }
  .conflict { margin: 12px 18px 0 !important; }
  .keyboard-open .chassis { padding-bottom: 0; }
  .keyboard-open .dock-nav, .keyboard-open .rack-section, .keyboard-open .player { display: none; }
}

@media (max-width: 380px) {
  .listening-options {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .spinner {
    animation: none;
  }
}
@media (min-width: 721px) and (max-height: 800px) {
  .station-art {
    width: 190px;
  }
  #studio {
    padding-top: 28px;
    padding-bottom: 24px;
  }
  .radio-heading {
    margin-bottom: 18px;
  }
  .radio-heading h1 {
    font-size: 32px;
  }
  .eyebrow {
    margin-bottom: 10px;
  }
  .radio-heading .intro {
    margin-top: 10px;
    font-size: 13px;
  }
  .wish-card {
    padding: 22px 26px;
  }
  .wish-top {
    margin-bottom: 16px;
  }
  .wish-label {
    margin-bottom: 8px;
  }
  #wish {
    min-height: 88px;
    height: 88px;
  }
  .listening-options {
    margin-top: 16px;
  }
  .understanding {
    margin-top: 10px;
  }
  .wish-actions {
    margin-top: 16px;
    padding-top: 14px;
  }
  .quiet-notes {
    padding-top: 16px;
  }
}
/* The first episode uses the same sound choices as later episodes. */
.first-sound {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.first-sound summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-ink);
}
.first-sound summary span {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  margin-left: 8px;
}
.first-sound .voice-row {
  padding: 16px 0;
}
.inbox-failure {
  padding: 0 10px 12px;
  border-bottom: 1px solid var(--line);
}
.inbox-error {
  color: var(--bad);
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
.inbox-failure .quiet {
  margin-top: 10px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 12px;
}
.inbox-failure .hint {
  margin: 6px 0 0;
}

.language-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
  align-items: center;
  gap: 10px 20px;
  margin: 22px 0;
}
.language-settings > label {
  font-weight: 650;
}
.language-settings .hint {
  grid-column: 1 / -1;
  margin: 0;
}
.radio-heading h1 {
  overflow-wrap: anywhere;
}
.voice-row label,
.desk-title-group {
  min-width: 0;
}
@media (max-width: 720px) {
  .language-settings {
    grid-template-columns: minmax(0, 1fr);
  }
  .language-settings select {
    width: 100%;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .rack-section {
    min-width: 0;
  }
  .rack-section #show-list {
    flex: 1;
    min-width: 0;
  }
  #show-list li.rack-empty {
    white-space: normal;
    max-width: none;
    min-width: 0;
    flex: 1;
  }
}

/* The native player owns audio; these controls mirror its system session. */
.native-audio {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Curated downloads and local-only sharing, using the radio's existing paper palette. */
.channel-toolbar { flex-wrap: wrap; }
.source-credit { display: flex; flex-direction: column; gap: 8px; font-size: 13px; overflow-wrap: anywhere; }
.source-credit a { color: var(--blue); width: fit-content; }
.channel-credit { border-left: 3px solid var(--blue); padding: 12px 16px; margin: 0 0 24px; background: var(--paper, #fff); }
.resource-heading > div { min-width: 0; }
.resource-stamp { color: var(--blue); font-size: 48px; width: 80px; height: 80px; display: grid; place-items: center; flex: none; border: 1px dashed var(--line); border-radius: 50%; transform: rotate(-8deg); }
.resource-toolbar, .resource-actions { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.resource-toolbar { margin-bottom: 24px; }
.resource-toolbar label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.resource-grid > .empty-episodes { grid-column: 1 / -1; }
.resource-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; min-width: 0; overflow-wrap: anywhere; }
.resource-card h2 { font-size: 22px; margin: 12px 0; }
.resource-card > p { line-height: 1.7; }
.resource-actions { margin-top: 22px; }
.resource-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding: 18px 24px; border: 1px dashed var(--line); border-radius: 18px; }
.resource-submit > div { flex: 1 1 280px; min-width: 0; }
.resource-submit h2 { font-size: 16px; margin: 0; }
.resource-submit .hint { margin-top: 4px; }
.resource-submit a { display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.resource-submit a:focus-visible { outline: 3px solid #8ab0f4; outline-offset: 3px; }
.sharing-error { color: #a12920; padding: 12px 0; overflow-wrap: anywhere; }
#sharing-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(850px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #17244333; overflow: hidden; }
#sharing-dialog[open] { display: flex; flex-direction: column; }
#sharing-dialog::backdrop { background: #19263866; }
.sharing-head, .sharing-footer { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; flex: none; }
.sharing-head { border-bottom: 1px solid var(--line); }
.sharing-head h2 { margin: 0; font-size: 22px; }
.sharing-body { padding: 20px 24px; overflow-wrap: anywhere; overflow: auto; min-height: 0; }
.sharing-body > p:first-child { margin-top: 0; }
.sharing-footer:empty { display: none; }
.sharing-footer { border-top: 1px solid var(--line); justify-content: flex-end; }
#share-form { display: grid; gap: 16px; }
#share-form > label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
#share-form fieldset { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.share-choice { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 48px; }
#share-form .share-choice input { width: 22px; height: 22px; min-height: 22px; margin: 0; flex: none; }
#share-form > .share-choice { flex-direction: row; }
.preview-channel h3 { font-size: 23px; margin-top: 0; }
.preview-channel + .preview-channel { border-top: 1px solid var(--line); padding-top: 24px; }
.preview-episodes { list-style: none; margin: 20px 0 0; padding: 0; }
.preview-episodes > li { padding: 16px 0; border-top: 1px solid var(--line); }
.preview-episodes > li > .hint { display: block; margin: 8px 0; }
.preview-episodes pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.8; }
.share-note { border-left: 3px solid var(--blue); background: #f0f3fa; padding: 12px; }
@media (max-width: 720px) {
  .resource-grid { grid-template-columns: minmax(0, 1fr); }
  .resource-stamp { font-size: 22px; width: 48px; height: 48px; }
  .resource-heading h1 { font-size: 29px; }
  .resource-toolbar { gap: 8px; }
  .resource-toolbar label { flex: 1; }
  .resource-toolbar button, .resource-actions button, #sharing-dialog button, #share-channel { min-height: 48px; white-space: normal; }
  .resource-submit { padding: 16px; }
  .resource-submit a { flex: 1 1 100%; min-height: 48px; white-space: normal; }
  .sharing-head, .sharing-footer, .sharing-body { padding: 16px; }
  .sharing-head h2 { font-size: 19px; }
  #share-form input, #share-form textarea { font-size: 16px; }
  .sharing-head > button { flex: none; }
  .resource-actions > button { flex: 1; }
  .channel-toolbar .tabs { flex: 1 0 100%; }
}
.native-audio input[type="range"] {
  flex: 1;
  min-width: 50px;
  padding: 0;
  border: 0;
  accent-color: var(--blue);
}
.native-audio .hint {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.native-client .player {
  padding-bottom: max(14px, env(safe-area-inset-bottom));
}
@media (max-width: 720px) {
  .native-audio {
    gap: 8px;
  }
  .native-audio button {
    padding: 7px 10px;
  }
}

@media (max-width: 720px) {
  .native-client .native-audio {
    grid-column: 1/-1;
  }
  .native-client .native-audio button {
    min-width: 64px;
    min-height: 48px;
  }
}

.model-settings { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 24px 0; padding: 0 20px; }
.model-settings > summary { font-size: 16px; font-weight: 650; padding: 16px 0; min-height: 56px; cursor: pointer; }
.model-settings .settings-rack { margin-top: 8px; }
.model-settings .spec-card { box-shadow: none; border-radius: 12px; }
.model-settings .model-actions { margin-bottom: 20px; }
.storage-help { margin-bottom: 20px; }

@media (max-width: 720px) {
  .channel-heading { margin-bottom: 16px; }
  .channel-heading h1 { font-size: 24px; line-height: 1.35; }
  .channel-heading .station-art { display: none; }
  .channel-toolbar { margin-bottom: 12px; }
  .channel-source { margin-bottom: 12px; }
  .channel-source > summary { min-height: 48px; }
  .episode-section .section-heading { flex-wrap: nowrap; align-items: center; }
  .episode-section .section-heading h2 { min-width: 0; }
}

/* First listen and readable, selectable sentence following. */
.home-listen { max-width: 880px; margin: 0 auto; }
.home-listen .radio-heading { margin-bottom: 20px; min-height: 0; }
.home-listen .radio-heading h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.2; }
.featured-episode { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.featured-top, .featured-languages, .reader-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.featured-top { justify-content: space-between; }
.featured-episode h2 { font-size: 23px; line-height: 1.3; margin: 14px 0 10px; overflow-wrap: anywhere; }
.featured-episode > .primary { min-height: 48px; min-width: 140px; }
.featured-languages button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue); }
.quality-note { margin: 16px 0; }
.home-create { padding: 20px 0; }
.home-create p { margin: 8px 0; }
.key-requirement { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0; }
.key-requirement p { margin: 0; flex: 1 1 240px; }
.reader-tools { justify-content: space-between; padding: 12px 0; }
.reader-tools button { min-height: 48px; }
.transcript-reader { position: relative; max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px; line-height: 2; font-size: 16px; overflow-wrap: anywhere; }
.transcript-sentence { border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 2px 0; }
.transcript-sentence.is-current { background: var(--blue-soft); color: var(--blue-ink); box-shadow: 0 2px 0 var(--blue); }
.speaker-label { display: block; margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 720px) {
  .featured-episode { padding: 16px; }
  .home-listen .radio-heading { padding-top: 0; }
  .home-listen .radio-heading h1 { font-size: 28px; }
  .featured-episode h2 { font-size: 21px; }
  .transcript-reader { max-height: 270px; padding: 6px; }
}
@media (max-width: 720px) {
  .featured-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
}
