@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #243735;
  --muted: #6e7d79;
  --page: #f6f7f5;
  --surface: #fff;
  --line: #e4e9e5;
  --brand: #256b5d;
  --brand-dark: #18493f;
  --mint: #e7f2ec;
  --coral: #f4b89c;
  --yellow: #e6c35a;
  --blue: #38b4dc;
  --radius: 18px;
  font-family: "DM Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button[aria-busy="true"] {
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h3 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 10px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand > .icon {
  width: 30px;
  height: 30px;
  color: var(--brand);
}
.brand small {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.page-heading {
  margin-bottom: 28px;
}
.page-heading .muted {
  margin-bottom: 0;
  max-width: 700px;
}
.primary,
.secondary,
.text-button,
.icon-button,
.icon-text {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 0 #164f45;
}
.primary:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  border-color: #a7c2b7;
  background: #f8fcf9;
}
.text-button,
.icon-text {
  background: transparent;
  color: var(--brand);
  padding: 8px 6px;
}
.text-button:hover,
.icon-text:hover {
  background: var(--mint);
}
.icon-button {
  padding: 8px;
  width: 40px;
  min-height: 40px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.icon-button:hover {
  background: var(--mint);
  color: var(--brand);
}
:focus-visible {
  outline: 3px solid #d3a135;
  outline-offset: 3px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
input,
select,
textarea {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #d9e0dc;
  border-radius: 9px;
  color: var(--ink);
  padding: 11px 12px;
  outline-offset: 3px;
}
input::placeholder,
textarea::placeholder {
  color: #9aa6a1;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  margin: 0;
}
select {
  cursor: pointer;
}
progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: #e7eeeb;
  accent-color: var(--brand);
}
progress::-webkit-progress-bar {
  background: #e7eeeb;
  border-radius: 99px;
}
progress::-webkit-progress-value {
  background: var(--brand);
  border-radius: 99px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 3px 10px #1b403503;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f0f3ee;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}
.pill.success {
  background: #e1f5e8;
  color: #247247;
}
.fineprint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.boot {
  padding: 25vh 20px;
  text-align: center;
  color: var(--brand);
}
.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
  grid-column: 1/-1;
}
.empty > .icon {
  height: 36px;
  width: 36px;
  color: #9abbb0;
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin: 8px 0;
}
.empty p {
  font-size: 13px;
}
.avatar {
  width: 37px;
  height: 37px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #dfece2;
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.tiny {
  width: 27px;
  height: 27px;
  border-radius: 9px;
}
.avatar.big {
  width: 64px;
  height: 64px;
  font-size: 26px;
  background: #fff9;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 30px 0 16px;
}
.section-heading h2,
.section-heading h3 {
  margin: 0;
}
.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
}
.check-row small {
  display: block;
  font-weight: 400;
}
.error,
.form-error {
  color: #b3423c;
}
.form-error:empty {
  display: none;
}
.count {
  padding: 3px 8px;
  background: var(--mint);
  font-size: 12px;
  border-radius: 7px;
}
details summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
details summary::after {
  content: "⌄";
  margin-left: 8px;
  color: var(--muted);
}
details[open] summary {
  margin-bottom: 12px;
}
details form {
  margin-top: 16px;
}
/* Teacher workbench */
.teacher-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 28px 16px 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding: 0 8px;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 20px;
}
.sidebar .brand small {
  display: block;
  width: 100%;
  padding-left: 38px;
  color: #98a59d;
  margin-top: -8px;
}
.class-select {
  margin: 30px 0 20px;
  padding: 12px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbf9;
}
.class-select span {
  font-size: 10px;
  color: var(--muted);
}
.class-select select {
  padding: 3px 0 8px;
  border: 0;
  font-weight: 600;
  background: transparent;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 10px 13px;
  font-size: 13px;
  color: #69756e;
  border-radius: 9px;
}
.sidebar nav a[aria-current] {
  background: var(--mint);
  color: var(--brand);
  font-weight: 600;
}
.sidebar nav a:hover {
  background: #f3f7f2;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #9ba79d;
  padding: 16px 13px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.sidebar-bottom > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.sidebar-bottom strong {
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  font-size: 10px;
}
.sidebar-bottom .icon-button {
  width: 32px;
  border: 0;
  padding: 4px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 66px;
  background: #fff9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  font-size: 12px;
}
.workspace-tag {
  color: #96a297;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.workspace-tag i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73a48a;
}
.workspace main {
  max-width: 1390px;
  padding: 36px 40px 64px;
  margin: 0 auto;
}
.generator {
  background: linear-gradient(120deg, #eaf3eb, #f7f8f0 70%);
  border: 1px solid #d9e6db;
  border-radius: 18px;
  padding: 22px 24px;
  margin-bottom: 28px;
}
.generator-top,
.generator-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.generator-top > span {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #557363;
}
.generator-top > div,
.generate-submit {
  display: flex;
  gap: 8px;
  align-items: center;
}
.generator select {
  width: auto;
  font-size: 11px;
  padding: 7px 10px;
  background: #ffffffb0;
  border-color: #dce6dc;
}
.generator > textarea {
  min-height: 100px;
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 20px 0;
  resize: vertical;
}
.generator > textarea:focus {
  outline: none;
}
.generation-options {
  display: flex;
  gap: 8px;
  align-items: center;
}
.generation-options details {
  position: relative;
  font-size: 11px;
}
.generation-options summary {
  padding: 7px 10px;
  border: 1px solid #d2dfd4;
  border-radius: 7px;
  background: #fff8;
}
.generation-options details > label {
  position: absolute;
  top: 32px;
  left: 0;
  background: white;
  width: 260px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px #173c3020;
  z-index: 10;
}
.generation-options textarea {
  min-height: 90px;
}
.generator .fineprint {
  font-size: 10px;
  opacity: 0.8;
}
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.filter-bar .search {
  position: relative;
  flex: 1;
  margin: 0;
}
.search > .icon {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 17px;
  color: #95a397;
}
.search input {
  padding-left: 38px;
  font-size: 12px;
}
.filter-bar select {
  width: 140px;
  font-size: 12px;
}
.filter-bar .icon-text {
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  padding: 13px 3px;
  position: relative;
  min-height: 44px;
}
.tabs button[aria-pressed="true"] {
  color: var(--brand);
  font-weight: 700;
}
.tabs button[aria-pressed="true"]::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand);
  content: "";
  border-radius: 3px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
}
.exp-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 10px #244c3b05;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.exp-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #244c3b12;
}
.card-image {
  position: relative;
  border: 0;
  background: #dce8e0;
  width: 100%;
  height: 178px;
  display: block;
  padding: 0;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card-image:hover img {
  transform: scale(1.03);
}
.image-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #fffef0ed;
  color: #48584b;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
}
.learned-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--ink);
}
.discover-filters { margin-bottom: 24px; }
.discover-filters .category-tabs { margin-bottom: 12px; }
.discover-filters .discover-status button { min-height: 44px; }
.discover-empty { text-align: center; padding-bottom: 32px; }
.reflection-input { position: relative; }
.reflection-input textarea { padding: 16px 16px 76px; width: 100%; resize: vertical; min-height: 180px; }
.voice-mic { position: absolute; right: 12px; bottom: 16px; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--pink); border-radius: 50%; background: var(--pink-soft); color: var(--pink); box-shadow: 0 3px 0 var(--pink-dark); transition: transform .15s, background .15s; }
.voice-mic:hover { transform: translateY(-2px); }
.voice-mic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.voice-waves { display: none; align-items: center; gap: 3px; height: 24px; }
.voice-waves i { width: 3px; height: 10px; background: currentColor; border-radius: 3px; animation: voice-wave .65s ease-in-out infinite alternate; }
.voice-waves i:nth-child(2) { animation-delay: .2s; height: 22px; }
.voice-waves i:nth-child(3) { animation-delay: .4s; }
.voice-mic[data-recording="true"] { background: var(--pink); color: var(--surface); }
.voice-mic[data-recording="true"] svg { display: none; }
.voice-mic[data-recording="true"] .voice-waves { display: flex; }
.voice-status { font-size: 12px; line-height: 1.7; color: var(--muted); min-height: 24px; margin: 8px 0 12px; }
.voice-attachment { padding: 14px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); }
.answer-audio { display: grid; gap: 8px; min-width: 0; text-align: left; margin: 12px 0; }
.answer-audio > span { font-size: 12px; color: var(--muted); }
.answer-audio audio { display: block; width: 100%; min-width: 0; max-width: 100%; height: 44px; }
.completion .answer-audio { max-width: 460px; margin: 20px auto; }
.voice-attachment .text-button { min-height: 44px; }
@keyframes voice-wave { to { transform: scaleY(.35); } }
@media(prefers-reduced-motion: reduce) { .voice-waves i { animation: none; } }
.daily-hero > .learned-badge { z-index: 2; }
.task .learned-badge { position: static; display: inline-flex; margin: 0 0 4px 8px; vertical-align: middle; }
@media (max-width: 760px) {
  .child-shell .discover-filters .discover-status { gap: 8px; }
  .child-shell .discover-filters .discover-status button { flex: 1; padding: 10px 6px; font-size: 12px; white-space: nowrap; }
}
.archive-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #243735cb;
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 6px;
}
.card-copy {
  padding: 16px 18px 12px;
}
.card-copy h3 {
  margin: 7px 0 12px;
  min-height: 46px;
}
.card-copy h3 button {
  font-size: 15px;
  line-height: 1.55;
  padding: 0;
  text-align: left;
  justify-content: start;
  color: var(--ink);
}
.card-copy small {
  font-size: 10px;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  border-top: 1px solid #f0f3ef;
  padding-top: 10px;
}
.card-footer > span {
  font-size: 10px;
  color: var(--muted);
}
.card-footer .text-button {
  font-size: 11px;
  min-height: 30px;
}
.card-footer .icon {
  width: 15px;
  height: 15px;
}
.card-footer .icon-button {
  border: 0;
  width: 30px;
  min-height: 30px;
}
.is-favorite {
  color: #c96e72;
  background: #fff0ed;
}
.jobs {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
}
.job {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.job-icon {
  background: var(--mint);
  color: var(--brand);
  padding: 9px;
  border-radius: 10px;
}
.job > div:nth-child(2) {
  flex: 1;
}
.job strong {
  font-size: 12px;
}
.job small {
  display: block;
  font-size: 10px;
}
.job progress {
  height: 5px;
}
.job .secondary {
  min-height: 32px;
  font-size: 11px;
}
.job .error {
  margin: 4px 0;
  font-size: 11px;
}
.detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.detail-actions > div {
  display: flex;
  gap: 10px;
}
.detail-hero {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 32px;
  align-items: center;
  margin: 30px 0;
}
.detail-hero img {
  width: 100%;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 18px;
}
.detail-hero h1 {
  margin-top: 16px;
  font-size: 30px;
}
.detail-hero p {
  color: var(--muted);
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.detail-grid p {
  font-size: 13px;
}
.activity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.activity-chips span {
  background: #f2f5f0;
  color: #637767;
  font-size: 11px;
  border-radius: 7px;
  padding: 6px 10px;
}
.chapter-row {
  display: flex;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.chapter-row > span {
  font-size: 25px;
  color: #a4bcae;
}
.chapter-row small {
  display: block;
}
.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th,
td {
  padding: 17px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  background: #fafbf8;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
td .text-button {
  font-size: 11px;
  min-height: 30px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.stat {
  padding: 23px;
}
.stat small {
  font-size: 11px;
}
.stat strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.stat:first-child {
  background: #eaf2e9;
  border-color: #dbe8d9;
}
.stats-grid + .surface {
  margin-bottom: 26px;
}
blockquote {
  border-left: 3px solid #a4c6b0;
  background: #f7faf5;
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  border-radius: 0 10px 10px 0;
  overflow-wrap: anywhere;
}
blockquote p {
  margin-bottom: 8px;
}
blockquote cite {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.roster > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.roster strong {
  font-size: 12px;
}
.roster .muted {
  font-size: 10px;
  flex: 1;
  overflow-wrap: anywhere;
}
.roster .text-button {
  font-size: 10px;
}
.review-section {
  margin-top: 24px;
}
.review-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.review-row small {
  display: block;
}
.pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pathway {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.pathway > img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
}
.pathway > div {
  padding: 26px;
}
.pathway h2 {
  margin-top: 16px;
}
.pathway p,
.pathway li {
  color: var(--muted);
  font-size: 12px;
}
.pathway li {
  padding: 6px 0;
}
.help-steps li {
  padding: 12px 0;
}
.help-steps p {
  color: var(--muted);
}
/* Editor and learning stage */
.editor-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #eff3f0;
}
.editor-header {
  min-height: 78px;
  flex-shrink: 0;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.editor-header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.editor-header > div:first-child { flex: 1; }
.editor-header > div:first-child > div { min-width: 0; }
.editor-header strong {
  font-size: 16px;
  display: block;
  overflow-wrap: anywhere;
}
.editor-header small {
  display: block;
  font-size: 10px;
}
.editor-header button {
  font-size: 11px;
}
.editor-body {
  display: grid;
  grid-template-columns: 220px minmax(350px, 1fr) 290px;
  min-height: 0;
  flex: 1;
}

.editor-center {
  overflow: auto;
  min-width: 0;
  background:
    radial-gradient(#bdd3c155 1px, transparent 1px),
    linear-gradient(140deg, #e0efdf, #e9eef6);
  background-size:
    20px 20px,
    100% 100%;
  padding: 16px;
}
.editor-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7b8b7b;
  margin-bottom: 24px;
}
.editor-stage-bar button {
  font-size: 10px;
  min-height: 28px;
  padding: 5px;
}
.editor-hint {
  font-size: 10px;
  color: #8b9d8d;
  text-align: center;
  margin-top: 24px;
}
.editor-hint > .icon {
  width: 14px;
}
.properties {
  background: #fff;
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 22px 18px;
}
.properties h3 {
  font-size: 14px;
}
.properties label {
  font-size: 11px;
}
.properties textarea {
  min-height: 90px;
  font-size: 12px;
}
.properties input,
.properties select {
  font-size: 12px;
}
.properties button {
  font-size: 11px;
}
.properties fieldset {
  padding: 12px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.properties legend {
  font-size: 10px;
  color: var(--muted);
}
.exp-properties {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.validation {
  background: #f2f8f1;
  border-radius: 10px;
  padding: 14px;
  margin-top: 24px;
  font-size: 10px;
  color: #6f8772;
}
.validation strong {
  color: #4b7056;
}
.validation .icon {
  width: 14px;
}
.validation p {
  margin: 8px 0 0;
}
.learning-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: 500px;
  padding: 16px;
  border: 1px solid #ffffffb0;
  border-radius: 30px;
  background: linear-gradient(125deg, #f4f8e7c0, #d2e4eed0 60%, #e4d8f0c0);
  box-shadow: 0 8px 40px #3d6e5d0a;
}
.instruction {
  background: #fff;
  border: 1px solid #dbe1da;
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
}
.instruction h1 {
  font-size: clamp(24px, 2.7vw, 34px);
  margin-top: 22px;
  line-height: 1.5;
}
.instruction > p {
  font-size: 18px;
  line-height: 1.9;
  white-space: normal;
}
.instruction .text-button {
  margin-top: auto;
  font-size: 12px;
}
.preview-label {
  display: block;
  font-size: 10px;
  margin-top: 12px;
  color: #97a69b;
}
.interaction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
}
.story-image {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: end;
  border-radius: 22px;
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.story-image form {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
  background: linear-gradient(transparent, #163e3d80);
}
.story-image .primary {
  width: 100%;
}
.answer-form,
.sort-form,
.reflection-form {
  padding: 20px;
}
.answer-form > .primary,
.sort-form > .primary,
.reflection-form > .primary {
  width: 100%;
  margin-top: 20px;
}
.answer-options {
  display: grid;
  gap: 16px;
}
.answer-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid #b8c6c6;
  box-shadow: 0 4px 0 #a9b8b9;
  border-radius: 15px;
  padding: 20px;
  margin: 0;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.15s;
}
.answer-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.answer-option:has(:checked) {
  border-color: var(--brand);
  background: #edfff2;
  box-shadow: 0 4px 0 var(--brand);
}
.answer-option:has(:focus-visible) {
  outline: 3px solid #d3a135;
}
.answer-option:hover {
  transform: translateY(-2px);
}
.choice-index {
  background: #f0f5f0;
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--brand);
}
.boolean-options {
  grid-template-columns: 1fr 1fr;
}
.boolean-options .answer-option {
  justify-content: center;
  padding: 25px 12px;
  flex-direction: column;
}
.fill-sentence {
  font-size: 22px;
  line-height: 2;
  margin-bottom: 30px;
}
.blank {
  display: inline-block;
  min-width: 55px;
  border-bottom: 3px solid #65a6aa;
  text-align: center;
  color: #529c9f;
}
.sort-groups {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.sort-groups span {
  flex: 1;
  border: 1px dashed #719c8c;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #ffffff80;
  font-weight: 600;
}
.sort-form label {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff9;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
}
.sort-form label strong {
  flex: 1;
}
.sort-form label select {
  max-width: 150px;
  background: #fff;
}
.reflection-form textarea {
  min-height: 200px;
  border-color: #b0c7bd;
  font-size: 17px;
}
.thought-icon {
  text-align: center;
  color: #72a58a;
  margin-bottom: 20px;
}
.thought-icon .icon {
  width: 46px;
  height: 46px;
}
.flashcard-area {
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 20px;
}
.card-count {
  position: absolute;
  right: 20px;
  top: 10px;
  background: #fff8;
  padding: 5px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.flashcard {
  background: #fff;
  border: 2px solid #384c47;
  border-radius: 24px;
  min-height: 290px;
  padding: 36px 30px;
  width: min(100%, 340px);
  box-shadow: 5px 7px 0 #384c47;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transform: rotate(-1deg);
  color: var(--ink);
  transition: transform 0.2s;
}
.flashcard.flipped {
  transform: rotate(1deg);
  background: #fffcf2;
}
.flashcard strong {
  font-size: 25px;
}
.flashcard.flipped strong {
  font-size: 19px;
  line-height: 1.7;
}
.flashcard small {
  font-size: 10px;
}
.card-motif {
  width: 60px;
  height: 60px;
  background: #e6f0e8;
  color: #719979;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.card-motif .icon {
  width: 32px;
  height: 32px;
}
.card-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.card-nav .secondary {
  font-size: 11px;
  min-height: 36px;
}
.card-nav span {
  font-size: 12px;
  color: var(--muted);
}
.flashcard-area > p {
  font-size: 11px;
  margin: 0;
}
.feedback {
  text-align: center;
  padding: 30px;
}
.feedback-symbol {
  background: #fff9;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--brand);
}
.feedback-symbol .icon {
  width: 36px;
  height: 36px;
}
.feedback p {
  font-size: 17px;
  line-height: 1.8;
}
.feedback .primary {
  margin-top: 20px;
  min-width: 180px;
}
.editor-preview .learning-stage {
  min-height: 480px;
  border-radius: 20px;
  padding: 12px;
  gap: 12px;
}
.editor-preview .instruction {
  padding: 22px;
}
.editor-preview .instruction h1 {
  font-size: 24px;
}
.editor-preview .instruction > p {
  font-size: 15px;
  line-height: 1.9;
}
.editor-preview .interaction {
  min-height: 420px;
}
.editor-preview .flashcard {
  min-height: 230px;
}
.editor-preview .flashcard strong {
  font-size: 20px;
}
.editor-preview .answer-form {
  padding: 12px;
}
.editor-preview .answer-option {
  font-size: 12px;
  padding: 15px;
}
.editor-preview .sort-form {
  padding: 10px;
}
.editor-preview .sort-form label {
  display: block;
}
.editor-preview .sort-form select {
  margin-top: 6px;
}
.player-shell {
  min-height: 100vh;
  background: linear-gradient(125deg, #f5f6df, #d4e7ee 60%, #e8daed);
  padding: 28px max(24px, calc((100vw - 1320px) / 2)) 48px;
}
.player-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.player-header progress {
  flex: 1;
  height: 14px;
}
.player-header .brand {
  font-size: 16px;
}
.player-header .icon-button {
  border: 2px solid #71908b;
  background: #fff9;
  color: var(--ink);
  border-radius: 14px;
  width: 44px;
  height: 44px;
}
.player-header .pill {
  white-space: nowrap;
}
.player-chapter {
  display: flex;
  justify-content: space-between;
  margin: 10px 4px 14px;
  font-size: 12px;
  color: #5e7a71;
}
.player-shell .learning-stage {
  min-height: calc(100vh - 190px);
}
.completion {
  text-align: center;
  max-width: 700px;
  margin: 70px auto;
}
.completion h1 {
  font-size: 36px;
}
.completion h2 {
  font-size: 20px;
  color: #66796e;
  overflow-wrap: anywhere;
}
.completion > p {
  color: var(--muted);
}
.completion-medal {
  width: 120px;
  height: 120px;
  border-radius: 40px;
  background: #fff1c2;
  border: 3px solid #f0d27b;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 0 #e3d09355;
  transform: rotate(-8deg);
}
.completion-medal > .icon {
  color: #c7a028;
  width: 70px;
  height: 70px;
}
.completion-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 30px 0;
  color: #60776b;
  font-size: 13px;
}
/* Children's world */
body[data-role="student"] {
  --brand: #267a77;
  --brand-dark: #1c605e;
  --mint: #e6f4f0;
  background: #fcfcfa;
}
.child-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 140px;
}
.child-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  gap: 20px;
}
.child-top .brand {
  font-size: 23px;
}
.child-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.child-metrics .pill {
  background: #fff5d9;
  color: #9b7725;
  font-size: 12px;
  padding: 9px 14px;
}
.child-metrics .pill .icon {
  width: 16px;
  height: 16px;
}
.child-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}
.child-greeting h1 {
  font-size: 30px;
}
.child-greeting .eyebrow {
  font-size: 10px;
}
.streak {
  font-size: 11px;
  color: #8a8571;
  background: #faf2de;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
}
.streak .icon {
  color: #c8a345;
  width: 16px;
}
.daily-dates {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.daily-dates button {
  background: #f4f5f0;
  border: 1px solid #e5e8e0;
  min-width: 69px;
  min-height: 76px;
  display: grid;
  gap: 3px;
  place-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  color: var(--ink);
}
.daily-dates small {
  font-size: 10px;
}
.daily-dates strong {
  font-size: 23px;
  line-height: 1;
}
.daily-dates .selected {
  background: #e0ede2;
  border-color: #b2c9b8;
  color: #3b674b;
}
.daily-hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 390px;
  background: #162842;
  color: #fff;
}
.daily-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.daily-hero > div {
  position: relative;
  z-index: 1;
  width: 70%;
  max-width: 680px;
  padding: 48px;
  background: linear-gradient(90deg, #12263beb, #12263b80 70%, transparent);
  min-height: 390px;
}
.daily-hero h2 {
  font-size: 36px;
  margin: 24px 0 14px;
  max-width: 420px;
  font-weight: 700;
  line-height: 1.4;
}
.daily-hero p {
  max-width: 380px;
  font-size: 14px;
  color: #dfe7ed;
}
.daily-hero .pill {
  color: #fff;
  background: #ffffff2b;
  border: 1px solid #ffffff36;
  font-weight: 500;
}
.hero-meta {
  display: flex;
  gap: 20px;
  color: #e3ebe9;
  font-size: 11px;
  margin: 20px 0 24px;
}
.daily-hero .primary {
  background: #fff8e2;
  color: #29493f;
  box-shadow: 0 3px 0 #ccb990;
  min-width: 190px;
  border-radius: 12px;
}
.child-shell .section-heading {
  margin-top: 38px;
}
.child-shell .section-heading h2 {
  font-size: 22px;
}
.child-shell .card-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.child-shell .card-image {
  height: 210px;
}
.child-shell .card-copy h3 {
  font-size: 17px;
}
.child-shell .exp-card {
  border-radius: 22px;
}
.child-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #ffffffed;
  backdrop-filter: blur(20px);
  border: 2px solid #f1eee8;
  box-shadow: 0 8px 35px #285c4810;
  border-radius: 99px;
  padding: 7px;
  display: flex;
  gap: 4px;
  white-space: nowrap;
}
.child-nav a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 21px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 13px;
  color: #7d887c;
}
.child-nav a[aria-current] {
  background: #eef2eb;
  color: #294b3c;
}
.child-nav a:last-child {
  background: #e1f0e8;
  color: var(--brand);
}
.child-nav a:hover {
  background: #dcece3;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.task {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}
.task > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.task h3 {
  margin: 4px 0;
  font-size: 14px;
}
.task p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0;
}
.task small {
  font-size: 10px;
}
.task .secondary {
  font-size: 11px;
}
.task-icon {
  background: #e8f1e5;
  padding: 12px;
  border-radius: 14px;
  color: #729264;
}
.task progress {
  height: 5px;
  margin-top: 8px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.profile-card {
  background: linear-gradient(#bbddd3 55%, #1f3d3b 55%);
  border: 1px solid #d8e4da;
  border-radius: 26px;
  padding: 32px;
  min-height: 310px;
  position: relative;
  overflow: hidden;
}
.profile-card h1 {
  margin: 16px 0;
  font-size: 25px;
}
.profile-card > p {
  position: absolute;
  bottom: 24px;
  color: #fff9;
  font-size: 13px;
}
.profile-stamp {
  position: absolute;
  right: 25px;
  top: 28px;
  transform: rotate(12deg);
  text-align: center;
  border: 3px double #d6e8c7;
  border-radius: 30px;
  background: #fff9dd;
  padding: 25px 15px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #3c7368;
}
.tier {
  padding: 24px;
}
.tier h2 {
  margin: 8px 0 12px;
}
.tier p {
  font-size: 10px;
  color: var(--muted);
  margin: 10px 0 0;
}
.profile-grid .stats-grid {
  grid-template-columns: 1fr 1fr;
  margin: 18px 0 0;
}
.profile-grid .stat {
  padding: 16px 24px;
}
.profile-grid .stat strong {
  font-size: 25px;
}
.discovery-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.discovery-cards article {
  background: linear-gradient(120deg, #e6ecb9, #d0e2de, #e1d6ec);
  border: 2px solid #d5dfcc;
  padding: 10px;
  border-radius: 20px;
  max-width: 280px;
  box-shadow: 0 4px 10px #3456320a;
}
.discovery-cards img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 13px;
}
.discovery-cards article > div {
  padding: 12px 8px;
}
.discovery-cards article span {
  font-size: 10px;
  color: #71826b;
}
.discovery-cards h3 {
  margin: 10px 0;
}
.discovery-cards p {
  font-size: 11px;
  color: #66785e;
}
.discovery-cards button {
  font-size: 11px;
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.ledger-row:last-child {
  border: 0;
}
.ledger-row strong {
  color: #8ba75d;
}
.child-generator {
  max-width: 900px;
  margin: 50px auto 24px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(130deg, #eaf1df, #e8f1f0);
}
.child-generator > textarea {
  min-height: 180px;
  font-size: 25px;
}
.child-shell:has(.child-generator) .page-heading {
  text-align: center;
  margin-top: 60px;
}
.child-shell .jobs {
  max-width: 900px;
  margin: 24px auto;
}
.game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-radius: 28px;
  border: 1px solid #e2e7d9;
  background: #f0f5e5;
  overflow: hidden;
  max-width: 850px;
}
.game-card > div:last-child {
  padding: 50px 35px 50px 0;
  align-self: center;
}
.game-card h2 {
  font-size: 30px;
  margin-top: 20px;
}
.game-card p {
  color: var(--muted);
}
.game-art {
  min-height: 350px;
  background: linear-gradient(130deg, #e6ca81, #d5dfb8);
  display: grid;
  place-items: center;
}
.game-art > div {
  width: 220px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  transform: rotate(-8deg);
  padding: 10px;
  border-radius: 16px;
  background: #fff8d0;
  box-shadow: 10px 12px 0 #77866330;
}
.game-art span {
  background: #fffcf2;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #758753;
  border-radius: 6px;
  font-weight: 700;
}
.game-layout {
  max-width: 650px;
  margin: 20px auto;
}
.game-layout > .surface {
  margin-top: 20px;
  text-align: center;
}
.game-layout h1 {
  margin-top: 14px;
}
.game-layout p {
  font-size: 12px;
  color: var(--muted);
}
.sudoku {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 280px;
  margin: 30px auto;
  border: 2px solid #506f5c;
  background: #506f5c;
  gap: 1px;
}
.sudoku span,
.sudoku input {
  height: 68px;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 10px;
  text-align: center;
  font-size: 26px;
  display: grid;
  place-items: center;
  background: #e5efdf;
  color: #3c664d;
}
.sudoku input {
  background: #fffdf6;
  color: #8c702c;
}
.sudoku > *:nth-child(4n + 2) {
  border-right: 2px solid #506f5c;
}
.sudoku > *:nth-child(n + 5):nth-child(-n + 8) {
  border-bottom: 2px solid #506f5c;
}
.sudoku input::-webkit-inner-spin-button {
  appearance: none;
}
/* Family space */
body[data-role="parent"] {
  --brand: #356c59;
  --page: #f7f5ed;
}
.parent-shell > header {
  background: #fffef8;
  border-bottom: 1px solid #e4e5d9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px max(24px, calc((100vw - 1200px) / 2));
}
.parent-shell .brand {
  font-size: 20px;
}
.parent-shell header nav {
  display: flex;
  gap: 8px;
}
.parent-shell nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--muted);
}
.parent-shell nav a[aria-current] {
  background: #e9efe3;
  color: var(--brand);
}
.parent-shell main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.parent-shell .page-heading {
  margin-bottom: 22px;
}
.family-children {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.family-reports {
  display: grid;
  gap: 24px;
}
.family-report {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 28px;
  background: #fffef9;
  border-color: #e7e5d6;
}
.family-report > img {
  width: 100%;
  border-radius: 14px;
  aspect-ratio: 1;
  object-fit: cover;
}
.family-report h2 {
  margin-top: 10px;
}
.family-report h3 {
  font-size: 12px;
}
.family-report .activity-chips {
  margin-bottom: 22px;
}
.family-conversation {
  background: #f4f0de;
  border-radius: 12px;
  padding: 18px;
  font-size: 12px;
  color: #7b7558;
}
.family-conversation p {
  margin: 8px 0 0;
  line-height: 1.8;
}
.family-conversation strong {
  font-size: 11px;
}
.parent-shell blockquote {
  font-size: 13px;
}
.profile-setting {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.profile-setting > div {
  flex: 1;
}
.profile-setting small {
  display: block;
}
.parent-shell .surface {
  background: #fffef9;
}
/* Login and overlays */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 1fr);
  align-items: start;
  background: #fffdf7;
}
.login-art {
  background: #e0eddf;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 36px 44px;
  overflow: hidden;
}
.login-art > .brand {
  position: relative;
  z-index: 2;
  color: #fff;
}
.login-art > .brand > .icon {
  color: #d5e9bc;
}
.login-art > div {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: white;
  padding: 80px 0 30px;
}
.login-art h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.35;
}
.login-art p {
  color: #fff9d9;
  max-width: 390px;
  font-size: 15px;
}
.login-art .eyebrow {
  font-size: 10px;
}
.login-art > img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  z-index: 0;
}
.login-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#133b3c50, #133b3c05 25%, #133b3ccf);
  z-index: 1;
}
.login-pane {
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(28px, 4vw, 72px);
}
.login-form {
  width: 100%;
  padding: 0;
  max-width: 440px;
}
.login-form > .pill {
  font-size: 10px;
  margin-bottom: 40px;
}
.login-form h2 {
  font-size: 28px;
}
.login-form > .muted {
  font-size: 13px;
  line-height: 1.8;
}
.account-cards {
  display: grid;
  gap: 13px;
  margin: 30px 0;
}
.account-cards > button {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border: 1px solid #dce5da;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.account-cards > button:hover {
  border-color: #9dbda6;
  transform: translateX(3px);
}
.account-cards > button > .icon:first-child {
  width: 30px;
  height: 30px;
  color: #739a7c;
}
.account-cards > button > .icon:last-child {
  width: 16px;
  color: #adbbad;
}
.account-cards span {
  flex: 1;
}
.account-cards small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
}
.account-cards strong {
  font-size: 14px;
}
.login-form details {
  font-size: 12px;
  color: var(--muted);
  padding: 14px 0;
}
.login-form details .primary {
  width: 100%;
}
#status {
  position: fixed;
  bottom: 25px;
  right: 25px;
  max-width: min(450px, calc(100vw - 40px));
  padding: 13px 20px;
  background: #1c443cf2;
  color: #fff;
  box-shadow: 0 8px 30px #173c3030;
  border-radius: 12px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#status.visible {
  opacity: 1;
  transform: translateY(0);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(560px, calc(100% - 32px));
  padding: 32px;
  max-height: 85vh;
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 25px 100px #102c3430;
}
dialog::backdrop {
  background: #112f2d65;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 35px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
}
dialog > p strong {
  color: var(--ink);
}
dialog .dialog-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
  min-height: 32px;
  border: 0;
}
dialog .primary + button {
  margin-left: 10px;
}
.component-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}
.answer-evidence {
  max-height: 45vh;
  overflow: auto;
  margin: 20px 0;
}
.answer-evidence section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.answer-evidence strong {
  font-size: 13px;
}
.answer-evidence p {
  margin: 8px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.answer-evidence small {
  font-size: 10px;
}
.form-error {
  font-size: 12px;
  background: #fff1e9;
  padding: 10px;
  border-radius: 8px;
  margin: 15px 0 0;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page-heading,
.learning-stage,
.completion {
  animation: arrive 0.3s ease-out;
}
@media (min-width: 1600px) {
  .workspace main {
    padding: 48px 60px;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }
  .editor-body {
    grid-template-columns: 250px minmax(400px, 1fr) 340px;
  }
  .editor-preview {
    max-width: 1100px;
    margin: 30px auto;
  }
}
@media (max-width: 1100px) {
  .teacher-shell {
    grid-template-columns: 195px 1fr;
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .brand {
    font-size: 17px;
  }
  .workspace main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .generator {
    padding: 20px;
  }
  .generator-bottom {
    flex-wrap: wrap;
  }
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .editor-body {
    grid-template-columns: 165px minmax(300px, 1fr) 250px;
  }
  .editor-preview .learning-stage {
    grid-template-columns: 1fr;
  }
  .editor-preview .instruction {
    min-height: 250px;
  }
  .editor-preview .interaction {
    min-height: 300px;
  }
  .editor-center {
    padding: 10px;
  }
  .editor-stage-bar {
    display: block;
  }
  .editor-stage-bar > div {
    margin-top: 5px;
  }
  .editor-hint {
    display: none;
  }
  .login-pane {
    padding: 36px 32px;
  }
  .child-top {
    height: 85px;
  }
  .daily-hero > div {
    width: 80%;
  }
}
@media (max-width: 760px) {
  .teacher-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .brand small {
    display: none;
  }
  .class-select {
    margin: 14px 0 10px;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .class-select span {
    white-space: nowrap;
  }
  .class-select select {
    padding: 4px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }
  .sidebar nav a {
    flex-shrink: 0;
    font-size: 11px;
    gap: 7px;
    padding: 8px 10px;
    min-height: 40px;
  }
  .sidebar nav .icon {
    width: 17px;
    height: 17px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 45px;
    padding: 0 20px;
  }
  .workspace main {
    padding: 24px 18px 50px;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .generator {
    padding: 18px;
  }
  .generator-top {
    align-items: start;
  }
  .generator-top > span {
    font-size: 10px;
    max-width: 110px;
    line-height: 1.8;
  }
  .generator-top > div {
    flex-wrap: wrap;
    justify-content: end;
  }
  .generator select {
    font-size: 10px;
  }
  .generator > textarea {
    font-size: 16px;
    min-height: 120px;
  }
  .generator-bottom {
    gap: 14px;
  }
  .generation-options {
    gap: 6px;
  }
  .generation-options summary {
    font-size: 10px;
    padding: 7px 9px;
  }
  .generate-submit {
    justify-content: end;
    width: 100%;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar .search {
    flex-basis: 100%;
  }
  .filter-bar select {
    flex: 1;
    width: 100px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .card-image {
    height: 140px;
  }
  .card-copy {
    padding: 12px;
  }
  .card-copy h3 button {
    font-size: 12px;
  }
  .card-copy h3 {
    min-height: 45px;
  }
  .image-badge {
    font-size: 8px;
    left: 8px;
    bottom: 8px;
  }
  .card-footer {
    gap: 4px;
    flex-wrap: wrap;
  }
  .card-footer .text-button {
    font-size: 10px;
  }
  .card-footer > span {
    font-size: 9px;
  }
  .section-heading {
    margin-top: 24px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading .secondary {
    font-size: 10px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .detail-actions {
    align-items: start;
  }
  .detail-actions > div {
    flex-wrap: wrap;
    justify-content: end;
  }
  .detail-actions button {
    font-size: 10px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .detail-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 18px 0;
  }
  .detail-hero img {
    aspect-ratio: 1.8;
  }
  .detail-hero h1 {
    font-size: 26px;
  }
  .surface {
    padding: 20px;
  }
  .stats-grid {
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat small {
    font-size: 9px;
  }
  .roster > div {
    flex-wrap: wrap;
  }
  .roster .muted {
    flex-basis: 50%;
    font-size: 9px;
  }
  .pathway-grid {
    grid-template-columns: 1fr;
  }
  .editor-header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 12px;
  }
  .editor-header > div {
    width: 100%;
    justify-content: space-between;
  }
  .editor-header strong {
    font-size: 12px;
  }
  .editor-header button {
    font-size: 10px;
    padding: 8px 12px;
    min-height: 34px;
  }
  .editor-body {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-rows: minmax(300px, 55vh) auto;
    overflow: auto;
  }

  .editor-center {
    overflow: visible;
  }
  .editor-preview .learning-stage {
    min-height: auto;
    border-radius: 14px;
    padding: 8px;
  }
  .editor-preview .instruction {
    padding: 14px;
    min-height: 180px;
  }
  .editor-preview .instruction h1 {
    font-size: 16px;
    margin-top: 14px;
  }
  .editor-preview .instruction > p {
    font-size: 12px;
  }
  .editor-preview .interaction {
    min-height: 200px;
  }
  .editor-preview .story-image {
    height: 200px;
  }
  .editor-preview .answer-option {
    font-size: 10px;
    padding: 10px;
  }
  .editor-preview .flashcard-area {
    padding: 10px;
  }
  .editor-preview .flashcard {
    min-height: 160px;
    padding: 20px 10px;
  }
  .editor-preview .flashcard strong {
    font-size: 16px;
  }
  .editor-preview .card-motif {
    display: none;
  }
  .editor-preview .card-nav .secondary {
    font-size: 9px;
    padding: 6px;
    min-height: 30px;
  }
  .properties {
    grid-column: 2;
    padding: 18px 14px;
    border-top: 1px solid var(--line);
    overflow: visible;
  }
  .editor-stage-bar {
    margin-bottom: 10px;
  }
  .editor-stage-bar button {
    font-size: 9px;
  }
  .child-shell {
    padding: 0 18px 115px;
  }
  .child-top {
    height: 75px;
  }
  .child-top .brand {
    font-size: 18px;
  }
  .child-top .brand .icon {
    width: 24px;
  }
  .child-metrics {
    gap: 7px;
  }
  .child-metrics > strong {
    display: none;
  }
  .child-metrics .avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 12px;
  }
  .child-metrics .pill {
    font-size: 10px;
    padding: 6px 8px;
  }
  .child-metrics .pill .icon {
    width: 13px;
  }
  .child-greeting {
    display: block;
    margin: 20px 0;
  }
  .child-greeting h1 {
    font-size: 25px;
  }
  .child-greeting .streak {
    display: none;
  }
  .daily-dates {
    gap: 7px;
    overflow: auto;
    margin: 18px 0;
  }
  .daily-dates button {
    min-width: 48px;
    padding: 10px 8px;
    min-height: 64px;
    border-radius: 12px;
  }
  .daily-dates strong {
    font-size: 20px;
  }
  .daily-dates small {
    font-size: 8px;
  }
  .daily-hero {
    min-height: 430px;
    border-radius: 23px;
  }
  .daily-hero > img {
    height: 60%;
    object-position: 65% top;
  }
  .daily-hero > div {
    width: 100%;
    max-width: none;
    min-height: 430px;
    padding: 200px 24px 24px;
    background: linear-gradient(transparent 15%, #11283c88 40%, #11283cf2 58%);
  }
  .daily-hero h2 {
    font-size: 26px;
    margin: 14px 0 8px;
  }
  .daily-hero p {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .daily-hero .pill {
    font-size: 9px;
  }
  .hero-meta {
    font-size: 10px;
    margin: 12px 0 18px;
  }
  .daily-hero .primary {
    min-height: 44px;
    font-size: 12px;
  }
  .child-shell .section-heading h2 {
    font-size: 19px;
  }
  .child-shell .section-heading .text-button {
    font-size: 10px;
  }
  .child-shell .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .child-shell .card-image {
    height: 140px;
  }
  .child-shell .card-copy h3 {
    font-size: 13px;
  }
  .child-nav {
    bottom: 16px;
    width: calc(100% - 28px);
    justify-content: space-around;
    padding: 5px;
    gap: 0;
  }
  .child-nav a {
    font-size: 10px;
    padding: 9px 12px;
    gap: 5px;
    flex-direction: column;
  }
  .child-nav a .icon {
    width: 20px;
    height: 20px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .task {
    padding: 17px;
    gap: 12px;
  }
  .task h3 {
    font-size: 12px;
  }
  .task .secondary {
    padding: 8px 12px;
    min-height: 38px;
    font-size: 10px;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .profile-card {
    min-height: 260px;
    padding: 24px;
  }
  .profile-grid .stats-grid {
    margin-top: 12px;
  }
  .discovery-cards {
    gap: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .discovery-cards article {
    max-width: none;
  }
  .discovery-cards img {
    height: 110px;
  }
  .discovery-cards article > div {
    padding: 10px 0;
  }
  .discovery-cards h3 {
    font-size: 12px;
  }
  .discovery-cards button {
    font-size: 9px;
    padding: 6px 8px;
    min-height: 32px;
  }
  .child-generator {
    margin: 25px 0;
    padding: 18px;
  }
  .child-generator > textarea {
    font-size: 21px;
    min-height: 170px;
  }
  .child-shell:has(.child-generator) .page-heading {
    margin-top: 30px;
  }
  .game-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .game-art {
    min-height: 250px;
  }
  .game-art > div {
    width: 180px;
  }
  .game-card > div:last-child {
    padding: 25px;
  }
  .game-card h2 {
    font-size: 26px;
  }
  .player-shell {
    padding: 16px 14px 28px;
  }
  .player-header {
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }
  .player-header .brand {
    font-size: 13px;
    flex: 1;
  }
  .player-header .brand .icon {
    width: 22px;
    height: 22px;
  }
  .player-header .pill {
    font-size: 9px;
    padding: 5px 8px;
  }
  .player-header progress {
    flex-basis: 100%;
    order: 5;
    height: 10px;
  }
  .player-header .icon-button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    border-radius: 10px;
    padding: 6px;
  }
  .player-chapter {
    font-size: 10px;
    gap: 10px;
  }
  .learning-stage {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 22px;
    gap: 12px;
  }
  .player-shell .learning-stage {
    min-height: calc(100vh - 150px);
  }
  .instruction {
    padding: 22px;
    border-radius: 17px;
  }
  .instruction h1 {
    font-size: 24px;
    margin-top: 16px;
  }
  .instruction > p {
    font-size: 16px;
    line-height: 1.8;
  }
  .instruction .text-button {
    font-size: 11px;
  }
  .interaction {
    min-height: 300px;
  }
  .story-image {
    min-height: 320px;
  }
  .answer-form,
  .sort-form,
  .reflection-form {
    padding: 14px;
  }
  .answer-option {
    padding: 17px;
    font-size: 14px;
  }
  .flashcard-area {
    padding: 20px 10px;
  }
  .flashcard {
    min-height: 245px;
    max-width: 280px;
  }
  .flashcard strong {
    font-size: 25px;
  }
  .feedback p {
    font-size: 15px;
  }
  .completion {
    margin-top: 50px;
  }
  .completion h1 {
    font-size: 27px;
  }
  .completion h2 {
    font-size: 17px;
  }
  .completion-stats {
    gap: 16px;
    font-size: 11px;
  }
  .parent-shell > header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .parent-shell .brand {
    font-size: 18px;
  }
  .parent-shell .brand small {
    font-size: 8px;
    letter-spacing: 0;
  }
  .parent-shell header nav {
    order: 3;
    width: 100%;
  }
  .parent-shell nav a {
    font-size: 11px;
    flex: 1;
    justify-content: center;
  }
  .parent-shell main {
    padding: 30px 18px;
  }
  .parent-shell .page-heading h1 {
    font-size: 27px;
  }
  .family-report {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 18px;
  }
  .family-report > img {
    aspect-ratio: 2;
  }
  .family-report h2 {
    font-size: 20px;
  }
  .family-report .activity-chips span {
    font-size: 9px;
  }
  .profile-setting {
    gap: 12px;
  }
  .profile-setting button {
    font-size: 11px;
    min-height: 36px;
    padding: 8px 10px;
  }
  .login-shell {
    display: block;
  }
  .login-art {
    position: relative;
    height: 220px;
    min-height: 0;
    padding: 20px 24px;
  }
  .login-art > .brand {
    font-size: 20px;
  }
  .login-art > div {
    padding: 20px 0 0;
  }
  .login-art h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  .login-art br {
    display: none;
  }
  .login-art p {
    font-size: 11px;
  }
  .login-art .eyebrow {
    font-size: 8px;
    margin-bottom: 10px;
  }
  .login-art > img {
    object-position: center 42%;
  }
  .login-pane {
    min-height: 0;
    padding: 32px 24px;
  }
  .login-form {
    padding: 0;
  }
  .login-form > .pill {
    margin-bottom: 20px;
  }
  .login-form h2 {
    font-size: 25px;
  }
  .account-cards {
    margin: 22px 0;
  }
  .account-cards > button {
    padding: 17px;
  }
  .login-form .fineprint {
    font-size: 10px;
  }
  dialog {
    padding: 26px 22px;
  }
  dialog h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sorting-buckets {
  display: flex;
  gap: 12px;
  width: 100%;
  flex: 1;
  margin: 8px 0 24px;
}
.sort-bucket {
  flex: 1;
  min-width: 0;
  min-height: 200px;
  border: 2px solid #e0e6dd;
  border-radius: 15px;
  background: #fcfcf8;
  padding: 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.sort-bucket > strong {
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}
.sort-bucket.drag-over {
  border-color: var(--brand);
  background: #e2f6e6;
}
.sorted-item {
  display: block;
  font-size: 11px;
  background: #e4efdf;
  color: #48604a;
  border: 1px solid #d0dfc8;
  border-radius: 8px;
  padding: 10px;
  width: 100%;
  margin: 8px 0;
}
.sorting-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 30px 20px;
}
.sort-card {
  background: #fffef8;
  border: 2px solid #3b5049;
  border-radius: 24px;
  box-shadow: 5px 6px #3b5049;
  min-height: 240px;
  width: min(280px, 95%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 25px;
  text-align: center;
  cursor: grab;
  transform: rotate(-2deg);
}
.sort-card:active {
  cursor: grabbing;
}
.sort-card strong {
  font-size: 25px;
  line-height: 1.7;
}
.sort-card small {
  font-size: 9px;
}
.bucket-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.bucket-actions .secondary {
  font-size: 11px;
}
.sort-done {
  text-align: center;
  padding: 30px;
}
.sort-done > .icon {
  width: 50px;
  height: 50px;
  color: var(--brand);
  margin-bottom: 20px;
}
.sort-done p {
  font-size: 12px;
  color: var(--muted);
}
.word-tile {
  background: #fff;
  border: 2px solid #4d6157;
  box-shadow: 3px 4px #4d6157;
  color: #304c40;
  border-radius: 14px;
  min-height: 65px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 600;
}
.word-tile:hover {
  background: #f5fbf0;
}
.fill-bank {
  padding: 20px;
}
.fill-bank > p {
  text-align: center;
  font-size: 11px;
}
.fill-bank > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 30px 0;
}
.fill-bank .primary {
  width: 100%;
}
.fill-sentence .blank {
  background: #f2f4ef;
  border: 2px solid #d6dfd4;
  border-radius: 8px;
  font: inherit;
  font-size: 17px;
  min-width: 65px;
  min-height: 42px;
  padding: 0 12px;
  margin: 3px 4px;
  cursor: pointer;
}
.fill-sentence .blank.active {
  border-color: #78ada7;
  background: #e4f4f0;
}
.editor-preview .sort-card {
  min-height: 190px;
}
.editor-preview .sort-card strong {
  font-size: 18px;
}
.editor-preview .sort-bucket {
  min-height: 160px;
  padding: 10px;
}
.editor-preview .sorted-item {
  font-size: 10px;
  padding: 7px;
}
.editor-preview .word-tile {
  font-size: 13px;
  padding: 10px;
}
.editor-preview .fill-sentence {
  font-size: 16px;
}
@media (max-width: 760px) {
  .sorting-buckets {
    min-height: 140px;
  }
  .sort-bucket {
    min-height: 140px;
    padding: 10px;
  }
  .sort-bucket > strong {
    font-size: 11px;
  }
  .sorted-item {
    font-size: 10px;
    padding: 7px;
  }
  .sort-card {
    min-height: 200px;
  }
  .sort-card strong {
    font-size: 22px;
  }
  .sorting-deck {
    padding: 25px 10px;
  }
  .editor-preview .sorting-buckets {
    flex-direction: column;
  }
  .word-tile {
    font-size: 16px;
    min-height: 55px;
  }
  .fill-sentence {
    font-size: 19px;
  }
  .fill-sentence .blank {
    font-size: 16px;
    min-width: 55px;
  }
}
.category-tabs {
  overflow: auto;
  white-space: nowrap;
  gap: 22px;
}
.category-tabs button {
  flex-shrink: 0;
}
.pathway-sequence {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.pathway-sequence > section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sequence-number {
  width: 35px;
  height: 35px;
  background: var(--mint);
  color: var(--brand);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}
.pathway img {
  transition: transform 0.3s;
}
.pathway:hover img {
  transform: scale(1.02);
}
.presence-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bfc9bf;
  margin-right: 7px;
}
.presence-dot.online {
  background: #5da66f;
}
.current-activity {
  display: block;
  margin-top: 5px;
  font-size: 10px;
}
.editor-body {
  grid-template-columns: minmax(400px, 1fr) 290px;
}
.editor-center {
  padding: 16px 30px;
}
.editor-preview {
  max-width: 1050px;
  margin: 0 auto;
}
.editor-preview .learning-stage {
  min-height: 350px;
}
.editor-preview .instruction {
  padding: 25px;
}
.editor-preview .interaction {
  min-height: 350px;
}
.editor-timeline {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
  align-items: end;
  background: #eef1fa;
  border-top: 1px solid #dfe5ef;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 20px 20px;
  min-height: 190px;
  max-height: 230px;
}
.timeline-chapter {
  flex-shrink: 0;
}
.timeline-chapter-title {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  margin-bottom: 6px;
}
.timeline-chapter-title strong {
  font-size: 11px;
  color: #6f7890;
}
.timeline-chapter-title .text-button {
  font-size: 9px;
  padding: 3px 6px;
  min-height: 24px;
}
.timeline-items {
  display: flex;
  align-items: end;
  gap: 12px;
}
.timeline-item {
  width: 150px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--ink);
  flex-shrink: 0;
}
.timeline-item-label {
  font-size: 11px;
  margin-bottom: 6px;
  display: block;
  color: #8a91a1;
}
.timeline-item-label small {
  font-size: 9px;
  padding: 2px 5px;
  background: #e3ecef;
  color: #618895;
  border-radius: 4px;
}
.scene-thumbnail {
  height: 95px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f3d1, #e7ccef);
  padding: 5px;
  overflow: hidden;
}
.timeline-item.selected .scene-thumbnail {
  border-color: #32a6bd;
  box-shadow: 0 0 0 1px #32a6bd;
}
.scene-thumbnail > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 7px;
}
.thumb-text {
  background: white;
  padding: 9px 7px;
  border-radius: 7px;
  overflow: hidden;
}
.thumb-text i {
  display: block;
  background: #e2e4e2;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 4px;
}
.thumb-text i:nth-child(2) {
  width: 80%;
}
.thumb-text strong {
  font-size: 7px;
  display: block;
  font-weight: 500;
  margin-top: 7px;
  line-height: 1.4;
}
.thumb-component {
  display: grid;
  place-items: center;
  background: #fff9;
  border-radius: 8px;
  color: #78828a;
}
.thumb-component .icon {
  width: 30px;
  height: 30px;
}
.chapter-thumbnail {
  width: 125px;
  height: 95px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #d6e2e7;
}
.chapter-thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
}
.chapter-thumbnail > span {
  position: absolute;
  inset: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.timeline-add {
  align-self: center;
  min-width: 100px;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  padding: 12px;
  background: #ffffff80;
  border: 1px dashed #bfcbd3;
  border-radius: 12px;
  color: #77918c;
  flex-shrink: 0;
}
@media (min-width: 1600px) {
  .editor-body {
    grid-template-columns: minmax(500px, 1fr) 340px;
  }
  .timeline-item {
    width: 170px;
  }
  .scene-thumbnail {
    height: 105px;
  }
  .chapter-thumbnail {
    height: 105px;
  }
}
@media (max-width: 1100px) {
  .editor-body {
    grid-template-columns: minmax(350px, 1fr) 260px;
  }
  .editor-center {
    padding: 15px;
  }
  .editor-preview .learning-stage {
    grid-template-columns: 1fr 1fr;
  }
  .editor-preview .instruction {
    padding: 18px;
  }
  .editor-preview .instruction h1 {
    font-size: 22px;
  }
  .editor-preview .instruction > p {
    font-size: 13px;
  }
  .editor-preview .interaction {
    min-height: 330px;
  }
  .editor-preview .sort-bucket {
    padding: 8px;
  }
}
@media (max-width: 760px) {
  .editor-body {
    display: block;
    min-height: 0;
    overflow: auto;
  }
  .editor-preview .learning-stage {
    grid-template-columns: 1fr;
  }
  .editor-preview .instruction {
    min-height: 180px;
  }
  .editor-preview .interaction {
    min-height: 230px;
  }
  .editor-center {
    padding: 12px;
  }
  .properties {
    border-left: 0;
    overflow: visible;
  }
  .editor-timeline {
    min-height: 158px;
    max-height: 180px;
    padding: 8px 12px 14px;
    gap: 14px;
  }
  .timeline-item {
    width: 115px;
  }
  .scene-thumbnail {
    height: 75px;
  }
  .chapter-thumbnail {
    width: 85px;
    height: 75px;
  }
  .timeline-chapter-title strong {
    font-size: 9px;
  }
  .chapter-thumbnail > span {
    font-size: 10px;
  }
  .thumb-text strong {
    font-size: 6px;
  }
  .timeline-item-label {
    font-size: 9px;
  }
  .timeline-item-label small {
    font-size: 8px;
  }
}

/* 好奇工坊 · 明亮的探索手帐。独立色彩与组件层，覆盖基础布局。 */
@font-face {
  font-family: "Wonder Play";
  src: url("/assets/fonts/ZCOOLKuaiLe-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #29294f;
  --muted: #66677f;
  --page: #f7f9fc;
  --line: #dce3ee;
  --brand: #315ca8;
  --brand-dark: #244882;
  --mint: #eaf2ff;
  --pink: #cf287b;
  --pink-dark: #a51f62;
  --pink-soft: #fbe2ed;
  --sky: #299de3;
  --sky-soft: #c5eaff;
  --sun: #ffda45;
  --cream: #fff3db;
  --round-font: "Wonder Play", "Noto Sans SC", sans-serif;
  --radius: 22px;
}
.primary { border-radius: 14px; box-shadow: 0 3px 0 var(--brand-dark); }
.secondary, .icon-button { border-color: var(--line); border-radius: 12px; }
.secondary:hover { background: var(--mint); border-color: #95afd8; }
.primary:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
:focus-visible { outline: 3px solid #315ca8; outline-offset: 4px; }
input, textarea, select { border-color: #cdd6e6; border-radius: 12px; }
input::placeholder, textarea::placeholder { color: #73748a; }
.surface, .exp-card { box-shadow: 0 5px 0 #29294f06; }
.sidebar nav a, .nav-label, .workspace-tag { color: var(--muted); }
.sidebar nav a:hover { background: var(--mint); }
.sidebar .brand > .icon { color: var(--pink); }
.generator { background: #edf4ff; border-color: #d2e0f5; }
.generator-top > span { color: var(--brand); }
.generator select, .generation-options summary { border-color: #cddbf0; }
.topbar { background: #ffffffd9; }
.parent-shell { --brand: #315ca8; --brand-dark: #244882; }
body[data-role="parent"] { --brand: #315ca8; --page: #fff8ee; }
.parent-shell nav a[aria-current] { background: var(--sky-soft); color: var(--ink); }
.parent-shell blockquote { border-color: var(--sky); background: #f0f8ff; }

body[data-role="student"] {
  --brand: var(--pink);
  --brand-dark: var(--pink-dark);
  --mint: var(--pink-soft);
  background: #f7fbff;
}
.child-shell { max-width: 1280px; padding: 20px 32px 64px; font-size: 16px; }
.child-header { background: transparent; border: 0; box-shadow: none; padding: 0; }
.child-top { height: 78px; gap: 16px; }
.child-top .brand { font-family: var(--round-font); font-weight: 400; font-size: 30px; letter-spacing: .02em; }
.child-top .brand > .icon { color: var(--pink); width: 34px; height: 34px; fill: var(--pink); stroke: var(--ink); stroke-width: 1.3; }
.child-metrics { font-size: 15px; }
.child-metrics .pill { background: var(--sun); color: var(--ink); border: 1px solid #e9bc28; border-radius: 99px; font-size: 14px; padding: 9px 16px; }
.child-metrics .avatar { background: #fff; border: 2px solid #97c5e5; color: var(--ink); border-radius: 50%; }
.child-nav { position: static; transform: none; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; gap: 8px; border-radius: 0; }
.child-nav a { font-size: 16px; font-weight: 700; padding: 12px 24px; min-height: 48px; color: #354969; border: 2px solid transparent; border-radius: 16px; }
.child-nav a .icon { width: 23px; height: 23px; stroke-width: 2; }
.child-nav a:last-child { margin-left: auto; background: #ffffffa8; color: var(--pink); }
.child-nav a:hover { background: #fff9; }
.child-nav a[aria-current] { background: #fff; color: var(--pink); border-color: #98c5e4; box-shadow: 0 3px 0 #98c5e4; }
.child-greeting { margin: 36px 0 24px; gap: 20px; }
.child-greeting h1 { font-family: var(--round-font); font-weight: 400; letter-spacing: .01em; font-size: clamp(28px, 3vw, 38px); margin: 0; }
.child-greeting .eyebrow { color: #66718a; letter-spacing: .08em; font-size: 13px; margin-bottom: 10px; }
.streak { background: var(--cream); border: 1px solid #f0dca7; color: #725623; font-size: 13px; border-radius: 99px; }
.daily-dates { gap: 10px; margin: 24px 0; overflow-x: auto; padding: 0 2px 6px; }
.daily-dates button { border: 2px solid #d8e5f1; background: #fff; border-radius: 18px; min-width: 72px; min-height: 80px; flex-shrink: 0; box-shadow: 0 3px 0 #e0eaf2; }
.daily-dates small { font-size: 12px; color: #66677f; }
.daily-dates strong { font-size: 26px; }
.daily-dates .selected { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 3px 0 #171731; }
.daily-dates .selected small { color: #fff; }
.daily-dates button:hover:not(.selected) { border-color: #77b6df; background: #eaf7ff; }
.daily-hero { background: var(--cream); border: 2px solid #e9d8b3; border-radius: 30px; color: var(--ink); min-height: 400px; box-shadow: 0 6px 0 #e9d8b34d; }
.daily-hero > img { left: auto; width: 55%; object-position: center; }
.daily-hero > div { width: 49%; max-width: none; min-height: 400px; background: var(--cream); padding: 36px; border-radius: 0 42px 42px 0; }
.daily-hero .pill { background: #fff; border: 1px solid #e5cfa1; border-radius: 99px; color: #695023; font-size: 12px; }
.daily-hero h2 { font-family: var(--round-font); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.3; margin: 20px 0 16px; }
.daily-hero p { font-size: 15px; line-height: 1.8; color: #626077; }
.hero-meta { font-size: 13px; color: #655135; margin: 20px 0; gap: 20px; }
.child-shell .primary, .player-shell .primary, .daily-hero .primary { background: var(--pink); color: #fff; border: 2px solid var(--pink); box-shadow: 0 4px 0 var(--pink-dark); border-radius: 16px; min-height: 52px; font-size: 16px; font-weight: 700; padding: 12px 22px; }
.child-shell .primary:hover:not(:disabled), .player-shell .primary:hover:not(:disabled) { background: var(--pink-dark); border-color: var(--pink-dark); }
.child-shell .primary:active:not(:disabled), .player-shell .primary:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.child-shell .section-heading h2 { font-family: var(--round-font); font-weight: 400; font-size: 27px; }
.child-shell .section-heading .text-button { font-size: 14px; }
.child-shell .exp-card { border: 2px solid #d6e3ef; border-radius: 24px; box-shadow: 0 5px 0 #e3edf5; }
.child-shell .card-copy { padding: 18px 20px 14px; }
.child-shell .card-copy h3 button { font-size: 19px; font-weight: 700; line-height: 1.6; }
.child-shell .card-copy small, .child-shell .card-footer > span { font-size: 12px; }
.child-shell .card-footer .text-button { font-size: 14px; min-height: 44px; }
.child-shell .card-footer .icon-button { min-height: 44px; width: 44px; }
.child-shell .image-badge { background: #fff9e9; color: #5c4826; font-size: 12px; border-radius: 99px; }
.child-shell .task { border: 2px solid #d6e3ef; border-radius: 22px; }
.child-shell .task h3 { font-size: 17px; }
.child-shell .task small, .child-shell .task p { font-size: 12px; }
.child-shell .secondary { min-height: 44px; font-size: 14px; border-width: 2px; color: #315ca8; background: #f5faff; }
.task-icon { background: var(--sky-soft); color: #315ca8; }
.child-shell .category-tabs { flex-wrap: wrap; gap: 10px; border: 0; }
.child-shell .category-tabs button { border: 1px solid #cddcea; border-radius: 99px; padding: 10px 18px; font-size: 14px; background: #fff; }
.child-shell .category-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.child-shell .category-tabs button::after { display: none; }
.profile-card { background: linear-gradient(var(--sky-soft) 55%, var(--ink) 55%); border-color: #a5cce9; }
.profile-stamp { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.child-generator { background: #e8f5ff; border: 2px solid #b3d6f0; }
.child-generator > textarea { font-size: 24px; }
.child-shell .tier p, .child-shell .ledger-row { font-size: 14px; }
.game-card { background: var(--cream); border: 2px solid #ead8b1; }
.game-art { background: var(--sky-soft); }

/* Shared registered learning components, including teacher preview. */
.learning-stage { background: #e8f4ff; border: 2px solid #b9d6ed; box-shadow: 0 6px 0 #c7deef66; }
.instruction { border-color: #d2e1f0; }
.instruction h1 { font-family: var(--round-font); font-weight: 400; letter-spacing: .01em; }
.interaction { background: #f6fbff; border-radius: 22px; }
.answer-option { border-color: #b9cce4; box-shadow: 0 4px 0 #b9cce4; color: var(--ink); }
.answer-option:has(:checked) { background: var(--pink-soft); border-color: var(--pink); box-shadow: 0 4px 0 var(--pink); }
.choice-index { background: #e9f3ff; color: #315ca8; }
.answer-option:has(:checked) .choice-index { background: var(--pink); color: white; }
.answer-option:has(:focus-visible) { outline-color: #315ca8; }
.flashcard, .sort-card { border-color: #52628f; box-shadow: 5px 6px 0 #52628f; }
.flashcard.flipped { background: var(--cream); }
.card-motif { background: var(--sun); color: var(--ink); }
.flashcard small, .sort-card small, .card-nav span, .flashcard-area > p { font-size: 13px; }
.card-nav .secondary { min-height: 44px; font-size: 14px; }
.sort-bucket { background: #fff; border: 2px dashed #a5c6e5; }
.sort-bucket.drag-over { background: #e2f4ff; border: 2px solid #315ca8; }
.sorted-item { background: #e2f2ff; border-color: #afcce7; color: #304d79; }
.word-tile { border-color: #52628f; box-shadow: 3px 4px #52628f; color: var(--ink); }
.word-tile:hover { background: var(--sky-soft); }
.fill-sentence .blank.active { background: var(--pink-soft); border-color: var(--pink); color: var(--pink-dark); }
.player-shell { background: #f2f8ff; }
.player-header { background: var(--sky-soft); border: 2px solid #9bd0ef; padding: 16px 20px; border-radius: 24px; }
.player-header .pill { background: var(--sun); color: var(--ink); border-radius: 99px; }
.player-header .brand { font-family: var(--round-font); font-weight: 400; font-size: 23px; }
.player-header .icon-button { border-color: #97bbd8; background: #fff; min-width: 44px; min-height: 44px; }
.player-header progress { accent-color: var(--pink); background: white; }
.player-header progress::-webkit-progress-bar { background: white; }
.player-header progress::-webkit-progress-value { background: var(--pink); }
.player-shell .instruction > p { font-size: 20px; line-height: 1.9; }
.player-shell .instruction .text-button { font-size: 15px; min-height: 44px; }
.player-chapter { color: #66677f; font-size: 13px; }
.completion-medal { background: var(--sun); color: var(--ink); }
.completion h1 { font-family: var(--round-font); font-weight: 400; }

@media (max-width: 760px) {
  .child-shell { padding: 12px 16px calc(116px + env(safe-area-inset-bottom)); }
  .child-header { padding: 0 14px; border-radius: 22px; }
  .child-top { height: 76px; gap: 8px; }
  .child-top .brand { font-size: 23px; gap: 6px; }
  .child-top .brand > .icon { width: 27px; height: 27px; }
  .child-metrics { gap: 8px; }
  .child-metrics > strong { display: none; }
  .child-metrics .pill { font-size: 12px; padding: 8px 10px; }
  .child-metrics .avatar { width: 32px; height: 32px; }
  .child-nav { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; width: calc(100% - 24px); padding: 7px; background: #fff; border: 2px solid #b8d5e9; border-radius: 23px; box-shadow: 0 5px 0 #b8d5e9, 0 8px 28px #29294f17; gap: 3px; }
  .child-nav a { flex: 1; min-width: 0; flex-direction: column; font-size: 11px; padding: 8px 2px; gap: 4px; border-radius: 15px; }
  .child-nav a .icon { width: 23px; height: 23px; }
  .child-nav a:last-child { margin-left: 0; background: var(--pink-soft); }
  .child-nav a[aria-current] { background: var(--sky-soft); border-color: transparent; color: var(--ink); box-shadow: none; }
  .child-greeting { margin: 28px 0 20px; align-items: start; flex-direction: column; gap: 14px; }
  .child-greeting h1 { font-size: 29px; line-height: 1.4; }
  .child-greeting .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .streak { font-size: 12px; padding: 7px 12px; }
  .daily-dates { gap: 8px; margin: 18px 0; }
  .daily-dates button { min-width: 48px; padding: 9px 6px; min-height: 68px; border-radius: 14px; }
  .daily-dates strong { font-size: 23px; }
  .daily-dates small { font-size: 11px; }
  .daily-hero { padding-top: 205px; border-radius: 24px; min-height: 0; }
  .daily-hero > img { top: 0; width: 100%; height: 225px; object-position: center 48%; }
  .daily-hero > div { width: 100%; padding: 24px; min-height: 0; border-radius: 24px 24px 0 0; }
  .daily-hero h2 { font-size: 30px; margin: 16px 0 12px; }
  .daily-hero p { font-size: 15px; }
  .daily-hero .pill { font-size: 11px; }
  .daily-hero .primary { width: 100%; min-height: 52px; font-size: 16px; }
  .hero-meta { font-size: 13px; margin: 16px 0 22px; }
  .child-shell .section-heading { gap: 8px; margin-top: 32px; }
  .child-shell .section-heading h2 { font-size: 23px; }
  .child-shell .section-heading .text-button { font-size: 12px; }
  .child-shell .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .child-shell .card-image { height: 205px; }
  .child-shell .card-copy h3 { min-height: 0; }
  .child-shell .card-copy h3 button { font-size: 19px; }
  .child-shell .task { padding: 16px; gap: 12px; }
  .child-shell .task h3 { font-size: 16px; }
  .child-shell .task .secondary { font-size: 13px; padding: 9px 12px; }
  .task-icon { padding: 9px; }
  .child-generator { padding: 20px; }
  .child-generator > textarea { font-size: 21px; }
  .player-header { gap: 8px; padding: 12px; border-radius: 20px; }
  .player-header .brand { font-size: 18px; }
  .player-header .pill { font-size: 11px; }
  .player-header .icon-button { width: 44px; height: 44px; }
  .player-shell .instruction { padding: 22px; }
  .player-shell .instruction h1 { font-size: 28px; }
  .player-shell .instruction > p { font-size: 18px; }
  .player-chapter { font-size: 12px; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .child-shell { padding-left: 12px; padding-right: 12px; }
  .child-top .brand { font-size: 21px; }
  .child-metrics .avatar { display: none; }
  .daily-dates { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Short, event-driven student feedback. No looping attention traps. */
.sound-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 7px 10px; border: 1px solid #97bbd8; border-radius: 15px; background: #fff; color: var(--ink); font-size: 12px; white-space: nowrap; }
.sound-toggle .icon { width: 18px; height: 18px; }
.sound-toggle[aria-pressed="false"] { color: var(--muted); background: #f2f6fa; }
body[data-role="student"] :is(button, .answer-option, .child-nav a) { transition: transform 140ms ease, background-color 180ms ease, box-shadow 140ms ease; touch-action: manipulation; }
body[data-role="student"] :is(button, .answer-option, .child-nav a):active:not(:disabled) { transform: translateY(3px) scale(.97); }
body[data-role="student"] .answer-option:has(:checked) .choice-index { animation: choice-pop 300ms ease-out; }
body[data-role="student"] .sorted-item { animation: found-place 260ms ease-out; }
.completion { position: relative; isolation: isolate; }
.completion > :not(.star-shower) { position: relative; z-index: 1; }
.reward-earned { color: #80531a; font-weight: 700; background: var(--cream); border: 2px solid var(--sun); border-radius: 18px; padding: 12px 18px; width: fit-content; margin: 20px auto; }
.star-shower { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: 30px; z-index: 0; }
.star-shower span { position: absolute; left: var(--x); top: 12%; color: #d39112; font-size: 28px; opacity: 0; animation: star-journey 1500ms var(--delay) ease-out forwards; }
.star-shower span:nth-child(3n) { color: var(--pink); font-size: 20px; }
.star-shower span:nth-child(3n + 1) { color: #299de3; }
@keyframes star-journey { 0% { opacity: 0; transform: translateY(35px) scale(.4) rotate(0); } 20% { opacity: 1; } 65% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--drift), 320px) scale(1.15) rotate(120deg); } }
@keyframes choice-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes found-place { from { opacity: .5; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .child-top { flex-wrap: wrap; height: auto; min-height: 76px; padding: 12px 0; }
  .child-metrics { margin-left: auto; }
  .child-metrics .sound-toggle { padding: 6px 8px; }
  .player-header .sound-toggle { margin-left: auto; }
  .reward-earned { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .star-shower { display: none; }
}

/* Company operations: quiet ink navigation, warm paper, compact evidence tables. */
body[data-role="operator"] { --ops-ink:#183f43; --ops-accent:#167369; --ops-muted:#687d7d; --ops-line:#dce5e1; --ops-paper:#f5f6f1; --ops-surface:#fffefa; background:var(--ops-paper); color:#223d41; }
.ops-shell { display:grid; grid-template-columns:238px minmax(0,1fr); min-height:100vh; font-family:"DM Sans","Noto Sans SC",sans-serif; }
.ops-sidebar { background:var(--ops-ink); color:#dfebe5; position:sticky; top:0; height:100vh; height:100dvh; padding:32px 18px 20px; display:flex; flex-direction:column; overflow:hidden; }
.ops-sidebar > .ops-brand, .ops-sidebar > .ops-nav-label { flex-shrink:0; }
.ops-sidebar > nav { flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:4px 4px 12px; }
.ops-brand { color:#fffef1; display:flex; gap:12px; align-items:center; font-size:22px; font-weight:700; padding:0 12px 30px; text-decoration:none; }
.ops-brand>.icon { width:34px; height:34px; color:#e8d79e; }
.ops-brand small { display:block; margin-top:5px; color:#a2bebb; font-size:10px; letter-spacing:3px; font-weight:500; }
.ops-nav-label { padding:0 14px; margin:20px 0 12px; color:#a9c5c2; font-size:11px; letter-spacing:2px; }
.ops-sidebar nav a { display:flex; gap:12px; align-items:center; padding:13px 14px; color:#d5e3df; text-decoration:none; border-radius:8px; font-size:14px; margin:3px 0; transition:background .18s; }
.ops-sidebar nav a:hover { background:#285358; }
.ops-sidebar nav a[aria-current] { background:#dbe9db; color:#173e40; font-weight:700; }
.ops-sidebar-bottom { display:flex; gap:10px; align-items:center; margin-top:auto; padding:20px 6px 0; border-top:1px solid #396064; font-size:12px; flex-shrink:0; }
.ops-sidebar-bottom > div { flex:1; min-width:0; }
.ops-sidebar-bottom strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ops-sidebar-bottom .ops-avatar, .ops-sidebar-bottom .icon-button { flex-shrink:0; }
.ops-sidebar-bottom small { display:block; margin-top:4px; color:#a9c5c2; font-size:11px; }
.ops-sidebar-bottom .icon-button { margin-left:auto; color:#d5e3df; }
.ops-avatar { background:#b5cfc1; color:#183f43; width:34px; height:34px; display:grid; place-items:center; border-radius:50%; }
.ops-workspace { min-width:0; display:flex; flex-direction:column; }
.ops-topbar { min-height:76px; padding:16px 40px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--ops-line); background:#fffefa99; font-size:13px; }
.ops-topbar>div { display:flex; gap:16px; align-items:center; }
.ops-separator { color:#9aacaa; margin:0 12px; }
.ops-main { padding:40px; width:100%; max-width:1680px; margin:auto; flex:1; animation:ops-appear .22s ease-out; }
.ops-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:30px; }
.ops-heading .eyebrow { color:var(--ops-accent); font-size:10px; letter-spacing:2px; margin:0 0 12px; }
.ops-heading h1 { font-family:"DM Sans","Noto Sans SC",sans-serif; font-size:30px; letter-spacing:-1px; margin:0 0 12px; font-weight:650; }
.ops-heading p { font-size:13px; color:var(--ops-muted); margin:0; line-height:1.8; }
.ops-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
body[data-role="operator"] .primary { background:var(--ops-accent); border-color:var(--ops-accent); color:#fff; box-shadow:0 2px 0 #0e554c; border-radius:7px; font-size:13px; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:10px 18px; }
body[data-role="operator"] .primary:hover { background:#105c54; }
body[data-role="operator"] .secondary { background:#fffefa; border:1px solid #cbd8d2; color:var(--ops-ink); box-shadow:0 1px 2px #183f430a; border-radius:7px; font-size:12px; min-height:38px; }
body[data-role="operator"] .text-button { color:var(--ops-accent); font-size:12px; }
.ops-badge { display:inline-flex; align-items:center; white-space:nowrap; background:#edf1ee; border:1px solid #dce5df; color:#60716c; border-radius:5px; font-size:11px; padding:4px 8px; line-height:1.5; }
.ops-badge.green { color:#22705a; background:#e7f2e8; border-color:#d1e5d4; }
.ops-badge.amber { color:#8c6c2f; background:#fbf3dd; border-color:#ecdfb9; }
.ops-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:28px; }
.ops-metric { padding:22px 24px; background:var(--ops-surface); border:1px solid var(--ops-line); border-radius:12px; text-decoration:none; color:inherit; box-shadow:0 4px 18px #183f4303; transition:transform .18s,box-shadow .18s; }
.ops-metric:hover { transform:translateY(-2px); box-shadow:0 6px 20px #183f430c; }
.ops-metric>span { display:flex; justify-content:space-between; color:#607775; font-size:12px; }
.ops-metric .icon { width:15px; height:15px; color:#98aaa0; }
.ops-metric>strong { display:block; font-size:38px; line-height:1.4; margin:14px 0 8px; font-weight:550; letter-spacing:-1px; }
.ops-metric>small { color:#7a8981; font-size:11px; }
.ops-panel { background:var(--ops-surface); border:1px solid var(--ops-line); border-radius:12px; margin-bottom:24px; padding:24px; min-width:0; box-shadow:0 4px 18px #183f4303; }
.ops-panel-title { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:20px; }
.ops-panel-title h2 { font-size:16px; font-weight:650; margin:0; }
.ops-panel-title:empty { display:none; }
.ops-panel-title a { color:var(--ops-accent); font-size:12px; text-decoration:none; }
.ops-overview-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:24px; }
.ops-chart-legend { display:flex; gap:20px; font-size:11px; color:var(--ops-muted); }
.ops-chart-legend span:before { content:""; display:inline-block; width:8px; height:8px; border-radius:2px; background:#548b7e; margin-right:6px; }
.ops-chart-legend span+span:before { background:#d8b668; }
.ops-summary { margin:0; }
.ops-summary>div { display:flex; justify-content:space-between; align-items:center; padding:15px 0; border-bottom:1px solid #eaf0e8; gap:16px; }
.ops-summary dt { color:var(--ops-muted); font-size:12px; }
.ops-summary dd { margin:0; font-size:18px; font-weight:600; }
.ops-summary-horizontal { display:flex; gap:24px; flex-wrap:wrap; }
.ops-summary-horizontal>div { display:block; border:0; min-width:150px; }
.ops-summary-horizontal dd { margin-top:12px; font-size:16px; }
.ops-footnote { font-size:11px; color:#788a80; line-height:1.8; margin:18px 0 0; }
.ops-table-wrap { width:100%; overflow:auto; }
.ops-table { border-collapse:collapse; width:100%; text-align:left; white-space:nowrap; font-size:12px; }
.ops-table th { background:#f3f5ee; color:#6f7d73; font-weight:500; padding:13px 14px; border-bottom:1px solid #e4eade; font-size:11px; }
.ops-table td { padding:17px 14px; border-bottom:1px solid #eaf0e8; color:#3f5651; }
.ops-table tbody tr:last-child td { border-bottom:0; }
.ops-table tbody tr:hover { background:#f6f8f1; }
.ops-table td strong { font-size:12px; }
.ops-table td small { display:block; color:#829087; font-size:10px; margin-top:7px; }
.ops-table a { color:var(--ops-accent); text-decoration:none; font-weight:600; }
.ops-table a:hover { text-decoration:underline; }
.ops-filters { display:flex; gap:12px; align-items:center; margin:0 0 24px; flex-wrap:wrap; }
.ops-search { display:flex; align-items:center; gap:10px; flex:1; max-width:360px; border:1px solid #d4dfd6; border-radius:7px; padding:0 12px; background:#fafbf7; }
.ops-search .icon { width:16px; height:16px; color:#7b8b80; flex-shrink:0; }
.ops-search input { border:0; background:transparent; box-shadow:none; padding:11px 0; min-width:100px; font-size:12px; }
.ops-filters select { width:auto; min-height:40px; font-size:12px; border:1px solid #d4dfd6; background:#fafbf7; border-radius:7px; }
.ops-pagination { display:flex; justify-content:space-between; align-items:center; gap:16px; border-top:1px solid var(--ops-line); padding-top:20px; margin-top:10px; color:var(--ops-muted); font-size:12px; }
.ops-pagination>div { display:flex; gap:10px; }
.ops-empty { padding:60px 20px; text-align:center; color:var(--ops-muted); }
.ops-empty>.icon { height:32px; width:32px; color:#8baa91; }
.ops-empty h3 { font-size:17px; color:var(--ops-ink); font-weight:500; }
.ops-empty p { font-size:13px; }
.ops-studio-note { display:flex; gap:16px; padding:22px 24px; border:1px solid #dbe4cd; background:#ecf0e0; border-radius:10px; margin-bottom:28px; }
.ops-studio-note>.icon { width:30px; height:30px; color:#638256; flex-shrink:0; }
.ops-studio-note strong { font-size:14px; }
.ops-studio-note p { margin:8px 0 0; font-size:12px; color:#6c7d64; line-height:1.9; }
.ops-studio-note>div { flex:1; min-width:0; }
.ops-studio-note>button { align-self:center; flex-shrink:0; }
.ops-studio-status { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.ops-studio-status button { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border:1px solid var(--ops-line); border-radius:7px; background:var(--ops-surface); color:var(--ops-ink); font-size:13px; transition:background .18s; }
.ops-studio-status button:hover { background:#edf1ee; }
.ops-studio-status button[aria-pressed="true"] { background:var(--ops-accent); border-color:var(--ops-accent); color:#fff; }
.ops-studio-status button span { font-size:11px; font-variant-numeric:tabular-nums; }
.ops-studio-filters .ops-filters { margin-bottom:0; }
.ops-course-update { position:absolute; top:16px; right:16px; padding:4px 8px; border:1px solid #ecdfb9; border-radius:5px; background:#fbf3dd; color:#8c6c2f; font-size:11px; line-height:1.5; }
@media(max-width:760px) { .ops-studio-note { flex-wrap:wrap; padding:18px; } .ops-studio-note>button { margin-left:46px; } .ops-studio-status button { padding:10px 12px; } .ops-studio-filters .ops-search { flex-basis:100%; } }
.ops-course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.ops-course-card { border:1px solid var(--ops-line); border-radius:12px; overflow:hidden; background:var(--ops-surface); box-shadow:0 4px 18px #183f4306; }
.ops-course-cover { height:160px; overflow:hidden; position:relative; background:#e5e8da; }
.ops-course-cover img { width:100%; height:100%; object-fit:cover; }
.ops-course-cover .ops-badge { position:absolute; left:16px; top:16px; }
.ops-course-body { padding:20px; }
.ops-course-body>p:first-child,.ops-course-body>small { font-size:11px; color:#718776; }
.ops-course-body h2 { font-size:18px; line-height:1.6; margin:12px 0; }
.ops-course-goal { font-size:12px; color:#6c7b6f; line-height:1.9; max-height:68px; overflow:auto; }
.ops-release-status { font-size:11px; padding-top:16px; border-top:1px solid var(--ops-line); color:#7b876e; }
.ops-course-actions { display:flex; justify-content:space-between; align-items:center; gap:6px; margin-top:18px; flex-wrap:wrap; }
.ops-course-actions .primary,.ops-course-actions .secondary { padding:8px 12px; }
.ops-footer { padding:20px 40px; display:flex; justify-content:space-between; gap:20px; color:#8d9b90; font-size:10px; }
.ops-back { display:inline-block; color:var(--ops-accent); margin-bottom:24px; text-decoration:none; font-size:12px; }
.ops-shortcuts { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:24px; }
.ops-shortcuts a { border:1px solid var(--ops-line); border-radius:10px; background:var(--ops-surface); padding:20px; color:var(--ops-ink); display:flex; align-items:center; gap:10px; text-decoration:none; font-size:13px; }
.ops-shortcuts a .icon:last-child { margin-left:auto; width:16px; }
.ops-evidence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ops-evidence article { padding:20px; border:1px solid var(--ops-line); border-radius:8px; background:#fafbf5; }
.ops-evidence article>div { display:flex; justify-content:space-between; align-items:center; }
.ops-evidence small,.ops-evidence p { font-size:11px; color:var(--ops-muted); }
.ops-evidence h3 { font-size:14px; }
.ops-evidence blockquote { margin:16px 0; font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.ops-note-text { white-space:pre-wrap; font-size:13px; }
@keyframes ops-appear { from { opacity:.4; transform:translateY(5px); } to { opacity:1; transform:translateY(0); } }
@media(min-width:1600px) { .ops-main { padding:48px 56px; } }
@media(max-width:1150px) { .ops-shell { grid-template-columns:210px minmax(0,1fr); } .ops-main { padding:28px; } .ops-overview-grid { grid-template-columns:1fr; } .ops-course-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .ops-metrics { gap:12px; } .ops-metric { padding:18px; } .ops-shortcuts { grid-template-columns:repeat(2,1fr); } }
@media(max-width:760px) { .ops-shell { display:block; } .ops-sidebar { position:static; height:auto; padding:20px; } .ops-brand { padding:0 0 12px; } .ops-sidebar>.ops-nav-label,.ops-sidebar-bottom { display:none; } .ops-sidebar nav { display:flex; overflow:auto; gap:6px; } .ops-sidebar nav a { white-space:nowrap; padding:10px; font-size:12px; } .ops-sidebar nav .ops-nav-label { display:none; } .ops-sidebar nav .icon { display:none; } .ops-topbar { padding:12px 20px; min-height:62px; gap:12px; flex-wrap:wrap; } .ops-main { padding:24px 16px; } .ops-heading { align-items:flex-start; flex-direction:column; } .ops-heading h1 { font-size:26px; } .ops-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .ops-metric>strong { font-size:32px; } .ops-panel { padding:18px; } .ops-chart { gap:3px; } .ops-chart-day:nth-child(even)>small { visibility:hidden; } .ops-course-grid,.ops-evidence { grid-template-columns:1fr; } .ops-footer { padding:16px; flex-direction:column; } .ops-shortcuts { gap:12px; } .ops-shortcuts a { padding:14px; font-size:12px; } .ops-search { max-width:none; width:100%; } }
@media(prefers-reduced-motion:reduce) { .ops-main { animation:none; } .ops-metric { transition:none; } }
.ops-chapter { border:1px solid var(--ops-line); border-radius:8px; padding:18px; margin-top:16px; }
.ops-chapter summary { cursor:pointer; font-size:14px; font-weight:600; }
.ops-chapter article { padding:16px 0; border-bottom:1px solid var(--ops-line); }
.ops-chapter h3 { font-size:14px; }
.ops-chapter p { font-size:13px; line-height:1.9; white-space:pre-wrap; }
.ops-chapter small { color:var(--ops-muted); font-size:11px; }
.ops-chart-svg { width:100%; height:auto; min-height:180px; margin-top:12px; display:block; }
.ops-chart-svg line { stroke:#e8ede7; stroke-width:1; }
.ops-chart-svg text { fill:#7f8c84; font-size:10px; }
.ops-bar-start { fill:#548b7e; }
.ops-bar-complete { fill:#d8b668; }

/* Benchmark lesson: an illustrated field notebook. Content stays independent of art. */
.chapter-trail { display:flex; gap:8px; margin:12px 0 18px; }
.chapter-trail > span { flex:1; display:flex; align-items:center; gap:10px; padding:12px 16px; border:1px solid #d4deec; border-radius:14px; background:#fff8; color:var(--muted); font-size:13px; }
.chapter-trail > [aria-current] { background:var(--cream); border:2px solid var(--pink); color:var(--ink); font-weight:700; }
.chapter-trail > .chapter-done { background:#e4f2e8; color:#28604b; }
.chapter-trail .chapter-art { width:48px; height:36px; flex:0 0 48px; border-radius:7px; object-fit:contain; background:var(--cream); }
.preview-position { display:flex; align-items:center; gap:8px; font-size:12px; min-width:0; white-space:nowrap; }
.preview-position select { width:min(250px,24vw); min-height:42px; padding:6px 10px; border:1px solid #a9bfd4; border-radius:10px; background:#fff; color:var(--ink); }
@media(max-width:760px) { .player-header:has(.preview-position) progress { grid-column:1 / 3; }.player-header .preview-position { flex:1 1 100%; grid-column:1 / -1; grid-row:3; }.preview-position select { flex:1; width:auto; min-width:0; }.chapter-trail .chapter-art { width:36px; height:27px; flex-basis:36px; } }
.player-shell .learning-stage { min-height:min(620px, calc(100svh - 225px)); align-items:stretch; }
.player-shell .instruction { padding:clamp(24px,3vw,48px); }
.player-shell .instruction h1 { font-size:clamp(26px,3vw,40px); line-height:1.3; }
.player-shell .instruction > p { font-size:18px; line-height:1.9; }
.story-panel { display:flex; flex-direction:column; height:100%; gap:16px; padding:12px; }
.lesson-illustration { flex:1; margin:0; min-height:280px; overflow:hidden; border-radius:18px; background:var(--cream); }
.lesson-illustration img { display:block; width:100%; height:100%; max-height:540px; object-fit:contain; }
.story-panel form { margin-top:auto; }
.story-panel .primary { width:100%; }
.lesson-note { display:flex; gap:10px; background:var(--cream); border:1px solid #dcc9a4; border-radius:14px; padding:16px; font-size:13px; line-height:1.8; margin:12px 0; }
.lesson-note .icon { flex-shrink:0; margin-top:3px; }
.card-progress { width:100%; display:flex; justify-content:space-between; gap:12px; font-size:12px; color:var(--muted); }
.card-dots { display:flex; justify-content:center; gap:10px; margin:14px 0; }
.card-dots span { height:10px; width:10px; border-radius:50%; background:#cad4e4; }
.card-dots .seen { background:#426952; }
.card-dots .current { outline:2px solid var(--ink); outline-offset:3px; }
.flashcard-area { gap:14px; }
.flashcard { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; }
.flashcard.flipped strong { font-size:20px; line-height:1.8; }
.term-diagram { display:block; position:relative; width:200px; height:110px; margin:8px auto 0; }
.diagram-deck { position:absolute; top:42px; left:10px; right:10px; height:9px; background:#a7c3d6; border-radius:3px; border:2px solid var(--ink); }
.diagram-support { position:absolute; top:51px; width:32px; height:38px; background:#c4d5e6; border:2px solid var(--ink); border-radius:3px; }
.diagram-support.left { left:10px; }.diagram-support.right { right:10px; }
.diagram-load { position:absolute; top:4px; left:0; right:0; font-size:24px; color:#90a9bc; }
.diagram-span { position:absolute; bottom:0; left:40px; right:40px; font-family:serif; font-size:40px; line-height:1; color:#90a9bc; transform:scaleX(2.7); }
.term-diagram.term-deck > .diagram-deck { background:var(--sun); }
.term-diagram.term-span > .diagram-span, .term-diagram.term-load > .diagram-load { color:var(--pink); }
.answer-review { text-align:left; border-radius:14px; border:1px solid #c3d2e2; background:#fff9; padding:8px 16px; margin:20px 0; }
.answer-review p { font-size:14px; line-height:1.8; margin:8px 0; overflow-wrap:anywhere; }
.answer-review .answer-review-label { color:var(--muted); font-size:12px; margin:6px 0; }
.answer-review section + section { border-top:1px solid #c3d2e2; margin-top:10px; padding-top:4px; }
.answer-review-list { list-style:none; padding:0; margin:0; display:grid; gap:2px; }
.answer-review-row { min-width:0; padding:4px 10px; border:1px solid transparent; border-radius:8px; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.answer-review-value { min-width:0; }
.answer-review-row.needs-attention { background:#fff3db; border-color:#b87a23; border-left-width:4px; }
.feedback { padding:24px; }
.feedback > p:not(.eyebrow) { line-height:1.9; }
.feedback .primary { width:100%; }
.fill-bank { padding:24px; }.fill-bank h2 { font-family:var(--round-font); font-weight:400; font-size:26px; }
.word-tile { touch-action:manipulation; }.word-tile small { display:block; font-size:10px; line-height:1.4; font-weight:400; }
.word-used { background:var(--cream); }
.blank { min-width:72px; min-height:48px; touch-action:manipulation; }
.draft-status { display:flex; gap:12px; justify-content:space-between; color:var(--muted); font-size:11px; margin:12px 0; }
.reflection-form textarea { min-height:230px; font-size:17px; line-height:1.9; }
.evidence-board { background:var(--cream); border:2px solid #e4d2aa; border-radius:20px; padding:clamp(18px,3vw,32px); flex:1; display:flex; flex-direction:column; justify-content:center; }
.evidence-board h2 { font-family:var(--round-font); font-size:30px; font-weight:400; margin:10px 0; }
.evidence-board > p { font-size:13px; line-height:1.8; }
.evidence-scroll { overflow-x:auto; }
.evidence-board table { border-collapse:collapse; width:100%; margin:20px 0; font-size:13px; }
.evidence-board th,.evidence-board td { padding:18px 8px; border-bottom:1px solid #dbcaa9; text-align:center; }
.evidence-board tbody th { text-align:left; }.evidence-board td { font-size:28px; font-weight:700; color:var(--ink); }.evidence-board small { font-size:10px; margin-left:4px; font-weight:400; }
.evidence-board tbody tr:last-child { background:#ffde704d; }
.evidence-note { color:#665a42; }
.completion-review { background:var(--cream); border:1px solid #dfcfae; padding:24px 32px; text-align:left; border-radius:20px; margin:24px 0; }
.completion-review h3 { font-size:18px; }.completion-review ol { padding-left:24px; }.completion-review li { padding:8px 0 8px 6px; font-size:15px; line-height:1.8; }
.completion-review blockquote { margin:20px 0 0; border-top:1px dashed #bdae91; padding:20px 0 0; }.completion-review blockquote span { color:var(--muted); font-size:12px; }.completion-review blockquote p { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; }
.editor-preview .story-panel { padding:0; }.editor-preview .lesson-illustration { min-height:200px; }.editor-preview .term-diagram { transform:scale(.8); margin:-8px auto; }.editor-preview .evidence-board { padding:16px; }.editor-preview .evidence-board td { font-size:20px; }.editor-preview .evidence-board th,.editor-preview .evidence-board td { padding:10px 6px; }
@media (max-width:760px) {
  .chapter-trail { gap:6px; margin:12px 0; }.chapter-trail > span { padding:9px 6px; gap:4px; flex-direction:column; text-align:center; font-size:11px; }
  .player-shell .learning-stage { min-height:0; gap:8px; }.player-shell .instruction { padding:24px 18px; }.player-shell .instruction h1 { font-size:28px; }.player-shell .instruction > p { font-size:16px; line-height:1.85; }
  .story-panel { padding:4px; gap:12px; }.lesson-illustration { min-height:0; aspect-ratio:3/2; flex:auto; }.lesson-illustration img { height:100%; }
  .player-shell .interaction { min-height:0; }.player-shell .flashcard-area { padding:20px 10px; }.player-shell .flashcard { max-width:100%; min-height:290px; }.flashcard.flipped strong { font-size:18px; }
  .card-progress { font-size:11px; }.fill-bank { padding:18px 12px; }.feedback { padding:20px 12px; }.feedback h2 { font-size:25px; }.answer-review { padding:8px 12px; }
  .evidence-board { padding:20px 12px; }.evidence-board h2 { font-size:26px; }.evidence-board th,.evidence-board td { padding:14px 5px; font-size:11px; }.evidence-board td { font-size:25px; }.evidence-board small { display:block; }
  .completion-review { padding:18px; }.completion-review li { font-size:14px; }.completion-stats { gap:14px; flex-wrap:wrap; }
  .player-header .icon-button { width:44px; height:44px; min-height:44px; }
}
@media (prefers-reduced-motion:reduce) { .chapter-trail *, .flashcard, .word-tile { transition:none; } }
@media (max-width:760px) {
  .player-header { display:grid; grid-template-columns:28px minmax(40px,1fr) 44px 44px 44px; gap:8px; }
  .player-header .brand { font-size:0; flex:none; gap:0; }.player-header .brand .icon { width:26px; height:26px; }
  .player-header .pill { justify-self:start; padding:6px 8px; font-size:10px; }
  .player-header .sound-toggle { padding:0; width:44px; height:44px; min-height:44px; justify-content:center; }
  .player-header .sound-toggle span { display:none; }.player-header progress { grid-column:1/-1; height:6px; order:initial; }
  .chapter-trail > span { flex:0 0 36px; padding:8px 6px; font-size:11px; flex-direction:row; justify-content:center; }
  .chapter-trail > span:not([aria-current]) > span, .chapter-trail > span:not([aria-current]) .chapter-art { display:none; }.chapter-trail > [aria-current] { flex:1; gap:8px; }
  .player-shell .instruction { padding:18px; }.player-shell .instruction h1 { margin-top:14px; font-size:26px; }.player-shell .instruction > p { margin:12px 0; }
  .player-shell .instruction .text-button { margin-top:0; }
  .player-shell .scene-flashcards .instruction > p { font-size:15px; }
}

/* Local edits keep their DOM; page turns are reserved for activity changes. */
.learning-stage { transform-origin:left center; }
.flashcard { transform-origin:center center; height:390px; overflow:auto; }
.flashcard strong { flex-shrink:0; }
.completion-review blockquote { display:block; width:100%; box-sizing:border-box; border-left:3px solid #bdae91; padding:18px 20px; text-align:left; }
.completion-review blockquote > span { display:block; text-align:left; }
.completion-review blockquote > p { margin:10px 0 0; padding:0; text-align:left; text-indent:0; }
@media (max-width:760px) { .flashcard { height:360px; }.completion-review blockquote { padding:16px; } }
.player-shell .learning-stage, .editor-preview .learning-stage { animation:none; }
/* A right-hand leaf hinged at the gutter, with a real reverse face. */
.book-turn-layer { position:fixed; inset:0; z-index:100; pointer-events:none; overflow:hidden; }
.book-left-cover { position:absolute; margin:0; box-sizing:border-box; }
.book-turn-leaf { position:absolute; transform-origin:left center; transform-style:preserve-3d; }
.book-face { position:absolute; inset:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; border-radius:18px; background:#f6faff; padding:16px; box-sizing:border-box; overflow:hidden; box-shadow:6px 8px 24px #29294f30; }
.book-face > * { width:100%; height:100%; box-sizing:border-box; margin:0; }
.book-back { transform:rotateY(180deg); background:#fffdf6; }
.book-front::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(90deg,#29294f20,transparent 12%); }
/* A page change has one scroll destination; late images cannot move the reader. */
body.in-player { overflow-anchor:none; scroll-behavior:auto; }
.player-shell .lesson-illustration { aspect-ratio:3/2; flex:none; }
.player-shell .lesson-illustration img { height:100%; }
.player-shell .activity-illustration { height:220px; }
.player-shell .activity-illustration img { height:100%; }
.player-tools { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 4px 0; }
.page-navigation { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.page-navigation .text-button { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.page-navigation-note { color:var(--muted); font-size:13px; }
.lesson-help-button { min-height:44px; white-space:nowrap; }
.page-review { display:flex; flex-direction:column; align-items:stretch; gap:16px; width:100%; }
.page-review > p { margin:0; color:var(--muted); }
.page-review > .primary { align-self:flex-start; }
.review-cards { margin:0; display:grid; gap:12px; }
.review-cards > div { padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--cream); }
.review-cards dt { font-weight:700; }
.review-cards dd { margin:8px 0 0; line-height:1.8; }
.review-options { margin:0; padding:0 0 0 24px; line-height:1.9; }
.review-options li + li { margin-top:12px; }
.lesson-help-options { display:grid; gap:12px; margin-top:24px; }
.lesson-help-options .secondary { min-height:52px; text-align:left; justify-content:flex-start; }
@media (max-width:760px) {
  .player-tools { gap:8px; align-items:flex-start; padding-top:12px; }
  .page-navigation { gap:4px; }
  .page-navigation-note { display:none; }
  .lesson-help-button { padding:10px 12px; }
}
.completion > button + button { margin-left:12px; }
.discovery-cards article .text-button { display:block; margin-top:10px; }

/* Completion actions share geometry; color alone distinguishes the actions. */
.completion > button {
  width:min(220px, calc(50% - 10px));
  height:56px;
  min-height:56px;
  padding:0 12px;
  box-sizing:border-box;
  border-width:2px;
  border-radius:16px;
  font-size:16px;
  font-weight:700;
  justify-content:center;
}

/* Content production and illustration selection share the calm operations palette. */
.studio-production-grid { display:grid;grid-template-columns:minmax(300px,.95fr) minmax(360px,1.25fr);gap:24px;align-items:start; }
.studio-production-grid h2 { font-size:18px;margin:0 0 24px; }
.studio-form-row { display:flex;gap:12px;flex-wrap:wrap; }
.studio-form-row>label { flex:1;min-width:110px; }
.studio-batch-form textarea,.studio-image-form textarea { min-height:100px; }
.studio-batch-form>label:first-child textarea { min-height:180px; }
.studio-create { padding:16px 0; }
.studio-create>summary { color:var(--ops-accent,#167369);font-weight:650;cursor:pointer;margin-bottom:18px;font-size:15px; }
.studio-gallery { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px; }
.studio-asset { border:1px solid var(--ops-line,#dce5e1);border-radius:10px;overflow:hidden;background:#fffefa;min-width:0; }
.studio-asset>img { display:block;width:100%;height:140px;object-fit:cover;background:#eef2e8; }
.studio-asset>div { padding:14px; }
.studio-asset strong { display:block;font-size:13px;line-height:1.7;overflow-wrap:anywhere; }
.studio-asset small { display:block;font-size:11px;color:#788a80;margin:5px 0 12px; }
.studio-asset .secondary { width:100%; }
.studio-picker { width:min(860px,78vw); }
.studio-picker .studio-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
.studio-picker-progress,.studio-queue-summary { font-size:12px;color:#687d7d;line-height:1.8; }
.studio-queue-summary { display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding:14px;background:#edf3e8;border-radius:8px; }
.studio-queue-summary strong { color:#245b4e; }
.studio-job { display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e3e9df;padding:20px 0; }
.studio-job>div:first-child { min-width:0; }
.studio-job h3 { margin:12px 0 8px;font-size:14px;overflow-wrap:anywhere;line-height:1.7; }
.studio-job small { color:#829087;font-size:11px;margin-left:8px; }
.studio-job p { color:#78877b;font-size:12px;margin:0;line-height:1.8; }
.studio-job-actions { display:flex;align-items:center;gap:12px;flex-shrink:0; }
.studio-job-actions img { width:100px;height:70px;object-fit:cover;border-radius:7px; }
.studio-empty { padding:32px;text-align:center;color:#78877b;font-size:13px; }
#studio-picker-progress>.studio-asset { max-width:360px;margin:16px 0; }
#studio-picker-progress>.studio-asset>img { height:200px; }
.properties [data-action="studio-picker"] { width:100%;margin:8px 0 16px; }
@media(max-width:1200px) { .studio-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }.studio-production-grid { grid-template-columns:1fr; } }
@media(max-width:760px) { .studio-gallery,.studio-picker .studio-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }.studio-picker { width:min(84vw,860px); }.studio-job { align-items:flex-start;flex-direction:column; }.studio-asset>img { height:110px; } }

.activity-illustration { margin:20px 0; }
.activity-illustration img { display:block;width:100%;max-height:220px;object-fit:contain;border-radius:16px; }

/* Original toy-box puzzle shelf. Game text and controls remain real HTML. */
.puzzle-shelf { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:28px 0; }
.tone-sun { --puzzle-paper:#fff0ba; --puzzle-ink:#75500b; --puzzle-edge:#d3b359; }
.tone-rose { --puzzle-paper:#fbe2ed; --puzzle-ink:#a51f62; --puzzle-edge:#df9fbc; }
.tone-sky { --puzzle-paper:#c5eaff; --puzzle-ink:#235d90; --puzzle-edge:#87bedf; }
.tone-mint { --puzzle-paper:#d9efe0; --puzzle-ink:#28674c; --puzzle-edge:#8ebba1; }
.tone-lilac { --puzzle-paper:#e9e2fa; --puzzle-ink:#60438c; --puzzle-edge:#b5a0d1; }
.puzzle-card { border:2px solid var(--puzzle-edge); border-radius:26px; background:#fffdf8; overflow:hidden; box-shadow:0 5px 0 var(--puzzle-paper); display:flex; flex-direction:column; }
.puzzle-cover { background:var(--puzzle-paper); padding:26px 24px 20px; color:var(--puzzle-ink); position:relative; }
.toy-grid { display:grid; grid-template-columns:repeat(2,58px); gap:8px; width:max-content; margin:0 auto 16px; transform:rotate(-5deg); }
.toy-grid span { display:grid; place-items:center; width:58px; height:52px; font-size:30px; font-weight:800; background:#fffdf8; border:2px solid var(--puzzle-edge); border-radius:12px; box-shadow:0 4px 0 var(--puzzle-edge); }
.toy-grid span:nth-child(2n) { transform:rotate(8deg); }
.puzzle-sticker { display:block; text-align:center; font-weight:700; font-size:14px; }
.puzzle-card-body { padding:24px; display:flex; flex-direction:column; flex:1; }
.puzzle-card h2 { font-family:var(--round-font); font-size:28px; margin:0 0 10px; color:var(--ink); }
.puzzle-card p { margin:0 0 14px; line-height:1.65; }
.puzzle-card .puzzle-detail { font-size:13px; color:#66677f; margin-top:auto; }
.puzzle-level { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:14px; margin:6px 0 18px; }
.puzzle-level select { width:112px; min-height:44px; background:#fffdf8; border:2px solid var(--puzzle-edge); border-radius:12px; padding:8px; color:var(--puzzle-ink); }
.puzzle-card .primary { width:100%; min-height:52px; }
.puzzle-play { max-width:800px; margin:auto; }
.puzzle-play > .surface { text-align:center; background:#fffdf8; border:2px solid var(--puzzle-edge); border-radius:30px; }
.puzzle-play h1 { font-family:var(--round-font); }
.puzzle-play .eyebrow { color:var(--puzzle-ink); }
.puzzle-progress { font-weight:700; color:var(--puzzle-ink); min-height:24px; }
.memory-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; max-width:440px; margin:24px auto; }
.memory-tile { aspect-ratio:1; min-height:52px; border:2px solid var(--puzzle-edge); border-radius:18px; background:var(--puzzle-paper); color:var(--puzzle-ink); font-size:clamp(26px,5vw,40px); font-weight:800; box-shadow:0 4px 0 var(--puzzle-edge); transition:transform .15s,background .2s; }
.memory-tile.is-open { background:#fff6ce; }
.memory-tile.is-matched { background:#d9efe0; color:#28674c; border-color:#8ebba1; opacity:1; box-shadow:none; }
.memory-tile:disabled { opacity:1; }
.memory-tile:not(:disabled):active,.slide-board button:not(:disabled):active { transform:translateY(3px); box-shadow:none; }
.slide-board { display:grid; gap:10px; max-width:360px; margin:24px auto; background:var(--puzzle-paper); border:2px solid var(--puzzle-edge); padding:12px; border-radius:22px; }
.slide-board.size-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.slide-board.size-4 { grid-template-columns:repeat(4,minmax(0,1fr)); }
.slide-board button,.slide-space { aspect-ratio:1; min-height:48px; min-width:0; }
.slide-board button { font-size:28px; font-weight:800; border:2px solid var(--puzzle-edge); border-radius:12px; background:#fffdf8; color:var(--puzzle-ink); box-shadow:0 3px 0 var(--puzzle-edge); }
.slide-board button:disabled { opacity:.72; }
.slide-board button:not(:disabled) { border-color:var(--puzzle-ink); }
.puzzle-stations { display:flex; justify-content:center; gap:14px; margin:24px auto; }
.puzzle-stations span { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; border:2px solid var(--puzzle-edge); font-weight:800; background:var(--puzzle-paper); color:var(--puzzle-ink); }
.puzzle-stations .visited { background:#28674c; color:#fff; border-color:#28674c; }
.puzzle-question { font-size:clamp(28px,6vw,48px); font-weight:800; margin:28px 0; padding:24px 12px; background:var(--puzzle-paper); border-radius:22px; color:var(--puzzle-ink); overflow-wrap:anywhere; }
.pattern-question { font-size:clamp(20px,3.5vw,30px); }
.puzzle-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; max-width:380px; margin:auto; }
.puzzle-option { min-height:64px; font-size:28px; font-weight:800; border:2px solid var(--puzzle-edge); background:#fffdf8; color:var(--puzzle-ink); border-radius:16px; box-shadow:0 4px 0 var(--puzzle-paper); }
.puzzle-option:hover { background:var(--puzzle-paper); }
.puzzle-explanation { background:#d9efe0; border-radius:16px; padding:20px; color:#28674c; }
#game-feedback { min-height:28px; margin:24px 0 12px; font-weight:700; }
.puzzle-finish { background:var(--puzzle-paper); border-radius:22px; padding:24px; margin-top:20px; }
.puzzle-finish > span { display:block; font-size:44px; color:var(--puzzle-ink); }
.puzzle-finish h2 { font-family:var(--round-font); font-size:28px; }
.puzzle-shelf button:focus-visible,.puzzle-play button:focus-visible,.puzzle-level select:focus-visible { outline:3px solid #235d90; outline-offset:4px; }
@media(max-width:1000px) { .puzzle-shelf { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .puzzle-shelf { grid-template-columns:minmax(0,1fr); gap:22px; } .puzzle-cover { padding:20px; } .toy-grid { grid-template-columns:repeat(4,48px); gap:10px; } .toy-grid span { width:48px; height:48px; } .puzzle-card-body { padding:20px; } .puzzle-play > .surface { padding:22px 16px; } .memory-board { gap:10px; } .memory-tile { border-radius:12px; } .slide-board { gap:8px; padding:8px; } .slide-board button { font-size:24px; } }
@media(prefers-reduced-motion:reduce) { .memory-tile { transition:none; } }

.studio-art-settings { border:1px solid #d9e3d2;border-radius:10px;padding:18px;margin:22px 0;background:#f5f7ed;min-width:0; }
.studio-art-settings legend { color:#285f52;font-weight:650;font-size:13px;padding:0 6px; }
.studio-art-settings label { font-size:12px; }
.studio-art-estimate { font-size:12px;color:#7c6532;line-height:1.8;background:#fff5d9;padding:12px;border-radius:6px; }
.studio-art-progress { margin-top:16px;padding:14px;border-radius:8px;background:#f1f5e9;font-size:12px; }
.studio-art-progress>strong { color:#2b6553; }
.studio-art-thumbnails { display:flex;gap:8px;flex-wrap:wrap;margin:12px 0; }
.studio-art-thumbnails img { width:90px;height:62px;object-fit:cover;border-radius:6px; }
.studio-art-progress a { display:block;color:#167369;margin:10px 0; }
.studio-character-previews { display:flex;gap:12px;margin:0 0 16px; }
.studio-character-previews[hidden] { display:none; }
.studio-character-previews figure { margin:0;max-width:180px; }
.studio-character-previews img { display:block;width:100%;height:110px;object-fit:contain;background:#fff9ec;border-radius:8px; }
.studio-character-previews figcaption { font-size:11px;color:#687d7d;margin-top:6px; }
.studio-character-previews figure { flex:1;min-width:0; }
/* Daily workflows: quiet adult surfaces and clear, touch-friendly child actions. */
.daily-entry { margin: 0 0 24px; }
.daily-nav { display:flex; flex-wrap:wrap; gap:8px; padding:12px; background:var(--cream,#fff3db); border:1px solid #dce3ee; border-radius:18px; }
.daily-nav a { padding:10px 16px; min-height:44px; display:flex; align-items:center; border-radius:12px; color:#29294f; font-weight:700; text-decoration:none; transition:background .15s; }
.daily-nav a:hover,.daily-nav a[aria-current=page] { background:#c5eaff; }
.daily-panel { margin-bottom:24px; padding:24px; }
.daily-panel h2 { margin:0 0 16px; font-size:22px; }
.daily-panel form { max-width:720px; display:grid; gap:16px; margin-top:16px; }
.daily-panel form label,dialog [data-form^=daily] label { display:grid; gap:8px; }
.daily-panel form .check-row,dialog [data-form^=daily] .check-row { display:flex; }
.daily-panel input,.daily-panel select,.daily-panel textarea { max-width:100%; min-width:0; }
.daily-panel input[type=checkbox] { width:20px; height:20px; }
.daily-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.daily-actions,.daily-meta { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin:16px 0; }
.daily-roster>div,.daily-device,.daily-order { display:flex; gap:16px; flex-wrap:wrap; align-items:center; padding:16px 0; border-top:1px solid #dce3ee; }
.daily-roster small,.daily-device small { display:block; color:#66677f; overflow-wrap:anywhere; }
.daily-message { display:grid; grid-template-columns:12px 1fr auto; align-items:start; gap:16px; margin-bottom:16px; padding:24px; }
.daily-message h2 { font-size:20px; margin:0; }
.daily-message p,.daily-thread p { white-space:pre-wrap; overflow-wrap:anywhere; }
.daily-dot { width:10px; height:10px; margin-top:8px; border-radius:50%; background:#dce3ee; }
.daily-message.is-unread .daily-dot { background:#cf287b; }
.daily-message.is-unread { border-color:#315ca8; }
.daily-thread { max-height:360px; overflow:auto; margin-bottom:24px; }
.daily-thread article { padding:16px; background:#fff3db; border-radius:12px; margin-bottom:12px; }
.daily-thread small { display:block; }
.daily-code { font-size:28px; font-weight:800; letter-spacing:2px; overflow-wrap:anywhere; color:#29294f; padding:24px; background:#fff3db; border-radius:16px; }
.daily-credentials { max-height:360px; overflow:auto; overflow-wrap:anywhere; }
.daily-order { display:block; overflow-wrap:anywhere; }
.daily-panel fieldset { border:1px solid #dce3ee; border-radius:12px; }
#editor-recovery-status { padding:0; color:#315ca8; }
.editor-header > div:first-child { min-width:0; flex:1; }
.editor-header > div:nth-child(2) { flex-shrink:0; }
@media (max-width:600px) {
 .daily-nav { gap:4px; padding:8px; }
 .daily-nav a { padding:8px 12px; font-size:14px; }
 .daily-panel { padding:16px; }
 .daily-form-grid { grid-template-columns:1fr; }
 .daily-message { grid-template-columns:10px 1fr; padding:16px; }
 .daily-message>button { grid-column:2; justify-self:start; }
 .daily-roster>div { align-items:flex-start; gap:8px; }
 .daily-roster small { flex-basis:100%; }
}
@media print {
 body:has(dialog[open]) #app,body:has(dialog[open]) #status { display:none; }
 dialog[open] { position:static; display:block; max-height:none; width:100%; border:0; }
 dialog[open] button { display:none; }
 .daily-credentials { max-height:none; overflow:visible; }
}

/* Child growth and collection: one navigation, a small world inside Profile. */
.message-bell{position:relative;color:#29294f;background:#ffffff70;border-radius:50%;width:44px;height:44px;display:grid;place-items:center}
.notification-dot{position:absolute;top:7px;right:8px;width:9px;height:9px;background:#cf287b;border:2px solid #c5eaff;border-radius:50%}
.header-avatar{display:block;text-decoration:none}.header-avatar .explorer-avatar{width:40px;height:40px;font-size:25px;box-shadow:none;border:2px solid #fff}
.explorer-avatar{width:112px;height:112px;border-radius:38%;display:inline-grid;place-items:center;font-size:66px;color:#314b52;background:#cdebd8;box-shadow:0 5px 0 #a6c8b5,inset 0 0 0 6px #ffffff65;flex-shrink:0;font-family:Georgia,serif}
.explorer-avatar.tone-sun{background:#ffeaa4;color:#9b6936;box-shadow:0 5px 0 #dcc77e,inset 0 0 0 6px #ffffff65}.explorer-avatar.tone-sky{background:#c5eaff;color:#315ca8;box-shadow:0 5px 0 #9bc9e5,inset 0 0 0 6px #ffffff65}.explorer-avatar.tone-rose{background:#f9d5e5;color:#ad4e75;box-shadow:0 5px 0 #d6aac0,inset 0 0 0 6px #ffffff65}
.explorer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0 30px}.explorer-metrics>a{display:flex;align-items:center;gap:16px;min-width:0;background:#fff;border:1px solid #e2e5eb;border-radius:20px;padding:20px 24px;text-decoration:none;color:#29294f;box-shadow:0 4px 0 #e8e5db;transition:transform .18s}.explorer-metrics>a:hover{transform:translateY(-3px)}.explorer-metrics>a>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0}.explorer-metrics small{color:#777689;font-size:13px}.explorer-metrics strong{font-size:23px}.explorer-metrics em{font-size:14px;font-style:normal}.metric-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#e7e6ff;color:#7972b1;font-size:32px;flex-shrink:0}.explorer-metrics>a:nth-child(2) .metric-symbol{background:#fff0b9;color:#b78431}.explorer-metrics>a:nth-child(3) .metric-symbol{background:#ffe3d6;color:#d37950}.explorer-metrics progress{height:5px;width:100%;margin-top:4px;accent-color:#a4a0dc}.explorer-metrics .icon{width:16px;opacity:.55}
.daily-dates .day-explored strong{position:relative}.daily-dates .day-explored strong:after{content:'✦';font-size:10px;color:#cf287b;position:absolute;right:-11px;bottom:-5px}
.explorer-identity{position:relative;display:flex;align-items:center;gap:28px;min-height:210px;padding:38px 42px;background:#e2f2f6;border:1px solid #c5e1e8;border-radius:28px;overflow:hidden}.explorer-identity h1{margin:4px 0 8px;font-size:38px}.explorer-identity p{margin:0;color:#5a717f}.explorer-identity .eyebrow{font-size:11px;letter-spacing:.16em}.avatar-edit{position:relative;background:none;border:0;padding:0;cursor:pointer}.avatar-edit>span:last-child{position:absolute;bottom:-5px;right:-3px;width:32px;height:32px;background:#fff;border-radius:50%;display:grid;place-items:center;border:1px solid #c5d8dd}.avatar-edit .icon{width:17px}.profile-more{position:absolute;right:20px;top:18px;z-index:1;background:#ffffffa0;border-radius:50%;display:grid;place-items:center;text-decoration:none;color:#29294f;width:44px;height:44px}.identity-stamp{margin-left:auto;margin-right:32px;transform:rotate(9deg);border:2px dashed #85b2bc;border-radius:50%;width:116px;height:116px;display:grid;place-content:center;text-align:center;color:#6b9ba9;line-height:1.25;letter-spacing:.11em;font-size:13px;font-weight:800}
.section-heading h2 small{font:inherit;font-size:16px;color:#9993a2;margin-left:6px}.section-heading .eyebrow{font-size:10px;color:#9b8791;margin:0 0 6px;letter-spacing:.14em}.section-heading .eyebrow+h2{margin:0}
.collectible-shelf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px;padding:8px 4px 24px}.collectible-mini{display:block;min-width:0;padding:7px;text-align:left;border:1px solid #dfcbb3;border-radius:20px;background:#fff4dc;color:#29294f;box-shadow:0 5px 0 #d7c7b1;overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s}.collectible-mini:hover{transform:translateY(-6px) rotate(-1deg);box-shadow:0 10px 0 #d7c7b1}.collectible-art{position:relative;overflow:hidden;background:#e8f2e6;border-radius:14px}.collectible-art img{display:block;width:100%;height:100%;object-fit:cover}.collectible-mini .collectible-art{aspect-ratio:1.15}.collectible-art>span{position:absolute;left:10px;top:10px;padding:5px 8px;border:1px solid #ffffffb0;background:#fff8eae6;color:#6e624b;border-radius:7px;font-size:9px;font-weight:800;letter-spacing:.1em}.collectible-mini>div:last-child{padding:15px 12px 8px}.collectible-mini small{font-size:11px;color:#967c66}.collectible-mini h3{font-size:19px;line-height:1.4;margin:7px 0 18px;min-height:2.8em;font-family:'ZCOOL KuaiLe',sans-serif}.card-serial{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.12em;color:#ac9277;border-top:1px solid #e7d7bf;padding-top:10px}.card-serial span{font-size:21px}.collection-empty{display:block;text-align:center;padding:42px;background:#fff8e9;border:1px dashed #d8b887;border-radius:24px;text-decoration:none;color:#65535c}.collection-empty>span{font-size:52px;color:#c7a568}.collection-empty h3{margin:8px 0}.collection-empty strong{color:#af3d75;display:inline-flex;gap:8px;align-items:center}
.profile-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:28px 0}.profile-link{display:flex;gap:16px;align-items:center;padding:22px;background:#fff;border:1px solid #e5e3df;border-radius:18px;color:#29294f;text-decoration:none}.profile-link-icon{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;background:#edf3f7;border-radius:13px;color:#7796ad}.profile-link>span:nth-child(2){flex:1;min-width:0;display:grid;gap:5px}.profile-link strong{font-size:17px}.profile-link small{color:#868191;font-size:12px}.profile-link>.icon{width:17px;color:#a29ca8}.profile-link:hover{border-color:#b8cbd9}.profile-options{padding:26px}.profile-options h2{margin-top:0}.profile-actions{display:flex;gap:16px;margin-top:24px;align-items:center}.help-topics{padding:8px 26px}.help-topics details{padding:22px 0;border-bottom:1px solid #ece7df}.help-topics details:last-child{border-bottom:0}.help-topics summary{cursor:pointer;font-weight:700}.help-topics details p{line-height:1.9;color:#6c697d;margin-bottom:0}.help-contact{display:flex;gap:20px;align-items:center;padding:28px;margin:24px 0;background:#fbe2ed;border:1px solid #e7bfd4;border-radius:22px;text-decoration:none;color:#7b3d60}.help-contact>span>.icon{width:36px;height:36px}.help-contact>div{flex:1}.help-contact h2{font-size:21px;margin:0 0 8px}.help-contact p{margin:0;font-size:14px}.growth-story{text-align:center;padding:38px;max-width:700px;margin:24px auto;line-height:1.9}.growth-flower{display:block;font-size:80px;color:#98b39a}.growth-story progress{width:80%;accent-color:#a4a0dc}.growth-story .primary{display:inline-flex;gap:10px;align-items:center;margin:18px 0}.ledger-date{display:block;font-size:11px;margin-top:5px;color:#8e8995}.explorer-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:24px 0}.explorer-calendar>span{display:grid;text-align:center;gap:9px;border-radius:14px;background:#f5f4ef;padding:12px 5px;color:#aba7a6}.explorer-calendar small{font-size:11px}.explorer-calendar strong{font-size:27px}.explorer-calendar .is-active{background:#fff0ba;color:#a17f34}.avatar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.avatar-choices>button{display:flex;flex-direction:column;align-items:center;gap:18px;padding:30px 15px;background:#fff;border:2px solid #e8e4df;border-radius:24px;color:#29294f;cursor:pointer}.avatar-choices>button[aria-pressed=true]{border-color:#cf287b;background:#fff3f8}.avatar-choices strong{font-size:19px}.avatar-choices small{font-size:12px;color:#85808a}.avatar-choices button:disabled{opacity:.6;cursor:default}.about-wonder{text-align:center;padding:60px 24px;line-height:1.8}.about-wonder>span{font-size:70px;color:#cf287b}
#modal-root:has(.discovery-detail) dialog{max-width:510px;width:calc(100% - 32px);padding:26px;background:#fffaf0}.discovery-detail>.eyebrow{text-align:center;color:#b4764c;letter-spacing:.15em;margin:5px 0 22px}.collectible-full{border:1px solid #d4b88e;background:#fff0d2;border-radius:24px;padding:9px;box-shadow:0 6px 0 #d8bd96;overflow:hidden}.collectible-full .collectible-art{aspect-ratio:1.28}.collectible-story{padding:20px 20px 6px}.collectible-story .eyebrow{font-size:10px;letter-spacing:.1em;color:#9f805a}.collectible-story h1{font:28px/1.4 'ZCOOL KuaiLe',sans-serif;margin:8px 0 12px}.collectible-story>p:not(.eyebrow){font-size:15px;line-height:1.85;color:#79634f}.collectible-signature{display:flex;gap:10px;align-items:center;border-top:1px solid #dfcaa7;padding:16px 0 7px;font-size:12px;color:#947956}.collectible-signature>span:nth-child(2){flex:1;line-height:1.6}.collectible-signature .explorer-avatar{width:36px;height:36px;font-size:23px;box-shadow:none}.collectible-signature small{font-size:10px}.discovery-detail-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:28px}.discovery-detail-actions .primary{width:100%}.discovery-detail-actions .secondary{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;white-space:nowrap}
@media(max-width:760px){.child-metrics{gap:10px}.child-metrics .pill{display:none}.explorer-metrics{gap:8px;margin:18px 0 24px}.explorer-metrics>a{padding:14px 10px;display:block;text-align:center;border-radius:16px}.explorer-metrics .metric-symbol{display:none}.explorer-metrics>a>span:nth-child(2){gap:6px}.explorer-metrics strong{font-size:17px}.explorer-metrics small{font-size:10px}.explorer-metrics em{font-size:11px}.explorer-metrics .icon{display:none}.explorer-metrics progress{max-width:90%;margin:4px auto 0}.explorer-identity{gap:20px;padding:30px 22px;min-height:175px}.explorer-identity h1{font-size:30px}.explorer-identity p{font-size:11px;line-height:1.7}.explorer-identity .eyebrow{font-size:8px}.explorer-identity .explorer-avatar{width:80px;height:80px;font-size:48px}.identity-stamp{display:none}.profile-more{right:10px;top:10px;width:32px;height:32px}.profile-more .icon{width:19px}.collectible-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:5px 2px 16px}.collectible-mini h3{font-size:16px}.collectible-mini>div:last-child{padding:12px 7px 5px}.collectible-art>span{left:6px;top:6px;font-size:7px;padding:4px 5px}.profile-shortcuts{grid-template-columns:1fr;gap:10px}.profile-link{padding:18px}.section-heading .eyebrow{font-size:7px;letter-spacing:.08em}.avatar-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.avatar-choices>button{padding:22px 10px;gap:16px}.avatar-choices .explorer-avatar{width:84px;height:84px;font-size:50px}.avatar-choices strong{font-size:16px}.avatar-choices small{font-size:10px;line-height:1.6}.explorer-calendar{gap:5px}.explorer-calendar small{font-size:9px}.growth-story{padding:24px}.help-topics{padding:4px 20px}.help-contact{padding:22px 18px;gap:12px}.help-contact h2{font-size:18px}.help-contact p{font-size:12px}.profile-actions{flex-wrap:wrap}#modal-root:has(.discovery-detail) dialog{padding:20px 16px}.collectible-story{padding:15px 12px 4px}.collectible-story h1{font-size:25px}.collection-empty{padding:32px 20px}}
@media(prefers-reduced-motion:reduce){.collectible-mini,.explorer-metrics>a{transition:none}.collectible-mini:hover,.explorer-metrics>a:hover{transform:none}}

@media(max-width:359px){.child-metrics .sound-toggle span{display:none}.child-metrics .sound-toggle{padding:10px;width:40px;height:44px;min-width:40px}.child-top .brand{font-size:20px}.child-metrics{gap:6px}.child-top{flex-wrap:nowrap}.explorer-identity{gap:16px;padding:28px 18px}.explorer-identity .explorer-avatar{width:74px;height:74px;font-size:46px}}

/* Detail polish: explicit states, clear breathing room, original brand assets. */
.brand .brand-logo{display:block;width:210px;height:70px;object-fit:contain;flex-shrink:0}
.child-top .brand .brand-logo{width:236px;height:78px}.player-header .brand .brand-logo{width:156px;height:52px}
.sidebar .brand{flex-wrap:wrap;gap:0}.sidebar .brand .brand-logo{width:190px;height:64px}.login-art .brand{background:#fff9ed;border-radius:16px;padding:0 14px;width:fit-content}
.child-shell main>.page-heading:first-child{padding-top:32px;margin-top:0}
.child-shell .category-tabs .collection-filter{color:var(--ink);background:#fff;border:1px solid #cddcea;box-shadow:none}
.child-shell .category-tabs .collection-filter[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 3px 0 #16162f}
.child-shell .category-tabs .collection-filter:hover:not([aria-pressed="true"]){background:#edf6fc}
.card-footer .is-favorite{color:var(--pink);background:#fff0f6}.card-footer .is-favorite svg{fill:currentColor;stroke:currentColor}
.collectible-mini{position:relative;padding:10px;border:1px solid #cbb48e;border-radius:22px;background:linear-gradient(145deg,#fff9e9,#f5e3ba);box-shadow:0 5px 0 #cdbb9a,0 10px 20px #79613b12}
.collectible-mini:before{content:'';position:absolute;inset:5px;border:1px solid #fffaf0;border-radius:17px;pointer-events:none;z-index:1}
.collectible-mini .collectible-art{aspect-ratio:1;isolation:isolate;border:1px solid #d9c39c;border-radius:14px}
.collectible-mini .collectible-art:after{content:'';position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 3px #fff9e65c;pointer-events:none}
.collectible-mini .collectible-art>span{top:10px;left:10px;background:#fff7e7ed;color:#7c6242;border-color:#d8be8c;font-size:10px;letter-spacing:.12em}
.collectible-seal{position:absolute;bottom:10px;right:10px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:2px solid #fff5d6;background:#d1a55f;color:#fff8df;font-style:normal;font-size:25px;box-shadow:0 2px 4px #5f431f40}
.collectible-mini>div:last-child{padding:18px 12px 9px}.collectible-mini h3{font-size:21px;margin:9px 0 20px;min-height:2.8em;letter-spacing:.02em}.collectible-mini small{color:#8c704d;letter-spacing:.05em}
.collectible-mini .card-serial{border-color:#d9c39d;color:#8c704d;font-size:10px}.collectible-mini .card-serial>span{font-size:11px;letter-spacing:.04em}
.collectible-full{background:linear-gradient(150deg,#fff8e7,#f1d9a9);border:1px solid #bd9962;box-shadow:0 6px 0 #c6ab7f,0 14px 28px #58432618}
.collectible-story{border:1px solid #e1cca5;border-top:0;border-radius:0 0 16px 16px;background:#fff8e45c;margin-top:8px}.collectible-signature{border-top-style:dashed}
@media(max-width:760px){.child-top .brand .brand-logo{width:146px;height:49px}.brand .brand-logo{width:165px;height:55px}.player-header .brand .brand-logo{width:112px;height:38px}.child-shell main>.page-heading:first-child{padding-top:28px}.collectible-mini{padding:8px}.collectible-mini h3{font-size:17px}.collectible-mini>div:last-child{padding:14px 8px 7px}.collectible-mini .collectible-art>span{top:7px;left:7px;font-size:8px}.collectible-seal{width:27px;height:27px;font-size:21px;bottom:7px;right:7px}}
@media(max-width:359px){.child-top .brand .brand-logo{width:126px;height:42px}.collectible-mini h3{font-size:15px}.collectible-mini .card-serial{font-size:8px}.collectible-mini .card-serial>span{font-size:9px}}
.first-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.first-steps a{display:grid;gap:10px;padding:18px;border:1px solid #d6e1ea;border-radius:14px;background:#f5f9fc;text-decoration:none;color:#29294f}.first-steps a:hover{border-color:#779abe}.first-steps span{color:#747585;font-size:13px;line-height:1.7}@media(max-width:760px){.first-steps{grid-template-columns:1fr}}

/* Learning loop: calm evidence for adults; encouraging, focused steps for children. */
#modal-root:has(.learning-record,.learning-classroom) dialog{max-width:860px;width:calc(100% - 32px)}
.learning-record,.learning-classroom,.learning-report,.practice-stage,.teacher-note,.learning-hint{line-height:1.8}.learning-record>.eyebrow,.practice-stage>.eyebrow,.teacher-note>.eyebrow{color:#98704d;font-size:11px;letter-spacing:.12em}
.learning-notes article{background:#fff4d9;border:1px solid #ead5a3;border-radius:18px;padding:20px;margin:12px 0}.learning-notes article>div{display:flex;justify-content:space-between;gap:16px}.learning-notes article p{white-space:pre-wrap;margin:12px 0;color:#554b40}.learning-notes small,.learning-evidence>small{color:#81776c;font-size:12px}.learning-evidence{padding:24px 0;border-top:1px solid #e5e4de}.learning-evidence header>span{color:#83929e;font-size:11px}.learning-evidence h3{margin:2px 0 12px}.learning-original{border-left:3px solid #bed6df;padding:14px 18px;background:#f2f7f9;white-space:pre-wrap}.practice-history{margin:16px 0;padding:14px 20px;background:#f5f4ed;border-radius:14px}.practice-history h4{margin:0;font-size:13px}.practice-history p{margin:4px 0;font-size:12px;color:#6f7167}.learning-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.followup-status{font-size:13px;color:#417968}.learning-next{padding:26px;margin:24px 0;border:1px solid #e9d59e;border-radius:24px;background:#fff7df}.learning-next h2{font-size:22px;margin:0}.learning-next .eyebrow{font-size:9px;color:#9b7b49}.learning-invite,.review-list>div,.report-list>div{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #e5dfce}.learning-invite>span,.review-list>div>span,.report-list>div>span{flex:1;min-width:0}.learning-invite small,.review-list small,.report-list small{display:block;color:#7f8090;font-size:12px}.review-list button{flex-shrink:0}.question-statistics{margin-top:28px;padding:22px;background:#f3f6f7;border-radius:16px}.question-statistics summary{cursor:pointer;font-weight:700}.question-statistics section{padding:16px 0;border-top:1px solid #dde3e8}.question-statistics h3{font-size:16px}.question-statistics section p{display:flex;justify-content:space-between;gap:20px;font-size:13px}.teacher-note blockquote{margin:18px 0;padding:16px 22px;background:#f1f6f9;border-left:3px solid #aacbd9}.teacher-note textarea{min-height:150px}.practice-stage h2,.learning-hint h2{font-family:'ZCOOL KuaiLe',sans-serif;font-size:28px}.practice-stage form{display:grid;gap:12px;margin:24px 0}.practice-choice{display:flex;align-items:center;gap:12px;padding:16px;border:2px solid #dbe3e9;border-radius:16px;cursor:pointer}.practice-choice:has(input:checked){border-color:#cf287b;background:#fff0f7}.practice-choice input{width:auto;margin:0;accent-color:#cf287b}.practice-sentence{background:#fff2d3;padding:18px;border-radius:14px}.practice-result{padding:22px;background:#ecf4ed;border:1px solid #caddce;border-radius:20px}.learning-hint>p:not(.eyebrow){font-size:18px;line-height:2;margin:24px 0}.learning-hint button{margin:8px}.report-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.report-facts>div{display:grid;text-align:center;background:#edf4f6;padding:18px 8px;border-radius:16px}.report-facts strong{font-size:30px;color:#507786}.report-facts span{font-size:12px;color:#6a7a82}
@media(max-width:760px){.learning-next{padding:20px}.learning-next h2{font-size:20px}.learning-invite,.review-list>div{align-items:flex-start;flex-direction:column;gap:10px}.learning-invite button,.review-list button{align-self:flex-end}.learning-notes article{padding:16px}.learning-notes article>div{flex-direction:column;gap:2px}.learning-evidence{padding:20px 0}.learning-actions{gap:8px}.learning-actions button{font-size:13px}.question-statistics{padding:16px}.practice-stage h2{font-size:25px}}
.review-filters{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 12px}.review-filters [aria-pressed=true]{background:#29294f;color:#fff;border-color:#29294f}.report-records{display:grid;gap:8px;margin:16px 0}.report-records .text-button{text-align:left;border:1px solid #dce5e9;border-radius:12px;background:#f6f9fa;padding:14px 16px;white-space:normal;overflow-wrap:anywhere}.learning-record h2,.learning-evidence h3,.review-list strong,.learning-invite strong{overflow-wrap:anywhere}.practice-choice:focus-within{outline:3px solid #90b7d6;outline-offset:3px}
.practice-instruction,.practice-context p{white-space:pre-wrap}.practice-illustration{margin:18px 0;text-align:center}.practice-illustration img{width:100%;max-height:260px;object-fit:contain;border-radius:16px}.practice-context{margin:20px 0;padding:16px;border:1px solid #d9e4ea;border-radius:14px;background:#f3f8fa}.practice-context summary{cursor:pointer;font-weight:700}.practice-context section{padding:12px 0}.practice-context h3{font-size:17px}.hint-history{color:#697a87;font-size:12px}

/* One teacher navigation: primary destinations in the rail, local tabs inside a section. */
.teacher-shell .sidebar>nav{flex:1;min-height:0;overflow-y:auto;align-content:start;padding-bottom:16px}
.teacher-shell .sidebar-bottom{flex-shrink:0;gap:8px}
.teacher-account{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:8px;border-radius:12px;color:var(--ink);text-decoration:none;transition:background .15s}
.teacher-account>span:last-child{min-width:0}.teacher-account strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.teacher-account small{margin-top:3px;color:var(--muted)}
.teacher-account:hover,.teacher-account[aria-current=page]{background:var(--mint)}
.teacher-top-actions{display:flex;align-items:center;gap:20px}.teacher-message-bell,.teacher-mobile-account{position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff;text-decoration:none;transition:background .15s,border-color .15s}
.teacher-message-bell:hover,.teacher-message-bell[aria-current=page],.teacher-mobile-account:hover,.teacher-mobile-account[aria-current=page]{background:var(--mint);border-color:var(--brand)}
.teacher-message-bell .icon{width:21px;height:21px}.teacher-unread-dot{position:absolute;top:5px;right:5px;width:8px;height:8px;background:var(--pink);border:2px solid #fff;border-radius:50%}.teacher-unread-dot[hidden]{display:none}
.teacher-mobile-account{display:none}.teacher-page-title{color:var(--ink);font-weight:600}
.teacher-section-nav{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line);margin-bottom:28px}.teacher-section-nav a{position:relative;min-height:48px;display:flex;align-items:center;padding:8px 0 16px;color:var(--muted);font-size:14px;text-decoration:none}.teacher-section-nav a[aria-current=page]{color:var(--ink);font-weight:700}.teacher-section-nav a[aria-current=page]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:3px;background:var(--brand);border-radius:3px 3px 0 0}.teacher-section-nav a:hover{color:var(--ink)}
.teacher-account:focus-visible,.teacher-message-bell:focus-visible,.teacher-mobile-account:focus-visible,.teacher-section-nav a:focus-visible{outline:3px solid #90b7d6;outline-offset:3px}
@media(max-width:760px){.teacher-shell .sidebar>nav{flex:none;overflow-x:auto;overflow-y:hidden;padding-bottom:4px}.teacher-shell .sidebar-bottom{display:none}.teacher-shell .topbar{height:58px;padding:0 18px;gap:12px}.teacher-top-actions{gap:8px}.teacher-top-actions .workspace-tag{display:none}.teacher-mobile-account{display:grid}.teacher-section-nav{gap:24px;margin-bottom:24px}.teacher-section-nav a{font-size:13px}.teacher-shell .class-select{min-width:0}.teacher-shell .class-select select{min-width:0}}

/* Teacher lesson work pages: one navigation, a clear fixed-version context. */
.tabs>a{padding:12px 20px;color:var(--muted);text-decoration:none;border-bottom:3px solid transparent;font-weight:700}.tabs>a[aria-current=page]{color:var(--brand);border-color:var(--brand)}
.teaching-context,.teaching-filters{display:flex;align-items:end;gap:16px;flex-wrap:wrap;margin:24px 0}.teaching-context>span{padding-bottom:12px;color:var(--muted)}.teaching-context label,.teaching-filters label{margin:0;min-width:180px}.teaching-filters input,.teaching-filters select{margin:6px 0 0}.teaching-filters .teaching-privacy{margin-left:auto;min-width:auto;align-self:center}.teaching-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:24px 0}.teaching-stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.teaching-stat strong{display:block;font-size:30px;color:#334d82}.teaching-stat small{display:block;margin-top:8px;color:var(--muted)}.teaching-table th small,.teaching-matrix th small{display:block;font-weight:400;color:var(--muted);margin-top:6px}.teaching-table a,.teaching-matrix a{color:#345d9b;text-underline-offset:4px}.teaching-table table{min-width:650px}.teaching-empty{padding:48px 24px;text-align:center;border:1px dashed #cad3e1;border-radius:16px;margin:24px 0}.teaching-empty p,.teaching-question-intro p{color:var(--muted)}.teaching-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:24px 0;flex-wrap:wrap}.teaching-legend{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:12px;color:#52617b;margin:20px 0}.teaching-legend>span{display:flex;align-items:center;gap:7px}.teaching-cell{display:inline-grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid transparent;border-radius:8px;line-height:1;font-weight:800;font-size:17px;flex-shrink:0}.teaching-cell.correct,.teaching-cell.done{background:#e6f3eb;color:#287048;border-color:#c3e2cf}.teaching-cell.improved{background:#e7eefc;color:#375c9a;border-color:#bdceeb}.teaching-cell.wrong{background:#fff0e2;color:#9b5220;border-color:#f0c99f}.teaching-cell.reflection{background:#eee9fa;color:#705299;border-color:#d9ccef}.teaching-cell.waiting,.teaching-cell.unstarted{background:#f4f5f8;color:#7a8395;border-color:#e3e7ee}.teaching-cell:is(button):hover{box-shadow:0 0 0 3px #c7d8f1}.teaching-matrix-scroll{overflow:auto;border:1px solid #dce2eb;border-radius:16px;max-height:640px;background:#fff;isolation:isolate}.teaching-matrix{border-collapse:separate;border-spacing:0;width:100%}.teaching-matrix th,.teaching-matrix td{padding:12px;text-align:center;border-right:1px solid #e8ecf2;border-bottom:1px solid #e8ecf2;white-space:nowrap}.teaching-matrix thead th{background:#f2f5fa;color:#405578}.teaching-matrix thead tr:nth-child(2) th{max-width:135px;min-width:92px}.teaching-matrix thead th span{display:block;white-space:normal;font-size:12px;line-height:1.6}.teaching-matrix tr>:first-child:not(thead tr:nth-child(2)>th){position:sticky;left:0;background:#fff;z-index:1;min-width:140px;text-align:left}.teaching-matrix thead tr:first-child th:first-child{background:#f2f5fa;z-index:2}.teaching-question{margin:16px 0;padding:28px}.teaching-question header{display:flex;justify-content:space-between;gap:12px;align-items:center}.teaching-question h3{font-size:22px;margin:20px 0 12px}.teaching-prompt{white-space:pre-wrap;line-height:1.8}.teaching-reference{background:#f3f6fb;border-radius:12px;padding:16px;margin:18px 0}.teaching-reference p{margin:8px 0 0;white-space:pre-wrap}.teaching-question-counts{display:flex;flex-wrap:wrap;gap:10px 24px;margin:20px 0;color:#5b6579;font-size:13px}.teaching-question-counts b{color:#293b5c;margin-left:4px}.teaching-bars>div{display:grid;grid-template-columns:minmax(110px,1fr) minmax(60px,2fr) 45px;gap:12px;align-items:center;margin:12px 0;font-size:13px}.teaching-bars meter{width:100%;height:16px;accent-color:#7396cf}.teaching-student-header{display:flex;gap:20px;align-items:center;margin-top:28px}.teaching-student-header h1{margin:6px 0}.learning-evidence:focus{outline:3px solid #a9c3eb;outline-offset:6px}.teaching-question-intro{margin:28px 0 12px}
@media(max-width:600px){.teaching-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.teaching-stat{padding:14px}.teaching-stat strong{font-size:24px}.teaching-filters label{min-width:0;width:100%}.teaching-filters .teaching-privacy{margin:0;width:100%}.teaching-matrix tr>:first-child{min-width:100px}.teaching-question{padding:18px}.teaching-bars>div{grid-template-columns:minmax(80px,1fr) minmax(50px,1fr) 38px;gap:8px}.teaching-question-counts{gap:10px}.teaching-context label{width:100%}.teaching-pager span{font-size:12px}}
.classroom-rule,.classroom-publish{border:1px solid #dce3ee;border-radius:14px;padding:18px;margin:18px 0}.classroom-rule legend,.classroom-publish legend{padding:0 8px;font-weight:700;color:#405578}.classroom-rule textarea{margin-bottom:4px}#classroom-policy .primary{margin:16px 0 0 12px}.classroom-login-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px;margin:24px 0}.classroom-login-card{padding:24px;text-align:center;border:1px dashed #aabbd6;border-radius:16px;background:#fff;break-inside:avoid}.classroom-login-card h3{margin:0 0 8px}.classroom-login-card img{width:170px;height:170px;max-width:100%;image-rendering:pixelated}.classroom-login-card code{display:block;overflow-wrap:anywhere;font-size:17px;color:#243b61;margin:12px 0}.classroom-login-card small{color:#63718a}.classroom-print-actions{display:flex;gap:12px;flex-wrap:wrap}.classroom-print-actions p{width:100%;font-size:12px;color:#65718a}.classroom-logins{max-width:950px}.modal:has(.classroom-logins){max-width:1000px}.teacher-guide-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 8px}.teacher-guide-steps a{display:block;text-decoration:none;color:#354a6c;padding:22px 18px;border-radius:16px;background:#f1f5fb;transition:background .15s}.teacher-guide-steps a:hover{background:#e6eef9}.teacher-guide-steps a>span{display:block;font-size:26px;color:#7594bf;margin-bottom:18px}.teacher-guide-steps a strong{font-size:16px}.teacher-guide-steps p{color:#62728b;font-size:13px;line-height:1.8}.teacher-guide-steps small{font-size:12px;color:#315ca8}.teacher-faq{margin-top:24px}.teacher-faq>label{max-width:500px}.teacher-faq details{border-top:1px solid #e0e6ef;padding:20px 0}.teacher-faq summary{font-weight:700;cursor:pointer;color:#334b73}.teacher-faq details p{line-height:1.9;max-width:780px;color:#59677e}.author-issue{padding:16px 0;border-bottom:1px solid #dce3ee}.classroom-adapt fieldset{border:1px solid #dce3ee;border-radius:12px;padding:16px;margin:18px 0}.classroom-adapt legend{padding:0 8px;font-weight:700}.editor-header>div:last-child{flex-wrap:wrap}.teacher-shell .workspace,.teacher-shell main{min-width:0}
@media(max-width:900px){.teacher-guide-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.teacher-guide-steps{grid-template-columns:1fr}.teacher-guide-steps a>span{float:left;margin:0 18px 0 0}.classroom-login-grid{grid-template-columns:1fr}#classroom-policy .primary{margin-left:0;display:block}}
@media print{body:has(.classroom-logins) #app,body:has(.classroom-logins) #status,body:has(.classroom-logins) .modal-close,body:has(.classroom-logins) .classroom-print-actions{display:none!important}body:has(.classroom-logins) #modal-root,body:has(.classroom-logins) .modal-backdrop,body:has(.classroom-logins) .modal{position:static!important;display:block!important;overflow:visible!important;max-height:none!important;max-width:none!important;box-shadow:none!important;background:#fff!important;padding:0!important;border:0!important}body:has(.classroom-logins){background:#fff}.classroom-login-grid{grid-template-columns:repeat(3,1fr)}.classroom-login-card{border:1px dashed #aaa;padding:12px}.classroom-login-card img{width:140px;height:140px}.classroom-login-card code{font-size:13px}.login-print-heading{break-after:avoid}}

dialog:has(.classroom-logins){width:min(1000px,calc(100% - 32px))}dialog:has(.classroom-adapt){width:min(680px,calc(100% - 32px))}
@media print{dialog[open]:has(.classroom-logins){position:static!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;padding:0!important;border:0!important}dialog[open]:has(.classroom-logins)::backdrop{display:none}}

.teaching-question-image{margin:20px 0;max-width:480px}.teaching-question-image img{display:block;width:100%;border-radius:14px}.teaching-options{padding-left:25px;color:#59677e;line-height:1.9}.teaching-options li{padding:4px 0}

/* A saved answer stays authoritative; recovery sits above the same learning activity. */
.progress-recovery { margin:24px auto; padding:24px; max-width:1120px; border:2px solid var(--border,#DCE3EE); border-radius:24px; background:#FFF3DB; color:#29294F; box-shadow:0 5px 0 #E5DFD0; }
.progress-recovery h2 { margin:12px 0 8px; font-size:24px; line-height:1.35; }
.progress-recovery p { max-width:64ch; line-height:1.7; margin:0 0 18px; }
.progress-actions { display:flex; gap:12px; flex-wrap:wrap; }
.progress-drafts { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:18px 0; }
.progress-drafts label { min-width:0; font-size:14px; }
.progress-drafts textarea { min-height:110px; width:100%; resize:vertical; background:#FFFCF5; }
.player-header { position:relative; }
/* Reuse the existing header gap: save confirmations never add a content row. */
.player-save-status { position:absolute; top:calc(100% + 4px); right:8px; max-width:calc(100% - 16px); height:16px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:#325D50; font-size:12px; line-height:16px; pointer-events:none; }
@media(max-width:650px) { .progress-recovery { padding:18px; margin:16px 0; border-radius:20px; } .progress-recovery h2 { font-size:22px; } .progress-drafts { grid-template-columns:1fr; } .progress-actions button,.progress-recovery > button { width:100%; } }
@media(max-width:650px) {
  .player-header { grid-template-columns:minmax(0,1fr) repeat(3,44px); }
  .player-header .brand { grid-area:1 / 1 / 2 / 3; min-width:0; }
  .player-header .pill { grid-area:1 / 3 / 2 / 5; justify-self:end; }
  .player-header progress { grid-area:2 / 1 / 3 / 2; width:100%; min-width:0; }
  .player-header .sound-toggle { grid-area:2 / 2 / 3 / 3; margin-left:0; }
  .player-header [data-action="toggle-audio"] { grid-area:2 / 3 / 3 / 4; }
  .player-header [data-action="exit-player"] { grid-area:2 / 4 / 3 / 5; }
}

.completion > button { vertical-align:middle; }

/* Invitation outcomes stay inside the existing school-management surface. */
.daily-invitation { padding-block: 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.daily-invitation p { margin-block: 8px; }

/* Long course and chapter names must reflow inside the learning surface. */
.player-chapter > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.player-chapter > strong { flex-shrink: 0; }
.instruction h1, .chapter-trail > span { min-width: 0; overflow-wrap: anywhere; }
[aria-invalid="true"] { border-color: #b3423c; }

/* Keep operations account controls available beside the mobile brand. */
@media (max-width:760px) {
  .ops-sidebar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; height:auto; }
  .ops-brand { grid-column:1; grid-row:1; min-width:0; padding:0; font-size:18px; }
  .ops-sidebar > nav { grid-column:1 / -1; flex:none; min-width:0; overflow-x:auto; overflow-y:hidden; overscroll-behavior-y:auto; overscroll-behavior-x:contain; padding:4px; }
  .ops-sidebar-bottom { display:flex; grid-column:2; grid-row:1; margin:0; padding:0; border:0; }
  .ops-sidebar-bottom > .ops-avatar, .ops-sidebar-bottom > div { display:none; }
}

/* Questions and portfolios continue the existing paper-and-exploration visual language. */
.explore-entry{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:28px 0}.explore-item{display:flex;align-items:center;gap:22px;padding:24px;margin:18px 0}.explore-item>div{flex:1;min-width:0}.explore-item h2{font-size:21px;line-height:1.6;overflow-wrap:anywhere}.explore-item small{color:#7d7788}.explore-item p{line-height:1.8;color:#747081;white-space:pre-wrap;overflow-wrap:anywhere}.explore-thread blockquote{margin:20px 0;background:#fff2d9;border-left:4px solid #dfbc76;border-radius:8px;padding:22px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}.explore-thread article{margin:18px 0;padding:20px;border:1px solid #e3e3e8;border-radius:15px;background:#f7f9fc}.explore-thread article p,.explore-thread details p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}.explore-thread details,.explore-work details{padding:16px 0;border-bottom:1px solid #e8e2d8}.explore-thread summary,.explore-work summary{cursor:pointer;font-weight:700}.explore-work{background:#fffaf0;border:1px solid #e1ccaa;border-radius:22px;padding:24px}.work-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:2;color:#655d64}.explore-work h2{font-family:'ZCOOL KuaiLe',sans-serif;font-size:28px;line-height:1.5}.explore-review{border:1px solid #e5dece;background:#fffaf0;border-radius:18px;padding:22px;margin:18px 0}.explore-review p{line-height:1.8;color:#7e7580}.explore-resource-list>section{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid #e5e5e9;padding:16px 0}.explore-resource-list h3{margin:0 0 8px;font-size:17px}.explore-resource-list p{margin:0;color:#80798a}.explore-resource-list>section>div{min-width:0}.pathway-list{padding-left:22px}.pathway-list li{padding:12px 0;border-bottom:1px solid #e7e2da}.pathway-list li span{display:block;margin-bottom:8px}.explore-pagination{margin:24px 0}#explore-main .tabs button{color:#29294f;background:#fff;border:1px solid #d7dfe9;border-radius:99px;padding:10px 20px}#explore-main .tabs button[aria-pressed=true]{color:#fff;background:#29294f}#explore-main .tabs button:after{display:none}@media(max-width:760px){.explore-item{display:block;padding:20px}.explore-item .secondary{margin-top:12px}.explore-entry{gap:10px}.explore-resource-list>section{flex-wrap:wrap}.explore-work{padding:18px}.explore-item h2{font-size:19px}}

.draft-comparison{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.draft-comparison>div{min-width:0;padding:16px;background:var(--cream,#fff8ee);border-radius:16px}.draft-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.draft-comparison section{padding-block:12px;border-bottom:1px solid #ded4c4}@media(max-width:600px){.draft-comparison{grid-template-columns:minmax(0,1fr)}}

.profile-shortcuts>button.profile-link{font:inherit;text-align:left;cursor:pointer;color:inherit;width:100%}#explore-main>.page-heading{margin-top:24px}.explore-entry{width:100%}.section-heading:has(>.explore-entry){flex-wrap:wrap}

/* AI探索手帐：复用既有纸张、天空蓝与莓果色，不增加全局导航。 */
.ai-entry-strip { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; margin:24px 0; border:1px solid var(--line); border-radius:var(--radius); background:var(--cream); box-shadow:0 4px 0 #29294f06; }
.ai-entry-strip strong { font-size:18px; }
.ai-entry-strip p { margin:6px 0 0; color:var(--muted); }
.ai-entry-strip > div:last-child, .ai-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.ai-notebook { --ai-paper:var(--cream); color:var(--ink); max-width:100%; overflow-wrap:anywhere; }
.ai-notebook h2 { font-size:clamp(24px,4vw,32px); line-height:1.35; margin:8px 0 20px; }
.ai-notebook h3 { font-size:19px; margin:28px 0 14px; }
.ai-notebook h4 { font-size:17px; margin:0 0 8px; }
.ai-notebook p { line-height:1.8; }
.ai-notebook form { display:grid; gap:18px; margin:20px 0; }
.ai-notebook form > .primary, .ai-notebook form > .secondary { justify-self:start; }
.ai-notebook label { min-width:0; }
.ai-notebook textarea { min-height:96px; }
.ai-notebook input, .ai-notebook select, .ai-notebook textarea { max-width:100%; }
.ai-notebook fieldset { min-width:0; padding:20px; border:1px solid var(--line); border-radius:16px; display:grid; gap:16px; margin:20px 0; background:var(--page); }
.ai-notebook legend { font-weight:700; padding:0 8px; }
.ai-notebook details { margin:18px 0; }
.ai-notebook summary { cursor:pointer; font-weight:600; min-height:44px; display:list-item; padding:10px 0; }
.ai-notebook blockquote { padding:16px 20px; background:var(--mint); border-left:4px solid var(--sky); border-radius:0 14px 14px 0; margin:20px 0; white-space:pre-wrap; }
.ai-notebook blockquote p { margin:6px 0; }
.ai-goal, .ai-next-step { padding:18px 22px; border-radius:18px; background:var(--ai-paper); border:1px solid #e9d8b3; }
.ai-next-step p { margin:8px 0 0; }
.ai-help-prose { font-size:18px; white-space:pre-wrap; margin:24px 0; }
.ai-footnote { color:var(--muted); font-size:13px; padding-top:16px; margin-top:24px; border-top:1px solid var(--line); }
.ai-fact-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:24px 0; }
.ai-fact-strip span { background:var(--mint); padding:16px; border-radius:16px; font-size:13px; }
.ai-fact-strip strong { display:block; font-size:26px; line-height:1.4; color:var(--ink); }
.ai-evidence-card, .ai-review-card, .ai-interest-list article { border:1px solid var(--line); border-radius:18px; background:var(--page); padding:20px; margin:16px 0; }
.ai-evidence-card > div:first-child { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.ai-review-card h3 { margin-top:14px; }
.ai-review-card .ai-actions { margin-top:16px; }
.ai-history { margin:20px 0; padding:20px 0; border-top:1px solid var(--line); }
.ai-history .ai-help-prose { font-size:16px; }
.ai-discovery-grid { display:grid; gap:20px; margin:24px 0; }
.ai-discovery-card { position:relative; border:1px solid #e9d8b3; background:var(--cream); border-radius:22px; padding:24px; box-shadow:0 5px 0 #e9d8b34d; }
.ai-discovery-card:nth-child(2) { background:var(--mint); border-color:var(--line); }
.ai-discovery-card:nth-child(3) { background:var(--pink-soft); border-color:#ecc9da; }
.ai-discovery-card h3 { margin-top:12px; padding-right:32px; }
.ai-topic-number { float:right; color:var(--brand); font-size:24px; font-weight:700; }
.ai-reason { font-size:14px; color:var(--muted); }
.ai-empty { padding:24px; background:var(--cream); border-radius:18px; }
.ai-plan-entry { border-bottom:1px solid var(--line); padding-bottom:16px; }
.ai-plan-entry > label { display:grid; gap:8px; margin:16px 0; }
.ai-plan-add { padding:20px; border-radius:18px; background:var(--mint); display:grid; gap:16px; }
.ai-wait { background:var(--cream); padding:24px; border-radius:20px; display:flex; gap:20px; align-items:center; }
.ai-wait > span { color:var(--pink); font-size:32px; animation:ai-breathe 2s ease-in-out infinite; }
.ai-child { --brand:var(--pink); --brand-dark:var(--pink-dark); }
.ai-child h2 { font-family:var(--round-font); font-weight:400; }
.ai-child .primary { min-height:52px; font-size:16px; border-radius:16px; }
.ai-child .secondary, .ai-child .text-button { min-height:44px; }
@keyframes ai-breathe { 50% { transform:scale(.82); opacity:.55; } }
@media (max-width:760px) {
 .ai-entry-strip { align-items:stretch; flex-direction:column; padding:20px; }
 .ai-discovery-card, .ai-evidence-card, .ai-review-card { padding:18px; }
 .ai-notebook fieldset { padding:14px; }
 .ai-fact-strip { gap:8px; }
 .ai-fact-strip span { padding:12px 8px; }
 .ai-notebook form > .primary { width:100%; }
 .ai-actions { gap:10px; }
 .ai-notebook .check-row { align-items:flex-start; }
}
@media (prefers-reduced-motion:reduce) { .ai-wait > span { animation:none; } }

/* A child's project notebook, following the existing sky / berry / cream palette. */
.core-notebook{max-width:860px}.core-notebook h2{line-height:1.4;overflow-wrap:anywhere}.core-method{color:var(--muted);margin-bottom:24px}.core-route{list-style:none;padding:0;display:flex;gap:10px;overflow-x:auto;margin:24px 0}.core-route li{display:flex;gap:10px;min-width:130px;flex:1;padding:14px 10px;border-bottom:3px solid var(--line,#e5e4ee);opacity:.75}.core-route li>span{display:grid;place-items:center;flex:none;width:30px;height:30px;border:1px solid currentColor;border-radius:50%}.core-route small{display:block;font-size:12px;margin-top:6px}.core-route .current{opacity:1;color:var(--pink-dark,#a51f62);border-color:var(--pink);background:var(--pink-soft,#fbe2ed);border-radius:16px 16px 0 0}.core-route .done{opacity:1;color:var(--brand)}.core-route strong{font-size:14px}.core-station,.core-milestone,.core-weekly{padding:26px;border:1px solid #e5d9be;border-radius:22px;background:linear-gradient(135deg,#fff8e8,#fffdf8);margin:20px 0}.core-station h3{font-family:var(--round-font);font-size:26px;line-height:1.5}.core-task-text{font-size:18px;line-height:1.9;white-space:pre-line}.core-notebook label{display:block;margin:16px 0;font-weight:600}.core-notebook textarea,.core-notebook input:not([type=radio]):not([type=checkbox]),.core-notebook select{width:100%;max-width:100%;box-sizing:border-box;margin-top:8px;min-height:44px;border:1px solid #b5b7cd;border-radius:12px;padding:12px;background:#fffdf9;color:var(--ink);font:inherit}.core-notebook textarea{min-height:110px;resize:vertical}.core-notebook .practice-choice{display:flex;align-items:flex-start;gap:12px;min-height:52px;padding:14px;background:#fff;border:1px solid #d9d5e3;border-radius:14px;font-weight:400;line-height:1.6}.core-notebook .practice-choice:has(input:checked){border-color:var(--pink);background:var(--pink-soft,#fbe2ed)}.core-notebook .practice-choice input{margin-top:5px;accent-color:var(--pink)}.core-notebook .check-row{display:flex;gap:10px;align-items:flex-start;font-weight:400;line-height:1.7}.core-child .primary{min-height:52px;background:var(--pink);border-color:var(--pink);border-radius:18px;padding:12px 22px;white-space:normal}.core-child .primary:hover{background:var(--pink-dark,#a51f62)}.core-notebook .secondary{min-height:44px;white-space:normal}.core-secondary{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;border-top:1px solid #eadfca;padding-top:12px}.core-decisions,.core-question-tree{margin:20px 0}.core-notebook details{border-top:1px solid #e6e1d9;padding:16px 0}.core-notebook summary{cursor:pointer;line-height:1.7;font-weight:600}.core-question-tree ol{list-style:none;padding:4px 0 4px 14px;border-left:3px solid #b8dff4}.core-question-tree li{padding:12px 0 12px 18px;position:relative}.core-question-tree li:before{content:'';position:absolute;left:-22px;top:22px;width:12px;height:12px;border-radius:50%;background:var(--sky)}.core-question-tree li>span{font-size:13px;color:var(--muted)}.core-question-tree p,.core-source p,.core-comparison p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.core-project-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.core-project-card{border:1px solid #e8d9bf;background:#fff8e8;border-radius:20px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.core-project-card h3{font-family:var(--round-font);line-height:1.5;font-size:23px;margin:0;overflow-wrap:anywhere}.core-project-card .primary,.core-project-card .secondary{margin-top:auto}.core-source{padding:18px 0;border-bottom:1px dashed #d3cede}.core-source strong{display:inline-block;margin-left:10px}.core-source small{color:var(--muted)}.core-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.core-comparison article{padding:22px;border-radius:18px;background:#edf7fd;border:1px solid #c3e1f2}.core-comparison article+article{background:#fff2da;border-color:#ebd3a7}.core-comparison span{font-size:13px;font-weight:700}.core-home strong{display:block;font-family:var(--round-font);font-size:23px;line-height:1.5}.sense-input{padding:8px 0 16px;border-bottom:1px dashed #d6d1de}.sense-input small{display:block;color:var(--muted);line-height:1.7}.sense-result p{white-space:pre-wrap;line-height:1.8}.sense-result:empty{display:none}.sense-result:not(:empty){background:#eaf5fc;border-radius:14px;padding:16px;margin-top:12px}.sense-result label{font-weight:400}.core-notebook :is(button,input,textarea,select,summary):focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:600px){.core-station,.core-milestone,.core-weekly{padding:18px}.core-project-list,.core-comparison{grid-template-columns:1fr}.core-route{display:grid;grid-template-columns:1fr;gap:4px}.core-route li{padding:8px 10px;border-bottom:0;border-left:3px solid #ded9e6;min-width:0}.core-route .current{border-radius:0 14px 14px 0;border-left-color:var(--pink)}.core-route li div{display:flex;gap:12px;align-items:center}.core-route small{margin:0}.core-station h3{font-size:23px}.core-notebook .ai-actions{align-items:stretch}.core-notebook .ai-actions button{white-space:normal}.core-home{align-items:flex-start}.core-home .primary{max-width:100%;white-space:normal}}

.core-feedback{background:#eaf5fc;border-left:4px solid var(--sky);padding:16px 20px;border-radius:0 14px 14px 0;line-height:1.8}.core-feedback p{margin-bottom:0}
.participation-route { margin-top: 18px; border-top: 1px dashed var(--line, #dce3ee); padding-top: 12px; }
.core-notebook form:is([data-form=core-alternative],[data-form=participation]) { gap:8px; }
.core-notebook form:is([data-form=core-alternative],[data-form=participation]) label { margin:8px 0; }
.core-data-scroll { max-width:100%; overflow-x:auto; margin:18px 0; border:1px solid #dce3ee; border-radius:16px; background:#fffdf7; }
.core-data-table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; }
.core-data-table caption { text-align:left; padding:14px; font-weight:700; color:#29294f; }
.core-data-table th,.core-data-table td { padding:12px; border-bottom:1px solid #e6eaf2; vertical-align:top; min-width:70px; }
.core-data-table thead { background:#eaf6ff; }
.core-notebook fieldset { border:0; padding:0; margin:0; min-width:0; }
.core-notebook legend { font-weight:700; margin-bottom:12px; }
.core-notebook .practice-choice small { display:block; margin-top:5px; line-height:1.6; }
.core-path-list { padding-left:24px; }
.core-path-list li { padding:12px 0; }
.core-path-list li p { margin:6px 0; }
.core-period-switch { display:flex; gap:10px; flex-wrap:wrap; }
.core-grid { display:grid; grid-template-columns:repeat(4,1fr); width:min(100%,240px); margin:16px auto; gap:4px; }
.core-grid span { min-height:48px; display:grid; place-content:center; border:1px solid #c7dcec; border-radius:8px; background:white; font-weight:700; }
.core-grid .visited { background:#c5eaff; color:#29294f; border-color:#299de3; }
.core-robot-output { padding:12px; background:#fff3db; border-radius:16px; overflow-wrap:anywhere; }
@media (max-width:480px) { .core-data-table th,.core-data-table td { padding:9px; font-size:13px; } .core-period-switch button { flex:1 1 120px; } }

/* Family notebook: one place to understand, verify and support. */
.parent-shell { --family-mint: #e6f2ed; --family-rose: #fae7ee; --family-line: #e0e5e8; background: #faf8f1; min-height: 100vh; }
.parent-shell > header { background: #e9f5fc; padding-block: 16px; gap: 16px; }
.parent-shell header nav a { font-size: 14px; white-space: nowrap; min-height: 44px; }
.parent-shell header nav a[aria-current] { background: #fffdf7; box-shadow: 0 3px 0 #bdd5e4; }
.parent-shell main { padding-top: 22px; }
.parent-shell h1, .parent-shell h2, .parent-shell h3, .parent-shell h4 { color: var(--ink); overflow-wrap: anywhere; }
.family-header-tools { display: flex; align-items: center; gap: 8px; }
.family-header-tools > a { display: grid; place-items: center; width: 40px; height: 44px; border-radius: 12px; }
.family-header-tools > a:hover { background: #fffdf7; }
.family-context { display: flex; align-items: center; gap: 18px; padding: 0 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--family-line); }
.family-context label { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 13px; color: var(--muted); }
.family-context select { width: auto; min-width: 100px; min-height: 44px; padding-block: 8px; background: #fffdf7; color: var(--ink); font-weight: 700; }
.family-context > span { font-size: 12px; color: var(--muted); }
.family-context > a { margin-left: auto; font-size: 12px; }
.family-hero { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 40px; padding: 24px 0 34px; }
.family-hero .eyebrow { color: #6b737d; font-size: 12px; letter-spacing: .12em; }
.family-hero h1 { margin: 12px 0 16px; font-size: clamp(26px,3vw,38px); line-height: 1.4; letter-spacing: -.035em; }
.family-hero > div > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.family-hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.family-hero-note { position: relative; background: #fff0cf; border: 1px solid #eadbb7; border-radius: 4px 24px 24px; padding: 26px; box-shadow: 5px 6px 0 #f0e8d7; transform: rotate(1deg); }
.family-hero-note p { font-size: 17px; font-weight: 600; line-height: 1.85; margin-block: 14px; white-space: pre-wrap; }
.family-hero-note small { color: #776b52; }
.family-kicker { display: block; font-size: 12px; letter-spacing: .06em; color: #66756f; font-weight: 600; }
.parent-shell .family-ai { margin-block: 8px 36px; background: #eef6f2; border: 1px solid #cdded5; padding: 24px 28px; box-shadow: 0 5px 0 #e3e9df; }
.family-ai-status { display: flex; align-items: center; gap: 22px; }
.family-ai-spark { flex: 0 0 52px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #d4e8de; color: #386c59; font-size: 30px; }
.family-ai-status > div { flex: 1; }
.family-ai h3 { font-size: 20px; margin: 6px 0 10px; }
.family-ai p { font-size: 14px; line-height: 1.85; margin-bottom: 0; white-space: pre-wrap; }
.family-ai .family-ai-consent { font-size: 12px; color: #596e63; border-top: 1px solid #d3e2d9; margin-top: 18px; padding-top: 14px; }
.family-ai-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 20px; }
.family-ai-notes > article { background: #fffdf7; border-radius: 14px; padding: 20px; min-width: 0; }
.family-ai-notes h4 { font-size: 16px; margin: 0; }
.family-ai .family-ai-summary { font-size: 16px; }
.family-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.family-section-title h2 { font-size: 24px; margin: 9px 0 0; letter-spacing: -.03em; }
.family-source-label { color: #65777f; border: 1px solid #d8e1df; padding: 6px 10px; font-size: 11px; border-radius: 99px; white-space: nowrap; }
.family-insight-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 20px; }
.family-insight-tabs button { display: grid; grid-template-columns: auto 1fr; text-align: left; align-items: center; gap: 4px 12px; padding: 16px 20px; border: 1px solid var(--family-line); border-radius: 16px; background: #f2f2ec; color: var(--ink); box-shadow: none; min-width: 0; transition: background 160ms,border-color 160ms; }
.family-insight-tabs button > span { grid-row: span 2; font-size: 28px; color: #54796c; }
.family-insight-tabs button strong { font-size: 15px; }
.family-insight-tabs button small { font-size: 12px; color: var(--muted); }
.family-insight-tabs button[aria-pressed=true] { background: #fffdf7; border: 1.5px solid #779d92; box-shadow: 0 4px 0 #d8e5dd; }
.family-insight-tabs button[data-id=strengths] > span { color: #9a782a; }
.family-insight-tabs button[data-id=support] > span { color: #aa5576; }
.family-insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.family-insight-card { padding: 24px; min-width: 0; background: #fffdf8; border: 1px solid var(--family-line); border-radius: 20px; box-shadow: 0 4px 0 #f0eee5; }
.family-insight-card h3 { margin: 0 0 20px; font-size: 20px; }
.family-insight-card p { font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-fact span, .family-reading span { display: block; color: #738178; font-size: 11px; letter-spacing: .08em; margin-bottom: 5px; }
.family-reading { color: var(--muted); }
.family-small-step { background: #fff1d8; border-radius: 12px; padding: 16px; margin-top: 18px; }
.family-small-step strong { font-size: 12px; color: #7b6332; }
.family-small-step p { margin: 8px 0 0; }
.family-evidence { margin-top: 20px; padding-top: 14px; border-top: 1px dashed #d6ded7; }
.family-evidence summary, .family-route summary { color: #315c77; cursor: pointer; font-size: 13px; padding-block: 6px; min-height: 32px; }
.family-evidence article { border-left: 2px solid #b5cbbf; padding-left: 14px; margin-top: 18px; }
.family-evidence small { color: var(--muted); font-size: 11px; }
.family-evidence p { font-size: 13px; margin-block: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-empty { border: 1px dashed #cdd7d1; border-radius: 20px; background: #f6f6ee; padding: 36px 24px; text-align: center; }
.family-empty > span { display: block; font-size: 40px; color: #7c9a8a; }
.family-empty h3 { margin-block: 12px; }
.family-empty p { color: var(--muted); line-height: 1.9; max-width: 540px; margin-inline: auto; }
.parent-shell .family-route { padding: 28px; margin-block: 32px; background: #fffdf7; }
.family-route ol { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.family-route li { display: flex; gap: 14px; min-width: 0; }
.family-route-index { font-family: 'DM Sans',sans-serif; font-size: 22px; font-weight: 500; color: #588278; border-top: 2px solid #8db3a5; padding-top: 8px; }
.family-route li > div { padding-top: 10px; min-width: 0; }
.family-route li small { color: var(--muted); font-size: 12px; }
.family-route h3 { font-size: 16px; margin: 10px 0; }
.family-route li p { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.family-project-links { border-top: 1px solid var(--family-line); padding-top: 20px; margin-top: 24px; }
.family-project-links > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.family-project-links small { display: block; margin-top: 6px; color: var(--muted); }
.family-bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.parent-shell .family-bottom-grid .surface { padding: 26px; background: #fffdf7; }
.family-bottom-grid h2 { font-size: 22px; margin-block: 10px 20px; }
.parent-shell .family-voices blockquote { margin: 18px 0 0; padding: 16px 20px; background: #eff5fa; border-radius: 4px 16px 16px; }
.family-voices blockquote p { line-height: 1.85; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-voices blockquote small { display: block; color: var(--muted); font-size: 11px; }
.family-record-number { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; }
.family-record-number strong { color: var(--ink); font-size: 36px; font-weight: 500; }
.family-record-number > span { margin: 0 6px; }
.family-record-summary .learning-next { padding: 16px 0 0; border: 0; box-shadow: none; margin-top: 20px; background: transparent; }
.family-record-summary .learning-next h2 { font-size: 17px; }
.family-method-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin-top: 28px; }
.family-loading { padding: 60px 24px; text-align: center; color: var(--muted); }
.family-loading > span { display: block; font-size: 36px; color: #779d92; }
.family-record-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 26px 0; flex-wrap: wrap; }
.family-record-toolbar .tabs { margin: 0; }
.family-record-list { display: grid; gap: 14px; }
.family-record-list article { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 22px; padding: 20px; }
.family-record-list img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }
.family-record-list h2 { font-size: 18px; margin-block: 8px; }
.family-record-list p, .family-record-list small { color: var(--muted); font-size: 12px; }
@media(max-width:900px) {
  .parent-shell > header { flex-wrap: wrap; padding-inline: 20px; }
  .parent-shell header nav { order: 3; width: 100%; justify-content: center; }
  .family-header-tools { margin-left: auto; }
  .family-hero { gap: 24px; grid-template-columns: 1.4fr 1fr; }
  .family-hero-note { padding: 20px; }
  .family-hero-note p { font-size: 15px; }
  .family-route ol { grid-template-columns: 1fr; gap: 16px; }
  .family-route li:not(:last-child) { padding-bottom: 16px; border-bottom: 1px dashed var(--family-line); }
}
@media(max-width:600px) {
  .parent-shell main { padding: 18px 16px 50px; }
  .parent-shell > header { padding: 12px 16px; gap: 10px; }
  .parent-shell header nav { gap: 3px; }
  .parent-shell header nav a { padding: 9px 6px; font-size: 12px; flex: 1; text-align: center; justify-content: center; }
  .family-header-tools { gap: 2px; }
  .family-header-tools > a { width: 32px; }
  .family-header-tools .text-button { padding: 6px; font-size: 12px; }
  .family-context { flex-wrap: wrap; gap: 8px; margin-bottom: 0; padding-bottom: 14px; }
  .family-context > span { display: none; }
  .family-context label { gap: 8px; }
  .family-context > a { padding: 8px 0; }
  .family-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .family-hero h1 { font-size: 27px; }
  .family-hero-actions { margin-top: 18px; gap: 8px; }
  .family-hero-actions .secondary { font-size: 12px; padding-inline: 12px; }
  .family-hero-actions .text-button { font-size: 12px; }
  .family-hero-note { transform: none; padding: 20px; }
  .parent-shell .family-ai { padding: 20px; }
  .family-ai-status { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 12px; }
  .family-ai-spark { width: 36px; height: 36px; font-size: 24px; border-radius: 12px; }
  .family-ai-status > button { grid-column: 1/-1; width: 100%; margin-top: 8px; }
  .family-ai h3 { font-size: 18px; line-height: 1.6; }
  .family-ai-notes, .family-insight-grid, .family-bottom-grid { grid-template-columns: 1fr; }
  .family-section-title { gap: 8px; align-items: flex-start; }
  .family-section-title h2 { font-size: 22px; line-height: 1.5; }
  .family-source-label { font-size: 10px; padding: 5px 7px; }
  .family-insight-tabs { gap: 8px; }
  .family-insight-tabs button { display: flex; flex-direction: column; padding: 13px 5px; gap: 5px; text-align: center; }
  .family-insight-tabs button > span { font-size: 24px; }
  .family-insight-tabs button strong { font-size: 13px; }
  .family-insight-tabs button small { font-size: 11px; }
  .family-insight-card { padding: 20px; }
  .parent-shell .family-route { padding: 22px 20px; }
  .family-project-links > div { flex-wrap: wrap; }
  .family-record-list article { grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 16px; }
  .family-record-list img { width: 64px; height: 64px; }
  .family-record-list article > button { grid-column: 1/-1; }
  .family-record-list h2 { font-size: 16px; }
  .family-record-toolbar > button { width: 100%; }
  .family-record-toolbar .tabs { width: 100%; }
  .family-record-toolbar .tabs button { flex: 1; padding-inline: 8px; font-size: 12px; }
  .parent-shell .profile-setting { flex-wrap: wrap; }
}
.family-hero-topic { display: block; margin-top: 14px; font-weight: 600; }
.family-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.parent-shell .family-profile-card { padding: 26px; background: #fffdf7; }
.family-profile-heading { display: flex; align-items: center; gap: 16px; }
.family-profile-heading h2 { font-size: 22px; margin: 0 0 8px; }
.family-profile-heading small { color: var(--muted); }
.family-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.family-privacy { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--family-line); }
.family-privacy summary { font-size: 13px; color: var(--muted); cursor: pointer; padding-block: 8px; }
.family-privacy p { font-size: 13px; line-height: 1.8; }
.family-privacy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.parent-shell .family-notifications { padding: 26px; margin-top: 30px; }
.family-notifications h2 { font-size: 22px; margin-top: 0; }
.family-notifications .check-row { line-height: 1.8; }
@media(max-width:600px) { .family-profile-grid { grid-template-columns: 1fr; } .parent-shell .family-profile-card, .parent-shell .family-notifications { padding: 20px; } }
.family-card-context { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }

/* School delivery stays within the existing teacher and operator visual system. */
.school-delivery{--school-ink:var(--ink,#29294f);--school-blue:#315ca8;--school-paper:#fffaf0;color:var(--school-ink)}
.school-entry{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 26px;margin:18px 0 26px;background:#edf4fc;border:1px solid #d9e5f2;border-radius:20px}.school-entry strong{font-size:19px}.school-entry p{margin:8px 0 0;line-height:1.7;color:#575d73}.school-entry>a{flex-shrink:0}
.school-home-grid,.school-lesson-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:26px;align-items:start}.school-home-grid>*,.school-lesson-grid>*{min-width:0}.school-pack-card{padding:26px;margin:18px 0;display:flex;gap:20px;align-items:center;justify-content:space-between}.school-pack-card>div{min-width:0}.school-pack-card h2{font-size:23px;line-height:1.5;margin:14px 0}.school-pack-card p{line-height:1.8;overflow-wrap:anywhere}.school-pack-card>a{flex-shrink:0}.school-program-list{padding:24px;margin:18px 0}.school-program-list>a{display:block;padding:16px 0;border-bottom:1px solid #dce3ee;color:#315ca8}.school-program-list small{display:block;margin-top:8px;color:#596176}.school-empty,.school-launch,.school-classes,.school-review,.school-report-form,.school-report-history{padding:26px;margin:22px 0}.school-starters{padding:22px;border:1px dashed #b4c9dc;border-radius:18px;background:#f5f9fc}.school-starters summary{font-weight:700;cursor:pointer}.school-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:20px 0}.school-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:12px;margin:24px 0}.school-metric{padding:18px;border:1px solid #dce3ee;border-radius:16px;background:#f4f8fd;display:flex;flex-direction:column;gap:8px}.school-metric strong{font-size:27px}.school-metric span{font-size:13px;color:#525a70}.school-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.school-note{padding:18px 22px;border-left:4px solid #d9b877;background:var(--school-paper,#fffaf0);border-radius:8px;line-height:1.9}.school-pack-lessons,.school-journey{list-style:none;margin:24px 0;padding:0}.school-pack-lessons>li{padding:26px;margin:22px 0}.school-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px}.school-guide section{padding:15px 0;border-bottom:1px solid #e0e5eb;break-inside:avoid}.school-guide h3{font-size:16px;margin:8px 0}.school-guide p{white-space:pre-wrap;line-height:1.9;overflow-wrap:anywhere;margin:8px 0;color:#50596b}.school-edit-lesson{padding:18px 0;border-bottom:1px solid #dce3ee}.school-edit-lesson summary{font-weight:700;line-height:1.7;cursor:pointer}.school-journey>li{display:flex;align-items:center;gap:20px;padding:24px;margin:18px 0}.school-journey>li>div{flex:1;min-width:0}.school-journey h2{font-size:21px;overflow-wrap:anywhere}.school-journey small{line-height:1.8;color:#526077}.school-stop{width:42px;height:42px;border-radius:50%;background:#e5eff9;color:#315ca8;display:grid;place-items:center;font-size:20px;font-weight:700;flex-shrink:0}.school-lesson-guide,.school-readiness{padding:26px;margin:20px 0}.school-lesson-guide .school-guide{display:block}.school-readiness ul{padding-left:0;list-style:none;line-height:2.3}.school-readiness p{line-height:1.8;overflow-wrap:anywhere}.school-launch fieldset{border:1px solid #dce3ee;border-radius:16px;padding:18px;margin:18px 0}.school-launch legend{font-weight:700}.school-classes article{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid #dce3ee;padding:16px 0}.school-report section{padding:20px 0;border-bottom:1px solid #dce3ee;break-inside:avoid}.school-report p{line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:900px){.school-home-grid,.school-lesson-grid{grid-template-columns:minmax(0,1fr)}.school-entry{flex-wrap:wrap}.school-guide{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.school-pack-card,.school-journey>li,.school-classes article{align-items:flex-start;flex-wrap:wrap}.school-pack-card,.school-pack-lessons>li,.school-lesson-guide,.school-readiness,.school-launch,.school-classes,.school-review,.school-report-form,.school-report-history{padding:18px}.school-journey>li>div{flex-basis:calc(100% - 64px)}.school-journey>li>a{margin-left:62px}.school-entry{padding:18px}.school-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.school-metric{min-width:0}.school-actions>*{max-width:100%}}
@media print{body:has(.school-delivery) .sidebar,body:has(.school-delivery) .teacher-topbar,body:has(.school-delivery) .ops-sidebar,body:has(.school-delivery) .ops-topbar,.school-delivery .school-actions,.school-delivery>a,.school-delivery .school-review,.school-delivery .school-starters,.school-delivery button{display:none!important}body:has(.school-delivery) .teacher-workspace,body:has(.school-delivery) .ops-workspace{margin:0!important}.school-delivery .school-home-grid,.school-delivery .school-lesson-grid{display:block}.school-delivery .school-lesson-grid>aside{display:none}.school-delivery details:not([open])>*:not(summary){display:block}.school-delivery .surface{box-shadow:none;border:1px solid #bbb}.school-delivery .school-guide{display:block}body.school-print-modal #app,body.school-print-modal #status{display:none!important}body.school-print-modal dialog{position:static!important;max-height:none!important;height:auto!important;width:100%!important;max-width:none!important;border:none;overflow:visible!important;box-shadow:none}body.school-print-modal dialog .dialog-close,body.school-print-modal dialog button,body.school-print-modal dialog .school-actions{display:none!important}body.school-print-modal dialog::backdrop{display:none}body.school-print-modal #modal-root{display:block!important}}

@media print{body:has(.school-delivery) .teacher-shell,body:has(.school-delivery) .ops-shell{display:block!important}body:has(.school-delivery) .workspace,body:has(.school-delivery) .ops-workspace{margin:0!important;width:100%!important}body:has(.school-delivery) .topbar{display:none!important}body:has(.school-delivery) main{padding:0!important;max-width:none!important}body.school-print-modal .form-error{display:none!important}}

/* Behavior recommendations use the existing exploration cards and paper palette. */
.interest-intro { color: var(--muted); margin: 0 0 1rem; }
.interest-reason { color: var(--ink); font-size: .875rem; padding: .6rem .75rem; border-left: 3px solid var(--sky, var(--blue)); background: var(--page); border-radius: 0 .5rem .5rem 0; }
#interest-home { min-width: 0; }
#interest-profile .ai-evidence-card h3 { margin-top: 0; }
@media (max-width: 600px) { #interest-home .card-copy { min-width: 0; } .interest-reason { overflow-wrap: anywhere; } }

/* Discovery archive — stitched cloth cover, paper leaves and transparent card pockets. */
.rarity-N{--card-ink:#426450;--card-edge:#97b09b;--card-paper:#edf3e6;--card-light:#fffef5;--card-metal:#adc3a4;--card-frame:linear-gradient(145deg,#dfead6,#fffdf0 45%,#bdd2b7)}
.rarity-R{--card-ink:#245c87;--card-edge:#81b1ce;--card-paper:#eaf5fc;--card-light:#f6fcff;--card-metal:#8dc6df;--card-frame:linear-gradient(135deg,#8dbbd2,#f4fcff 32%,#b8d9ee 65%,#e6f5fc)}
.rarity-SR{--card-ink:#69458b;--card-edge:#ad92c9;--card-paper:#f4ebfa;--card-light:#fff9ff;--card-metal:#b899d5;--card-frame:linear-gradient(145deg,#b49bd3,#fcf0ff 35%,#d1b2e6 70%,#eee3fc)}
.rarity-SSR{--card-ink:#805322;--card-edge:#cb9b4e;--card-paper:#fff3ce;--card-light:#fffbee;--card-metal:#d5ac52;--card-frame:linear-gradient(135deg,#c19443,#fff0b3 27%,#e6c578 46%,#fff9da 63%,#d3a84a)}
.rarity-UR{--card-ink:#70507a;--card-edge:#b69aa7;--card-paper:#fff2ed;--card-light:#fffcf7;--card-metal:#bd92ac;--card-frame:linear-gradient(135deg,#f4c2ae,#faf2b7 20%,#b9e3d6 40%,#c4dcf3 58%,#d8c1ef 76%,#f8c7c7)}
.album-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 20px}.album-topbar button{font-size:13px;min-height:44px}.album-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:32px 42px 34px;margin-bottom:28px;position:relative;overflow:hidden;border:1px solid #dce4d1;border-radius:26px;background:radial-gradient(ellipse at 80% 10%,#dcebd5 0,transparent 55%),#f4f5e9}.album-hero:before{content:'';position:absolute;width:290px;height:290px;right:18px;top:-100px;border:1px solid #b9c9a95c;border-radius:50%;box-shadow:0 0 0 32px #b9c9a917,0 0 0 64px #b9c9a90d;pointer-events:none}.album-hero>.album-cover,.album-hero>div:first-child{position:relative}.album-hero .eyebrow{font-size:10px;letter-spacing:.18em;color:#526e5b;margin:0 0 14px}.album-hero h1{font:clamp(27px,3vw,41px)/1.4 'ZCOOL KuaiLe',sans-serif;color:#2f4c3e;margin:0 0 10px}.album-hero h1>span{display:inline-block;font:28px Georgia,serif;color:#b39a5c;margin-left:16px;vertical-align:middle}.album-hero>div>p:not(.eyebrow){font-size:14px;color:#607064;margin:0}.album-metrics{display:flex;flex-wrap:wrap;gap:28px;margin-top:26px}.album-metrics>span{display:flex;align-items:baseline;gap:7px;font-size:12px;color:#5f6b60}.album-metrics strong{font:700 28px/1.2 'DM Sans',sans-serif;color:#355b46}.album-metrics strong>small{font-size:14px;font-weight:400;color:#798678;margin-left:3px}.album-cover{flex:0 0 142px;min-height:181px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:9px;padding:23px 14px 16px;border-radius:5px 15px 15px 5px;border:1px solid #546d5b;border-left:9px solid #314f3e;outline:1px solid #bbcbab;outline-offset:-16px;transform:rotate(9deg);background:repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 4px),#476750;box-shadow:5px 4px 0 #ede5cd,7px 6px 0 #c3baa1,10px 12px 20px #425a4926;color:#f3e4b4}.album-cover>span{text-align:center;font:700 13px/1.35 'DM Sans',sans-serif;letter-spacing:.18em}.album-cover b{font:42px/1 Georgia,serif;font-weight:400}.album-cover>small{font-size:8px;letter-spacing:.1em}
.album-rarity-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:32px}.album-rarity-tabs>button{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;min-height:73px;padding:12px 10px;border:1px solid var(--card-edge,#d5d9cf);border-radius:15px;background:var(--card-paper,#f7f8ef);color:var(--card-ink,#47644e);box-shadow:0 3px 0 #dedfd52e;transition:transform .18s,box-shadow .18s}.album-rarity-tabs>button[aria-pressed=true]{outline:2px solid var(--card-ink,#43634d);outline-offset:3px;box-shadow:0 5px 12px #36403012}.album-rarity-tabs>button:hover{transform:translateY(-2px)}.album-rarity-tabs>button>span:not(.tier-symbol){display:flex;flex-direction:column;align-items:flex-start;gap:3px}.album-rarity-tabs strong{font:800 20px/1.1 'DM Sans',sans-serif;letter-spacing:.01em}.album-rarity-tabs small{font-size:10px}.album-rarity-tabs b{font-size:12px;font-weight:600;align-self:flex-end;margin-bottom:2px}.album-rarity-tabs .tier-symbol{font-size:24px}.album-rarity-tabs .album-tier-all{flex-direction:column;gap:7px;background:#496953;border-color:#496953;color:#fff7db}.album-rarity-tabs .album-tier-all>span{font-size:11px}.album-rarity-tabs .album-tier-all>strong{font-size:22px}.album-rarity-tabs .album-tier-all[aria-pressed=true]{outline-color:#496953}
.album-section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.album-section-heading>div{display:flex;align-items:baseline;gap:14px}.album-section-heading h2{font:26px/1.3 'ZCOOL KuaiLe',sans-serif;margin:0;color:#364b40}.album-section-heading>div>span{font-size:12px;color:#6c776c}.album-page-label{font-size:11px;color:#7c806d;letter-spacing:.05em}.album-themes{margin-bottom:21px;gap:8px;display:flex;flex-wrap:wrap}.album-themes button{border-radius:11px;min-height:44px;font-size:12px;padding:10px 15px}.album-themes button[aria-pressed=true]{background:#496953;border-color:#496953;color:#fffbed}.album-empty-message{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;padding:20px;font-size:13px;color:#526651;background:#eff3e7;border-radius:14px;margin-bottom:18px}.album-empty-message a{min-height:44px;font-size:13px;padding:12px 20px}
.discovery-album{position:relative;padding:15px;border:1px solid #354b48;border-radius:15px 22px 22px 15px;background:repeating-linear-gradient(45deg,#ffffff04 0 1px,transparent 1px 4px),#3f5652;box-shadow:0 6px 0 #2c4140,0 12px 0 -2px #e5dbbe,0 14px 0 -2px #c6bda5,0 18px 32px #334a3e1c;transition:opacity .2s}.discovery-album.is-loading{opacity:.55}.discovery-album .collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.album-leaf{min-width:0;padding:17px 18px 12px;background:radial-gradient(#b5a88720 .6px,transparent .6px) 0 0 / 7px 7px,#fbf7e9;border:1px solid #e6dfca;border-radius:7px 11px 11px 7px;box-shadow:inset -9px 0 15px #8c765b0d,2px 2px 0 #d9ceb6,3px 4px 0 #eee6d4}.album-leaf:nth-child(2){border-radius:11px 7px 7px 11px;box-shadow:inset 9px 0 15px #8c765b0d,2px 2px 0 #d9ceb6,3px 4px 0 #eee6d4}.album-leaf-heading{display:flex;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.14em;color:#8b8069;padding-bottom:13px;border-bottom:1px solid #d9d0b7}.album-leaf-heading>span:last-child{font:600 11px 'DM Sans',sans-serif}.album-pockets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px;margin-top:16px}.album-pocket{position:relative;min-width:0;padding:8px 8px 18px;border:1px solid #d7d3ba;border-radius:8px 8px 13px 13px;background:linear-gradient(135deg,#ffffff9c,#f0eddd57 55%,#fffef9c4);box-shadow:inset 0 0 0 3px #ffffff57,0 2px 3px #73644b0a;display:flex;flex-direction:column}.album-pocket:after{content:'';position:absolute;left:0;right:0;bottom:0;height:28px;border-top:1px solid #fffef5c7;border-radius:0 0 12px 12px;background:linear-gradient(160deg,#fffdf71c,#ffffff69);pointer-events:none}.pocket-number{position:relative;align-self:center;font:600 8px 'DM Sans',sans-serif;letter-spacing:.15em;color:#9a927b;padding-top:7px;margin-bottom:-10px}.album-leaf-footer{font-size:9px;letter-spacing:.08em;text-align:center;color:#998b73;margin-top:17px}.album-binding{position:absolute;left:50%;top:0;bottom:0;width:24px;transform:translateX(-50%);display:flex;flex-direction:column;justify-content:space-around;z-index:2;pointer-events:none}.album-binding i{display:block;width:37px;height:15px;transform:translateX(-6px);border:2px solid #9a8a65;border-radius:8px;background:linear-gradient(#fff5ca,#af9b6b 48%,#f6e8b9 65%,#b4a074);box-shadow:0 3px 3px #263a3a40}.album-empty{flex:1;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#9a9b85;border:1px dashed #cdd0b8;border-radius:11px;background:#f4f3e738}.album-empty>span{font:44px/1.2 Georgia,serif;color:#b4b89e}.album-empty>strong{font-size:11px;font-weight:500}.album-empty>small{font-size:9px;padding:0 5px;line-height:1.8;color:#7d846f}.album-pagination{display:flex;align-items:center;justify-content:center;gap:28px;margin:32px 0 12px}.album-pagination>span{font-size:13px;color:#47604b;text-align:center}.album-pagination small{display:block;font-size:10px;color:#8c8f7c;margin-top:5px}.album-pagination button{min-width:115px;min-height:44px;font-size:13px;background:#f7f6eb;border-color:#d5dac9;color:#46634e;box-shadow:0 3px 0 #d9dfce}.album-pagination button:disabled{opacity:.4;cursor:default;box-shadow:none}.album-footnote{text-align:center;font-size:11px;color:#7a856f;margin:16px 0 30px}
/* Every tier has its own frame, insignia and material; all text stays live. */
.collectible-mini,.collectible-full{position:relative;border:1px solid var(--card-edge,#97b09b);background:var(--card-frame,linear-gradient(145deg,#dfead6,#fffdf0));box-shadow:0 4px 0 color-mix(in srgb,var(--card-edge,#97b09b),#66715c 10%),0 7px 15px #3c514017;color:var(--card-ink,#426450)}.collectible-mini{padding:8px;border-radius:13px;width:100%;flex:1}.collectible-mini:before{inset:3px;border:1px solid #fffff5a6;border-radius:10px}.collectible-mini:hover{transform:translateY(-5px) rotate(-1deg);box-shadow:0 7px 0 var(--card-edge,#97b09b),0 12px 22px #3c514020}.card-topline{display:flex;align-items:center;justify-content:space-between;padding:0 4px 7px;position:relative;z-index:1;color:var(--card-ink,#426450)}.card-rarity{display:inline-flex;align-items:baseline;gap:6px;font:900 21px/1 'DM Sans',sans-serif;letter-spacing:-.025em}.card-rarity small{font:500 9px/1.3 'Noto Sans SC',sans-serif;color:inherit;letter-spacing:.08em}.card-top-symbol{font:19px/1 Georgia,serif}.collectible-mini .collectible-art{border:1px solid var(--card-edge,#97b09b);border-radius:8px;aspect-ratio:1.04}.collectible-mini .collectible-art>span{top:6px;left:6px;font:700 6px/1.3 'DM Sans',sans-serif;padding:3px 5px;letter-spacing:.13em;border-color:#fff9d980;background:#fffdf1db;color:#655d46}.collectible-mini .collectible-seal,.collectible-full .collectible-seal{background:var(--card-metal,#adc3a4);border-color:var(--card-light,#fffef5);color:var(--card-ink,#426450);width:27px;height:27px;font-size:20px;bottom:7px;right:7px}.collectible-mini>.card-caption{padding:11px 5px 6px}.collectible-mini .card-caption>small{font-size:9px;color:var(--card-ink,#426450);letter-spacing:0}.collectible-mini h3{font:17px/1.45 'ZCOOL KuaiLe',sans-serif;margin:6px 0 11px;min-height:2.9em;color:var(--card-ink,#426450);overflow-wrap:anywhere}.collectible-mini .card-serial{border-color:color-mix(in srgb,var(--card-edge,#97b09b),transparent 45%);font-size:8px;letter-spacing:.06em;color:var(--card-ink,#426450);gap:4px;padding-top:8px}.collectible-mini .card-serial>span{font-size:8px;letter-spacing:0;white-space:nowrap}.rarity-SR .collectible-art:after{background:linear-gradient(135deg,#ffffff28 0,transparent 40%,#c8a7ed24 72%,transparent);box-shadow:inset 0 0 0 3px #fffaff5e}.rarity-SSR .collectible-art:after{background:repeating-conic-gradient(from 10deg at 100% 100%,#fff3a428 0deg 8deg,transparent 8deg 20deg);box-shadow:inset 0 0 0 3px #ffefb886}.rarity-UR .collectible-art:after{background:linear-gradient(125deg,#ffd1c52a,#fff7b636 20%,#b9eacd26 42%,#a8d9fd2b 65%,#edb5fc30);box-shadow:inset 0 0 0 3px #fff8f3a3}.rarity-UR .card-top-symbol{text-shadow:2px 1px 0 #b3d6d9,-2px -1px 0 #efc7ae}.collectible-full{padding:12px;border-radius:22px;max-width:360px;margin:auto}.collectible-full .card-topline{padding:2px 6px 10px}.collectible-full .card-rarity{font-size:32px}.collectible-full .card-rarity small{font-size:12px}.collectible-full .card-top-symbol{font-size:28px}.collectible-full .collectible-art{border:1px solid var(--card-edge);border-radius:12px;isolation:isolate}.collectible-full .collectible-art:after{content:'';position:absolute;inset:0;pointer-events:none}.collectible-full .collectible-art>span{font-size:8px;letter-spacing:.1em}.collectible-full .collectible-story{border:1px solid var(--card-edge);border-top:0;background:var(--card-light);padding:15px 17px 5px}.collectible-full .collectible-story h1{font-size:25px;color:var(--card-ink)}.collectible-full .collectible-story .eyebrow{color:var(--card-ink);font-size:9px}.collectible-full .collectible-story>p:not(.eyebrow){color:#596255;font-size:14px;line-height:1.8}.collectible-full .collectible-signature{color:var(--card-ink);border-color:var(--card-edge);padding-top:12px;font-size:11px}.collectible-signature>b{font:27px Georgia,serif}.discovery-reveal-title{text-align:center;font:20px/1.5 'ZCOOL KuaiLe',sans-serif;color:#4c6953;margin:2px 0 20px}.discovery-reveal .collectible-full{animation:discovery-unfold .55s cubic-bezier(.2,.8,.2,1) both}.discovery-reveal .discovery-reveal-title{animation:discovery-hello .45s ease-out both}.discovery-detail-actions{margin-top:23px}#modal-root:has(.discovery-detail) dialog{background:radial-gradient(ellipse at top,#eef4e6,transparent 65%),#fffaf0;max-width:480px}
.discovery-rules .eyebrow{font-size:9px;color:#617759;letter-spacing:.12em}.discovery-rules h2{font:26px/1.4 'ZCOOL KuaiLe',sans-serif;color:#385a44}.discovery-rules>p{font-size:13px;line-height:1.8;color:#69735f}.rarity-guide{margin:23px 0;display:grid;gap:14px}.rarity-guide-row{display:flex;align-items:center;gap:13px;min-width:0}.rarity-swatch{flex:0 0 51px;height:67px;border:1px solid var(--card-edge);border-radius:7px;background:var(--card-frame);color:var(--card-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;box-shadow:0 3px 0 var(--card-edge);transform:rotate(-5deg)}.rarity-swatch>span{font:25px/1 Georgia,serif}.rarity-swatch>strong{font:900 13px 'DM Sans',sans-serif}.rarity-guide-row>div:nth-child(2){flex:1;min-width:0}.rarity-guide-row h3{font-size:14px;margin:0 0 5px;color:#465f46}.rarity-guide-row p{font-size:11px;margin:0;color:#7a7d6d;line-height:1.6}.rarity-guide-row>strong{font:700 20px 'DM Sans',sans-serif;color:#526c50}.discovery-rules .rarity-rules-note{font-size:11px;padding:14px;background:#f0f2e7;border-radius:11px}.discovery-rules>.primary{width:100%;margin-top:9px;min-height:48px}
@keyframes discovery-unfold{from{opacity:0;transform:translateY(22px) rotate(-4deg) scale(.94)}to{opacity:1;transform:none}}@keyframes discovery-hello{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1000px){.album-hero{padding:28px}.album-rarity-tabs{gap:9px}.album-rarity-tabs .tier-symbol{display:none}.discovery-album{padding:11px}.discovery-album .collection-grid{gap:18px}.album-leaf{padding:13px 10px 10px}.album-pockets{gap:12px 8px}.album-pocket{padding:6px 5px 15px}.collectible-mini h3{font-size:15px}.collectible-mini .card-rarity{font-size:19px}.collectible-mini .card-serial>span{font-size:7px}.album-empty{min-height:220px}}
@media(max-width:760px){.album-topbar{margin-bottom:16px}.album-topbar>.text-button{font-size:12px}.album-topbar button{font-size:11px}.album-hero{padding:25px 21px;margin-bottom:23px;gap:15px}.album-hero h1{font-size:29px}.album-hero h1>span{font-size:20px;margin-left:6px}.album-hero .eyebrow{font-size:7px;letter-spacing:.12em;line-height:1.7;margin-bottom:12px}.album-hero>div>p:not(.eyebrow){font-size:12px}.album-cover{flex-basis:98px;min-height:145px;padding:20px 11px 15px;outline-offset:-11px;border-left-width:7px}.album-cover>span{font-size:9px}.album-cover b{font-size:31px}.album-cover>small{font-size:6px}.album-metrics{gap:15px;margin-top:22px}.album-metrics>span{font-size:9px;gap:4px;display:block}.album-metrics strong{font-size:23px;display:block;margin-bottom:4px}.album-metrics strong>small{font-size:11px}.album-rarity-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}.album-rarity-tabs>button{min-height:62px;padding:10px;gap:7px}.album-rarity-tabs .tier-symbol{display:block;font-size:20px}.album-rarity-tabs .album-tier-all{flex-direction:row;gap:10px}.album-rarity-tabs strong{font-size:19px}.album-rarity-tabs small{font-size:9px}.album-section-heading h2{font-size:23px}.album-section-heading>div{gap:9px}.album-section-heading>div>span{font-size:10px}.album-page-label{font-size:9px}.album-themes{gap:7px}.album-themes button{font-size:11px;padding:9px 12px;min-height:44px}.discovery-album{padding:10px;border-radius:12px}.discovery-album .collection-grid{grid-template-columns:1fr;gap:15px}.album-leaf,.album-leaf:nth-child(2){padding:15px 12px 12px;border-radius:7px}.album-leaf-heading{font-size:7px}.album-pockets{gap:15px 10px}.album-pocket{padding:7px 6px 17px}.album-binding{display:none}.album-empty{min-height:220px}.collectible-mini{padding:7px;border-radius:12px}.collectible-mini .card-topline{padding:0 2px 7px}.collectible-mini .card-rarity{font-size:21px}.collectible-mini .card-rarity small{font-size:8px}.collectible-mini .card-top-symbol{font-size:18px}.collectible-mini>.card-caption{padding:10px 3px 5px}.collectible-mini h3{font-size:16px;margin:6px 0 10px}.collectible-mini .card-caption>small{font-size:9px}.collectible-mini .card-serial{font-size:7px;letter-spacing:.03em}.collectible-mini .card-serial>span{font-size:7px}.album-pagination{gap:16px;margin-top:28px}.album-pagination button{min-width:94px;padding:10px;font-size:12px}.album-footnote{font-size:10px}.collectible-full .collectible-story h1{font-size:24px}.discovery-reveal-title{font-size:19px}}
@media(max-width:430px){.album-cover{position:absolute!important;right:-20px;top:0;transform:rotate(15deg);opacity:.13;width:115px;min-height:155px;pointer-events:none}.album-hero>div:first-child{z-index:1}.album-hero{padding:24px 19px}.album-metrics{gap:22px}.album-rarity-tabs>button{gap:6px}.album-rarity-tabs .tier-symbol{font-size:17px}.album-rarity-tabs b{font-size:10px}.album-empty{min-height:210px}.album-empty>strong{font-size:10px}.album-empty>small{font-size:8px}}
@media(max-width:359px){.album-hero h1{font-size:26px}.album-hero h1>span{font-size:17px}.album-metrics{gap:18px}.album-rarity-tabs .tier-symbol{display:none}.album-rarity-tabs .album-tier-all{gap:6px}.album-rarity-tabs .album-tier-all>span{font-size:10px}.album-section-heading h2{font-size:21px}.album-page-label{display:none}.discovery-album{padding:7px}.album-leaf,.album-leaf:nth-child(2){padding:12px 8px 10px}.album-pockets{gap:12px 7px}.album-pocket{padding:5px 4px 16px}.collectible-mini{padding:6px}.collectible-mini h3{font-size:14px}.collectible-mini .card-rarity{font-size:19px}.collectible-mini .card-rarity small{font-size:7px}.collectible-mini .card-top-symbol{font-size:15px}.collectible-mini .card-caption>small{font-size:8px}.collectible-mini .card-serial>span{display:none}.album-pagination{gap:12px}.album-pagination button{min-width:84px}.album-pagination>span{font-size:11px}.album-empty{min-height:192px}}
@media(prefers-reduced-motion:reduce){.album-rarity-tabs>button,.discovery-album{transition:none}.album-rarity-tabs>button:hover{transform:none}.discovery-reveal .collectible-full,.discovery-reveal .discovery-reveal-title{animation:none}.collectible-mini:hover{transform:none}}
.album-cover>small{color:#eee2b9}

/* Topic stamps identify a discovery's subject; the upper insignia identifies rarity. */
.collectible-seal .topic-stamp-icon{display:block;width:17px;height:17px}
.collectible-full .collectible-seal{width:34px;height:34px}
.collectible-full .collectible-seal .topic-stamp-icon{width:21px;height:21px}
/* A real two-sided card: a stable layout box holds both faces during the turn. */
.discovery-flip-shell{perspective:1300px;max-width:360px;margin:0 auto}
.discovery-flip-card{position:relative;display:grid;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.45,0,.55,1);border-radius:22px;cursor:pointer;outline-offset:6px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.discovery-flip-card.is-flipped{transform:rotateY(180deg)}
.discovery-flip-card>.collectible-full,.discovery-flip-card>.collectible-back{grid-area:1/1;box-sizing:border-box;width:100%;max-width:none;margin:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.discovery-flip-card>.collectible-full{transform:rotateY(0deg);pointer-events:auto}
.discovery-flip-card>.collectible-back{transform:rotateY(180deg);pointer-events:none}
.discovery-flip-card.is-flipped>.collectible-full{pointer-events:none}
.discovery-flip-card.is-flipped>.collectible-back{pointer-events:auto}
.discovery-flip-card:focus-visible{outline:3px solid #299de3}
.discovery-flip-card .collectible-story h1{user-select:none}
.collectible-back{position:relative;padding:12px;border:1px solid var(--card-edge);border-radius:22px;background:var(--card-frame);color:#355e56;box-shadow:0 4px 0 var(--card-edge),0 7px 15px #3c514017;display:flex;overflow:hidden}
.card-back-frame{position:relative;isolation:isolate;display:flex;flex:1;flex-direction:column;justify-content:space-between;align-items:center;width:100%;min-height:430px;padding:24px 20px 20px;border:1px solid #8cae9e;border-radius:13px;background:repeating-linear-gradient(45deg,#a6c1b51f 0 1px,transparent 1px 13px),repeating-linear-gradient(-45deg,#a6c1b51f 0 1px,transparent 1px 13px),#e7eee1;box-shadow:inset 0 0 0 5px #f4f4df,inset 0 0 0 6px #b5c7a9;overflow:hidden}
.card-back-frame:before,.card-back-frame:after{content:'';position:absolute;z-index:-1;left:50%;top:50%;width:290px;height:290px;border:1px solid #91b4a66b;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.card-back-frame:after{width:320px;height:320px;border-style:dashed;opacity:.65}
.card-back-frame .card-back-kicker{color:#557b68;font:600 8px/1.5 'DM Sans',sans-serif;letter-spacing:.19em;margin:0;text-align:center}
.card-back-brand{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:245px;gap:14px;margin:28px 0}
.card-back-orbit{position:absolute;inset:0 -18px;border:1px solid #8ba99373;transform:rotate(-22deg);border-radius:50%;background:#fffceda1;box-shadow:0 0 0 7px #eaf0dd70;z-index:-1;pointer-events:none}
.card-back-brand .brand-logo{display:block;flex:none;width:100%;max-width:250px;height:auto;object-fit:contain}
.card-back-brand .card-back-name{font:600 22px/1.2 'DM Sans',sans-serif;letter-spacing:.12em;color:#375f57;margin:0}
.card-back-line{display:block;width:37px;height:2px;background:#a9a374;border-radius:1px}
.card-back-brand .card-back-motto{font:15px/1.9 'ZCOOL KuaiLe',sans-serif;text-align:center;letter-spacing:.12em;color:#597761;margin:0}
.card-back-footer{display:flex;flex-direction:column;align-items:center;gap:7px;color:#5a7a65;text-align:center}
.card-back-footer>span{font-size:11px;letter-spacing:.18em}.card-back-footer>small{font:600 7px/1.4 'DM Sans',sans-serif;letter-spacing:.12em;color:#76866c}
.discovery-detail .discovery-flip-hint{font-size:11px;line-height:1.7;text-align:center;color:#6c7d65;margin:17px 0 0}
.discovery-detail .discovery-detail-actions{margin-top:17px}
.discovery-reveal .discovery-flip-card>.collectible-full{animation:none}
.discovery-reveal .discovery-flip-shell{animation:discovery-unfold .55s cubic-bezier(.2,.8,.2,1) both}
@media(max-width:760px){.card-back-frame{min-height:390px;padding:22px 16px 19px}.card-back-brand{min-height:230px;margin:23px 0}.card-back-brand .brand-logo{max-width:230px}.card-back-brand .card-back-name{font-size:20px}.card-back-brand .card-back-motto{font-size:14px}.collectible-mini .collectible-seal .topic-stamp-icon{width:16px;height:16px}}
@media(prefers-reduced-motion:reduce){.discovery-flip-card{transition:none}.discovery-reveal .discovery-flip-shell{animation:none}}

/* Album leaves turn about the binding, like the course player's paper pages. */
.discovery-album .album-leaf{display:flex;flex-direction:column}
.discovery-album .album-pockets{flex:1}
.discovery-album.is-turning>.collection-grid{pointer-events:none}
.discovery-album.is-turning .album-binding{z-index:6}
.album-turn-layer{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;border-radius:inherit}
.album-turn-stationary,.album-turn-mobile{position:absolute!important;margin:0;box-sizing:border-box}
.album-turn-leaf{position:absolute;transform-style:preserve-3d;will-change:transform}
.album-turn-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#fbf7e9;overflow:hidden;border-radius:8px;box-shadow:6px 8px 26px #24392e35}
.album-turn-back{transform:rotateY(180deg)}
.album-turn-front:after,.album-turn-back:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,#41554026,transparent 16%,transparent 85%,#fffdf733)}
.album-turn-back:after{background:linear-gradient(270deg,#41554020,transparent 16%)}
.album-turn-layer .album-leaf{display:flex;flex-direction:column;box-sizing:border-box}
.album-turn-layer .album-pockets{flex:1}
.album-turn-mobile{backface-visibility:hidden;-webkit-backface-visibility:hidden;will-change:transform;box-shadow:5px 7px 20px #24392e35}
@media(max-width:760px){.discovery-album.is-turning>.collection-grid{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.album-turn-layer{display:none}}

/* Teacher workbench and class task lists */
.teacher-home-heading,
.teacher-task-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.teacher-home-heading h1,
.teacher-task-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}
.teacher-home-heading p,
.teacher-task-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}
.teacher-home-heading p {
  margin: 0 0 8px;
  font-weight: 650;
}
.teacher-home-actions,
.teacher-task-toolbar,
.teacher-task-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.teacher-today {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.teacher-next-lesson,
.teacher-today-status {
  min-width: 0;
  padding: 24px;
}
.teacher-next-lesson {
  background: linear-gradient(110deg, var(--mint), #f8fbff);
}
.teacher-next-lesson h2,
.teacher-today-status h2 {
  margin: 0 0 8px;
  font-size: 15px;
}
.teacher-next-lesson strong {
  display: block;
  font-size: 22px;
  line-height: 1.3;
}
.teacher-next-lesson p,
.teacher-today-status p {
  margin: 4px 0 12px;
  color: var(--muted);
}
.teacher-today-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.teacher-today-status > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.teacher-today-status strong {
  font-size: 32px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.teacher-home-links h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.teacher-home-links a {
  display: grid;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  padding: 14px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.teacher-home-links a:hover,
.teacher-task-card h2 a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.teacher-home-links small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.teacher-task-toolbar {
  justify-content: space-between;
  margin: 0 0 16px;
}
.teacher-task-toolbar .tabs {
  margin: 0;
}
.teacher-task-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.teacher-task-card {
  min-width: 0;
  padding: 18px 22px;
}
.teacher-task-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.teacher-task-card h1,
.teacher-task-card h2 {
  margin: 0;
  font-size: clamp(17px, 2vw, 21px);
}
.teacher-task-card h2 a {
  color: inherit;
  text-decoration: none;
}
.teacher-task-card header p,
.teacher-task-dates {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
}
.teacher-task-metrics {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 13px;
}
.teacher-task-metrics span {
  white-space: nowrap;
}
.teacher-task-metrics strong {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.teacher-task-card .daily-actions {
  margin-top: 10px;
}
.teacher-task-card .daily-roster {
  margin-bottom: 0;
}
.teacher-task-card .daily-roster > div {
  flex-wrap: wrap;
}
.teacher-privacy-status,
.teaching-private-note {
  background: var(--mint);
  color: var(--brand);
  border-radius: 9px;
  font-size: 13px;
  padding: 7px 10px;
}
.teacher-course-guides {
  margin-top: 18px;
}
.teacher-course-guides details + details {
  border-top: 1px solid var(--line);
}
.teacher-course-guides details {
  padding: 12px 0;
}
.teacher-course-guides dt {
  margin-top: 12px;
  font-weight: 650;
}
.teacher-course-guides dd {
  white-space: pre-line;
  margin: 4px 0;
}
.teaching-cell.previously_completed {
  color: var(--brand);
  background: var(--mint);
}
@media (max-width: 760px) {
  .teacher-shell .sidebar > nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 4px;
    overflow: visible;
  }
  .teacher-shell .sidebar nav a {
    min-width: 0;
    min-height: 38px;
    padding: 6px 5px;
    justify-content: center;
    gap: 5px;
    white-space: normal;
    font-size: 12px;
  }
  .teacher-shell .sidebar nav svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
  }
  .teacher-home-heading,
  .teacher-task-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }
  .teacher-today {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 20px;
    gap: 12px;
  }
  .teacher-next-lesson,
  .teacher-today-status,
  .teacher-task-card {
    padding: 16px;
  }
  .teacher-task-card header {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (max-width: 359px) {
  .teacher-shell .sidebar nav svg {
    display: none;
  }
  .teacher-shell .sidebar nav a {
    white-space: nowrap;
  }
}

/* Adult phone onboarding follows the existing paper-and-sky brand. */
.phone-code-row { display: flex; align-items: center; gap: 10px; }
.phone-code-row input { min-width: 0; flex: 1; }
.phone-code-row button { flex-shrink: 0; white-space: nowrap; }
.phone-send-status { font-size: 13px; line-height: 1.6; color: var(--muted); }
.identity-choices { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 12px; }
.identity-choices > label { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #b9d9e8; border-radius: 16px; background: #f2faff; cursor: pointer; }
.identity-choices input { width: 18px; height: 18px; flex-shrink: 0; }
.identity-choices small { display: block; margin-top: 4px; font-weight: 400; }
.identity-child-entry { background: #fff5da; border-radius: 18px; padding: 18px; margin-top: 24px; }
.identity-child-entry p, .identity-trial p { font-size: 14px; line-height: 1.7; }
.identity-trial { background: #f2faff; border-radius: 16px; padding: 16px; margin: 20px 0; }
.login-form { min-width: 0; }
@media (max-width: 420px) { .phone-code-row { gap: 6px; } .phone-code-row button { padding-inline: 10px; font-size: 13px; } }

/* Public portal: authentication is the entry point; artwork has its own viewport-sized frame. */
html:has(body[data-role="login"]) { scrollbar-gutter: stable; }
.login-shell { --brand: #256b5d; --brand-dark: #18493f; --muted: #687570; --login-paper: #fffdf7; --login-line: #e4e5d9; --login-soft: #f2f4e9; --login-ink: #253f39; }
.login-heading { margin-bottom: 30px; }
.login-heading .eyebrow { color: var(--brand); font-size: 12px; letter-spacing: .12em; margin: 0 0 12px; }
.login-heading h2 { color: var(--login-ink); font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.04em; line-height: 1.4; margin: 0 0 10px; }
.login-heading .muted { margin: 0; font-size: 14px; }
.login-art-caption { display: block; margin-top: 26px; font-size: 12px; letter-spacing: .14em; color: #f6f0d5; }
.login-methods { display: flex; gap: 28px; border-bottom: 1px solid var(--login-line); margin-bottom: 24px; }
.login-methods button { padding: 0 0 13px; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 600; color: var(--muted); font-size: 15px; transition: color .15s, border-color .15s; }
.login-methods button[aria-pressed="true"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.login-methods button:hover { color: var(--brand); }
.login-panel { min-height: 328px; }
.login-panel[hidden] { display: none; }
.login-panel form { margin: 0; }
.login-panel label:not(.check-row) { font-size: 13px; color: var(--login-ink); }
.login-panel input:not([type="checkbox"]) { min-height: 50px; background: #fff; border-color: var(--login-line); border-radius: 12px; }
.login-panel input::placeholder { color: #89918b; font-size: 13px; }
.login-panel input:focus { border-color: var(--brand); }
.login-panel .primary, .login-form > form > .primary { width: 100%; min-height: 50px; border-radius: 12px; font-size: 15px; }
.login-panel .phone-code-row { align-items: stretch; gap: 10px; }
.login-panel .phone-code-row .secondary { margin: 0; min-height: 50px; min-width: 112px; font-variant-numeric: tabular-nums; border-radius: 12px; padding-inline: 16px; font-size: 13px; background: var(--login-soft); border-color: var(--login-line); color: var(--brand-dark); }
.login-consent { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 20px 0 8px; }
.login-consent .check-row { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; min-height: 32px; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 400; }
.login-consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.login-consent .text-button { min-height: 32px; padding: 0; font-size: 12px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.login-panel .phone-send-status { margin: 0 0 18px; font-size: 12px; min-height: 20px; }
.login-method-note { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.login-panel .login-operator { padding: 0 0 18px; }
.login-operator summary { cursor: pointer; }
.login-help { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.login-help .text-button { padding: 4px 0; font-size: 12px; color: var(--brand); }
.login-child-entry { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--login-line); display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.login-child-icon { grid-row: span 2; width: 36px; height: 36px; display: grid; place-items: center; background: #f9eecb; border-radius: 12px; color: #947537; }
.login-child-entry strong { color: var(--login-ink); font-size: 13px; }
.login-child-entry p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.login-child-entry .text-button { grid-column: 2; justify-self: start; padding: 6px 0 0; min-height: 32px; font-size: 12px; color: var(--brand); }
.login-guidance { margin: 22px 0 0; font-size: 11px; color: var(--muted); line-height: 1.8; }
.login-return { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); }
.login-shell :is(button, a, input, summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (max-width: 760px) {
  .login-art .brand .brand-logo { width: 150px; height: 48px; }
  .login-art > div { padding: 12px 0 0; }
  .login-art h1 { font-size: 30px; margin: 0 0 6px; }
  .login-art p { margin: 0; font-size: 12px; }
  .login-art .eyebrow, .login-art-caption { display: none; }
  .login-heading { margin-bottom: 24px; }
  .login-heading .eyebrow { display: none; }
  .login-heading h2 { font-size: 26px; }
  .login-methods { gap: 24px; }
  .login-guidance { margin-top: 18px; }
}
@media (max-width: 359px) {
  .login-art { height: 190px; padding: 16px 20px; }
  .login-art h1 { font-size: 25px; }
  .login-art p { font-size: 11px; }
  .login-pane { padding: 28px 20px; }
  .login-methods { gap: 20px; }
  .login-methods button { font-size: 14px; }
  .login-panel .phone-code-row .secondary { padding-inline: 10px; min-width: 104px; }
}

/* Invitation access and acquisition use the existing operations palette. */
.ops-phone { white-space:nowrap; font-variant-numeric:tabular-nums; }
.ops-invite-code { font-size:20px; letter-spacing:.06em; font-variant-numeric:tabular-nums; }
.ops-acquisition-summary { display:flex; flex-wrap:wrap; gap:16px 32px; margin:0 0 24px; color:var(--ops-muted); }
.ops-acquisition-summary strong { margin-left:8px; color:var(--ops-ink); font-size:24px; }
.ops-lead-note { max-width:240px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.login-interest { margin-top:24px; padding-top:20px; border-top:1px solid var(--login-line); }
.login-contact-consent { font-size:12px; color:var(--login-muted); }
.login-interest .secondary { width:100%; }

/* A separate, restrained entrance for the operations workspace. */
.ops-login-shell { --brand: #32675e; --brand-dark: #203f42; }
.ops-login-art { background: #203f42; isolation: isolate; }
.ops-login-art > div:not(.ops-login-seal) { position: relative; z-index: 2; }
.ops-login-art .ops-login-seal { position: absolute; right: -48px; bottom: 6%; width: 300px; height: 300px; padding: 44px; border: 1px solid #e9dfb64d; border-radius: 50%; color: #e9dfb6; opacity: .38; transform: rotate(-12deg); pointer-events: none; }
.ops-login-seal svg { width: 100%; height: 100%; stroke-width: 1; }
.ops-login-shell .login-form { max-width: 410px; }
.ops-login-shell form label { font-size: 13px; color: var(--login-ink); }
.ops-login-shell form input { min-height: 50px; border-radius: 12px; background: var(--login-paper); border-color: var(--login-line); }
.ops-login-shell form input::placeholder { font-size: 12px; }
.ops-login-shell .login-return { margin-top: 30px; }
.ops-login-shell .login-form > .primary, .ops-login-shell .login-form > .secondary { width: 100%; margin-top: 12px; }
@media(max-width: 760px) { .ops-login-art .ops-login-seal { width: 180px; height: 180px; right: -46px; bottom: -35px; padding: 30px; } }

.ops-login-shell form + .login-method-note { margin-top: 16px; }

/* Curiosity: one question, durable preparation, quiet progress. */
.ask-heading{max-width:760px;margin-bottom:28px}.ask-heading h1{font-size:clamp(28px,4vw,42px);line-height:1.3}.ask-heading .eyebrow{color:#44634e;font-weight:700;letter-spacing:.05em}.ask-composer{background:#fffdf5;border:2px solid #e5dfb8;border-radius:24px;padding:26px;margin-bottom:36px;box-shadow:0 6px 0 #eee9d3}.ask-composer>label{font-size:18px;font-weight:700;display:block;margin-bottom:12px}.ask-composer textarea{display:block;width:100%;min-height:132px;resize:vertical;border:1px solid #d7d4be;border-radius:16px;background:#fff;padding:18px;line-height:1.7;font:inherit}.ask-compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:16px}.ask-compose-bottom>div{display:flex;gap:12px;align-items:center}.ask-composer .fineprint{margin:16px 0 0}.ask-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.ask-list-heading h2{font-size:22px}.ask-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ask-card{display:flex;gap:16px;padding:22px;border:1px solid #deded8;background:#fff;border-radius:20px;min-width:0}.ask-card.is-preparing{background:#f0f7ef;border-color:#cddcc7}.ask-card-symbol{display:grid;place-items:center;background:#f8efce;width:42px;height:42px;border-radius:14px;flex-shrink:0}.ask-card-symbol svg{width:22px;height:22px}.ask-card-copy{min-width:0;flex:1}.ask-card h3{font-size:18px;line-height:1.55;margin:8px 0;overflow-wrap:anywhere}.ask-card p{font-size:14px;line-height:1.6;color:#526054;margin:8px 0}.ask-state{font-size:13px;color:#416143;font-weight:700}.ask-card-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.ask-stage{display:flex;gap:5px;margin-top:16px}.ask-stage i{width:7px;height:7px;border-radius:50%;background:#76946b;animation:ask-breathe 1.8s ease-in-out infinite}.ask-stage i:nth-child(2){animation-delay:.25s}.ask-stage i:nth-child(3){animation-delay:.5s}.ask-empty{padding:32px;max-width:540px;color:#626859;background:#f6f5ee;border-radius:20px}.ask-empty>span{font-size:28px;color:#77976d}.ask-banner{display:flex;gap:14px;align-items:center;padding:16px 20px;background:#eaf3e7;border:1px solid #cfdec8;border-radius:16px;margin-bottom:24px;color:#304c34;text-decoration:none}.ask-banner>svg{width:24px;flex-shrink:0}.ask-banner>span:nth-child(2){flex:1;min-width:0}.ask-banner strong,.ask-banner small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ask-banner small{margin-top:4px}.ask-composer :focus-visible,.ask-card :focus-visible,.ask-banner:focus-visible{outline:3px solid #527e9b;outline-offset:4px}@keyframes ask-breathe{50%{opacity:.3}}@media(prefers-reduced-motion:reduce){.ask-stage i{animation:none}}@media(max-width:650px){.ask-cards{grid-template-columns:1fr}.ask-composer{padding:18px}.ask-compose-bottom{align-items:stretch;flex-direction:column}.ask-compose-bottom>div{justify-content:space-between}.ask-card{padding:18px;gap:12px}.ask-heading h1{font-size:28px}.ask-list-heading h2{font-size:20px}}

/* Student dossier: compact, paper-like operations records. */
.ops-student-tabs { display:flex; flex-wrap:wrap; gap:6px; margin:24px 0 20px; padding-bottom:12px; border-bottom:1px solid var(--line,#dce3ee); }
.ops-student-tabs a { padding:10px 14px; border-radius:10px; text-decoration:none; color:inherit; transition:background .15s; }
.ops-student-tabs a[aria-current="page"] { background:#234b42; color:#fff; }
.ops-student-tabs a:not([aria-current]):hover { background:#e8eee8; }
.ops-student-tabs small { font-variant-numeric:tabular-nums; opacity:.8; }
.ops-evidence-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.ops-evidence-heading h3 { margin:0; min-width:0; overflow-wrap:anywhere; }
.ops-evidence-meta { font-size:13px; color:var(--muted,#66677f); }
.ops-record, .ops-interest-list article { padding:20px 0; border-bottom:1px solid var(--line,#dce3ee); }
.ops-record:last-child, .ops-interest-list article:last-child { border-bottom:0; }
.ops-record blockquote, .ops-evidence blockquote { white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0; padding:12px 16px; background:#f3f5ef; border-left:3px solid #819b87; }
.ops-panel details summary { cursor:pointer; padding:10px 0; }
.ops-code-value { display:flex; align-items:center; gap:8px; margin-top:8px; }
.ops-code-value input { font-family:monospace; letter-spacing:.03em; width:23ch; min-width:0; padding:8px; font-size:14px; }
.ops-summary dd { font-variant-numeric:tabular-nums; }
@media(max-width:650px) { .ops-student-tabs a { padding:9px 10px; font-size:13px; } .ops-evidence article { padding:14px; } .ops-evidence-heading { align-items:flex-start; } .ops-evidence-heading h3 { flex-basis:100%; } }
.ops-student-context { display:flex; flex-wrap:wrap; gap:8px 28px; border-top:1px solid var(--line,#dce3ee); margin-top:16px; padding-top:10px; color:var(--muted,#66677f); font-size:13px; }
.ops-student-context p { margin:4px 0; }

/* Student reading: one clear action, visible audio state and quiet supporting content. */
:root { --reading-paper:#ffe28a; --reading-ink:#4d3908; --reading-active:#166654; --reading-track:#d5ddd9; }
.read-text { white-space:pre-line; }
.read-char.is-reading { background:var(--reading-paper); color:var(--reading-ink); border-radius:3px; box-shadow:0 2px 0 #d4a624; }
.auto-read-toggle { display:flex; align-items:center; justify-content:center; flex-shrink:0; gap:12px; min-height:52px; padding:7px 13px; border:1px solid #c7d3d0; border-radius:14px; background:#fff; color:var(--ink); }
.auto-read-copy { display:grid; text-align:left; font-size:13px; font-weight:700; line-height:1.4; }
.auto-read-copy small { font-size:11px; font-weight:500; color:#64716e; }
.switch-track { width:34px; height:21px; padding:3px; border-radius:20px; background:var(--reading-track); }
.switch-track>span { display:block; width:15px; height:15px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #0002; transition:transform .16s ease; }
.auto-read-toggle[aria-pressed="true"] { background:#e8f5ee; border-color:var(--reading-active); }
.auto-read-toggle[aria-pressed="true"] .switch-track { background:var(--reading-active); }
.auto-read-toggle[aria-pressed="true"] .switch-track>span { transform:translateX(13px); }
.auto-read-toggle[aria-pressed="true"] small { color:var(--reading-active); font-weight:700; }
.flashcard .term-word-row { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; }
.flashcard .term-word-row>strong { font-size:30px; line-height:1.4; overflow-wrap:anywhere; min-width:0; flex-shrink:1; }
.term-speak { display:inline-flex; align-items:center; justify-content:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:1px solid #aec7d4; border-radius:50%; background:#f6fbff; color:#315c78; }
.term-speak:hover,.term-speak[aria-pressed="true"] { background:#d6edf8; border-color:#315c78; }
.term-speak .icon { width:20px; height:20px; }
.flashcard .flashcard-flip { display:flex; flex-direction:column; align-items:center; justify-content:center; flex:1; gap:18px; width:100%; padding:14px; border:0; border-radius:16px; background:transparent; color:inherit; box-shadow:none; }
.flashcard .flashcard-flip strong { font-size:20px; line-height:1.8; }
.flashcard .flashcard-flip:hover { background:#ffffff40; }
.student-home .child-greeting { margin-bottom:24px; }
.student-home .child-greeting h1 { font-size:clamp(24px,2.3vw,32px); }
.student-home .child-greeting .eyebrow { color:#6a7180; font-size:12px; }
.student-home .streak { background:transparent; color:#646b7c; border:0; font-size:13px; }
.student-home .daily-dates { gap:8px; margin:0; padding:10px 10px 14px; }
.student-home .daily-dates button { box-shadow:0 3px 0 #c4d9e6; border:2px solid #c4d9e6; background:#fff; min-height:64px; border-radius:18px; flex:1; max-width:112px; }
.student-home .daily-dates button.selected { background:var(--ink); color:#fff; border-color:var(--ink); box-shadow:0 3px 0 #171731; }
.student-home .daily-hero { border:1px solid #eadfc8; box-shadow:0 12px 32px #40365712; margin-bottom:0; background:#fff3db; }
.student-home .daily-hero h2 { font-size:clamp(30px,3.3vw,46px); line-height:1.24; max-width:15em; }
.student-home .daily-hero>div { padding:36px; }
.student-home .daily-hero p { color:#55546a; max-width:30em; line-height:1.8; }
.student-home .daily-hero .primary { min-height:56px; padding-inline:26px; }
.student-home .section-heading { margin-top:32px; }
.student-home .section-heading h2,.home-growth>h2 { font-size:23px; }
.student-home .task { box-shadow:none; background:#fff; border:1px solid #e2e5ec; }
.home-growth { border-top:1px solid #e0e4ea; margin-top:40px; padding-top:28px; }
.home-growth>h2 { color:#646b7c; }
.home-growth .explorer-metrics { margin-bottom:0; }
.home-growth .explorer-metrics>a { box-shadow:0 5px 0 #d2deea; background:#fff; border:2px solid #dce3ee; }
@media(max-width:760px) {
  .player-header { grid-template-columns:minmax(0,1fr) 44px 122px 44px; }
  .player-header .auto-read-toggle { width:122px; min-height:44px; padding:5px 8px; gap:8px; }
  .auto-read-copy { font-size:12px; }
  .auto-read-copy small { font-size:10px; }
  .student-home .child-greeting { margin:8px 0 20px; }
  .student-home .child-greeting .eyebrow { display:none; }
  .student-home .child-greeting h1 { font-size:25px; }
  .student-home .daily-hero>div { padding:24px; }
  .student-home .daily-hero h2 { font-size:32px; margin-top:16px; }
  .student-home .daily-hero { margin-bottom:0; }
  .student-home .daily-dates { gap:4px; }
  .student-home .daily-dates button { min-width:0; padding-inline:6px; }
  .flashcard .term-word-row>strong { font-size:26px; }
  .flashcard .flashcard-flip { padding:8px; }
}
@media(prefers-reduced-motion:reduce) { .switch-track>span { transition:none; } }
.ops-summary.ops-student-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:18px; }
.ops-summary.ops-student-summary>div { min-width:0; }
@media(max-width:650px) { .ops-summary.ops-student-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 14px; } }
@media(max-width:760px) {
  .player-header progress { grid-area:3 / 1 / 4 / -1; height:6px; }
  .player-header .preview-position { grid-row:4; }
}

/* Daily dates and today's adventure form one framed object. */
.daily-showcase { padding:8px; margin-bottom:36px; background:#dcecf6; border:2px solid #c4dbe9; border-radius:30px; box-shadow:0 5px 0 #c4dbe973; }
.student-home .daily-showcase .daily-hero { border-radius:24px; box-shadow:none; }
.student-home .daily-dates button:focus-visible { outline:3px solid var(--pink); outline-offset:3px; }
.home-growth>h2 { color:var(--ink); }
.home-growth .explorer-metrics>a:nth-child(1) { background:#f4f1ff; border-color:#dcd5ef; box-shadow:0 5px 0 #cfc5e6; }
.home-growth .explorer-metrics>a:nth-child(2) { background:#fff8df; border-color:#eddfab; box-shadow:0 5px 0 #e4d29a; }
.home-growth .explorer-metrics>a:nth-child(3) { background:#fff0e6; border-color:#edd3bf; box-shadow:0 5px 0 #e4c3ab; }
.recommendation-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.recommendation-toolbar .interest-intro { margin:0; }
.recommendation-refresh { flex-shrink:0; min-width:104px; min-height:44px; border-radius:14px; box-shadow:0 3px 0 #cad9e7; }
.recommendation-refresh:before { content:'↻'; display:inline-block; margin-right:6px; font-size:22px; vertical-align:middle; }
.recommendation-refresh:disabled { opacity:.7; cursor:wait; }
.recommendation-status:not(.sr-only) { color:var(--muted); font-size:14px; }
.recommendation-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.recommendation-grid>.exp-card { transform-origin:center; backface-visibility:hidden; }
@media(max-width:760px) {
 .daily-showcase { padding:5px; border-radius:25px; margin-bottom:28px; }
 .student-home .daily-dates { padding:7px 3px 12px; gap:5px; }
 .student-home .daily-dates button { min-width:0; min-height:60px; padding:7px 3px; border-radius:13px; }
 .student-home .daily-dates strong { font-size:22px; }
 .student-home .daily-showcase .daily-hero { border-radius:19px; }
 .student-home .daily-hero>div { padding:22px; }
 .home-growth .metric-symbol { display:grid; margin:0 auto 10px; width:36px; height:36px; border-radius:12px; font-size:25px; }
 .recommendation-grid { grid-template-columns:1fr; }
 .recommendation-toolbar { gap:12px; align-items:center; }
 .recommendation-toolbar .interest-intro { font-size:14px; }
 .recommendation-refresh { min-width:94px; padding-inline:12px; font-size:14px; }
}

@media(min-width:761px) and (max-width:1100px) { .recommendation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* A single 3D leaf carries both prepared faces throughout a recommendation turn. */
.recommendation-turn { display:grid; min-width:0; transform-style:preserve-3d; will-change:transform; }
.recommendation-turn>.exp-card { grid-area:1 / 1; min-width:0; width:100%; height:100%; margin:0; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.recommendation-turn>.recommendation-front { transform:rotateY(0deg); }
.recommendation-turn>.recommendation-back { transform:rotateY(180deg); }

/* Student navigation: one quiet header and the same five destinations at every size. */
.child-shell { padding-top: 12px; padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
.child-header.child-top { min-height: 68px; height: 68px; padding: 0; margin-bottom: 8px; flex-wrap: nowrap; }
.child-top .brand .brand-logo { width: 180px; height: 60px; }
.child-header .message-bell { flex: 0 0 44px; background: #fff; border: 1px solid var(--line); }
.child-header .message-bell:hover, .child-header .message-bell[aria-current] { background: var(--sky-soft); border-color: #98c5e4; }
.child-nav {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(720px, calc(100% - 48px));
  display: flex; gap: 4px; padding: 8px; border: 2px solid #b8d5e9;
  border-radius: 24px; background: #fff; backdrop-filter: none;
  box-shadow: 0 5px 0 #b8d5e9, 0 8px 28px #29294f17;
}
.child-nav a {
  flex: 1; min-width: 0; min-height: 52px; justify-content: center;
  flex-direction: row; padding: 10px 8px; gap: 8px;
  font-size: 15px; color: #354969; border: 2px solid transparent; border-radius: 16px;
}
.child-nav a:last-child { margin-left: 0; background: transparent; color: var(--pink); }
.child-nav a:hover { background: #f0f7fc; }
.child-nav a[aria-current] { background: var(--sky-soft); border-color: #98c5e4; color: var(--ink); box-shadow: none; }
html:has(.child-shell) { scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.profile-options .sound-toggle { padding: 10px 16px; font-size: 15px; gap: 8px; border-width: 2px; }
.profile-options .sound-toggle[aria-pressed="true"] { background: var(--sky-soft); border-color: #98c5e4; }
@media (max-width: 760px) {
  .child-shell { padding-top: 8px; padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
  .child-header.child-top { min-height: 56px; height: 56px; margin-bottom: 4px; }
  .child-top .brand .brand-logo { width: 150px; height: 50px; }
  .child-nav { width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); padding: 7px; gap: 3px; border-radius: 23px; }
  .child-nav a { flex-direction: column; padding: 8px 2px; gap: 4px; font-size: 11px; border-radius: 15px; }
  .child-nav a .icon { width: 23px; height: 23px; }
}

/* A single highlight slides behind the labels; route changes never wait for motion. */
.child-nav { --nav-padding: 8px; --nav-gap: 4px; --nav-index: 0; }
.child-nav:has(a:nth-of-type(2)[aria-current]) { --nav-index: 1; }
.child-nav:has(a:nth-of-type(3)[aria-current]) { --nav-index: 2; }
.child-nav:has(a:nth-of-type(4)[aria-current]) { --nav-index: 3; }
.child-nav:has(a:nth-of-type(5)[aria-current]) { --nav-index: 4; }
.child-nav-highlight {
  position: absolute; pointer-events: none; opacity: 0;
  top: var(--nav-padding); bottom: var(--nav-padding);
  width: calc((100% - 2 * var(--nav-padding) - 4 * var(--nav-gap)) / 5);
  left: calc(var(--nav-padding) + var(--nav-index) * ((100% - 2 * var(--nav-padding) + var(--nav-gap)) / 5));
  background: var(--sky-soft); border: 2px solid #98c5e4; border-radius: 16px;
}
.child-nav:has(a[aria-current]) .child-nav-highlight { opacity: 1; }
.child-nav a { position: relative; z-index: 1; }
.child-nav a[aria-current] { background: transparent; border-color: transparent; }
@media (max-width: 760px) {
  .child-nav { --nav-padding: 7px; --nav-gap: 3px; }
  .child-nav-highlight { border-radius: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .child-nav-highlight { transform: none !important; }
}

/* The date label stays still while its selection surface moves beneath it. */
.student-home .daily-dates button { position: relative; }
.student-home .daily-dates button>small, .student-home .daily-dates button>strong { position: relative; z-index: 2; }
.student-home .daily-dates button.selected { background: transparent; border-color: transparent; box-shadow: none; }
.daily-date-highlight { position: absolute; inset: -2px; z-index: 1; pointer-events: none; border-radius: inherit; background: var(--ink); border: 2px solid var(--ink); box-shadow: 0 3px 0 #171731; }

/* First-earned discovery: a four-second assembly, then the actual saved card. */
.discovery-detail { position: relative; }
.discovery-detail .discovery-reveal-title { font-size: 20px; font-weight: 400; }
.forge-stage { position: absolute; z-index: 4; top: 76px; left: 0; width: 100%; height: min(390px, 52svh); pointer-events: none; perspective: 900px; }
.forge-stage>p { position: absolute; top: 95%; left: 0; right: 0; text-align: center; font-size: 14px; color: #4c6953; animation: forge-caption 4s both; }
.forge-skip { position: absolute; top: 28px; right: 0; z-index: 6; display: block; margin: 0; min-height: 44px; color: var(--muted); }
.forge-core { position: absolute; left: 50%; top: 45%; width: 190px; height: 250px; border: 3px solid #8cae9e; border-radius: 24px; background: repeating-linear-gradient(45deg,#b6d9cd30 0 1px,transparent 1px 13px),#e7eee1; box-shadow: inset 0 0 0 7px #fff9df, 0 12px 0 #91ad9a, 0 22px 50px #315c7d22; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; animation: forge-core 4s both; }
.forge-core>.icon { width: 66px; height: 66px; color: #cf287b; fill: #ffda45; stroke-width: 1.4; }
.forge-core .brand-logo { width: 150px; height: 50px; }
.forge-core>i { width: 62px; height: 3px; background: #8cae9e; border-radius: 3px; }
.forge-piece { position: absolute; z-index: 2; top: 45%; left: 50%; width: 60px; height: 75px; margin: -38px 0 0 -30px; border: 2px solid #8cae9e; border-radius: 9px; background: linear-gradient(135deg,#fff9df,#c6e7df); box-shadow: 0 4px 0 #9cbda7; animation: forge-piece 4s var(--lag) both; }
.forge-piece:nth-of-type(3n) { background: linear-gradient(135deg,#fff8df,#ffe584); border-color: #d8bc68; }
.forge-orbit, .forge-halo { position: absolute; left: 50%; top: 45%; width: 260px; height: 260px; margin: -130px; border: 2px dashed #91b4a6; border-radius: 50%; animation: forge-orbit 4s both; }
.forge-halo { border: 12px solid #ffda4560; background: radial-gradient(circle,#fff6bb66,transparent 65%); animation: forge-halo 4s both; }
.forge-spark { position: absolute; left: 50%; top: 45%; color: #cf287b; font-size: 24px; line-height: 1; animation: forge-spark 4s var(--lag) both; }
.forge-spark:nth-of-type(3n) { color: #b98a14; font-size: 30px; }
.forge-spark:nth-of-type(3n + 1) { color: #248e87; font-size: 19px; }
.is-forging { overflow: hidden; isolation: isolate; }
.is-forging:not(.is-revealing) .discovery-flip-shell { opacity: 0; visibility: hidden; }
.is-forging .discovery-flip-shell { transform-origin: center 30%; }
.is-forging .discovery-detail-actions, .is-forging .discovery-flip-hint { visibility: hidden; }
@keyframes forge-piece {
  0% { opacity: 0; transform: translate(var(--sx),var(--sy)) rotate(var(--turn)) scale(.3); }
  10% { opacity: 1; }
  32%, 39% { opacity: 1; transform: translate(var(--tx),var(--ty)) rotate(0deg) scale(1); }
  49%, 100% { opacity: 0; transform: translate(var(--tx),var(--ty)) scale(.9); }
}
@keyframes forge-core {
  0%, 28% { opacity: 0; transform: translate(-50%,-50%) scale(.75) rotateY(-25deg); }
  42%, 50% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotateY(0deg); }
  60%, 100% { opacity: 0; transform: translate(-50%,-50%) scale(1.1) rotateY(90deg); }
}
@keyframes forge-orbit {
  0% { opacity: 0; transform: scale(.6) rotate(-50deg); }
  15%, 40% { opacity: .65; }
  60%, 100% { opacity: 0; transform: scale(1.25) rotate(100deg); }
}
@keyframes forge-halo {
  0%, 51% { opacity: 0; transform: scale(.4); }
  58% { opacity: .8; }
  78%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes forge-spark {
  0%, 54% { opacity: 0; transform: translate(-50%,-50%) scale(.3); }
  62% { opacity: 1; }
  90%, 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(75deg) scale(.8); }
}
@keyframes forge-card {
  0%, 54% { opacity: 0; transform: perspective(1000px) translateY(22px) rotateY(-75deg) scale(.62); }
  68% { opacity: 1; transform: perspective(1000px) translateY(-6px) rotateY(8deg) scale(1.025); }
  88%, 100% { opacity: 1; transform: perspective(1000px) translateY(0) rotateY(0deg) scale(1); }
}
@keyframes forge-caption { 0%, 45% { opacity: 1; } 60%, 100% { opacity: 0; } }
@media (max-width: 760px) {
  .forge-stage { top: 64px; }
  .forge-core { width: 166px; height: 220px; gap: 18px; }
  .forge-core .brand-logo { width: 132px; height: 44px; }
  .forge-piece { width: 54px; height: 65px; }
}
@media (prefers-reduced-motion: reduce) {
  .forge-stage { display: none; }
  .is-forging .discovery-flip-shell { animation: none; }
}
#modal-root:has(.discovery-detail) .dialog-close { z-index: 10; }

/* Keep WebKit's hidden card face out of the composited reveal surface. */
.discovery-earned .discovery-card-front, .discovery-earned .collectible-back { transition: visibility 0s .5s; }
.discovery-earned .discovery-card-front[aria-hidden="true"], .discovery-earned .collectible-back[aria-hidden="true"] { visibility: hidden; }
.discovery-earned .discovery-card-front[aria-hidden="false"], .discovery-earned .collectible-back[aria-hidden="false"] { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .discovery-earned .discovery-card-front, .discovery-earned .collectible-back { transition: none; }
}
/* Explicit assembly/reveal phases also repaint reliably in mobile WebKit. */
.is-revealing .forge-piece, .is-revealing .forge-core, .is-revealing .forge-orbit, .is-revealing .forge-stage>p { display: none; }
.discovery-detail.is-revealing .discovery-flip-shell { animation: forge-release-card 1.8s cubic-bezier(.22,.7,.25,1) both; }
.is-revealing .forge-halo { animation: forge-release-halo .9s ease-out both; }
.is-revealing .forge-spark { animation: forge-release-spark 1.3s var(--lag) ease-out both; }
@keyframes forge-release-card {
  0% { transform: translateY(22px) rotate(-8deg) scale(.72); }
  35% { transform: translateY(-6px) rotate(2deg) scale(1.025); }
  80%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes forge-release-halo { from { opacity: .8; transform: scale(.4); } to { opacity: 0; transform: scale(1.5); } }
@keyframes forge-release-spark { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx),var(--dy)) rotate(75deg) scale(.8); } }
@media (prefers-reduced-motion: reduce) { .discovery-detail.is-revealing .discovery-flip-shell { animation: none; } }

/* The announcement receives screen-reader focus, without a control-style frame. */
.discovery-reveal-title:focus { outline: none; }

/* Password machine: a tactile color console and a paper clue notebook. */
.code-game { --code-edge:#83b9cf; --code-paper:#e5f3f6; max-width:1060px; margin:0 auto; }
.code-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:16px 0 28px; }
.code-heading h1 { font-family:var(--round-font); font-size:clamp(36px,5vw,48px); margin:4px 0 8px; }
.code-heading p { margin:0; }
.code-heading .eyebrow { color:#286078; font-size:13px; }
.code-mode { background:#e5f3f6; border:1px solid #83b9cf; border-radius:100px; padding:10px 16px; font-size:14px; font-weight:700; white-space:nowrap; }
.code-workbench { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:28px; align-items:start; }
.code-machine { background:var(--code-paper); border:2px solid var(--code-edge); box-shadow:0 7px 0 #bed9e2; border-radius:28px; padding:24px; }
.code-machine-top { display:flex; align-items:center; justify-content:space-between; font-size:14px; font-weight:700; color:#286078; }
.code-lamp { width:12px; height:12px; border:2px solid #93692d; border-radius:50%; background:#ffd35b; box-shadow:0 0 0 4px #fff8df; }
.code-lamp.is-unlocked { background:#54a27a; border-color:#28674c; box-shadow:0 0 0 4px #d9efe0; }
.code-secret { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; padding:16px; margin:16px 0; background:#28495c; border-radius:18px; box-shadow:inset 0 3px 0 #163747; }
.code-secret > span:not(.code-chip) { display:grid; place-items:center; height:54px; border:1px dashed #8aafbd; border-radius:10px; color:#d5e8ee; font-size:32px; font-family:var(--round-font); }
.code-rule { text-align:center; font-size:14px; margin:12px 0 20px; color:#365669; }
.code-compose { scroll-margin:16px 0 120px; border-radius:20px; padding:18px; background:#fffdf8; border:1px solid #bfd9df; }
.code-section-title { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.code-section-title h2 { font-family:var(--round-font); font-size:24px; margin:0; }
.code-section-title > span { color:#66677f; font-size:13px; white-space:nowrap; }
.code-section-title .text-button, .code-attempt-heading .text-button { min-height:44px; padding:8px; font-size:13px; }
.code-slots { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:12px 0 0; }
.code-slot { display:flex; flex-direction:column; align-items:center; gap:6px; border:2px solid transparent; border-radius:14px; padding:4px; background:transparent; color:var(--ink); min-width:0; transition:border-color .15s,background .15s; }
.code-slot-number { font-size:12px; font-weight:700; color:#66677f; }
.code-slot.is-active { border-color:#235d90; background:#e8f4fc; }
.code-slot.is-active .code-slot-number { color:#235d90; }
.code-chip { --chip-bg:#eee; --chip-ink:#333; display:flex; align-items:center; justify-content:center; gap:4px; width:100%; height:56px; border:2px solid var(--chip-ink); border-radius:12px; background:var(--chip-bg); color:var(--chip-ink); box-shadow:inset 0 -4px 0 #00000012; }
.code-chip > span { font-size:24px; line-height:1; }
.code-chip small { font-size:12px; font-weight:800; }
.code-red { --chip-bg:#f7a6b1; --chip-ink:#752638; }
.code-yellow { --chip-bg:#f6d764; --chip-ink:#694b0c; }
.code-blue { --chip-bg:#86c8f0; --chip-ink:#154c76; }
.code-green { --chip-bg:#95cfb3; --chip-ink:#1f593c; }
.code-purple { --chip-bg:#c4afea; --chip-ink:#4e327d; }
.code-orange { --chip-bg:#f5b07c; --chip-ink:#753c12; }
.code-empty { border:2px dashed #9daebb; background:#f2f5f7; box-shadow:none; color:#657b8c; font-size:24px; }
.code-hint { min-height:42px; margin:12px 0 4px; font-size:14px; line-height:1.5; color:#365669; }
.code-palette { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; }
.code-paint { display:flex; flex-direction:column; align-items:center; padding:0; border:0; background:transparent; color:var(--ink); min-width:0; border-radius:10px; }
.code-paint .code-chip { height:48px; }
.code-paint .code-chip small { display:none; }
.code-paint-note { font-size:12px; padding-top:6px; white-space:nowrap; }
.code-paint[aria-pressed="true"] .code-chip { outline:2px solid #235d90; outline-offset:2px; }
.code-paint:hover .code-chip { transform:translateY(-2px); }
.code-paint .code-chip { transition:transform .15s; }
.code-tip { font-size:12px; color:#66677f; line-height:1.7; margin:14px 0; }
.code-submit { display:flex; justify-content:center; gap:18px; width:100%; min-height:52px; }
.code-error { color:#9c2447; font-size:14px; margin:0; }
.code-error:not(:empty) { margin-top:12px; }
.code-save-note { margin:18px 0 0; text-align:center; font-size:12px; color:#365669; }
.code-notebook { padding:20px 0; min-width:0; }
.code-notebook-intro { font-size:14px; line-height:1.6; color:#66677f; margin:12px 0; }
.code-help { font-size:13px; margin-bottom:20px; border-bottom:1px solid #ded9cc; }
.code-help summary { cursor:pointer; padding:12px 0; min-height:44px; color:#315c78; font-weight:700; }
.code-help > div { display:grid; gap:10px; padding:0 0 12px; }
.code-help p { margin:0; color:#66677f; line-height:1.6; }
.code-help .code-clue { flex-direction:row; align-items:center; }
.code-history { display:grid; gap:16px; max-height:650px; overflow:auto; padding:4px 6px 8px 4px; }
.code-attempt { scroll-margin:16px 0 120px; background:#fffdf8; border:1px solid #d8d7cf; border-radius:18px; padding:14px; box-shadow:0 3px 0 #ede8dc; }
.code-attempt:first-child { border:2px solid #83b9cf; }
.code-attempt-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; font-size:14px; }
.code-result-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.code-result-row > div { min-width:0; }
.code-result-row .code-clue { margin-top:10px; }
.code-clue { display:flex; flex-direction:column; gap:5px; font-size:12px; line-height:1.5; text-align:center; }
.code-clue b { font-size:18px; line-height:1.2; }
.code-exact { color:#23583e; }
.code-misplaced { color:#72500c; }
.code-absent { color:#656275; }
.code-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:14px; }
.code-count { border-radius:10px; background:#f2f0e9; padding:10px 6px; text-align:center; }
.code-count.code-exact { background:#e4f2e8; }
.code-count.code-misplaced { background:#fff0c4; }
.code-count > strong { display:block; font-size:26px; margin-bottom:6px; }
.code-count > strong > small { font-size:12px; font-weight:400; }
.code-count .code-clue b { display:none; }
.code-history-empty { padding:40px 12px; text-align:center; border:2px dashed #d8d7cf; border-radius:20px; color:#66677f; }
.code-history-empty > span { font-size:48px; color:#83a6b8; }
.code-history-empty h3 { font-size:17px; color:var(--ink); margin:12px 0; }
.code-history-empty p { font-size:14px; line-height:1.8; }
.code-win { text-align:center; background:#fffdf8; }
.code-win h2 { font-family:var(--round-font); font-size:30px; }
.code-win p { line-height:1.8; font-size:15px; }
.code-game button:focus-visible, .code-game summary:focus-visible, .code-attempt:focus, .code-win:focus { outline:3px solid #235d90; outline-offset:3px; }
.toy-grid .code-cover-0 { background:#f7a6b1; color:#752638; }
.toy-grid .code-cover-1 { background:#f6d764; color:#694b0c; }
.toy-grid .code-cover-2 { background:#86c8f0; color:#154c76; }
.toy-grid .code-cover-3 { background:#95cfb3; color:#1f593c; }
.puzzle-level select[data-game-level="codebreaker"] { width:170px; max-width:70%; }
@media(max-width:760px) {
  .code-heading { display:grid; grid-template-columns:1fr auto; gap:10px 8px; margin:12px 0 20px; }
  .code-heading > div { display:contents; }
  .code-heading .eyebrow { display:none; }
  .code-heading h1 { grid-column:1; grid-row:1; font-size:32px; margin:0; }
  .code-heading > div > p:not(.eyebrow) { grid-column:1 / -1; grid-row:2; font-size:13px; }
  .code-mode { grid-column:2; grid-row:1; align-self:center; font-size:11px; padding:8px 10px; }
  .code-workbench { grid-template-columns:minmax(0,1fr); gap:20px; }
  .code-machine { padding:16px; border-radius:24px; }
  .code-compose { padding:12px; }
  .code-slots { gap:6px; }
  .code-chip { height:52px; gap:2px; }
  .code-chip > span { font-size:22px; }
  .code-chip small { font-size:11px; }
  .code-palette { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
  .code-paint { flex-direction:row; gap:6px; min-height:48px; }
  .code-paint .code-chip { width:40px; min-width:40px; }
  .code-paint-note { padding:0; font-size:11px; }
  .code-history { max-height:none; overflow:visible; }
  .code-notebook { padding:8px 0; }
}
@media(max-width:360px) {
  .code-machine { padding:12px; }
  .code-compose { padding:10px; }
  .code-palette { gap:10px 6px; }
  .code-paint { gap:4px; }
  .code-paint .code-chip { width:38px; min-width:38px; }
  .code-secret { gap:8px; padding:12px; }
  .code-result-row { gap:6px; }
  .code-attempt { padding:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .code-slot, .code-paint .code-chip { transition:none; }
  .code-paint:hover .code-chip { transform:none; }
}

/* Discovery detail is a single viewport: artwork yields space to the complete text and controls. */
#modal-root:has(.discovery-detail) dialog {
  box-sizing: border-box; width: min(480px, calc(100% - 24px)); max-width: none;
  height: min(800px, calc(100dvh - 24px)); max-height: calc(100dvh - 24px);
  padding: 16px 20px; display: flex; flex-direction: column; overflow: hidden;
}
#modal-root:has(.discovery-detail) .dialog-close { top: 10px; right: 10px; width: 44px; min-height: 44px; }
#modal-root:has(.discovery-detail) .form-error:empty { display: none; }
#modal-root:has(.discovery-detail) .form-error:not(:empty) { flex: none; margin: 6px 0 0; }
.discovery-detail {
  flex: 1; min-height: 0; display: grid; grid-template-rows: 36px minmax(0, 1fr) auto auto; gap: 10px;
}
.discovery-detail .discovery-reveal-title { margin: 0; padding: 0 32px; align-self: center; font-size: 18px; line-height: 1.4; }
.discovery-detail .discovery-flip-shell { width: 100%; max-width: 400px; min-height: 0; }
.discovery-detail .discovery-flip-card { height: 100%; min-height: 0; }
.discovery-detail .discovery-card-front { display: grid; grid-template-rows: auto minmax(48px, 1fr) auto; min-height: 0; padding: 10px; }
.discovery-detail .collectible-full .card-topline { padding: 0 5px 8px; }
.discovery-detail .collectible-full .card-rarity { font-size: 28px; }
.discovery-detail .collectible-full .collectible-art { aspect-ratio: auto; min-height: 0; }
.discovery-detail .collectible-full .collectible-story { padding: 10px 14px 6px; }
.discovery-detail .collectible-full .collectible-story .eyebrow { margin: 0; font-size: 10px; line-height: 1.5; }
.discovery-detail .collectible-full .collectible-story h1 { font-size: 23px; line-height: 1.35; margin: 6px 0 8px; overflow-wrap: anywhere; }
.discovery-detail .collectible-full .collectible-story>p:not(.eyebrow) { font-size: 14px; line-height: 1.6; margin: 0 0 8px; overflow-wrap: anywhere; }
.discovery-detail .collectible-signature { padding: 8px 0 0; gap: 8px; }
.discovery-detail .collectible-signature .explorer-avatar { width: 30px; height: 30px; font-size: 20px; }
.discovery-detail .collectible-back { min-height: 0; padding: 10px; }
.discovery-detail .card-back-frame { min-height: 0; padding: 16px; }
.discovery-detail .card-back-brand { min-height: 0; flex: 1; margin: 16px 0; gap: 12px; }
.discovery-detail .card-back-brand .brand-logo { max-height: min(90px, 18dvh); }
.discovery-detail .discovery-flip-hint { margin: 0; line-height: 1.4; font-size: 11px; }
.discovery-detail .discovery-detail-actions { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.discovery-detail .discovery-detail-actions button { min-height: 44px; padding: 8px 10px; font-size: 13px; }
.discovery-detail .discovery-detail-actions .primary { grid-column: 1 / -1; min-height: 48px; }
.discovery-detail .forge-stage { top: 46px; height: calc(100% - 170px); }
.discovery-detail .forge-skip { top: 36px; }
.discovery-detail .forge-core { width: 160px; height: min(220px, 32dvh); gap: 12px; }
.discovery-detail .forge-core>.icon { width: 44px; height: 44px; }
@media (max-height: 700px) {
  #modal-root:has(.discovery-detail) dialog { padding: 10px 12px; }
  .discovery-detail { gap: 7px; grid-template-rows: 32px minmax(0,1fr) auto auto; }
  .discovery-detail .discovery-reveal-title { font-size: 16px; }
  .discovery-detail .discovery-card-front { padding: 7px; }
  .discovery-detail .collectible-full .card-topline { padding-bottom: 5px; }
  .discovery-detail .collectible-full .card-rarity { font-size: 23px; }
  .discovery-detail .collectible-full .collectible-story { padding: 7px 10px 5px; }
  .discovery-detail .collectible-full .collectible-story h1 { font-size: 20px; margin: 4px 0 6px; }
  .discovery-detail .collectible-full .collectible-story>p:not(.eyebrow) { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
  .discovery-detail .collectible-signature { padding-top: 5px; }
  .discovery-detail .card-back-brand { gap: 8px; margin: 8px 0; }
}
/* A low landscape window has room across, rather than underneath the artwork. */
@media (min-width: 600px) and (max-height: 580px) {
  #modal-root:has(.discovery-detail) dialog { width: min(880px, calc(100% - 24px)); }
  .discovery-detail .discovery-flip-shell { max-width: none; }
  .discovery-detail .discovery-card-front { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); grid-template-rows: auto minmax(0,1fr); gap: 0 10px; }
  .discovery-detail .card-topline { grid-column: 1; grid-row: 1; }
  .discovery-detail .collectible-art { grid-column: 1; grid-row: 2; }
  .discovery-detail .collectible-story { grid-column: 2; grid-row: 1 / 3; align-self: stretch; display: flex; flex-direction: column; border-top: 1px solid var(--card-edge); border-radius: 12px; }
  .discovery-detail .collectible-signature { margin-top: auto; }
  .discovery-detail .discovery-detail-actions { grid-template-columns: 1fr 1fr 1.4fr; }
  .discovery-detail .discovery-detail-actions .primary { grid-column: auto; min-height: 44px; }
  .discovery-detail .card-back-frame { padding: 8px 16px; }
  .discovery-detail .card-back-brand { margin: 4px 0; gap: 4px; }
  .discovery-detail .card-back-brand .brand-logo { max-height: 48px; }
  .discovery-detail .card-back-brand .card-back-name { font-size: 16px; }
  .discovery-detail .card-back-brand .card-back-motto { font-size: 12px; line-height: 1.5; }
  .discovery-detail .card-back-footer { gap: 2px; }
  .discovery-detail .forge-stage { top: 35px; height: calc(100% - 110px); }
  .discovery-detail .forge-core .brand-logo { width: 100px; height: 32px; }
  .discovery-detail .forge-core { gap: 6px; }
}

/* Hide the inactive face explicitly: mobile WebKit may paint its backface. */
.discovery-detail .discovery-card-front, .discovery-detail .collectible-back { transition: visibility 0s .5s; }
.discovery-detail .discovery-card-front[aria-hidden="true"], .discovery-detail .collectible-back[aria-hidden="true"] { visibility: hidden; }
.discovery-detail .discovery-card-front[aria-hidden="false"], .discovery-detail .collectible-back[aria-hidden="false"] { visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .discovery-detail .discovery-card-front, .discovery-detail .collectible-back { transition: none; }
}

/* Desktop lessons fill the viewport; the book grows between its header and footer. */
@media (min-width: 761px) {
  body.in-player { height: 100dvh; overflow: hidden; }
  .player-shell {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px clamp(16px, 2vw, 40px) 0;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 10%, #fffdf6 0%, #f2f8ff 65%, #e1effb 100%);
  }
  .player-shell > :not(.learning-stage):not(.completion) { flex-shrink: 0; }
  .player-header { margin: 0 0 16px; padding: 8px 16px; border-radius: 18px; gap: 16px; }
  .player-header .brand .brand-logo { width: 138px; height: 46px; }
  .player-chapter { margin: 0 4px 6px; }
  .chapter-trail { margin: 0 0 10px; }
  .chapter-trail > span { padding: 6px 12px; }
  .chapter-trail .chapter-art { width: 40px; height: 30px; flex-basis: 40px; }
  .player-shell .learning-stage {
    flex: 1 1 0;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
  /* Local overflow is an accessibility fallback for unusually long authored content
     or extreme zoom. It never moves the viewport footer or clips learning content. */
  .player-shell .instruction, .player-shell .interaction {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .player-shell .instruction { padding: clamp(16px, 2.4dvh, 32px); }
  .player-shell .instruction > :not(.activity-illustration) { flex-shrink: 0; }
  .player-shell .instruction h1 { font-size: clamp(26px, 3.8dvh, 40px); margin: 12px 0 8px; }
  .player-shell .instruction > p { font-size: clamp(16px, 2.1dvh, 20px); line-height: 1.7; margin: 8px 0; }
  .player-shell .instruction .text-button { margin-top: auto; }
  .player-shell .activity-illustration { flex: 1 1 160px; min-height: 40px; height: auto; max-height: 280px; width: 100%; margin: 10px 0; }
  .player-shell .activity-illustration img { max-height: 100%; }
  .player-shell .lesson-note { margin: 8px 0; padding: 10px 12px; }
  .player-shell .interaction { justify-content: safe center; }
  .player-shell .story-panel { min-height: 0; padding: 0; gap: 12px; }
  .player-shell .lesson-illustration { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
  .player-shell .lesson-illustration img { max-height: 100%; }
  .player-shell .story-panel form { flex-shrink: 0; padding-bottom: 4px; }
  .player-shell .answer-form, .player-shell .reflection-form, .player-shell .fill-bank { padding: 12px; }
  .player-shell .answer-options { gap: 12px; }
  .player-shell .answer-option { padding: 12px 16px; min-height: 52px; }
  .player-shell .flashcard-area { height: 100%; min-height: 0; grid-template-rows: auto minmax(100px, 1fr) auto auto auto; gap: 8px; padding: 12px; }
  .player-shell .flashcard { height: 100%; min-height: 0; padding: 16px; gap: 10px; }
  .player-shell .card-dots { margin: 6px 0; }
  .player-shell .sorting-buckets { flex: 0 0 auto; margin: 8px 0; }
  .player-shell .sort-bucket { min-height: 110px; padding: 10px; }
  .player-shell .sort-bucket > strong { margin-bottom: 8px; }
  .player-shell .sorted-item { padding: 6px 8px; margin: 4px 0; }
  .player-shell .sorting-deck { padding: 24px 16px 12px; gap: 16px; }
  .player-shell .sort-card { min-height: clamp(150px, 26dvh, 240px); }
  .player-shell .reflection-form textarea { min-height: 100px; height: clamp(100px, 22dvh, 230px); }
  .player-shell .thought-icon { margin-bottom: 8px; }
  .player-shell .feedback { padding: 12px; }
  .player-shell .feedback-symbol { width: 40px; height: 40px; margin-bottom: 8px; }
  .player-shell .feedback-symbol .icon { width: 26px; height: 26px; }
  .player-shell .feedback h2 { font-size: 24px; margin: 6px 0; }
  .player-shell .feedback > p { margin: 8px 0; font-size: 15px; line-height: 1.6; }
  .player-shell .answer-review { margin: 10px 0; padding: 8px 12px; }
  .player-shell .answer-review:has(section + section) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .player-shell .answer-review section + section { border-top: 0; border-left: 1px solid #c3d2e2; padding: 0 0 0 12px; margin: 0; }
  .player-shell .feedback .primary { margin-top: 8px; }
  .player-shell .page-review { height: 100%; min-height: 0; }
  .player-shell .page-review > :not(.lesson-illustration) { flex-shrink: 0; }
  .player-tools {
    margin: 10px calc(-1 * clamp(16px, 2vw, 40px)) 0;
    padding: 8px clamp(20px, 2vw, 40px) max(8px, env(safe-area-inset-bottom));
    min-height: 64px;
    border-top: 1px solid #b9d6ed;
    background: #f8fbff;
  }
  .page-navigation { flex: 1; flex-wrap: nowrap; }
  .page-navigation [data-action="review-next"] { margin-left: auto; }
  .player-shell .completion { flex: 1; min-height: 0; width: min(700px, 100%); margin: 12px auto; overflow: auto; }
}
@media (min-width: 761px) and (max-height: 740px) {
  .player-shell { padding-top: 8px; }
  .player-header { padding: 4px 12px; }
  .player-header .brand .brand-logo { height: 40px; width: 120px; }
  .player-shell .learning-stage { padding: 8px; gap: 8px; }
  .player-shell .instruction { padding: 14px 18px; }
  .player-shell .instruction h1 { margin-top: 8px; }
  .player-shell .instruction > p { margin: 6px 0; }
  .player-shell .answer-options { gap: 8px; }
  .player-shell .answer-form > .primary, .player-shell .reflection-form > .primary { margin-top: 12px; }
  .player-shell .preview-label { margin-top: 4px; }
  .player-shell .evidence-board { padding: 12px; }
  .player-shell .evidence-board table { margin: 8px 0; }
  .player-shell .evidence-board th, .player-shell .evidence-board td { padding: 8px; }
}
@media (min-width: 761px) {
  .player-shell .flashcard .flashcard-flip { min-height: 0; padding: 4px; gap: 8px; }
  .player-shell .flashcard .term-diagram { flex: 1 1 110px; min-height: 50px; max-height: 110px; margin: 0 auto; }
  .player-shell .flashcard .flashcard-flip strong { font-size: 18px; line-height: 1.5; }
  .player-shell .flashcard .flashcard-flip small { flex-shrink: 0; }
  .player-shell .reflection-form { width: 100%; }
  .player-shell .reflection-form .thought-icon { display: none; }
  .player-shell .reflection-form .voice-status:empty { margin: 0; }
}
@media (min-width: 761px) and (max-height: 800px) {
  .player-header .auto-read-toggle { min-height: 44px; padding-block: 4px; }
  .player-header { padding-block: 4px; }
  .player-header .brand .brand-logo { height: 40px; width: 120px; }
  .chapter-trail > span { padding-block: 4px; }
  .chapter-trail .chapter-art { height: 24px; width: 32px; flex-basis: 32px; }
  .player-shell .showing-feedback { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .player-shell .feedback-symbol { display: none; }
  .player-shell .feedback { padding: 8px; }
  .player-shell .feedback > .eyebrow { margin: 0; }
  .player-shell .answer-review { margin: 8px 0; padding: 4px 8px; }
  .player-shell .scene-sort .activity-illustration { min-height: 0; margin: 4px 0; }
  .player-shell .fill-bank h2 { margin: 8px 0; }
  .player-shell .fill-bank .primary { margin-top: 16px; }
  .player-shell .reflection-form textarea { height: clamp(100px, 18dvh, 160px); }
}
@media (min-width: 761px) and (max-height: 680px) {
  .player-header { margin-bottom: 14px; }
  .player-chapter { margin-bottom: 4px; }
  .chapter-trail { margin-bottom: 6px; }
  .player-shell .instruction { padding: 10px 14px; }
  .player-shell .instruction h1 { font-size: 26px; }
  .player-shell .instruction > p { line-height: 1.6; }
  .player-shell .answer-form > .eyebrow { margin: 4px 0 8px; }
  .player-shell .answer-option { padding: 8px 12px; }
  .player-shell .feedback > p { margin: 4px 0; }
  .player-shell .flashcard { padding: 10px; gap: 4px; }
  .player-shell .flashcard .term-word-row > strong { font-size: 24px; }
  .player-shell .flashcard-area { padding: 8px; gap: 6px; }
}

/* Keep the lesson comfortably framed on wide displays, with a full-height stage. */
@media (min-width: 761px) {
  .player-shell { padding-inline: max(20px, calc((100% - 1200px) / 2)); }
  .player-tools { margin-inline: 0; padding-inline: 4px; background: transparent; }
}

/* Illustrated journeys keep the same saved attempt behind each cover. */
.playground-wallet-row { display:flex; justify-content:flex-end; margin:12px 0 20px; }
.playground-balance { display:flex; align-items:center; gap:7px; min-height:44px; padding:8px 14px; border:1px solid #e2c668; border-radius:18px; background:#fff5ce; color:#79531e; white-space:nowrap; }
.playground-balance svg { width:22px; height:22px; }
.playground-balance strong { font-size:20px; font-variant-numeric:tabular-nums; }
.playground-balance span { font-size:12px; }
.journey-section { min-width:0; }
.journey-section h2 small { font:500 16px 'DM Sans',sans-serif; color:var(--muted); margin-left:8px; }
.journey-controls { display:flex; gap:10px; }
.journey-controls[hidden] { display:none; }
.journey-controls button { border:2px solid #accce1; background:white; box-shadow:0 3px 0 #accce1; }
.journey-controls button:disabled { opacity:.35; box-shadow:none; }
.journey-track { display:flex; flex-wrap:nowrap; gap:20px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; padding:4px 4px 12px; scrollbar-width:thin; scrollbar-color:#b7d3e5 transparent; border-radius:24px; }
.journey-card { position:relative; flex:0 0 calc((100% - 60px)/4); min-width:240px; height:290px; padding:0; overflow:hidden; border:8px solid #e5d9f1; border-radius:26px; background:#dbeafa; box-shadow:0 5px 0 #bba5ce; color:#fff; text-align:left; scroll-snap-align:start; }
.journey-card:nth-child(3n+2) { border-color:#d7eef9; box-shadow:0 5px 0 #a4c9dc; }
.journey-card:nth-child(3n+3) { border-color:#f9e8cf; box-shadow:0 5px 0 #d7bfa1; }
.journey-card img { width:100%; height:100%; object-fit:cover; display:block; }
.journey-card:after { content:''; position:absolute; inset:0; background:linear-gradient(180deg,transparent 12%,#15233226 32%,#152332ed 100%); pointer-events:none; }
.journey-play { position:absolute; z-index:1; top:21%; left:calc(50% - 24px); display:grid; place-items:center; width:48px; height:48px; border:2px solid #fff; border-radius:50%; background:#17263726; }
.journey-play svg { width:25px; height:25px; }
.journey-copy { position:absolute; z-index:1; inset:auto 18px 19px; display:flex; flex-direction:column; gap:12px; }
.journey-copy strong { font:23px/1.45 'ZCOOL KuaiLe',sans-serif; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.journey-copy>span { font-size:12px; color:#f3f6fa; }
.journey-copy progress { width:100%; height:7px; margin:0; accent-color:#f5cb67; }
.journey-copy progress::-webkit-progress-bar { background:#ffffffb3; }
.journey-copy progress::-webkit-progress-value { background:#f5cb67; }
.journey-card:focus-visible,.journey-track:focus-visible,.playground-balance:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.journey-card:hover img { transform:scale(1.025); }
.journey-card img { transition:transform .2s; }
/* Give every pocket and card identical geometry, including partially filled leaves. */
.discovery-album .album-pockets { flex:0 0 auto; grid-auto-rows:1fr; }
.discovery-album .album-leaf-footer { margin-top:auto; padding-top:18px; }
.album-pocket .collectible-mini,.album-pocket .album-empty { flex:none; width:100%; aspect-ratio:3/5; min-height:300px; }
.album-pocket .collectible-mini { display:flex; flex-direction:column; justify-content:flex-start; }
.album-pocket .collectible-mini .card-topline { flex:none; }
.album-pocket .collectible-mini .collectible-art { flex:1; min-height:0; aspect-ratio:auto; width:100%; }
.album-pocket .collectible-mini .collectible-art img { width:100%; height:100%; object-fit:cover; }
.album-pocket .collectible-mini>.card-caption { flex:none; }
.album-pocket .collectible-mini h3 { height:4.35em; min-height:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.album-section-heading { justify-content:flex-end; }
@media(max-width:760px) {
  .journey-track { gap:14px; }
  .journey-card { flex-basis:78%; min-width:220px; height:276px; }
  .playground-balance { gap:4px; padding:6px 9px; }
  .playground-balance span { font-size:10px; }
  .playground-balance strong { font-size:17px; }
  .album-pocket .collectible-mini,.album-pocket .album-empty { min-height:270px; }
}
@media(max-width:359px) {
  .album-pocket .collectible-mini,.album-pocket .album-empty { min-height:250px; }
}
@media(prefers-reduced-motion:reduce) { .journey-card img { transition:none; } .journey-card:hover img { transform:none; } }

/* The playground balance shares the title row, with no extra toolbar above it. */
.playground-title-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:20px; }
.playground-title-row h1 { margin:0; min-width:0; }
@media(max-width:760px) {
  .playground-title-row { gap:12px; }
  .playground-title-row h1 { font-size:24px; line-height:1.4; }
}

/* Private curiosity belongs to this child, alongside the public discovery library. */
.private-course-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; width: fit-content; padding: 3px 9px; border: 1px solid #d6e5ef; border-radius: 999px; background: #eff7fc; color: #365e77; font-size: 12px; font-weight: 600; line-height: 1.5; pointer-events: none; }

/* Parent learning workspace: white records, ink-blue controls and amber exploration. */
.parent-shell {
 --ink:#24354b; --muted:#5c6878; --brand:#2555a2; --brand-dark:#1d427e;
 --page:#f5f6f8; --surface:#fff; --line:#dfe4eb; --sky-soft:#eef3fa;
 --fp-paper:#fff; --fp-blue:var(--brand); --fp-soft:#eef3fa; --fp-line:var(--line);
 --fp-error:#a34138; --fp-error-bg:#fff1ee; --fp-amber:#9a6700; --fp-amber-fill:#e5a32330;
 --family-line:var(--line); --family-mint:var(--sky-soft); --family-rose:#fff1ee;
 background:var(--page); color:var(--ink);
}
.parent-shell > header { background:var(--surface); border-bottom-color:var(--line); }
.parent-shell header nav a { border-radius:6px; color:var(--muted); }
.parent-shell header nav a[aria-current] { background:transparent; color:var(--brand); box-shadow:inset 0 -3px var(--brand); font-weight:700; }
.parent-shell header nav a:hover { background:var(--sky-soft); }
.parent-shell .family-context select { background:var(--surface); border-color:var(--line); border-radius:8px; }
.parent-shell .family-header-tools > a:hover { background:var(--sky-soft); }
.parent-shell :is(.primary,.secondary) { border-radius:9px; box-shadow:none; }
.parent-shell .primary { background:var(--brand); color:#fff; border-color:var(--brand); }
.parent-shell .primary:hover { background:var(--brand-dark); border-color:var(--brand-dark); }
.parent-shell .secondary { background:var(--surface); color:var(--brand); border-color:var(--line); }
.parent-shell .secondary:hover { background:var(--sky-soft); border-color:var(--brand); }
.parent-shell .surface,.parent-shell .family-profile-card { background:var(--surface); border-color:var(--line); box-shadow:none; }
.fp-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:12px 0 28px; }
.fp-heading h1 { font-size:clamp(26px,3vw,38px); margin:8px 0 0; letter-spacing:-.035em; }
.fp-heading .eyebrow { color:var(--muted); font-size:12px; }
.fp-period { display:flex; gap:4px; padding:4px; border:1px solid var(--fp-line); border-radius:9px; background:var(--page); flex-shrink:0; }
.fp-period button { background:transparent; color:var(--muted); box-shadow:none; border:0; border-radius:6px; min-height:40px; padding:8px 16px; font-size:13px; white-space:nowrap; }
.fp-period button[aria-pressed=true] { background:var(--fp-paper); color:var(--ink); box-shadow:0 2px 5px #24354b0d; }
.fp-period button:hover,.fp-axis-tabs button:hover { color:var(--fp-blue); }
.fp-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); background:var(--fp-paper); border:1px solid var(--fp-line); border-radius:14px; padding:28px 12px; box-shadow:none; }
.fp-stats > div { display:flex; flex-direction:column; padding:0 28px; gap:12px; min-width:0; }
.fp-stats > div + div { border-left:1px solid var(--fp-line); }
.fp-stats span { color:var(--muted); font-size:13px; }
.fp-stats strong { display:flex; align-items:baseline; flex-wrap:wrap; gap:12px; font-size:36px; line-height:1.25; color:var(--ink); font-variant-numeric:tabular-nums; letter-spacing:-.035em; }
.fp-stats strong.fp-time { font-size:29px; }
.fp-stats small { font-size:12px; font-weight:400; color:var(--muted); letter-spacing:0; }
.fp-section { margin:36px 0; }
.fp-section-title { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:20px; }
.fp-section-title h2,.fp-interest h2 { margin:5px 0 0; font-size:23px; line-height:1.5; }
.fp-kicker { color:var(--muted); font-size:11px; letter-spacing:.08em; }
.fp-section-title > a { font-size:13px; white-space:nowrap; }
.fp-timeline { border-top:1px solid var(--fp-line); }
.fp-course { display:grid; grid-template-columns:70px 100px minmax(0,1fr) auto; gap:20px; align-items:center; padding:24px 4px; border-bottom:1px solid var(--fp-line); }
.fp-course-date { display:flex; flex-direction:column; align-self:start; padding-top:5px; gap:8px; }
.fp-course-date strong { color:var(--ink); font-size:15px; }
.fp-course-date span { font-size:11px; color:var(--muted); }
.fp-course > img { width:100px; height:76px; border-radius:14px; object-fit:cover; background:var(--sky-soft); }
.fp-course-body { min-width:0; }
.fp-course-title { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.fp-course h3 { font-size:17px; margin:0; line-height:1.5; }
.fp-status { display:inline-block; flex-shrink:0; background:var(--page); color:var(--muted); padding:4px 9px; border-radius:7px; font-size:11px; white-space:nowrap; }
.fp-status.is-complete { background:var(--fp-soft); color:var(--fp-blue); }
.fp-course-body > p { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:10px 0 0; color:var(--muted); font-size:13px; }
.fp-course-body b { color:var(--ink); font-weight:600; }
.fp-course .fp-wrong-count { color:var(--fp-error); }
.fp-course > a { font-size:13px; white-space:nowrap; }
.fp-focus { display:flex; align-items:center; gap:24px; background:var(--fp-paper); border:1px solid var(--fp-line); border-left:4px solid var(--fp-blue); padding:28px 32px; border-radius:12px; margin:32px 0; }
.fp-focus > div:nth-child(2) { flex:1; }
.fp-focus h2 { font-size:20px; margin:8px 0; }
.fp-focus p { font-size:14px; color:var(--muted); margin:0; line-height:1.8; }
.fp-focus-mark { width:48px; height:48px; display:grid; place-items:center; background:var(--fp-soft); color:var(--fp-blue); border-radius:50%; font-size:26px; flex-shrink:0; }
.fp-focus a { white-space:nowrap; }
.fp-caption { font-size:12px; color:var(--muted); line-height:1.8; margin:16px 0; }
.fp-empty,.fp-loading { padding:40px 24px; text-align:center; }
.fp-empty > span,.fp-loading > span { display:block; font-size:32px; color:var(--fp-blue); margin-bottom:12px; }
.fp-empty h2 { font-size:20px; }
.fp-empty p,.fp-loading p { color:var(--muted); font-size:14px; line-height:1.8; max-width:530px; margin:12px auto; }
.fp-quiet-links { border-top:1px solid var(--fp-line); margin-top:32px; padding-top:20px; display:flex; gap:16px; flex-wrap:wrap; }
#fp-more { text-align:center; margin:24px 0; }
.fp-back { display:inline-block; color:var(--muted); font-size:13px; padding:8px 0; }
.fp-lesson-heading { display:flex; align-items:center; gap:28px; margin:20px 0 28px; }
.fp-lesson-heading > img { width:132px; height:106px; border-radius:20px; object-fit:cover; }
.fp-lesson-heading h1 { font-size:clamp(24px,3vw,34px); margin:10px 0; line-height:1.5; }
.fp-lesson-heading p { font-size:13px; color:var(--muted); margin:0; }
.fp-question { background:var(--fp-paper); border:1px solid var(--fp-line); border-radius:16px; margin:12px 0; overflow:hidden; }
.fp-question > summary { display:flex; gap:16px; align-items:center; padding:20px; cursor:pointer; list-style:none; }
.fp-question > summary::-webkit-details-marker { display:none; }
.fp-question > summary > span:nth-child(2) { flex:1; min-width:0; }
.fp-question summary strong { font-size:16px; line-height:1.6; display:block; overflow-wrap:anywhere; }
.fp-question summary small { color:var(--muted); display:block; font-size:12px; margin-top:5px; }
.fp-question-number { font-size:14px; color:var(--fp-blue); background:var(--fp-soft); width:36px; height:36px; display:grid; place-items:center; border-radius:10px; flex-shrink:0; }
.fp-question.is-wrong .fp-question-number { color:var(--fp-error); background:var(--fp-error-bg); }
.fp-question-body { border-top:1px solid var(--fp-line); padding:24px; font-size:14px; line-height:1.9; overflow-wrap:anywhere; }
.fp-question-body p { white-space:pre-wrap; }
.fp-prompt { font-size:16px; color:var(--ink); margin-top:0; }
.fp-question-art { display:block; width:100%; max-width:480px; max-height:300px; object-fit:contain; margin:20px auto; border-radius:12px; }
.fp-options { padding-left:24px; color:var(--muted); }
.fp-answer-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
.fp-answer-pair > div { padding:16px 20px; background:var(--page); border-radius:12px; min-width:0; }
.fp-answer-pair > div:nth-child(2) { background:var(--fp-soft); }
.fp-answer-pair span { font-size:12px; color:var(--muted); }
.fp-answer-pair p { margin:8px 0 0; font-weight:600; }
.fp-answer-parts { list-style:none; padding:0; }
.fp-answer-parts li { display:flex; justify-content:space-between; gap:16px; padding:10px 12px; border-bottom:1px solid var(--fp-line); }
.fp-answer-parts li.is-wrong { background:var(--fp-error-bg); color:var(--fp-error); }
.fp-explanation { border-left:3px solid var(--fp-blue); padding:8px 20px; margin:20px 0; }
.fp-explanation p { margin:8px 0 0; }
.fp-prompt-child { color:var(--fp-blue); }
.fp-practices { margin:20px 0 0; border-top:1px solid var(--fp-line); padding-top:20px; }
.fp-comparison { background:var(--fp-paper); border:1px solid var(--fp-line); border-left:4px solid var(--fp-blue); padding:24px 28px; border-radius:12px; margin:32px 0; }
.fp-comparison h3 { font-size:20px; margin:10px 0; }
.fp-comparison p { color:var(--muted); font-size:14px; line-height:1.9; }
.fp-comparison details { font-size:12px; color:var(--muted); }
.fp-comparison summary { cursor:pointer; min-height:32px; }
.fp-concepts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; padding:0 24px; background:var(--fp-paper); border:1px solid var(--fp-line); border-radius:12px; }
.fp-concepts article { padding:22px 0; border-bottom:1px solid var(--fp-line); min-width:0; }
.fp-concepts article:last-child { border-bottom:0; }
.fp-concepts strong { display:block; margin-bottom:12px; font-size:16px; }
.fp-concepts p,.fp-concepts details { font-size:13px; color:var(--muted); line-height:1.8; }
.fp-concepts summary { cursor:pointer; margin-top:16px; }
.fp-interest { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--fp-paper); border:1px solid var(--fp-line); border-radius:16px; overflow:hidden; }
.fp-interest-chart { padding:28px; }
.fp-interest-chart > p { font-size:13px; color:var(--muted); }
.fp-interest-evidence { padding:28px; border-left:1px solid var(--fp-line); background:var(--fp-paper); }
.fp-radar { display:block; width:100%; max-width:480px; margin:0 auto; }
.fp-radar-grid { stroke:var(--fp-line); fill:none; stroke-width:1; }
.fp-radar-shape { fill:var(--fp-amber-fill); stroke:var(--fp-amber); stroke-width:2; stroke-linejoin:round; }
.fp-radar-dot { fill:var(--fp-amber); stroke:var(--fp-paper); stroke-width:2; }
.fp-radar text { fill:var(--muted); font-family:inherit; font-size:11px; }
.fp-radar .fp-radar-scale { fill:var(--muted); font-size:10px; }
.fp-axis-tabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.fp-axis-tabs button { padding:12px; display:flex; align-items:center; justify-content:space-between; gap:6px; box-shadow:none; border:1px solid var(--fp-line); background:var(--fp-paper); font-size:12px; border-radius:8px; text-align:left; }
.fp-axis-tabs button[aria-pressed=true] { border-color:var(--fp-blue); background:var(--fp-blue); color:#fff; }
.fp-axis-tabs button[aria-pressed=true] small { color:#fff; }
.fp-axis-tabs small { font-size:10px; color:var(--muted); }
.fp-axis-detail { margin-top:24px; }
.fp-axis-detail h3 { font-size:18px; margin:0 0 12px; }
.fp-axis-detail p { font-size:13px; color:var(--muted); }
.fp-axis-detail > div { padding:12px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--fp-line); font-size:12px; }
.fp-axis-detail a { white-space:nowrap; }
.fp-preferences,.fp-more-observations { padding:20px 0; border-bottom:1px solid var(--fp-line); font-size:14px; color:var(--muted); }
.fp-preferences summary,.fp-more-observations > summary { min-height:40px; padding:8px 0; cursor:pointer; color:var(--ink); }
.fp-settings-entry { margin:0 0 28px; }
.fp-period button,.fp-axis-tabs button,.fp-course > a { transition:background-color .18s,color .18s,box-shadow .18s; }
.parent-shell :is(button,a,summary):focus-visible { outline:3px solid var(--fp-blue); outline-offset:4px; }
@media(max-width:760px) {
 .fp-heading { align-items:flex-start; flex-direction:column; gap:20px; }
 .fp-stats { padding:20px 0; border-radius:12px; }
 .fp-stats > div { padding:0 16px; }
 .fp-stats strong { font-size:27px; gap:6px; }
 .fp-stats strong.fp-time { font-size:23px; }
 .fp-stats span { font-size:12px; }
 .fp-course { grid-template-columns:64px minmax(0,1fr) auto; gap:12px; padding:20px 0; }
 .fp-course-date { grid-column:1/-1; flex-direction:row; align-items:center; padding:0; }
 .fp-course > img { width:64px; height:64px; border-radius:12px; }
 .fp-course h3 { font-size:15px; }
 .fp-course-body > p { font-size:12px; gap:7px; }
 .fp-course > a { font-size:12px; padding:4px; }
 .fp-course-title { gap:8px; }
 .fp-focus { flex-wrap:wrap; padding:24px; gap:16px; }
 .fp-focus > a { margin-left:64px; }
 .fp-focus h2 { font-size:18px; }
 .fp-interest { grid-template-columns:1fr; }
 .fp-interest-evidence { border-left:0; border-top:1px solid var(--fp-line); }
 .fp-concepts { grid-template-columns:1fr; }
 .fp-lesson-heading { gap:16px; }
 .fp-lesson-heading > img { width:84px; height:84px; border-radius:14px; }
 .fp-lesson-heading h1 { font-size:23px; }
 .fp-section-title h2 { font-size:21px; }
 .fp-question-body { padding:20px; }
}
@media(max-width:480px) {
 .parent-shell main { padding-inline:18px; }
 .family-context { gap:8px; margin-bottom:12px; }
 .family-context > span { display:none; }
 .fp-stats { gap:0; }
 .fp-stats > div { padding:0 10px; gap:10px; }
 .fp-stats strong { font-size:26px; }
 .fp-stats strong.fp-time { font-size:20px; }
 .fp-stats small { font-size:10px; line-height:1.7; }
 .fp-stats span { font-size:11px; }
 .fp-course { grid-template-columns:58px minmax(0,1fr); }
 .fp-course > img { width:58px; height:64px; align-self:start; }
 .fp-course > a { grid-column:2; justify-self:start; padding:4px 0; min-height:32px; }
 .fp-course-body > p { line-height:1.8; }
 .fp-section { margin:28px 0; }
 .fp-section-title { gap:12px; align-items:flex-start; flex-wrap:wrap; }
 .fp-section-title > a { font-size:12px; }
 .fp-focus { padding:20px; }
 .fp-focus-mark { display:none; }
 .fp-focus > a { margin-left:0; }
 .fp-focus > div:nth-child(2) { flex-basis:100%; }
 .fp-answer-pair { grid-template-columns:1fr; }
 .fp-question > summary { padding:16px; gap:12px; }
 .fp-question-body { padding:16px; }
 .fp-answer-parts li { flex-direction:column; gap:4px; }
 .fp-interest-chart,.fp-interest-evidence { padding:20px 16px; }
 .fp-axis-tabs button { padding:10px 8px; }
 .fp-axis-detail > div { flex-wrap:wrap; }
 .fp-comparison { padding:20px; }
 .fp-period button { padding:8px 13px; }
 .fp-lesson-heading { align-items:flex-start; }
 .fp-lesson-heading > img { width:64px; height:70px; }
 .fp-lesson-heading h1 { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) { .fp-period button,.fp-axis-tabs button,.fp-course > a { transition:none; } }

/* Secondary parent views share the same surfaces; meaning remains in visible labels. */
.parent-shell .family-ai { background:var(--surface); border-color:var(--line); box-shadow:none; }
.parent-shell .family-ai-spark { background:var(--sky-soft); color:var(--brand); }
.parent-shell .family-ai .family-ai-consent { color:var(--muted); border-color:var(--line); }
.parent-shell :is(.family-kicker,.family-fact span,.family-reading span) { color:var(--muted); }
.parent-shell :is(.family-insight-card,.family-ai-notes > article,.family-route,.family-bottom-grid .surface) { background:var(--surface); border-color:var(--line); box-shadow:none; border-radius:12px; }
.parent-shell .family-insight-tabs button { background:var(--surface); border-color:var(--line); border-radius:9px; }
.parent-shell .family-insight-tabs button[aria-pressed=true] { border-color:var(--brand); background:var(--sky-soft); box-shadow:none; }
.parent-shell .family-insight-tabs button > span { color:var(--brand); }
.parent-shell .family-hero-note { background:var(--surface); border-color:var(--line); border-top:3px solid var(--fp-amber); border-radius:12px; box-shadow:none; transform:none; }
.parent-shell .family-hero-note small { color:var(--muted); }
.parent-shell .family-small-step { background:var(--page); }
.parent-shell .family-small-step strong { color:var(--ink); }
.parent-shell .family-evidence,.parent-shell .family-evidence article { border-color:var(--line); }
.parent-shell :is(.family-evidence summary,.family-route summary,.family-route-index) { color:var(--brand); border-color:var(--brand); }
.parent-shell .family-empty { background:var(--surface); border-color:var(--line); }
.parent-shell :is(.family-empty > span,.family-loading > span) { color:var(--brand); }
.parent-shell .family-voices blockquote { background:var(--page); border-color:var(--line); }
@media(min-width:761px) { .fp-concepts article:nth-last-child(2):nth-child(odd) { border-bottom:0; } }

/* Family entry: one clearly marked adult gate, with a numeric mobile keypad. */
.parent-entry-card { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:24px; }
.parent-entry-card > div { flex:1; min-width:180px; }
.parent-entry-card h2 { margin:0 0 6px; font-size:20px; }
.parent-entry-card p { margin:0; color:var(--muted); }
.family-entry-choice { max-width:640px; margin:32px auto; }
.family-entry-options { display:grid; gap:12px; margin-top:24px; }
.family-entry-options button { display:flex; justify-content:space-between; align-items:center; gap:16px; min-height:64px; }
.family-entry-options small { font-weight:400; }
[data-form="parent-pin"] input[inputmode="numeric"] { letter-spacing:.2em; }

/* Teacher pathways: compact, equal-height cards; retain original artwork. */
.teacher-shell .pathway-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.teacher-shell .pathway { display:flex; flex-direction:column; min-width:0; }
.teacher-shell .pathway > img { aspect-ratio: 16 / 9; }
.teacher-shell .pathway > div { padding:18px; display:flex; flex:1; flex-direction:column; align-items:flex-start; }
.teacher-shell .pathway h2 { font-size:19px; line-height:1.5; margin:12px 0 8px; }
.teacher-shell .pathway p { font-size:13px; line-height:1.75; margin:0 0 16px; }
.teacher-shell .pathway .text-button { margin-top:auto; }
.school-role-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:20px; }
.school-role-grid .daily-panel { margin:0 0 20px; }
@media(max-width:1100px) { .teacher-shell .pathway-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .teacher-shell .pathway-grid { grid-template-columns:1fr; gap:16px; } .teacher-shell .pathway > img { aspect-ratio: 2.4; } }
