/* Think 2 Unit 4 · Online life · 读前工作室（按课文线索单独设计） */
:root {
  --deep: #140c1c;
  --sea: #26142f;
  --foam: #f6eef6;
  --paper: #fff8f4;
  --ink: #1c1220;
  --muted: #74607a;
  --kelp: #c45c8a;
  --kelp-soft: #f6dce8;
  --amber: #e8b84a;
  --amber-soft: #f8ead6;
  --rose: #b85a4a;
  --rose-soft: #f6e4df;
  --line: rgba(28, 18, 32, 0.1);
  --shadow: 0 16px 36px rgba(12, 6, 18, 0.38);
  --font: "Fraunces", "Noto Sans SC", Georgia, serif;
  --ui: "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(42, 122, 106, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(217, 138, 58, 0.12), transparent 50%),
    var(--deep);
  color: var(--ink);
  font-family: var(--ui);
}

body.studio-app {
  min-height: 100dvh;
  display: block;
  padding: 0.7rem;
}

.studio {
  width: min(1280px, 100%);
  height: calc(100dvh - 1.4rem);
  min-height: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--sea);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  color: var(--foam);
  border-bottom: 1px solid rgba(238, 244, 246, 0.08);
}

.studio-brand small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.studio-brand h1 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 700;
}

.studio-rail {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.14);
  scrollbar-width: thin;
}

.studio-rail::-webkit-scrollbar { height: 6px; }

.rail-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(238, 244, 246, 0.62);
  font: 700 0.78rem/1.2 var(--ui);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.rail-btn b { display: block; font-size: 0.64rem; opacity: 0.7; font-weight: 700; }
.rail-btn.is-on { background: var(--paper); color: var(--ink); }
.rail-btn.is-done { color: #b7e0d4; }

.studio-coach:empty { display: none; }

.studio-coach {
  flex: 0 0 auto;
  margin: 0.45rem 1.1rem 0;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(217, 138, 58, 0.16);
  color: #f3e2c8;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}
.studio-coach.is-wait {
  animation: coach-flash 0.55s ease;
  background: rgba(184, 90, 74, 0.28);
}
@keyframes coach-flash {
  0% { transform: translateY(0); }
  40% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.stage {
  display: none;
  padding: 0.85rem 1.15rem 0.35rem;
  min-height: 0;
}

.stage.is-on {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.15fr;
  gap: 1rem;
  align-items: stretch;
  min-height: 0;
}

.stage-art {
  background: #0a0610;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 0;
  height: 100%;
}

.stage-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0610;
  display: none;
}

.stage-art img.is-on { display: block; }

#stage-nets .stage-art.logo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0.55rem;
  padding: 0.85rem 0.85rem 2.5rem;
  background: #1a101f;
  height: 100%;
  min-height: 0;
  align-content: center;
  justify-items: stretch;
}
#stage-nets .stage-art.logo-wall img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  border-radius: 16px;
  background: #f4f1ec;
  opacity: 1;
  box-shadow: 0 0 0 0 transparent;
}
#stage-nets .stage-art.logo-wall img.is-dim {
  opacity: 0.38;
  filter: grayscale(0.25);
}
#stage-nets .stage-art.logo-wall img.is-on:not(.is-dim) {
  box-shadow: 0 0 0 3px var(--amber);
}

.stage-art figcaption {
  position: absolute;
  z-index: 2;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(11, 24, 34, 0.72);
  color: var(--foam);
  font-size: 0.78rem;
}

.stage-panel {
  background: var(--paper);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  overflow: auto;
  min-height: 0;
  height: 100%;
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--kelp);
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.lead-en {
  font-family: var(--font);
  font-size: 1.28rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}

.lead-zh { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.85rem; }

.beat { display: none; }
.beat.is-on { display: block; }
.beat em { color: var(--kelp); font-style: normal; font-weight: 800; }

