@import url("../mode.css");
@import url("./assets/bewegingen/zinsbewegingen.css");
@import url("./teacher-theme.css");
/* Typography, icons and controls follow DigiBord settings. Keep the approved Op Pad layout. */
/* Inter 4.1, rsms/inter, SIL OFL; see assets/inter-LICENSE.txt. */
@font-face {
  font-family: "Inter";
  src: url("../assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

[hidden] { display: none !important; }

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/jakarta.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --opad-navy: #102A43;
  --opad-blue: #0877E8;
  --opad-blue-ink: #075eaf;
  --opad-yellow: #FFD43B;
  --opad-bg: #F4F8FD;
  --opad-soft-blue: #EAF3FF;
  --opad-border: #D7E3F0;
  --opad-green: #31965A;
  --opad-text: #16324c;
  --opad-muted: #53677d;
  --opad-white: #fff;
  --opad-radius: 18px;
  --opad-shadow: 0 14px 40px rgba(16, 42, 67, .08);
  --opad-max: 1180px;
}

* { box-sizing: border-box; }

html {
  background: var(--opad-bg);
  color: var(--opad-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  line-height: 1.45;
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--opad-bg);
  color: var(--opad-text);
}

button, input, textarea, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--opad-blue-ink);
  outline-offset: 3px;
}

a {
  color: var(--opad-blue-ink);
}

h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--opad-navy);
  line-height: 1.25;
  font-weight: 500;
  margin-top: 0;
}

h1 { font-size: 29px; letter-spacing: -.7px; }
h2 { font-size: 25px; letter-spacing: -.4px; }
h3 { font-size: 17px; }

p { margin-top: 0; }
strong { font-weight: 500; }

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

.lucide {
  stroke-width: 2;
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
  vertical-align: -0.2em;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--opad-navy);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.teacher-header {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 4px solid #096cdb;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px);
}

.teacher-header-inner {
  width: min(var(--opad-max), calc(100% - 40px));
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.teacher-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--opad-navy);
  text-decoration: none;
  min-width: 0;
}

.teacher-logo {
  display: block;
  width: 148px;
  height: auto;
  flex: 0 0 auto;
}

.teacher-logo-mask {
  display: inline-block;
  width: 148px;
  height: 24px;
  flex: 0 0 auto;
  background: var(--opad-navy);
  -webkit-mask: url("../assets/taalroute-logo-dark.svg") center / contain no-repeat;
  mask: url("../assets/taalroute-logo-dark.svg") center / contain no-repeat;
}

.brand-separator {
  width: 1px;
  height: 30px;
  background: #b8c7d9;
}

.teacher-product-name {
  color: #126ab3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  white-space: nowrap;
}

.teacher-global-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teacher-global-nav button {
  border: 0;
  background: transparent;
  color: var(--opad-navy);
  padding: 10px 11px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 500;
}

.teacher-global-nav button:hover {
  background: var(--opad-soft-blue);
}

#main {
  width: min(var(--opad-max), calc(100% - 40px));
  margin: 0 auto;
}

body[data-page="digiboard"] #main {
  width: 100%;
  margin: 0;
}

.teacher-home-hero {
  min-height: 500px;
  padding: 62px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 64px;
  align-items: center;
}

.teacher-home-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--opad-blue-ink);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.teacher-home-copy h1 {
  margin-bottom: 18px;
}

.home-lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--opad-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.42;
}

.home-tagline {
  margin: 18px 0 0;
  color: var(--opad-muted);
  font-weight: 500;
}

.teacher-home-art {
  position: relative;
}

.speech-bubble {
  position: absolute;
  left: -34px;
  bottom: 30px;
  max-width: 250px;
  padding: 14px 18px;
  border-radius: 18px 18px 18px 5px;
  background: white;
  color: var(--opad-navy);
  box-shadow: var(--opad-shadow);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-weight: 500;
}

img { object-fit: contain; }

.mission-image-wrap {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(145deg, #dbeeff, #f9fbff);
}

.mission-hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.home-hero-image {
  min-height: 380px;
  box-shadow: var(--opad-shadow);
}

.hero-asset-placeholder {
  width: 100%;
  min-height: 250px;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  color: var(--opad-muted);
  background: repeating-linear-gradient(135deg, #eef4fb, #eef4fb 16px, #f7faff 16px, #f7faff 32px);
}

.teacher-section {
  padding: 54px 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.teacher-mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.teacher-mission-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--opad-border);
  border-radius: var(--opad-radius);
  background: white;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(16, 42, 67, .045);
  transition: transform .16s ease, box-shadow .16s ease;
}

.teacher-mission-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--opad-shadow);
}

.teacher-mission-card-art .mission-image-wrap {
  border-radius: 0;
  min-height: 220px;
}

.teacher-mission-card-body {
  padding: 22px;
}

.teacher-mission-card h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.teacher-mission-card p {
  color: var(--opad-muted);
}

.card-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--opad-blue-ink);
  font-weight: 500;
}

.tag-row,
.chip-row,
.word-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mission-tag,
.soft-chip,
.word-row span,
.phase-pill,
.optional-label {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--opad-soft-blue);
  color: var(--opad-navy);
  font-size: .78rem;
  font-weight: 500;
}

.optional-label {
  background: #fff7cf;
}

.weekly-tip {
  margin: 24px 0 70px;
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  border: 1px solid #d8e9d9;
  border-radius: 20px;
  background: #f3fbf3;
}

.tip-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  background: white;
  color: var(--opad-green);
}

.tip-icon .lucide {
  stroke-width: 2;
  width: 26px;
  height: 26px;
}

.weekly-tip h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.weekly-tip p:last-child {
  margin-bottom: 0;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.button:hover {
  filter: brightness(.97);
}

.button-primary {
  background: #126ab3;
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

.button-secondary {
  border-color: #d7e4ee;
  background: white;
  color: #173752;
}

.button-quiet {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: white;
}

.button-large {
  min-height: 50px;
  padding: 13px 20px;
}

.button-small {
  min-height: 39px;
  padding: 8px 12px;
  font-size: .9rem;
}

.teacher-shell-content {
  padding: 24px 0 68px;
}

.breadcrumb {
  min-height: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--opad-muted);
  font-size: .86rem;
}

.breadcrumb a {
  color: var(--opad-muted);
  text-decoration: none;
}

.breadcrumb .lucide {
  stroke-width: 2;
  width: 14px;
  height: 14px;
}

.mission-workspace-hero {
  padding: 24px 0 28px;
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr);
  gap: 38px;
  align-items: center;
}

.mission-workspace-hero .mission-image-wrap {
  min-height: 0;
  width: min(100%, 420px);
  justify-self: center;
  box-shadow: var(--opad-shadow);
}

.mission-workspace-copy h1 {
  margin: 15px 0 14px;
  font-size: 29px;
}

.mission-subtitle {
  max-width: 650px;
  color: var(--opad-muted);
  font-size: 1.08rem;
}

.mission-action-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mission-tabs-wrap {
  position: sticky;
  top: 64px;
  z-index: 50;
  margin: 0 -10px;
  padding: 0 10px;
  background: linear-gradient(var(--opad-bg) 75%, rgba(244,248,253,0));
}

.mission-tabs {
  display: flex;
  overflow-x: auto;
  gap: 2px;
  border-bottom: 1px solid var(--opad-border);
  background: var(--opad-bg);
  scrollbar-width: none;
}

.mission-tabs::-webkit-scrollbar { display: none; }

