.spellbook-page{--spellbook-scroll-margin:7rem;width:min(1480px,calc(100% - 3rem));padding-block:1.5rem 4rem}.spellbook-header{max-width:none;margin-bottom:1rem}.spellbook-header h1{font-size:clamp(1.7rem,3vw,2.3rem);margin-bottom:.4rem}.spellbook-header .eyebrow{font-size:.68rem;margin-bottom:.35rem}.spellbook-header>p{font-size:.9rem;margin-bottom:.5rem;color:var(--muted-strong)}.spellbook-header .action-row{margin-top:.65rem}.spellbook-header .button{font-size:.78rem;padding:.45rem .75rem}.spellbook-header .spellbook-reference-link{margin-block:.6rem 0;font-size:.88rem}.spellbook-reference-link a{display:inline-flex;align-items:center;min-height:44px}.spellbook-source{border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--surface);border-radius:.65rem;padding:1.2rem 1.4rem;margin-block:2rem 1.5rem}.spellbook-source h2{font-size:1.05rem;line-height:1.4;margin-bottom:.35rem}.spellbook-source p{color:var(--muted-strong);font-size:.85rem;margin-bottom:.65rem;max-width:110ch}.spellbook-source>p:last-child{margin-bottom:0}.spellbook-source>details>summary{min-height:44px;padding-block:.6rem;cursor:pointer}.spellbook-source dl{display:flex;flex-wrap:wrap;gap:.75rem 2.5rem;margin:.85rem 0}.spellbook-source dt{color:var(--muted);font-size:.74rem}.spellbook-source dd{margin:.1rem 0 0;font-size:.85rem;font-weight:700;overflow-wrap:anywhere}.spellbook-card,.spellbook-card__heading>div,.spellbook-explorer,.spellbook-results,.spellbook-results-wrap{min-width:0}.spellbook-search{margin:0}.spellbook-layout{display:grid;grid-template-columns:210px minmax(0,1fr);align-items:start;gap:1.1rem}.spellbook-filters{display:grid;gap:1rem;padding:1rem;border:1px solid #494339;border-radius:4px;background:linear-gradient(#242422,#191a1b);min-width:0}.spellbook-filters h2{font-size:1.1rem;margin-bottom:0}.spellbook-filters__heading a{display:inline-flex;align-items:center;min-height:44px;font-size:.8rem}.spellbook-filter-fields{display:grid;gap:.8rem}.spellbook-filter-fields .field,.spellbook-filter-fields select{min-width:0}.spellbook-filter-fields select{font-size:.86rem;padding-inline:.55rem}.spellbook-filters>.button{font-size:.85rem;padding-inline:.5rem}.spellbook-filter-help{font-size:.78rem;color:var(--muted);margin:0;border-top:1px solid var(--border);padding-top:.8rem}.spellbook-results__heading{margin-bottom:1rem}.spellbook-results__heading h2{margin:0 0 .4rem;font-size:1.4rem;scroll-margin-block:var(--spellbook-scroll-margin) 2rem}.spellbook-results__heading p{margin:0;color:var(--muted-strong);font-size:.86rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.spellbook-results__range{color:var(--muted);font-size:.8rem;margin:-.45rem 0 1rem;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.spellbook-active-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.spellbook-filter-chip{display:inline-flex;align-items:center;justify-content:space-between;gap:.65rem;max-width:100%;min-height:44px;border:1px solid var(--border-strong);border-radius:.4rem;color:var(--text);background:var(--surface-raised);padding:.4rem .65rem;font-size:.8rem;text-align:left;cursor:pointer}.spellbook-filter-chip>span:first-child{min-width:0;overflow-wrap:anywhere}.spellbook-filter-chip>span:last-child{color:var(--accent-strong);font-size:1.2rem}.spellbook-filter-chip:hover{border-color:var(--accent)}.spellbook-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:1rem}.spellbook-card{border:1px solid var(--border);border-radius:.65rem;background:var(--surface);padding:1.1rem;overflow-wrap:anywhere}.spellbook-card__heading{display:flex;align-items:center;gap:.8rem}.spellbook-card__icon{flex:0 0 48px;border:1px solid var(--border-strong);border-radius:.4rem;width:48px;height:48px}.spellbook-card__icon--empty{display:grid;place-items:center;font-size:1.4rem;color:var(--muted)}.spellbook-card__class{font-size:.72rem;color:var(--muted);margin:0 0 .2rem}.spellbook-card h3{font-size:1.14rem;line-height:1.35;margin:0}.spellbook-card__category{color:var(--muted-strong);font-size:.8rem;margin:.75rem 0}.spellbook-card__facts{display:grid;gap:.35rem;font-size:.8rem;margin:.75rem 0}.spellbook-card__facts>div{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.2fr);gap:.7rem}.spellbook-card__facts dt{color:var(--muted)}.spellbook-card__facts dd{margin:0}.spellbook-card__requirements{padding-left:1.1rem;color:var(--muted-strong);font-size:.8rem;margin:.75rem 0}.spellbook-card__details{margin-top:.9rem;border-block:1px solid var(--border)}.spellbook-card__details summary{min-height:44px;padding-block:.65rem;cursor:pointer;font-size:.8rem;font-weight:700}.spellbook-card__details summary>span{color:var(--muted);white-space:nowrap;font-weight:400}.spellbook-card__details summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.spellbook-card__detail-content{padding-bottom:.2rem;font-size:.8rem;color:var(--muted-strong)}.spellbook-card h4{color:var(--text);margin:.8rem 0 .5rem;font-size:.84rem}.spellbook-card__decision{font-weight:700;color:var(--accent-strong);margin-bottom:.4rem}.spellbook-ranks{border-collapse:collapse;width:100%;text-align:left;font-size:.78rem}.spellbook-ranks caption{text-align:left;font-size:.75rem;color:var(--muted);padding-block:.2rem .5rem}.spellbook-ranks td,.spellbook-ranks th{border-bottom:1px solid var(--border);padding:.4rem .25rem}.spellbook-ranks thead th{color:var(--muted)}.spellbook-ranks tbody th{font-weight:400}.spellbook-card__macros{font-size:.8rem;margin:.85rem 0}.spellbook-card__macros ul{display:grid;gap:.6rem;margin:0;padding:0;list-style:none}.spellbook-card__macros li{display:flex;align-items:start;flex-wrap:wrap;gap:.35rem .6rem}.spellbook-card__macros p{color:var(--muted);margin:0}.spellbook-card__macros a{display:inline-flex;align-items:center;min-height:44px}.spellbook-card__macros .status-badge{align-self:center}.spellbook-card__footer .button{min-height:44px;max-width:100%}.spellbook-card__footer .copy-control{max-width:100%}.spellbook-card__footer .copy-control__message{left:0;transform:none;white-space:normal;width:max-content;max-width:min(230px,65vw)}.spellbook-pagination{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem;border-top:1px solid #685532;background:linear-gradient(#302c23,#1d1b17)}.spellbook-pagination>span{font-size:.75rem;color:#ddd0b1;text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.spellbook-pagination .button{font-size:.72rem;padding:.4rem .7rem;min-width:44px;border:1px solid #786442;border-radius:3px;background:linear-gradient(#4a4030,#29241e);color:#f4dfab}.spellbook-pagination .button:hover:not(:disabled){background:#51462e}.spellbook-explorer :is(button,input,select,summary,a){scroll-margin-block:var(--spellbook-scroll-margin) 2rem}.spellbook-results .empty-state h2{font-size:1.6rem}.spellbook-reference{margin-top:3rem;padding-top:2rem;border-top:1px solid var(--border-strong);scroll-margin-top:var(--spellbook-scroll-margin)}.spellbook-reference h2{font-size:1.7rem}.spellbook-reference__intro{max-width:100ch;color:var(--muted-strong);font-size:.9rem}.spellbook-reference__intro p{margin-bottom:.65rem}.spellbook-reference__filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem;margin-block:1.5rem 1rem}.spellbook-reference__filters>.field{min-width:0}.spellbook-reference__filters>label.field{color:var(--muted-strong);font-size:.82rem;font-weight:800}.spellbook-reference__results{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-bottom:1rem;font-size:.85rem;color:var(--muted-strong)}.spellbook-reference__results p{margin:0}.spellbook-reference__results .button{font-size:.85rem}.spellbook-reference__card{font-size:.83rem}.spellbook-reference__card h3{margin-bottom:.65rem}.spellbook-reference__card p{color:var(--muted-strong);margin-bottom:.65rem}.spellbook-reference__scope{padding-left:1.2rem;color:var(--muted-strong)}.spellbook-reference__scope li{margin-bottom:.35rem}.spellbook-classes{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;padding:8px;border:1px solid #454039;border-radius:5px 5px 0 0;background:#191a1b}.spellbook-class{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:5px;border:1px solid #494743;border-radius:4px;background:linear-gradient(#30302e,#232322);color:#d2cec7;font-size:.75rem;font-weight:700;cursor:pointer}.spellbook-class img{flex:none;border-radius:3px;box-shadow:0 0 0 1px #797064}.spellbook-class:hover{background:#3a3730;color:#fff4d6}.spellbook-class[aria-pressed=true]{border-color:#c3a448;color:#ffdd81;background:linear-gradient(#4b4430,#29271e);box-shadow:inset 0 -3px #c3a448}.spellbook-toolbar{display:grid;grid-template-columns:minmax(180px,.28fr) 1fr;gap:1rem;background:linear-gradient(#2a2a29,#222323);border:1px solid #454039;border-top:0;border-radius:0 0 5px 5px;padding:.65rem .8rem}.spellbook-toolbar .field{min-width:0}.spellbook-toolbar .field label{font-size:.72rem}.spellbook-toolbar .field :is(input,select){font-size:.83rem;padding:.5rem .65rem;border-radius:3px;border-color:#504c43;background:#191a1b}.spellbook-class-banner{display:flex;align-items:center;gap:1rem;padding:.8rem 1rem;margin-block:.65rem 1rem;border:1px solid #5a4c30;border-radius:4px;background:radial-gradient(ellipse at 80% 100%,#98712b25,transparent 60%),linear-gradient(115deg,#30271b,#171613 60%,#25221c);box-shadow:inset 0 0 25px #0008}.spellbook-class-banner>img{flex:none;border-radius:50%;border:2px solid #ba9e51;padding:2px;box-shadow:0 0 0 3px #171511}.spellbook-class-banner>div{min-width:0}.spellbook-class-banner p{margin:0;font:700 1.45rem Georgia,Times New Roman,serif;letter-spacing:.02em;text-transform:uppercase;color:#f2d27b}.spellbook-class-banner span{font-size:.75rem;color:#d3cbb9}.spellbook-class-banner__note{margin-left:auto;text-align:right}.spellbook-volume{display:grid;grid-template-columns:minmax(0,1fr) 126px;align-items:start;min-width:0}.spellbook-binding{min-width:0;border:2px solid #887048;border-radius:6px 3px 6px 6px;padding:6px;background:linear-gradient(110deg,#473a28,#1c1914 40%,#3f3324);box-shadow:0 8px 25px #0006,inset 0 0 0 1px #1d160e}.spellbook-binding__title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.35rem .75rem;min-height:42px;padding:.45rem .8rem;color:#f4dd9e;border:1px solid #866435;border-bottom:0;background:linear-gradient(#522d25,#301d18);font:700 1rem Georgia,Times New Roman,serif}.spellbook-binding__title>span:last-child{font-size:.75rem;font-weight:400;color:#dfc8a1}.spellbook-spread{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #9e8251}.spellbook-spread:after{content:"";position:absolute;inset:0 auto 0 50%;width:18px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#3b271a55 45%,#563b2466 50%,#fff2ca40 65%,transparent);pointer-events:none}.spellbook-leaf{position:relative;min-width:0;padding:.9rem .75rem 2rem;color:#382917;background:radial-gradient(ellipse at 35% 30%,#f6e6b3,transparent 75%),repeating-linear-gradient(2deg,#7c522b03 0 2px,transparent 2px 5px),linear-gradient(90deg,#c9ac75,#e2cd97 12%,#e4cf9c 85%,#b89a64);box-shadow:inset 0 0 25px #6d482926}.spellbook-leaf+.spellbook-leaf{background:radial-gradient(ellipse at 60% 30%,#f6e6b3,transparent 75%),repeating-linear-gradient(-2deg,#7c522b03 0 2px,transparent 2px 5px),linear-gradient(90deg,#b89a64,#e4cf9c 15%,#e2cd97 88%,#c9ac75)}.spellbook-leaf__heading{margin:0 .2rem .75rem;padding-bottom:.6rem;border-bottom:1px solid #7e613e66;text-align:center;font:700 .95rem Georgia,Times New Roman,serif}.spellbook-leaf__spells{display:grid;grid-template-rows:repeat(6,minmax(76px,auto));gap:4px}.spellbook-slot{display:flex;align-items:center;gap:.65rem;position:relative;min-width:0;width:100%;min-height:76px;padding:.4rem;text-align:left;border:1px solid transparent;border-radius:3px;color:#302113;background:transparent;cursor:pointer}.spellbook-slot>img,.spellbook-slot__fallback{flex:none;width:44px;height:44px;border:2px solid #705c35;border-radius:3px;box-shadow:0 0 0 1px #382512,inset 0 0 0 1px #eac77f}.spellbook-slot__fallback{display:grid;place-items:center;background:#302919;color:#f4dd9e;font-size:1.4rem}.spellbook-slot__text{display:grid;gap:.13rem;min-width:0;font-size:.68rem;line-height:1.3;overflow-wrap:anywhere}.spellbook-slot__name{color:#2f2112;font-size:.88rem;font-weight:750}.spellbook-slot__ranks{color:#5d482d;font-size:.65rem}.spellbook-slot__selected{flex:none;width:9px;margin-left:auto;color:#70501f;font-size:.62rem}.spellbook-slot:hover{background:#ffecc380;border-color:#9f773c}.spellbook-slot[aria-pressed=true]{border-color:#80602f;background:linear-gradient(90deg,#fff1ccaa,#b38a3533);box-shadow:inset 0 0 0 1px #ffe8a3aa}.spellbook-slot:focus-visible{outline-color:#075a91;outline-offset:1px;z-index:1}.spellbook-leaf__number{position:absolute;bottom:.4rem;left:0;right:0;text-align:center;color:#655033;font:.85rem Georgia,Times New Roman,serif}.spellbook-leaf__end{position:absolute;top:50%;left:1rem;right:1rem;color:#685437;text-align:center;font:italic .85rem Georgia,Times New Roman,serif}.spellbook-tabs{display:grid;gap:7px;padding-block:.75rem;min-width:0}.spellbook-tabs>p{margin:0 0 .25rem .6rem;font-size:.65rem;color:#c6b993;text-transform:uppercase;letter-spacing:.04em}.spellbook-tab{display:flex;align-items:center;gap:.45rem;min-height:56px;min-width:0;padding:.45rem .4rem .45rem .6rem;border:1px solid #655637;border-left:0;border-radius:0 5px 5px 0;background:linear-gradient(100deg,#26221b,#3d3629);color:#d9ceb7;text-align:left;text-decoration:none;font-size:.71rem;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.spellbook-tab img{flex:none;width:32px;height:32px;border:1px solid #ac8c49;border-radius:3px}.spellbook-tab__mark{flex:none;display:grid;place-items:center;width:32px;height:32px;color:#e6c370;font-size:1.5rem}.spellbook-tab:hover{background:#49402d;color:#fff0c2}.spellbook-tab[aria-pressed=true]{color:#ffdd81;border-color:#c3a448;background:linear-gradient(100deg,#4b4027,#625130);box-shadow:inset -3px 0 #d9b950}.spellbook-tab--reference{margin-top:.5rem;min-height:44px;font-weight:400}.spellbook-tabs__hint{padding:.25rem .7rem;font-size:.72rem;color:var(--muted)}.spellbook-book-empty{padding:1rem}.spellbook-inspector{margin-top:1rem;border:1px solid #8b7547;border-radius:4px;background:linear-gradient(125deg,#17191f,#101116)}.spellbook-inspector__label{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.35rem 1rem;margin:0;padding:.6rem 1rem;border-bottom:1px solid #504431;color:#e0c57e;font-size:.75rem;font-weight:700}.spellbook-inspector__label span{color:var(--muted);font-weight:400}.spellbook-inspector .spellbook-card{background:none;border:0;border-radius:0}.spellbook-inspector .spellbook-card h3{color:#ffdc82}.spellbook-inspector .spellbook-card__facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 2rem}.spellbook-inspector .spellbook-card__facts>div{grid-template-columns:auto 1fr}@media (min-width:1181px) and (min-height:850px){.spellbook-filters{position:sticky;top:94px}}@media (max-width:1199px){.spellbook-class{flex-direction:column;gap:3px;font-size:.68rem}.spellbook-volume{grid-template-columns:minmax(0,1fr)}.spellbook-tabs{grid-row:1;display:flex;flex-wrap:wrap;gap:5px;padding:0 0 .65rem}.spellbook-tabs>p{flex-basis:100%;margin:0}.spellbook-tab{border-left:1px solid #655637;border-radius:4px;min-height:44px;padding:.3rem .55rem}.spellbook-tab img,.spellbook-tab__mark{width:28px;height:28px}.spellbook-tab--reference{margin:0}.spellbook-tabs__hint{align-self:center}.spellbook-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:899px){.spellbook-page{width:calc(100% - 2rem)}.spellbook-layout{grid-template-columns:minmax(0,1fr)}.spellbook-filter-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.spellbook-filters__heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.spellbook-filters>.button{justify-self:start;padding-inline:1rem}}@media (max-width:599px){.spellbook-page{padding-block:1.5rem 3rem}.spellbook-source{padding:1rem}.spellbook-source dl{gap:.65rem 1.5rem}.spellbook-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.spellbook-card{padding:1rem}.spellbook-pagination{display:grid;grid-template-columns:1fr 1fr}.spellbook-pagination>span{grid-column:1/-1;grid-row:1;text-align:center}.spellbook-pagination .button{padding-inline:.6rem}.spellbook-reference__filters{grid-template-columns:minmax(0,1fr)}}@media (max-width:699px){.spellbook-classes{grid-template-columns:repeat(5,minmax(0,1fr));padding:6px}.spellbook-class{font-size:.62rem;min-height:56px}.spellbook-toolbar{grid-template-columns:minmax(0,1fr);gap:.6rem}.spellbook-class-banner{flex-wrap:wrap;gap:.6rem}.spellbook-class-banner__note{flex-basis:100%;text-align:left}.spellbook-spread{grid-template-columns:minmax(0,1fr)}.spellbook-spread:after{display:none}.spellbook-leaf+.spellbook-leaf{border-top:3px double #997c4b}.spellbook-leaf__spells{grid-template-rows:none;grid-auto-rows:minmax(72px,auto);min-height:0}.spellbook-leaf__end{position:static;margin:2rem .5rem}.spellbook-slot__name{font-size:.95rem}.spellbook-inspector .spellbook-card__facts{grid-template-columns:minmax(0,1fr)}}@media (max-width:359px){.spellbook-filter-fields{grid-template-columns:minmax(0,1fr)}.spellbook-tab{flex:1 1 40%}}@media (forced-colors:active){.spellbook-binding,.spellbook-card,.spellbook-class,.spellbook-filter-chip,.spellbook-leaf,.spellbook-slot,.spellbook-source,.spellbook-tab{border-color:CanvasText}.spellbook-spread:after{display:none}.spellbook-class[aria-pressed=true],.spellbook-slot[aria-pressed=true],.spellbook-tab[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}}