/* v0.15.155-menuui — approved Slipwoo light/dark artwork and menu surfaces.
   Scope is deliberately restricted to the shell and its three menu overlays. */
body[data-shell-resolved="light"] {
 --sw-text:#082743; --sw-header:#082743; --sw-muted:#52718d;
 --sw-bg:#f5fafc; --sw-bg-2:#fff; --sw-card:#fff;
 --sw-surface-2:#ffffffd9; --sw-control:#f6fafc; --sw-soft:#e4eff4;
 --sw-line:#b9cfdf66; --sw-shadow:#183f601d;
 --sw-accent:#00ac96; --sw-accent-strong:#008579;
 --sw-landscape:url('../content/ui/fresh/home-bg-day.webp');
 --sw-decor:linear-gradient(180deg,#DDF2FC 0,#F4FAFD 34%,#F4FAFD 100%);
 --sw-button:linear-gradient(180deg,#ffffffef,#edf4f8f5);
 --sw-button-border:#c2d5e2; --sw-modal:linear-gradient(150deg,#ffffff,#eff6f9);
}
body[data-shell-resolved="dark"] {
 --sw-text:#f2f7fc; --sw-header:#f2f7fc; --sw-muted:#b0c6d5;
 --sw-bg:#061923; --sw-bg-2:#0b2633; --sw-card:#102934;
 --sw-surface-2:#173442d9; --sw-control:#28495c; --sw-soft:#0b2330;
 --sw-line:#88b9d333; --sw-shadow:#00000050;
 --sw-accent:#00c5ae; --sw-accent-strong:#009585;
 --sw-landscape:url('../content/ui/fresh/home-bg-night.webp');
 --sw-decor:linear-gradient(180deg,#173E66 0,#0E2A47 34%,#0E2A47 100%);
 --sw-button:linear-gradient(180deg,#3d6074ef,#294758f5);
 --sw-button-border:#83acc47a; --sw-modal:linear-gradient(150deg,#203f50,#102630);
}
body[data-ui-context="shell"] .home-screen {
 isolation:isolate; padding:0; background:var(--sw-bg); overflow:auto;
}
body[data-ui-context="shell"] .home-screen::before {
 content:""; position:absolute; inset:0; z-index:-1;
 background:var(--sw-landscape) center/cover no-repeat;
}
body[data-ui-context="shell"] .home-card {
 position:relative; width:min(calc(82 * var(--uvw)),340px); min-height:min(calc(100 * var(--udvh)),820px);
 padding:clamp(68px,calc(15 * var(--udvh)),124px) 0 128px; box-sizing:border-box;
 display:flex; flex-direction:column; align-items:stretch; gap:12px;
 border:0; border-radius:0; background:none; box-shadow:none;
 backdrop-filter:none; -webkit-backdrop-filter:none;
}
body[data-ui-context="shell"] .home-logo {
 position:relative; align-self:center; font-size:clamp(46px,calc(12 * var(--uvw)),62px);
 line-height:1.15; font-weight:850; letter-spacing:-.045em; z-index:0;
 white-space:nowrap; text-shadow:0 2px 2px #0000000a; margin:0 0 5px 20px;
}
.home-logo em{font-style:italic;font-weight:inherit}
.home-tagline {color:var(--sw-text); font-size:13px; line-height:1.5; margin:0 -10px clamp(40px,calc(7 * var(--udvh)),66px); text-align:center; font-weight:500}
body[data-ui-context="shell"] .home-version {
 position:absolute; bottom:20px; left:0; right:0; margin:0;
 color:#d6f0ee; font-size:10px; letter-spacing:.06em; opacity:.75;
}
.home-motto {position:absolute; bottom:48px; left:0; right:0; color:#fff; font-size:13px; line-height:1.5; text-shadow:0 2px 8px #001e30; text-align:center}
body[data-ui-context="shell"] .home-card button {
 min-height:62px; border:1px solid var(--sw-button-border); border-radius:19px;
 background:var(--sw-button); color:var(--sw-text); font-size:18px; font-weight:750;
 box-shadow:0 5px 8px #062e471b,inset 0 1px #ffffff55;
}
body[data-ui-context="shell"] .home-card .primary-home {
 min-height:64px; font-size:20px; border-color:#63e5d7;
 background:linear-gradient(165deg,#00bca5,#008a7f); box-shadow:0 5px 15px #00665e30,inset 0 1px #ffffff45;
}
body[data-ui-context="shell"] .home-level-id {font-size:10px; opacity:.75}
/* Setup: preserve the existing filmstrip and large artwork. */
body[data-ui-context="shell"] .free-setup {
 background:var(--sw-decor) center top/cover no-repeat,var(--sw-bg);
 padding:calc(18px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
}
body[data-ui-context="shell"] .free-setup-card {width:min(100%,480px); gap:16px; color:var(--sw-text)}
body[data-ui-context="shell"] .setup-fidelity-head {display:grid; grid-template-columns:40px 1fr 40px; align-items:center; min-height:38px}
.setup-fidelity-head h1{margin:0;text-align:center;font-size:18px;font-weight:750;letter-spacing:-.02em}
body[data-ui-context="shell"] .setup-fidelity-head .theme-close {position:static; width:38px;height:38px; background:transparent;border:0;color:var(--sw-text);box-shadow:none; transform:none; font-size:0}
.setup-fidelity-head .theme-close::before{content:'‹';font:32px/1 system-ui}
body[data-ui-context="shell"] .theme-choice-panel {padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:10px}
body[data-ui-context="shell"] .theme-choice-panel::before {content:none}
.theme-choice-title {margin:0 0 2px;font-size:15px;font-weight:750}
body[data-ui-context="shell"] .theme-choice-panel .theme-cinema {min-height:clamp(280px,calc(42 * var(--udvh)),400px); max-height:none;border:0;border-radius:17px;background:none;overflow:hidden}
body[data-ui-context="shell"] .theme-cinema .theme-preview {left:2%;width:96%;border:1px solid var(--sw-line);border-radius:17px;box-shadow:0 5px 16px var(--sw-shadow)}
body[data-ui-context="shell"] .theme-cinema .theme-preview-label {bottom:18px}
body[data-ui-context="shell"] .theme-cinema .theme-preview-label strong {font-size:clamp(24px,calc(7 * var(--uvw)),34px);letter-spacing:-.025em}
body[data-ui-context="shell"] .theme-carousel-nav {grid-template-columns:46px minmax(0,1fr) 46px; min-height:46px;padding:0 4px}
body[data-ui-context="shell"] .theme-carousel-nav .theme-nav {width:46px;height:46px;background:var(--sw-button);border:1px solid var(--sw-button-border);border-radius:12px;box-shadow:inset 0 1px #ffffff30;color:var(--sw-text)}
body[data-ui-context="shell"] .theme-carousel-nav .theme-dots {flex-wrap:wrap;gap:7px;justify-content:center}
body[data-ui-context="shell"] .range-controls-panel {padding:4px 6px 0;border:0;background:none;box-shadow:none;border-radius:0}
body[data-ui-context="shell"] .range-control-title {font-size:16px;letter-spacing:0;margin-bottom:14px}
body[data-ui-context="shell"] .range-control-block+.range-control-block {border:0;margin-top:20px;padding-top:0}
body[data-ui-context="shell"] .range-labels,body[data-ui-context="shell"] .challenge-ends {font-size:12px}
body[data-ui-context="shell"] .challenge-description {font-size:12px;line-height:1.45;min-height:34px}
body[data-ui-context="shell"] .free-play-launch {min-height:58px;border-radius:15px;border:1px solid #60dfd1;background:linear-gradient(165deg,#00bca5,#008a7f);font-size:17px;letter-spacing:0;box-shadow:0 4px 10px #006e6420,inset 0 1px #ffffff40}
/* Settings/help use the same surfaces whether opened from home or during play. */
#settingsPanel,#helpPanel {background:color-mix(in srgb,var(--sw-bg) 86%,transparent)}
#settingsPanel .settings-card,#helpPanel .help-card {
 width:min(100%,480px); max-height:calc(calc(100 * var(--udvh)) - 36px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
 padding:18px 16px; border:1px solid var(--sw-line);border-radius:25px;
 color:var(--sw-text);background:var(--sw-decor) center top/cover no-repeat,var(--sw-bg);
 box-shadow:0 20px 70px var(--sw-shadow);
}
#settingsPanel .ui-head,#helpPanel .ui-head {position:relative;min-height:36px; padding-bottom:12px;border:0;gap:8px;align-items:center}
#settingsPanel .ui-head strong,#helpPanel .ui-head strong {font-size:18px;letter-spacing:-.02em;font-weight:750;flex:1}
#settingsPanel .ui-head #settingsClose,#helpPanel .ui-head #helpClose {width:36px;height:36px;min-height:36px;border:0;background:transparent;color:var(--sw-text);font-size:0;order:-1;padding:0}
#settingsPanel #settingsClose::before,#helpPanel #helpClose::before{content:'‹';font:32px/1 system-ui}
#settingsPanel .settings-section {margin:0 0 12px;position:relative}
#settingsPanel .settings-section h3,#settingsPanel #shellThemeSection h3 {font-size:14px;letter-spacing:0;margin:0 0 7px;padding-left:26px;color:var(--sw-text)}
#settingsPanel .settings-section h3::before,#settingsPanel #shellThemeSection h3::before {content:'';position:absolute;left:2px;top:0;width:18px;height:18px;background:currentColor;mask:var(--section-icon) center/contain no-repeat;-webkit-mask:var(--section-icon) center/contain no-repeat}
#settingsPanel .settings-section>p {font-size:11px;line-height:1.4;margin:0 0 8px 26px}
#settingsPanel .settings-group {padding:0 12px;border:1px solid var(--sw-line);border-radius:15px;background:var(--sw-surface-2);box-shadow:inset 0 1px #ffffff0d,0 2px 5px #001c3005}
#settingsPanel .settings-row {min-height:52px;gap:9px;padding:10px 0}
#settingsPanel .settings-copy {min-width:0}
#settingsPanel .settings-name {font-size:13px;line-height:1.4;color:var(--sw-text)}
#settingsPanel .settings-copy small {font-size:11px;line-height:1.4;color:var(--sw-muted)}
#settingsPanel .settings-select {max-width:48%;font-size:12px;border-radius:9px;background:var(--sw-control)}
#settingsPanel .settings-switch {width:38px;height:22px;flex:0 0 38px;box-shadow:inset 0 1px 3px #0002}
#settingsPanel .settings-switch span {width:16px;height:16px;top:3px;left:3px;box-shadow:0 1px 3px #0003}
#settingsPanel .settings-switch[aria-checked="true"] span {transform:translateX(16px)}
#settingsPanel .settings-checkbox {appearance:none;-webkit-appearance:none;width:38px;height:22px;flex:0 0 38px;border:0;border-radius:20px;background:#93aebb88;position:relative;cursor:pointer;margin:0;box-shadow:inset 0 1px 3px #0002}
#settingsPanel .settings-checkbox::before {content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .16s}
#settingsPanel .settings-checkbox:checked {background:var(--sw-accent)}
#settingsPanel .settings-checkbox:checked::before {transform:translateX(16px)}
#settingsPanel .settings-checkbox:disabled {opacity:.45;cursor:default}
#settingsPanel #shellThemeSection {margin-top:0;padding-top:5px;border:0;position:relative}
#settingsPanel .settings-info {width:17px;height:17px;font-size:10px}
#settingsPanel .panel-version,#helpPanel .panel-version {font-size:10px;opacity:.65}
#helpPanel .help-content {display:flex;flex-direction:column;padding:0 0 4px;gap:10px}
#helpPanel .help-content section {position:relative;padding:14px 14px 14px 55px;background:var(--sw-surface-2);border:1px solid var(--sw-line);border-radius:15px;box-shadow:inset 0 1px #ffffff0d}
#helpPanel .help-content section::before {content:'';position:absolute;left:12px;top:13px;width:30px;height:30px;border-radius:50%;background:var(--help-color,#009be8);box-shadow:inset 0 1px #fff5,0 2px 4px #0001}
#helpPanel .help-content section::after {content:'';position:absolute;left:19px;top:20px;width:16px;height:16px;background:#fff;mask:var(--section-icon) center/contain no-repeat;-webkit-mask:var(--section-icon) center/contain no-repeat}
#helpPanel .help-content h3 {margin:0 0 6px;color:var(--sw-text);font-size:14px;letter-spacing:0}
#helpPanel .help-content p {color:var(--sw-muted);font-size:12px;line-height:1.6;margin:6px 0 0}
#helpPanel .help-content strong {color:var(--sw-text)}
#helpPanel .help-content section:nth-child(2){--help-color:#00a88c}
#helpPanel .help-content section:nth-child(3){--help-color:#51bb38}
#helpPanel .help-content section:nth-child(5){--help-color:#9870e5}
#helpPanel .help-content section:nth-child(6){--help-color:#287fea}
#helpPanel .help-content section:nth-child(7){--help-color:#2ec2da}
#helpPanel .help-content section:nth-child(8){--help-color:#668ca8}
#helpPanel .ui-head .help-tutorial {font-size:11px;min-height:32px;padding:5px 10px;border-radius:10px}
/* The paused board remains untouched behind the menu scrim. */
#gameMenuPanel {background:#00141cbf;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#gameMenuPanel .ui-card {width:min(calc(90 * var(--uvw)),360px);padding:20px 16px 14px;border-radius:23px;background:var(--sw-modal);border:1px solid var(--sw-button-border);box-shadow:0 18px 50px #0005;gap:8px}
#gameMenuPanel .ui-head {border:0;margin-bottom:0;gap:6px}
#gameMenuPanel .ui-head strong {font-size:19px;text-align:center;flex:1;letter-spacing:-.02em}
#gameMenuPanel .ui-head button {width:30px;min-height:30px;background:transparent;border:0;color:var(--sw-muted)}
#gameMenuPanel .ui-card>button {min-height:50px;border-radius:13px;border:1px solid var(--sw-button-border);background:var(--sw-button);box-shadow:0 2px 3px #001d3010,inset 0 1px #ffffff30;font-size:14px;font-weight:700;color:var(--sw-text)}
#gameMenuPanel .ui-sub {font-size:11px;text-align:center;margin:0 0 4px;color:var(--sw-muted)}
#gameMenuPanel .panel-version {text-align:center;font-size:10px;margin-top:3px}
:is(#homeScreen,#freePlaySetup,#settingsPanel,#helpPanel,#gameMenuPanel) button:focus-visible,
#settingsPanel input:focus-visible {outline:3px solid var(--sw-accent);outline-offset:3px}
@media(min-width:700px){
 body[data-ui-context="shell"] .home-screen {background:radial-gradient(ellipse at center,color-mix(in srgb,var(--sw-accent) 16%,var(--sw-bg)),var(--sw-bg))}
 body[data-ui-context="shell"] .home-screen::before {inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);width:460px;height:min(calc(calc(100 * var(--udvh)) - 48px),860px);border-radius:30px;box-shadow:0 20px 80px var(--sw-shadow);border:1px solid var(--sw-line);background-size:100% 100%}
 body[data-ui-context="shell"] .home-card {min-height:min(calc(calc(100 * var(--udvh)) - 48px),860px);padding-top:clamp(68px,calc(14 * var(--udvh)),130px)}
 body[data-ui-context="shell"] .free-setup {padding-top:28px;padding-bottom:28px}
 body[data-ui-context="shell"] .free-setup-card {padding:22px;box-sizing:border-box;border:1px solid var(--sw-line);border-radius:26px;background:var(--sw-card);box-shadow:0 15px 45px var(--sw-shadow)}
 body[data-ui-context="shell"] .theme-choice-panel .theme-cinema {min-height:320px}
}
@media(max-width:600px){
 #settingsPanel,#helpPanel {padding:0}
 #settingsPanel .settings-card,#helpPanel .help-card {width:100%;height:calc(100 * var(--udvh));max-height:calc(100 * var(--udvh));border:0;border-radius:0;padding:calc(14px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box}
}
@media(max-height:700px){
 body[data-ui-context="shell"] .home-card {padding-top:50px;min-height:calc(100 * var(--udvh));padding-bottom:100px}
 .home-tagline {margin-bottom:30px}
 body[data-ui-context="shell"] .home-card button {min-height:52px}
 body[data-ui-context="shell"] .theme-choice-panel .theme-cinema {min-height:240px}
}
@media(prefers-reduced-motion:reduce){#settingsPanel .settings-checkbox::before {transition:none}}

#languageSettingsSection{--section-icon:url("../content/ui/menu/icon-globe.svg")}
#soundSettingsSection,#helpPanel section:nth-child(7){--section-icon:url("../content/ui/menu/icon-sound.svg")}
#layoutSettingsSection,#helpPanel section:nth-child(4){--section-icon:url("../content/ui/menu/icon-layout.svg")}
#gestureSettingsSection,#helpPanel section:nth-child(2){--section-icon:url("../content/ui/menu/icon-gesture.svg")}
#appSettingsSection,#helpPanel section:nth-child(8){--section-icon:url("../content/ui/menu/icon-app.svg")}
#shellThemeSection{--section-icon:url("../content/ui/menu/icon-look.svg")}
#helpPanel section:nth-child(1),#helpPanel section:nth-child(3){--section-icon:url("../content/ui/menu/icon-goal.svg")}
#helpPanel section:nth-child(5){--section-icon:url("../content/ui/menu/icon-clock.svg")}
#helpPanel section:nth-child(6){--section-icon:url("../content/ui/menu/icon-help.svg")}
.home-motto {white-space:pre-line}
/* White captions stay readable over every theme artwork in both shell modes. */
body[data-ui-context="shell"] .theme-cinema .theme-preview-label {color:#fff}
body[data-ui-context="shell"] .theme-cinema .theme-preview-label :is(strong,small,p) {color:#fff}
:is(#homeScreen,#freePlaySetup,#settingsPanel,#helpPanel,#gameMenuPanel) {font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
body[data-ui-context="shell"] .home-level-id {display:inline;margin-left:7px}

:is(#homeFreePlay,#homeSettings,#homeHelp,#menuRestart,#menuNew,#menuHelp,#menuSettings,#menuHome)::before {content:"";display:inline-block;width:21px;height:21px;margin-right:12px;vertical-align:-4px;background:currentColor;mask:var(--button-icon) center/contain no-repeat;-webkit-mask:var(--button-icon) center/contain no-repeat}
#homeFreePlay{--button-icon:url("../content/ui/menu/icon-play.svg")}
#homeSettings,#menuSettings{--button-icon:url("../content/ui/menu/icon-gear.svg")}
#homeHelp,#menuHelp{--button-icon:url("../content/ui/menu/icon-help.svg")}
#menuRestart,#menuNew{--button-icon:url("../content/ui/menu/icon-restart.svg")}
#menuHome{--button-icon:url("../content/ui/menu/icon-home.svg")}


/* Help opens on a compact topic index, matching the approved menu sheet. */
#helpPanel .help-topic {border:1px solid var(--sw-line);border-radius:15px;background:var(--sw-surface-2);overflow:hidden;flex-shrink:0}
#helpPanel .help-topic summary {position:relative;display:flex;align-items:center;min-height:66px;box-sizing:border-box;padding:11px 30px 11px 55px;cursor:pointer;list-style:none}
#helpPanel .help-topic summary::-webkit-details-marker {display:none}
#helpPanel .help-topic summary::before {content:'';position:absolute;left:12px;top:50%;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;background:var(--help-color,#009be8)}
#helpPanel .help-topic-copy::before {content:'';position:absolute;left:19px;top:50%;transform:translateY(-50%);width:16px;height:16px;background:white;mask:var(--section-icon) center/contain no-repeat;-webkit-mask:var(--section-icon) center/contain no-repeat}
#helpPanel .help-topic summary::after {content:'›';position:absolute;right:12px;font-size:23px;color:var(--sw-muted)}
#helpPanel .help-topic[open] summary::after {transform:rotate(90deg)}
#helpPanel .help-topic summary:focus-visible {outline:2px solid var(--sw-accent);outline-offset:-3px}
#helpPanel .help-topic-copy {display:flex;flex-direction:column;gap:3px}
#helpPanel .help-topic-copy strong {font-size:13px;line-height:1.25}
#helpPanel .help-topic-copy>span {font-size:11px;line-height:1.35;color:var(--sw-muted)}
#helpPanel .help-topic section {padding:0 14px 14px 55px;border:0;border-radius:0;background:transparent;box-shadow:none}
#helpPanel .help-topic section::before,#helpPanel .help-topic section::after,#helpPanel .help-topic section h3 {display:none}
/* the notice keeps its section headings (the other topics hide theirs: the summary is their title); its own first heading repeats the summary */
#helpPanel .help-topic[data-topic="privacy"] section h3{display:block;margin:14px 0 4px;font-size:13px;color:var(--sw-text)}
#helpPanel .help-topic[data-topic="privacy"] section h3:first-child{display:none}
/* a link inside a Help text (the privacy notice and the pointers to it) */
#helpPanel .help-content a{color:var(--sw-accent,#009be8);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;cursor:pointer}
#helpPanel .help-content a:focus-visible{outline:2px solid var(--sw-accent,#009be8);outline-offset:2px;border-radius:3px}

/* one icon and colour per Help topic, by name: the topics were numbered before, and the numbers drifted as topics were added */
#helpPanel .help-topic[data-topic="goal"]{--section-icon:url('../content/ui/menu/icon-goal.svg');--help-color:#009be8}
#helpPanel .help-topic[data-topic="buttons"]{--section-icon:url('../content/ui/menu/icon-controls.svg');--help-color:#51bb38}
#helpPanel .help-topic[data-topic="levels"]{--section-icon:url('../content/ui/menu/icon-layout.svg');--help-color:#3b82c4}
#helpPanel .help-topic[data-topic="points"]{--section-icon:url('../content/ui/menu/icon-clock.svg');--help-color:#9870e5}
#helpPanel .help-topic[data-topic="stats"]{--section-icon:url('../content/ui/menu/icon-stats.svg');--help-color:#e08a2e}
#helpPanel .help-topic[data-topic="messages"]{--section-icon:url('../content/ui/menu/icon-messages.svg');--help-color:#287fea}
#helpPanel .help-topic[data-topic="challenges"]{--section-icon:url('../content/ui/menu/icon-challenges.svg');--help-color:#d99a1f}
#helpPanel .help-topic[data-topic="ranks"]{--section-icon:url('../content/ui/menu/icon-ranks.svg');--help-color:#c9892b}
#helpPanel .help-topic[data-topic="account"]{--section-icon:url('../content/ui/menu/icon-palette.svg');--help-color:#7a6ad8}
#helpPanel .help-topic[data-topic="telemetry"]{--section-icon:url('../content/ui/menu/icon-pulse.svg');--help-color:#668ca8}
#helpPanel .help-topic[data-topic="privacy"]{--section-icon:url('../content/ui/menu/icon-privacy.svg');--help-color:#5b6fb3}

/* The first frame uses the same appearance and artwork as the home menu. */
#startup {isolation:isolate;background:var(--sw-bg);color:var(--sw-text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;overflow:hidden}
#startup::before {content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,transparent,var(--sw-bg)),var(--sw-landscape) center/cover no-repeat;opacity:.8}
#startup .startup-card {width:min(calc(82 * var(--uvw)),340px);box-sizing:border-box;padding:38px 20px 32px;background:var(--sw-surface-2);border:1px solid var(--sw-line);border-radius:28px;box-shadow:0 18px 50px var(--sw-shadow);backdrop-filter:blur(12px)}
#startup .startup-title {position:relative;z-index:0;display:inline-block;color:var(--sw-header);font-size:clamp(40px,calc(11 * var(--uvw)),52px);font-weight:850;line-height:1.15;letter-spacing:-.045em;margin:0 0 10px 20px}
#startup .startup-title::before {content:none}
#startup .startup-title em {font-style:italic}
#startup .startup-tagline {font-size:12px;color:var(--sw-muted);margin:8px 0 28px;line-height:1.5}
#startup .startup-text {font-size:12px;font-weight:600;color:var(--sw-muted);margin-top:16px;opacity:1}
#startup .startup-loader {display:flex;justify-content:center;gap:9px;height:14px;align-items:center}
#startup .startup-loader i {width:9px;height:9px;border-radius:3px;background:var(--sw-accent);animation:swLoading 1.2s ease-in-out infinite}
#startup .startup-loader i:nth-child(2){animation-delay:.15s}
#startup .startup-loader i:nth-child(3){animation-delay:.3s}
@keyframes swLoading {0%,75%,100%{transform:translateY(0);opacity:.35}35%{transform:translateY(-5px);opacity:1}}
@media(min-width:700px){#startup::before{inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:460px;height:min(calc(calc(100 * var(--udvh)) - 48px),860px);border-radius:30px;background-size:100% 100%;border:1px solid var(--sw-line)}}
@media(prefers-reduced-motion:reduce){#startup{transition:none}#startup .startup-loader i{animation:none;opacity:.8}}

/* Compact settings overview, matching the approved accordion mockup. */
#settingsPanel .settings-topic {margin:0 0 12px;border:1px solid var(--sw-line);border-radius:17px;background:var(--sw-surface-2);box-shadow:0 2px 5px #001c3005;flex-shrink:0}
#settingsPanel .settings-topic>summary {display:flex;align-items:center;gap:12px;position:relative;min-height:76px;padding:13px 34px 13px 13px;box-sizing:border-box;cursor:pointer;list-style:none}
#settingsPanel summary::-webkit-details-marker {display:none}
#settingsPanel .settings-topic>summary::after {content:'';position:absolute;right:17px;top:32px;width:8px;height:8px;border-right:2px solid var(--sw-text);border-bottom:2px solid var(--sw-text);transform:rotate(45deg)}
#settingsPanel .settings-topic[open]>summary::after {top:36px;transform:rotate(225deg)}
#settingsPanel .settings-topic-icon {width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:color-mix(in srgb,var(--topic-color) 15%,var(--sw-surface-2));display:grid;place-items:center}
#settingsPanel .settings-topic-icon::before {content:'';width:24px;height:24px;background:var(--topic-color);mask:var(--topic-icon) center/contain no-repeat;-webkit-mask:var(--topic-icon) center/contain no-repeat}
#settingsPanel .settings-topic-copy {display:flex;flex-direction:column;gap:4px;min-width:0}
#settingsPanel .settings-topic-copy strong {font-size:15px;line-height:1.3;color:var(--sw-text)}
#settingsPanel .settings-topic-copy>span {font-size:11px;line-height:1.4;color:var(--sw-muted)}
#settingsAppearance {--topic-color:#00a899;--topic-icon:url('../content/ui/menu/icon-globe.svg')}
#settingsSounds {--topic-color:#00a4da;--topic-icon:url('../content/ui/menu/icon-sound.svg')}
#settingsControls {--topic-color:#9870e5;--topic-icon:url('../content/ui/menu/icon-controls.svg')}
#settingsSave {--topic-color:#c28a20;--topic-icon:url('../content/ui/menu/icon-save.svg')}
#settingsPacks {--topic-color:#3aa56b;--topic-icon:url('../content/ui/menu/icon-goal.svg')}
#settingsPacks[hidden] {display:none!important}
#settingsApp {--topic-color:#287fea;--topic-icon:url('../content/ui/menu/icon-gear.svg')}
#settingsData {--topic-color:#d2557a;--topic-icon:url('../content/ui/menu/icon-stats.svg')}
#settingsPanel .settings-topic-content {margin:0 13px 12px;border-top:1px solid var(--sw-line)}
#settingsPanel .settings-topic-content .settings-section,#settingsPanel .settings-topic-content #shellThemeSection {margin:0;padding:0;border:0}
#settingsPanel .settings-topic-content h3,#settingsPanel .settings-topic-content .settings-section>p {display:none}
#settingsPanel .settings-topic-content .settings-group {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#settingsPanel .settings-topic-content .settings-section+.settings-section,#settingsPanel .settings-topic-content #shellThemeSection {border-top:1px solid var(--sw-line)}
#settingsPanel .settings-advanced {border-top:1px solid var(--sw-line)}
#settingsPanel .settings-advanced>summary {list-style:none;cursor:pointer;position:relative;padding:12px 30px 12px 11px;margin:7px 0 0;background:var(--sw-soft);border:1px solid var(--sw-line);border-radius:11px;font-size:13px;font-weight:650;color:var(--sw-text)}
#settingsPanel .settings-advanced>summary::after {content:'›';position:absolute;right:13px;top:7px;font-size:23px}
#settingsPanel .settings-advanced[open]>summary::after {transform:rotate(90deg)}
#settingsPanel summary:focus-visible {outline:3px solid var(--sw-accent);outline-offset:-3px;border-radius:14px}
#settingsPanel .settings-row {flex-wrap:wrap}
#settingsPanel .settings-row .settings-copy {flex:1 1 155px}
#settingsPanel .settings-card {display:flex;flex-direction:column;gap:12px}
#settingsPanel .settings-topic {margin:0}
#settingsPanel .panel-version {margin-top:auto;padding-top:6px}


/* the privacy notice row of the Settings opens a page: a link that looks like the row's other buttons */
#settingsPanel a.settings-calibrate{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-sizing:border-box}
.net-data-more-row{margin:4px 0 0;font-size:.82rem}
