/* Single shared alliance template. Legacy personal and alliance palettes are not loaded. */
html body.allianceRefresh{--paper:#0b121a;--bg:#0b121a;--card:#182f3e;--panel:#182f3e;--panel2:#203746;--ink:#edf4fa;--text:#edf4fa;--muted:#adc3cf;--line:#426177;--orange:#ffad60;--green:#67d6bf;--design-bg:#0b121a;--design-surface:#182f3e;--design-soft:#203746;--design-ink:#edf4fa;--design-muted:#adc3cf;--design-line:#426177;--design-accent:#ffad60;--design-on-accent:#291707;--brand-on-primary:#291707;--brand-accent-text:#ffc075;--brand-success:#67d6bf;--brand-warning:#ffc075;--brand-danger:#ff9292;color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:var(--ink)}
html body.allianceRefresh :is(input,select,textarea){color:var(--ink);background:var(--paper);border-color:var(--line)}
html body.allianceRefresh .adSlot{background:#182f3e!important;border-color:#426177!important;color:#edf4fa!important}
html body.allianceRefresh .adSlot :is(h2,h3,strong){font-family:Arial,Helvetica,sans-serif}
html body.ownerLayoutPilot.allianceRefresh{--owner-sidebar-width:218px;background:radial-gradient(ellipse at 80% 0,#18425a55,transparent 48%),#0b121a!important}
html body.allianceRefresh>header{min-height:68px;padding:10px 22px;gap:12px;background:#101e29!important;border-bottom:1px solid #36505f;color:#edf4fa;box-shadow:0 4px 20px #0002;flex-wrap:wrap}
html body.allianceRefresh>header .brand{min-width:0;gap:10px}
html body.allianceRefresh>header .brand>b{border-radius:11px 4px;background:linear-gradient(135deg,#ffc579,#ff903c)!important;color:#291707!important;box-shadow:none;transform:rotate(-4deg);font:800 15px Arial;padding:10px}
html body.allianceRefresh>header .brand strong{font:750 17px Arial;color:#f0f7fc}
html body.allianceRefresh>header .brand small{font:10px Arial;color:#90bacd;letter-spacing:.05em}
html body.allianceRefresh>header :is(.lang,button){min-height:44px;border:1px solid #526e81;border-radius:9px;background:#203746!important;color:#edf4fa!important}
html body.allianceRefresh>header .timeDock>div{background:#172e3d!important;border:1px solid #3e5d70;border-radius:8px;color:#edf4fa;padding:7px 12px}
html body.allianceRefresh>header .timeDock span{color:#a6c2d3;font-size:9px}
html body.allianceRefresh>header .timeDock strong{font:750 17px Arial;color:#f1f8ff}
html body.allianceRefresh main{padding:22px clamp(16px,2.5vw,36px) 40px}
html body.allianceRefresh .welcome{gap:16px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #2e4554}
html body.allianceRefresh .welcome h1{font:800 clamp(26px,3vw,38px)/1.15 Arial!important;letter-spacing:-.8px;color:#f3f8fc;margin:5px 0 0}
html body.allianceRefresh .welcome .eyebrow{font:750 10px Arial;color:#ffb66b;letter-spacing:.15em}
html body.allianceRefresh .welcome .stat{color:#c4d8e5}
html body.allianceRefresh .welcome .stat strong{font:750 28px Arial;color:#ffc075}
html body.allianceRefresh .welcome .stat :is(small,span){color:#a9c1d0;font-size:11px}
html body.allianceRefresh .mainNav{padding:14px 10px;background:#101d27!important;border-right:1px solid #304958;gap:6px}
html body.allianceRefresh .ownerNavIntro{padding:10px;margin:0 0 12px;background:linear-gradient(120deg,#243c49,#153735)!important;border:1px solid #4a756f;box-shadow:inset 3px 0 #6adbc0;border-radius:10px}
html body.allianceRefresh .ownerAllianceEmblem{background:#122530;color:#8ae9d1;border-color:#528b80;font:800 12px Arial}
html body.allianceRefresh .ownerAllianceText strong{font:750 15px Arial;color:#edfaf7}
html body.allianceRefresh .ownerAllianceText small{color:#8cdecb;font-size:8px}
html body.allianceRefresh .mainNav :is(.navDirect,.navGroupToggle){min-height:46px;padding:11px 10px;border:1px solid transparent;border-radius:9px;background:transparent!important;color:#c6dbe7!important;font-size:12px;letter-spacing:.025em;text-transform:none;box-shadow:none}
html body.allianceRefresh .navGroupToggle>span:not([aria-hidden=true]){font:700 13px/1.3 Arial!important;letter-spacing:0!important}
html body.allianceRefresh .mainNav .ownerMenuIcon{width:21px;height:21px;flex-basis:21px;opacity:1;color:#8fcde5}
html body.allianceRefresh .mainNav :is(.navDirect,.navGroupToggle):hover{background:#213b4c!important;color:#fff!important;transform:none}
html body.allianceRefresh .mainNav>.navDirect.active,html body.allianceRefresh .navMenu button.active{background:linear-gradient(100deg,#ffc176,#ff9c49)!important;border-color:#ffd39a!important;color:#2d1b0c!important;box-shadow:0 3px 0 #704724}
html body.allianceRefresh .mainNav>.navDirect.active .ownerMenuIcon{color:#523117}
html body.allianceRefresh .navGroup:is(.open,.hasActive)>.navGroupToggle{background:#223d4d!important;border-color:#54758a;color:#f1f8ff!important;box-shadow:inset 3px 0 #83cee8}
html body.allianceRefresh .navMenu{margin:5px 0 9px;padding:0 0 0 13px;background:linear-gradient(#365369,#365369) 5px 0/1px 100% no-repeat!important}
html body.allianceRefresh .navMenu button{min-height:44px;margin:2px 0;padding:10px 12px;border-radius:8px;line-height:1.3;font-size:12px;color:#c3d9e5!important;background:transparent!important}
html body.allianceRefresh .navMenu button:hover{background:#213b4c!important;color:#fff!important}
html body.allianceRefresh :is(.mainNav,header) :is(button,select,a):focus-visible{outline:3px solid #8ee7ff!important;outline-offset:2px}
html body.allianceRefresh .mainNav .adSlot--ad_sidebar{margin-top:auto}
@media(max-width:860px){html body.allianceRefresh>header{padding:9px 12px;gap:8px}html body.allianceRefresh>header .brand{flex:1}html body.allianceRefresh>header .brand strong{font-size:14px}html body.allianceRefresh>header .brand>b{font-size:11px;padding:9px}html body.allianceRefresh main{padding:17px 12px 30px;margin-left:0}html body.allianceRefresh .mainNav{width:min(84vw,290px);padding-top:max(18px,env(safe-area-inset-top))}html body.allianceRefresh .welcome .stat{display:none}html body.allianceRefresh .welcome{margin-bottom:14px;padding-bottom:12px}html body.allianceRefresh>header .lang{max-width:112px;padding:8px}html body.allianceRefresh>header form{margin:0}html body.allianceRefresh>header form button{padding:8px;font-size:11px}}
@media(max-width:420px){html body.allianceRefresh>header .brand{flex-basis:calc(100% - 60px)}html body.allianceRefresh>header .lang{margin-left:52px;flex:1;max-width:none}html body.allianceRefresh>header form{flex:1}html body.allianceRefresh>header form button{width:100%}}
@media(prefers-reduced-motion:reduce){html body.allianceRefresh main,html body.allianceRefresh footer{transition:none}}
@media(max-width:600px){html body.allianceRefresh>header{display:grid!important;grid-template-columns:44px minmax(0,1fr) 100px;grid-template-areas:"toggle brand brand" "language language logout";gap:8px}html body.allianceRefresh>header .ownerMenuToggle{grid-area:toggle}html body.allianceRefresh>header .brand{grid-area:brand}html body.allianceRefresh>header .timeDock{display:none!important}html body.allianceRefresh>header .lang{grid-area:language;margin:0!important;width:100%;max-width:none}html body.allianceRefresh>header form{grid-area:logout;margin:0;width:100%;min-width:0}html body.allianceRefresh>header form button{width:100%;white-space:nowrap}}

/* Original settings and permission forms: compact cards and explicit selected/locked states. */
html body.allianceRefresh #activity-proof .activityRanking,html body.allianceRefresh #activity-proof .activityHistory{padding:16px;background:#173243;border:1px solid #496e85;border-radius:10px;margin:15px 0}
html body.allianceRefresh #activity-proof h3{font-size:20px;margin:8px 0}
html body.allianceRefresh #activity-proof p{font-size:12px;color:#b1cddd;line-height:1.5}
html body.allianceRefresh #activity-proof .activityRankTable{overflow:auto;border:1px solid #446b81;border-radius:9px}
html body.allianceRefresh #activity-proof .activityRankColumns,html body.allianceRefresh #activity-proof .activityRankTable>article{display:grid;grid-template-columns:45px minmax(150px,2fr) repeat(4,minmax(80px,1fr));gap:10px;align-items:center;padding:12px;min-width:650px;background:#1b3749;border-color:#44677d;font-size:13px}
html body.allianceRefresh #activity-proof .activityRankColumns{background:#284c61;color:#c4e5f6;font-size:12px}
html body.allianceRefresh #activity-proof .activityRankTable>article>strong{color:#ffd099}
html body.allianceRefresh #activity-proof .activityHistory>div>article{background:#112b3b;border:1px solid #446b82;border-radius:9px;padding:14px;margin:10px 0}
html body.allianceRefresh #activity-proof .activityHistoryActions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}
html body.allianceRefresh #activity-proof .activitySavedResultTable>div,html body.allianceRefresh #activity-proof .activitySavedResultTable>header{display:grid;grid-template-columns:45px minmax(0,1fr) 90px;gap:8px;padding:10px;border-color:#4a6a80;background:#1c394c;font-size:13px}
html body.allianceRefresh #uploads .activityUploadCard{background:#193345;border:1px solid #4a738a;border-radius:10px;padding:16px}
html body.allianceRefresh #uploads .activityDrop{border:1px dashed #608ba1;background:#102735;border-radius:10px;padding:18px;display:grid;gap:8px}
html body.allianceRefresh #uploads .activityMeta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:760px){html body.allianceRefresh #activity-proof .activityRanking,html body.allianceRefresh #activity-proof .activityHistory{padding:11px}html body.allianceRefresh #activity-proof .activityHistoryActions input{width:100%}html body.allianceRefresh #uploads .activityMeta{grid-template-columns:1fr}}
html body.allianceRefresh #donation-admin .slCard{padding:17px;background:#183345;border:1px solid #4a718a;border-radius:11px;margin:14px 0}
html body.allianceRefresh #donation-admin .slMetrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body.allianceRefresh #donation-admin .slMetrics>div{background:#102937;border:1px solid #426a80;border-top:3px solid #75d9c0;border-radius:9px;padding:13px}
html body.allianceRefresh #donation-admin .slMetrics strong{font:800 26px Arial;color:#ffcc91}
html body.allianceRefresh #donation-admin .slGrid{display:grid;grid-template-columns:1fr;gap:12px}
html body.allianceRefresh #donation-admin h3{font-size:20px}
html body.allianceRefresh #donation-admin p,html body.allianceRefresh #donation-admin small{color:#b0cdde;font-size:12px;line-height:1.5}
html body.allianceRefresh #donation-admin .slFilters{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
html body.allianceRefresh #donation-admin .slFilters label{display:grid;gap:6px;font-size:12px;flex:1;min-width:160px}
html body.allianceRefresh #donation-admin .slPlayer{background:#142e40;border:1px solid #446c83;border-radius:8px;padding:13px;margin:8px 0}
html body.allianceRefresh #donation-admin .slPlayer[data-status=reached]{border-left:3px solid #7cdcb9}
html body.allianceRefresh #donation-admin .slPlayer[data-status=below]{border-left:3px solid #ffbe7c}
html body.allianceRefresh #donation-admin .slPlayer[data-status=missing]{border-left:3px solid #b5a2ec}
html body.allianceRefresh #donation-admin [hidden]{display:none!important}
@media(max-width:760px){html body.allianceRefresh #donation-admin .slMetrics{grid-template-columns:1fr}html body.allianceRefresh #donation-admin .slFilters label{flex-basis:100%}html body.allianceRefresh #donation-admin .slPlayer{display:flex;flex-wrap:wrap;gap:10px}html body.allianceRefresh #donation-admin .slPlayer>div{flex-basis:100%}}
html body.allianceRefresh #member-analysis header{background:none;border-color:#496b81;gap:14px;flex-wrap:wrap}
html body.allianceRefresh #member-analysis h3{font-size:20px;margin:7px 0}
html body.allianceRefresh #member-analysis p{font-size:12px;line-height:1.5;color:#b1cede}
html body.allianceRefresh #member-analysis .memberAnalysisSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
html body.allianceRefresh #member-analysis .memberAnalysisSummary article{background:#193749;border:1px solid #4c758d;border-top:3px solid #7addc2;border-radius:9px;padding:14px;min-width:0}
html body.allianceRefresh #member-analysis .memberAnalysisSummary article:last-child{border-top-color:#ffb77b}
html body.allianceRefresh #member-analysis .memberAnalysisSummary strong{display:block;font:800 26px Arial;color:#ffe0aa;margin:9px 0}
html body.allianceRefresh #member-analysis .memberAnalysisSummary small,html body.allianceRefresh #member-analysis .memberAnalysisSummary span{font-size:11px;color:#b8d2e3}
html body.allianceRefresh #member-analysis .memberAnalysisSection{background:#152e3f;border:1px solid #426d85;border-radius:11px;padding:16px;margin:14px 0}
html body.allianceRefresh #member-analysis .timezoneAnalysisGrid,html body.allianceRefresh #member-analysis .powerAnalysisGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html body.allianceRefresh #member-analysis .timezoneGroup,html body.allianceRefresh #member-analysis .powerAnalysisGroup{background:#1c3a4d;border:1px solid #537a91;border-radius:9px;overflow:hidden}
html body.allianceRefresh #member-analysis summary{display:flex;align-items:center;justify-content:space-between;padding:13px;gap:12px}
html body.allianceRefresh #member-analysis summary strong{font-size:14px;color:#e0f2fc}
html body.allianceRefresh #member-analysis summary small{display:block;font-size:11px;color:#a9cbde;margin-top:6px}
html body.allianceRefresh #member-analysis summary>b{font:800 22px Arial;color:#ffce93}
html body.allianceRefresh #member-analysis details article{background:#142d3d;border-color:#42657c;padding:12px;font-size:13px;gap:10px}
html body.allianceRefresh #member-analysis details article small{display:block;font-size:11px;line-height:1.5;color:#b5d0e2;margin-top:5px}
@media(max-width:760px){html body.allianceRefresh #member-analysis .memberAnalysisSummary{grid-template-columns:1fr 1fr}html body.allianceRefresh #member-analysis .timezoneAnalysisGrid,html body.allianceRefresh #member-analysis .powerAnalysisGrid{grid-template-columns:1fr}html body.allianceRefresh #member-analysis .memberAnalysisSection{padding:12px}html body.allianceRefresh #member-analysis .powerAnalysisGroup article{flex-wrap:wrap}}
html body.allianceRefresh #trends .powerStatCards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
html body.allianceRefresh #trends .powerStatCards article{background:#1a3546;border:1px solid #4c738a;border-top:3px solid #ffb56a;border-radius:9px;padding:14px;min-width:0}
html body.allianceRefresh #trends .powerStatCards strong{display:block;font:800 23px Arial;color:#ffd097;margin:9px 0}
html body.allianceRefresh #trends .powerStatCards small,html body.allianceRefresh #trends .powerStatCards article>span{font-size:11px;color:#b6d4e5;line-height:1.5}
html body.allianceRefresh #trends .powerQualityGrid{display:grid;grid-template-columns:2fr 1fr;gap:12px;margin:16px 0}
html body.allianceRefresh #trends .powerQualityGrid>article,html body.allianceRefresh #trends .chart{background:#183141;border:1px solid #426a81;border-radius:10px;padding:16px;min-width:0}
html body.allianceRefresh #trends header{background:transparent;border:0;padding:0}
html body.allianceRefresh #trends h3{font-size:18px;margin:0 0 12px}
html body.allianceRefresh #trends p{font-size:12px;color:#b2cede}
html body.allianceRefresh #trends .powerWeekBars>div>span{background:linear-gradient(#72dbc4,#367c8e);border-radius:5px 5px 0 0}
html body.allianceRefresh #trends .powerWeekBars small{font-size:10px;color:#b8d2e3}
html body.allianceRefresh #trends .powerDashboard{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html body.allianceRefresh #trends .barRow{display:grid;grid-template-columns:minmax(90px,1fr) minmax(50px,2fr) 50px;gap:10px;font-size:12px;align-items:center;margin:12px 0}
html body.allianceRefresh #trends .barTrack{background:#284657;border-radius:8px}
html body.allianceRefresh #trends .barTrack i{background:#ffb66f}
html body.allianceRefresh #trends .growth .barTrack i{background:#78dcc4}
html body.allianceRefresh #trends .powerDetailRow{background:#193446;border-bottom:1px solid #4e738b;padding:13px;border-radius:7px;margin:7px 0;font-size:13px}
html body.allianceRefresh #trends .positive{color:#8ce3c6!important}
html body.allianceRefresh #trends .negative{color:#ffadbc!important}
@media(max-width:760px){html body.allianceRefresh #trends .powerStatCards{grid-template-columns:1fr 1fr}html body.allianceRefresh #trends .powerQualityGrid,html body.allianceRefresh #trends .powerDashboard{grid-template-columns:1fr}html body.allianceRefresh #trends .powerDetailRow{display:flex;gap:8px;flex-wrap:wrap}html body.allianceRefresh #trends .powerDetailRow strong{flex:1;min-width:0}html body.allianceRefresh #trends .powerDetailRow small{display:block}html body.allianceRefresh #trends .powerWeekBars{gap:5px}html body.allianceRefresh #trends .powerWeekBars b{font-size:10px}}
html body.allianceRefresh .aav .aavSelection{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
html body.allianceRefresh .aav .aavSelection label{padding:12px;background:#213f50;border:1px solid #50798e;border-radius:8px;font-size:13px}
html body.allianceRefresh .aav .aavSelection label:has(input:checked){border-color:#71d7bd;background:#21443d}
html body.allianceRefresh .aav .aavSelection input{width:20px;height:20px}
html body.allianceRefresh .aav p{color:#afcddd;font-size:12px;line-height:1.5}
html body.allianceRefresh .aav [data-aav-chart]{padding:12px;background:#102532;border:1px solid #466e86;border-radius:10px;margin-top:15px}
html body.allianceRefresh .aav .aavLegend{font-size:12px;margin:10px 0}
html body.allianceRefresh .aav .aavScroll{border:1px solid #426880;border-radius:9px;background:#162f40}
html body.allianceRefresh .aav th{background:#27485b;color:#cde7f6}
html body.allianceRefresh .aav .aavCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body.allianceRefresh .aav .aavCard{padding:17px;background:#193547;border:1px solid #4c758d;border-top:3px solid #ffba6f;border-radius:10px}
html body.allianceRefresh .aav .aavCard:nth-child(even){border-top-color:#bba3f1}
html body.allianceRefresh .aav .aavCard h3{font-size:19px;margin:0 0 14px}
html body.allianceRefresh .aav .aavCard li{padding:10px 0;border-bottom:1px solid #42657a;color:#d5ebf8;font-size:14px}
html body.allianceRefresh .aav .aavCard li::marker{color:#ffd198;font-weight:bold}
@media(max-width:760px){html body.allianceRefresh .aav .aavCards{grid-template-columns:1fr}html body.allianceRefresh .aav [data-aav-chart]{padding:5px}}
html body.allianceRefresh #desert-analysis>section{background:#182f40;border:1px solid #4a6e84;border-radius:11px;padding:17px;margin:15px 0}
html body.allianceRefresh #desert-analysis header{background:transparent;border-color:#4b6b82;color:#dceffa;gap:12px;flex-wrap:wrap}
html body.allianceRefresh #desert-analysis h3{font-size:20px;margin:6px 0}
html body.allianceRefresh #desert-analysis p,html body.allianceRefresh #desert-analysis small{color:#adcada;font-size:12px;line-height:1.5}
html body.allianceRefresh #desert-analysis .desertLastWeekTeams,html body.allianceRefresh #desert-analysis .desertTeamCards,html body.allianceRefresh #desert-analysis .desertOutcomeCards{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}
html body.allianceRefresh #desert-analysis .teamA,html body.allianceRefresh #desert-analysis .teamB{background:#102736;border:1px solid #4d728a;border-top:3px solid #ffb568;border-radius:9px;padding:13px}
html body.allianceRefresh #desert-analysis .teamB{border-top-color:#baa5ef}
html body.allianceRefresh #desert-analysis .desertStatsGrid{display:grid;grid-template-columns:1fr;gap:16px}
html body.allianceRefresh #desert-analysis .desertNoShowChart,html body.allianceRefresh #desert-analysis .desertTeamCompare{background:#152c3b;border:1px solid #42637b;border-radius:10px;padding:14px;min-width:0}
html body.allianceRefresh #desert-analysis .desertNoShowBars>article{display:grid;grid-template-columns:24px minmax(150px,2fr) minmax(70px,1fr) 100px;align-items:center;gap:12px;padding:12px 0;border-color:#466c82}
html body.allianceRefresh #desert-analysis .desertNoShowBars>article.hidden{display:none!important}
html body.allianceRefresh #desert-analysis .desertNoShowTrack{background:#284356;border-radius:8px}
html body.allianceRefresh #desert-analysis .desertNoShowTrack i{background:#ffb66d;border-radius:8px}
html body.allianceRefresh #desert-analysis .desertNoShowBars>article>b{color:#ffc587}
html body.allianceRefresh #desert-analysis .desertOutcomeNumbers b{font:800 30px Arial}
html body.allianceRefresh #desert-analysis .wins b{color:#80e0bc}
html body.allianceRefresh #desert-analysis .losses b{color:#f7a6b2}
html body.allianceRefresh #desert-analysis .desertOutcomeRate i{background:#72d4b9}
html body.allianceRefresh #desert-analysis .desertWeekSelect{padding:12px;background:#213d50;border:1px solid #4e748e;border-radius:8px}
html body.allianceRefresh #desert-analysis .desertWeekSelect>div{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0}
@media(max-width:760px){html body.allianceRefresh #desert-analysis .desertLastWeekTeams,html body.allianceRefresh #desert-analysis .desertTeamCards,html body.allianceRefresh #desert-analysis .desertOutcomeCards{grid-template-columns:1fr}html body.allianceRefresh #desert-analysis .desertNoShowBars>article{grid-template-columns:20px minmax(0,1fr);gap:10px}html body.allianceRefresh #desert-analysis .desertNoShowTrack{grid-column:2}html body.allianceRefresh #desert-analysis .desertNoShowBars>article>b{grid-column:2}html body.allianceRefresh #desert-analysis>section{padding:12px}html body.allianceRefresh #desert-analysis .desertWeekSelect select{width:100%}}
html body.allianceRefresh #canyon-analysis .activityHead>strong{font:800 30px Arial;color:#ffc182}
html body.allianceRefresh #canyon-analysis .activityHead>strong small{display:block;font-size:12px;color:#abc8db}
html body.allianceRefresh #canyon-analysis .activityCanyonStats{padding:0;background:transparent;border:0}
html body.allianceRefresh #canyon-analysis .activityCanyonStats>header{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#193b3b;border:1px solid #4d8d82;border-radius:10px;padding:16px;margin:14px 0}
html body.allianceRefresh #canyon-analysis .activityCanyonStats>header>strong{font:800 28px Arial;color:#99efd5}
html body.allianceRefresh #canyon-analysis .activityCanyonStats>header small{display:block;font-size:12px;margin-top:7px}
html body.allianceRefresh #canyon-analysis p{font-size:12px;color:#b7d2e3;line-height:1.5}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid article{background:#1a3243;border:1px solid #4e768e;border-top:4px solid #ffb66c;border-radius:10px;overflow:hidden}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid .teamB{border-top-color:#b6a0f1}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid header{display:flex;justify-content:space-between;padding:13px;background:#233f51;font-size:13px}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid article>div{display:grid;gap:8px;padding:16px;color:#c6dfef;font-size:13px}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid b{font:800 28px Arial;color:#ffcc98}
html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid .teamB b{color:#cfbdff}
html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable{overflow-x:auto;border:1px solid #51758a;border-radius:10px}
html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable>header,html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable>div{display:grid;grid-template-columns:35px minmax(160px,2fr) repeat(6,minmax(80px,1fr));gap:8px;align-items:center;min-width:830px;padding:12px;border-bottom:1px solid #3d5f74;background:#193242;font-size:13px}
html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable>header{background:#28485c;color:#bfdff2;font-size:12px}
html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable>div:nth-child(odd){background:#203c4d}
html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable>div>b{color:#ffc68c}
@media(max-width:760px){html body.allianceRefresh #canyon-analysis .activityCanyonTeamGrid{grid-template-columns:1fr}html body.allianceRefresh #canyon-analysis .activityCanyonStats>header{flex-wrap:wrap}html body.allianceRefresh #canyon-analysis .activityCanyonPlayerTable{max-width:100%}}
html body.allianceRefresh #wiki .wikiBrowserLayout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px}
html body.allianceRefresh #wiki .wikiTree{padding:14px;align-self:start}
html body.allianceRefresh #wiki .wikiSearch{display:grid;gap:7px;margin:0 0 16px;font-size:12px}
html body.allianceRefresh #wiki .wikiTreeGroup{border-top:1px solid #486b81;margin-top:12px}
html body.allianceRefresh #wiki .wikiTreeGroup summary{display:flex;justify-content:space-between;gap:10px;font-size:13px}
html body.allianceRefresh #wiki .wikiTreeGroup button{display:block;text-align:left;width:100%;margin:6px 0;background:#244358;color:#d7edf9;border-color:#557c92}
html body.allianceRefresh #wiki .wikiTreeGroup button.active{background:#ffb366;color:#2d1b0b}
html body.allianceRefresh #wiki [hidden]{display:none!important}
html body.allianceRefresh #wiki .wikiArticle{padding:20px;border:1px solid #4d738b}
html body.allianceRefresh #wiki .wikiArticle header{background:none;padding:0 0 16px;border-bottom:1px solid #476d83}
html body.allianceRefresh #wiki .wikiArticle h4{font-size:23px;margin:8px 0}
html body.allianceRefresh #wiki .wikiArticleCategory{color:#87dfcd;font-size:12px}
html body.allianceRefresh #wiki .wikiArticleNumber{color:#ffbc7b;font:800 26px Arial}
html body.allianceRefresh #wiki .wikiBody{font-size:14px;line-height:1.7;color:#c6dfef;padding-top:16px}
html body.allianceRefresh #wiki .wikiShareStatus{padding:14px;background:#1c394b;border:1px solid #4d728a;border-radius:10px;margin-bottom:14px}
html body.allianceRefresh #wiki .wikiShareStatus form{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:10px}
html body.allianceRefresh #wiki .wikiMedia img{max-width:100%;height:auto}
@media(max-width:760px){html body.allianceRefresh #wiki .wikiBrowserLayout{grid-template-columns:1fr}html body.allianceRefresh #wiki .wikiArticle{padding:14px}}
html body.allianceRefresh #train .trainToolbar,html body.allianceRefresh #train .trainSwap{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:15px;background:#1b3546;border:1px solid #4c748d;border-radius:10px;margin:14px 0}
html body.allianceRefresh #train label{display:grid;gap:6px;font-size:12px;min-width:0;margin:0}
html body.allianceRefresh #train p{font-size:12px;line-height:1.5;color:#b6d1e3}
html body.allianceRefresh #train h3{font-size:19px;margin:15px 0 8px}
html body.allianceRefresh #train .trainLeaderGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
html body.allianceRefresh #train .trainWeekLeaders{max-width:none}
html body.allianceRefresh #train .trainLeaderGrid label{grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding:12px;border:1px solid #486c82;border-top:3px solid #6edcc2;border-radius:8px;background:#172f40}
html body.allianceRefresh #train .trainLeaderGrid label>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
html body.allianceRefresh #train .trainLeaderGrid small{color:#adc8d9;font-size:11px;margin:0;white-space:nowrap}
html body.allianceRefresh #train .trainLeaderGrid select{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
html body.allianceRefresh #train .trainSwap form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
html body.allianceRefresh #train .trainList{display:grid;gap:10px}
html body.allianceRefresh #train .trainDay{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;padding:14px;background:#192f40;border:1px solid #456b82;border-radius:10px}
html body.allianceRefresh #train .trainDayLabel{color:#ffcb91}
html body.allianceRefresh #train .trainDayLabel small{display:block;margin-top:5px;color:#a9c7da}
html body.allianceRefresh #train .trainDayCrew{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
html body.allianceRefresh #train .trainLeaderFixed,html body.allianceRefresh #train .trainCrewPlayer{display:flex;align-items:center;gap:10px;min-width:0}
html body.allianceRefresh #train .trainLeaderFixed small,html body.allianceRefresh #train .trainCrewPlayer small{display:block;color:#a7c5d7;font-size:11px;margin-bottom:5px}
html body.allianceRefresh #train .trainDayEmpty{border-style:dashed;background:#122631}
html body.allianceRefresh #train .trainLastRideTable,html body.allianceRefresh #train .trainStatTable{border:1px solid #496a81;border-radius:10px;overflow:hidden}
html body.allianceRefresh #train .trainLastRideRow,html body.allianceRefresh #train .trainStatRow{padding:12px;background:#193242;border-color:#426177;font-size:13px}
html body.allianceRefresh #train .trainLastRideHeader,html body.allianceRefresh #train .trainStatHeader{padding:12px;background:#244458;color:#bfe0f3;font-size:12px}
html body.allianceRefresh #train .trainPairings article{padding:12px;background:#1c3648;border:1px solid #4a6d82;border-radius:8px;margin:7px 0;font-size:13px}
@media(max-width:760px){html body.allianceRefresh #train .trainLeaderGrid{grid-template-columns:1fr 1fr}html body.allianceRefresh #train .trainDay{grid-template-columns:1fr}html body.allianceRefresh #train .trainDayCrew{display:grid;grid-template-columns:1fr}html body.allianceRefresh #train .trainSwap form{display:grid;width:100%}html body.allianceRefresh #train .trainLastRideHeader,html body.allianceRefresh #train .trainLastRideRow{grid-template-columns:25px minmax(0,1fr) 80px 55px;gap:6px}html body.allianceRefresh #train .playerIdentity{flex-wrap:wrap;min-width:0}html body.allianceRefresh #train .trainStatHeader,html body.allianceRefresh #train .trainStatRow{grid-template-columns:minmax(0,1fr) repeat(3,45px);gap:5px}html body.allianceRefresh #train .trainStatHeader{font-size:10px;overflow-wrap:anywhere}}
html body.allianceRefresh #daily .dailyBoard>.dailyColumn{grid-column:auto;grid-row:auto;order:initial}
html body.allianceRefresh #daily .dailyProgress{display:flex;align-items:center;gap:20px;justify-content:space-between;padding:18px;background:#194139;border:1px solid #66cdb3;border-radius:12px;margin:14px 0}
html body.allianceRefresh #daily .dailyProgress strong{font:800 26px Arial;color:#a4f4d8}
html body.allianceRefresh #daily .dailyProgress small{display:block;font-size:12px;color:#badacc;margin-top:7px}
html body.allianceRefresh #daily progress{accent-color:#77dfbe;width:35%;height:12px}
html body.allianceRefresh #daily .dailyFocus{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
html body.allianceRefresh #daily .dailyFocus article{padding:14px;background:#263b4b;border:1px solid #53758b;border-radius:9px}
html body.allianceRefresh #daily .dailyFocus small{display:block;color:#a8c9db;font-size:11px;margin-bottom:7px}
html body.allianceRefresh #daily .dailyFocus strong{color:#ffcb91;font-size:17px}
html body.allianceRefresh #daily .dailyBoard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
html body.allianceRefresh #daily .dailyColumn{background:#19303f;border:1px solid #43677d;border-top:3px solid #74d6bf;border-radius:10px;padding:14px;min-width:0}
html body.allianceRefresh #daily .dailyColumn:nth-child(2){border-top-color:#ffb56f}
html body.allianceRefresh #daily .dailyColumn:nth-child(3){border-top-color:#b8a0ef}
html body.allianceRefresh #daily .dailyColumn h3{font-size:17px;margin:0 0 13px}
html body.allianceRefresh #daily .dailyTask{padding:12px;margin:8px 0;background:#112632;border:1px solid #3b5e74;border-radius:8px;font-size:13px}
html body.allianceRefresh #daily .dailyTask label{display:flex;gap:10px;align-items:start;margin:0}
html body.allianceRefresh #daily .dailyTask input[type=checkbox]{width:21px;height:21px;margin:0;flex:none}
html body.allianceRefresh #daily .dailyTask.done{background:#1b4039;border-color:#5d9c87}
html body.allianceRefresh #daily .dailyEventTime{display:block;color:#ffce98;font-size:12px;margin-top:8px}
html body.allianceRefresh #daily>a{display:inline-flex;margin-top:16px;padding:12px;border:1px solid #607e93;border-radius:8px;color:#d1eafa;text-decoration:none}
html body.allianceRefresh #daily-admin .awc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:12px;background:#233d50;border:1px solid #50748d;border-radius:9px}
html body.allianceRefresh #daily-admin .awc-toolbar a{padding:10px;color:#ffd298;text-decoration:none;font-size:12px}
html body.allianceRefresh #daily-admin .dailyAdmin>details,html body.allianceRefresh #daily-admin .calendarManagement>details,html body.allianceRefresh #daily-admin .dailyPackControl{background:#1a3242;border:1px solid #4c7087;border-radius:10px;padding:14px;margin:12px 0}
html body.allianceRefresh #daily-admin .dailyPackControl{border-left:3px solid #6bd6bc}
html body.allianceRefresh #daily-admin .dailyAdmin form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body.allianceRefresh #daily-admin label{display:grid;gap:6px;font-size:12px;margin:0;min-width:0}
html body.allianceRefresh #daily-admin input,html body.allianceRefresh #daily-admin select,html body.allianceRefresh #daily-admin textarea{max-width:100%;box-sizing:border-box}
html body.allianceRefresh #daily-admin fieldset{display:flex;flex-wrap:wrap;gap:10px;border:1px solid #52768d;border-radius:8px;min-width:0}
html body.allianceRefresh #daily-admin fieldset label{display:flex;align-items:center;gap:5px}
html body.allianceRefresh #daily-admin input[type=checkbox]{width:20px;height:20px}
html body.allianceRefresh #daily-admin .dailyWide,html body.allianceRefresh #daily-admin fieldset{grid-column:1/-1}
html body.allianceRefresh #daily-admin .taskFilters{background:#203c4e;padding:12px;border-radius:9px}
html body.allianceRefresh #daily-admin .taskBulk{display:flex!important;flex-wrap:wrap;align-items:center;background:#142a38;border:1px solid #577488;border-radius:8px;padding:12px}
html body.allianceRefresh #daily-admin .taskRow{background:#172f40;border:1px solid #466c84;padding:12px;border-radius:9px;margin:8px 0}
html body.allianceRefresh #daily-admin .taskRow small{color:#accadb;font-size:11px}
html body.allianceRefresh #daily-admin .awc-input-preview{grid-column:1/-1;color:#a9ebd3;font-size:13px;line-height:1.5}
html body.allianceRefresh #daily-admin p{font-size:12px;color:#b5d1e2;line-height:1.5}
@media(max-width:760px){html body.allianceRefresh #daily .dailyBoard{grid-template-columns:1fr}html body.allianceRefresh #daily .dailyProgress{flex-direction:column;align-items:stretch}html body.allianceRefresh #daily progress{width:100%}html body.allianceRefresh #daily-admin .dailyAdmin form{grid-template-columns:1fr}html body.allianceRefresh #daily-admin .taskFilters label{flex:1 1 100%}html body.allianceRefresh #daily-admin .awc-toolbar{justify-content:center}html body.allianceRefresh #daily-admin .awc-toolbar strong{order:-1;width:100%;text-align:center;font-size:14px}}
html body.allianceRefresh #activity-scoring .activityScoringForm{display:grid;gap:14px}
html body.allianceRefresh #activity-scoring .activityScoringForm>section{padding:17px;background:#172e3e;border:1px solid #45677e;border-left:3px solid #74d9c2;border-radius:10px;margin:0}
html body.allianceRefresh #activity-scoring .activityScoringForm>section:nth-child(2){border-left-color:#b8a0ef}
html body.allianceRefresh #activity-scoring .activityScoringForm>section:nth-child(3){border-left-color:#ffb168}
html body.allianceRefresh #activity-scoring h3{font-size:18px;margin:0 0 7px}
html body.allianceRefresh #activity-scoring .activityScoringForm p{font-size:12px;line-height:1.5;color:#b6d1e2;margin:0 0 14px}
html body.allianceRefresh #activity-scoring .activityScoringGrid,html body.allianceRefresh #activity-scoring .activityModeGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body.allianceRefresh #activity-scoring .activityScoringGrid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.allianceRefresh #activity-scoring label{display:grid;grid-template-columns:1fr;gap:7px;min-width:0;margin:0;padding:12px;background:#102432;border:1px solid #3b5d73;border-radius:8px;color:#d7eaf7;font-size:12px}
html body.allianceRefresh #activity-scoring input,html body.allianceRefresh #activity-scoring select{width:100%}
html body.allianceRefresh #activity-scoring input{font-size:18px;font-weight:700;color:#ffd095!important}
html body.allianceRefresh #activity-scoring small{font-size:11px;color:#abc8da;line-height:1.4}
html body.allianceRefresh #activity-scoring .activityScoringActions{padding:16px;border:1px solid #ba8b50;background:#352e26;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:16px}
html body.allianceRefresh #activity-scoring .activityScoringActions p{margin:0;color:#f6dbb9;max-width:650px}
html body.allianceRefresh #activity-scoring .activityScoringActions button{flex-shrink:0}
@media(max-width:760px){html body.allianceRefresh #activity-scoring .activityScoringGrid,html body.allianceRefresh #activity-scoring .activityModeGrid{grid-template-columns:1fr 1fr}html body.allianceRefresh #activity-scoring .activityScoringActions{flex-direction:column;align-items:stretch}}
@media(max-width:420px){html body.allianceRefresh #activity-scoring .activityScoringGrid,html body.allianceRefresh #activity-scoring .activityScoringGrid.compact,html body.allianceRefresh #activity-scoring .activityModeGrid{grid-template-columns:1fr}html body.allianceRefresh #activity-scoring .activityScoringForm>section{padding:12px}}
html body.allianceRefresh #uploads .manualUploadRow label.hidden{display:none!important}
html body.allianceRefresh #uploads .uploadsCategorySelect.isActive small{color:#493018}
html body.allianceRefresh #uploads .uploadsCategoryGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
html body.allianceRefresh #uploads .uploadsCategoryCard{background:#192f3e;border:1px solid #496d83;border-radius:10px;overflow:hidden;min-width:0}
html body.allianceRefresh #uploads .uploadsCategorySelect{width:100%;text-align:left;background:#203d50;color:#d7edf9;border:0;border-radius:0;min-height:76px;padding:14px}
html body.allianceRefresh #uploads .uploadsCategorySelect strong,html body.allianceRefresh #uploads .uploadsCategorySelect small{display:block}
html body.allianceRefresh #uploads .uploadsCategorySelect small{font-size:11px;line-height:1.4;margin-top:6px;font-weight:400}
html body.allianceRefresh #uploads .uploadsCategorySelect.isActive{background:#ffb15f;color:#25190c}
html body.allianceRefresh #uploads .uploadsWeekStatus{display:flex;flex-wrap:wrap;gap:5px;padding:10px;font-size:11px}
html body.allianceRefresh #uploads .uploadsWeekStatus>span{padding:5px 7px;background:#263e4d;border-radius:5px;color:#c2d8e7}
html body.allianceRefresh #uploads .uploadsWeekStatus .isPresent{background:#18493c;color:#abefcc}
html body.allianceRefresh #uploads .uploadsWeekStatus .isArchived{background:#533c22;color:#ffd499}
html body.allianceRefresh #uploads .uploadsWeekLegend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#bfd8e8;margin:12px 0}
html body.allianceRefresh #uploads .uploadsMethodTabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:start;background:none;border:0;padding:0;margin:18px 0}
html body.allianceRefresh #uploads .uploadsMethodTabs button{background:#223f52;color:#cde6f6;border-color:#547a90}
html body.allianceRefresh #uploads .uploadsMethodTabs button.isActive{background:#73d9c2;color:#122b26;border-color:#a6f4df}
html body.allianceRefresh #uploads .uploadsTeamChoice{background:#21394b;border:1px solid #55778d;border-radius:9px;padding:13px;gap:14px}
html body.allianceRefresh #uploads .uploadsTeamChoice small{display:block;color:#aac8da;font-size:12px}
html body.allianceRefresh #uploads .manualUploadForm{padding:16px;background:#172e3e;border:1px solid #4a6b80;border-radius:10px}
html body.allianceRefresh #uploads .manualUploadForm p{font-size:12px;line-height:1.5;color:#b5d1e2}
html body.allianceRefresh #uploads .manualUploadMeta{display:flex;flex-wrap:wrap;gap:12px}
html body.allianceRefresh #uploads label{margin:0;font-size:12px;min-width:0}
html body.allianceRefresh #uploads .manualUploadRows{display:grid;gap:8px;margin:14px 0}
html body.allianceRefresh #uploads .manualUploadRow{display:grid;grid-template-columns:24px minmax(0,2fr) minmax(0,1fr) 44px;align-items:end;gap:10px;background:#102432;border:1px solid #3e6077;border-radius:8px;padding:12px}
html body.allianceRefresh #uploads .manualUploadRow label{display:grid;gap:6px}
html body.allianceRefresh #uploads .manualUploadRow input,html body.allianceRefresh #uploads .manualUploadRow select{width:100%}
html body.allianceRefresh #uploads .manualUploadActions,html body.allianceRefresh #uploads .manualUploadActions>div{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
html body.allianceRefresh #uploads .uploadsUnavailable{padding:18px;border:1px dashed #678ba0;border-radius:10px;color:#bed8e7;font-size:13px}
@media(max-width:800px){html body.allianceRefresh #uploads .uploadsCategoryGrid{grid-template-columns:1fr 1fr}html body.allianceRefresh #uploads .manualUploadRow{grid-template-columns:22px minmax(0,1fr) 44px}html body.allianceRefresh #uploads .manualUploadRow label{grid-column:2}html body.allianceRefresh #uploads .manualRowRemove{grid-column:3;grid-row:1/3}html body.allianceRefresh #uploads .manualUploadForm{padding:10px}}
@media(max-width:360px){html body.allianceRefresh #uploads .uploadsCategoryGrid{grid-template-columns:1fr}}
html body.allianceRefresh #members .memberWorkspaceViews a{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:12px}
html body.allianceRefresh #members .memberWorkspaceViews a strong,html body.allianceRefresh #members .memberWorkspaceViews a small{display:block}
html body.allianceRefresh #members .memberWorkspaceViews a small{font-size:12px;font-weight:400;margin-top:5px}
html body.allianceRefresh #members .memberSearch small{position:static;display:block;inset:auto;margin:0;text-align:right}
html body.allianceRefresh #members .memberSearch input{width:100%}
html body.allianceRefresh #members .memberPageSize{margin:0}
html body.allianceRefresh #members .memberViewLabel{margin:10px 0;font-size:12px}
html body.allianceRefresh #members .memberWorkspaceViews{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;margin:12px 0 18px;background:none;border:0}
html body.allianceRefresh #members .memberWorkspaceViews a{background:#1c384b;color:#d4eaf7;border:1px solid #567b91;border-radius:10px;padding:14px;text-decoration:none}
html body.allianceRefresh #members .memberWorkspaceViews a.active{background:#355148;border-color:#7bd9bd;box-shadow:inset 4px 0 #74dfc4}
html body.allianceRefresh #members .memberWorkspaceViews small{color:#afc9da}
html body.allianceRefresh #members .memberTools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:14px 0}
html body.allianceRefresh #members .roleCounts{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;color:#b5d1e2}
html body.allianceRefresh #members .memberSearch{display:grid;gap:5px;font-size:12px;margin:0}
html body.allianceRefresh #members .memberCompactList{display:grid;gap:9px}
html body.allianceRefresh #members .memberCompact{background:#182f3f;border:1px solid #43647c;border-radius:10px;overflow:hidden}
html body.allianceRefresh #members .memberCompact[open]{border-color:#73d8c4}
html body.allianceRefresh #members .memberCompactSummary{display:flex;align-items:center;gap:12px;padding:13px;min-height:65px;color:#e6f5ff}
html body.allianceRefresh #members .memberCompactIdentity{flex:1;min-width:0}
html body.allianceRefresh #members .memberCompactIdentity strong{display:block;font-size:16px;overflow-wrap:anywhere}
html body.allianceRefresh #members .memberCompactIdentity small{font-size:11px;color:#9dbfd5}
html body.allianceRefresh #members .memberCompactRank{background:#2a4b5c;color:#9df0db;border-radius:7px;padding:9px;font-size:12px}
html body.allianceRefresh #members .memberCompactState{font-size:11px;color:#addbcc}
html body.allianceRefresh #members .memberCompactAction{font-size:0;display:grid;place-items:center;width:40px;height:40px;background:#3a3b30;color:#ffc58a;border:1px solid #ba8c58;border-radius:8px;flex:none}
html body.allianceRefresh #members .memberCompactAction::before{content:'';width:22px;height:22px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m16 3 5 5L8 21H3v-5L16 3Zm-2 2 5 5' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat}
html body.allianceRefresh #members .memberCompactToolbar{display:flex;justify-content:space-between;align-items:end;flex-wrap:wrap;gap:12px;margin:16px 0}
html body.allianceRefresh #members .memberRankFilters{display:flex;gap:6px;flex-wrap:wrap}
html body.allianceRefresh #members .memberRankFilters button{background:#203b4d;color:#cce4f4;border-color:#577c93}
html body.allianceRefresh #members .memberRankFilters button[aria-pressed=true]{background:#ffb666;color:#281909}
html body.allianceRefresh #members .memberPageSize{display:grid;gap:5px;font-size:11px}
html body.allianceRefresh #members .memberCompactPagination,html body.allianceRefresh #members .mpoPagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;background:transparent;border:0;margin:14px 0;padding:0;font-size:12px}
html body.allianceRefresh #members .memberRow{padding:14px;border:0;border-top:1px solid #416277}
html body.allianceRefresh #members .memberProfile{display:grid;grid-template-columns:minmax(120px,2fr) 80px minmax(140px,1fr) 80px 44px;gap:10px;align-items:end}
html body.allianceRefresh #members .memberProfile label{display:grid;gap:6px;margin:0;font-size:12px;min-width:0}
html body.allianceRefresh #members .memberAdminAction svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
html body.allianceRefresh #members .attendanceSummary{padding:12px;margin:12px 0;background:#102633;color:#bdd7e6;border:1px solid #3b5d70;border-radius:8px;font-size:12px}
html body.allianceRefresh #members .merge{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
html body.allianceRefresh #members .merge select{flex:1;min-width:0}
html body.allianceRefresh #members .memberSecondary{background:#172c3a;border:1px solid #3e5c71;border-radius:8px;padding:0 12px;margin:10px 0}
html body.allianceRefresh #members .mpoIntro,html body.allianceRefresh #members .mpoPlayer{background:#192f3f;color:#dceffa;border-color:#50788f}
html body.allianceRefresh #members .mpoPlayer>summary{padding:14px}
html body.allianceRefresh #members .mpoPowers b{color:#ffc282}
html body.allianceRefresh #members .mpoBody{background:#112431;border-color:#46687f}
html body.allianceRefresh #members .memberPowerInputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body.allianceRefresh #members .memberPowerInputs label{min-width:0;display:grid;gap:6px;font-size:12px}
@media(max-width:760px){html body.allianceRefresh #members .memberProfile{grid-template-columns:1fr 1fr}html body.allianceRefresh #members .memberProfile label:first-of-type{grid-column:1/-1}html body.allianceRefresh #members .memberWorkspaceViews{grid-template-columns:1fr}html body.allianceRefresh #members .memberPowerInputs{grid-template-columns:1fr 1fr}html body.allianceRefresh #members .memberCompactSummary{gap:8px;padding:10px}html body.allianceRefresh #members .memberCompactState{display:none}html body.allianceRefresh #members .memberSearch{width:100%}html body.allianceRefresh #members .memberAdd{display:grid;grid-template-columns:1fr;gap:8px}}
html body.allianceRefresh #settings .panelHead,html body.allianceRefresh #permissions .panelHead{padding:0 0 10px;margin:0 0 14px;min-height:0}
html body.allianceRefresh #settings .dailyPackControl{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:18px;background:#193746;border:1px solid #527b91;border-left:4px solid #70dfc6;border-radius:12px;margin:0 0 18px}
html body.allianceRefresh #settings .dailyPackControl strong{display:block;font:700 21px Arial;color:#d8fff5;margin:7px 0}
html body.allianceRefresh #settings .dailyPackControl p{font-size:12px;line-height:1.5;margin:6px 0;color:#bdd6e5}
html body.allianceRefresh #settings .dailyPackControl form{display:flex;align-items:end;gap:10px;margin:0}
html body.allianceRefresh #settings .dailyPackControl label{display:grid;gap:7px;margin:0;flex:1;font-size:12px}
html body.allianceRefresh #settings .settingsModules{padding:18px}
html body.allianceRefresh #settings .modulePreset{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 15px}
html body.allianceRefresh #settings .modulePreset small{flex-basis:100%;font-size:12px;color:#abc9da}
html body.allianceRefresh #settings .moduleGrid,html body.allianceRefresh #permissions .permissionGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 14px}
html body.allianceRefresh #settings .moduleCard,html body.allianceRefresh #permissions .permissionGrid label{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:10px;margin:0;padding:13px;min-height:0;border:1px solid #446378;border-radius:9px;background:#10232f;color:#dcecf7;position:relative}
html body.allianceRefresh #settings .moduleCard{grid-template-columns:22px minmax(0,1fr) auto}
html body.allianceRefresh #settings .moduleCard:has(input:checked),html body.allianceRefresh #permissions .permissionGrid label:has(input:checked){background:#173c3b;border-color:#5dcdb7}
html body.allianceRefresh #settings .moduleCardLocked{border-style:dashed;background:#242e3b}
html body.allianceRefresh #settings .moduleCard input,html body.allianceRefresh #permissions .permissionGrid input{width:20px;height:20px;margin:0;accent-color:#73dec8}
html body.allianceRefresh #settings .moduleCard strong,html body.allianceRefresh #permissions .permissionGrid strong{display:block;font-size:13px;line-height:1.4}
html body.allianceRefresh #settings .moduleCard small,html body.allianceRefresh #permissions .permissionGrid small{display:block;font-size:12px;line-height:1.45;margin-top:5px;color:#acc8d9}
html body.allianceRefresh #settings .moduleCard b{font-size:10px;color:#bdece0;padding:4px 6px;background:#253d4c;border-radius:5px}
html body.allianceRefresh #permissions .permissionMemberList{display:grid;gap:13px}
html body.allianceRefresh #permissions .permissionMemberCard{padding:16px;margin:0}
html body.allianceRefresh #permissions .permissionMemberCard>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 0 12px;margin:0;background:transparent;border:0}
html body.allianceRefresh #permissions .permissionMemberCard>header>div{display:flex;align-items:center;gap:10px}
html body.allianceRefresh #permissions .permissionMemberCard>header small{display:block;margin-top:4px;color:#aac8da}
html body.allianceRefresh #permissions .permissionBadge{font-size:11px;background:#244957;color:#b9f3e7;border:1px solid #4a8190;border-radius:7px;padding:7px}
html body.allianceRefresh #permissions .permissionFullText{font-size:12px;margin:0;color:#acc8d9}
html body.allianceRefresh .adminHelp{margin:8px 0 14px;font-size:12px;color:#abc9da}
html body.allianceRefresh .adminHelp summary{padding:6px 0!important;min-height:32px!important;font-size:12px}
html body.allianceRefresh .adminHelp p{margin:4px 0;font-size:12px;line-height:1.5}
html body.allianceRefresh .adminSaveIcon{width:18px;height:18px;vertical-align:middle;margin-right:7px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:760px){html body.allianceRefresh #settings .dailyPackControl{grid-template-columns:1fr}html body.allianceRefresh #settings .moduleGrid,html body.allianceRefresh #permissions .permissionGrid{grid-template-columns:1fr}html body.allianceRefresh #settings .settingsModules,html body.allianceRefresh #permissions .permissionMemberCard{padding:12px}html body.allianceRefresh #settings .dailyPackControl form{flex-wrap:wrap}html body.allianceRefresh #settings .dailyPackControl form label{flex-basis:100%}}
/* Shared design for remaining Alliance modules. Low-specificity selectors let specialized views win. */
html body.allianceRefresh :where(main>.panel){--design-surface:#142936;--design-line:#416076;--design-ink:#edf6fc;--design-text:#edf6fc;--design-muted:#abc9da;--paper:#0c1b26;--card:#182f3e;--ink:#edf6fc;--text:#edf6fc;--muted:#abc9da;--line:#426177;--orange:#ffad60;--green:#67d6bf;--design-accent:#ffad60;--design-soft:#2a4254;color:#edf6fc!important;background:#11232f!important;border-color:#426177!important;border-radius:14px}
html body.allianceRefresh :where(main>.panel) :where(h2,h3,h4){font-family:Arial,sans-serif!important;color:#edf6fc}
html body.allianceRefresh :where(main>.panel) :where(.panelHead){gap:14px;margin-bottom:16px}
html body.allianceRefresh :where(main>.panel) :where(.panelHead h2){font-size:23px;line-height:1.25;margin:5px 0}
html body.allianceRefresh :where(main>.panel) :where(.panelHead p,.hint){font-size:13px;line-height:1.55;color:#abc9da}
html body.allianceRefresh :where(main>.panel) :where(.eyebrow){font-size:10px;color:#ffbd7b;letter-spacing:.1em}
html body.allianceRefresh :where(main>.panel) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color]),select,textarea){max-width:100%;min-width:0;min-height:44px;border:1px solid #5b7b91!important;border-radius:8px;background:#0b1d2a!important;color:#edf6fc!important;padding:10px;box-sizing:border-box;font:13px Arial}
html body.allianceRefresh :where(main>.panel) :where(input[type=checkbox],input[type=radio]){accent-color:#70dec9}
html body.allianceRefresh :where(main>.panel) :where(label){color:#c2dcea}
html body.allianceRefresh :where(main>.panel) :where(button,.primaryButton){min-height:44px;border:1px solid #ffcc92;border-radius:8px;background:linear-gradient(135deg,#ffc27b,#ff9b48);color:#2f1d0c;font:700 13px/1.3 Arial;padding:10px 13px}
html body.allianceRefresh :where(main>.panel) :where(button.ghost,a.ghost){background:#254255;border-color:#608399;color:#deeff9}
html body.allianceRefresh :where(main>.panel) :where(button:disabled){opacity:.5;cursor:not-allowed}
html body.allianceRefresh :where(main>.panel) :where(button.remove,button.danger){background:#452a34;color:#ffdbe4;border-color:#8d596c}
html body.allianceRefresh :where(main>.panel) :where(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8ee7ff!important;outline-offset:3px}
html body.allianceRefresh :where(main>.panel) :where(summary){min-height:44px;cursor:pointer;color:#d4e9f6;padding:11px 0}
html body.allianceRefresh :where(main>.panel) :where(.card,.chart,.memberRankGroup,.memberRosterRow,.memberRow,.permissionMemberCard,.settingsModules,.settingsServerTime,.trainDay,.trainSummary,.absenceCard,.wikiArticle,.wikiMenu,.dashboardBlock,.allianceStatsCard,.briefingPriority,.briefingSidebar>article,.slCard){background:#192f3e!important;border-color:#426378!important;border-radius:10px;color:#e7f3fc}
html body.allianceRefresh :where(main>.panel) :where(.memberRosterColumns,thead){background:#223f52;color:#cce5f6}
html body.allianceRefresh :where(main>.panel) :where(th,td){border-color:#37566a;padding:10px 12px;text-align:left}
html body.allianceRefresh :where(main>.panel) :where(tbody tr:nth-child(even)){background:#20374655}
html body.allianceRefresh :where(main>.panel) :where(.rankTabs,.teamTabs,.memberWorkspaceTabs,.statsTabs,.periodTabs){gap:7px;flex-wrap:wrap}
html body.allianceRefresh :where(main>.panel) :where(.rankTabs,.teamTabs,.memberWorkspaceTabs,.statsTabs,.periodTabs) :where(button){background:#254255;border-color:#54788e;color:#d9edf8}
html body.allianceRefresh :where(main>.panel) :where(.rankTabs,.teamTabs,.memberWorkspaceTabs,.statsTabs,.periodTabs) :where(button.active,button[aria-selected=true]){background:linear-gradient(135deg,#ffc176,#ff9b48);color:#2f1d0c;border-color:#ffdaaa}
html body.allianceRefresh :where(main>.panel) :where(.success){color:#9aefcf}
html body.allianceRefresh :where(main>.panel) :where(.error){color:#ffb6c6}
html body.allianceRefresh :where(main>.panel) :where(.warning,.attendanceWarning){color:#ffd391}
html body.allianceRefresh :where(main>.panel) :where(.memberRosterRow.isOwn){border-left:3px solid #6cd8c0}
html body.allianceRefresh :where(main>.panel) :where(.rankList .row){padding:12px;border-bottom:1px solid #3f6075;gap:12px}
html body.allianceRefresh :where(main>.panel) :where(.rankList .place){color:#ffbd77;font:800 20px Arial}
html body.allianceRefresh :where(main>.panel) :where(.rankList .power){color:#d6ecfa;font-family:Arial,sans-serif}
html body.allianceRefresh :where(main>.panel) :where(.memberRosterPower,.allianceStatsGrid strong){font-family:Arial,sans-serif;color:#ffc27b}
html body.allianceRefresh :where(main>.panel) :where(.mapViewport,.actualMap,.allianceMapCanvas,.imageMap){border-radius:10px}
html body.allianceRefresh :where(main>.panel) :where(.sharedActionIcon){width:44px;min-width:44px;height:44px;padding:10px;display:inline-flex;align-items:center;justify-content:center}
html body.allianceRefresh :where(main>.panel) :where(.sharedActionIcon svg){width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh :where(.sharedActionLabel){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:700px){html body.allianceRefresh :where(main>.panel){padding:14px}html body.allianceRefresh :where(main>.panel) :where(.panelHead){flex-wrap:wrap}html body.allianceRefresh :where(main>.panel) :where(.panelHead h2){font-size:21px}html body.allianceRefresh :where(main>.panel) :where(.permissionGrid,.moduleGrid){grid-template-columns:1fr}html body.allianceRefresh :where(main>.panel) :where(.supportFeedbackForm){grid-template-columns:1fr}html body.allianceRefresh :where(main>.panel) :where(.rankList .row){flex-wrap:wrap}html body.allianceRefresh :where(main>.panel) :where(.rankList .playerIdentity){min-width:0;flex:1}}
html body.allianceRefresh #activity-proof{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
html body.allianceRefresh #activity-proof>*,html body.allianceRefresh #activity-proof .activityRanking,html body.allianceRefresh #activity-proof .activityRankTable{min-width:0;max-width:100%}
html body.allianceRefresh #activity-proof .activityHistory>div>article{display:block;min-width:0}
html body.allianceRefresh #activity-proof .activityHistoryDetails{width:100%;min-width:0}
html body.allianceRefresh #activity-proof .activitySectionTitle>div,html body.allianceRefresh #activity-proof .activityWeeklyHead>div{min-width:0}
@media(max-width:760px){html body.allianceRefresh #activity-proof .activityHead,html body.allianceRefresh #activity-proof .activityWeeklyHead{flex-wrap:wrap}html body.allianceRefresh #activity-proof .activityWeekly{padding:12px}html body.allianceRefresh #activity-proof .activitySectionTitle>div>div,html body.allianceRefresh #activity-proof .activityWeeklyHead>div>div{min-width:0}html body.allianceRefresh #activity-proof .activityHistoryActions{min-width:0}html body.allianceRefresh #activity-proof .activitySavedResultTable>div,html body.allianceRefresh #activity-proof .activitySavedResultTable>header{grid-template-columns:30px minmax(0,1fr) 65px;padding:8px}}
html body.allianceRefresh #activity-proof .activityStep svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #activity-proof{gap:16px}
html body.allianceRefresh #activity-proof .activityRanking,html body.allianceRefresh #activity-proof .activityHistory{margin:0}
html body.allianceRefresh #activity-proof .activityWeekly{padding:16px;margin:0}
html body.allianceRefresh #activity-proof .activityRankTable>article{padding:9px 12px}
html body.allianceRefresh #activity-proof .activityRankTable .avatar{width:36px;height:36px;flex-basis:36px}
/* Alliance week: original day selection and timezone conversion stay in charge. */
html body.allianceRefresh #alliance-calendar{--awc-surface:#173243;--awc-bg:#102737;--awc-line:#466b82;--awc-ink:#edf7ff;--awc-muted:#b3cddd;min-width:0}
html body.allianceRefresh #alliance-calendar .awc-heading h2{font-family:inherit;font-size:25px;margin:5px 0}
html body.allianceRefresh #alliance-calendar .awc-heading p{margin-bottom:12px}
html body.allianceRefresh #alliance-calendar .awc-toolbar{gap:12px;margin-bottom:12px}
html body.allianceRefresh #alliance-calendar .awc-grid{gap:6px;border:0;background:transparent;overflow:visible}
html body.allianceRefresh #alliance-calendar .awc-day{padding:7px;border:1px solid #456b83;border-radius:10px;background:#173243;min-height:180px}
html body.allianceRefresh #alliance-calendar .awc-day>header{position:static;padding:5px 2px 12px;height:auto}
html body.allianceRefresh #alliance-calendar .awc-selected{border-color:#ffa954}
html body.allianceRefresh #alliance-calendar .awc-event{border-radius:8px;box-shadow:0 3px 10px #0002}
html body.allianceRefresh #alliance-calendar .awc-event h3{font-family:inherit}
html body.allianceRefresh #alliance-calendar .awc-detail-hint{color:#ffbf7e;font-weight:700}
html body.allianceRefresh #alliance-calendar .awc-detail-hint:after{content:' +';font-size:16px}
html body.allianceRefresh #alliance-calendar .awc-event[open] .awc-detail-hint:after{content:' −'}
html body.allianceRefresh #alliance-calendar .awc-tasks{padding:12px 14px;border:1px solid #456b83;border-radius:9px;background:#173243;margin-top:12px}
html body.allianceRefresh #alliance-calendar .awc-tasks summary{cursor:pointer;font-weight:700}
html body.allianceRefresh #alliance-calendar .awc-note{font-size:11px;line-height:1.5;margin-top:12px;padding-top:10px}
html body.allianceRefresh #alliance-calendar .awc-arrow{background:#25495f;border-color:#668aa0;min-width:44px;min-height:44px}
html body.allianceRefresh #alliance-calendar .awc-switch button[aria-pressed=true]{background:#ffb15e;color:#102333;border-color:#ffd297}
@container(max-width:750px){html body.allianceRefresh #alliance-calendar .awc-day{min-height:0;padding:12px}html body.allianceRefresh #alliance-calendar .awc-switch button{min-height:64px}html body.allianceRefresh #alliance-calendar .awc-switch small{font-size:8px}html body.allianceRefresh #alliance-calendar .awc-event{margin-bottom:0}}
html body.allianceRefresh #alliance-calendar .awc-switch button{padding:8px 0;min-width:0;white-space:nowrap;overflow-wrap:normal;word-break:normal;background:#24485d;color:#d5eafa;border:1px solid #608199;box-shadow:none}
html body.allianceRefresh #alliance-calendar .awc-switch button[aria-pressed=true]{background:#ffb15e;color:#102333;border-color:#ffd297}
html body.allianceRefresh #alliance-calendar .awc-switch button small{color:inherit;font-size:9px;white-space:nowrap}
html body.allianceRefresh #alliance-calendar .awc-switch button b{font-size:16px;white-space:nowrap}
html body.allianceRefresh #alliance-calendar>a,html body.allianceRefresh #alliance-calendar .awc-tasks a{color:#ffc182;display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
/* Keep the full week visible on narrow screens; day buttons highlight their day. */
@container(max-width:750px){html body.allianceRefresh #alliance-calendar.awc-enhanced .awc-day{display:block;margin-bottom:8px}html body.allianceRefresh #alliance-calendar .awc-day>header{padding-bottom:8px}html body.allianceRefresh #alliance-calendar .awc-empty{padding:6px 0;margin:0;text-align:left}html body.allianceRefresh #alliance-calendar .awc-event h3{margin-bottom:7px}html body.allianceRefresh #alliance-calendar .awc-event summary{padding:10px 12px}}
/* Shared original dashboard and Combat surfaces. */
html body.allianceRefresh #donations{min-width:0;gap:16px}
html body.allianceRefresh #donations .dashboardBlocks{min-width:0;gap:16px}
html body.allianceRefresh #donations :is(.allianceBriefing,.dashboardBlock,.combatCard,.dashboardCustomize){min-width:0;max-width:100%;background:#173243;border:1px solid #456b82;border-radius:12px;padding:16px;color:#ecf6ff}
html body.allianceRefresh #donations :is(h2,h3){font-family:inherit}
html body.allianceRefresh #donations :is(.allianceBriefingHead,.combatCard>header,.dashboardBlock>header){position:static;min-height:0;background:transparent;height:auto;padding:0 0 12px}
html body.allianceRefresh #donations :is(.allianceBriefingWorkspace,.briefingFocusBand){gap:12px}
html body.allianceRefresh #donations :is(.briefingPriority,.briefingSchedule,.briefingNextEvent,.briefingSignups,.briefingFocusBand>article){background:#102a3b;border:1px solid #426980;border-radius:9px;padding:12px;min-width:0}
html body.allianceRefresh #donations :is(.briefingPriorityTask,.briefingDailyTask){background:#214459;border-color:#50768b;border-radius:8px;padding:10px;margin:5px 0}
html body.allianceRefresh #donations :is(.briefingPriorityTask,.briefingDailyTask) label{display:flex;align-items:center;gap:10px}
html body.allianceRefresh #donations input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#ffb15e}
html body.allianceRefresh #donations :is(.briefingSignupLink,.briefingNextEventMeta,.briefingDeploymentInfo){background:#214459;color:#edf7ff;border-radius:8px}
html body.allianceRefresh #donations .allianceStatsGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
html body.allianceRefresh #donations :is(.allianceStatsGrid>article,.powerDevelopmentMetrics>article,.combatOverview>article){background:#102a3b;border:1px solid #456b82;padding:12px;border-radius:9px;min-width:0}
html body.allianceRefresh #donations :is(.allianceStatsGrid strong,.powerDevelopmentMetrics strong){color:#ffc381;font-size:24px}
html body.allianceRefresh #donations :is(.combatTroops>article,.dashboardComparisonStrip){background:#102a3b!important;border-color:#50768b!important;min-width:0}
html body.allianceRefresh #donations :is(.combatPairScroll,.slStats,.slCard){min-width:0;max-width:100%}
html body.allianceRefresh #donations .combatSelect{min-width:0;max-width:100%}
html body.allianceRefresh #donations .combatSelect select{width:100%;min-width:0}
html body.allianceRefresh #donations .powerChartWrap canvas{width:100%;max-width:100%;height:240px}
html body.allianceRefresh #donations :is(.dashboardCustomize summary,.powerDevelopmentValues summary){cursor:pointer;min-height:44px;color:#ffca90}
html body.allianceRefresh #donations :is(p,small){line-height:1.5}
html body.allianceRefresh #donations .dashboardOrderList>div{padding:8px;gap:8px;min-width:0}
@media(max-width:760px){html body.allianceRefresh #donations :is(.allianceBriefingWorkspace,.briefingFocusBand,.powerDevelopmentMetrics){display:grid;grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #donations .allianceStatsGrid{grid-template-columns:repeat(2,minmax(0,1fr))}html body.allianceRefresh #donations :is(.allianceBriefing,.dashboardBlock,.combatCard,.dashboardCustomize){padding:12px}html body.allianceRefresh #donations .allianceBriefingHead{flex-wrap:wrap}html body.allianceRefresh #donations .briefingSignupRow{flex-wrap:wrap}html body.allianceRefresh #donations .briefingSignupLink{min-width:0;flex-wrap:wrap}html body.allianceRefresh #donations .dashboardCustomize summary{flex-wrap:wrap}html body.allianceRefresh #donations .combatOverview{gap:8px}html body.allianceRefresh #donations .combatOverview article b{font-size:23px}html body.allianceRefresh #donations .powerDevelopmentValues>div{overflow:auto}html body.allianceRefresh #donations .powerDevelopmentValues :is(header,p){min-width:360px}}
html body.allianceRefresh #donations .dashboardBlocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
html body.allianceRefresh #donations .dashboardBlocks>:is(.allianceStatsCard,.powerDevelopmentCard,.combatCard,.donationBlock){grid-column:1/-1}
html body.allianceRefresh #donations .allianceBriefingWorkspace{align-items:start}
html body.allianceRefresh #donations .allianceBriefing :is(strong,h2,h3){font-family:inherit!important}
html body.allianceRefresh #donations .allianceBriefingHead h2{font-size:24px}
html body.allianceRefresh #donations .briefingFocusBand strong{font-size:21px}
html body.allianceRefresh #donations :is(.briefingPriority header,.briefingSchedule header,.briefingNextEvent header){position:static;height:auto;min-height:0;background:transparent}
html body.allianceRefresh #donations .dashboardStatsControls{min-width:0;max-width:100%}
html body.allianceRefresh #donations .dashboardStatsToggleGrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html body.allianceRefresh #donations .dashboardStatsControls label{display:flex;align-items:center;gap:8px;min-width:0}
@media(max-width:760px){html body.allianceRefresh #donations .dashboardBlocks{grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #donations .dashboardStatsToggleGrid{grid-template-columns:repeat(2,minmax(0,1fr))}html body.allianceRefresh #donations .dashboardOrderList>div{flex-wrap:wrap}html body.allianceRefresh #donations .briefingDailyCollapsed summary{flex-wrap:wrap;gap:8px}html body.allianceRefresh #donations .briefingFocusBand strong{font-size:19px}}
html body.allianceRefresh #donations{padding:0!important;background:transparent!important;border:0!important;overflow:visible}
html body.allianceRefresh #donations .allianceBriefing{padding:16px!important}
html body.allianceRefresh #donations .allianceBriefingWorkspace{align-items:start!important}
html body.allianceRefresh #donations .allianceBriefingHead h2{font-size:24px!important}
html body.allianceRefresh #donations .briefingPriority>header strong{font-size:21px!important}
html body.allianceRefresh #donations :is(.briefingSchedule,.briefingNextEvent)>header{justify-content:flex-start;background:transparent!important}
html body.allianceRefresh #donations :is(.briefingSchedule,.briefingNextEvent)>header>div{text-align:left}
html body.allianceRefresh #donations .combatOverview article b{font-family:inherit}
html body.allianceRefresh :is(#alliance-map,#train-week-test){min-width:0;max-width:100%}
html body.allianceRefresh #alliance-map :is(.allianceMapControlGroup,.allianceMapTemplates,.allianceMapRoster,.allianceMapStage,.allianceMapSave),html body.allianceRefresh #train-week-test :is(.tpContext,.tpRules,.tpFixedCard,.tpPlayerFilter,.tpHowTo,.tpTopCard,.tpWeekCard){background:#173243;border:1px solid #476e85;border-radius:10px;padding:14px;min-width:0;color:#edf7ff}
html body.allianceRefresh #alliance-map :is(.allianceMapHead,.allianceMapSetup,.allianceMapToolbar,.allianceMapWorkspace){gap:12px;min-width:0}
html body.allianceRefresh #alliance-map .allianceMapCanvasWrap{max-width:100%;background:#0b202e;border-radius:10px}
html body.allianceRefresh #alliance-map .allianceMapGroupHead{margin-bottom:10px}
html body.allianceRefresh :is(#alliance-map,#train-week-test) :is(h2,h3){font-family:inherit}
html body.allianceRefresh #alliance-map :is(.allianceMapSetupFields,.allianceMapControlRow,.allianceMapWatchChoice,.allianceMapManual){gap:8px;min-width:0}
html body.allianceRefresh #alliance-map :is(input,select){min-width:0;max-width:100%}
html body.allianceRefresh #alliance-map .allianceMapCoordinateHud{background:#21465c;color:#d9efff;border-color:#60849a}
html body.allianceRefresh #train-week-test .tpViewTabs a{color:#cce7f8;background:#21455c;border:1px solid #60849a;border-radius:8px;padding:12px;text-decoration:none}
html body.allianceRefresh #train-week-test .tpViewTabs a.active{background:#ffb15e;color:#112636}
html body.allianceRefresh #train-week-test :is(.tpTableWrap,.tpViewPane){min-width:0;max-width:100%}
html body.allianceRefresh #train-week-test .tpTableWrap{overflow:auto;border:1px solid #60849a;border-radius:9px}
html body.allianceRefresh #train-week-test :is(.tpRules fieldset,.tpDefinitionGrid>label){min-width:0;background:#102a3b;border-color:#456b82;border-radius:8px;padding:10px}
html body.allianceRefresh #train-week-test :is(input,select){min-width:0;max-width:100%}
html body.allianceRefresh #train-week-test .tpTable :is(th,td){border-color:#456b82;background:#173243;color:#deeffa}
html body.allianceRefresh #train-week-test .tpTestNotice{background:#193c51;color:#cde3f1;border-color:#537b92;font-size:12px;line-height:1.5}
html body.allianceRefresh #train-week-test summary{cursor:pointer;min-height:44px;color:#ffd098}
@media(max-width:760px){html body.allianceRefresh #alliance-map :is(.allianceMapSetup,.allianceMapToolbar,.allianceMapWorkspace,.allianceMapSetupFields,.allianceMapWatchChoice,.allianceMapWatchChoice>div){display:grid;grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #alliance-map .allianceMapRoster{max-height:260px;overflow:auto}html body.allianceRefresh #alliance-map :is(.allianceMapTemplates,.allianceMapManual,.allianceMapSave){flex-wrap:wrap}html body.allianceRefresh #train-week-test :is(.tpContext,.tpProfileEventGrid,.tpDefinitionGrid){display:grid;grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #train-week-test :is(.tpViewTabs,.tpTestHead,.tpRuleChooser){flex-wrap:wrap}}
html body.allianceRefresh :is(#train-week-test,#alliance-map).hidden{display:none!important}
html body.allianceRefresh #train-week-test{grid-template-columns:minmax(0,1fr);--tp-border:#476e85;--tp-surface:#173243}
html body.allianceRefresh #train-week-test :is(.tpViewPane,.tpPlayerFilterBody,.tpPlayerFilterOptions,.tpFixedCard,.tpScheduleCard,.tpTop20Card){min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr)}
html body.allianceRefresh #train-week-test :is(.tpPlayerFilterBody label,.tpToolbar>div,.tpContext>*){min-width:0;max-width:100%}
html body.allianceRefresh #train-week-test :is(.tpScheduleCard,.tpTop20Card){background:#173243;border-color:#476e85;border-radius:10px;padding:14px}
html body.allianceRefresh #alliance-map{display:flex;flex-direction:column;gap:12px}
html body.allianceRefresh #alliance-map .allianceMapTemplates{order:1}
html body.allianceRefresh #alliance-map .allianceMapWorkspace{order:2}
html body.allianceRefresh #alliance-map .allianceMapSetup{order:3}
html body.allianceRefresh #alliance-map .allianceMapToolbar{order:4}
html body.allianceRefresh #alliance-map .allianceMapSave{order:5}
html body.allianceRefresh #alliance-map .allianceMapHead{padding-bottom:10px}
html body.allianceRefresh #alliance-map .allianceMapPlanTitle{font-family:inherit;color:#ffc584}
html body.allianceRefresh #alliance-map .allianceMapCanvasWrap{max-height:520px;overflow:auto}
html body.allianceRefresh #train-week-test{gap:12px}
html body.allianceRefresh #train-week-test .tpViewTabs{gap:8px;justify-content:flex-start}
html body.allianceRefresh #train-week-test .tpViewTabs a{font-size:13px;padding:11px 8px;overflow-wrap:normal;word-break:normal}
html body.allianceRefresh #alliance-map .allianceMapHead{gap:8px;margin-bottom:0}
html body.allianceRefresh #alliance-map .allianceMapHead>div{gap:6px}
html body.allianceRefresh #alliance-map .allianceMapLegend{margin:6px 0}
@media(max-width:380px){html body.allianceRefresh #train-week-test .tpViewTabs{grid-template-columns:1fr}html body.allianceRefresh #train-week-test .tpViewTabs a{width:100%}}
/* Collector: existing access status and actions, with devices first. */
html body.allianceRefresh #report .collectorPortal{display:flex;flex-direction:column;gap:16px;max-width:none;--cp-accent:#ffb15e;--cp-ink:#edf7ff;--cp-muted:#b8d4e5;--cp-card:#173243;--cp-bg:#102a3b;--cp-line:#4d748c}
html body.allianceRefresh #report .collectorIntro{position:relative;overflow:hidden;background:linear-gradient(110deg,#234b65,#143444 65%,#17514e);border:1px solid #608ca1;border-left:5px solid #ffb15e;border-radius:12px;padding:24px 130px 24px 20px}
html body.allianceRefresh #report .collectorIntro h2{font:800 30px/1.15 inherit;margin:8px 0;color:#fff}
html body.allianceRefresh #report .collectorIntro p{margin:8px 0 0;font-size:14px;color:#c8e5f4}
html body.allianceRefresh #report .collectorHeroIcon{position:absolute;right:22px;top:24px;width:90px;height:80px;stroke:#76e8d5;fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #report .collectorDevicesCard{order:1;padding:16px;background:#173243;border-color:#4d748c}
html body.allianceRefresh #report .collectorKey{order:0}
html body.allianceRefresh #report .collectorPortalGrid{order:2;gap:12px;align-items:start}
html body.allianceRefresh #report .collectorFootnote{order:3;margin:0;font-size:11px;line-height:1.5;color:#b8d4e5}
html body.allianceRefresh #report :is(.collectorRequestCard,.collectorStepsCard){background:#173243;border-color:#4d748c;padding:16px}
html body.allianceRefresh #report .collectorDevice{display:flex;gap:12px;padding:15px;margin:10px 0 0;border:1px solid #4d748c;border-left:4px solid #829bae;border-radius:9px;background:#102a3b}
html body.allianceRefresh #report .collectorDevice.collectorGranted{border-left-color:#66e0bd}
html body.allianceRefresh #report .collectorDevice.collectorReady{border-left-color:#ffb15e}
html body.allianceRefresh #report .collectorDevice strong{font:700 17px/1.3 inherit;color:#f1f8ff}
html body.allianceRefresh #report .collectorDevice p[role=status]{margin:6px 0;color:#cfe8f6;font-size:13px;font-weight:700}
html body.allianceRefresh #report .collectorDevice small{color:#adcada;font-size:12px;line-height:1.6}
html body.allianceRefresh #report .collectorAction{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;min-height:44px}
html body.allianceRefresh #report .collectorAction svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #report .collectorAction[value=collector_revoke]{color:#ffb4b4;border-color:#93616a;background:#26313d}
html body.allianceRefresh #report .collectorIdentity{gap:8px;margin:12px 0}
html body.allianceRefresh #report .collectorIdentity div{padding:10px;background:#102a3b;border-color:#4d748c}
html body.allianceRefresh #report .collectorIdentity dd{font-size:14px;margin-top:4px}
html body.allianceRefresh #report .collectorStepsCard summary{cursor:pointer;min-height:44px;color:#ffd099}
html body.allianceRefresh #report .collectorStepsCard summary h3{display:inline;font-family:inherit;font-size:19px}
html body.allianceRefresh #report .collectorStepsCard ol{margin:8px 0;padding-left:20px}
html body.allianceRefresh #report .collectorStepsCard li{margin:12px 0}
@media(max-width:760px){html body.allianceRefresh #report .collectorPortalGrid{grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #report .collectorIntro{padding:18px 75px 18px 15px}html body.allianceRefresh #report .collectorHeroIcon{right:10px;top:20px;width:55px;height:55px}html body.allianceRefresh #report .collectorDevice{padding:12px;align-items:stretch;flex-direction:column}html body.allianceRefresh #report .collectorDevice form{display:grid;grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #report .collectorIdentity{grid-template-columns:minmax(0,1fr)}}
/* Personal access and observed kill counts retain their original forms and handlers. */
html body.allianceRefresh #report .paCard{background:#173243;border:1px solid #4d748c;border-radius:11px;padding:16px;margin:14px 0;color:#edf7ff;min-width:0}
html body.allianceRefresh #report .paCard h3{font-family:inherit;font-size:21px;margin:0 0 10px}
html body.allianceRefresh #report .paCard p{font-size:13px;line-height:1.5;color:#bcd7e7}
html body.allianceRefresh #report .paCard form{display:grid;gap:10px;margin:12px 0}
html body.allianceRefresh #report .paCard :is(input[type=email],input[type=password]){width:100%;max-width:100%;min-width:0}
html body.allianceRefresh #report .paCard label{display:grid;gap:7px;font-size:13px}
html body.allianceRefresh #report .paCard label:has(input[type=checkbox]){display:flex;align-items:flex-start;gap:10px}
html body.allianceRefresh #report .paCard input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#ffb15e}
html body.allianceRefresh #report .paCard a{color:#ffcb92;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:44px}
html body.allianceRefresh #report .paCard details{border-top:1px solid #4d748c;padding-top:12px;margin-top:12px}
html body.allianceRefresh #report .paCard summary{cursor:pointer;color:#ffb7b7;min-height:44px}
html body.allianceRefresh #report .paCard button{justify-self:start;min-height:44px}
html body.allianceRefresh #report .paCard [value=pa_unlink]{background:#392d37;color:#ffd0d0;border-color:#a76e79}
html body.allianceRefresh #donations .pk{grid-column:1/-1}
html body.allianceRefresh #donations .pk :is(.pk-panel,.pk-metric){background:#102a3b;border-color:#4d748c;padding:14px;border-radius:9px}
html body.allianceRefresh #donations .pk :is(h3,strong){font-family:inherit}
html body.allianceRefresh #donations .pk h3{font-size:20px}
html body.allianceRefresh #donations .pk :is(p,small){color:#bcd7e7}
html body.allianceRefresh #donations .pk .pk-metric strong{font-size:28px;color:#ffc381}
html body.allianceRefresh #donations .pk .pk-head{position:static;background:transparent;height:auto;min-height:0}
html body.allianceRefresh #donations .pk button[aria-pressed=true]{background:#ffb15e;color:#102a3b;border-color:#ffd098}
html body.allianceRefresh #donations .pk .pk-scroll{max-width:100%;min-width:0}
html body.allianceRefresh #donations .pk .pk-segments button{min-height:44px;font-size:13px}
@media(max-width:650px){html body.allianceRefresh #donations .pk :is(.pk-cards,.pk-bottom){grid-template-columns:minmax(0,1fr)}html body.allianceRefresh #report .paCard{padding:12px}html body.allianceRefresh #report .paCard button{width:100%}}
html body.allianceRefresh #donations .pk .pk-segments button{background:#21455c;color:#d5e9f6;border-color:#567e97}
html body.allianceRefresh #donations .pk .pk-segments button[aria-pressed=true]{background:#ffb15e;color:#102a3b;border-color:#ffd098}
/* Historical values keep their origin and remain separate from current results. */
html body.allianceRefresh :is(.transferArchive,.transferHistory){min-width:0;max-width:100%;padding:14px;background:#173243;border:1px solid #4c738c;border-radius:10px;margin:12px 0;color:#edf7ff}
html body.allianceRefresh :is(.transferArchive,.transferHistory)>summary{cursor:pointer;font-weight:700;color:#ffcc95;min-height:44px;line-height:1.5}
html body.allianceRefresh :is(.transferArchive,.transferHistory) p{font-size:13px;line-height:1.5;color:#bad5e5}
html body.allianceRefresh .transferArchiveList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
html body.allianceRefresh .transferArchiveCard{min-width:0;padding:14px;background:#102a3b;border:1px solid #4c738c;border-left:4px solid #74dcca;border-radius:9px}
html body.allianceRefresh .transferArchiveCard[hidden]{display:none}
html body.allianceRefresh .transferArchiveCard h4{margin:0 0 8px;font-size:18px}
html body.allianceRefresh .transferArchiveSearch{width:100%;max-width:440px;display:block;margin-top:8px}
html body.allianceRefresh .transferHistoryScroll{min-width:0;max-width:100%;overflow:auto;border:1px solid #4c738c;border-radius:8px}
html body.allianceRefresh .transferHistory table{width:100%;border-collapse:collapse;font-size:13px}
html body.allianceRefresh .transferHistory :is(th,td){text-align:left;padding:10px;border-bottom:1px solid #3e627a;white-space:nowrap}
html body.allianceRefresh .transferHistory th{background:#244a62;color:#dff2ff}
html body.allianceRefresh .transferHistory details{border-top:1px solid #4c738c;margin-top:10px;padding-top:10px}
html body.allianceRefresh .transferHistory details summary{min-height:40px;cursor:pointer;color:#bfe7ef}
@media(max-width:760px){html body.allianceRefresh .transferArchiveList{grid-template-columns:minmax(0,1fr)}html body.allianceRefresh :is(.transferArchive,.transferHistory){padding:11px}}
html body.allianceRefresh #members #member-statistics-mail{max-width:100%;min-width:0;margin:12px 0!important;padding:16px;background:#173243;border:1px solid #4d748c;border-radius:10px;color:#edf7ff}
html body.allianceRefresh #members #member-statistics-mail h2{font-family:inherit;font-size:22px!important}
html body.allianceRefresh #members #member-statistics-mail p{font-size:13px;line-height:1.5;color:#bad7e7}
html body.allianceRefresh #members #member-statistics-mail a{color:#ffc78c;display:inline-flex;min-height:44px;align-items:center}
html body.allianceRefresh #members #member-statistics-mail form{display:grid;gap:12px;min-width:0}
html body.allianceRefresh #members #member-statistics-mail label{display:grid;gap:7px;min-width:0}
html body.allianceRefresh #members #member-statistics-mail .memberMailChoice{display:flex;align-items:flex-start;gap:10px;padding:12px;background:#102a3b;border:1px solid #4d748c;border-radius:8px}
html body.allianceRefresh #members #member-statistics-mail .memberMailChoice input{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#ffb15e}
html body.allianceRefresh #members #member-statistics-mail .memberMailChoice small{display:block;margin-top:4px}
html body.allianceRefresh #members #member-statistics-mail :is(input,select,button){max-width:100%;min-width:0}
html body.allianceRefresh #members #member-statistics-mail button:disabled{opacity:.55;cursor:not-allowed}
html body.allianceRefresh #members #member-statistics-mail [value=member_mail_disable]{background:#392d37;border-color:#a76d78;color:#ffd0d0}
html body.allianceRefresh #members .memberTroop{min-width:0;overflow-wrap:anywhere}
html body.allianceRefresh #members .memberTroop small{font-size:11px;line-height:1.5}

/* Waiting members: readable status and retained history, no membership actions. */
html body.allianceRefresh #members .memberGhostPanel>summary{padding:15px 0;min-height:44px;cursor:pointer;color:#ffd29f;font-weight:750}
html body.allianceRefresh #members .memberGhostBody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-bottom:12px}
html body.allianceRefresh #members .memberGhostBody>p{grid-column:1/-1;margin:0;color:#bcd5e5;font-size:13px;line-height:1.5}
html body.allianceRefresh #members .memberGhostCard{margin:0;padding:15px;min-width:0;border-left:4px solid #ffb15e;overflow-wrap:anywhere}
html body.allianceRefresh #members .memberGhostCard>strong{font-size:18px;color:#edf7ff}
html body.allianceRefresh #members .memberGhostCard p{font-size:13px;line-height:1.5;color:#bdd7e7}
html body.allianceRefresh #members .memberGhostCard>[data-ghost-word]{display:inline-block;padding:6px 10px;border:1px solid #927143;border-radius:6px;color:#ffd59e;background:#382f26}
html body.allianceRefresh #members .memberGhostCard>[data-ghost-word="4"]{border-color:#c48774;color:#ffcfb8;background:#3c2c2c}
html body.allianceRefresh #members .memberGhostCard .memberWaitingReply{padding:10px;border-left:3px solid #70dfc6;background:#0d2832;color:#cef4ec}
html body.allianceRefresh #members .memberGhostCard>details>summary{min-height:44px;display:flex;align-items:center;gap:8px;color:#b7e7f3;cursor:pointer;font-weight:700}
html body.allianceRefresh #members .memberGhostCard>details>summary:before{content:"+";font-size:20px;color:#ffbd76}
html body.allianceRefresh #members .memberGhostCard>details[open]>summary:before{content:"−"}
@media(max-width:760px){html body.allianceRefresh #members .memberGhostBody{grid-template-columns:minmax(0,1fr)}}

html body.allianceRefresh main button.moduleActionWithText{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;max-width:100%;white-space:normal}
html body.allianceRefresh main .moduleActionGlyph{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh main button.moduleDestructiveAction{background:#3b2934;border:1px solid #a8727e;color:#ffd4dc}
html body.allianceRefresh main button.moduleDestructiveAction:hover{background:#513440;border-color:#e3a1af}
html body.allianceRefresh main button.moduleActionWithText:focus-visible{outline:3px solid #79e5d0;outline-offset:3px}

html body.allianceRefresh #members .memberEditCue{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:0;border:1px solid #ffbf78;border-radius:9px;background:#ffc078;color:#251a11}
html body.allianceRefresh #members .memberEditCue svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #members .memberEditCaption{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html body.allianceRefresh #members :is(.memberCompact,.mpoPlayer)>summary:focus-visible{outline:3px solid #79e5d0;outline-offset:2px}
html body.allianceRefresh #members :is(.memberCompact,.mpoPlayer)[open]>summary{border-bottom:2px solid #70dfc6}
html body.allianceRefresh #members .mpoBody>.hint{margin:0 0 12px;padding:10px 12px;border-left:3px solid #78b6d2;background:#193240;font-size:12px;line-height:1.5}
html body.allianceRefresh #members :is(.memberValues,.mpoHelp)>summary{min-height:44px;cursor:pointer}
html body.allianceRefresh #members .memberEditCue:before,html body.allianceRefresh #members .memberEditCue:after{content:none!important}

html body.allianceRefresh #members .mpoIntro{gap:14px;padding:15px;margin:12px 0}
html body.allianceRefresh #members .mpoIntro h3{font-size:20px;margin-bottom:6px}
html body.allianceRefresh #members .mpoIntro p{margin:6px 0;font-size:13px}
html body.allianceRefresh #members .mpoFilters{gap:8px;margin:12px 0}
html body.allianceRefresh #members .mpoFilters button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;background:#183343;color:#d6e9f6;border:1px solid #53778b;padding:9px 13px}
html body.allianceRefresh #members .mpoFilters button[aria-pressed=true]{background:#ffb565;border-color:#ffd29b;color:#291d10;box-shadow:0 2px 0 #86501f}
html body.allianceRefresh #members .mpoFilters b{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;margin:0;border-radius:7px;background:#0002;font-variant-numeric:tabular-nums}
html body.allianceRefresh #members .mpoToolbar{gap:10px;margin:10px 0;color:#c9dfed;font-size:13px}
html body.allianceRefresh #members .mpoToolbar button{background:#163440;color:#b9f0e7;border:1px solid #547e86;min-height:44px}
html body.allianceRefresh #members .mpoToolbar button:disabled{opacity:.45}
html body.allianceRefresh #members .mpoBadges>[data-power-new]{background:#76e1c7;color:#102e28;border-color:#91f0d9}
html body.allianceRefresh #members .mpoReview{background:#3b3024;color:#ffd8a5;border-left:3px solid #ffbc74;padding:10px;font-size:13px}
html body.allianceRefresh #members .mpoCompare{border:1px solid #456c83;border-radius:8px;background:#142e3d}
html body.allianceRefresh #members .mpoCompare th{background:#24475b}
html body.allianceRefresh #members .mpoCompare :is(th,td){padding:10px;border-color:#446277;font-size:13px}
html body.allianceRefresh #members [data-power-empty]{padding:16px;border:1px dashed #638197;border-radius:9px;color:#c8deec;background:#142b39}

html body.allianceRefresh #alliance-map .allianceMapModeButtons{display:flex;flex-wrap:wrap;gap:8px}
html body.allianceRefresh #alliance-map button.mapModeWithIcon{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;background:#183344;color:#dcecf6;border:1px solid #608397;border-radius:8px;white-space:normal}
html body.allianceRefresh #alliance-map button.mapModeWithIcon svg{width:21px;height:21px;flex:0 0 21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #alliance-map button.mapModeWithIcon.active{background:#ffc079;color:#291b0b;border-color:#ffe1b8;box-shadow:0 2px 0 #855321}
html body.allianceRefresh #alliance-map button.mapModeWithIcon:focus-visible{outline:3px solid #80efd5;outline-offset:3px}
html body.allianceRefresh #alliance-map .allianceMapPlayer{padding:10px;gap:9px;border:1px solid #456b82;border-radius:8px;background:#162f3e;margin-bottom:6px}
html body.allianceRefresh #alliance-map .allianceMapPlayer.selected{background:#244d50;border-color:#80e7cd;outline:2px solid #80e7cd;outline-offset:-2px}
html body.allianceRefresh #alliance-map .allianceMapPlayer input{width:20px;height:20px;min-height:20px;accent-color:#ffba71;flex:0 0 20px}
html body.allianceRefresh #alliance-map .allianceMapControlGroup{padding:14px}

html body.allianceRefresh #alliance-map .mapOutputAction{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 13px;background:#1b3a4b;color:#e1f1fc;border:1px solid #618ba0;border-radius:8px;white-space:normal}
html body.allianceRefresh #alliance-map .mapOutputAction svg{width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body.allianceRefresh #alliance-map [data-map-export].mapOutputAction{background:#ffbb70;color:#291b0b;border-color:#ffdbad}
html body.allianceRefresh #alliance-map .mapOutputAction:focus-visible{outline:3px solid #7be7d1;outline-offset:3px}
html body.allianceRefresh #alliance-map .allianceMapOwnPosition{background:linear-gradient(115deg,#19434b,#162f41);border:1px solid #61bfae;border-left:4px solid #7be7cc;border-radius:10px;padding:14px 16px;margin:8px 0}
html body.allianceRefresh #alliance-map .allianceMapOwnCoordinates{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}
html body.allianceRefresh #alliance-map .allianceMapOwnCoordinates>span{padding:8px 12px;border:1px solid #4d8190;border-radius:7px;background:#112c38;color:#bbdbe7}
html body.allianceRefresh #alliance-map .allianceMapOwnCoordinates b{font-size:20px;color:#d8fff4;font-variant-numeric:tabular-nums}
html body.allianceRefresh #alliance-map .allianceMapZoom input{accent-color:#ffbb70;min-height:32px}
html body.allianceRefresh #alliance-map .allianceMapOwnPositionHead>span{color:#b9e7de}html body.allianceRefresh #alliance-map .allianceMapOwnPositionHead>strong{color:#f0fff9}

/* Shared interaction finish: preserve native controls and module selection logic. */
html body.allianceRefresh main :is(button,a[href],input,select,textarea,summary):focus-visible{outline:3px solid #82ecd5!important;outline-offset:3px!important}
html body.allianceRefresh main summary{scroll-margin-top:140px}
html body.allianceRefresh main :is(button,input,select,textarea,a[href]){scroll-margin-top:140px}
html body.allianceRefresh main :is(button,summary){-webkit-tap-highlight-color:#82ecd540}
html body.allianceRefresh main button:disabled{cursor:not-allowed}
html body.allianceRefresh :where(main>.panel) :where(.rankTabs,.teamTabs,.memberWorkspaceTabs,.statsTabs,.periodTabs) :where(button){min-height:44px}
html body.allianceRefresh :where(main>.panel) :where(.rankTabs,.teamTabs,.memberWorkspaceTabs,.statsTabs,.periodTabs) :where(button.active,button[aria-selected=true]){box-shadow:inset 0 -3px #71471b}
html body.allianceRefresh .aav .aavSelection label{display:inline-flex;align-items:center;gap:9px;min-height:44px;box-sizing:border-box;cursor:pointer}
html body.allianceRefresh .aav .aavSelection label:has(input:focus-visible){outline:3px solid #82ecd5;outline-offset:3px}
html body.allianceRefresh .aav .aavSelection label:has(input:checked){border-color:#8cebd3;background:#204b43;box-shadow:inset 3px 0 #80e9cf}
html body.allianceRefresh .aav .aavSelection input{accent-color:#79e6c9;flex:0 0 20px;margin:0}

html body.allianceRefresh #trends .powerStatCards article:nth-child(n+3){border-top-color:#78dfc5;background:linear-gradient(140deg,#1c403f,#182f40)}
html body.allianceRefresh #trends .powerStatCards article:nth-child(n+3)>small{font-size:12px;font-weight:700;color:#ddfff6}
html body.allianceRefresh #trends .trendDetailTools{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:12px 0}
html body.allianceRefresh #trends .trendDetailTools label{display:grid;gap:7px;flex:1;max-width:440px;min-width:0;font-size:13px;color:#d0e5f2}
html body.allianceRefresh #trends .trendDetailTools input{width:100%;min-width:0;box-sizing:border-box;min-height:44px;background:#112a39;border:1px solid #668a9e;border-radius:8px;color:#edf9ff;padding:10px 12px}
html body.allianceRefresh #trends .trendDetailTools output{padding:10px 12px;border:1px solid #4c7987;border-radius:8px;background:#1b3c45;color:#bff9e9;font-variant-numeric:tabular-nums;white-space:nowrap}
html body.allianceRefresh #trends .powerDetailRow[hidden],html body.allianceRefresh #trends .trendEmpty[hidden]{display:none!important}
html body.allianceRefresh #trends .trendEmpty{padding:14px;border:1px dashed #7091a4;border-radius:8px;color:#cbe1ef;background:#173141}

html body.allianceRefresh .aav .aavDualPlot{max-width:100%;overflow-x:auto}
html body.allianceRefresh .aav .aavDualPlot svg{display:block;width:100%;min-width:640px;color:#cde3ef}
html body.allianceRefresh .aav .aavMetricLegend{color:#d9eee9;font-size:13px;line-height:1.6}
html body.allianceRefresh .aav .aavSelectedPoint{min-height:36px;padding:9px 12px;border-left:3px solid #7ddcc8;background:#193b47;color:#dffbf4;overflow-wrap:anywhere}
html body.allianceRefresh .aav [data-aav-point]:focus{outline:none;stroke:#fff;stroke-width:4}
/* Alliance identity within the existing settings permission. */
html body.allianceRefresh .allianceLogoSettings{display:flex;align-items:center;gap:20px;margin:0 0 20px;padding:20px;background:#193443;border:1px solid #527587;border-top:3px solid #ffaf62;border-radius:12px}
.allianceLogoSettings .alsPreview{width:100px;height:100px;flex:0 0 100px;display:grid;place-items:center;background:#102530;border:1px solid #54798c;border-radius:16px;overflow:hidden;color:#ffd09a;font-size:25px;font-weight:800}
.allianceLogoSettings .alsPreview img{width:100%;height:100%;object-fit:contain}
.allianceLogoSettings .alsInfo{min-width:0;flex:1}.allianceLogoSettings h3{margin:5px 0;font-size:21px}.allianceLogoSettings p{margin:6px 0;color:#c2d5df}.allianceLogoSettings small{color:#adc7d5}
.allianceLogoSettings .alsForm{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:14px}.allianceLogoSettings .alsIcon{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid #d59b64;border-radius:9px;background:#ffb367;color:#182734;cursor:pointer;overflow:hidden}.allianceLogoSettings .alsRemove{background:#294656;color:#ffc1b9;border-color:#9c7070}.allianceLogoSettings .alsIcon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.allianceLogoSettings .alsChoose input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.allianceLogoSettings .alsIcon:focus-within,.allianceLogoSettings .alsIcon:focus-visible{outline:3px solid #8bf0d5;outline-offset:3px}.allianceLogoSettings [data-logo-filename]{font-size:12px;color:#c5d8e3;overflow-wrap:anywhere;min-width:0}
@media(max-width:600px){html body.allianceRefresh .allianceLogoSettings{align-items:flex-start;gap:14px;padding:16px;flex-wrap:wrap}.allianceLogoSettings .alsPreview{width:72px;height:72px;flex-basis:72px}.allianceLogoSettings .alsInfo{flex-basis:100%}}

html body.allianceRefresh .alliancePasswordSettings{padding:20px;margin:0 0 20px;border:1px solid #527587;border-radius:12px;background:#172f3d}.alliancePasswordSettings h3{font-size:21px;margin:5px 0}.alliancePasswordSettings p{color:#bfd4df;line-height:1.5;margin:8px 0 16px}.apsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.apsCard{min-width:0;border:1px solid #587689;border-radius:9px;background:#203c4d}.apsCard summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;font-weight:700;color:#f2f8fc}.apsCard svg{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.apsCard .apsEdit{margin-left:auto;color:#ffbd7b}.apsCard form{padding:0 16px 16px;display:grid;gap:12px}.apsCard form p{font-size:13px;margin:0}.apsCard label{display:grid;gap:7px;font-size:13px}.apsCard input[type=password]{width:100%;box-sizing:border-box;min-width:0}.apsSave{display:flex;align-items:center;justify-content:space-between;gap:12px}.apsSave small{color:#b7cfdb}.apsSave button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:10px;background:#ffb367;color:#172a36;border:1px solid #ffd3a0;border-radius:8px}.apsCard summary:focus-visible,.apsSave button:focus-visible{outline:3px solid #7ce2c5;outline-offset:3px}@media(max-width:650px){.apsGrid{grid-template-columns:1fr}html body.allianceRefresh .alliancePasswordSettings{padding:16px}}
html body.allianceRefresh .alliancePasswordSettings .apsCard summary{padding:14px 16px}html body.allianceRefresh .alliancePasswordSettings .apsCard form label{margin:0}html body.allianceRefresh .alliancePasswordSettings .apsCard form input{margin:0}.apsGrid{align-items:start}

/* Shared alliance management entry */

html body.allianceRefresh #management-hub{padding:24px;background:#142936!important}
html body.allianceRefresh #management-hub .mhHero{position:static;height:auto;min-height:0;background:transparent!important;box-shadow:none;flex-wrap:wrap;padding:0 0 18px;display:flex;justify-content:space-between;align-items:start;gap:16px;border-bottom:1px solid #426177;padding-bottom:18px}.mhHero h2{font:800 26px Arial;color:#f3f8fc;margin:8px 0}.mhHero p{color:#adc3cf;margin:0;max-width:650px}.mhBadge{white-space:nowrap;background:#1b4842;color:#a1f1dc;border:1px solid #4b9685;border-radius:8px;padding:10px;font:700 12px Arial}
.mhPreview{font-size:12px;color:#ffc075!important;padding:10px 0}.mhGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mhGrid article{padding:22px;background:linear-gradient(130deg,#203c50,#172c3b);border:1px solid #496b80;border-top:3px solid #ffad60;border-radius:12px;display:flex;flex-direction:column;min-width:0}.mhGrid article.mhCollector{border-top-color:#73ddc1;background:linear-gradient(130deg,#214347,#172c3b)}.mhIcon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.mhIcon{display:grid;place-items:center;width:42px;height:42px;font-size:25px;border-radius:10px;background:#304f63;color:#ffc075}.mhGrid h3{font:800 20px Arial;color:#f3f8fc;margin:14px 0 8px}.mhGrid p{color:#b9d2e0;line-height:1.5;margin:0 0 18px}.mhGrid small{color:#a8c6d8;line-height:1.45;margin-top:12px}.mhActions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}.mhActions a{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;padding:10px 14px;border:1px solid #7294a8;border-radius:8px;background:#29495e;color:#f0f8fe;text-decoration:none;font:700 13px Arial}.mhActions a:first-child{background:linear-gradient(110deg,#ffc176,#ff9c49);border-color:#ffd49d;color:#291707}.mhCollector .mhActions a:first-child{background:#83e7ca;border-color:#b6f9e6;color:#123b32}html body.allianceRefresh #management-hub .mhRights{position:static;text-align:left;width:auto;display:grid;gap:7px;color:#b3cedc;margin:20px 0 0;min-width:0;overflow-wrap:anywhere;padding:16px;border-left:3px solid #6fdcc1;background:#193544;font-size:13px}.mhRights strong{color:#edf4fa}
@media(max-width:700px){.mhGrid{grid-template-columns:1fr}.mhHero{flex-direction:column}html body.allianceRefresh #management-hub{padding:16px}.mhGrid article{padding:18px}.mhActions a{width:100%}}
.mhHero>div{min-width:0;max-width:100%}.mhHero h2,.mhHero p{overflow-wrap:anywhere}.mhActions a{box-sizing:border-box;min-width:0}@media(max-width:700px){html body.allianceRefresh #management-hub .mhHero h2{font-size:22px}}

/* Separate metrics keep kill growth readable on a shared baseline. */
.aavMetricPanel{padding:16px 0;border-top:1px solid #365363;margin-top:12px}.aavMetricHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.aavMetricHeader h3{margin:0}.aavModeSwitch{display:flex;gap:6px}.aavModeSwitch button{padding:8px 12px!important;min-height:38px}.aavModeSwitch button[aria-pressed="true"]{background:#ffac55!important;color:#14222c!important;border-color:#ffac55!important}.aavKillCards{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.aavKillCards>div{display:grid;gap:4px;min-width:150px;flex:1;border-left:3px solid;padding:10px;background:#193443;border-radius:6px}.aavKillCards b{color:#80e5cc;font-size:20px}.aavKillCards small{font-size:11px;overflow-wrap:anywhere}.aavBaseline{font-size:12px;color:#b4cbd8}

html body.allianceRefresh .aavModeSwitch button[aria-pressed="false"]{background:#203e50!important;color:#c6dce8!important;border:1px solid #54768b!important;box-shadow:none!important}

/* v850 Zugauswertung: Zugführer-Kacheln je Breite (nach den älteren 760-px-Regeln) */
@media(max-width:1100px){html body.allianceRefresh #train .trainLeaderGrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){html body.allianceRefresh #train .trainLeaderGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){html body.allianceRefresh #train .trainLeaderGrid{grid-template-columns:minmax(0,1fr)}}
