/* Atmospheric screen treatment. Paper and print retain the sheet silhouette. */
@media screen {
html[data-theme="blue"] body{background:linear-gradient(180deg,#10142296,#10141deb 760px),url('/citadel.png') center top/cover fixed;color:#e8e9ee}
html[data-theme="blue"] .content{background:transparent}
html[data-theme="blue"] .masthead,html[data-theme="blue"] .topbar{background:#101520ed;border-color:#71839d30}
html[data-theme="blue"] .character-sheet{--sheet-paper:#191e2a;--ink:#c8d3e4;--text:#e9e8ed;--muted:#aeb5c5;--line:#727a9338;--panel:#222735;--panel2:#2b3242;background:linear-gradient(180deg,#19202cbd,#191e2af5 340px);border:1px solid #929fb044;box-shadow:0 16px 60px #0005;border-radius:12px;color:var(--text)}
html[data-theme="blue"] .sheet-identity{background:linear-gradient(90deg,#161e2afa,#1b24316b),url('/citadel.png') center 44%/cover;border-bottom:1px solid #cdb87d60;margin:-1px -1px 0;padding:22px;border-radius:8px}
html[data-theme="blue"] .sheet-calling h1{color:#faf1d9;text-shadow:0 2px 8px #0009}
html[data-theme="blue"] .sheet-calling .eyebrow{color:#d0b877}
html[data-theme="blue"] .sheet-section{background:#202633;border-color:#78849c55;outline:none;border-radius:8px;box-shadow:0 5px 15px #0002}
html[data-theme="blue"] .ribbon-title{background:#202633;border-color:#78849c66;color:#d8dce5}
html[data-theme="blue"] .hope-section{background:linear-gradient(140deg,#39312380,#242630);border-color:#bba16a55}
html[data-theme="blue"] .hope-section .ribbon-title{background:#2e2d2d;color:#f1cf81;border-color:#bba16a88}
html[data-theme="blue"] .resource-hope .pip>span{border-color:#d4ad5e}
html[data-theme="blue"] .resource-hope .pip.on>span{background:#f1cb73;border-color:#ffe4a0;box-shadow:inset 0 0 0 2px #66502b,0 0 12px #eabd5230}
html[data-theme="blue"] .resource-hp .pip.red.on>span{background:#e78f93;border-color:#f9b6af}
html[data-theme="blue"] .resource-stress .pip.blue.on>span{background:#b6a0dc;border-color:#d5c4f0}
html[data-theme="blue"] .resource-armor .pip.on svg{fill:#a8c3ce;stroke:#d0e4eb}
html[data-theme="blue"] .experience-line b{color:#edce8a}
html[data-theme="blue"] .threshold-track>div{background:#141a25}
html[data-theme="blue"] .character-sheet input,html[data-theme="blue"] .character-sheet select{background:#131925;border-color:#7a87a54d}
html[data-theme="blue"] .tabs{border-bottom-color:#8690a644}
html[data-theme="blue"] .tabs button.active{background:#8bcddd12;color:#bfe8f4;border-bottom-color:#92c9da}
html[data-theme="blue"] .feature-group{background:#202633;border-color:#7b879a40;border-top:2px solid #b49e6966}
html[data-theme="blue"] .condition{border-color:#727d9355!important;background:#1b2330}
html[data-theme="blue"] .character-sheet button:hover{background:#394356}
html[data-theme="blue"] .pack-item:nth-child(even){background:#ffffff03}
html[data-theme="blue"] .pack-item:hover{background:#a8bfd00b}
html[data-theme="blue"] .pack-equip button[aria-pressed="true"]{background:#85bba418;color:#a9dbc3;border:1px solid #8bbfa65c}
html[data-theme="blue"] .equipped-item .pack-description small{color:#a9dbc3}
}
.sheet-tracks{align-items:start}.sheet-section{min-height:0}.sheet-upper{padding:25px 0 18px}.trait-outline{max-width:120px}.sheet-upper .traits{gap:20px}.sheet-section .resource-title{margin-top:14px}.hope-help{line-height:1.5}.sheet-calling>span{font-size:.96rem}.sheet-lower{margin-top:24px}.feature-group h3{letter-spacing:.035em}.feature-disclosure{padding:13px 0}.feature-disclosure summary span{max-width:66ch}
/* A single inventory, with stable columns and details on demand. */
.pack{width:100%;max-width:none}.inventory-heading{margin:8px 0 18px}.inventory-heading h3{margin:0 0 5px}.inventory-heading .meta{font-size:.8rem}.inventory-tools{max-width:none;align-items:center;gap:24px;margin-bottom:14px}.inventory-search-wrap{position:relative;flex:1}.inventory-search-wrap>.icon{position:absolute;left:13px;top:13px;width:18px;height:18px;color:var(--muted)}.inventory-search-wrap input{width:100%;height:44px;padding-left:42px}.inventory-tools>label{display:flex;align-items:center;gap:12px;width:210px;color:#c4a66d}.inventory-tools>label input{min-width:0;width:155px}.inventory-filters{display:flex;flex-wrap:wrap;gap:3px;border-bottom:1px solid var(--line);padding-bottom:8px}.inventory-filters button{background:transparent;border:0;padding:8px 14px;font-size:.86rem;color:var(--muted);border-radius:5px;min-height:40px}.inventory-filters button[aria-pressed="true"]{background:#86c3d41c;color:var(--text);box-shadow:inset 0 -2px #83bed1}.inventory-columns{display:grid;grid-template-columns:minmax(160px,1fr) 150px 60px 120px 40px;gap:12px;padding:15px 12px 7px 46px;font-size:.7rem;text-transform:uppercase;letter-spacing:.09em;color:var(--muted)}.inventory-columns span:nth-child(3),.inventory-columns span:nth-child(4){text-align:center}.pack-container{max-width:none;margin:12px 0 20px}.pack-container h4{background:transparent;border-radius:0;border-bottom:1px solid var(--line);padding:8px 12px;color:var(--muted);font-size:.72rem;justify-content:flex-start;gap:10px;letter-spacing:.12em}.pack-container h4 small{font-size:.7rem;opacity:.7}.pack-items{border-top:0}.pack-item{grid-template-columns:22px minmax(160px,1fr) 150px 60px 120px 40px;gap:12px;padding:5px 12px;min-height:54px;border-bottom:1px solid #7b8ba51a}.pack-item.equipped-item{border-left:0}.pack-description{grid-column:2;grid-row:1}.pack-description .item-name{color:var(--text);font-weight:600}.pack-description small{font-size:.72rem!important;color:var(--muted)}.pack-location{grid-column:3;font-size:.82rem;color:var(--muted);overflow-wrap:anywhere}.pack-equip{grid-column:4;justify-self:center}.empty-cell{color:var(--muted);opacity:.3}.pack-quantity{grid-column:5;justify-self:center}.pack-item>.icon-action{grid-column:6;opacity:.35}.pack-item:hover>.icon-action,.pack-item:focus-within>.icon-action{opacity:1}.pack-item .icon-action{min-height:40px;min-width:36px;border-radius:5px}.pack-quantity .icon-action{opacity:.45}.pack-item:hover .pack-quantity .icon-action,.pack-item:focus-within .pack-quantity .icon-action{opacity:1}.inventory-empty{padding:35px 12px;color:var(--muted)}.item-detail-meta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;color:var(--muted);margin-bottom:20px}.item-detail-notes{white-space:pre-line;line-height:1.7;margin:20px 0}.modal-actions{display:flex;justify-content:flex-end;margin-top:25px}
/* Physical-card anatomy: hanging domain ribbon, scenic crown, gold seam, paper face. */
.domain-card{border:3px solid #9d99a3!important;border-radius:20px!important;box-shadow:0 6px 18px #0004!important;isolation:isolate}
.card-crown{min-height:178px;position:relative;padding:0 18px;background:linear-gradient(130deg,color-mix(in srgb,var(--card-color),transparent 25%),#13192966),url('/citadel.png') center 46%/cover;border-bottom:5px solid #d9bc70;align-items:flex-start}
.domain-banner{position:relative;z-index:2;width:62px;min-height:118px;align-self:flex-start;padding:12px 7px 22px;border-left:3px solid #dfc477;border-right:3px solid #dfc477;box-shadow:inset 3px 0 #dfc47770,inset -3px 0 #dfc47770}.domain-banner b{font-size:1.15rem}.domain-banner img{width:34px;height:34px}.card-art-sigil{position:absolute;right:24%;top:28px;opacity:.3;transform:rotate(-8deg)}.card-art-sigil img{width:104px;height:104px;filter:brightness(0) invert(1);object-fit:contain}.card-identity{position:absolute;bottom:-16px;left:22%;right:22%;z-index:3;text-align:center;display:block;background:var(--card-color);border:3px solid #e1c47b;clip-path:polygon(9% 0,91% 0,100% 50%,91% 100%,9% 100%,0 50%);padding:4px 10px}.card-identity>span{display:none}.card-identity small{color:white;font-size:.67rem;letter-spacing:.09em;text-shadow:0 1px 2px #000}.recall-badge{margin-left:auto;margin-top:14px;z-index:2}.recall-badge>b{width:33px;height:33px;background:#202636;border:1px solid #f1e8d1;color:white;font-size:1rem}.recall-badge small{display:none}.domain-card h3{padding:28px 17px 8px;text-align:center;border:0;font-size:1.05rem;line-height:1.45}.domain-card>p{font-size:.91rem;line-height:1.6;padding:10px 19px 24px;white-space:normal}.domain-card .sheet-card-actions{border-top:1px solid #9f987a40;padding:4px 12px;justify-content:center;gap:22px}.card-use-state{text-align:center}.domain-card.is-used{border-style:dashed!important}.card-collection{grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:24px}.card-collection .domain-card{max-width:440px;width:100%}
@media screen{html[data-theme="blue"] .domain-card{background:#f5f1e8!important;color:#25232b!important;color-scheme:light}html[data-theme="blue"] .domain-card h3{color:#22212a}html[data-theme="blue"] .domain-card>p{color:#302e33}html[data-theme="blue"] .domain-card .card-actions{background:#ece7db;border-color:#c5bda9}html[data-theme="blue"] .domain-card .sheet-card-actions .card-control{color:#514c58;background:transparent;border-color:transparent}html[data-theme="blue"] .domain-card .sheet-card-actions .card-control:hover{background:#ddd4bd;color:#272536}html[data-theme="blue"] .domain-card .sheet-card-actions .card-control[aria-pressed="true"]{background:#c1d4ca;color:#235440;border-color:#7c9c89}html[data-theme="blue"] .domain-card>small{background:#e6ddc8;color:#4a4236}html[data-theme="blue"] .card-use-state{color:#8a3853}}
@media(max-width:760px){.inventory-tools{gap:12px}.inventory-search-wrap{flex-basis:100%}.inventory-tools>label{width:100%;justify-content:flex-end}.inventory-heading{flex-wrap:wrap}.inventory-heading .row{width:100%;justify-content:flex-end}.inventory-columns{display:none}.pack-item{grid-template-columns:22px minmax(0,1fr) 40px;gap:5px 10px;padding:8px}.pack-location{grid-column:2;grid-row:2;font-size:.75rem}.pack-equip{grid-column:3;grid-row:1}.pack-quantity{grid-column:2;grid-row:3;justify-self:start}.pack-item>.icon-action{grid-column:3;grid-row:3;opacity:.7}.pack-container{margin-bottom:18px}.card-collection .domain-card{max-width:none}.sheet-tracks{gap:26px}html[data-theme="blue"] .sheet-identity{padding:14px}.card-crown{min-height:170px}}
@media print{.inventory-filters,.inventory-columns,.inventory-search-wrap,.pack-item>.icon-action{display:none}.pack-location{display:block}.card-art-sigil{display:none}.card-crown{min-height:110px;background:var(--card-color)}.domain-card>p{white-space:normal}}
/* Printed-sheet strip, compact Hope and equipment rows. */
.sheet-upper{display:grid;grid-template-columns:270px minmax(0,1fr);gap:20px;align-items:center}.defense-strip{display:flex;align-items:center;gap:8px;padding-right:16px;border-right:1px solid var(--line)}.defense-strip .sheet-crest{width:70px;height:80px;flex-shrink:0}.defense-strip .sheet-crest b{font-size:1.65rem;top:29%}.defense-strip .sheet-crest>span{font-size:.6rem}.defense-strip .armor-group{gap:7px}.defense-strip .pips{display:grid;grid-template-columns:repeat(3,18px);gap:1px}.defense-strip .pip{width:18px;min-width:18px;height:20px;min-height:20px;padding:0}.defense-strip .pip svg{width:17px;height:20px}.defense-strip .resource-title{display:none}.pip:disabled{opacity:.2;cursor:default;pointer-events:none}.sheet-upper .traits{gap:10px}.sheet-upper .trait>small{font-size:.68rem}.trait-outline{max-width:108px}.trait-outline>span{font-size:.62rem}.sheet-tracks{grid-template-columns:1.1fr .9fr 1fr}.vitals .hope-section{margin-top:20px;padding:15px 0 0;border:0;border-top:1px solid var(--line);background:transparent!important}.hope-section .ribbon-title{position:static;margin:0 auto 10px;display:table;font-size:.85rem}.hope-section .resource-title{display:none}.hope-section .pips{display:flex;justify-content:space-evenly;background:#c8a65b18;border-radius:4px;padding:4px}.hope-help{font-size:.73rem!important;margin:8px 0;text-align:center}.hope-feature{font-size:.82rem;line-height:1.5;margin:10px 0 0}.hope-feature strong{color:#dfbf7e}.proficiency{justify-content:center;margin:-6px 0 12px;padding:5px 8px;border-bottom:1px solid var(--line);gap:6px}.proficiency strong{font-size:.65rem}.proficiency i{width:12px;height:12px}.weapon-title{display:contents}.weapon-title>div:first-child{min-width:0}.weapon-title h3{font-size:.82rem}.weapon-title small{display:none}.weapon-compact{display:grid;grid-template-columns:minmax(85px,1fr) auto auto;align-items:center;gap:6px}.weapon-title .row{grid-column:3;grid-row:1}.weapon-inline{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:0;font-size:.73rem}.weapon-inline>span{font-size:.67rem}.weapon-compact details{grid-column:1/-1}.weapon-title .icon-action{min-width:32px;min-height:36px;padding:5px!important}.weapon-title .icon{width:19px;height:19px}.armor-equipment-line{display:flex;align-items:center;gap:22px;padding:18px 0;border-top:1px solid var(--line);margin-top:15px}.armor-equipment-line span{color:var(--muted);font-size:.85rem}.equipped-list{max-width:1000px}.equipped-list .weapon-compact{padding:14px 0}.equipped-list .weapon-title h3{font-size:1rem}.equipped-list .weapon-inline{flex-direction:row;gap:25px;margin-right:20px}.equipped-list .weapon-inline>span{font-size:.85rem}.equipped-list .weapon-inline b{font-size:.9rem}
@media(max-width:1100px){.sheet-upper{grid-template-columns:1fr}.defense-strip{justify-content:center;border-right:0;border-bottom:1px solid var(--line);padding-bottom:15px}.sheet-upper .traits{grid-template-columns:repeat(6,minmax(0,1fr))}.sheet-tracks{grid-template-columns:1fr 1fr}.weapon-summary{grid-column:1/-1}.weapon-summary .weapon-compact{grid-template-columns:1fr auto auto}}
@media(max-width:760px){.sheet-upper .traits{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-tracks{grid-template-columns:1fr}.weapon-summary{grid-column:auto}.armor-equipment-line{flex-wrap:wrap;gap:12px}.equipped-list .weapon-inline{flex-direction:column;gap:0;margin:0}.weapon-title h3{overflow-wrap:anywhere}.hope-feature strong{color:inherit}}
@media(min-width:1101px){.sheet-tracks{grid-template-columns:1fr 1fr;grid-template-rows:auto 1fr;gap:24px}.sheet-tracks>.vitals{grid-column:1;grid-row:1/3}.sheet-tracks>.weapon-summary{grid-column:2;grid-row:1}.sheet-tracks>.experiences-section{grid-column:2;grid-row:2}.vitals .resource{margin-bottom:8px}.vitals .resource-title{margin-top:8px}.vitals .hope-section{margin-top:12px}}
/* Full strip proportions and dense play controls. */
.sheet-upper{grid-template-columns:290px minmax(0,1fr);gap:12px;padding:20px 0}.defense-strip{gap:10px;padding-right:12px}.defense-strip .sheet-crest{width:80px;height:94px}.defense-strip .sheet-crest b{font-size:1.9rem}.defense-strip .pips{grid-template-columns:repeat(3,21px)}.defense-strip .pip{width:21px;height:23px;min-height:23px}.defense-strip .pip svg{width:20px;height:23px}.sheet-upper .traits{gap:8px}.trait-outline{max-width:none;width:100%}.trait-outline>b{font-size:2.2rem}.trait-outline>span{font-size:.72rem}.sheet-upper .trait>small{font-size:.73rem}.highest-trait .trait-outline{color:#dbbb70}.highest-trait .trait-outline svg{color:#dbbb70!important}.highest-trait .trait-outline>b{color:#f1d58e}.highest-trait .trait-outline>span{background:#ddc27e;color:#272537!important}.sheet-tracks{grid-template-columns:1fr 1fr 1fr;grid-template-rows:auto;gap:20px}.sheet-tracks>.vitals{grid-column:1;grid-row:1}.sheet-tracks>.weapon-summary{grid-column:2;grid-row:1}.sheet-tracks>.experiences-section{grid-column:3;grid-row:1}.sheet-section{padding:22px 16px 14px}.vitals .resource{margin:8px 0!important}.vitals .resource-title{justify-content:flex-start;gap:6px;margin:0 0 5px!important}.vitals .resource-title strong,.vitals .resource-title span{font-size:.78rem}.vitals .pips{gap:3px}.vitals .resource-hp .pip,.vitals .resource-stress .pip{width:25px;min-width:0;height:23px;min-height:23px;padding:2px}.vitals .resource-hp .pip>span,.vitals .resource-stress .pip>span{width:100%;height:13px}.vitals .resource-hp .pips,.vitals .resource-stress .pips{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}.vitals .resource-hp .pip,.vitals .resource-stress .pip{width:100%}.threshold-help{font-size:.72rem!important;line-height:1.45;margin:8px 0 12px}.threshold-help span{opacity:.7}.vitals .hope-section{margin-top:12px;padding-top:10px}.hope-feature{font-size:.78rem;line-height:1.5}.sheet-controls{margin-top:6px!important}.sheet-controls .icon-action{min-height:32px;min-width:32px;padding:5px!important}.proficiency{display:flex;justify-content:center;align-items:center;gap:9px;margin:-8px -8px 12px;padding:13px 6px;background:linear-gradient(90deg,transparent,#c7b16d22,transparent);border-top:1px solid #cbb57775;border-bottom:1px solid #cbb57775;clip-path:polygon(3% 0,97% 0,100% 50%,97% 100%,3% 100%,0 50%)}.proficiency strong{font-size:.8rem;color:#e3c988}.proficiency span{display:flex;gap:5px}.proficiency i{width:17px;height:17px}.weapon-compact,.weapon-summary .weapon-compact{grid-template-columns:minmax(85px,1.25fr) .55fr .9fr auto;gap:8px;padding:9px 0;align-items:center}.weapon-name h3{font-size:.86rem!important;margin:3px 0!important}.weapon-name>small{font-size:.62rem;text-transform:uppercase;color:var(--muted)}.weapon-name>span{font-size:.7rem;color:var(--muted)}.weapon-attack,.weapon-damage{display:flex;flex-direction:column;gap:3px;text-align:center}.weapon-attack small,.weapon-damage small{font-size:.63rem;text-transform:uppercase;color:var(--muted)}.weapon-attack b{font-size:1.25rem;color:#d6bbee}.weapon-damage b{font-size:.95rem;color:#f1c591;white-space:nowrap}.weapon-damage>span{font-size:.62rem;color:var(--muted)}.weapon-rolls{display:flex;gap:3px}.weapon-rolls .icon-action{min-width:32px;min-height:38px;padding:5px!important;border:0}.weapon-rolls .attack-control{color:#d9b7f0!important;background:#b385d31c!important}.weapon-rolls .damage-control{color:#f5bd80!important;background:#db9c521c!important}.weapon-rolls .icon{width:23px;height:23px}.worn-armor>.icon,.armor-equipment-line>.icon{color:#92cbb9;fill:#628e7b30;width:32px;height:36px}.worn-armor{padding-top:10px;margin-top:10px}.worn-armor strong{font-size:.88rem}.worn-armor span{font-size:.77rem}.equipped-list{max-width:900px}.equipped-list .weapon-compact{grid-template-columns:1.3fr .6fr .8fr auto}.equipped-list .weapon-name h3{font-size:1rem!important}
@media(max-width:1200px){.sheet-tracks{grid-template-columns:1fr 1fr}.sheet-tracks>.experiences-section{grid-column:2;grid-row:2}.sheet-tracks>.vitals{grid-row:1/3}.sheet-tracks>.weapon-summary{grid-column:2;grid-row:1}.sheet-upper{grid-template-columns:240px minmax(0,1fr)}.defense-strip .sheet-crest{width:64px;height:76px}.trait-outline>span{font-size:.55rem}}
@media(max-width:900px){.sheet-upper{display:block}.defense-strip{padding-bottom:12px;margin-bottom:12px}.trait-outline{max-width:130px}.trait-outline>span{font-size:.68rem}.proficiency{gap:6px}.proficiency i{width:15px;height:15px}}
@media(max-width:760px){.sheet-tracks{grid-template-columns:1fr}.sheet-tracks>.vitals,.sheet-tracks>.weapon-summary,.sheet-tracks>.experiences-section{grid-column:1;grid-row:auto}.sheet-upper .traits{gap:10px}.weapon-rolls{gap:1px}.weapon-compact{gap:5px}.sheet-section{padding-left:12px;padding-right:12px}.highest-trait .trait-outline>b{color:#d8b46c}}
html[data-theme="paper"] .highest-trait .trait-outline>b{color:#8a6319}
.vitals{gap:4px}.vitals .threshold-help{margin:5px 0 8px}.vitals .hope-section{margin-top:8px}.vitals .hope-help{margin:5px 0}.vitals .hope-feature{margin:7px 0 0}.vitals .ribbon-title{margin-bottom:6px}.weapon-compact+.weapon-compact{margin-top:5px;padding-top:9px}
/* Match the printed strip: defense crests share the attributes' visual height. */
.sheet-upper{--crest-height:clamp(85px,9.3vw,150px);display:grid;grid-template-columns:2.65fr 6fr;gap:14px;align-items:start}.defense-strip{display:grid;grid-template-columns:1fr 1fr .68fr;gap:8px;align-items:center;height:var(--crest-height);padding:0 12px 0 0;border-bottom:0;border-right:1px solid var(--line);margin:0}.defense-strip .armor-group{display:contents}.defense-strip .sheet-crest{width:100%;height:var(--crest-height)}.defense-strip .sheet-crest b{font-size:clamp(1.6rem,2.25vw,2.3rem);top:32%}.defense-strip .sheet-crest>span{font-size:clamp(.55rem,.85vw,.78rem)}.defense-strip .resource-armor{width:100%;margin:0}.defense-strip .pips{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;height:calc(var(--crest-height) - 8px)}.defense-strip .pip{width:100%;height:100%;min-height:0;min-width:0}.defense-strip .pip svg{width:100%;height:100%}.sheet-upper .traits{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.sheet-upper .trait-outline{max-width:none;aspect-ratio:auto;height:var(--crest-height)}.sheet-upper .trait-outline>svg{width:100%;height:100%}.sheet-upper .trait-outline>b{font-size:clamp(1.6rem,2.25vw,2.3rem)}.sheet-upper .trait>small{margin-top:8px}.vitals .resource-hp .pips,.vitals .resource-stress .pips{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px 6px}.vitals .resource-hp .pip,.vitals .resource-stress .pip{height:26px;min-height:26px;padding:2px}.vitals .resource-hp .pip>span,.vitals .resource-stress .pip>span{height:18px;border-radius:4px}.sheet-tracks{grid-template-columns:minmax(285px,340px) minmax(370px,480px) minmax(0,1fr);grid-template-rows:auto 1fr;gap:22px}.sheet-tracks>.vitals{grid-column:1;grid-row:1/3}.sheet-tracks>.weapon-summary{grid-column:2;grid-row:1}.sheet-tracks>.experiences-section{grid-column:2;grid-row:2}.threshold-help{font-size:.75rem!important}.vitals .resource-title{margin-top:5px!important}
@media(max-width:1100px){.sheet-tracks{grid-template-columns:minmax(280px,.85fr) minmax(340px,1.15fr)}.sheet-upper{gap:10px}.sheet-upper .trait-outline>span{font-size:.55rem}}
@media(max-width:760px){.sheet-upper{display:block;--crest-height:105px}.defense-strip{max-width:310px;margin:0 auto 16px;padding:0;border-right:0}.sheet-upper .traits{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-upper .trait-outline>span{font-size:.68rem}.sheet-tracks{grid-template-columns:minmax(0,1fr)}.sheet-tracks>.vitals,.sheet-tracks>.weapon-summary,.sheet-tracks>.experiences-section{grid-column:1;grid-row:auto}.vitals .resource-hp .pip,.vitals .resource-stress .pip{height:30px;min-height:30px}}
.sheet-upper .trait-outline>span{top:10%;font-size:clamp(.55rem,.8vw,.75rem)}
/* Play order: health, rules, equipment; experiences remain under weapons. */
.sheet-tracks{grid-template-columns:minmax(285px,.85fr) minmax(290px,1fr) minmax(370px,1.15fr);grid-template-rows:auto 1fr}.sheet-tracks>.vitals{grid-column:1;grid-row:1/3}.sheet-tracks>.play-features{grid-column:2;grid-row:1/3}.sheet-tracks>.weapon-summary{grid-column:3;grid-row:1}.sheet-tracks>.experiences-section{grid-column:3;grid-row:2}.play-features .feature-layout{columns:1}.play-features .feature-group{border:0!important;border-radius:0;background:transparent!important;padding:0;margin:0 0 18px}.play-features .feature-group h3{font-size:.79rem;color:#d8c18b;margin-bottom:9px}.play-features .feature-disclosure{padding:9px 0}.play-features .feature-disclosure summary strong{font-size:.86rem}.play-features .feature-disclosure summary span{font-size:.77rem;line-height:1.45}.play-features .feature-disclosure>div{font-size:.85rem;line-height:1.6}.play-features .feature-reference{padding:0;margin-top:12px;font-size:.78rem}.armor-summary{display:grid;grid-template-columns:28px minmax(90px,1fr) auto auto;align-items:center;gap:10px}.armor-summary .armor-name{display:flex;flex-direction:column;gap:4px}.armor-summary .armor-stat{display:flex;flex-direction:column;align-items:center;gap:5px}.armor-summary small{font-size:.6rem;white-space:nowrap}.armor-summary .armor-stat b{font-size:.95rem;color:#a9d6c2;white-space:nowrap}.armor-summary details{grid-column:2/-1;font-size:.76rem;color:var(--muted)}.armor-summary details p{font-size:.82rem;line-height:1.5}.defense-strip .crest-armor{transform:translateY(4px)}.sheet-upper .trait-outline>svg>path:last-of-type{transform:translateY(1.6px) scaleY(.8)}.highest-trait .trait-outline>span{background:transparent}
@media(max-width:1100px){.sheet-tracks{grid-template-columns:minmax(280px,.9fr) minmax(340px,1.1fr)}.sheet-tracks>.weapon-summary{grid-column:2;grid-row:1}.sheet-tracks>.experiences-section{grid-column:2;grid-row:2}.sheet-tracks>.play-features{grid-column:1/-1;grid-row:3}.play-features .feature-layout{columns:2}}
@media(max-width:760px){.sheet-tracks{grid-template-columns:minmax(0,1fr)}.sheet-tracks>.vitals,.sheet-tracks>.play-features,.sheet-tracks>.weapon-summary,.sheet-tracks>.experiences-section{grid-column:1;grid-row:auto}.play-features .feature-layout{columns:1}.armor-summary{gap:7px;grid-template-columns:25px minmax(70px,1fr) auto auto}}
html[data-theme="paper"] .play-features .feature-group h3,html[data-theme="paper"] .proficiency strong,html[data-theme="paper"] .hope-feature strong{color:#806020}html[data-theme="paper"] .weapon-attack b{color:#71418b}html[data-theme="paper"] .weapon-damage b{color:#925014}html[data-theme="paper"] .weapon-rolls .attack-control{color:#71418b!important}html[data-theme="paper"] .weapon-rolls .damage-control{color:#925014!important}html[data-theme="paper"] .armor-summary .armor-stat b,html[data-theme="paper"] .worn-armor>.icon{color:#326953}
/* Shorter attribute ribbons, original thickness; rules appear only on expansion. */
.sheet-upper .trait-outline>svg>path:last-of-type{transform:translateX(2.435px) scaleX(.88)}
.play-features .feature-disclosure summary span{display:none}
/* Shared label baseline, shorter shields, and optional trait reminders. */
.sheet-upper{--crest-height:clamp(78px,8.2vw,126px);grid-template-columns:2.65fr 6fr;align-items:center;padding:18px 0 24px}.defense-strip{gap:8px}.defense-strip .crest-armor{transform:none}.defense-strip .sheet-crest>svg>path:last-of-type,.defense-strip .crest-armor svg g>path:last-of-type{display:none}.defense-strip .sheet-crest>span{bottom:9%;height:19%;display:flex;align-items:center;justify-content:center;background:var(--ink);clip-path:polygon(4% 0,96% 0,100% 20%,100% 80%,96% 100%,4% 100%,0 80%,0 20%);font-size:clamp(.55rem,.78vw,.75rem);color:var(--sheet-paper)!important}.defense-strip .sheet-crest b{top:32%;font-size:clamp(1.5rem,2vw,2rem)}.sheet-upper .trait{position:relative}.sheet-upper .trait-outline{height:var(--crest-height)}.sheet-upper .trait-outline>svg{overflow:visible}.sheet-upper .trait-outline>svg>path:not(:last-of-type){transform:translateY(.6px) scaleY(.9)}.sheet-upper .trait-outline>b{font-size:clamp(1.5rem,2vw,2rem);top:30%}.sheet-upper .trait>small{display:none;position:absolute;top:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:210px;min-height:0;padding:7px 10px;background:#101725;color:#edf2fa;border:1px solid #65728a;border-radius:5px;z-index:10;font-size:.75rem;line-height:1.4;box-shadow:0 4px 12px #0004}.sheet-upper .trait:hover>small,.sheet-upper .trait:focus-visible>small{display:block}.sheet-tracks{margin-top:10px}
@media(max-width:760px){.sheet-upper{display:block;--crest-height:94px}.defense-strip{margin-bottom:14px}.sheet-upper .traits{gap:14px 8px}}
.sheet-upper .trait-outline>span{top:0;height:18.5%;display:flex;align-items:center;justify-content:center;line-height:1}.defense-strip .sheet-crest>span{left:6%;width:88%}
.items-pack .inventory-columns{grid-template-columns:minmax(160px,1fr) 150px 120px 40px}.items-pack .inventory-columns>span:nth-child(3),.items-pack .pack-equip{display:none}.items-pack .pack-item{grid-template-columns:22px minmax(160px,1fr) 150px 120px 40px}.items-pack .pack-quantity{grid-column:4}.items-pack .pack-item>.icon-action{grid-column:5}
@media(max-width:760px){.items-pack .pack-item{grid-template-columns:22px minmax(0,1fr) 40px}.items-pack .pack-quantity{grid-column:2}.items-pack .pack-item>.icon-action{grid-column:3}}
.equipment-picker-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.equipment-picker-filters>input{grid-column:1/-1}.equipment-picker-filters label{font-size:.78rem;gap:5px}.picker-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:15px}.picker-heading .meta{margin-left:auto}.catalog-facts{font-size:.8rem;color:var(--muted);margin-top:5px}.items-pack .inventory-tools{flex-wrap:wrap}.items-pack .inventory-search-wrap{flex-basis:100%}.gold-track{border:1px solid var(--line);border-radius:6px;padding:10px 14px;display:flex;gap:22px;align-items:center;margin:0;color:#ddbd72}.gold-track legend{font-family:Eveleth;font-size:.8rem;padding:0 7px}.gold-denomination{display:flex;align-items:center;gap:10px}.gold-denomination>span{display:grid;justify-items:center;gap:3px}.gold-denomination>span>.icon{width:27px;height:27px}.gold-denomination small{font-size:.64rem}.gold-denomination>div{display:grid;grid-template-columns:repeat(3,18px);gap:5px}.gold-mark{min-width:18px;min-height:18px;width:18px;height:18px;padding:0;border:1px solid #bc9b58!important;background:transparent!important;border-radius:3px}.gold-mark.on{background:#d7b768!important;box-shadow:inset 0 0 0 2px var(--sheet-paper)}.gold-denomination:last-of-type>div{grid-template-columns:36px}.gold-denomination:last-of-type .gold-mark{width:36px;height:36px;display:grid;place-items:center}.gold-mark .icon{width:27px;height:27px}.gold-mark.on .icon{color:#352a13}.gold-track>small{max-width:200px}html[data-theme="paper"] .gold-track{color:#7e5d20}
@media(max-width:600px){.equipment-picker-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.gold-track{flex-wrap:wrap;gap:15px}.gold-denomination>div{gap:6px}}
.equipment-pack .inventory-columns{grid-template-columns:minmax(130px,1fr) minmax(270px,1.6fr) 90px 50px 120px 40px}.equipment-pack .pack-item{grid-template-columns:30px minmax(130px,1fr) minmax(270px,1.6fr) 90px 50px 120px 40px;gap:12px;padding:12px 10px}.equipment-pack .pack-location{grid-column:4}.equipment-pack .pack-equip{grid-column:5}.equipment-pack .pack-quantity{grid-column:6}.equipment-pack .pack-item>.icon-action{grid-column:7}.equipment-pack .pack-item-symbol{width:30px;height:36px;color:#e4bd84;background:#d6ab6715;border-radius:5px}.equipment-pack .pack-item-symbol .icon{width:26px;height:28px;stroke-width:1.8}.equipment-pack .pack-container:last-child .pack-item-symbol{color:#91cbb6}.equipment-comparison{grid-column:3;grid-row:1;display:grid;grid-template-columns:60px minmax(85px,1fr) minmax(100px,1fr);gap:7px 14px;align-items:center}.equipment-comparison>div{display:grid;gap:4px}.equipment-comparison small{font-size:.62rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.equipment-comparison b{font-size:1rem;white-space:nowrap}.equipment-comparison em{font-size:.7rem;font-style:normal;font-weight:400;color:var(--muted)}.attack-value{color:#d1afe9}.damage-value{color:#f0c287}.armor-value{color:#96c9b5}.comparison-trait{font-size:.75rem;color:var(--muted)}.equipment-comparison details{grid-column:1/-1;font-size:.76rem;color:var(--muted)}.equipment-comparison details p{line-height:1.5;white-space:normal}.equipment-pack .pack-equip button{border:1px solid #a4b8ce50;background:#a4b8ce0b;color:#c5d8eb}.equipment-pack .pack-equip button[aria-pressed="true"]{background:#83bea426!important;color:#a3d9bc!important;border-color:#83bea470}.equipment-pack .inventory-columns span{text-align:left}.equipment-pack .inventory-columns span:nth-last-child(2){text-align:center}html[data-theme="paper"] .attack-value{color:#75448e}html[data-theme="paper"] .damage-value{color:#91550d}html[data-theme="paper"] .armor-value{color:#316950}
@media(max-width:1100px){.equipment-pack .inventory-columns{display:none}.equipment-pack .pack-item{grid-template-columns:30px minmax(130px,1fr) minmax(230px,1.5fr) 44px 110px 36px;gap:9px}.equipment-pack .pack-location{grid-column:2;grid-row:2}.equipment-pack .pack-equip{grid-column:4}.equipment-pack .pack-quantity{grid-column:5}.equipment-pack .pack-item>.icon-action{grid-column:6}.equipment-comparison{grid-row:1/3;grid-template-columns:55px 1fr}.comparison-trait{grid-column:1/-1}}
@media(max-width:760px){.equipment-pack .pack-item{grid-template-columns:28px minmax(0,1fr) 40px}.equipment-pack .pack-description{grid-column:2}.equipment-pack .pack-equip{grid-column:3}.equipment-pack .pack-location{grid-column:2;grid-row:2}.equipment-comparison{grid-column:2;grid-row:3;grid-template-columns:55px 1fr}.equipment-pack .pack-quantity{grid-column:2;grid-row:4;justify-self:start}.equipment-pack .pack-item>.icon-action{grid-column:3;grid-row:4}}
/* Temporary user-requested 16-shield visual preview; usable slots are unchanged. */
.defense-strip .pips{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
/* Isolate the 4×4 shield grid from the strip's intrinsic sizing. */
.sheet-upper{grid-template-columns:minmax(0,2.65fr) minmax(0,6fr)}
.defense-strip{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.68fr)}
.defense-strip .resource-armor{min-width:0;width:100%;height:calc(var(--crest-height) - 8px);contain:size}
.defense-strip .resource-armor .pips{width:100%;height:100%;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:3px;min-width:0;min-height:0}
.defense-strip .resource-armor .pip{display:block;width:100%;height:100%;min-width:0;min-height:0;padding:0;overflow:hidden}
.defense-strip .resource-armor .pip svg{display:block;width:100%;height:100%;min-width:0;min-height:0}
.sheet-upper>.traits{min-width:0}
/* Longer attribute bodies with values centered below the name ribbon. */
.sheet-upper .trait-outline{height:calc(var(--crest-height) + 16px)}
.sheet-upper .trait-outline>svg>path:not(:last-of-type){transform:none}
.sheet-upper .trait-outline>b{top:53%;transform:translateY(-50%);line-height:1;margin:0}
/* One shared top and bottom edge across the complete crest strip. */
.sheet-upper{align-items:start}
.sheet-upper .trait-outline{height:var(--crest-height)}
.defense-strip{align-self:start}
/* Preserve the defense artwork's natural proportions; never stretch it sideways. */
.defense-strip .sheet-crest>svg{width:100%;height:100%}
/* Center armor slots independently of resource defaults and hidden labels. */
.defense-strip .resource-armor{align-self:center;display:block;margin:0!important;padding:0;transform:none}
.defense-strip .resource-armor .pips{margin:0!important;padding:0;align-content:stretch}
/* Compact vertical resource rhythm without shrinking the marks. */
.sheet-tracks>.vitals{gap:0}
.vitals .threshold-help{margin:4px 0 8px!important}
.vitals .resource-hp,.vitals .resource-stress{margin:5px 0!important;padding:0}
.vitals .resource-hp .resource-title,.vitals .resource-stress .resource-title{margin:0 0 4px!important}
.vitals .resource-hp .pips,.vitals .resource-stress .pips{row-gap:2px;margin:0;padding:0}
.vitals .hope-section{margin-top:7px!important;padding-top:8px!important}
/* Compact equipment; shared health/features baseline with intact rule groups. */
.weapon-summary .proficiency{padding:9px 6px;margin-bottom:7px}
.weapon-summary .weapon-compact{padding:5px 0;row-gap:3px}
.weapon-summary .weapon-compact+.weapon-compact{margin-top:5px;padding-top:7px}
.weapon-summary .weapon-name{line-height:1.2}
.weapon-summary .weapon-name h3{margin:2px 0!important}
.weapon-summary .weapon-compact details{margin-top:2px}
.weapon-summary .worn-armor{margin-top:7px;padding-top:8px;row-gap:5px}
.weapon-summary{padding-bottom:12px}
@media(min-width:1101px){
.sheet-tracks>.vitals,.sheet-tracks>.play-features{align-self:stretch}
.sheet-tracks>.play-features{display:flex;flex-direction:column}
.play-features>.feature-layout{display:flex;flex-direction:column;flex:1;justify-content:space-between;gap:14px}
.play-features .feature-group{margin-bottom:0}
.play-features>.feature-reference{margin-top:14px;flex-shrink:0}
}
@media(min-width:1101px){.play-features>.feature-layout{align-items:stretch;width:100%}.play-features .feature-group{width:100%;box-sizing:border-box}}
/* Three visible experience slots, with additional entries available by scrolling. */
.experiences-section .experience-list{height:132px;max-height:132px;overflow-y:auto;scrollbar-width:thin;padding-right:8px}
.experiences-section .experience-line{height:44px;min-height:44px;box-sizing:border-box;margin:0;padding:8px 0;display:flex;align-items:center;gap:12px}
.experiences-section .experience-line span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.experiences-section .empty-experience{opacity:.3;user-select:none}
@media(min-width:1101px){.play-features>.feature-layout{margin:0;gap:16px;justify-content:space-between}}
@media print{.experiences-section .experience-list{height:auto;max-height:none;overflow:visible}.experiences-section .experience-line{height:auto;min-height:32px}.experiences-section .experience-line span{white-space:normal;overflow:visible}.empty-experience{display:none}}
/* Fit three experience rows into the compact panel instead of enlarging the shared grid. */
.experiences-section .experience-list{height:90px;max-height:90px}
.experiences-section .experience-line{height:30px;min-height:30px;padding:4px 0}
@media print{.experiences-section .experience-list{height:auto;max-height:none}.experiences-section .experience-line{height:auto}}
/* Two readable experience rows in the same compact footprint. */
.experiences-section .experience-list{height:90px;max-height:90px;padding-top:0;margin-top:4px}
.experiences-section .experience-line{height:45px;min-height:45px;padding:9px 0;font-size:1rem;line-height:1.45}
.experiences-section .experience-line b{font-size:1.05rem}
@media print{.experiences-section .experience-list{height:auto;max-height:none}.experiences-section .experience-line{height:auto;min-height:36px}}
/* Finish the shared baseline and give Experiences an inset writing strip. */
@media(min-width:1101px){.sheet-tracks>.experiences-section{align-self:stretch;display:flex;flex-direction:column;justify-content:center}}
.play-features .feature-disclosure summary strong{font-size:.96rem;line-height:1.4}
.play-features .feature-group h3{font-size:.84rem}
.experiences-section .experience-list{flex:none;background:linear-gradient(180deg,#0b14292b,#0b142911);border:1px solid #8294b52b;border-radius:6px;box-shadow:inset 0 2px 5px #0003;padding:0 12px;margin-top:5px}
.experiences-section .experience-line{font-size:1rem;border-bottom:1px solid #9ba9c52e;gap:14px}
.experiences-section .experience-line:last-child{border-bottom:0}
.experiences-section .experience-line b{color:#e0c381;font-size:1rem;min-width:30px;text-align:center}
html[data-theme="paper"] .experiences-section .experience-list{background:#dddfea66;box-shadow:inset 0 2px 4px #25213c12}
html[data-theme="paper"] .experiences-section .experience-line b{color:#765b21}
.experiences-section .experience-list{height:92px;max-height:92px}
@media print{.experiences-section .experience-list{height:auto;max-height:none}}
/* Armor follows the same columns as the weapon rows above it. */
.weapon-summary .armor-summary{grid-template-columns:minmax(85px,1.25fr) .55fr .9fr auto;column-gap:8px;position:relative}
.weapon-summary .armor-summary>.icon{position:absolute;left:0;top:13px;width:26px;height:30px;color:#dfbd79;fill:#d6ad5826}
.weapon-summary .armor-summary .armor-name{grid-column:1/3;grid-row:1;padding-left:35px;min-width:0}
.weapon-summary .armor-summary .armor-name strong{font-family:Eveleth;font-size:.86rem;line-height:1.4}
.weapon-summary .armor-summary .armor-stat:nth-of-type(2){grid-column:3;grid-row:1}
.weapon-summary .armor-summary .armor-stat:nth-of-type(3){grid-column:4;grid-row:1;min-width:67px}
.weapon-summary .armor-summary .armor-stat small{font-size:.72rem;letter-spacing:.035em}
.weapon-summary .armor-summary .armor-stat b{font-size:1.14rem;line-height:1.3;color:#e6c786}
.weapon-summary .armor-summary details{grid-column:1/-1;padding-left:35px}
html[data-theme="paper"] .weapon-summary .armor-summary>.icon,html[data-theme="paper"] .weapon-summary .armor-summary .armor-stat b{color:#8a631e}
.weapon-summary .weapon-compact,.weapon-summary .armor-summary{grid-template-columns:minmax(85px,1.25fr) .55fr .9fr 86px}
.weapon-summary .weapon-rolls{justify-content:center}
.experiences-section .experience-line:not(.empty-experience)>span{font-weight:600}
/* Paper edition of the approved screen layout: warm stock, ink and restrained gold. */
@media screen{
html[data-theme="paper"] .character-sheet{--sheet-paper:#f3efe5;--ink:#343342;--text:#343342;--muted:#64616a;--line:#8c847c42;--panel:#faf7ef;--panel2:#e8e2d5;--accent:#376879;--red:#a74756;--blue:#725894;background:linear-gradient(180deg,#f6f2e9,#eee9df);border:1px solid #c4bba9;border-radius:12px;color:var(--text)}
html[data-theme="paper"] .sheet-identity{background:linear-gradient(90deg,#f3efe5fa,#f3efe5ce),url('/citadel.png') center 44%/cover;border-bottom:1px solid #a2895655;margin:-1px -1px 0;padding:22px;border-radius:8px}
html[data-theme="paper"] .sheet-calling h1{color:#35313c}html[data-theme="paper"] .sheet-calling .eyebrow{color:#806026}
html[data-theme="paper"] .sheet-calling>span,html[data-theme="paper"] .identity-fields small,html[data-theme="paper"] .trait>small{color:var(--muted)}
html[data-theme="paper"] .sheet-section{background:#faf7ef;border:1px solid #a299895c;outline:none;border-radius:8px;box-shadow:0 3px 10px #51432d0b}
html[data-theme="paper"] .ribbon-title{background:#ede7db;border-color:#b0a28b;color:#3f3947}
html[data-theme="paper"] .threshold-track{color:#faf7ef}html[data-theme="paper"] .threshold-track>div{background:#3d3b49}
html[data-theme="paper"] .threshold-track b{color:#343342}
html[data-theme="paper"] .resource-hope .pip>span{border-color:#947025}html[data-theme="paper"] .resource-hope .pip.on>span{background:#d0ac56;border-color:#96702a;box-shadow:inset 0 0 0 2px #f9edc9}
html[data-theme="paper"] .resource-armor .pip.on svg{fill:#637e8b;stroke:#496473}
html[data-theme="paper"] .pip>span{border-color:#938d98}html[data-theme="paper"] .pip.red.on>span{background:#b65d69;border-color:#a54958}html[data-theme="paper"] .pip.blue.on>span{background:#9d85b7;border-color:#806497}
html[data-theme="paper"] .pip:disabled{opacity:.25}
html[data-theme="paper"] .highest-trait .trait-outline svg{color:#a17b2c!important}html[data-theme="paper"] .highest-trait .trait-outline>span{color:#fff9e7!important}
html[data-theme="paper"] .proficiency{background:linear-gradient(90deg,transparent,#a17b2c13,transparent);border-color:#a58c5266}html[data-theme="paper"] .proficiency i{border-color:#766b59}html[data-theme="paper"] .proficiency i.marked{background:#b49550}
html[data-theme="paper"] .weapon-summary .armor-summary .armor-stat b{color:#866022}
html[data-theme="paper"] .experiences-section .experience-list{background:linear-gradient(180deg,#e6dfd2,#eee8dc);border-color:#b9ad945e;box-shadow:inset 0 2px 4px #66553918}
html[data-theme="paper"] .experience-line{border-bottom-color:#998c7645}html[data-theme="paper"] .experience-line b{color:#82601e}
html[data-theme="paper"] .tabs{border-bottom-color:#a2978155}html[data-theme="paper"] .tabs button{color:#67616a}html[data-theme="paper"] .tabs button.active{background:#496d7d12;color:#315d6d;border-bottom-color:#547786}
html[data-theme="paper"] .condition{background:#ebe5da;color:#5b535d;border-color:#b4a99b}html[data-theme="paper"] .condition.selected{background:#e9ccd0;color:#7c2f43;border-color:#a65668}
html[data-theme="paper"] .character-sheet button:hover{background:#ded8cc}html[data-theme="paper"] .character-sheet input,html[data-theme="paper"] .character-sheet select,html[data-theme="paper"] .character-sheet textarea{background:#fcfaf4;border-color:#b8af9e;color:#343342}
html[data-theme="paper"] .pack-item:nth-child(even){background:#87785e07}html[data-theme="paper"] .equipment-pack .pack-equip button{color:#49616a;border-color:#7b8d8f66}html[data-theme="paper"] .equipment-pack .pack-equip button[aria-pressed="true"]{color:#316348!important;background:#c7ddcb70!important}
html[data-theme="paper"] .equipment-pack .pack-item-symbol{color:#876122}html[data-theme="paper"] .gold-mark{border-color:#9b7a36!important}
}
@media screen and (max-width:760px){html[data-theme="paper"] .sheet-identity{padding:14px}}
#modal.character-editor{width:min(820px,calc(100vw - 28px));max-width:820px}
.editor-tabs{display:flex;gap:5px;overflow:auto;margin:0 0 22px;padding-bottom:8px;border-bottom:1px solid var(--line)}.editor-tabs button{flex:1;min-width:max-content;border:0;background:transparent;color:var(--muted);padding:11px 15px;border-radius:5px}.editor-tabs button[aria-selected="true"]{color:#e9cf91;background:#c9a96b17;box-shadow:inset 0 -2px #c8ac70}.editor-page[hidden]{display:none}.editor-page h3{font-size:1rem;margin:0 0 7px}.editor-help{color:var(--muted);font-size:.9rem;margin:0 0 22px}.editor-page{min-height:220px}.editor-page .notice{font-size:.85rem;line-height:1.6}.editor-page label{font-size:.88rem}.character-editor .modal-footer{border-top:1px solid var(--line);padding-top:16px;margin-top:22px}.character-editor .modal-footer button[hidden]{display:none}.advancement-banner{display:flex;align-items:center;gap:22px;background:linear-gradient(110deg,#4b3f292f,#8dcde50b);border:1px solid #c6ad6440;padding:20px;border-radius:8px;margin-bottom:20px}.advancement-level{display:flex;align-items:center;gap:16px;font:2.3rem Eveleth;color:#e6c886}.advancement-level>span{font:1.3rem Overpass;color:var(--muted)}.advancement-banner h3{margin:0 0 6px;font-size:1rem}.advancement-banner div>span{color:var(--muted);font-size:.85rem}.advancement-review{line-height:1.7}.advancement-review li{padding:5px 0}.advancement-review b{color:#e7ca85}.sheet-actions .icon-action{border-radius:7px}.sheet-actions .primary{box-shadow:inset 0 0 0 1px #8fc5de55}.sheet-actions .toolbar-divider{opacity:.5}
@media(max-width:600px){.editor-tabs button{padding:10px}.advancement-banner{padding:14px;gap:14px}.editor-page{min-height:180px}}
/* Framed sheet actions, with the approved icon-only toolbar. */
.sheet-actions .icon-action{width:44px;height:44px;border:1px solid #8a9bb069;background:linear-gradient(#394354,#252d3b);color:#edf1f8;box-shadow:inset 0 1px #ffffff18,0 2px 4px #0003}
.sheet-actions .icon-action .icon{width:22px;height:22px;stroke-width:2}
.sheet-actions .icon-action.primary{background:linear-gradient(#496e8d,#304b68);border-color:#91c5de;color:white}
.sheet-actions .icon-action:hover,.sheet-actions .icon-action:focus-visible{border-color:#efd08e;background:#465368;outline:2px solid #dfbf7033;outline-offset:2px}
.sheet-actions .icon-action.danger{color:#e9a2aa}
html[data-theme="paper"] .sheet-actions .icon-action{background:linear-gradient(#fffaf0,#e6dece);color:#393947;border-color:#9b907d;box-shadow:inset 0 1px #fff,0 2px 4px #392b2018}
html[data-theme="paper"] .sheet-actions .icon-action.primary{background:#d8e5e9;border-color:#527b90;color:#294c64}
/* A shared tabletop card language for the builder and the editor. */
#modal.character-editor{width:min(1160px,calc(100vw - 28px));max-width:1160px}
.editor-hero{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;margin-bottom:18px;background:linear-gradient(90deg,#141e2bed,#16233280),url('/citadel.png') center 45%/cover;border:1px solid #bfa67566;border-radius:9px;color:#f3e6c6}
.editor-hero small{color:#dabc75;text-transform:uppercase;letter-spacing:.12em}.editor-hero h3{font:1.5rem Eveleth;margin:8px 0 0}.builder-domain-marks{display:flex;gap:12px;justify-content:center}.builder-domain-marks img{width:40px;height:45px;object-fit:contain}
.selection-browser{grid-column:1/-1;margin:0 0 20px;min-width:0}.selection-browser>input{margin:0 0 12px;max-width:360px}
.native-choice{grid-column:1/-1;font-family:Eveleth;font-size:1rem!important;color:#dfc27f}
.native-choice>select{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.selection-deck{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(255px,30%);gap:16px;overflow-x:auto;align-items:start;padding:4px 4px 14px;scroll-snap-type:x proximity}
.selection-card{display:block!important;position:relative;overflow:hidden;min-width:0;padding:0!important;text-align:left;border:1px solid #9c8763!important;border-radius:9px!important;background:#f0e9d9!important;color:#34323d!important;box-shadow:0 4px 12px #0003;scroll-snap-align:start}
.selection-card:hover{border-color:#e2be6e!important;transform:translateY(-2px)}
.selection-card.selected{outline:2px solid #e3bd67;outline-offset:1px}.selection-crown{padding:13px 16px;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(100deg,#202b3dec,#263247a8),url('/citadel.png') center/cover;border-bottom:3px solid #bda365;color:#efd494}
.selection-crown>span{font: .7rem Eveleth;letter-spacing:.09em}.selection-crown>div{display:flex;gap:8px}.selection-crown img{width:27px;height:32px;object-fit:contain}.selection-crown .icon{width:32px;height:32px;stroke-width:1.8}
.selection-body{padding:17px}.selection-card h3{font:1rem Eveleth!important;margin:0 0 12px!important;color:#302c38!important}.selection-card p{font: .9rem/1.55 Overpass!important;color:#4b4550!important;margin:7px 0!important}.selection-description{max-height:116px;overflow-y:auto}.selection-feature{border-top:1px solid #91806455;padding-top:10px;margin-top:12px}.selection-feature h4{font: .85rem Eveleth;color:#725729;margin:0 0 6px}.selection-facts{display:flex;flex-wrap:wrap;gap:6px}.selection-facts b{font-size:.8rem;background:#d7cdbb;padding:5px 8px;border-radius:4px}
.selection-foot{display:flex;align-items:center;justify-content:center;gap:8px;padding:11px 14px;background:#d9ceb6;color:#554023;font-weight:700;border-top:1px solid #a48c5f55;font-size:.85rem}.selected>.selection-foot{background:#d5b568;color:#282222}.selection-foot .icon{width:18px;height:18px}
.selection-deck .selection-body{max-height:300px;overflow-y:auto}.hero-path-card{margin-top:20px}.hero-path-card .selection-description{display:none}.wizard .summary{align-self:start}.wizard .summary .builder-domain-marks{margin-top:18px}.wizard .choice.selection-card{height:100%}.wizard .grid:has(>[data-class]){grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.identity-path{max-width:500px;margin:12px auto 0;width:100%}.identity-path .selection-body{max-height:270px;overflow-y:auto}
.editor-trait{position:relative;min-height:175px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:22px!important;background:transparent!important;border:0!important;font-family:Eveleth;color:#e4ca87;isolation:isolate}
.editor-trait-shape{position:absolute;inset:0;z-index:-1;color:#bdcadd;pointer-events:none}.editor-trait-shape svg{width:100%;height:100%}.editor-trait input,.editor-trait select{width:85px;text-align:center;font:1.6rem Overpass;font-weight:700;background:#141c28!important;color:#f3e8cb!important;border:1px solid #bdcadd66}.editor-trait small{font: .72rem Overpass;color:var(--muted)}
.editor-page[data-editor-page="traits"] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-page[data-editor-page="traits"] details{grid-column:1/-1}.editor-page[data-editor-page="traits"] details>summary{display:none}
.advancement-choice-deck{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.advancement-option{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 0 0;overflow:hidden;border:1px solid #7a849966;background:linear-gradient(150deg,#30394b,#1a2230);border-radius:8px;color:#e3e8ef}.advancement-option>.icon{width:40px;height:40px;color:#dabc78;stroke-width:1.7;margin-bottom:14px}.advancement-option h3{font-size:.9rem}.advancement-option p{font-size:.87rem;line-height:1.4;min-height:42px;padding:0 14px;flex:1}.advancement-option .selection-foot{width:100%;background:#161e2b;color:#aeb9cc}.advancement-option[aria-pressed="true"]{border-color:#edcb7a;box-shadow:inset 0 0 0 1px #edcb7a}.advancement-option[aria-pressed="true"] .selection-foot{background:#d5b568;color:#29252b}
.advancement-stat{border:1px solid #b59e6545;border-radius:8px;padding:15px;background:#c9ad6c0b}.advancement-stat input{font-size:1.25rem}.advancement-limits{margin-top:16px}.advancement-domain-deck{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}.advancement-domain-deck .domain-card{padding:0;text-align:left;overflow:hidden}.advancement-domain-deck .domain-card>h3,.advancement-domain-deck .domain-card>p{margin:16px}.advancement-domain-deck .domain-card>p{font-size:.91rem;line-height:1.55}.advancement-domain-deck .selected{outline:2px solid #dabc78;outline-offset:2px}.domain-native{grid-column:1/-1}.character-editor .modal-footer{position:sticky;bottom:-24px;background:var(--panel);padding:14px 0;z-index:5}
@media(max-width:760px){.selection-deck{grid-auto-columns:85%}.advancement-choice-deck,.advancement-domain-deck{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-hero{padding:16px}.editor-hero h3{font-size:1.1rem}.editor-trait{min-height:150px;padding:15px!important}}
@media(max-width:480px){.advancement-choice-deck,.advancement-domain-deck{grid-template-columns:1fr}.editor-page[data-editor-page="traits"] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-hero .builder-domain-marks img{width:26px}}
#modal.character-editor{--panel:#202734;--sheet-paper:#202734;background:#202734;color:#e8eaf0;border-color:#667289}
.character-editor .editor-tabs{background:#18202b;border-radius:6px;padding:5px}.character-editor .modal-head{background:#1b2230}
.editor-hero .builder-domain-marks img,.selection-crown img,.summary .builder-domain-marks img{filter:brightness(0) invert(1)}
.selection-card .selection-description{max-height:none;overflow:visible}.selection-deck{grid-auto-columns:minmax(285px,31%);scrollbar-width:thin;scrollbar-color:#8d9caf #151c28}.selection-deck .selection-body{scrollbar-width:thin;scrollbar-color:#b0a388 #ece3d1}
.editor-trait{--sheet-paper:#202734;padding-top:40px!important}.editor-trait-shape{width:200px;max-width:100%;left:50%;transform:translateX(-50%)}.editor-trait-caption{position:absolute;top:7px;left:0;width:100%;text-align:center;color:#222a37;font-size:.78rem;line-height:20px}
.editor-trait-shape svg{overflow:visible}.editor-trait input,.editor-trait select{background:#202734!important;border-color:#899bb155}
.advancement-domain-deck .domain-card{color:#302d38}.advancement-domain-deck .domain-card h3,.advancement-domain-deck .domain-card p{color:#302d38}
.character-editor [hidden]{display:none!important}
@media(max-width:760px){.selection-deck{grid-auto-columns:85%}.editor-trait-shape{width:172px}.editor-trait-caption{top:5px;font-size:.65rem}}
.editor-page[data-editor-page="adjustments"] .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.editor-page[data-editor-page="adjustments"] .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wizard .calling-deck{grid-template-columns:none!important;grid-auto-columns:minmax(280px,32%);align-items:start}.wizard .calling-deck .selection-card{height:auto}.wizard .calling-deck .selection-body{height:310px;max-height:310px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b0a388 #ece3d1}.wizard>section{min-width:0}.wizard .summary{background:#202734;border-color:#667289}.wizard .editor-trait{--sheet-paper:#202734}.wizard-footer{position:sticky;bottom:0;padding:15px;background:#1a2330ed;border-top:1px solid #7d91a655;z-index:3}
/* Consistent card sizes and compact, sheet-like edit controls. */
.selection-deck>.selection-card,.wizard .calling-deck>.selection-card{display:flex!important;flex-direction:column;height:414px;min-height:414px;max-height:414px}
.selection-deck .selection-crown{height:68px;min-height:68px;flex:none}.selection-deck .selection-body,.wizard .calling-deck .selection-body{height:auto;min-height:0;max-height:none;flex:1;overflow-y:auto}.selection-deck .selection-foot{min-height:42px;flex:none}
.advancement-domain-deck>.domain-card{height:590px;display:flex;flex-direction:column}.advancement-domain-deck .card-crown{flex:none}.advancement-domain-deck>.domain-card>p{min-height:0;overflow:auto;flex:1}.advancement-domain-deck .selection-foot{flex:none;margin-top:auto}
.editor-page[data-editor-page="identity"]>.form-grid{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:28px}.identity-fields-editor{display:grid;gap:22px;padding-top:4px}.character-editor .identity-path{grid-column:auto;width:100%;max-width:none;margin:0}.character-editor .identity-path .selection-body{height:270px;max-height:270px;overflow:auto}
.trait-edit-toggle{display:flex;align-items:center;gap:8px;margin:0 0 20px auto;border:1px solid #92aec080;background:#34485c;color:#ebeff6;min-height:40px}.trait-edit-toggle[aria-pressed="true"]{color:#efd08c;border-color:#d5b568}.character-editor .editor-trait input[readonly]{border-color:transparent!important;background:transparent!important;box-shadow:none;cursor:default;appearance:textfield;pointer-events:none}.character-editor .editor-trait input[readonly]::-webkit-inner-spin-button{appearance:none}.character-editor .editing-traits .editor-trait input{border-color:#d5b568!important}
.character-editor .experience-editor-list{display:flex;flex-direction:column;gap:14px}.experience-editor-row{display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:16px;padding:14px 17px;align-items:center;border:1px solid #53607677;border-radius:7px;background:linear-gradient(#17202d,#1b2533);box-shadow:inset 0 2px 5px #0004}.experience-editor-row label{min-width:0;font-size:.7rem!important;color:#aeb8c8;letter-spacing:.04em}.experience-editor-row input{background:transparent;border:0;border-bottom:1px solid #65748c66;border-radius:0;box-shadow:none;padding:9px 0 6px;font-size:1.05rem;font-weight:600;color:#edf0f6}.experience-editor-row input:focus{outline:0;border-bottom-color:#e2c482}.experience-bonus-editor{text-align:center}.experience-bonus-editor input{text-align:center;color:#e7c378;font-size:1.25rem;font-weight:700}.experience-name-editor input{width:100%}
.character-editor .adjustment-tile{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;column-gap:12px;row-gap:12px;padding:17px;background:#18222e;border:1px solid #6b7c9255;border-radius:8px;font-size:.83rem}.adjustment-symbol{grid-column:1;grid-row:1/3;color:#dcc082;align-self:center}.adjustment-symbol>.icon{width:32px;height:36px;stroke-width:1.8}.adjustment-tile input{grid-column:2;font-size:1.35rem;font-weight:600;color:#ead19b;background:#222e3d;border-color:#7587a04d}
@media(max-width:650px){.editor-page[data-editor-page="identity"]>.form-grid{grid-template-columns:1fr}.character-editor .identity-path{max-width:340px;justify-self:start}.experience-editor-row{grid-template-columns:minmax(0,1fr) 64px;padding:12px;gap:10px}.experience-editor-row input{font-size:.93rem}.character-editor .adjustment-tile{grid-template-columns:28px minmax(0,1fr);padding:12px;gap:8px}.adjustment-symbol>.icon{width:25px}}
.editor-page[data-editor-page="identity"]>.form-grid{grid-template-columns:1fr}.identity-fields-editor{grid-template-columns:2fr 1fr;gap:22px;padding:20px;background:#18222e;border:1px solid #6b7c9255;border-radius:8px}.identity-fields-editor input{font-size:1.05rem;font-weight:600}.editor-page[data-editor-page="identity"]{min-height:0}
@media(max-width:650px){.identity-fields-editor{grid-template-columns:1fr;padding:14px}}
.wizard [data-wizard-card]{height:590px;display:flex;flex-direction:column;overflow:hidden}.wizard [data-wizard-card]>.card-crown{flex:none}.wizard [data-wizard-card]>p{flex:1;min-height:0;overflow:auto;scrollbar-width:thin}
.trait-method{padding:16px 18px;margin-bottom:22px;background:#17222f;border:1px solid #71849c66;border-radius:8px}.trait-method label{display:block;max-width:480px;color:#d9c18b}.trait-method select{margin-top:8px}.trait-array-status{font-size:.86rem;color:#c3ccda;margin:12px 0 0}.editor-trait select{position:relative;z-index:1}
.level-card-editor{display:block!important}.card-level-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:24px}.card-level-tabs button{padding:10px;background:#18222e;border:1px solid #65758b66;border-radius:6px;font-weight:600}.card-level-tabs small{display:block;margin-top:4px;font-weight:400;color:#a8b3c5}.card-level-tabs button[aria-pressed="true"]{background:#3a352a;border-color:#d9bb73;color:#f3d68d}.card-level-tabs button:disabled{opacity:.35}.level-card-editor .domain-card:disabled{opacity:.55}.level-card-editor .domain-card.selected{outline:2px solid #d9bb73}
@media(max-width:600px){.card-level-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.trait-value-pool{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.trait-value-pool button{min-width:90px;padding:9px 14px;font-size:1.3rem;font-weight:700;color:#e9ca82;background:#243244;border:1px solid #7b8ca266;border-radius:7px}.trait-value-pool small{display:block;font-size:.7rem;font-weight:400;color:#b9c2d0}.trait-value-pool button:disabled{opacity:.32}.trait-value-pool button[aria-pressed="true"]{border-color:#f1cc77;background:#4a402a}
.editor-trait .trait-swap-value{position:relative;z-index:1;width:92px;height:66px;padding:0;display:grid;place-items:center;border:1px solid #9aaac077;border-radius:9px;background:#202b3a;color:#f0e3bd;font:700 2rem Overpass;cursor:pointer}.editor-trait .trait-swap-value:hover{background:#344354;border-color:#ebc97f}.editor-trait .trait-swap-value[aria-pressed="true"]{border:2px solid #ebc97f;background:#493d28;box-shadow:0 0 0 4px #ebc97f20}
.trait-array-reset{display:flex;align-items:center;gap:8px;margin-top:14px;padding:8px 12px;font-size:.85rem;background:transparent;border:1px solid #8294ad77;color:#c5cfdd}.trait-array-reset[hidden]{display:none}.trait-array-reset:disabled{opacity:.4}
.trait-value-pool{gap:14px;margin-top:18px}.trait-value-pool button{min-width:120px;min-height:88px;padding:14px 22px;font-size:1.8rem;border-radius:9px;box-shadow:inset 0 1px #ffffff0d}.trait-value-pool small{font-size:.8rem;margin-top:5px}.trait-value-pool button:disabled{opacity:.5}
@media(max-width:600px){.trait-value-pool{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trait-value-pool button{min-width:0;width:100%;min-height:82px;padding:12px}}
.sheet-identity .identity-fields small{font-size:.8rem}.sheet-identity .identity-domain{width:49px;height:55px}.sheet-identity .identity-domain img{width:33px;height:33px}.sheet-identity>.sheet-crest{width:90px;height:97px}.sheet-identity>.sheet-crest b{font-size:1.85rem}.sheet-identity>.sheet-crest>span{font-size:.76rem}
@media(max-width:760px){.sheet-identity>.sheet-crest{width:75px;height:82px}.sheet-identity>.sheet-crest b{font-size:1.75rem}.sheet-identity>.sheet-crest>span{font-size:.7rem}}
.mixed-ancestry-picker{padding:18px;margin:0 0 24px;border:1px solid #c8a96977;border-radius:8px;background:#b8984510}.mixed-ancestry-picker[hidden]{display:none}.mixed-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.mixed-feature-grid label{min-width:0}.mixed-feature-grid select{margin:8px 0 14px}.mixed-feature-preview .selection-body{height:230px;overflow:auto;scrollbar-width:thin}.mixed-feature-preview .selection-crown{min-height:60px}.mixed-feature-preview[hidden]{display:none}
@media(max-width:650px){.mixed-feature-grid{grid-template-columns:1fr}}

/* Center the level value inside the shield above its ribbon. */
.sheet-identity>.sheet-crest b{top:46%;transform:translateY(-50%);line-height:1}

.mixed-feature-column{min-width:0}.mixed-feature-column>h4{color:#dfbf7e;margin:0 0 12px}.mixed-feature-column .selection-deck{grid-auto-columns:minmax(240px,85%)}.mixed-feature-column .selection-card{height:300px}.mixed-feature-column .selection-browser{min-width:0}.mixed-feature-column .selection-crown{min-height:54px}.mixed-feature-column .selection-card:disabled{opacity:.35}

.mixed-feature-column .selection-deck>.selection-card{height:330px;min-height:330px;max-height:330px}.mixed-feature-column>.native-choice{display:none!important}.mixed-feature-column .selection-deck .selection-crown{height:54px;min-height:54px}

.community-browser .selection-description{height:112px;min-height:112px;overflow:auto!important;margin-bottom:12px!important}.community-browser .selection-body>h3{height:38px;min-height:38px}.community-browser .selection-feature:first-of-type{margin-top:0}

.new-experience-choice{display:grid!important;grid-template-columns:1fr auto;gap:10px;margin-top:20px;padding:16px;border:1px solid #c8ac7055;border-radius:7px;background:#151c2880;font-weight:600}.new-experience-choice>strong{color:#e7ca85}.new-experience-choice>input{grid-column:1/-1;font-weight:600}

/* Structured advancement: visual choices with bounded card browsing. */
.advancement-budget{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:var(--bg);border:1px solid #b89b56;border-radius:7px;color:#e5c975}.advancement-option small{display:block;margin:8px 0}.advancement-option[aria-pressed=true],.target-picks button[aria-pressed=true],.card-pick-slots button[aria-pressed=true]{border-color:#dfbd65;background:#51493355}.advancement-option:disabled{opacity:.42}.advancement-subclass{max-width:520px!important;justify-self:center}.target-picks,.setup-stances{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.target-picks button,.setup-stance{display:flex;flex-direction:column;gap:8px;padding:14px;text-align:left}.setup-stance{border:1px solid #65738a;border-radius:7px}.setup-stance input{width:auto;align-self:start}.target-picks span,.setup-stance span{font-size:13px}.class-setup{border-top:1px solid #566071;padding-top:18px;margin-top:18px}.training-row{display:grid;grid-template-columns:1fr 2fr;gap:15px;margin:12px 0}.training-row p{margin:0 0 6px}.multiclass-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.multiclass-picker article{grid-column:1/-1;justify-self:center;max-width:500px}.card-pick-slots{display:flex;gap:10px;flex-wrap:wrap;position:sticky;top:0;z-index:2;background:#202835;padding:8px}.card-pick-slots button{flex:1;min-width:170px;text-align:left;display:grid;gap:7px}.card-pick-slots small{color:#d4b96d}.card-browse-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.replacement-choice select{max-width:320px;margin:10px}.advancement-domain-deck{max-height:500px;overflow:auto;align-items:stretch;padding:4px 8px 8px 2px;grid-template-columns:repeat(3,minmax(0,1fr))!important}.advancement-domain-deck .domain-card{height:390px!important;display:flex;flex-direction:column;min-width:0}.advancement-domain-deck .pick-card-rules{overflow:auto;flex:1}.advancement-domain-deck .selection-foot{margin-top:auto}.advancement-domain-deck [aria-pressed=true]{outline:2px solid #d9b760}.growth-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.growth-stat{padding:18px;border:1px solid #566071;background:#121b25;border-radius:8px;display:grid;gap:8px;text-transform:capitalize}.growth-stat span{font-size:23px}.growth-stat strong{color:#e6c572}.review-card-list{display:flex;overflow:auto;gap:16px}.review-card-list article{flex:0 0 290px;height:340px}.class-tools{margin:18px 0;border:1px solid #536075;border-radius:7px;padding:12px 16px}.class-tools>summary{font-weight:700;color:#d8bf76}.class-tools .class-tool-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin-top:15px}.class-tools label{display:grid;gap:8px}.paper .card-pick-slots,.paper .growth-stat{background:#e9e1cd;color:#342e27}@media(max-width:700px){.advancement-domain-deck{grid-template-columns:1fr!important}.target-picks,.setup-stances,.growth-grid{grid-template-columns:repeat(2,1fr)}.card-browse-filters,.training-row,.multiclass-picker{grid-template-columns:1fr}}

.choice-tier-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.choice-tier-tabs [aria-pressed=true]{border-color:#d7b864;color:#ebca76}.choice-tier-tabs span{font-size:13px;color:#d7bf82}.advancement-option{padding-top:12px}.advancement-option>.icon{width:30px;height:30px;margin-bottom:4px}.advancement-option p{min-height:25px;margin:8px 0}.advancement-choice-deck{gap:10px}

.advancement-domain-deck .domain-card>p{overflow:auto;flex:1;margin-bottom:10px}.class-tool-grid input[type=checkbox]{width:auto;justify-self:start}.class-tool-grid label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}

html[data-theme="paper"] .card-pick-slots,html[data-theme="paper"] .growth-stat{background:#e9e1cd;color:#342e27}html[data-theme="paper"] .growth-stat strong,html[data-theme="paper"] .card-pick-slots small,html[data-theme="paper"] .class-tools>summary{color:#805d19}

/* Long advanced builds must not determine the height of the neighboring panels. */
@media(min-width:1101px){.sheet-tracks>.play-features{contain:size;min-height:0}.play-features>.feature-layout{min-height:0;overflow-y:auto;scrollbar-width:thin;padding-right:7px;overscroll-behavior:auto}.play-features .feature-group{flex-shrink:0}}
@media print{.sheet-tracks>.play-features{contain:none}.play-features>.feature-layout{overflow:visible;max-height:none}}

/* Advancement uses one scroll surface, with a compact shared four-step header. */
#modal.advancement-editor .modal-head{padding:12px 22px}
#modal.advancement-editor .modal-head h2{font-size:1.25rem;margin:0}
#modal.advancement-editor .modal-body{padding:12px 22px 18px;overflow:visible}
.advancement-editor .editor-hero{padding:9px 16px;margin-bottom:10px;border-radius:6px;min-height:0}
.advancement-editor .editor-hero>div:first-child{display:flex;align-items:baseline;gap:18px;flex-wrap:wrap}
.advancement-editor .editor-hero small{font-size:.68rem;letter-spacing:.08em}
.advancement-editor .editor-hero h3{font-size:1.05rem;margin:0}
.advancement-editor .editor-hero .builder-domain-marks{gap:8px}
.advancement-editor .editor-hero .builder-domain-marks img{width:26px;height:29px}
.advancement-editor .editor-tabs{margin-bottom:12px;padding:3px}
.advancement-editor .editor-tabs button{padding:8px 12px;min-height:38px;font-size:.86rem}
.advancement-editor .editor-page>h3{font-size:.86rem;margin-bottom:3px}
.advancement-editor .editor-help{font-size:.8rem;margin-bottom:10px}
.advancement-editor .editor-page>.form-grid{gap:10px}
.advancement-editor .card-pick-slots{position:static;padding:0;background:transparent;gap:8px}
.advancement-editor .card-pick-slots button{display:flex;align-items:center;justify-content:space-between;flex:0 1 auto;gap:18px;min-width:235px;padding:8px 12px;min-height:40px}
.advancement-editor .card-pick-slots small{font-size:.72rem}
.advancement-editor .card-pick-slots strong{font-size:.85rem}
.advancement-editor .replacement-choice{font-size:.82rem}
.advancement-editor .card-browse-filters{gap:8px}
.advancement-editor .card-browse-filters input,.advancement-editor .card-browse-filters select{padding:8px 11px;min-height:38px;font-size:.85rem}
.advancement-editor .card-result-count{margin:0;font-size:.75rem}
.advancement-editor .advancement-domain-deck{max-height:none;overflow:visible;grid-auto-rows:1fr;padding:3px;gap:16px;align-items:stretch}
.advancement-editor .advancement-domain-deck .domain-card{height:auto!important;min-height:410px;overflow:hidden}
.advancement-editor .advancement-domain-deck .pick-card-rules,.advancement-editor .advancement-domain-deck .domain-card>p{overflow:visible;max-height:none;flex:1;padding:0 16px 12px;margin:0;font-size:.9rem;line-height:1.55}
.advancement-editor .pick-card-rules p{color:inherit;margin:0 0 12px;line-height:1.55}
.advancement-editor .advancement-domain-deck .card-crown{flex:none}
.advancement-editor .advancement-domain-deck .domain-card>h3{margin:20px 16px 14px;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center}
.advancement-editor .review-card-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;align-items:stretch}
.advancement-editor .review-card-list article,.advancement-editor .advancement-subclass{height:auto!important;max-height:none}
.advancement-editor .review-card-list .selection-body,.advancement-editor .advancement-subclass .selection-body{overflow:visible;height:auto;max-height:none}
.advancement-editor .modal-footer{padding:10px 0;margin-top:12px;bottom:-18px}
@media(max-width:700px){.advancement-editor .editor-hero>div:first-child{gap:4px;flex-direction:column}.advancement-editor .card-pick-slots button{flex:1;min-width:0}.advancement-editor .review-card-list{grid-template-columns:1fr}.advancement-editor .advancement-domain-deck{grid-auto-rows:auto}#modal.advancement-editor .modal-body{padding:12px}.advancement-editor .editor-tabs button{padding:8px 5px;font-size:.78rem}}

.advancement-editor .advancement-domain-deck .domain-card{align-self:stretch;justify-self:stretch;height:100%!important}

.advancement-journey{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px}.advancement-journey label{display:flex;align-items:center;gap:8px;white-space:nowrap}.advancement-journey select{width:auto;padding:6px 10px}.journey-levels{display:flex;gap:5px;flex-wrap:wrap}.journey-levels button{min-width:36px;padding:6px 9px}.journey-levels button[aria-current="step"]{border-color:var(--gold);color:var(--gold)}

/* Repeat picks in place; subtraction remains reachable when the budget is full. */
.advancement-tile{position:relative;display:flex;min-width:0}.advancement-tile .advancement-option{width:100%;height:100%}.advancement-tile[data-selected=true] .advancement-option{border-color:#edcb7a;box-shadow:inset 0 0 0 1px #edcb7a;background:#51493355;opacity:1}.advancement-tile[data-selected=true] .selection-foot{background:#d5b568;color:#29252b;padding-left:48px;padding-right:48px}.advancement-remove{position:absolute;right:7px;bottom:6px;width:30px;height:30px;min-height:30px;padding:5px;border:1px solid #514426;background:#29252b;color:#f5d984;border-radius:5px}.advancement-remove[hidden]{display:none}.advancement-remove .icon{width:18px;height:18px}.advancement-option:focus-visible,.advancement-remove:focus-visible{outline:2px solid #9ed9ed;outline-offset:3px}

.advancement-tile{align-items:stretch}.advancement-tile .advancement-option{align-self:stretch;justify-self:stretch;max-width:none;cursor:pointer}.advancement-option>*{pointer-events:none}.advancement-option:disabled{cursor:default}.advancement-total{font-size:.95rem;color:#eed18a;margin:3px 0;min-height:22px}.advancement-tile .advancement-option .selection-foot{margin-top:auto}

/* Compact advancement controls; approved domain-card faces are unchanged. */
.advancement-editor .advancement-option{display:grid;grid-template-columns:28px 1fr;align-content:start;gap:3px 10px;text-align:left;padding:12px 12px 0;min-height:132px}
.advancement-editor .advancement-option>.icon{grid-column:1;grid-row:1/4;width:26px;height:26px;margin:2px 0}
.advancement-editor .advancement-option h3{grid-column:2;grid-row:1;margin:0;font-size:.84rem}
.advancement-editor .advancement-option small{grid-column:2;grid-row:2;margin:0;font-size:.7rem}
.advancement-editor .advancement-option .advancement-total{grid-column:2;grid-row:3;margin:0;min-height:0;font-size:.83rem}
.advancement-editor .advancement-option p{grid-column:2;margin:0;padding:0;min-height:0;font-size:.72rem}
.advancement-editor .advancement-option .selection-foot{grid-column:1/-1;margin:7px -12px 0;width:calc(100% + 24px);padding:8px 42px 8px 12px;font-size:.73rem;align-self:end}
.advancement-inline-details{margin-top:14px}.advancement-fields{border:1px solid var(--line);border-radius:7px;margin:0;padding:10px 12px;min-width:0}.advancement-fields legend{padding:0 6px;font-weight:600;color:#dfc27a;font-size:.85rem}.advancement-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.advancement-field-grid label{min-width:0;font-size:.75rem}.advancement-field-grid select{width:100%;min-width:0;font-size:.85rem;padding:9px}.advancement-inline-details .new-experience-choice{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:.85rem}.new-experience-choice input{grid-column:1/-1}.advancement-editor .editor-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.advancement-editor .advancement-budget{padding:9px 12px}
@media(max-width:600px){#modal.advancement-editor{width:calc(100% - 12px);max-width:none}#modal.advancement-editor .modal-body{padding:10px 12px 14px}#modal.advancement-editor .modal-head{padding:12px}.advancement-editor .advancement-choice-deck{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.advancement-editor .advancement-option{grid-template-columns:22px 1fr;gap:3px 6px;padding:10px 8px 0;min-height:140px}.advancement-editor .advancement-option h3{font-size:.75rem;overflow-wrap:anywhere}.advancement-editor .advancement-option>.icon{width:22px;height:22px}.advancement-editor .advancement-option .selection-foot{margin-left:-8px;margin-right:-8px;width:calc(100% + 16px);font-size:.68rem;padding-left:8px}.advancement-field-grid{grid-template-columns:1fr}.advancement-editor .editor-hero>div:first-child{flex-wrap:wrap;gap:4px 10px}.advancement-editor .editor-tabs button{min-width:0;padding:8px 4px}.advancement-inline-details .multiclass-picker{grid-template-columns:1fr}}
.advancement-editor .advancement-option{grid-template-rows:auto auto auto auto 1fr}.advancement-editor .advancement-option .selection-foot{grid-row:5;align-self:end;margin-top:6px}

.journey-review-level{border:1px solid var(--line);border-radius:7px;padding:12px;margin:10px 0}.journey-review-level header{display:flex;align-items:center;justify-content:space-between}.journey-review-level p{margin:8px 0;font-size:.86rem}

/* One poker-card proportion in every advancement deck, independent of text length. */
.advancement-editor .advancement-domain-deck{grid-template-columns:repeat(auto-fill,minmax(0,350px))!important;grid-auto-rows:auto;justify-content:start}
.advancement-editor .advancement-domain-deck .domain-card{box-sizing:border-box;width:350px;max-width:100%;height:490px!important;min-height:0;display:flex;flex-direction:column;overflow:hidden;align-self:start}
.advancement-editor .advancement-domain-deck .card-crown{height:178px;min-height:178px;flex:0 0 178px}
.advancement-editor .advancement-domain-deck .domain-card>h3{flex:0 0 40px}
.advancement-editor .advancement-domain-deck .pick-card-rules{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.advancement-editor .advancement-domain-deck .selection-foot{flex:0 0 auto}
@media(max-width:420px){.advancement-editor .advancement-domain-deck{grid-template-columns:minmax(0,1fr)!important}.advancement-editor .advancement-domain-deck .domain-card{width:100%;height:490px!important}}

/* Review uses the sheet's framed, metallic visual language. Domain faces stay untouched. */
.advancement-editor .review-stat{display:flex;align-items:center;gap:14px;padding:14px 18px;border:1px solid #bca46b70;border-top:3px solid #c6ac69;background:linear-gradient(135deg,#2c3442,#151e29);box-shadow:inset 0 0 0 3px #131c2655;border-radius:5px}
.review-stat-symbol{display:grid;place-items:center;width:48px;height:58px;flex:none;color:#dfc278;background:#c5ad6910;clip-path:polygon(10% 0,90% 0,100% 16%,90% 80%,50% 100%,10% 80%,0 16%)}.review-stat-symbol .icon{width:30px;height:30px;stroke-width:1.8}.review-stat[data-stat=max_hp] .review-stat-symbol{color:#ea929b}.review-stat[data-stat=max_stress] .review-stat-symbol{color:#baa2da}
.review-stat>div:last-child{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center}.review-stat small{grid-column:1/-1;font-size:.7rem;letter-spacing:.07em}.review-stat .review-stat-value{font-size:2rem;line-height:1.1;color:#f1dfaa}.review-stat .review-stat-gain{font-size:.9rem;color:#e7ca7e}.review-stat-gain>span{display:block!important;font-size:.65rem!important;color:#aeb7c7}
.journey-review-level{padding:0 16px 16px;overflow:hidden;border:1px solid #ab936052;background:linear-gradient(135deg,#252e3b,#1b2430)}
.journey-review-level .review-level-banner{margin:0 -16px 14px;padding:12px 16px;display:flex;gap:14px;justify-content:flex-start;border-bottom:1px solid #b69a5950;background:linear-gradient(90deg,#172330ed,#172330bb),url('/citadel.png') center 45%/cover}.review-level-banner h3{margin:4px 0 0;font-size:1rem}.review-level-banner small{font-size:.64rem;letter-spacing:.12em;color:#ddc37c}.review-level-seal{width:52px;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#c3a35c1a;border:1px solid #bd9e59;clip-path:polygon(0 0,100% 0,100% 80%,50% 100%,0 80%)}.review-level-seal strong{font-size:1.7rem;color:#f0da9b;line-height:1.1}.review-level-banner button{margin-left:auto;display:flex;align-items:center;gap:7px}.review-level-banner button .icon{width:16px;height:16px}
.review-rewards{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.review-reward{display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid #bc9d5b60;border-radius:5px;background:#bc9d5b0d;font-size:.86rem}.review-reward .icon{width:22px;height:22px;color:#dfc27c}
.review-experience,.review-exchange{display:flex;align-items:center;gap:12px;background:#131c2866;border:1px solid #75819745;border-left:3px solid #c3a564;border-radius:5px;padding:11px 14px;margin:0 0 14px}.review-experience>.icon,.review-exchange>.icon{width:25px;height:25px;color:#d4b776;flex:none}.review-experience>div,.review-exchange>div{display:grid;gap:4px}.review-experience small,.review-exchange small{font-size:.62rem;letter-spacing:.12em;color:#bfc6d1}.review-experience>b{margin-left:auto;font-size:1.3rem;color:#eccd7a}.review-exchange span{font-size:.84rem}.review-exchange b{font-weight:400;color:#aaa;margin:0 6px}
@media(max-width:600px){.advancement-editor .growth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.advancement-editor .review-stat{padding:10px;gap:6px}.review-stat-symbol{width:28px}.review-stat-symbol .icon{width:24px}.review-stat>div:last-child{gap:3px 6px}.review-level-banner button span{display:none}.journey-review-level{padding-left:8px;padding-right:8px}.journey-review-level .review-level-banner{margin-left:-8px;margin-right:-8px}.review-reward{padding:8px;font-size:.77rem}}

/* Compact review: prioritize one scan line over tall dashboard tiles. */
.advancement-editor [data-editor-page=review] .growth-grid{display:flex;flex-wrap:wrap;gap:8px}
.advancement-editor .review-stat{flex:1 1 145px;min-width:0;max-width:210px;padding:8px 10px;gap:8px;border-top-width:2px}
.review-stat-symbol{width:28px;height:36px}.review-stat-symbol .icon{width:23px;height:23px}
.review-stat>div:last-child{gap:1px 8px}.review-stat small{font-size:.65rem}.review-stat .review-stat-value{font-size:1.4rem}.review-stat .review-stat-gain{font-size:.73rem}.review-stat-gain>span{font-size:.6rem!important}
.review-level-summary{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin-bottom:12px}.review-level-summary .review-rewards{margin:0;align-items:stretch}.review-level-summary .review-reward{padding:7px 10px;font-size:.8rem}.review-level-summary .review-experience{flex:1 1 230px;min-width:0;margin:0;padding:7px 12px;gap:9px}.review-level-summary .review-experience>div{gap:2px;min-width:0}.review-level-summary .review-experience strong{font-size:.84rem;overflow-wrap:anywhere}.review-level-summary .review-experience>b{font-size:1.05rem}.review-level-summary .review-experience small{font-size:.57rem}
.review-level-seal{position:relative;isolation:isolate;border:0;background:#c4a665;clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);width:44px;height:52px;flex:none}.review-level-seal:before{content:"";position:absolute;inset:1px;background:#202b35;clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);z-index:-1}.review-level-seal strong{font-size:1.4rem}.review-level-seal small{font-size:.56rem}.journey-review-level .review-level-banner{padding-top:8px;padding-bottom:8px;gap:11px}
@media(max-width:600px){.advancement-editor .review-stat{flex-basis:125px;max-width:none}.review-level-summary{gap:8px}.review-level-summary .review-experience{flex-basis:190px}}

.advancement-editor .review-stat{flex:0 0 auto;width:auto;max-width:none;min-width:0;padding:7px 10px;gap:7px}.review-stat>div:last-child{grid-template-columns:auto auto;gap:2px 5px}.review-stat .review-stat-gain{font-size:.78rem;white-space:nowrap}.review-stat small{white-space:nowrap}

.review-stat>div:last-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.review-stat-numbers{display:flex;align-items:baseline;gap:6px}

/* Review badges share one width sized for the longest stat label, Proficiency. */
.advancement-editor .review-stat{box-sizing:border-box;flex:0 0 140px;width:140px;min-width:140px;max-width:140px}


.exchange-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #b89b5666;border-radius:6px;background:#c1a15e0a}.exchange-controls>span{font-weight:600;flex:1}.exchange-controls small{flex-basis:100%;color:var(--muted)}.owned-card-tools{display:grid;grid-template-columns:2fr 1fr;gap:10px}.owned-card-tools[hidden],.card-browse-filters[hidden]{display:none}.card-pick-slots small .icon{width:16px;height:16px;vertical-align:middle}@media(max-width:600px){.owned-card-tools{grid-template-columns:1fr}}


.review-stat-numbers{align-items:center}.review-stat .review-stat-gain{position:relative;top:-1px;line-height:1}
.advancement-editor .exchange-controls{border:0;border-radius:0;background:none;padding:2px 0;gap:6px;margin:0;min-height:30px}.exchange-controls>span{font-size:.82rem;color:var(--muted);font-weight:400}.exchange-controls button{border:0;background:transparent;padding:5px 9px;min-height:30px;font-size:.78rem;color:#d9bd76}.exchange-controls button:hover{background:#d9bd7614}.exchange-controls button:focus-visible{outline:2px solid #9ed9ed;outline-offset:1px}

.advancement-attention{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1px solid #bfa26266;border-left:3px solid #dfbf75;border-radius:6px;background:linear-gradient(110deg,#b69a5913,#17222f);color:#e4e7ef;margin:8px 0}
.attention-symbol{display:grid;place-items:center;flex:0 0 32px;color:#e2c27c}.attention-symbol svg{width:26px;height:26px}.attention-copy{flex:1;min-width:0}.attention-copy>strong{font-size:.85rem;color:#edcf8b}.attention-copy>strong span{font-weight:400;color:#bec6d3}.advancement-attention .attention-copy p{font-size:.8rem;line-height:1.4;margin:4px 0 0;color:#cbd3df}.advancement-attention button{display:flex;align-items:center;justify-content:center;gap:7px;flex:none;font-size:.78rem;padding:8px 11px;border-color:#bfa26266;background:#d3b66814;color:#ecd18b}.advancement-attention button .icon{width:16px;height:16px}
@media(max-width:600px){.advancement-attention{flex-wrap:wrap;gap:8px;padding:10px}.advancement-attention button{margin-left:40px}.attention-copy{flex-basis:calc(100% - 40px)}}

.attention-list{display:flex;flex-wrap:wrap;gap:4px 20px;margin:5px 0 0;padding:0;list-style:none}.attention-list li{display:flex;align-items:baseline;gap:7px}.attention-list li:before{content:"·";color:#e4c680;font-weight:bold}.advancement-attention .attention-list button{display:inline;padding:3px 0;margin:0;min-height:24px;border:0;background:none;color:#d2d9e3;font-size:.8rem;text-align:left}.attention-list button:hover{text-decoration:underline;color:#ecd18b}

.advancement-attention .attention-copy{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}.advancement-attention .attention-copy>strong{white-space:nowrap}.attention-list{margin:0;gap:4px 12px}.attention-list li{gap:12px}.attention-list li:before{content:none}.attention-list li+li:before{content:"◆";font-size:7px;color:#bda66e;font-weight:400;align-self:center}.advancement-attention .attention-list button{padding:4px 5px;border-radius:3px}.attention-list button:hover{background:#d5b86c12;text-decoration:none}

/* Outstanding choices look actionable before hover, including on touch screens. */
.advancement-attention .attention-list button{text-decoration-line:underline;text-decoration-style:dotted;text-decoration-color:#bda66e88;text-underline-offset:4px;text-decoration-thickness:1px;cursor:pointer}
.advancement-attention .attention-list button:hover,.advancement-attention .attention-list button:focus-visible{color:#ecd18b;text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:#ecd18b;background:#d5b86c12}
.advancement-attention .attention-list button:focus-visible{outline:2px solid #d8bd78;outline-offset:2px}


/* Editing shares the approved domain-card geometry. */
.character-edit-mode .advancement-domain-deck{grid-template-columns:repeat(auto-fill,minmax(0,350px))!important;grid-auto-rows:auto;justify-content:start}
.character-edit-mode .advancement-domain-deck .domain-card{box-sizing:border-box;width:350px;max-width:100%;height:490px!important;min-height:0;display:flex;flex-direction:column;overflow:hidden;align-self:start}
.character-edit-mode .advancement-domain-deck .card-crown{height:178px;min-height:178px;flex:0 0 178px}
.character-edit-mode .advancement-domain-deck .domain-card>h3{flex:0 0 40px}
.character-edit-mode .advancement-domain-deck .pick-card-rules{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;overscroll-behavior:contain}
.character-edit-mode .advancement-domain-deck .selection-foot{flex:0 0 auto}
.character-edit-mode .advancement-domain-deck{max-height:none;overflow:visible;padding:3px;gap:16px;align-items:start}.character-edit-mode .advancement-domain-deck .domain-card>h3{margin:20px 16px 14px;min-height:40px;display:flex;align-items:center;justify-content:center;text-align:center}.character-edit-mode .pick-card-rules{padding:0 16px 12px;font-size:.9rem;line-height:1.55}.character-edit-mode .pick-card-rules p{margin:0 0 12px;color:inherit}
#modal.character-edit-mode .modal-head{padding:12px 20px}#modal.character-edit-mode .modal-head h2{font-size:1.25rem;margin:0}#modal.character-edit-mode .modal-body{padding:12px 20px 18px}.character-edit-mode .editor-hero{min-height:0;padding:9px 14px;margin-bottom:10px}.character-edit-mode .editor-hero>div:first-child{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.character-edit-mode .editor-hero h3{font-size:1.05rem;margin:0}.character-edit-mode .editor-hero small{font-size:.68rem}.character-edit-mode .builder-domain-marks img{width:26px;height:29px}.character-edit-mode .editor-tabs{gap:3px;padding:3px;margin-bottom:12px;display:flex;flex-wrap:wrap}.character-edit-mode .editor-tabs button{flex:1 1 auto;min-height:36px;padding:7px 10px;font-size:.8rem}.character-edit-mode .editor-help{font-size:.8rem;margin:4px 0 12px}.character-edit-mode .editor-page>h3{font-size:.9rem;margin:0 0 4px}.character-edit-mode .form-grid{gap:12px}
.character-edit-mode .selection-deck{grid-auto-columns:285px;gap:12px}.character-edit-mode .selection-deck>.selection-card{width:285px;height:400px;min-height:400px;max-height:400px;display:flex;flex-direction:column}.character-edit-mode .selection-card .selection-body{flex:1;min-height:0;height:auto;overflow-y:auto}.character-edit-mode .selection-card .selection-crown{flex:none}.character-edit-mode .selection-foot{padding:9px 12px;min-height:36px;flex:none}.character-edit-mode .selection-browser>input{height:38px;max-width:320px;margin-bottom:10px}.character-edit-mode .adjustment-tile{padding:10px;min-height:0}.character-edit-mode .adjustment-symbol{width:28px;height:28px}.character-edit-mode .experience-editor-row{padding:9px 12px;gap:12px}.character-edit-mode .experience-editor-row input{min-height:36px;padding:8px 10px}.character-edit-mode .experience-editor-row .experience-bonus-editor{max-width:88px}.character-edit-mode .modal-footer{padding-top:10px;margin-top:12px}
@media(max-width:600px){#modal.character-edit-mode{width:calc(100% - 12px);max-width:none}#modal.character-edit-mode .modal-body{padding:10px 12px}.character-edit-mode .editor-tabs button{flex:1 1 28%;font-size:.75rem;padding:7px 5px}.character-edit-mode .advancement-domain-deck{grid-template-columns:minmax(0,1fr)!important}.character-edit-mode .advancement-domain-deck .domain-card{width:100%;max-width:350px}.character-edit-mode .selection-deck{grid-auto-columns:min(285px,100%)}.character-edit-mode .selection-deck>.selection-card{width:100%;max-width:285px}.character-edit-mode .identity-fields-editor{grid-template-columns:1fr}.character-edit-mode .mixed-feature-pickers{grid-template-columns:1fr}.character-edit-mode .editor-page,.character-edit-mode .selection-browser{min-width:0}}
/* Keep acquisition navigation compact without changing the cards themselves. */
.character-edit-mode .card-level-tabs{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;margin-bottom:14px}.character-edit-mode .card-level-tabs button{min-height:44px;padding:6px 4px;font-size:.8rem}.character-edit-mode .card-level-tabs button small{font-size:.65rem;margin-top:2px}.character-edit-mode .experience-editor-row>label{min-width:0}.character-edit-mode .experience-editor-row input{box-sizing:border-box;width:100%;min-width:0}
@media(max-width:700px){.character-edit-mode .card-level-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}}
/* Tighten the space between picker headings, search and cards. */
.character-edit-mode .editor-page>.form-grid{gap:8px}.character-edit-mode .native-choice{margin:0;padding:0;min-height:0;line-height:1.25}.character-edit-mode .selection-browser{margin:0 0 6px}.character-edit-mode .selection-deck{padding-bottom:8px}.character-edit-mode .selection-browser>input{margin-bottom:5px}.character-edit-mode .identity-fields-editor{padding:12px;gap:12px}.character-edit-mode .editor-page[data-editor-page=identity]>.form-grid{gap:8px}
/* Adjustment values need a small numeric field, not a full-width tile. */
.character-edit-mode [data-editor-page=adjustments]>.form-grid{grid-template-columns:repeat(auto-fit,250px);gap:8px;justify-content:start}.character-edit-mode .adjustment-tile{box-sizing:border-box;display:grid;grid-template-columns:24px minmax(0,1fr) 62px;gap:8px;align-items:center;width:250px;padding:8px;min-height:52px}.character-edit-mode .adjustment-symbol{grid-column:1;grid-row:1;width:24px;height:26px}.character-edit-mode .adjustment-symbol>.icon{width:24px;height:26px}.character-edit-mode .adjustment-caption{grid-column:2;grid-row:1;font-size:.78rem}.character-edit-mode .adjustment-tile input{grid-column:3;grid-row:1;width:62px;min-width:0;height:34px;min-height:34px;padding:5px 6px;font-size:1rem;text-align:center}.character-edit-mode [data-editor-page=adjustments] .notice{border:0;background:none;padding:0;margin:0 0 4px;color:var(--muted)}
.level-change-target{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.level-change-target label{display:flex;align-items:center;gap:10px}.level-change-target select{width:110px;min-height:36px}.level-change-stats{display:flex;flex-wrap:wrap;gap:8px}.level-change-stats>div{display:grid;grid-template-columns:24px 1fr;gap:2px 8px;border:1px solid #9f8a5655;border-top:2px solid #c4a665;border-radius:5px;width:150px;padding:8px}.level-change-stats .icon{grid-row:1/3;color:#dfbf75;width:24px}.level-change-stats span{font-size:.7rem}.level-change-stats strong{color:#ead29a}.level-change-stats small{font-size:.75rem;font-weight:400}.level-change-list{padding:0;list-style:none}.level-change-list li{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #76839a33;font-size:.85rem}.level-change-list .icon{width:20px;color:#dfbf75}.level-change-list strong{font-weight:500;color:#e4cc93}#toast button{padding:3px 8px;font-size:.8rem;margin-left:8px}
@media(max-width:600px){.character-edit-mode [data-editor-page=adjustments]>.form-grid{grid-template-columns:minmax(0,1fr)}.character-edit-mode .adjustment-tile{width:100%;max-width:300px}}
/* Dialog transitions retain one shell width across all level-change sections. */
#modal.level-change-editor{width:min(1160px,calc(100vw - 28px));max-width:1160px;background:#202734;color:#e8eaf0;border-color:#667289}#modal.level-change-editor .modal-head{padding:12px 22px}#modal.level-change-editor .modal-head h2{font-size:1.25rem;margin:0}#modal.level-change-editor .modal-body{padding:12px 22px 18px}
@media(max-width:600px){#modal.level-change-editor{width:calc(100% - 12px);max-width:none}#modal.level-change-editor .modal-body{padding:10px 12px}}
/* Preserve the approved three-column advancement layout. */
.advancement-editor .advancement-choice-deck{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:132px;gap:10px}.advancement-editor .advancement-tile{width:100%;height:132px}.advancement-editor .advancement-option{box-sizing:border-box;height:132px;min-height:132px;max-height:132px;grid-template-rows:28px 20px 18px 1fr;row-gap:3px}.advancement-editor .advancement-option h3{grid-row:1;line-height:1.15}.advancement-editor .advancement-option .advancement-total,.advancement-editor .advancement-option small{grid-row:2}.advancement-editor .advancement-option p{grid-row:3}.advancement-editor .advancement-option .selection-foot{grid-row:4}.advancement-editor [hidden]{display:none!important}
@media(max-width:600px){.advancement-editor .advancement-choice-deck{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:140px;gap:8px}.advancement-editor .advancement-tile,.advancement-editor .advancement-option{height:140px;min-height:140px;max-height:140px}.advancement-editor .advancement-option{grid-template-rows:34px 20px 18px 1fr}}
/* Stack option details naturally: title, remaining slots, then total. */
.advancement-editor .advancement-option{grid-template-rows:auto auto auto 1fr;align-content:start;row-gap:4px}.advancement-editor .advancement-option h3{grid-row:1;min-height:0}.advancement-editor .advancement-option p{grid-row:2;line-height:1.25}.advancement-editor .advancement-option .advancement-total,.advancement-editor .advancement-option small{grid-row:3;line-height:1.25}.advancement-editor .advancement-option .selection-foot{grid-row:4}.advancement-editor .advancement-option>.icon{grid-row:1/4;align-self:start}
/* Stable advancement workspace: later-tier choices never move the detail fields. */
#modal.advancement-editor{height:fit-content;max-height:calc(100dvh - 48px)}
.advancement-editor .advancement-choice-deck{min-height:calc(var(--advancement-rows,3) * 132px + (var(--advancement-rows,3) - 1) * 10px);align-content:start}
@media(max-width:600px){#modal.advancement-editor{height:fit-content;max-height:calc(100dvh - 12px)}.advancement-editor .advancement-choice-deck{min-height:732px}}
/* Four stable detail slots: two trait picks or mixed trait/Experience picks share a row. */
.advancement-editor .advancement-choice-deck{grid-auto-rows:110px;min-height:calc(var(--advancement-rows,3) * 110px + (var(--advancement-rows,3) - 1) * 10px)}
.advancement-editor .advancement-tile,.advancement-editor .advancement-option{height:110px;min-height:110px;max-height:110px}
.advancement-editor .advancement-option{padding-top:9px;row-gap:2px}.advancement-editor .advancement-option .selection-foot{padding-top:6px;padding-bottom:6px;margin-top:3px}
.advancement-detail-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-height:88px;align-items:start}
.advancement-detail-slots .advancement-fields{grid-column:span var(--pick-slots);padding:8px 10px;margin:0;min-width:0}.advancement-detail-slots .advancement-field-grid{grid-template-columns:repeat(var(--pick-slots),minmax(0,1fr));gap:10px}.advancement-detail-slots select{height:38px;min-width:0;text-overflow:ellipsis}
@media(max-width:600px){.advancement-editor .advancement-choice-deck{grid-auto-rows:132px;min-height:692px}.advancement-editor .advancement-tile,.advancement-editor .advancement-option{height:132px;min-height:132px;max-height:132px}.advancement-detail-slots{grid-template-columns:repeat(2,minmax(0,1fr));min-height:184px;align-content:start;gap:8px}.advancement-detail-slots .advancement-fields{grid-column:span 2}.advancement-detail-slots .advancement-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.advancement-detail-slots{min-height:96px}@media(max-width:600px){.advancement-detail-slots{min-height:200px}}

/* One shared workspace, sized for level-5 choices and one complete domain card. */
#modal.advancement-editor{height:min(1040px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
#modal.advancement-editor[open]{display:flex;flex-direction:column}
#modal.advancement-editor .modal-head{flex:none;position:static}
#modal.advancement-editor .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px 22px 12px}
.advancement-editor #dialog-form{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}
.advancement-editor #dialog-form>.editor-hero,.advancement-editor #dialog-form>.editor-tabs,.advancement-editor #dialog-form>.advancement-journey{flex:none}
.advancement-editor #dialog-form>.editor-page,.advancement-editor #dialog-form>.inline-lower-review{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:4px}
.advancement-editor #dialog-form>.modal-footer{flex:none;position:static;bottom:auto;margin-top:10px;padding:10px 0 0}
.advancement-editor #form-error:empty{display:none}.advancement-editor #form-error{flex:none;max-height:100px;overflow:auto}
.subclass-upgrade-details{border:1px solid #bfa26266;border-radius:6px;padding:9px 12px;font-size:.82rem}.subclass-upgrade-details>summary{cursor:pointer;color:#dfbf75}.subclass-upgrade-details .advancement-subclass{margin:10px auto 0;width:100%}
@media(max-width:600px){#modal.advancement-editor{height:min(1040px,calc(100dvh - 12px));max-height:calc(100dvh - 12px)}#modal.advancement-editor .modal-body{padding:10px 12px}}
.multiclass-details>.multiclass-picker{margin-top:10px}.multiclass-details .selection-card{margin:0 auto}.multiclass-details>div:empty{display:none}
.journey-levels button{display:inline-flex;align-items:center;justify-content:center;gap:5px}.journey-complete{display:inline-flex;color:#72d69b}.journey-complete .icon{width:15px;height:15px;stroke-width:2.5}

/* Editing shares the stable workspace contract of advancement. */
#modal.character-edit-mode{height:min(1040px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);overflow:hidden}
#modal.character-edit-mode[open]{display:flex;flex-direction:column}
#modal.character-edit-mode .modal-head{flex:none;position:static}
#modal.character-edit-mode .modal-body{display:flex;flex:1;min-height:0;overflow:hidden;padding:12px 20px}
.character-edit-mode #dialog-form{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%}
.character-edit-mode #dialog-form>.editor-hero,.character-edit-mode #dialog-form>.editor-tabs{flex:none}
.character-edit-mode #dialog-form>.editor-page{flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:4px}
.character-edit-mode #dialog-form>.modal-footer{flex:none;position:static;bottom:auto;margin-top:10px;padding:10px 0 0}
.character-edit-mode #form-error:empty{display:none}.character-edit-mode #form-error{flex:none;max-height:100px;overflow:auto}
.character-edit-mode .selection-foot .icon{color:#72d69b;stroke-width:2.5}
@media(max-width:600px){#modal.character-edit-mode{height:min(1040px,calc(100dvh - 12px));max-height:calc(100dvh - 12px)}#modal.character-edit-mode .modal-body{padding:10px 12px}}

/* Readable adjustment rows: spend space on labels, symbols and numeric controls. */
.character-edit-mode [data-editor-page=adjustments]>.form-grid{grid-template-columns:repeat(auto-fit,320px);gap:10px}
.character-edit-mode .adjustment-tile{width:320px;min-height:64px;grid-template-columns:28px minmax(0,1fr) 72px;gap:10px;padding:10px}
.character-edit-mode .adjustment-caption{font-size:.95rem;line-height:1.25}
.character-edit-mode .adjustment-symbol,.character-edit-mode .adjustment-symbol>.icon{width:28px;height:30px}
.character-edit-mode .adjustment-tile input{width:72px;height:42px;min-height:42px;font-size:1.2rem;padding:6px}
@media(max-width:600px){.character-edit-mode [data-editor-page=adjustments]>.form-grid{grid-template-columns:minmax(0,1fr)}.character-edit-mode .adjustment-tile{width:100%;max-width:320px}}

.adjustment-range{display:block;font-size:.68rem;font-weight:400;color:var(--muted);line-height:1.3;margin-top:3px}

/* Drag horizontally overflowing strips; touch keeps native panning. */
@media(pointer:fine){.drag-scrollable,.drag-scrollable button{cursor:grab}.drag-scrollable input,.drag-scrollable textarea{cursor:text}.drag-scrollable select{cursor:default}}
.drag-scrolling,.drag-scrolling *{cursor:grabbing!important;user-select:none!important;scroll-behavior:auto!important}

/* Align armor labels and values with weapon columns, without an icon gutter. */
.weapon-summary .armor-summary{align-items:start}.weapon-summary .armor-summary .armor-name{grid-column:1;padding-left:0}.weapon-summary .armor-summary .armor-stat:nth-of-type(2){grid-column:2}.weapon-summary .armor-summary .armor-stat:nth-of-type(3){grid-column:3/5}.weapon-summary .armor-summary details{padding-left:0}.weapon-summary .armor-summary .armor-stat small{font-size:.6rem;line-height:1.3}.weapon-summary .armor-summary .armor-name small{line-height:1.3}

/* Ranger retains the sheet's text hierarchy and independent controls. */
.ranger-effect{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.ranger-copy h3{margin:0 0 4px}.ranger-controls{display:flex;align-items:start;gap:6px}.ranger-summary{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ranger-summary b,.ranger-summary>span{color:var(--gold,#e5c365)}.ranger-stress{margin:14px 0 8px}.ranger-stress>div{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.ranger-stress-pip{width:30px;height:30px;padding:5px;color:#9aa4b2;border:1px solid #667381;background:#171e29}.ranger-stress-pip.marked{background:#465768;color:#e7ecf1}.ranger-stress-pip svg{width:18px;height:18px}.ranger-experiences{margin-top:12px}.ranger-experiences .experience-line{min-height:30px;font-size:.83rem}.ranger-comfort-actions{display:flex;gap:5px}.ranger-training h3{margin:12px 0 4px}.ranger-training p{margin:0;font-size:.85rem}.ranger-controls:has(.ranger-comfort-actions){flex-direction:column}.ranger-training summary{color:var(--gold,#e5c365)}

.play-features .ranger-copy h3{margin:0 0 4px!important;padding:0;font-size:.86rem;line-height:1.35;color:var(--gold,#dfc17b)}.ranger-copy>.assassin-hint{margin-top:4px}.ranger-copy{min-width:0}.ranger-experiences .experience-line span{overflow-wrap:anywhere}

.ranger-experiences{max-height:72px;overflow-y:auto;scrollbar-width:thin;padding-right:6px;overscroll-behavior:auto}.ranger-experiences .experience-line{height:36px;min-height:36px;box-sizing:border-box;margin:0;padding:7px 0;align-items:center}.ranger-experiences .experience-line span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ranger-experiences:focus-visible{outline:1px solid var(--gold,#dfc17b);outline-offset:3px}

.play-features .ranger-experiences-heading{font-family:inherit;font-size:.8rem;font-weight:600;color:var(--gold,#dfc17b);margin:12px 0 3px}.ranger-experiences-heading+.ranger-experiences{margin-top:0}.ranger-training-list{margin-top:8px;display:grid;gap:6px}.ranger-training-row{padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:#77818f08}.ranger-training-row>div{display:flex;align-items:baseline;gap:8px}.ranger-training-row strong{font-family:inherit;font-size:.83rem;color:var(--gold,#dfc17b);font-weight:600}.ranger-training-count{font-size:.78rem;color:var(--muted)}.ranger-training .ranger-training-row p{font-size:.8rem;line-height:1.4;margin:3px 0 0}

.rogue-charges{flex-direction:column;gap:5px}.rogue-benefits{grid-column:1/-1;display:grid;gap:6px}.rogue-benefits>div{border:1px solid var(--line);border-radius:4px;padding:8px 10px;font-size:.8rem}.rogue-benefits strong{display:block;color:var(--gold,#dfc17b);font-weight:600;margin-bottom:3px}.rogue-benefits small{color:var(--muted)}

 .ability-use-counter{display:flex;align-items:flex-start;gap:3px;flex-wrap:nowrap}.character-sheet .ability-use-counter>button:not(.ability-charge){border:0;background:transparent;color:#e3bc61;padding:0;width:24px;min-width:24px;height:36px;font-size:1.25rem;box-shadow:none}.ability-use-counter>button:disabled:not(.ability-charge){opacity:.3}.character-sheet .ability-use-counter>.ability-charge{white-space:nowrap}.character-sheet .ability-use-counter>.ability-charge:disabled{opacity:1}

.play-features .assassin-limited>.assassin-effect-heading>.bard-use-counter{grid-column:2;grid-row:1 / span 20;align-self:start}

.seraph-prayer-dice{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.character-sheet .seraph-prayer-die{position:relative;width:44px;height:48px;padding:3px;background:transparent;border:0;color:#e3c577}.seraph-prayer-die .icon{width:38px;height:38px;opacity:.65}.seraph-prayer-die b{position:absolute;inset:0;display:grid;place-items:center;font-size:1rem;text-shadow:0 0 4px #151b25}.seraph-prayer-dice small{color:var(--muted)}

.seraph-d4{width:38px;height:38px;display:block}.seraph-d4-face{fill:#293c4c}.seraph-d4-base{fill:#1a2734}.seraph-d4-edge{fill:none;stroke:#b89d60;stroke-width:2;stroke-linejoin:round}.character-sheet .seraph-prayer-die{display:grid;place-items:center;color:#efd38a}.character-sheet .seraph-prayer-die b{inset:5px 0 0;align-items:center;padding-top:0;font-size:.95rem;color:#f3d68b;text-shadow:none;font-weight:700}.seraph-prayer-die:hover .seraph-d4-face{fill:#354c5e}.seraph-prayer-die:hover .seraph-d4-edge{stroke:#efd38a}.ranger-controls>.icon-action>.seraph-d4{width:26px;height:26px}

.character-sheet .seraph-prayer-die b{transform:translateY(3px)}

/* Compact Channel Raw Power card picker. */
#modal:has(.sorcerer-channel-picker){width:min(420px,calc(100% - 32px))}
#modal:has(.sorcerer-channel-picker) .modal-head{padding:16px 20px}
#modal:has(.sorcerer-channel-picker) .modal-head h2{font-size:1.25rem;margin:0}
#modal:has(.sorcerer-channel-picker) .modal-body{padding:16px 20px}
.sorcerer-channel-picker{display:grid;gap:8px}
.sorcerer-channel-picker>label{margin:0;text-align:left}
.sorcerer-channel-picker .modal-footer{margin-top:8px;padding:0;justify-content:flex-end}
.sorcerer-channel-hope{display:grid;place-items:center;color:var(--gold,#e5c365)}
.sorcerer-channel-hope .hope-ability-diamond{margin:0}
.sorcerer-channel-picker .beast-confirm-button{color:#efd38a;background:linear-gradient(#35414f,#202733);border:1px solid #596879;box-shadow:inset 0 1px #ffffff0d,0 2px 3px #0003}
.sorcerer-channel-hope .hope-ability-diamond{display:block;width:15px;height:15px;border:2px solid #e5c365;transform:rotate(45deg);box-shadow:inset 0 0 0 2px #273442;background:#b99540}

.transcend-picker{grid-column:1/-1;display:grid;gap:10px;margin-top:2px}
.transcend-picker-heading{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted)}
.transcend-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.transcend-options button{padding:9px 6px;font-size:.78rem;border:1px solid #596879;background:#252f3c;color:#d8dee7;text-align:center}
.transcend-options button[aria-pressed="true"]{border-color:#d2b466;color:#efd38a;background:#39404a;box-shadow:inset 0 0 0 1px #d2b46640}
.transcend-options button:disabled{opacity:.4}
.transcend-trait{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;font-size:.8rem}
.transcend-trait[hidden]{display:none}
.transcend-trait select{margin:0;padding:7px 10px}
.transcend-actions{display:flex;justify-content:flex-end;gap:6px}
.transcend-actions button{padding:7px 12px;font-size:.8rem}
.transcend-actions [data-cancel]{background:transparent;border-color:transparent;color:var(--muted)}
.transcend-actions .beast-confirm-button{color:#efd38a;background:linear-gradient(#35414f,#202733);border:1px solid #596879}

/* Give active Transcendence buffs breathing room below the title. */
.sorcerer-active .ranger-copy .druid-benefits{margin-top:8px!important}

.warlock-patron{display:grid;gap:5px;margin-top:10px}.warlock-patron strong{color:var(--gold,#dfbf6d);font-size:.85rem}.warlock-patron small{font-size:.73rem;color:var(--muted)}.warlock-patron-actions{display:flex;gap:6px;margin:3px 0}.warlock-patron-actions button{padding:6px 10px;font-size:.78rem}.warlock-patron-actions .icon{width:18px;height:18px;vertical-align:middle}.warlock-active .druid-benefits{margin-top:8px!important}.warlock-favor-picker label{display:grid;gap:6px;font-size:.8rem}.warlock-favor-picker select{padding:7px}

.feature-disclosure .feature-stage{font:inherit;font-weight:400}.feature-stage-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#dfbf6d;margin:0 8px 2px;vertical-align:middle}

.warlock-spend{display:flex;align-items:center;gap:10px;margin-top:9px;min-height:36px;font-size:.8rem}.warlock-spend .ability-use-counter{align-items:center}.warlock-spend strong{display:grid;place-items:center;min-width:30px;height:30px;border:1px solid #75694b;border-radius:4px;color:#efd38a;background:#252f3c}.warlock-spend [data-roll-label]{color:#dfbf6d}.warlock-spend[data-used="true"]{opacity:.6}

.warlock-dice-control{grid-column:1/-1;display:grid;gap:5px}.warlock-favor-count{display:flex;gap:8px;align-items:center;height:30px}.warlock-favor-count strong{color:#efd38a;font-size:.9rem}.warlock-favor-symbol{width:19px;height:23px;border:2px solid #adbac9;border-radius:50%;box-shadow:inset 0 0 0 2px #202633,inset 0 0 0 3px #adbac9;background:#697b8a}.warlock-dice-row{display:flex;flex-wrap:nowrap;gap:7px;height:36px;align-items:center}.warlock-patron-die{position:relative;display:grid;place-items:center;width:29px;height:34px;flex:0 0 29px}.warlock-patron-die svg{position:absolute;inset:0;width:100%;height:100%;fill:#293c4c;stroke:#b89d60;stroke-width:1.4}.warlock-patron-die b{position:relative;background:#293c4c;color:#efd38a;font-size:.75rem;padding:0 2px;line-height:14px}.warlock-dice-control[data-used="true"]{opacity:.55}.warlock-recharge{grid-column:1/-1}.warlock-recharge .recharge-badge{margin-top:0}

.warlock-favor-count.ability-use-counter{height:40px;gap:7px;align-items:center}.warlock-favor-count .warlock-favor-symbol{display:grid;place-items:center;box-sizing:border-box;width:29px;height:35px;background:#283442;border:2px solid #adbac9;border-radius:50%;box-shadow:inset 0 0 0 2px #202633,inset 0 0 0 3px #adbac9}.warlock-favor-count .warlock-favor-symbol strong{font-size:.85rem;color:#efd38a}
.warlock-dice-control{display:flex;align-items:center;gap:10px;min-width:0}.warlock-favor-count{flex-shrink:0}.warlock-dice-row{gap:4px;min-width:0}.warlock-patron-die{width:25px;height:30px;flex:0 1 25px;min-width:15px}

.warlock-favor-count .warlock-favor-symbol{display:grid;width:34px;height:36px;border:0;border-radius:0;box-shadow:none;background:none;margin:0;padding:0}.warlock-favor-symbol .pip.on{width:32px;height:34px;min-height:0;border-radius:50%;border:1px solid #b8c7d6;background:transparent;box-shadow:inset 0 0 0 4px #202633}.warlock-favor-symbol .pip>span{display:grid;place-items:center;width:25px;height:27px;border:2px solid #747994;border-radius:50%;background:#b8c7d6}.warlock-favor-count .warlock-favor-symbol strong{color:#202633;font-size:.85rem;line-height:1}.warlock-dice-control{gap:6px}.warlock-dice-row{flex:1;gap:3px}.warlock-roll{flex:0 0 36px;width:36px;height:36px;padding:7px!important}.warlock-favor-count.ability-use-counter{gap:2px}

.warrior-dice-line{grid-column:1/-1;display:flex;gap:8px;align-items:center;min-height:38px}.warrior-dice-pool{display:flex;gap:5px;flex:1;flex-wrap:wrap}.warrior-d6{width:30px;height:34px;padding:0!important;border:0;background:transparent!important}.warrior-d6 svg{width:30px;height:30px;fill:#293c4c;stroke:#b89d60;stroke-width:1.5}.warrior-d6 svg path{stroke-width:3.5;stroke-linecap:round}.warrior-d6[aria-pressed="true"] svg{fill:#6a5730;stroke:#f4d489}.warrior-d6:disabled{opacity:.18}.warrior-pool .ranger-controls{align-items:center}.warrior-pool .ranger-controls strong{font-size:.85rem;color:#dfbf6d;white-space:nowrap}

.warrior-selection-hint{grid-column:1/-1;color:var(--muted);font-size:.75rem;min-height:18px;margin-top:2px}.warrior-pool-count{min-width:62px;justify-content:center;white-space:nowrap}.warrior-d6 svg .warrior-cube{stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.warrior-d6 svg{fill:#293c4c;stroke:#8999ac}.warrior-d6[aria-pressed="true"] svg{fill:#584c32;stroke:#efd38a}.warrior-pool .ranger-controls>button{background:transparent!important;border:0!important;box-shadow:none!important}.warrior-dice-line{margin-top:-4px}.warrior-dice-pool{flex-wrap:nowrap;min-width:0}.warrior-d6{flex:0 1 30px;min-width:20px}

.warrior-rise.selected{color:#efd38a!important;border-color:#d1b56d!important;background:#514630!important}.warrior-rise:not(.selected){color:#8190a0}

.witch-detail{grid-column:1/-1}.witch-tokens{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;margin:7px 0}.witch-token{width:23px;height:23px;min-height:0;padding:0!important;border-radius:50%;border:1px solid #8b9bad;background:#202633}.witch-token.selected{background:#d7be77;box-shadow:inset 0 0 0 3px #202633}.witch-commune{display:grid;gap:4px;font-size:.78rem;margin-bottom:9px}.witch-commune b{color:#dfbf6d;display:inline-block;min-width:30px}.witch-hope-cost{display:flex;align-items:center;gap:6px;height:32px}.witch-hope-cost .hope-ability-diamond{display:block;width:14px;height:14px;transform:rotate(45deg);border:2px solid #e5c365;background:#b99540;box-shadow:inset 0 0 0 2px #273442}.witch-phase-picker{display:flex;gap:6px;margin:6px 0 10px}.witch-phase-picker button{width:32px;height:32px;padding:0;border:1px solid #647183;background:#252f3c;color:#bdc6d4}.witch-phase-picker [aria-pressed="true"]{color:#efd38a;border-color:#d1b56d;background:#514630}.witch-shift{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:.78rem;margin:7px 0}.witch-phase-expiry{display:block;margin-top:7px;color:var(--muted);font-size:.72rem}.witch-active .icon-action.selected{color:#efd38a;border-color:#d1b56d;background:#514630}.witch-active .druid-benefits{margin-top:8px!important}

.witch-cost-hope{display:grid;place-items:center;width:26px;height:26px;border:2px solid #e5c365;background:#b99540;box-shadow:inset 0 0 0 2px #273442;transform:rotate(45deg);margin:0 5px}.witch-cost-hope strong{transform:rotate(-45deg);color:#17202c;font-size:.8rem}.witch-hope-cost{height:40px}

/* Stable Witch controls and sheet-aligned result lists. */
.witch-active .ranger-controls{flex-direction:column;align-items:flex-end;min-width:82px}
.witch-active .druid-benefits,.feature-disclosure .druid-benefits{padding-left:14px;margin-bottom:0}
.witch-phase-results{margin:0 0 10px!important;font-size:.78rem}.witch-phase-results li.selected{color:#efd38a}.witch-active .ranger-copy .assassin-hint{margin-left:0}

[data-stable-transcend] .ranger-copy>.assassin-hint{min-height:64px}.seraph-prayer-dice{min-height:38px}

.witch-phase-help{font-size:.78rem;margin:10px 0 8px}.witch-lunar-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center}.witch-lunar-controls .witch-phase-picker{margin:0;gap:5px}.witch-lunar-controls .witch-phase-picker button{flex:0 1 32px;min-width:22px}.witch-advance{color:#efd38a}.witch-advance:disabled{color:#8995a5}.witch-phase-reset,.witch-advance-reset{display:flex;gap:6px;align-items:center}.witch-advance-reset{justify-self:end}.witch-phase-reset small,.witch-advance-reset small{font-size:.7rem;color:var(--muted)}
.witch-active [data-witch-circle] .ranger-copy>.assassin-hint{margin-top:0;margin-bottom:0}.witch-active [data-witch-circle] .druid-benefits{margin-top:8px!important;gap:6px}.witch-active [data-witch-circle] .witch-tokens{margin:0;align-items:center}.witch-active [data-witch-circle] .witch-detail{display:grid;gap:10px;justify-items:start}
.witch-lunar-controls>.witch-advance{justify-self:end;width:44px;height:44px;padding:10px}.witch-advance .icon{width:22px;height:22px}

.character-sheet .witch-advance,.character-sheet .witch-advance:disabled{color:#efd38a;opacity:1}.witch-advance svg{filter:none}

.wizard-detail{grid-column:1/-1}.wizard-patterns{display:grid;grid-template-columns:repeat(6,minmax(0,32px));gap:6px;margin:0 0 12px}.wizard-patterns button{height:32px;padding:0;color:#b5c2d1;border:1px solid #647183;background:#252f3c}.wizard-patterns button:disabled{opacity:1}.wizard-patterns [aria-pressed="true"]{color:#efd38a;border-color:#d1b56d;background:#514630}

.pattern-choice{width:min(340px,calc(100vw - 32px));padding:22px;border:1px solid #667381;border-radius:12px;background:#202735;color:#e4e7ef}.pattern-choice::backdrop{background:#060b1480}.pattern-choice h2{font-size:18px;color:#dfbf6d;margin:0 22px 12px 0}.pattern-choice p{font-size:13px;margin:0 0 16px}.pattern-close{position:absolute;right:10px;top:9px;border:0;background:transparent;color:#d6dce7;font-size:22px}.pattern-benefits{display:flex;gap:10px;margin-top:12px}.pattern-benefits button{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;border:1px solid #647183;border-radius:7px;background:#2a3545;color:#e4e7ef;font-size:13px}.pattern-benefits button:disabled{opacity:.35}.pattern-benefits svg,.pattern-stress{width:28px;height:28px;font-size:28px;color:#bda7da}.pattern-choice small{font-size:11px;color:#aeb8c8}

.pattern-choice{box-sizing:border-box;width:min(310px,calc(100vw - 32px));padding:20px;text-align:center}.pattern-choice h2{font-size:17px;line-height:1.4;margin:4px 14px 12px}.pattern-choice p{margin:0 0 12px}.pattern-benefits{justify-content:center;gap:12px;margin:0}.pattern-benefits button{flex:0 0 42px;width:42px;height:42px;padding:8px;justify-content:center}.pattern-benefits svg{width:24px;height:24px}

@media(max-width:600px){.pattern-benefits button{flex-basis:44px;width:44px;height:44px}.pattern-close{width:44px;height:44px;right:2px;top:2px;padding:0}.pattern-choice h2{margin-top:20px}}

/* Phone sheet: traits, defenses, then health, divided by steel and gold rules. */
@media(max-width:600px){
 .sheet-upper{display:flex;flex-direction:column;align-items:stretch;gap:0;padding-bottom:24px}
 .sheet-upper>.traits{order:0;margin:0;padding:0}
 .sheet-upper>.defense-strip{order:1;position:relative;margin:24px 0 0;padding-top:24px;padding-bottom:24px;border-right:0}
 .sheet-upper>.defense-strip::before,.sheet-upper>.defense-strip::after{content:"";position:absolute;left:8%;right:8%;height:9px;background:linear-gradient(90deg,transparent,#778698 20%,#a79872 46%,transparent 46%,transparent 54%,#a79872 54%,#778698 80%,transparent) center/100% 1px no-repeat,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 9 5 5 9 1 5Z' fill='%23252e3a' stroke='%23b9a16a'/%3E%3C/svg%3E") center/9px 9px no-repeat}
 .sheet-upper>.defense-strip::before{top:0}.sheet-upper>.defense-strip::after{bottom:0}
}
@media(max-width:600px){.sheet-upper>.defense-strip{align-self:stretch;width:100%;height:auto;min-height:calc(var(--crest-height) + 58px);box-sizing:border-box;flex-shrink:0;padding:24px 0 30px}.sheet-upper{padding-bottom:24px}}

.community-reset,.community-hope{grid-column:1/-1}.community-tide{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.community-hope{display:flex;align-items:center;gap:8px;height:36px}.community-effect h3{color:var(--gold,#dfbf6d)}

.oasis-choice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:8px}.oasis-choice button{padding:6px 10px}

.ancestry-effect .ancestry-target{width:100%;max-width:130px;margin-top:8px}.ancestry-effect .community-reset{grid-column:1/-1}.ancestry-effect .ranger-controls{align-self:start}.ancestry-effect .icon-action.active{color:var(--gold,#dfc17b);border-color:var(--gold,#dfc17b);background:rgba(217,182,100,.18)}

.transformation-effect .ranger-controls{flex-direction:column;align-items:flex-end}.transformation-effect .community-tide{grid-column:1/-1}

/* Approved compact state controls: stable footprint and separate ongoing state. */
html[data-theme] .character-sheet .ability-charge.effect-state{width:76px;min-width:76px;justify-content:center;gap:0}
html[data-theme] .character-sheet .ability-charge.effect-state:is(.is-ready,.is-active){color:#9dc5aa;border-color:#8fbc9d66;background:#8fbc9d0d}
html[data-theme] .character-sheet .ability-charge.effect-state.is-active{font-size:14px;font-weight:600}
html[data-theme] .character-sheet .ability-charge.effect-state.is-used{color:#8995a5}
html[data-theme] .character-sheet .effect-state.is-used .ability-charge-dot{background:transparent;border:1px solid currentColor}
.character-sheet .ability-use-counter .ability-charge .ability-charge-dot{display:none}
.character-sheet .ability-use-counter .ability-charge{font-size:14px;font-weight:600}
html[data-theme] .character-sheet .ability-charge.refocus-die.is-ready{color:#9dc5aa;border-color:#8fbc9d66;background:#8fbc9d0d;box-shadow:none}
html[data-theme] .character-sheet .ability-charge.refocus-die.is-used{color:#8995a5;border-color:#77818f55;background:#77818f12;box-shadow:none}
html[data-theme] .character-sheet .witch-advance:is(.is-used,:disabled){color:#8995a5;border-color:#77818f55;background:#77818f12;box-shadow:none}
