body[data-catalog-page=heroes] .catalog-layout{display:block}
body[data-catalog-page=heroes] .heroes-profile-link{font-size:12px;color:var(--mint);border:1px solid var(--line);border-radius:8px;padding:9px 12px;white-space:nowrap}
body[data-catalog-page=heroes] .catalog-list{display:block;min-width:0;max-height:min(70dvh,720px);overflow-y:auto;overscroll-behavior:contain;scrollbar-color:var(--line) var(--surface);scrollbar-gutter:stable}
body[data-catalog-page=heroes] .avatar-group{padding:12px!important;margin:0 0 12px!important;border-radius:12px!important}
body[data-catalog-page=heroes] .avatar-group-heading{margin-bottom:8px}
body[data-catalog-page=heroes] .avatar-group-title{font-size:13px;text-transform:none;letter-spacing:0;margin:0;gap:6px}
.hero-list-rows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
body[data-catalog-page=heroes] button.hero-list-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:62px;text-align:left;padding:8px;border:1px solid transparent;border-radius:8px;background:transparent!important;color:var(--text)!important;cursor:pointer}
body[data-catalog-page=heroes] button.hero-list-row:hover{background:var(--surface-raised)!important}
body[data-catalog-page=heroes] button.hero-list-row.selected{background:var(--accent-soft)!important;border-color:var(--mint)!important;color:var(--text)!important;font-weight:400!important}
.hero-list-row .catalog-portrait{width:42px!important;height:42px!important;flex:none}
.hero-list-copy{min-width:0;display:grid;gap:3px}
.hero-list-copy strong{font-size:13px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.hero-list-copy small{font-size:11px;color:var(--muted);line-height:1.3}
.hero-owned-marker{margin-left:auto;font-size:9px;flex:none;color:var(--mint);border:1px solid #345b54;padding:2px 4px;border-radius:4px}
body[data-catalog-page=heroes].catalog-card-open .catalog-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px}
body[data-catalog-page=heroes].catalog-card-open .catalog-layout>section:first-child{position:sticky;top:20px;min-width:0}
body[data-catalog-page=heroes].catalog-card-open .catalog-list{max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;padding-right:5px}
body[data-catalog-page=heroes].catalog-card-open .hero-list-rows{grid-template-columns:minmax(0,1fr)}
body[data-catalog-page=heroes].catalog-card-open .entity-panel{position:relative;top:auto;max-height:none;overflow:visible;padding:20px!important;min-width:0}
body[data-catalog-page=heroes] .entity-header{align-items:center;margin-bottom:16px}
body[data-catalog-page=heroes] .entity-header h2{font-size:23px;line-height:1.25}
body[data-catalog-page=heroes] .entity-panel h3{margin:0 0 10px;font-size:14px}
.hero-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.hero-section{min-width:0}
.hero-facts>h3:not(:first-child){margin-top:16px!important}
body[data-catalog-page=heroes] .entity-stats{gap:5px;margin:0 0 10px}
body[data-catalog-page=heroes] .entity-stats>div{padding:7px 9px;display:block}
body[data-catalog-page=heroes] .hero-current-stats .stat-hp{grid-column:1/-1}
body[data-catalog-page=heroes] .entity-stats dt{display:flex;align-items:center;gap:5px;font-size:11px;min-height:20px}
body[data-catalog-page=heroes] .entity-stats dd{font-size:13px;line-height:1.45;margin:3px 0 0;word-break:normal;overflow-wrap:anywhere}
body[data-catalog-page=heroes] .entity-note{font-size:11px!important;line-height:1.5;margin:8px 0 12px}
.hero-bonus-metrics{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:6px}
.hero-bonus-metrics li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;border-bottom:1px solid var(--line);padding-bottom:6px}
.hero-bonus-metrics li>span{display:flex;align-items:center;gap:6px}
.hero-bonus-metrics strong{color:var(--mint);font-size:14px}
.hero-skills{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
body[data-catalog-page=heroes] .skill-card{padding:10px 12px;margin:0 0 8px;border-radius:7px}
body[data-catalog-page=heroes] .skill-card h4{font-size:12px;margin:0}
body[data-catalog-page=heroes] .skill-card p{font-size:12px;line-height:1.6;margin:5px 0 0}
.hero-skill-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hero-skill-heading>span{font-size:10px;color:var(--muted);white-space:nowrap}
.hero-skill{display:flex;align-items:flex-start;gap:12px}
.hero-skill-icon{flex:none;border-radius:6px;object-fit:contain}
.hero-skill-copy{min-width:0;flex:1}
.hero-symbol{flex:none;object-fit:contain}
body[data-catalog-page=heroes] .hero-alliances details{padding:8px 10px;margin:8px 0;border:1px solid var(--line);border-radius:7px}
body[data-catalog-page=heroes] .hero-alliances summary{display:flex;align-items:center;gap:7px;min-height:24px;cursor:pointer}
body[data-catalog-page=heroes] .hero-alliances summary::after{content:'+';margin-left:auto;color:var(--muted)}
body[data-catalog-page=heroes] .hero-alliances details[open]>summary::after{content:'−'}
.hero-alliances ul{padding-left:15px;margin:8px 0 2px;font-size:11px;line-height:1.65}
.hero-alliances li+li{margin-top:5px}
body[data-catalog-page=heroes] .entity-panel details{margin-top:14px;padding-top:11px}
body[data-catalog-page=heroes] .entity-panel details>summary{font-size:12px;line-height:1.5;min-height:32px}
body[data-catalog-page=heroes] .entity-panel details[open]>summary{margin-bottom:12px}
body[data-catalog-page=heroes] .hero-my-settings .hero-editor{border:0;padding:0;margin:0}
@media(max-width:1100px) and (min-width:901px){body[data-catalog-page=heroes].catalog-card-open .catalog-layout{grid-template-columns:250px minmax(0,1fr)}.hero-overview{gap:12px}}
@media(max-width:900px){.hero-list-rows{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-catalog-page=heroes].catalog-card-open .catalog-layout{display:flex;flex-direction:column}body[data-catalog-page=heroes].catalog-card-open .catalog-layout>section:first-child{position:static}body[data-catalog-page=heroes].catalog-card-open .catalog-list{max-height:420px}body[data-catalog-page=heroes].catalog-card-open .hero-list-rows{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-catalog-page=heroes].catalog-card-open .entity-panel{order:-1}}
@media(max-width:600px){.hero-overview{grid-template-columns:minmax(0,1fr);gap:16px}body[data-catalog-page=heroes] .entity-header h2{font-size:20px}.hero-list-copy strong{font-size:12px}.hero-list-copy small{font-size:10px}body[data-catalog-page=heroes] button.hero-list-row{padding:7px;gap:7px}.hero-list-row .catalog-portrait{width:36px!important;height:36px!important}.hero-owned-marker{display:none}body[data-catalog-page=heroes] .page-heading{gap:10px;flex-wrap:wrap}}
@media(max-width:420px){.hero-list-rows,body[data-catalog-page=heroes].catalog-card-open .hero-list-rows{grid-template-columns:minmax(0,1fr)}.hero-list-copy strong{font-size:13px}.hero-list-copy small{font-size:11px}.hero-owned-marker{display:inline}}
/* Compact hero dossier: stats and calculator above skills and recruitment. */
body[data-catalog-page=heroes] .hero-overview{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:16px}
body[data-catalog-page=heroes] .hero-overview-single{grid-template-columns:minmax(0,1fr)}
.hero-calculator-slot{min-width:0}
body[data-catalog-page=heroes] .hero-calculator-slot>.hero-calculator{margin:0!important;padding:11px 12px!important}
body[data-catalog-page=heroes] .hero-calculator-slot .hero-stat-fields{gap:8px;margin:12px 0}
body[data-catalog-page=heroes] .hero-calculator-slot .hero-control-heading{margin-top:9px}
body[data-catalog-page=heroes] .hero-calculator-slot .hero-multiplier-controls{gap:10px 16px;margin:10px 0}
.hero-portrait-frame{display:inline-flex;flex:none;padding:2px;border:3px solid var(--hero-portrait-color,#c4c4c4);border-radius:12px;line-height:0}
.hero-portrait-frame>.catalog-portrait{display:block;border-radius:7px}
.hero-header-facts{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.hero-alliance-icons{display:inline-flex;align-items:center;gap:6px}
.hero-alliance-item{position:relative;display:inline-flex;align-items:center;line-height:normal}
.hero-alliance-badge{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:6px;cursor:help}
.hero-alliance-badge:focus-visible{outline:2px solid var(--mint);outline-offset:2px}
.hero-alliance-tooltip{position:absolute;right:0;top:calc(100% + 7px);z-index:100;width:min(290px,calc(100vw - 48px));padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--surface-raised);box-shadow:0 8px 24px #0006;color:var(--text);font-size:11px;line-height:1.6;opacity:0;visibility:hidden;pointer-events:none;text-align:left;font-weight:400}
.hero-alliance-tooltip>strong{display:block;margin-bottom:6px;font-size:12px}
.hero-alliance-tooltip>.hero-alliance-bonus{display:flex;align-items:flex-start;gap:9px;margin-top:8px}
.hero-alliance-threshold{display:flex;gap:2px;width:25px;flex:none;margin-top:1px}
.hero-alliance-threshold>span{display:flex;flex-direction:column;gap:2px}
.hero-alliance-threshold i{display:block;width:7px;height:20px;background:var(--alliance-color)}
.hero-alliance-tooltip b{color:var(--mint);font-weight:600}
.hero-alliance-item:hover .hero-alliance-tooltip,.hero-alliance-item:focus-within .hero-alliance-tooltip{opacity:1;visibility:visible}
body[data-catalog-page=heroes] .hero-skills{margin-top:12px;padding-top:10px}
body[data-catalog-page=heroes] .hero-skills>h3{font-size:12px;margin-bottom:7px}
.hero-skill-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
body[data-catalog-page=heroes] .hero-skill-list>.skill-card{margin:0;padding:8px 9px;gap:9px}
body[data-catalog-page=heroes] .hero-skill-list .hero-skill-icon{width:30px;height:30px}
body[data-catalog-page=heroes] .hero-skill-list h4{font-size:10px}
body[data-catalog-page=heroes] .hero-skill-list p{font-size:11px;line-height:1.45;margin-top:3px}
body[data-catalog-page=heroes] .hero-recruitment-details{margin-top:12px;padding-top:9px}
body[data-catalog-page=heroes] .hero-recruitment-details>summary{font-weight:600}
body[data-catalog-page=heroes] .hero-recruitment{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
body[data-catalog-page=heroes] .hero-recruitment>div{padding:6px 8px}
body[data-catalog-page=heroes] .hero-recruitment dt{font-size:10px;line-height:1.4}
body[data-catalog-page=heroes] .hero-recruitment dd{font-size:12px}
.hero-current-stats .hero-bonus-metrics{margin-top:15px}
@media(max-width:700px){body[data-catalog-page=heroes] .hero-overview{grid-template-columns:minmax(0,1fr)}.hero-skill-list{grid-template-columns:minmax(0,1fr)}body[data-catalog-page=heroes] .hero-recruitment{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-calculator-slot{margin-top:4px}}

.hero-acquisition{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;padding:10px 12px;margin:12px 0;border:1px solid var(--line);border-radius:8px;background:var(--field);font-size:14px}
.hero-acquisition strong{font-weight:750;color:var(--mint)}
.hero-acquisition span{color:var(--text)}
.hero-observed-stats .hero-main-stat dt,.hero-observed-stats .hero-main-stat dd{font-weight:800;color:#ffb056}
