﻿/* Little Dreamer AI Smart Study 화면 스타일을 정의하는 파일 */
:root {
  --ink: #172333;
  --muted: #5f6d7e;
  --line: #dbe5ef;
  --page: #f7fbff;
  --surface: #ffffff;
  --teal: #2ca79a;
  --teal-dark: #17766f;
  --coral: #ed7356;
  --indigo: #5e63c7;
  --amber: #f3b33d;
  --mint: #dff5ee;
  --blue-soft: #e7f0ff;
  --coral-soft: #fff0eb;
  --shadow: 0 18px 50px rgba(34, 55, 86, 0.12);
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

/* 2026-06-21 글로벌 인기 학습 앱형 플레이 홈 개편 */
:root {
  --play-purple: #7657ff;
  --play-blue: #3ba7ff;
  --play-green: #1fc7a6;
  --play-yellow: #ffd45a;
  --play-pink: #ff8db4;
  --play-ink: #12182c;
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 212, 90, 0.48), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(118, 87, 255, 0.26), transparent 28%),
    radial-gradient(circle at 50% 42%, rgba(59, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #eaf8ff 46%, #fff9f1 100%);
}

.workspace {
  gap: 16px;
}

.topbar {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 56px rgba(56, 77, 118, 0.13);
}

.control-panel {
  min-height: 560px;
  align-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 212, 90, 0.56), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255, 141, 180, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(232, 249, 255, 0.72));
}

.control-panel h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}

.control-panel h1 span {
  display: block;
}

.intro {
  max-width: 560px;
  color: #405571;
  font-size: 22px;
}

.launch-metrics span {
  min-height: 48px;
  border-radius: 8px;
  padding-inline: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--play-ink);
  font-size: 15px;
}

.hero-mascot-team {
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  max-width: 900px;
  min-height: 190px;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(31, 199, 166, 0.16);
}

.mascot-orbit {
  min-height: 170px;
  background:
    radial-gradient(circle at 26% 26%, rgba(255, 255, 255, 0.94), transparent 24%),
    linear-gradient(135deg, #fff, #eafcff);
}

.mascot-copy strong {
  color: var(--play-ink);
  font-size: 24px;
  line-height: 1.2;
}

.mascot-copy span {
  font-size: 17px;
}

.learner-strip,
.emotion-check {
  border: 0;
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(56, 77, 118, 0.11);
}

.emotion-check {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 234, 0.9));
}

.classroom-toolbar {
  position: sticky;
  top: 96px;
  z-index: 15;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 48px rgba(56, 77, 118, 0.12);
  backdrop-filter: blur(22px);
}

.subject-tabs {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.subject-tab,
.role-tab,
.ghost-button,
.segment,
.emotion {
  border-radius: 8px;
}

.mission-tab {
  background: linear-gradient(135deg, #ff7a1a, #ffb13d);
  color: #fff;
}

.learning-tools {
  grid-template-columns: minmax(0, 1fr) 190px auto auto;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.learning-tools .field span {
  display: none;
}

.learning-tools input,
.learning-tools select {
  min-height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 850;
}

.mission-ribbon {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) 170px;
  min-height: 270px;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 90, 0.38), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(218, 250, 246, 0.78));
  box-shadow: 0 28px 74px rgba(31, 199, 166, 0.16);
}

.mission-ribbon-visual {
  min-height: 210px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 42px rgba(56, 77, 118, 0.1);
}

.mission-ribbon-info strong {
  display: block;
  max-width: 620px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.mission-ribbon-info p {
  max-width: 600px;
  color: #405571;
  font-size: 18px;
}

.mission-step-track {
  max-width: 640px;
}

.mission-step-track span {
  min-height: 42px;
  align-items: center;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.mission-start-btn {
  min-height: 76px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--play-purple), var(--play-blue));
  font-size: 20px;
  box-shadow: 0 18px 34px rgba(118, 87, 255, 0.28);
}

.learning-vault {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(56, 77, 118, 0.08);
}

.learning-vault summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0 18px;
  color: #263244;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.learning-vault summary::-webkit-details-marker {
  display: none;
}

.learning-vault summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--play-ink);
  color: #fff;
}

.learning-vault[open] summary::after {
  content: "−";
}

.learning-vault > section {
  margin-top: 12px;
}

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

.coach-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  order: -1;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 240, 255, 0.72));
}

.coach-panel h2,
.coach-panel > p,
.coach-panel .micro-routine {
  grid-column: 2;
}

.coach-character {
  grid-row: 1 / span 4;
  width: 100%;
  min-height: 210px;
}

.activity-stage {
  grid-column: 1 / -1;
}

.mission-board {
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.mission-board .section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
}

.activity-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
}

.activity-card {
  min-height: 310px;
  scroll-snap-align: start;
  border-radius: 8px;
  padding: 18px;
}

.activity-card h3 {
  font-size: 26px;
  line-height: 1.15;
}

.activity-card .activity-meta,
.activity-card .activity-routine-track {
  display: none;
}

.activity-card:hover .activity-meta,
.activity-card:focus-within .activity-meta,
.activity-card:hover .activity-routine-track,
.activity-card:focus-within .activity-routine-track {
  display: flex;
}

.stage-card,
.stage-empty {
  border: 0;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 64px rgba(56, 77, 118, 0.12);
}

