:root {
  color-scheme: light;
  --brand-700: #5b21b6;
  --brand-600: #7c3aed;
  --brand-500: #8b5cf6;
  --brand-300: #c4b5fd;
  --brand-100: #ede9fe;
  --brand-50: #f7f3ff;
  --aqua-500: #14b8a6;
  --aqua-100: #dcfaf5;
  --violet-500: #a855f7;
  --violet-100: #f3e8ff;
  --growth-600: #12866f;
  --growth-100: #dff7ef;
  --sun-500: #f6b94a;
  --sun-100: #fff2d6;
  --rose-500: #ff6b6b;
  --rose-100: #ffe4e6;
  --coral-500: #fb7185;
  --ink-900: #201a2e;
  --ink-700: #44385b;
  --ink-500: #756c84;
  --line: #e9e2f3;
  --surface: #ffffff;
  --canvas: #fbfaff;
  --danger: #c44242;
  --shadow: 0 24px 64px rgba(91, 33, 182, 0.14);
  --shadow-soft: 0 14px 34px rgba(91, 33, 182, 0.08);
  --shadow-lift: 0 20px 46px rgba(91, 33, 182, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --sidebar: 260px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink-900);
  background:
    radial-gradient(circle at 12% 0%, rgba(124, 58, 237, 0.14), transparent 30%),
    radial-gradient(circle at 96% 12%, rgba(216, 180, 254, 0.22), transparent 28%),
    radial-gradient(circle at 78% 92%, rgba(251, 113, 133, 0.08), transparent 24%),
    var(--canvas);
}

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

button {
  cursor: pointer;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.28);
  outline-offset: 3px;
}

.demo-banner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(90deg, #3b0764, #6d28d9 55%, #a855f7);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0abfc;
  box-shadow: 0 0 0 4px rgba(240, 171, 252, 0.18);
}

.app-shell {
  min-height: calc(100vh - 34px);
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: calc(100vh - 34px);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.94)),
    #fff;
  backdrop-filter: blur(16px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: conic-gradient(from 220deg, var(--coral-500), var(--brand-500), var(--violet-500), var(--brand-300));
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
  font-weight: 800;
}

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

.brand strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand small {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.role-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 26px 0 20px;
  padding: 4px;
  border-radius: 13px;
  background: #f1ecfb;
}

.role-option {
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  color: var(--ink-500);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.role-option.active {
  color: var(--brand-700);
  background: #fff;
  box-shadow: 0 3px 12px rgba(42, 54, 91, 0.1);
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  color: var(--ink-700);
  background: transparent;
  text-align: left;
  font-weight: 650;
}

.nav-item:hover {
  background: var(--brand-50);
}

.nav-item.active {
  color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-100), #fff);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.nav-icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.sidebar-card {
  margin-top: auto;
  padding: 16px;
  border: 1px solid #e7def7;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fff, #f4edff);
}

.sidebar-card strong,
.sidebar-card p {
  display: block;
}

.sidebar-card strong {
  margin-top: 5px;
  font-size: 14px;
}

.sidebar-card p {
  margin: 5px 0 9px;
  color: var(--ink-500);
  font-size: 12px;
  line-height: 1.5;
}

.eyebrow {
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--brand-600);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
}

.main-area {
  min-width: 0;
}

.mobile-tabbar {
  display: none;
}

.topbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 34px;
  border-bottom: 1px solid rgba(229, 233, 242, 0.9);
  background: rgba(247, 249, 253, 0.86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  margin: 3px 0 0;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink-700);
  background: #fff;
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose-500);
  box-shadow: 0 0 0 2px #fff;
}

.menu-button {
  display: none;
}

.avatar-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  font-weight: 800;
}

.avatar-copy {
  text-align: left;
}

.avatar-copy strong,
.avatar-copy small {
  display: block;
}

.avatar-copy strong {
  font-size: 13px;
}

