.asset-shelf.is-theme-mode{transition:visibility 0s .35s}.asset-shelf.is-theme-mode.is-open{transition:visibility 0s}
.asset-shelf.is-theme-mode .asset-shelf__backdrop{display:none}
.asset-shelf.is-theme-mode .asset-shelf__shell{left:12px;right:auto;top:12px;bottom:72px;width:min(420px,calc(100vw - 24px));height:auto;border-radius:24px;overflow:hidden;background:var(--surface-solid);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:8px 12px 48px #0f172421;transform:translateX(calc(-100% - 24px));transition:transform .36s cubic-bezier(.2,.85,.25,1),opacity .25s}
.asset-shelf.is-theme-mode.is-open .asset-shelf__shell{transform:translateX(0)}
.asset-shelf.is-theme-mode .asset-shelf__header{padding:22px 20px 8px;height:auto;flex:none;border:0}.asset-shelf.is-theme-mode .asset-shelf__eyebrow{display:none}.asset-shelf.is-theme-mode #asset-shelf-title{font-size:25px;letter-spacing:-.04em}.asset-shelf.is-theme-mode .asset-shelf__body{padding:0;overflow:hidden}
#theme-shelf-content>.asset-shelf__scroll[hidden]{display:none}
.theme-picker{height:100%;display:flex;flex-direction:column;color:var(--text)}
.theme-picker-intro{font-size:12px;color:var(--muted);padding:0 20px 17px}
.theme-picker-search{display:flex;align-items:center;gap:8px;background:var(--surface-soft);border:1px solid var(--border);border-radius:13px;padding:9px 12px;margin:0 20px}.theme-picker-search>span{font-size:25px;line-height:1;color:var(--muted)}.theme-picker-search input{min-width:0;flex:1;background:transparent;border:0;color:inherit;outline:0;font:12px Inter,sans-serif;height:26px}
.theme-picker-filter{display:flex;align-items:center;justify-content:space-between;padding:13px 20px;font-size:11px;color:var(--muted)}.theme-picker-filter label{position:relative;display:flex;align-items:center;gap:8px;cursor:pointer}.theme-picker-filter input{position:absolute;right:0;width:32px;height:20px;opacity:0;margin:0;cursor:pointer}.theme-picker-filter i{width:32px;height:20px;background:color-mix(in srgb,var(--text) 20%,var(--surface-solid));border-radius:99px;pointer-events:none;transition:background .18s}.theme-picker-filter i::after{content:'';display:block;width:14px;height:14px;border-radius:50%;margin:3px;background:white;box-shadow:0 1px 3px #0003;transition:transform .18s}.theme-picker-filter input:checked+i{background:#6984c8}.theme-picker-filter input:checked+i::after{transform:translateX(12px)}.theme-picker-filter input:focus-visible+i{outline:2px solid #6984c8;outline-offset:3px}
.theme-picker-results{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px 16px;scrollbar-width:thin}.theme-picker-pack{margin-bottom:13px;border:1px solid var(--border);border-radius:17px;background:var(--surface-soft);box-shadow:inset 0 2px 5px #00000008;overflow:hidden}.theme-picker-pack[hidden]{display:none}
.theme-picker-pack-heading{display:flex;align-items:center;justify-content:space-between;width:100%;background:none;border:0;color:inherit;cursor:pointer;padding:14px 12px;text-align:left;font-size:12px}.theme-picker-pack-heading>span{font-size:10px;color:var(--muted)}
.theme-picker-pack-body{display:grid;grid-template-rows:1fr;transition:grid-template-rows .24s ease,opacity .2s;opacity:1}.theme-picker-pack.is-collapsed .theme-picker-pack-body{grid-template-rows:0fr;opacity:0}.theme-picker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:0;overflow:hidden;padding:3px 10px 12px}.theme-picker-pack.is-collapsed .theme-picker-grid{padding-block:0}
.theme-picker .theme-card{position:relative;left:auto;bottom:auto;width:100%;height:112px;min-width:0;opacity:1;transform:none;border-radius:13px;padding:8px;box-shadow:0 3px 7px #14223b13;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .2s;cursor:pointer}
.theme-picker .theme-card[hidden]{display:none}.theme-picker .theme-card:hover{transform:translateY(-2px);box-shadow:0 5px 13px #14223b26}.theme-picker .theme-card[aria-pressed=true]{outline:2px solid #6786d0;outline-offset:-2px}
.theme-picker .theme-card__copy{padding:5px 6px;backdrop-filter:none;-webkit-backdrop-filter:none}.theme-picker .theme-card__copy strong{font-size:10px}.theme-picker .theme-card__copy small{display:none}.theme-picker .theme-card__check{display:none}.theme-picker .theme-card__preview{left:8px;right:8px;top:8px;height:58px;border-radius:8px}
.theme-picker .subscription-access-crown{width:20px;height:20px;top:5px;left:5px}.theme-picker .subscription-access-crown svg{width:17px;height:17px}
.theme-picker-applied{margin:0;padding:13px 20px 16px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.asset-shelf.is-theme-mode,.asset-shelf.is-theme-mode *{transition:none!important}}
/* Packs stay in the left shelf; their cards unfurl beside it. */
.asset-shelf.is-theme-mode .asset-shelf__shell{width:min(310px,calc(100vw - 24px))}
.theme-picker-pack{background:transparent;box-shadow:none;border:0;overflow:visible;margin:3px 0 13px}
.theme-picker-pack-heading{padding:10px 8px;gap:13px;min-height:104px;border-radius:16px;transition:background .2s,transform .3s}
.theme-picker-pack-heading:hover,.theme-picker-pack-heading[aria-expanded=true]{background:var(--surface-soft)}
.theme-pack-stack{position:relative;width:82px;height:80px;flex:none;perspective:600px}
.theme-picker .theme-pack-sample{position:absolute;width:59px;height:73px;left:calc(8px + var(--sample)*7px);top:calc(5px - var(--sample)*2px);padding:3px;transform:rotate(calc(-12deg + var(--sample)*9deg));transition:transform .4s cubic-bezier(.2,.8,.2,1);pointer-events:none;box-shadow:0 3px 8px #101b2426}
.theme-pack-sample .theme-card__copy{display:none}.theme-picker .theme-pack-sample .theme-card__preview{inset:5px;height:48px}
.theme-picker-pack-heading:hover .theme-pack-sample,.theme-picker-pack-heading[aria-expanded=true] .theme-pack-sample{transform:translateX(calc(var(--sample)*3px)) rotate(calc(-19deg + var(--sample)*15deg)) translateY(-4px)}
.theme-pack-label{flex:1;min-width:0;text-align:left;display:flex;flex-direction:column;gap:7px}.theme-pack-label strong{font-size:13px;color:var(--text)}.theme-pack-label small{font-size:10px;color:var(--muted)}.theme-pack-arrow{font-size:24px!important;transition:transform .3s}.theme-picker-pack-heading[aria-expanded=true] .theme-pack-arrow{transform:rotate(90deg)}
.theme-picker.theme-pack-fan{position:fixed;inset:auto;margin:0;height:auto;max-height:calc(100vh - 40px);padding:20px;overflow:auto;border:1px solid var(--border);border-radius:24px;background:var(--surface-solid);color:var(--text);box-shadow:10px 16px 50px #15243a24;display:none}
.theme-pack-fan:popover-open{display:flex;animation:themeFanEnter .3s cubic-bezier(.2,.8,.2,1)}
.theme-pack-fan header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:12px}.theme-pack-fan header small{font-size:9px;letter-spacing:.14em;color:var(--muted)}.theme-pack-fan h3{margin:5px 0 0;font-size:20px}.theme-pack-fan header button{width:30px;height:30px;border:1px solid var(--border);border-radius:50%;color:var(--muted);background:var(--surface-soft);font-size:20px;cursor:pointer}
.theme-pack-stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px;padding:10px 6px 14px;perspective:900px}
.theme-pack-fan .theme-card{height:148px;transform:rotate(var(--fan-angle));animation:themeCardUnfold .5s cubic-bezier(.16,.8,.24,1) both;animation-delay:calc(var(--fan-index)*45ms);transform-origin:0 80%;box-shadow:0 7px 15px #18202c20}
.theme-pack-fan .theme-card:hover,.theme-pack-fan .theme-card:focus-visible{transform:translateY(-7px) rotate(0deg) scale(1.03);z-index:2}.theme-pack-fan .theme-card__preview{height:85px}.theme-pack-fan .theme-card__copy strong{font-size:11px}.theme-pack-fan .theme-card[aria-pressed=true]{outline:2px solid #6786d0;outline-offset:3px}
@keyframes themeFanEnter{from{opacity:0;transform:translateX(-18px) scale(.97)}to{opacity:1;transform:none}}@keyframes themeCardUnfold{from{opacity:0;translate:-45px 12px;rotate:-14deg;scale:.85}to{opacity:1;translate:0 0;rotate:0deg;scale:1}}
@media(max-width:760px){.theme-pack-stage{gap:14px 10px}.theme-pack-fan .theme-card{height:126px}.theme-pack-fan .theme-card__preview{height:67px}}
@media(prefers-reduced-motion:reduce){.theme-pack-fan,.theme-pack-fan *{animation:none!important;transition:none!important}}
.theme-picker.theme-pack-fan{opacity:0;transform:translateX(-15px) scale(.97);transition:opacity .2s,transform .25s,display .25s allow-discrete,overlay .25s allow-discrete}.theme-pack-fan:popover-open{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.theme-picker.theme-pack-fan{transition:none}}

/* Miniature versions of the cards in the opened pack. */
.theme-picker .theme-pack-sample .theme-card__preview{inset:4px 4px auto;height:42px;border-radius:6px;overflow:hidden}
.theme-picker .theme-pack-sample .theme-card__preview i{left:4px;top:7px;width:17px;height:15px}.theme-picker .theme-pack-sample .theme-card__preview b{right:4px;top:7px;width:15px;height:6px}.theme-picker .theme-pack-sample .theme-card__preview em{right:4px;top:17px;width:15px;height:11px}
.theme-picker .theme-pack-sample .theme-card__copy{display:block;left:3px;right:3px;bottom:4px;min-height:0;padding:4px 3px;border-radius:5px;overflow:hidden}.theme-picker .theme-pack-sample .theme-card__copy strong{display:block;font-size:6px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theme-picker .theme-pack-sample .theme-card__copy small{display:none}
.theme-picker .theme-pack-sample .theme-card__preview--wood i,.theme-picker .theme-pack-sample .theme-card__preview--wood b,.theme-picker .theme-pack-sample .theme-card__preview--wood em{left:4px;right:4px;width:auto;height:1px;opacity:.22}.theme-picker .theme-pack-sample .theme-card__preview--wood i{top:8px}.theme-picker .theme-pack-sample .theme-card__preview--wood b{top:20px}.theme-picker .theme-pack-sample .theme-card__preview--wood em{top:32px}
.theme-picker .theme-pack-sample .theme-card__preview--code code{left:4px;top:4px;font-size:7px}.theme-picker .theme-pack-sample .theme-card__preview--code i,.theme-picker .theme-pack-sample .theme-card__preview--code b,.theme-picker .theme-pack-sample .theme-card__preview--code em{left:4px;right:auto;height:2px;opacity:.35}.theme-picker .theme-pack-sample .theme-card__preview--code i{top:16px;width:25px}.theme-picker .theme-pack-sample .theme-card__preview--code b{top:23px;width:33px}.theme-picker .theme-pack-sample .theme-card__preview--code em{top:30px;width:20px}

.theme-picker-pack-heading.theme-picker-pack-locked .theme-pack-stack{filter:saturate(.45) brightness(.82);opacity:.72}

.theme-picker-pack-heading.theme-picker-pack-locked .theme-pack-arrow{opacity:.42}
.theme-picker-pack-heading.theme-picker-pack-locked:hover .theme-pack-stack{filter:saturate(.65) brightness(.9);opacity:.86}

/* Grouped browsing with independent category, ownership, and name filters. */
.theme-picker-order{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:8px;margin:10px 20px 0;flex:none}
.theme-picker-order label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:700;color:var(--muted)}
.theme-picker-order select{width:100%;min-width:0;min-height:32px;padding:5px 6px;border:1px solid var(--border);border-radius:10px;color:var(--text);background:var(--surface-soft);font:500 11px var(--site-font-family,Inter,sans-serif);cursor:pointer}
.theme-picker-results .theme-picker-group-title{margin:15px 8px 4px;padding-bottom:7px;border-bottom:1px solid var(--border);font-size:11px;font-weight:750;letter-spacing:.02em;color:var(--muted)}
.theme-picker-group-title[hidden]{display:none}
.theme-picker-results .theme-picker-pack[hidden]{display:none}
.theme-picker-search{margin-top:8px}

/* Keep browsing controls in one row until the teacher opens Filters. */
.theme-picker-toolbar{display:flex;align-items:center;gap:8px;margin:8px 16px 4px;flex:none}
.theme-picker-toolbar .theme-picker-search{flex:1;min-width:0;margin:0;padding:5px 8px;border-radius:12px}
.theme-picker-toolbar .theme-picker-search input{width:0;font-family:var(--site-font-family,Inter,sans-serif)}
.theme-picker-filter-toggle{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:7px 10px;border:1px solid var(--border);border-radius:12px;background:var(--surface-soft);color:var(--text);font:600 11px var(--site-font-family,Inter,sans-serif);cursor:pointer;transition:background .18s,box-shadow .18s}
.theme-picker-filter-toggle svg{width:17px;height:17px;flex:none}
.theme-picker-filter-toggle:hover,.theme-picker-filter-toggle[aria-expanded=true]{background:color-mix(in srgb,#6984c8 13%,var(--surface-solid));box-shadow:0 2px 6px #18202c15}
.theme-picker-filter-toggle:focus-visible{outline:2px solid #6984c8;outline-offset:2px}
.theme-picker-filter-toggle.has-active-filters::after{content:'';position:absolute;right:4px;top:4px;width:5px;height:5px;border-radius:50%;background:#6984c8}
.theme-picker-options{flex:none}
.theme-picker-options[hidden]{display:none}
.theme-picker-options .theme-picker-order{margin:8px 16px 0}
.theme-picker-options .theme-picker-filter{padding:10px 16px}
.theme-picker-results .theme-picker-group-title:first-child{margin-top:9px}

.theme-picker .theme-pack-arrow{font-size:0!important;display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px}
.theme-picker .theme-pack-arrow:before{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);border-radius:1px}

/* Compact pack gallery: two packs per row, with artwork painted only near the viewport. */
.asset-shelf.is-theme-mode .asset-shelf__shell{width:min(380px,calc(100vw - 24px))}
.theme-picker-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;padding:0 14px 14px;scrollbar-gutter:stable}
.theme-picker-results .theme-picker-group-title{grid-column:1/-1;margin:10px 2px 0}
.theme-picker-pack{margin:0;content-visibility:auto;contain-intrinsic-size:auto 132px;border:1px solid var(--border);border-radius:15px;background:var(--surface-soft)}
.theme-picker-pack-heading{position:relative;flex-direction:column;justify-content:center;gap:3px;min-height:132px;padding:8px 7px;overflow:hidden}
.theme-pack-stack{width:82px;height:72px;perspective:none}
.theme-pack-label{flex:none;align-items:center;gap:3px;width:100%;text-align:center}
.theme-pack-label strong{font-size:11px;line-height:1.25;overflow-wrap:anywhere}
.theme-pack-label small{font-size:10px}
.theme-pack-label .holiday-badge{position:absolute;top:7px;left:6px;font-size:8px;padding:2px 4px}
.theme-picker .theme-pack-arrow{position:absolute;right:9px;top:58px;opacity:.55}
.theme-picker-pack-heading.has-selected-theme{box-shadow:inset 0 0 0 2px #6984c8}
.theme-picker .theme-pack-sample{box-shadow:0 2px 4px #101b2420}
.theme-picker-empty{grid-column:1/-1;padding:20px 8px;font-size:12px;text-align:center;color:var(--muted)}
.theme-picker-empty[hidden]{display:none}
/* Resting and offscreen packs are still previews, without continuously repainting animations. */
.theme-picker-pack *,.theme-picker-pack *::before,.theme-picker-pack *::after{animation-play-state:paused!important}
.theme-picker-pack-heading:is(:hover,:focus-visible) *,.theme-picker-pack-heading:is(:hover,:focus-visible) *::before,.theme-picker-pack-heading:is(:hover,:focus-visible) *::after{animation-play-state:running!important}
@media(prefers-reduced-motion:reduce){.theme-picker-pack *{animation:none!important}}

.theme-pack-stack{height:78px}
.theme-picker .theme-pack-sample{transform:rotate(calc(-12deg + var(--sample)*9deg)) scale(.85);transform-origin:50% 35%}
.theme-picker-pack-heading:hover .theme-pack-sample,.theme-picker-pack-heading[aria-expanded=true] .theme-pack-sample{transform:translateX(calc(var(--sample)*3px)) rotate(calc(-19deg + var(--sample)*15deg)) translateY(-4px) scale(.85)}
.theme-picker-pack[data-kind="default"]{grid-column:1/-1;contain-intrinsic-size:auto 92px}
.theme-picker-pack[data-kind="default"] .theme-picker-pack-heading{flex-direction:row;justify-content:flex-start;min-height:92px;padding:7px 18px;gap:16px}
.theme-picker-pack[data-kind="default"] .theme-pack-label{width:auto;align-items:flex-start;text-align:left}
.theme-picker-pack[data-kind="default"] .theme-pack-arrow{top:36px}

/* Let the pack artwork stand on its own. Filters are one compact shelf. */
.theme-picker{position:relative}
.theme-picker-options{max-height:calc(100% - 70px);overflow:auto;position:absolute;z-index:20;top:54px;left:14px;right:14px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-solid);box-shadow:0 12px 32px #15243a24}
.theme-filter-section{margin:0 0 13px;padding:0;border:0;min-width:0}
.theme-filter-section legend{padding:0;margin-bottom:8px;font-size:11px;font-weight:750;color:var(--muted)}
.theme-filter-choices{display:flex;flex-wrap:wrap;gap:6px}
.theme-filter-choices button{min-height:33px;padding:7px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft);color:var(--text);font:600 11px var(--site-font-family,Inter,sans-serif);cursor:pointer}
.theme-filter-choices button[aria-pressed=true]{background:color-mix(in srgb,#6984c8 15%,var(--surface-solid));border-color:#6984c8;color:var(--text)}
.theme-filter-choices button:focus-visible,.theme-picker-pack-heading:focus-visible{outline:2px solid #6984c8;outline-offset:2px}
.theme-picker-options .theme-picker-filter{padding:12px 0 0;border-top:1px solid var(--border);gap:8px}
.theme-picker-pack{border:0;background:transparent;box-shadow:none;contain-intrinsic-size:auto 144px}
.theme-picker-pack-heading{min-height:144px;padding:12px 7px;overflow:visible}
.theme-picker-pack-heading:hover,.theme-picker-pack-heading[aria-expanded=true]{background:transparent}
.theme-picker-pack-heading.has-selected-theme{box-shadow:none}
.theme-picker-pack-heading.has-selected-theme .theme-pack-label strong{color:#6984c8}
.theme-picker-pack-heading.has-selected-theme .theme-pack-label strong::after{content:' ✓'}
.theme-picker .theme-pack-arrow{display:none}
.theme-pack-stack{width:94px;height:86px}
.theme-picker .theme-pack-sample{left:calc(14px + var(--sample)*7px);transform:rotate(calc(-12deg + var(--sample)*9deg))}
.theme-picker-pack-heading:hover .theme-pack-sample,.theme-picker-pack-heading[aria-expanded=true] .theme-pack-sample{transform:translateX(calc(var(--sample)*3px)) rotate(calc(-19deg + var(--sample)*15deg)) translateY(-4px)}
.theme-picker-lock{display:none;position:absolute;z-index:4;left:0;right:0;top:32px;justify-content:center;pointer-events:none}
.theme-picker-pack-locked>.theme-picker-lock,.theme-picker-locked>.theme-picker-lock{display:flex}
.theme-picker-lock>span{display:flex;align-items:center;gap:7px;background:var(--surface-solid,#fff);color:var(--text,#263249);border:1px solid var(--border,#dce3ed);border-radius:20px;padding:8px 12px;font:700 11px Inter,system-ui,sans-serif;box-shadow:0 2px 7px #17243c12}
.theme-picker-lock img{width:17px;height:17px;object-fit:contain}

/* Favorites are individual variants; pack previews never contain favorite controls. */
.theme-picker-views{flex:none;margin:0 16px 14px}
.theme-picker-cell{position:relative;min-width:0;height:148px}
.theme-picker-cell[hidden],.theme-favorites-grid[hidden]{display:none!important}
.theme-pack-fan .theme-picker-cell{transform:rotate(var(--fan-angle));transform-origin:0 80%;transition:transform .2s;animation:themeCardUnfold .5s cubic-bezier(.16,.8,.24,1) both;animation-delay:calc(var(--fan-index)*45ms)}
.theme-pack-fan .theme-picker-cell:hover,.theme-pack-fan .theme-picker-cell:focus-within{transform:translateY(-7px) rotate(0deg);z-index:2}
.theme-picker .theme-picker-cell>.theme-card{height:100%;transform:none;animation:none}
.theme-favorites-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:10px 3px}
.theme-favorites-grid .theme-card__preview{height:85px}
.theme-favorites-grid .theme-card__copy strong{font-size:11px}
.theme-favorites-grid .theme-card:hover{box-shadow:0 5px 13px #14223b26}
@media(max-width:760px){.theme-pack-fan .theme-picker-cell{height:126px}}
@media(prefers-reduced-motion:reduce){.theme-picker-cell{animation:none!important;transition:none!important}}

/* Anchor filters to their toolbar even when the Favorites row changes height. */
.theme-picker-toolbar{position:relative}
.theme-picker-options{top:calc(100% + 8px);left:0;right:0;max-height:min(360px,60vh)}