.metacognition {
  border: 0;
  background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 1050px) {
  .control-panel,
  .mission-ribbon,
  .coach-panel {
    grid-template-columns: 1fr;
  }

  .coach-panel h2,
  .coach-panel > p,
  .coach-panel .micro-routine,
  .coach-character {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 720px) {
  .workspace {
    padding-inline: 12px;
  }

  .control-panel {
    min-height: auto;
    padding: 18px;
  }

  .control-panel h1 {
    font-size: 44px;
  }

  .intro {
    max-width: 18ch;
    font-size: 18px;
    line-height: 1.68;
    overflow-wrap: anywhere;
  }

  .mascot-copy strong,
  .mascot-copy span {
    max-width: 18ch;
    overflow-wrap: anywhere;
  }

  .hero-mascot-team {
    min-height: auto;
  }

  .classroom-toolbar {
    top: 0;
  }

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

  .mission-ribbon {
    min-height: auto;
    padding: 16px;
  }

  .mission-ribbon-info strong {
    font-size: 34px;
  }

  .mission-start-btn {
    min-height: 58px;
    width: 100%;
  }

  .activity-list {
    grid-auto-columns: minmax(260px, 88vw);
  }

  .coach-panel {
    padding: 14px;
  }

  .coach-character {
    min-height: 170px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(44, 167, 154, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(94, 99, 199, 0.07) 1px, transparent 1px),
    var(--page);
  background-size: 48px 48px;
}

button,
input {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(44, 167, 154, 0.35);
  outline-offset: 3px;
}

.app-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(219, 229, 239, 0.9);
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid #172333;
  border-radius: 8px;
  background: #fff8df;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.role-tabs,
.subject-tabs,
.segmented,
.emotion-grid,
.reflection-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-tab,
.subject-tab,
.segment,
.emotion,
.reflection,
.ghost-button,
.primary-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.role-tab,
.subject-tab,
.segment,
.emotion,
.reflection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.role-tab:hover,
.subject-tab:hover,
.segment:hover,
.emotion:hover,
.reflection:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.is-active.role-tab,
.is-active.subject-tab,
.is-active.segment,
.is-active.emotion,
.is-active.reflection {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.workspace {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 3vw, 36px);
}

.control-panel,
.mission-board,
.coach-panel,
.metacognition,
.teacher-view,
.parent-view {
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  padding: clamp(18px, 3vw, 30px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 2.4vw, 32px);
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.intro,
.emotion-check p,
.coach-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.learner-strip,
.emotion-check {
  display: grid;
  gap: 14px;
  align-content: start;
}

.field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}

fieldset.segmented {
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.segmented legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.emotion-check {
  padding: 16px;
  border: 1px solid #f0d8ce;
  border-radius: 8px;
  background: var(--coral-soft);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.child-view {
  display: none;
}

.child-view.is-active {
  display: grid;
  gap: 18px;
}

.classroom-toolbar,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.classroom-toolbar {
  padding: 4px 0;
}

.ghost-button,
.primary-button {
  padding: 10px 14px;
}

.ghost-button {
  background: #fff;
}

.primary-button {
  border-color: transparent;
  background: var(--teal);
  color: #fff;
}

.learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
}

.learning-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mission-board,
.coach-panel,
.metacognition,
.mission-ribbon,
.daily-mission,
.project-panel,
.skill-map-panel,
.home-mission,
.week-panel,
.observation-panel,
.admin-panel,
.privacy-panel,
.teacher-view,
.parent-view {
  padding: clamp(16px, 2.4vw, 26px);
}

.mission-ribbon,
.daily-mission,
.project-panel,
.skill-map-panel,
.home-mission,
.week-panel,
.observation-panel,
.admin-panel,
.privacy-panel {
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.mission-ribbon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(44, 167, 154, 0.28);
  background: #eef8f5;
}

.mission-ribbon strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.mission-ribbon p {
  margin: 0;
  color: var(--teal-dark);
  line-height: 1.55;
}

.mission-ribbon button {
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.daily-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(243, 179, 61, 0.42);
  background: #fff8df;
}

.daily-mission strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.daily-mission p {
  margin: 0;
  color: #6a5018;
  line-height: 1.55;
}

.project-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  margin-top: 16px;
}

.project-card,
.sequence-card,
.observation-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.project-card p,
.sequence-card p,
.observation-card p {
  color: var(--muted);
  line-height: 1.55;
}

.project-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.project-card button {
  width: 100%;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.sequence-list,
.observation-grid {
  display: grid;
  gap: 10px;
}

.sequence-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sequence-chip {
  border-radius: 8px;
  padding: 10px;
  background: var(--blue-soft);
  color: #315175;
  font-size: 13px;
  font-weight: 900;
}

.observation-panel {
  margin-top: 18px;
  box-shadow: none;
}

.observation-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 14px;
}

.observation-card strong {
  display: block;
  margin-bottom: 6px;
}

.observation-card span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
}

.commercial-panel,
.learner-note-panel,
.yearly-panel,
.smoke-panel {
  margin-top: 18px;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.92);
}

.yearly-mission,
.smoke-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.commercial-planner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.plan-card,
.yearly-card,
.smoke-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.plan-card span,
.yearly-card span,
.smoke-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.plan-card strong,
.yearly-card strong,
.smoke-card strong {
  display: block;
  margin-bottom: 6px;
}

.plan-card p,
.yearly-card p,
.smoke-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.week-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.week-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.week-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.week-card strong {
  display: block;
  margin-bottom: 8px;
}

.week-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-badge {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.activity-card {
  display: grid;
  gap: 12px;
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.activity-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.activity-card h3 {
  margin-bottom: 4px;
}

.activity-card p {
  color: var(--muted);
  line-height: 1.55;
}

.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.activity-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--blue-soft);
  color: #315175;
  font-size: 12px;
  font-weight: 800;
}

.activity-card button {
  width: 100%;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-weight: 900;
}

.coach-character {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef8f5;
}

.coach-character svg {
  display: block;
  width: 100%;
  height: auto;
}

.micro-routine {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.micro-routine span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: #315175;
  font-weight: 900;
}

