@layer reset {
:where(*){box-sizing:border-box}:where(html){-moz-text-size-adjust:100%;text-size-adjust:100%;min-width:20rem}:where(body){min-width:20rem;margin:0}:where(button,input,select,textarea){color:inherit;font:inherit}:where(button,[role=button]){cursor:pointer}:where(button:disabled,[aria-disabled=true]){cursor:not-allowed}:where(a){color:inherit;text-decoration:none}:where(img,picture,svg){max-width:100%}:where(textarea){resize:vertical}
}

@layer legacy {
.save-status{color:var(--muted);font-size:var(--font-size-caption);align-items:center;gap:7px;display:inline-flex}.save-status i{background:var(--moss);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 3px #41675f1f}.paper-sheet{width:min(1510px,100% - 44px);box-shadow:var(--shadow);background:linear-gradient(#f7f9f6f7,#f7f9f6f7),repeating-linear-gradient(0deg,#0000 0 23px,#4a5c5f17 23px 24px);border:1px solid #18202b2e;margin:28px auto 0;padding:22px 22px 28px 48px;position:relative}.proficiency-proficient{background:var(--ink);box-shadow:inset 0 0 0 2px var(--paper)}.proficiency-expertise{border:3px double var(--ink);background:var(--ink)}.proficiency-half{background:linear-gradient(90deg, var(--ink) 50%, transparent 50%)}@media (max-width:820px){.paper-sheet{width:calc(100% - 20px);padding:14px 14px 24px 39px}}@media (max-width:620px){.paper-sheet{width:100%;box-shadow:none;border-inline:0;margin-top:0;padding:12px 10px}}.save-status.is-error{color:#913f3b}.save-status.is-error i{background:#a54b46;box-shadow:0 0 0 3px #a54b4624}.paper-choice-row{flex-wrap:wrap;gap:12px 22px;margin-bottom:18px;display:flex}.paper-choice-row label{align-items:center;gap:8px;display:flex}.paper-field{gap:6px;display:grid}.paper-field>span{font-family:var(--font-family-body);font-size:var(--font-size-caption);font-weight:var(--font-weight-label);letter-spacing:0;text-transform:none}.paper-field input,.paper-field select{background:#fff;border:1px solid #96999b;border-radius:2px;min-height:40px;padding:6px 9px}.form-error{color:#913f3b;min-height:1.2em;margin:9px 0 0;font-size:.78rem}.spell-record-page{width:min(1280px,100% - 40px);margin:0 auto;padding:48px 0 90px}.spell-record-title h1{font-family:var(--display);letter-spacing:-.055em;margin:0;font-size:clamp(2.8rem,7vw,5.8rem);font-weight:600;line-height:.9}.spell-record-sheet:before{content:"";z-index:1;background:#aeb0b3;border-radius:50%;width:8px;height:8px;position:absolute;top:-5px;left:-5px}.spell-record-page>.back-link{margin-bottom:28px;display:inline-block}.spell-record-sheet{background:var(--surface);box-shadow:var(--shadow);border:2px solid #aeb0b3;position:relative;overflow:hidden}.spell-record-title{background:var(--surface);border-bottom:2px solid #aeb0b3;grid-template-columns:minmax(0,1fr) 120px;align-items:center;min-height:190px;padding:28px 32px;display:grid}.spell-record-title p{font-family:var(--font-family-body);font-size:.7rem;font-weight:var(--font-weight-label);letter-spacing:0;text-transform:none;margin:0 0 9px}.spell-record-title span{color:var(--muted);margin-top:10px;display:block}.spell-record-title>strong{width:88px;height:88px;font-family:var(--display);border:2px solid #8f9294;border-radius:50%;justify-self:end;place-items:center;font-size:3rem;font-weight:500;display:grid}.spell-record-facts{background:var(--surface-muted);border-bottom:2px solid #aeb0b3;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;display:grid}.spell-record-facts>div{border-right:1px solid #b8babc;min-width:0;padding:14px 16px}.spell-record-facts>div:last-child{border-right:0}.spell-record-facts dt,.spell-record-footer span{font-family:var(--font-family-body);font-size:var(--font-size-caption);font-weight:var(--font-weight-label);letter-spacing:0;text-transform:none;margin-bottom:5px}.spell-record-facts dd{margin:0;font-size:.84rem;line-height:1.4}.spell-record-description{min-width:0;font-size:inherit;line-height:inherit;overflow-wrap:anywhere;padding:0}.spell-record-description>:first-child{margin-top:0}.spell-record-description code{color:var(--accent);background:var(--surface-muted);padding:1px 4px}.mechanics-interpolation-value{color:var(--color-accent-strong);font-weight:700}.mechanics-interpolation-placeholder{color:var(--color-accent-strong);border:1px solid color-mix(in srgb, var(--color-accent) 30%, var(--color-border));background:color-mix(in srgb, var(--color-accent-soft) 52%, transparent);white-space:normal;border-radius:.35em;padding:.04em .3em;font-size:.92em;font-weight:700;display:inline}.spell-record-description .spell-dsl-dice,.spell-record-description .spell-dsl-value,.spell-record-description .spell-dsl-effect,.spell-record-description .spell-dsl-proficiency{white-space:nowrap}.spell-record-description .spell-dsl-value{color:var(--accent-strong);font-weight:600}.spell-record-description .spell-dsl-effect{border:1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));color:var(--ink);border-radius:5px;padding:0 3px;font-weight:600}.spell-record-description .spell-dsl-effect.is-active{border-style:solid;border-color:color-mix(in srgb, var(--success) 52%, var(--line));background:color-mix(in srgb, var(--success) 8%, transparent)}.spell-record-description .spell-dsl-proficiency{color:var(--color-text-reading);font-style:italic}.spell-record-description .spell-dsl-condition{border:1px dashed color-mix(in srgb, var(--color-border-strong) 44%, transparent);border-radius:6px;margin:.12em;padding:.08em .3em;display:inline-block}.spell-record-description .spell-dsl-condition[data-active=false]{border-color:color-mix(in srgb, var(--color-danger) 34%, transparent);background:color-mix(in srgb, var(--color-danger) 4%, transparent);color:var(--color-text-muted)}.spell-record-footer{background:var(--surface-muted);border-top:2px solid #aeb0b3;grid-template-columns:1.3fr .7fr 1fr;display:grid}.spell-record-footer>div{border-right:1px solid #b8babc;padding:15px 18px;display:grid}.spell-record-footer>div:last-child{border-right:0}.spell-record-footer strong{font-size:.84rem}:where(a,button,input,select,textarea):focus-visible{outline:1px solid var(--focus-ring);outline-offset:-1px}button:disabled{cursor:not-allowed;opacity:.48;transform:none}#features,#spells,#inventory,#notes{scroll-margin-top:112px}@media (max-width:1040px){.spell-record-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.spell-record-facts>div{border-bottom:1px solid #b8babc}}@media (max-width:700px){.spell-record-page{width:100%;padding:26px 12px 84px}.spell-record-title h1{font-size:clamp(2.7rem,15vw,4.4rem)}.spell-record-title{grid-template-columns:minmax(0,1fr) 68px;min-height:150px;padding:22px 18px}.spell-record-title>strong{width:58px;height:58px;font-size:2rem}.spell-record-facts{grid-template-columns:1fr 1fr}.spell-record-facts>div{padding:12px}.spell-record-description{font-size:inherit;padding:0}.spell-record-footer{grid-template-columns:1fr}.spell-record-footer>div{border-bottom:1px solid #b8babc;border-right:0}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
}

@layer legacy {
.save-status{font-size:var(--font-size-caption);white-space:nowrap;gap:6px}.save-status i{width:6px;height:6px;box-shadow:none}.spell-record-sheet:before{display:none}.paper-field>span{color:var(--muted);font-size:var(--font-size-caption);letter-spacing:0;text-transform:none}.paper-field input,.paper-field select{border-color:var(--line);background:var(--surface-muted);border-radius:8px}.spell-record-page{width:min(1100px,100% - 40px);padding:26px 0 72px}.spell-record-title h1{letter-spacing:-.035em;font-size:clamp(36px,6vw,52px);line-height:1.03}.spell-table-title{font-family:var(--body);font-size:.88rem;font-weight:600;line-height:1.2}.spell-record-sheet{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);border-radius:15px;overflow:hidden}.spell-record-title{border-bottom-color:var(--line);background:var(--surface);min-height:160px}.spell-record-title>strong{border-color:var(--line-strong)}.spell-record-facts{border-bottom-color:var(--line);background:var(--surface-muted)}.spell-record-facts>div{border-color:var(--line)}.spell-record-description code{color:var(--accent);background:var(--surface-muted)}.spell-record-footer{border-top-color:var(--line);background:var(--surface-muted)}.spell-record-footer>div{border-right-color:var(--line)}@media (max-width:920px){.spell-record-page{width:min(100% - 28px,760px);padding-top:26px}}@media (max-width:680px){.spell-record-page{width:100%;padding:24px 14px 56px}}@media (pointer:coarse){.button,.text-button{min-height:36px}}input[type=number]{box-sizing:border-box;appearance:textfield;font-variant-numeric:tabular-nums;min-width:0}input[type=number]::-webkit-inner-spin-button{appearance:none;margin:0}input[type=number]::-webkit-outer-spin-button{appearance:none;margin:0}@media (prefers-reduced-motion:reduce){button,a,input,select,textarea{transition:none}}
}

