.room-intro h1,
.practice-panel h1 {
  font:
    700 clamp(28px, 4vw, 44px)/1.15 Silkscreen,
    monospace;
  letter-spacing: -0.025em;
  margin: 12px 0 16px;
}
.score-summary {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 24px 0;
}
#delivery-score {
  font:
    700 clamp(56px, 10vw, 96px)/1 Silkscreen,
    monospace;
}
#score-label {
  font-size: 14px;
}
#score-change {
  font-weight: bold;
}
#practice-observations {
  padding-left: 22px;
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.8;
}
#practice-observations li {
  margin-bottom: 12px;
}
.writing-tools {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.writing-tools h2 {
  font-size: 20px;
}
.writing-tools .button {
  margin-bottom: 12px;
  font-size: 13px;
}
#writing-output {
  display: block;
  width: 100%;
  min-height: 220px;
  background: var(--white);
  color: var(--ink);
  padding: 20px;
  line-height: 1.7;
  border: 1px solid var(--rule);
}
.is-practice .writing-tools {
  display: none;
}
.capture-panel .live-option {
  display: block !important;
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
}
#live-draft {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 16px;
}
#live-status {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.room-intro p,
.practice-panel > p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 28px;
  color: var(--muted);
}
.workspace-top {
  padding-bottom: 15px;
}
.workspace-grid {
  margin-top: 30px;
}
.capture-panel select {
  font-size: 13px;
}
.capture-panel > label {
  font-size: 12px !important;
}
.record-button {
  font-size: 13px;
}
.record-meta {
  font-size: 12px;
}
.limits {
  margin: 18px 0 !important;
}
.practice-options {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  margin: 28px 0;
}
.practice-options label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}
.practice-options select {
  padding: 12px;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14px;
  min-width: 160px;
}
.practice-options .button {
  min-height: 43px;
  font-size: 13px;
}
.prompt-box {
  border: 1px solid var(--rule);
  padding: 22px 25px;
  max-width: 850px;
  min-height: 90px;
  background: var(--white);
}
.prompt-box p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  white-space: pre-wrap;
  max-width: 68ch;
}
#prompt-placeholder {
  color: var(--muted);
  font-size: 14px;
}
.is-practice .workspace {
  max-width: 940px;
}
.is-practice .workspace-grid {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.is-practice .capture-panel {
  max-width: 850px;
}
.is-practice .capture-panel > label,
.is-practice #language {
  display: none;
}
.is-practice .record-controls {
  max-width: 360px;
  margin: 0;
}
.is-practice .record-meta {
  max-width: 360px;
}
.is-practice .limits {
  font-size: 12px;
}
.is-practice #playback {
  max-width: 500px;
}
.is-practice .transcript-panel {
  display: none;
  min-height: 280px;
}
.is-practice .editor-body textarea {
  min-height: 200px;
}
.is-practice.show-transcript .transcript-panel {
  display: flex;
}
.practice-result {
  max-width: 850px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  margin-top: 24px;
}
.practice-result h2 {
  font-size: 20px;
  margin: 0 0 16px;
}
.practice-result p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 70ch;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.result-actions .button {
  font-size: 12px;
}
.coaching {
  border-top: 1px solid var(--rule);
  padding-top: 15px;
  margin-top: 24px;
}
.coaching .text-link {
  font-size: 13px;
}
#ai-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 0;
}
.ai-feedback {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  max-width: 70ch;
}
.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.site-header nav a {
  padding: 12px 16px;
  min-height: 44px;
}
.site-header nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}
.site-header nav a {
  display: inline !important;
}
.site-header nav {
  font-size: 14px;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
}
.recording-review {
  margin-top: 24px;
}
.recording-review > p:first-child {
  font-size: 13px;
}
.recording-review audio {
  display: block;
  margin-bottom: 16px;
}
.recording-review .text-link {
  font-size: 13px;
  text-decoration: underline;
}
.recording-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  max-width: 45ch;
}
.is-practice #timer {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.info-page {
  min-height: 60vh;
}
.status-line {
  margin: 20px 0 0;
  font-size: 12px;
}
.session-actions:empty {
  display: none;
}
@media (max-width: 700px) {
  .workspace {
    padding-top: 0;
  }
  .workspace-top {
    padding-bottom: 10px;
  }
  .room-intro h1,
  .practice-panel h1 {
    font-size: 29px;
  }
  .practice-options {
    gap: 12px;
  }
  .practice-options label {
    flex: 1;
    min-width: 120px;
  }
  .practice-options select {
    min-width: 0;
    width: 100%;
    font-size: 13px;
  }
  .practice-options .button {
    min-width: 100%;
  }
  .prompt-box {
    padding: 18px;
    min-height: 90px;
  }
  .prompt-box p {
    font-size: 14px;
  }
  .is-practice .record-controls {
    max-width: 100%;
  }
  .is-practice .record-meta {
    max-width: 100%;
  }
  .practice-result p {
    font-size: 13px;
  }
  .site-header .workspace-brand {
    display: none;
  }
  .is-practice .workspace-grid {
    margin-top: 24px;
  }
  .workspace-grid {
    gap: 22px;
  }
  .transcript-panel {
    min-height: 360px;
  }
  .editor-body textarea {
    min-height: 260px;
  }
  .is-practice .transcript-panel {
    min-height: 240px;
  }
}

