/* Shared Command Center shell. Components continue using the active theme tokens. */
.command-ui{--site-radius:14px;--site-max:1480px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--theme-page,#101725);color:var(--theme-text,#fff1d1)}
.command-ui *{box-sizing:border-box}
.command-ui :is(button,input,select,textarea){font-family:inherit}
/* Keep component dimensions independent of palette typography rules. */
.command-ui .command-masthead,.command-ui.dashboard .landing-panel{line-height:1.5}
.command-ui.dashboard .recent-heading h3{line-height:1.22}
.command-ui.dashboard .quick-search-tabs{border-bottom:1px solid var(--theme-border)}
.command-ui.dashboard .quick-search-tab{border:0;border-bottom:2px solid transparent;line-height:1.5}
.command-ui.dashboard .quick-search :is(input,select,textarea){font-size:13px;line-height:1.5}
.command-ui.dashboard .clan-search-modes button{font-size:11px;font-weight:800;line-height:1.5}
.command-ui :is(main.max-w-7xl,.page,.cc-main){width:100%;max-width:var(--site-max);margin-inline:auto;padding:24px}
.command-ui :is(.command-header,.site-header){position:sticky;top:0;z-index:40;border-bottom:1px solid var(--theme-border,#35465d);background:var(--theme-inset,#0c1320);box-shadow:0 4px 22px #0002}
.command-ui .command-header>.max-w-7xl,.command-ui .header-inner,.command-ui.cc-page>header{max-width:var(--site-max);margin:auto;padding:12px 24px}
.command-ui .header-inner{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.command-brand{display:inline-flex;align-items:center;gap:12px;flex:0 0 auto;color:var(--theme-text,#fff1d1);text-decoration:none;min-width:0}
.command-brand-mark{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border:1px solid var(--theme-blue-border,#587394);border-radius:11px;background:var(--theme-raised,#243248);box-shadow:inset 0 1px #fff1;color:var(--theme-warning,#f2c35b);font-size:15px;font-weight:900}
.command-brand-copy{display:grid;gap:3px;min-width:0}.command-brand-copy strong{font-size:18px;line-height:1.2}.command-brand-copy small{font-size:11px;color:var(--theme-muted,#aab9ce)}
.command-ui .home-brand{gap:12px}.command-ui .home-brand>div:first-child{width:44px;height:44px;border:1px solid var(--theme-blue-border,#587394);border-radius:11px;background:var(--theme-raised,#243248)}
.command-ui .home-brand h1{font-size:20px;line-height:1.2}.command-ui .home-brand p{margin-top:4px}
.command-ui .command-header .brand{display:none}
.command-header-nav{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:1;min-width:0;flex-wrap:wrap}
.command-header-nav :is(.back-link,.header-profile-link){margin:0;padding:8px 10px;border:1px solid var(--theme-border,#35465d);border-radius:8px;color:var(--theme-secondary,#d7e0ed);text-decoration:none;font-size:11px;white-space:nowrap}
.command-ui .command-header .search-form{margin:0;display:flex;gap:6px;flex:0 1 265px}.command-ui .command-header .search-form input{min-width:0;width:100%}
.command-ui .home-header-links{gap:9px;flex-wrap:wrap}.command-ui .home-header-links>a{padding:11px 14px;border-radius:9px;font-size:12px}
.command-ui .appearance-controls{gap:10px}.command-ui .theme-control select,.command-ui [data-language-switch]{max-width:132px;min-height:38px;border-radius:8px}
.command-masthead{width:calc(100% - 48px);position:relative;isolation:isolate;overflow:hidden;max-width:calc(var(--site-max) - 48px);min-height:170px;margin:24px auto 0;padding:30px 260px 30px 28px;border:1px solid var(--theme-border,#35465d);border-radius:16px;background:#111d31;color:#fff1d1}
.command-masthead:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b1527f5 10%,#0c172cd9 55%,#0c172c77),url('/assets/images/optimized/fortress-backdrop.webp') center 48%/cover no-repeat}
.command-masthead h1,.command-masthead h2{margin:7px 0 9px;color:#fff1d1!important;font-size:clamp(23px,3vw,32px);line-height:1.2}
.command-masthead p{max-width:700px;margin:0;color:#c2d0e3!important;font-size:13px;line-height:1.6}
.command-kicker{color:#f2c35b;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.command-masthead-art{position:absolute;right:35px;bottom:-20px;width:190px;height:205px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 4px 12px #0005)}
.command-masthead-art.art-secondary{right:160px;width:130px;bottom:-25px;opacity:.9}
html[data-page=home] .clan-masthead{display:none}
html[data-page=clan] .home-showcase{display:none}
.command-ui :is(.panel,.cc-panel,.clan-overview,.clan-war-log,.capital-district-panel,.rankings-panel,.raid-panel,.player-slot){border-radius:var(--site-radius);border-color:var(--theme-border,#35465d);box-shadow:0 6px 22px var(--theme-shadow,#03071133)}
.command-ui .panel,.command-ui .cc-panel{padding:20px}
.command-ui :is(.profile-head,.stats,.compare-form,.cc-form,.clan-primary-tabs){border:1px solid var(--theme-border,#35465d);border-radius:var(--site-radius);background:var(--theme-panel,#1b2639)}
.command-ui .profile-head{padding:20px}.command-ui .profile-head h1{font-size:clamp(24px,3vw,32px)}
.command-ui .stats{overflow:hidden}.command-ui .stats>div{padding:16px}
.command-ui .compare-heading{margin:0 0 14px}.command-ui .compare-heading h1{font-size:20px}
.command-ui .tabs{padding:0 12px;background:var(--theme-inset,#0c1320);border-radius:10px 10px 0 0;overflow-x:auto;max-width:100%}
.command-ui .tabs :is(a,button){flex-shrink:0;white-space:nowrap}
.command-ui .clan-primary-tabs{padding:6px;gap:6px}
.command-ui .clan-primary-tabs a{border-radius:9px;padding-block:12px}
.command-ui :is(.clan-profile-card,.player-overview-cards>div,.score-tile,.compare-card-stats>div){border-radius:10px}
.command-ui .cc-main>h1{margin:0 0 8px;font-size:20px}.command-ui .cc-main>p{margin-top:0}
.command-ui .cc-form{gap:12px;padding:18px}.command-ui .cc-form label{flex:1 1 220px;min-width:0}.command-ui .cc-form input{width:100%}
.command-ui .cc-table{table-layout:fixed}.command-ui .cc-table :is(th,td){overflow-wrap:anywhere}
.home-showcase{position:relative;isolation:isolate;overflow:hidden;min-height:360px;margin:-24px -24px 0;padding:48px 5% 88px;color:#fff1d1;background:#101c31}
.home-hero-picture{position:absolute;inset:0;z-index:-2}.home-hero-picture img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.home-showcase:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b152705,#0b152728 30%,#0b1527b8 62%,#0b1527dc),linear-gradient(0deg,#101725,transparent 40%)}
.command-ui .home-showcase .landing-copy{width:58%;margin:0 0 0 auto;max-width:760px;padding-top:8px}
.command-ui .home-showcase .landing-eyebrow{color:#f2c35b;font-size:11px;letter-spacing:.17em}
.command-ui .home-showcase h2{color:#fff1d1;font-size:clamp(27px,3.5vw,44px);line-height:1.12;text-wrap:balance;text-shadow:0 2px 12px #0008}
.command-ui.dashboard .home-showcase .landing-description{color:#d7e0ed;max-width:590px;font-size:14px;line-height:1.6}
.command-ui.dashboard .landing-panel{position:relative;margin:-46px 0 26px;padding:0;border:0;background:transparent;box-shadow:none}
.command-ui .landing-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.command-ui .landing-sidebar{padding:0;border:0}.command-ui .recent-overview{gap:10px}
.command-ui .landing-sidebar .recent-panel{padding:10px;border-radius:12px;background:var(--theme-inset,#0c1320);box-shadow:0 4px 18px var(--theme-shadow,#03071133)}
.command-ui .recent-heading{align-items:center}.command-ui .recent-heading h3{font-size:12px;font-weight:800}
.command-ui .recent-list{margin-top:7px}.command-ui .recent-item{padding:5px 6px;min-height:40px}
.command-ui .recent-avatar{width:28px;height:28px;flex-basis:28px}.command-ui .recent-copy{gap:1px}.command-ui .recent-copy strong{font-size:11px}.command-ui .recent-copy small{font-size:10px}
.command-ui .quick-search{max-width:none;position:relative;border:1px solid var(--theme-blue-border,#587394);border-radius:15px;background:var(--theme-inset,#0c1320);box-shadow:0 12px 28px #0003,inset 0 0 0 4px var(--theme-panel,#1b2639);padding:4px}
.command-ui.dashboard .quick-search-tabs{padding:6px 6px 0;gap:4px;background:transparent;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.command-ui.dashboard .quick-search-tab{padding:13px 7px;font-size:12px;font-weight:750;border-radius:9px 9px 0 0;display:flex;align-items:center;justify-content:center;gap:7px}
.command-ui .quick-search-tab img{width:22px;height:24px;object-fit:contain;flex:0 0 auto}
.command-ui.dashboard .quick-search-tab.active{background:var(--theme-raised,#243248);border-bottom-color:var(--theme-gold-border,#90712f);color:var(--theme-text,#fff1d1)}
.command-ui .quick-search-form{padding:20px}.command-ui .quick-search-input-row input,.command-ui .compare-search-fields input{min-height:48px;border-radius:9px}
.command-ui.dashboard .quick-search-input-row button,.command-ui.dashboard .quick-search-submit-row button{min-height:48px;padding:12px 20px;border-radius:10px;font-size:13px;line-height:1.5;font-weight:700;box-shadow:0 4px 12px #0002}
.command-ui .landing-quick-access{margin-top:20px;border-top:0;padding-top:0}.command-ui .quick-access-heading{margin:0 0 10px}.command-ui .quick-access-heading .landing-eyebrow{color:var(--theme-text,#fff1d1);font-size:11px}
.command-ui.dashboard .quick-access-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.command-ui .quick-access-card{min-height:84px;position:relative;overflow:hidden;padding:12px;border-radius:12px;background:var(--theme-inset,#0c1320);border-color:var(--theme-border,#35465d)}
.command-ui .quick-access-icon{width:48px;height:52px;flex-basis:48px;border:0;background:none}
.quick-access-icon img{width:100%;height:100%;object-fit:contain}.command-ui .quick-access-card strong{font-size:12px}.command-ui .quick-access-card small{font-size:10px;white-space:normal}
.command-ui.dashboard .landing-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}
.command-ui.dashboard .landing-feature-card{position:relative;isolation:isolate;overflow:hidden;min-height:190px;padding:16px;border:1px solid var(--theme-blue-border,#587394);border-radius:13px;align-content:start;background:#111d31;gap:8px}
.feature-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center}
.landing-feature-card:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#081322e8,#081322b8 42%,#08132218 80%)}
.command-ui.dashboard .landing-feature-card :is(strong,p,a){position:relative;max-width:62%;margin:0;color:#fff1d1;line-height:1.4}
.command-ui.dashboard .landing-feature-card strong{font-size:14px}.command-ui.dashboard .landing-feature-card p{font-size:11px;color:#d7e0ed}.command-ui.dashboard .landing-feature-card a{align-self:end;margin-top:5px;color:#a4e9f0;font-size:11px}
.command-ui.dashboard .landing-feature-card>span{color:#f2c35b;font-size:10px;font-weight:800}
.command-ui .landing-stats{margin-top:16px;border-radius:12px;background:var(--theme-inset,#0c1320)}
.command-ui .landing-stats>div{position:relative;min-width:0;padding:14px 10px 14px 44px}.landing-stat-icon{position:absolute;left:10px;top:18px;width:26px;height:30px;object-fit:contain}
.command-ui .landing-stats strong{font-size:21px}.command-ui .landing-stats span{font-size:8px;overflow-wrap:anywhere}
.command-ui .access-overview{margin-top:20px}.command-ui .rankings-panel{margin-top:20px}
html[data-theme=light] .command-ui .command-masthead{border-color:#cfc4ae}
html[data-theme=light] .command-ui .quick-search{background:#fffefa;box-shadow:0 10px 24px #392b1812,inset 0 0 0 4px #f1ece1}
html[data-theme=light] .command-ui.dashboard .quick-search-tab.active{background:#fff2d1;color:#785407}
html[data-theme=light] .command-ui .quick-access-card,html[data-theme=light] .command-ui .recent-panel{background:#fffefa}
html[data-theme=light] .command-ui .home-showcase:after{background:linear-gradient(90deg,#0b152705,#0b152728 30%,#0b1527b8 62%,#0b1527dc),linear-gradient(0deg,#f6f4ee,transparent 28%)}
@media(max-width:1200px){.command-ui .landing-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.command-ui.dashboard .landing-features{grid-template-columns:1fr}.command-ui.dashboard .landing-feature-card{min-height:150px}.command-ui.dashboard .quick-access-grid{grid-template-columns:1fr}.command-ui .quick-access-card{min-height:70px}.command-ui .home-header-links .appearance-controls{border:0;margin:0;padding:0}.command-masthead{margin-inline:24px}}
@media(max-width:960px){.command-ui .landing-layout{grid-template-columns:minmax(0,1fr)}.command-ui .landing-sidebar{padding-top:6px}.command-ui .recent-overview{grid-template-columns:repeat(3,minmax(0,1fr))}.command-ui .recent-heading{align-items:start}.command-ui.dashboard .landing-features,.command-ui.dashboard .quick-access-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.command-ui.dashboard .landing-feature-card{min-height:190px}.command-ui .home-showcase .landing-copy{width:65%}.command-ui .home-header-links{justify-content:flex-start}.command-header-nav{flex-basis:100%;justify-content:flex-start}.command-ui .command-header .search-form{flex:1}.command-masthead-art{right:18px}.command-masthead{padding-right:230px}}
@media(max-width:700px){.command-ui :is(main.max-w-7xl,.page,.cc-main){padding:16px}.command-ui .command-header,.command-ui .site-header{position:relative}.command-ui .command-header>.max-w-7xl,.command-ui .header-inner,.command-ui.cc-page>header{padding:12px 16px}.command-brand-copy strong{font-size:16px}.command-ui .home-brand h1{font-size:17px}.command-ui .home-header-links{display:flex;gap:6px}.command-ui .home-header-links>a{padding:9px;font-size:10px}.command-ui .home-header-links .appearance-controls{width:100%;justify-content:flex-start;margin-top:4px}.command-ui .appearance-controls{gap:12px;justify-content:flex-start}.command-ui .header-inner .appearance-controls{margin:0}.command-header-nav{gap:7px}.command-header-nav .search-form{order:2;flex-basis:100%}.command-ui .command-header .search-form{flex-basis:100%}.command-masthead{width:calc(100% - 32px);max-width:calc(var(--site-max) - 32px);margin:16px auto 0;padding:22px 110px 22px 18px;min-height:150px}.command-masthead h1,.command-masthead h2{font-size:22px}.command-masthead p{font-size:11px}.command-masthead-art{right:-10px;bottom:-5px;width:120px;height:145px;opacity:.8}.command-masthead-art.art-secondary{display:none}.home-showcase{margin:-16px -16px 0;min-height:340px;padding:28px 24px 100px}.home-hero-picture img{object-position:center 72%}.command-ui .home-showcase .landing-copy{width:100%;margin:0;text-align:center;padding:0}.command-ui .home-showcase h2{font-size:28px}.command-ui.dashboard .home-showcase .landing-description{font-size:12px}.command-ui .home-showcase:after{background:linear-gradient(180deg,#0b1527a8,#0b152755 62%,#101725)}html[data-theme=light] .command-ui .home-showcase:after{background:linear-gradient(180deg,#0b1527a8,#0b152755 62%,#f6f4ee)}.command-ui .landing-panel{margin-top:-40px}.command-ui.dashboard .landing-features,.command-ui.dashboard .quick-access-grid{grid-template-columns:1fr}.command-ui .recent-overview{grid-template-columns:minmax(0,1fr)}.command-ui.dashboard .quick-search-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.command-ui.dashboard .quick-search-tab{font-size:11px;padding:11px 5px}.command-ui .quick-search-form{padding:14px 10px}.command-ui .quick-search-input-row{flex-wrap:wrap}.command-ui .quick-search-input-row input,.command-ui .quick-search-input-row button{width:100%}.command-ui.dashboard .landing-feature-card{min-height:170px}.command-ui .landing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.command-ui .landing-stats>div{padding-left:46px}.command-ui .panel,.command-ui .cc-panel{padding:14px}.command-ui .profile-head{padding:16px}.command-ui .stats>div{padding:12px}.command-ui .tabs{gap:16px}.command-ui .clan-primary-tabs{gap:5px}.command-ui .cc-form{padding:14px}.command-ui .cc-form label{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.command-ui *{scroll-behavior:auto!important}}

.command-ui .command-brand{color:var(--theme-text,#fff1d1)}
.command-ui .header-inner{width:100%}
.command-ui.cc-page>header{display:block;max-width:none;padding:0}

/* Artwork panels need light copy even when the surrounding page is light. */
html[data-theme] .command-ui.dashboard .landing-feature-card p{color:#d7e0ed}

/* Reuse the compressed fortress artwork for the leaderboard banner. */
.command-ui.dashboard .rankings-heading{min-height:150px;background:linear-gradient(90deg,#0b1527ed 0%,#0b1527b8 52%,#0b1527d9 100%),url('/assets/images/optimized/fortress-backdrop.webp') center 44%/cover no-repeat;border-bottom:1px solid var(--theme-border,#35465d)}
html[data-theme] .command-ui.dashboard .rankings-heading h2{color:#fff1d1;text-shadow:0 2px 8px #0006}
html[data-theme] .command-ui.dashboard .rankings-heading .rankings-eyebrow{color:#f2c35b}
html[data-theme] .command-ui.dashboard .rankings-heading .rankings-description{color:#d7e0ed;line-height:1.5}
html[data-theme] .command-ui.dashboard .rankings-heading .ranking-location-control{color:#d7e0ed}
@media(max-width:700px){.command-ui.dashboard .rankings-heading{background-position:center;gap:16px}}

/* Clan and player-comparison tabs use the same decorative SVG style as player tabs. */
.command-ui :is(.clan-primary-tabs,.compare-tabs) a{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.nav-tab-icon{display:block;width:18px;height:18px;flex:0 0 18px;color:currentColor}
.command-ui :is(.clan-primary-tabs,.compare-tabs) a[aria-selected=true] .nav-tab-icon{color:var(--section-edge,var(--theme-link,#84b4ff))}
@media(max-width:700px){.nav-tab-icon{width:16px;height:16px;flex-basis:16px}}
/* ClanIntel brand system: original vector mark, neutral surfaces, selective gold. */
.clanintel-mark{display:block;width:44px;height:44px;flex:0 0 44px;object-fit:contain}
.command-ui .clanintel-wordmark{font-size:25px;font-weight:800;letter-spacing:-.045em;line-height:1.15;color:var(--theme-text)}
.command-ui .clanintel-wordmark>span{color:var(--theme-warning,#edb84a)}
.command-ui .home-brand>div:last-child{width:auto;height:auto;border:0;border-radius:0;background:none}
.command-ui .home-brand p,.command-brand-copy small{font-size:11px;line-height:1.5;letter-spacing:0}
.brand-disclaimer{max-width:960px;margin:14px auto 0;font-size:11px;font-weight:400;line-height:1.8;color:var(--theme-muted,#aab9ce);text-align:center;overflow-wrap:anywhere}
.brand-disclaimer a{color:var(--theme-link,#a4c9f0);text-underline-offset:3px;text-decoration:underline}
.command-ui>footer{width:100%;max-width:1480px;margin:0 auto;padding:24px;border-top:1px solid var(--theme-border);text-align:center;font-size:12px;line-height:1.7;color:var(--theme-secondary)}
/* The existing compressed hero has empty space on its right; mirror only its decoration. */
.command-ui .home-hero-picture{transform:scaleX(-1)}
.command-ui .home-showcase{min-height:335px;padding-top:44px;padding-bottom:90px}
.command-ui .home-showcase:after,html[data-theme=light] .command-ui .home-showcase:after{background:linear-gradient(90deg,#081322ed 0%,#081322bc 34%,#08132218 75%),linear-gradient(0deg,var(--theme-page,#101725),transparent 42%)}
.command-ui .home-showcase .landing-copy{width:59%;max-width:760px;margin:0;padding-top:0;text-align:left}
.command-ui .home-showcase h2{font-size:clamp(30px,3.5vw,48px);letter-spacing:-.025em;line-height:1.14;margin:12px 0 15px}
.command-ui .home-showcase h2>span{display:block}
html[data-theme] .command-ui .home-showcase .hero-accent{color:#f4c45b}
.command-ui.dashboard .quick-access-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.command-ui.dashboard .quick-access-card{gap:8px;padding:12px 10px;min-width:0}
.command-ui .quick-access-icon{width:36px;height:42px;flex-basis:36px}
.command-ui.dashboard .landing-features{grid-template-columns:repeat(6,minmax(0,1fr))}
.command-ui.dashboard .landing-feature-card{grid-column:span 2;min-height:178px;border-color:var(--theme-border)}
.command-ui.dashboard .landing-feature-card:nth-child(n+4){grid-column:span 3;min-height:150px}
.command-ui.dashboard .landing-feature-card[data-feature="01"] .feature-art{object-position:72% center}
.command-ui.dashboard .landing-feature-card[data-feature="04"] .feature-art{opacity:.45}
.command-ui.dashboard .landing-feature-card[data-feature="04"]:after{background:linear-gradient(90deg,#162039f5,#16203980)}
.command-ui .landing-stats{border:1px solid var(--theme-border)}
#rankingsPanel{scroll-margin-top:130px}
@media(max-width:1200px){.command-ui.dashboard .quick-access-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.command-ui.dashboard .landing-features{grid-template-columns:repeat(2,minmax(0,1fr))}.command-ui.dashboard .landing-feature-card,.command-ui.dashboard .landing-feature-card:nth-child(n+4){grid-column:auto;min-height:165px}.command-ui.dashboard .landing-feature-card:last-child{grid-column:1/-1}}
@media(max-width:700px){.command-ui .clanintel-wordmark{font-size:23px}.command-ui .home-showcase{min-height:310px;padding:26px 20px 85px}.command-ui .home-showcase .landing-copy{width:100%;max-width:520px}.command-ui .home-showcase h2{font-size:31px}.command-ui .home-showcase:after,html[data-theme=light] .command-ui .home-showcase:after{background:linear-gradient(90deg,#081322ed,#08132265),linear-gradient(0deg,var(--theme-page,#101725),transparent 55%)}.command-ui.dashboard .quick-access-card{min-height:85px}.command-ui.dashboard .landing-features{grid-template-columns:1fr}.command-ui.dashboard .landing-feature-card{min-height:155px}.command-ui .landing-sidebar{margin-top:4px}.command-ui>footer{padding:20px 16px}.brand-disclaimer{font-size:11px;line-height:1.8}}
.recent-history-tabs{display:none}
@media(max-width:700px){[data-history-ready=true] .recent-history-tabs{display:flex;gap:6px;padding:4px 0}[data-history-ready=true] .recent-history-tabs button{flex:1;min-height:40px;padding:8px;border:1px solid var(--theme-border);border-radius:8px;background:var(--theme-inset);color:var(--theme-secondary);font-family:inherit;font-size:12px;font-weight:600;line-height:1.4}[data-history-ready=true] .recent-history-tabs button[aria-selected=true]{background:var(--theme-raised);color:var(--theme-text);border-color:var(--theme-gold-border)}[data-history-ready=true] [data-history-active=false]{display:none}}

.command-ui .home-brand h1.clanintel-wordmark,.command-ui .command-brand-copy .clanintel-wordmark{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:26px;letter-spacing:-.04em}
@media(max-width:700px){.command-ui .home-brand h1.clanintel-wordmark,.command-ui .command-brand-copy .clanintel-wordmark{font-size:24px}}

/* Shared HOT image: one cached asset, static lettering and an animated flame. */
.command-ui .hot-badge{display:block;width:30px;height:19px;padding:0;border:0;background:none;pointer-events:none}
.command-ui .hot-badge img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain}
.command-ui .quick-search-tab .home-tab-label{position:relative;display:inline-block;white-space:nowrap}
.command-ui .quick-search-tab .home-tab-hot{position:absolute;top:-15px;right:-18px}
@media(max-width:700px){.command-ui .hot-badge{width:28px;height:18px}.command-ui .quick-search-tab .home-tab-hot{top:-14px;right:-16px}}
.hot-badge-body{clip-path:inset(0 43% 0 0)}
.hot-badge-flame{clip-path:inset(0 0 0 55%);transform-origin:78% 92%;animation:hot-flame-flicker 1.35s ease-in-out infinite}
@keyframes hot-flame-flicker{0%,100%{transform:scale(1) rotate(-.8deg);filter:brightness(1)}25%{transform:scale(1.015,1.055) rotate(.7deg);filter:brightness(1.12)}50%{transform:scale(.99,1.02) rotate(-.5deg);filter:brightness(1.04)}75%{transform:scale(1.02,1.07) rotate(.5deg);filter:brightness(1.15)}}
@media(prefers-reduced-motion:reduce){.hot-badge-flame{animation:none;transform:none;filter:none}}

.command-ui .clan-primary-tabs .clan-tab-hot-label{position:relative;display:inline-block;white-space:nowrap}
.command-ui .clan-primary-tabs .clan-tab-hot{position:absolute;top:-15px;right:-18px}
@media(max-width:700px){.command-ui .clan-primary-tabs .clan-tab-hot{top:-14px;right:-16px}}

.command-ui .compare-tab-toolbar .compare-tabs{padding-top:22px}
.command-ui .compare-tabs .compare-tab-hot-label{position:relative;display:inline-block;white-space:nowrap}
.command-ui .compare-tabs .compare-tab-hot{position:absolute;top:-15px;right:-18px}
@media(max-width:700px){.command-ui .compare-tabs .compare-tab-hot{top:-14px;right:-16px}}
/* Shared primary navigation; page-specific actions stay in a separate row. */
.command-ui .global-header{z-index:60;background:var(--theme-inset,#101725);border-bottom:1px solid var(--theme-border,#35465d)}
.command-ui .global-header-row{width:100%;max-width:var(--site-max,1500px);margin:auto;padding:12px 24px;display:flex;align-items:center;gap:20px;min-width:0}
.command-ui .global-header :is(.command-brand,.home-brand){display:inline-flex;align-items:center;gap:10px;text-decoration:none;flex:0 0 auto;margin:0;color:var(--theme-text)}
.command-ui .global-header .clanintel-mark{width:40px;height:44px;object-fit:contain;flex:0 0 40px}
.command-ui .global-header .clanintel-wordmark{font-size:21px;line-height:1.2;margin:0;font-weight:800}
.command-ui .global-header :is(.command-brand-copy small,.home-brand p){display:block;font-size:10px;line-height:1.4;margin:3px 0 0;color:var(--theme-muted)}
.global-header-menu{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:0;flex:1}
.global-primary-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap;min-width:0}
.command-ui .global-primary-nav :is(a,summary){display:flex;align-items:center;gap:7px;padding:9px 10px;min-height:38px;border:1px solid transparent;border-radius:8px;font:600 12px/1.4 system-ui,sans-serif;text-decoration:none;color:var(--theme-secondary);white-space:nowrap;cursor:pointer}
.command-ui .global-primary-nav :is(a,summary):hover{background:var(--theme-hover);color:var(--theme-text);border-color:var(--theme-border)}
.command-ui .global-primary-nav :is(a[aria-current],summary.is-current){color:var(--theme-warning);background:var(--theme-gold-soft,var(--theme-raised));border-color:var(--theme-gold-border,var(--theme-border))}
.global-nav-dropdown{position:relative}.global-nav-dropdown>summary{list-style:none}.global-nav-dropdown>summary::-webkit-details-marker{display:none}.global-nav-dropdown>summary:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 2px}.global-nav-dropdown[open]>summary:after{transform:rotate(225deg);margin-top:4px}
.global-nav-dropdown-panel{position:absolute;top:calc(100% + 7px);left:0;z-index:2;display:grid;gap:4px;min-width:195px;padding:7px;background:var(--theme-panel);border:1px solid var(--theme-border);border-radius:10px;box-shadow:0 12px 32px #0003}
.global-nav-dropdown:last-child .global-nav-dropdown-panel{left:auto;right:0}.global-nav-dropdown:not([open])>.global-nav-dropdown-panel{display:none}
.global-appearance{display:flex;align-items:center;gap:8px;flex:0 0 auto;border-left:1px solid var(--theme-border);padding-left:16px}
.command-ui .global-appearance :is(.appearance-controls,label){display:flex;align-items:center;gap:6px;flex-direction:row;flex-wrap:nowrap;border:0;padding:0;margin:0}
.command-ui .global-appearance label{flex-direction:column;align-items:flex-start;font-size:10px;font-weight:600;line-height:1.4;color:var(--theme-muted)}
.command-ui .global-appearance select{width:auto;max-width:125px;min-height:34px;padding:6px 8px;border:1px solid var(--theme-border);border-radius:7px;background:var(--theme-panel);color:var(--theme-text);font:12px/1.4 system-ui,sans-serif;margin:0}
.global-appearance>a{font-size:11px;padding:6px;border-radius:6px;text-decoration:none;color:var(--theme-secondary)}
.command-ui .global-nav-toggle{display:none;align-items:center;justify-content:center;gap:8px;margin-left:auto;min-height:40px;padding:8px 12px;background:var(--theme-raised);border:1px solid var(--theme-border);border-radius:8px;color:var(--theme-text);font:600 12px/1.4 system-ui,sans-serif;cursor:pointer}
.global-page-actions{max-width:var(--site-max,1500px);margin:auto;padding:0 24px 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.command-ui .global-page-actions :is(.back-link,.header-profile-link){display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;font:600 11px/1.4 system-ui,sans-serif;text-decoration:none;border:1px solid var(--theme-border);border-radius:7px;color:var(--theme-secondary);background:var(--theme-panel)}
.command-ui .global-page-actions .search-form{display:flex;align-items:center;gap:6px;width:min(100%,320px);margin:0 0 0 auto}
.command-ui .global-page-actions .search-form :is(input,button){min-height:34px;padding:6px 10px;font-size:12px;border-radius:7px}
.global-header :is(a,button,summary,select):focus-visible{outline:2px solid var(--theme-link);outline-offset:3px}
@media(max-width:1280px){
 .command-ui .global-header-row{flex-wrap:wrap;gap:12px;padding:10px 18px}
 .global-header-menu{flex-basis:100%;flex-direction:column;align-items:stretch;gap:14px;padding-top:8px}
 .global-header[data-nav-ready=true] .global-nav-toggle{display:inline-flex}
 .global-header[data-nav-ready=true] .global-header-menu{display:none}
 .global-header[data-nav-ready=true]:has(.global-nav-toggle[aria-expanded=true]) .global-header-menu{display:flex}
 .global-primary-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .command-ui .global-primary-nav>a,.command-ui .global-nav-dropdown>summary{background:var(--theme-panel);border-color:var(--theme-border);padding:10px 12px;white-space:normal}
 .global-nav-dropdown-panel{position:static;box-shadow:none;min-width:0;margin:6px 0 0}
 .global-appearance{border-left:0;border-top:1px solid var(--theme-border);padding:12px 0 2px;flex-wrap:wrap;gap:12px}
 .command-ui .global-appearance :is(.appearance-controls,label){gap:8px}
 .global-page-actions{padding:0 18px 10px}
}
@media(max-width:500px){.command-ui .global-header-row{padding:10px 16px}.command-ui .global-header .clanintel-wordmark{font-size:20px}.global-page-actions{padding:0 16px 10px}.command-ui .global-page-actions .search-form{width:100%;flex-basis:100%;margin:2px 0 0}.command-ui .global-primary-nav :is(a,summary){font-size:11px}.global-header-menu{max-height:70dvh;overflow-y:auto}.global-nav-dropdown-panel a{white-space:normal}}
/* Keep dropdowns opaque above illustrated page headers in every theme. */
.command-ui .global-header .global-nav-dropdown-panel{
 background:var(--theme-raised,var(--theme-panel,#1b2639));
 border:1px solid var(--theme-border,#40516a);
 border-radius:10px;
 padding:8px;
 box-shadow:0 10px 28px rgb(0 0 0 / .3);
 isolation:isolate;
}
.command-ui .global-header .global-nav-dropdown-panel a{color:var(--theme-text,#e8edf5)}
.command-ui .global-header .global-nav-dropdown-panel a:hover,
.command-ui .global-header .global-nav-dropdown-panel a:focus-visible{background:var(--theme-hover,#2c3850);color:var(--theme-warning,#e0b84a)}
@media(max-width:1280px){.command-ui .global-header .global-nav-dropdown-panel{box-shadow:none}}
/* Native option lists need explicit colors as well as the closed select. */
.command-ui :is([data-language-switch],[data-theme-switch]) option,
.command-ui :is([data-language-switch],[data-theme-switch]) optgroup{
 background-color:var(--theme-panel,#1b2639);
 color:var(--theme-text,#e8edf5);
}
html[data-theme=dark] .command-ui :is([data-language-switch],[data-theme-switch]){color-scheme:dark}
html[data-theme=light] .command-ui :is([data-language-switch],[data-theme-switch]){color-scheme:light}
