/* The existing palettes remain the single source of color, in all six themes. */
.geek-word{display:inline-flex;vertical-align:middle;font-size:.24em;line-height:1;font-style:normal;letter-spacing:.05em;text-transform:uppercase;padding:.5em .65em;margin-left:.65em;border:1px solid var(--line);border-radius:.5em;color:var(--accent);background:var(--panel);transform:translateY(-.2em)}.home-title h1{white-space:nowrap}.home-title h1 small{white-space:normal}.geek-universes{display:flex;align-items:center;justify-content:center;gap:12px;color:var(--muted);font-size:11px;margin:14px 0}.geek-universes i{color:var(--accent);font-style:normal;opacity:.7}.home-title>p:last-child{margin-top:13px}.brand small{letter-spacing:2px}.header-actions .version{white-space:nowrap;font-size:8px}
.geek-tabs{display:flex;gap:6px;flex-wrap:wrap}.geek-tabs button{border:1px solid var(--line);border-radius:99px;background:transparent;color:var(--muted);padding:8px 12px;font-size:11px;cursor:pointer;line-height:1.2}.geek-tabs button[aria-pressed=true]{border-color:var(--accent);color:var(--ink);background:var(--panel-soft,var(--panel))}.geek-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.shelf-tools,.avatar-tools{display:grid;gap:13px;margin:18px 0 8px}.shelf-tools .search,.avatar-tools .search{margin:0;width:100%}.shelf-tools input,.avatar-tools input{height:42px;font-size:12px}.shelf-tools .search>span,.avatar-tools .search>span{display:grid;place-items:center;top:50%;transform:translateY(-50%);width:20px;height:20px}.shelf-tools .ui-icon,.avatar-tools .ui-icon{width:17px;height:17px}
#avatarDialog{width:min(690px,calc(100% - 24px));max-height:88dvh;overscroll-behavior:contain}#avatarGrid{grid-template-columns:repeat(6,minmax(0,1fr));max-height:370px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:3px 6px 6px 3px;gap:10px}.avatar-choice{min-width:0;padding:7px;border-radius:12px}.avatar-choice .portrait-wrap{width:100%;height:auto;aspect-ratio:1/1;max-height:90px;border-radius:9px}.avatar-choice strong{font-size:10px;white-space:normal;overflow-wrap:anywhere}.avatar-choice small{font-size:8px;line-height:1.3;white-space:normal}.avatar-choice.selected{outline:2px solid var(--accent);outline-offset:0}#avatarCount{font-size:10px;margin:9px 0;min-height:15px}
#libraryGrid{max-height:440px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;align-content:start;padding:2px 6px 2px 0}.geek-shelf-card{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:start;gap:13px;padding:15px}.geek-shelf-card>.portrait-wrap{width:48px;height:66px;border-radius:10px}.geek-shelf-card strong{display:block;font-size:14px;line-height:1.4;margin:3px 0}.shelf-kind{font-size:8px;text-transform:uppercase;letter-spacing:1px;color:var(--accent)}.geek-shelf-card p{font-size:10px;line-height:1.5;margin:5px 0}.shelf-scope,.shelf-status{display:block;color:var(--muted);font-size:9px;line-height:1.5}.geek-shelf-card .library-actions{gap:12px;margin-top:10px;flex-wrap:wrap}.geek-shelf-card .text-button{display:inline-flex;align-items:center;gap:5px;font-size:10px}.geek-shelf-card .text-button .ui-icon{width:12px;height:12px}.shelf-placeholder{display:grid;place-items:center;height:60px;color:var(--accent)}.geek-appearance{margin:12px 0}.geek-appearance dd{font-size:11px;line-height:1.6}.icon-button{display:inline-grid;place-items:center;flex-shrink:0}.icon-button>.ui-icon{display:block;flex:none}.home-seal .regran-mark{width:75%;height:75%}
@media(max-width:760px){.geek-word{font-size:.21em;padding:.5em;margin-left:.45em}.home-title h1{font-size:clamp(42px,11vw,65px)}.geek-universes{font-size:10px;gap:10px;margin:12px 0}.header-actions{gap:6px}.topbar .brand{gap:8px}.brand small{letter-spacing:1.5px;font-size:7px}#avatarGrid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:330px;gap:8px}.geek-tabs{gap:5px}.geek-tabs button{padding:7px 10px;font-size:10px}.geek-shelf-card{padding:12px;gap:10px}.geek-shelf-card strong{font-size:13px}#libraryGrid{max-height:45dvh}.avatar-choice{padding:5px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}