.ask {
  font-family: var(--font);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.28;
  margin: 0.2rem 0 0.45rem;
}

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.pair article {
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: #eef5f6;
}
.pair strong { display: block; font-family: var(--font); font-size: 1.35rem; }
.pair .is-fact { background: #e7f2f6; }
.pair .is-feel { background: var(--rose-soft); }

.echo {
  margin-top: 0.75rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: var(--deep);
  color: var(--foam);
  font-family: var(--font);
  font-size: 1.15rem;
  line-height: 1.35;
}

.hint {
  margin-top: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--amber-soft);
  color: #6a3f12;
  font-size: 0.9rem;
  display: none;
}

.hint.is-on { display: block; }

.choice-row, .actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.75rem; }

.feel-board { position: relative; margin-top: 0.85rem; }
.feel-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.feel-board.is-both .feel-cols {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  column-gap: 2.8rem;
}
.feel-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.feel-lines path {
  fill: none;
  stroke: var(--kelp);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.feel-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feel-en { display: none; }
.feel-board.is-both .feel-en { display: flex; }
.feel-pair {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.4rem;
}
.feel-word {
  flex: 1;
  border: 0;
  border-radius: 12px;
  min-height: 2.4rem;
  padding: 0.35rem 0.7rem;
  background: #e3ecef;
  color: var(--ink);
  font: 800 0.95rem/1.2 var(--ui);
  text-align: left;
  cursor: pointer;
}
.feel-en .feel-word { font-family: var(--font); font-size: 1.05rem; }
.feel-word.is-arm { box-shadow: inset 0 0 0 2px var(--ink); }
.feel-word.is-ok { background: var(--kelp-soft); }
.feel-word.is-bad { background: var(--rose-soft); }
.feel-word.is-mine { background: var(--kelp); color: #fff; }
.feel-speak { flex: 0 0 auto; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font: 800 0.88rem/1 var(--ui);
  cursor: pointer;
  background: #e3ecef;
  color: var(--ink);
}

.btn.kelp { background: var(--kelp); color: #fff; }
.btn.amber { background: var(--amber); color: #fff; }
.btn.ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px rgba(238,244,246,0.25); }
.btn.speak { min-width: 2.2rem; padding: 0.48rem 0.6rem; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.is-pick { box-shadow: inset 0 0 0 2px var(--ink); }
.btn.is-bad { background: var(--rose-soft); }
.btn.is-keep { background: var(--kelp); color: #fff; }
.btn.is-close { background: var(--rose); color: #fff; }

.sort-board { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.7rem; }
.bin {
  min-height: 8.5rem;
  border-radius: 14px;
  padding: 0.6rem;
  background: #eef5f6;
  box-shadow: inset 0 0 0 1px var(--line);
}
.bin h3 { font-size: 0.92rem; margin-bottom: 0.2rem; }
.bin p { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.45rem; }
.bin.is-only { background: #e7f2f6; }
.bin.is-lonely { background: var(--rose-soft); }

.chip, .pin, .event, .flip, .vote {
  border: 0;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
  font: 700 0.86rem/1.25 var(--ui);
  cursor: pointer;
  text-align: left;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.chip.is-used { opacity: 0.35; }
.bin .chip { display: block; width: 100%; margin-top: 0.35rem; background: #fff; }

.pin-list { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.pin { width: 100%; }
.pin small { display: block; color: var(--muted); font-weight: 600; margin-top: 0.15rem; }
.pin.is-on { background: var(--kelp-soft); box-shadow: inset 0 0 0 2px var(--kelp); }

.timeline { display: grid; gap: 0.4rem; margin-top: 0.65rem; }
.slot {
  min-height: 3.4rem;
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  background: #eef5f6;
  box-shadow: inset 0 0 0 1px var(--line);
}
.slot b { display: block; font-size: 0.74rem; color: var(--kelp); letter-spacing: 0.06em; }
.event-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.event.is-used { opacity: 0.3; }
.slot .event { margin-top: 0.3rem; width: 100%; background: #fff; }

.rule {
  display: none;
  margin-top: 0.7rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--kelp-soft);
}
.rule.is-on { display: block; }
.rule code {
  font-family: var(--ui);
  font-weight: 800;
  background: #fff;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
}

.flip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.65rem; }
.flip { min-height: 5.4rem; }
.flip .back { display: none; color: var(--muted); font-weight: 600; margin-top: 0.3rem; }
.flip.is-on { background: var(--amber-soft); }
.flip.is-on .back { display: block; }
.flip.is-problem.is-on { background: var(--rose-soft); }

.youdo {
  display: none;
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  background: #e7f2f0;
}
.youdo.is-on { display: grid; gap: 0.55rem; }
.fill {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.fill > span {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--kelp);
  margin-bottom: 0.25rem;
}
.fill.is-model { background: var(--kelp-soft); }
.fill.is-ok { box-shadow: inset 0 0 0 2px var(--kelp); }
.fill .blank {
  display: inline-block;
  min-width: 4.2rem;
  padding: 0 0.25rem;
  border-bottom: 2px solid var(--amber);
  color: var(--kelp);
  font-weight: 800;
}

.why-stack { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.why {
  display: none;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #eef5f6;
}
.why.is-on { display: block; }
.why .lead-zh { margin: 0.35rem 0 0; }

.flow-list {
  margin: 0.7rem 0 0.2rem 1.1rem;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}
.flow-list b { color: var(--kelp); }

.title-card {
  display: none;
  margin-top: 0.7rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--deep);
  color: var(--foam);
}
.title-card.is-on { display: block; }
.title-card strong { font-family: var(--font); font-size: 1.2rem; display: block; margin-bottom: 0.35rem; }

.studio-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem 0.85rem;
  background: rgba(0, 0, 0, 0.16);
}
.studio-bar .btn {
  width: auto;
  height: auto;
  align-self: center;
  min-width: 6.5rem;
  padding: 0.62rem 1.15rem;
}

.sec-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.sec-link {
  color: rgba(238, 244, 246, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.sec-link.is-on { background: var(--paper); color: var(--ink); }

.line-speak { display: flex; align-items: flex-start; gap: 0.35rem; }
.line-speak .btn.speak { margin-top: 0.05rem; }

.ipa {
  font-family: var(--font);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  margin: 0.2rem 0 0.6rem;
}
.syll { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.syll button {
  border: 0;
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  background: #e7f2f6;
  cursor: pointer;
  text-align: left;
}
.syll b { display: block; font-family: var(--font); font-size: 1.15rem; }
.syll span { color: var(--muted); font-weight: 700; }
.rule-line {
  margin-top: 0.7rem;
  font-family: var(--font);
  font-size: 1.15rem;
}
.forms { display: grid; gap: 0.55rem; margin-top: 0.7rem; }
.form-q {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: #eef5f6;
}
.form-q p { margin-bottom: 0.35rem; }
.form-q.is-ok { box-shadow: inset 0 0 0 2px var(--kelp); }
.scramble { margin-top: 0.75rem; }
.built {
  min-height: 2.4rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font);
  font-size: 1.05rem;
}
.bits { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.bits button, .built button {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: #e3ecef;
  font: 800 0.86rem/1 var(--ui);
  cursor: pointer;
}
.scramble.is-ok .built { box-shadow: inset 0 0 0 2px var(--kelp); }

.word-hit {
  border: 0;
  padding: 0 0.08rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}
.word-hit.is-on { color: var(--kelp); }
.gloss {
  margin-top: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--kelp-soft);
}
.gloss[hidden] { display: none; }
.gloss-easy {
  font-family: var(--font);
  font-size: 1.35rem;
  line-height: 1.3;
}
.secret-word {
  margin: 0.7rem 0 0.2rem;
  font-family: var(--font);
  font-size: 2.4rem;
  line-height: 1;
}

.letters {
  display: grid;
  grid-template-columns: repeat(6, minmax(2.7rem, 1fr));
  gap: 0.4rem;
  margin-top: 0.85rem;
}
#dir-letters {
  grid-template-columns: repeat(7, minmax(2.35rem, 1fr));
}
#dir-letters .tile[data-letter="or"] .ch {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}
.tile {
  min-height: 5.2rem;
  border: 0;
  border-radius: 14px;
  background: #efe7d6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  font-weight: 800;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(18, 32, 42, 0.06);
}
.tile .ipa { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tile .ch { font-family: var(--font); font-size: 1.7rem; line-height: 1; }
.tile .tag {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
}
.tile.is-on {
  pointer-events: auto;
  cursor: pointer;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(18, 32, 42, 0.12);
}
.tile[data-kind="vowel"].is-on,
.tile[data-kind="stress"].is-on { background: #ffe8d8; }
.tile[data-kind="magic"].is-on { background: #f8ead6; }
.tile[data-kind="end"].is-on { background: var(--kelp-soft); }
.magic-note, .reveal-card, .ex-card { display: none; margin-top: 0.8rem; }
.magic-note.is-on, .reveal-card.is-on, .ex-card.is-on { display: block; }
.magic-note, .reveal-card, .ex-card {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.magic-note { background: var(--amber-soft); }
.reveal-card .ask { margin-bottom: 0.15rem; }
.keys { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.keychip {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--kelp-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.photo-match {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.photo-match button {
  position: relative;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #000;
}
.photo-match button img { display: block; width: 100%; height: 5.2rem; object-fit: contain; background: #0a0610; }
.photo-match.is-logos {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.photo-match.is-logos button {
  background: #f4f1ec;
  aspect-ratio: 1;
  border-radius: 16px;
}
.photo-match.is-logos button img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f4f1ec;
}
.photo-match button small {
  position: absolute; left: 0.35rem; bottom: 0.28rem;
  color: #fff; font-weight: 800; text-shadow: 0 1px 4px #000;
}
.photo-match button.is-on { border-color: var(--amber); }
.photo-match button.is-ok { border-color: #2a7a6a; }
.word-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.word-picks button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
  line-height: 1.15;
}
.word-picks button small {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
}
.word-picks button.is-on { background: var(--amber); color: #1c1220; }
.guess-row { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.7rem; }
.guess-row .btn { text-align: left; }
.guess-row .btn.is-ok { background: var(--kelp-soft); }
.guess-row .btn.is-no { opacity: 0.45; }
.guess-row .btn.is-pick { box-shadow: inset 0 0 0 2px var(--kelp); background: #e7f3ee; }

@media (max-width: 960px), (max-aspect-ratio: 4/5), (max-height: 640px) and (pointer: coarse) {
  html, body.studio-app {
    height: auto;
    min-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
  }
  body.studio-app { padding: 0; }
  .studio {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    border-radius: 0;
    overflow: visible;
  }
  .studio-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.55rem 0.75rem 0.4rem;
  }
  #sec-nav-slot { min-width: 0; width: 100%; }
  .sec-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sec-nav::-webkit-scrollbar { display: none; }
  .studio-rail { padding: 0.45rem 0.75rem; }
  .stage { padding: 0.55rem 0.7rem 0.3rem; }
  .stage.is-on {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
    height: auto;
  }
  .stage-art {
    min-height: 0;
    height: auto;
    max-height: min(32vh, 12.5rem);
    aspect-ratio: 16 / 10;
  }
  .stage-panel {
    height: auto;
    overflow: visible;
    padding: 0.8rem 0.8rem 0.9rem;
  }
  .ask { font-size: 1.15rem; }
  .flip-grid, .sort-board, .pair { grid-template-columns: 1fr; }
  .feel-board.is-both .feel-cols { column-gap: 1.35rem; }
  .feel-word { font-size: 0.86rem; padding: 0.3rem 0.45rem; }
  .feel-en .feel-word { font-size: 0.92rem; }
  .letters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-match { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-match.is-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #stage-nets .stage-art.logo-wall {
    aspect-ratio: auto;
    max-height: none;
    height: auto;
    grid-template-rows: auto auto;
    padding-bottom: 2.2rem;
  }
  #stage-nets .stage-art.logo-wall img {
    height: auto;
    aspect-ratio: 1;
  }
  .studio-bar {
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 6;
    flex-wrap: wrap;
    padding: 0.55rem 0.75rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  }
  .studio-bar .btn { min-width: 0; }
  #sclass-tts-settings {
    bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-height: 500px) and (pointer: coarse) {
  .stage-art { max-height: min(18vh, 5.2rem); }
  #stage-nets .stage-art.logo-wall { max-height: none; }
  .studio-coach { display: none; }
  .studio-bar { position: static; }
}