.mission-tabs button {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--opad-muted);
  font-weight: 500;
  cursor: pointer;
}

.mission-tabs button[aria-selected="true"] {
  color: var(--opad-blue-ink);
}

.mission-tabs button[aria-selected="true"]::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--opad-blue);
  content: "";
}

#mission-tab-panel {
  outline: none;
}

.tab-section {
  padding: 38px 0 30px;
}

.tab-heading {
  max-width: 740px;
  margin-bottom: 26px;
}

.tab-heading h2 {
  margin-bottom: 8px;
}

.tab-heading p {
  color: var(--opad-muted);
}

.tab-heading-actions {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phase-card,
.quiet-card,
.support-card,
.lesson-block,
.workform-card,
.board-preview-card,
.board-preview-stage {
  border: 1px solid var(--opad-border);
  border-radius: var(--opad-radius);
  background: white;
  box-shadow: 0 7px 24px rgba(16, 42, 67, .035);
}

.phase-card {
  overflow: hidden;
}

.phase-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
}

.phase-heading h3 {
  margin: 0 0 4px;
}

.phase-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: white;
}

.phase-before .phase-heading {
  background: var(--opad-soft-blue);
  color: var(--opad-blue-ink);
}

.phase-outside .phase-heading {
  background: #fff5bd;
  color: #755d00;
}

.phase-return .phase-heading {
  background: #eaf8ee;
  color: var(--opad-green);
}

.phase-time {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--opad-muted);
  font-size: .79rem;
  font-weight: 500;
}

.phase-content {
  padding: 20px;
}

.micro-label {
  margin: 16px 0 7px;
  color: var(--opad-muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.quote-card {
  margin-top: 16px;
  padding: 13px 14px;
  border-left: 4px solid var(--opad-blue);
  border-radius: 10px;
  background: #f5faff;
}

.quote-card.subtle {
  border-left-color: #7895b2;
}

.quote-card span,
.rule-grid span,
.follow-up-grid span,
.follow-up-panel-body span,
.student-help div span {
  display: block;
  margin-bottom: 4px;
  color: var(--opad-muted);
  font-size: .76rem;
  font-weight: 500;
}

.quote-card strong {
  display: block;
  color: var(--opad-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.card-note {
  margin: 14px 0 0;
  color: var(--opad-muted);
  font-size: .86rem;
}

.clean-list,
.question-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.clean-list li,
.question-list li {
  position: relative;
  padding-left: 20px;
  margin: 0 0 9px;
}

.clean-list li::before {
  position: absolute;
  left: 2px;
  top: .7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--opad-blue);
  content: "";
}

.question-list li::before {
  position: absolute;
  left: 0;
  color: var(--opad-blue-ink);
  font-weight: 500;
  content: "?";
}

.proof-rule {
  margin: 18px 0 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--opad-navy);
}

.overview-lower-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quiet-card {
  padding: 20px;
}

.quiet-card h3 {
  margin-bottom: 10px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.follow-up-summary {
  background: #fbfdff;
}

.workspace-footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--opad-border);
}

.workspace-footer-nav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--opad-navy);
  font-weight: 500;
  text-decoration: none;
}

.lesson-brief {
  width: 100%;
  max-width: none;
  margin: 0;
}

.lesson-block {
  margin-bottom: 18px;
  padding: 24px;
}

.lesson-block > h3:not(:first-child) {
  margin-top: 24px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.fact-grid div {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--opad-bg);
}

.fact-grid dt {
  color: var(--opad-muted);
  font-size: .73rem;
  font-weight: 500;
}

.fact-grid dd {
  margin: 4px 0 0;
  color: var(--opad-navy);
  font-weight: 500;
}

.lesson-phase-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.lesson-phase-title > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--opad-blue);
  color: white;
  font-weight: 500;
}

.lesson-phase-title h3 {
  margin: 0;
}

.lesson-subsection {
  margin-top: 20px;
}

.lesson-subsection h4 {
  margin-bottom: 10px;
}

.source-insert {
  margin: 18px 0;
  padding: 17px;
  display: grid;
  gap: 6px;
  border-radius: 13px;
  background: var(--opad-soft-blue);
}

.source-insert span {
  color: var(--opad-muted);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.source-insert strong {
  font-size: 1.12rem;
}

.source-insert small {
  color: var(--opad-muted);
}

.rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}

.rule-grid > div,
.follow-up-grid > div,
.follow-up-panel-body > div {
  padding: 13px 14px;
  border-radius: 11px;
  background: var(--opad-bg);
}

.follow-up-lesson {
  border-color: #c7dcf4;
  background: #f9fcff;
}

.follow-up-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  padding: 22px;
}

.support-primary {
  background: #f6faff;
}

.support-repair {
  background: #fffdf4;
  border-color: #f1df91;
}

.big-language {
  margin: 12px 0 18px;
  color: var(--opad-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.25;
}

.secondary-language {
  color: var(--opad-navy);
  font-weight: 500;
}

.support-card details,
.more-support,
.board-extra,
.board-follow-up,
.workform-card details {
  margin-top: 14px;
}

details > summary {
  cursor: pointer;
  color: var(--opad-blue-ink);
  font-weight: 500;
}

.follow-up-panel {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #c9dff6;
  border-radius: var(--opad-radius);
  background: white;
}

.follow-up-panel > summary {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.follow-up-panel > summary::-webkit-details-marker { display: none; }

.follow-up-panel > summary small {
  display: block;
  color: var(--opad-muted);
  font-weight: 500;
}

.follow-up-panel > summary .lucide:last-child {
  margin-left: auto;
}

.follow-up-panel-body {
  padding: 0 22px 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.follow-up-panel > p {
  padding: 0 22px 18px;
  margin: 0;
  color: var(--opad-muted);
  font-size: .88rem;
}

.workform-section {
  margin: 30px 0;
}

.workform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workform-card {
  padding: 20px;
}

.workform-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.workform-top h3 {
  margin: 10px 0 0;
}

.workform-meta {
  display: grid;
  gap: 5px;
  color: var(--opad-muted);
  font-size: .78rem;
  white-space: nowrap;
}

.workform-meta span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.workform-card details {
  border-top: 1px solid var(--opad-border);
  padding-top: 13px;
}

.workform-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-list {
  padding-left: 24px;
}

.step-list li {
  margin: 8px 0;
}

.stop-box {
  margin: 14px 0;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  border-radius: 10px;
  background: var(--opad-soft-blue);
}

.guardrail {
  padding: 11px 13px;
  border-radius: 10px;
  background: #fff7cf;
}

.optional-workforms {
  margin-top: 24px;
  padding: 18px;
  border: 1px dashed #b8cadc;
  border-radius: var(--opad-radius);
}

.optional-workforms > summary {
  margin-bottom: 16px;
}

.board-preview-steps {
  display: grid;
  gap: 18px;
}

.board-preview-selector {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--opad-border);
  border-radius: 14px;
  background: white;
}

.board-preview-selector button {
  min-height: 66px;
  padding: 10px 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--opad-border);
  background: white;
  color: var(--opad-muted);
  cursor: pointer;
  text-align: left;
}

.board-preview-selector button:last-child {
  border-right: 0;
}

.board-preview-selector button[aria-selected="true"] {
  background: var(--opad-soft-blue);
  color: var(--opad-blue-ink);
}

.board-preview-selector button span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--opad-bg);
  font-weight: 500;
}

.board-preview-selector button[aria-selected="true"] span {
  background: var(--opad-blue);
  color: white;
}

