/* Readable settings: stable labels and comfortably sized targets. */
.home-library-settings{padding:18px!important;background:#fff!important;box-shadow:0 4px 18px #173f3510}
.home-library-settings>.library-control-panel{gap:16px!important}
.home-library-settings .library-filters{gap:12px!important;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr))!important}
.home-library-settings .library-filters>label>span:not(.sr-only){display:block;font-size:14px;font-weight:700;color:#254b50;margin:0 0 7px}
.home-library-settings .library-filters input,.home-library-settings .library-filters select,.home-library-settings .multi-topic-picker>summary{font-size:17px!important;min-height:52px!important;border-color:#b6cec9!important;padding:12px 14px!important;border-radius:12px}
.library-filter-secondary{gap:12px!important;justify-content:flex-start!important;width:100%;border-top:1px solid #dce8e4;padding-top:14px!important}
.library-filter-secondary .registration-toolbar{gap:10px!important}
.library-filter-secondary .registration-presets{gap:6px!important;padding:4px;background:#edf4f1;border-radius:12px}
.library-filter-secondary .registration-presets button,.library-filter-secondary .registration-calendar{font-size:16px!important;font-weight:600;min-height:46px!important;height:auto!important;min-width:65px;padding:10px 15px!important}
.library-filter-secondary .registration-calendar{display:inline-flex;align-items:center;gap:8px}
.library-filter-secondary .category-bookmark-filter,.library-filter-secondary .completed-learning-filter{min-height:54px!important;padding:12px 16px!important;font-size:16px!important;font-weight:600;gap:10px!important;color:#245b50!important;border-color:#a9cbc0!important}
.library-filter-secondary .completed-learning-filter input{width:22px!important;height:22px!important;flex-shrink:0}
.library-filter-secondary button[aria-pressed=true]{box-shadow:0 0 0 2px #197d63 inset}
.library-filter-status{font-size:13px!important;color:#53716a!important;margin-left:0!important;flex-basis:100%;order:8}
.library-filter-reset{font-size:15px!important;min-height:48px;white-space:nowrap;margin-left:auto;color:#365f56!important}
.home-library-settings :is(button,input,select,summary):focus-visible{outline:3px solid #e8ac38;outline-offset:3px}
/* Compact personal learning pages. */
#collections-view .collection-heading{margin-bottom:20px;padding-bottom:0;border:0;align-items:center}
#collections-view .collection-heading .eyebrow,#words-view>.eyebrow{display:none}
#collections-view .collection-heading p,#words-view .wordbook-note{margin:8px 0 0}
#collections-view .learning-progress{padding:16px 20px;margin:16px 0;box-shadow:none}
#collections-view .learning-progress-head h2{font-size:16px}
#collections-view .progress-overview{margin:10px 0;gap:16px;align-items:center}
#collections-view .progress-ring{width:52px;height:52px;font-size:15px;flex:0 0 52px;border-width:5px}
#collections-view .progress-figures>strong{font-size:21px}
#collections-view .progress-figures p{margin:5px 0 0}
#collections-view .learning-progress progress{height:6px}
#collections-view .progress-note{font-size:12px;margin:8px 0 0}
#collections-view .folder-list{display:block;margin:20px 0 12px}
.collection-folder-select{display:flex;align-items:center;gap:12px;font-weight:600;font-size:16px}
.collection-folder-select select{width:min(360px,100%);min-height:50px;font-size:17px;margin:0}
#collections-view .collection-toolbar{gap:10px;flex-wrap:wrap;padding-bottom:12px}
#collections-view .collection-toolbar>div{margin-right:auto}
.collection-manage{position:relative}
.collection-manage>summary{list-style:none;cursor:pointer;min-height:48px;padding:12px 15px;background:white;border:1px solid #d1e1dd;border-radius:10px;font-weight:600;color:#285b50}
.collection-manage[open]>div{position:absolute;right:0;top:52px;z-index:5;width:180px;padding:8px;display:grid;gap:8px;background:white;border:1px solid #c8dcd5;border-radius:12px;box-shadow:0 8px 24px #143f3520}
#collections-view .collection-item{padding:16px 0}
#words-view .wordbook-top-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 12px}
#wordbook-search{font-size:17px;min-height:50px;max-width:520px;flex:1;margin:0}
.wordbook-top-tools>button{min-height:50px;white-space:nowrap;font-size:16px}
.wordbook-settings{margin:0 0 12px;border:1px solid #d3e3dc;border-radius:12px;padding:12px 16px;background:#fff}
.wordbook-settings>summary,.wordbook-extra-filters>summary{font-size:16px;font-weight:600;cursor:pointer;min-height:26px;color:#285b50}
.wordbook-settings .wordbook-view-options{margin:15px 0 0;padding:0;gap:18px;flex-wrap:wrap}
#words-view .wordbook-sync{padding:10px 16px;margin:12px 0;min-height:0;font-size:14px;gap:12px}
#words-view .wordbook-sync p{margin:0}
#words-view .wordbook-sync small{font-size:12px}
#words-view .wordbook-sync .secondary-button{padding:9px 13px;font-size:14px;min-height:42px}
#words-view .wordbook-filter-panel{padding:12px 16px;margin:0 0 18px}
.wordbook-extra-filters[open] .wordbook-filter-grid{margin-top:16px}
#words-view .wordbook-card{padding:18px 22px;margin:12px 0;border-radius:14px}
#words-view .wordbook-card h3{font-size:23px}
#words-view .wordbook-source{font-size:12px;margin-bottom:0}
#words-view .wordbook-empty{padding:55px 16px;line-height:1.8}
#words-view .wordbook-empty button{display:block;margin:18px auto 0}
#words-view .word-audio-credits{margin:12px 0}
/* The scene has its own camera; the viewport never expands to map size. */
#my-forest-dialog.is-playing{width:calc(100vw - 24px);max-width:1600px;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:14px;overflow:hidden;box-sizing:border-box}
.forest-shell.is-playing{height:100%;display:flex;flex-direction:column;min-height:0;gap:8px}
.forest-shell:fullscreen{background:#f3faf6;width:100vw;height:100dvh;box-sizing:border-box;padding:14px;overflow:auto}
.forest-shell.is-playing:fullscreen{overflow:hidden}
.forest-shell.is-playing .forest-dialog-header{flex:none;gap:12px;margin:0;align-items:center}
.forest-shell.is-playing .forest-dialog-header h2{font-size:24px;margin:0}
.forest-shell.is-playing .forest-eyebrow,.forest-shell.is-playing>.forest-reward-copy,.forest-shell.is-playing>.forest-save-note{display:none}
.forest-dialog-header [data-fullscreen]{min-height:44px;border:1px solid #bcd7c9;border-radius:12px;background:white;color:#215745;font-size:15px;padding:10px 14px;white-space:nowrap;cursor:pointer}
.forest-shell.is-playing .forest-wallet{padding:8px 14px;font-size:14px}
.forest-shell.is-playing .forest-wallet strong{font-size:21px}
.forest-shell.is-playing>.forest-message:empty{display:none}
.forest-shell.is-playing>.forest-message{margin:0;font-size:13px;flex:none}
.forest-shell.is-playing .forest-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.forest-expedition-header{flex:none;gap:12px;margin:0}
.forest-expedition-header h3{font-size:18px;margin:0}
.forest-expedition-header p{font-size:13px;margin:4px 0 0}
.forest-expedition-tools>button{min-height:42px;font-size:14px;padding:8px 14px}
.forest-region-bar{display:flex;gap:6px;flex:none;overflow-x:auto;scrollbar-width:none}
.forest-region-bar button{flex:1;min-width:110px;min-height:42px;padding:8px 12px;background:#e8f2eb;border:1px solid #d1e2d5;border-radius:10px;color:#355b45;font-weight:600;cursor:pointer}
.forest-region-bar button[aria-pressed=true]{background:#245e47;color:white;border-color:#245e47}
.forest-companions{margin:0!important;flex:none;gap:6px!important}
.forest-companions button{height:40px;font-size:14px;padding:3px 12px}
.forest-companions .forest-sprite{width:32px;height:32px}
.forest-shell.is-playing .forest-map{flex:1;aspect-ratio:auto;height:auto;min-height:100px;max-height:none;margin:0;width:100%;overflow:hidden;position:relative;border-radius:20px;border:2px solid #4d9678;background:#dcebcf;outline-offset:-5px;touch-action:none;isolation:isolate}
.forest-world-scene{position:absolute;left:0;top:0;width:2400px;height:1400px;transform-origin:0 0;will-change:transform}
.forest-world-scene .forest-map-art{width:100%;height:100%;object-fit:fill;position:absolute;inset:0;filter:none;pointer-events:none}
.forest-world-scene .forest-place{position:absolute;transform:translate(-50%,-50%) scale(var(--place-scale,1));width:auto;min-width:134px;height:auto;padding:8px 12px;display:flex;flex-direction:row;align-items:center;gap:8px;background:#fffaf0f5;border:1px solid #adbe99;border-radius:16px;box-shadow:0 4px 8px #284a3030;cursor:pointer;z-index:3}
.forest-world-scene .forest-place>span{font-size:25px;width:auto;height:auto;margin:0;background:none;border:0;box-shadow:none}
.forest-world-scene .forest-place>strong{font-size:17px;line-height:1.3;white-space:nowrap;padding:0;background:none}
.forest-world-scene .forest-walker,.forest-world-scene .forest-resident{position:absolute;width:112px;transform:translate(-50%,-85%);display:flex;align-items:center;flex-direction:column;z-index:4;pointer-events:none}
.forest-world-scene .forest-walker .forest-sprite{width:112px;height:112px;object-fit:contain;animation:none}
.forest-world-scene .forest-resident .forest-sprite{width:90px;height:90px;object-fit:contain;animation:none}
.forest-world-scene .forest-walker.is-moving .forest-sprite{animation:forest-walk-hop .3s infinite alternate ease-out}
.forest-world-scene .forest-resident{width:90px;opacity:.95}
.forest-world-scene :is(.forest-walker,.forest-resident)>strong{font-size:15px;padding:3px 10px;border-radius:20px;background:#255f45d9;color:white;white-space:nowrap}
.forest-minimap{position:absolute;right:14px;bottom:14px;width:190px;height:111px;border:2px solid #ffffffb0;border-radius:14px;background:#eff5e6e8;box-shadow:0 3px 14px #183b3130;z-index:6}
.forest-minimap button{position:absolute;transform:translate(-50%,-50%);min-width:26px;min-height:26px;background:#fff;border:1px solid #b3cbb4;border-radius:8px;padding:2px;font-size:15px;cursor:pointer}
.forest-minimap i{position:absolute;width:10px;height:10px;border:2px solid white;background:#c37a25;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.forest-map-label{bottom:12px;left:14px;right:auto;font-size:13px;color:white;background:#1e4b38c9;border-radius:20px;padding:5px 12px}
.forest-shell.is-playing .forest-world-actions{flex:none;display:flex;gap:12px;align-items:center;margin:0}
.forest-world-actions .forest-dpad{display:flex;gap:5px;width:auto;grid-template:none}
.forest-dpad button{min-width:44px;min-height:44px;width:44px;height:44px;grid-area:auto!important;padding:5px;font-size:21px}
.forest-world-actions>p{margin:0;font-size:13px;color:#4f725f}
.forest-world-actions .forest-quiz-reward{margin-left:auto}
.forest-shell.is-playing .forest-minigame{flex:1;min-height:0;overflow:auto;margin:0;padding:16px;display:flex;flex-direction:column;align-items:center;background:#f8f7ed}
.forest-shell.is-playing .forest-minigame>header{flex:none;text-align:center;width:100%}
.forest-shell.is-playing .forest-minigame>header h3{margin:6px 0;font-size:22px}
.forest-shell.is-playing .forest-minigame>header p{margin:6px 0;font-size:14px}
.forest-shell.is-playing .mini-play-area{flex:1;min-height:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:12px 0}
.forest-shell.is-playing .mini-feedback{flex:none;margin:8px 0;font-size:14px}
.forest-shell.is-playing .forest-minigame>footer{flex:none;font-size:11px;margin:0}
.forest-body>[data-abandon]{align-self:flex-start;min-height:36px;padding:7px 12px;font-size:13px;flex:none}
.forest-shell.is-playing .mini-success{display:grid;justify-items:center;align-content:center;flex:1;gap:15px;padding:30px}
.maze-hud{display:flex;justify-content:space-between;gap:12px;align-items:center;width:min(850px,100%);font-size:15px;color:#315940}
.maze-board{position:relative;aspect-ratio:13/9;width:min(1100px,100%,calc((100dvh - 370px)*13/9));max-height:100%;flex:0 1 auto;min-height:0;outline-offset:3px;border:4px solid #8c9c72;border-radius:16px;overflow:hidden;background:#eadfb6;box-shadow:0 8px 25px #34553025}
.maze-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));grid-template-rows:repeat(9,minmax(0,1fr));width:100%;height:100%;position:absolute;inset:0}
.maze-tile{display:grid;place-items:center;font-size:clamp(14px,2.5vw,29px)}
.maze-wall{background:#49764d;border:2px solid #628359;border-radius:5px;box-shadow:inset 0 4px #779966,inset 0 -5px #2b503c55}
.maze-path{background:#eadfb6;border:1px solid #e3d7ad}
.maze-hero{position:absolute;width:7.6%;height:11%;object-fit:contain;transform:translate(-50%,-50%);transition:top .1s,left .1s;filter:drop-shadow(0 3px 2px #27412950);pointer-events:none}
.maze-hop{animation:maze-step .12s ease-out}
.maze-treasure-question{position:absolute;inset:15% 10%;z-index:6;background:#fffaf0f5;border:3px solid #b99445;border-radius:18px;padding:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 40px #223f3450}
.maze-treasure-question[hidden]{display:none}
.maze-treasure-question strong{font-size:30px;color:#255339}
.maze-treasure-question p{margin:0;font-size:15px}
.maze-treasure-question button{width:min(330px,100%);min-height:44px;border:1px solid #bad2b2;border-radius:10px;background:white;color:#28533d;font-size:17px;cursor:pointer}
.maze-controls{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.maze-controls button{min-height:44px;min-width:65px;padding:8px 14px;font-size:16px;color:#29573e;background:#fff;border:1px solid #a2b894;border-radius:10px;cursor:pointer}
@keyframes forest-walk-hop{to{transform:translateY(-7px) rotate(3deg)}}
@keyframes maze-step{50%{transform:translate(-50%,-60%)}}
@media(max-width:950px){.home-library-settings .library-filters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.home-library-settings .search-field{grid-column:1/-1}.library-filter-secondary{gap:8px!important}.library-filter-reset{margin-left:0}.forest-expedition-tools>button{padding:8px 10px}}
@media(max-width:600px){.home-library-settings{padding:14px!important}.home-library-settings .library-filters{grid-template-columns:1fr!important}.home-library-settings .library-filters>label{grid-column:auto}.home-library-settings>summary{font-size:18px;padding:8px 0}.library-filter-secondary .registration-toolbar{width:100%;flex-wrap:wrap!important}.library-filter-secondary .category-bookmark-filter,.library-filter-secondary .completed-learning-filter{font-size:16px!important;flex:1;justify-content:center}.library-filter-secondary .completed-learning-filter{flex-basis:100%}.library-filter-status{font-size:13px!important}.library-filter-reset{padding-left:0}.collection-folder-select{align-items:flex-start;flex-direction:column}.collection-folder-select select{width:100%}.progress-scopes button{font-size:13px;padding:9px}.learning-progress-head{gap:10px;flex-wrap:wrap}.wordbook-top-tools{align-items:stretch}#wordbook-search{flex-basis:100%}.wordbook-filter-grid{grid-template-columns:1fr!important}#my-forest-dialog.is-playing{height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);width:calc(100vw - 8px);padding:8px;border-radius:16px}.forest-shell:fullscreen{padding:8px}.forest-shell.is-playing .forest-dialog-header{gap:7px}.forest-shell.is-playing .forest-dialog-header h2{font-size:20px}.forest-shell.is-playing .forest-wallet{gap:5px;padding:6px 8px}.forest-shell.is-playing .forest-wallet strong{font-size:18px}.forest-dialog-header [data-fullscreen]{font-size:12px;min-height:40px;padding:7px 9px}.forest-shell.is-playing [data-forest-close]{width:36px;height:36px}.forest-expedition-header>div:first-child p{display:none}.forest-expedition-header h3{font-size:15px}.forest-expedition-tools{width:auto!important;gap:5px;flex:1}.forest-expedition-tools>button{font-size:12px;padding:6px 8px;min-height:36px}.forest-region-bar button{min-width:100px;min-height:38px;font-size:12px}.forest-shell.is-playing .forest-map{border-radius:14px}.forest-minimap{width:130px;height:76px;right:8px;bottom:8px}.forest-minimap button{font-size:12px;min-width:22px;min-height:22px}.forest-companions{flex-wrap:nowrap;overflow:auto}.forest-companions button{flex-shrink:0}.forest-world-actions>p{display:none}.forest-shell.is-playing .forest-minigame{padding:10px}.forest-shell.is-playing .mini-location,.forest-shell.is-playing .forest-minigame>footer{display:none}.forest-shell.is-playing .forest-minigame>header h3{font-size:19px}.forest-shell.is-playing .forest-minigame>header p{font-size:12px}.maze-board{width:min(100%,calc((100dvh - 340px)*13/9))}.maze-hud{font-size:12px;gap:6px}.maze-controls{gap:5px}.maze-controls button{font-size:13px;min-width:49px;padding:8px}.maze-treasure-question{inset:5%;padding:10px;gap:6px}.maze-treasure-question strong{font-size:23px}.maze-treasure-question p{font-size:12px}.maze-treasure-question button{min-height:36px;font-size:14px}.forest-shell.is-playing .mini-play-area{gap:8px}}
@media(prefers-reduced-motion:reduce){.forest-world-scene .forest-walker.is-moving .forest-sprite,.maze-hop{animation:none}.maze-hero{transition:none}}
/* Readable selected topics and a compact, aligned sidebar. */
#category-selection-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;flex:1;margin:0;min-width:0}
#category-selection-status .category-selection-chip{display:flex;align-items:center;gap:0;background:#edf5f1;border:1px solid #d1e5db;border-radius:12px;position:relative;padding:0;color:#205c4b;user-select:none;min-height:46px}
.category-selection-chip .selection-chip-handle{padding:10px 8px 10px 12px;border:0;background:none;font-size:16px;color:inherit;cursor:grab;touch-action:none;min-height:46px}
.category-selection-chip .selection-chip-remove{border:0;background:none;min-width:36px;min-height:44px;font-size:21px;color:inherit;padding:4px}
.selection-chip-controls{position:relative;margin:0;background:none;border:0;padding:0}
.selection-chip-controls summary{list-style:none;font-size:12px;padding:10px 6px;cursor:pointer;color:#557969}
.selection-chip-controls[open]{position:absolute;right:34px;top:100%;z-index:20;background:white;border:1px solid #c7dfd2;box-shadow:0 6px 18px #183c2520;border-radius:10px;padding:6px;min-width:92px}
.selection-chip-controls button{display:block;width:100%;padding:9px;border:0;background:none;color:#205c4b;min-height:44px;font-size:15px}
.selection-chip-controls button:disabled{opacity:.4}
.category-selection-chip.is-dragging{opacity:.55;outline:2px solid #1d8767}.category-selection-chip.drop-before{box-shadow:-5px 0 #1d8767}.category-selection-chip.drop-after{box-shadow:5px 0 #1d8767}
@media(min-width:761px){
 .site-header nav.learning-steps{padding:14px 12px 12px;border-radius:20px;gap:0;box-shadow:0 8px 22px #0b493314}
 .site-header nav.learning-steps .nav-button{justify-content:flex-start;text-align:left;gap:12px;min-height:52px;padding:13px 14px;font-size:17px;font-weight:650}
 .site-header nav.learning-steps .nav-button>span:not(.nav-count){text-align:left;flex:1 1 auto}
 .site-header nav.learning-steps .nav-count{margin-left:auto;min-width:24px;height:24px;display:grid;place-items:center;background:#ffffff20;font-size:13px;line-height:1}
 .site-header nav.learning-steps .sidebar-own-space{margin:12px 0 0;padding-top:12px;border-top:1px solid #ffffff20}
 .site-header nav.learning-steps .sidebar-own-space>summary{padding:5px 14px 9px;font-size:13px;color:#bcd4ca;letter-spacing:.03em}
 .site-header nav.learning-steps .sidebar-own-space>summary::after{display:none}
 .site-header nav.learning-steps .nav-saved{display:flex;flex-direction:column;gap:4px}
 .site-header nav.learning-steps .sidebar-bottom{margin-top:12px;padding-top:10px;border-top:1px solid #ffffff20}
 .site-header nav.learning-steps .sidebar-bottom>[data-admin-link]{display:flex;margin:0 0 8px;font-size:14px;min-height:40px;padding:8px 14px;color:#bfd8ce}
 .site-header nav.learning-steps .sidebar-bottom>[data-admin-link]:not([hidden])::before{content:'⚙';font-size:18px;width:24px;text-align:center}
 .site-header nav.learning-steps .sidebar-bottom>[data-admin-link][hidden]{display:none}
 .site-header nav.learning-steps .sidebar-account-actions{border:0;padding-top:0;gap:6px}
 .site-header nav.learning-steps .sidebar-account-actions .nav-button{justify-content:center;gap:6px;min-height:44px;padding:9px 6px;font-size:14px;background:#ffffff09}
 .site-header nav.learning-steps .sidebar-account-actions .nav-button>span{flex:none;text-align:center}
}
@media(max-width:560px){.category-selection-actions{align-items:stretch;flex-wrap:wrap}#category-selection-status{width:100%;flex-basis:100%}.category-selection-actions>button{min-height:48px!important;font-size:16px!important}.category-selection-chip .selection-chip-handle{font-size:15px}}

.forest-shell.is-playing .forest-minigame:has(.maze-board)>header .mini-location{display:none}
.forest-shell.is-playing .forest-minigame:has(.maze-board) .mini-play-area{max-width:1100px}

.maze-board{container-type:size}.maze-tile{min-width:0;min-height:0;font-size:clamp(12px,5cqw,29px)}
@container(max-width:400px){.maze-treasure-question{inset:0;padding:8px;gap:4px;border-radius:12px}.maze-treasure-question strong{font-size:21px}.maze-treasure-question p{font-size:12px}.maze-treasure-question button{min-height:30px;font-size:14px;padding:3px}}