.activity-stage {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.stage-empty,
.stage-card {
  border-radius: 8px;
  padding: 16px;
  background: #fff8df;
  color: #5f4a1a;
  line-height: 1.6;
  font-weight: 800;
}

.stage-card {
  display: grid;
  gap: 12px;
}

.stage-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

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

.choice-grid button {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.choice-grid button.is-picked {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.stage-card svg {
  width: 100%;
  height: 170px;
  border-radius: 8px;
  background: #fff;
}

.stage-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.stage-actions button {
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-weight: 900;
}

.stage-actions button:last-child {
  background: var(--teal);
}

.completion-card {
  border-color: rgba(44, 167, 154, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf8 100%);
}

.growth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-tags span {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--blue-soft);
  color: #315175;
  font-size: 13px;
  font-weight: 900;
}

.movement-break {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.movement-break strong {
  display: block;
  margin-bottom: 6px;
}

.movement-break p {
  margin: 0;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--indigo);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  width: fit-content;
}

.step-intro .stage-actions,
.step-choose .stage-actions {
  grid-template-columns: 1fr;
}

.step-choose .stage-actions {
  grid-template-columns: repeat(2, 1fr);
  transition: opacity 0.2s;
}

.teach-back {
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 14px;
  background: var(--mint);
}

.teach-back strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 14px;
}

.teach-back-prompt {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.teach-back button {
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
  width: 100%;
}

.teach-back button:disabled {
  opacity: 0.6;
  cursor: default;
}

.teacher-hint {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* 섹션 14: 쉬기 버튼 항상 같은 위치 */
.learning-tools {
  position: sticky;
  top: 66px;
  z-index: 9;
}

/* 섹션 4.1: 교실 탭 아이콘 레이아웃 */
.subject-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 섹션 3.1: 쉬기 카운트다운 링 */
.countdown-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 50%;
  border: 5px solid var(--teal);
  background: var(--mint);
}

.countdown-number {
  font-size: 34px;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
}

.countdown-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.countdown-done {
  font-size: 20px;
  font-weight: 900;
  color: var(--teal-dark);
}

.calming-card {
  background: linear-gradient(180deg, #f2fbf8 0%, #ffffff 100%);
}

/* 섹션 15: 아이 화면 글자 크기 최소 20px */
.child-view .activity-card h3 {
  font-size: clamp(20px, 2.2vw, 26px);
}

.child-view .choice-grid button {
  font-size: clamp(20px, 2vw, 24px);
}

.stage-card strong {
  font-size: clamp(20px, 2.2vw, 26px);
}

.stage-card > span:not(.step-badge):not(.countdown-done):not(.countdown-unit):not(.teacher-hint) {
  font-size: clamp(18px, 1.8vw, 22px);
}

/* 섹션 15: 색 외 구분자 — 완료 배지에 체크 기호 추가 */
.status-badge.is-done::before {
  content: "✓ ";
}

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

.metacognition {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(220px, 0.8fr) minmax(260px, 1fr) minmax(220px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.after-emotion-panel,
.meta-summary,
.d1-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.after-emotion-panel > span,
.meta-summary strong {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.emotion-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.next-try {
  min-height: 44px;
}

.meta-summary p {
  margin: 4px 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.d1-panel {
  margin-top: 14px;
}

.skill-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.skill-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.skill-node span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.skill-node strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.teacher-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 12px;
  margin-top: 16px;
}

.teacher-note {
  margin-top: 14px;
}

.teacher-note textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.import-button {
  position: relative;
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.import-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.reflection-field {
  min-width: 0;
}

.teacher-view,
.parent-view {
  min-height: 420px;
}

.stat-grid,
.parent-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stat-card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.stat-card strong,
.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.stat-card span,
.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.game-flow-panel {
  margin-top: 18px;
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 26px);
  background: #fff;
}

.game-flow-summary {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.game-flow-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.game-flow-card,
.game-event-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.game-flow-card {
  padding: 14px;
}

.game-flow-card span,
.game-event-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.game-flow-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.game-flow-card p,
.game-event-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.game-event-list {
  display: grid;
  gap: 8px;
}

.game-event-row {
  padding: 12px 14px;
}

.game-event-row strong {
  display: block;
  margin-top: 4px;
}

.empty-flow {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f7fb;
  color: #34465d;
  font-size: 13px;
}

td {
  color: var(--muted);
}

.report-box {
  margin-top: 16px;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 14px;
  background: #eef8f5;
  color: var(--teal-dark);
  line-height: 1.7;
  font-weight: 800;
}

.report-output {
  min-height: 90px;
  margin: 16px 0 0;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f3f7fb;
  color: #34465d;
  font-family: inherit;
  line-height: 1.65;
}

.home-mission {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.home-mission ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

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

.family-quick-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--card-accent, var(--teal));
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.family-quick-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.family-quick-card strong {
  display: block;
  margin-top: 8px;
}

.family-quick-card p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.family-quick-card ol {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.family-quick-card button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.family-quick-card button:disabled {
  cursor: default;
  opacity: 0.72;
}

.admin-panel,
.recommend-panel,
.roster-panel,
.consent-panel,
.privacy-panel {
  margin-top: 18px;
}

.recommend-panel,
.roster-panel,
.consent-panel {
  border: 1px solid rgba(219, 229, 239, 0.9);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 26px);
  background: rgba(255, 255, 255, 0.92);
}

.recommend-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.teacher-guide-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guide-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.guide-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.guide-card strong {
  display: block;
  margin-bottom: 6px;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.roster-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 180px) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.learner-profile-tools,
.custom-activity-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.learner-roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.learner-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  text-align: left;
}

.learner-card.is-active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.learner-card span {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  opacity: 0.78;
}

.learner-card strong {
  font-size: 20px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}

.consent-status {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.content-status {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--blue-soft);
  color: #315175;
  font-size: 12px;
  font-weight: 900;
}

.content-status.is-hidden {
  background: var(--coral-soft);
  color: #8a3727;
}

.row-button {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.row-button.danger {
  background: #b94632;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .child-view,
  .parent-view,
  .teacher-filters,
  .teacher-note,
  .portfolio-actions,
  .roster-panel,
  .admin-panel {
    display: none !important;
  }

  .teacher-view {
    display: block !important;
    box-shadow: none;
    border: 0;
  }

  .report-output {
    border: 0;
    background: #fff;
    color: #111;
  }
}

@media (max-width: 1050px) {
  .control-panel,
  .learning-grid,
  .metacognition,
  .mission-ribbon,
  .daily-mission,
  .learning-tools {
    grid-template-columns: 1fr;
  }

  .activity-list,
  .family-quick-play-grid,
  .game-flow-cards,
  .stat-grid,
  .parent-summary,
  .skill-map,
  .week-plan,
  .project-studio,
  .observation-grid,
  .commercial-planner,
  .yearly-mission,
  .smoke-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roster-tools,
  .learner-profile-tools,
  .custom-activity-tools,
  .learner-roster,
  .recommend-tools,
  .teacher-guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .classroom-toolbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .role-tabs,
  .subject-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-list,
  .family-quick-play-grid,
  .game-flow-cards,
  .stat-grid,
  .parent-summary,
  .skill-map,
  .week-plan,
  .project-studio,
  .sequence-list,
  .observation-grid,
  .commercial-planner,
  .yearly-mission,
  .smoke-checklist,
  .teacher-filters,
  .roster-tools,
  .learner-profile-tools,
  .custom-activity-tools,
  .learner-roster,
  .recommend-tools,
  .teacher-guide-cards,
  .choice-grid,
  .stage-actions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* 섹션 8.1: 활동 완료 후 감정 재선택 행 */
.after-emotion-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.after-emotion-row strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.after-emotion-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.after-emotion-inline button {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.after-emotion-inline button.is-picked {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal-dark);
}

/* 섹션 9.1: 6세반 빠른 회고 */
.reflection-quick,
.reflection-deep {
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 14px;
  background: #fffbf0;
  display: grid;
  gap: 10px;
}

.reflection-quick strong,
.reflection-deep strong {
  display: block;
  color: #7a5a00;
  font-size: 14px;
}

.reflection-row {
  display: grid;
  gap: 6px;
}

.reflection-row > span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.reflection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reflection-chip {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.reflection-chip.is-picked {
  border-color: var(--amber);
  background: #fff3c4;
  color: #7a5a00;
}

/* 섹션 9.2: 7세반 음성 회고 버튼 */
.reflection-voice-btn {
  justify-self: start;
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--indigo);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.reflection-voice-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* 섹션 3.1: 쉬기 유형 선택 그리드 */
.rest-type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rest-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 80px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.rest-type-btn:hover,
.rest-type-btn:focus-visible {
  border-color: var(--teal);
  background: var(--mint);
}

.rest-emoji {
  font-size: 28px;
  line-height: 1;
}

/* ── 8차: 교실별 진행률 ─────────────────────────── */
.subject-progress-section h3 {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 10px;
}

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

.subject-progress-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 8px;
}

.subject-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  grid-column: 1;
}

.subject-progress-pct {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
  grid-column: 2;
  grid-row: 1 / 3;
}

.subject-progress-bar-wrap {
  grid-column: 1;
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.subject-progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── 8차: school readiness 6관점 ─────────────────── */
.school-readiness-section h3 {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 20px 0 10px;
}

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

.school-readiness-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.readiness-emoji {
  font-size: 24px;
  line-height: 1;
}

.school-readiness-card strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.school-readiness-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.readiness-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--line);
  color: var(--muted);
}

.readiness-status.is-ok {
  background: #d1fae5;
  color: #065f46;
}

.readiness-status.is-partial {
  background: #fef3c7;
  color: #92400e;
}

/* ── 8차: 전인 발달 5관점 ───────────────────────── */
.holistic-dev-section h3 {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 20px 0 10px;
}

.holistic-dev-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 600px) {
  .holistic-dev-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .school-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.holistic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.holistic-emoji {
  font-size: 22px;
  line-height: 1;
}

.holistic-card strong {
  font-size: 12px;
  font-weight: 900;
  color: var(--ink);
}

.holistic-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.holistic-status {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: var(--line);
  color: var(--muted);
}

.holistic-status.is-active {
  background: #d1fae5;
  color: #065f46;
}

.holistic-status.is-start {
  background: #fef3c7;
  color: #92400e;
}

/* ── 8차: 완료 카드 홈 미션 ─────────────────────── */
.completion-home-mission {
  margin: 12px 0 4px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  background: #fffbf0;
}

.completion-home-mission .eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.completion-home-mission p:last-child {
  font-size: 14px;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

/* ── 8차: 집중 모드 (activity-running) ──────────── */
body.activity-running .toolbar,
body.activity-running .sticky-toolbar {
  opacity: 0.35;
  pointer-events: none;
}

body.activity-running .stage-card {
  box-shadow: 0 0 0 3px var(--teal);
}

body.activity-running .segmented,
body.activity-running .subject-tabs {
  opacity: 0.2;
  pointer-events: none;
}

body.activity-running .role-tabs {
  opacity: 0.1;
  pointer-events: none;
}

/* ── 17차: 활동 목표 포커스 + 안전 책임 ──────────── */
.activity-focus-goal {
  display: inline-block;
  background: var(--teal, #3ebfa5);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.safety-responsibility-note {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 8px;
  padding: 6px 10px;
  border-left: 2px solid var(--teal, #3ebfa5);
  background: rgba(62, 191, 165, 0.05);
  line-height: 1.5;
}

/* ── 16차: 누리과정 기준 표기 ─────────────────────── */
.curriculum-basis-note {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border, #e5e7eb);
  text-align: center;
}

/* ── 9차: 영어 7세반 self-reflection ──────────────── */
.english-self-reflect {
  margin: 10px 0 6px;
  padding: 10px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: #eef0ff;
}

.english-self-reflect strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #3730a3;
  margin-bottom: 8px;
}

.english-self-reflect .reflection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── 9차: 교사 관찰 — 최근 아이 회고 ─────────────── */
.meta-history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.meta-history-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}

.meta-history-date {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

/* ── 10차: 집중 시간 배지 ─────────────────────────── */
.focus-timer {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.focus-timer:empty {
  display: none;
}

/* ── 10차: 자동 쉬기 배너 ───────────────────────── */
.auto-break-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 8px 0;
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  background: #f0fdf4;
}

.auto-break-banner .auto-break-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.auto-break-banner div {
  flex: 1;
}

.auto-break-banner strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: #15803d;
}

.auto-break-banner p {
  font-size: 13px;
  color: #166534;
  margin: 2px 0 0;
}

/* ── 10차: 성장 배지 패널 ────────────────────────── */
.growth-badge-panel {
  margin: 12px 0;
}

.badge-panel-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
}

.growth-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-width: 64px;
  cursor: default;
}

.growth-badge-card:hover {
  border-color: var(--teal);
  background: #f0fdfa;
}

.badge-emoji {
  font-size: 22px;
  line-height: 1;
}

.growth-badge-card strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.growth-badge-card span:last-child {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

/* ── 10차: 학부모 오늘 성장 타임라인 ─────────────── */
.today-timeline {
  margin: 16px 0;
}

.timeline-title {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin: 0 0 8px;
}

.timeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-summary span {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--line);
  color: var(--muted);
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 36px 20px 1fr;
  gap: 0 8px;
  align-items: start;
  padding: 6px 0;
}

.timeline-time {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
  padding-top: 3px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  margin: 4px auto 0;
  position: relative;
  z-index: 1;
}

.timeline-content {
  padding-bottom: 8px;
}

.timeline-content strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}

.timeline-meta {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .auto-break-banner,
  .growth-badge-card,
  .timeline-item {
    transition: none;
    animation: none;
  }
}

/* ── 11차: 오늘의 미션 4번째 입구 탭 ──────────────── */
.mission-tab {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: #fff;
  border-color: #ea580c;
  font-weight: 900;
}

.mission-tab:hover,
.mission-tab:focus-visible {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
}

.mission-tab svg path {
  fill: #fff;
}

/* ── 11차: 추천 미션 리본 강화 ─────────────────────── */
.mission-ribbon-info {
  flex: 1;
}

.mission-ribbon-info strong {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 900;
  color: var(--ink);
  display: block;
}

.mission-ribbon-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.4;
}

.mission-sync-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 99px;
}

.mission-start-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 900;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

.mission-start-btn:hover,
.mission-start-btn:focus-visible {
  background: #178a80;
}

/* ── 11차: 학부모 개인화 성장 문장 ─────────────────── */
.personalized-growth-sentence {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-left: 4px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: #f0fdfa;
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}

/* ── 12차: 누리과정 성장 지도 진행률 바 ──────────────── */
.skill-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, #34d399 100%);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.skill-pct {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

/* ── 12차: 불안 감지 사전 체크 카드 ──────────────────── */
.step-anxiety-check {
  text-align: center;
}
.anxiety-check-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}
.anxiety-check-emoji {
  font-size: 48px;
  line-height: 1;
}
.anxiety-check-title {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 800;
  color: var(--ink);
}
.anxiety-check-desc {
  font-size: clamp(13px, 2vw, 15px);
  color: #64748b;
  max-width: 340px;
  text-align: center;
  line-height: 1.6;
}
.anxiety-check-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  text-align: left;
  counter-reset: calm-step;
}
.anxiety-check-steps li {
  counter-increment: calm-step;
  padding: 10px 14px 10px 44px;
  background: #f0fdf4;
  border-radius: 10px;
  font-size: clamp(13px, 2vw, 15px);
  color: var(--ink);
  position: relative;
  line-height: 1.45;
}
.anxiety-check-steps li::before {
  content: counter(calm-step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.anxiety-ready-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.2s;
}
.anxiety-ready-btn:hover,
.anxiety-ready-btn:focus-visible {
  background: #178a80;
}
.anxiety-skip-btn {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: clamp(13px, 2vw, 14px);
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.15s;
}
.anxiety-skip-btn:hover,
.anxiety-skip-btn:focus-visible {
  background: #f8fafc;
}

/* ── 13차: 마이크로 타이머 공통 ───────────────────────── */
.micro-timer-display {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  letter-spacing: 0.02em;
}

/* ── 13차: 몸 움직임 타이머 ──────────────────────────── */
.movement-timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.movement-timer-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: clamp(13px, 2vw, 15px);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.2s;
}
.movement-timer-btn:hover,
.movement-timer-btn:focus-visible {
  background: #178a80;
}
.movement-timer-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ── 13차: 자동 쉬기 배너 카운트다운 ────────────────── */
.auto-break-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ── 13차: 가정 미션 3분 타이머 ─────────────────────── */
.home-mission-timer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.home-mission-timer-btn {
  background: #f97316;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.2s;
}
.home-mission-timer-btn:hover,
.home-mission-timer-btn:focus-visible {
  background: #ea6c0a;
}
.home-mission-timer-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.home-timer-display {
  font-size: clamp(22px, 5vw, 30px);
}
.home-timer-guide {
  font-size: clamp(11px, 1.8vw, 13px);
  color: #64748b;
  flex-basis: 100%;
}

