/* Consistent site collection and Genshin design tokens. */
html[data-helper-theme] body.web-edition{background:var(--ui-bg)!important;color:var(--ui-text)!important;font-family:'Segoe UI Variable','Segoe UI',system-ui,sans-serif;}
html[data-helper-theme] body.web-edition :is(p,span,small,label,li,dt,dd,td,th,a,summary,h1,h2,h3,h4,h5,h6,strong,b,caption){color:inherit!important;}
html[data-helper-theme] body.web-edition :is(.sub,.hint,.msg,.eyebrow,.nav-group,.command-eyebrow,.shell-status,.brand-caption,.account-source,.lab-source-note,.lab-baseline-note,.web-capabilities,.web-edition-label){color:var(--ui-muted)!important;}
html[data-helper-theme] body.web-edition :is(header.sidebar,.command-bar,.web-sitebar,.sidebar-foot){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;box-shadow:none;}
html[data-helper-theme] body.web-edition :is(.card,.account-hero,.account-character,.account-team,.account-pair,.account-control-card,.account-planner-card,.lab-hero,.lab-priority,.guide-piece,.lab-quick-metrics article,.lab-imported-details,.lab-source-item,.lab-data-facts,.lab-callout,.lab-kit-notes,.art-card,.art-main,.artifact-card,.wish-overview,.wish-banner,.chronicle-card,.chronicle-stat,.coach-card,.web-hud,.web-connection-help,.web-data-review){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;border-radius:12px;box-shadow:0 6px 24px #00000005!important;}
html[data-helper-theme] body.web-edition :is([class*='metric'],[class*='summary'],[class*='comparison'],.guide-steps,.guide-piece-compare>div,.guide-actual-subs>div,.account-pair-grid>section,.account-upgrade-queue article,.lab-upgrade-resources,.lab-simple-note,.lab-hero-tags>span,.lab-scenarios article,.lab-imported-character,.lab-imported-weapon,.lab-imported-talents,.lab-imported-constellations,.lab-constellation-list>article,.web-account-summary,.web-data-review pre,.web-browser-note,.web-connect-step,.web-image-scan,.account-empty,.account-progress,.lab-empty,.lab-summary-chips>span,.wish-chip,.stat-line,.art-sub,.stat-row){background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(.panel,#characterLabRoot,.lab-toolbar,.lab-tabs,.lab-export-actions){background:transparent!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(table,thead,tbody,tr,td,th){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(input,select,textarea){background:var(--ui-bg)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:7px;box-shadow:none!important;}
html[data-helper-theme] body.web-edition input::placeholder,html[data-helper-theme] body.web-edition textarea::placeholder{color:var(--ui-muted);opacity:1;}
html[data-helper-theme] body.web-edition :is(button,a.web-action-link){background:var(--ui-primary)!important;color:var(--ui-on-primary)!important;border:1px solid var(--ui-primary)!important;box-shadow:none!important;border-radius:7px;font-weight:600;transition:filter .16s,transform .16s;}
html[data-helper-theme] body.web-edition :is(button,a.web-action-link):hover:not(:disabled){filter:brightness(1.08);box-shadow:0 4px 14px #0000000c!important;}
html[data-helper-theme] body.web-edition :is(button.secondary,.tab,.lab-tab,.regionBtn,a.web-action-link){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(.tab.active,.lab-tab.active,.lab-tab[aria-selected=true],button[aria-pressed=true]){background:var(--ui-soft)!important;color:var(--ui-accent)!important;border-color:var(--ui-accent)!important;box-shadow:inset 3px 0 var(--ui-accent)!important;}
html[data-helper-theme] body.web-edition :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid var(--ui-accent)!important;outline-offset:4px;}
html[data-helper-theme] body.web-edition :is(input[type=radio],input[type=checkbox]){accent-color:var(--ui-accent);}
html[data-helper-theme] body.web-edition button:disabled{opacity:.55;filter:none;}
html[data-helper-theme] body.web-edition :is(.lab-status,.account-badge,.brand-mark,.web-edition-label b,.lab-readonly){background:var(--ui-soft)!important;color:var(--ui-accent)!important;border-color:var(--ui-line)!important;box-shadow:none!important;}
html[data-helper-theme] body.web-edition :is(.privacy-dot,.orbit-point){background:var(--ui-accent)!important;box-shadow:none!important;}
html[data-helper-theme] body.web-edition :is(.orbit,.compass-lines,.lab-art-ring){border-color:var(--ui-accent)!important;opacity:.3;}
html[data-helper-theme] body.web-edition :is(.account-hero h2,.lab-hero h3,.web-theme-studio h3){font-family:Georgia,'Times New Roman',serif;letter-spacing:-.035em;line-height:1.2;}
html[data-helper-theme] body.web-edition .account-hero h2{font-size:2.25em!important;font-weight:500;max-width:17ch;}
html[data-helper-theme] body.web-edition .account-hero{min-height:230px;padding:30px;}
html[data-helper-theme] body.web-edition .hero-actions{gap:10px;margin-top:22px;}
html[data-helper-theme] body.web-edition .account-hero-art{background:var(--ui-soft)!important;border-radius:8px;opacity:.75;}
html[data-helper-theme] body.web-edition :is(.account-metric,.lab-quick-metrics article,.guide-piece){box-shadow:none!important;}
html[data-helper-theme] body.web-edition .account-section-heading{margin-top:32px;}
html[data-helper-theme] body.web-edition .brand-mark{border-radius:5px;}
html[data-helper-theme] body.web-edition .nav-group{letter-spacing:.1em;font-weight:600;}
html[data-helper-theme] body.web-edition .tab{border-radius:6px;}
html[data-helper-theme] body.web-edition .fantasy-wallpaper{display:none!important;}
html[data-helper-theme=khansamnan] body.web-edition .account-hero-art{background:radial-gradient(ellipse at 50% 35%,var(--ui-accent),var(--ui-text))!important;color:var(--ui-on-primary)!important;}
html[data-helper-theme=khansamnan] body.web-edition .account-hero-art :is(.orbit,.compass-lines){border-color:var(--ui-on-primary)!important;}
html[data-helper-theme] body.web-edition{isolation:isolate;}
html[data-helper-theme=genshin] body.web-edition:not(.wallpaper-off) .fantasy-wallpaper{display:block!important;background:url('assets/traveler-landscape.png') center/cover no-repeat!important;opacity:var(--wallpaper-opacity,.2);}
html[data-helper-theme=genshin] body.web-edition .account-hero-art{background:linear-gradient(#14253c55,#14253cb0),url('assets/traveler-landscape.png') center/cover!important;opacity:1;}
html[data-helper-theme=genshin] body.web-edition .account-hero-art :is(.orbit,.compass-lines){border-color:#f1d69b!important;}
html[data-helper-theme=genshin] body.web-edition .hero-star{color:#f1d69b!important;}
html[data-helper-theme=genshin] body.web-edition .account-hero{border-top:2px solid var(--ui-accent);}
html[data-helper-theme] body.web-edition .guide-actual-subs>div[data-useful=true]{border-left:3px solid var(--ui-accent);}
html[data-helper-theme] body.web-edition .lab-quick-metrics article[data-status=below]{border-left:3px solid var(--ui-accent);}
html[data-helper-theme][data-web-contrast=high]{--ui-muted:var(--ui-text)!important;--ui-line:var(--ui-accent)!important;}
html[data-helper-theme][data-web-contrast=high] body.web-edition :is(p,small,label,li,td,th,.sub,.hint,.msg,.eyebrow,.nav-group){color:var(--ui-text)!important;}
.web-theme-studio{padding:26px;}.web-theme-studio h3{margin:8px 0 12px;}.web-theme-choices{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0;}.web-theme-choices>button{display:grid;gap:12px;text-align:left;padding:18px;min-width:0;}.web-theme-choices>button>span:last-child{font-weight:400;line-height:1.6;}.theme-preview{display:flex;align-items:center;gap:10px;padding:20px;border-radius:6px;min-height:95px;}.preview-site{background:#e9e1d1!important;}.preview-site i{display:block;width:24px;height:38px;border-radius:2px;background:#80613c;}.preview-site i:nth-child(2){height:55px;background:#303329;}.preview-site i:nth-child(3){height:28px;background:#b5a37f;}.preview-genshin{background:linear-gradient(#14253c55,#14253cb0),url('assets/traveler-landscape.png') center/cover!important;color:#f1d69b!important;justify-content:center;font-size:30px!important;}.web-theme-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;}.web-theme-options label{display:grid;gap:9px;min-width:0;}.web-theme-options select{max-width:100%;min-width:0;}#webThemeStatus{margin-top:18px;}html[data-helper-theme] body.web-edition #webThemeLauncher{background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
@media(max-width:767px){.web-theme-choices,.web-theme-options{grid-template-columns:1fr;}.web-theme-studio{padding:18px;}html[data-helper-theme] body.web-edition .account-hero{padding:22px;min-height:0;}html[data-helper-theme] body.web-edition .account-hero h2{font-size:1.85em!important;}#webThemeLauncher{grid-column:1/-1;min-height:44px;}}

html[data-helper-theme] body.web-edition :is(pre,code,kbd){background:var(--ui-soft)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}

html[data-helper-theme] body.web-edition :is(.char-card,.ach-cat,.chronicle-region,.chronicle-empty,.alert,.form-grid,.coach-intro,#coachEvidence,#accountCoverage,.account-team-members>*,.artifact-set-comparison>div,.artifact-action,.achievement-source-preview,.achievement-review-row,.achievement-ambiguity,.lab-target-editor,.lab-inline-empty,.lab-start-guide,.lab-plan-gap,.lab-data-facts>div,.lab-weapon-facts>div,.lab-weapon-properties p,.lab-constellation-heading span,.account-priority,.priority-card,.team-card,.toast){background:var(--ui-surface)!important;color:var(--ui-text)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(.grade,.chip,.pill,.warn,.art-sub-crit,.art-sub-useful,.need-ico,.wish-badge,.wish-tag,.wish-stat,.artifact-status,.artifact-symbol,.lab-step-number,.lab-empty-emblem){background:var(--ui-soft)!important;color:var(--ui-accent)!important;border-color:var(--ui-line)!important;}
html[data-helper-theme] body.web-edition :is(.big,.account-priority,.lab-gap,.lab-simple-gap,.lab-element){color:var(--ui-accent)!important;}
html[data-helper-theme] body.web-edition :is(.bar,.wish-dist-row div){background:var(--ui-soft)!important;}
html[data-helper-theme] body.web-edition :is(.bar>span,.wish-dist-row i){background:var(--ui-accent)!important;}
html[data-helper-theme] body.web-edition .chronicle-tabs button.active{background:var(--ui-soft)!important;color:var(--ui-accent)!important;border-color:var(--ui-accent)!important;}

.helper-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0;}html[data-helper-theme] body.web-edition .helper-fold{padding:18px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-surface);margin:14px 0 24px;}.helper-fold>summary{cursor:pointer;font-weight:600;min-height:44px;display:list-item;padding:10px 0;}.helper-fold[open]>summary{margin-bottom:18px;}@media(max-width:767px){.helper-shortcuts>button{flex:1 1 100%;}}
html[data-helper-theme] body.web-edition header.sidebar .tab{border-color:transparent!important;background:transparent!important;font-weight:500;}
html[data-helper-theme] body.web-edition header.sidebar .tab.active{border-color:var(--ui-line)!important;background:var(--ui-soft)!important;font-weight:600;}
html[data-helper-theme] body.web-edition summary::marker{color:var(--ui-accent)!important;}

/* Monochrome focus: quiet surfaces and a single accent, with a true reverse mode. */
.web-theme-choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));}
.preview-mono{background:#111216;color:#f7f7fa;border:1px solid #444;display:grid;place-items:center;font-size:24px;}
html[data-helper-theme=monochrome] body.web-edition .account-hero-art{display:none;}
html[data-helper-theme=monochrome] body.web-edition .account-hero{min-height:0;padding:22px;}
html[data-helper-theme=monochrome][data-web-font] body.web-edition .account-hero h2{font-family:'Atlas Manrope',sans-serif!important;font-size:calc(var(--type-body) + 9px)!important;max-width:none;line-height:1.3;}
html[data-helper-theme=monochrome] body.web-edition .account-hero h2 br{display:none;}
html[data-helper-theme=monochrome] body.web-edition .account-hero h2 span{margin-left:.25em;}
html[data-helper-theme=monochrome] body.web-edition :is(.account-analysis,.team-advisor__start,.owned-build-missing){box-shadow:none!important;}
html[data-helper-theme=monochrome] body.web-edition :is(.team-advisor,.owned-build-card,.account-character){box-shadow:none!important;}
.intelligence-report>summary{font-weight:600;}
.helper-fold #accountRoadmap,.helper-fold #accountTwoTeams{margin:0;}
.team-advisor__status{font-weight:500;}
