html[data-theme] .sheet-review-modal{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}html[data-theme] .sheet-review-modal .review-row{border-color:var(--ui-line)}html[data-theme] .sheet-review-modal .review-after{color:var(--ui-success)}html[data-theme] .sheet-review-modal .review-before{color:var(--ui-muted);opacity:1}:root[data-theme=light]{--ui-bg:#f5f1e8;--ui-surface:#fffdf8;--ui-raised:#eee7da;--ui-text:#282c29;--ui-muted:#5d665f;--ui-line:#cfc8ba;--ui-accent:#753b49;--ui-on-accent:#fff;--ui-gold:#73511c;--ui-success:#365d43;--ui-danger:#933338;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}:root[data-theme=dark]{--ui-bg:#141817;--ui-surface:#1e2522;--ui-raised:#2a342e;--ui-text:#f3f1e8;--ui-muted:#bfc7bf;--ui-line:#546157;--ui-accent:#e8b8bf;--ui-on-accent:#30151d;--ui-gold:#e0c286;--ui-success:#afd7b4;--ui-danger:#f0a7ac;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html[data-theme] body{--ink:var(--ui-text)!important;--text:var(--ui-text)!important;--muted:var(--ui-muted)!important;--canvas:var(--ui-bg)!important;--bg:var(--ui-bg)!important;--cloth:var(--ui-surface)!important;--surface:var(--ui-surface)!important;--panel:var(--ui-surface)!important;--cloth-2:var(--ui-raised)!important;--cloth-3:var(--ui-raised)!important;--line:var(--ui-line)!important;--thread:var(--ui-gold)!important;--gold:var(--ui-gold)!important;--wine:var(--ui-accent)!important;--accent:var(--ui-accent)!important;--success:var(--ui-success)!important;--danger:var(--ui-danger)!important;background:var(--ui-bg)!important;color:var(--ui-text)!important}html[data-theme] :is(h1,h2,h3,h4,strong,label,summary,.brand-copy,.brand-copy strong,.stat-value,.resource-value,.combatant-name){color:var(--ui-text)!important}html[data-theme] :is(p,small,.muted,.eyebrow,.card-meta,.field label,.thread-divider){color:var(--ui-muted)!important}html[data-theme] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,option){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;color-scheme:inherit!important}html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{opacity:1;color:var(--ui-muted)!important}html[data-theme] :is(.stitch-card,.auth-card,.studio-panel,.record-row,.hero,.player-drafts,.player-campaign-brief,.player-character-card,.choice-preview,.selection-card,.stat-box,.loom-note,.review-grid>div,.unlock-card,.dialog,.dialog-content,.builder-hero,.builder-dot,.journey-guide,.story-seeds button,.journey-seal,.creature-card,.bestiary-detail,.miniature-panel,.inventory-record,.power-group,.sheet-tab-panel){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;box-shadow:none!important}html[data-theme] :is(.topbar,.player-topbar,.master-topbar,.sheet-tabs,.sheet-header,.library-sidebar,.library-toolbar,.library-command,.master-live-notice,.player-live-notice,.bestiary-filters){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}html[data-theme] :is(.ghost-btn,.chip-btn,.icon-btn,.miniature-entry,.bestiary-pagination button,.sheet-tab,.category-btn,.builder-dot,.badge,.theme-switch){background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;text-shadow:none!important;box-shadow:none!important}html[data-theme] :is(.primary-btn,.sheet-tab.active,.category-btn.active,.builder-dot.active,.nav-btn.active){background:var(--ui-accent)!important;color:var(--ui-on-accent)!important;border-color:var(--ui-accent)!important}html[data-theme] :is(.primary-btn,.builder-dot.active,.sheet-tab.active) :is(span,small,strong){color:var(--ui-on-accent)!important}html[data-theme] :is(.badge.gold,.unlock-level){color:var(--ui-gold)!important;background:var(--ui-raised)!important;border-color:var(--ui-line)!important}html[data-theme] .badge.green{color:var(--ui-success)!important}html[data-theme] :is(.badge.red,.danger-btn){color:var(--ui-danger)!important;background:var(--ui-raised)!important;border-color:var(--ui-line)!important}html[data-theme] a{color:var(--ui-accent)}html[data-theme] button:disabled{opacity:.65}html[data-theme] :is(button,input,select,textarea,a):focus-visible{outline-offset:3px;outline:3px solid var(--ui-accent)!important}.theme-switch{border:1px solid var(--ui-line);cursor:pointer;border-radius:12px;min-height:44px;padding:10px 14px;font:600 .92rem system-ui;position:static}html[data-theme] :is(.app-shell,.bestiary-shell,.miniature-shell){padding-bottom:88px}html[data-theme] .fluid-nav{right:16px!important;bottom:calc(16px + env(safe-area-inset-bottom))!important;z-index:1200!important;width:auto!important}html[data-theme] .fluid-nav-toggle{background:var(--ui-accent)!important;width:52px!important;height:52px!important;color:var(--ui-on-accent)!important;border:1px solid var(--ui-accent)!important;box-shadow:none!important;animation:none!important}html[data-theme] .fluid-nav-toggle:before,html[data-theme] .fluid-nav-toggle:after,html[data-theme] .fluid-orb:before,html[data-theme] .fluid-orb:after{display:none!important}html[data-theme] .fluid-nav.open .fluid-nav-items{border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-radius:16px!important;grid-template-columns:1fr!important;gap:4px!important;width:min(320px,100vw - 32px)!important;max-height:min(70dvh,640px)!important;padding:10px!important;display:grid!important;position:absolute!important;bottom:64px!important;left:auto!important;right:0!important;overflow:auto!important;transform:none!important;box-shadow:0 12px 36px #0003!important}html[data-theme] .fluid-nav-item{width:100%!important;min-height:48px!important;color:var(--ui-text)!important;background:0 0!important;border-radius:10px!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;margin:0!important;padding:6px 10px!important;animation:none!important;display:flex!important;position:relative!important;transform:none!important}html[data-theme] .fluid-nav-item.active{background:var(--ui-raised)!important;box-shadow:inset 3px 0 var(--ui-accent)!important}html[data-theme] .fluid-orb{background:var(--ui-raised)!important;width:36px!important;height:36px!important;color:var(--ui-accent)!important;box-shadow:none!important;filter:none!important;border:0!important;border-radius:9px!important;flex:0 0 36px!important;order:0!important;place-items:center!important;animation:none!important;display:grid!important;transform:none!important}html[data-theme] .fluid-orb i{place-items:center;display:grid}html[data-theme] .fluid-orb svg{fill:none;stroke:currentColor;stroke-width:1.6px;stroke-linecap:round;stroke-linejoin:round;width:24px;height:24px}html[data-theme] .fluid-label{color:var(--ui-text)!important;opacity:1!important;box-shadow:none!important;text-align:left!important;background:0 0!important;border:0!important;order:1!important;padding:0!important;font:600 .92rem system-ui!important;display:block!important;position:static!important;transform:none!important}html[data-theme] .creature-placeholder{display:none!important}html[data-theme] .ageverse-intro :is(h1,p,small){color:#f5e6c8!important}html[data-theme] .studio{padding-bottom:88px}html[data-theme] .studio form{background:var(--ui-surface);color:var(--ui-text)}html[data-theme] .studio button{background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line)}html[data-theme] .sheet-tabs button{background:var(--ui-surface)!important;color:var(--ui-muted)!important}html[data-theme] .sheet-tabs button.active{background:var(--ui-accent)!important;color:var(--ui-on-accent)!important;border-color:var(--ui-accent)!important}html[data-theme] input::file-selector-button{background:var(--ui-raised);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:6px;padding:6px}:root[data-theme=dark]{--ui-bg:#252a28;--ui-surface:#303632;--ui-raised:#3b443e;--ui-line:#758077;--ui-muted:#d2d7d2}html[data-theme] :is(.search-field,.studio-kpis span,.library-kpi-strip span,.builder-actions,.builder-preview,.builder-preview-card,.builder-progress,.builder-canvas,.builder-workbench,.grimoire-card,.grimoire-panel,.portrait-tools,.portrait-workspace,.sheet-dice-dialog,.inspect-section,.stat-tile,.bonus-ledger,.story-seeds){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}html[data-theme] .studio-kpis span{background:var(--ui-raised)!important}html[data-theme] .ageverse-release-footer{background:var(--ui-surface)!important;color:var(--ui-muted)!important;border-color:var(--ui-line)!important}html[data-theme] .ageverse-release-footer :is(a,b,span,small){color:var(--ui-text)!important}html[data-theme] .toast{z-index:1500;font-size:.95rem;box-shadow:0 6px 24px #0002;background:var(--ui-raised)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;bottom:calc(80px + env(safe-area-inset-bottom))!important}html[data-theme] .journey-guide{grid-template-columns:44px minmax(0,1fr);align-items:start;gap:14px;min-width:0;margin-bottom:20px;padding:20px;display:grid;overflow:visible}html[data-theme] .journey-seal{background:var(--ui-raised);width:44px;height:44px;color:var(--ui-gold);border-radius:12px;place-items:center;font:700 1rem system-ui;display:grid}html[data-theme] .journey-guide h2{margin:6px 0 10px;font-size:1.3rem;line-height:1.3}html[data-theme] .journey-guide p{margin:6px 0;font-size:.95rem;line-height:1.6}html[data-theme] .journey-guide details{border-top:1px solid var(--ui-line);padding-top:10px}html[data-theme] .journey-guide .journey-thread{display:none}.builder-portrait-feedback{border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-text);border-radius:12px;align-items:center;gap:16px;margin:12px 0;padding:14px;display:flex}.builder-portrait-feedback img{object-fit:cover;border-radius:12px;width:88px;height:88px}.builder-portrait-feedback small{margin-top:6px;display:block}.builder-portrait-feedback[hidden]{display:none}html[data-theme] .theme-switch:not(.fluid-nav-items .theme-switch){display:none!important}html[data-theme] .builder-progress{scrollbar-width:thin;align-items:stretch;gap:8px;padding:8px 0;overflow-x:auto;display:flex!important}html[data-theme] .builder-progress:before{display:none}html[data-theme] .builder-progress .builder-dot{flex-direction:column;justify-content:center;gap:4px;display:flex;position:relative;border-radius:12px!important;flex:0 0 112px!important;width:auto!important;height:auto!important;min-height:64px!important}html[data-theme] .builder-progress .builder-dot small{white-space:normal;font-size:.72rem;line-height:1.3;display:block!important;position:static!important}html[data-theme] .builder-progress .builder-dot.active small{color:var(--ui-on-accent)!important}html[data-theme] .bestiary-count{color:var(--ui-accent)!important}html[data-theme]{background:var(--ui-bg);color:var(--ui-text)}html[data-theme] .brand-mark{flex:0 0 44px;width:44px;height:44px;box-shadow:none!important;background:0 0!important;border:0!important;border-radius:12px!important}html[data-theme] .brand-mark img{filter:none;object-fit:contain;width:44px;height:44px}html[data-theme] .builder-progress .builder-dot{min-width:112px;font-family:system-ui,sans-serif}html[data-theme] .builder-progress .builder-dot span{font-size:1rem;line-height:1.4}html[data-theme] .builder-progress .builder-dot small{font-size:.8rem;line-height:1.4}html[data-theme] .search-field{border:1px solid var(--ui-line);border-radius:12px;overflow:hidden}html[data-theme] .search-field input{min-width:0;background:0 0!important}html[data-theme] .builder-portrait-feedback{overflow-wrap:anywhere;flex-wrap:wrap}html[data-theme] :is(.creature-stats span,.detail-close){background:var(--ui-raised)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}html[data-theme] :is(.inventory-facts,.inventory-group,.inventory-record,.review-row,.review-before,.review-after,.forge-review-section,.campaign-cover,.campaign-shop-card,.campaign-empty,.campaign-selection-summary,.campaign-catalog-option,.campaign-sidebar .stitch-card,.campaign-composer,.campaign-entry){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}html[data-theme] :is(.inventory-facts,.review-row,.campaign-cover-meta span){background:var(--ui-raised)!important}html[data-theme] .campaign-social :is(h1,h2,h3,h4,strong,p,label){color:var(--ui-text)}html[data-theme] .campaign-social :is(small,.muted){color:var(--ui-muted)}html[data-theme] :is(.campaign-side-card,.campaign-feature-button,.campaign-shop-dialog .dialog-content){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important}html[data-theme] .campaign-feature-button :is(strong,small,b),html[data-theme] .campaign-cover-meta span{color:var(--ui-text)!important}html[data-theme] .campaign-feature-button small{color:var(--ui-muted)!important}html[data-theme] .campaign-cover{border:1px solid var(--ui-line);box-shadow:none;border-radius:20px;align-items:center;gap:24px;padding:24px;display:flex;background-image:none!important}html[data-theme] .campaign-cover:before,html[data-theme] .campaign-cover:after{display:none}html[data-theme] .campaign-cover h1{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.2}html[data-theme] .campaign-cover-emblem{object-fit:contain;width:100px;height:100px}html[data-theme] .social-layout{grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px;margin-top:24px;display:grid}html[data-theme] .social-layout>*{min-width:0}html[data-theme] .social-feed{gap:16px;display:grid}html[data-theme] .social-picture{object-fit:contain;border-radius:12px;max-width:100%;max-height:480px}html[data-theme] .campaign-entry{box-shadow:none;border-radius:16px}html[data-theme] .social-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}html[data-theme] .brand-mark{border-radius:50%!important}.catalog-grant-dialog{width:min(880px,100vw - 24px);max-height:90dvh;overflow:auto}.catalog-grant-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:16px 0;display:grid}.catalog-grant-results{flex-direction:column;gap:8px;max-height:360px;display:flex;overflow:auto}.catalog-grant-option{text-align:left;border:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-text);cursor:pointer;border-radius:12px;padding:12px}.catalog-grant-option small{color:var(--ui-muted);margin-top:5px;display:block}.catalog-grant-option.selected{border-color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent);background:var(--ui-raised)}.catalog-grant-preview{border:1px solid var(--ui-line);background:var(--ui-raised);color:var(--ui-text);overflow-wrap:anywhere;border-radius:12px;padding:16px;line-height:1.6}[data-grant-error]{color:var(--ui-text);border-left:3px solid var(--ui-accent);padding-left:10px}[data-grant-error]:empty{display:none}.racial-adjustment-dialog{width:min(720px,100vw - 24px);max-height:90dvh;overflow:auto}html[data-theme=light] :is(.review-row,.inventory-facts,.catalog-grant-preview){color:#343a36!important;background:#eeeae2!important}@media (max-width:700px){html[data-theme] .social-layout,.catalog-grant-layout{grid-template-columns:1fr}html[data-theme] .campaign-cover{align-items:flex-start;gap:14px;padding:18px}html[data-theme] .campaign-cover-emblem{width:64px;height:64px}.catalog-grant-results{max-height:240px}}
