/* One palette across the musical workspace. Load after the route styles. */
:root,
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#111016; --ink:#f1edf7; --sub:#b9afc8; --muted:#a79bb8;
  --white:#1c1824; --line:#ffffff12; --purple:#bea3ff; --lilac:#b49af21c;
  --violet:#a68aff; --mint:#8cdbc9; --dark:#17121f;
  --surface:#1c1824; --surface-raised:#251e30; --surface-soft:#211b2b;
  --surface-hover:#b79ae817; --input:#17131e; --border:#3c324b;
  --accent:#ceb8ff; --accent-ink:#2b1945; --accent-strong:#ae8feb;
  --accent-soft:#b598f21c; --success:#8ed9ba; --success-soft:#74c5a21b;
  --warning:#e5bc75; --warning-soft:#e9b45f13; --danger:#f2a3aa; --danger-soft:#f28a9717;
  --gold:#e1bc79; --gold-soft:#e1bc7912; --gold-border:#8e754440;
  --rail:#15121c; --rail-text:#ada1c0; --page-glow:#54356926;
  --shadow:0 12px 32px #0000000d; --floating-shadow:0 24px 80px #0005;
  --chart-bg:#1b1723; --chart-row:#231e2d; --chart-grid:#3a3248;
  --chart-axis:#b1a6c2; --chart-active:#bfa6ff; --chart-phrase:#342a46;
  --chart-gold-label:#30200d; --chart-curve:#ae96ff;
  --login-text:#f2effa; --login-line:#70617f; --ribbon-opacity:1;
}
:root[data-theme="light"] {
  color-scheme:light;
  --bg:#f7f5fb; --ink:#30263e; --sub:#71647f; --muted:#766483;
  --white:#fff; --line:#e9e2ef; --purple:#7650b9; --lilac:#ede5f8;
  --violet:#8060cb; --mint:#3b9b84; --dark:#30263e;
  --surface:#fff; --surface-raised:#fff; --surface-soft:#f1ecf7;
  --surface-hover:#e8def58a; --input:#fbf9fe; --border:#ddd2e9;
  --accent:#7050a7; --accent-ink:#fff; --accent-strong:#593a90;
  --accent-soft:#eae1f7; --success:#35735c; --success-soft:#e7f3ec;
  --warning:#8b611f; --warning-soft:#fbf2df; --danger:#b14658; --danger-soft:#fbedef;
  --gold:#936a27; --gold-soft:#fcf7eb; --gold-border:#e9d8b6;
  --rail:#f0ebf6; --rail-text:#79668d; --page-glow:#d9c7ef4a;
  --shadow:0 9px 28px #5f3d8505; --floating-shadow:0 24px 80px #4b2c6420;
  --chart-bg:#fff; --chart-row:#f5f2f9; --chart-grid:#e9e2ef;
  --chart-axis:#796b89; --chart-active:#7054aa; --chart-phrase:#eee7f6;
  --chart-gold-label:#654616; --chart-curve:#7457cf;
  --login-text:#38284d; --login-line:#a899b6; --ribbon-opacity:.9;
}
html{background:var(--bg)}
html[data-theme] ::selection{background:var(--accent);color:var(--accent-ink)}
html[data-theme] body,html[data-theme] body[data-page="home"]{background:var(--bg);color:var(--ink)}
html[data-theme] .body-area,html[data-theme] body[data-page="home"] .body-area{background:radial-gradient(ellipse at 75% 0,var(--page-glow),transparent 62%),var(--bg)}
html[data-theme] .rail,html[data-theme] body[data-page="home"] .rail{background:var(--rail);border-right:1px solid var(--line)}
html[data-theme] .rail-brand{color:var(--ink)}
html[data-theme] .rail-logo{background:var(--accent-soft);box-shadow:none}
html[data-theme] .rail-logo .ico{color:var(--accent)}
html[data-theme] .rail-link,html[data-theme] body[data-page="home"] .rail-link{color:var(--rail-text)}
html[data-theme] .rail-link:hover,html[data-theme] body[data-page="home"] .rail-link:hover{background:var(--surface-hover);color:var(--ink)}
html[data-theme] .rail-link.active,html[data-theme] body[data-page="home"] .rail-link.active{background:var(--accent-soft);color:var(--accent)}
html[data-theme] .rail-link.active:before{background:var(--accent)}
html[data-theme] .rail-brand small,html[data-theme] .nav-caption,html[data-theme] body[data-page="home"] .rail-brand small,html[data-theme] body[data-page="home"] .nav-caption{color:var(--muted)}
html[data-theme] .rail-link small{color:var(--muted)}
html[data-theme] .topbar,html[data-theme] body[data-page="home"] .topbar{background:transparent;border-bottom-color:var(--line)}
html[data-theme] .breadcrumb,html[data-theme] body[data-page="home"] .breadcrumb{color:var(--muted)}
html[data-theme] .breadcrumb strong,html[data-theme] body[data-page="home"] .breadcrumb strong{color:var(--sub)}
html[data-theme] .breadcrumb b,html[data-theme] body[data-page="home"] .breadcrumb b{color:var(--muted);opacity:.55}
html[data-theme] .top-online,html[data-theme] body[data-page="home"] .top-online{color:var(--muted)}
html[data-theme] .page-heading h1{font-weight:550;letter-spacing:.015em}
html[data-theme] .page-heading p,html[data-theme] .page-heading .eyebrow,html[data-theme] .heading-count,html[data-theme] .back-link{color:var(--muted)}
html[data-theme] :is(.btn-secondary,.btn-small,.square-btn,.icon-close){background:var(--surface-soft);border-color:var(--border);color:var(--sub);box-shadow:none}
html[data-theme] .btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);box-shadow:0 7px 22px #9d72d611;font-weight:600}
html[data-theme] .btn-primary:hover{background:var(--accent-strong);border-color:var(--accent-strong)}
html[data-theme] :is(.btn-secondary,.btn-small,.square-btn,.icon-close):hover{background:var(--surface-hover);color:var(--ink)}
html[data-theme] .text-button,html[data-theme] .export-link{color:var(--purple)}
html[data-theme] .danger,html[data-theme] .error-text{color:var(--danger)!important}
html[data-theme] a:focus-visible,html[data-theme] button:focus-visible,html[data-theme] summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
html[data-theme] :is(input,textarea,select){accent-color:var(--accent-strong);caret-color:var(--ink)}
html[data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-theme] :is(.card,.session-bar,.saved-item,.library-item,.account-user,.practice-reference-details){background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
html[data-theme] :is(.reference-card,.live-pitch-panel){background:linear-gradient(130deg,var(--surface) 70%,var(--gold-soft));border-color:var(--line)}
html[data-theme] :is(.saved-item,.library-item){border-radius:18px}
html[data-theme] .saved-item:hover{background:var(--surface-soft);border-color:var(--border);box-shadow:none}
html[data-theme] .saved-main{padding:22px 24px;gap:18px}
html[data-theme] .saved-icon{background:var(--accent-soft);color:var(--accent);height:46px;width:46px;border-radius:14px}
html[data-theme] .saved-score .saved-icon{background:var(--gold-soft);color:var(--gold)}
html[data-theme] .saved-copy strong{font-size:16px;font-weight:500;color:var(--ink)}
html[data-theme] :is(.saved-copy small,.saved-arrow,.library-copy small,.page-search>span,.list-heading a,.list-heading>span){color:var(--muted)}
html[data-theme] .saved-actions{border-top-color:var(--line);padding:11px 24px}
html[data-theme] :is(.page-search label,.library-toolbar input,.score-filter select){background:var(--input);border-color:var(--border);color:var(--sub)}
html[data-theme] .page-search input{background:transparent;color:var(--ink)}
html[data-theme] :is(.page-search .ico,.library-symbol,.empty-icon){color:var(--accent)}
html[data-theme] :is(.library-symbol,.empty-icon){background:var(--accent-soft)}
html[data-theme] :is(.page-empty,.library-empty,.practice-empty,.source-empty,.image-empty){background:var(--surface-soft);border-color:var(--border);color:var(--muted)}
html[data-theme] :is(.page-empty strong,.library-empty strong,.practice-empty strong){color:var(--sub)}
html[data-theme] :is(.page-empty p,.library-empty p,.practice-empty p){color:var(--muted)}
html[data-theme] :is(.tab-buttons,.recording-scope a){background:var(--surface-soft);border-color:var(--border);color:var(--sub)}
html[data-theme] :is(.tab-buttons button.active,.recording-scope a.active){background:var(--accent-soft);border-color:var(--border);color:var(--accent);box-shadow:none}
html[data-theme] :is(.settings-surface label,.account-form label,.studio-dialog label,.practice-memo,.practice-controls label){color:var(--sub)}
html[data-theme] :is(.settings-surface input,.account-form input,.account-form select,.studio-dialog input:not([type=checkbox]),.studio-dialog select,.studio-dialog textarea,.reference-card input,.reference-card select,.practice-memo textarea,.remark-input,.table-controls select,.workbench-nav select,.phrase-workbench .align-inputs input,.live-correction select){background:var(--input);border-color:var(--border);color:var(--ink)}
html[data-theme] :is(.settings-surface input,.account-form input,.account-form select,.studio-dialog input,.studio-dialog select,.studio-dialog textarea,.reference-card input,.reference-card select):focus{border-color:var(--accent-strong);box-shadow:0 0 0 3px var(--accent-soft);outline:none}
html[data-theme] :is(.settings-aside h2,.settings-aside p,.settings-aside .eyebrow,.quiet,.field-help,.reference-head p,.reference-head h2 small,.account-privacy,.online-privacy,.account-user p,.dialog p,.storage-details,.import-key small,.upload-zone small,.json-import){color:var(--muted)}
html[data-theme] :is(.account-user h2 small,.settings-aside .text-button){color:var(--purple)}
html[data-theme] :is(.studio-dialog,.dialog,.busy-card){background:var(--surface-raised);color:var(--ink);border:1px solid var(--border);box-shadow:var(--floating-shadow)}
html[data-theme] .dialog textarea{background:var(--input);border-color:var(--border);color:var(--ink)}
html[data-theme] .studio-dialog::backdrop,html[data-theme] .modal-cover{background:#0c0915a6;backdrop-filter:blur(9px)}
html[data-theme] .busy-overlay{background:color-mix(in srgb,var(--bg) 92%,transparent)}
html[data-theme] :is(.spinner,.recognize-spinner){border-color:var(--border);border-top-color:var(--accent)}
html[data-theme] .upload-zone{background:var(--accent-soft);border-color:var(--accent-strong);color:var(--accent)!important}
.metadata-form{display:grid;gap:18px;margin-top:20px}
.metadata-form label{display:grid;gap:9px;min-width:0}
.metadata-form .reference-actions{margin-top:0}
.import-metadata{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:22px}
.score-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-theme] .crop-scroll{background:#fff}
html[data-theme] :is(.recognize-progress,.register-summary,.song-align-message,.song-compact-status,.transcript-line,.permission-note,.cloud-note){background:var(--accent-soft);border-color:var(--border);color:var(--sub)}
html[data-theme] :is(.recognize-progress strong,.register-summary strong,.register-summary span){color:var(--accent)}
html[data-theme] :is(.recognize-progress small,.register-summary small,.transcript-line span){color:var(--muted)}
html[data-theme] .transcript-line strong{color:var(--ink)}
html[data-theme] .transcript-line:hover{background:var(--surface-hover)}
html[data-theme] :is(.score-warnings,.register-status,.comparison-notice,.export-warning,.resume-banner){background:var(--warning-soft);border-color:var(--gold-border);color:var(--warning)}
html[data-theme] .pill,html[data-theme] .table-status.warn{background:var(--warning-soft);color:var(--warning)}
html[data-theme] :is(.pill.good,.table-status,.register-status.confirmed,.live-following.is-following){background:var(--success-soft);color:var(--success);border-color:transparent}
html[data-theme] .score-mark{background:var(--gold-soft);color:var(--gold)}
html[data-theme] :is(.alignment-box,.practice-controls,.storage-details,.all-phrase-results,.song-bottom,.song-difference,.live-correction,.live-pitch-footer,.home-footer,.song-more-help){border-color:var(--line)}
html[data-theme] :is(.ref-note,.pitch-sequence-note){background:var(--surface-soft);border-color:var(--border);box-shadow:none;color:var(--sub)}
html[data-theme] .ref-note .degree{color:var(--ink)}
html[data-theme] :is(.ref-note strong,.pitch-sequence-note strong,.pitch-sequence-word){color:var(--gold)}
html[data-theme] :is(.ref-note small,.pitch-sequence-note small){color:var(--muted)}
html[data-theme] :is(.ref-note:hover,.ref-note.sounding){background:var(--accent-soft);border-color:var(--accent)}
html[data-theme] .ref-note.uncertain{background:var(--warning-soft);border-color:var(--gold-border)}
html[data-theme] :is(.pitch-reference-sequence,.live-pitch-metrics .live-target){background:var(--gold-soft);border-color:var(--gold-border)}
html[data-theme] :is(.pitch-sequence-heading,.pitch-sequence-lyric){color:var(--gold)}
html[data-theme] :is(.pitch-sequence-heading span,.pitch-sequence-status){color:var(--muted)}
html[data-theme] .pitch-view-summary{color:var(--muted)}
html[data-theme] th{background:var(--surface-soft);color:var(--muted)}
html[data-theme] td{color:var(--sub);border-bottom-color:var(--line)}
html[data-theme] td.emph{color:var(--ink)}
html[data-theme] td.emph-purple{color:var(--purple)}
html[data-theme] :is(tr.note-tr:hover,.comparison-table tr[data-phrase-result]:hover){background:var(--surface-hover)}
html[data-theme] :is(tr.note-tr.selected,.edit-note-table tr.evidence-selected td){background:var(--accent-soft)}
html[data-theme] :is(.edit-note-table,.score-image-wrap,.source-card img){border-color:var(--border)}
html[data-theme] .evidence-detail{background:var(--surface-soft);border-color:var(--border)}
html[data-theme] :is(.song-compact-title h2,.song-top h2,.live-lyric,.difference-lyric){color:var(--ink)}
html[data-theme] :is(.song-compact-meta,.song-compact-actions .text-button,.song-bottom,.song-position,.song-difference,.song-difference small,.live-lyric-neighbor,.live-pitch-head h2,.live-pitch-head>span,.live-curve-caption,.live-correction,.live-pitch-footer p,.live-pitch-metrics span,.live-pitch-metrics small){color:var(--muted)}
html[data-theme] :is(.song-current-line h3,.song-difference strong,.live-pitch-metrics strong){color:var(--accent)}
html[data-theme] :is(.song-adjacent,.song-position select,.song-compact-controls select,.song-compact-controls .square-btn,.song-more-actions .text-button,.song-more-help,.live-pitch-metrics>div,.live-following){background:var(--surface-soft);border-color:var(--border);color:var(--sub)}
html[data-theme] :is(.song-compact-controls select,.live-pitch-metrics .live-difference strong){color:var(--ink)}
html[data-theme] .live-target strong{color:var(--gold)}
html[data-theme] .song-compact-actions .text-button:hover{background:var(--surface-hover);color:var(--accent)}
html[data-theme] .song-compact-status.error-text{background:var(--danger-soft)}
html[data-theme] :is(.song-empty-text,.song-eyebrow,.song-recognition-details){color:var(--muted)}
html[data-theme] :is(.workbench-status,.workbench-help,.inspector-kicker,.metric-caption,.remark-label,.chart-header p,.table-header p,.plot-tools,.selected-index,.switch-label,.legend>span,.plot-hint,.mini-curve-head,.mini-curve-head span:first-child,.inspector-step,.disclaimer,.disclaimer strong,.file-text small,.session-metrics small){color:var(--muted)}
html[data-theme] :is(.wave-shell,.inspector-curve,.inspector-stats>div,.difference-empty,.difference-summary>div,.comparison-notes>span,.phrase-result-list button){background:var(--surface-soft);border-color:var(--line);color:var(--sub)}
html[data-theme] :is(.plot-tools button,.edit-tools button,.inspector-step button){background:var(--surface-soft);border-color:var(--border);color:var(--sub)}
html[data-theme] :is(.pitch-info,.mode-pill,.file-mark,.inspector-phrase,.phrase-result-list button.selected){background:var(--accent-soft);border-color:var(--border);color:var(--accent)}
html[data-theme] :is(.inspector-stats small,.inspector-stats em,.inspector-feature p,.big-cents small,.scale-labels,.remark-label span,.difference-summary small,.difference-table td small,.phrase-result-list small){color:var(--muted)}
html[data-theme] :is(.difference-summary strong,.comparison-empty strong){color:var(--ink)}
html[data-theme] :is(.difference-table th,.difference-table .missing-pitch){background:var(--surface-soft);color:var(--sub)}
html[data-theme] .difference-table td{color:var(--sub)}
html[data-theme] .difference-table .large-difference td:nth-child(3) strong{color:var(--warning)}
html[data-theme] .practice-reference-details>summary{color:var(--sub)}
html[data-theme] .practice-reference-details>summary span{color:var(--muted)}
html[data-theme] .player{background:var(--surface);border-color:var(--border);box-shadow:0 -8px 30px #00000008}
html[data-theme] :is(.player time,.player-name small,.speed-btn,.player-offline){color:var(--muted)}
html[data-theme] .player-offline{border-color:var(--line)}
html[data-theme] .play-btn{background:var(--accent);color:var(--accent-ink);box-shadow:none}
html[data-theme] .account-menu,html[data-theme] body[data-page="home"] .account-menu{color:var(--ink)}
html[data-theme] .account-menu summary:hover,html[data-theme] .account-menu[open] summary,html[data-theme] body[data-page="home"] .account-menu summary:hover,html[data-theme] body[data-page="home"] .account-menu[open] summary{background:var(--surface-hover)}
html[data-theme] .account-avatar,html[data-theme] body[data-page="home"] .account-avatar{background:var(--accent-soft);color:var(--accent);border:1px solid var(--border)}
html[data-theme] .account-menu-panel,html[data-theme] body[data-page="home"] .account-menu-panel{background:var(--surface-raised);border-color:var(--border);box-shadow:var(--floating-shadow)}
html[data-theme] .account-menu-identity,html[data-theme] body[data-page="home"] .account-menu-identity{border-color:var(--line)}
html[data-theme] .account-menu-identity small,html[data-theme] body[data-page="home"] .account-menu-identity small{color:var(--muted)}
html[data-theme] .account-menu-panel>a:hover,html[data-theme] .account-menu-panel>button:hover,html[data-theme] body[data-page="home"] .account-menu-panel>a:hover,html[data-theme] body[data-page="home"] .account-menu-panel>button:hover{background:var(--surface-hover)}
html[data-theme] #logoutMenu,html[data-theme] #accountMenuStatus,html[data-theme] body[data-page="home"] #logoutMenu,html[data-theme] body[data-page="home"] #accountMenuStatus{color:var(--danger)}
/* Preserve the violet vocal / gold reference semantics on both chart palettes. */
html[data-theme] :is(.plot-scroll,#pianoAxis){background:var(--chart-bg);border-color:var(--chart-grid)}
html[data-theme] .pitch-time-scroll{scrollbar-color:var(--border) var(--chart-bg)}
html[data-theme] :is(#pianoSvg,#pianoAxis) rect[fill="#fff"]{fill:var(--chart-bg)}
html[data-theme] :is(#pianoSvg,#pianoAxis) rect[fill="#f5f6fa"]{fill:var(--chart-row)}
html[data-theme] :is(#pianoSvg,#pianoAxis) line[stroke="#e5e8f0"]{stroke:var(--chart-grid)}
html[data-theme] :is(.pitch-axis-heading,.pitch-axis-note,.pitch-time-label){fill:var(--chart-axis)}
html[data-theme] .pitch-axis-c{fill:var(--ink)}
html[data-theme] #pianoSvg .pitch-phrase:not(.selected) rect{fill:var(--chart-phrase)}
html[data-theme] #pianoSvg .pitch-phrase:not(.selected) text{fill:var(--sub)}
html[data-theme] #pianoSvg .pitch-reference text{fill:var(--chart-gold-label)}
html[data-theme] .pitch-note-lyric text,html[data-theme] .pitch-note-lyric-estimate text{fill:var(--gold)}
html[data-theme="dark"] #pianoSvg .pitch-continuous{stroke:var(--chart-curve)}
html[data-theme] .pitch-panel .plot-tools .pitch-view-button[aria-pressed="true"]{background:var(--accent-soft);border-color:var(--border);color:var(--accent)}
/* Home keeps its two bold launch surfaces, with the same neutrals as the library. */
html[data-theme] .home-heading h1>span{color:var(--accent)}
html[data-theme] :is(.home-heading .home-date,.home-section-heading h2 small,.home-section-heading>a){color:var(--muted)}
html[data-theme] .home-launch-score{background:var(--surface-raised);border-color:var(--border);color:var(--ink)}
html[data-theme] :is(.home-launch-score .home-launch-copy small,.home-launch-score .home-launch-bottom>span){color:var(--sub)}
html[data-theme] :is(.home-launch-score .home-launch-icon,.home-launch-score .home-launch-arrow){color:var(--accent);border-color:var(--border);background:var(--accent-soft)}
html[data-theme] .home-launch-score .home-launch-bottom{border-color:var(--line)}
html[data-theme] .home-record{background:var(--surface);border-color:var(--line)}
html[data-theme] .home-record:first-child{background:var(--surface-soft);border-color:var(--border)}
html[data-theme] .home-record:hover{background:var(--surface-hover);border-color:var(--border)}
html[data-theme] .home-record-play{background:var(--accent-soft);border-color:var(--border);color:var(--accent)}
html[data-theme] .home-record-copy strong{color:var(--ink)}
html[data-theme] :is(.home-record-copy small,.home-record-copy small>span,.home-record-open,.home-empty){color:var(--muted)}
html[data-theme] .home-empty{border-color:var(--border)}
html[data-theme] body[data-page="home"] .resume-banner{background:var(--accent-soft);border-color:var(--border);color:var(--sub)}
html[data-theme] body[data-page="home"] .resume-banner .btn{background:var(--surface-soft);border-color:var(--border);color:var(--accent)}
/* Theme choice remains available before signing in and survives a sign-out. */
.login-topline{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;z-index:1}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid var(--border);border-radius:30px;background:var(--surface-soft);color:var(--sub);font-size:11px;line-height:1;white-space:nowrap}
.theme-toggle:hover{background:var(--surface-hover);color:var(--ink)}
.theme-toggle svg{height:16px;width:16px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}
[data-theme="dark"] .theme-moon,[data-theme="light"] .theme-sun{display:none}
html[data-theme] #loginPage{background:var(--bg);color:var(--login-text);color-scheme:inherit;--login-text:var(--ink)}
html[data-theme] .login-brand .ico{color:var(--accent)}
html[data-theme] .login-art-wordmark{color:var(--ink)}
html[data-theme] .login-art-wordmark>span{color:var(--muted)}
html[data-theme] .login-ribbon{opacity:var(--ribbon-opacity)}
html[data-theme] .login-heading-mark{background:var(--accent)}
html[data-theme] .login-field{color:var(--sub)}
html[data-theme] .login-field input{color:var(--ink);border-bottom-color:var(--login-line);background:transparent}
html[data-theme] .login-field input::placeholder{color:var(--muted)}
html[data-theme] .login-field:focus-within{color:var(--accent)}
html[data-theme] .login-field input:focus{border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent)}
html[data-theme] .login-field input:-webkit-autofill{-webkit-text-fill-color:var(--ink);box-shadow:0 0 0 100px var(--surface) inset;caret-color:var(--ink)}
html[data-theme] .login-submit{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
html[data-theme] .login-submit:hover{background:var(--accent-strong);border-color:var(--accent-strong)}
html[data-theme] #loginStatus{color:var(--sub)}
html[data-theme] #loginStatus.error-text{color:var(--danger)}
html[data-theme] .login-retry{color:var(--accent)}
html[data-theme="light"] .login-atmosphere{background:radial-gradient(ellipse at 25% 43%,#d8c0ef72,transparent 58%),radial-gradient(ellipse at 92% 5%,#e4d5f459,transparent 50%)}
html[data-theme="light"] .home-launch-record{background:#ddc9f8;border-color:#ceb5ef;color:#3c245c}
html[data-theme="light"] .home-launch-ribbon{opacity:.35}
@media(max-width:700px){
  .import-metadata{grid-template-columns:1fr;gap:15px}
  html[data-theme] .saved-main{padding:18px 16px;gap:12px}
  html[data-theme] .saved-copy strong{font-size:14px}
  html[data-theme] .saved-icon{height:39px;width:36px;border-radius:11px}
  html[data-theme] .saved-actions{padding:10px 16px}
  .theme-toggle{min-height:36px;padding:8px 10px}
  .topbar .theme-toggle-label{display:none}
  .topbar .theme-toggle{width:36px;padding:0;margin-right:10px}
  .login-topline .theme-toggle{font-size:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.theme-toggle{transition:none}}
