/* Paper remains unchanged in daggerheart.css. Blue fire only affects screens. */
.theme-picker{display:grid;gap:3px;flex-shrink:0;font-size:.72rem;color:#b2bdd5}
.theme-picker select{padding:5px 9px;font-size:.85rem;min-height:32px}
.card-collection{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:22px;align-items:stretch}
.card-collection .domain-card{align-self:stretch;min-width:0}
.domain-card .sheet-card-actions{display:flex;justify-content:flex-end;gap:6px;padding:7px 12px;margin-top:auto}
.domain-card .sheet-card-actions .card-control{display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;font-size:.78rem}
.domain-card .sheet-card-actions .card-control:hover{background:#d5e1ef;border-color:#879bb8}
.domain-card .sheet-card-actions .card-control[aria-pressed="true"]{background:#d1e7e8;color:#194858;border-color:#518997}
.card-control .icon{width:18px;height:18px}
.card-control:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
@media screen {
html[data-theme="blue"] .domain-card .sheet-card-actions .card-control{background:transparent;border-color:transparent;color:#d5e4f6}
html[data-theme="blue"] .domain-card .sheet-card-actions .card-control:hover{background:#3b5273;border-color:#8097b7}
html[data-theme="blue"] .domain-card .sheet-card-actions .card-control[aria-pressed="true"]{background:#365768;color:#bbf1f6;border-color:#7fc6d8}
}
@media print{.card-collection{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media screen {
html[data-theme="blue"] .character-sheet{--sheet-paper:#202c46;--ink:#d3e6fa;--text:#edf2fa;--muted:#b8c7dc;--line:#637896;--panel:#263550;--panel2:#304260;--accent:#90d9ef;--red:#f2acbb;--blue:#a4caff;color:var(--text);background:var(--sheet-paper);border-color:#526d91;color-scheme:dark}
html[data-theme="blue"] .character-sheet button{color:#e6effb}
html[data-theme="blue"] .character-sheet button:hover{background:#3c5376}
html[data-theme="blue"] .character-sheet button.primary{background:#98d9ec;color:#14273e;border-color:#98d9ec}
html[data-theme="blue"] .character-sheet input,html[data-theme="blue"] .character-sheet textarea,html[data-theme="blue"] .character-sheet select{background:#17243b;color:#edf2fa}
html[data-theme="blue"] .character-sheet .notice,html[data-theme="blue"] .character-sheet .stat,html[data-theme="blue"] .character-sheet .badge{background:#304462;color:#e1ecfa;border-color:#6f88a8}
html[data-theme="blue"] .character-sheet .accent,html[data-theme="blue"] .sheet-calling .eyebrow{color:#9cdef1}
html[data-theme="blue"] .sheet-calling>span,html[data-theme="blue"] .identity-fields small,html[data-theme="blue"] .trait>small{color:#b8c7dc}
html[data-theme="blue"] .sheet-crest>span,html[data-theme="blue"] .trait-outline>span{color:#17243b}
html[data-theme="blue"] .trait:hover svg{color:#9ee5f4}
html[data-theme="blue"] .sheet-section{background:#293953;border-color:#8299b8;outline-color:#465d7c}
html[data-theme="blue"] .ribbon-title{background:#293953;border-color:#8299b8}
html[data-theme="blue"] .threshold-track{color:#edf2fa}
html[data-theme="blue"] .threshold-track>div{background:#15243e}
html[data-theme="blue"] .pip>span{border-color:#94abc7}
html[data-theme="blue"] .pip.on>span{background:#d0e2f6;border-color:#d0e2f6}
html[data-theme="blue"] .pip.red.on>span{background:#f0a7b7;border-color:#f0a7b7}
html[data-theme="blue"] .pip.blue.on>span{background:#9abdf5;border-color:#9abdf5}
html[data-theme="blue"] .resource-hope .pip>span{border-color:#8bd5ea}
html[data-theme="blue"] .resource-hope .pip.on>span{background:#a1e5f3;border-color:#a1e5f3;box-shadow:inset 0 0 0 2px #293953}
html[data-theme="blue"] .resource-armor .pip.on svg{fill:#a1e5f3;stroke:#a1e5f3}
html[data-theme="blue"] .proficiency i{border-color:#a7bdd9}
html[data-theme="blue"] .proficiency i.marked{background:#b7d9f6}
html[data-theme="blue"] .condition{color:#c8d6e9!important;border-color:#7c91b1}
html[data-theme="blue"] .condition.selected{background:#573347;color:#ffcfda!important;border-color:#eda2b7}
html[data-theme="blue"] .tabs button{color:#becde1}
html[data-theme="blue"] .tabs button.active{background:#334a6a;color:#e4f7ff;border-bottom-color:#94dcef}
html[data-theme="blue"] .domain-card{background:#2b3b55!important;color:#edf2fa!important;box-shadow:0 5px 14px #080f2440}
html[data-theme="blue"] .domain-card h3{color:#f2f3f6}
html[data-theme="blue"] .domain-card>p{color:#e1e9f5}
html[data-theme="blue"] .domain-card .card-actions{background:#223149;border-color:#60728f}
html[data-theme="blue"] .domain-card .card-actions button{background:#344a68;color:#edf2fa;border-color:#8a9ebc}
html[data-theme="blue"] .domain-card .card-actions .primary{background:#98d9ec;color:#14273e}
html[data-theme="blue"] .domain-card>small{background:#344966;color:#dfeaff}
html[data-theme="blue"] .card-use-state{color:#ffc2cf}
html[data-theme="blue"] .threshold-help,html[data-theme="blue"] .hope-help{font-size:.82rem}
html[data-theme="blue"] .weapon-facts small{font-size:.73rem}
}
@media(max-width:760px){.theme-picker{margin-left:auto}.theme-picker>span{display:none}}
@media print{.theme-picker{display:none!important}}

@media(min-width:761px) and (max-width:1380px){.masthead{flex-wrap:wrap}.masthead .brand{margin-right:auto}.masthead .nav{order:3;flex-basis:100%;justify-content:space-between}.masthead .nav button{flex:1}}
.icon-action{display:inline-grid;place-items:center;min-width:44px;min-height:44px;padding:9px!important;position:relative}.icon-action:hover::after,.icon-action:focus-visible::after{content:attr(aria-label);position:absolute;z-index:4;bottom:calc(100% + 7px);right:0;white-space:nowrap;padding:6px 9px;border-radius:5px;background:#10182c;color:#edf3fc;font:13px Overpass;box-shadow:0 2px 8px #0005;pointer-events:none}.pack-gold{max-width:240px;margin-bottom:20px}.pack-container h4{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding-bottom:10px;margin:24px 0 0}.pack-item{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.pack-description{flex:1;min-width:0}.pack-description .item-name{display:block;background:transparent;border:0;padding:3px 0;text-align:left;font-weight:600;overflow-wrap:anywhere}.pack-description small{display:block}.pack-description details{margin-top:8px;font-size:.85rem}.pack-description p{margin:8px 0;white-space:pre-line;overflow-wrap:anywhere}.pack-quantity{display:flex;align-items:center;gap:3px}.pack-quantity output{min-width:28px;text-align:center;font-variant-numeric:tabular-nums}.pack-item>.icon-action{color:var(--red)}
@media(max-width:600px){.pack-item{flex-wrap:wrap;gap:6px}.pack-description{flex-basis:100%}.pack-item>.icon-action{margin-left:auto}.pack{padding:16px}.pack-quantity{margin-left:auto}}
@media print{.icon-action,.sheet-card-actions{display:none!important}}
/* Sheet refinement: compact tools, legible body type, and tabletop equipment. */
body{font-family:Overpass,system-ui,sans-serif;font-size:16px;text-rendering:optimizeLegibility}p,.subtle,.meta,input,select,textarea,button,small{font-family:Overpass,system-ui,sans-serif}.subtle{font-size:.95rem!important;line-height:1.65}.recall-badge>b{font-family:Overpass,system-ui,sans-serif;font-size:1.2rem;font-weight:600}.recall-badge small{font-size:.7rem}.recall-badge svg{width:12px;height:18px}.sheet-actions{padding-bottom:3px}.sheet-actions .row{gap:7px}.sheet-actions .icon-action{background:transparent;border-color:transparent}.sheet-actions .primary{background:#315578;border-color:#719ab8}.toolbar-divider{height:23px;width:1px;background:var(--line);margin:0 4px}.dice-launcher{position:fixed;bottom:24px;right:24px;width:54px;height:54px;z-index:25;border-radius:50%;background:#92d9ed;color:#14243b;border:1px solid #c1effb;box-shadow:0 5px 20px #0005}.dice-launcher .icon{width:27px;height:27px}.content{padding-bottom:95px}.identity-fields{align-items:center;gap:25px}.identity-fields>div{border:0;padding:0}.heritage-pair{display:flex;flex-direction:column;gap:4px}.heritage-pair span:last-child{font-size:.9rem;color:var(--muted)}.identity-domains{display:flex;gap:9px}.identity-domain{display:grid;place-items:center;width:44px;height:49px;background:var(--domain-color);border:1px solid #8da0b8;border-radius:6px;position:relative}.identity-domain img{width:29px;height:29px;object-fit:contain;filter:brightness(0) invert(1)}.identity-domain img.dread-icon{filter:none}.identity-domain:hover::after,.identity-domain:focus::after{content:attr(aria-label);position:absolute;top:100%;z-index:5;background:#10182c;color:white;padding:6px 9px;border-radius:4px;font:14px Overpass}.sheet-upper{grid-template-columns:340px minmax(0,1fr);gap:30px}.defenses{gap:25px;padding-right:24px;align-items:flex-start}.armor-group{display:grid;justify-items:center;gap:12px}.armor-group .pips{grid-template-columns:repeat(4,25px);justify-content:center;gap:4px}.sheet-crest{width:100px;height:108px}.sheet-upper .traits{gap:14px}.sheet-upper .trait>small{font-size:.81rem;line-height:1.5}.sheet-tracks{align-items:stretch}.worn-armor{display:flex;gap:12px;border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.worn-armor>.icon{width:28px;height:30px;color:var(--accent)}.worn-armor div{display:grid;gap:5px}.worn-armor small{text-transform:uppercase;letter-spacing:.08em}.worn-armor strong{font-size:1rem}.worn-armor span{font-size:.88rem;line-height:1.5;color:var(--muted)}.feature-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.feature-group{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:8px}.feature-group h3{font-size:1rem;margin-bottom:16px}.feature-disclosure{border-top:1px solid var(--line);padding:14px 0}.feature-disclosure summary{cursor:pointer;list-style:none;position:relative;padding-right:28px}.feature-disclosure summary::after{content:'+';position:absolute;right:3px;top:0;font-size:1.25rem;color:var(--accent)}.feature-disclosure[open] summary::after{content:'−'}.feature-disclosure summary strong{display:block;font-size:1rem}.feature-disclosure summary span{display:block;font-size:.9rem;line-height:1.5;color:var(--muted);margin-top:6px}.feature-disclosure[open] summary span{display:none}.feature-disclosure>div{padding-top:12px;font-size:1rem;line-height:1.7}.feature-reference{margin-top:22px;padding:16px;color:var(--muted)}.feature-reference summary{cursor:pointer}.equipment-display{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}.gear-piece{position:relative;padding:22px!important;border-top:3px solid var(--accent)!important}.gear-emblem{display:grid;place-items:center;float:right;width:42px;height:42px;border-radius:50%;background:var(--panel2);color:var(--accent);margin-left:12px}.gear-piece .eyebrow{font:600 .75rem Overpass;letter-spacing:.08em}.gear-piece h3{font-size:1.1rem}.gear-piece .list-item{padding:12px 0}.gear-piece .card-actions{border:0}.pack{background:transparent!important;border:0!important;padding:6px 0!important}.pack-gold{max-width:210px}.pack-container{margin-top:24px}.pack-container h4{border:0;margin:0 0 12px;padding:0;font-size:1rem}.pack-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:12px}.pack-item{display:grid;grid-template-columns:38px minmax(0,1fr) 36px;gap:8px;padding:15px;background:var(--panel);border:1px solid var(--line);border-radius:9px;align-content:start;align-items:start}.pack-item-symbol{display:grid;place-items:center;width:36px;height:36px;background:var(--panel2);border-radius:8px;color:var(--accent)}.pack-description{min-width:0}.pack-description .item-name{font-size:1rem;padding:0 0 5px;line-height:1.4}.pack-quantity{grid-column:2;justify-self:start;margin:4px 0 0;gap:6px}.pack-item>.icon-action{grid-column:3;grid-row:1;background:transparent!important;border:0;min-width:36px;padding:8px!important;opacity:.65}.pack-item>.icon-action:hover{opacity:1}.pack-quantity .icon-action{border:0;background:transparent!important}.pack-quantity output{align-self:center;font-weight:600}.pack-description details{grid-column:1/-1}.pack-item small{font-size:.8rem}.pack-item .icon-action:hover::after{white-space:normal;min-width:110px}.sheet-section .icon-action{border-radius:7px}.sheet-section .sheet-controls{justify-content:flex-end}
@media(max-width:1150px){.sheet-upper{grid-template-columns:270px minmax(0,1fr);gap:20px}.defenses{gap:18px;padding-right:18px}.sheet-crest{width:86px;height:94px}.sheet-upper .traits{gap:7px}.sheet-upper .trait>small{font-size:.76rem}}
@media(max-width:760px){.feature-layout{grid-template-columns:1fr}.sheet-upper{display:flex}.defenses{padding:0 0 22px;gap:40px;align-items:flex-start}.sheet-crest{width:100px;height:108px}.sheet-upper .traits{gap:16px}.identity-fields{justify-content:space-between}.identity-domains{gap:7px}.sheet-actions .row{width:auto}.sheet-actions{gap:10px}.sheet-actions>a{flex-basis:100%}.sheet-actions .icon-action{padding:8px!important}.toolbar-divider{margin:0}.dice-launcher{right:16px;bottom:16px}.pack-item{flex-wrap:initial}.pack-description{flex-basis:auto}.pack-quantity{margin-left:0}.pack-item>.icon-action{margin-left:0}}
@media print{.dice-launcher{display:none!important}.feature-disclosure>div{display:block!important}.feature-layout{display:block}.feature-group{break-inside:avoid}.pack-items{grid-template-columns:repeat(2,1fr)}}
.sheet-actions .primary{color:#e7f6ff}.character-sheet{font-synthesis:none}.character-sheet p,.character-sheet .meta,.character-sheet small{font-weight:400}.feature-disclosure summary::-webkit-details-marker{display:none}
/* Dense play layout: heritage subtitle, side-by-side defenses, continuous lists. */
.sheet-upper{grid-template-columns:370px minmax(0,1fr);gap:22px}.defenses{align-items:center;gap:18px;padding-right:18px}.armor-group{display:flex;align-items:center;gap:15px}.armor-group .pips{grid-template-columns:repeat(3,25px)}.sheet-upper .sheet-crest{width:84px;height:94px}.sheet-upper .sheet-crest b{top:29%;font-size:1.7rem}.sheet-upper .traits{gap:12px}.trait-outline{max-width:110px}.trait-outline>b{top:31%;font-size:1.85rem}.trait-outline>span{font-size:.65rem}.sheet-upper .trait>small{font-size:.75rem}.sheet-calling>span{display:block;line-height:1.6}.experience-list{max-height:190px;overflow:auto;scrollbar-width:thin;padding-right:8px}.experience-line{align-items:baseline}.experience-line span{overflow-wrap:anywhere}.experience-line b{flex-shrink:0}.weapon-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.weapon-title h3{margin:3px 0!important;font-size:.95rem}.weapon-title .row{gap:3px}.weapon-title .icon-action{background:transparent!important;border:0}.weapon-title small{text-transform:uppercase;font-size:.68rem;letter-spacing:.07em}.weapon-compact+.weapon-compact{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.weapon-inline{display:flex;gap:10px;justify-content:space-between;font-size:.83rem;line-height:1.5}.weapon-inline b{white-space:nowrap}.weapon-compact details{margin-top:6px;font-size:.8rem;color:var(--muted)}.weapon-compact details p{font-size:.88rem;margin:8px 0}.worn-armor{margin-top:12px;padding-top:12px}.feature-layout{display:block;columns:2;column-gap:22px}.feature-group{break-inside:avoid;margin-bottom:22px}.pack-items{display:block;border-top:1px solid var(--line)}.pack-item{display:grid;grid-template-columns:32px minmax(0,1fr) 145px 38px;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:9px 8px;background:transparent}.pack-item:nth-child(even){background:var(--panel)}.pack-item-symbol{width:30px;height:30px;background:transparent}.pack-description .item-name{padding:0;font-size:.95rem}.pack-description small{font-size:.73rem}.pack-quantity{grid-column:3;grid-row:1;margin:0;justify-self:end}.pack-item>.icon-action{grid-column:4;grid-row:1}.pack-container h4{margin-bottom:8px}.pack-quantity .icon-action{min-width:38px}.custom-stat-strip{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:15px}.custom-stat-strip button{display:flex;gap:15px;align-items:center;padding:9px 14px}.custom-edit-row{display:grid;grid-template-columns:1fr 90px 1fr 40px;gap:10px;align-items:end;margin-bottom:15px}
@media(max-width:1150px) and (min-width:761px){.sheet-upper{grid-template-columns:1fr}.defenses{justify-content:center;border-right:0;border-bottom:1px solid var(--line);padding-bottom:15px}.trait-outline{max-width:105px}}
@media(max-width:760px){.sheet-upper{display:flex}.defenses{gap:12px;padding-right:0;justify-content:center}.armor-group{gap:10px}.sheet-upper .sheet-crest{width:77px;height:86px}.armor-group .pips{grid-template-columns:repeat(3,23px)}.feature-layout{columns:1}.pack-item{grid-template-columns:26px minmax(0,1fr) 38px;gap:7px}.pack-description{grid-column:2}.pack-quantity{grid-column:2;grid-row:2;justify-self:start}.pack-item>.icon-action{grid-column:3;grid-row:1}.custom-edit-row{grid-template-columns:1fr 70px}.custom-edit-row label:nth-child(3){grid-column:1}.experience-list{max-height:220px}.sheet-actions .row{flex-wrap:wrap}}
@media print{.experience-list{max-height:none;overflow:visible}.feature-layout{columns:1}.pack-items{display:block}.pack-quantity .icon-action{display:none}.custom-stat-strip button{display:block!important}}
/* Attributes own the top band; defenses sit with health. */
.sheet-upper{display:block;padding:22px 0}.sheet-upper .traits{grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}.trait-outline{max-width:132px}.trait-outline>b{top:32%;font-size:2rem}.trait-outline>span{font-size:.72rem}.vitals .defenses{display:flex;justify-content:center;align-items:center;border:0;padding:0 0 12px;gap:16px}.vitals .armor-group{display:flex;gap:12px}.vitals .sheet-crest{width:75px;height:82px}.vitals .sheet-crest b{font-size:1.55rem;top:29%}.vitals .sheet-crest>span{font-size:.61rem}.vitals .armor-group .pips{grid-template-columns:repeat(3,23px);gap:3px}.vitals .armor-group .pip{width:23px}.vitals .armor-group .pip svg{width:21px}.inventory-tools{display:flex;align-items:end;gap:18px;max-width:900px;margin:0 0 18px}.inventory-tools>input{flex:1;min-width:0;height:42px}.inventory-tools>label{width:170px;flex-shrink:0}.inventory-tools>label input{height:42px}.pack-container{max-width:900px;margin:18px 0}.pack-container h4{font-family:Overpass,sans-serif;font-weight:600;font-size:.88rem;text-transform:uppercase;letter-spacing:.08em;margin:0;padding:9px 10px;background:var(--panel2);border-radius:5px 5px 0 0;display:flex;justify-content:space-between}.pack-item{grid-template-columns:24px minmax(120px,1fr) 36px 116px 34px;gap:7px;padding:3px 8px;min-height:45px}.pack-item .pack-description .item-name{font-size:.92rem;line-height:1.3}.pack-item .pack-description small{font-size:.7rem;line-height:1.2}.pack-item-symbol{width:24px;height:24px}.pack-item-symbol .icon{width:17px;height:17px}.pack-equip{grid-column:3;grid-row:1}.pack-quantity{grid-column:4;grid-row:1;gap:0}.pack-item>.icon-action{grid-column:5;grid-row:1}.pack-item .icon-action{min-width:34px;min-height:34px;padding:7px!important;background:transparent;border:0}.pack-quantity output{min-width:28px;font-size:.88rem}.pack-item.equipped-item{border-left:2px solid var(--accent)}.pack-equip button[aria-pressed="true"]{color:var(--accent);background:var(--panel2)}
@media(max-width:760px){.sheet-upper .traits{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.trait-outline{max-width:116px}.inventory-tools{gap:10px;flex-wrap:wrap}.inventory-tools>input{flex-basis:100%}.inventory-tools>label{width:150px}.pack-item{grid-template-columns:20px minmax(0,1fr) 36px;gap:5px}.pack-equip{grid-column:3;grid-row:1}.pack-quantity{grid-column:2;grid-row:2;justify-self:start}.pack-item>.icon-action{grid-column:3;grid-row:2}.pack-item .icon-action{min-height:40px;min-width:36px}.pack-description{grid-column:2}.vitals .defenses{gap:9px}.vitals .armor-group{gap:8px}.vitals .sheet-crest{width:69px;height:77px}}
@media print{.inventory-tools #inventory-search{display:none}.pack-container{max-width:none}.pack-equip{display:none}.sheet-upper .traits{grid-template-columns:repeat(6,1fr)}}
