:root{--ui-body-size: 1rem;--ui-meta-size: .8125rem;--ui-list-height: 64px;--ui-reading-width: 68ch}html[data-density=compact]{--ui-meta-size: .75rem;--ui-list-height: 48px}html .ui-density-picker{padding:16px 0}html .ui-density-picker h3{font:600 .9375rem/1.4 var(--font-ui);margin:0 0 6px}html .ui-density-picker p{font:400 .8125rem/1.5 var(--font-ui);color:var(--text-secondary);margin:0 0 12px}html .ui-density-options{display:flex;gap:8px}html .ui-density-options button{flex:1;min-height:44px;padding:8px 12px;border:1px solid var(--border-default);border-radius:var(--control-radius);background:var(--bg-inset);color:var(--text-primary);font:600 .875rem/1.4 var(--font-ui);cursor:pointer}html .ui-density-options button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-light);color:var(--accent-text)}html .ui-density-options button:active{transform:scale(.98)}html .ui-density-options button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}html .school-badge{color:var(--school-text, var(--text-primary))}html .settings-theme-choice-ui,html .am-lang-seg-btn{font-size:var(--ui-meta-size)}html .am-lang-seg-btn.is-active,html .set-account-btn--signin,html .sh-vital-val,html .shc-ac-val{color:var(--accent-text)}html .am-lang-seg-btn{min-width:44px;min-height:44px}html .spell-prose,html .rail-desc{font-size:var(--ui-body-size);line-height:1.65}html .spell-prose>p{max-width:none}html .rail-desc>p{max-width:var(--ui-reading-width)}html .spell-item,html .compact-strip,html .monster-item,html .bg-item{min-height:var(--ui-list-height)}html .spell-item-name,html .cs-name,html .bg-item-name,html .monster-item-name,html .bm-item-name,html .ref-row-name,html .race-card-name{white-space:normal;overflow-wrap:anywhere;line-height:1.35;align-self:center}html .spell-item-name .alt-name,html .cs-name .alt-name,html .bg-item-name .alt-name,html .monster-item-name .alt-name,html .bm-item-name .alt-name,html .am-result-name .alt-name{display:block;font-size:var(--ui-meta-size);font-weight:400;line-height:1.4}html .spell-item-level{font-size:var(--ui-meta-size);color:var(--text-secondary)}html[data-density] .spell-item-name,html[data-density] .cs-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;min-width:0}html[data-density] .spell-item-name .alt-name,html[data-density] .cs-name .alt-name{display:inline}html[data-density] .spell-item{padding-top:1px;padding-bottom:1px}html[data-density=compact] .spell-item-name,html[data-density=compact] .cs-name{-webkit-line-clamp:2}html[data-density=compact] .spell-item{padding-top:2px;padding-bottom:2px}html[data-density] .ref-row{width:100%;text-align:left;color:var(--text-primary);background:var(--bg-surface);border:0;border-bottom:1px solid var(--border-subtle);font:inherit;cursor:pointer;min-height:var(--ui-list-height)}html[data-density] .ref-row-name .alt-name{display:block;font-size:var(--ui-meta-size);font-weight:400}html[data-density] .ref-row-desc{font-style:normal;font-size:.875rem;line-height:1.45;color:var(--text-secondary)}html[data-density] .ref-rail-prose{font-size:1rem;line-height:1.65;max-width:var(--ui-reading-width)}html[data-density] .race-card-name .alt-name{display:block;font-size:var(--ui-meta-size);font-weight:400}html[data-density] .am-tile-name .alt-name{display:block;font-size:var(--ui-meta-size);font-weight:400;line-height:1.4}html[data-density] .race-card-pills{gap:6px}html[data-density] .mobile-item-section-head details{margin-top:8px}html[data-density] .mobile-item-section-head summary{min-height:44px;display:flex;align-items:center;color:var(--accent-text);font-size:.875rem;cursor:pointer}html[data-density] .mobile-item-section-head details>div{padding:6px 0}html[data-density] .am-filter-footer{padding:12px 14px;border-top:1px solid var(--border-default);flex:none;background:var(--bg-surface)}html[data-density] .am-filter-show{min-height:44px;width:100%;background:var(--accent-control);color:var(--accent-contrast);border:0;border-radius:var(--control-radius);font:600 .9375rem/1.4 var(--font-ui);cursor:pointer}html[data-density] .am-dock:not(.has-selection) .am-dock-slider{opacity:0}html .mobile-item-meta,html .mobile-item-badge,html .cb-race-row-meta,html .mobile-item-section-head p{font-size:var(--ui-meta-size);line-height:1.5}html .cb-picker-toolbar-btn,html .cb-check,html .cb-pill,html .am-tab,html .comment-sort-btn{min-height:44px}html button:focus-visible,html a:focus-visible,html input:focus-visible,html select:focus-visible,html textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}html .ui-empty-action{display:inline-flex;margin-top:14px;min-height:44px;align-items:center;padding:10px 16px;border-radius:var(--control-radius);background:var(--accent-control);color:var(--accent-contrast);font:600 .875rem/1.4 var(--font-ui);text-decoration:none}html[data-density] .sh-vital-label{font-size:.75rem;letter-spacing:.02em;text-transform:none;line-height:1.35}html[data-density] .sh-vitals{margin-top:12px;margin-bottom:16px}html[data-density] .sh-vital{min-height:72px}html[data-density] .sheet-tab{min-height:44px}html[data-density] .shc-hp-amt,html[data-density] .shc-dmg-btn,html[data-density] .shc-heal-btn,html[data-density] .shc-temp-input{min-height:44px;font-size:1rem}html[data-density] .shc-temp-wrap label,html[data-density] .shc-hp-statuslabel{font-size:.75rem}html[data-density] .shc-dmg-btn{color:var(--error-text, var(--entity-ember-text));border-color:var(--border-strong);background:var(--bg-surface)}html[data-density] .shc-heal-btn{background:var(--accent-control)}#cb-step-status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}html[data-density] .cb-race-lore .cb-rd-blurb{font-size:1rem;line-height:1.6;margin:0}html[data-density] .cb-rd-header{padding-bottom:16px}html[data-density] .hb-form label{font-size:.875rem;line-height:1.4}html[data-density] .hb-hint,html[data-density] .hb-subtitle,html[data-density] .hb-badge,html[data-density] .hb-card-meta,html[data-density] .article-meta,html[data-density] .acct-hint{font-size:var(--ui-meta-size);line-height:1.5;color:var(--text-secondary)}html[data-density] .hb-form input:not([type=checkbox]):not([type=radio]),html[data-density] .hb-form select,html[data-density] .hb-filter select,html[data-density] .hb-search{min-height:44px;font-size:1rem}html[data-density] .hb-form textarea,html[data-density] .comment-input{font-size:1rem;line-height:1.6}html[data-density] .hb-btn,html[data-density] .hb-tab,html[data-density] .articles-write,html[data-density] .articles-mine,html[data-density] .bm-tab{min-height:44px}html[data-density] .article-body{max-width:var(--ui-reading-width);font-size:1rem;line-height:1.75}html[data-density] .article-toc a{display:inline-flex;align-items:center;min-height:44px;font-size:.875rem}html[data-density] .legal-disclaimer summary{min-height:44px;cursor:pointer;padding:12px 16px;font:600 .9375rem/1.5 var(--font-ui);color:var(--text-primary)}html[data-density] .act-lede{font-size:1rem;line-height:1.6}html[data-density] .pf-status,html[data-density] .stat-gate-body,html[data-density] .bm-empty-sub{font-size:1rem;line-height:1.6;max-width:60ch}html[data-density] .stat-gate-btn{min-height:44px}html[data-density] .legal-main p{max-width:var(--ui-reading-width);font-size:1rem;line-height:1.65}@media(min-width:769px){:root{--ui-list-height: 60px}html[data-density=compact]{--ui-list-height: 44px}}@media(max-width:768px){html[data-density=readable] .spells-page #grid.compact-view .compact-strip{padding-top:3px!important;padding-bottom:3px!important}html[data-density=compact] .spells-page #grid.compact-view .compact-strip{padding-top:4px!important;padding-bottom:4px!important}html[data-density] .hb-tabs{flex-wrap:nowrap;overflow-x:auto;align-items:stretch}html[data-density] .hb-tabs>*{flex-shrink:0}html[data-density] .hb-workspace-toolbar{gap:8px;padding:10px 0}html[data-density] .hb-workspace-modes{gap:4px}html[data-density] .hb-header-side{width:100%;max-width:none}html[data-density] .hb-header-side .hb-card-actions{width:100%}html[data-density] #hb-submit-button{width:100%;min-height:48px}html[data-density] #ch-inner{padding:16px 16px 48px;--page-pad: 16px}html[data-density] #sheet-view .sh-back{min-height:44px;margin-bottom:8px}html[data-density] #sheet-view .sh-top{gap:12px;margin-bottom:8px}html[data-density] #sheet-view .sh-avatar{width:56px;height:56px;border-radius:12px;font-size:1.5rem}html[data-density] #sheet-view .sh-avatar-edit{width:44px;height:44px;right:-10px;bottom:-10px;border-width:2px}html[data-density] #sheet-view .sh-id{min-width:0;flex:1}html[data-density] #sheet-view .sh-name{font-size:1.25rem;min-height:44px}html[data-density] #sheet-view .sh-subline{font-size:.8125rem;line-height:1.4;margin-top:0}html[data-density] #sheet-view .sh-tags{margin-top:6px;gap:4px}html[data-density] #sheet-view .sh-tag{padding:3px 8px;font-size:.75rem;color:var(--accent-text)}html[data-density] #sheet-view .sh-header-controls{width:100%;justify-content:flex-end;gap:8px!important}html[data-density] #sheet-view .sh-header-controls button{min-height:44px}html[data-density] #sheet-view .sheet-tabs-sticky{padding-top:4px;padding-bottom:4px;justify-content:flex-start}html[data-density] #sheet-view .sheet-tabs{width:100%}html[data-density] #sheet-view .sheet-tab{padding:8px 12px}html[data-density] #sheet-view .sh-vitals{display:flex;gap:8px;overflow-x:auto;margin-top:8px;margin-bottom:0;padding-bottom:4px}html[data-density] #sheet-view .sh-vital{min-width:100px;flex:1 0 100px;padding:10px}html[data-density] #sheet-view .sh-vital:first-child{order:-2}html[data-density] #sheet-view .sh-vital:nth-child(3){order:-1}html[data-density] #sheet-view .sh-vital-val{font-size:1.5rem}html[data-density] #sheet-view .sheet-pane{margin-top:10px}html[data-density] #sheet-view .shc-hpcard{padding:14px;gap:10px}html[data-density] #sheet-view .shc-hp-actions{flex-direction:row;flex-wrap:nowrap;align-items:center}html[data-density] #sheet-view .shc-hp-amt{width:52px;flex:0 0 52px}html[data-density] #sheet-view .shc-dmg-btn,html[data-density] #sheet-view .shc-heal-btn{padding:8px;font-size:.875rem;min-width:0}html[data-density] .cb-rd-header{padding-bottom:12px}html #app-topper-right .arc-sort,html #app-topper-right .topbar-search__kbd{display:none}html .copy-link-btn,html .bookmark-btn,html .inv-add-btn{min-height:44px;min-width:44px}html .mobile-item-meta{font-size:.875rem}html .mobile-item-section-head p{font-size:.9375rem}html .am-sheet-close{width:44px;height:44px}html .am-tab{font-size:.8125rem}}@media(prefers-reduced-motion:reduce){html .ui-density-options button:active{transform:none}}@media(prefers-contrast:more){html .school-badge{background:var(--bg-surface);border-color:currentColor}html .ui-density-options button{border-color:var(--text-secondary)}}html [style*=--school-rgb][style*=--entity-ember-rgb]{--school-text: var(--entity-ember-text)}html [style*=--school-rgb][style*=--entity-verdant-rgb]{--school-text: var(--entity-verdant-text)}html [style*=--school-rgb][style*=--entity-amber-rgb]{--school-text: var(--entity-amber-text)}html [style*=--school-rgb][style*=--entity-arcane-rgb]{--school-text: var(--entity-arcane-text)}html [style*=--school-rgb][style*=--entity-tide-rgb]{--school-text: var(--entity-tide-text)}html [style*=--school-rgb][style*=--entity-mystic-rgb]{--school-text: var(--entity-mystic-text)}
