:root {
  --bg: #09111f;
  --bg2: #0f1a2d;
  --surface: rgba(17, 27, 47, 0.86);
  --surface-2: rgba(24, 37, 63, 0.95);
  --surface-3: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.95);
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.4);
  --amber: #ffb347;
  --amber-2: #ffd580;
  --teal: #4ecdc4;
  --teal-2: #29b6ad;
  --green: #93d744;
  --coral: #ff6b6b;
  --purple: #9b8fff;
  --sky-1: #1a0f3c;
  --sky-2: #2f1b67;
  --panel: #0b0817;
  --panel-2: #17112a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(78, 205, 196, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 179, 71, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg), #050a14 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 24, 0.7);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand-mark {
  font-family: "Nunito", sans-serif;
  font-size: 21px;
  font-weight: 900;
  color: var(--amber-2);
}

.brand-sub {
  color: var(--text-3);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: relative;
}

.top-home-btn,
.module-menu-summary,
.module-menu-panel a,
.module-menu-panel button {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: inherit;
  cursor: pointer;
}

.top-home-btn:hover,
.module-menu-summary:hover,
.module-menu-panel a:hover,
.module-menu-panel button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.top-home-btn.active {
  color: #102315;
  background: linear-gradient(135deg, var(--green), var(--teal));
  border-color: transparent;
  font-weight: 800;
}

.top-home-btn.locked {
  opacity: 0.72;
}

.top-map-link {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

.auth-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 196, 87, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.auth-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.auth-avatar {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(78, 205, 196, 0.14);
  color: var(--amber-2);
  font-weight: 900;
  font-family: "Nunito", sans-serif;
}

.auth-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-name {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  color: var(--text);
}

.auth-meta {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: var(--text-3);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.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;
}

.auth-role-field {
  display: inline-flex;
}

.auth-role-select {
  max-width: 92px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 24px 7px 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
}

.auth-role-select:focus {
  border-color: rgba(78, 205, 196, 0.45);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.auth-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  white-space: nowrap;
}

.auth-btn.primary {
  color: #0b271f;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--green));
}

.auth-btn.ghost {
  color: var(--text-2);
}

.auth-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-widget[data-auth-state="guest"] .auth-avatar {
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.06);
}

.auth-widget[data-auth-state="authenticated"] {
  border-color: rgba(78, 205, 196, 0.28);
}

.module-menu {
  position: relative;
}

.module-menu-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.module-menu-summary::-webkit-details-marker {
  display: none;
}

.module-menu-caret {
  color: var(--amber-2);
  font-size: 10px;
}

.module-menu[open] .module-menu-caret {
  transform: rotate(180deg);
}

.module-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(10, 16, 30, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  padding: 12px;
  z-index: 80;
}

.module-menu-group + .module-menu-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.module-menu-title {
  color: var(--text-3);
  font-size: 10px;
  letter-spacing: 0.14em;
  margin: 2px 6px 8px;
  text-transform: uppercase;
}

.module-menu-panel a,
.module-menu-panel button {
  align-items: center;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  text-align: left;
  width: 100%;
}

.module-menu-panel button.active {
  color: var(--amber-2);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.28);
  font-weight: 800;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  min-height: calc(100vh - 79px);
}

.workspace.module-focused {
  grid-template-columns: minmax(0, 1fr);
}

.workspace.module-focused .sidebar {
  display: none;
}

.sidebar {
  padding: 22px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(5, 10, 20, 0.5);
}

.side-card,
.overview-panel,
.learning-hub,
.blueprint-card,
.lesson-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.side-card {
  padding: 18px;
}

.mobile-intro-card {
  display: none;
}

.side-card h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 23px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.side-card p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 14px;
}

.side-label,
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  left: 0;
  top: 10px;
}

.compact-feature-list {
  margin-top: 10px;
  gap: 8px;
}

.compact-feature-list li {
  font-size: 13px;
}

.library-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.library-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.library-filter-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.library-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library-filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.library-filter-chip.active {
  color: var(--text);
  background: rgba(78, 205, 196, 0.12);
  border-color: rgba(78, 205, 196, 0.3);
}

.library-sort-select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 9px 12px;
  font-size: 12px;
  font-family: inherit;
}

.library-filter-summary {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-list-toggle {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.lesson-list-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}

.learning-path-card h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.learning-path-card > p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.curriculum-map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(78, 205, 196, 0.26);
  border-radius: 16px;
  padding: 12px 14px;
  color: #102315;
  background: linear-gradient(135deg, var(--green), var(--teal));
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(78, 205, 196, 0.14);
}

.curriculum-map-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(78, 205, 196, 0.18);
}

.lesson-list-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
}

.lesson-nav-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.lesson-nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.lesson-nav-card.active {
  border-color: rgba(78, 205, 196, 0.45);
  background: rgba(78, 205, 196, 0.09);
}

.lesson-nav-card.done {
  border-color: rgba(147, 215, 68, 0.24);
}

.lesson-nav-card.in-progress {
  border-color: rgba(255, 179, 71, 0.22);
}

.lesson-nav-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lesson-status {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.lesson-status.playable {
  color: var(--teal);
  background: rgba(78, 205, 196, 0.08);
  border-color: rgba(78, 205, 196, 0.24);
}

.lesson-status.planned {
  color: var(--amber);
  background: rgba(255, 179, 71, 0.09);
  border-color: rgba(255, 179, 71, 0.24);
}

.lesson-code {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  color: var(--amber-2);
}

.lesson-nav-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 4px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
}

.lesson-nav-meta {
  font-size: 12px;
  color: var(--text-3);
}

.lesson-mobile-summary {
  display: none;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}

.lesson-asset-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.asset-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid transparent;
}

.asset-state-badge.ready {
  color: var(--green);
  background: rgba(147, 215, 68, 0.12);
  border-color: rgba(147, 215, 68, 0.24);
}

.asset-state-badge.draft {
  color: var(--amber);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.24);
}

.asset-state-badge.todo {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.22);
}

.asset-state-count {
  font-size: 11px;
  color: var(--text-3);
}

.lesson-asset-mini {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-mini-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
}

.asset-mini-chip.ready {
  color: var(--green);
}

.asset-mini-chip.draft {
  color: var(--amber);
}

.asset-mini-chip.todo {
  color: var(--coral);
}

.lesson-progress {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lesson-progress-text {
  font-size: 11px;
  color: var(--text-3);
}

.path-lesson-card .lesson-mobile-summary {
  display: block;
}

.path-lesson-card .lesson-progress {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.main {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.module-page[hidden] {
  display: none !important;
}

.overview-panel {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 320px);
  gap: 18px;
}

.overview-copy h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.overview-copy p {
  color: var(--text-2);
  line-height: 1.8;
}

.overview-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.stat-num {
  font-family: "Nunito", sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--amber-2);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-3);
  font-size: 12px;
}

