.back-desktop{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;color:var(--muted,#7a8272);text-decoration:none;padding:10px 8px;border-radius:6px}.back-desktop:hover{background:var(--soft,#e9eddf);color:var(--ink)}.topbar{gap:15px}.brand img{object-fit:contain;width:44px;height:44px}.theme-toggle{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:23px;line-height:1}.theme-toggle:disabled{opacity:.5}.reference-only{display:flex;flex-direction:column;gap:4px;margin:12px 0;padding:12px;background:#e5e7e1;color:#777d74;border:1px dashed #c2c8bc;border-radius:7px;font-size:12px;line-height:1.6;user-select:none}.reference-only b{font-weight:500}.reference-only span{opacity:.8}.grid-pager{display:flex;align-items:center;justify-content:center;gap:20px;margin:30px 0;font-size:13px;color:var(--muted,#77816c)}.grid-pager button{border:1px solid var(--line);border-radius:6px;padding:9px 16px;background:var(--paper)}.grid-pager button:disabled{opacity:.35;cursor:default}.pack-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pack-item{border:1px solid var(--line);border-radius:10px;padding:18px;background:var(--paper)}.pack-item h3{margin:0 0 6px!important}.pack-item p{margin:8px 0}.pack-item button{margin-top:10px}.pack-size{font:12px var(--mono);opacity:.7}.pack-progress{min-height:20px;margin:6px 0;font-size:12px}.pack-import{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
:root[data-theme=night]{color-scheme:dark;--bg:#171d19;--paper:#202a23;--ink:#edf0e7;--muted:#afbb9f;--line:#394537;--orange:#e98b55;--orange-soft:#403127;--green:#b6c99f;--soft:#2c382b;--sage:#2c382b;--cat-eye:#202a23}
[data-theme=night] body,[data-theme=night] .topbar,[data-theme=night] .filters{background:var(--bg);color:var(--ink)}
[data-theme=night] .inspector,[data-theme=night] .face-stage,[data-theme=night] .part-state-card,[data-theme=night] .expression-card,[data-theme=night] .draw-front,[data-theme=night] .search-box,[data-theme=night] .prompt-editor,[data-theme=night] .compare-tray{background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme=night] .reference-only{background:#252e27;border-color:#495442;color:#abb3a3}
[data-theme=night] .primary.orange{background:#d87d48;color:#142018}[data-theme=night] .nav-button.active,[data-theme=night] .category-button.active,[data-theme=night] .chip.active,[data-theme=night] .part-tabs button.active,[data-theme=night] .au-pill,[data-theme=night] .history-item,[data-theme=night] .filter-pill,[data-theme=night] .prompt-mode,[data-theme=night] .au-notice{background:#34412f;color:#d9e6c9;border-color:#46533b}
[data-theme=night] h1,[data-theme=night] h2,[data-theme=night] h3,[data-theme=night] button,[data-theme=night] .brand,[data-theme=night] .card-heading,[data-theme=night] .action-description,[data-theme=night] .use-description,[data-theme=night] .view-description,[data-theme=night] .composer-title,[data-theme=night] .detail-label,[data-theme=night] .au-name{color:var(--ink)}
[data-theme=night] .card-en,[data-theme=night] .strength-note,[data-theme=night] .inspector-note,[data-theme=night] .au-description,[data-theme=night] .section-label,[data-theme=night] .component-row>div>span,[data-theme=night] #modal-body{color:var(--muted)}
[data-theme=night] .prompt-mode button.active,[data-theme=night] .language-toggle button.active,[data-theme=night] .component-stepper button,[data-theme=night] .au-table th{background:#43513a;color:#f2f4ec}
[data-theme=night] .component-issues{background:#463a24;color:#efd1a0}[data-theme=night] .card-tags span,[data-theme=night] .scale-badge{background:#37422f;color:#d0dfbd}
[data-theme=night] .search-wrap,[data-theme=night] .component-sliders,[data-theme=night] .lab-mode-bar,[data-theme=night] .recipe-matches button,[data-theme=night] .detail-links button{background:var(--paper);border-color:var(--line);color:var(--ink)}
[data-theme=night] .primary{background:#405337;border-color:#647b55;color:#f1f4eb}[data-theme=night] .primary.orange{background:#d87d48;border-color:#d87d48;color:#142018}[data-theme=night] .primary:hover{background:#526746;color:#fff}
[data-theme=night] .category-button:hover{background:#34412f}[data-theme=night] .nav-button span{background:#c8d8b8;color:#202a23}
[data-theme=night] .component-endpoints,[data-theme=night] .stage-top,[data-theme=night] .stage-top>span:last-child,[data-theme=night] .stage-bottom,[data-theme=night] .active-action-explanation,[data-theme=night] .lab-active-control b,[data-theme=night] .component-row>div:first-child span,[data-theme=night] .category-button .count,[data-theme=night] .au-table code,[data-theme=night] .au-table td:nth-child(2),[data-theme=night] .source-details summary,[data-theme=night] .source-details a{color:var(--muted)}
[data-theme=night] .quad-chip[data-quadrant=high-negative],[data-theme=night] .draw-quad[data-quadrant=high-negative]{background:#422e29;color:#e7a88c}[data-theme=night] .quad-chip[data-quadrant=high-positive],[data-theme=night] .draw-quad[data-quadrant=high-positive]{background:#403923;color:#e2c17f}[data-theme=night] .quad-chip[data-quadrant=low-negative],[data-theme=night] .draw-quad[data-quadrant=low-negative]{background:#293541;color:#b3c6d9}[data-theme=night] .quad-chip[data-quadrant=low-positive],[data-theme=night] .draw-quad[data-quadrant=low-positive]{background:#2d3b29;color:#c4d7a8}
[data-theme=night] .face-handle{background:#243120e8;border-color:#718160;color:#edf0e7}[data-theme=night] .face-handle.active{background:#583c25;color:#ffcfaa}[data-theme=night] .card-favorite{background:#263220cc;color:#edf0e7}
[data-theme=night] .component-row>div:first-child button,[data-theme=night] .composer-title>span,[data-theme=night] #mode-description,[data-theme=night] .text-button,[data-theme=night] .eyebrow,[data-theme=night] .stage-bottom button,[data-theme=night] .part-tabs button,[data-theme=night] .au-notice span{color:var(--muted)}[data-theme=night] .component-row.active>div:first-child button,[data-theme=night] .component-row.active>div:first-child span{color:#f2ac76}
@media(max-width:1250px){.topbar{gap:9px}.brand{min-width:145px}.main-nav{gap:2px}.main-nav button{padding:11px 9px}.top-actions{gap:8px}.top-actions #help-button{display:none}}
@media(max-width:750px){.back-desktop span{display:none}.topbar{padding:10px 12px;display:grid;grid-template-columns:28px 1fr auto;gap:6px}.brand{min-width:0}.brand img{width:32px;height:32px}.brand>span{font-size:17px}.brand small{font-size:7px;letter-spacing:1px}.back-desktop{padding:8px 2px}.top-actions{gap:7px;justify-content:end}.top-actions #collection-button{display:none}.top-actions #open-packs{font-size:12px;padding:5px}.theme-toggle{width:31px;height:31px;font-size:20px}.main-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,1fr);width:100%}.pack-list{grid-template-columns:1fr}.grid-pager{gap:10px}.grid-pager button{padding:8px 10px}}
@media(max-width:360px){.brand small{display:none}.brand>span{font-size:15px}.brand img{width:28px;height:28px}.top-actions{gap:3px}.top-actions #saved-toggle{display:none}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.back-desktop,.pack-item button{transition:none;animation:none}}
.variant-choices{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 18px;font-size:12px}.variant-choices>span{color:var(--muted);margin-right:4px}.variant-choices button{padding:7px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}.variant-choices button[aria-pressed=true]{background:var(--ink);color:var(--paper)}.variant-choices button:focus-visible,.theme-filter-label input:focus-visible{outline:2px solid var(--orange);outline-offset:3px}.theme-filter-label{display:grid;gap:7px;font-size:13px;color:var(--muted);margin:18px 0 8px}.theme-filter-label input{width:100%;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit}.pack-item[hidden]{display:none}#theme-match-count{font-size:12px;color:var(--muted)}