.avatar-copy small {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 10px;
}

.content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px 34px 54px;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  min-height: 238px;
  padding: 34px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(240, 171, 252, 0.54), transparent 27%),
    radial-gradient(circle at 22% 86%, rgba(251, 113, 133, 0.18), transparent 24%),
    linear-gradient(135deg, #4c1d95 0%, #7c3aed 52%, #a855f7 100%);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -95px;
  bottom: -145px;
  border-radius: 50%;
  border: 44px solid rgba(255, 255, 255, 0.09);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero h2 {
  max-width: 680px;
  margin: 10px 0 12px;
  font-size: clamp(31px, 4.2vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.subject-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.subject-strip span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 13px;
  font-weight: 800;
}

.button.primary {
  color: var(--brand-700);
  background: #fff;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.button.brand {
  color: #fff;
  background: var(--brand-600);
}

.button.soft {
  color: var(--brand-700);
  background: var(--brand-100);
}

.button.ghost {
  color: var(--ink-700);
  background: #fff;
  border: 1px solid var(--line);
}

.hero-panel {
  align-self: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(10, 24, 76, 0.18);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

.hero-note strong {
  margin-top: 4px;
  font-size: 14px;
}

.hero-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-panel-head strong {
  font-size: 15px;
}

.hero-panel-head span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

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

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0abfc, #fecdd3);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.hero-metric strong,
.hero-metric small {
  display: block;
}

.hero-metric strong {
  font-size: 22px;
}

.hero-metric small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.section {
  margin-top: 28px;
}

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

.section-head h2,
.section-head h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: 22px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 13px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.metrics {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  box-shadow: var(--shadow-lift);
}

.card-body {
  padding: 20px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -34px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
}

.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.metric-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-100), #fff);
}

.metric-card strong {
  display: block;
  margin-top: 16px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.metric-card p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.delta {
  color: var(--growth-600);
  font-size: 11px;
  font-weight: 800;
}

.task-list {
  display: grid;
}

.task-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.task-row:hover {
  background: #fbfcff;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-100), #fff);
}

.task-row strong,
.task-row small {
  display: block;
}

.task-row strong {
  font-size: 14px;
}

.task-row small {
  margin-top: 4px;
  color: var(--ink-500);
}

.pill,
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status.achieved {
  color: #0a725e;
  background: var(--growth-100);
}

.status.developing {
  color: #8b610c;
  background: var(--sun-100);
}

.status.support {
  color: #a63b50;
  background: var(--rose-100);
}

.status.insufficient {
  color: var(--ink-500);
  background: #eef0f4;
}

.pill.ai {
  color: var(--brand-700);
  background: var(--brand-100);
}

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

.student-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.student-row:hover {
  border-color: rgba(124, 58, 237, 0.32);
  box-shadow: var(--shadow-soft);
}

.student-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
}

.student-row strong,
.student-row small {
  display: block;
}

.student-row small {
  margin-top: 3px;
  color: var(--ink-500);
}

.evidence-card {
  overflow: hidden;
}

.evidence-card:hover .evidence-visual {
  transform: scale(1.018);
}

.evidence-visual {
  transition: transform 0.2s ease;
  height: 150px;
  display: flex;
  align-items: end;
  padding: 16px;
  color: #fff;
  background:
    linear-gradient(180deg, transparent 20%, rgba(48, 19, 84, 0.68)),
    linear-gradient(135deg, #c4b5fd, #8b5cf6 55%, #fb7185);
}

.evidence-visual.alt {
  background:
    linear-gradient(180deg, transparent 20%, rgba(48, 19, 84, 0.66)),
    linear-gradient(135deg, #fbcfe8, #fb7185 52%, #8b5cf6);
}

.evidence-visual strong {
  font-size: 18px;
}

.evidence-meta {
  padding: 16px;
}

.evidence-meta p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.6;
}

.learning-map {
  padding: 22px;
}

.learning-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.learning-row:last-child {
  border-bottom: 0;
}

.learning-label strong,
.learning-label small {
  display: block;
}

.learning-label small {
  margin-top: 4px;
  color: var(--ink-500);
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1f6;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar .green {
  background: #3fc09d;
}

.bar .blue {
  background: #8b5cf6;
}

.bar .gold {
  background: #efbd57;
}

.insight {
  display: flex;
  gap: 13px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid rgba(124, 58, 237, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(247, 243, 255, 0.95)),
    var(--brand-50);
}

.insight-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-700);
  background: var(--brand-100);
}

.insight strong {
  display: block;
  font-size: 14px;
}

.insight p {
  margin: 5px 0 0;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.6;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 2px var(--brand-100);
}

.timeline-item time {
  color: var(--ink-500);
  font-size: 11px;
}

.timeline-item strong {
  display: block;
  margin-top: 4px;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--ink-700);
  font-size: 13px;
  line-height: 1.6;
}

