/* themes.css: the six looks (DESIGN.md section 11). Sky is styles.css :root and adds nothing here.
   Part 1 is generated from themes.js (every colour, per theme and per phase).
   Part 2 is hand-written: the motifs behind the sky, the status-bar band and the Look sheet.
   Motifs sit behind content at low strength; motion is transform and opacity only, 20 s or slower,
   and all of it lives inside prefers-reduced-motion: no-preference. */

/* BEGIN GENERATED from themes.js by tests/helpers/make-themes-css.mjs: do not edit by hand */
html[data-theme="bloom"]{
  --sky-dawn:radial-gradient(320px 210px at 80% 4%,rgba(255,246,240,.75),rgba(255,246,240,0) 70%),linear-gradient(180deg,#f2b4c6 0%,#f6c6d2 18%,#fad9e0 38%,#fce8ec 62%,#fff3f2 100%);
  --sky-afternoon:radial-gradient(340px 220px at 62% 0%,rgba(255,226,200,.6),rgba(255,226,200,0) 70%),linear-gradient(180deg,#ec96a4 0%,#f2acac 18%,#f6c2b6 40%,#fad8c8 64%,#fde8de 100%);
  --sky-golden:radial-gradient(280px 190px at 76% 4%,rgba(250,170,150,.24),rgba(250,170,150,0) 70%),linear-gradient(180deg,#9a4468 0%,#843a60 14%,#5e2848 32%,#40183a 54%,#30102a 100%);
  --sky-night:radial-gradient(240px 160px at 86% 5%,rgba(214,120,160,.18),rgba(214,120,160,0) 70%),linear-gradient(180deg,#1e0a1a 0%,#2c1026 30%,#34142c 60%,#2a0e24 100%);
  --rail:linear-gradient(180deg,#f2b6c6 0%,#e58fa3 30%,#c9607e 60%,#8a3e62 85%,#4a2238 100%);
  --text:#fdeef3;
  --dim:#e6c6d3;
  --faint:#d4abbb;
  --hero:#fff4f8;
  --eyebrow:#fff0f5;
  --title:#fff4f8;
  --glass:rgba(50,14,36,.78);
  --glass-line:rgba(255,214,228,.13);
  --well:rgba(255,214,228,.07);
  --track:rgba(255,214,228,.14);
  --shade-rgb:50,14,36;
  --line-rgb:255,214,228;
  --tabbar-bg:rgba(36,10,26,.92);
  --scrim:rgba(14,4,10,.6);
  --sheet:#311229;
  --dot-bg:#45203a;
  --dot-now-bg:#55263f;
  --status-bg:transparent;
  --golden:#f6a2bb;
  --golden-2:#f9c3d2;
  --golden-text:#ffcadb;
  --now-hi:#fabccd;
  --on-now:#2a0f1e;
  --tab-on:#f6a2bb;
  --link:#f6a2bb;
  --first-light:#f5b49a;
  --first-light-2:#fad0bf;
  --teal:#93cba4;
  --teal-2:#bce4c7;
  --content-hi:#effbf3;
  --indigo:#bba0e0;
  --indigo-2:#e0d0f6;
  --haze:#f6d8e2;
  --sun-core:#fff4f8;
  --glow-rgb:250,170,150;
  --now-rgb:246,162,187;
  --warm-rgb:245,180,154;
  --content-rgb:147,203,164;
  --wind-rgb:187,160,224;
  --wind2-rgb:224,208,246;
  --haze-rgb:246,216,226;
  --sun-knock:rgba(50,14,36,.94);
  --band-a:.15;
  --band-edge:.32;
  color-scheme:dark;
}
html[data-theme="bloom"][data-phase="dawn"]{
  --text:#3a1626;
  --dim:#56293d;
  --faint:#603448;
  --hero:#3a1626;
  --eyebrow:#4e2236;
  --title:#3a1626;
  --glass:rgba(255,236,242,.66);
  --glass-line:rgba(120,40,72,.15);
  --well:rgba(120,40,72,.06);
  --track:rgba(120,40,72,.15);
  --shade-rgb:255,236,242;
  --line-rgb:120,40,72;
  --tabbar-bg:rgba(255,240,244,.92);
  --scrim:rgba(120,40,72,.36);
  --sheet:#fff3f6;
  --dot-bg:#f8dfe7;
  --dot-now-bg:#fcdbe6;
  --status-bg:linear-gradient(180deg,rgba(120,40,72,.55),rgba(120,40,72,0));
  --golden:#b8365f;
  --golden-2:#d0688a;
  --golden-text:#7e1c3a;
  --now-hi:#d65c82;
  --on-now:#ffffff;
  --tab-on:#7e1c3a;
  --link:#7e1c3a;
  --first-light:#bf563c;
  --first-light-2:#8a3a24;
  --teal:#3b8658;
  --teal-2:#184a2c;
  --content-hi:#0c361e;
  --indigo:#8a6fc0;
  --indigo-2:#553b8c;
  --haze:#c98aa0;
  --sun-core:#ffffff;
  --glow-rgb:255,196,206;
  --now-rgb:184,54,95;
  --warm-rgb:191,86,60;
  --content-rgb:59,134,88;
  --wind-rgb:138,111,192;
  --wind2-rgb:185,163,224;
  --haze-rgb:201,138,160;
  --sun-knock:rgba(255,236,242,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#fff3f2;
  color-scheme:light;
}
html[data-theme="bloom"][data-phase="afternoon"]{
  --text:#3a1626;
  --dim:#56293d;
  --faint:#603448;
  --hero:#3a1626;
  --eyebrow:#4e2236;
  --title:#3a1626;
  --glass:rgba(255,242,238,.66);
  --glass-line:rgba(120,40,72,.15);
  --well:rgba(120,40,72,.06);
  --track:rgba(120,40,72,.15);
  --shade-rgb:255,242,238;
  --line-rgb:120,40,72;
  --tabbar-bg:rgba(255,242,238,.92);
  --scrim:rgba(120,40,72,.36);
  --sheet:#fff4f0;
  --dot-bg:#f8dfe7;
  --dot-now-bg:#fcdbe6;
  --status-bg:linear-gradient(180deg,rgba(120,40,72,.55),rgba(120,40,72,0));
  --golden:#b8365f;
  --golden-2:#d0688a;
  --golden-text:#7e1c3a;
  --now-hi:#d65c82;
  --on-now:#ffffff;
  --tab-on:#7e1c3a;
  --link:#7e1c3a;
  --first-light:#bf563c;
  --first-light-2:#8a3a24;
  --teal:#3b8658;
  --teal-2:#184a2c;
  --content-hi:#0c361e;
  --indigo:#8a6fc0;
  --indigo-2:#553b8c;
  --haze:#c98aa0;
  --sun-core:#ffffff;
  --glow-rgb:255,196,206;
  --now-rgb:184,54,95;
  --warm-rgb:191,86,60;
  --content-rgb:59,134,88;
  --wind-rgb:138,111,192;
  --wind2-rgb:185,163,224;
  --haze-rgb:201,138,160;
  --sun-knock:rgba(255,242,238,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#fde8de;
  color-scheme:light;
}
html[data-theme="bloom"][data-phase="golden"]{
  --glass:rgba(66,22,48,.74);
  --shade-rgb:66,22,48;
  --tabbar-bg:rgba(48,14,34,.92);
  --sheet:#3e1732;
  --dot-bg:#52233f;
  --dot-now-bg:#622a4c;
  --sun-knock:rgba(66,22,48,.94);
  --page:#30102a;
}
html[data-theme="bloom"][data-phase="night"]{
  --page:#2a0e24;
}
html[data-theme="lilac"]{
  --sky-dawn:radial-gradient(320px 210px at 78% 6%,rgba(255,252,246,.7),rgba(255,252,246,0) 70%),linear-gradient(180deg,#c6bcf2 0%,#d6cff6 20%,#e5e0fa 42%,#f0eefd 66%,#f8f6ff 100%);
  --sky-afternoon:radial-gradient(340px 220px at 62% 0%,rgba(255,228,248,.55),rgba(255,228,248,0) 70%),linear-gradient(180deg,#d2a2e4 0%,#dcb8ea 20%,#e7ccf0 42%,#f0e0f6 66%,#f8eefb 100%);
  --sky-golden:radial-gradient(280px 190px at 30% 4%,rgba(240,160,206,.3),rgba(240,160,206,0) 70%),linear-gradient(180deg,#5c3a94 0%,#523288 14%,#40266c 32%,#2c1a52 54%,#20123e 100%);
  --sky-night:radial-gradient(240px 160px at 86% 6%,rgba(201,182,242,.16),rgba(201,182,242,0) 70%),linear-gradient(180deg,#0e0826 0%,#180e38 30%,#1e1244 62%,#180e36 100%);
  --rail:linear-gradient(180deg,#c9b6f2 0%,#a78bda 35%,#8a6cc8 60%,#4e3a8a 85%,#241c46 100%);
  --text:#f4eeff;
  --dim:#ded4f6;
  --faint:#c4b8e6;
  --hero:#f8f4ff;
  --eyebrow:#f2ebff;
  --title:#f8f4ff;
  --glass:rgba(38,18,74,.78);
  --glass-line:rgba(226,214,255,.13);
  --well:rgba(226,214,255,.07);
  --track:rgba(226,214,255,.14);
  --shade-rgb:38,18,74;
  --line-rgb:226,214,255;
  --tabbar-bg:rgba(26,12,54,.92);
  --scrim:rgba(8,5,20,.6);
  --sheet:#28184e;
  --dot-bg:#382a66;
  --dot-now-bg:#443078;
  --status-bg:transparent;
  --golden:#cdb8f6;
  --golden-2:#dfd0fa;
  --golden-text:#e0d0ff;
  --now-hi:#e2d6fb;
  --on-now:#1b1236;
  --tab-on:#cdb8f6;
  --link:#cdb8f6;
  --first-light:#f2a6c8;
  --first-light-2:#f8c8de;
  --teal:#88d2b8;
  --teal-2:#c0ead9;
  --content-hi:#f2fdf9;
  --indigo:#a2aaee;
  --indigo-2:#cfd4f8;
  --haze:#e6ddf8;
  --sun-core:#f8f4ff;
  --glow-rgb:214,196,252;
  --now-rgb:205,184,246;
  --warm-rgb:242,166,200;
  --content-rgb:136,210,184;
  --wind-rgb:162,170,238;
  --wind2-rgb:207,212,248;
  --haze-rgb:230,221,248;
  --sun-knock:rgba(38,18,74,.94);
  --band-a:.15;
  --band-edge:.32;
  color-scheme:dark;
}
html[data-theme="lilac"][data-phase="dawn"]{
  --text:#241c44;
  --dim:#403466;
  --faint:#4a3e74;
  --hero:#241c44;
  --eyebrow:#352a5e;
  --title:#241c44;
  --glass:rgba(242,242,255,.64);
  --glass-line:rgba(70,50,140,.15);
  --well:rgba(70,50,140,.06);
  --track:rgba(70,50,140,.15);
  --shade-rgb:242,242,255;
  --line-rgb:70,50,140;
  --tabbar-bg:rgba(246,243,255,.92);
  --scrim:rgba(70,50,140,.36);
  --sheet:#f8f6ff;
  --dot-bg:#e6def9;
  --dot-now-bg:#e9dcff;
  --status-bg:linear-gradient(180deg,rgba(70,50,140,.55),rgba(70,50,140,0));
  --golden:#6d48c0;
  --golden-2:#9d80dc;
  --golden-text:#4a2a94;
  --now-hi:#9474de;
  --on-now:#ffffff;
  --tab-on:#4a2a94;
  --link:#4a2a94;
  --first-light:#b45a98;
  --first-light-2:#82356c;
  --teal:#2c876d;
  --teal-2:#104a38;
  --content-hi:#0a3a2c;
  --indigo:#6f80d0;
  --indigo-2:#3c4a96;
  --haze:#a996d6;
  --sun-core:#ffffff;
  --glow-rgb:226,210,255;
  --now-rgb:109,72,192;
  --warm-rgb:180,90,152;
  --content-rgb:44,135,109;
  --wind-rgb:111,128,208;
  --wind2-rgb:163,174,232;
  --haze-rgb:169,150,214;
  --sun-knock:rgba(242,242,255,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#f8f6ff;
  color-scheme:light;
}
html[data-theme="lilac"][data-phase="afternoon"]{
  --text:#241c44;
  --dim:#403466;
  --faint:#4a3e74;
  --hero:#241c44;
  --eyebrow:#352a5e;
  --title:#241c44;
  --glass:rgba(253,245,255,.64);
  --glass-line:rgba(70,50,140,.15);
  --well:rgba(70,50,140,.06);
  --track:rgba(70,50,140,.15);
  --shade-rgb:253,245,255;
  --line-rgb:70,50,140;
  --tabbar-bg:rgba(252,244,255,.92);
  --scrim:rgba(70,50,140,.36);
  --sheet:#fcf6ff;
  --dot-bg:#e6def9;
  --dot-now-bg:#e9dcff;
  --status-bg:linear-gradient(180deg,rgba(70,50,140,.55),rgba(70,50,140,0));
  --golden:#6d48c0;
  --golden-2:#9d80dc;
  --golden-text:#4a2a94;
  --now-hi:#9474de;
  --on-now:#ffffff;
  --tab-on:#4a2a94;
  --link:#4a2a94;
  --first-light:#b45a98;
  --first-light-2:#82356c;
  --teal:#2c876d;
  --teal-2:#104a38;
  --content-hi:#0a3a2c;
  --indigo:#6f80d0;
  --indigo-2:#3c4a96;
  --haze:#a996d6;
  --sun-core:#ffffff;
  --glow-rgb:226,210,255;
  --now-rgb:109,72,192;
  --warm-rgb:180,90,152;
  --content-rgb:44,135,109;
  --wind-rgb:111,128,208;
  --wind2-rgb:163,174,232;
  --haze-rgb:169,150,214;
  --sun-knock:rgba(253,245,255,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#f8eefb;
  color-scheme:light;
}
html[data-theme="lilac"][data-phase="golden"]{
  --glass:rgba(44,26,86,.74);
  --shade-rgb:44,26,86;
  --tabbar-bg:rgba(32,18,64,.92);
  --sheet:#2e1e5a;
  --dot-bg:#3e2c6e;
  --dot-now-bg:#4a3480;
  --sun-knock:rgba(44,26,86,.94);
  --page:#20123e;
}
html[data-theme="lilac"][data-phase="night"]{
  --page:#180e36;
}
html[data-theme="ocean"]{
  --sky-dawn:radial-gradient(300px 200px at 80% 2%,rgba(255,248,214,.7),rgba(255,248,214,0) 70%),linear-gradient(180deg,#a2dcd4 0%,#bae6de 20%,#d0efe9 42%,#e4f6f2 66%,#f0fbf9 100%);
  --sky-afternoon:radial-gradient(300px 200px at 62% 0%,rgba(230,252,255,.5),rgba(230,252,255,0) 70%),linear-gradient(180deg,#52bccc 0%,#78cad6 18%,#a0d9e0 40%,#c5e8ec 64%,#e0f4f6 100%);
  --sky-golden:radial-gradient(120px 46px at 62% 4.7%,rgba(250,160,120,.45),rgba(250,160,120,0) 70%),linear-gradient(180deg,#2e2244 0%,#46305a 2.6%,#62385c 3.7%,#22465e 5.7%,#1c3e58 14%,#16324c 40%,#10283e 100%);
  --sky-night:radial-gradient(200px 120px at 72% 2%,rgba(180,220,230,.16),rgba(180,220,230,0) 70%),linear-gradient(180deg,#020e14 0%,#04161c 3.7%,#08302e 5.7%,#062a2a 30%,#042424 62%,#031c1e 100%);
  --rail:linear-gradient(180deg,#bfe8e2 0%,#7fd0c8 25%,#3fa7b5 50%,#f2a68b 72%,#2f6f8a 86%,#0f3644 100%);
  --text:#ecf7f5;
  --dim:#d2e6e4;
  --faint:#aecac9;
  --hero:#f4fbfa;
  --eyebrow:#f4fbfa;
  --title:#f4fbfa;
  --glass:rgba(0,46,48,.78);
  --glass-line:rgba(210,236,244,.13);
  --well:rgba(210,236,244,.07);
  --track:rgba(210,236,244,.14);
  --shade-rgb:0,46,48;
  --line-rgb:210,236,244;
  --tabbar-bg:rgba(0,30,32,.92);
  --scrim:rgba(2,10,14,.6);
  --sheet:#032e30;
  --dot-bg:#0c4042;
  --dot-now-bg:#0f4a4a;
  --status-bg:transparent;
  --golden:#86d6cc;
  --golden-2:#b0e6de;
  --golden-text:#b6ede5;
  --now-hi:#b2e8e0;
  --on-now:#0a1e26;
  --tab-on:#86d6cc;
  --link:#86d6cc;
  --first-light:#f4a688;
  --first-light-2:#f9c5b0;
  --teal:#d0a656;
  --teal-2:#f2d9a6;
  --content-hi:#fffaf0;
  --indigo:#93a8e4;
  --indigo-2:#c8d4f6;
  --haze:#e6f6f3;
  --sun-core:#fff6ec;
  --glow-rgb:250,190,150;
  --now-rgb:134,214,204;
  --warm-rgb:244,166,136;
  --content-rgb:208,166,86;
  --wind-rgb:147,168,228;
  --wind2-rgb:200,212,246;
  --haze-rgb:230,246,243;
  --sun-knock:rgba(0,46,48,.94);
  --band-a:.15;
  --band-edge:.32;
  color-scheme:dark;
}
html[data-theme="ocean"][data-phase="dawn"]{
  --text:#0c2a33;
  --dim:#24444c;
  --faint:#2c4c55;
  --hero:#0c2a33;
  --eyebrow:#123842;
  --title:#0c2a33;
  --glass:rgba(242,252,250,.64);
  --glass-line:rgba(10,80,90,.15);
  --well:rgba(10,80,90,.06);
  --track:rgba(10,80,90,.15);
  --shade-rgb:242,252,250;
  --line-rgb:10,80,90;
  --tabbar-bg:rgba(238,250,248,.92);
  --scrim:rgba(10,80,90,.36);
  --sheet:#f1fbf9;
  --dot-bg:#d4eeea;
  --dot-now-bg:#cbede8;
  --status-bg:linear-gradient(180deg,rgba(10,80,90,.55),rgba(10,80,90,0));
  --golden:#0b7c84;
  --golden-2:#4aa8ad;
  --golden-text:#044e56;
  --now-hi:#2a9aa0;
  --on-now:#ffffff;
  --tab-on:#044e56;
  --link:#044e56;
  --first-light:#bd5838;
  --first-light-2:#6e2a14;
  --teal:#9e6e0c;
  --teal-2:#563804;
  --content-hi:#3a2602;
  --indigo:#5a74c0;
  --indigo-2:#324a8e;
  --haze:#7fb8b4;
  --sun-core:#ffffff;
  --glow-rgb:255,240,200;
  --now-rgb:11,124,132;
  --warm-rgb:189,88,56;
  --content-rgb:158,110,12;
  --wind-rgb:90,116,192;
  --wind2-rgb:159,176,228;
  --haze-rgb:127,184,180;
  --sun-knock:rgba(242,252,250,.94);
  --band-a:.24;
  --band-edge:.46;
  --page:#f0fbf9;
  color-scheme:light;
}
html[data-theme="ocean"][data-phase="afternoon"]{
  --text:#0c2a33;
  --dim:#24444c;
  --faint:#2c4c55;
  --hero:#0c2a33;
  --eyebrow:#123842;
  --title:#0c2a33;
  --glass:rgba(238,250,253,.64);
  --glass-line:rgba(10,80,90,.15);
  --well:rgba(10,80,90,.06);
  --track:rgba(10,80,90,.15);
  --shade-rgb:238,250,253;
  --line-rgb:10,80,90;
  --tabbar-bg:rgba(236,249,252,.92);
  --scrim:rgba(10,80,90,.36);
  --sheet:#eff9fc;
  --dot-bg:#d4eeea;
  --dot-now-bg:#cbede8;
  --status-bg:linear-gradient(180deg,rgba(10,80,90,.55),rgba(10,80,90,0));
  --golden:#0b7c84;
  --golden-2:#4aa8ad;
  --golden-text:#044e56;
  --now-hi:#2a9aa0;
  --on-now:#ffffff;
  --tab-on:#044e56;
  --link:#044e56;
  --first-light:#bd5838;
  --first-light-2:#6e2a14;
  --teal:#9e6e0c;
  --teal-2:#563804;
  --content-hi:#3a2602;
  --indigo:#5a74c0;
  --indigo-2:#324a8e;
  --haze:#7fb8b4;
  --sun-core:#ffffff;
  --glow-rgb:255,240,200;
  --now-rgb:11,124,132;
  --warm-rgb:189,88,56;
  --content-rgb:158,110,12;
  --wind-rgb:90,116,192;
  --wind2-rgb:159,176,228;
  --haze-rgb:127,184,180;
  --sun-knock:rgba(238,250,253,.94);
  --band-a:.24;
  --band-edge:.46;
  --page:#e0f4f6;
  color-scheme:light;
}
html[data-theme="ocean"][data-phase="golden"]{
  --glass:rgba(16,46,74,.74);
  --shade-rgb:16,46,74;
  --tabbar-bg:rgba(10,32,52,.92);
  --sheet:#12304c;
  --dot-bg:#134249;
  --dot-now-bg:#164c52;
  --sun-knock:rgba(16,46,74,.94);
  --page:#10283e;
}
html[data-theme="ocean"][data-phase="night"]{
  --page:#031c1e;
}
html[data-theme="dune"]{
  --sky-dawn:radial-gradient(320px 210px at 82% 5%,rgba(255,250,236,.7),rgba(255,250,236,0) 70%),linear-gradient(180deg,#e6cba6 0%,#eed9bc 20%,#f4e6d2 44%,#f8efe2 70%,#faf4ea 100%);
  --sky-afternoon:radial-gradient(340px 220px at 50% 0%,rgba(255,236,200,.5),rgba(255,236,200,0) 70%),linear-gradient(180deg,#d8ae74 0%,#e0be8a 20%,#e9cea6 42%,#f0dec0 68%,#f5e9d4 100%);
  --sky-golden:radial-gradient(280px 190px at 70% 4%,rgba(246,150,110,.26),rgba(246,150,110,0) 70%),linear-gradient(180deg,#8e4634 0%,#9a5038 12%,#7a3e30 28%,#542c22 50%,#3a221a 100%);
  --sky-night:radial-gradient(220px 150px at 80% 4%,rgba(240,220,190,.1),rgba(240,220,190,0) 70%),linear-gradient(180deg,#1c1410 0%,#2a1d15 30%,#33241a 62%,#2a1d15 100%);
  --rail:linear-gradient(180deg,#e8cfae 0%,#d9b27a 22%,#c08f6a 45%,#9e5238 72%,#5a4232 88%,#2e2018 100%);
  --text:#fbf0e6;
  --dim:#f3e6db;
  --faint:#d6c0b0;
  --hero:#fff6ee;
  --eyebrow:#fff3e8;
  --title:#fff6ee;
  --glass:rgba(72,50,30,.78);
  --glass-line:rgba(255,226,206,.13);
  --well:rgba(255,226,206,.07);
  --track:rgba(255,226,206,.14);
  --shade-rgb:72,50,30;
  --line-rgb:255,226,206;
  --tabbar-bg:rgba(42,30,20,.92);
  --scrim:rgba(16,8,6,.6);
  --sheet:#33261b;
  --dot-bg:#4a3a2a;
  --dot-now-bg:#58432e;
  --status-bg:transparent;
  --golden:#f2b48a;
  --golden-2:#f6cba8;
  --golden-text:#f9d0ae;
  --now-hi:#f5c29c;
  --on-now:#2a1610;
  --tab-on:#f2b48a;
  --link:#f2b48a;
  --first-light:#e8c89e;
  --first-light-2:#f2dcbc;
  --teal:#74b498;
  --teal-2:#bfe2d2;
  --content-hi:#f6fbf7;
  --indigo:#b2b4c6;
  --indigo-2:#d8dae6;
  --haze:#f4dccc;
  --sun-core:#fff4ea;
  --glow-rgb:246,170,130;
  --now-rgb:242,180,138;
  --warm-rgb:232,200,158;
  --content-rgb:116,180,152;
  --wind-rgb:178,180,198;
  --wind2-rgb:216,218,230;
  --haze-rgb:244,220,204;
  --sun-knock:rgba(72,50,30,.94);
  --band-a:.19;
  --band-edge:.38;
  color-scheme:dark;
}
html[data-theme="dune"][data-phase="dawn"]{
  --text:#2e2418;
  --dim:#4a3c2b;
  --faint:#524332;
  --hero:#2e2418;
  --eyebrow:#45372a;
  --title:#2e2418;
  --glass:rgba(255,250,240,.64);
  --glass-line:rgba(96,70,40,.15);
  --well:rgba(96,70,40,.06);
  --track:rgba(96,70,40,.15);
  --shade-rgb:255,250,240;
  --line-rgb:96,70,40;
  --tabbar-bg:rgba(252,246,234,.92);
  --scrim:rgba(96,70,40,.36);
  --sheet:#fcf6ea;
  --dot-bg:#efe2cc;
  --dot-now-bg:#f4dcc4;
  --status-bg:linear-gradient(180deg,rgba(96,70,40,.55),rgba(96,70,40,0));
  --golden:#a4522c;
  --golden-2:#c4825c;
  --golden-text:#6e3214;
  --now-hi:#bf6c44;
  --on-now:#ffffff;
  --tab-on:#6e3214;
  --link:#6e3214;
  --first-light:#8e6218;
  --first-light-2:#68470e;
  --teal:#4f7a5a;
  --teal-2:#28462f;
  --content-hi:#1a2e1c;
  --indigo:#6f7d8c;
  --indigo-2:#434e5c;
  --haze:#bfa27a;
  --sun-core:#ffffff;
  --glow-rgb:255,236,200;
  --now-rgb:164,82,44;
  --warm-rgb:142,98,24;
  --content-rgb:79,122,90;
  --wind-rgb:111,125,140;
  --wind2-rgb:166,176,187;
  --haze-rgb:191,162,122;
  --sun-knock:rgba(255,250,240,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#faf4ea;
  color-scheme:light;
}
html[data-theme="dune"][data-phase="afternoon"]{
  --text:#2e2418;
  --dim:#4a3c2b;
  --faint:#524332;
  --hero:#2e2418;
  --eyebrow:#45372a;
  --title:#2e2418;
  --glass:rgba(255,248,232,.64);
  --glass-line:rgba(96,70,40,.15);
  --well:rgba(96,70,40,.06);
  --track:rgba(96,70,40,.15);
  --shade-rgb:255,248,232;
  --line-rgb:96,70,40;
  --tabbar-bg:rgba(253,245,229,.92);
  --scrim:rgba(96,70,40,.36);
  --sheet:#fdf5e6;
  --dot-bg:#efe2cc;
  --dot-now-bg:#f4dcc4;
  --status-bg:linear-gradient(180deg,rgba(96,70,40,.55),rgba(96,70,40,0));
  --golden:#a4522c;
  --golden-2:#c4825c;
  --golden-text:#6e3214;
  --now-hi:#bf6c44;
  --on-now:#ffffff;
  --tab-on:#6e3214;
  --link:#6e3214;
  --first-light:#8e6218;
  --first-light-2:#68470e;
  --teal:#4f7a5a;
  --teal-2:#28462f;
  --content-hi:#1a2e1c;
  --indigo:#6f7d8c;
  --indigo-2:#434e5c;
  --haze:#bfa27a;
  --sun-core:#ffffff;
  --glow-rgb:255,236,200;
  --now-rgb:164,82,44;
  --warm-rgb:142,98,24;
  --content-rgb:79,122,90;
  --wind-rgb:111,125,140;
  --wind2-rgb:166,176,187;
  --haze-rgb:191,162,122;
  --sun-knock:rgba(255,248,232,.94);
  --band-a:.20;
  --band-edge:.42;
  --page:#f5e9d4;
  color-scheme:light;
}
html[data-theme="dune"][data-phase="golden"]{
  --glass:rgba(78,40,28,.74);
  --shade-rgb:78,40,28;
  --tabbar-bg:rgba(56,28,20,.92);
  --sheet:#44251b;
  --dot-bg:#5a342a;
  --dot-now-bg:#6a3c2c;
  --sun-knock:rgba(78,40,28,.94);
  --page:#3a221a;
}
html[data-theme="dune"][data-phase="night"]{
  --page:#2a1d15;
}
html[data-theme="orbit"]{
  --sky-dawn:radial-gradient(300px 70px at 62% 13%,rgba(120,190,255,.4),rgba(120,190,255,0) 70%),linear-gradient(180deg,#0a1430 0%,#14285c 8%,#22448c 12.6%,#1a3a7a 16%,#152e66 50%,#0e2250 100%);
  --sky-afternoon:radial-gradient(320px 200px at 80% 6%,rgba(170,210,255,.34),rgba(170,210,255,0) 70%),linear-gradient(180deg,#2a5cb4 0%,#2852a2 18%,#21468e 38%,#183470 62%,#102654 100%);
  --sky-golden:radial-gradient(300px 190px at 22% 8%,rgba(255,110,60,.4),rgba(255,110,60,0) 70%),linear-gradient(180deg,#6e1c14 0%,#5a1818 14%,#3a1222 32%,#1a0e24 56%,#0c0c1c 100%);
  --sky-night:radial-gradient(260px 180px at 24% 18%,rgba(90,70,170,.16),rgba(90,70,170,0) 70%),radial-gradient(240px 160px at 84% 6%,rgba(60,140,255,.12),rgba(60,140,255,0) 70%),linear-gradient(180deg,#020309 0%,#04060e 40%,#05070f 100%);
  --rail:linear-gradient(180deg,#e6eef9 0%,#5aa9ff 30%,#56d6c0 52%,#ff8a4c 74%,#3a2a6a 88%,#10142a 100%);
  --text:#eaf1fb;
  --dim:#dfe7f5;
  --faint:#b8c6dc;
  --hero:#f2f6fc;
  --eyebrow:#e6eef9;
  --title:#f2f6fc;
  --glass:rgba(10,22,62,.78);
  --glass-line:rgba(214,228,255,.13);
  --well:rgba(214,228,255,.07);
  --track:rgba(214,228,255,.14);
  --shade-rgb:10,22,62;
  --line-rgb:214,228,255;
  --tabbar-bg:rgba(4,8,22,.92);
  --scrim:rgba(2,3,8,.62);
  --sheet:#0b1638;
  --dot-bg:#16224c;
  --dot-now-bg:#142a58;
  --status-bg:transparent;
  --golden:#6ab2ff;
  --golden-2:#9accff;
  --golden-text:#a6d2ff;
  --now-hi:#9accff;
  --on-now:#050811;
  --tab-on:#88c2ff;
  --link:#88c2ff;
  --first-light:#ff9a62;
  --first-light-2:#ffbe98;
  --teal:#36b892;
  --teal-2:#98ecd2;
  --content-hi:#f2fdf9;
  --indigo:#9aa6f0;
  --indigo-2:#ccd3f8;
  --haze:#e6eef9;
  --sun-core:#f2f8ff;
  --glow-rgb:120,180,255;
  --now-rgb:106,178,255;
  --warm-rgb:255,154,98;
  --content-rgb:54,184,146;
  --wind-rgb:154,166,240;
  --wind2-rgb:204,211,248;
  --haze-rgb:230,238,249;
  --sun-knock:rgba(10,22,62,.94);
  --band-a:.24;
  --band-edge:.48;
  color-scheme:dark;
}
html[data-theme="orbit"][data-phase="dawn"]{
  --glass:rgba(20,42,94,.72);
  --shade-rgb:20,42,94;
  --tabbar-bg:rgba(12,28,66,.92);
  --sheet:#14295a;
  --dot-bg:#1f3a72;
  --dot-now-bg:#1c4282;
  --sun-knock:rgba(20,42,94,.94);
  --page:#0e2250;
}
html[data-theme="orbit"][data-phase="afternoon"]{
  --eyebrow:#ffffff;
  --glass:rgba(20,44,100,.76);
  --shade-rgb:20,44,100;
  --tabbar-bg:rgba(16,36,84,.92);
  --sheet:#183270;
  --dot-bg:#24448a;
  --dot-now-bg:#214c98;
  --sun-knock:rgba(20,44,100,.94);
  --page:#102654;
}
html[data-theme="orbit"][data-phase="golden"]{
  --glass:rgba(14,24,58,.76);
  --shade-rgb:14,24,58;
  --tabbar-bg:rgba(10,16,40,.92);
  --sheet:#121e48;
  --dot-bg:#1c2a5a;
  --dot-now-bg:#1a3266;
  --sun-knock:rgba(14,24,58,.94);
  --page:#0c0c1c;
}
html[data-theme="orbit"][data-phase="night"]{
  --page:#05070f;
}
/* END GENERATED */

/* ---------- status bar: a soft deep band behind iOS's white clock on light skies ---------- */
#status-band{position:fixed;left:0;right:0;top:0;height:calc(var(--safe-t) * 1.5);z-index:9;pointer-events:none;background:var(--status-bg)}

/* ---------- motifs (themes.js draws them; one <g data-ph> per phase, the current one shows) ---------- */
.motif{display:none;pointer-events:none}
html[data-theme="bloom"] .m-bloom,
html[data-theme="lilac"] .m-lilac,
html[data-theme="ocean"] .m-ocean,
html[data-theme="dune"] .m-dune,
html[data-theme="orbit"] .m-orbit{display:block}
.motif [data-ph]{display:none}
html[data-phase="dawn"] .motif [data-ph="dawn"],
html[data-phase="afternoon"] .motif [data-ph="afternoon"],
html[data-phase="golden"] .motif [data-ph="golden"],
html[data-phase="night"] .motif [data-ph="night"]{display:inline}
/* Sky's own stars belong to Sky only */
html[data-theme]:not([data-theme="sky"]) #sky > svg.stars{display:none!important}
/* texture: the header band and the side margins, anchored top-left like the header text, below the safe area */
#sky .motif{position:absolute;inset:0}
#sky .motif > svg.tex{position:absolute;left:0;top:var(--safe-t);width:100%;height:340px;overflow:hidden}
/* the emblem: 56px wide, its right edge 8px left of the + button (16px margin, two 44px buttons, 8px gap) */
#sky .motif > svg.hero{position:absolute;top:var(--safe-t);right:calc(max(0px, (100% - 480px) / 2) + 120px);width:56px;height:56px;overflow:visible}
/* D4: placeEmblem (themes.js) keeps it 8px clear of the eyebrow and the + button at any width and label */
#sky[data-emblem="placed"] .motif > svg.hero{left:var(--emblem-x);right:auto;width:var(--emblem-s);height:var(--emblem-s)}
#sky[data-emblem="off"] .motif > svg.hero{display:none}
/* D4 (round 2): on Today the thin decoration lines (Ocean's net, foam and swell lines, Sandstone's crest line;
   their own layer, svg.tex-lines) stay off the + and gear glass: a mask centred on each button at every width
   (16px margin, 44px buttons, 8px gap), clear inside the 22px glass, feathered back to full by 25px. Large
   shapes (a petal, a planet, ridges, clouds) pass behind the buttons untouched, as on Rhythm (no buttons, no mask). */
body:has(#screen .topbar .tools) #sky .motif > svg.tex-lines{
  mask-image:radial-gradient(circle at calc(100% - max(0px, (100% - 480px) / 2) - 90px) 34px,transparent 22px,#000 25px),
    radial-gradient(circle at calc(100% - max(0px, (100% - 480px) / 2) - 38px) 34px,transparent 22px,#000 25px);
  mask-composite:intersect}
/* review 5: under 360px wide the phase chip drops its arc glyph, so "Good afternoon" and the chip fit in one
   row without the page scrolling sideways (320 wide: 174 + 12 + 146 = 332 > 288). Sky too since 11-27 (owner's
   OK): its locked shots are 390 wide, so they do not move.
   Same widths: the six ritual steps drop the 8px between their hit areas and take 4px of the card's side
   padding, so each is 45px wide (was 37, under the 44px floor). The dots stay where they were (45px apart). */
@media (max-width:359px){
  .sunchip > svg{display:none}
  .track{column-gap:0;margin:0 -4px}
}
/* the horizon: the tab bar rises into the theme's skyline, 22px above it, over the content (S-1). Sky has
   none: the box is not even laid out there, so Sky renders exactly as first built. */
#horizon{display:none;position:fixed;left:0;right:0;bottom:calc(var(--tabbar) + var(--safe-b));height:22px;z-index:10;pointer-events:none}
html[data-theme]:not([data-theme="sky"]) #horizon{display:block}
html[data-theme]:not([data-theme="sky"]) #tabbar{border-top-color:transparent}
/* D6: scrolled to the end, the last card stops 8px above the horizon's box (and the band paints inside it) */
html[data-theme]:not([data-theme="sky"]) #screen{padding-bottom:calc(var(--tabbar) + var(--safe-b) + 22px + 8px)}
#horizon .motif,#horizon svg{position:absolute;inset:0;width:100%;height:100%}
/* the Lilac moon fills through the day (--moon, set from the clock), live and in the Look preview */
.moon-shade{transform:translateX(calc(var(--moon, 1) * 42px))}

/* ---------- the sun glyph on the phase chip sits on its own disc (C-1); Sky's disc is the :root default in styles.css ---------- */

/* ---------- the Look sheet (gear on Today) ---------- */
/* a lighter scrim, so a tap shows the new look on the app behind the sheet */
.scrim.see-through{background:rgba(0,0,0,.18)}
.looks{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.look{display:grid;grid-template-columns:112px 1fr auto;align-items:center;gap:12px;width:100%;min-height:76px;padding:8px 12px 8px 8px;
  border-radius:var(--r-l);background:var(--well);box-shadow:inset 0 0 0 1px var(--glass-line);color:var(--text);text-align:left}
.look[aria-pressed="true"]{box-shadow:inset 0 0 0 2px var(--golden)}
.look .lt{display:flex;flex-direction:column;gap:2px;min-width:0}
.look .lt b{font:600 15px/20px var(--sans);color:var(--text)}
.look .lt span{font:400 13px/18px var(--sans);color:var(--dim)}
.look .tick{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 1.5px rgba(var(--line-rgb),.30)}
.look[aria-pressed="true"] .tick{background:var(--golden);color:var(--on-now);box-shadow:none}
/* the preview: that theme's sky and emblem at the current phase, a mini Now card, its four phases as dots */
.look .pv{position:relative;width:112px;height:60px;border-radius:12px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(var(--line-rgb),.14)}
.look .pv svg.hero{position:absolute;right:6px;top:4px;width:40px;height:40px}
.look .pv .mini{position:absolute;left:6px;bottom:6px;width:58px;height:18px;border-radius:6px;display:flex;align-items:center;justify-content:flex-end;padding-right:3px}
.look .pv .mini i{width:12px;height:12px;border-radius:50%}
.look .pv .dots{position:absolute;left:8px;top:8px;display:flex;gap:4px}
.look .pv .dots i{width:8px;height:8px;border-radius:50%;box-shadow:0 0 0 1px rgba(255,255,255,.55)}
.look .pv .dots i.on{box-shadow:0 0 0 2px #ffffff}

@media (prefers-reduced-motion:no-preference){
  .m-bloom .petal-drift{transform-box:fill-box;transform-origin:center;animation:petal-fall var(--t,32s) linear infinite;animation-delay:var(--d,0s)}
  @keyframes petal-fall{
    0%{transform:translate(calc(var(--dx,0px) / -2),calc(var(--dy,60px) / -2)) rotate(-75deg);opacity:0}
    12%{opacity:1}
    82%{opacity:1}
    100%{transform:translate(calc(var(--dx,0px) / 2),calc(var(--dy,60px) / 2)) rotate(75deg);opacity:0}
  }
  .m-lilac .spark{transform-box:fill-box;transform-origin:center;animation:spark 24s ease-in-out infinite;animation-delay:var(--d,0s)}
  @keyframes spark{0%,100%{opacity:.35;transform:scale(.75)}50%{opacity:1;transform:scale(1)}}
  .m-ocean .cau,.m-ocean .sw{animation:slide var(--t,40s) linear infinite;animation-delay:var(--d,0s)}
  @keyframes slide{to{transform:translateX(-260px)}}
  .m-ocean .shine{animation:glint 22s ease-in-out infinite;animation-delay:var(--d,0s)}
  @keyframes glint{0%,100%{opacity:.35}50%{opacity:1}}
  .m-orbit .tw{animation:tw 28s ease-in-out infinite;animation-delay:var(--d,0s)}
  @keyframes tw{0%,100%{opacity:.3}50%{opacity:1}}
  .m-orbit .float{animation:float 40s ease-in-out infinite alternate}
  @keyframes float{from{transform:translateY(0)}to{transform:translateY(-3px)}}
  .look{transition:transform .08s ease}
  .look:active{transform:scale(.98)}
  /* S-5: a light/dark change of look crossfades over 1.2 s (app.js wraps it in a view transition) */
  ::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation-duration:1.2s;animation-timing-function:ease-in-out}
}
/* D2: the crossfade is the old look fading out over the live new page (app.js adds vt-live inside the
   transition, so the new state is not captured); the snapshot layer never takes a tap */
:root.vt-live{view-transition-name:none}
::view-transition{pointer-events:none}