/* ── 14차: 접근성 skip-link ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--teal);
  color: #fff;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 0 0 10px 0;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ── 14차: 교사 메모 D1 동기화 버튼 ─────────────────── */
#learnerNoteStatus {
  cursor: pointer;
  text-decoration: underline dotted;
}
#learnerNoteStatus:hover {
  color: var(--teal);
}

/* ── 14차: 학부모 리포트 @media print ───────────────── */
@media print {
  .topbar,
  .role-tabs,
  .control-panel,
  .subject-tabs,
  .activity-panel,
  .teacher-panel,
  .admin-panel,
  .skip-link,
  button:not(.print-keep) {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 13pt;
  }
  .parent-panel {
    display: block !important;
  }
  .summary-card,
  .holistic-card,
  .school-readiness-card,
  .personalized-growth-sentence {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 12pt;
    padding: 10pt;
  }
  .parent-panel h2,
  .parent-panel h3 {
    font-size: 14pt;
    margin-bottom: 8pt;
  }
  .home-mission-timer-row {
    display: none;
  }
  a::after {
    content: none;
  }
}

/* ── 18차: 다감각 배지·지원 필요 박스·계절·주제·주간 달력 ── */
.multisense-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.multisense-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--surface, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text-muted, #6b7280);
  white-space: nowrap;
}