@layer legacy {
.sheet-tab-bar,.sheet-tabs,.mobile-sheet-nav{background:var(--surface-raised)}.sheet-tab-bar .sheet-tabs{background:0 0}.sheet-tabs button[role=tab]:hover{background:var(--surface-muted)}.sheet-tabs button[role=tab][aria-selected=true],.mobile-sheet-nav button[role=tab][aria-selected=true]{color:var(--accent);border-color:var(--line-strong);background:var(--surface)}.sheet-notice{border-color:var(--notice-line);background:var(--notice-surface)}.sheet-notice.is-error{border-color:var(--danger-line);background:var(--danger-surface)}.button-primary:hover{background:var(--primary-hover)}.button-secondary{background:var(--surface-raised)}html[data-theme=dark] img{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only}html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{caret-color:var(--accent)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:color-mix(in srgb, var(--muted) 78%, transparent);opacity:1}html[data-theme=dark] .inventory-header-actions>span,html[data-theme=dark] .lss-equipment-panel .coin-purse{background:var(--surface-muted)}html[data-theme=dark] .inventory-coins-card .coin-purse{background:0 0}html[data-theme=dark] .inventory-attunement-toggle[aria-pressed=true]{color:var(--gold);border-color:color-mix(in srgb, var(--gold) 42%, transparent);background:color-mix(in srgb, var(--gold) 12%, transparent)}html[data-theme=dark] .spell-traits b.is-concentration{color:var(--warm-accent);border-color:color-mix(in srgb, var(--warm-accent) 42%, transparent);background:color-mix(in srgb, var(--warm-accent) 12%, transparent)}html[data-theme=dark] .lss-skill-row,html[data-theme=dark] .inventory-ledger article{border-color:var(--line)}html[data-theme=dark] .mobile-vitals{color:var(--ink);border-color:var(--line-strong);background:var(--surface-raised)}html[data-theme=dark] .mobile-vitals label,html[data-theme=dark] .mobile-vitals>div{border-color:var(--line)}@media (max-width:599px){.sheet-title span{font-size:var(--font-size-caption);display:block}}
}

