.hero-portrait-editor{display:flex;align-items:center;gap:18px;margin-top:20px;padding:16px;background:#f1f5fb;border-left:3px solid #b58b24;min-width:0}.hero-portrait-preview{display:grid;place-items:center;width:86px;height:108px;flex:0 0 86px;background:#e2ebf6;overflow:hidden;border-radius:5px}.hero-portrait-preview img{width:100%;height:100%;object-fit:contain}.hero-portrait-preview>span{font-size:35px;color:#b58b24}.hero-portrait-editor>div:last-child{min-width:0}.hero-portrait-editor strong{font-size:13px;color:#244f7e}.hero-portrait-editor p{font-size:11px;line-height:1.6;color:#637e98;margin:7px 0}.hero-portrait-actions{display:flex;flex-wrap:wrap;gap:7px}.hero-portrait-actions button,.combat-portrait-tools button{min-height:36px;font-size:11px;padding:8px 11px}.hero-portrait-status{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:#8b3345!important}.hero-portrait-status:empty{display:none}[data-portrait-file]{display:none!important}
.combat-view .combat-showcase-toolbar{display:flex;justify-content:flex-end;padding:0 0 12px;margin:0;border:0;border-radius:0;background:transparent}.combat-showcase-toolbar>[hidden]{display:none!important}.combat-view .combat-showcase-toolbar button{background:#fff;border-color:#cbd9e9;color:#315b86}.combat-view .combat-hero-showcase{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);padding:0;margin:0 0 18px;overflow:hidden;position:relative;isolation:isolate;border:0;border-top:4px solid #24588c;border-bottom:3px solid #b58b24;border-radius:8px;background:#fff;box-shadow:0 6px 24px #1739600d}.combat-hero-information{padding:28px;min-width:0;position:relative;z-index:1}.combat-hero-heading{padding-bottom:18px;border-bottom:1px solid #dce6f0;margin-bottom:18px}.combat-hero-heading .eyebrow{font-size:9px;letter-spacing:1.5px;color:#587794;margin:0 0 10px;line-height:1.6;overflow-wrap:anywhere}.combat-hero-heading h2{font-size:clamp(28px,3.5vw,52px);font-weight:900;line-height:1.05;letter-spacing:-1px;text-transform:uppercase;color:#18477b;overflow-wrap:anywhere;margin:0 0 14px}.combat-hero-motivation{font-size:14px;line-height:1.7;color:#405a74;margin:0;padding-left:12px;border-left:3px solid #b58b24;overflow-wrap:anywhere}.combat-hero-attacks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:22px}.combat-hero-attacks button{display:block;min-width:0;padding:12px 7px;border:0;border-bottom:3px solid #24588c;border-radius:0;background:#f1f5fb;text-align:left}.combat-hero-attacks button:nth-child(2){border-bottom-color:#b33449}.combat-hero-attacks button:nth-child(3){border-bottom-color:#b58b24}.combat-hero-attacks span{display:block;font-size:10px;font-weight:700;color:#42678b}.combat-hero-attacks strong{display:block;font-size:18px;color:#111;margin:7px 0;line-height:1.3;overflow-wrap:anywhere}.combat-hero-attacks small{display:block;font-size:9px;line-height:1.5;color:#6c8197}.combat-hero-attacks button:hover{background:#e4eefb}.combat-hero-attacks button:focus-visible{outline:3px solid #b58b24;outline-offset:2px}.combat-hero-damage-host .combat-roll-tools{border:0!important;padding:0!important;background:transparent!important;box-shadow:none;border-radius:0}.combat-hero-damage-host .session-panel-heading{margin-bottom:12px}.combat-hero-damage-host .quick-damage-power{border:0;border-left:3px solid #24588c;border-radius:0;background:#f1f5fb}.combat-hero-damage-host .quick-damage-power:nth-child(3n+2){border-left-color:#b33449}.combat-hero-damage-host .quick-damage-power:nth-child(3n){border-left-color:#b58b24}.combat-power-description{flex-basis:100%;margin:2px 0!important}.combat-power-description summary{font-size:10px!important}.combat-power-description p{font-size:11px;line-height:1.7;color:#536d86;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.combat-hero-portrait{position:relative;min-width:0;min-height:420px;display:flex;flex-direction:column;justify-content:flex-end;background:radial-gradient(ellipse at 60% 30%,#fff 0,#e7f0fc 55%,#d8e5f5 100%);border-left:1px solid #dce6f1;overflow:hidden}.combat-hero-portrait::before{content:'';position:absolute;inset:25px 30px;pointer-events:none;border:1px solid #b58b2433;clip-path:polygon(0 0,100% 0,100% 87%,50% 100%,0 87%)}.combat-hero-portrait>img{position:absolute;inset:16px 0 70px;width:100%;height:calc(100% - 86px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 9px 18px #17396020)}.combat-portrait-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;flex:1;padding:35px;position:relative;color:#43698f}.combat-portrait-empty>span{display:grid;place-items:center;width:100px;height:115px;font-size:48px;color:#dfbb52;background:#24588c;clip-path:polygon(50% 0,100% 15%,90% 75%,50% 100%,10% 75%,0 15%)}.combat-portrait-empty strong{font-size:18px}.combat-portrait-empty p{font-size:12px;line-height:1.7;max-width:220px;margin:0}.combat-portrait-tools{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:7px;padding:15px;background:#eef4fbd9}.combat-portrait-tools button{background:#fff;border-color:#b9cde3;color:#315b86}.combat-portrait-tools .hero-portrait-status{flex-basis:100%;text-align:center;margin:0}.combat-portrait-tools [data-remove-portrait]{color:#a33449}
@media(max-width:1100px){.combat-view .combat-hero-showcase{grid-template-columns:minmax(0,1.25fr) minmax(220px,.75fr)}.combat-hero-information{padding:22px}.combat-hero-attacks strong{font-size:16px}}
@media(max-width:760px){.combat-view .combat-hero-showcase{display:flex;flex-direction:column}.combat-hero-portrait{order:-1;min-height:300px;height:300px;flex:0 0 300px;border-left:0;border-bottom:1px solid #dce6f1}.combat-hero-portrait>img{inset:8px 0 58px;height:calc(100% - 66px)}.combat-portrait-tools{padding:10px}.combat-hero-information{padding:20px}.combat-hero-heading h2{font-size:34px}.combat-hero-attacks strong{font-size:17px}.combat-view .combat-showcase-toolbar>div:last-child{flex-direction:row;flex-wrap:wrap}.combat-hero-motivation{font-size:13px}}
@media(max-width:430px){.hero-portrait-editor{gap:12px;padding:12px;align-items:flex-start}.hero-portrait-preview{width:64px;height:86px;flex-basis:64px}.hero-portrait-actions{flex-direction:column;align-items:flex-start}.combat-hero-information{padding:16px}.combat-hero-attacks{gap:5px}.combat-hero-attacks button{padding:11px 5px}.combat-hero-attacks strong{font-size:15px}.combat-hero-heading h2{font-size:29px}.combat-hero-portrait{min-height:270px;height:270px;flex-basis:270px}}

/* Poster composition: identity above the content, full portrait at the side. */
.combat-view .combat-hero-showcase{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.combat-hero-showcase .combat-hero-heading{display:block;height:auto;min-height:0;max-height:none;align-items:normal;gap:0;padding:0 0 18px;margin:0 0 18px}
.combat-hero-showcase .combat-hero-heading h2{display:block;width:100%;max-width:100%;margin:6px 0 12px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(34px,4.2vw,62px);font-weight:700;line-height:1;letter-spacing:-1px;white-space:normal;word-break:normal;overflow-wrap:anywhere}
.combat-hero-showcase .combat-hero-motivation{display:block;width:100%;max-width:none;margin:0;font-size:13px}
.combat-hero-showcase .combat-hero-portrait{width:100%;height:auto;min-width:0;max-width:none;margin:0;padding:0;inset:auto;border:0;border-left:1px solid #d7e4f2;align-self:stretch}
.combat-hero-showcase .combat-hero-portrait::before{display:none}
.combat-hero-showcase .combat-hero-portrait>img{inset:0;width:100%;height:100%;max-width:none;max-height:none;filter:none}
.combat-hero-showcase .combat-vitals{padding:0 0 16px!important;margin:0 0 16px!important;border:0!important;border-bottom:1px solid #dce6f0!important;border-radius:0;background:transparent}
.combat-hero-showcase .combat-vitals .session-panel-heading{margin-bottom:8px}.combat-hero-showcase .combat-vitals progress{margin:10px 0}.combat-hero-showcase .combat-quick-stats{padding-top:10px;margin-top:10px;gap:8px}.combat-hero-showcase .combat-quick-stats strong{margin:6px 0 0;font-size:21px}.combat-hero-showcase .combat-quick-stats>[hidden]{display:none}
.combat-hero-showcase .combat-hero-attacks{margin-bottom:18px}
/* Ability strips follow the reference: name/cost bar, visible description, compact roll. */
.combat-hero-damage-host .combat-reference-power{display:block;padding:0!important;margin:12px 0;border:0!important;border-radius:0;overflow:hidden;background:#eef4fb;box-shadow:none}
.combat-reference-power-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:7px 11px;background:#e2ecf9;border-top:3px solid #24588c}
.combat-reference-power-title h4{font:700 20px/1.15 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:-.3px;color:#1d497b;margin:0;min-width:0;overflow-wrap:anywhere}
.combat-reference-power-title>span{flex:0 0 auto;font:700 18px/1.2 Georgia,'Times New Roman',serif;color:#111}
.combat-reference-power:nth-of-type(3n+2) .combat-reference-power-title{border-top-color:#b33449}.combat-reference-power:nth-of-type(3n+2) .combat-reference-power-title h4{color:#9a2b3e}
.combat-reference-power:nth-of-type(3n) .combat-reference-power-title{border-top-color:#b58b24}.combat-reference-power:nth-of-type(3n) .combat-reference-power-title h4{color:#785b19}
.combat-reference-power-body{padding:10px 12px}.combat-reference-power-body p{margin:0;font:12px/1.65 Georgia,'Times New Roman',serif;color:#334f6b;overflow-wrap:anywhere}
.combat-reference-power-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 11px;background:#e8f0fa;border-top:1px solid #d5e1ef}
.combat-reference-power-footer strong{display:block;color:#111;font-size:16px;line-height:1.4}.combat-reference-power-footer small{display:block;font-size:9px;line-height:1.5;margin-top:2px}.combat-reference-power-footer button{min-height:30px;padding:6px 10px;font-size:10px;white-space:nowrap;border-color:#b9cee5;background:#fff}
.combat-hero-damage-host .combat-basic-damage{border-radius:0;border-left:3px solid #b58b24;padding:10px 12px}.combat-hero-damage-host .combat-basic-damage strong{font-size:22px}
.combat-showcase-controls details{padding-top:12px;margin:12px 0 0;border-top:1px solid #dce6f0}.combat-showcase-controls summary{font-size:12px;color:#315c85;cursor:pointer}.combat-showcase-controls .hint{font-size:11px;line-height:1.6}
.portrait-framing{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.portrait-framing label{display:block;flex:1;min-width:120px;font-size:9px;color:#607b97}.portrait-framing select,.portrait-framing input{display:block;width:100%;margin-top:5px;min-width:0}.portrait-framing select{font-size:11px;padding:7px}.portrait-framing input[type=range]{accent-color:#24588c}
@media(max-width:760px){.combat-view .combat-hero-showcase{display:flex}.combat-hero-showcase .combat-hero-portrait{height:330px;min-height:330px;flex-basis:330px;border-left:0;border-bottom:1px solid #d7e4f2}.combat-hero-showcase .combat-hero-heading h2{font-size:42px}.combat-reference-power-title h4{font-size:19px}.combat-reference-power-title>span{font-size:16px}}
@media(max-width:430px){.combat-hero-showcase .combat-hero-heading h2{font-size:36px}.combat-hero-showcase .combat-hero-portrait{height:290px;min-height:290px;flex-basis:290px}.combat-hero-showcase .combat-health-number{font-size:25px}.combat-reference-power-title{padding:7px 9px;gap:8px}.combat-reference-power-title h4{font-size:17px}.combat-reference-power-body p{font-size:12px}}

.combat-reference-power-title>span{margin:0}

/* Tighter combat poster, retaining full ability descriptions. */
.combat-hero-showcase .combat-hero-information{padding:20px 24px}
.combat-hero-showcase .combat-hero-heading{padding-bottom:12px;margin-bottom:12px}
.combat-hero-showcase .combat-hero-heading .eyebrow{margin-bottom:7px}
.combat-hero-showcase .combat-hero-heading h2{font-size:clamp(32px,3.8vw,52px);margin:4px 0 10px}
.combat-hero-showcase .combat-vitals{padding-bottom:10px!important;margin-bottom:12px!important}
.combat-hero-showcase .combat-vitals .session-panel-heading{margin-bottom:4px}
.combat-hero-showcase .combat-vitals progress{margin:7px 0;height:6px}
.combat-hero-showcase .combat-quick-stats{padding-top:8px;margin-top:7px;gap:5px}
.combat-hero-showcase .combat-quick-stats strong{font-size:19px;margin:4px 0 0}
.combat-hero-showcase .combat-hero-attacks{margin-bottom:13px}
.combat-hero-showcase .combat-hero-attacks button{padding:9px 7px}
.combat-hero-showcase .combat-hero-attacks strong{margin:5px 0;font-size:16px}
.combat-hero-showcase .combat-hero-damage-host .session-panel-heading{margin-bottom:9px}
.combat-hero-showcase .combat-basic-damage{padding:8px 10px;margin-bottom:10px;gap:8px}
.combat-hero-showcase .combat-basic-damage strong{font-size:20px;margin:3px 0}
.combat-hero-showcase .combat-basic-damage small{font-size:9px;line-height:1.4}
.combat-hero-showcase .combat-reference-power{margin:9px 0}
.combat-hero-showcase .combat-reference-power-title{padding:5px 10px}
.combat-hero-showcase .combat-reference-power-body{padding:8px 10px}
.combat-hero-showcase .combat-reference-power-footer{padding:6px 10px}
@media(max-width:760px){.combat-hero-showcase .combat-hero-information{padding:17px}.combat-hero-showcase .combat-hero-portrait{height:280px;min-height:280px;flex-basis:280px}.combat-hero-showcase .combat-hero-heading h2{font-size:36px}}
@media(max-width:430px){.combat-hero-showcase .combat-hero-information{padding:14px}.combat-hero-showcase .combat-hero-portrait{height:250px;min-height:250px;flex-basis:250px}.combat-hero-showcase .combat-hero-heading h2{font-size:32px}}

.hero-reference>.hero-portrait-settings{width:100%;min-width:0}.hero-portrait-settings .hero-portrait-editor{margin-top:0}

.combat-ability-pager{position:absolute;z-index:2;inset:50% 4px auto;display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0;transform:translateY(-50%);pointer-events:none}.combat-ability-pager button{display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:0;font:700 24px/1 Arial,sans-serif;border-radius:50%;background:#e7effa;color:#24588c;border-color:#bdd0e6;box-shadow:0 2px 8px #17396024;pointer-events:auto}.combat-ability-pager button:disabled{opacity:.4;cursor:default}.combat-ability-page-count{position:absolute;top:-25px;left:50%;transform:translateX(-50%);font-size:11px;color:#546f8b;min-width:48px;text-align:center;font-variant-numeric:tabular-nums;pointer-events:none}.combat-hero-damage-host .combat-reference-power{position:relative;padding-right:44px!important;padding-left:44px!important}.combat-hero-damage-host .combat-reference-power[hidden]{display:none!important}
.combat-hero-damage-host .combat-ability-page-count{top:0;width:1px;height:1px;min-width:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.combat-hero-damage-host .combat-reference-power{padding-right:0!important;padding-left:0!important;overflow:hidden!important}
.combat-hero-damage-host .combat-ability-pager{position:static;inset:auto;transform:none;justify-content:flex-end;gap:6px;margin:0 0 6px;pointer-events:auto}
.combat-hero-damage-host .combat-ability-pager button{width:27px;height:26px;min-width:27px;border:1px solid #c5d4e5;background:transparent;color:#748da8;box-shadow:none;font-size:19px;opacity:.82;pointer-events:auto}
.combat-hero-damage-host .combat-ability-pager button:hover:not(:disabled){background:#dce7f4;color:#345b83;opacity:1}
.combat-hero-damage-host .combat-reference-power-footer small{display:none}

.extra-health-meter{margin:12px 0}.extra-health-bar{display:flex;width:100%;height:9px;border-radius:4px;background:#eadce1;overflow:hidden}.extra-health-bar>span{display:block;height:100%;flex:0 0 auto}.extra-health-normal{background:#b6354d}.extra-health-shield{background:#929ba8}.extra-health-legend{display:flex;align-items:center;justify-content:flex-start;gap:5px;font-size:10px;line-height:1.5;color:#586f85;margin:7px 0 0}.extra-health-legend>span{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:2px;background:#929ba8}.extra-health-legend b{color:#111}.extra-health-controls{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0 0;padding-top:12px;border-top:1px solid #d8e2ed;text-align:left}.extra-health-controls>label{flex:1;min-width:90px;max-width:140px;font-size:9px}.extra-health-controls input{margin-top:5px;width:100%;padding:8px;min-width:0;font-size:14px}.extra-health-controls button{font-size:11px;min-height:35px;padding:8px 10px}.extra-health-controls output{display:block;flex-basis:100%;font-size:11px;color:#536c87}.extra-health-controls [data-clear-extra-health]{background:transparent;color:#697e95}.hero-reference .resource-readout .extra-health-controls input{font-size:15px}.combat-hero-showcase .extra-health-meter{margin:8px 0}.combat-hero-showcase .extra-health-legend{font-size:10px}
@media(max-width:430px){.extra-health-controls>label{max-width:none;flex-basis:100%}.extra-health-controls button{flex:1}.extra-health-controls input{font-size:16px}}