.support-needed-box {
  background: #fff7ed;
  border: 1.5px solid #f97316;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.support-needed-box strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #c2410c;
  margin-bottom: 4px;
}

.support-needed-box p {
  font-size: 13px;
  color: #7c2d12;
  line-height: 1.5;
  margin: 0;
}

.season-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--teal, #3ebfa5);
  color: #fff;
  font-weight: 700;
  margin-right: 4px;
}

.topic-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  color: var(--text-muted, #6b7280);
}

.week-calendar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 0;
}

.week-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.week-day-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.week-today-dot {
  display: block;
  font-size: 10px;
  color: var(--teal, #3ebfa5);
  text-align: right;
}

.week-card.is-today {
  border: 2px solid var(--teal, #3ebfa5);
  background: rgba(62, 191, 165, 0.06);
}

.week-card-home {
  background: var(--surface, #f3f4f6);
  opacity: 0.85;
}

.plan-integration-block {
  border: 2px solid var(--teal, #3ebfa5);
  background: rgba(62, 191, 165, 0.04);
}

.plan-integration-block .plan-season-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.plan-integration-list {
  margin: 8px 0;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.plan-curriculum-ref {
  font-size: 11px;
  color: var(--text-muted, #999);
  margin-top: 6px;
}

/* ── 19차: 레벨·AST/RAG 동적 학습 패널 ───────────────── */
.smart-learning-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1.5px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: #f8fbff;
}

.smart-learning-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.smart-learning-head h2 {
  margin: 2px 0 0;
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: 0;
}

.smart-learning-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #172333;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.smart-learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.smart-learning-card,
.rag-concept-card,
.level-focus-card,
.level-completion,
.wrong-review-card,
.metacognition-prompts-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.smart-learning-card span,
.rag-concept-card span,
.level-focus-card span,
.level-completion span,
.wrong-review-card span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}

.smart-learning-card strong,
.rag-concept-card strong,
.level-focus-card strong,
.level-completion strong,
.wrong-review-card strong,
.metacognition-prompts-card strong {
  display: block;
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.35;
  margin-bottom: 6px;
}

.smart-learning-card p,
.rag-concept-card p,
.level-focus-card p,
.level-completion p,
.wrong-review-card p,
.metacognition-prompts-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #42526b;
}

.smart-learning-card code,
.rag-concept-card code {
  display: inline-block;
  max-width: 100%;
  margin-top: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.level-ladder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.level-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.level-pill.is-current {
  background: var(--teal, #3ebfa5);
  color: #fff;
}

.rag-concept-card,
.level-completion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin: 10px 0;
}

.level-focus-card,
.wrong-review-card,
.metacognition-prompts-card,
.game-loop-card,
.reward-card {
  margin: 10px 0;
}

.dynamic-hint-stack {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.dynamic-hint-stack span {
  min-height: 32px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.smart-learning-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #42526b;
}

.self-directed-steps,
.reward-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.self-directed-steps span,
.reward-tag-row strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef8f5;
  color: #176b63;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}

.reward-card {
  border: 1px solid #f1c46f;
  border-radius: 10px;
  background: #fff9e8;
  padding: 12px;
}

.game-loop-card {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.reward-card > span,
.game-loop-card > span {
  display: block;
  color: var(--text-muted, #64748b);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.reward-card p {
  margin: 8px 0 0;
  color: #6b4e16;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .smart-learning-panel {
    padding: 14px;
  }

  .smart-learning-head,
  .rag-concept-card,
  .level-completion {
    grid-template-columns: 1fr;
    display: grid;
  }

  .smart-learning-badge {
    justify-self: start;
  }
}

/* 2026 에듀테크 앱형 전면 디자인 개편 */
:root {
  --page: #f4f8fb;
  --ink: #172333;
  --muted: #617184;
  --line: #d9e4ee;
  --surface: #ffffff;
  --surface-strong: #fbfdff;
  --shadow: 0 16px 44px rgba(37, 52, 74, 0.12);
  --shadow-soft: 0 10px 28px rgba(37, 52, 74, 0.08);
}

body {
  background:
    linear-gradient(90deg, rgba(23, 35, 51, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 35, 51, 0.035) 1px, transparent 1px),
    var(--page);
  background-size: 36px 36px;
}

h1 {
  font-size: 48px;
  letter-spacing: 0;
}

h2 {
  font-size: 28px;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.app-shell {
  width: min(1480px, 100%);
}

.topbar {
  padding: 12px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(217, 228, 238, 0.95);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(23, 35, 51, 0.06);
}

.brand-mark {
  border: 0;
  background: #172333;
  color: #fff;
  box-shadow: inset 0 -5px 0 rgba(255, 255, 255, 0.12);
}

.role-tabs,
.subject-tabs {
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.role-tab,
.subject-tab,
.segment,
.emotion,
.reflection,
.ghost-button,
.primary-button {
  border-radius: 8px;
  box-shadow: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.role-tab:hover,
.subject-tab:hover,
.segment:hover,
.emotion:hover,
.reflection:hover,
.ghost-button:hover,
.primary-button:hover,
.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.workspace {
  gap: 22px;
  padding: clamp(18px, 3vw, 44px);
}

.control-panel {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  border: 0;
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(44, 167, 154, 0.15), transparent 44%),
    linear-gradient(315deg, rgba(237, 115, 86, 0.12), transparent 42%),
    #fff;
  box-shadow: var(--shadow);
}

.control-panel::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 280px;
  height: 86px;
  border: 2px solid rgba(23, 35, 51, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 28px, rgba(23, 35, 51, 0.06) 28px 30px, transparent 30px 58px),
    linear-gradient(0deg, transparent 0 28px, rgba(23, 35, 51, 0.06) 28px 30px, transparent 30px 58px);
  pointer-events: none;
}

.intro {
  max-width: 720px;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.launch-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.launch-metrics span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(23, 35, 51, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #34465d;
  font-weight: 900;
}

.learner-console {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.learner-strip,
.emotion-check {
  border: 1px solid rgba(217, 228, 238, 0.9);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.emotion-check {
  background: #fff7f2;
}

.field input,
.field select {
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.learning-tools,
.mission-ribbon,
.daily-mission,
.project-panel,
.skill-map-panel,
.home-mission,
.week-panel,
.observation-panel,
.admin-panel,
.privacy-panel,
.teacher-view,
.parent-view,
.commercial-panel,
.learner-note-panel,
.yearly-panel,
.smoke-panel {
  border: 1px solid rgba(217, 228, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.learning-tools {
  top: 76px;
}

.mission-ribbon {
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 18px;
  border-color: rgba(44, 167, 154, 0.32);
  background:
    linear-gradient(90deg, rgba(223, 245, 238, 0.95), rgba(255, 255, 255, 0.96));
}

.mission-ribbon-visual {
  display: grid;
  min-height: 132px;
  place-items: center;
  color: var(--subject-color, var(--teal));
  border: 1px solid rgba(44, 167, 154, 0.2);
  border-radius: 8px;
  background: #fff;
}

.mission-ribbon-visual svg {
  width: 100%;
  height: auto;
}

.mission-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.mission-step-track,
.activity-routine-track {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mission-step-track span,
.activity-routine-track span {
  border: 1px solid rgba(49, 81, 117, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #315175;
  font-size: 12px;
  font-weight: 900;
}

.mission-start-btn,
.activity-card button,
.stage-actions button,
.primary-button {
  background: #172333;
  color: #fff;
}

.learning-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: start;
}

.mission-board,
.coach-panel,
.metacognition {
  border: 1px solid rgba(217, 228, 238, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.activity-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid rgba(217, 228, 238, 0.96);
  border-top: 4px solid var(--subject-color, var(--teal));
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 52, 74, 0.07);
}

.activity-card header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
}

.activity-card h3 {
  font-size: 22px;
}

.activity-card p {
  margin-bottom: 0;
}

.activity-mini-svg {
  width: 64px;
  height: 64px;
}

.activity-card .status-badge,
.activity-meta span {
  background: #f7f9fc;
  color: #34465d;
}

.coach-character {
  border-color: rgba(44, 167, 154, 0.18);
  background: #f2fbf8;
}

.micro-routine {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.micro-routine span {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  background: #f7f9fc;
  color: #34465d;
}

.micro-routine span::before {
  content: "";
  position: absolute;
  inset: auto 12px 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0.32);
  transform-origin: left;
  animation: routineFill 2.8s ease-in-out infinite;
}

.stage-empty,
.stage-card {
  border: 1px solid rgba(217, 228, 238, 0.9);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stage-card {
  gap: 14px;
}

.stage-card svg.learning-scene-svg,
.stage-card svg {
  height: 210px;
  border: 1px solid rgba(217, 228, 238, 0.92);
  border-radius: 8px;
  background: #f8fbfd;
}

.choice-grid button {
  min-height: 74px;
  border: 2px solid rgba(217, 228, 238, 0.96);
  background: #fff;
  box-shadow: 0 8px 18px rgba(37, 52, 74, 0.07);
}

.choice-grid button:hover {
  border-color: var(--teal);
}

.choice-grid button.is-picked {
  background: #172333;
}

.rag-concept-card,
.level-focus-card,
.game-loop-card,
.metacognition-prompts-card,
.dynamic-hint-stack span,
.teach-back,
.movement-break,
.reward-card,
.self-directed-steps span,
.level-pill,
.multisense-tag,
.reward-tag-row span,
.growth-tags span {
  border-radius: 8px;
}

.mission-path-line {
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: drawPath 3s ease-in-out infinite;
}

.mission-path-dot {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 6;
  animation: dotPulse 1.8s ease-in-out infinite;
}

.dot-b {
  animation-delay: 0.25s;
}

.dot-c {
  animation-delay: 0.5s;
}

.mission-rocket {
  animation: rocketNudge 2.4s ease-in-out infinite;
}

.learning-route {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: drawPath 3.2s ease-in-out infinite;
}

.learning-token {
  fill: var(--scene-color, var(--teal));
  opacity: 0.92;
  animation: tokenFloat 2.6s ease-in-out infinite;
}

.token-b {
  fill: #f3b33d;
  animation-delay: 0.18s;
}

.token-c {
  fill: #5e63c7;
  animation-delay: 0.36s;
}

.learning-avatar {
  animation: avatarMove 3.2s ease-in-out infinite;
}

.learning-spark {
  transform-origin: center;
  animation: sparkTwinkle 1.7s ease-in-out infinite;
}

.spark-b {
  animation-delay: 0.32s;
}

.mini-pulse,
.mini-wave,
.mini-line {
  transform-origin: center;
  animation: miniPulse 1.8s ease-in-out infinite;
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 420;
  }
  55%,
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes rocketNudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(8px, -5px);
  }
}

@keyframes tokenFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes avatarMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(122px, -46px);
  }
}

@keyframes sparkTwinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes miniPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes routineFill {
  0%,
  100% {
    transform: scaleX(0.25);
  }
  50% {
    transform: scaleX(1);
  }
}

@media (max-width: 1050px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
  }

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

  .control-panel::after {
    display: none;
  }

  .mission-ribbon {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-ribbon-visual {
    min-height: 112px;
  }

  .activity-card header {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .activity-card header .status-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

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

@media (max-width: 720px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  h1 {
    font-size: 30px;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 24px;
  }

  .control-panel {
    padding: 22px;
  }

  .workspace {
    padding-inline: 18px;
  }

  .topbar {
    position: static;
  }

  .role-tabs,
  .subject-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .role-tab,
  .subject-tab {
    width: 100%;
  }

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

  .emotion {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .app-shell,
  .workspace,
  .control-panel,
  .learner-console,
  .learner-strip,
  .emotion-check,
  .mission-ribbon,
  .learning-tools,
  .filter-grid,
  .learning-grid,
  .mission-board,
  .coach-panel,
  .activity-panel,
  .teacher-view,
  .parent-view {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .filter-grid,
  .learning-tools {
    grid-template-columns: 1fr;
  }

  .learning-tools input,
  .learning-tools select,
  .learning-tools button,
  .filter-grid input,
  .filter-grid select,
  .filter-grid button {
    width: 100%;
    min-width: 0;
  }

  .launch-metrics,
  .mission-step-track,
  .activity-routine-track {
    display: grid;
    grid-template-columns: 1fr;
  }

  .activity-card {
    min-height: auto;
  }

  .stage-card svg.learning-scene-svg,
  .stage-card svg {
    height: 180px;
  }
}

.growth-badge-panel:empty,
.today-timeline:empty {
  display: none !important;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mission-path-line,
  .mission-path-dot,
  .mission-rocket,
  .learning-route,
  .learning-token,
  .learning-avatar,
  .learning-spark,
  .mini-pulse,
  .mini-wave,
  .mini-line,
  .micro-routine span::before {
    animation: none !important;
  }
}

/* 2026-06-21 Liquid Glass 기반 게임형 아동 학습 UI */
:root {
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-line: rgba(255, 255, 255, 0.72);
  --depth: 0 28px 90px rgba(35, 52, 80, 0.16);
  --depth-soft: 0 14px 34px rgba(35, 52, 80, 0.11);
}

body {
  background:
    radial-gradient(circle at 18% 8%, rgba(111, 213, 197, 0.34), transparent 27%),
    radial-gradient(circle at 85% 0%, rgba(200, 203, 255, 0.35), transparent 28%),
    radial-gradient(circle at 74% 38%, rgba(255, 184, 164, 0.22), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef6fb 100%);
}

.topbar,
.role-tabs,
.subject-tabs,
.learning-tools,
.control-panel,
.mission-ribbon,
.mission-board,
.coach-panel,
.metacognition,
.yearly-panel,
.project-panel,
.week-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--glass);
  box-shadow: var(--depth-soft), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.22);
}

.topbar {
  margin: 12px auto 0;
  width: min(1380px, calc(100% - 24px));
  border-radius: 8px;
}

.brand-mark {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.25), transparent),
    #172333;
}

.control-panel {
  min-height: 450px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 15% 12%, rgba(44, 167, 154, 0.24), transparent 34%),
    radial-gradient(circle at 94% 82%, rgba(237, 115, 86, 0.18), transparent 32%);
  box-shadow: var(--depth);
}

.control-panel::after {
  border-color: rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(90deg, transparent 0 28px, rgba(23, 35, 51, 0.055) 28px 30px, transparent 30px 58px),
    linear-gradient(0deg, transparent 0 28px, rgba(23, 35, 51, 0.055) 28px 30px, transparent 30px 58px),
    rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.launch-metrics span,
.quest-hud span,
.quest-chip,
.mission-step-track span,
.activity-routine-track span,
.multisense-tag,
.self-directed-steps span {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 20px rgba(35, 52, 80, 0.07);
}

.hero-mascot-team {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  max-width: 760px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.mascot-orbit {
  min-height: 138px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.9), transparent 22%),
    rgba(255, 255, 255, 0.48);
}

.mascot-orbit svg {
  width: 100%;
  height: 100%;
}

.orbit-path {
  stroke: rgba(44, 167, 154, 0.72);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 420;
  animation: drawPath 4s ease-in-out infinite;
}

.hero-mascot,
.coach-mascot-bob,
.stage-mascot-face,
.mission-mascot {
  transform-origin: center;
  animation: mascotBob 2.8s ease-in-out infinite;
}

.hero-mascot-b,
.coach-mascot-delay {
  animation-delay: 0.22s;
}

.hero-mascot-c {
  animation-delay: 0.44s;
}

.mascot-copy strong,
.mascot-copy span {
  display: block;
}

.mascot-copy strong {
  font-size: 18px;
}

.mascot-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 800;
}

.mission-ribbon {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.82), rgba(223, 245, 238, 0.72)),
    radial-gradient(circle at 12% 15%, rgba(44, 167, 154, 0.18), transparent 34%);
}

.mission-ribbon-visual {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.96), transparent 42%),
    rgba(255, 255, 255, 0.58);
}

.quest-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.quest-hud span,
.quest-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  color: #203650;
  font-size: 12px;
  font-weight: 900;
}

.mission-start-btn,
.activity-card button,
.stage-actions button,
.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
    #172333;
  box-shadow: 0 10px 24px rgba(23, 35, 51, 0.18);
}

.activity-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-top: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--subject-color, #2ca79a) 18%, transparent), transparent 30%);
  box-shadow: var(--depth-soft);
  backdrop-filter: blur(18px);
}