.composer {
  padding: 22px;
}

.composer textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  color: var(--ink-900);
  background: #fafbfe;
  line-height: 1.7;
}

.composer textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.memory-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.96)),
    #fff;
}

.activity-board {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}

.activity-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.activity-tabs span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 850;
}

.activity-tabs .active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--violet-500));
}

.activity-card {
  overflow: hidden;
}

.activity-cover {
  min-height: 150px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.36), transparent 20%),
    linear-gradient(135deg, #7c3aed, #a855f7);
}

.activity-cover.cover-1 {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #8b5cf6, #14b8a6);
}

.activity-cover.cover-2 {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #fb7185, #a855f7);
}

.activity-cover span {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.activity-cover strong {
  max-width: 14em;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.activity-body {
  display: grid;
  gap: 10px;
  padding: 17px;
}

.activity-body h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.activity-body p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.65;
  font-size: 13px;
}

.activity-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 800;
}

.activity-meta span {
  color: var(--brand-700);
}

.ai-capsule {
  padding: 10px 12px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 14px;
  color: var(--brand-700);
  background: linear-gradient(135deg, var(--brand-50), #fff);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

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

.journal-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, var(--brand-50));
}

.journal-item strong,
.journal-item p {
  display: block;
}

.journal-item p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.55;
}

.moment-card {
  overflow: hidden;
}

.moment-thumb {
  min-height: 126px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.86), rgba(168, 85, 247, 0.7)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 14px);
}

.moment-thumb span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.memory-flow > div {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 199, 189, 0.14), transparent 38%),
    #fff;
}

.memory-flow strong,
.memory-flow small {
  display: block;
}

.memory-flow small {
  color: var(--ink-500);
  line-height: 1.5;
}

.flow-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--aqua-500));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.2);
}

.flow-arrow {
  align-self: center;
  color: var(--brand-500);
  font-weight: 900;
}

.studio-shell {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.studio-tools {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, #fff, #f8fbff),
    #fff;
}

.studio-tool {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-700);
  background: #fff;
  text-align: left;
  font-weight: 800;
}

.studio-tool:hover {
  color: var(--brand-700);
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(135deg, var(--brand-50), #fff);
}

.asset-tray {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.asset-tray strong {
  grid-column: 1 / -1;
  color: var(--ink-500);
  font-size: 12px;
}

.asset-tray span {
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(124, 58, 237, 0.32);
  border-radius: 12px;
  color: var(--brand-700);
  background: var(--brand-50);
  font-size: 12px;
  font-weight: 900;
}

.creator-stage {
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, #fff 0%, #fbfcff 100%),
    #fff;
}

.creator-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.creator-top h2 {
  margin: 3px 0 0;
  font-size: 24px;
}

.slide-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.slide-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.slide-strip button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink-700);
  background: #fff;
  text-align: left;
}

