:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2a2520;
  background: #faf6ed;
  font-synthesis: none;
  --green: #4d6242;
  --border: #d9d1c2;
  --muted: #665c50;
  --paper: #fffefa;
  --soft: #dde6d6;
}


.immersive-roster [aria-pressed="true"], .immersive-toolbar [aria-pressed="true"] { background:var(--green); color:#fff; border-color:var(--green); }
#immersive-host[hidden] { display:none; }
.immersive-room { border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--paper); margin-bottom:20px; }
.immersive-toolbar { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
.immersive-toolbar strong { font-family:Georgia,serif; font-size:22px; display:block; margin-bottom:5px; }
.immersive-toolbar .muted { font-size:12px; }
.immersive-toolbar .actions { gap:6px; margin:0; }
.immersive-toolbar button { padding:8px 11px; }
.immersive-viewport { height:clamp(320px,46vw,560px); width:100%; background:#ede6d7; position:relative; }
.immersive-viewport canvas { display:block; width:100%; height:100%; touch-action:none; }
.immersive-viewport canvas:focus-visible { outline:3px solid #ae762a; outline-offset:-5px; }
.immersive-roster { display:flex; gap:6px; padding:12px 16px; flex-wrap:wrap; border-top:1px solid var(--border); }
.immersive-roster button { flex:1; min-width:65px; padding:8px; }
.immersive-caption { white-space:pre-line; padding:16px 20px; min-height:76px; background:#edf1e8; border-block:1px solid var(--border); line-height:1.6; font-size:15px; }
.immersive-voice-replays { display:flex; gap:8px; padding:10px 16px; flex-wrap:wrap; }
.immersive-voice-replays:empty { display:none; }
.immersive-footer { display:flex; gap:12px 20px; padding:12px 16px; align-items:center; flex-wrap:wrap; font-size:13px; color:var(--muted); }
.immersive-footer label { min-height:32px; display:flex; align-items:center; gap:6px; cursor:pointer; }
.immersive-footer span { flex-basis:100%; font-size:12px; }
.immersive-measurements { padding:0 16px 12px; font-size:13px; }
.immersive-measurements summary { padding-block:8px; }
.classroom-tools .teacher-console .card-head { display:block; margin-bottom:12px; }
.classroom-tools .teacher-console .card-head h2 { margin-bottom:12px; font-size:24px; }
.classroom-tools .teacher-console label { width:100%; }
.classroom-tools .teacher-console .actions { align-items:stretch; }
.classroom-tools .teacher-console .actions button { flex:1 1 100%; }
.classroom-tools .teacher-console { padding:20px; }
@media(min-width:1150px) { .classroom-layout:has(.immersive-room) { grid-template-columns:minmax(0,1fr) 280px; } }
@media(max-width:650px) { .immersive-toolbar { padding:12px; }.immersive-toolbar .actions { width:100%; }.immersive-toolbar button { flex:1; }.immersive-viewport { height:340px; }.immersive-caption { padding:14px; }.immersive-roster { padding:10px; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--paper);
  border-radius: 9px;
  padding: 10px 16px;
  color: #2a2520;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: #f1f4ee;
}
button.primary,
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
button.danger {
  color: #983b32;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #ae762a;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  min-width: 0;
  border-right: 1px solid var(--border);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  position: sticky;
  top: 0;
  height: 100vh;
  background: #f3ede2;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 39px;
  height: 57px;
  object-fit: contain;
}
.brand strong {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 28px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.4px;
  font-family: system-ui;
  margin-top: 3px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  font-weight: 500;
  padding: 12px;
}
.sidebar nav button.active {
  background: var(--soft);
  font-weight: 650;
  color: #263a21;
}
.sidebar footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.main-wrap {
  padding: 0 44px 55px;
  max-width: 1360px;
  width: 100%;
  margin: auto;
  align-self: start;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.topbar .actions {
  flex-wrap: wrap;
}
.topbar button {
  padding: 6px 10px;
  min-height: 36px;
  background: transparent;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 12px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -1.3px;
}
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 27px;
  margin: 0 0 16px;
}
h3 {
  font-size: 17px;
  margin: 0 0 10px;
}
p {
  line-height: 1.65;
}
.intro {
  padding: 42px 0 26px;
}
.intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  margin: 0 0 22px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(235px, 1fr);
  gap: 22px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 25px;
  margin-bottom: 22px;
  min-width: 0;
}
.card.green {
  background: var(--soft);
  border-color: transparent;
}
.card p:last-child {
  margin-bottom: 0;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 650;
  border-radius: 30px;
  padding: 6px 10px;
  background: #f3ede2;
  color: #615447;
  white-space: nowrap;
}
.badge.green {
  background: var(--soft);
  color: #304a29;
}
.badge.amber {
  background: #fbeec1;
  color: #735015;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.card-head h2 {
  margin: 0;
}
.empty {
  padding: 38px 24px;
  text-align: center;
  border: 1px dashed #bfb4a0;
  border-radius: 12px;
  color: var(--muted);
}
.rows {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.row:last-child {
  border: 0;
}
.row-title {
  background: none;
  border: 0;
  padding: 0;
  min-height: 30px;
  text-align: left;
  justify-content: flex-start;
  font-size: 16px;
}
.row-title:hover {
  background: none;
  text-decoration: underline;
}
.row p {
  margin: 4px 0 0;
}
.notice {
  background: #fff0c9;
  border: 1px solid #ead093;
  color: #684d14;
  border-radius: 9px;
  padding: 14px 17px;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.error {
  background: #fff0ed;
  border-color: #e9b7ae;
  color: #8c3027;
}
.success {
  background: #e5efdf;
  border-color: #b6caa9;
  color: #294322;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  align-content: start;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  color: #2a2520;
  min-height: 44px;
  font-size: 14px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 88px;
}
input[type="checkbox"] {
  width: 19px;
  min-height: 19px;
  accent-color: var(--green);
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}
.check input {
  flex-shrink: 0;
  margin-top: 3px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 25px;
  overflow-x: auto;
}
.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 13px 18px;
  white-space: nowrap;
}
.tabs button.active {
  border-bottom-color: var(--green);
  color: var(--green);
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 25px;
}
.lesson-aside .card {
  padding: 18px;
  font-size: 13px;
}
.step {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 25px;
}
.step-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 95px;
  gap: 15px;
  margin-bottom: 16px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.profile {
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
  margin: 12px 0;
  background: white;
}
.profile strong {
  display: block;
  margin-bottom: 5px;
}
.profile span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.transcript {
  border-left: 3px solid #b9cbae;
  padding-left: 17px;
  margin: 22px 0;
}
.bubble {
  padding: 13px 17px;
  background: #f3ede2;
  border-radius: 9px;
  margin: 9px 0;
  font-size: 14px;
  line-height: 1.6;
}
.bubble.teacher {
  background: #e9f0e2;
}
.bubble b {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 5px;
}
.proposal {
  border-left: 4px solid var(--green);
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 60px;
  display: flex;
  flex-direction: column;
  background: #dde6d6;
}
.auth-story .brand {
  margin-bottom: 80px;
}
.auth-story h1 {
  max-width: 440px;
  font-size: 54px;
}
.auth-story p {
  max-width: 440px;
  color: #405536;
}
.auth-form {
  padding: 60px 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-inner {
  width: 100%;
  max-width: 420px;
}
.auth-inner .field {
  margin: 17px 0;
}
.auth-inner .actions {
  margin-top: 22px;
}
.auth-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 25px;
}
.auth-inner h1 {
  font-size: 35px;
}
.auth-inner input[type="hidden"] {
  display: none;
}
.present {
  max-width: 1000px;
  margin: auto;
  padding: 30px;
}
.present-stage {
  min-height: 400px;
  padding: 55px;
  border-radius: 18px;
  background: #fffefa;
  border: 1px solid var(--border);
  margin: 25px 0;
}
.present-stage h1 {
  font-size: 49px;
}
.present-stage p {
  font-size: 25px;
  line-height: 1.6;
}
.present-stage .muted {
  font-size: 16px;
}
.present-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.present .teacher-notes {
  background: #f3ede2;
}
.week-number {
  font-size: 12px;
  font-weight: bold;
  color: var(--green);
  letter-spacing: 1px;
}
.list {
  line-height: 1.8;
  padding-left: 20px;
}
.inline-status {
  font-size: 12px;
  color: var(--muted);
}
.review-panel {
  max-height: 500px;
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.mobile-menu {
  display: none;
}
.print-only {
  display: none;
}
@media (max-width: 1100px) {
  .main-wrap {
    padding: 0 25px 35px;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .split {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 15px 18px;
    gap: 15px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .brand img {
    height: 40px;
    width: 30px;
  }
  .brand strong {
    font-size: 24px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar nav button {
    white-space: nowrap;
    padding: 8px 12px;
    min-height: 38px;
  }
  .sidebar footer {
    display: none;
  }
  .main-wrap {
    padding: 0 18px 30px;
  }
  .topbar {
    padding: 13px 0;
    align-items: flex-start;
  }
  .topbar > span {
    max-width: 45%;
  }
  h1 {
    font-size: 34px;
  }
  .intro {
    padding-top: 28px;
  }
  .split,
  .form-grid,
  .two-col,
  .lesson-aside {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .row {
    padding: 17px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .row .actions {
    width: 100%;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px;
  }
  .auth-story .brand {
    margin-bottom: 25px;
  }
  .auth-story h1 {
    font-size: 34px;
    margin-bottom: 0;
  }
  .auth-story p {
    display: none;
  }
  .auth-form {
    padding: 30px 22px;
  }
  .present {
    padding: 18px;
  }
  .present-stage {
    padding: 25px;
    min-height: 350px;
  }
  .present-stage h1 {
    font-size: 35px;
  }
  .present-stage p {
    font-size: 21px;
  }
  .present-controls {
    flex-wrap: wrap;
  }
  .card-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .tabs button {
    padding: 12px;
  }
  .field.full {
    grid-column: auto;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .tabs,
  .actions,
  button,
  .lesson-aside,
  .notice,
  .skip {
    display: none !important;
  }
  .shell,
  .main-wrap,
  .lesson-layout {
    display: block;
    padding: 0;
    max-width: none;
  }
  .card {
    border: 0;
    padding: 10px 0;
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
  input,
  textarea,
  select {
    border: 0;
    padding: 0;
    resize: none;
    color: black;
  }
  .field {
    margin: 7px 0;
  }
  .step {
    break-inside: avoid;
  }
  .intro {
    padding: 10px 0;
  }
  h1 {
    font-size: 28px;
  }
}

.auth-inner form > button {
  margin: 4px 8px 4px 0;
}
.profile-welcome {
  margin-bottom: 28px;
  border-left: 4px solid var(--green);
}
.field small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: normal;
}
#teaching-profile > .card {
  margin-bottom: 24px;
}
.classroom-setup {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: start;
}
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.challenge-grid .profile {
  margin: 0;
  align-items: flex-start;
}
.challenge-grid input {
  flex: none;
  margin-top: 5px;
}
.classroom-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.classroom-intro h1 {
  font-size: 36px;
}
.classroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 24px;
  align-items: start;
}
.classroom-board {
  background: #344c40;
  color: #fffdf4;
  border: 8px solid #cbb898;
  border-radius: 14px;
  padding: 25px 30px;
  min-height: 135px;
  box-shadow: 0 5px 0 #e6ddcd;
  margin-bottom: 24px;
}
.classroom-board .eyebrow {
  color: #c1d7be;
}
.classroom-board > p:last-child {
  font-size: 21px;
  line-height: 1.5;
  margin-bottom: 0;
  white-space: pre-wrap;
}























.pupil-name {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.pupil-name h2 {
  font-size: 23px;
  margin: 0;
}
.pupil-name button,
.listen {
  padding: 5px 9px;
  min-height: 32px;
  font-size: 11px;
}
.pupil-state {
  font-size: 11px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  color: var(--muted);
  margin: 10px 0 5px;
}
.pupil-action {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0;
}
.pupil-caption {
  font-size: 14px;
  line-height: 1.5;
  background: #f3ede2;
  padding: 10px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.classroom-observation {
  padding: 15px 2px;
  font-size: 14px;
  color: var(--muted);
}
.teacher-console {
  margin-bottom: 24px;
}
.teacher-console .card-head {
  align-items: center;
}
.teacher-console .card-head .field {
  max-width: 180px;
}
.classroom-tools .card {
  padding: 20px;
  margin-bottom: 20px;
}
.classroom-tools h2 {
  font-size: 25px;
}
.classroom-tools p {
  font-size: 13px;
  line-height: 1.6;
}
.practice-controls {
  display: grid;
  gap: 10px;
}
.classroom-transcript {
  margin-top: 28px;
}
.exchange {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 25px;
}
.exchange p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.coach-panel {
  border-left: 4px solid var(--green);
}
.coach-evidence {
  padding: 15px;
  background: #f6f0e5;
  border-radius: 10px;
  margin: 12px 0;
}
.coach-evidence blockquote {
  margin: 10px 0;
  font-style: italic;
}
.coach-evidence a {
  font-size: 12px;
}
@media (max-width: 1200px) {
  .classroom-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .classroom-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .classroom-intro {
    display: block;
  }
}
@media (max-width: 760px) {
  .classroom-setup,
  .challenge-grid,
  .classroom-tools {
    grid-template-columns: minmax(0, 1fr);
  }



  .classroom-board {
    padding: 18px;
    border-width: 6px;
  }
  .classroom-intro h1 {
    font-size: 30px;
  }

  .pupil-name {
    display: block;
  }
  .pupil-name button {
    margin-top: 6px;
  }
}
.scenario-pupils { grid-template-columns: minmax(0, 1fr); }
.lesson-moment { border-left: 4px solid var(--green); }
.lesson-moment .card-head { flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.lesson-moment .card-head h2 { font-size: 26px; }
.lesson-moment .badge { white-space: normal; }
.lesson-moment .lesson-question { padding: 12px 14px; border-radius: 8px; background: var(--soft); }
.lesson-moment .lesson-signals-summary { margin-bottom: 0; }
.pupil-signal { display: grid; gap: 7px; margin-top: 10px; }
.pupil-signal:empty { display: none; }
.pupil-signal .badge { justify-self: start; white-space: normal; }
.pupil-signal .muted { font-size: 12px; }
.realism-feedback { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.realism-feedback form { max-width: 720px; }
.realism-feedback fieldset { border: 0; padding: 0; min-width: 0; }
.classroom-board .muted { color: #e4e8df; }

#scenario-followup fieldset { border: 0; padding: 0; min-width: 0; }
#scenario-followup .check { margin: .8rem 0; align-items: flex-start; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.scenario-stages { margin-bottom: 1.25rem; }
.scenario-stages a { padding: .4rem 0; }
#teacher-turn, #scenario-followup, #practice-feedback, #practice-transcript { scroll-margin-top: 1rem; }

.learning-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(255px, 1fr);
  align-items: start;
  gap: 24px;
}
.review-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.review-choices .card { display: flex; flex-direction: column; align-items: start; }
.review-choices .card button { margin-top: auto; }
.learning-layout > *, .learning-layout .field, .review-choices > * { min-width: 0; }
.library-search { max-width: 440px; }
input[type="file"] { max-width: 100%; padding: 12px; font-size: 14px; }
input[type="file"]::file-selector-button { background: var(--soft); border: 0; border-radius: 5px; padding: 9px; margin: 0 10px 5px 0; color: #304a29; cursor: pointer; }
.extracted-content { max-height: 660px; overflow: auto; padding: 18px; background: #f8f4eb; border: 1px solid var(--border); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 system-ui, sans-serif; tab-size: 4; }
.file-checksum { display: block; overflow-wrap: anywhere; font-size: 12px; margin: 12px 0 20px; }
.material-options { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.material-options legend { margin-bottom: 12px; font-weight: 600; }
.material-options .check, .learning-layout .check { align-items: start; margin: 14px 0; }
.learning-layout .check input { margin-top: 5px; flex-shrink: 0; }
.voice-controls { margin: -4px 0 24px; }
.voice-controls span { flex: 1 1 200px; }
.review-save { padding: 0 0 20px; }
.feedback-items blockquote { margin: 0 0 16px; padding: 14px 18px; background: #f4f0e6; border-left: 3px solid var(--green); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.feedback-items .card-head { align-items: start; flex-wrap: wrap; }
.feedback-items h3 { margin-bottom: 0; }
@media (max-width: 1100px) {
  .learning-layout { grid-template-columns: minmax(0, 1fr); }
  #review-form .learning-layout > aside { grid-row: 1; }
  #review-form .learning-layout > aside .card { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .review-choices { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .extracted-content { max-height: 480px; padding: 12px; }
  .feedback-items .badge { white-space: normal; }
}
@media print {
  .learning-layout { display: block; }
  .review-actions-card, .review-save, .voice-controls, #print-review, #edit-review, #delete-review, [data-learning-path] { display: none !important; }
  .extracted-content { max-height: none; overflow: visible; }
  .feedback-items .card { break-inside: avoid; }
  .learning-layout aside .notice { display: block !important; }
}
.rtx-viewport{position:relative;overflow:hidden;background:#2e3732}
.rtx-video{position:absolute;inset:0;width:100%;height:100%}
.rtx-video video{width:100%!important;height:100%!important;object-fit:contain}
.rtx-connection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;font-size:12px;color:var(--muted)}
.rtx-shell .immersive-loading{position:absolute;inset:0;display:grid;place-items:center;background:#eee9df;color:#405346;z-index:2}
.rtx-shell .immersive-loading[hidden]{display:none}
.encounter-panel{border:1px solid var(--line,#d9dfd6);border-radius:14px;background:#edf1e6;padding:20px;margin-bottom:20px}
.encounter-panel h2{margin:5px 0 12px}.encounter-steps{display:flex;flex-wrap:wrap;gap:10px 24px;padding:0;list-style:none;font-size:.85rem}
.encounter-steps li{color:#647168;border-bottom:2px solid transparent;padding-bottom:5px}.encounter-steps [aria-current=true]{color:#173d32;border-color:#173d32;font-weight:700}
.encounter-delivery{max-width:260px;margin-top:16px}.encounter-panel .muted{font-size:.8rem;line-height:1.5}
/* The class frame owns the viewport. Changing captions and opening tools never
   contributes document height or moves the teacher's camera. One bar at the
   bottom (the say bar), a floor pill top-left, a step pill bottom-left; every
   other control sits behind the say bar's Menu button or the Escape pause sheet. */
body.classroom-playing { overflow:hidden; }
.classroom-playing .sidebar, .classroom-playing .topbar { display:none; }
.classroom-playing .shell, .classroom-playing .main-wrap, .classroom-playing #main { display:block; margin:0; padding:0; width:100%; max-width:none; }
.classroom-player { position:fixed; inset:0; height:100dvh; overflow:hidden; background:#ede6d7; isolation:isolate; --chrome:rgba(250,248,241,.9); --ink-hud:#26302b; --bar:rgba(22,30,26,.8); --bar-ink:#fdfbf4; --bar-muted:#c7d3ca; --edge:max(10px,env(safe-area-inset-bottom)); }
.player-stage { position:absolute; inset:0; overflow:hidden; }
.player-stage #immersive-host, .player-stage .immersive-room { height:100%; width:100%; margin:0; border:0; border-radius:0; }
.player-stage .immersive-viewport, .player-stage .rtx-viewport { position:absolute; inset:0; height:100%; width:100%; }
/* The room holds the keyboard most of the time now; its focus ring stays for
   keyboard users but is a quiet inner line rather than a frame round the world. */
.player-stage .immersive-viewport canvas:focus-visible, .player-stage .rtx-viewport:focus-visible { outline:2px solid rgba(174,118,42,.5); outline-offset:-2px; }
/* One thin strip: the title and Pause, 36 px tall, one row at every width. After
   three seconds without the pointer near the top it fades to a quieter line (same
   height, same type); hover or focus brings it back. In full screen or pointer
   lock it slides away entirely. Everything else lives in the Menu sheet. */
.player-topbar { position:absolute; inset:0 0 auto; z-index:5; display:flex; align-items:center; gap:10px; height:36px; padding:0 10px; background:var(--chrome); border-bottom:1px solid rgba(217,209,194,.7); backdrop-filter:blur(6px); transition:transform .25s ease, background-color .2s ease; }
.player-heading { min-width:0; flex:1 1 auto; display:flex; align-items:baseline; gap:10px; }
.player-heading h1 { font-family:system-ui,-apple-system,"Segoe UI",sans-serif; font-size:13px; font-weight:600; letter-spacing:0; line-height:1.3; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; overflow-wrap:normal; }
.player-status { display:block; font-size:11px; color:var(--muted); white-space:nowrap; }
.player-transport { display:flex; flex:0 0 auto; gap:6px; }
.player-topbar button { min-height:28px; padding:2px 10px; font-size:12px; white-space:nowrap; }
.classroom-player.chrome-idle .player-topbar:not(:hover):not(:focus-within) { background:rgba(250,248,241,.55); border-bottom-color:transparent; backdrop-filter:none; }
.classroom-player.chrome-idle .player-topbar:not(:hover):not(:focus-within) h1 { color:var(--ink-hud); opacity:.85; }
.classroom-player.chrome-idle .player-topbar:not(:hover):not(:focus-within) .player-status { display:none; }
.classroom-player.chrome-idle .player-topbar:not(:hover):not(:focus-within) #toggle-pause { background:transparent; border-color:transparent; color:var(--ink-hud); }
.classroom-player.chrome-hidden .player-topbar { transform:translateY(calc(-100% + 6px)); }
.classroom-player.chrome-hidden .player-topbar:hover, .classroom-player.chrome-hidden .player-topbar:focus-within { transform:none; }
/* Menu sheet: the panel buttons, shown by the say bar's Menu button (or M). */
.player-dock { position:absolute; z-index:7; right:12px; bottom:calc(var(--edge) + 58px); display:flex; flex-direction:column; gap:4px; padding:6px; width:min(240px,calc(100% - 24px)); max-height:calc(100dvh - 120px); overflow:auto; overscroll-behavior:contain; border:1px solid rgba(217,209,194,.7); border-radius:14px; background:var(--chrome); box-shadow:0 12px 40px #24392f33; backdrop-filter:blur(8px); }
.player-dock[hidden] { display:none !important; }
.player-dock button { flex-shrink:0; min-height:38px; padding:6px 12px; font-size:13px; white-space:nowrap; text-align:left; }
.player-dock [data-player-panel=respond] { background:var(--green); color:white; }
.player-dock .player-dock-secondary { min-height:34px; font-size:12px; color:var(--muted); }
.player-dock [data-player-fullscreen] { margin-top:6px; }
.player-messages { position:absolute; z-index:8; top:44px; left:50%; transform:translateX(-50%); width:min(580px,calc(100% - 32px)); pointer-events:none; }
.player-messages:empty, .player-messages #message:empty { display:none; }
.player-messages .notice { pointer-events:auto; max-height:150px; overflow:auto; }
/* The one-time hint sits just above the say bar, never over the room's ceiling,
   and goes once the bar is in use. */
.player-hint { position:absolute; z-index:6; top:auto; bottom:calc(var(--edge) + 76px); left:50%; transform:translateX(-50%); margin:0; max-width:calc(100% - 24px); padding:5px 12px; border-radius:20px; background:var(--bar); color:var(--bar-ink); font-size:12px; line-height:1.4; text-align:center; pointer-events:none; }
.player-hint[hidden] { display:none; }
.player-saybar.open ~ .player-hint, .player-saybar.reviewing ~ .player-hint, .player-saybar.noticing ~ .player-hint { display:none; }
/* The "Inside your classroom" band is not shown in the player; camera spots and
   scene toggles live in View options at the top right, which folds away with the strip. */
.player-stage .immersive-toolbar, .immersive-toolbar-collapsed { display:none; }
.player-stage .immersive-toolbar [data-stop], .player-stage .immersive-toolbar [data-pause] { display:none; }
.player-stage .player-scene-options { position:absolute; z-index:4; top:44px; right:12px; max-width:min(340px,calc(100% - 24px)); border-radius:10px; padding:4px 10px; background:var(--chrome); font-size:13px; backdrop-filter:blur(6px); transition:opacity .2s ease; }
.classroom-player.chrome-idle .player-stage .player-scene-options:not([open]):not(:hover):not(:focus-within), .classroom-player.chrome-hidden .player-stage .player-scene-options:not([open]):not(:hover):not(:focus-within) { opacity:0; }
.classroom-player.chrome-idle .player-stage .player-scene-options:not([open]):hover, .classroom-player.chrome-idle .player-topbar:hover ~ .player-stage .player-scene-options { opacity:1; }
.player-scene-options > summary { min-height:28px; cursor:pointer; font-size:12px; font-weight:600; color:var(--ink-hud); }
.scene-options-body { padding-bottom:6px; }
.scene-options-cameras .actions { gap:4px; margin:6px 0; }
.scene-options-cameras button { min-height:30px; padding:4px 9px; font-size:12px; }
.player-stage .player-scene-options .immersive-footer, .player-stage .player-scene-options .immersive-measurements { position:static; padding:6px 0; background:none; }
.player-stage .immersive-footer > span { display:none; }
/* Pupil list: a hold-Tab overlay from the class frame, also reachable through the
   Pupils menu panel for keyboard and screen-reader users. */
.player-stage .immersive-roster { display:none; position:absolute; z-index:6; top:50%; left:50%; transform:translate(-50%,-50%); flex-direction:column; gap:6px; padding:10px; min-width:200px; border:1px solid rgba(217,209,194,.7); border-radius:14px; background:var(--chrome); box-shadow:0 12px 40px #24392f33; backdrop-filter:blur(8px); }
.classroom-player.roster-open .player-stage .immersive-roster { display:flex; }
.player-stage .immersive-roster button { flex:0 0 auto; min-height:36px; }
/* The caption block stays for screen readers (aria-live) but is no longer drawn:
   lines reach the room as speaker-anchored subtitles, observations as narration. */
.player-stage .immersive-caption { position:absolute; width:1px; height:1px; min-height:0; max-height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; opacity:0; pointer-events:none; }
.player-stage .immersive-voice-replays { display:none; }


.player-dialog { position:fixed; inset:0; padding:0; margin:auto; width:min(720px,calc(100% - 32px)); max-width:none; max-height:calc(100dvh - 48px); overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--paper,#faf8f1); color:var(--ink,#273b31); box-shadow:0 24px 100px #14291f66; }
.player-dialog::backdrop { background:#152a2033; }
.player-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 20px; border-bottom:1px solid var(--border); }
.player-dialog-header h2 { font-size:22px; margin:0; }
.player-dialog-header button { min-height:44px; }
.player-dialog-body { padding:20px; max-height:calc(100dvh - 130px); overflow:auto; overscroll-behavior:contain; }
.player-dialog .card { margin:0 0 16px; }
.player-dialog .classroom-tools { display:block; }
.player-dialog .teacher-console textarea { min-height:110px; }
.player-dialog .teacher-console .card-head { flex-wrap:wrap; }

.player-dialog .encounter-panel { margin:0 0 16px; }
.player-dialog .notice.error { margin:0 0 16px; }
.mic-notice { margin:12px 0 0; }
.mic-notice .actions { margin-top:8px; }

/* Immersive classroom: speaker-anchored subtitles, hover tags, pointer-lock cursor. */
.immersive-viewport { position:relative; }
.immersive-viewport canvas.locked { cursor:none; }
.immersive-subtitles { position:absolute; inset:0; pointer-events:none; z-index:2; }
.immersive-subtitle { position:absolute; transform:translate(-50%,-100%); max-width:min(380px,60vw); padding:8px 12px; border-radius:12px; background:rgba(20,28,24,.82); color:#fdfbf4; font-size:15px; line-height:1.4; box-shadow:0 6px 24px #00000040; }
.immersive-subtitle b { display:block; font-size:12px; letter-spacing:.04em; text-transform:uppercase; color:#cfe3d6; margin-bottom:2px; }
.immersive-subtitle i { display:block; font-size:12px; color:#b9c8bf; margin-top:3px; }
.immersive-subtitle.offscreen { left:50% !important; top:auto !important; bottom:calc(var(--edge, 10px) + 70px); transform:translate(-50%,0); }
/* Waiting on the addressed pupil: a quiet "…" that breathes until the line lands. */
.immersive-subtitle.listening { padding:6px 12px; background:rgba(20,28,24,.6); }
.immersive-subtitle.listening span { display:inline-block; letter-spacing:.12em; animation:subtitle-listening 1.2s ease-in-out infinite; }
@keyframes subtitle-listening { 0%, 100% { opacity:.35; } 50% { opacity:1; } }
.immersive-subtitle.narration { font-style:italic; background:rgba(20,28,24,.6); }
.immersive-subtitle .subtitle-replay { pointer-events:auto; display:block; margin:6px 0 0; min-height:26px; padding:2px 9px; font-size:11px; font-weight:600; border-radius:20px; border:1px solid rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:#fdfbf4; }
.immersive-subtitle .subtitle-replay:hover { background:rgba(255,255,255,.2); }
.immersive-hover { position:absolute; z-index:2; pointer-events:none; transform:translate(-50%,-100%); padding:5px 10px; border-radius:8px; background:rgba(250,248,241,.95); color:#26302b; font-size:13px; border:1px solid var(--border); white-space:nowrap; }
.immersive-hover b { margin-right:6px; }

/* Say bar: the one in-world line docked over the class frame. No backdrop; the room keeps moving. */
.player-saybar, .player-hud, .player-pause { --bar:rgba(22,30,26,.8); --bar-ink:#fdfbf4; --bar-muted:#c7d3ca; }
.player-saybar [hidden], .player-hud [hidden], .player-pause [hidden] { display:none !important; }
.player-saybar { position:absolute; z-index:6; left:12px; right:12px; bottom:var(--edge); margin:0 auto; width:auto; max-width:760px; padding:6px 8px; border-radius:14px; background:var(--bar); color:var(--bar-ink); box-shadow:0 10px 36px #0000004d; backdrop-filter:blur(8px); }
.saybar-row { display:flex; align-items:center; gap:6px; }
.saybar-target { flex:0 0 auto; max-width:150px; min-height:36px; padding:4px 26px 4px 10px; border:1px solid rgba(255,255,255,.22); border-radius:20px; background:rgba(255,255,255,.1); color:var(--bar-ink); font-size:13px; font-weight:600; appearance:none; -webkit-appearance:none; background-image:linear-gradient(45deg,transparent 50%,var(--bar-muted) 50%),linear-gradient(135deg,var(--bar-muted) 50%,transparent 50%); background-position:calc(100% - 14px) 15px,calc(100% - 9px) 15px; background-size:5px 5px; background-repeat:no-repeat; }
.saybar-target:disabled { opacity:.7; cursor:default; }
.player-saybar textarea { flex:1 1 auto; min-width:0; min-height:36px; height:36px; overflow-y:auto; padding:8px 10px; border:0; border-radius:10px; background:transparent; color:var(--bar-ink); font-size:15px; line-height:1.35; resize:none; }
.player-saybar textarea::placeholder { color:var(--bar-muted); }
.player-saybar.pending textarea::placeholder { color:#9ec5ab; }
.player-saybar textarea:focus-visible { outline:2px solid #9ec5ab; outline-offset:-2px; }
.player-saybar textarea:disabled { opacity:.7; }
.player-saybar .saybar-mic, .player-saybar .saybar-send, .player-saybar .saybar-menu { flex:0 0 auto; min-height:36px; padding:4px 12px; font-size:13px; border-radius:20px; touch-action:none; user-select:none; -webkit-user-select:none; }
.player-saybar .saybar-mic, .player-saybar .saybar-menu { border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:var(--bar-ink); }
.player-saybar .saybar-mic:hover, .player-saybar .saybar-menu:hover { background:rgba(255,255,255,.18); border-color:#9ec5ab; }
.player-saybar .saybar-menu[aria-expanded=true] { background:#9ec5ab; border-color:#9ec5ab; color:#12261b; }
.player-saybar[data-mic=listening] .saybar-mic { background:#b7513f; border-color:#b7513f; color:#fff; }
.player-saybar[data-mic=transcribing] .saybar-mic, .player-saybar[data-mic=opening] .saybar-mic { background:#5d7f6b; border-color:#5d7f6b; color:#fff; }
.player-saybar .saybar-send { background:var(--green); border-color:var(--green); color:#fff; }
.player-saybar button:disabled { opacity:.5; }
.saybar-meta { display:none; align-items:center; gap:6px 10px; flex-wrap:wrap; padding:4px 4px 2px; }
.player-saybar.open .saybar-meta { display:flex; }
.player-saybar.scenario .saybar-meta { display:none; }
.saybar-reads { font-size:12px; color:#dce9df; padding:3px 9px; border-radius:20px; background:rgba(158,197,171,.18); border:1px solid rgba(158,197,171,.4); }
.saybar-moves { display:flex; gap:4px; flex-wrap:wrap; }
.saybar-moves button, .saybar-moves-toggle { min-height:26px; padding:2px 9px; font-size:11px; font-weight:600; border-radius:20px; border:1px solid rgba(255,255,255,.2); background:transparent; color:var(--bar-muted); }
.saybar-moves button:hover, .saybar-moves-toggle:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.35); color:var(--bar-ink); }
.saybar-moves button[aria-pressed=true] { background:#9ec5ab; border-color:#9ec5ab; color:#12261b; }
.saybar-moves-toggle { display:none; }
.saybar-ghost { margin:0; padding:2px 6px 0; font-size:12px; font-style:italic; color:var(--bar-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.saybar-status { margin:0; padding:2px 6px 0; font-size:12px; color:var(--bar-muted); min-height:0; }
.saybar-status:empty { display:none; }
.saybar-review { display:block; padding:8px 8px 4px; border-radius:10px; }
.saybar-review:focus-visible { outline:2px solid #9ec5ab; }
.saybar-review-text { margin:0 0 6px; font-size:15px; line-height:1.4; }
.saybar-review-text b { color:var(--bar-muted); font-weight:600; margin-right:4px; }
.saybar-review-bar { height:3px; border-radius:2px; background:rgba(255,255,255,.14); overflow:hidden; margin-bottom:8px; }
.saybar-review-bar i { display:block; height:100%; width:100%; background:#9ec5ab; }
.saybar-review-actions { display:flex; gap:6px; flex-wrap:wrap; }
.saybar-review-actions button { min-height:32px; padding:4px 10px; font-size:12px; border-radius:20px; border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:var(--bar-ink); }
.saybar-review-actions button.primary { background:var(--green); border-color:var(--green); }
.saybar-review-actions kbd, .player-pause kbd { font:inherit; font-size:10px; opacity:.8; margin-left:4px; }
.player-saybar.reviewing .saybar-row, .player-saybar.reviewing .saybar-meta { display:none; }
.saybar-notice { padding:8px 8px 4px; font-size:13px; line-height:1.5; }
.saybar-notice p { margin:0 0 8px; }
.saybar-notice .actions { gap:6px; }
.saybar-notice button { min-height:32px; padding:4px 10px; font-size:12px; border-radius:20px; border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:var(--bar-ink); }
.saybar-notice [data-say-ack] { background:var(--green); border-color:var(--green); }
.player-saybar.noticing .saybar-row, .player-saybar.noticing .saybar-meta { display:none; }

/* Edge HUD: floor pill with a thinking ring, signal chips anchored to the pupils,
   lesson step and turns, narration for silent turns, a quiet whisper strip.
   State only, never a score. */
.player-hud { position:absolute; inset:0; z-index:4; pointer-events:none; }
.player-hud > * { pointer-events:auto; }
/* Top-left corner column: the floor pill, then Cut in / Take again, the question
   and the whisper strip, stacked so none of them float over the room's ceiling. */
.hud-corner { position:absolute; top:44px; left:12px; display:flex; flex-direction:column; align-items:flex-start; gap:6px; max-width:min(400px,calc(100% - 24px)); pointer-events:none; }
.hud-corner > * { pointer-events:auto; }
.hud-floor { display:flex; align-items:center; gap:8px; min-height:34px; padding:4px 12px 4px 6px; border-radius:20px; background:var(--bar); color:var(--bar-ink); font-size:13px; font-weight:600; box-shadow:0 6px 20px #00000033; }
.hud-cutin, .hud-take { min-height:28px; padding:3px 11px; border-radius:20px; font-size:12px; font-weight:600; border:1px solid rgba(255,255,255,.28); background:var(--bar); color:var(--bar-ink); box-shadow:0 6px 20px #00000033; white-space:nowrap; }
.hud-cutin:hover, .hud-take:hover { border-color:#9ec5ab; background:#2d4a3a; }
.hud-cutin kbd { font:inherit; font-size:10px; opacity:.75; margin-left:5px; }
.hud-floor .hud-ring { width:24px; height:24px; flex:0 0 auto; transform:rotate(-90deg); }
.hud-ring-track { fill:none; stroke:rgba(255,255,255,.18); stroke-width:3; }
.hud-ring-fill { fill:none; stroke:#9ec5ab; stroke-width:3; stroke-linecap:round; transition:stroke-dashoffset .25s linear; }
.player-hud.pending .hud-ring { animation:hud-turn 1.1s linear infinite; }
.player-hud.pending .hud-ring-fill { transition:none; }
@keyframes hud-turn { from { transform:rotate(-90deg); } to { transform:rotate(270deg); } }
.player-hud[data-floor=thinking] .hud-floor { padding-left:6px; }
.player-hud[data-floor=teacher] .hud-floor { padding-left:12px; }
.player-hud[data-floor=pending] .hud-floor { color:var(--bar-muted); }
.player-hud[data-floor=paused] .hud-floor { background:rgba(250,248,241,.9); color:var(--ink-hud); }
.hud-question { margin:0; max-width:100%; padding:5px 10px; border-radius:10px; background:rgba(250,248,241,.75); color:var(--ink-hud); font-size:12px; line-height:1.4; }
.hud-hands { position:absolute; inset:0; pointer-events:none; }
.hud-hand { position:absolute; pointer-events:auto; min-height:30px; padding:3px 11px; border-radius:20px; font-size:12px; font-weight:600; border:1px solid rgba(255,255,255,.25); background:var(--bar); color:var(--bar-ink); box-shadow:0 6px 20px #00000033; white-space:nowrap; }
.hud-hand.anchored { transform:translate(-50%,-100%); }
.hud-hand.anchored::after { content:""; position:absolute; left:50%; bottom:-5px; width:8px; height:8px; transform:translateX(-50%) rotate(45deg); background:inherit; border-right:1px solid rgba(255,255,255,.25); border-bottom:1px solid rgba(255,255,255,.25); }
.hud-hand.edge { right:12px; }
.hud-hand.hand::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:#9ec5ab; margin-right:8px; }
.hud-hand.help::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; background:#f0c561; margin-right:8px; }
.hud-hand[aria-pressed=true] { border-color:#9ec5ab; background:#2d4a3a; }
.hud-step { position:absolute; left:12px; bottom:calc(var(--edge) + 4px); max-width:min(320px,calc(100% - 24px)); padding:4px 10px; border-radius:10px; background:rgba(250,248,241,.7); color:var(--ink-hud); font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hud-narration { position:absolute; left:50%; bottom:calc(var(--edge) + 62px); transform:translateX(-50%); margin:0; max-width:min(560px,calc(100% - 24px)); padding:6px 14px; border-radius:12px; background:rgba(20,28,24,.6); color:#fdfbf4; font-size:14px; font-style:italic; line-height:1.4; text-align:center; pointer-events:none; }
/* Whisper: a small strip under the floor pill that fades after eight seconds. It
   is never pinned: the pause sheet and the menu hide it. */
.hud-whisper { display:flex; align-items:center; gap:8px; max-width:min(360px,100%); padding:5px 6px 5px 10px; border-radius:10px; background:rgba(250,248,241,.88); color:var(--ink-hud); font-size:12px; line-height:1.4; border-left:3px solid var(--green); box-shadow:0 4px 14px #24392f1f; transition:opacity .6s ease; }
.hud-whisper.fading { opacity:0; }
.hud-whisper span { flex:1; }
.hud-whisper button { min-height:26px; padding:2px 8px; font-size:11px; flex:0 0 auto; }
.classroom-player.menu-open .hud-whisper, .player-pause:not([hidden]) ~ .player-hud .hud-whisper { display:none; }
.player-hud.scenario .hud-floor, .player-hud.scenario .hud-question, .player-hud.scenario .hud-hands { display:none; }

/* Pause sheet: a light scrim over the room, no <dialog>, so the say bar and
   chips keep their state. Also used to confirm retry and delete. */
.player-pause { position:absolute; inset:0; z-index:9; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(237,230,215,.45); backdrop-filter:blur(2px); }
.player-pause-panel { width:min(380px,100%); padding:20px 22px; border:1px solid rgba(217,209,194,.7); border-radius:16px; background:var(--chrome); color:var(--ink-hud); box-shadow:0 18px 60px #14291f40; }
.player-pause-panel h2 { margin:0 0 6px; font-size:22px; }
.player-pause-text { margin:0 0 12px; font-size:14px; line-height:1.5; min-height:0; }
.player-pause-text:empty { display:none; }
.player-pause-actions { display:flex; flex-direction:column; gap:6px; }
.player-pause-actions button { min-height:40px; text-align:left; }
.player-pause-actions button.primary { background:var(--green); border-color:var(--green); color:#fff; }
.player-pause-note { margin:12px 0 0; font-size:12px; }

@media(max-width:1100px) { .hud-step { max-width:min(240px,calc(40% - 24px)); } }
@media(max-width:650px) {
 .player-topbar { gap:4px; padding:0 6px; }
 .player-heading h1 { font-size:13px; }
 .player-status { display:none; }
 .player-topbar button { font-size:11px; padding:3px 7px; }
 .player-stage .player-scene-options { right:8px; top:42px; }
 .player-dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); }
 .player-dialog-header { padding:10px 12px; }
 .player-dialog-header h2 { font-size:19px; }
 .player-dialog-body { padding:12px; max-height:calc(100dvh - 90px); }

 .player-dock { right:8px; bottom:calc(var(--edge) + 54px); width:min(220px,calc(100% - 16px)); }
 .player-saybar { left:8px; right:8px; padding:5px 6px; }
 .saybar-target { max-width:110px; font-size:12px; padding-right:22px; }
 .player-saybar textarea { font-size:14px; }
 .player-saybar .saybar-mic { min-width:44px; min-height:44px; padding:4px 10px; }
 .player-saybar .saybar-send, .player-saybar .saybar-menu { padding:4px 10px; }
 /* Moves fold behind one chip so the bar stays two rows tall at most. */
 .saybar-moves-toggle { display:inline-flex; align-items:center; }
 .saybar-moves { display:none; flex-basis:100%; }
 .player-saybar.moves-open .saybar-moves { display:flex; }
 .hud-corner { top:42px; left:8px; max-width:calc(100% - 16px); }
 .hud-floor { font-size:12px; }
 .hud-question { max-width:calc(70vw - 16px); font-size:11px; }
 .hud-hand { font-size:11px; padding:3px 9px; min-height:28px; }
 .hud-hand.edge { right:8px; }
 .hud-step { display:none; }
 .hud-narration { bottom:calc(var(--edge) + 58px); font-size:13px; }
 .hud-whisper { max-width:calc(80vw - 16px); font-size:11px; }
 /* The hint sits above the say bar on a phone so it never covers the floor pill. */
 .player-hint { top:auto; bottom:calc(var(--edge) + 76px); font-size:11px; max-width:calc(100% - 16px); }
 /* Once the bar is open (typing, reviewing a spoken line) the hint has done its job. */
 .player-saybar.open ~ .player-hint, .player-saybar.reviewing ~ .player-hint, .player-saybar.noticing ~ .player-hint { display:none; }
 .player-pause-panel { padding:16px; }
}
@media(max-width:420px) {
 .saybar-target { max-width:104px; padding:4px 20px 4px 9px; background-position:calc(100% - 12px) 15px,calc(100% - 8px) 15px; }
 .player-saybar .saybar-mic { padding:4px 9px; }
 .player-saybar .saybar-send { display:none; }
 .player-saybar.open .saybar-send { display:inline-flex; }
 /* Open on a tight phone, the line takes the full width and the chips drop below it. */
 .player-saybar.open .saybar-row { flex-wrap:wrap; }
 .player-saybar.open textarea { flex:1 1 100%; order:-1; }
}

.profile-section { margin:28px 0 -4px; font-size:15px; letter-spacing:.06em; text-transform:uppercase; opacity:.7; }
/* ==================== Therapy room ====================
   One practitioner, one fictional adult client, a lounge-style room. Status is
   limited to "Fictional client · Preview", a quiet clock and the turn count;
   nothing here is a score, meter or bar. Every rule is scoped to therapy-* classes
   (and the Preview badge in the sidebar). */
.therapy-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0; }
.therapy-hub { display:grid; grid-template-columns:minmax(0,2fr) minmax(250px,1fr); gap:24px; align-items:start; }
.therapy-client .card-head { align-items:flex-start; }
.therapy-client .card-head .eyebrow { margin-bottom:6px; }
.therapy-content-note { margin:18px 0; }
body.therapy-playing { overflow:hidden; }
.therapy-playing .sidebar, .therapy-playing .topbar { display:none; }
.therapy-playing .shell, .therapy-playing .main-wrap, .therapy-playing #main { display:block; margin:0; padding:0; width:100%; max-width:none; }
.therapy-playing #message { position:fixed; z-index:40; top:56px; left:50%; transform:translateX(-50%); width:min(560px,calc(100% - 24px)); }
.therapy-playing #message:empty { display:none; }
.therapy-room { position:fixed; inset:0; height:100dvh; display:flex; flex-direction:column; overflow:hidden; background:#ece3d3; color:#2a2520; isolation:isolate; }
.therapy-strip { flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; padding:4px 12px; background:rgba(255,254,250,.95); border-bottom:1px solid var(--border); }
.therapy-heading { min-width:0; flex:1 1 260px; display:flex; align-items:baseline; gap:2px 14px; flex-wrap:wrap; }
.therapy-heading h1 { margin:0; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; font-size:14px; font-weight:600; letter-spacing:0; line-height:1.3; }
.therapy-status { margin:0; display:flex; flex-wrap:wrap; font-size:12px; line-height:1.4; color:var(--muted); }
.therapy-status span + span::before { content:"·"; margin:0 7px; }
.therapy-strip-actions { display:flex; flex:0 0 auto; gap:6px; }
.therapy-strip-actions button { min-height:44px; padding:6px 12px; font-size:13px; }
.therapy-view { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; }
.therapy-stage { position:absolute; inset:0; background:#e9dfcd; }
.therapy-stage:focus-visible { outline:3px solid rgba(174,118,42,.6); outline-offset:-3px; }
.therapy-canvas, .therapy-canvas canvas { position:absolute; inset:0; display:block; width:100%; height:100%; touch-action:none; }
.therapy-room.text-view .therapy-canvas { display:none; }
.therapy-loading { position:absolute; left:50%; top:45%; transform:translate(-50%,-50%); margin:0; padding:8px 14px; border-radius:20px; background:rgba(255,254,250,.85); color:var(--muted); font-size:13px; }
.therapy-textview { position:absolute; left:50%; top:42%; transform:translate(-50%,-50%); width:min(560px,calc(100% - 32px)); max-height:calc(100% - 140px); overflow:auto; padding:22px 24px; border:1px solid var(--border); border-radius:16px; background:var(--paper); box-shadow:0 12px 40px #3a2f2114; }
.therapy-textview p { margin:0 0 10px; }
.therapy-textview .therapy-presence { font-family:Georgia,serif; font-size:19px; line-height:1.5; color:#3b3128; }
.therapy-caption-wrap { position:absolute; z-index:3; left:50%; bottom:14px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:6px; width:min(620px,calc(100% - 24px)); text-align:center; pointer-events:none; }
.therapy-caption-wrap.anchored { left:auto; bottom:auto; transform:translateY(-50%); width:min(320px,34vw); align-items:flex-start; text-align:left; }
.therapy-caption-wrap.anchored[data-side="left"] { align-items:flex-end; text-align:right; }
.therapy-you { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; max-width:100%; margin:0; padding:3px 10px; border-radius:10px; background:rgba(255,254,250,.82); color:#4a4036; font-size:13px; line-height:1.4; }
.therapy-caption { max-width:100%; padding:10px 14px; border-radius:14px; background:rgba(28,25,21,.82); color:#fdfaf2; box-shadow:0 8px 28px #0000003d; }
.therapy-caption:not(:has(p:not([hidden]))) { display:none; }
.therapy-caption p { margin:0; }
.therapy-speech { font-size:17px; line-height:1.45; }
.therapy-direction { font-size:13px; line-height:1.4; color:#ddd3c3; }
.therapy-speech:not([hidden]) + .therapy-direction { margin-top:4px; }
.therapy-thinking span[aria-hidden] { display:inline-block; font-size:20px; letter-spacing:.15em; animation:therapy-breathe 1.6s ease-in-out infinite; }
@keyframes therapy-breathe { 0%, 100% { opacity:.35; } 50% { opacity:1; } }
.therapy-replay { min-height:44px; padding:4px 14px; border-radius:22px; font-size:13px; background:rgba(255,254,250,.94); pointer-events:auto; }
.therapy-hint { position:absolute; z-index:4; left:50%; top:12px; transform:translateX(-50%); max-width:calc(100% - 24px); margin:0; padding:5px 12px; border-radius:20px; background:rgba(28,25,21,.76); color:#fdfaf2; font-size:12px; text-align:center; pointer-events:none; }
.therapy-saybar { position:relative; z-index:5; flex:0 0 auto; padding:8px 12px max(8px,env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:var(--paper); box-shadow:0 -8px 24px #3a2f2112; }
.therapy-say-row { display:flex; align-items:flex-end; gap:8px; max-width:980px; margin:0 auto; }
.therapy-saybar textarea { flex:1 1 auto; min-width:0; min-height:44px; height:44px; padding:10px 12px; font-size:15px; line-height:1.4; resize:none; }
.therapy-say-actions { display:flex; flex:0 0 auto; gap:6px; }
.therapy-say-actions button { min-height:44px; padding:6px 14px; white-space:nowrap; }
.therapy-mic { touch-action:none; user-select:none; -webkit-user-select:none; }
.therapy-saybar[data-mic="listening"] .therapy-mic { background:#a24a3a; border-color:#a24a3a; color:#fff; }
.therapy-saybar[data-mic="transcribing"] .therapy-mic, .therapy-saybar[data-mic="opening"] .therapy-mic { background:#5d7556; border-color:#5d7556; color:#fff; }
.therapy-cutin { border-color:var(--green); color:var(--green); }
.therapy-say-meta { display:flex; align-items:center; flex-wrap:wrap; gap:0 12px; max-width:980px; margin:2px auto 0; }
.therapy-options { position:relative; margin:0; }
.therapy-options summary { display:inline-flex; align-items:center; min-height:44px; padding:0 4px; font-size:13px; color:var(--muted); }
.therapy-options-body { position:absolute; left:0; bottom:calc(100% + 4px); z-index:6; display:grid; gap:2px; width:min(340px,calc(100vw - 24px)); padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--paper); box-shadow:0 12px 36px #3a2f2126; }
.therapy-options-body .check { min-height:44px; align-items:center; margin:0; }
.therapy-options-body .check input { margin-top:0; }
.therapy-options-body button { justify-self:start; margin-top:4px; }
.therapy-say-status { flex:1 1 240px; margin:0; color:var(--muted); font-size:13px; line-height:1.4; }
.therapy-say-status:empty { display:none; }
.therapy-notice, .therapy-review { max-width:980px; margin:0 auto 8px; padding:10px 12px; border-radius:12px; font-size:14px; line-height:1.5; }
.therapy-notice { border:1px solid #ead093; background:#fff4d8; color:#5c4410; }
.therapy-notice p, .therapy-review p { margin:0 0 8px; }
.therapy-notice .actions, .therapy-review .actions { gap:6px; }
.therapy-review { border:1px solid #c7d6bb; background:#eef3e8; }
.therapy-review:focus-visible { outline:3px solid #ae762a; outline-offset:2px; }
.therapy-review b { color:var(--muted); font-weight:600; }
.therapy-review-bar { overflow:hidden; height:3px; margin:0 0 8px; border-radius:2px; background:rgba(77,98,66,.15); }
.therapy-review-bar i { display:block; width:100%; height:100%; background:var(--green); }
.therapy-saybar kbd, .therapy-sheet kbd { margin-left:4px; font:inherit; font-size:11px; opacity:.75; }
.therapy-saybar.reviewing .therapy-say-row, .therapy-saybar.noticing .therapy-say-row { display:none; }
.therapy-sheet { position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(42,37,32,.38); }
.therapy-sheet-panel { width:min(440px,100%); max-height:calc(100dvh - 32px); overflow:auto; overscroll-behavior:contain; padding:20px 22px; border:1px solid var(--border); border-radius:16px; background:var(--paper); box-shadow:0 24px 80px #1d17114d; }
.therapy-sheet-panel h2 { margin:0 0 8px; font-size:24px; }
.therapy-sheet-text { margin:0 0 12px; color:var(--muted); font-size:14px; line-height:1.55; }
.therapy-sheet-text:empty { display:none; }
.therapy-sheet-actions { display:flex; flex-direction:column; gap:6px; }
.therapy-sheet-actions button, .therapy-take-list button { justify-content:flex-start; min-height:44px; text-align:left; }
.therapy-take-list { display:grid; gap:6px; max-height:46dvh; overflow:auto; margin:0 0 10px; padding:0; list-style:none; }
.therapy-take-list button { width:100%; font-weight:500; line-height:1.4; white-space:normal; }
.therapy-care { border-left:4px solid var(--green); }
.therapy-care h2 { margin-bottom:8px; font-size:22px; }
.therapy-finished { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); gap:24px; align-items:start; }
.therapy-exchanges { margin:0; padding:0; list-style:none; }
.therapy-exchange { padding:16px 0; border-top:1px solid var(--border); scroll-margin-top:20px; }
.therapy-exchange:target { background:#f6f0e5; }
.therapy-line { margin:0 0 8px; white-space:pre-wrap; overflow-wrap:anywhere; }
.therapy-line b { display:block; color:var(--muted); font-size:11px; letter-spacing:1px; text-transform:uppercase; }
.therapy-line i { color:var(--muted); }
.therapy-authored { margin:0 0 8px; font-size:12px; }
.therapy-exchange button { min-height:44px; padding:6px 12px; font-size:13px; }
.therapy-reflection .card-head { flex-wrap:wrap; }
.therapy-evidence { margin:12px 0; padding:14px; border-radius:10px; background:#f6f0e5; }
.therapy-evidence h4 { margin:0 0 6px; font-size:14px; }
.therapy-evidence blockquote { margin:0 0 6px; font-style:italic; white-space:pre-wrap; overflow-wrap:anywhere; }
.therapy-evidence p { margin:6px 0 0; font-size:14px; }
.therapy-limits { margin-top:14px; }
@media (max-width:1100px) { .therapy-finished { grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px) { .therapy-hub { grid-template-columns:minmax(0,1fr); } }
@media (max-width:650px) {
 .therapy-strip { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 8px; padding:2px 8px 4px; }
 .therapy-heading { display:contents; }
 .therapy-heading h1 { grid-column:1; grid-row:1; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
 .therapy-strip-actions { grid-column:2; grid-row:1; }
 .therapy-strip-actions button { padding:4px 10px; font-size:12px; }
 .therapy-status { grid-column:1 / -1; grid-row:2; font-size:11px; }
 .therapy-playing #message { top:76px; }
 .therapy-saybar { padding:6px 8px max(6px,env(safe-area-inset-bottom)); }
 .therapy-say-row { flex-wrap:wrap; gap:6px; }
 .therapy-saybar textarea { flex:1 1 100%; font-size:16px; }
 .therapy-say-actions { flex:1 1 100%; }
 .therapy-say-actions button { flex:1 1 0; min-width:0; padding:6px 8px; font-size:13px; line-height:1.2; white-space:normal; }
 .therapy-caption-wrap { bottom:10px; }
 /* On a narrow screen the caption is a band over the lower part of the view, where his
    hands and knees are. Keep it short: one line of your own words, and a caption that
    scrolls rather than growing further up the stage. */
 .therapy-you { -webkit-line-clamp:1; }
 .therapy-caption { max-height:30vh; overflow-y:auto; pointer-events:auto; }
 .therapy-speech { font-size:16px; }
 .therapy-textview { top:40%; padding:16px; }
 .therapy-textview .therapy-presence { font-size:17px; }
 /* The portrait framing puts the top of his head near the top of the stage, where the key
    hint used to sit; on a narrow screen the hint goes to the foot of the view instead. */
 .therapy-hint { top:auto; bottom:12px; font-size:11px; }
 .therapy-sheet-panel { padding:16px; }
}
@media (prefers-reduced-motion: reduce) {
 .therapy-thinking span[aria-hidden] { animation:none; opacity:.8; }
 .therapy-review-bar i { transition:none !important; }
}
.therapy-unreal { position: absolute; inset: 0; background: #20241f; }
.therapy-unreal-video { position: absolute; inset: 0; }
.therapy-unreal-video video { width: 100%; height: 100%; object-fit: contain; }
.therapy-unreal-views { position: absolute; right: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }
.therapy-unreal-views button { background: #f6f7f1; }
.therapy-unreal-views [aria-pressed="true"] { background: #173b33; color: white; }
.therapy-unreal-status { position: absolute; top: 50%; left: 0; width: 100%; text-align: center; color: white; }
/* ==================== End therapy room ==================== */

/* Session configuration follows the existing pause sheet and brand tokens. */
.therapy-settings fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.therapy-settings legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.therapy-settings label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; margin-bottom: 12px; }
.therapy-settings input, .therapy-settings select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #d4dfd6; border-radius: 9px; background: #fff; color: #173b33; font: inherit; }
.therapy-settings fieldset:disabled { opacity: .65; }
.therapy-settings .muted { font-size: 12px; line-height: 1.5; margin: 4px 0 12px; }
.therapy-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.therapy-settings-feedback { font-size: 13px; }
.therapy-sheet:has(.therapy-settings:not([hidden])) .therapy-sheet-panel { max-height: 90dvh; overflow-y: auto; }
@media (max-width: 460px) { .therapy-settings-grid { grid-template-columns: 1fr; gap: 0; } }
/* Shared speech-to-speech controls. Text labels remain visible at every width. */
.conversation-controls { padding:8px 0; color:var(--green,#12362f); }
.conversation-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.conversation-row button,.conversation-row summary { min-height:44px; padding:8px 12px; font-size:13px; }
.conversation-row [data-conversation-status] { flex:1 1 160px; font-size:13px; }
.conversation-controls[data-enabled=true] [data-conversation-mic] { background:#12362f; color:white; border-color:#12362f; }
.conversation-row details { position:relative; }
.conversation-options { position:absolute; bottom:100%; right:0; z-index:50; display:grid; gap:12px; width:min(330px,calc(100vw - 32px)); padding:16px; border:1px solid #d4dfd6; border-radius:12px; background:#fff; color:#173b33; box-shadow:0 8px 30px #0002; }
.conversation-options label { display:grid; gap:4px; font-size:13px; }
.conversation-options select { width:100%; min-height:44px; }
.conversation-options p { font-size:12px; margin:0; }
.conversation-notice { padding:16px; margin-bottom:8px; border:1px solid #d4dfd6; border-radius:12px; background:#f6f7f1; color:#173b33; }
.conversation-notice p { font-size:14px; line-height:1.5; }
.conversation-notice button { min-height:44px; margin:4px; }
.conversation-live .saybar-mic,.conversation-live .therapy-mic { display:none; }
.saybar:has(.conversation-controls) { max-width:min(980px,calc(100vw - 24px)); }
.conversation-controls button:focus-visible,.conversation-controls summary:focus-visible { outline:3px solid #ae762a; outline-offset:3px; }
@media(max-width:650px){.conversation-row {gap:4px}.conversation-row [data-conversation-status]{flex-basis:100%;order:4}.conversation-options{right:-4px}}
.player-saybar:has(.conversation-controls) { width:min(980px,calc(100vw - 24px)); max-width:calc(100vw - 24px); }
.player-saybar .conversation-controls { color:var(--bar-ink,#fff); padding:4px 0 8px; }
.player-saybar .conversation-row { margin-bottom:4px; }
.player-saybar .conversation-options,.player-saybar .conversation-notice { color:#173b33; }
