:root {
  --oral-ink: #173229;
  --oral-forest: #183e32;
  --oral-forest-deep: #102b23;
  --oral-leaf: #2f755c;
  --oral-gold: #f0c94b;
  --oral-gold-pale: #fff2b8;
  --oral-paper: #fcf8ed;
  --oral-paper-deep: #f1ead9;
  --oral-line: #d9cfb8;
  --oral-muted: #66736d;
  --oral-coral: #d9694f;
  --oral-shadow: 0 22px 65px rgba(26, 48, 39, 0.14);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mundlich-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 5% 7%, rgba(240, 201, 75, 0.2), transparent 25rem),
    radial-gradient(circle at 96% 88%, rgba(47, 117, 92, 0.13), transparent 30rem),
    linear-gradient(115deg, rgba(24, 62, 50, 0.025) 1px, transparent 1px),
    var(--oral-paper);
  background-size: auto, auto, 32px 32px, auto;
  color: var(--oral-ink);
  font-family: "Newsreader", serif;
}

.mundlich-page button,
.mundlich-page input {
  font: inherit;
}

.oral-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(23, 50, 41, 0.13);
  background: rgba(252, 248, 237, 0.9);
  backdrop-filter: blur(18px);
}

.oral-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.oral-brand-mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(23, 50, 41, 0.15);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 7px 20px rgba(23, 50, 41, 0.08);
}

.oral-brand-mark img {
  width: 2.15rem;
  height: 2.15rem;
}

.oral-brand-name,
.oral-brand-route {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.oral-brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.oral-brand-route {
  margin-top: 0.12rem;
  overflow: hidden;
  color: var(--oral-muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.oral-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.oral-level-badge,
.oral-timer-button,
.oral-icon-button {
  min-height: 2.65rem;
  border: 1px solid rgba(23, 50, 41, 0.16);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.oral-level-badge {
  display: inline-grid;
  min-width: 2.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--oral-gold);
  color: var(--oral-forest-deep);
}

.oral-timer-button,
.oral-icon-button {
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--oral-forest);
  cursor: pointer;
}

.oral-timer-button {
  display: flex;
  min-width: 5.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.8rem;
  letter-spacing: 0.08em;
}

.oral-timer-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--oral-coral);
  box-shadow: 0 0 0 0 rgba(217, 105, 79, 0.35);
}

.oral-timer-button.is-running .oral-timer-dot {
  animation: oral-pulse 1.5s infinite;
}

.oral-icon-button {
  display: grid;
  width: 2.65rem;
  place-items: center;
  padding: 0;
}

.oral-icon-button svg,
.oral-random-button svg,
.oral-search svg {
  width: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.oral-main {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.4rem) 0 5rem;
}

.oral-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 0.6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.25rem);
  border-radius: 2.1rem;
  background:
    radial-gradient(circle at 82% 5%, rgba(240, 201, 75, 0.24), transparent 18rem),
    linear-gradient(135deg, var(--oral-forest) 0%, var(--oral-forest-deep) 100%);
  color: #fff;
  box-shadow: var(--oral-shadow);
}