.slide-strip button.active {
  border-color: rgba(124, 58, 237, 0.32);
  background: linear-gradient(135deg, var(--brand-100), #fff);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.12);
}

.slide-strip span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--brand-600);
  font-size: 12px;
  font-weight: 900;
}

.slide-strip small {
  color: var(--ink-500);
  font-weight: 800;
}

.slide-canvas {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #dbe3f4;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(134, 204, 255, 0.52), transparent 25%),
    linear-gradient(135deg, #f7f9ff, #edf3ff 48%, #fff3dc);
  background-size: 28px 28px, 28px 28px, auto, auto;
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.52),
    0 20px 50px rgba(31, 45, 91, 0.1);
}

.slide-canvas.slide-2 {
  background:
    radial-gradient(circle at 76% 22%, rgba(255, 216, 128, 0.72), transparent 24%),
    linear-gradient(135deg, #f7fff8, #eef9ff 48%, #fff7e8);
}

.slide-canvas.slide-3 {
  background:
    radial-gradient(circle at 28% 26%, rgba(132, 232, 196, 0.48), transparent 24%),
    linear-gradient(135deg, #fff8fb, #f3f1ff 46%, #eefaff);
}

.draggable {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 74px;
  border: 3px solid #fff;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(58, 77, 139, 0.18);
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.draggable:hover {
  transform: rotate(-2deg) scale(1.04);
  box-shadow: 0 18px 36px rgba(58, 77, 139, 0.24);
}

.draggable.home {
  left: 11%;
  top: 18%;
  background: #ef8c77;
}

.draggable.school {
  right: 16%;
  top: 22%;
  background: #7c3aed;
}

.draggable.park {
  left: 42%;
  bottom: 19%;
  background: #25a687;
}

.drawing-line {
  position: absolute;
  left: 21%;
  top: 38%;
  width: 48%;
  height: 120px;
  border-bottom: 8px dashed rgba(124, 58, 237, 0.35);
  border-radius: 50%;
  transform: rotate(9deg);
}

.speech-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: min(330px, calc(100% - 48px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.canvas-chip {
  position: absolute;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.canvas-chip.chip-a {
  left: 24px;
  bottom: 26px;
}

.canvas-chip.chip-b {
  left: 98px;
  bottom: 26px;
  color: #9a5a0a;
}

.audio-wave {
  position: absolute;
  left: 26px;
  top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.audio-wave span {
  width: 4px;
  height: 12px;
  border-radius: 999px;
  background: var(--aqua-500);
  animation: wave 1.2s ease-in-out infinite;
}

.audio-wave span:nth-child(2) {
  height: 20px;
  animation-delay: 0.12s;
}

.audio-wave span:nth-child(3) {
  height: 16px;
  animation-delay: 0.24s;
}

.audio-wave span:nth-child(4) {
  height: 24px;
  animation-delay: 0.36s;
}

@keyframes wave {
  50% {
    transform: scaleY(0.55);
  }
}

.speech-card strong {
  display: block;
}

.speech-card p {
  margin: 6px 0 0;
  color: var(--ink-700);
  line-height: 1.6;
}

.creator-stage textarea {
  width: 100%;
  min-height: 86px;
  margin-top: 14px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  background: #fafbfe;
  line-height: 1.7;
}

.creator-stage textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px var(--brand-100);
}

.creator-checklist {
  position: sticky;
  top: 112px;
}

.tool-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}

.tool-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-700);
  background: #fff;
  font-size: 12px;
  font-weight: 750;
}

.action-row .button:last-child {
  margin-left: auto;
}

.parent-feed {
  display: grid;
  gap: 16px;
}

.feed-card {
  overflow: hidden;
}

.feed-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 18px 12px;
}

.feed-head .student-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.feed-head strong,
.feed-head small {
  display: block;
}

.feed-head small {
  color: var(--ink-500);
}

.feed-body {
  padding: 0 18px 18px;
}

.feed-body p {
  color: var(--ink-700);
  line-height: 1.7;
}

.feed-visual {
  height: 240px;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.35), transparent 22%),
    linear-gradient(135deg, #14b8a6, #7c3aed 56%, #a855f7);
}

.feed-visual.record-visual {
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.34), transparent 22%),
    linear-gradient(135deg, #7c3aed, #a855f7 58%, #fb7185);
}