.activity-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--subject-color, var(--teal)), #f3b33d);
}

.activity-card header {
  position: relative;
  z-index: 1;
}

.coach-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    radial-gradient(circle at 18% 8%, rgba(200, 203, 255, 0.28), transparent 34%);
}

.mascot-coach-card,
.coach-character {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(35, 52, 80, 0.09);
}

.coach-orbit-line {
  stroke-dasharray: 260;
  animation: drawPath 3.6s ease-in-out infinite;
}

.stage-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 10% 5%, rgba(255, 184, 164, 0.18), transparent 30%);
  backdrop-filter: blur(18px);
}

.stage-card svg.learning-scene-svg,
.stage-card svg {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.94), transparent 34%),
    rgba(255, 255, 255, 0.54);
}

.ai-coach-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.ai-coach-line.compact {
  margin-bottom: 4px;
}

.ai-coach-line strong,
.ai-coach-line span {
  display: block;
}

.ai-coach-line span {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 800;
}

.choice-grid button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.76));
}

.choice-grid button.is-picked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    #172333;
}

.mascot-spark {
  transform-origin: center;
  animation: sparkTwinkle 1.8s ease-in-out infinite;
}

@keyframes mascotBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (max-width: 720px) {
  .app-shell,
  .workspace,
  .workspace > *,
  .topbar,
  .control-panel,
  .learner-console,
  .hero-mascot-team,
  .learning-grid,
  .mission-ribbon,
  .learning-tools {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .control-panel,
  .hero-mascot-team,
  .learning-grid,
  .mission-ribbon,
  .learning-tools {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .topbar {
    width: calc(100% - 24px);
  }

  .hero-mascot-team {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .mascot-orbit {
    min-height: 126px;
    overflow: hidden;
  }

  .mascot-copy,
  .mascot-copy strong,
  .mascot-copy span,
  .intro,
  .emotion-check p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .intro {
    max-width: 25ch;
    font-size: 17px;
    line-height: 1.72;
  }

  .mascot-copy strong {
    max-width: 18ch;
    font-size: 16px;
    line-height: 1.45;
  }

  .mascot-copy span,
  .emotion-check p {
    max-width: 24ch;
    line-height: 1.55;
  }

  .hero-mascot {
    transform: scale(0.9);
  }

  .mission-ribbon {
    grid-template-columns: 1fr;
  }

  .ai-coach-line {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .ai-coach-line .activity-mini-svg {
    width: 52px;
    height: 52px;
  }
}

/* 최종 레이어: 정보 밀도를 줄인 글로벌 학습 앱 플레이 화면 */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 212, 90, 0.48), transparent 24%),
    radial-gradient(circle at 84% 8%, rgba(118, 87, 255, 0.26), transparent 28%),
    radial-gradient(circle at 50% 42%, rgba(59, 167, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #eaf8ff 46%, #fff9f1 100%);
}

.control-panel {
  min-height: 560px;
  align-items: center;
  border: 0;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 212, 90, 0.56), transparent 24%),
    radial-gradient(circle at 78% 22%, rgba(255, 141, 180, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(232, 249, 255, 0.76));
}

.control-panel h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.98;
}

.intro {
  max-width: 560px;
  color: #405571;
  font-size: 22px;
}

.hero-mascot-team {
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  max-width: 900px;
  min-height: 190px;
}

.mascot-copy strong {
  font-size: 24px;
  line-height: 1.2;
}

.classroom-toolbar {
  position: sticky;
  top: 96px;
  z-index: 15;
  padding: 8px;
}

.learning-tools {
  grid-template-columns: minmax(0, 1fr) 190px auto auto;
  border: 0;
  padding: 14px;
}

.learning-tools .field span {
  display: none;
}

.mission-ribbon {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) 170px;
  min-height: 270px;
  align-items: center;
  border: 0;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 212, 90, 0.38), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(218, 250, 246, 0.8));
}