.oral-hero::after {
  position: absolute;
  right: -6rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(240, 201, 75, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(240, 201, 75, 0.035), 0 0 0 6rem rgba(240, 201, 75, 0.02);
  content: "";
  pointer-events: none;
}

.oral-hero-copy,
.oral-hero-score {
  position: relative;
  z-index: 1;
}

.oral-eyebrow,
.oral-kicker {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.oral-eyebrow {
  color: var(--oral-gold);
}

.oral-hero h1 {
  max-width: 50rem;
  margin: 1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.45rem, 5.8vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.oral-hero h1 span {
  color: var(--oral-gold);
}

.oral-hero-copy > p:last-child {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.55;
}

.oral-hero-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-self: stretch;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.oral-hero-score div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.1rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.oral-hero-score div:last-child {
  border-right: 0;
}

.oral-hero-score strong {
  color: var(--oral-gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
}

.oral-hero-score span {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.oral-part-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.oral-part-tab {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 5rem;
  padding: 0.85rem;
  border: 1px solid var(--oral-line);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--oral-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.oral-part-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 117, 92, 0.52);
}

.oral-part-tab.is-active {
  border-color: var(--oral-forest);
  background: var(--oral-forest);
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 62, 50, 0.2);
}

.oral-part-number {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.8rem;
  background: var(--oral-paper-deep);
  color: var(--oral-forest);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.oral-part-tab.is-active .oral-part-number {
  background: var(--oral-gold);
}

.oral-part-tab strong,
.oral-part-tab small {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.oral-part-tab strong {
  font-size: 0.86rem;
}

.oral-part-tab small {
  margin-top: 0.2rem;
  color: var(--oral-muted);
  font-size: 0.63rem;
}

.oral-part-tab.is-active small {
  color: rgba(255, 255, 255, 0.62);
}

.oral-part-progress {
  color: var(--oral-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
}

.oral-part-tab.is-active .oral-part-progress {
  color: var(--oral-gold);
}

.oral-workspace {
  display: grid;
  grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 0.66fr);
  min-height: 42rem;
  margin-top: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--oral-line);
  border-radius: 1.7rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 38px rgba(45, 55, 49, 0.08);
}

.oral-library {
  min-width: 0;
  padding: 1.25rem;
  border-right: 1px solid var(--oral-line);
  background: rgba(241, 234, 217, 0.52);
}

.oral-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oral-kicker {
  color: var(--oral-leaf);
  font-size: 0.6rem;
}

.oral-library h2 {
  margin: 0.35rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.oral-random-button {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(47, 117, 92, 0.26);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--oral-leaf);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
}

.oral-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 0 0.75rem;
  border: 1px solid var(--oral-line);
  border-radius: 0.95rem;
  background: #fff;
  color: var(--oral-muted);
}

.oral-search.is-hidden,
.oral-random-button.is-hidden {
  display: none;
}

.oral-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--oral-ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
}

.oral-search input::placeholder {
  color: #89918d;
}

.oral-search kbd {
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--oral-line);
  border-radius: 0.4rem;
  background: var(--oral-paper);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.58rem;
}

.oral-topic-list {
  display: grid;
  gap: 0.35rem;
  max-height: 32rem;
  margin-top: 0.85rem;
  overflow-y: auto;
  scrollbar-color: rgba(47, 117, 92, 0.35) transparent;
}

.oral-topic-button {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--oral-ink);
  text-align: left;
  cursor: pointer;
}

.oral-topic-button:hover {
  background: rgba(255, 255, 255, 0.72);
}

.oral-topic-button.is-active {
  border-color: rgba(47, 117, 92, 0.25);
  background: #fff;
  box-shadow: 0 8px 20px rgba(47, 66, 57, 0.08);
}

