/* interaction-polish-v272.css */
/* Persistent action cues; no changes to content, data or calculation models. */
body.site-ui.site-refresh main :is(button,a,summary){-webkit-tap-highlight-color:#9edbc82e}
body.site-ui.site-refresh main :is(button,summary){cursor:pointer}
body.site-ui.site-refresh main button:disabled{cursor:not-allowed}
body.site-ui.site-refresh main :is(a,button,summary,input,select,textarea):focus-visible{outline:2px solid #b6f0d9;outline-offset:3px}
/* View selection stays obvious even when legacy page CSS loads afterward. */
body.site-ui.site-refresh main :is(.pv-tabs,.integrated-tool-tabs,.hero-section-tabs){display:flex;flex-wrap:wrap;gap:6px;padding:4px;background:#10212d;border:1px solid #304958;border-radius:10px}
body.site-ui.site-refresh main :is(.pv-tabs,.integrated-tool-tabs,.hero-section-tabs) :is(button,a){min-height:44px;border:1px solid #3d5868;border-radius:7px;background:#1a3040;color:#c8d9e2;text-decoration:none}
body.site-ui.site-refresh main :is(.pv-tabs,.integrated-tool-tabs,.hero-section-tabs) :is([aria-pressed=true],[aria-current=page]){background:#2b5148;color:#e0f9ee;border-color:#8ac7b2;box-shadow:inset 0 -2px #a4e4cb}
body.site-ui.site-refresh header #languages a[aria-current=true]{background:#25443f;color:#d4f5e7;border-radius:8px}
/* Make real links recognisable without suggesting the whole result is clickable. */
body.site-ui.site-refresh main :is(a.open-pack,button.open-pack,button.open-item,button.open-hero,.pv-offer>a,.pack-action,#pv-context-entry){color:#b4e8d8;text-decoration:underline;text-decoration-color:#719b93;text-underline-offset:4px;text-decoration-thickness:1px}
body.site-ui.site-refresh main :is(a.open-pack,button.open-pack,button.open-item,button.open-hero){min-height:44px;display:inline-flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid #3d5b67;border-radius:7px;background:#172e3b;max-width:100%;box-sizing:border-box;text-align:start}
body.site-ui.site-refresh main :is(a.open-pack,button.open-pack,button.open-item,button.open-hero)::after{content:'';flex:none;width:6px;height:6px;border:solid #acdccc;border-width:1.5px 1.5px 0 0;transform:rotate(45deg);margin-inline:2px}
body.site-ui.site-refresh main :is(.site-context a,.refresh-links a){text-decoration:underline;text-decoration-color:#607f80;text-underline-offset:4px}
body.site-ui.site-refresh main .home-tool{padding:10px 12px;margin-block:4px;border:1px solid #344f5e;border-radius:8px;background:#142733}
body.site-ui.site-refresh main .home-tool-arrow{display:grid;place-items:center;flex:none;width:26px;height:26px;border:1px solid #4b706f;border-radius:50%;color:#bbe8d8;background:#1c383f}
body.site-ui.site-refresh main button.hero-card{position:relative;border-color:#405c6b;padding-top:18px;cursor:pointer}
body.site-ui.site-refresh main button.hero-card::after{content:'';position:absolute;top:10px;inset-inline-end:11px;width:6px;height:6px;border:solid #b4dece;border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
body.site-ui.site-refresh main button.hero-card strong{text-decoration:underline;text-decoration-color:#648d88;text-underline-offset:4px;text-decoration-thickness:1px}
/* A consistent disclosure surface and chevron; preserve each summary's layout. */
body.site-ui.site-refresh main details>summary{position:relative;box-sizing:border-box;width:100%;min-height:44px;padding:10px 36px 10px 12px;border:1px solid #405c6b;border-radius:8px;background:#172b38;color:#cee1e9;line-height:1.5;list-style:none}
body.site-ui.site-refresh main details>summary::-webkit-details-marker{display:none}
body.site-ui.site-refresh main details>summary::after{content:'';position:absolute;inset-inline-end:15px;top:17px;width:7px;height:7px;border:solid #acdccc;border-width:0 1.5px 1.5px 0;background:none;transform:rotate(-45deg);margin:0}
body.site-ui.site-refresh main details[open]>summary{background:#1c383f;border-color:#638d82;color:#dff4ea}
body.site-ui.site-refresh main details[open]>summary::after{transform:rotate(45deg)}
body.site-ui.site-refresh main :is(.pack-ages,.pack-extra-filters,.pack-find-help):not([open]){padding:0}
body.site-ui.site-refresh main #age-selection-label{color:#adbec8}
/* Remove the remaining bright filter chips, retain strong selected states. */
body.site-ui.site-refresh #main-content :is(button[data-resource-pick],button[data-reward-mode]){background:#193343;color:#d3e3ea;border:1px solid #466171;border-radius:8px;min-height:44px;padding:8px 12px}
body.site-ui.site-refresh #main-content :is(button[data-resource-pick],button[data-reward-mode])[aria-pressed=true]{background:#2b5148;color:#e0f9ee;border-color:#8ac7b2;box-shadow:inset 0 -2px #a4e4cb}
/* Embedded tools: keep roster columns and compact row height unchanged. */
#tool :is(button,a,summary,input,select):focus-visible{outline:2px solid #b6f0d9;outline-offset:2px}
#tool details:not(.player-row):not(.change-row)>summary{border:1px solid #3e5c69;border-radius:8px;background:#172c38;padding:9px 12px;min-height:44px;box-sizing:border-box}
#tool details:not(.player-row):not(.change-row)[open]>summary{background:#1c383f;border-color:#638d82}
#tool .player-row>summary::after{border-color:#648f88;background-color:#24433f}
#tool .player-row>summary:focus-visible{outline-offset:-2px}
#tool .reference-choice{padding:6px 8px;background:#162b36;border:1px solid #395765;border-radius:6px}
#tool .reference-choice span:first-child{text-decoration:underline;text-decoration-color:#6a9c8e;text-underline-offset:3px}
#tool button[data-titan-mode]{border:1px solid #405b68;background:#172e3b;border-radius:7px}
#tool button[data-titan-mode][aria-pressed=true]{background:#294c42;border-color:#80b9a5;box-shadow:inset 0 -2px #a4e4cb}
@media(hover:hover){body.site-ui.site-refresh main :is(a.open-pack,button.open-item,button.open-pack,button.open-hero,button.hero-card,.home-tool,details>summary):hover{background:#203d47;border-color:#80b7a7}#tool :is(.reference-choice,details>summary):hover{background-color:#203d47}}
@media(forced-colors:active){body.site-ui.site-refresh main :is(button,a,summary),#tool :is(button,a,summary){border-color:ButtonText;color:ButtonText;background:Canvas}body.site-ui.site-refresh main :is([aria-pressed=true],[aria-current=page]),#tool button[aria-pressed=true]{outline:2px solid Highlight;outline-offset:-3px}body.site-ui.site-refresh main details>summary::after,body.site-ui.site-refresh main button.hero-card::after,body.site-ui.site-refresh main :is(a.open-pack,button.open-pack,button.open-item,button.open-hero)::after{border-color:ButtonText}}
/* Legacy :is() rules carry ID specificity; keep this correction scoped. */
body.site-ui.site-refresh #main-content :is(.pv-tabs,.integrated-tool-tabs,.hero-section-tabs){border-color:#304958}
body.site-ui.site-refresh #main-content .hero-section-tabs a[aria-current=page]{background:#2b5148!important;color:#e0f9ee!important;border-color:#8ac7b2;box-shadow:inset 0 -2px #a4e4cb}
@media(forced-colors:active){body.site-ui.site-refresh #main-content .hero-section-tabs a[aria-current=page]{background:Canvas!important;color:LinkText!important}}
/* The Server page has one view; its repeated single-option bar adds no action. */
body.site-ui.site-refresh[data-page=servers] main .integrated-tool-tabs:has(>button:only-child){display:none}

/* mobile-tools-v274.css */
/* Compact mobile hierarchy; existing calculation and disclosure contracts are preserved. */
@media(max-width:700px){
 body.site-ui.site-refresh main.integrated-tool-selected>:is(.gear-heading,.formation-heading,.integrated-native-heading){min-height:0;margin:0 0 10px;padding:0;border:0;background:none}
 body.site-ui.site-refresh main.integrated-tool-selected>:is(.gear-heading,.formation-heading,.integrated-native-heading) :is(.intro,.eyebrow){display:none}
 body.site-ui.site-refresh main.integrated-tool-selected h1{margin:0}
 body.site-ui.site-refresh main.integrated-tool-selected .integrated-tools{margin-top:10px}
 #tool:not([data-tool=history]){padding:10px!important}
 #tool:not([data-tool=history])>.tool-header{display:none!important}
 #tool .titan-switch{margin-bottom:10px}
 #tool .titan-reference{padding:10px}
 #tool .titan-reference>.reference-heading h3{display:none}
 #tool .titan-reference[data-kind=craft]>.reference-heading{display:none}
 #tool .reference-heading p{margin-bottom:10px}
 #tool .reference-controls{margin:0 0 8px;gap:8px}
 #tool .reference-controls .field{min-width:0}
 #tool .reference-scope{margin:8px 0}
 #tool>form.calculator-layout{padding:10px;gap:12px}
 #tool .calculator-inputs>.fields{gap:10px 8px;margin-bottom:10px}
 #tool .calculator-inputs>h3{margin:14px 0 6px}
 #tool .calculator-inputs>p{margin:6px 0 10px}
 #tool .calculator-answer .result{padding:14px}
 #tool .calculator-answer .result .lead{font-size:26px}
 #tool .calculator-options>details{margin-top:6px}
 #tool .mobile-tool-disclosure{margin:12px 0 0;padding:0;border:0}
 #tool .mobile-tool-disclosure>section{padding:12px 0 0}
 #tool .mobile-tool-disclosure .reference-heading{display:none}
 #tool[data-tool=talents]>.fields{grid-template-columns:minmax(0,1fr) 112px;gap:10px;align-items:start;margin-top:0}
 #tool[data-tool=talents]>.fields>.result{padding:10px!important;min-width:0;border-radius:10px}
 #tool[data-tool=talents]>.fields .lead{font-size:24px;margin:5px 0}
 #tool[data-tool=talents]>.fields .small{font-size:11px}
 #tool[data-tool=talents]>.filters,#tool[data-tool=appearance]>.filters{margin-top:0}
 #tool .calculator-inputs>.primary{min-height:46px}
}
/* Retire light-theme surfaces and low-contrast text still used by native routes. */
body.site-ui.site-refresh>.site-context{background:#0b1420;border-color:#304858}
body.site-ui.site-refresh .languages a{color:#b8c9d6}
body.site-ui.site-refresh main :is(.inset,.stat,.gear-card-costs,.event-card,.ar-card,.ar-member,.planner-total,.setup-flow>div,.profession-choice-button.shared){background:#122332;border-color:#365060;color:#dce8ee}
body.site-ui.site-refresh main :is(.table-wrap,.cost-table,.compare-table-wrap,table){background:#101e2b}
body.site-ui.site-refresh main .chain-overview-table tr.selected{background:#24453d}
body.site-ui.site-refresh main .formation-tabs button{color:#bbccd7}
body.site-ui.site-refresh main .gear-card h2 button{color:#bfe5d9}
body.site-ui.site-refresh main :is(.stat-label,.stat small,.tree-pan-toolbar span,.tree-cost-chip b,.journey-kicker,.chain-tier-help,.tier-summary-preview,.ar-chest-hint,.setup-small>span,.meta-right>span:not(.price)){color:#b7cad5}
body.site-ui.site-refresh main .ar-target-shortcuts a{background:#173039;border-color:#476b76;color:#c3e7dc}
body.site-ui.site-refresh main a.button.primary{color:#0b1420}
body.site-ui.site-refresh main .chain-card-total strong{color:#b5e4d4}
body.site-ui.site-refresh footer a{color:#a8e0d2}
@media(forced-colors:active){
 body.site-ui.site-refresh main :is(.inset,.stat,.gear-card-costs,.event-card,.ar-card,.ar-member,.planner-total,.setup-flow>div,.profession-choice-button.shared,.table-wrap,.cost-table,.compare-table-wrap,table,.chain-overview-table tr.selected){background:Canvas;color:CanvasText;border-color:CanvasText}
 body.site-ui.site-refresh main :is(.stat-label,.stat small,.tree-pan-toolbar span,.tree-cost-chip b,.journey-kicker,.chain-tier-help,.tier-summary-preview,.ar-chest-hint,.setup-small>span,.meta-right>span:not(.price)){color:CanvasText}
 body.site-ui.site-refresh :is(.languages a,footer a),body.site-ui.site-refresh main a.button.primary{color:LinkText}
}
body.site-ui.site-refresh main .formation-tabs button:not(.active){color:#bbccd7}
body.site-ui.site-refresh header .languages a:not([aria-current=page]){color:#b8c9d6}
body.site-ui.site-refresh main .gear-card h2>button{color:#bfe5d9!important}
body.site-ui.site-refresh main .event-card p{color:#b7cad5}
body.site-ui.site-refresh main table caption{background:#101e2b;color:#b7cad5}
body.site-ui.site-refresh header .languages a:not([aria-current=page]){color:#b8c9d6!important}
body.site-ui.site-refresh main .formation-tabs button:not([aria-pressed=true]){color:#bbccd7!important}
body.site-ui.site-refresh main table caption{background:#101e2b!important}
body.site-ui.site-refresh :is(main,dialog) :is(.unit-price,.reward-list>li,.ar-rule-strip,.ar-bonus-callout,.ar-mission-offer,.ar-event-guides){background:#122332;border-color:#365060}
body.site-ui.site-refresh :is(main,dialog) :is(.hero-stat-grid span,.hero-stat-grid small,.hero-quick-setup-bar span,.hero-setup-progress span,.hero-slot-title small,.tier-content-meta span,.chest-source-group h5,.source-reward){color:#b7cad5}
body.site-ui.site-refresh.account-app main details>p{color:#b7cad5}
body.site-ui.site-refresh main .ar-rule-strip{background:#122332!important}
body.site-ui.site-refresh main .account-privacy p{color:#b7cad5}
body.site-ui.site-refresh :is(input,textarea)::placeholder,#tool :is(input,textarea)::placeholder{color:#9fb4c3;opacity:1}
body.site-ui.site-refresh :is(input,select,textarea):focus-visible{outline:2px solid #9ee2ce;outline-offset:2px}
@media(forced-colors:active){
 body.site-ui.site-refresh :is(input,textarea)::placeholder,#tool :is(input,textarea)::placeholder{color:GrayText}
 body.site-ui.site-refresh header .languages a:not([aria-current=page]){color:LinkText!important}
 body.site-ui.site-refresh main .formation-tabs button:not([aria-pressed=true]),body.site-ui.site-refresh main .gear-card h2>button{color:ButtonText!important}
 body.site-ui.site-refresh main table caption,body.site-ui.site-refresh main .ar-rule-strip{background:Canvas!important;color:CanvasText}
 body.site-ui.site-refresh :is(main,dialog) :is(.unit-price,.reward-list>li,.ar-rule-strip,.ar-bonus-callout,.ar-mission-offer,.ar-event-guides){background:Canvas;border-color:CanvasText}
 body.site-ui.site-refresh :is(main,dialog) :is(.hero-stat-grid span,.hero-stat-grid small,.hero-quick-setup-bar span,.hero-setup-progress span,.hero-slot-title small,.tier-content-meta span,.chest-source-group h5,.source-reward),body.site-ui.site-refresh.account-app main details>p{color:CanvasText}
 body.site-ui.site-refresh :is(input,select,textarea):focus-visible{outline-color:Highlight}
}

body.site-ui.site-refresh main .ar-rule-strip>span{background:#192f3c;color:#c4d4de}
@media(forced-colors:active){body.site-ui.site-refresh main .ar-rule-strip>span{background:Canvas;color:CanvasText}}
body.site-ui.site-refresh #player-top{background:#173039;color:#c3e7dc;border:1px solid #567684;min-height:44px}
@media(forced-colors:active){body.site-ui.site-refresh #player-top{background:ButtonFace;color:ButtonText;border-color:ButtonText}}

/* desktop-polish-v275.css */
/* Desktop companion shell. Preserve native controls, calculations and mobile flows. */
body.site-ui.site-refresh>header.player-header .brand::before{display:none}
body.site-ui.site-refresh>header.player-header .brand{gap:7px;letter-spacing:.06em;text-decoration:none}
body.site-ui.site-refresh>header.player-header .companion-logo{width:44px;height:44px;object-fit:contain;flex:none}
body.site-ui.site-refresh>header.player-header .companion-wordmark{display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.1}
body.site-ui.site-refresh>header.player-header .companion-wordmark small{font-size:9px;letter-spacing:.15em;font-weight:500;color:#b8d2ce}
body.site-ui.site-refresh .desktop-shortcuts{display:none}
/* Navigation needs the same contrast and action cues as page content. */
body.site-ui.site-refresh>header.player-header .site-nav-group h2,
body.site-ui.site-refresh>header.player-header .site-nav-search>label,
body.site-ui.site-refresh>header.player-header :is(.site-nav-result-count,.site-nav-empty){color:#b5c7d2}
body.site-ui.site-refresh>header.player-header #site-menu:is(:hover,[aria-expanded=true]){background:#203b43;border-color:#82bbaa;color:#e1f4ec}
body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a{border:1px solid transparent;display:flex;align-items:center;justify-content:space-between;gap:8px}
body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a::after{content:'›';color:#9bbfb8;font-size:18px;line-height:1}
body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a[aria-current=page]{border-color:#527f73}
body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a[hidden],body.site-ui.site-refresh>header.player-header .site-nav-group[hidden]{display:none}
body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a:hover{border-color:#638d82}
body.site-ui.site-refresh>header.player-header .site-nav-search{border-color:#3a5262}
body.site-ui.site-refresh>header.player-header :is(a,button,input):focus-visible{outline:2px solid #b6f0d9;outline-offset:2px}
@media(min-width:1100px){
 body.site-ui.site-refresh>header.player-header .header-inner{display:flex;flex-wrap:nowrap;max-width:1360px;gap:20px;min-height:72px;padding:10px 24px}
 body.site-ui.site-refresh>header.player-header .brand{order:0;margin-inline-end:12px}
 body.site-ui.site-refresh>header.player-header .desktop-shortcuts{display:flex;order:1;align-items:center;gap:4px}
 body.site-ui.site-refresh>header.player-header .desktop-shortcuts a{display:inline-flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid transparent;border-radius:8px;text-decoration:none;font-size:13px;font-weight:550;color:#c2d4de;white-space:nowrap}
 body.site-ui.site-refresh>header.player-header .desktop-shortcuts a:is(:hover,[aria-current=page]){background:#1d383e;border-color:#507b73;color:#e2f6ee}
 body.site-ui.site-refresh>header.player-header .desktop-shortcuts a[aria-current=page]{box-shadow:inset 0 -2px #9edbc8}
 body.site-ui.site-refresh>header.player-header #site-menu{order:2;flex:none;width:auto;gap:10px;padding-inline:14px;margin-inline-start:0}
 body.site-ui.site-refresh>header.player-header #site-menu .site-menu-current{display:none}
 body.site-ui.site-refresh>header.player-header #site-menu::before{content:'';width:14px;height:12px;border-block:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) center/100% 1.5px no-repeat}
 body.site-ui.site-refresh>header.player-header #site-menu .site-menu-label{display:inline;font-size:13px;color:#d3e4e9}
 body.site-ui.site-refresh>header.player-header .player-languages{order:3;margin-inline-start:auto;flex-shrink:0}
 body.site-ui.site-refresh>header.player-header .player-nav{inset:calc(100% + 6px) 24px auto;padding:16px;max-height:calc(100dvh - 94px)}
 body.site-ui.site-refresh>header.player-header .site-nav-search{top:-16px;padding-top:0;padding-bottom:12px}
 body.site-ui.site-refresh>header.player-header .site-nav-group h2{margin:0 0 8px;padding:8px 10px;border-bottom:1px solid #304858;font-size:11px;letter-spacing:.055em}
 body.site-ui.site-refresh>header.player-header .player-nav .site-nav-group a{min-height:44px;padding:9px 10px;white-space:normal}
 body.site-ui.site-refresh>header.player-header .player-nav #site-nav-links{gap:16px}
}
@media(min-width:701px){
 body.site-ui.site-refresh main{max-width:1360px;padding:20px 24px 44px}
 body.site-ui.site-refresh .site-context{max-width:1360px;padding:2px 24px;margin-inline:auto;min-height:44px;align-items:center;gap:6px 18px}
 body.site-ui.site-refresh .site-context a{display:inline-flex;align-items:center;min-height:40px;text-decoration:underline;text-decoration-color:#567b7b;text-underline-offset:4px}
 body.site-ui.site-refresh main :is(.gear-heading,.formation-heading,.page-heading,.level-hero){margin-bottom:12px}
 body.site-ui.site-refresh main .intro{margin-bottom:12px}
 body.site-ui.site-refresh main :is(.filters,.gear-filters,.list-tools,.tree-toolbar,.range-heading){padding:12px;gap:10px}
 body.site-ui.site-refresh main .refresh-intro{padding-bottom:12px;margin-bottom:16px}
 body.site-ui.site-refresh main .refresh-details{margin-top:8px;padding-block:4px}
 body.site-ui.site-refresh main.integrated-tool-selected>:is(.gear-heading,.formation-heading,.integrated-native-heading){min-height:0;margin-bottom:10px;padding:0;border:0;background:none}
 body.site-ui.site-refresh main.integrated-tool-selected>:is(.gear-heading,.formation-heading,.integrated-native-heading) :is(.intro,.eyebrow,.heading-mark){display:none}
 body.site-ui.site-refresh main.integrated-tool-selected h1{margin:0}
 body.site-ui.site-refresh main .integrated-tools{margin-top:12px}
 body.site-ui.site-refresh main.integrated-tool-selected .integrated-tools{margin-top:10px}
 body.site-ui.site-refresh[data-page=servers] main.integrated-tool-selected .gear-heading{padding:12px 16px!important;min-height:0}
 body.site-ui.site-refresh .home-welcome{margin-bottom:20px;gap:16px}
 body.site-ui.site-refresh .home-intro{padding:20px;min-height:0}
 body.site-ui.site-refresh .home-account{padding:16px}
 body.site-ui.site-refresh .home-directory-head{margin-bottom:10px}
 body.site-ui.site-refresh .home-group{padding:14px}
 body.site-ui.site-refresh .home-group-head{padding:0;margin-bottom:12px}
 body.site-ui.site-refresh main .home-tool{padding:9px 10px;margin-block:5px}
 body.site-ui.site-refresh main .home-next{margin-top:20px;padding:16px}
 #tool:not([data-tool=history]){padding:14px!important}
 #tool>.tool-header h2{display:none}
 #tool>.tool-header{padding:0 0 10px;margin-bottom:12px;border-bottom:1px solid #34505e}
 #tool>.tool-header p{margin:0}
 #tool:is([data-tool=craft],[data-tool=refine],[data-tool=history])>.tool-header{display:none}
 #tool .titan-switch{margin:0 0 12px}
 #tool .titan-reference{padding:14px}
 #tool .titan-reference>.reference-heading h3{display:none}
 #tool .titan-reference>.reference-heading p{margin:0 0 12px}
 #tool .reference-controls{margin-block:0 10px;gap:12px}
 #tool .reference-scope{margin:8px 0}
 #tool>form.calculator-layout{padding:14px;gap:16px}
 #tool .calculator-inputs>.fields{gap:12px;margin-bottom:14px}
 #tool .calculator-inputs>h3{margin:12px 0 8px}
 #tool .calculator-inputs>p{margin:8px 0 12px}
 #tool .calculator-answer .result{padding:16px}
 #tool .calculator-answer .result .lead{font-size:26px}
 #tool .calculator-options>details{margin-top:8px}
 #tool[data-tool=history] #public-connection #public-source-label{display:none}
}
@media(min-width:1200px){
 body.site-ui.site-refresh .home-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
 body.site-ui.site-refresh .home-group-head{gap:10px;align-items:start}
 body.site-ui.site-refresh .home-group-icon{width:30px;height:30px;flex:0 0 30px}
 body.site-ui.site-refresh .home-group h3{font-size:14px;margin:0}
 body.site-ui.site-refresh .home-group-head p{margin:5px 0 0;line-height:1.45}
 body.site-ui.site-refresh .home-tool span span{line-height:1.45}
}
/* Optional limits stay an explicit disclosure at every width. */
#tool .refine-reference-grid{grid-template-columns:minmax(0,1fr)}
#tool .mobile-tool-disclosure{margin:8px 0 0;padding:0;border:0}
#tool .mobile-tool-disclosure>section{padding:12px 0 0}
#tool .mobile-tool-disclosure .reference-heading{display:none}
#tool .mobile-tool-disclosure .reference-controls{max-width:440px}
#tool details:not(.player-row):not(.change-row)>summary{cursor:pointer;position:relative;padding-inline-end:38px;list-style:none;color:#d1e4ec}
#tool details:not(.player-row):not(.change-row)>summary::-webkit-details-marker{display:none}
#tool details:not(.player-row):not(.change-row)>summary::after{content:'';position:absolute;inset-inline-end:16px;top:16px;width:7px;height:7px;border:solid #b0dbcc;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);background:none}
#tool details:not(.player-row):not(.change-row)[open]>summary::after{transform:rotate(45deg)}
@media(max-width:1099px){body.site-ui.site-refresh>header.player-header .companion-wordmark small{display:none}body.site-ui.site-refresh>header.player-header .companion-logo{width:30px;height:34px}body.site-ui.site-refresh>header.player-header .brand{gap:5px}}
@media(max-width:600px){body.site-ui.site-refresh>header.player-header .companion-wordmark{font-size:10px}body.site-ui.site-refresh>header.player-header .companion-logo{width:26px;height:30px}body.site-ui.site-refresh>header.player-header .brand{gap:3px}}
@media(max-width:360px){body.site-ui.site-refresh>header.player-header .companion-wordmark{display:none}body.site-ui.site-refresh>header.player-header .brand{min-width:28px}}
@media(forced-colors:active){
 body.site-ui.site-refresh>header.player-header :is(a,button,input),body.site-ui.site-refresh>header.player-header :is(.site-nav-group h2,.site-nav-search>label,.site-nav-result-count,.site-nav-empty,.companion-wordmark small){color:CanvasText;background:Canvas;border-color:ButtonText}
 body.site-ui.site-refresh>header.player-header :is(a,button):focus-visible{outline-color:Highlight}
 body.site-ui.site-refresh>header.player-header .desktop-shortcuts a[aria-current=page]{outline:2px solid Highlight}
 #tool details:not(.player-row):not(.change-row)>summary{background:Canvas;color:CanvasText;border-color:ButtonText}
 #tool details:not(.player-row):not(.change-row)>summary::after{border-color:ButtonText}
}
@media(min-width:701px){#tool:is([data-tool=craft],[data-tool=refine],[data-tool=history])>.tool-header{display:none!important}#tool:not([data-tool=craft]):not([data-tool=refine]):not([data-tool=history])>.tool-header{padding:0 0 10px!important;margin:0 0 12px!important;min-height:0}}
@media(min-width:1200px){body.site-ui.site-refresh .home-group-head{min-height:64px}}
body.site-ui.site-refresh>header.player-header .desktop-shortcuts{background:transparent;border:0;box-shadow:none;margin-block:0;padding:0}
#tool details:not(.player-row):not(.change-row)>summary::before{display:none}
#tool .refine-reference-grid{gap:8px}
#tool .titan-reference-notes{padding:6px 0;margin-block:4px;border-top:0}
@media(min-width:701px){
 #tool:has(#public-connection)>.history-header+.pill-row{display:none!important}
 #tool:has(#public-connection) .public-controls{margin-top:0}
 #tool:has(#public-connection) .public-main{margin-top:14px;padding:14px}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters{margin:8px 0}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters[open]{padding-bottom:12px}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters>:not(summary){margin:12px 12px 0}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters #resource-shortcuts{display:flex;flex-wrap:wrap;overflow:visible;padding:0}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters .pack-ages{padding:0}
 body.site-ui.site-refresh[data-page=packs] main #pack-extra-filters .catalogue-view{display:flex;width:fit-content}
 body.site-ui.site-refresh[data-page=packs] main .mobile-reward-status button{min-height:44px;margin:4px 0;border:1px solid #577d71;background:#193b34;color:#d6f4e9;border-radius:8px;padding:8px 12px}
 body.site-ui.site-refresh[data-page=packs] main #app>.results-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:6px 0 10px;min-height:44px}
 body.site-ui.site-refresh[data-page=packs] main .pv-panel>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 body.site-ui.site-refresh[data-page=packs] main .pv-panel>.pv-note:empty{display:none}
}
@media(min-width:701px){body.site-ui.site-refresh[data-page=packs] main #results{background:transparent;border:0}body.site-ui.site-refresh[data-page=packs] main .pack-result+.pack-result{margin-top:8px}}

/* header-polish-v345.css */
/* A compact shared header: identity, destinations, then utility controls. */
body.site-ui.site-refresh>header:is(.player-header,.shared-header){background:#0d1c28;border-bottom-color:#314b59;box-shadow:0 3px 14px #00000014}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-inner{min-height:64px;padding-block:8px;gap:12px}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .brand{padding:0;gap:8px}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-wordmark{font-size:13px;line-height:1.15;letter-spacing:.06em}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-wordmark small{color:#a8c8c1;font-size:9px;letter-spacing:.13em}
body.site-ui.site-refresh.header-language-ready>header:is(.player-header,.shared-header) :is(.languages,.player-languages){display:none!important}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language{grid-column:3;grid-row:1;order:3;justify-self:end;display:flex;align-items:center;position:relative;flex:none;min-width:0;margin:0;height:44px;background:#142a37;border:1px solid #436170;border-radius:9px;color:#c4ddd9}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language>svg{position:absolute;inset-inline-start:12px;width:17px;height:17px;pointer-events:none}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language::after{content:'';position:absolute;inset-inline-end:14px;top:16px;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:42px;height:42px;padding:0 33px 0 37px;margin:0;border:0;border-radius:8px;background:transparent;color:#e1eeee;font:500 13px/1.4 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;cursor:pointer;box-shadow:none;max-width:170px}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select option{background:#122634;color:#e1eeee}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language:hover{background:#1c3642;border-color:#79a59a}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language:focus-within{outline:2px solid #b6f0d9;outline-offset:3px;border-color:#90c7b7}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select:focus-visible{outline:0}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #site-menu{min-height:44px;height:44px;border-color:#436170;border-radius:9px;background:#142a37}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #site-menu[aria-expanded=true]{border-color:#98cbb9;background:#21443f}
@media(min-width:1100px){
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-inner{min-height:68px;gap:10px;padding-block:10px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .brand{padding-inline-end:22px;margin-inline-end:7px;border-inline-end:1px solid #334b57}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .desktop-shortcuts{gap:3px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .desktop-shortcuts a{padding-inline:14px;border-radius:7px;color:#bbced8}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .desktop-shortcuts a[aria-current=page]{background:#17332f;border-color:transparent;color:#d8f2e7;box-shadow:inset 0 -2px #9edbc8}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) #site-menu{margin-inline-start:auto;padding-inline:13px;gap:10px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .player-nav{inset:calc(100% + 8px) 24px auto}
}
@media(max-width:1099px){
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-inner{grid-template-columns:auto minmax(100px,1fr) auto;gap:12px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) #site-menu{width:100%;max-width:350px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-wordmark{font-size:12px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-logo{width:34px;height:38px}
}
@media(max-width:600px){
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-inner{padding:8px 12px;gap:8px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-wordmark{display:none}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .companion-logo{width:32px;height:40px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .brand{min-width:32px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) #site-menu{padding-inline:10px;gap:8px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select{padding-inline:32px 25px;font-size:12px;max-width:127px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language>svg{inset-inline-start:9px;width:16px;height:16px}
 body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language::after{inset-inline-end:11px}
}
@media(forced-colors:active){body.site-ui.site-refresh>header:is(.player-header,.shared-header) :is(.header-language,#site-menu,#header-language-select,#header-language-select option){background:Canvas;color:CanvasText;border-color:ButtonText}body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language:focus-within{outline-color:Highlight}body.site-ui.site-refresh>header:is(.player-header,.shared-header) .desktop-shortcuts a[aria-current=page]{outline:2px solid Highlight}}
@media print{body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language{display:none}}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-language>.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select{width:130px}
@media(max-width:600px){body.site-ui.site-refresh>header:is(.player-header,.shared-header) #header-language-select{width:116px}}
body.site-ui.site-refresh>header:is(.player-header,.shared-header) .header-inner{width:100%;max-width:1360px;box-sizing:border-box}
@media(min-width:1100px){body.site-ui.site-refresh>header:is(.player-header,.shared-header) .desktop-shortcuts{flex:0 1 auto;min-width:0;flex-wrap:wrap;row-gap:2px}}

body.site-ui.site-refresh>header.shared-header .header-inner{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-inline:auto;padding-inline:16px}
body.site-ui.site-refresh>header.shared-header .header-inner>strong{color:#e1eeee;font-size:13px}
body.site-ui.site-refresh>header.shared-header nav{display:flex;margin-inline-start:auto}
body.site-ui.site-refresh>header.shared-header nav a{display:flex;align-items:center;min-height:44px;padding:0 10px;color:#e1eeee;font-size:13px}
body.site-ui.site-refresh>header.shared-header .header-inner{flex-direction:row}
body.site-ui.site-refresh>header.shared-header .header-inner>strong,body.site-ui.site-refresh>header.shared-header nav{width:auto;flex:none}
@media(max-width:600px){body.site-ui.site-refresh>header.shared-header .header-inner>strong{display:none}body.site-ui.site-refresh>header.shared-header nav{margin-inline:0 auto}}

/* Keep the initial header in the same theme while its navigation is loading. */
body.site-ui.site-refresh>header:not(.player-header):not(.shared-header){background:#0d1c28;color:#e1eeee;border-bottom:1px solid #314b59;box-shadow:0 3px 14px #00000014}
body.site-ui.site-refresh>header:not(.player-header):not(.shared-header) .header-inner{min-height:60px;padding-block:7px;box-sizing:border-box}
body.site-ui.site-refresh>header:not(.player-header):not(.shared-header) .header-inner>strong{font-size:13px;line-height:1.4;letter-spacing:.06em;color:#e1eeee}
/* One language picker per page. Legacy hooks remain inert for page compatibility. */
body.site-ui dialog #detail-language[hidden]{display:none!important}
/* Intrinsic SVG dimensions also bound the icon before enhancement is ready. */
body.site-ui>header .header-language>svg{max-width:17px;max-height:17px;flex:none}