.learning-hub {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: stretch;
}

.learning-side-stack {
  display: grid;
  grid-template-rows: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}

.selected-card,
.learning-side-stack .flow-card {
  min-height: 100%;
}

.coordination-panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(155, 143, 255, 0.1), transparent 36%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.coordination-head {
  margin-bottom: 14px;
}

.section-toggle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-toggle-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.section-toggle-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
}

.section-collapsed-summary {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
}

.collapsible-section.is-collapsed .section-toggle-head {
  margin-bottom: 0;
}

.section-toggle-body[hidden] {
  display: none !important;
}

.coordination-title {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.coordination-copy {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

.coordination-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.coordination-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coordination-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.coordination-input {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
}

.coordination-check {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  color: var(--text-2);
  font-size: 13px;
}

.coordination-reset {
  align-self: stretch;
}

.coordination-owner-summary {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-summary-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.owner-summary-chip.risk {
  border-color: rgba(255, 107, 107, 0.24);
}

.owner-summary-name {
  font-size: 13px;
  font-weight: 700;
}

.owner-summary-meta {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.resource-workbench {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.resource-workbench-head {
  margin-bottom: 14px;
}

.resource-workbench-title {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.resource-workbench-copy {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

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

.workbench-column {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

.workbench-column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.workbench-column-title {
  font-size: 14px;
  font-weight: 700;
}

.workbench-column-count {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--amber-2);
  font-family: "Nunito", sans-serif;
  font-weight: 900;
}

.workbench-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workbench-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.workbench-item.todo {
  border-color: rgba(255, 107, 107, 0.2);
}

.workbench-item.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.workbench-item.ready {
  border-color: rgba(147, 215, 68, 0.2);
}

.workbench-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.workbench-item-code {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--amber-2);
}

.workbench-item-bucket {
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workbench-item-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workbench-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.workbench-item-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}

.workbench-item-note {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.6;
}

.workbench-empty {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
}

.audio-workbench {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(78, 205, 196, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.asset-workbench.visual-workbench {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 179, 71, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.asset-workbench.motion-workbench {
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(147, 215, 68, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.blueprint-section {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 18px;
}

.asset-rd-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.asset-rd-card.todo {
  border-color: rgba(255, 107, 107, 0.18);
}

.asset-rd-card.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.asset-rd-card.ready {
  border-color: rgba(147, 215, 68, 0.24);
}

.audio-workbench-head {
  margin-bottom: 14px;
}

.audio-workbench-title {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.audio-workbench-copy {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
}

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

.audio-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.audio-card.todo {
  border-color: rgba(255, 107, 107, 0.18);
}

.audio-card.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.audio-card.ready {
  border-color: rgba(147, 215, 68, 0.24);
}

.audio-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.audio-card-code {
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
  color: var(--amber-2);
  letter-spacing: 0.06em;
}

.audio-card-title {
  font-family: "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.4;
}

.audio-card-state {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.audio-card-state.todo {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.22);
}

.audio-card-state.draft {
  color: var(--amber);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.24);
}

.audio-card-state.ready {
  color: var(--green);
  background: rgba(147, 215, 68, 0.12);
  border-color: rgba(147, 215, 68, 0.24);
}

.audio-card-meta {
  color: var(--text-3);
  font-size: 12px;
  margin-bottom: 12px;
}

.audio-card-block + .audio-card-block {
  margin-top: 12px;
}

.audio-card-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.audio-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.audio-kind-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.audio-kind-title {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.audio-kind-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audio-kind-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.audio-kind-item.todo {
  border-color: rgba(255, 107, 107, 0.18);
}

.audio-kind-item.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.audio-kind-item.ready {
  border-color: rgba(147, 215, 68, 0.22);
}

.audio-kind-item-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.selected-item-title-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.audio-kind-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.asset-owner-line {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
}

.overdue-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.22);
  color: #ffb3b3;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.audio-kind-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.audio-status-select {
  min-width: 120px;
}

.audio-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

.audio-chip.todo {
  border-color: rgba(255, 107, 107, 0.2);
}

.audio-chip.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.audio-chip.ready {
  border-color: rgba(147, 215, 68, 0.22);
}

.audio-line-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.audio-line-list.compact {
  font-size: 12px;
  color: var(--text-3);
}

.audio-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.audio-card-actions .hub-btn {
  padding-inline: 12px;
}

.flow-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
}

.flow-title {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 8px;
}

.flow-copy {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 14px;
}

.lesson-preview {
  margin-top: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(116, 224, 214, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 36, 54, 0.94), rgba(48, 34, 82, 0.86)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 50px rgba(0, 0, 0, 0.18);
}

.lesson-snapshot-card {
  min-height: 220px;
  padding: 22px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(260px, 1.08fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: stretch;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 201, 94, 0.18), transparent 22%),
    radial-gradient(circle at 20% 82%, rgba(78, 205, 196, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(7, 17, 33, 0.34), rgba(31, 22, 65, 0.46));
}

.snapshot-story {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  background: rgba(7, 12, 24, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.snapshot-hero-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 42px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.22), transparent 42%),
    rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.snapshot-hero-icon .item-token {
  transform: scale(0.82);
}

.snapshot-kicker {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.snapshot-title {
  color: var(--sun);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  line-height: 1.35;
}

.snapshot-story p,
.snapshot-core-copy {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
  margin: 8px 0 0;
}

.snapshot-material-panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 201, 94, 0.14);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px) 0 0 / 32px 32px,
    rgba(12, 17, 34, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-rows: auto minmax(74px, 1fr) auto;
  gap: 14px;
}

.snapshot-panel-label {
  width: fit-content;
  max-width: 100%;
  color: #ffe2a1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 201, 94, 0.2);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 201, 94, 0.08);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-material-rail {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 10px;
}

.snapshot-material-token {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.snapshot-material-token .item-token {
  transform: scale(0.92);
}

.snapshot-mini-path {
  display: flex;
  gap: 8px;
  align-items: center;
}

.snapshot-mini-path span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.snapshot-mini-path span.active {
  background: linear-gradient(90deg, var(--teal), var(--green));
  box-shadow: 0 0 16px rgba(78, 205, 196, 0.28);
}

.snapshot-core-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 16px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.snapshot-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.snapshot-tags span {
  font-size: 11px;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.04);
}

.side-lesson-insight {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-insight-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.side-insight-row span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
}

.side-insight-row strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.side-lesson-insight p {
  margin: 2px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}

.flow-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.resource-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.resource-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.resource-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.resource-panel-state {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid transparent;
}

.resource-panel-state.ready {
  color: var(--green);
  background: rgba(147, 215, 68, 0.12);
  border-color: rgba(147, 215, 68, 0.24);
}

.resource-panel-state.draft {
  color: var(--amber);
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.24);
}

.resource-panel-state.todo {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.22);
}

.resource-panel-copy {
  margin: 0 0 12px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.7;
}

.lesson-value-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(116, 224, 214, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(116, 224, 214, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.lesson-value-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lesson-value-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.lesson-value-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  background: rgba(116, 224, 214, 0.1);
  border: 1px solid rgba(116, 224, 214, 0.2);
  white-space: nowrap;
}

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

.lesson-value-item {
  min-height: 136px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 16, 31, 0.36);
}

.lesson-value-label {
  color: var(--text-3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.lesson-value-main {
  margin-top: 8px;
  color: var(--sun);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.lesson-value-copy {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.65;
}

.parent-tip-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 179, 71, 0.09);
  border: 1px solid rgba(255, 179, 71, 0.16);
}

.parent-tip-label {
  color: var(--sun);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.parent-tip-box p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.75;
}

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

.asset-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.asset-card.ready {
  border-color: rgba(147, 215, 68, 0.24);
}

.asset-card.draft {
  border-color: rgba(255, 179, 71, 0.24);
}

.asset-card.todo {
  border-color: rgba(255, 107, 107, 0.18);
}

.asset-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.asset-card-title {
  font-size: 13px;
  font-weight: 700;
}

.asset-card-state {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.asset-card-state.ready {
  color: var(--green);
  background: rgba(147, 215, 68, 0.12);
}

.asset-card-state.draft {
  color: var(--amber);
  background: rgba(255, 179, 71, 0.12);
}

.asset-card-state.todo {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.1);
}

.asset-card-meta {
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--amber-2);
  line-height: 1;
  margin-bottom: 6px;
}

.asset-card-copy {
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.6;
}

.selected-audio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.selected-audio-kind {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.selected-audio-kind-title {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.selected-audio-kind-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.selected-audio-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.selected-audio-item.todo {
  border-color: rgba(255, 107, 107, 0.18);
}

.selected-audio-item.draft {
  border-color: rgba(255, 179, 71, 0.22);
}

.selected-audio-item.ready {
  border-color: rgba(147, 215, 68, 0.22);
}

.selected-audio-item-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.selected-audio-item-state {
  font-size: 10px;
  color: var(--text-3);
}

.selected-audio-item-note {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 6px;
}

.selected-asset-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 8px;
  margin-top: 8px;
}

.asset-meta-input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
}

.selected-audio-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.asset-card-controls {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-card-label {
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.asset-status-select {
  flex: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
}

.asset-reset-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.hub-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}

.hub-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.hub-btn.primary {
  background: var(--teal);
  border-color: rgba(78, 205, 196, 0.34);
  color: #fff;
}

.hub-btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.account-panel,
.admin-panel,
.map-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(78, 205, 196, 0.14), transparent 34%),
    rgba(18, 28, 48, 0.86);
  padding: 24px;
  box-shadow: var(--shadow);
}

.map-panel {
  padding: 18px;
  min-height: calc(100vh - 123px);
}

.map-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 4px 6px 16px;
}

.map-panel-head h2 {
  margin: 6px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 34px);
}

.map-panel-head p {
  color: var(--text-2);
  line-height: 1.7;
}

.map-frame {
  display: block;
  width: 100%;
  height: min(980px, calc(100vh - 220px));
  min-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(5, 10, 20, 0.58);
}

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

.account-head h2 {
  margin: 6px 0 8px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 3vw, 36px);
}

.account-head p,
.account-card p {
  color: var(--text-2);
  margin: 0;
  line-height: 1.65;
}

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

.account-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(7, 12, 24, 0.38);
  padding: 18px;
}

.account-card.wide {
  grid-column: 1 / -1;
}

.account-card-kicker {
  color: var(--text-3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.account-card-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}

.account-help {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.account-sample-list,
.admin-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.account-sample-list span,
.admin-table div,
.child-manager-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.child-manager-main {
  min-width: 150px;
}

.child-progress-mini {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: var(--text-3);
  font-size: 12px;
}

.child-progress-mini span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.child-progress-mini strong {
  color: var(--amber-2);
}

.admin-table span,
.child-manager-row span {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 3px;
}

.admin-entitlement-row {
  align-items: center;
}

.admin-entitlement-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-entitlement-controls select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font: inherit;
  min-height: 38px;
  padding: 0 12px;
}

.child-manager-list {
  display: grid;
  gap: 10px;
}

.child-manager-row.active {
  border-color: rgba(78, 205, 196, 0.42);
  background: rgba(78, 205, 196, 0.08);
}

.child-add-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.account-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  padding: 10px 14px;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.account-metrics div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  padding: 14px;
}

.account-metrics strong {
  display: block;
  font-size: 24px;
  color: var(--amber-2);
}

.account-metrics span {
  color: var(--text-3);
  font-size: 12px;
}

.account-favorite-list,
.account-report-list,
.account-order-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.account-favorite-card,
.account-report-row,
.account-order-row,
.account-empty-state,
.account-loading {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  padding: 14px;
}

.account-favorite-card {
  display: grid;
  gap: 8px;
}

.account-favorite-card strong,
.account-report-row strong {
  color: var(--text);
}

.account-favorite-card p {
  color: var(--text-2);
  margin: 0;
  line-height: 1.65;
}

.account-favorite-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}