.board-preview-selector strong {
  font-size: .82rem;
  line-height: 1.25;
}

.board-preview-stage {
  overflow: auto;
}

.board-preview-stage:fullscreen {
  padding: 30px;
  border: 0;
  border-radius: 0;
  background: #f7faff;
}

.board-preview-stage:fullscreen .board-preview-label {
  max-width: 1180px;
  margin: 0 auto;
}

.board-preview-stage:fullscreen .board-preview-content {
  width: min(1180px, 100%);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  align-content: center;
}

.board-preview-card {
  overflow: hidden;
}

.board-preview-label {
  padding: 14px 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--opad-border);
}

.board-preview-label span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--opad-blue);
  color: white;
  font-weight: 500;
}

.board-preview-content {
  min-height: 230px;
  padding: 28px;
}

.board-hero {
  display: grid;
  grid-template-columns: minmax(250px, .85fr) 1.15fr;
  gap: 30px;
  align-items: center;
}

.board-hero .mission-image-wrap {
  min-height: 220px;
}

.board-kicker {
  margin-bottom: 11px;
  color: var(--opad-blue-ink);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-centered {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.board-word-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.board-word-row span {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--opad-soft-blue);
  color: var(--opad-navy);
  font-size: 1.2rem;
  font-weight: 500;
}

.board-word-row.small span {
  font-size: 1rem;
}

.board-phrase {
  margin: 22px 0 14px;
  color: var(--opad-navy);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.18;
}

.board-lead {
  color: var(--opad-muted);
  font-size: 1.12rem;
}

.board-follow-up {
  width: min(720px, 100%);
}

.board-follow-up-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  text-align: left;
}

.board-follow-up-grid > div {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--opad-bg);
}

.board-follow-up-grid span {
  display: block;
  color: var(--opad-muted);
  font-size: .74rem;
}

.board-go .board-pin {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  background: #fff4ad;
  color: #735a00;
}

.board-go .board-pin .lucide {
  stroke-width: 2;
  width: 32px;
  height: 32px;
}

.proof-rule.large {
  padding: 10px 14px;
  border-radius: 999px;
  background: #eaf8ee;
  color: #225c35;
}

.board-qr-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-image {
  width: 150px;
  height: 150px;
  border: 8px solid white;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16,42,67,.09);
}

.board-good-luck {
  margin: 16px 0 0;
  color: var(--opad-muted);
  font-weight: 500;
}

.teacher-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(80vh, 760px);
  overflow: auto;
  border: 1px solid var(--opad-border);
  border-radius: 18px;
  padding: 0;
  color: var(--opad-text);
  background: white;
  box-shadow: 0 30px 80px rgba(16,42,67,.2);
}

.teacher-dialog::backdrop {
  background: rgba(16, 42, 67, .42);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  padding: 24px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.dialog-heading h2 {
  margin-bottom: 0;
}

.icon-button {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: var(--opad-bg);
  color: var(--opad-navy);
  cursor: pointer;
}

.icon-button img {
  width: 19px;
  height: 19px;
}

/* Shared, illustrated explanation on the start page and mission workspace. */
.steps-dialog { width: min(1180px, calc(100% - 28px)); max-height: 90dvh; }
.explanation-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.explanation-steps > li { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--opad-border); border-radius: 12px; background: linear-gradient(145deg, #fff, #edf7ff); }
.explanation-step-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.explanation-step-heading > span { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; color: white; background: var(--opad-blue); font-size: 18px; }
.explanation-step-heading h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.explanation-steps p { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }
.explanation-steps > li > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: 8px; margin-top: auto; }
.explanation-steps .button { justify-content: space-between; margin-top: 16px; width: 100%; }
@media (max-width: 760px) {
  .explanation-steps { grid-template-columns: 1fr; }
  .explanation-steps > li { padding: 18px; }
  .explanation-steps > li > img { max-height: 170px; }
}

#share-dialog { width: min(860px, calc(100% - 28px)); max-height: 90dvh; border-radius: 12px; }
.share-inner { padding: 28px; }
.share-inner .dialog-heading { align-items: start; gap: 16px; margin-bottom: 24px; }
.share-intro { margin: 8px 0 0; color: var(--opad-muted); font-size: 14px; }
.share-dialog-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 28px; align-items: start; }
.share-card-section { display: grid; gap: 12px; width: min(100%, 240px); min-width: 0; justify-self: center; }
.share-preview { display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #f4f8fd; }
.share-preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 480px; object-fit: contain; }
.share-preview p { padding: 16px; font-size: 14px; }
.share-options { display: grid; gap: 12px; min-width: 0; }
.share-options h3 { margin: 0; font-size: 17px; font-weight: 500; }
.share-default-message { margin: 0 0 4px; color: #486078; font-size: 14px; line-height: 1.6; }
.share-options label { color: var(--opad-navy); font-size: 14px; font-weight: 500; }
.share-optional { display: block; color: var(--opad-muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.share-options textarea { width: 100%; resize: vertical; border: 1px solid var(--opad-border); border-radius: 7px; padding: 10px 12px; color: var(--opad-text); font: inherit; font-size: 16px; }
.share-help { margin: 0; font-size: 13px; line-height: 1.5; color: var(--opad-muted); }
.share-secondary { display: flex; flex-wrap: wrap; gap: 8px; }
.share-secondary .button { flex: 1; white-space: nowrap; font-size: 13px; }
.share-message-details summary, .share-qr-details summary { min-height: 44px; cursor: pointer; font-size: 14px; color: #126ab3; padding: 10px 0; }
.share-message-details p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; color: #486078; }
.share-qr-details summary .lucide { width: 17px; height: 17px; vertical-align: middle; margin-right: 6px; }
.share-qr { display: grid; grid-template-columns: 140px minmax(0,1fr); align-items: center; gap: 16px; padding: 12px; background: #f4f8fd; border-radius: 8px; }
.share-qr img { width: 140px; height: 140px; }
.share-qr p { font-size: 13px; margin: 0 0 8px; }
.share-qr a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; color: #126ab3; text-decoration: underline; }
@media (max-width: 620px) {
 .share-inner { padding: 20px; }
 .share-dialog-grid { grid-template-columns: 1fr; gap: 24px; }
 .share-card-section { width: min(100%, 220px); justify-self: center; }
 .share-qr { grid-template-columns: 100px minmax(0,1fr); gap: 10px; }
 .share-qr img { width: 100px; height: 100px; }
}

.inline-status {
  min-height: 1.4em;
  color: var(--opad-muted);
  font-size: .86rem;
}

.error-box {
  margin: 70px auto;
  max-width: 700px;
  padding: 30px;
  border: 1px solid #e6b7b7;
  border-radius: 18px;
  background: #fff8f8;
}

.digiboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #f7faff;
}

.digiboard-topbar {
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--opad-navy);
  color: white;
}

.digiboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.digiboard-brand .teacher-logo-mask {
  width: 126px;
  height: 21px;
  background: white;
}

.digiboard-brand .brand-separator {
  background: rgba(255,255,255,.4);
}

.digiboard-brand .teacher-product-name {
  color: white;
  font-size: .85rem;
}

.digiboard-top-actions {
  display: flex;
  gap: 8px;
}

.digiboard-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--opad-border);
  background: white;
}

.digiboard-progress button {
  min-height: 70px;
  padding: 9px 12px;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--opad-border);
  background: white;
  color: var(--opad-muted);
  cursor: pointer;
}

.digiboard-progress button:last-child {
  border-right: 0;
}