.oral-topic-index {
  color: var(--oral-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.63rem;
  font-weight: 700;
}

.oral-topic-name {
  overflow: hidden;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oral-topic-check {
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border: 1px solid var(--oral-line);
  border-radius: 50%;
  color: transparent;
  font-size: 0.62rem;
}

.oral-topic-button.is-done .oral-topic-check {
  border-color: var(--oral-leaf);
  background: var(--oral-leaf);
  color: #fff;
}

.oral-result-status {
  min-height: 1rem;
  margin: 0.75rem 0 0;
  color: var(--oral-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
}

.oral-practice-panel {
  min-width: 0;
  padding: clamp(1.35rem, 3.5vw, 3.2rem);
}

.oral-practice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--oral-line);
}

.oral-practice-label {
  color: var(--oral-leaf);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.oral-practice-head h2 {
  max-width: 44rem;
  margin: 0.55rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.oral-time-chip {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: var(--oral-gold-pale);
  color: #735600;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oral-instruction {
  max-width: 50rem;
  margin: 1.25rem 0 0;
  color: var(--oral-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.oral-position-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.oral-position-card,
.oral-plan-card,
.oral-checklist-card,
.oral-language-bank {
  border: 1px solid var(--oral-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
}

.oral-position-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.oral-position-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.28rem;
  background: var(--oral-leaf);
  content: "";
}

.oral-position-card.position-b::before {
  background: var(--oral-coral);
}

.oral-position-tag {
  display: inline-flex;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  background: rgba(47, 117, 92, 0.09);
  color: var(--oral-leaf);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.position-b .oral-position-tag {
  background: rgba(217, 105, 79, 0.1);
  color: #a84430;
}

.oral-position-speaker {
  margin: 1rem 0 0;
  color: var(--oral-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

.oral-position-opinion {
  margin: 0.65rem 0 0;
  font-size: 1.03rem;
  line-height: 1.62;
}

.oral-topic-reading {
  margin-top: 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid var(--oral-line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
}

.oral-topic-reading__content {
  color: var(--oral-ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 450;
  line-height: 1.8;
  white-space: pre-line;
}

.oral-plan-card,
.oral-checklist-card,
.oral-language-bank {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.oral-plan-card h3,
.oral-checklist-card h3,
.oral-language-bank h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.oral-plan-prompt {
  margin: 0.85rem 0 0;
  font-size: 1.1rem;
  line-height: 1.62;
  white-space: pre-line;
}

.oral-note-grid,
.oral-checklist,
.oral-phrase-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.oral-note-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oral-note-grid li,
.oral-checklist-item {
  display: flex;
  min-height: 3.1rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--oral-line);
  border-radius: 0.85rem;
  background: var(--oral-paper);
}

.oral-note-grid li::before {
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--oral-gold);
  content: "";
}

.oral-checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oral-checklist-item {
  width: 100%;
  color: var(--oral-ink);
  text-align: left;
  cursor: pointer;
}

.oral-checklist-item.is-ready {
  border-color: rgba(47, 117, 92, 0.4);
  background: rgba(47, 117, 92, 0.08);
}

.oral-check-icon {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--oral-line);
  border-radius: 0.4rem;
  color: transparent;
  font-size: 0.68rem;
}

.oral-checklist-item.is-ready .oral-check-icon {
  border-color: var(--oral-leaf);
  background: var(--oral-leaf);
  color: #fff;
}

.oral-phrase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.oral-phrase-grid li {
  padding: 0.8rem 0.9rem;
  border-left: 3px solid var(--oral-gold);
  background: var(--oral-paper);
  color: var(--oral-ink);
  font-style: italic;
  line-height: 1.45;
}

.oral-follow-up {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: var(--oral-forest);
  color: #fff;
}

.oral-follow-up-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--oral-gold);
  color: var(--oral-forest);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.oral-follow-up small,
.oral-follow-up strong {
  display: block;
}

.oral-follow-up small {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.oral-follow-up strong {
  margin-top: 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.oral-secondary-button,
.oral-complete-button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border-radius: 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.oral-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.oral-practice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--oral-line);
}

.oral-practice-footer p {
  margin: 0;
  color: var(--oral-muted);
  font-size: 0.84rem;
}

.oral-complete-button {
  border: 0;
  background: var(--oral-forest);
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 62, 50, 0.18);
}

.oral-complete-button.is-done {
  background: var(--oral-leaf);
}

.oral-empty {
  display: grid;
  min-height: 24rem;
  place-items: center;
  color: var(--oral-muted);
  text-align: center;
}

.oral-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: var(--oral-forest-deep);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.oral-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes oral-pulse {
  70% {
    box-shadow: 0 0 0 0.55rem rgba(217, 105, 79, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 105, 79, 0);
  }
}

@media (max-width: 960px) {
  .oral-hero {
    grid-template-columns: 1fr;
  }

  .oral-part-tabs {
    grid-template-columns: 1fr;
  }

  .oral-part-tab {
    min-height: 4.25rem;
  }

  .oral-workspace {
    grid-template-columns: 1fr;
  }

  .oral-library {
    border-right: 0;
    border-bottom: 1px solid var(--oral-line);
  }

  .oral-topic-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(14rem, 72vw);
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
  }
}

@media (max-width: 680px) {
  .oral-header {
    min-height: 4.25rem;
    padding: 0.6rem 0.75rem;
  }

  .oral-brand-route,
  .oral-level-badge {
    display: none;
  }

  .oral-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .oral-icon-button,
  .oral-timer-button {
    min-height: 2.5rem;
  }

  .oral-main {
    width: min(100% - 1rem, 1280px);
    padding-top: 0.8rem;
  }

  .oral-hero {
    padding: 1.45rem;
    border-radius: 1.35rem;
  }

  .oral-hero h1 {
    font-size: clamp(2.25rem, 14vw, 3.7rem);
  }

  .oral-hero-score {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .oral-hero-score div {
    padding-inline: 0.45rem;
  }

  .oral-hero-score span {
    font-size: 0.48rem;
    letter-spacing: 0.05em;
  }

  .oral-part-tabs {
    gap: 0.45rem;
  }

  .oral-part-tab {
    min-height: 3.8rem;
    padding: 0.55rem;
    border-radius: 0.95rem;
  }

  .oral-part-number {
    width: 2.35rem;
    height: 2.35rem;
  }

  .oral-workspace {
    border-radius: 1.15rem;
  }

  .oral-library,
  .oral-practice-panel {
    padding: 1rem;
  }

  .oral-practice-head {
    gap: 0.75rem;
  }

  .oral-time-chip {
    padding: 0.45rem 0.55rem;
    font-size: 0.54rem;
  }

  .oral-position-grid,
  .oral-note-grid,
  .oral-checklist,
  .oral-phrase-grid {
    grid-template-columns: 1fr;
  }

  .oral-follow-up {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .oral-follow-up .oral-secondary-button {
    grid-column: 1 / -1;
  }

  .oral-practice-footer {
    align-items: stretch;
    flex-direction: column;
  }
}

.oral-workspace.is-rooms-view {
  display: block;
  min-height: 34rem;
  overflow: visible;
  background: rgba(255, 255, 255, 0.58);
}

.oral-workspace.is-rooms-view .oral-library {
  display: none;
}

.oral-workspace.is-rooms-view .oral-practice-panel {
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.oral-rooms-head,
.oral-room-directory-tools,
.oral-room-form-head,
.oral-room-form-actions,
.oral-room-card-top,
.oral-room-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.oral-rooms-head {
  align-items: flex-end;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--oral-line);
}

.oral-rooms-head h2,
.oral-room-directory-tools h3,
.oral-room-form-head h3 {
  margin: 0.25rem 0 0;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.oral-rooms-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.oral-rooms-head p {
  max-width: 46rem;
  margin: 0.45rem 0 0;
  color: var(--oral-muted);
  line-height: 1.5;
}

.oral-create-room-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--oral-forest);
  color: white;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
}

.oral-create-room-button span {
  font-size: 1.1rem;
  line-height: 1;
}

.oral-room-create-panel {
  margin-top: 1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid rgba(47, 117, 92, 0.25);
  border-radius: 1.2rem;
  background: #f2f8f4;
}

.oral-room-create-panel[hidden] {
  display: none;
}

.oral-room-form-head h3 {
  font-size: 1.65rem;
}

.oral-room-form-head > button {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(23, 50, 41, 0.15);
  border-radius: 50%;
  background: white;
  color: var(--oral-ink);
  cursor: pointer;
  font-size: 1.2rem;
}

.oral-room-create-panel form {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.85rem;
  margin-top: 1rem;
}

.oral-room-create-panel label > span:first-child {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--oral-muted);
  font-family: "Manrope", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.oral-room-create-panel input[type="text"],
.oral-room-create-panel input:not([type]),
.oral-room-create-panel select {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid var(--oral-line);
  border-radius: 0.75rem;
  background: white;
  color: var(--oral-ink);
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  outline: none;
}

.oral-room-create-panel input:focus,
.oral-room-create-panel select:focus {
  border-color: var(--oral-leaf);
  box-shadow: 0 0 0 3px rgba(47, 117, 92, 0.12);
}

.oral-room-visibility {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
}

.oral-room-visibility > input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--oral-leaf);
}

.oral-room-visibility span,
.oral-room-visibility strong,
.oral-room-visibility small {
  display: block;
}

.oral-room-visibility strong {
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
}

.oral-room-visibility small {
  margin-top: 0.1rem;
  color: var(--oral-muted);
  font-size: 0.66rem;
}

.oral-room-form-actions {
  align-self: end;
}

.oral-room-form-actions p {
  margin: 0;
  color: var(--oral-muted);
  font-size: 0.7rem;
}

.oral-room-create-panel form > button,
.oral-room-empty button {
  flex: 0 0 auto;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--oral-forest);
  color: white;
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
}

.oral-room-create-panel form > button {
  min-height: 2.9rem;
  white-space: nowrap;
}

.oral-room-create-panel form > button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.oral-room-directory-tools {
  margin: 1.8rem 0 1rem;
}

.oral-room-directory-tools h3 {
  font-size: 1.5rem;
}

.oral-room-directory-tools form {
  display: flex;
  gap: 0.45rem;
}

.oral-room-directory-tools input {
  width: 9rem;
  padding: 0.68rem 0.75rem;
  border: 1px solid var(--oral-line);
  border-radius: 0.72rem;
  background: white;
  font-family: "Manrope", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oral-room-directory-tools button {
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--oral-forest);
  border-radius: 0.72rem;
  background: transparent;
  color: var(--oral-forest);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
}

.oral-room-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.oral-room-card {
  display: flex;
  min-width: 0;
  min-height: 15rem;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid rgba(47, 117, 92, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(155deg, #f7fcf9, #f8f1df);
  box-shadow: 0 10px 28px rgba(23, 50, 41, 0.07);
}

.oral-room-add-card {
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(47, 117, 92, 0.48);
  background: rgba(242, 248, 244, 0.65);
  color: var(--oral-forest);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.oral-room-add-card:hover {
  border-color: var(--oral-leaf);
  background: #f2f8f4;
  transform: translateY(-2px);
}

.oral-room-add-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--oral-forest);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}

.oral-room-add-card > strong {
  font-size: 1rem;
}

.oral-room-add-card > small {
  max-width: 14rem;
  margin-top: 0.35rem;
  color: var(--oral-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.oral-room-card.is-closed {
  border-color: var(--oral-line);
  background: #f0ece3;
  filter: saturate(0.45);
}

.oral-room-status,
.oral-room-key,
.oral-room-meta,
.oral-room-join-button,
.oral-room-closed-button {
  font-family: "Manrope", sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
}

.oral-room-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--oral-leaf);
}

.oral-room-status i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #2ba872;
  box-shadow: 0 0 0 0 rgba(43, 168, 114, 0.3);
  animation: oral-pulse 1.8s infinite;
}

.oral-room-card.is-closed .oral-room-status {
  color: var(--oral-muted);
}

.oral-room-card.is-closed .oral-room-status i {
  background: #9c978d;
  animation: none;
}

.oral-room-key {
  color: var(--oral-muted);
  text-transform: uppercase;
}

.oral-room-key strong {
  margin-left: 0.18rem;
  color: var(--oral-ink);
  letter-spacing: 0.1em;
}

.oral-room-card h3 {
  margin: 1.25rem 0 0;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.oral-room-card > p {
  min-height: 2.5rem;
  margin: 0.5rem 0 1rem;
  color: var(--oral-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.oral-room-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: auto;
  color: var(--oral-muted);
  gap: 0.35rem 0.65rem;
}

.oral-room-join-button,
.oral-room-closed-button {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 0.75rem;
}

.oral-room-join-button {
  background: var(--oral-forest);
  color: white;
  text-decoration: none;
}

.oral-room-closed-button {
  background: #e5dfd3;
  color: #7c776d;
}

.oral-room-empty {
  display: grid;
  min-height: 14rem;
  place-items: center;
  align-content: center;
  padding: 2rem;
  border: 1px dashed var(--oral-line);
  border-radius: 1rem;
  color: var(--oral-muted);
  text-align: center;
}

.oral-room-list > .oral-room-empty {
  grid-column: 1 / -1;
}

.oral-room-empty > span:first-child {
  font-size: 2rem;
}

.oral-room-empty strong {
  margin-top: 0.5rem;
  color: var(--oral-ink);
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

.oral-room-empty p {
  max-width: 34rem;
  margin: 0.35rem 0 0.8rem;
}

.oral-room-loader {
  width: 1.7rem;
  height: 1.7rem;
  border: 2px solid var(--oral-line);
  border-top-color: var(--oral-leaf);
  border-radius: 50%;
  animation: oral-room-spin 0.8s linear infinite;
}

@keyframes oral-room-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .oral-room-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oral-room-create-panel form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .oral-rooms-head,
  .oral-room-directory-tools,
  .oral-room-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .oral-create-room-button {
    justify-content: center;
  }

  .oral-room-directory-tools form {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .oral-room-directory-tools input {
    width: 100%;
  }

  .oral-room-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared ZDeutsch visual language and speaking recorder ----------------- */
.mundlich-page {
  background: #faf9f5;
  color: #24342e;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

.mundlich-page .oral-main {
  padding-inline: clamp(0.75rem, 2vw, 1.5rem) !important;
}

.oral-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid rgba(32, 54, 45, 0.12);
  background: #fff;
  color: #24342e;
  box-shadow: 0 10px 30px rgba(28, 45, 36, 0.05);
}

.oral-hero::after { display: none; }
.oral-eyebrow { color: #38866c; }
.oral-hero h1 {
  margin-top: 0.55rem;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.02;
}
.oral-hero h1 span { color: #38866c; }
.oral-hero-copy > p:last-child { margin-top: 0.8rem; color: #738079; }
.oral-hero-score {
  min-width: min(26rem, 42vw);
  border: 1px solid rgba(32, 54, 45, 0.11);
  border-radius: 0.9rem;
  background: #fafbf9;
}
.oral-hero-score div { border-color: rgba(32, 54, 45, 0.09); }
.oral-hero-score strong { color: #2f755c; }
.oral-hero-score span { color: #738079; }

.oral-part-tab,
.oral-workspace,
.oral-position-card,
.oral-plan-card,
.oral-checklist-card,
.oral-language-bank {
  border-color: rgba(32, 54, 45, 0.12);
  background: #fff;
}
.oral-part-tab.is-active {
  border-color: #3e8a70;
  background: #edf7f2;
  color: #245d49;
  box-shadow: none;
}
.oral-part-tab.is-active small { color: #648174; }
.oral-part-tab.is-active .oral-part-progress { color: #2f755c; }
.oral-workspace { box-shadow: 0 10px 30px rgba(28, 45, 36, 0.05); }
.oral-library { background: #f7f8f5; }
.oral-practice-head h2 { font-family: "Manrope", sans-serif; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.oral-instruction,
.oral-position-opinion,
.oral-plan-prompt { font-family: "Manrope", sans-serif; }

.oral-focused-mode .oral-hero,
.oral-focused-mode .oral-part-tabs,
.oral-focused-mode .oral-library {
  display: none;
}

.oral-focused-mode .oral-main {
  width: min(100%, 1120px);
  padding-top: clamp(1rem, 3vw, 2rem);
}

.oral-focused-mode .oral-workspace {
  display: block;
  min-height: 0;
  margin-top: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.oral-focused-mode .oral-practice-panel {
  padding: 0;
}

.oral-focused-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(32, 54, 45, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0.65rem 0.85rem;
  color: #52615a;
  font: 650 0.7rem/1 "Manrope", sans-serif;
  text-decoration: none;
}

.oral-focused-back:hover {
  border-color: rgba(47, 117, 92, 0.42);
  color: #2f755c;
}

.oral-focused-back svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.oral-focused-back strong {
  color: #2f755c;
}

.oral-checklist-card.is-empty > p {
  margin: 0.8rem 0 0;
  color: #66736d;
  font-size: 0.82rem;
  line-height: 1.6;
}

.oral-recorder {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(47, 117, 92, 0.2);
  border-radius: 1.1rem;
  background: #f7fbf8;
  padding: clamp(1rem, 2.4vw, 1.4rem);
}
.oral-recorder > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.oral-recorder h3 { margin: 0.35rem 0 0; font: 600 1.1rem/1.25 "Manrope", sans-serif; }
.oral-recorder > p { margin: 0; color: #66736d; font: 400 0.82rem/1.55 "Manrope", sans-serif; }
.oral-recorder-state {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef1ee;
  padding: 0.45rem 0.65rem;
  color: #66736d;
  font: 700 0.58rem/1 "Manrope", sans-serif;
  text-transform: uppercase;
}
.oral-recorder-state.is-recording { background: #fff0ef; color: #b54439; }
.oral-recorder-error { border: 1px solid #efc0bb; border-radius: 0.75rem; background: #fff5f4; padding: 0.75rem; color: #983e36; font-size: 0.76rem; }
.oral-recorder-controls { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.oral-record-button,
.oral-analyze-button,
.oral-recorder .oral-secondary-button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0 0.95rem;
  font: 700 0.68rem/1 "Manrope", sans-serif;
  cursor: pointer;
}
.oral-record-button { border: 1px solid #d9aaa6; background: #fff; color: #a13d34; }
.oral-record-button > span { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #d04b41; }
.oral-record-button.is-stop { background: #fff0ef; }
.oral-record-button.is-stop > span { border-radius: 0.1rem; }
.oral-record-button strong { font-variant-numeric: tabular-nums; }
.oral-analyze-button { border: 1px solid #2f755c; background: #2f755c; color: #fff; }
.oral-recorder .oral-secondary-button { border: 1px solid rgba(32, 54, 45, 0.14); background: #fff; color: #52615a; }
.oral-record-button:disabled,
.oral-analyze-button:disabled,
.oral-recorder .oral-secondary-button:disabled { cursor: wait; opacity: 0.55; }
.oral-recording-preview { width: 100%; height: 2.75rem; }
.oral-analysis-progress { display: flex; align-items: center; gap: 0.7rem; color: #52615a; font-size: 0.74rem; }
.oral-analysis-progress span { width: 1rem; height: 1rem; flex: 0 0 auto; border: 2px solid #b7d4c7; border-top-color: #2f755c; border-radius: 50%; animation: oral-spin 0.8s linear infinite; }
.oral-analysis-progress p { margin: 0; }

.oral-ai-result {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid rgba(47, 117, 92, 0.22);
  border-radius: 1.1rem;
  background: #fff;
  padding: clamp(1rem, 2.4vw, 1.4rem);
}
.oral-ai-result > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.oral-ai-result > header span { color: #2f755c; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.oral-ai-result > header h3 { margin: 0.2rem 0 0; font: 600 2rem/1 "Manrope", sans-serif; }
.oral-ai-result > header small { color: #7b8781; font-size: 0.65rem; }
.oral-ai-disclaimer { margin: 0; border-radius: 0.7rem; background: #fff7d5; padding: 0.65rem 0.75rem; color: #725a09; font-size: 0.7rem; }
.oral-ai-transcripts,
.oral-ai-criteria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.oral-ai-transcripts section,
.oral-ai-criteria article,
.oral-ai-next-step { border: 1px solid rgba(32, 54, 45, 0.11); border-radius: 0.8rem; padding: 0.8rem; }
.oral-ai-transcripts span,
.oral-ai-criteria strong,
.oral-ai-next-step strong { color: #2f755c; font: 700 0.66rem/1.2 "Manrope", sans-serif; }
.oral-ai-transcripts p,
.oral-ai-criteria p,
.oral-ai-next-step p { margin: 0.45rem 0 0; color: #415049; font: 400 0.8rem/1.6 "Manrope", sans-serif; white-space: pre-line; }
.oral-ai-next-step { background: #edf7f2; }
.oral-attempt-history { margin-top: 1rem; border-top: 1px solid rgba(32, 54, 45, 0.12); padding-top: 1rem; }
.oral-attempt-history summary { color: #2f755c; font: 700 0.72rem/1.2 "Manrope", sans-serif; cursor: pointer; }
.oral-attempt-history > div { display: grid; gap: 0.55rem; margin-top: 0.7rem; }
.oral-attempt-history article { display: grid; grid-template-columns: minmax(9rem, auto) minmax(12rem, 1fr); align-items: center; gap: 0.75rem; border: 1px solid rgba(32, 54, 45, 0.11); border-radius: 0.75rem; padding: 0.65rem; color: #66736d; font-size: 0.68rem; }
.oral-attempt-history audio { width: 100%; height: 2.35rem; }

@keyframes oral-spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .oral-hero { grid-template-columns: 1fr; }
  .oral-hero-score { width: 100%; min-width: 0; }
}

@media (max-width: 680px) {
  .mundlich-page .oral-main { padding-bottom: calc(var(--zd-exam-footer-height, 4.25rem) + env(safe-area-inset-bottom) + 3.5rem) !important; }
  .oral-hero { padding: 1.1rem; }
  .oral-hero h1 { font-size: clamp(1.8rem, 9vw, 2.5rem); }
  .oral-hero-score span { font-size: 0.52rem; }
  .oral-recorder > header,
  .oral-ai-result > header { align-items: stretch; flex-direction: column; }
  .oral-recorder-state { width: fit-content; }
  .oral-recorder-controls > * { flex: 1 1 10rem; }
  .oral-ai-transcripts,
  .oral-ai-criteria { grid-template-columns: 1fr; }
  .oral-attempt-history article { grid-template-columns: 1fr; }
}