.account-report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-report-row span,
.account-order-row span,
.account-card-actions span,
.account-empty-state,
.account-loading {
  color: var(--text-3);
  font-size: 12px;
}

.account-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.account-order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.locked-lesson-shell {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.locked-lesson-card {
  width: min(680px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 196, 87, 0.16), transparent 36%),
    rgba(7, 12, 24, 0.72);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.locked-lesson-card h2 {
  margin: 8px 0 10px;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(24px, 4vw, 40px);
}

.locked-lesson-card p {
  color: var(--text-2);
  line-height: 1.7;
}

.selected-lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.flow-meta {
  font-size: 12px;
  color: var(--text-3);
}

.flow-state {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-state.done {
  color: var(--green);
  border-color: rgba(147, 215, 68, 0.3);
  background: rgba(147, 215, 68, 0.08);
}

.flow-state.progress {
  color: var(--amber);
  border-color: rgba(255, 179, 71, 0.28);
  background: rgba(255, 179, 71, 0.08);
}

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blueprint-card {
  padding: 18px;
}

.blueprint-title {
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--amber-2);
  margin-bottom: 8px;
}

.blueprint-card p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 14px;
}

.lesson-shell {
  padding: 16px;
  order: 6;
}

.lesson-shell-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lesson-shell-title {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.app-root {
  min-height: 760px;
}

.engine-shell {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  height: min(760px, calc(100vh - 136px));
  min-height: 620px;
}

.child-zone {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, var(--sky-2), var(--sky-1) 65%);
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  animation: twinkle var(--speed, 3s) ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.2;
  }
}