.feed-visual span {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 900;
}

.empty-state {
  padding: 54px 24px;
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--brand-100);
  font-size: 28px;
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  max-width: 440px;
  margin: 8px auto 18px;
  color: var(--ink-500);
  line-height: 1.6;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  z-index: 60;
}

.toast {
  min-width: 270px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-900);
  background: #fff;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease both;
}

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

.modal {
  width: min(620px, calc(100vw - 28px));
  max-height: 85vh;
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(23, 35, 74, 0.26);
}

.modal::backdrop {
  background: rgba(21, 31, 58, 0.46);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  width: 36px;
  height: 36px;
  margin: 14px 14px 0 0;
  border: 0;
  border-radius: 12px;
  color: var(--ink-700);
  background: #f1f3f7;
  font-size: 24px;
  z-index: 2;
}

.modal-content {
  padding: 28px;
}

.modal-content h2 {
  margin-top: 0;
}

.source-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.source-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fafbfe;
}

.source-item strong,
.source-item small {
  display: block;
}

.source-item small {
  margin-top: 4px;
  color: var(--ink-500);
}

@media (max-width: 1050px) {
  .grid.metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .memory-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

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

  .studio-tools,
  .creator-checklist {
    position: static;
  }

  .studio-tools {
    grid-template-columns: repeat(3, 1fr);
  }

  .asset-tray {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    top: 34px;
    left: 0;
    width: min(310px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-button {
    display: grid;
  }

  .topbar {
    padding: 14px 18px;
  }

  .content {
    padding: 20px 18px calc(104px + env(safe-area-inset-bottom));
  }

  .avatar-copy {
    display: none;
  }

  .mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(233, 226, 243, 0.86);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(91, 33, 182, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-tab {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    border-radius: 18px;
    color: var(--ink-500);
    background: transparent;
    font-weight: 850;
  }

  .mobile-tab span,
  .mobile-tab small {
    display: block;
  }

  .mobile-tab span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-tab small {
    font-size: 10px;
    line-height: 1.2;
  }

  .mobile-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-600), var(--violet-500));
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.24);
  }
}

@media (max-width: 620px) {
  .demo-banner {
    height: auto;
    min-height: 34px;
    padding-block: 7px;
    text-align: center;
  }

  .topbar h1 {
    font-size: 19px;
  }

  .topbar {
    min-height: 76px;
  }

  .topbar-actions .icon-button {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 23px;
    border-radius: 20px;
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.metrics,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .studio-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-flow {
    padding: 12px;
  }

  .memory-flow > div {
    min-height: auto;
    padding: 14px;
  }

  .creator-top,
  .slide-controls {
    align-items: start;
    flex-direction: column;
  }

  .slide-strip {
    grid-template-columns: 1fr;
  }

  .slide-canvas {
    min-height: 360px;
  }

  .draggable {
    width: 74px;
    height: 60px;
    border-radius: 18px;
  }

  .speech-card {
    right: 16px;
    bottom: 66px;
    width: calc(100% - 32px);
  }

  .canvas-chip.chip-a {
    left: 16px;
    bottom: 18px;
  }

  .canvas-chip.chip-b {
    left: 84px;
    bottom: 18px;
  }

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

  .learning-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .task-row {
    grid-template-columns: 38px 1fr;
  }

  .task-row > :last-child {
    grid-column: 2;
    justify-self: start;
  }

  .action-row .button {
    flex: 1;
  }

  .action-row .button:last-child {
    margin-left: 0;
  }
}

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