@charset "UTF-8";
/* A map-first classroom adventure. Existing tools keep their own data and handlers. */
body:has(.adventure-shell) { background:#183e3b; }
html body .planning-shell.adventure-shell {
  --quest-ink:#24423b;--quest-muted:#5c6d60;--quest-paper:#fffcf1;
  --quest-line:#d9d0b5;--quest-green:#2d6554;--quest-gold:#f1cf70;
  height:100dvh;min-height:0;overflow:hidden;background:#214b47;color:var(--quest-ink);
}
html body .planning-shell.adventure-shell .topbar {
  position:relative;z-index:60;display:flex;align-items:center;justify-content:space-between;
  height:78px;min-height:78px;padding:0 20px;gap:16px;
  background:#173d3a;border:0;border-bottom:1px solid #8baf9670;box-shadow:0 3px 16px #10272425;
}
html body .planning-shell.adventure-shell .wordmark { flex:0 1 auto;gap:10px;min-width:210px; }
html body .planning-shell.adventure-shell .wordmark strong { font-size:18px;letter-spacing:-.7px;color:#fff9e9; }
html body .planning-shell.adventure-shell .wordmark small { font-size:9px;letter-spacing:1.2px;color:#bdd1bf; }
html body .planning-shell.adventure-shell .wordmark .brand-leaf { width:40px;height:44px;box-shadow:none;border:0;background:transparent;transform:none; }
html body .planning-shell.adventure-shell .rail-links { margin:0;flex:0 1 auto;gap:0;overflow:visible; }
html body .planning-shell.adventure-shell .journey-stepper { display:flex;gap:8px; }
html body .planning-shell.adventure-shell .journey-step { display:flex;gap:9px;align-items:center;min-height:46px;padding:9px 15px;border-radius:12px;border:1px solid #597c68;border-bottom:3px solid #102f2b;background:#28524a;color:#f5f2df;box-shadow:inset 0 1px #ffffff1c;font-size:14px;white-space:nowrap; }
html body .planning-shell.adventure-shell .journey-step.active { background:#f4d77f;color:#293e2d;border-color:#fff1b1;border-bottom-color:#b8953f;box-shadow:inset 0 1px #fff7cd,0 3px 8px #0002; }
html body .planning-shell.adventure-shell .journey-step-number { display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#193f38;color:#fff5cf;flex:none; }
html body .planning-shell.adventure-shell .journey-step-title { display:block; }
html body .planning-shell.adventure-shell .journey-step::after { display:none!important;content:none; }
html body .planning-shell.adventure-shell:not(.has-learning-journey) .rail-links { visibility:hidden; }
html body .planning-shell.adventure-shell .workspace>.project-heading { display:none; }
html body .planning-shell.adventure-shell .journey-step[aria-disabled=true] { opacity:1;color:#c1cfc2;background:#254740;border-color:#3c6252; }
html body .planning-shell.adventure-shell .topbar-right { gap:8px;margin:0; }
html body .planning-shell.adventure-shell .player-profile { min-height:42px;padding:5px 8px;background:#244f46;border:1px solid #648471;border-radius:12px;color:#fff9e9; }
html body .planning-shell.adventure-shell .player-profile small { display:none; }
html body .planning-shell.adventure-shell .player-profile .avatar { width:29px;height:29px;background:#e8d7a6;color:#284938; }
html body .planning-shell.adventure-shell .player-profile b { color:#fff9e9;font-size:12px;max-width:100px;overflow:hidden;text-overflow:ellipsis; }
html body .planning-shell.adventure-shell .teacher-shortcut,html body .planning-shell.adventure-shell .preview-pill { display:none; }
html body .planning-shell.adventure-shell :is(.journey-help-launcher,.journey-tools) { display:none; }
html body .planning-shell.adventure-shell .save-status { position:static;inset:auto;font-size:10px;color:#d7e6d8;white-space:nowrap;background:transparent;border:0;box-shadow:none; }
html body .planning-shell.adventure-shell #save-project { min-height:38px;background:#f7edcc;color:#27483d;border:1px solid #d9c68d;border-radius:10px;font-size:12px;padding:7px 11px; }
html body .planning-shell.adventure-shell .workspace {
  display:block!important;position:relative;inset:auto;width:100%;height:calc(100dvh - 78px)!important;
  min-height:0!important;max-height:none;margin:0;padding:0!important;overflow:hidden;background:#b3cec0;
}
html body .planning-shell.adventure-shell .studio-grid { display:contents; }
html body .planning-shell.adventure-shell .map-panel { position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none;overflow:hidden;transform:none; }
html body .planning-shell.adventure-shell .map-stage { position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;border-radius:0;border:0; }
html body .planning-shell.adventure-shell :is(.city-map,.comparison-map) { height:100%!important; }
html body .planning-shell.adventure-shell :is(.game-commandbar,.game-hud,.mission-hud,.map-bottom,.map-width-handle,.map-resize-handle,.map-badge,.map-legend,.map-provider,.guide-bubble,.journey-stage-panel,.panel-index-slot,.map-size-controls,.map-width-controls) { display:none!important; }
html body .planning-shell.adventure-shell .maplibregl-ctrl-bottom-right { bottom:3px; }
html body .planning-shell.adventure-shell .maplibregl-ctrl-top-right { top:76px;right:8px; }
html body .planning-shell.adventure-shell .visitor-banner { position:absolute;top:75px;left:50%;transform:translateX(-50%);width:min(560px,80%);z-index:42;border-radius:12px;background:#fffbec; }
html body .planning-shell.adventure-shell .journey-guide {
  display:flex!important;flex-direction:column;position:absolute!important;left:20px!important;top:22px!important;right:auto!important;bottom:auto!important;
  width:292px;max-width:calc(100% - 40px);max-height:none;padding:18px 18px 14px 18px;gap:8px;
  grid-template-columns:1fr;border:1px solid var(--quest-line);border-top:5px solid #bba46d;border-radius:8px 18px 18px 18px;
  background:var(--quest-paper);color:var(--quest-ink);box-shadow:0 5px 0 #25483b25,0 12px 26px #173b3320;z-index:22;overflow:visible;
}
html body .planning-shell.adventure-shell .journey-guide-avatar { display:block!important;position:absolute;right:-17px;top:-15px;width:74px;height:81px;object-fit:contain;filter:drop-shadow(0 2px 0 #fffcf1) drop-shadow(0 -2px 0 #fffcf1) drop-shadow(2px 0 0 #fffcf1) drop-shadow(-2px 0 0 #fffcf1) drop-shadow(0 5px 4px #223c3840);animation:quest-plani-bob 4s ease-in-out infinite;pointer-events:none; }
html body .planning-shell.adventure-shell .journey-guide-copy { min-width:0;width:100%;padding:0;grid-area:auto; }
html body .planning-shell.adventure-shell .journey-guide-copy small { display:block;color:#687155;font-size:10px;letter-spacing:1px;margin-bottom:7px; }
html body .planning-shell.adventure-shell .journey-guide-copy h2 { color:#244538;font-size:21px;line-height:1.35;margin:0 42px 8px 0;font-weight:850;letter-spacing:-.6px;word-break:keep-all; }
html body .planning-shell.adventure-shell .journey-guide-copy p { display:block;-webkit-line-clamp:unset;overflow:visible;color:#4f6052;font-size:13px;line-height:1.8;margin:0; }
html body .planning-shell.adventure-shell .journey-guide-status { font-size:11px;color:#53684e;line-height:1.65;margin:2px 0;padding:9px 10px;background:#ecefdc;border-radius:8px; }
html body .planning-shell.adventure-shell .journey-guide-actions { display:grid;grid-template-columns:1fr auto;gap:6px; }
html body .planning-shell.adventure-shell .journey-guide-actions .journey-guide-primary { grid-column:1/-1;grid-row:1; }
html body .planning-shell.adventure-shell .journey-guide-actions .journey-guide-help { grid-column:2; }
html body .planning-shell.adventure-shell[data-learning-step=explore] .journey-guide-actions { display:flex; }
html body .planning-shell.adventure-shell .journey-guide-actions button { min-height:37px;padding:8px 10px;border:1px solid #bec6aa;border-radius:8px;background:#f4f1e1;color:#345044;font-size:12px;font-weight:750; }
html body .planning-shell.adventure-shell .journey-guide-primary { flex:1;background:#2e6552!important;color:#fffbe9!important;border-color:#244d41!important;box-shadow:0 2px 0 #143d32; }
html body .planning-shell.adventure-shell .journey-guide-help { display:block; }
html body .planning-shell.adventure-shell .journey-guide-actions button:disabled { opacity:.55; }
html body .planning-shell.adventure-shell .adventure-viewbar { position:absolute;right:20px;top:18px;z-index:23;display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:calc(100% - 350px); }
html body .planning-shell.adventure-shell :is(.adventure-viewbar .dimension-switch,.adventure-viewbar .mode-switch) { display:flex;padding:4px;background:#fffcf1;border:1px solid var(--quest-line);border-radius:12px;box-shadow:0 3px 10px #193b3020; }
html body .planning-shell.adventure-shell .adventure-viewbar button { min-height:34px;padding:6px 10px;color:#365446;background:transparent;border:0;border-radius:8px;font-size:12px;white-space:nowrap; }
html body .planning-shell.adventure-shell .adventure-viewbar button.active { background:#2e6654;color:#fff9e8;box-shadow:0 2px 0 #214c3f; }
html body .planning-shell.adventure-shell .map-budget { position:absolute!important;top:79px;right:20px;left:auto;bottom:auto;width:185px;z-index:22;display:flex!important;flex-direction:column;gap:3px;padding:12px 16px;min-height:0;border:1px solid #d1bd84;border-radius:14px;background:#f9edc9;box-shadow:0 4px 0 #1a3b3320;color:#554622; }
html body .planning-shell.adventure-shell .map-budget>small { color:#74643f;font-size:11px; }
html body .planning-shell.adventure-shell .map-budget strong { color:#4a4026;font-size:26px;line-height:1.15; }
html body .planning-shell.adventure-shell .map-budget strong small { color:#665537;font-size:13px;margin-left:4px; }
html body .planning-shell.adventure-shell .map-budget>span { font-size:10px;color:#756843; }
html body .planning-shell.adventure-shell:is([data-learning-step=explore],[data-learning-step=problem]) .map-budget { display:none!important; }
html body .planning-shell.adventure-shell .adventure-dock { position:absolute;z-index:37;left:50%;bottom:22px;transform:translateX(-50%);display:flex;gap:5px;padding:7px;background:#fff8e4;border:1px solid #d0bd8c;border-bottom:4px solid #af9b6e;border-radius:19px;box-shadow:0 8px 24px #173a3335;max-width:calc(100% - 36px); }
html body .planning-shell.adventure-shell .adventure-dock button { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:76px;min-height:62px;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:#f3eed9;color:#45604c;font-size:12px;font-weight:750;white-space:nowrap; }
html body .planning-shell.adventure-shell .adventure-dock button svg { width:23px;height:23px;stroke-width:1.8; }
html body .planning-shell.adventure-shell .adventure-dock button:hover { background:#e6ebcf;border-color:#c4cba8;transform:translateY(-2px); }
html body .planning-shell.adventure-shell .adventure-dock button[aria-expanded=true],html body .planning-shell.adventure-shell .adventure-dock button.active { background:#dce9c7;border:1px solid #7c9d63;box-shadow:inset 0 1px #fff8; }
html body .planning-shell.adventure-shell .adventure-dock button:disabled { opacity:.45;cursor:not-allowed;transform:none; }
html body .planning-shell.adventure-shell .adventure-menu-launcher { display:flex;align-items:center;gap:6px;min-height:38px;padding:7px 11px;border:1px solid #a2b29a;border-radius:10px;background:#285248;color:#fffae8;font:inherit;font-size:12px; }
html body .planning-shell.adventure-shell .adventure-menu-launcher svg { width:17px;height:17px; }
html body .planning-shell.adventure-shell .adventure-map-tools-header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
html body .planning-shell.adventure-shell .adventure-close { display:flex;align-items:center;gap:5px;min-height:34px;padding:7px 10px;border:1px solid #c5c9ad;border-radius:9px;background:#eeefdc;color:#38503c; }
html body .planning-shell.adventure-shell .adventure-close svg { width:15px;height:15px; }
html body .planning-shell.adventure-shell .adventure-map-tools { position:absolute;z-index:40;bottom:110px;left:50%;transform:translateX(-50%);width:min(640px,calc(100% - 32px));max-height:calc(100% - 145px);overflow:auto;padding:20px;border:1px solid var(--quest-line);border-radius:18px;background:var(--quest-paper);box-shadow:0 12px 35px #102e3240;color:var(--quest-ink); }
html body .planning-shell.adventure-shell .adventure-map-tools :is(h2,h3) { color:#284b3b;margin:0 0 12px;font-size:18px; }
html body .planning-shell.adventure-shell .adventure-map-tools :is(.map-toolbar,.reference-filters,.map-exploration-tools) { position:static!important;display:flex!important;flex-wrap:wrap;gap:8px;width:auto;height:auto;min-height:0;padding:12px 0;margin:0;background:transparent!important;border:0!important;border-top:1px solid #e0dac8!important;border-radius:0;overflow:visible;box-shadow:none; }
html body .planning-shell.adventure-shell .adventure-map-tools .workspace-tools { display:none; }
html body .planning-shell.adventure-shell .adventure-map-tools .edit-tools { margin:0;flex-wrap:wrap;max-width:100%;gap:8px; }
html body .planning-shell.adventure-shell .adventure-map-tools .capture-button { width:auto;min-width:100px;white-space:nowrap; }
html body .planning-shell.adventure-shell .adventure-map-tools .map-toolbar { justify-content:flex-start; }
html body .planning-shell.adventure-shell .adventure-map-tools #undo,html body .planning-shell.adventure-shell .adventure-map-tools #redo { display:grid; }
html body .planning-shell.adventure-shell .adventure-map-tools button { min-height:36px;padding:7px 10px;color:#345440;background:#f3edd9;border:1px solid #d1c7a9;border-radius:8px;font-size:12px; }
html body .planning-shell.adventure-shell .adventure-map-tools button[aria-pressed=true] { background:#dde9cf;color:#274f3b;border-color:#91ad75; }
html body .planning-shell.adventure-shell .adventure-map-tools .reference-filters button { border-left:4px solid var(--reference-color); }
html body .planning-shell.adventure-shell .adventure-map-tools .reference-label { width:100%;color:#485c48;font-size:12px; }
html body .planning-shell.adventure-shell .adventure-map-tools :is(p,#study-area-status,#satellite-note) { width:100%;color:#566951;font-size:12px;line-height:1.7; }
html body .planning-shell.adventure-shell :is(.palette-panel,#impact-panel,.inspector-panel,.storyboard-section) { position:absolute!important;z-index:35;top:18px!important;bottom:113px!important;min-height:0!important;max-height:none!important;border:1px solid #cfc7aa!important;border-radius:17px!important;background:var(--quest-paper)!important;color:var(--quest-ink);box-shadow:0 8px 28px #173b3340;overflow:auto;overscroll-behavior:contain;transform:none!important; }
html body .planning-shell.adventure-shell .palette-panel { left:20px!important;right:auto!important;width:390px!important;max-width:calc(100% - 40px);display:none!important; }
html body .planning-shell.adventure-shell.palette-open .palette-panel { display:flex!important;flex-direction:column; }
html body .planning-shell.adventure-shell .palette-panel>* { flex-shrink:0; }
html body .planning-shell.adventure-shell .palette-panel>.problem-panel { display:none; }
html body .planning-shell.adventure-shell #impact-panel { left:auto!important;right:20px!important;width:335px!important;max-width:calc(100% - 40px);display:flex;flex-direction:column; }
html body .planning-shell.adventure-shell.right-panel-collapsed #impact-panel { display:none!important; }
html body .planning-shell.adventure-shell .inspector-panel { left:auto!important;right:20px!important;width:min(600px,calc(100% - 360px))!important;display:none!important; }
html body .planning-shell.adventure-shell.inspector-open .inspector-panel { display:flex!important;flex-direction:column; }
html body .planning-shell.adventure-shell .storyboard-section { left:20px!important;right:20px!important;top:auto!important;height:min(420px,70%);display:none; }
html body .planning-shell.adventure-shell.storyboard-open .storyboard-section { display:block; }
html body .planning-shell.adventure-shell :is(.panel-heading,.impact-heading) { background:#f1ebd9!important;color:#2a4a3b!important;border-bottom:1px solid #ddd2b4;padding:17px 48px 17px 18px!important; }
html body .planning-shell.adventure-shell :is(.panel-heading h2,.panel-heading .eyebrow,.impact-heading small,.impact-heading strong,.impact-heading #impact-score-total) { color:#2c4a3a!important; }
html body .planning-shell.adventure-shell .panel-heading h2 { font-size:20px; }
html body .planning-shell.adventure-shell .side-panel-toggle { top:12px!important;right:12px!important;left:auto!important;background:#e6e9d3;color:#35533d;border:1px solid #b9c3a2;box-shadow:none; }
html body .planning-shell.adventure-shell .budget-card { margin:12px 14px;padding:12px;background:#f6ebc8;border-color:#dfcd98; }
html body .planning-shell.adventure-shell .budget-copy strong { color:#5a4928;font-size:26px; }
html body .planning-shell.adventure-shell .budget-card :is(p,span) { color:#665735; }
html body .planning-shell.adventure-shell .palette-search { margin:0 14px 10px; }
html body .planning-shell.adventure-shell .category-tabs { display:flex;flex-wrap:wrap;gap:5px;padding:0 14px 10px;overflow:visible; }
html body .planning-shell.adventure-shell .category-tabs button { padding:7px 9px;font-size:11px;background:#f0ecdd;color:#47604c;border:1px solid #d1cfbb;border-radius:8px; }
html body .planning-shell.adventure-shell .category-tabs button.active { background:#2f6853;color:#fff9df; }
html body .planning-shell.adventure-shell .facility-palette { display:grid;grid-template-columns:1fr 1fr;gap:9px;overflow:visible;padding:0 14px 18px;flex:none; }
html body .planning-shell.adventure-shell .facility-card { display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:150px;padding:12px;border:1px solid #d4cfb7;border-bottom:3px solid #c8c1a5;border-radius:12px;background:#f8f5e8; }
html body .planning-shell.adventure-shell .facility-card:hover { background:#eef2db;border-color:#8da978;transform:translateY(-2px); }
html body .planning-shell.adventure-shell .facility-card :is(strong,h3) { color:#2f503d;font-size:14px; }
html body .planning-shell.adventure-shell .facility-card :is(p,small) { color:#5e674f;font-size:11px; }
html body .planning-shell.adventure-shell .palette-hint { display:none; }
html body .planning-shell.adventure-shell .palette-selection { color:#52664d;font-size:12px;padding:0 14px; }
html body .planning-shell.adventure-shell .inspector-panel .notebook-status { background:#eff0de;color:#50634b; }
html body .planning-shell.adventure-shell .inspector-panel .thought-tabs { background:#e9e7d6; }
html body .planning-shell.adventure-shell .inspector-panel .thought-tabs button { color:#4a6048;background:#fbf9ed;border-color:#cbd0b7; }
html body .planning-shell.adventure-shell .inspector-panel .thought-tabs button[aria-selected=true] { background:#dfeacb;color:#294b37;border-color:#94ac79;box-shadow:none; }
html body .planning-shell.adventure-shell .inspector-panel :is(textarea,input:not([type=range])) { background:#fffef8!important;color:#294235!important;border:1px solid #bfc7aa!important;font-size:14px!important;line-height:1.8; }
html body .planning-shell.adventure-shell .inspector-panel textarea::placeholder { color:#7a816d; }
html body .planning-shell.adventure-shell .game-selection { left:20px;top:auto;bottom:115px;max-width:390px;z-index:28;background:#fffbed;color:#2e4b3c;border:1px solid #cec3a3;border-radius:12px; }
html body .planning-shell.adventure-shell .game-selection :is(strong,p,span) { color:#2f4f3b; }
html body .planning-shell.adventure-shell .game-selection button { color:#36513d;background:#e9ebd7;border-color:#b7c3a2; }
html body .planning-shell.adventure-shell .game-selection .game-delete-object { color:#8d3028!important;background:#f7e5d8!important;border-color:#d8aaa0!important; }
html body .planning-shell.adventure-shell .orbit-controls { left:20px;bottom:113px;background:#fffcf0;color:#3b5745;border-color:#d1c8aa;max-width:340px; }
html body .planning-shell.adventure-shell .orbit-controls button { color:#3b5745;background:#edf0df;border-color:#c5cdb5; }
html body .planning-shell.adventure-shell .orbit-controls .orbit-tip { color:#627254; }
html body .planning-shell.adventure-shell .adventure-map-tools .orbit-controls { display:block;position:static;max-width:none;margin:12px 0;border:0;box-shadow:none;padding:10px 0;background:transparent; }
html body .planning-shell.adventure-shell:is([data-learning-step=explore],[data-learning-step=problem]) .mode-switch { display:none; }
html body .planning-shell.adventure-shell #impact-score-label,html body .planning-shell.adventure-shell .impact-heading strong>span { color:#516149!important; }
html body .planning-shell.adventure-shell #impact-score-total { text-shadow:none!important; }
html body .planning-shell.adventure-shell #impact-panel .impact-game-hud { background:#f2eddb; }
html body .planning-shell.adventure-shell #impact-panel .impact-status { color:#e9f2df;background:#315b4b;border-color:#315b4b; }
html body .planning-shell.adventure-shell #impact-panel .impact-result-tab[aria-selected=true] { color:#fff9e6;background:#2f6551;border-color:#244f3e;box-shadow:0 2px 0 #1d4435; }
html body .planning-shell.adventure-shell .journey-help-header { background:#234b40;border-color:#d1c399; }
html body .planning-shell.adventure-shell .journey-help-header h2 { color:#fff8e7; }
html body .planning-shell.adventure-shell .journey-help-actions .primary { color:#fff9e6;background:#2e6552;border-color:#214c3f; }
html body .planning-shell.adventure-shell.palette-open .journey-guide { visibility:hidden;pointer-events:none; }
html body .planning-shell.adventure-shell .compare-labels { top:76px; }
html body .planning-shell.adventure-shell .placement-banner { position:absolute;top:auto!important;bottom:116px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;height:auto;min-height:0;width:max-content;max-width:calc(100% - 40px);z-index:38;border-radius:12px;background:#2c5d4d;color:#fffbe7;padding:12px 16px; }
html body .planning-shell.adventure-shell .basemap-loading-status { bottom:117px;right:20px;left:auto; }
html body .planning-shell.adventure-shell .adventure-menu { width:min(720px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:24px;border:1px solid #d2c5a4;border-radius:22px;background:#fffcf1;color:#2e493a;box-shadow:0 20px 65px #122d3370; }
html body .planning-shell.adventure-shell .adventure-menu::backdrop { background:#193a3690;backdrop-filter:blur(3px); }
html body .planning-shell.adventure-shell .adventure-menu header { display:flex;align-items:center;justify-content:space-between;margin-bottom:18px; }
html body .planning-shell.adventure-shell .adventure-menu h2 { margin:0;font-size:23px; }
html body .planning-shell.adventure-shell .adventure-menu button { color:#36553d; }
html body .planning-shell.adventure-shell .adventure-menu .project-heading { display:block;position:static;inset:auto;width:100%;max-width:none;height:auto;min-height:0;padding:0;background:transparent;border:0; }
html body .planning-shell.adventure-shell .adventure-menu .project-intro>.eyebrow { display:block;color:#617256;font-size:10px; }
html body .planning-shell.adventure-shell .adventure-menu :is(#open-projects,#share-project,#learning-records) { width:auto;min-width:116px;min-height:40px;padding:9px 12px;font-size:13px;gap:7px; }
html body .planning-shell.adventure-shell .adventure-menu .search-launcher { background:#2e6251;color:#fff9e5;box-shadow:0 2px 0 #214b3b;border-color:#3f725c; }
html body .planning-shell.adventure-shell .adventure-menu #about-data { padding:8px 12px;color:#36553d;background:#edf0dd;border:1px solid #c5caad;border-radius:8px; }
html body .planning-shell.adventure-shell .adventure-menu .project-title { width:100%;color:#294b38;background:#f1eedc;border:1px solid #c7c7ab;border-radius:10px;font-size:18px;padding:12px; }
html body .planning-shell.adventure-shell .adventure-menu .project-title-row { display:block;margin-bottom:16px; }
html body .planning-shell.adventure-shell .adventure-menu .project-tag { display:none; }
html body .planning-shell.adventure-shell .adventure-menu :is(.project-actions,.project-quick-actions) { display:flex;flex-wrap:wrap;gap:9px;margin:12px 0; }
html body .planning-shell.adventure-shell .adventure-menu .journey-tools-menu { position:static;display:grid;grid-template-columns:1fr 1fr;gap:8px;background:transparent;padding:16px 0;border:0;border-top:1px solid #ded8c3;box-shadow:none; }
html body .planning-shell.adventure-shell .adventure-menu .rail-link { display:flex;padding:12px;border:1px solid #d5d0b7;border-radius:10px;background:#f2f1e0;color:#3e5c43;font-size:14px; }
html body .planning-shell.adventure-shell .adventure-menu .workspace-footer { position:static;display:flex!important;flex-wrap:wrap;gap:10px;margin-top:15px;height:auto;color:#697155; }
html body .planning-shell.adventure-shell .adventure-menu .workspace-footer>span:nth-child(2) { display:none; }
html body .planning-shell.adventure-shell [hidden] { display:none!important; }
html body .planning-shell.adventure-shell button:focus-visible,html body .planning-shell.adventure-shell summary:focus-visible { outline:3px solid #cf992f;outline-offset:3px; }
@keyframes quest-plani-bob { 50% { transform:translateY(-5px) rotate(3deg); } }
@media (prefers-reduced-motion:reduce) { html body .planning-shell.adventure-shell * { animation:none!important;scroll-behavior:auto!important; } }
@media(max-width:1250px) {
  html body .planning-shell.adventure-shell .topbar { padding:0 12px;gap:10px; }
  html body .planning-shell.adventure-shell .wordmark { min-width:0; }
  html body .planning-shell.adventure-shell .wordmark strong { font-size:14px; }
  html body .planning-shell.adventure-shell .save-status { display:none; }
  html body .planning-shell.adventure-shell .journey-step { font-size:12px;padding:8px 10px;gap:5px; }
  html body .planning-shell.adventure-shell .player-profile b { max-width:70px; }
}
@media(max-width:950px) {
  html body .planning-shell.adventure-shell .topbar { height:112px;min-height:112px;align-items:flex-start;padding-top:10px; }
  html body .planning-shell.adventure-shell .workspace { height:calc(100dvh - 112px)!important; }
  html body .planning-shell.adventure-shell .rail-links { position:absolute;top:61px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px); }
  html body .planning-shell.adventure-shell .journey-step { min-height:39px; }
  html body .planning-shell.adventure-shell .journey-guide { width:255px;left:12px!important;top:12px!important;padding:13px; }
  html body .planning-shell.adventure-shell .journey-guide-copy h2 { font-size:18px; }
  html body .planning-shell.adventure-shell .journey-guide-copy p { font-size:12px; }
  html body .planning-shell.adventure-shell .adventure-viewbar { top:12px;right:12px;max-width:calc(100% - 296px); }
  html body .planning-shell.adventure-shell .adventure-viewbar button { font-size:11px;padding:6px; }
  html body .planning-shell.adventure-shell .adventure-dock { gap:3px;bottom:20px;padding:5px; }
  html body .planning-shell.adventure-shell .adventure-dock button { min-width:63px;font-size:11px;padding:7px; }
  html body .planning-shell.adventure-shell .inspector-panel { width:min(560px,calc(100% - 32px))!important;right:16px!important; }
  html body .planning-shell.adventure-shell.inspector-open .journey-guide { visibility:hidden;pointer-events:none; }
  html body .planning-shell.adventure-shell .map-budget { top:114px;right:12px;width:150px;padding:10px; }
  html body .planning-shell.adventure-shell .exploration-controls { left:auto;right:12px;bottom:100px;width:190px;padding:10px; }
}
@media(max-width:600px) {
  html body .planning-shell.adventure-shell .wordmark strong { font-size:13px; }
  html body .planning-shell.adventure-shell .wordmark small,html body .planning-shell.adventure-shell .player-profile>span:not(.avatar),html body .planning-shell.adventure-shell .player-profile>svg { display:none; }
  html body .planning-shell.adventure-shell .wordmark .brand-leaf { width:28px; }
  html body .planning-shell.adventure-shell #save-project { font-size:11px;padding:7px; }
  html body .planning-shell.adventure-shell .topbar-right { gap:4px; }
  html body .planning-shell.adventure-shell .journey-stepper { gap:4px; }
  html body .planning-shell.adventure-shell .journey-step { font-size:11px;padding:7px; }
  html body .planning-shell.adventure-shell .journey-step-number { width:20px;height:20px;font-size:10px; }
  html body .planning-shell.adventure-shell .journey-guide { width:220px;top:60px!important;left:10px!important;padding:10px;gap:5px; }
  html body .planning-shell.adventure-shell .journey-guide-copy small { font-size:8px;margin-bottom:4px; }
  html body .planning-shell.adventure-shell .journey-guide-copy h2 { font-size:17px;margin-bottom:4px; }
  html body .planning-shell.adventure-shell .journey-guide-copy p { font-size:11px;line-height:1.6; }
  html body .planning-shell.adventure-shell .journey-guide-status { padding:6px;font-size:10px; }
  html body .planning-shell.adventure-shell .journey-guide-avatar { width:57px;height:62px;right:-10px; }
  html body .planning-shell.adventure-shell .adventure-viewbar { top:8px;left:10px;right:10px;max-width:none;justify-content:space-between;gap:4px; }
  html body .planning-shell.adventure-shell .adventure-viewbar button { font-size:10px;min-height:29px;padding:5px 7px; }
  html body .planning-shell.adventure-shell .adventure-dock { width:max-content;max-width:calc(100% - 16px);overflow:auto;justify-content:flex-start;bottom:23px; }
  html body .planning-shell.adventure-shell .adventure-dock button { min-width:54px;min-height:54px;font-size:10px;padding:5px; }
  html body .planning-shell.adventure-shell .adventure-dock button svg { width:20px;height:20px; }
  html body .planning-shell.adventure-shell .map-budget { top:64px;right:10px;width:116px;padding:9px; }
  html body .planning-shell.adventure-shell .map-budget strong { font-size:20px; }
  html body .planning-shell.adventure-shell .map-budget>span { display:none; }
  html body .planning-shell.adventure-shell :is(.palette-panel,#impact-panel,.inspector-panel) { left:10px!important;right:10px!important;width:calc(100% - 20px)!important;max-width:none;top:10px!important;bottom:100px!important; }
  html body .planning-shell.adventure-shell .game-selection { left:10px;bottom:100px;max-width:calc(100% - 20px); }
  html body .planning-shell.adventure-shell .orbit-controls { left:10px;bottom:100px;max-width:calc(100% - 20px); }
  html body .planning-shell.adventure-shell:not(.right-panel-collapsed) .journey-guide { visibility:hidden; }
  html body .planning-shell.adventure-shell .exploration-controls { left:10px;right:10px;bottom:100px;width:auto;display:flex;align-items:center;gap:8px;padding:8px; }
  html body .planning-shell.adventure-shell .exploration-modes { flex-direction:column;width:94px;flex:none; }
  html body .planning-shell.adventure-shell .exploration-pad { margin:0;max-width:190px;flex:1;gap:4px; }
  html body .planning-shell.adventure-shell .exploration-controls :is(p,small) { display:none; }
  html body .planning-shell.adventure-shell .journey-guide-copy p,html body .planning-shell.adventure-shell .journey-guide-status { display:none; }
}
@media(max-height:650px) and (min-width:601px) { html body .planning-shell.adventure-shell .exploration-controls { left:auto;right:12px;bottom:103px;width:190px; } }

/* v32: a consistent raised face, solid lower edge and short physical press.
   Keep geometry unchanged; these surface overrides also cover legacy button skins. */
html body .planning-shell.adventure-shell :is(
  .journey-step,.journey-guide-actions button,.adventure-dock button,
  .exploration-controls button,.adventure-viewbar button,.adventure-menu-launcher,
  .adventure-close,.adventure-menu button,.journey-help button,
  .adventure-map-tools button,.side-panel-toggle,.category-tabs button,
  .thought-tabs button,.game-selection button,.impact-result-tab,button[id="save-project"]
) {
  --button-face-top:#fffdf1;--button-face-bottom:#e8dfc2;
  --button-edge:#a99a73;--button-border:#c7b891;--button-ink:#294b3d;
  --button-depth:3px;--button-shadow:#18352d26;
  background:linear-gradient(180deg,var(--button-face-top) 0%,var(--button-face-bottom) 100%)!important;
  color:var(--button-ink)!important;border-color:var(--button-border)!important;
  border-style:solid;border-bottom-width:1px;
  box-shadow:inset 0 1px 0 #fff9,inset 0 -1px 0 #0000000d,
    0 var(--button-depth) 0 var(--button-edge),0 5px 7px var(--button-shadow)!important;
  text-shadow:0 1px 0 #ffffff65;font-weight:750;cursor:pointer;
  transition:transform 100ms ease,box-shadow 100ms ease,filter 100ms ease;
  -webkit-tap-highlight-color:transparent;
}
html body .planning-shell.adventure-shell :is(
  .journey-step,.adventure-menu-launcher,.journey-guide-primary,
  .adventure-menu .search-launcher,.journey-help-actions .primary,
  .adventure-viewbar button.active,.exploration-modes button[aria-pressed=true],
  .category-tabs button.active,.impact-result-tab[aria-selected=true]
) {
  --button-face-top:#4b8470;--button-face-bottom:#285747;
  --button-edge:#14382c;--button-border:#81a88e;--button-ink:#fff9e9;
  text-shadow:0 1px 1px #173a2fcc;
}
html body .planning-shell.adventure-shell button.journey-step.active {
  --button-face-top:#ffe9a0;--button-face-bottom:#e9bc53;
  --button-edge:#94702d;--button-border:#fff1ba;--button-ink:#3d351e;
  --button-depth:4px;text-shadow:0 1px 0 #fff9;
}
html body .planning-shell.adventure-shell .journey-step-number {
  border:1px solid #b4ccb680;box-shadow:inset 0 2px 3px #0e2e3b66,0 1px 0 #ffffff35;
}
html body .planning-shell.adventure-shell .journey-step.active .journey-step-number {
  background:#765623;color:#fff4c8;border-color:#a6803e;text-shadow:none;
}
html body .planning-shell.adventure-shell .journey-step.complete:not(.active) .journey-step-number {
  background:#cfe3a4;color:#29472d;border-color:#e7efcd;text-shadow:none;
}
html body .planning-shell.adventure-shell :is(
  .adventure-dock button[aria-expanded=true],.adventure-dock button.active,
  .adventure-map-tools button[aria-pressed=true],.thought-tabs button[aria-selected=true]
) {
  --button-face-top:#e5efcd;--button-face-bottom:#b7cf96;
  --button-edge:#68824f;--button-border:#8aa46b;--button-ink:#28452e;
}
html body .planning-shell.adventure-shell .game-selection .game-delete-object {
  --button-face-top:#fff0e5;--button-face-bottom:#edc4ae;
  --button-edge:#b1816d;--button-border:#d5a48c;--button-ink:#862d27;
  background:linear-gradient(180deg,var(--button-face-top),var(--button-face-bottom))!important;
  color:var(--button-ink)!important;border-color:var(--button-border)!important;
}
html body .planning-shell.adventure-shell .adventure-dock {
  background:linear-gradient(#fffbed,#e9dfc2);border-color:#cfbb83;
  box-shadow:inset 0 2px 0 #fff8,0 5px 0 #8b794c,0 11px 24px #173a3340;
}
html body .planning-shell.adventure-shell .adventure-dock button {
  --button-depth:4px;border-radius:11px;
}
html body .planning-shell.adventure-shell .adventure-dock button svg {
  filter:drop-shadow(0 1px 0 #fff9);
}
@media(hover:hover) {
  html body .planning-shell.adventure-shell :is(
    .journey-step,.journey-guide-actions button,.adventure-dock button,
    .exploration-controls button,.adventure-viewbar button,.adventure-menu-launcher,
    .adventure-close,.adventure-menu button,.journey-help button,
    .adventure-map-tools button,.side-panel-toggle,.category-tabs button,
    .thought-tabs button,.game-selection button,.impact-result-tab,button[id="save-project"]
  ):not(:disabled):not([aria-disabled=true]):hover {
    filter:brightness(1.045);transform:translateY(-1px);
  }
}
html body .planning-shell.adventure-shell :is(
  .journey-step,.journey-guide-actions button,.adventure-dock button,
  .exploration-controls button,.adventure-viewbar button,.adventure-menu-launcher,
  .adventure-close,.adventure-menu button,.journey-help button,
  .adventure-map-tools button,.side-panel-toggle,.category-tabs button,
  .thought-tabs button,.game-selection button,.impact-result-tab,button[id="save-project"]
):not(:disabled):not([aria-disabled=true]):active,
html body .planning-shell.adventure-shell .exploration-controls button.is-held:not(:disabled) {
  transform:translateY(3px);filter:brightness(.97);
  box-shadow:inset 0 2px 3px #173a332b,0 1px 0 var(--button-edge)!important;
}
html body .planning-shell.adventure-shell :is(button,summary):focus-visible {
  outline:3px solid #d39a24;outline-offset:5px;
}
html body .planning-shell.adventure-shell :is(
  .journey-step,.journey-guide-actions button,.adventure-dock button,
  .exploration-controls button,.adventure-viewbar button,.adventure-menu-launcher,
  .adventure-close,.adventure-menu button,.journey-help button,
  .adventure-map-tools button,.side-panel-toggle,.category-tabs button,
  .thought-tabs button,.game-selection button,.impact-result-tab,button[id="save-project"]
):is(:disabled,[aria-disabled=true]) {
  --button-face-top:#e4e2d3;--button-face-bottom:#d4d2c0;
  --button-border:#b7bba7;--button-ink:#64705e;
  box-shadow:inset 0 2px 4px #20392c23,0 1px 0 #fff5!important;
  opacity:1;filter:none;transform:none;cursor:not-allowed;text-shadow:none;
}
html body .planning-shell.adventure-shell button.journey-step:is(:disabled,[aria-disabled=true]) {
  --button-face-top:#25483f;--button-face-bottom:#2c4e44;
  --button-border:#4e6d5a;--button-ink:#c2ccb7;
  box-shadow:inset 0 3px 5px #0c2a2a66,0 1px 0 #71988340!important;
}
html body .planning-shell.adventure-shell .journey-step[aria-disabled=true] .journey-step-number {
  background:#203b33;color:#e1d8ae;border-color:#69806a;font-size:12px;
}
html body .planning-shell.adventure-shell .adventure-map-tools .reference-filters button {
  border-left-color:var(--reference-color)!important;
}
@media(prefers-reduced-motion:reduce) {
  html body .planning-shell.adventure-shell button { transition:none!important; }
}

/* The shared studio dialog is a sibling of the shell, not inside it. */
html body:has(.adventure-shell) #studio-dialog button,
html body .planning-shell.adventure-shell .palette-panel .facility-card {
  --button-face-top:#fffdf1;--button-face-bottom:#e8dfc2;
  --button-edge:#a99a73;--button-border:#c7b891;--button-ink:#294b3d;
  background:linear-gradient(180deg,var(--button-face-top),var(--button-face-bottom))!important;
  color:var(--button-ink)!important;border-color:var(--button-border)!important;
  border-bottom-width:1px;
  box-shadow:inset 0 1px 0 #fffc,inset 0 -1px 0 #0000000d,0 3px 0 var(--button-edge),0 5px 7px #18352d26!important;
  text-shadow:0 1px 0 #ffffff65;cursor:pointer;
  transition:transform 100ms ease,box-shadow 100ms ease,filter 100ms ease;
}
html body:has(.adventure-shell) #studio-dialog .button.primary {
  --button-face-top:#4b8470;--button-face-bottom:#285747;
  --button-edge:#14382c;--button-border:#81a88e;--button-ink:#fff9e9;
  text-shadow:0 1px 1px #173a2fcc;font-weight:750;
}
html body .planning-shell.adventure-shell .palette-panel .facility-card.active {
  --button-face-top:#fff2c3;--button-face-bottom:#e9ca79;
  --button-edge:#9b7a34;--button-border:#c6a358;
}
html body .planning-shell.adventure-shell .palette-panel .facility-card .mini-plus,
html body .planning-shell.adventure-shell .palette-panel .facility-card.active::after {
  background:#315e49;color:#fff9e5;border-color:#9bbb8e;
  box-shadow:inset 0 1px #fff6,0 2px 0 #183c2d;
}
@media(hover:hover) {
  html body:has(.adventure-shell) #studio-dialog button:not(:disabled):not([aria-disabled=true]):hover,
  html body .planning-shell.adventure-shell .palette-panel .facility-card:not(:disabled):hover {
    transform:translateY(-1px);filter:brightness(1.045);
  }
}
html body:has(.adventure-shell) #studio-dialog button:not(:disabled):not([aria-disabled=true]):active,
html body .planning-shell.adventure-shell .palette-panel .facility-card:not(:disabled):active {
  transform:translateY(3px);filter:brightness(.97);
  box-shadow:inset 0 2px 3px #173a332b,0 1px 0 var(--button-edge)!important;
}
html body:has(.adventure-shell) #studio-dialog button:focus-visible,
html body .planning-shell.adventure-shell .palette-panel .facility-card:focus-visible {
  outline:3px solid #d39a24;outline-offset:5px;
}
html body:has(.adventure-shell) #studio-dialog button:is(:disabled,[aria-disabled=true]),
html body:has(.adventure-shell) #studio-dialog .button.primary:is(:disabled,[aria-disabled=true]),
html body .planning-shell.adventure-shell .palette-panel .facility-card:disabled {
  --button-face-top:#e4e2d3;--button-face-bottom:#d4d2c0;
  --button-border:#b7bba7;--button-ink:#64705e;
  box-shadow:inset 0 2px 4px #20392c23,0 1px 0 #fff5!important;
  opacity:1;filter:none;transform:none;cursor:not-allowed;text-shadow:none;
}
@media(prefers-reduced-motion:reduce) {
  html body:has(.adventure-shell) #studio-dialog button { transition:none!important; }
}