.mission-ribbon-visual {
  min-height: 210px;
}

.mission-ribbon-info strong {
  display: block;
  max-width: 620px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.mission-ribbon-info p {
  max-width: 600px;
  font-size: 18px;
}

.mission-start-btn {
  min-height: 76px;
  background: linear-gradient(135deg, #7657ff, #3ba7ff);
  font-size: 20px;
}

.learning-vault {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 14px 34px rgba(56, 77, 118, 0.08);
}

.learning-vault summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0 18px;
  color: #263244;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.learning-vault summary::-webkit-details-marker {
  display: none;
}

.learning-vault summary::after {
  content: "+";
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #12182c;
  color: #fff;
}

.learning-vault[open] summary::after {
  content: "−";
}

.learning-vault > section {
  margin-top: 12px;
}

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

.coach-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  order: -1;
  border: 0;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 240, 255, 0.75));
}

.coach-panel h2,
.coach-panel > p,
.coach-panel .micro-routine {
  grid-column: 2;
}

.coach-character {
  grid-row: 1 / span 4;
  min-height: 210px;
}

.activity-stage {
  grid-column: 1 / -1;
}

.mission-board {
  border: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.activity-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  grid-template-columns: none;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x mandatory;
}

.activity-card {
  min-height: 310px;
  scroll-snap-align: start;
}

