@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f6f7f2;
  --white: #fff;
  --ink: #162a2b;
  --muted: #6f7e79;
  --green: #176d60;
  --green-dark: #125549;
  --mint: #e6f3df;
  --mint-light: #eff7ea;
  --yellow: #f2cd62;
  --orange: #ed7b47;
  --line: #e4e8df;
  --shadow: 0 8px 25px #183f2810;
  --radius: 22px;
  --sidebar-width: 238px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', 'Nirmala UI', 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #dfa12a; }
::selection { background: #eed378; color: var(--ink); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: 'Manrope', 'Nirmala UI', 'Segoe UI', sans-serif; line-height: 1.3; }
button { color: inherit; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 30; display: flex; flex-direction: column; padding: 29px 20px 20px; background: #fcfdf8; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; margin-bottom: 39px; }
.brand-mark { width: 42px; height: 44px; flex: 0 0 42px; display: grid; place-items: center; color: #f6e4a2; background: var(--green); border-radius: 14px 14px 14px 4px; transform: rotate(-3deg); }
.brand-mark svg { width: 25px; height: 25px; transform: rotate(3deg); }
.brand-copy { display: flex; flex-direction: column; gap: 0; line-height: 1.3; }
.brand-copy strong { font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.7px; }
.brand-copy small { font-size: 9px; font-weight: 800; letter-spacing: 1.8px; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-button { display: flex; align-items: center; gap: 12px; min-height: 48px; width: 100%; padding: 12px 15px; border: 0; border-radius: 12px; color: #6b7870; background: transparent; text-align: left; font-size: 13px; font-weight: 600; transition: background .18s, color .18s, transform .18s; }
.nav-button:hover { color: var(--green); background: #edf2e7; }
.nav-button.active { color: #fff; background: var(--green); box-shadow: 0 5px 12px #176d6017; }
.nav-icon { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; font-size: 20px; }
.nav-icon svg { width: 21px; height: 21px; }
.side-nav > small, .nav-section-label { margin: 21px 15px 7px; font-size: 9px; letter-spacing: 1.6px; font-weight: 800; color: #98a093; text-transform: uppercase; }
.sidebar-bottom { margin-top: auto; padding-top: 35px; }
.safety-mini { padding: 18px 15px 16px; background: #edf3e4; border: 1px solid #e2ebd7; border-radius: 15px; font-size: 11px; color: #738067; line-height: 1.6; }
.safety-mini strong { display: block; color: #476445; font-size: 12px; margin: 6px 0; }
.safety-mini svg { color: var(--green); width: 23px; height: 23px; }
.sidebar-bottom .footer-note { padding: 16px 10px 0; font-size: 10px; }
.main { grid-column: 2; min-width: 0; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #fafbf6bf; }
.breadcrumbs { display: flex; align-items: center; gap: 8px; color: #859080; font-size: 11px; }
.breadcrumbs strong { font-weight: 600; color: #566751; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.language-button { min-height: 36px; padding: 5px 10px; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; color: #58664e; font-size: 12px; font-weight: 600; border-radius: 8px; }
.language-button:hover { background: #e9efdf; }
.profile-chip { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid #dce2d6; line-height: 1.45; }
.profile-chip > div { display: flex; flex-direction: column; }
.profile-chip strong { font-size: 11px; font-weight: 700; }
.profile-chip small { color: #859080; font-size: 10px; }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border: 3px solid #fff; border-radius: 50%; color: #76602a; background: #f2d276; font-size: 11px; font-weight: 800; }
.mobile-menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: white; border-radius: 11px; align-items: center; justify-content: center; }
.sidebar-close { display:none; }
.mobile-menu svg { width: 21px; height: 21px; }
.content { max-width: 1260px; margin: 0 auto; padding: 35px 40px 32px; animation: page-in .35s ease-out; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin-bottom: 8px; font-size: 9px; font-weight: 800; color: var(--green); letter-spacing: 1.8px; text-transform: uppercase; }
.page-title { font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: -1.25px; }
.page-heading .muted { font-size: 12px; margin-top: 8px; }
.muted { color: var(--muted); }
.hero { min-height: 293px; overflow: hidden; position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; margin-bottom: 23px; border: 1px solid #dbe9ce; background: #e6f0d9; border-radius: var(--radius); }
.hero::before { content: ''; position: absolute; width: 380px; height: 380px; top: -32px; right: -86px; border: 1px solid #d4e3c4; border-radius: 50%; pointer-events: none; }
.hero::after { content: ''; position: absolute; width: 280px; height: 280px; top: 22px; right: -36px; border: 1px solid #d4e3c4; border-radius: 50%; pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding: 30px 0 31px 31px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 13px; padding: 5px 9px; background: #f4f8e9; border: 1px solid #dce7cb; border-radius: 5px; color: #506e37; font-size: 8px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.hero-kicker svg { width: 12px; height: 12px; }
.hero-title { max-width: 400px; font-size: clamp(29px, 3.2vw, 43px); font-weight: 800; line-height: 1.14; letter-spacing: -1.8px; }
.hero-title span { color: var(--green); }
.hero-text { max-width: 357px; margin-top: 13px; color: #718465; font-size: 11px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; }
.button { min-height: 42px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: 11px; line-height: 1.5; transition: background .18s, box-shadow .18s, transform .18s; }
.button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 3px 8px #176d6010; }
.button.primary:hover { background: var(--green-dark); box-shadow: 0 5px 14px #176d6026; }
.button.secondary { background: #fffdf6; color: #42583b; border-color: #d4dec9; }
.button.secondary:hover { background: #f5f8ef; border-color: #b5c8a1; }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: #254445; }
.button.small { min-height: 36px; padding: 8px 12px; font-size: 10px; border-radius: 8px; }
.button.ghost { background: transparent; color: var(--green); border-color: #dce4d7; }
.button:disabled { opacity: .5; box-shadow: none; transform: none; }
.hero-meta { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: #6d825b; font-size: 9px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-meta svg { width: 12px; height: 12px; }
.hero-art { position: relative; z-index: 1; width: 100%; min-width: 0; max-height: 300px; padding: 3px 10px 0 0; object-fit: contain; }
.hero-art img { width: 100%; max-height: 300px; object-fit: contain; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid #e1e7d9; background: #fefefb; border-radius: 99px; color: #70805e; font-size: 10px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 30px; }
.stat-card { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 18px 16px; background: #fffefa; border: 1px solid var(--line); border-radius: 14px; }
.stat-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #e9f2e4; color: var(--green); border-radius: 11px; }
.stat-icon svg { width: 20px; height: 20px; }
.stat-card:nth-child(2) .stat-icon { background: #fff3cc; color: #a78325; }
.stat-card:nth-child(3) .stat-icon { background: #ffecd9; color: #b8703b; }
.stat-card:nth-child(4) .stat-icon { background: #eaeaf8; color: #7474af; }
.stat-value { font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.7px; line-height: 1.2; }
.stat-label { color: #8a9683; font-size: 9px; margin-top: 4px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin: 0 0 17px; }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -.55px; }
.section-heading .muted { margin-top: 5px; font-size: 10px; }
.inline-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 10px; font-weight: 700; }
.inline-link:hover { color: #063e35; text-decoration: underline; text-underline-offset: 3px; }
.inline-link svg { width: 13px; height: 13px; }
.grade-picker { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); background: #eaf0e4; border-radius: 10px; }
.grade-button { min-height: 30px; padding: 5px 10px; color: #7b8970; font-size: 9px; font-weight: 700; border: 0; border-radius: 7px; background: transparent; transition: background .15s, color .15s; }
.grade-button.active { background: #fffef7; color: var(--green); box-shadow: 0 2px 6px #193e2410; }
.grade-button:hover { color: var(--green); background: #f9fcf5; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-bottom: 28px; }
.mission-card { overflow: hidden; min-width: 0; background: #fffefa; border: 1px solid #e1e6d9; border-radius: 16px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.mission-card:hover { transform: translateY(-4px); border-color: #c4d4b8; box-shadow: var(--shadow); }
.mission-card.locked { opacity: .78; }
.mission-card.locked:hover { transform: none; box-shadow: none; }
.mission-card.complete { border-color: #abc9a7; }
.mission-art { position: relative; display: grid; place-items: center; overflow: hidden; height: 128px; background: #e7f0dc; }
.mission-art::after { content: ''; position: absolute; width: 118px; height: 118px; left: 50%; top: 15px; transform: translateX(-50%); border-radius: 50%; border: 1px solid #fff7; pointer-events: none; }
.mission-art svg { position: relative; z-index: 1; width: 122px; height: 110px; filter: drop-shadow(0 6px 6px #26391913); }
.mission-art.mint { background: #e7f1df; }
.mission-art.yellow { background: #f6edca; }
.mission-art.peach { background: #f8e6d8; }
.mission-number { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 4px 6px; border-radius: 5px; background: #fff9; color: #718163; font-size: 8px; line-height: 1.3; font-weight: 800; letter-spacing: 1px; }
.mission-art .pill { position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 8px; padding: 3px 6px; background: #fff9; }
.mission-body { padding: 15px 16px 16px; }
.mission-title { font-size: 13px; font-weight: 800; letter-spacing: -.3px; }
.mission-description { min-height: 32px; font-size: 10px; color: #8b967d; line-height: 1.65; margin-top: 7px; }
.mission-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #edf0e7; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4px; background: #ecf2e5; color: #6d845a; font-size: 8px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.xp-label { color: #9a7b31; font-size: 9px; font-weight: 700; }
.mission-footer .inline-link { font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-bottom: 25px; }
.journey-panel, .activity-panel { background: #fffefa; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.journey-panel .section-heading, .activity-panel .section-heading { margin-bottom: 18px; }
.journey-list { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 4px 0 10px; }
.journey-step { position: relative; z-index: 1; width: 25%; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 9px; color: #99a28e; }
.journey-step:not(:last-child)::after { content: ''; position: absolute; z-index: -1; height: 2px; width: calc(100% + 8px); left: 50%; top: 17px; background: #e6ebde; }
.step-number { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 9px; border: 1px solid #e0e6d7; border-radius: 50%; background: #f5f7ee; font-size: 10px; font-weight: 800; color: #a0aa92; }
.step-number svg { width: 15px; height: 15px; }
.journey-step.done { color: #607b52; }
.journey-step.done .step-number { background: var(--green); color: #fff; border-color: var(--green); }
.journey-step.done::after { background: #aaca9e; }
.journey-step.current { color: var(--green); font-weight: 700; }
.journey-step.current .step-number { color: #6d6428; border-color: #e9d487; background: #f6db84; box-shadow: 0 0 0 4px #fcf1d1; }
.progress-track { height: 6px; overflow: hidden; background: #edf0e6; border-radius: 20px; margin-top: 9px; }
.progress-fill { height: 100%; background: var(--green); border-radius: inherit; transition: width .35s; }
.badge-row { display: flex; align-items: flex-start; justify-content: flex-start; gap: 22px; padding-top: 3px; }
.badge { width: 60px; text-align: center; color: #a2aa98; font-size: 8px; }
.badge > span, .badge > div, .badge > svg { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 13px; background: #f0f2e9; color: #b6beaa; font-size: 23px; }
.badge.earned { color: #7a7247; }
.badge.earned > span, .badge.earned > div, .badge.earned > svg { background: #fff0bd; color: #bd9528; box-shadow: inset 0 0 0 1px #f3df9b; }
.badge.earned:nth-child(2) > span, .badge.earned:nth-child(2) > div, .badge.earned:nth-child(2) > svg { background: #e4efda; color: var(--green); box-shadow: inset 0 0 0 1px #d1e0c5; }
.component-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.component-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 235px; background: #fffefb; border: 1px solid var(--line); border-radius: 17px; padding: 21px; transition: transform .2s, box-shadow .2s; }
.component-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.component-symbol { display: grid; place-items: center; width: 100%; height: 83px; background: #f1f5e8; border-radius: 11px; margin-bottom: 17px; color: var(--green); }
.component-symbol svg { width: 105px; height: 69px; }
.component-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.component-card p { color: #809073; font-size: 11px; }
.component-card .tag, .component-card .inline-link { align-self: flex-start; margin-top: auto; }
.component-card .tag { margin-top: 15px; }
.tabs { display: flex; align-items: center; gap: 5px; padding: 5px; background: #eaf0e4; border: 1px solid #e0e7d7; border-radius: 11px; margin-bottom: 22px; width: fit-content; max-width: 100%; }
.tab { min-height: 37px; border: 0; background: transparent; border-radius: 8px; padding: 8px 15px; font-size: 11px; font-weight: 700; color: #7b8970; }
.tab.active { background: #fffef8; color: var(--green); box-shadow: 0 2px 6px #193e2410; }
.tab:hover { color: var(--green); }
.lesson-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 22px; align-items: start; }
.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-button { position: relative; width: 100%; min-height: 69px; display: flex; align-items: center; gap: 12px; border: 1px solid #e1e7d8; background: #fffef9; padding: 14px; border-radius: 12px; text-align: left; color: #738168; font-size: 11px; font-weight: 600; }
.lesson-button .step-number { width: 29px; height: 29px; flex: 0 0 29px; margin: 0; }
.lesson-button.active { border-color: #adc8a1; background: #e9f2df; color: #315f35; }
.lesson-button.active .step-number { background: var(--green); color: #fff; border-color: var(--green); }
.lesson-button.done { color: var(--green); }
.lesson-button small { display: block; margin-top: 4px; color: #89977d; font-size: 9px; }
.lesson-panel { min-height: 480px; padding: 32px; background: #fffefa; border: 1px solid var(--line); border-radius: 19px; }
.lesson-panel h2 { margin-top: 7px; font-size: 25px; font-weight: 800; letter-spacing: -.8px; }
.lesson-panel h3 { margin: 23px 0 10px; font-size: 16px; }
.lesson-panel p { color: #748267; font-size: 13px; line-height: 1.85; margin-top: 13px; }
.lesson-panel ul, .lesson-panel ol { color: #748267; padding-left: 20px; line-height: 1.85; }
.lesson-panel .component-symbol { height: 165px; margin: 24px 0; }
.lesson-panel .component-symbol svg { height: 130px; width: 240px; }
.lesson-step { display: flex; align-items: center; gap: 8px; color: #799264; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.lesson-panel .hero-actions { margin-top: 26px; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 15px 17px; background: #ecf3e5; border: 1px solid #dce8d1; border-radius: 11px; color: #5c7650; font-size: 11px; line-height: 1.7; margin: 20px 0; }
.callout svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.callout strong { color: #3c6332; }
.callout p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.callout.success { background: #e8f5e7; border-color: #cfdfc9; }
.callout.warning { background: #fff2d1; border-color: #eddbac; color: #8a7441; }
.callout.warning strong { color: #886b24; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; align-items: start; }
.lab-board { overflow: hidden; background: #fffefa; border: 1px solid var(--line); border-radius: 19px; }
.lab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 21px; border-bottom: 1px solid var(--line); color: #607554; font-size: 11px; }
.lab-toolbar strong { color: var(--ink); font-size: 12px; }
.lab-board .circuit-svg { width: 100%; min-height: 330px; max-height: 430px; padding: 15px; background-color: #f5f8ed; background-image: radial-gradient(#dce7cd 1px, transparent 1px); background-size: 17px 17px; }
.lab-board > .content-note { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 11px; }
.lab-controls { padding: 21px; background: #fffefa; border: 1px solid var(--line); border-radius: 17px; }
.lab-controls h3 { font-size: 15px; margin-bottom: 6px; }
.lab-controls .muted { font-size: 10px; }
.control-group { padding: 18px 0; border-bottom: 1px solid #e8eddf; }
.control-group:last-child { border-bottom: 0; padding-bottom: 0; }
.control-group .field-label { margin-bottom: 10px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 12px; }
.switch-toggle { position: relative; flex: 0 0 45px; width: 45px; height: 26px; border: 1px solid #d7decf; background: #dce3d5; border-radius: 99px; transition: background .2s, border-color .2s; }
.switch-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #3c502325; transition: transform .2s; }
.switch-toggle.on { background: var(--green); border-color: var(--green); }
.switch-toggle.on::after { transform: translateX(19px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { display: block; font-size: 11px; font-weight: 700; color: #68795c; }
.input, .select { width: 100%; min-height: 43px; border: 1px solid #dce4d3; background: #fafcf5; border-radius: 9px; padding: 9px 12px; color: #40533a; }
.input:focus, .select:focus { border-color: var(--green); background: #fffefa; }
.input::placeholder { color: #a2ac99; }
.input[type="range"] { padding: 0; accent-color: var(--green); }
.input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: var(--green); }
.wire { fill: none; stroke: #adbbaa; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.wire.powered { stroke: #d0a329; }
.lamp { fill: #f3efdc; stroke: #d5d0b9; stroke-width: 2; transition: fill .3s, filter .3s; }
.lamp.lit { fill: #ffdc64; stroke: #e6b840; filter: drop-shadow(0 0 14px #ffc629aa); }
.flow-dot { fill: #f3ca48; opacity: 0; }
.powered .flow-dot, .flow-dot.powered { opacity: 1; animation: flow-pulse 1.5s ease-in-out infinite; }
.circuit-svg text { font-family: 'DM Sans', 'Nirmala UI', sans-serif; fill: #5b7650; }
.quiz-shell { width: min(100%, 770px); margin: 0 auto; padding: 31px; background: #fffefa; border: 1px solid var(--line); border-radius: 20px; }
.quiz-shell h2 { font-size: 24px; letter-spacing: -.6px; line-height: 1.45; margin: 25px 0 20px; }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #7b8d6b; font-size: 10px; font-weight: 700; }
.quiz-progress .progress-track { width: 60%; margin-top: 0; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 23px 0; }
.quiz-option { min-height: 74px; display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #dce4d3; background: #f8faf3; border-radius: 12px; text-align: left; color: #647956; font-size: 12px; font-weight: 600; transition: border-color .18s, background .18s, transform .18s; }
.quiz-option:hover { border-color: #92b583; background: #f0f6e9; transform: translateY(-2px); }
.quiz-option > span:first-child { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; background: #edf2e5; border-radius: 7px; color: #92a281; font-size: 10px; font-weight: 800; }
.quiz-option.selected { background: #e8f1dd; border-color: var(--green); color: #365e2e; }
.quiz-option.selected > span:first-child { background: var(--green); color: #fff; }
.quiz-option.correct { background: #e4f2df; border-color: #73a563; color: #365e2e; }
.quiz-option.wrong { background: #ffede3; border-color: #e2a681; color: #a2613b; }
.quiz-option.correct > span:first-child { background: #437e36; color: #fff; }
.quiz-option.wrong > span:first-child { background: #cb7a51; color: #fff; }
.result-panel { text-align: center; padding: 27px 15px; }
.result-panel h2 { margin: 15px 0 10px; }
.result-panel .result-icon { width: 74px; height: 74px; margin: 0 auto; display: grid; place-items: center; border-radius: 24px; background: #f8df90; font-size: 35px; }
.result-panel .hero-actions { justify-content: center; }
.result-panel .stats-row { margin-top: 25px; }
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.teacher-card { background: #fffefa; border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.teacher-card h3 { font-size: 18px; letter-spacing: -.5px; }
.teacher-card p { margin-top: 10px; color: #7a8a6c; font-size: 12px; }
.teacher-card .button { margin-top: 19px; }
.worksheet { background: #fffefa; border: 1px solid #dbe3d1; border-radius: 15px; padding: 24px; margin-top: 20px; }
.worksheet h2 { font-size: 23px; }
.worksheet h3 { font-size: 14px; margin: 20px 0 9px; }
.worksheet ol, .worksheet ul { padding-left: 21px; color: #637657; }
.worksheet li { margin: 8px 0; }
.worksheet input, .worksheet textarea { width: 100%; border: 0; border-bottom: 1px solid #cad5bd; background: transparent; padding: 10px 0; }
.checklist { display: flex; flex-direction: column; gap: 10px; margin-top: 19px; }
.checklist label, .checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; background: #f0f5e9; border-radius: 8px; color: #658053; font-size: 11px; }
.checklist input { accent-color: var(--green); width: 17px; height: 17px; flex: 0 0 17px; }
.journal-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 25px; background: #fffefa; border: 1px dashed #cddbbf; border-radius: 18px; }
.journal-empty > svg { width: 56px; height: 56px; padding: 13px; background: #e7f0dc; color: var(--green); border-radius: 17px; margin-bottom: 17px; }
.journal-empty h3 { font-size: 20px; margin-bottom: 9px; }
.journal-empty p { max-width: 330px; color: #829375; font-size: 12px; }
.journal-empty .button { margin-top: 21px; }
.journal-entry { margin-bottom: 15px; padding: 23px; background: #fffefa; border: 1px solid var(--line); border-radius: 16px; }
.journal-entry h3 { margin-bottom: 8px; font-size: 16px; }
.journal-entry p { margin: 12px 0; color: #718561; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.journal-entry small { color: #9aa78f; font-size: 10px; }
.toast { position: fixed; z-index: 100; bottom: 24px; left: calc(50% + var(--sidebar-width)/2); transform: translate(-50%, 25px); width: max-content; max-width: min(440px, calc(100% - 30px)); background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 20px; box-shadow: 0 8px 30px #18302d25; font-size: 12px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: #11261fb3; backdrop-filter: blur(6px); }
.modal { position: relative; width: min(100%, 520px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 31px; background: #fffefa; border: 1px solid #f4f7ed; border-radius: 22px; box-shadow: 0 30px 100px #0c241950; }
.modal h2 { font-size: 24px; letter-spacing: -.7px; margin-bottom: 11px; }
.modal p { color: #748668; font-size: 12px; margin-bottom: 20px; }
.modal-close { position: absolute; top: 13px; right: 13px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: #f0f4e8; border-radius: 50%; color: #839375; font-size: 21px; }
.modal-close:hover { background: #e3ecd6; color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.content-note { color: #8b997d; font-size: 10px; line-height: 1.8; }
.footer-note { color: #9ba58f; font-size: 9px; line-height: 1.7; }
.content > .footer-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #e2e8d9; }
.content > .footer-note svg { width: 13px; height: 13px; }
.mobile-nav { display: none; }

/* The classroom studio: teaching, making and small moments of reward. */
.skip-link { position: fixed; z-index: 150; left: 18px; top: -80px; padding: 13px 18px; color: #fff; background: var(--green); border-radius: 9px; font-weight: 700; }
.skip-link:focus { top: 14px; }
.modal-open { overflow: hidden; }
.brand-copy strong { font-size: 9px; letter-spacing: 1.85px; }
.brand-copy > span { font-family: 'Manrope', 'Nirmala UI', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.9px; }
.brand-copy .brand-dot { color: var(--orange); }
.sidebar-label { padding: 0 10px; margin: -14px 0 21px; color: #96a28b; font-size: 8px; letter-spacing: 1.2px; }
.nav-new { margin-left: auto; padding: 2px 4px; background: #e4efd6; color: #71955c; border-radius: 4px; font-size: 7px; font-weight: 800; letter-spacing: .6px; }
.nav-button.active .nav-new { background: #ffffff25; color: #dbedc3; }
.profile-chip > span:last-child { display: flex; flex-direction: column; }
.avatar svg { width: 16px; height: 16px; }
.grade-picker { align-items: center; width: fit-content; margin: -8px 0 23px; }
.grade-picker > span { padding: 0 9px; color: #85947a; font-size: 10px; font-weight: 600; }
.stats-row:has(> .stat-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-value small { font-size: 11px; font-family: 'DM Sans', sans-serif; color: #98a18c; font-weight: 500; letter-spacing: 0; }
.mission-grid:has(> .mission-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mission-grid:has(> .mission-card:first-child:last-child) { grid-template-columns: 1fr; max-width: 480px; }
.mission-body > .tag { font-size: 7px; font-weight: 800; letter-spacing: .65px; margin-bottom: 9px; }
.mission-art > svg { color: #487d61; width: 64px; height: 64px; stroke-width: 1.1; }
.mission-art.yellow > svg { color: #a28d46; }
.mission-art.peach > svg { color: #b57652; }
.xp-label { display: inline-flex; align-items: center; gap: 4px; }
.xp-label svg { width: 13px; height: 13px; }
.journey-list { position: relative; display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 11px; padding: 1px 0 0; }
.journey-list::before { content: ''; position: absolute; left: 28px; top: 23px; bottom: 23px; border-left: 2px dashed #dbe5cc; }
.journey-step { z-index: 1; width: 100%; min-height: 67px; display: flex; flex-direction: row; align-items: center; gap: 13px; padding: 10px 12px; text-align: left; border: 1px solid #e3e9da; border-radius: 12px; background: #fafbf5; color: #819272; font-size: 11px; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; }
.journey-step:not(:last-child)::after { display: none; }
.journey-step:hover { background: #f0f5e6; border-color: #b8cda6; transform: translateX(2px); }
.journey-step .step-number { position: relative; margin: 0; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 10px; box-shadow: 0 3px 0 #dde5d2; }
.journey-step > span:nth-child(2) { flex: 1; min-width: 0; }
.journey-step strong { display: block; font-size: 11px; font-weight: 700; }
.journey-step small { display: block; color: #97a48b; font-size: 8px; margin-top: 3px; font-weight: 400; }
.journey-step > svg { width: 14px; height: 14px; color: #a4b498; flex: 0 0 14px; }
.journey-step.done .step-number { box-shadow: 0 3px 0 #105244; }
.journey-step.current { border-color: #d8dfbb; background: #f7f8e8; }
.journey-step.current .step-number { color: #8a6b25; border-color: #e3c46c; box-shadow: 0 3px 0 #d6b955, 0 0 0 3px #faedc8; }
.journey-step.current > svg { color: #a48b42; }
.badge-row { margin: 23px 0 18px; }
.badge > span > svg { width: 25px; height: 25px; }
.badge > small { display: block; font-size: 8px; }
.badge > svg { width: 13px; height: 13px; margin: 5px auto 0; border-radius: 50%; padding: 1px; }
.activity-panel > .muted { font-size: 10px; line-height: 1.8; max-width: 290px; }
.component-grid { margin-bottom: 25px; }
.component-card { text-align: left; align-items: flex-start; }
.component-card h2 { font-size: 14px; margin: 10px 0 7px; font-weight: 800; letter-spacing: -.3px; }
.component-card .component-symbol > svg { width: 43px; height: 43px; }
.component-card .inline-link { padding-top: 14px; margin-top: auto; }
.component-card .tag { margin-top: 0; font-size: 7px; letter-spacing: .3px; }
.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.source-links a { padding: 8px 11px; background: #eef4e6; border: 1px solid #e1e9d7; border-radius: 7px; color: #6e875b; font-size: 10px; font-weight: 600; }
.source-links a:hover { background: #e0ecd2; color: var(--green); }
.journey-panel > .muted { font-size: 11px; line-height: 1.8; margin-top: 10px; }
.kit-intro { align-items: center; padding: 20px; margin: 0 0 24px; background: #e9f1df; }
.kit-intro > svg { flex-basis: 25px; width: 25px; height: 25px; margin-right: 3px; }
.kit-intro > div { flex: 1; }
.kit-intro > div > strong { font-size: 12px; }
.kit-intro > div > p { font-size: 11px; margin-top: 4px; max-width: 650px; }
.kit-intro > .button { flex: 0 0 auto; margin-left: 10px; }
.kit-showcase { margin: 0 0 29px; }
.kit-showcase .section-heading { margin-bottom: 16px; }
.kit-showcase h2 { font-size: 21px; font-weight: 800; letter-spacing: -.65px; }
.kit-showcase .section-heading .muted { max-width: 670px; color: #7a8b6c; font-size: 11px; line-height: 1.75; margin-top: 7px; }
.kit-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; align-items: stretch; }
.kit-photo { margin: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #f6f5ef; border: 1px solid #e1e7d8; border-radius: 16px; box-shadow: 0 3px 12px #24412f05; }
.kit-photo-board { grid-column: span 2; }
.kit-photo img { width: 100%; height: clamp(215px, 20vw, 270px); object-fit: contain; padding: 12px 8px 7px; background: #f6f5ef; }
.kit-photo-board img { padding: 0; }
.kit-photo figcaption { display: flex; flex-direction: column; gap: 5px; min-height: 72px; margin-top: auto; padding: 15px 17px; border-top: 1px solid #e7ebdf; background: #fffdf6; }
.kit-photo figcaption strong { color: #3b5733; font-family: 'Manrope', 'Nirmala UI', sans-serif; font-size: 12px; font-weight: 800; line-height: 1.45; letter-spacing: -.2px; }
.kit-photo figcaption span { color: #819274; font-size: 10px; line-height: 1.65; }
.lesson-panel > .chip-row { margin: 0 0 14px; }
.lesson-step { align-items: flex-start; gap: 13px; padding: 21px 0; border-bottom: 1px solid #e9eedf; color: var(--ink); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.lesson-step:last-of-type { border-bottom: 0; }
.lesson-step > .step-number { flex: 0 0 29px; width: 29px; height: 29px; margin-top: 2px; border-radius: 9px; color: #729161; background: #eff4e7; font-size: 10px; }
.lesson-step h3 { margin: 0 0 7px; color: #435d36; font-size: 14px; font-weight: 800; }
.lesson-step p { margin-top: 0; }
.modal .lesson-step { padding: 16px 0; }
.modal .lesson-step p { margin: 0; font-size: 12px; line-height: 1.8; }
.modal > .component-symbol { width: 85px; height: 75px; margin-bottom: 17px; }
.modal > .component-symbol > svg { width: 39px; height: 39px; }
.lab-board > .section-heading { padding: 20px 21px 0; margin-bottom: 15px; }
.lab-board .lab-toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 7px; padding: 0 21px 18px; }
.lab-board > .callout { margin: 18px 21px 0; }
.lab-board > .hero-actions { padding: 0 21px 21px; margin-top: 17px; }
.lab-board .button.small { font-size: 9px; }
.lab-controls > .eyebrow { margin-bottom: 6px; }
.lab-controls > .section-title { margin-bottom: 5px; }
.lab-controls > .content-note { padding-top: 17px; font-size: 9px; }
.lab-controls > .inline-link { margin-top: 10px; font-size: 9px; }
.switch-toggle { width: 100%; height: auto; min-height: 36px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; color: #829271; font-size: 10px; font-weight: 600; text-align: left; }
.switch-toggle::before, .switch-toggle::after { display: none; }
.switch-toggle > span { position: relative; width: 42px; height: 25px; flex: 0 0 42px; border: 1px solid #d9e0cf; border-radius: 99px; background: #dce3d5; transition: background .2s, border-color .2s; }
.switch-toggle > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #3c502325; transition: transform .2s; }
.switch-toggle.on { background: transparent; border: 0; color: var(--green); }
.switch-toggle.on > span { background: var(--green); border-color: var(--green); }
.switch-toggle.on > span::after { transform: translateX(17px); }
.circuit-svg path.flow-dot { fill: none; opacity: 1; animation: current-flow 2s linear infinite; }
.journal-panel { margin-top: 25px; }
.note-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 13px; align-items: end; }
.note-form > label { grid-column: 1/-1; font-size: 10px; }
.note-form > textarea { width: 100%; min-height: 74px; padding: 12px; resize: vertical; color: #536b45; font-size: 11px; }
.note-form > .button { margin-bottom: 1px; }
.journal-list { margin-top: 20px; }
.journal-list > .journal-empty { padding: 16px; border: 1px dashed #dce5d0; background: #f6f9ef; border-radius: 10px; font-size: 11px; }
.journal-entry { padding: 15px 17px; background: #f6f9ef; border-color: #e2e9d8; border-radius: 11px; }
.journal-entry p { margin: 8px 0 0; font-size: 11px; }
.journal-panel > small { display: block; font-size: 9px; margin-top: 13px; }
.quiz-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 26px 30px; margin-bottom: 25px; background: #f5ebc5; border: 1px solid #eae0b4; border-radius: 18px; }
.quiz-banner::after { content: '?'; position: absolute; right: 19%; top: -43px; transform: rotate(15deg); color: #e7d38b55; font-family: 'Manrope', sans-serif; font-size: 175px; font-weight: 800; line-height: 1; pointer-events: none; }
.quiz-banner .eyebrow { color: #ad9147; }
.quiz-banner .section-title { position: relative; font-size: 23px; letter-spacing: -.8px; }
.quiz-banner .muted { position: relative; font-size: 11px; margin-top: 6px; color: #a3935d; }
.quiz-banner > .button { position: relative; z-index: 1; white-space: nowrap; }
.quiz-shell { margin-bottom: 26px; scroll-margin-top: 20px; }
.quiz-shell > .section-heading { margin-bottom: 13px; }
.quiz-shell > h2.section-title { font-size: 23px; }
.result-panel .result-icon { color: #9b761d; }
.result-panel .result-icon svg { width: 42px; height: 42px; }
.result-panel > .eyebrow { margin-top: 24px; }
.result-panel > p { color: #8b987b; font-size: 12px; margin: 14px auto; max-width: 420px; }
.result-panel > p.xp-label { color: #ac8733; }
.result-panel > .button { margin-top: 8px; }
.teacher-card h3 { margin-top: 23px; font-size: 13px; }
.teacher-grid > div { display: grid; grid-template-columns: 1fr; gap: 19px; align-content: start; }
.teacher-card > .content-note { margin-top: 17px; font-size: 9px; }
.teacher-card .callout p { margin-top: 5px; font-size: 11px; color: inherit; }
.teacher-card .button { margin-top: 0; }
.teacher-steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: teacher-step; }
.teacher-steps li { position: relative; min-height: 28px; padding: 0 0 14px 35px; color: #7a8b6c; font-size: 11px; line-height: 1.8; counter-increment: teacher-step; }
.teacher-steps li::before { content: counter(teacher-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 25px; background: #edf3e3; border: 1px solid #e0e8d4; border-radius: 7px; color: #87a06e; font-size: 9px; font-weight: 800; }
.timer-card { padding: 26px; background: #eaf1df; border-color: #dbe5cc; }
.timer-card .eyebrow { color: #7b9368; }
.timer-display { font-family: 'Manrope', sans-serif; font-variant-numeric: tabular-nums; font-size: 68px; font-weight: 800; letter-spacing: -3px; line-height: 1.3; margin-top: 11px; color: #3b6845; }
.timer-card > .muted { margin-top: 6px; font-size: 11px; }
.timer-card .hero-actions { margin-top: 21px; }
.timer-card > .field-label { margin-top: 23px; margin-bottom: 7px; font-size: 10px; }
.timer-card > .input { width: 95px; display: inline-block; margin-right: 10px; background: #f8fbee; font-size: 12px; }
.worksheet { box-shadow: 0 4px 12px #183f2805; margin-top: 24px; padding: 30px; }
.worksheet .eyebrow { display: block; margin-bottom: 11px; }
.worksheet p { font-size: 11px; color: #819174; margin-top: 12px; }
.worksheet h3 { font-size: 13px; margin-top: 24px; }
.writing-lines { height: 82px; background: repeating-linear-gradient(transparent, transparent 26px, #e2e8d8 26px, #e2e8d8 27px); }
.drawing-space { height: 160px; margin: 14px 0 22px; border: 1px dashed #dce5d1; border-radius: 10px; background: #fcfdf8; }
.worksheet > small { font-size: 9px; color: #9eaa93; display: block; line-height: 1.8; margin-top: 20px; }

@keyframes current-flow { from { stroke-dashoffset: 56; } to { stroke-dashoffset: 0; } }

@keyframes page-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flow-pulse { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

@media (min-width: 1500px) {
  .content { padding-top: 40px; }
  .hero { min-height: 325px; }
  .hero-copy { padding-left: 38px; }
  .hero-art { max-height: 325px; }
  .mission-art { height: 146px; }
}
@media (max-width: 1150px) {
  .content { padding-right: 28px; padding-left: 28px; }
  .topbar { padding: 0 28px; }
  .hero-title { font-size: 35px; }
  .hero-copy { padding-left: 25px; }
  .hero-text { font-size: 10px; max-width: 300px; }
  .component-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-card { gap: 9px; padding: 15px 12px; }
  .stat-icon { width: 33px; height: 33px; flex-basis: 33px; }
  .stat-value { font-size: 19px; }
}
@media (max-width: 1050px) {
  :root { --sidebar-width: 200px; }
  .sidebar { padding: 25px 14px 17px; }
  .brand { padding: 0 5px; gap: 8px; }
  .brand-mark { width: 35px; height: 38px; flex-basis: 35px; border-radius: 12px 12px 12px 4px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { font-size: 8px; letter-spacing: 1.2px; }
  .brand-copy strong { font-size: 8px; letter-spacing: 1.4px; }
  .brand-copy > span { font-size: 22px; }
  .nav-button { padding: 11px 12px; font-size: 12px; gap: 9px; }
  .content { padding: 28px 23px; }
  .topbar { padding: 0 23px; height: 77px; }
  .hero { min-height: 275px; }
  .hero-title { font-size: 31px; }
  .hero-copy { padding: 24px 0 24px 22px; }
  .hero-text { max-width: 275px; }
  .hero-art { padding: 0; }
  .hero-actions { gap: 6px; }
  .hero-actions .button { padding: 10px 13px; font-size: 10px; }
  .stats-row { gap: 9px; }
  .stat-card { padding: 14px 10px; gap: 8px; }
  .stat-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-label { font-size: 8px; }
  .mission-grid { gap: 12px; }
  .mission-body { padding: 13px; }
  .mission-title { font-size: 12px; }
  .dashboard-grid { gap: 13px; }
  .journey-panel, .activity-panel { padding: 17px; }
  .badge-row { gap: 12px; }
  .lesson-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 15px; }
  .lesson-panel { padding: 25px; }
  .lab-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 15px; }
  .lab-controls { padding: 18px; }
  .lab-board .circuit-svg { min-height: 305px; }
  .lab-toolbar .button.small { font-size: 8px; padding: 8px 9px; }
  .timer-display { font-size: 58px; }
  .kit-photo-grid { gap: 12px; }
  .kit-photo figcaption { padding: 13px 14px; }
  .kit-photo figcaption strong { font-size: 11px; }
  .kit-photo figcaption span { font-size: 9px; }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 232px; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); visibility:hidden; transition: transform .25s; box-shadow: none; }
  .app-shell.menu-open .sidebar { transform: translateX(0); visibility:visible; box-shadow: 10px 0 45px #15342528; }
  .sidebar-close { display:grid; place-items:center; position:absolute; top:8px; right:8px; width:44px; height:44px; padding:0; border:0; border-radius:10px; background:#edf2e7; color:var(--green); }
  .app-shell.menu-open::after { content: ''; position: fixed; inset: 0; z-index: 29; background: #142b2666; backdrop-filter: blur(2px); }
  .main { width: 100%; }
  .topbar { height: 74px; padding: 0 23px; gap: 12px; }
  .mobile-menu { display: flex; flex: 0 0 44px; width: 44px; height: 44px; }
  .breadcrumbs { margin-right: auto; }
  .topbar-actions { gap: 13px; }
  .profile-chip { padding-left: 13px; }
  .content { padding: 27px 23px; }
  .hero { min-height: 290px; }
  .hero-title { font-size: 36px; }
  .hero-art { max-height: 290px; }
  .hero-text { max-width: 315px; }
  .stats-row { gap: 12px; }
  .stat-card { padding: 17px 12px; }
  .stat-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .stat-value { font-size: 21px; }
  .stat-label { font-size: 9px; }
  .toast { left: 50%; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-list { display: grid; grid-template-columns: 1fr 1fr; }
  .lesson-button { min-height: 59px; }
  .lesson-panel { min-height: auto; }
  .lab-layout { grid-template-columns: 1fr; }
  .lab-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .lab-controls > h3, .lab-controls > h2, .lab-controls > .eyebrow, .lab-controls > .muted, .lab-controls > .callout, .lab-controls > .button, .lab-controls > .content-note, .lab-controls > .inline-link { grid-column: 1/-1; }
  .lab-controls .control-group:last-child { padding-bottom: 18px; }
  .grade-button { min-width: 44px; min-height: 44px; }
  .button, .button.small, .inline-link { min-height: 44px; }
  .switch-toggle::before { content: ''; position: absolute; inset: -9px -3px; border-radius: 99px; }
  .switch-toggle { min-height: 44px; }
  .input, .select { min-height: 44px; }
  .language-button { min-height: 44px; }
  .tab { min-height: 44px; }
  .quiz-progress .progress-track { width: 55%; }
}
@media (max-width: 600px) {
  .topbar { height: 67px; padding: 0 17px; }
  .breadcrumbs { font-size: 10px; }
  .breadcrumbs > span { display: none; }
  .topbar-actions { gap: 8px; }
  .language-button { padding: 5px 3px; font-size: 11px; }
  .profile-chip { padding-left: 9px; gap: 0; }
  .profile-chip > div { display: none; }
  .profile-chip > span:last-child { display: none; }
  .avatar { width: 32px; height: 32px; }
  .content { padding: 25px 17px; }
  .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .page-title { font-size: 28px; letter-spacing: -1px; }
  .page-heading .muted { font-size: 11px; }
  .page-heading > .pill { margin-top: 1px; font-size: 8px; padding: 6px 8px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.5px; }
  .hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; margin-bottom: 17px; }
  .hero-copy { padding: 25px 23px 0; }
  .hero-title { max-width: 380px; font-size: 35px; line-height: 1.16; }
  .hero-text { max-width: 370px; font-size: 11px; }
  .hero-kicker { font-size: 8px; }
  .hero-actions { gap: 8px; margin-top: 19px; }
  .hero-actions .button { font-size: 11px; padding: 11px 15px; }
  .hero-meta { font-size: 9px; gap: 15px; margin-top: 12px; }
  .hero-art { width: 100%; max-height: 235px; margin-top: -6px; padding: 0 10px; }
  .hero-art img { max-height: 235px; }
  .hero::before { width: 320px; height: 320px; top: auto; bottom: -110px; right: -42px; }
  .hero::after { width: 230px; height: 230px; top: auto; bottom: -65px; right: 2px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
  .stats-row:has(> .stat-card:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .stats-row:has(> .stat-card:nth-child(3):last-child) .stat-card { flex-direction: column; align-items: flex-start; padding: 13px 11px; gap: 8px; }
  .stats-row:has(> .stat-card:nth-child(3):last-child) .stat-label { font-size: 8px; line-height: 1.5; }
  .stat-card { padding: 15px 12px; border-radius: 12px; gap: 10px; }
  .stat-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 9px; }
  .section-heading { gap: 12px; align-items: flex-start; margin-bottom: 14px; }
  .section-title { font-size: 17px; }
  .grade-picker { gap: 2px; padding: 3px; }
  .grade-button { padding: 7px 8px; min-height: 44px; font-size: 9px; }
  .mission-grid, .mission-grid:has(> .mission-card:nth-child(2):last-child) { grid-template-columns: 1fr; gap: 15px; }
  .mission-art { height: 150px; }
  .mission-art svg { height: 129px; width: 160px; }
  .mission-art > svg { width: 78px; height: 78px; }
  .mission-number { font-size: 9px; padding: 5px 8px; top: 14px; left: 14px; }
  .mission-body { padding: 17px; }
  .mission-title { font-size: 16px; }
  .mission-description { min-height: auto; font-size: 11px; max-width: 95%; }
  .mission-footer { padding-top: 13px; margin-top: 14px; }
  .tag { font-size: 9px; padding: 4px 7px; }
  .xp-label, .mission-footer .inline-link { font-size: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 15px; }
  .journey-panel, .activity-panel { padding: 20px; }
  .badge-row { justify-content: space-around; gap: 14px; }
  .badge { width: 65px; font-size: 9px; }
  .badge > span, .badge > div, .badge > svg { width: 49px; height: 49px; }
  .component-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .component-card { padding: 15px; min-height: 230px; border-radius: 14px; }
  .component-symbol { height: 80px; margin-bottom: 14px; }
  .component-card h3 { font-size: 13px; }
  .component-card h2 { font-size: 13px; }
  .component-card p { font-size: 10px; }
  .tabs { gap: 1px; padding: 4px; width: 100%; }
  .tab { flex: 1; padding: 10px 8px; font-size: 10px; }
  .lesson-list { gap: 9px; }
  .lesson-button { padding: 11px; gap: 8px; font-size: 10px; min-height: 68px; }
  .lesson-button .step-number { width: 24px; height: 24px; flex-basis: 24px; }
  .lesson-button small { font-size: 8px; }
  .lesson-panel { padding: 23px; border-radius: 17px; }
  .lesson-panel h2 { font-size: 24px; }
  .lesson-panel p { font-size: 12px; }
  .lesson-panel h3 { font-size: 15px; }
  .lab-controls { display: block; padding: 21px; }
  .lab-board .circuit-svg { min-height: 250px; padding: 9px; }
  .lab-toolbar { padding: 14px 15px; }
  .lab-toolbar strong { font-size: 10px; }
  .lab-toolbar .pill { font-size: 8px; padding: 5px 7px; }
  .lab-board > .content-note { padding: 13px 16px; font-size: 10px; }
  .quiz-shell { padding: 23px 20px; border-radius: 17px; }
  .quiz-shell h2 { font-size: 21px; margin: 22px 0 18px; }
  .quiz-options { grid-template-columns: 1fr; gap: 10px; }
  .quiz-option { min-height: 63px; font-size: 12px; }
  .quiz-progress { font-size: 9px; }
  .quiz-progress .progress-track { width: 50%; }
  .teacher-grid { grid-template-columns: 1fr; }
  .kit-intro { flex-wrap: wrap; gap: 11px; padding: 18px; }
  .kit-intro > .button { margin: 4px 0 0 35px; }
  .kit-intro > div { min-width: calc(100% - 50px); }
  .kit-showcase { margin-bottom: 25px; }
  .kit-showcase h2 { font-size: 20px; }
  .kit-showcase .section-heading .muted { font-size: 10px; }
  .kit-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kit-photo { border-radius: 13px; }
  .kit-photo-board { grid-column: 1/-1; }
  .kit-photo img { height: 156px; padding: 8px; }
  .kit-photo-board img { height: auto; aspect-ratio: 1.7; padding: 0; }
  .kit-photo figcaption { min-height: 68px; padding: 12px 13px; gap: 4px; }
  .kit-photo figcaption strong { font-size: 11px; }
  .kit-photo figcaption span { font-size: 9px; }
  .kit-photo-board figcaption strong { font-size: 12px; }
  .kit-photo-board figcaption span { font-size: 10px; }
  .quiz-banner { align-items: flex-start; flex-direction: column; gap: 19px; padding: 23px; }
  .quiz-banner::after { right: 5px; top: 18px; font-size: 145px; }
  .quiz-banner .section-title { font-size: 23px; }
  .quiz-banner .muted { font-size: 11px; max-width: 85%; }
  .note-form { grid-template-columns: 1fr; gap: 9px; }
  .note-form > .button { justify-self: start; margin-top: 2px; }
  .journal-panel { padding: 20px; }
  .source-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .grade-picker > span { font-size: 9px; padding: 0 6px; }
  .timer-display { font-size: 65px; }
  .journey-step small { font-size: 9px; }
  .teacher-card { padding: 22px; }
  .teacher-card h3 { font-size: 18px; }
  .worksheet { padding: 21px; }
  .worksheet p { font-size: 10px; }
  .journal-empty { padding: 45px 23px; }
  .journal-empty h3 { font-size: 19px; }
  .modal-overlay { padding: 17px; }
  .modal { padding: 27px 22px; border-radius: 18px; }
  .modal h2 { font-size: 22px; padding-right: 21px; }
  .modal-close { width: 44px; height: 44px; top: 8px; right: 8px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { flex: 1; }
  .hide-mobile { display: none !important; }
  .content > .footer-note { flex-wrap: wrap; text-align: center; font-size: 8px; }
}
@media (max-width: 370px) {
  .content { padding-right: 13px; padding-left: 13px; }
  .topbar { padding: 0 13px; }
  .hero-copy { padding-left: 19px; padding-right: 19px; }
  .hero-title { font-size: 32px; }
  .hero-actions .button { padding-right: 11px; padding-left: 11px; font-size: 10px; }
  .page-title { font-size: 26px; }
  .stat-card { padding: 13px 10px; gap: 8px; }
  .stat-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .component-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: white; color: #111; font-family: 'Nirmala UI', Arial, sans-serif; }
  .app-shell { display: block; }
  .sidebar, .topbar, .page-heading, .tabs, .toast, .modal-overlay, .footer-note, .worksheet .button, .hero-actions, .teacher-grid, .mobile-nav, .no-print { display: none !important; }
  .main { margin: 0; }
  .content { width: 100%; max-width: none; margin: 0; padding: 0; }
  .content > *:not(.worksheet) { display: none !important; }
  .worksheet, #print-sheet { display: block !important; border: 0; border-radius: 0; margin: 0; padding: 0; box-shadow: none; background: #fff; }
  .worksheet .eyebrow { display: block !important; color: #445b3e; font-size: 8pt; }
  .worksheet h2 { font-size: 22pt; }
  .worksheet h3 { font-size: 12pt; margin-top: 18pt; }
  .worksheet p, .worksheet li { font-size: 10pt; color: #333; }
  .worksheet .field { page-break-inside: avoid; }
  .writing-lines { height: 26mm; background: none; border-bottom: 1px solid #a9b4a2; background-image: repeating-linear-gradient(transparent, transparent 8mm, #bcc7b5 8mm, #bcc7b5 8.2mm); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .drawing-space { height: 48mm; margin: 4mm 0; border: 1px solid #acb8a4; border-radius: 2mm; background: none; break-inside: avoid; }
  .worksheet > small { font-size: 8pt; color: #555; margin-top: 4mm; }
  @page { size: A4; margin: 18mm; }
}

/* Full kit project catalogue. */
.project-library { margin: 38px 0; }
.project-library > .muted { margin: -6px 0 20px; }
.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.project-item { display:flex; align-items:center; gap:12px; min-height:92px; border:1px solid var(--line); background:#fff; border-radius:14px; padding:15px; transition:transform .18s,border-color .18s; }
.project-item:hover { transform:translateY(-3px); border-color:var(--green); }
.project-item.recommended { background:#e9f2e4; border-color:#cedfc8; }
.project-number { flex:0 0 36px; height:36px; display:grid; place-items:center; background:var(--paper); border-radius:11px; font-weight:800; color:var(--green); }
.project-item > span:nth-child(2) { flex:1; }
.project-item strong { font-size:12px; line-height:1.4; display:block; }
.project-item small { display:block; color:var(--muted); font-size:10px; margin-top:4px; }
.project-item > svg { flex:0 0 16px; }
.mission-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:1050px) { .project-grid {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px) { .project-grid,.mission-grid:has(> :nth-child(4)):not(:has(> :nth-child(5))) {grid-template-columns:1fr;} }