.digiboard-progress button[aria-current="step"] {
  background: var(--opad-soft-blue);
  color: var(--opad-blue-ink);
}

.digiboard-progress button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--opad-bg);
  font-weight: 500;
}

.digiboard-progress button[aria-current="step"] span {
  background: var(--opad-blue);
  color: white;
}

.digiboard-progress strong {
  font-size: .84rem;
  text-align: left;
}

.digiboard-content {
  width: min(1180px, calc(100% - 64px));
  margin: auto;
  padding: 35px 0;
}

.digiboard-content .board-centered,
.digiboard-content .board-hero {
  min-height: min(62vh, 650px);
}

.digiboard-content .board-hero .mission-image-wrap {
  min-height: 440px;
}

.digiboard-content .board-word-row span {
  padding: 14px 22px;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.digiboard-content .board-phrase {
  font-size: clamp(2.4rem, 6vw, 5.3rem);
}

.digiboard-content .board-lead {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.digiboard-content .qr-image {
  width: 190px;
  height: 190px;
}

.digiboard-controls {
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--opad-border);
  background: white;
}

.digiboard-controls button:first-child {
  justify-self: start;
}

.digiboard-controls button:last-child {
  justify-self: end;
}

.digiboard-controls > span {
  color: var(--opad-muted);
  font-weight: 500;
}

@media (max-width: 980px) {
  .teacher-home-hero,
  .mission-workspace-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .teacher-home-art {
    max-width: 680px;
  }

  .speech-bubble {
    left: 18px;
  }

  .teacher-mission-grid,
  .phase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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



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

  .digiboard-progress strong,
  .board-preview-selector strong {
    display: none;
  }

  .digiboard-progress button,
  .board-preview-selector button {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  #main,
  .teacher-header-inner {
    width: min(100% - 24px, var(--opad-max));
  }

  .teacher-header-inner {
    min-height: 66px;
  }

  .teacher-logo,
  .teacher-logo-mask {
    width: 112px;
    height: 19px;
  }

  .brand-separator {
    height: 25px;
  }

  .teacher-product-name {
    font-size: 1.2rem;
  }

  .teacher-global-nav {
    gap: 1px;
  }

  .teacher-global-nav button {
    padding: 8px 7px;
    font-size: .76rem;
  }

  .teacher-home-hero {
    padding-top: 34px;
    min-height: auto;
  }

  .home-hero-image {
    min-height: 260px;
  }

  .teacher-mission-grid,
  .phase-grid,
  .overview-lower-grid,
  .support-grid,
  .workform-grid,
  .follow-up-panel-body,
  .follow-up-grid,
  .two-column-list,
  .rule-grid,
  .share-dialog-grid {
    grid-template-columns: 1fr;
  }

  .mission-action-row,
  .compact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mission-action-row .button,
  .compact-actions .button {
    width: 100%;
  }

  .mission-tabs-wrap {
    top: 66px;
  }

  .mission-tabs button {
    padding: 10px 12px;
    min-height: 50px;
  }

  .tab-heading-actions,
  .workform-top {
    display: grid;
  }

  .fact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .board-hero {
    grid-template-columns: 1fr;
  }

  .board-hero .mission-image-wrap {
    min-height: 210px;
  }

  .share-qr {
    grid-template-columns: 86px 1fr;
  }

  .share-qr img {
    width: 86px;
    height: 86px;
  }

  .digiboard-topbar {
    padding: 12px;
    flex-wrap: wrap;
  }

  .digiboard-brand .teacher-logo-mask {
    width: 100px;
  }

  .digiboard-top-actions [data-action="fullscreen"] {
    display: none;
  }

  .digiboard-content {
    width: calc(100% - 30px);
  }

  .digiboard-content .board-hero .mission-image-wrap {
    min-height: 260px;
  }

  .digiboard-progress button,
  .board-preview-selector button {
    min-height: 54px;
    padding: 6px;
  }

  .digiboard-controls {
    padding: 12px;
    grid-template-columns: 1fr 1fr;
  }

  .digiboard-controls > span {
    display: none;
  }

  .digiboard-controls .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .teacher-header {
    position: static;
  }

  .teacher-header-inner {
    min-height: auto;
    padding: 10px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .mission-tabs-wrap {
    top: 0;
  }

  .teacher-global-nav {
    width: 100%;
    justify-content: space-between;
    order: 2;
    border-top: 1px solid var(--opad-border);
    padding-top: 6px;
  }

  .teacher-global-nav button {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 4px;
    font-size: .72rem;
  }

  .teacher-home-copy h1 {
    font-size: 25px;
  }

  .teacher-section {
    padding: 38px 0;
  }

  .mission-workspace-hero {
    padding-top: 17px;
  }

  .tag-row {
    gap: 5px;
  }

  .mission-tag {
    font-size: .72rem;
    padding: 4px 8px;
  }

  .phase-content,
  .quiet-card,
  .lesson-block,
  .support-card,
  .workform-card {
    padding: 17px;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .board-preview-content {
    padding: 18px;
  }

  .board-follow-up-grid {
    grid-template-columns: 1fr;
  }

  .teacher-dialog {
    width: calc(100% - 14px);
    max-height: 90vh;
  }

  .dialog-inner {
    padding: 18px;
  }
}

/* Nico's explicit welcome-banner and compact-catalogue update. */
body[data-page="home"] .teacher-home-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 310px; height: clamp(310px, 28vw, 360px); padding: 24px 30px; margin-top: 22px; gap: 0; background: #eaf6ff; border-radius: 14px; overflow: hidden; }
.welcome-illustration { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; z-index: -1; }
body[data-page="home"] .teacher-home-copy { width: 43%; max-width: 480px; }
body[data-page="home"] .teacher-home-copy h1 { margin-bottom: 10px; font-size: clamp(23px, 2.1vw, 29px); }
body[data-page="home"] .home-lead { font-size: 17px; font-weight: 400; line-height: 1.45; margin-bottom: 18px; }
body[data-page="home"] .home-tagline { font-size: 13px; margin-top: 14px; }
body[data-page="home"] .teacher-section { padding: 20px 0; }
body[data-page="home"] .section-heading { margin-bottom: 12px; }
body[data-page="home"] .teacher-mission-grid, .catalogue-dialog .teacher-mission-grid { gap: 12px; }
.teacher-mission-card { display: flex; align-items: center; box-shadow: none; border-radius: 10px; }
.teacher-mission-card:hover { transform: none; box-shadow: none; border-color: var(--opad-blue); }
.catalogue-image { width: 88px; height: 100px; object-fit: contain; flex: 0 0 auto; align-self: center; }
.teacher-mission-card-body { padding: 12px; min-width: 0; }
.teacher-mission-card h3 { font-size: 16px; margin: 5px 0 8px; }
.catalogue-meta, .teacher-mission-card .card-link { font-size: 12px; }
.catalogue-meta { color: var(--opad-muted); }
body[data-page="home"] .weekly-tip { padding: 15px 18px; margin: 0 0 20px; }
body[data-page="home"] .weekly-tip h2 { font-size: 17px; margin-bottom: 5px; }
body[data-page="home"] .weekly-tip .eyebrow { margin-bottom: 5px; }
body[data-page="home"] .weekly-tip p:last-child { font-size: 14px; margin-bottom: 0; }
.catalogue-dialog { width: min(1060px, calc(100% - 28px)); }
.mission-discovery-heading { flex-wrap: wrap; gap: 12px; }
.mission-discovery-heading h2 { margin-right: auto; }
.mission-level-picker { display: inline-flex; flex: 0 0 auto; gap: 0; padding: 0; border: 0; border-radius: 7px; background: white; }
.mission-level-picker .button { min-width: 44px; min-height: 44px; padding: 8px 10px; border-color: var(--opad-border); }
.mission-level-picker [aria-pressed="true"] { color: white; background: #126ab3; }
.catalogue-dialog .mission-level-picker { margin-bottom: 18px; }
.catalogue-dialog label[for="catalogue-search"] { display: block; margin: 0; }
html { scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
.phase-heading { min-height: 116px; align-items: flex-start; }
.phase-heading > div { min-width: 0; }
.phase-icon { flex: 0 0 42px; background: #ffffff26; }
.phase-heading h3 { margin: 0 0 6px; color: inherit; }
.phase-heading .phase-time { color: inherit; font-size: 14px; }
.phase-before .phase-heading { color: white; background: #096cdb; }
.phase-outside .phase-heading { color: #102A43; background: #FFD43B; }
.phase-return .phase-heading { color: white; background: #008548; }
.phase-before .label-active { color: #096cdb; }
.phase-before .label-listen { color: #725600; }
.words-active span { color: white; background: #096cdb; }
.words-listen span { color: #102A43; background: #FFD43B; }
.catalogue-dialog input { display: block; width: 100%; margin: 6px 0 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--opad-border); border-radius: 7px; }
.catalogue-dialog .teacher-mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.phrase-audio { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 4px 0 8px; vertical-align: middle; }
.phrase-audio .button { min-height: 44px; padding: 7px 10px; font-size: 13px; border: 1px solid var(--opad-border); background: white; color: var(--opad-blue-ink); }
.phrase-audio .playing { background: var(--opad-soft-blue); border-color: var(--opad-blue); }
.audio-status { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 100; background: white; color: #102A43; }
.audio-status:empty { display: none; }
.board-official-brand { display: flex; align-items: center; justify-content: center; gap: 18px; }
.board-official-brand img { width: 160px; height: auto; }
.board-official-brand span { border-left: 1px solid var(--opad-border); padding-left: 18px; font-size: 22px; }
.digiboard-brand .teacher-logo { width: 126px; height: auto; }
.digiboard-controls [data-action="board-next"] { justify-self: end; }
.digiboard-controls [data-action="board-prev"] { justify-self: start; }
.digiboard-shell { height: 100dvh; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.digiboard-content { min-height: 0; margin: 0 auto; overflow: auto; scrollbar-gutter: stable both-edges; }

.board-preview-content { height: clamp(440px, 58vh, 620px); min-height: 0; overflow: auto; scrollbar-gutter: stable both-edges; }
.board-preview-content .board-phrase { font-size: clamp(32px, 3.5vw, 50px); }
.board-preview-content .board-word-row span { font-size: 24px; }
.board-preview-content .board-lead { font-size: 20px; }
.board-preview-content .board-hero img { max-height: 380px; object-fit: contain; }
.board-preview-stage:fullscreen { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.board-preview-stage:fullscreen .board-preview-content { height: auto; min-height: 0; display: block; }
.board-support-row { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); align-items: start; gap: 16px; width: 100%; }
.board-support-row > details { width: 100%; min-width: 0; }
.board-extra > p { font-size: clamp(24px, 2.2vw, 34px); margin: 12px 0; }
.board-follow-up-grid strong { display: block; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.3; margin: 8px 0; }
.board-follow-up-grid span { font-size: 14px; }
.board-preview-content .phrase-audio .button, .digiboard-content .phrase-audio .button { min-height: 48px; font-size: 17px; }
.board-preview-content .phrase-audio .lucide, .digiboard-content .phrase-audio .lucide { width: 22px; height: 22px; }
.board-centered > .board-extra, .board-centered > .board-support-row { margin-top: 18px; }
.board-main > .board-qr-row { justify-content: center; }
.digiboard-content .board-hero h2 { font-size: clamp(32px, 3vw, 48px); }
.digiboard-content .board-hero p:not(.board-kicker) { font-size: 24px; }
.digiboard-shell *, .board-preview-stage * { transition: none; animation: none; }
.digiboard-controls [hidden] { display: none !important; }
@media (max-width: 620px) {
  .board-support-row { grid-template-columns: 1fr; }
  .board-preview-content { padding: 18px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .digiboard-shell { height: 100dvh; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .digiboard-topbar { padding: 8px 24px; }
  .digiboard-progress button { min-height: 54px; }
  .digiboard-content { padding: 24px 0; margin: 0 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable both-edges; }
  .digiboard-content .board-centered, .digiboard-content .board-hero { min-height: 0; }
  .digiboard-content .board-hero .mission-image-wrap { min-height: 0; }
  .digiboard-content .board-hero img { max-height: calc(100dvh - 230px); object-fit: contain; }
  .digiboard-content .board-phrase { font-size: clamp(40px, 4.5vw, 72px); margin: 14px 0 10px; }
  .digiboard-content .qr-image { width: clamp(115px, 17vh, 170px); height: clamp(115px, 17vh, 170px); }
  .digiboard-content .board-qr-row { margin-top: 10px; }
  .digiboard-content .board-go p { margin-bottom: 8px; }
  .digiboard-controls { padding: 10px 24px; }
}
@media (max-width: 900px) {
  body[data-page="home"] .teacher-home-hero { min-height: 300px; }
  body[data-page="home"] .teacher-home-copy { width: 48%; }
  .teacher-mission-grid { grid-template-columns: 1fr; }
  .catalogue-image { width: 80px; height: 90px; }
}
@media (max-width: 620px) {
  body[data-page="home"] .teacher-home-hero { height: auto; min-height: 0; align-items: stretch; padding: 20px; margin-top: 16px; }
  .welcome-illustration { display: none; }
  body[data-page="home"] .teacher-home-copy { width: 100%; max-width: none; }
  body[data-page="home"] .teacher-home-copy .button-primary { width: 100%; justify-content: center; }
  .catalogue-dialog .teacher-mission-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

.print-mission-title, .print-document { display: none; }

@media print {
  @page { size: A4; margin: 0 0 16mm;
    @bottom-left { content: image-set(url("../assets/taalroute-logo-dark.svg") 8x); width: 28mm; margin: 0 0 3mm 14mm; vertical-align: middle; }
    @bottom-center { print-color-adjust: exact; -webkit-print-color-adjust: exact; content: "Op Pad · Lesbrief voor de docent"; width: 182mm; margin: 0 14mm 3mm; border-top: 1px solid #d7e3f0; text-align: right; vertical-align: middle; font: 8pt Inter, sans-serif; color: #53677d; }
  }
  html, body { min-height: 0; height: auto; margin: 0 !important; padding: 0 !important; background: #fff !important; color: #102A43 !important; }
  body > :not(.print-document) { display: none !important; }
  .print-document { display: block; font: 10.5pt/1.4 Inter, sans-serif; }
  .print-document * { box-sizing: border-box; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-page { break-after: page; }
  .print-page:last-child { break-after: auto; }
  .print-header { width: 100%; }
  .print-cell { break-inside: avoid; page-break-inside: avoid; }
  .print-brand { min-height: 22mm; padding: 7mm 14mm; display: flex; align-items: center; gap: 5mm; background: #096cdb; color: #fff; }
  .print-brand img { width: 43mm; height: auto; }
  .print-brand span { border-left: 1px solid #ffffff88; padding-left: 5mm; font-size: 15pt; font-weight: 500; }
  .print-context { display: flex; justify-content: space-between; gap: 5mm; margin: 0 14mm; padding: 5mm 0 4mm; font-size: 9pt; color: #53677d; border-bottom: 1px solid #d7e3f0; }
  .print-cell { padding: 4mm 14mm 0; }
  .print-document .print-title { margin: 1mm 0 2mm; font-size: 20pt; font-weight: 500; }
  .print-document .print-intro { margin-bottom: 1mm; color: #53677d; }
  .print-document .lesson-block { margin: 0; padding: 5mm; border: 1px solid #d7e3f0; border-radius: 3mm; background: #fff; box-shadow: none; break-inside: avoid; }
  .print-document .lesson-block h3 { margin: 0 0 3mm; font-size: 12pt; }
  .print-document .lesson-block > h3:not(:first-child) { margin-top: 4mm; }
  .print-document h4 { margin: 0 0 2mm; font-size: 10.5pt; }
  .print-document p { margin: 0 0 2.5mm; }
  .print-document p:last-child { margin-bottom: 0; }
  .print-document li { margin-bottom: 1.5mm; }
  .print-document .lesson-subsection { margin-top: 4mm; }
  .print-document .fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3mm; }
  .print-document .fact-grid div { padding: 3mm; background: #f4f8fd; }
  .print-document .fact-grid dt { font-size: 8pt; }
  .print-document .fact-grid dd { font-size: 10pt; }
  .print-document .lesson-phase-title { margin-bottom: 3mm; }
  .print-document .lesson-phase-title h3 { margin: 0; }
  .print-document .lesson-phase-title > span { width: 8mm; height: 8mm; font-size: 11pt; background: #096cdb; color: #fff; }
  .print-document .source-insert { margin: 3mm 0; padding: 3mm; background: #eaf3ff; }
  .print-document .source-insert strong { font-size: 12pt; }
  .print-document .source-insert span { font-size: 8pt; }
  .print-document .rule-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3mm; }
  .print-document .follow-up-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 3mm; margin-bottom: 3mm; }
  .print-document .two-column-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5mm; }
  .print-document .rule-grid > div, .print-document .follow-up-grid > div { padding: 3mm; font-size: 9pt; }
  .print-document .card-note { font-size: 9pt; }
  .print-document a { color: inherit; text-decoration: none; }
}

/* Contrast follows each bright phase heading. */
.phase-icon { background: transparent; color: inherit; }
.phase-icon .lucide { width: 28px; height: 28px; }
.overview-lower-grid > .quiet-card { background: #fff; }
.overview-lower-grid h3 { display: flex; align-items: center; gap: 10px; }
.overview-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.overview-icon .lucide { width: 22px; height: 22px; }
.overview-lower-grid .card-title-row { align-items: flex-start; flex-wrap: wrap; }
.goal-icon { background: #0877E8; color: #fff; }
.language-icon { background: #FFD43B; color: #102A43; }
.follow-up-icon { background: #008548; color: #fff; }

/* Keep lesson content and order; make instructions and spoken examples distinct. */
.follow-up-lesson > h3 { display: flex; align-items: center; gap: 12px; }
@media screen {
  .lesson-brief .lesson-block { padding: 28px; margin-bottom: 24px; }
  .lesson-brief .lesson-block > h3 { margin-bottom: 16px; }
  .lesson-brief .lesson-block > p + p { margin-top: 14px; }
  .lesson-brief .lesson-block > p { max-width: 78ch; line-height: 1.7; }
  .lesson-brief .lesson-phase-title { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--opad-border); }
  .lesson-brief .lesson-subsection { padding: 18px 20px; margin-top: 20px; border-left: 3px solid #0877E8; background: #F4F8FD; border-radius: 0 10px 10px 0; }
  .lesson-brief .lesson-subsection h4 { margin-bottom: 12px; }
  .lesson-brief .clean-list { display: grid; gap: 12px; }
  .lesson-brief .clean-list li { margin: 0; line-height: 1.65; }
  .lesson-brief .source-insert { border-left: 4px solid #0877E8; padding: 22px; gap: 12px; margin: 24px 0; background: #EAF3FF; }
  .lesson-brief .source-insert strong { font-size: 1.35rem; line-height: 1.45; }
  .lesson-brief .source-insert small { font-size: 1rem; color: var(--opad-navy); }
  .lesson-brief .follow-up-lesson { background: white; }
  .lesson-brief .follow-up-grid { margin: 24px 0; gap: 16px; }
  .lesson-brief .follow-up-grid > div { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--opad-border); background: #fff; }
  .lesson-brief .follow-up-grid strong { display: block; color: #126ab3; font-size: 1.13rem; line-height: 1.5; }
  .lesson-brief .rule-grid { margin: 24px 0 0; }
  .lesson-brief .rule-grid > div { display: grid; gap: 10px; }
  .lesson-brief .fact-grid { gap: 16px; }
}
@media screen and (max-width: 640px) {
  .lesson-brief .lesson-block { padding: 18px; }
  .lesson-brief .lesson-subsection { padding: 16px; }
  .lesson-brief .source-insert { padding: 18px; }
}

/* Centre the main message independently of expandable support below it. */
.digiboard-content { height: 100%; }
.digiboard-content .board-centered,
.board-preview-content .board-centered { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr); align-content: normal; }
.board-main { grid-row: 2; display: grid; justify-items: center; width: 100%; }
.board-centered > .board-extra,
.board-centered > .board-support-row { grid-row: 3; align-self: start; }
.digiboard-content .board-hero,
.board-preview-content .board-hero { height: 100%; min-height: 0; align-content: center; }
.board-hero > div:last-child { text-align: left; }
.digiboard-content .board-hero .mission-image-wrap { min-height: 0; width: min(100%, calc(100dvh - 230px)); justify-self: center; background: transparent; }
.board-preview-content .board-hero .mission-image-wrap { min-height: 0; width: min(100%, 380px); justify-self: center; background: transparent; }
.board-hero .mission-hero-image { aspect-ratio: 1; height: auto; object-fit: contain; }
@media (min-width: 900px) {
  .board-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 899px) {
  .digiboard-content .board-hero, .board-preview-content .board-hero { height: auto; min-height: 100%; }
  .board-hero > div:last-child { text-align: center; }
  .digiboard-content .board-hero .mission-image-wrap, .board-preview-content .board-hero .mission-image-wrap { width: min(100%, 300px); }
}

@media (min-width: 620px) and (max-width: 899px) {
  .board-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .board-hero > div:last-child { text-align: left; }
}

/* Give the core question air; keep replies beside the listening prompt. */
.board-need .board-main { row-gap: 16px; }
.board-need .board-kicker { margin: 0; }
.board-need .board-main .board-phrase { margin: 8px 0; }
.board-need .board-main .phrase-audio { margin: 0; }
.board-need > .board-extra { margin-top: 28px; }
.board-happen .board-main { gap: 24px; }
.board-happen .board-kicker { margin: 0; }
.board-happen .board-support-row > details { padding: 16px; border: 1px solid var(--opad-border); border-radius: 12px; background: white; margin: 0; text-align: left; }
.board-happen .board-support-row summary { min-height: 32px; }
.board-happen .board-extra .board-word-row { margin-top: 12px; justify-content: flex-start; }
.board-happen .board-follow-up-grid { gap: 12px; }
.board-happen .board-follow-up-grid > div { background: #F4F8FD; }
.board-happen .board-follow-up-grid strong { font-size: clamp(21px, 1.7vw, 28px); margin: 8px 0; }
@media (min-width: 900px) {
  .board-happen { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); column-gap: 36px; }
  .board-happen .board-main { grid-column: 1; }
  .board-centered.board-happen > .board-support-row { grid-column: 2; grid-row: 1 / -1; grid-template-columns: 1fr; align-self: center; gap: 16px; margin: 0; }
  .board-preview-content:has(.board-happen) .board-follow-up-grid strong { font-size: 21px; }
}
.board-happen .phrase-audio { margin: 0; }
.board-happen .board-support-row > .board-extra { padding: 12px 16px; }
.board-happen .board-extra summary { min-height: 22px; }
.board-happen .board-extra .board-word-row { margin-top: 8px; }
.digiboard-content .board-happen .board-extra .board-word-row span { font-size: 28px; padding: 6px 16px; }
@media (min-width: 900px) {
  .board-centered.board-happen > .board-support-row { align-self: safe center; gap: 12px; }
  .board-preview-content { height: clamp(560px, 68vh, 680px); }
}

/* One shared rhythm player; projection changes scale, never the sentence position. */
.rhythm-player { margin: 24px 0; padding: 24px; border: 1px solid var(--opad-border); border-radius: 12px; background: white; }
.rhythm-heading, .rhythm-controls, .rhythm-choices, .rhythm-versions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rhythm-heading { justify-content: space-between; }
.rhythm-heading h3 { margin: 0; }
.rhythm-intro { margin: 12px 0 20px; min-height: 3em; }
.rhythm-versions { margin-bottom: 12px; }
.rhythm-player [hidden] { display: none !important; }
.rhythm-choices button[aria-pressed="true"], .rhythm-versions button[aria-pressed="true"] { background: #126ab3; border-color: #126ab3; color: white; }
.rhythm-cue { display: grid; grid-template-rows: 32px 1fr; align-items: center; text-align: center; height: 220px; padding: 20px; margin: 20px 0; background: #EAF3FF; border-radius: 12px; }
.rhythm-phase { justify-self: center; font-size: 16px; font-weight: 500; color: #102A43; }
.rhythm-sentence { margin: 0; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.rhythm-duration { color: #486078; font-size: 14px; }
.rhythm-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; }
.rhythm-dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: white; color: #102A43; }
.rhythm-dialog::backdrop { background: #102A43; }
.rhythm-dialog .rhythm-player { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; gap: 20px; height: 100%; min-height: 540px; margin: 0; padding: 28px 40px; border: 0; border-radius: 0; }
.rhythm-dialog .rhythm-intro { display: none; }
.rhythm-dialog .rhythm-choices, .rhythm-dialog .rhythm-controls, .rhythm-dialog .rhythm-versions { justify-content: center; }
.rhythm-dialog .rhythm-cue { height: 100%; min-height: 0; margin: 0; grid-template-rows: 40px 1fr; padding: 24px; }
.rhythm-dialog .rhythm-sentence { font-size: clamp(36px, 5.2vw, 80px); max-width: 1100px; justify-self: center; }
.rhythm-dialog .rhythm-phase { font-size: 24px; }
.rhythm-dialog .rhythm-status { margin: 0; text-align: center; }
@media (max-width: 620px) {
  .rhythm-player { padding: 16px; }
  .rhythm-dialog .rhythm-player { padding: 16px; gap: 12px; min-height: 650px; }
  .rhythm-dialog .rhythm-sentence { font-size: 32px; }
}

.rhythm-cue-heading { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.rhythm-role { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; width: 155px; min-height: 36px; padding: 6px 10px; border-radius: 6px; background: #126ab3; color: white; font-size: 15px; font-weight: 500; }
.rhythm-role[data-role="cursist"] { color: #102A43; background: #FFD43B; }
.rhythm-part { justify-self: end; font-size: 14px; color: #486078; }
.rhythm-dialog .rhythm-versions { margin: 0; }
@media (max-width: 620px) {
  .rhythm-cue { padding: 14px; grid-template-rows: 62px 1fr; }
  .rhythm-cue-heading { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rhythm-role { width: 140px; }
  .rhythm-phase { justify-self: end; }
  .rhythm-part { grid-column: 1/-1; justify-self: center; }
  .rhythm-dialog .rhythm-cue { padding: 14px; grid-template-rows: 70px 1fr; }
  .rhythm-dialog .rhythm-phase { font-size: 18px; }
  .rhythm-dialog .rhythm-player { min-height: 700px; }
}

/* A fixed gesture beneath the chosen syllable; no moving or bouncing text. */
.rhythm-motion-choice { display:flex;align-items:center;gap:8px;font-size:14px; }
.rhythm-motion-choice select { max-width:190px;min-height:44px;padding:8px 28px 8px 12px;border:1px solid #c4d4e2;border-radius:6px;background:white;color:#102A43;font:inherit; }
.rhythm-motion-choice select:focus-visible { outline:3px solid #0877E8;outline-offset:2px; }
.rhythm-cue { height:300px;grid-template-rows:36px minmax(0,1fr) 44px; }
.rhythm-sentence { padding-bottom:0; min-height:0; max-height:100%; max-width:100%; overflow-y:auto; }
.rhythm-word { display:inline-block;white-space:nowrap;padding-bottom:82px; }
.rhythm-accent { position:relative;font:inherit;text-transform:uppercase;font-weight:600; }
.rhythm-with-movement .rhythm-accent { color:#126ab3; }
.rhythm-motion-icon { position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%);width:72px;height:72px;background:var(--rhythm-motion) center/contain no-repeat;visibility:hidden; }
.rhythm-with-movement .rhythm-motion-icon { visibility:visible; }
.rhythm-motion-instruction { margin:0;font-size:15px;line-height:1.4;color:#102A43; }
.rhythm-dialog .rhythm-cue { grid-template-rows:40px minmax(0,1fr) 44px; }
.rhythm-dialog .rhythm-motion-icon { width:96px;height:96px; }
.rhythm-dialog .rhythm-sentence { padding-bottom:0; }
.rhythm-dialog .rhythm-word { padding-bottom:106px; }
.rhythm-dialog .rhythm-motion-instruction { font-size:22px; }
@media(max-width:620px) {
 .rhythm-cue { height:360px;grid-template-rows:62px minmax(0,1fr) 44px; }
 .rhythm-dialog .rhythm-cue { grid-template-rows:70px minmax(0,1fr) 50px; }
 .rhythm-dialog .rhythm-motion-instruction { font-size:18px; }
}

/* Reserve the same stage for every sentence in a mixed round. */
.rhythm-mixed .rhythm-cue { height:400px; grid-template-rows:36px minmax(0,1fr) 60px; }
.rhythm-dialog .rhythm-mixed { grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto; gap:12px; }
.rhythm-dialog .rhythm-mixed .rhythm-cue { height:100%; grid-template-rows:40px minmax(0,1fr) 54px; }
.rhythm-dialog .motion-legend { margin:0; }
.rhythm-dialog .rhythm-mixed .rhythm-motion-instruction { font-size:17px; }
@media(max-width:620px) {
 .rhythm-mixed .rhythm-cue { height:470px; grid-template-rows:62px minmax(0,1fr) 80px; }
 .rhythm-dialog .rhythm-mixed { min-height:850px; }
 .rhythm-dialog .rhythm-mixed .rhythm-cue { grid-template-rows:70px minmax(0,1fr) 76px; }
}
/* Leave room for the source credit on shorter desktop screens. */
@media (min-width:900px) and (max-height:820px) {
  body[data-page="home"] .teacher-home-hero { height:310px; }
}

.rhythm-subtitle { margin:4px 0 0; font-size:17px; font-weight:400; color:#486078; }
.rhythm-choice-label { width:78px; flex-shrink:0; font-size:14px; color:#486078; }
.rhythm-movements { display:flex; flex-wrap:wrap; align-items:center; gap:12px 24px; margin-top:12px; }
.rhythm-hug-choice { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:14px; cursor:pointer; }
.rhythm-hug-choice input { width:18px; height:18px; accent-color:#126ab3; }
.rhythm-finish-line { display:block; }
.rhythm-finish-hug { display:block; width:120px; height:120px; object-fit:contain; margin:12px auto 0; }
.rhythm-dialog .rhythm-player { grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto; gap:10px; }
.rhythm-dialog .rhythm-mixed { grid-template-rows:auto auto auto auto auto minmax(0,1fr) auto auto; }
.rhythm-dialog .rhythm-movements { justify-content:center; margin:0; }
.rhythm-dialog .rhythm-subtitle { font-size:16px; }
.rhythm-dialog .rhythm-motion-instruction { font-size:17px; }
.rhythm-dialog .rhythm-finish-hug { width:120px; height:120px; }
@media(max-width:620px) {
 .rhythm-choice-label { width:100%; }
 .rhythm-dialog .rhythm-player { min-height:950px; }
 .rhythm-dialog .rhythm-mixed { min-height:1100px; }
}

/* Separate the situation from the words the learner can say. */
.follow-up-prompt { min-width: 0; }
.follow-up-summary .follow-up-prompt + .follow-up-prompt { margin-top: 18px; }
.follow-up-prompt .follow-up-situation { margin: 0 0 10px; color: var(--opad-muted); font-size: 14px; font-weight: 400; line-height: 1.45; }
.follow-up-speech { padding: 12px 14px; border-radius: 7px; background: #eaf5ff; color: #102a43; }
.follow-up-speech .follow-up-speaker { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; color: #126ab3; font-size: 13px; font-weight: 500; }
.follow-up-speaker .lucide { width: 17px; height: 17px; flex-shrink: 0; }
.follow-up-speech .follow-up-phrase { display: block; margin: 0; color: #102a43; font-size: clamp(20px, 1.7vw, 28px); font-weight: 500; line-height: 1.35; }
.follow-up-speech .phrase-audio { margin-top: 8px; }
.board-happen .board-support-row > .board-follow-up { padding: 12px 16px; }
.board-happen .board-follow-up-grid { margin-top: 8px; }
.board-follow-up-grid > .follow-up-prompt { padding: 8px 10px; }
.board-follow-up-grid .follow-up-situation { margin-bottom: 6px; font-size: 14px; }
.board-follow-up-grid .follow-up-speech { padding: 8px 10px; }
.board-happen .follow-up-speech .follow-up-phrase { margin: 0 0 6px; }
.board-happen .follow-up-speech .phrase-audio { margin: 0; }
@media print {
  .follow-up-prompt { break-inside: avoid; }
  .follow-up-prompt .follow-up-situation { font-size: 9pt; }
  .follow-up-speech .follow-up-phrase { font-size: 12pt; }
}

/* One compact player bar; names remain available to assistive technology. */
.rhythm-controls { display: block; width: 100%; max-width: 980px; margin-inline: auto; }
.rhythm-transport { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; padding: 6px; border: 1px solid #e2eaf1; border-radius: 8px; background: #fbfdff; min-width: 0; }
.rhythm-transport .button { width: 44px; height: 44px; flex: 0 0 44px; padding: 10px; border-color: transparent; background: transparent; color: #173752; }
.rhythm-transport .rhythm-play { color: #126ab3; background: white; border-color: #d7e4ee; }
.rhythm-player .lucide { width: 18px; height: 18px; min-width: 18px; stroke-width: 1.7; flex-shrink: 0; }
.rhythm-progress { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 24px; }
.rhythm-progress input { width: 100%; flex: 1; }
.rhythm-duration { color: #5c7386; font-variant-numeric: tabular-nums; font-size: 12px; text-align: center; white-space: nowrap; }
.rhythm-volume { display: flex; align-items: center; gap: 4px; }
.rhythm-volume input { width: 64px; }
.rhythm-controls input[type="range"] { appearance: none; background: transparent; accent-color: #126ab3; min-width: 0; height: 44px; margin: 0; cursor: pointer; }
.rhythm-controls input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: #7a93a6; }
.rhythm-controls input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: #7a93a6; }
.rhythm-controls input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4.5px; border: 1.5px solid #126ab3; border-radius: 50%; background: white; }
.rhythm-controls input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 11px; height: 11px; border: 1.5px solid #126ab3; border-radius: 50%; background: white; }
.rhythm-transport .button { transition: none; }
.rhythm-transport .button:hover { filter: none; background: #eef5fa; }
.rhythm-controls input[type="range"]:focus-visible { outline: 2px solid #126ab3; outline-offset: 2px; border-radius: 6px; }
.rhythm-tempos { display: flex; align-items: center; flex: 0 0 auto; gap: 2px; }
.rhythm-tempos button[aria-pressed="true"] { background: #e7f3fe; border-color: #b9d5e9; color: #126ab3; }
.rhythm-dialog .rhythm-controls { justify-self: center; }
@media (max-width: 760px) {
  .rhythm-duration, .rhythm-volume input { display: none; }
  .rhythm-transport { gap: 2px; padding: 4px; flex-wrap: wrap; }
  .rhythm-tempos { gap: 0; flex-basis: 100%; justify-content: center; }
  .rhythm-transport .button { width: 44px; flex-basis: 44px; padding: 10px; }
  .rhythm-transport .rhythm-play { width: 44px; flex-basis: 44px; }
  .rhythm-progress { gap: 0; }
}

@media (min-width: 900px) and (max-height: 800px) {
  .rhythm-dialog .rhythm-player { padding: 16px 28px; gap: 8px; }
  .rhythm-dialog .rhythm-cue { padding: 16px; }
}

/* Keep manual stepping inside the existing sentence panel. */
.rhythm-cue { position: relative; cursor: pointer; }
.rhythm-cue .rhythm-next { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; padding: 12px; }
.rhythm-cue .rhythm-motion-instruction { padding-inline: 48px; }
.rhythm-next .lucide { width: 18px; height: 18px; }

/* Source annotations preserve complete words and count movements below them. */
.motion-counted{display:inline-flex;flex-direction:column;align-items:center;vertical-align:top}.motion-count-icons{display:flex;justify-content:center;gap:2px}.motion-count-icons img{width:clamp(24px,3vw,48px);height:auto}

/* Keep the central header visible above the lesson, including fullscreen. */
@media(min-width:900px) and (min-height:600px){body[data-page="digiboard"] .digiboard-shell{height:calc(100dvh - 60px)}}

@media(min-width:900px) and (min-height:600px){body[data-page="digiboard"] .digiboard-content{padding-block:0}body[data-page="digiboard"] .digiboard-topbar{padding-block:2px}}

/* Keep the central brand and settings on one row, also on phones. */
.teacher-header{height:60px;min-height:60px;max-height:60px}
.teacher-header .teacher-header-inner{height:58px;min-height:58px;flex-wrap:nowrap;padding-block:0}
.teacher-header .teacher-global-nav{width:auto;flex:none;order:0;border-top:0;padding-top:0}
.teacher-header .teacher-global-nav button{width:44px;min-width:44px;height:44px;flex:none;padding:8px}