@layer legacy {

}

@layer legacy {
:root{--adaptive-section-gap:16px;--adaptive-control:36px;--adaptive-control-compact:32px;--adaptive-icon-control:32px;--desktop-document-width:1440px}@media (min-width:840px){.button,.text-button{min-height:36px}.button{padding-inline:14px}.spell-record-page{width:min(var(--content-rail), calc(100% - 48px))}.spell-record-description>:is(p,ul,ol,blockquote){max-width:78ch}}@media (min-width:600px) and (max-width:839px){:root{--adaptive-section-gap:12px;--adaptive-control:36px;--adaptive-control-compact:32px;--adaptive-icon-control:32px}.spell-record-page{width:min(100% - 32px,800px);padding-top:24px}.button,.text-button{min-height:var(--adaptive-control)}}@media (max-width:599px){:root{--adaptive-section-gap:8px;--adaptive-control:34px;--adaptive-control-compact:30px;--adaptive-icon-control:32px;--radius-control:8px;--radius-group:12px;--radius-sheet:16px}.button{min-height:var(--adaptive-control);font-size:var(--text-ui);padding-inline:12px}.button-compact{min-height:var(--adaptive-control-compact);padding-inline:10px}.spell-record-page{width:100%;padding:16px var(--page-gutter) 48px}.spell-table-title{font-size:.8rem}}
}

