body[data-catalog-page=heroes] .hero-calculator{border:1px solid var(--line);border-radius:10px;padding:12px 14px!important;margin:18px 0!important;background:var(--surface)}
body[data-catalog-page=heroes] .hero-calculator>summary{font-size:14px!important;font-weight:600;cursor:pointer}
.hero-control-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin:12px 0 8px}
.hero-control-heading strong{font-size:11px;font-weight:600}
.hero-rarity-options{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;max-width:440px;padding:3px}
body[data-catalog-page=heroes] button.hero-rarity-option{width:100%;min-width:0;height:29px;min-height:0;padding:0;border-radius:5px;cursor:pointer;opacity:.3;box-sizing:border-box;transition:opacity .12s}
body[data-catalog-page=heroes] button.hero-rarity-option[aria-pressed=true]{opacity:1;outline:2px solid var(--text);outline-offset:2px}
body[data-catalog-page=heroes] button.hero-rarity-option:hover{opacity:1}
.hero-stat-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;margin:18px 0}
.hero-stat-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:0}
.hero-stat-fields input[type=number]{box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:8px 49px 8px 8px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--bg);font:inherit;font-size:12px;appearance:textfield;-moz-appearance:textfield}
.hero-stat-fields input:focus-visible,.hero-calculator button:focus-visible{outline:2px solid var(--mint);outline-offset:3px}
.hero-stat-number{position:relative;display:flex;align-items:center}
.hero-stat-number input::-webkit-inner-spin-button{appearance:none}
body[data-catalog-page=heroes] #hero-stat-form .hero-stat-number button[data-stat-max]{position:absolute;right:5px;top:50%;transform:translateY(-50%);box-sizing:border-box;width:39px;min-width:0;height:28px;min-height:28px;max-height:28px;padding:4px;border:0!important;border-radius:4px;background:transparent!important;box-shadow:none!important;outline:0!important;color:var(--mint)!important;font-size:10px;line-height:20px;cursor:pointer}
body[data-catalog-page=heroes] #hero-stat-form .hero-stat-number button[data-stat-max]:focus-visible{box-shadow:inset 0 0 0 1px var(--mint)!important}
.hero-star-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:440px}
.hero-star-group>span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
.hero-star-group>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px}
body[data-catalog-page=heroes] button.hero-star-button{min-width:0;width:100%;min-height:32px;padding:3px 0;border:0;border-radius:5px;background:transparent!important;cursor:pointer;opacity:.22;filter:grayscale(.55)}
body[data-catalog-page=heroes] button.hero-star-button[aria-pressed=true],body[data-catalog-page=heroes] button.hero-star-button:hover{opacity:1;filter:none}
.hero-star-button img{width:24px;height:24px;max-width:100%;object-fit:contain;vertical-align:middle}
.hero-multiplier-controls{display:flex;flex-wrap:wrap;gap:14px 30px;margin:16px 0}
.hero-mode-buttons{display:flex;gap:6px;flex-wrap:wrap}
body[data-catalog-page=heroes] button.hero-stat-toggle{font:inherit;font-size:13px;font-weight:600;min-height:35px;min-width:48px;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:var(--bg)!important;color:var(--muted)!important;cursor:pointer}
body[data-catalog-page=heroes] button.hero-stat-toggle[aria-pressed=true]{background:var(--mint)!important;border-color:var(--mint);color:#101c18!important}
.hero-stat-talent-actions{display:flex;gap:7px;margin:8px 0}
.hero-stat-talent-actions button{min-height:30px;font-size:11px;padding:5px 10px}
.hero-stat-talent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0 14px}
.hero-stat-talent-list>label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-height:38px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;cursor:pointer;font-size:11px}
.hero-stat-talent-list input{accent-color:var(--mint);width:16px;height:16px;flex:none}
.hero-stat-talent-list>label:has(input:checked){border-color:var(--mint);background:var(--accent-soft)}
.hero-stat-talent-list span{display:inline-flex;align-items:center;gap:4px}
.hero-stat-talent-list img{width:16px;height:16px;object-fit:contain}
body[data-catalog-page=heroes] .hero-current-stats .hero-live-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body[data-catalog-page=heroes] .hero-current-stats .hero-live-stats .stat-hp{grid-column:auto}
body[data-catalog-page=heroes] .hero-live-stats dd{font-size:14px;font-weight:400;font-variant-numeric:tabular-nums}
.hero-live-stats dd small{display:block;color:#a3cfff;font-size:10px;font-weight:400;line-height:1.5;margin-top:3px}
body[data-catalog-page=heroes] .hero-live-stats .hero-main-stat [data-stat-result]{color:#ffb056;font-weight:800}
.hero-live-rarity strong{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.hero-live-rarity i{display:inline-block;width:9px;height:9px;border-radius:2px}
.hero-stat-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 4px}
.hero-stat-actions button{font-size:12px;padding:9px 12px}
.hero-stat-actions span{color:var(--muted);font-size:11px}
.hero-stat-error{color:#ff9e92;font-size:12px;line-height:1.5;margin:10px 0}
.hero-stat-rules p{font-size:11px;line-height:1.65;color:var(--muted);margin:8px 0}
@media(max-width:1100px){.hero-stat-talent-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:500px){.hero-stat-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-rarity-options{gap:4px}.hero-star-groups{gap:7px}.hero-stat-talent-list{grid-template-columns:minmax(0,1fr)}.hero-stat-actions{align-items:flex-start;flex-direction:column}body[data-catalog-page=heroes] .hero-live-stats dd{font-size:13px}}

body[data-catalog-page=heroes] .hero-live-stats dt{font-weight:400}
body[data-catalog-page=heroes] .hero-live-stats .hero-main-stat dt{font-weight:800}
