/* One desktop viewport. Main task controls remain visible; long reference lists scroll inside panels. */
.mission-stage{display:grid;gap:24px}.mission-visuals{min-width:0}.visual-caption h2{font-size:1.2rem;line-height:1.4}.visual-caption>p{font-size:.84rem;color:var(--color-muted);margin:8px 0 16px}.mission-sidebar{min-width:0;border:var(--neo-rule);border-radius:12px;background:var(--neo-paper);box-shadow:var(--neo-shadow-sm);padding:20px}.sidebar-context h2{font-size:1.08rem;margin-bottom:12px}.sidebar-context>p{line-height:1.9}.sidebar-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}.sidebar-tabs,.opinion-tabs{display:flex;gap:8px;margin-bottom:16px}.sidebar-tabs button,.opinion-tabs button{flex:1;border:var(--neo-rule);border-radius:8px;padding:9px 12px;background:var(--neo-paper);font-size:.85rem;font-weight:700;min-height:44px;white-space:nowrap}.sidebar-tabs button[aria-pressed=true],.opinion-tabs button[aria-pressed=true]{background:var(--neo-blue);box-shadow:2px 2px 0 var(--neo-ink)}.choice-tip{margin-top:24px;padding:16px;background:var(--neo-mint);border:var(--neo-rule);border-radius:10px;font-size:.9rem}.choice-tip strong{display:block;margin-bottom:8px}.mission-sidebar .perspectives{margin-top:0}.mission-sidebar .reflection{margin-top:0}.mission-sidebar .reflection>p{font-size:.92rem;margin:12px 0}.mission-sidebar .reflection label{font-size:1.05rem}.mission-sidebar .reflection textarea{margin-top:16px}.first-thought{padding:12px;border:1px solid var(--neo-ink);border-radius:8px;background:var(--neo-mint);font-size:.8rem!important}.mobile-story{font-size:.98rem;line-height:1.85;margin-bottom:20px}.community-stat-panel{min-width:0}.community-workspace{display:grid;gap:28px}.community-workspace>section{min-width:0}.community-stat-panel>select{width:100%}.opinion-tabs{margin-top:16px}.opinion-section[data-opinion-tab=read] #opinion-form{display:none}.opinion-section[data-opinion-tab=write] .opinion-list{display:none}
@media screen and (min-width:60rem){
 html,body.forest-theme{height:100dvh;overflow-y:hidden}
 .forest-theme #shell{height:100dvh;min-height:0;display:flex;flex-direction:column;padding-top:10px;gap:0}
 .forest-theme .topbar{flex:0 0 auto;min-height:64px;padding:8px 18px;margin:0 auto}
 .forest-theme #main{flex:1 1 0;min-height:0;overflow:hidden}
 .forest-theme footer{display:none}
 .forest-theme[data-scene=activity] #main{padding:12px 20px 20px}
 .forest-theme[data-scene=activity] #main>.wrap{height:100%;max-height:100%;min-height:0;overflow:auto;max-width:1400px;padding:20px 24px}
 .forest-theme .landing-stage{height:100%;min-height:0;max-height:100%;padding:20px 5vw;overflow:clip;align-items:center}
 .forest-theme .landing-copy{max-width:550px;max-height:100%;padding:24px 28px}
 .forest-theme .landing-copy h1{font-size:clamp(2.4rem,4.2vw,4.2rem)}
 .forest-theme #main>.journey{display:none}
 .forest-theme .forest-guide-note{bottom:24px}
 .forest-theme[data-scene=activity] #main>.adventure-map{display:flex;flex-direction:column;overflow:hidden}
 .adventure-map .screen-title{flex:0 0 auto;margin-bottom:16px}
 .adventure-map .screen-title .eyebrow{margin-bottom:8px}
 .adventure-map .screen-title h1{font-size:1.65rem}
 .adventure-map .screen-title p{font-size:.85rem;line-height:1.6;margin-top:8px}
 .adventure-map .screen-title p br{display:none}
 .adventure-map .illustrated-journey{flex:1 1 0;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:14px}
 .adventure-map .journey-tile{min-height:0;display:grid;grid-template-rows:minmax(0,1fr) 58px}
 .adventure-map .journey-tile>img{height:100%;width:100%;min-height:0;aspect-ratio:auto;object-fit:cover}
 .adventure-map .journey-copy{padding:7px 12px;min-height:0}
 .adventure-map .journey-copy small{display:block;font-size:.62rem;line-height:1.2}
 .adventure-map .journey-copy strong{font-size:.84rem;margin:4px 0 0;line-height:1.4}
 .adventure-map .journey-copy>span{display:none}
 .adventure-map .journey-number{height:27px;width:27px;font-size:.72rem;left:8px;top:8px}
 .adventure-map>.hero-actions{flex:0 0 auto;margin-top:12px}.adventure-map>.hero-actions .btn{min-height:38px;padding:7px 18px;font-size:.8rem}
 .forest-theme[data-scene=activity] #main>.mission-screen{display:flex;flex-direction:column;overflow:hidden;padding:16px 20px 20px}
 .mission-heading{flex:0 0 auto;min-height:0}
 .forest-theme .mission-heading .path-head{min-height:44px;padding:6px 10px;gap:12px;margin-bottom:8px}
 .forest-theme .mission-heading .path-head .back{width:32px;height:32px;min-height:32px}
 .forest-theme .mission-heading .path-info p{font-size:.73rem;line-height:1.3}
 .forest-theme .mission-heading .progress{margin-top:5px;height:5px}
 .forest-theme .mission-heading .step-count{font-size:.8rem}
 .forest-theme .mission-heading .story-header{display:flex;align-items:center;gap:12px;padding:8px 0 14px;min-height:0}
 .forest-theme .mission-heading .story-header .tag{flex:0 0 auto;margin:0;font-size:.67rem;padding:4px 8px}
 .forest-theme .mission-heading .story-header h1{font-size:clamp(1.25rem,2.05vw,1.8rem);line-height:1.35}
 .mobile-story{display:none}
 .mission-stage{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:20px}
 .mission-visuals{display:flex;flex-direction:column;min-height:0}
 .visual-caption{flex:0 0 auto}.visual-caption h2{font-size:1rem}.visual-caption>p{font-size:.76rem;margin:4px 0 10px}
 .forest-theme .mission-visuals .picture-choices{flex:1 1 0;min-height:0;gap:14px;align-items:stretch}
 .forest-theme .mission-visuals .picture-choice{height:100%;min-height:0;display:flex;flex-direction:column;padding:7px}
 .forest-theme .mission-visuals .generated-scene{flex:1 1 0;min-height:0;height:0;width:100%;aspect-ratio:auto;object-fit:contain;background:var(--neo-paper)}
 .forest-theme .mission-visuals .choice-copy{flex:0 0 auto;padding:12px 7px 10px}
 .forest-theme .mission-visuals .choice-copy strong{font-size:1rem;line-height:1.45}
 .forest-theme .mission-visuals .choice-copy small{font-size:.77rem;line-height:1.55;margin-top:7px}
 .forest-theme .mission-visuals .current-picture{flex:0 0 auto;align-self:flex-start;font-size:.75rem;padding:6px 10px;margin-top:12px;line-height:1.5}
 .mission-sidebar{height:100%;min-height:0;display:flex;flex-direction:column;padding:14px;box-shadow:3px 3px 0 var(--neo-ink)}
 .sidebar-body{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 3px 4px 0}
 .sidebar-context h2{font-size:.98rem;margin-bottom:10px}.sidebar-context>p{font-size:.9rem;line-height:1.8}
 .sidebar-context .more-story{font-size:.78rem}
 .choice-tip{padding:12px;margin-top:18px;font-size:.8rem}
 .sidebar-tabs{flex:0 0 auto;margin-bottom:12px;gap:8px}.sidebar-tabs button{min-height:37px;padding:6px 8px;font-size:.78rem}
 .mission-sidebar .perspectives{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .forest-theme .mission-sidebar .perspective{padding:12px;border-radius:8px;box-shadow:2px 2px 0 var(--neo-ink)}
 .forest-theme .mission-sidebar .perspective strong{font-size:.75rem;margin-bottom:6px}.mission-sidebar .perspective p{font-size:.85rem;line-height:1.65}
 .forest-theme .mission-sidebar .learning{padding:12px;margin-top:12px;border-radius:8px;box-shadow:2px 2px 0 var(--neo-ink);font-size:.8rem;line-height:1.7}.mission-sidebar .learning strong{font-size:.8rem;margin-bottom:6px}
 .mission-sidebar .learning .more-story{font-size:.75rem;margin-top:8px}
 .mission-sidebar .reflection label{font-size:.97rem}.mission-sidebar .reflection>p{font-size:.86rem;line-height:1.65;margin:10px 0}
 .mission-sidebar .reflection textarea{min-height:120px;height:clamp(100px,18vh,180px);font-size:.86rem;padding:12px;margin-top:10px}
 .mission-sidebar .helper{font-size:.65rem;line-height:1.4}.mission-sidebar .prompt-chips{gap:6px;margin:12px 0}.mission-sidebar .prompt-chips button{font-size:.7rem;padding:7px 9px;min-height:34px}.mission-sidebar .first-thought{font-size:.73rem!important;padding:9px;margin-top:12px}.mission-sidebar .little-note{font-size:.73rem;margin-top:10px}
 .sidebar-actions{flex:0 0 auto;display:flex;flex-direction:column;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--color-rule)}
 .forest-theme .sidebar-actions .btn{width:100%;font-size:.85rem;min-height:42px;padding:8px 12px}.sidebar-actions .text-link{font-size:.7rem;min-height:26px;padding:0}
 .forest-theme[data-scene=activity] #main>.community-screen{display:flex;flex-direction:column;overflow:hidden}
 .community-screen>.screen-title{flex:0 0 auto;margin-bottom:14px}.community-screen .screen-title .eyebrow{margin-bottom:8px;font-size:.7rem}.community-screen .screen-title h1{font-size:1.65rem}.community-screen .screen-title p{font-size:.82rem;margin-top:8px;line-height:1.5}.community-screen .screen-title p br{display:none}
 .community-screen>.community-message,.community-screen>.storage-warning{flex:0 0 auto;font-size:.77rem;margin:0 0 12px;padding:10px 14px}
 .community-workspace{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:24px}
 .community-stat-panel{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 8px 0}
 .community-stat-panel>.field-label{font-size:.76rem;margin:0 0 8px}.community-stat-panel>select{font-size:.85rem;min-height:38px;padding:6px 10px}
 .community-stat-panel .community-filters{padding:14px;gap:14px;margin-top:12px;border-radius:10px}.community-stat-panel .community-filters label{font-size:.73rem;gap:5px}.community-stat-panel .community-filters select{font-size:.8rem;min-height:36px;padding:6px 10px}.community-stat-panel .participant-total strong{font-size:2rem}.community-stat-panel .participant-total span{font-size:.74rem}.community-stat-panel .little-note{font-size:.68rem;line-height:1.6;margin-top:12px}
 .community-stat-panel .stat-row{padding:18px 0 8px}.community-stat-panel .stat-row h2{font-size:1.1rem;margin:6px 0 12px}.community-stat-panel .stat-labels{font-size:.82rem}.community-stat-panel .stat-options>p{font-size:.75rem}.community-stat-panel .empty{padding:22px;margin-top:16px}.community-stat-panel .empty h2{font-size:1.2rem}.community-stat-panel .empty p{font-size:.83rem;margin:12px 0}
 .community-workspace .opinion-section{margin:0;padding:14px;border:var(--neo-rule);border-radius:12px;display:flex;flex-direction:column;min-height:0;background:var(--neo-paper);box-shadow:3px 3px 0 var(--neo-ink)}
 .community-workspace .opinion-section>.eyebrow{font-size:.68rem;margin-bottom:6px}.community-workspace .opinion-section>h2{font-size:1.15rem}
 .community-workspace .opinion-tabs{flex:0 0 auto;gap:8px;margin:12px 0}.opinion-tabs button{font-size:.75rem;padding:6px 10px;min-height:36px}
 .community-workspace label[for=opinion-question],.community-workspace #opinion-question{display:none}.community-workspace .opinion-section>.little-note{font-size:.75rem;margin:0 0 12px}
 .community-workspace .opinion-list{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:0 5px 5px 0;align-content:start}.community-workspace .opinion-list blockquote{padding:16px}.community-workspace .opinion-list blockquote p{font-size:.88rem}.community-workspace .opinion-list .empty{padding:20px}.community-workspace .opinion-list .empty p{font-size:.82rem;margin:0}
 .community-workspace #opinion-form{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;margin:0;padding:0 4px 4px 0;border:0;border-radius:0;box-shadow:none}.community-workspace #opinion-form h3{font-size:.95rem}.community-workspace #opinion-form .field-label{font-size:.75rem;margin:10px 0 8px}.community-workspace #public-opinion{min-height:80px;height:100px;padding:10px;font-size:.85rem}.community-workspace #opinion-form .little-note{font-size:.65rem;line-height:1.55;margin-top:8px}.community-workspace .consent{font-size:.72rem;line-height:1.6;margin:12px 0;gap:10px}.community-workspace #opinion-form .btn{font-size:.8rem;min-height:40px;padding:8px 12px}
 .community-screen>.community-manage{flex:0 0 auto;margin:8px 0 0}.community-screen>.community-manage .text-link{font-size:.7rem;min-height:30px;padding:3px 0}
}
@media screen and (min-width:60rem) and (max-height:760px){
 .forest-theme .landing-copy{padding:20px 24px}.forest-theme .landing-kicker{margin-bottom:14px}.forest-theme .landing-copy h1{font-size:clamp(2.2rem,3.6vw,3.4rem)}.forest-theme .landing-description{margin-top:14px;line-height:1.65;font-size:.93rem}.forest-theme .landing-copy .grade-select{margin-top:14px}.forest-theme .landing-copy .hero-actions{margin-top:16px}.forest-theme .landing-note{margin-top:14px}
 .forest-theme[data-scene=activity] #main>.wrap{padding:14px 18px}.forest-theme .mission-heading .story-header{padding:6px 0 10px}.forest-theme .mission-heading .story-header h1{font-size:1.4rem}.mission-stage{gap:16px}.mission-sidebar{padding:12px}.forest-theme .mission-visuals .choice-copy strong{font-size:.92rem}.forest-theme .mission-visuals .choice-copy small{font-size:.7rem}.forest-theme .mission-visuals .choice-copy{padding:10px 5px 8px}.mission-sidebar .perspective p{font-size:.78rem}.forest-theme .mission-sidebar .perspective{padding:10px}.forest-theme .mission-sidebar .learning{font-size:.74rem;padding:10px}.sidebar-tabs{margin-bottom:10px}.sidebar-actions{margin-top:10px;padding-top:10px}.forest-theme .sidebar-actions .btn{min-height:38px;font-size:.8rem}
 .community-screen>.screen-title .eyebrow{display:none}.community-screen>.screen-title p{margin-top:6px}.community-stat-panel .community-filters{padding:10px}.community-stat-panel .stat-row{padding-top:12px}.adventure-map .screen-title p{display:none}.adventure-map .screen-title{margin-bottom:12px}
}
@media(max-width:59.99rem){.mission-sidebar{padding:20px}.phase-choice .sidebar-context{display:none}.mission-sidebar .sidebar-body{overflow:visible}.sidebar-actions .btn{flex:1}.community-workspace .opinion-section{margin-top:12px}.community-stat-panel .stat-row{padding-bottom:20px}.community-screen .community-manage{margin-top:24px}}
