/* Shared Central palette. These selectors deliberately outrank legacy page skins. */
html[data-theme=light]{
 --ui-bg:#f6f5f4;--ui-surface:#fff;--ui-raised:#fff;--ui-sidebar:#eeedeb;--ui-header:#faf9f8;--ui-soft:#eae9e7;
 --ui-text:#242424;--ui-muted:#62615f;--ui-quiet:#72716f;--ui-line:#deddda;--ui-accent:#216bc4;--ui-on-accent:#fff;
 --ui-selected:#e0ecfa;--ui-selected-text:#174f91;--ui-hover:#e9e8e6;--ui-field:#fff;--ui-shadow:0 12px 40px #00000013;
 --ui-success:#247343;--ui-success-bg:#e5f3e9;--ui-warning:#805500;--ui-warning-bg:#fff2d7;--ui-danger:#b1283a;--ui-danger-bg:#fbe7e9;
 --ui-overlay:#f5f5f4f5;--ui-dock:#f6f5f4f5;--ui-dock-line:#ffffffd9;--ui-backdrop:#0005;color-scheme:light;
}
html[data-theme=dark]{
 --ui-bg:#242424;--ui-surface:#303030;--ui-raised:#383838;--ui-sidebar:#292929;--ui-header:#303030;--ui-soft:#3d3d3d;
 --ui-text:#f2f2f2;--ui-muted:#c0c0c0;--ui-quiet:#ababab;--ui-line:#4b4b4b;--ui-accent:#8bbcff;--ui-on-accent:#112a49;
 --ui-selected:#34465c;--ui-selected-text:#c5deff;--ui-hover:#454545;--ui-field:#242424;--ui-shadow:0 12px 40px #0005;
 --ui-success:#9bd7b0;--ui-success-bg:#2b4133;--ui-warning:#efd08b;--ui-warning-bg:#48402c;--ui-danger:#ffb2bc;--ui-danger-bg:#4c3035;
 --ui-overlay:#242424f5;--ui-dock:#303030f5;--ui-dock-line:#ffffff20;--ui-backdrop:#0009;color-scheme:dark;
}
html[data-theme]{
 --text:var(--ui-text);--ink:var(--ui-text);--muted:var(--ui-muted);--quiet:var(--ui-quiet);
 --line:var(--ui-line);--edge:var(--ui-line);--accent:var(--ui-accent);--surface:var(--ui-surface);--panel:var(--ui-surface);--panel2:var(--ui-soft);
 --soft:var(--ui-soft);--bg:var(--ui-bg);--rail:var(--ui-sidebar);--blue:var(--ui-accent);--mint:var(--ui-accent);
 --amber:var(--ui-warning);--red:var(--ui-danger);background:var(--ui-bg);color:var(--ui-text);
 scrollbar-color:var(--ui-quiet) var(--ui-bg);
}
html[data-theme] body{background:var(--ui-bg);color:var(--ui-text);font-family:Inter,"Segoe UI",system-ui,sans-serif}
html[data-theme] body :is(h1,h2,h3,h4,strong,label,legend){color:inherit}
html[data-theme] body :is(a,.text-link,.footer a,.below-note a,.hint code){color:var(--ui-accent)}
html[data-theme] body :is(.muted,.empty,.stamp,.hint,.footnote,.section-intro,.below-note,.footer,.apps-count,.process-package,.setting-reason,.settings-content .web-card>p,.web-header p,.page-head p,.panel-head p,.server-description,.mc-field-description,.mc-field-note,.mc-field-key,.mc-mod-size,.mc-section-heading p,.mc-console-options,.player-row small,.player-data dt,.player-timeline time,.player-timeline small,.player-timeline p,.linked-account small,.players-empty,.file-item .file-date,.file-item .file-size,.file-item .file-type,.field>span,.details dt){color:var(--ui-muted)}
html[data-theme] body :is(.eyebrow,.mc-config-group-title,.side-title){color:var(--ui-muted);font-weight:650;letter-spacing:.08em}
html[data-theme] body :is(.web-header h1,.page-head h1){font-size:25px;line-height:1.25;font-weight:650;letter-spacing:-.6px}
html[data-theme] body :is(.rail,.side-nav,.file-nav,.game-rail,.cloud-surface .side-card){background:var(--ui-sidebar);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.topbar,.web-header,.panel-head,.file-top,.file-table-head,.file-footer,.cloud-surface .location-bar,.cloud-surface .command-bar){background:var(--ui-header);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.topbar-title small,.brand small,.rail-note,.rail-note strong,.file-footer,.file-table-head,.file-top .sep){color:var(--ui-muted)}
html[data-theme] body :is(.nav a,.nav button,.side-nav button,.file-nav>button,.cloud-surface .side-link){color:var(--ui-muted)}
html[data-theme] body :is(.nav a:hover,.nav button:hover,.side-nav button:hover,.file-nav>button:hover,.cloud-surface .side-link:hover){background:var(--ui-hover);color:var(--ui-text)}
html[data-theme] body :is(.nav a[aria-current=page],.nav button[aria-current=page],.side-nav button.active,.file-nav>button.active,.cloud-surface .side-link.active){background:var(--ui-selected);color:var(--ui-selected-text);border-color:transparent}
html[data-theme] body :is(.nav a[aria-current=page] .icon,.topbar-title .icon,.file-address>.ui-icon,.wifi-item>.ui-icon){color:var(--ui-accent)}
html[data-theme] body :is(.web-card,.panel,.ui-panel,.metric,.item,.device-detail-card,.os-profile-card,.os-project-card,.server-card,.side-panel,.mc-field,.mc-savebar,.mc-mod-list,.linked-account,.cloud-surface .explorer,.cloud-surface .capacity,.cloud-surface .entry){background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--ui-line);box-shadow:none;border-radius:14px}
html[data-theme] body :is(.web-card h2,.panel-head h2,.side-panel h2,.os-project-card h2){font-size:16px;font-weight:650;letter-spacing:-.2px}
html[data-theme] body :is(.server-card h2){font-size:22px;letter-spacing:-.5px}
html[data-theme] body :is(.server-card,.terraria-card){--game-accent:var(--ui-accent);border-top:1px solid var(--ui-line)}
html[data-theme] body :is(.server-card .eyebrow,.game-monogram){color:var(--ui-accent)}
html[data-theme] body .game-monogram{background:var(--ui-selected);border-color:transparent}
html[data-theme] body :is(.mc-field[data-changed=true],.mc-field[data-readonly=true]){background:var(--ui-selected);border-color:var(--ui-accent)}
html[data-theme] body :is(.servers-policy,.notice,.mc-operation,.mc-manual-note,.detail-note,.player-info,.os-profile-note){background:var(--ui-selected);color:var(--ui-selected-text);border:1px solid var(--ui-line);border-radius:12px}
html[data-theme] body :is(.servers-policy p,.mc-operation p){color:inherit}
html[data-theme] body .policy-mark{background:var(--ui-surface);color:var(--ui-accent)}
html[data-theme] body :is(.notice[data-kind=error],.toast[data-kind=error],.mc-operation[data-state=failed],.login-error){background:var(--ui-danger-bg);color:var(--ui-danger);border-color:var(--ui-danger)}
html[data-theme] body :is(.button,button:not(:where(.desktop-shortcut,.gnome-app,.wallpaper-choice,.theme-choice)),.cloud-surface .tool-button,.cloud-surface .action-panel>summary){color:var(--ui-text)}
html[data-theme] body :is(.button,.icon-button,.web-app button:not(:where(.wallpaper-choice,.theme-choice)),.game-embedded button,.cloud-surface .tool-button,.cloud-surface .action-panel>summary,.logout-button){background:var(--ui-soft);border-color:var(--ui-line);color:var(--ui-text);font-weight:550}
html[data-theme] body :is(.button:hover,.icon-button:hover,.web-app button:hover,.game-embedded button:hover,.cloud-surface .tool-button:hover,.logout-button:hover){background:var(--ui-hover);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.button.primary,button.primary,.cloud-surface .action-panel.primary>summary,.login-submit){background:var(--ui-accent);color:var(--ui-on-accent);border-color:transparent}
html[data-theme] body :is(.button.primary:hover,button.primary:hover,.login-submit:hover){filter:brightness(1.06)}
html[data-theme] body :is(.button.danger,button.danger,.cloud-surface .delete-trigger){background:var(--ui-danger-bg);color:var(--ui-danger);border-color:transparent}
html[data-theme] body :is(.button.danger:hover,button.danger:hover){filter:brightness(1.06)}
html[data-theme] body :is(input:not([type=checkbox]):not([type=range]):not([type=radio]):not([type=file]):not([type=color]),select,textarea,.search,.search-box,.file-address,.command-field,.mc-search input,.mc-field-input,.players-filter input,.players-filter select){background:var(--ui-field);color:var(--ui-text);border-color:var(--ui-line);border-radius:8px}
html[data-theme] body :is(.search input,.search-box input,.file-address input,.command-field input){background:transparent;border-color:transparent}
html[data-theme] body input::placeholder,html[data-theme] body textarea::placeholder{color:var(--ui-quiet);opacity:1}
html[data-theme] body :is(input[type=checkbox],input[type=range],input[type=radio]){accent-color:var(--ui-accent)}
html[data-theme] body :is(button,a,input,select,textarea):focus-visible{outline-color:var(--ui-accent)}
html[data-theme] body :is(.setting-row,.setting,.permission,.module-row,.policy-row,.wifi-item,.file-top,.file-table-head,.file-item,.file-footer,.mc-tabs,.mc-mod-list li,.mc-filter-row,.player-data>div,.players-pagination,.server-card-facts,.server-card-facts div,.server-info div,.panel-head,.connection-block,.footer){border-color:var(--ui-line)}
html[data-theme] body :is(.setting-row small,.android-app small,.wifi-item small,.setting p,.metric span,.metric small,.metric-label,.server-card-facts dt,.server-info dt,.mc-savebar small,.os-project-card p){color:var(--ui-muted)}
html[data-theme] body :is(.file-item,.android-app,.player-row,.music-entry){background:transparent;color:var(--ui-text)}
html[data-theme] body :is(.file-item:hover,.android-app:hover,.player-row:hover,.cloud-surface .entry:hover){background:var(--ui-hover);color:var(--ui-text)}
html[data-theme] body :is(.file-item.selected,.player-row[data-selected=true],.mc-tab[aria-selected=true],.system-tabs button[aria-pressed=true],.cloud-surface .view-switch .tool-button[aria-pressed=true]){background:var(--ui-selected);color:var(--ui-selected-text);border-color:var(--ui-accent)}
html[data-theme] body :is(.file-item.selected .file-name:before,.file-name .ui-icon,.file-item.folder .file-name .ui-icon){color:var(--ui-accent)}
html[data-theme] body :is(.badge,.tag,.pill,.player-badge,.mc-count,.mc-field-badge,.setting-value,.battery-badge){background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-line)}
html[data-theme] body :is(.badge.green,.pill[data-state=online],.tag[data-status=running],.tag[data-status=enabled],.player-badge[data-status=approved]){background:var(--ui-success-bg);color:var(--ui-success);border-color:transparent}
html[data-theme] body :is(.pill[data-state=online],.tag[data-status=running],.tag[data-status=enabled]):before{background:var(--ui-success)}
html[data-theme] body :is(.pill[data-state=starting],.pill[data-state=loading]){background:var(--ui-warning-bg);color:var(--ui-warning)}
html[data-theme] body :is(.pill[data-state=error],.tag[data-status=error],.player-badge[data-status=rejected],.player-badge[data-status=suspended]){background:var(--ui-danger-bg);color:var(--ui-danger);border-color:transparent}
html[data-theme] body :is(.switch span,.toggle){background:var(--ui-soft);border-color:var(--ui-line)}
html[data-theme] body .switch span:after{background:#fff}
html[data-theme] body :is(.switch input:checked+span,.toggle[aria-checked=true]){background:var(--ui-accent);border-color:var(--ui-accent)}
html[data-theme] body :is(dialog,.web-dialog,.modal,.media-dialog,.context-menu,.cloud-surface dialog,.cloud-surface .action-body,.cloud-surface .entry-menu){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
html[data-theme] body dialog::backdrop{background:var(--ui-backdrop)}
html[data-theme] body :is(.context-menu button,.context-menu button:hover,.cloud-surface .entry-menu a,.cloud-surface .entry-menu button){color:var(--ui-text)}
html[data-theme] body :is(.context-menu button,.dialog-close){background:transparent;border-color:transparent}
html[data-theme] body :is(.context-menu button:hover,.cloud-surface .entry-menu a:hover,.cloud-surface .entry-menu button:hover){background:var(--ui-hover)}
html[data-theme] body :is(table,thead,tbody,tr){background:transparent;color:var(--ui-text)}
html[data-theme] body :is(th,td){border-color:var(--ui-line)}
html[data-theme] body th{background:var(--ui-header);color:var(--ui-muted)}
html[data-theme] body td{color:var(--ui-text)}
html[data-theme] body :is(.toast,#web-toast,.desktop-toast){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
/* Cloud keeps the same shell; media and console output keep their own dark canvas. */
html[data-theme] body .cloud-surface{background:var(--ui-bg);color:var(--ui-text);--text:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--panel:var(--ui-surface)}
html[data-theme] body .cloud-surface :is(.breadcrumbs a,.breadcrumbs span,.entry-main,.entry-menu a,.entry-menu button,.location-label,.entry-actions>summary,.side-title,.heading h1){color:var(--ui-text)}
html[data-theme] body .cloud-surface :is(.entry-meta,.side-note,.heading p,.capacity,.action-body p,.footnote,.empty-state){color:var(--ui-muted)}
html[data-theme] body .cloud-surface :is(.entry-art,.view-switch){background:var(--ui-soft);color:var(--ui-accent);border-color:var(--ui-line)}
html[data-theme] body :is(.terminal-panel,.terminal-host,.log-output,.terminal-keys){background:#17191c;color:#e0e4eb}
html[data-theme] body .terminal-keys button{background:#30343a;color:#e0e4eb;border-color:#535963}
html[data-theme] body .file-editor-dialog textarea{background:var(--ui-field);color:var(--ui-text)}
/* The shell uses the same neutral header bars and surfaces as its applications. */
html[data-theme] body.desktop-shell{color:var(--ui-text)}
html[data-theme] .desktop-wallpaper:after{content:"";position:absolute;inset:0;background:#0000;pointer-events:none}
html[data-theme=dark] .desktop-wallpaper:after{background:#0005}
html[data-theme] body .desktop-menubar{background:var(--ui-header);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.gnome-top-left>button,.desktop-menubar #os-clock,.desktop-menubar-right button,.shell-brand,.desktop-online){color:var(--ui-text)}
html[data-theme] body :is(.desktop-menubar button:hover,.gnome-top-left>button:hover){background:var(--ui-hover)}
html[data-theme] #shell-workspace-pill i{background:var(--ui-quiet)}
html[data-theme] #shell-workspace-pill i.selected{background:var(--ui-text)}
html[data-theme] body .desktop-shortcut{color:#fff}
html[data-theme] body .desktop-window{background:var(--ui-bg);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
html[data-theme] body :is(.window-titlebar,.os-window-bar){background:var(--ui-header);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.window-caption,.window-caption .os-icon,.window-controls button,.os-window-actions button){color:var(--ui-muted)}
html[data-theme] body .window-controls button:hover{background:var(--ui-hover);color:var(--ui-text)}
html[data-theme] body :is(.desktop-window iframe,.window-loading,.os-window iframe){background:var(--ui-bg);color:var(--ui-muted)}
html[data-theme] body :is(.desktop-context,.shell-panel){background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
html[data-theme] body .desktop-context button{color:var(--ui-text)}
html[data-theme] body :is(.desktop-context button:hover,.shell-panel button:hover){background:var(--ui-hover);color:var(--ui-text)}
html[data-theme] body .desktop-context .os-icon{color:var(--ui-muted)}
html[data-theme] body #desktop-taskbar{background:var(--ui-dock);border-color:var(--ui-dock-line);box-shadow:var(--ui-shadow)}
html[data-theme] body #desktop-taskbar button{color:var(--ui-text)}
html[data-theme] body #desktop-taskbar :is(button:hover,.running.active,.dock-launcher[aria-expanded=true]){background:var(--ui-hover)}
html[data-theme] body #desktop-taskbar .running:after{background:var(--ui-quiet)}
html[data-theme] body #desktop-taskbar .running.active:after{background:var(--ui-accent)}
html[data-theme] body .dock-divider{background:var(--ui-line)}
html[data-theme] body .activities-overview{background:var(--ui-overlay)}
html[data-theme] body :is(.overview-search,.overview-tabs,.application-filters button,.workspace-card,.activity-window,.activity-move){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.overview-search input,.overview-search .os-icon,.shell-icon-button,.overview-tabs button,.application-filters button,.gnome-app,.workspace-card strong,.overview-empty h2){color:var(--ui-text)}
html[data-theme] body :is(.workspace-card small,.overview-footer,.overview-empty p,.activity-preview>span,.gnome-app small){color:var(--ui-muted)}
html[data-theme] body :is(.overview-tabs button.selected,.application-filters button.selected,.workspace-card.selected){background:var(--ui-selected);color:var(--ui-selected-text);border-color:var(--ui-accent)}
html[data-theme] body .workspace-miniature{background:var(--ui-soft);border-color:var(--ui-line)}
html[data-theme] body .workspace-miniature i{background:var(--ui-selected);border-color:var(--ui-line)}
html[data-theme] body .activity-preview{background:var(--ui-bg);color:var(--ui-text)}
html[data-theme] body .activity-caption{background:var(--ui-header);color:var(--ui-text)}
html[data-theme] body .draft-badge{background:var(--ui-warning-bg);color:var(--ui-warning)}
html[data-theme] body .gnome-app:hover{background:var(--ui-hover);border-color:var(--ui-line)}
html[data-theme] body :is(.calendar-today,.calendar-heading,.notification-side>header,.quick-heading,.quick-grid strong,.quick-links button,.quick-power button){color:var(--ui-text)}
html[data-theme] body :is(.calendar-today small,.calendar-grid .weekday,.notification-item time,.notification-item small,.quick-heading small,.quick-grid small,.quick-status,.shell-quiet){color:var(--ui-muted)}
html[data-theme] body :is(.calendar-side,.notification-side>header,.quick-status,.quick-power,.notification-item,.desktop-context hr){border-color:var(--ui-line)}
html[data-theme] body :is(.calendar-grid .today,.calendar-grid button.today){background:var(--ui-accent);color:var(--ui-on-accent)}
html[data-theme] body .calendar-grid .outside{color:var(--ui-quiet);opacity:.65}
html[data-theme] body .power-menu .quick-grid button{background:var(--ui-soft);color:var(--ui-text);border-color:transparent}
html[data-theme] body .power-menu .quick-grid button[aria-pressed=true]{background:var(--ui-selected);border-color:var(--ui-accent)}
html[data-theme] body .quick-grid .os-icon{color:var(--ui-accent)}
html[data-theme] body .quick-theme{padding:13px 0 0}
html[data-theme] body .quick-theme button{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid var(--ui-line);border-radius:11px;background:var(--ui-soft);font-size:12px;font-weight:550}
html[data-theme] body .quick-theme .os-icon{width:18px;height:18px}
.theme-toggle-track{margin-left:auto;width:32px;height:19px;border-radius:20px;background:var(--ui-quiet);padding:3px;display:flex;align-items:center}
.theme-toggle-track:after{content:"";width:13px;height:13px;border-radius:50%;background:#fff}
[data-theme-toggle][aria-pressed=true] .theme-toggle-track{background:var(--ui-accent);justify-content:flex-end}
/* Appearance controls are usable with keyboard and remain available in either theme. */
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:19px}
html[data-theme] body button.theme-choice{min-width:0;display:flex;align-items:stretch;flex-direction:column;padding:10px;text-align:left;gap:5px;background:var(--ui-surface);border:2px solid var(--ui-line);border-radius:13px;color:var(--ui-text)}
html[data-theme] body.web-app button.theme-choice[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-selected)}
.theme-choice strong{font-size:12px;margin:5px 2px 0}.theme-choice small{font-size:10px;color:var(--ui-muted);margin:0 2px 3px}
.theme-preview{position:relative;display:flex;flex-direction:column;gap:5px;padding:22px 12px 12px 34px;border:1px solid #0002;border-radius:7px;min-height:85px;background:#fafafa}
.theme-preview:before{content:"";position:absolute;top:0;left:0;right:0;height:13px;border-radius:6px 6px 0 0;background:#e6e6e6}
.theme-preview:after{content:"";position:absolute;top:13px;left:0;bottom:0;width:23px;background:#e6e6e6}
.theme-preview i{height:8px;background:#e6e6e6;border-radius:3px}.theme-preview i:last-child{width:65%}
.theme-preview.dark{background:#303030}.theme-preview.dark:before,.theme-preview.dark:after,.theme-preview.dark i{background:#474747}
.theme-preview.system{background:linear-gradient(90deg,#fafafa 50%,#303030 50%)}.theme-preview.system i,.theme-preview.system:before{background:linear-gradient(90deg,#e6e6e6 50%,#474747 50%)}
/* Login follows the chosen appearance before the first frame is drawn. */
html[data-theme] body .login-topbar{background:var(--ui-header);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body .login-card{background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line);box-shadow:var(--ui-shadow)}
html[data-theme] body :is(.login-description,.login-eyebrow,.login-recovery,.private-session,.password-hint){color:var(--ui-muted)}
html[data-theme] body :is(.login-footer,.login-caption){color:#f4f4f4;text-shadow:0 1px 4px #0008}
html[data-theme] body .password-field button{color:var(--ui-muted);background:transparent}
html[data-theme] body .login-brand{color:var(--ui-text)}
html[data-theme] body .login-wallpaper{background:linear-gradient(#0002,#0004),url(wallpaper.svg) center/cover no-repeat}
/* Animate a short color change only on user/system changes, never while idle. */
@media(prefers-reduced-motion:no-preference){
 html.theme-changing,html.theme-changing body,html.theme-changing :is(.shell-panel,.desktop-menubar,.desktop-taskbar,.window-titlebar,.web-card,.panel,.server-card,.side-nav,.file-nav,.rail,.topbar,.file-top,.file-table-head,.file-footer,.login-card,.login-topbar,.theme-choice,button,input,textarea,select,th,td){
  transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
 }
}
@media(max-width:520px){.theme-choices{gap:7px}.theme-preview{padding:22px 8px 10px 24px;min-height:70px}.theme-preview:after{width:17px}.theme-choice small{font-size:9px}.theme-choice strong{font-size:11px}html[data-theme] body button.theme-choice{padding:7px}}
/* Navigation and file rows remain flat, rather than inheriting action-button fills. */
html[data-theme] body .file-body{background:var(--ui-surface)}
html[data-theme] body.web-app :is(.side-nav button,.file-main .file-item,.file-breadcrumb button,.file-nav>button){background:transparent;border-color:transparent;color:var(--ui-text);font-weight:400}
html[data-theme] body.web-app :is(.side-nav button:hover,.file-main .file-item:hover,.file-breadcrumb button:hover,.file-nav>button:hover){background:var(--ui-hover)}
html[data-theme] body.web-app :is(.side-nav button.active,.file-main .file-item.selected){background:var(--ui-selected);color:var(--ui-selected-text)}
html[data-theme] body .side-nav h3{color:var(--ui-muted)}
html[data-theme] body .desktop-window:not(.is-focused) .window-titlebar{background:var(--ui-header);color:var(--ui-quiet)}
html[data-theme] body .desktop-window:not(.is-focused) .window-caption{color:var(--ui-quiet)}
html[data-theme] body .activity-preview:before{background:transparent}
html[data-theme] body .activity-preview>.app-art{background:var(--ui-selected)!important;color:var(--ui-accent);border-color:var(--ui-line)}
html[data-theme] body .activity-close{background:var(--ui-soft);color:var(--ui-text)}
html[data-theme] body :is(.archive-search-card,.archive-state){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(#archive-search-query,#release-code input,.archive-verify input){background:var(--ui-field);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.archive-tabs button[aria-selected=true],.archive-state[data-state=downloading]){background:var(--ui-selected);color:var(--ui-selected-text)}
html[data-theme] body :is(.archive-storage-warning,.archive-state[data-state=pc_offline],.archive-state[data-state=source_error],.archive-state[data-state=needs_verification],.archive-state[data-state=waiting_source]){background:var(--ui-warning-bg);color:var(--ui-warning);border-color:var(--ui-warning)}
html[data-theme] body :is(.archive-storage-bar,.archive-row-progress progress){background:var(--ui-soft);border-color:var(--ui-line)}
html[data-theme] body .archive-storage-bar>span{background:var(--ui-accent)}
html[data-theme] body .archive-row-progress progress::-webkit-progress-bar{background:var(--ui-soft)}
html[data-theme] body .archive-row-progress progress::-webkit-progress-value{background:var(--ui-accent)}
html[data-theme] body .archive-row-progress progress::-moz-progress-bar{background:var(--ui-accent)}
html[data-theme] body.game-embedded .server-card{padding:18px}
html[data-theme] body.game-embedded .server-card-top{margin-bottom:20px}
html[data-theme] body.game-embedded .server-description{min-height:40px;margin-bottom:16px}
html[data-theme] body.game-embedded .server-card-facts div{padding:10px 0}
html[data-theme] body.game-embedded .server-operation{min-height:10px;margin:9px 0}
html[data-theme] body .cloud-central .primary{background:var(--ui-accent);color:var(--ui-on-accent);border-color:transparent}
html[data-theme] body .cloud-central .cloud-tabs button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-selected-text);border-color:var(--ui-accent)}
html[data-theme] body .cloud-central h1{font-size:25px;letter-spacing:-.6px;font-weight:650}
.login-theme-tools{display:flex;align-items:center;gap:17px}
html[data-theme] body button.login-theme-toggle{display:flex;align-items:center;gap:7px;min-height:32px;padding:5px 9px;background:var(--ui-soft);color:var(--ui-text);border:1px solid var(--ui-line);border-radius:8px;font-size:11px}
.login-theme-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:520px){.login-theme-toggle span{display:none}.login-theme-tools{gap:0}}
html[data-theme] body :is(.host-banner,.host-card,.overview-meta){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] body :is(.host-name p,.live-metrics span,.live-metrics small,.live-foot,.device-detail-row dt){color:var(--ui-muted)}
html[data-theme] body .host-banner .button.primary{background:var(--ui-accent);color:var(--ui-on-accent);border-color:transparent}
html[data-theme] body .os-project-card .tag{display:inline-flex;padding:4px 8px;border-radius:8px;margin-right:9px;font-size:10px}