.class-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.class-flow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
  justify-content: flex-end;
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 112px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.locale-chip {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  min-width: 50px;
  padding: 8px 10px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.locale-chip.active {
  background: linear-gradient(135deg, #ffd580, #ffb347);
  box-shadow: 0 8px 20px rgba(255, 179, 71, .18);
  color: #241407;
}

.compact-locale-row {
  display: flex;
  justify-content: center;
  padding: 10px 14px 0;
}

.class-flow-actions.compact-hidden {
  display: none;
}

.class-mini-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  cursor: pointer;
}

.class-mini-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.class-brand {
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--amber-2);
}

.class-title {
  flex: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-wrap {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 0.35s ease;
}

.star-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 179, 71, 0.28);
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.12);
  color: var(--amber-2);
  font-family: "Nunito", sans-serif;
  font-weight: 900;
}

.parent-peek {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 8, 23, 0.72);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.parent-peek-inline {
  position: absolute;
  top: 72px;
  right: 18px;
  z-index: 8;
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 999px;
  border-color: rgba(78, 205, 196, 0.3);
  background: rgba(78, 205, 196, 0.12);
  color: #d9fffc;
  cursor: pointer;
  display: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.engine-shell.parent-collapsed .parent-peek-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.parent-sheet-scrim {
  display: none;
}

.lesson-shell-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compact-scene-strip {
  position: relative;
  z-index: 2;
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 18px 0;
}

.compact-scene-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(78, 205, 196, 0.14);
  border: 1px solid rgba(78, 205, 196, 0.24);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.compact-scene-copy {
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.lesson-mobile-bar {
  position: relative;
  z-index: 2;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(11, 8, 23, 0.1), rgba(11, 8, 23, 0.4));
}

.lesson-mobile-btn {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 8px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}

.lesson-mobile-btn.primary {
  border-color: rgba(78, 205, 196, 0.34);
  background: rgba(78, 205, 196, 0.14);
  color: #d9fffc;
}

.lesson-mobile-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.lesson-shell-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.scene {
  position: absolute;
  inset: 0;
  display: none;
  padding: 18px 22px;
  align-items: center;
  justify-content: center;
  overflow: auto;
  min-height: 0;
}

.scene.active {
  display: flex;
  animation: scene-in 0.28s ease;
}

@keyframes scene-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scene-stack {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: auto;
}

.bubble {
  min-height: 62px;
  max-width: 320px;
  padding: 12px 18px;
  border-radius: 18px 18px 18px 6px;
  background: #ffffff;
  color: #2d1b69;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.bubble.success-bubble {
  background: linear-gradient(135deg, #ecfff4, #fff8d6);
  color: #16623b;
  border: 1px solid rgba(75, 199, 120, .34);
  animation: success-bubble-pop .38s ease both;
}

@keyframes success-bubble-pop {
  from {
    opacity: .4;
    transform: translateY(6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cta-row,
.match-actions,
.celebration-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cta {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.cta.primary {
  background: var(--teal);
  color: #ffffff;
}

.cta.secondary {
  background: var(--amber);
  color: #ffffff;
}

.cta.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta.purple {
  background: var(--purple);
  color: #ffffff;
}

.scene-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 16px;
}

.scene-dot {
  width: 30px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: all 0.18s ease;
}

.scene-dot.active {
  width: 48px;
  background: var(--teal);
}

.scene-dot.done {
  background: rgba(78, 205, 196, 0.44);
}

.story-forest {
  width: 100%;
  height: 72px;
  position: relative;
}

.story-tree {
  position: absolute;
  bottom: 0;
  font-size: var(--size, 44px);
}

.hero-wrap {
  height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.hero-emoji {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 78px;
  line-height: 1;
  cursor: pointer;
  animation: hero-bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

@keyframes hero-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.hero-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
}

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

.friend-card {
  min-width: 92px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.material-friend-card {
  min-width: 106px;
  padding: 10px 12px 12px;
}

.friend-card .emoji {
  min-height: 44px;
  margin-bottom: 6px;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.friend-card .emoji .item-token {
  margin-inline: auto;
}

.friend-card .name {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.58);
}

.card-surface {
  width: 100%;
  max-width: 520px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.demo-apples,
.practice-apples {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 70px;
}

.demo-apple,
.practice-apple {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
}

.demo-apple.active,
.practice-apple.counted {
  background: rgba(255, 179, 71, 0.17);
  border-color: rgba(255, 179, 71, 0.35);
  transform: translateY(-2px);
}

.practice-apple {
  cursor: pointer;
}

.shape-demo-grid,
.shape-find-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shape-demo-card,
.shape-find-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.shape-demo-card.active,
.shape-find-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 71, 0.34);
  background: rgba(255, 179, 71, 0.12);
}

.shape-find-card {
  cursor: pointer;
}

.number-choice-card {
  min-height: 126px;
  border-color: rgba(91, 213, 255, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(104, 214, 255, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.065);
}

.number-choice-card:hover {
  border-color: rgba(255, 201, 94, 0.44);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 201, 94, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.085);
}

.item-token {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  align-items: center;
  justify-content: center;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  padding: 6px;
}

.item-token span {
  font-size: 36px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.item-token.quantity-token {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

.item-token.quantity-token span {
  font-size: clamp(18px, 3vw, 28px);
}

.item-token.quantity-token.token-count-1,
.item-token.quantity-token.token-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-token.quantity-token.token-count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.item-token.quantity-token.token-count-5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-token.quantity-token.token-count-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.item-token.quantity-token.token-count-7,
.item-token.quantity-token.token-count-8,
.item-token.quantity-token.token-count-9,
.item-token.quantity-token.token-count-10 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.token-large {
  width: 88px;
  height: 88px;
}

.token-large span {
  font-size: 44px;
}

.token-medium {
  width: 72px;
  height: 72px;
}

.item-token.digit-token {
  --digit-size: 72px;
  width: var(--digit-size);
  height: var(--digit-size);
  padding: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(145deg, rgba(123, 225, 255, 0.92), rgba(75, 126, 222, 0.9) 48%, rgba(67, 47, 148, 0.95));
  border: 1px solid rgba(197, 239, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -10px 18px rgba(18, 18, 68, 0.28),
    0 12px 24px rgba(22, 13, 58, 0.24);
}

.item-token.digit-token::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.item-token.digit-token .digit-token-number {
  font-family: "Nunito", "Baloo 2", sans-serif;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 1000;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #fffdf4;
  text-shadow:
    0 2px 0 rgba(42, 38, 93, 0.35),
    0 0 14px rgba(255, 255, 255, 0.28);
  font-variant-numeric: tabular-nums;
}

.item-token.digit-token.token-large {
  --digit-size: 92px;
}

.item-token.digit-token.token-medium {
  --digit-size: 76px;
}

.item-token.digit-token.token-inline {
  --digit-size: 44px;
  border-radius: 14px;
}

.item-token.digit-token.token-inline .digit-token-number {
  font-size: 24px;
}

.item-token.digit-token.digit-sequence-token {
  width: auto;
  min-width: var(--digit-size);
  padding: 0 14px;
}

.item-token.digit-token.digit-sequence-token .digit-token-number {
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0;
  white-space: nowrap;
}

.item-token.digit-token.token-inline.digit-sequence-token {
  min-width: 58px;
  padding-inline: 8px;
}

.item-token.digit-token.token-inline.digit-sequence-token .digit-token-number {
  font-size: 18px;
}

.token-large.quantity-token span,
.token-medium.quantity-token span {
  font-size: clamp(14px, 1.8vw, 20px);
}

.token-large.quantity-token.token-count-7 span,
.token-large.quantity-token.token-count-8 span,
.token-large.quantity-token.token-count-9 span,
.token-large.quantity-token.token-count-10 span,
.token-medium.quantity-token.token-count-7 span,
.token-medium.quantity-token.token-count-8 span,
.token-medium.quantity-token.token-count-9 span,
.token-medium.quantity-token.token-count-10 span {
  font-size: clamp(10px, 1.35vw, 15px);
}

.token-inline {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.token-inline span {
  font-size: 24px;
}

.sock-red-stripe {
  background:
    repeating-linear-gradient(135deg, rgba(255, 107, 107, 0.86) 0 8px, rgba(255, 214, 214, 0.95) 8px 16px);
  border-color: rgba(255, 214, 214, 0.5);
}

.sock-blue-dot {
  background:
    radial-gradient(circle at 25% 25%, rgba(255,255,255,0.92) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 65%, rgba(255,255,255,0.9) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 22%, rgba(255,255,255,0.86) 0 8%, transparent 9%),
    #4b82ff;
  border-color: rgba(182, 208, 255, 0.56);
}

.sock-yellow-star {
  background:
    linear-gradient(180deg, rgba(255, 210, 92, 0.94), rgba(241, 173, 42, 0.94));
  border-color: rgba(255, 228, 147, 0.56);
}

.sock-green-check {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.34) 0 8%, transparent 8% 46%, rgba(255,255,255,0.34) 46% 54%, transparent 54% 92%, rgba(255,255,255,0.34) 92% 100%),
    linear-gradient(0deg, rgba(255,255,255,0.24) 0 8%, transparent 8% 46%, rgba(255,255,255,0.24) 46% 54%, transparent 54% 92%, rgba(255,255,255,0.24) 92% 100%),
    #42a46c;
  border-color: rgba(191, 241, 207, 0.45);
}

.pair-demo-stack {
  gap: 16px;
}

.pair-demo-row {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pair-demo-row.active {
  border-color: rgba(255, 179, 71, 0.34);
  background: rgba(255, 179, 71, 0.08);
}

.pair-demo-target,
.pair-find-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pair-demo-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pair-demo-option {
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.number-pair-option {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  border-color: rgba(91, 213, 255, 0.16);
}

.pair-demo-option.match {
  border-color: rgba(147, 215, 68, 0.4);
  background: rgba(147, 215, 68, 0.12);
}

.number-find-target {
  padding: 12px 18px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(91, 213, 255, 0.14);
}

.pair-demo-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.science-leaf {
  background: linear-gradient(180deg, rgba(123, 214, 124, 0.94), rgba(58, 158, 93, 0.94));
  border-color: rgba(192, 244, 194, 0.5);
}

.science-stone {
  background: linear-gradient(180deg, rgba(124, 136, 158, 0.94), rgba(78, 88, 110, 0.94));
  border-color: rgba(202, 210, 225, 0.34);
}

.science-wood {
  background: linear-gradient(180deg, rgba(210, 161, 93, 0.94), rgba(164, 108, 46, 0.94));
  border-color: rgba(245, 218, 179, 0.38);
}

.science-key {
  background: linear-gradient(180deg, rgba(255, 225, 124, 0.94), rgba(221, 169, 53, 0.94));
  border-color: rgba(255, 236, 170, 0.48);
}

.science-sponge {
  background: linear-gradient(180deg, rgba(255, 210, 88, 0.94), rgba(245, 176, 44, 0.94));
  border-color: rgba(255, 234, 169, 0.52);
}

.science-spoon {
  background: linear-gradient(180deg, rgba(210, 219, 232, 0.94), rgba(139, 151, 170, 0.94));
  border-color: rgba(235, 242, 255, 0.5);
}

.measure-tall {
  background: linear-gradient(180deg, rgba(123, 216, 255, 0.94), rgba(78, 205, 196, 0.94));
  border-color: rgba(190, 241, 255, 0.48);
}

.measure-medium {
  background: linear-gradient(180deg, rgba(255, 214, 130, 0.94), rgba(255, 179, 71, 0.94));
  border-color: rgba(255, 233, 184, 0.42);
}

.measure-short,
.measure-bird,
.measure-mushroom {
  background: linear-gradient(180deg, rgba(255, 192, 203, 0.94), rgba(255, 141, 161, 0.94));
  border-color: rgba(255, 225, 232, 0.42);
}

.measure-tree {
  background: linear-gradient(180deg, rgba(147, 215, 68, 0.94), rgba(67, 151, 92, 0.94));
  border-color: rgba(218, 255, 186, 0.42);
}

.science-demo-stack {
  gap: 16px;
}

.science-demo-row {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 40px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.science-demo-row.active {
  border-color: rgba(78, 205, 196, 0.38);
  background: rgba(78, 205, 196, 0.08);
}

.science-demo-item,
.science-judge-target {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.science-demo-arrow {
  text-align: center;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.52);
}

.science-result {
  min-height: 84px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
}

.science-result.float {
  background: linear-gradient(180deg, rgba(92, 193, 255, 0.16), rgba(57, 132, 232, 0.12));
  border-color: rgba(115, 198, 255, 0.34);
}

.science-result.sink {
  background: linear-gradient(180deg, rgba(104, 122, 166, 0.18), rgba(57, 68, 95, 0.12));
  border-color: rgba(149, 165, 207, 0.26);
}

.science-result-badge {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.science-result-water {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.64);
}

.science-choice-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.science-choice-btn {
  min-width: 132px;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.science-choice-btn.correct {
  border-color: rgba(147, 215, 68, 0.44);
  background: rgba(147, 215, 68, 0.16);
}

.science-choice-btn.wrong {
  border-color: rgba(255, 107, 107, 0.44);
  background: rgba(255, 107, 107, 0.16);
}

.measure-demo-stack {
  display: grid;
  gap: 14px;
}

.measure-demo-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0.4;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.measure-demo-row.active {
  opacity: 1;
  border-color: rgba(255, 179, 71, 0.24);
  transform: translateY(-2px);
}

.measure-demo-compare,
.measure-compare-targets {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: end;
}

.measure-demo-item,
.measure-compare-card {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.measure-result-badge,
.measure-compare-vs {
  align-self: center;
  justify-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-2);
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.24);
}

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

.measure-choice-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 18px;
  padding: 16px 14px;
  min-height: 76px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.measure-choice-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
}

.measure-choice-btn.correct {
  border-color: rgba(147, 215, 68, 0.34);
  background: rgba(147, 215, 68, 0.16);
}

.measure-choice-btn.wrong {
  border-color: rgba(255, 107, 107, 0.38);
  background: rgba(255, 107, 107, 0.14);
}

.shape-find-card.correct {
  border-color: rgba(147, 215, 68, 0.44);
  background: rgba(147, 215, 68, 0.16);
}

.shape-find-card.wrong {
  border-color: rgba(255, 107, 107, 0.44);
  background: rgba(255, 107, 107, 0.14);
}

.shape-demo-emoji,
.shape-find-emoji {
  font-size: 46px;
  line-height: 1;
}

.shape-demo-name,
.shape-find-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
}

.practice-apple-num {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #2d1b69;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.choices {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.choice {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: "Nunito", sans-serif;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.choice.correct {
  background: rgba(147, 215, 68, 0.2);
  border-color: rgba(147, 215, 68, 0.4);
}

.choice.wrong {
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.4);
}

.match-grid {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(132px, 0.34fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
}

.match-friend {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.match-friend-visual {
  flex: 0 0 auto;
  min-width: 32px;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.match-friend > div {
  min-width: 0;
}

.match-friend-name {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.match-target-note {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.46);
  margin-top: 2px;
  line-height: 1.2;
}

.drop-zone {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.match-board {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(170px, 0.38fr);
  gap: 16px;
  align-items: end;
}

.match-tools {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(16, 10, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.train-match-board {
  width: min(820px, 100%);
  grid-template-columns: minmax(520px, 1fr) minmax(150px, 0.26fr);
  gap: 22px;
  align-items: center;
}

.train-track-grid {
  max-width: none;
  gap: 14px;
  padding: 8px 0 14px;
}

.train-match-row {
  position: relative;
  grid-template-columns: minmax(156px, 0.32fr) minmax(300px, 1fr);
  gap: 14px;
}

.train-match-row::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -9px;
  height: 6px;
  border-radius: 99px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.24) 0 16px, transparent 16px 28px),
    linear-gradient(180deg, rgba(80, 234, 225, 0.22), rgba(255, 201, 94, 0.18));
  opacity: 0.62;
  pointer-events: none;
}

.train-car-card {
  min-height: 72px;
  padding: 8px 10px;
  gap: 10px;
  border-color: rgba(255, 201, 94, 0.28);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 185, 64, 0.2), rgba(87, 207, 209, 0.12)),
    rgba(255, 255, 255, 0.07);
}

.train-car-shell {
  width: 62px;
  height: 46px;
  flex: 0 0 62px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 16px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(255, 226, 119, 0.98), rgba(255, 150, 72, 0.94));
  border: 1px solid rgba(255, 237, 177, 0.65);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.46),
    0 9px 18px rgba(49, 22, 73, 0.28);
}

.train-car-shell::before {
  content: "";
  position: absolute;
  right: -8px;
  top: 20px;
  width: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 226, 119, 0.9);
  box-shadow: 6px 0 0 rgba(255, 255, 255, 0.18);
}

.train-car-window {
  width: 34px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(180deg, rgba(139, 228, 255, 0.95), rgba(73, 112, 213, 0.94));
  color: #fffdf4;
  font-family: "Nunito", "Baloo 2", sans-serif;
  font-weight: 1000;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(28, 24, 72, 0.38);
}

.train-car-wheel {
  position: absolute;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 22%, transparent 24%),
    linear-gradient(180deg, #645a82, #251d3b);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.train-car-wheel.left {
  left: 11px;
}

.train-car-wheel.right {
  right: 11px;
}

.train-car-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.train-load-zone {
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 22px;
  border-color: rgba(255, 201, 94, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.035) 34px 36px);
  box-shadow: inset 0 0 0 1px rgba(78, 205, 196, 0.06);
}

.train-load-zone.over {
  border-color: rgba(78, 205, 196, 0.68);
  background: rgba(78, 205, 196, 0.1);
}

.train-yard-tools {
  position: static;
  align-self: stretch;
  justify-content: center;
  border-radius: 28px;
  padding: 16px 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 201, 94, 0.12), transparent 48%),
    rgba(13, 8, 39, 0.78);
}

.drag-apple.train-energy-star {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background:
    radial-gradient(circle, rgba(255, 236, 158, 0.22), transparent 60%),
    rgba(255, 201, 94, 0.12);
  border-color: rgba(255, 224, 130, 0.32);
  box-shadow: 0 10px 20px rgba(255, 179, 71, 0.12);
}

.sort-scene-stack {
  max-width: 780px;
  gap: 12px;
}

.sort-board {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: center;
}

.sort-target-grid {
  max-width: none;
}

.sort-target-grid .match-row {
  grid-template-columns: minmax(138px, 0.38fr) minmax(210px, 1fr);
}

.sort-target-grid .match-friend {
  min-height: 64px;
}

.sort-target-grid .drop-zone {
  min-height: 64px;
}

.sort-board-many-targets {
  width: min(960px, 100%);
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.sort-board-many-targets .sort-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.sort-board-many-targets .sort-target-grid .match-row {
  grid-template-columns: minmax(118px, 0.42fr) minmax(150px, 1fr);
}

.sort-board-many-targets .sort-target-grid .match-friend,
.sort-board-many-targets .sort-target-grid .drop-zone {
  min-height: 58px;
}

.sort-board-many-targets .sort-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(196px, auto);
  align-items: center;
  gap: 14px;
}

.sort-board-many-targets .sort-pool {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  justify-content: stretch;
}

.sort-tools {
  align-self: center;
  max-height: none;
}

.sort-pool {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  justify-content: center;
  max-height: none;
  overflow: visible;
  padding: 2px;
  gap: 10px;
}

.sort-pool:has(.sort-drag-label) {
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  align-items: stretch;
}

.sort-drag-item {
  width: auto;
  height: auto;
  min-width: 72px;
  min-height: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 18px;
}

.sort-drag-item .item-token {
  flex: 0 0 auto;
}

.sort-item-content {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
}

.sort-drag-label {
  display: block;
  max-width: 148px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.22;
  text-align: center;
}

.sort-drag-item:has(.sort-drag-label) {
  padding: 10px;
  min-height: 108px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.drop-zone .sort-item-content {
  grid-template-columns: auto minmax(0, 1fr);
  justify-items: start;
  align-items: center;
  gap: 6px;
}

.drop-zone .sort-drag-label {
  max-width: 128px;
  text-align: left;
  font-size: 10px;
}

.sort-actions {
  justify-content: stretch;
}

.sort-actions .cta {
  flex: 1 1 0;
  padding-inline: 12px;
}

.sequence-scene-stack {
  max-width: 900px;
  gap: 14px;
}

.sequence-board {
  width: min(940px, 100%);
  padding: 20px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% 16%, rgba(78, 205, 196, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.sequence-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.sequence-slot-card {
  position: relative;
  min-height: 170px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 201, 94, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(29, 19, 70, 0.78);
}

.sequence-slot-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 201, 94, 0.14);
  color: #ffe2a3;
  font-weight: 900;
  font-size: 13px;
}

.sequence-slot-drop {
  min-height: 112px;
  margin-top: 12px;
  border-radius: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.22);
  background:
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(255, 255, 255, 0.035) 32px 34px),
    rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sequence-slot-drop.over {
  border-color: rgba(78, 205, 196, 0.72);
  background: rgba(78, 205, 196, 0.1);
}

.sequence-slot-placeholder {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.sequence-pool {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sequence-drag-item {
  width: auto;
  height: auto;
  min-height: 104px;
  padding: 10px;
  border-radius: 22px;
  flex-direction: column;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(47, 35, 95, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}

.sequence-drag-item .item-token {
  flex: 0 0 auto;
}

.sequence-item-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sequence-actions {
  justify-content: center;
  margin-top: 14px;
}

.drop-zone.over {
  border-color: rgba(78, 205, 196, 0.54);
  background: rgba(78, 205, 196, 0.08);
}

.apple-pool {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 0;
}

.drag-apple {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.drag-apple.used {
  opacity: 0.28;
  pointer-events: none;
}

.celebration-bear {
  font-size: 82px;
  line-height: 1;
}

.celebration-title {
  font-family: "Noto Serif SC", serif;
  font-size: 30px;
  text-align: center;
  line-height: 1.4;
}

.celebration-sub {
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  line-height: 1.7;
}

.achievement-card {
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 14px;
}

.achievement-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 179, 71, 0.18);
  font-size: 34px;
}

.achievement-name {
  font-family: "Nunito", sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.achievement-desc {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  margin-top: 4px;
}

.achievement-stars {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.achievement-stars span {
  font-size: 20px;
}

.parent-zone {
  position: absolute;
  right: 16px;
  top: 72px;
  z-index: 7;
  width: min(320px, calc(100% - 32px));
  height: min(560px, calc(100% - 88px));
  background: #070813;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  opacity: 1;
  transform: translateX(0) scaleY(1);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.26s ease;
}

.engine-shell.parent-collapsed .parent-zone {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 20px)) scaleY(0.96);
}

.engine-shell.parent-collapsed .parent-sheet-scrim {
  display: none !important;
}

.parent-topbar {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.parent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-2);
  font-family: "Nunito", sans-serif;
  font-weight: 900;
}

.parent-toggle {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.parent-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.parent-now,
.parent-card,
.knowledge-card,
.life-card {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--panel-2);
}

.parent-now {
  padding: 10px 12px;
  color: rgba(78, 205, 196, 0.92);
  font-size: 12px;
}

.parent-card,
.knowledge-card,
.life-card {
  padding: 12px;
}

.parent-card.hidden,
.life-card.hidden {
  display: none;
}

.parent-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--text-3);
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.parent-say {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

.parent-why,
.parent-avoid,
.knowledge-copy,
.life-copy {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.56);
  margin-top: 8px;
}

.parent-bottom {
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.parent-bottom .progress-labels {
  margin-bottom: 8px;
}

.parent-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.parent-action,
.parent-action-btn {
  flex: 1;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.parent-action-btn:hover {
  color: var(--text);
  border-color: rgba(125, 231, 181, 0.35);
  background: rgba(125, 231, 181, 0.08);
}

.scene-audio-card {
  margin-top: 14px;
  border: 1px solid rgba(125, 231, 181, .25);
  border-radius: 20px;
  background: rgba(125, 231, 181, .08);
  padding: 14px;
}

.scene-audio-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.scene-audio-btn {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  padding: 10px 12px;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.scene-audio-btn:hover {
  background: rgba(125, 231, 181, .14);
  border-color: rgba(125, 231, 181, .45);
  transform: translateY(-1px);
}

.scene-audio-empty {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.engine-empty {
  padding: 28px;
  min-height: 420px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.engine-empty h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 28px;
}

.engine-empty p {
  color: var(--text-2);
  line-height: 1.8;
  max-width: 560px;
}

.template-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.template-tag {
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
}

.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(12px);
}

.app-modal {
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(125, 231, 181, 0.24);
  background:
    radial-gradient(circle at top left, rgba(78, 205, 196, 0.16), transparent 34%),
    rgba(18, 28, 46, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.app-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.app-modal-close {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 14px;
  cursor: pointer;
}

.app-modal-body {
  overflow-y: auto;
  padding: 20px 22px 24px;
}

.app-modal-intro {
  margin: 0 0 16px;
  color: var(--text-2);
  line-height: 1.7;
}

.lesson-script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.lesson-script-card,
.report-advice,
.report-saved,
.report-favorite {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.lesson-script-card h3,
.report-advice h3,
.report-saved h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.lesson-script-kicker {
  margin-bottom: 6px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-script-block {
  margin-top: 12px;
}

.lesson-script-block span,
.report-summary-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 800;
}

.lesson-script-block p,
.report-advice p,
.report-favorite p,
.report-empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.lesson-script-block.muted p {
  color: rgba(255, 255, 255, 0.58);
}

.report-loading {
  padding: 32px;
  text-align: center;
  color: var(--text-2);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.report-summary-grid div {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.report-summary-grid strong {
  color: var(--text);
}

.report-advice,
.report-saved {
  margin-top: 14px;
}

.report-favorite + .report-favorite {
  margin-top: 10px;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(10, 8, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  z-index: 8;
}

.floating-word,
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 100;
}

.floating-word {
  font-family: "Nunito", sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-2);
  transform: translate(-50%, 0);
  animation: float-word 0.85s ease forwards;
}

@keyframes float-word {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -24px);
  }
}

.particle {
  animation: particle-fly 1s ease forwards;
}

@keyframes particle-fly {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(1.2);
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .overview-panel {
    grid-template-columns: 1fr;
  }

  .learning-hub {
    grid-template-columns: 1fr;
  }

  .workbench-columns,
  .coordination-controls,
  .audio-workbench-grid,
  .audio-kind-grid,
  .selected-audio-grid,
  .selected-asset-meta-row {
    grid-template-columns: 1fr;
  }

  .lesson-value-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .lesson-snapshot-card {
    grid-template-columns: 1fr;
  }

  .coordination-reset,
  .hub-btn {
    width: 100%;
  }

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

  .child-manager-row,
  .account-report-row,
  .account-order-row,
  .admin-entitlement-row {
    align-items: stretch;
    flex-direction: column;
  }

  .child-progress-mini,
  .account-card-actions,
  .account-favorite-meta,
  .account-order-meta,
  .admin-entitlement-controls {
    justify-content: flex-start;
  }

  .engine-shell {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .app-root {
    min-height: 640px;
  }

  .coordination-panel {
    order: 7;
  }

  .resource-workbench {
    order: 8;
  }

  .audio-workbench {
    order: 9;
  }

  .visual-workbench {
    order: 10;
  }

  .motion-workbench {
    order: 11;
  }

  .blueprint-section {
    order: 12;
  }

  .lesson-shell {
    order: 5;
  }

  .engine-shell {
    grid-template-columns: 1fr;
  }

  .engine-shell.compact-lesson {
    position: relative;
  }

  .engine-shell.compact-lesson .child-zone {
    min-height: 560px;
  }

  .parent-zone {
    min-height: auto;
  }

  .engine-shell.compact-lesson .parent-sheet-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 24;
    border: 0;
    background: rgba(3, 7, 15, 0.56);
    backdrop-filter: blur(2px);
  }

  .engine-shell.compact-lesson .parent-zone {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 25;
    min-height: 0;
    max-height: min(72vh, 640px);
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.42);
    overflow: hidden;
  }

  .engine-shell.compact-lesson .parent-topbar {
    padding-top: 16px;
  }

  .engine-shell.compact-lesson .parent-scroll {
    padding-bottom: 22px;
  }

  .child-zone {
    min-height: 500px;
  }

  .class-topbar {
    gap: 10px;
    padding: 12px 14px;
  }

  .class-brand {
    font-size: 14px;
  }

  .class-title {
    flex-basis: 100%;
    order: 3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.45;
  }

  .progress-wrap {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
  }

  .star-counter {
    margin-left: auto;
  }

  .scene {
    padding: 14px 16px;
  }

  .scene-dots {
    gap: 6px;
    padding: 0 14px 12px;
  }

  .scene-dot {
    width: 24px;
  }

  .scene-dot.active {
    width: 38px;
  }

  .compact-scene-strip {
    display: flex;
  }

  .lesson-mobile-bar {
    display: grid;
  }
}

@media (max-width: 640px) {
  .topbar,
  .main,
  .sidebar {
    padding: 16px;
  }

  .lesson-shell {
    padding: 12px;
  }

  .app-root {
    min-height: 560px;
  }

  .mobile-intro-card {
    display: block;
  }

  .desktop-intro-card,
  .desktop-capability-card {
    display: none;
  }

  .overview-panel {
    padding: 16px;
    gap: 14px;
  }

  .overview-copy h2 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .overview-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  .lesson-snapshot-card {
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .snapshot-story {
    grid-template-columns: 1fr;
  }

  .overview-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .stat-num {
    font-size: 26px;
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 10px;
    line-height: 1.4;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
  }

  .top-home-btn,
  .top-map-link,
  .module-menu,
  .auth-widget {
    flex: 1 1 0;
  }

  .auth-widget {
    justify-content: space-between;
    border-radius: 18px;
  }

  .map-panel {
    min-height: auto;
    padding: 14px;
  }

  .map-frame {
    height: calc(100vh - 220px);
    min-height: 560px;
  }

  .module-menu-summary {
    justify-content: space-between;
    width: 100%;
  }

  .module-menu-panel {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 32px));
  }

  .lesson-nav-card {
    padding: 12px;
  }

  .lesson-nav-top {
    margin-bottom: 6px;
  }

  .lesson-nav-title {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .lesson-nav-meta,
  .lesson-asset-mini,
  .lesson-progress {
    display: none;
  }

  .lesson-mobile-summary {
    display: block;
  }

  .lesson-asset-row {
    margin-top: 8px;
  }

  .class-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .class-flow-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .class-title {
    display: none;
  }

  .progress-labels {
    font-size: 9px;
  }

  .progress-bar {
    height: 5px;
  }

  .star-counter {
    padding: 3px 8px;
    font-size: 12px;
  }

  .compact-scene-strip {
    flex-direction: column;
    padding: 10px 12px 0;
    gap: 6px;
  }

  .compact-scene-copy {
    font-size: 11px;
  }

  .lesson-mobile-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 12px 12px;
  }

  .lesson-mobile-btn {
    padding: 9px 8px;
    font-size: 11px;
  }

  .scene {
    padding: 12px;
  }

  .scene-dots {
    padding: 0 12px 10px;
  }

  .lesson-shell-head,
  .lesson-shell-actions,
  .selected-lesson-head,
  .audio-card-top,
  .section-toggle-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-wrap {
    width: 100%;
    max-width: none;
  }

  .match-row {
    grid-template-columns: 1fr;
  }

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

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

  .sort-target-grid .match-row {
    grid-template-columns: 1fr;
  }

  .sort-board-many-targets .sort-target-grid,
  .sort-board-many-targets .sort-tools {
    grid-template-columns: 1fr;
  }

  .match-tools {
    position: static;
  }

  .sort-tools {
    max-height: none;
  }

  .sort-pool {
    grid-template-columns: repeat(auto-fit, minmax(64px, 72px));
    justify-content: center;
    max-height: none;
    overflow: visible;
  }

  .sort-pool:has(.sort-drag-label) {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  }

  .sequence-board {
    padding: 14px;
  }

  .sequence-track {
    grid-template-columns: 1fr;
  }

  .sequence-pool {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }

  .achievement-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .shape-demo-grid,
  .shape-find-grid {
    grid-template-columns: 1fr;
  }

  .pair-demo-row {
    grid-template-columns: 1fr;
  }

  .science-demo-row {
    grid-template-columns: 1fr;
  }

  .measure-demo-compare,
  .measure-compare-targets,
  .measure-choice-grid {
    grid-template-columns: 1fr;
  }
}
