/* Explicit reading scale overrides earlier desktop pixel sizes throughout the web app. */
html[data-web-font] { --web-reading-size:14px; --web-reading-line:1.55; }
html[data-web-font="large"] { --web-reading-size:16px; }
html[data-web-font="extra-large"] { --web-reading-size:18px; }
html[data-web-font] body.web-edition { font-size:var(--web-reading-size)!important;line-height:var(--web-reading-line); }
/* Typography is assigned by content role in web-typography.css. */
html[data-web-font] body.web-edition :is(h1,h2) { font-size:1.6em!important;line-height:1.25; }
html[data-web-font] body.web-edition h3 { font-size:1.3em!important;line-height:1.35; }
html[data-web-font] body.web-edition h4 { font-size:1.1em!important;line-height:1.4; }
html[data-web-font] body.web-edition :is(.account-hero h2,.lab-hero h3) { font-size:1.95em!important; }
html[data-web-font] body.web-edition :is(.brand h1,.command-bar h2) { font-size:1.1em!important; }
html[data-web-font] body.web-edition :is(.account-metric>strong,.lab-summary-strip strong) { font-size:1.65em!important; }
html[data-web-font] body.web-edition :is(button,input,select,textarea,a.web-action-link,summary) { min-height:44px;line-height:1.45; }
html[data-web-font] body.web-edition :is(button,a.web-action-link) { white-space:normal;overflow-wrap:anywhere; }
html[data-web-font] body.web-edition :is(p,small,label,li,td,th,.sub,.hint,.msg,.tab,.lab-tab,.nav-group,.eyebrow,.command-eyebrow,.web-capabilities) { line-height:var(--web-reading-line); }
html[data-web-font] body.web-edition :is(input,select,textarea,.panel,.card,.row>*,.lab-toolbar-actions,.web-sitebar-main>*) { min-width:0;max-width:100%; }
html[data-web-font] body.web-edition :is(.lab-summary-strip,.account-metrics) { overflow-wrap:anywhere; }
html[data-web-font] body.web-edition .web-sitebar-main { flex-wrap:wrap; }
html[data-web-font] body.web-edition #tabs>.tab,html[data-web-font] body.web-edition #tabs>.nav-group { flex-shrink:0;height:auto; }
html[data-web-density="compact"] body.web-edition :is(.card,.account-team,.lab-priority) { padding:14px; }
html[data-web-density="compact"] body.web-edition :is(.row,.grid,.account-roster-grid,.account-team-grid) { gap:10px; }
html[data-web-density="compact"] body.web-edition :is(td,th) { padding-top:9px;padding-bottom:9px; }
html[data-web-density="compact"] body.web-edition .tab { padding-top:8px;padding-bottom:8px;min-height:44px; }
html[data-web-motion="reduced"] *,html[data-web-motion="reduced"] *::before,html[data-web-motion="reduced"] *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; }
@media(prefers-reduced-motion:reduce) { html[data-web-font] *,html[data-web-font] *::before,html[data-web-font] *::after { animation:none!important;transition:none!important;scroll-behavior:auto!important; } }
html[data-web-contrast="high"] body.web-edition { --text:#241333;--muted:#4c365e;--line:#9278a5;color:#241333;background:#fff; }
html[data-web-contrast="high"] body.web-edition :is(p,small,label,li,td,th,.sub,.hint,.msg,.eyebrow,.command-eyebrow,.nav-group,.web-capabilities,.web-home,.tab,.account-source,.lab-source-note) { color:#372345!important; }
html[data-web-contrast="high"] body.web-edition :is(.card,input,select,textarea,table,td,th,.tab,.lab-metric,.account-character,.account-team) { border-color:#8c729f!important; }
html[data-web-contrast="high"] body.web-edition button:not(.secondary):not(.tab):not(.lab-tab):not(:disabled) { background:#61308f;color:#fff; }
html[data-web-contrast="high"] body.web-edition :is(a,summary) { color:#52207c; }
html[data-web-contrast="high"] body.web-edition :is(button,input,select,textarea,a,summary):focus-visible { outline:3px solid #38105b;outline-offset:3px; }
#webSettings { display:grid;gap:20px;margin:20px 0 28px; }
.web-settings-card { background:#fff;border:1px solid #e1d4ed;box-shadow:0 5px 24px #573b6e06; }
.web-settings-card h3 { color:#45255f;margin:6px 0 10px; }
.web-settings-card :is(p,.sub) { max-width:78ch; }
.web-settings-card fieldset { padding:0;border:0;margin:22px 0;min-width:0; }
.web-settings-card legend { font-weight:650;color:#4c3263;margin-bottom:10px; }
.web-setting-segments { display:flex;gap:10px;flex-wrap:wrap; }
.web-setting-segments label { display:flex;align-items:center;gap:9px;border:1px solid #ddcbea;border-radius:10px;padding:10px 14px;min-height:48px;background:#fff;cursor:pointer; }
.web-setting-segments label:has(input:checked) { border-color:#8654b0;background:#f5edfc;color:#61348b;box-shadow:inset 0 0 0 1px #8654b0; }
.web-setting-segments input { accent-color:#7b43aa; }
.web-settings-grid { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:24px;margin:20px 0; }
.web-settings-grid>label { display:flex;flex-direction:column;gap:8px; }
.web-settings-toggles>label,.web-cloud-actions>label,.web-backup-confirm { display:flex;align-items:center;gap:10px;min-height:44px;cursor:pointer; }
.web-settings-toggles p { margin:0 0 13px; }
.web-settings-card input:is([type=radio],[type=checkbox]),.web-data-review input[type=checkbox] { width:20px;height:20px;min-height:20px;flex-shrink:0;accent-color:#7c45ab; }
.web-account-summary { border-left:3px solid #ac83cb;background:#faf6ff;padding:14px 18px;margin:20px 0;overflow-wrap:anywhere; }
.web-account-summary p { margin:4px 0 0; }
.web-cloud-actions { display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 8px; }
.web-cloud-actions>label { flex-basis:100%; }
.web-data-local { border-top:1px solid #eadff2;margin-top:24px;padding-top:18px; }
#webCloudMsg { min-height:1.65em;overflow-wrap:anywhere;color:#5b3f72; }
#webCloudMsg[data-error="true"] { color:#9a2945; }
.web-data-review { width:min(660px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:26px;border:1px solid #cbb0df;border-radius:16px;background:#fff;color:#463155;box-shadow:0 20px 90px #2d133849; }
.web-data-review::backdrop { background:#25122e77;backdrop-filter:blur(3px); }
.web-data-review h3 { margin:0 0 16px; }
.web-data-review pre { background:#faf6ff;border:1px solid #e7d9f0;padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:200px;overflow:auto; }
.web-data-review summary { cursor:pointer;min-height:44px;display:flex;align-items:center; }
.web-backup-confirm { margin:20px 0; }
.web-data-review .row { display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end; }
@media(max-width:767px) { .web-settings-grid { grid-template-columns:1fr;gap:14px; }.web-setting-segments { flex-direction:column; }.web-setting-segments label { width:100%; }.web-settings-card .row { align-items:stretch; }.web-settings-card .row>* { flex:1 1 100%; }.web-cloud-actions>button { flex:1 1 100%; }.web-data-review { padding:20px; }.web-data-review .row>button { width:100%; }html[data-web-font] body.web-edition .lab-summary-strip { grid-template-columns:1fr; }html[data-web-font] body.web-edition .lab-summary-strip>div { border-bottom:1px solid #eadff3; } }

.web-quick-reading {display:flex;align-items:center;gap:8px;white-space:nowrap;color:#56346e;min-width:0;}
.web-quick-reading select {width:auto;max-width:160px;min-height:44px;margin:0;}
@media(max-width:767px){.web-quick-reading {flex:1 1 100%;justify-content:space-between;}.web-quick-reading select {flex:1;max-width:190px;}}

@media(max-width:767px){
 .web-sitebar-main {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;}
 .web-sitebar-main>#webEnableAlerts {display:none;}
 .web-sitebar-main>.web-home {white-space:normal;overflow-wrap:anywhere;text-align:right;}
 .web-sitebar-main>#webNavToggle {justify-self:start;}
 .web-sitebar-main>#webHoyoButton {width:100%;min-width:0;}
 .web-sitebar-main>.web-quick-reading {display:block;min-width:0;width:100%;}
 .web-quick-reading>span {display:none;}
 .web-quick-reading select {width:100%;max-width:none;}
 .web-capabilities:not(:has(#webStopSharing:not([hidden]))) {display:none;}
 .web-capabilities #webOcrStatus,.web-capabilities .web-storage-note {display:none;}
}