.site-header nav {
  position: relative;
  isolation: isolate;
}
.site-header nav a {
  position: relative;
  z-index: 1;
}
.site-header nav a[aria-current="page"] {
  background: transparent;
}
.nav-indicator {
  position: absolute;
  left: 0;
  top: 0;
  height: calc(100% - 1px);
  background: var(--ink);
  border-radius: 24px;
  transition:
    transform 0.3s ease,
    width 0.3s ease;
  z-index: 0;
}
#live-status:empty,
#live-draft:empty {
  display: none;
}
.writing-tools {
  margin: 8px 0 24px;
  padding: 18px 0;
  border-top: 0;
  border-bottom: 1px solid var(--rule);
}
.writing-tools h2 {
  margin: 0 0 14px;
}
.feature-card {
  position: fixed;
  right: 18px;
  top: 100px;
  width: 260px;
  z-index: 12;
  perspective: 1100px;
}
.feature-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.feature-controls button,
.card-open {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px;
  font-size: 12px;
}
.card-flip {
  position: relative;
  width: 100%;
  height: 360px;
  padding: 0;
  border: 0;
  background: transparent;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: left;
}
.flipped .card-flip {
  transform: rotateY(180deg);
}
.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 24px #10151f22;
  overflow: auto;
}
.card-front {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.card-front img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 50%;
}
.card-front strong {
  font:
    600 44px/1.4 "Noto Serif Devanagari",
    serif;
}
.card-back {
  transform: rotateY(180deg);
  background: #dce3e7;
  color: var(--ink);
  font-size: 12px;
  gap: 10px;
  line-height: 1.45;
}
.card-back strong {
  font-size: 16px;
}
.card-hint {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 8px;
}
.feature-card.expanded {
  width: 360px;
}
.feature-card.expanded .card-flip {
  height: 460px;
}
.card-open {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
}
@media (max-width: 1439px) {
  .feature-card {
    position: relative;
    top: auto;
    right: auto;
    width: min(360px, calc(100% - 38px));
    margin: 12px auto 20px;
  }
  .card-flip {
    height: 260px;
  }
  .card-front img {
    width: 65px;
    height: 65px;
  }
  .feature-card.expanded {
    width: min(460px, calc(100% - 38px));
  }
  .feature-card.expanded .card-flip {
    height: 400px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-indicator,
  .card-flip {
    transition: none;
  }
}

@media (min-width: 1440px) {
  .has-feature-card .workspace {
    max-width: calc(100% - 300px);
    margin-left: 0;
    margin-right: 300px;
  }
  .has-feature-card.is-practice .workspace {
    width: 940px;
    margin-left: auto;
  }
  .has-feature-card.card-expanded .workspace {
    max-width: calc(100% - 400px);
    margin-right: 400px;
  }
}

.om-mark {
  font:
    600 32px/1 "Noto Serif Devanagari",
    "Nirmala UI",
    serif;
  display: inline-block;
}
.feature-card {
  width: 280px;
}
.feature-controls {
  align-items: center;
  justify-content: space-between;
}
.card-warning {
  font-size: 12px;
  font-weight: bold;
}
#card-close {
  padding: 8px;
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
}
#card-close svg {
  width: 18px;
  height: 18px;
}
.card-flip {
  height: 450px;
}
.card-face {
  padding: 20px;
  gap: 14px;
  border-radius: 16px;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}
.card-front {
  background: #10151f;
  color: #fff;
}
.card-back {
  background: #fff;
  color: #10151f;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-heading .om-mark {
  font-size: 44px;
}
.card-heading strong {
  font:
    600 30px/1.4 "Noto Serif Devanagari",
    serif;
}
.card-tagline {
  font-size: 13px;
}
.card-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.card-features > span {
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 6px;
}
.card-note {
  font-size: 11px;
  line-height: 1.6;
}
.card-hint {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.6;
  margin-top: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.is-home .feature-card {
  position: relative;
  top: auto;
  right: auto;
  width: min(400px, calc(100% - 38px));
  margin: 32px auto 48px;
}
.is-home .card-flip {
  height: 410px;
}
.motion-toggle {
  width: auto;
  min-width: 166px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  box-shadow: none;
  font-size: 12px;
}
@media (max-width: 1439px) {
  .feature-card {
    width: min(400px, calc(100% - 38px));
  }
  .card-flip {
    height: 410px;
  }
}
@media (min-width: 1440px) {
  .has-feature-card .workspace {
    max-width: calc(100% - 330px);
    margin-right: 330px;
  }
}

.card-face {
  gap: 10px;
}
.card-heading .om-mark {
  font-size: 36px;
}
.card-heading strong {
  font-size: 26px;
}
.card-features {
  font-size: 11px;
  line-height: 1.4;
}
.card-features > span {
  padding: 8px;
}
.card-hint {
  order: -1;
  font-size: 11px;
}
.card-heading {
  order: -3;
}
.card-tagline {
  order: -2;
}

/* The feature card overlays the room; opening it never changes the workspace layout. */
.feature-card {
  position: fixed;
  top: 90px;
  right: 16px;
  left: auto;
  width: min(300px, calc(100vw - 32px));
  margin: 0;
  z-index: 20;
  max-height: calc(100dvh - 106px);
}
.card-flip {
  height: min(450px, calc(100dvh - 160px));
}
.card-open {
  top: 90px;
  bottom: auto;
  right: 16px;
}
.is-home #card-open {
  position: absolute;
  top: auto;
  bottom: 12px;
  right: 18px;
}
.is-home .motion-toggle {
  bottom: 62px;
}

.feature-card {
  --info-top: clamp(160px, 22dvh, 240px);
  top: var(--info-top);
  max-height: calc(100dvh - var(--info-top) - 16px);
}
.card-flip {
  height: min(450px, calc(100dvh - var(--info-top) - 64px));
}
.is-home .motion-toggle {
  bottom: 13px;
}