.activity-card h3 {
  font-size: 26px;
  line-height: 1.15;
}

.activity-card .activity-meta,
.activity-card .activity-routine-track {
  display: none;
}

.activity-card:hover .activity-meta,
.activity-card:focus-within .activity-meta,
.activity-card:hover .activity-routine-track,
.activity-card:focus-within .activity-routine-track {
  display: flex;
}

@media (max-width: 1050px) {
  .control-panel,
  .mission-ribbon,
  .coach-panel {
    grid-template-columns: 1fr;
  }

  .coach-panel h2,
  .coach-panel > p,
  .coach-panel .micro-routine,
  .coach-character {
    grid-column: auto;
    grid-row: auto;
  }

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

@media (max-width: 720px) {
  .control-panel {
    min-height: auto;
    padding: 18px;
  }

  .control-panel h1 {
    max-width: 100%;
    font-size: 38px;
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .intro {
    max-width: 100%;
    font-size: 18px;
  }

  .hero-mascot-team,
  .mission-ribbon,
  .learning-tools {
    grid-template-columns: 1fr !important;
  }

  .classroom-toolbar {
    top: 0;
  }

  .mission-ribbon-info strong {
    font-size: 34px;
  }

  .mission-start-btn {
    min-height: 58px;
    width: 100%;
  }

  .activity-list {
    grid-auto-columns: minmax(260px, 88vw);
  }
}

