/* Compact hero navigation and formation controls share the panel's scroll area. */
.hero-wallet{position:sticky;top:0;z-index:9;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0;background:#102b38;box-shadow:0 -10px 0 #102b38,0 6px 12px #061b2855;border-radius:8px}
.hero-wallet>span{display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:3px 5px;padding:9px 5px;font-size:11px;text-align:center;line-height:1.4;grid-column:auto!important}.hero-wallet b{color:#f4d899;font-variant-numeric:tabular-nums}
.hero-section-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}.hero-section-tabs button{white-space:normal;min-height:46px;font-size:12px;padding:9px}.hero-section-tabs .selected{border-color:#e7cd86;background:#31554f;color:#f8e2a9}
.hero-tier-section{margin:12px 0;padding:12px}.hero-tier-section>header{margin-bottom:12px}.hero-tier-section header p{font-size:11px;line-height:1.5}.hero-tier-section header small{font-size:10px}.hero-roster-card{min-width:0}.hero-roster-card>span:not(.hero-portrait){font-size:11px;line-height:1.4}.hero-roster-card .hero-growth-badge{display:block;padding:5px 6px;border-radius:5px;border:1px solid #718da74d;background:#233b49;color:#b9c8d1;font-size:10px!important;line-height:1.4}.hero-roster-card .hero-growth-badge.ready{color:#a6f2cd;border-color:#61b28d;background:#205046}.hero-roster-card .hero-growth-badge.ascend-ready{color:#ffe3a0;border-color:#cfb06d;background:#49432e}.hero-roster-card .hero-growth-badge.materials-ready{color:#c8c4ff;border-color:#8d82ba}.hero-growth-materials{display:grid;gap:4px;margin-top:3px}.hero-growth-materials small{font-size:10px;line-height:1.4}.hero-growth-materials .enough{color:#94dfbd}.hero-growth-materials .needed{color:#e9b5a1}
.hero-results-compact{padding:12px;border:1px solid #5d7882;border-radius:10px;background:#1a3441}.hero-results-compact>summary{min-height:26px;cursor:pointer;font-size:13px;color:#ecd396;line-height:26px}.hero-results-compact .hero-result-grid{margin-top:12px}.hero-results-compact:not([open])>.hero-result-grid{display:none}.hero-profile-toolbar{position:sticky;top:0;z-index:9;background:#132e3b;padding:8px;margin:-8px -8px 12px;box-shadow:0 -12px 0 #132e3b,0 5px 10px #051b2855;flex-wrap:wrap}.hero-profile-toolbar>span{font-size:11px}.hero-profile-toolbar .hero-mark-balance{color:#f1d89a;font-size:12px;white-space:nowrap}.hero-profile h2:focus,.legion-editor h3:focus{outline:none}
.legion-switcher{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:9;padding:8px 0;margin:0;background:#102b38;box-shadow:0 -12px 0 #102b38,0 6px 12px #051b2855}.legion-tab{display:grid;gap:3px;justify-items:center;align-content:center;min-width:0;min-height:78px;padding:8px 4px;border:1px solid #698993;border-radius:9px;background:linear-gradient(#264653,#18323f);color:#d7e6df;font:inherit;touch-action:manipulation}.legion-tab>span{font-size:21px;line-height:1.1;color:#c9c1ed}.legion-tab>b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.legion-tab>small{font-size:9px;line-height:1.4;color:#adc9c2}.legion-tab.selected{background:linear-gradient(#42675b,#294b47);border-color:#eed08a;box-shadow:inset 0 -3px 0 #e9c879}.legion-tab.empty{border-style:dashed;opacity:.8}.legion-editor{margin-top:10px;scroll-margin-top:100px}.legion-hero-profile{display:grid;justify-items:center;gap:5px;background:transparent;color:#bde8d9;padding:0;width:100%;border:0;font:inherit;cursor:pointer}.legion-hero-profile .hero-portrait{width:100%}.legion-hero-profile small{font-size:10px;line-height:1.4}.legion-hero-profile:focus-visible{outline:2px solid #f0d392;outline-offset:4px;border-radius:9px}.legion-hero-profile.empty .empty-hero{width:100%}.legion-reserves{padding:12px;margin:12px 0;border:1px solid #557c7b;border-radius:10px}.legion-reserves summary{cursor:pointer;font-size:12px;color:#c4ddd3}.legion-reserves .legion-free{padding:10px;margin:10px 0 0}.legion-guide{margin:12px 0}
.world-beacon-progress{position:absolute;top:39px;left:10px;z-index:7;touch-action:manipulation}.world-beacon-chip{display:grid;gap:3px;min-height:44px;padding:6px 9px;max-width:160px;background:#163745ee;border:1px solid #b2ae7699;border-radius:9px;color:#f3dca2;text-align:left;font:inherit;box-shadow:0 2px 6px #001b2866}.world-beacon-chip span{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.world-beacon-chip small{font-size:9px;color:#c0ddcf}.world-beacon-chip.quota-full{border-color:#e9c36c}.beacon-quota-meter{height:8px;background:#2b4b55;overflow:hidden;border-radius:5px;margin:14px 0}.beacon-quota-meter i{display:block;height:100%;background:linear-gradient(90deg,#62c5bd,#d8c58c)}.beacon-hunt-progress h4{color:#ecd396}
@media(max-width:600px){.hero-screen .panel{padding:12px}.hero-roster-card b{font-size:13px}.hero-roster-card>small{font-size:10px}.hero-profile-toolbar{gap:7px}.hero-profile-toolbar button{padding:8px;font-size:11px;min-height:42px}.hero-profile-toolbar>span:last-child{margin-left:auto;font-size:10px}.legion-switcher{gap:4px}.legion-tab{min-height:73px}.legion-editor{padding:10px}.legion-row{padding:10px}.hero-tier-section{padding:10px}.hero-wallet>span{font-size:10px}.hero-wallet{gap:4px}.hero-section-tabs button{font-size:11px}}
@media(max-width:350px){.hero-profile-toolbar>span:last-child{display:none}.legion-tab>b{font-size:10px}.legion-tab>small{font-size:8px}.hero-roster{gap:7px}.hero-roster-card{padding:7px}.hero-growth-materials small{font-size:9px}.hero-roster-card .hero-growth-badge{font-size:9px!important}}
@media(max-height:500px){.legion-tab{min-height:56px;padding:5px}.legion-tab>span{font-size:17px}.hero-wallet>span{padding:6px}.world-beacon-progress{top:34px}.hero-screen .panel{padding-top:10px}}

.hero-profile-toolbar{height:64px;box-sizing:border-box;flex-wrap:nowrap}.hero-profile-toolbar button{min-height:42px;padding:8px}.hero-profile-actions{top:64px;z-index:8}.hero-army-nav>small{font-size:11px;line-height:1.5;color:#b1c9c4}.nexus-directory>summary{font-size:11px;cursor:pointer}

.hero-return-navigation{margin:0 0 12px}.hero-return-navigation>button{min-height:44px;padding:10px 16px}
