/*
SPDX-FileCopyrightText: 2026 晨钟酱Official
SPDX-License-Identifier: GPL-3.0-only
See LICENSE for the full license text.
*/

/* Shared materials. Classic palettes use these defaults and their saved accent. */
:root {
  --surface-alt: #f8f9fd;
  --header-bg: #ffffffed;
  --brand-contrast: #fff;
  --control-bg: #fafbfe;
  --control-border: #dfe3ee;
  --control-radius: 9px;
  --quiet: #eff1f6;
  --soft-text: #6c7890;
  --placeholder: #8d96aa;
  --button-shadow: 0 3px 8px #24324a10;
  --secondary-shadow: none;
  --field-shadow: none;
  --hover-shadow: 0 4px 12px #24324a18;
  --danger-bg: #bd4545;
  --danger-hover: #a53737;
  --error: #ba4040;
  --warning: #97631d;
  --success: #25845e;
  --phone-bg: linear-gradient(160deg,#f8f9ff,#e7ecfc);
  --phone-frame: #35415e;
  --illustration-glow: #dce3ff85;
  --terminal-bg: #111e27;
  --terminal-ink: #deebf0;
  --terminal-muted: #a2b2c4;
  --terminal-accent: #a5b4fc;
  --terminal-selection: #4657be88;
  --scrollbar: #c4cbda;
}

/* Cyber: dark grid, cyan signal, square geometry and neon edges. */
:root[data-theme="cyber"] {
  --brand: #58f4e1;
  --brand-dark: #a4fff0;
  --brand-soft: #133b3e;
  --brand-contrast: #06171b;
  --bg: #090e18;
  --surface: #101a29;
  --surface-alt: #0b1421;
  --header-bg: #0b1222f2;
  --ink: #e5f3fb;
  --muted: #9cacc3;
  --soft-text: #adbed1;
  --line: #283a50;
  --control-bg: #091321;
  --control-border: #344d62;
  --quiet: #172638;
  --placeholder: #8c9eb8;
  --radius: 5px;
  --control-radius: 4px;
  --shadow: 0 0 0 1px #58f4e107, 0 12px 30px #0003;
  --button-shadow: 0 0 18px #58f4e125;
  --hover-shadow: 0 0 24px #58f4e147;
  --error: #ff939b;
  --warning: #f6d38a;
  --success: #7af5b9;
  --danger-bg: #9f3150;
  --danger-hover: #bd3f62;
  --phone-bg: linear-gradient(160deg,#12353f,#111d30 70%);
  --phone-frame: #5bf3e1;
  --illustration-glow: #08dabd19;
  --terminal-bg: #050c16;
  --terminal-ink: #b6fff0;
  --terminal-muted: #90a9be;
  --terminal-accent: #f09cff;
  --terminal-selection: #287d8588;
  --scrollbar: #345168;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
}

/* Fresh: soft paper, mint green, peach accents and botanical curves. */
:root[data-theme="fresh"] {
  --brand: #307858;
  --brand-dark: #225e44;
  --brand-soft: #e2f0df;
  --bg: #f7f9f0;
  --surface: #fffff9;
  --surface-alt: #eff5e9;
  --header-bg: #fffff4eb;
  --ink: #2b493c;
  --muted: #687c68;
  --soft-text: #60765f;
  --line: #dce5d3;
  --control-bg: #f6f9f0;
  --control-border: #cadbc1;
  --quiet: #eaf1e3;
  --placeholder: #7a8b73;
  --radius: 24px;
  --control-radius: 14px;
  --shadow: 0 6px 24px #42623508;
  --button-shadow: 0 5px 12px #3f785521;
  --hover-shadow: 0 6px 16px #3f78552d;
  --phone-bg: linear-gradient(150deg,#fbfbe6,#d6eacb);
  --phone-frame: #5d8164;
  --illustration-glow: #d8e8ad65;
  --terminal-bg: #233d32;
  --terminal-ink: #e3f0da;
  --terminal-muted: #b2c6ac;
  --terminal-accent: #f3cea9;
  --terminal-selection: #50795d99;
  --scrollbar: #bacdb1;
}

/* Apple-inspired: neutral silver, translucent layers and restrained blue. */
:root[data-theme="apple"] {
  --brand: #0071e3;
  --brand-dark: #005fbe;
  --brand-soft: #e4effd;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --header-bg: #fafafae0;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft-text: #626267;
  --line: #e4e4e8;
  --control-bg: #fbfbfd;
  --control-border: #d2d2d7;
  --quiet: #eeeef0;
  --placeholder: #828288;
  --radius: 22px;
  --control-radius: 12px;
  --shadow: 0 6px 24px #00000004;
  --button-shadow: none;
  --hover-shadow: 0 4px 14px #0071e31a;
  --phone-bg: linear-gradient(145deg,#ffffff,#e8edf5 60%,#dce4f2);
  --phone-frame: #7c828b;
  --illustration-glow: #dbe7fc60;
  --terminal-bg: #202124;
  --terminal-ink: #f0f1f3;
  --terminal-muted: #adb3bf;
  --terminal-accent: #70baff;
  --terminal-selection: #3468a688;
  --scrollbar: #c1c1c6;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", sans-serif;
}

/* Skeuomorphic: warm paper, stitched leather, brass and pressed controls. */
:root[data-theme="skeuo"] {
  --brand: #80522f;
  --brand-dark: #644024;
  --brand-soft: #ebddc5;
  --bg: #e9e1d3;
  --surface: #faf5e9;
  --surface-alt: #eee5d4;
  --header-bg: #f0e7d8;
  --ink: #48392b;
  --muted: #7d6c57;
  --soft-text: #77634b;
  --line: #d1c1a8;
  --control-bg: #f3ebdc;
  --control-border: #c5b396;
  --quiet: #e4d8c4;
  --placeholder: #88765d;
  --radius: 12px;
  --control-radius: 7px;
  --shadow: inset 0 1px 0 #fff9, 0 3px 0 #d2c3ab, 0 7px 15px #60472b12;
  --button-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #53361f, 0 5px 8px #63442622;
  --secondary-shadow: inset 0 1px 0 #fff, 0 2px 0 #bfad90, 0 4px 7px #63442612;
  --field-shadow: inset 0 2px 4px #70533120, 0 1px 0 #fff9;
  --hover-shadow: inset 0 1px 0 #ffffff40, 0 3px 0 #53361f, 0 6px 12px #63442630;
  --phone-bg: linear-gradient(145deg,#f9efdc,#dac6a1);
  --phone-frame: #84715a;
  --illustration-glow: #d9c9a880;
  --terminal-bg: #322c23;
  --terminal-ink: #efe2bc;
  --terminal-muted: #bfb08e;
  --terminal-accent: #e8c88d;
  --terminal-selection: #8f774c88;
  --scrollbar: #b6a485;
}

/* Every screen uses the same semantic materials, including dialogs and forms. */
body { background: var(--bg); color: var(--ink); }
.topbar { background: var(--header-bg); }
.sidebar { background: var(--surface); scrollbar-color: var(--scrollbar) transparent; }
html::-webkit-scrollbar-thumb { background: var(--scrollbar); }
.card, .connection-guide, dialog { background: var(--surface); border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn, .connection-entry .connect-button { color: var(--brand-contrast); border-radius: var(--control-radius); box-shadow: var(--button-shadow); }
.btn:hover:not(:disabled), .connection-entry .connect-button:hover:not(:disabled) { box-shadow: var(--hover-shadow); }
.btn.secondary, .topbar .btn, .tab-pills button { background: var(--surface); color: var(--ink); border-color: var(--control-border); box-shadow: var(--secondary-shadow); border-radius: var(--control-radius); }
.btn.secondary:hover:not(:disabled), .topbar .btn:hover:not(:disabled), .tab-pills button.active { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); box-shadow: var(--secondary-shadow); }
.btn.danger { background: var(--danger-bg); color: #fff; }
.btn.danger:hover:not(:disabled) { background: var(--danger-hover); }
.btn.quiet { background: var(--quiet); color: var(--muted); box-shadow: none; }
.brand-mark, .phone-emblem { color: var(--brand-contrast); box-shadow: var(--button-shadow); }
.brand-edition, .browser-note, .badge { background: var(--surface-alt); border-color: var(--line); color: var(--brand); }
.brand-edition { color: var(--soft-text); }
.nav button, .welcome-links a, .sidebar-foot a, .welcome-footer a { color: var(--soft-text); }
.nav button:hover, .icon-button:hover { background: var(--surface-alt); }
.nav button.active { color: var(--brand-dark); background: var(--brand-soft); border-radius: var(--control-radius); }
.nav-caption, .sidebar-version, .eyebrow, .welcome-benefits, .welcome-footer, .feature-item p, .art-caption, .section-kicker { color: var(--muted); }
.welcome-description, .guide-link, .connection-steps p, .connection-help, .connection-help p, .connection-help summary > span, .feature-item h3 { color: var(--soft-text); }
.connection-steps li + li, .connection-help, .welcome-footer, .info-wide, .focus-box, .card-heading { border-color: var(--line); }
.entry-status.error, .connection-status.error { color: var(--error); }
.entry-status.pending { color: var(--warning); }
.dot.ok, .connection-status.ok::before { background: var(--success); }
.footer-dot { color: var(--muted); }
.cpu-grid, .focus-box, .stats-output, .script-list, .battery-summary, .download-item, .modal-footer, .inline-note { background: var(--surface-alt); border-color: var(--line); }
.inline-note { color: var(--soft-text); border-left-color: var(--brand); }
.feature-icon, .step-number { background: var(--brand-soft); color: var(--brand); }
.feature-icon { border-radius: var(--control-radius); }
input:not([type=checkbox]):not([type=range]), select, textarea { background: var(--control-bg); border-color: var(--control-border); color: var(--ink); border-radius: var(--control-radius); box-shadow: var(--field-shadow); }
input:focus, textarea:focus, select:focus { background: var(--surface); border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.switch input { background: var(--control-border); }
.switch input:checked { background: var(--brand); }
.switch input:checked::before { background: var(--brand-contrast); }
.device-art::before { background: radial-gradient(ellipse at center,var(--illustration-glow),transparent 68%); }
.orbit { border-color: var(--line); }
.orbit-point { background: var(--brand); border-color: var(--bg); }
.phone { background: var(--phone-bg); border-color: var(--phone-frame); }
.phone-camera { background: var(--phone-frame); }
.phone-home { background: var(--phone-frame); opacity: .5; }
.phone-status, .phone-subtitle { color: var(--soft-text); }
.phone-heading { color: var(--ink); }
.phone-tools span { background: var(--surface); border-color: var(--line); color: var(--brand); }
.floating-tag { background: var(--surface); border-color: var(--line); color: var(--soft-text); }
.code-card { background: var(--terminal-bg); color: var(--terminal-ink); border-color: var(--control-border); }
.code-card-heading, .code-comment { color: var(--terminal-muted); }
.code-line > span { color: var(--terminal-accent); }
.code-cursor { background: var(--terminal-accent); }
.terminal-surface { background: var(--terminal-bg); color: var(--terminal-ink); }
.eyebrow > #theme-eyebrow { width: auto; height: auto; background: none; border-radius: 0; }

/* Distinct silhouettes and finishes, beyond changing the accent color. */
[data-theme="cyber"] body { background-image: linear-gradient(#58f4e106 1px,transparent 1px),linear-gradient(90deg,#58f4e106 1px,transparent 1px); background-size: 40px 40px; }
[data-theme="cyber"] .topbar { border-bottom-color: #58f4e14a; }
[data-theme="cyber"] .brand-mark { border-radius: 3px; }
[data-theme="cyber"] .welcome-copy h2 { letter-spacing: -2px; text-shadow: 3px 2px 0 #d665fa24; }
[data-theme="cyber"] .welcome-copy h2 em { text-shadow: 0 0 25px #58f4e124; }
[data-theme="cyber"] .eyebrow { color: #df9bf5; letter-spacing: 1.5px; }
[data-theme="cyber"] .connection-guide { border-top: 2px solid var(--brand); }
[data-theme="cyber"] .card-heading, [data-theme="cyber"] .connection-help { border-style: dashed; border-width: 0 0 1px; }
[data-theme="cyber"] .connection-help { border-width: 1px 0 0; }
[data-theme="cyber"] .connect-button { border-radius: 2px; border-right: 5px solid #c181ed; }
[data-theme="cyber"] .orbit-outer { border-style: dashed; }
[data-theme="cyber"] .orbit-inner { border-style: solid; border-color: #b176dc40; }
[data-theme="cyber"] .phone { border-width: 2px; border-radius: 16px; box-shadow: 0 0 0 4px #58f4e10b, 0 0 40px #58f4e115; transform: rotate(6deg); }
[data-theme="cyber"] .phone-emblem { border-radius: 7px; background: transparent; border: 1px solid var(--brand); color: var(--brand); }
[data-theme="cyber"] .code-card { border-radius: 4px; box-shadow: -4px 4px 0 #a867d72b; }
[data-theme="cyber"] .step-number, [data-theme="cyber"] .feature-icon, [data-theme="cyber"] .floating-tag { border: 1px solid var(--control-border); border-radius: 3px; }
[data-theme="cyber"] .toast { background: #163b40; color: #defff9; border: 1px solid #4aa89e; }
[data-theme="cyber"] .toast.error { background: #59283b; color: #fff0f4; border-color: #a65b73; }
[data-theme="fresh"] body { background-image: radial-gradient(ellipse at 100% 0,#f7e8d373,transparent 45%),radial-gradient(ellipse at 0 70%,#e0edd65c,transparent 45%); }
[data-theme="fresh"] .brand-mark { border-radius: 14px 14px 14px 5px; }
[data-theme="fresh"] .connection-guide { border-radius: 26px 26px 26px 8px; }
[data-theme="fresh"] .welcome-copy h2 { letter-spacing: -.8px; }
[data-theme="fresh"] .connect-button { border-radius: 28px; }
[data-theme="fresh"] .device-art::before { border-radius: 48% 52% 65% 35%; background: #e2ebcf87; inset: 12px 13%; transform: rotate(-12deg); }
[data-theme="fresh"] .orbit-outer { border-radius: 47% 53% 38% 62%; border-color: #c4d6b7; transform: rotate(20deg); }
[data-theme="fresh"] .orbit-inner { border-color: #dbbc945e; }
[data-theme="fresh"] .phone { border-radius: 32px; transform: rotate(7deg); box-shadow: 8px 12px 0 #bbceb12e, 8px 20px 32px #44633d14; }
[data-theme="fresh"] .phone-emblem { border-radius: 20px 20px 20px 6px; }
[data-theme="fresh"] .floating-tag { border-radius: 22px; }
[data-theme="fresh"] .feature-item:nth-child(even) .feature-icon { background: #f1e4d3; color: #946e48; }
[data-theme="fresh"] .code-card { border-radius: 16px; }
[data-theme="apple"] .topbar { backdrop-filter: saturate(180%) blur(22px); }
[data-theme="apple"] .brand-mark { background: #27272a; border-radius: 12px; box-shadow: inset 0 1px 0 #ffffff50,0 3px 8px #00000012; }
[data-theme="apple"] .brand-edition { border-radius: 20px; }
[data-theme="apple"] .welcome-copy h2 { font-weight: 700; letter-spacing: -1.8px; }
[data-theme="apple"] .connect-button { border-radius: 28px; }
[data-theme="apple"] .phone { border-width: 5px; border-radius: 29px; box-shadow: 0 0 0 1px #ffffff, 0 0 0 2px #c1c5cc,10px 22px 38px #3f496d24; transform: rotate(6deg); }
[data-theme="apple"] .phone-emblem { background: linear-gradient(145deg,#56aeff,#0871e6); border-radius: 17px; box-shadow: inset 0 1px 0 #ffffff70,0 5px 14px #0071e31a; }
[data-theme="apple"] .floating-tag { background: #ffffffb8; backdrop-filter: blur(12px); box-shadow: 0 4px 18px #00000008; }
[data-theme="apple"] .code-card { border-radius: 14px; background: #202124ed; backdrop-filter: blur(14px); border-color: #ffffff30; }
[data-theme="apple"] .feature-icon { background: #e9e9ee; color: #6e6e73; }
[data-theme="skeuo"] body { background-image: repeating-linear-gradient(0deg,#71563104 0px,#71563104 1px,transparent 1px,transparent 4px),linear-gradient(105deg,#f2ecdf80,transparent 60%); }
[data-theme="skeuo"] .topbar { background-image: linear-gradient(#fff8,transparent),repeating-linear-gradient(90deg,#705a3605 0,#705a3605 1px,transparent 1px,transparent 4px); box-shadow: 0 2px 5px #4c351821; border-bottom: 1px solid #baaa8e; }
[data-theme="skeuo"] .brand-mark { background: linear-gradient(#a97e53,#795333); border: 1px solid #705031; box-shadow: inset 0 1px 2px #fff6,0 2px 0 #5f432c,0 4px 7px #5b422729; text-shadow: 0 1px 0 #0006; }
[data-theme="skeuo"] .sidebar { background-image: repeating-linear-gradient(0deg,#7b653504 0,#7b653504 1px,transparent 1px,transparent 3px); border-right-color: #c0b196; }
[data-theme="skeuo"] .welcome-copy h2, [data-theme="skeuo"] .page-title h2 { font-family: Georgia,"Noto Serif SC","SimSun",serif; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 0 #fff; }
[data-theme="skeuo"] .card, [data-theme="skeuo"] .connection-guide { background-image: repeating-linear-gradient(0deg,#91723b04 0,#91723b04 1px,transparent 1px,transparent 3px); }
[data-theme="skeuo"] .connection-guide { border: 1px solid #bba788; outline: 1px dashed #caba9b; outline-offset: -7px; }
[data-theme="skeuo"] .btn:not(.secondary):not(.quiet):not(.danger), [data-theme="skeuo"] .connect-button { background-image: linear-gradient(#ffffff25,transparent 50%,#00000012); border: 1px solid #684528; text-shadow: 0 -1px 0 #0004; }
[data-theme="skeuo"] .btn.secondary, [data-theme="skeuo"] .topbar .btn { background-image: linear-gradient(#fff9,transparent); text-shadow: 0 1px 0 #fff; }
[data-theme="skeuo"] .btn:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 4px #33241336; }
[data-theme="skeuo"] .nav button.active { box-shadow: inset 0 1px 4px #65502d26,0 1px 0 #fff9; }
[data-theme="skeuo"] .switch input { box-shadow: inset 0 2px 4px #0003,0 1px 0 #fff; }
[data-theme="skeuo"] .switch input::before { background: linear-gradient(#fff,#e2d9c7); box-shadow: 0 1px 3px #0005; }
[data-theme="skeuo"] .phone { background-image: repeating-linear-gradient(0deg,#85735208 0,#85735208 1px,transparent 1px,transparent 3px),var(--phone-bg); border: 6px solid #8c7a63; box-shadow: inset 0 0 0 1px #fff9,0 0 0 1px #6b5944,2px 3px 0 #b7a78b,12px 20px 28px #4e392d2e; border-radius: 22px; }
[data-theme="skeuo"] .phone-emblem { background: linear-gradient(#b48a59,#7b5230); border: 1px solid #694729; box-shadow: inset 0 1px 1px #fff9,0 3px 0 #6a492d,0 5px 8px #67462b33; border-radius: 12px; }
[data-theme="skeuo"] .phone-tools span { background: linear-gradient(#fff9,#e4d6bd); box-shadow: inset 0 1px 0 #fff,0 2px 1px #8e795344; }
[data-theme="skeuo"] .floating-tag { background: linear-gradient(#fff9,#eee3ce); border-color: #cbb999; box-shadow: 0 2px 2px #79604322; }
[data-theme="skeuo"] .code-card { background-image: repeating-linear-gradient(0deg,#0002 0,#0002 1px,transparent 1px,transparent 3px); border: 4px solid #795d40; outline: 1px dashed #b7966b; outline-offset: -7px; border-radius: 8px; box-shadow: 0 2px 0 #4c3827,0 9px 16px #523b292b; }
[data-theme="skeuo"] .feature-icon, [data-theme="skeuo"] .step-number { background: linear-gradient(#fff9,#e5d7bd); border: 1px solid #d0bd9b; box-shadow: inset 0 1px 0 #fff,0 2px 2px #60492c16; }
[data-theme="skeuo"] .orbit { border-color: #c5b28e; }

/* Theme picker: available before and after a USB connection. */
.header-controls { display: flex; align-items: center; gap: 20px; margin-left: auto; min-width: 0; }
.header-controls .top-actions { margin-left: 0; }
.topbar .theme-toggle { gap: 7px; min-height: 36px; font-size: 12px; }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-picker-intro { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.modal-body:has(.theme-choices) { max-height: calc(var(--app-height) - 180px); scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
.theme-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.theme-choice { display: block; min-width: 0; text-align: left; border: 2px solid var(--line); padding: 5px; border-radius: 13px; color: var(--ink); background: var(--surface); }
.theme-choice:hover { border-color: var(--brand); }
.theme-choice[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.theme-choice-info { display: block; padding: 11px 8px 7px; }
.theme-choice-title { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 650; }
.theme-choice-check { color: var(--brand); visibility: hidden; font-size: 15px; }
.theme-choice[aria-pressed="true"] .theme-choice-check { visibility: visible; }
.theme-choice-subtitle { display: block; font-size: 11px; color: var(--soft-text); margin-top: 2px; }
.theme-choice-description { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.theme-preview { height: 124px; overflow: hidden; display: grid; grid-template-columns: 26% 1fr; grid-template-rows: 20px 1fr; border-radius: 8px; background: var(--preview-bg); color: var(--preview-ink); font-family: "Segoe UI",sans-serif; }
.preview-top { grid-column: 1/-1; display: flex; align-items: center; gap: 4px; background: var(--preview-surface); border-bottom: 1px solid var(--preview-line); padding-left: 8px; }
.preview-top > i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--preview-ink); opacity: .4; }
.preview-side { background: var(--preview-surface); border-right: 1px solid var(--preview-line); display: flex; flex-direction: column; padding: 14px 7px; gap: 9px; }
.preview-side > i { display: block; height: 5px; background: var(--preview-line); border-radius: 3px; }
.preview-side > i:first-child { background: var(--preview-accent); }
.preview-content { display: grid; grid-template-columns: 1fr 1fr; align-content: start; padding: 11px 12px; gap: 8px; }
.preview-title { font-size: 21px; font-weight: 650; line-height: 1; letter-spacing: -1px; }
.preview-lines { display: grid; gap: 5px; align-content: center; }
.preview-lines i { height: 3px; background: var(--preview-line); }
.preview-lines i:last-child { width: 70%; }
.preview-tiles { display: flex; grid-column: 1/-1; gap: 8px; }
.preview-tiles i { flex: 1; height: 24px; border-radius: 4px; background: var(--preview-surface); border: 1px solid var(--preview-line); }
.preview-button { width: 40px; height: 10px; border-radius: 4px; background: var(--preview-accent); }
.preview-cyber { --preview-bg:#090e18;--preview-surface:#101d2d;--preview-line:#2d465b;--preview-ink:#c2fff3;--preview-accent:#58f4e1; background-image: linear-gradient(#58f4e10c 1px,transparent 1px),linear-gradient(90deg,#58f4e10c 1px,transparent 1px); background-size: 12px 12px; border-radius: 3px; }
.preview-cyber .preview-title { font-family: Consolas,monospace; text-shadow: 1px 1px 0 #f09cff; }
.preview-cyber .preview-button { border-radius: 0; box-shadow: 0 0 9px #58f4e155; }
.preview-fresh { --preview-bg:#f0f5e5;--preview-surface:#fcfff4;--preview-line:#d7e4c8;--preview-ink:#386247;--preview-accent:#52896b; border-radius: 12px 12px 12px 4px; }
.preview-fresh .preview-tiles i:last-child { background: #f5e8d6; border-color:#eadac5; }
.preview-fresh .preview-button { border-radius: 12px; }
.preview-apple { --preview-bg:#f2f2f5;--preview-surface:#fff;--preview-line:#e0e1e6;--preview-ink:#25262b;--preview-accent:#0071e3; }
.preview-apple .preview-button { border-radius: 8px; }
.preview-apple .preview-tiles i { box-shadow: 0 2px 5px #00000005; }
.preview-skeuo { --preview-bg:#e9dfce;--preview-surface:#f9f1e1;--preview-line:#cebd9f;--preview-ink:#634b32;--preview-accent:#926a40; background-image: repeating-linear-gradient(0deg,#6b4f2d08 0,#6b4f2d08 1px,transparent 1px,transparent 3px); }
.preview-skeuo .preview-title { font-family: Georgia,serif; text-shadow: 0 1px 0 #fff; }
.preview-skeuo .preview-top { background: linear-gradient(#f9efdc,#e5d5ba); }
.preview-skeuo .preview-button { border-radius: 2px; background: linear-gradient(#b9915e,#81532f); box-shadow: inset 0 1px 0 #fff7,0 2px 0 #54371c; }
.preview-skeuo .preview-tiles i { box-shadow: 0 2px 0 #c6b396,inset 0 1px 0 #fff; }
.classic-themes { margin-top: 21px; font-size: 12px; color: var(--muted); }
.classic-themes summary { cursor: pointer; }
.classic-theme-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.classic-theme { display: flex; align-items: center; gap: 6px; background: var(--surface-alt); color: var(--ink); border: 1px solid var(--line); padding: 7px 9px; border-radius: 6px; font-size: 11px; }
.classic-theme::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--swatch); }
.classic-theme[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.theme-picker-status { color: var(--soft-text); font-size: 11px; margin: 18px 0 0; }
@media (max-width: 780px) {
  .header-controls { gap: 12px; }
  .header-controls .welcome-links { display: none; }
  .card { border-radius: var(--radius); }
  .theme-choice-description { line-height: 1.7; }
}
@media (max-width: 540px) {
  .header-controls { gap: 8px; }
  body[data-connected="true"] .header-controls { width: 100%; justify-content: flex-end; }
  .theme-choices { gap: 10px; }
  .theme-choice { padding: 3px; }
  .theme-preview { height: 100px; grid-template-columns: 22% 1fr; }
  .preview-content { padding: 9px 7px; gap: 6px; }
  .preview-tiles { gap: 4px; }
  .preview-tiles i { height: 19px; }
  .theme-choice-info { padding: 8px 4px 5px; }
  .theme-choice-title { font-size: 13px; }
  .theme-choice-description { display: none; }
  .eyebrow { letter-spacing: 1px; font-size: 8px; }
  [data-theme="cyber"] .eyebrow { letter-spacing: .8px; }
  [data-theme="skeuo"] .welcome-copy h2 { font-size: 34px; }
  [data-theme="fresh"] .orbit-outer { transform: none; width: min(100%,290px); height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-theme="skeuo"] .btn:active:not(:disabled) { transform: none; }
}
