/* AniMates themes (themes.js picks one): whole looks for the widgets, the place card and the pet menu, ported from the
   mockups in design/ui (styles, themes, gummy, lights). Everything keys off the root's data-theme (document.body, or a
   preview tile's root): each theme sets --t-* variables on it, the shared rules below use them, and the theme's own
   rules add its shapes. Sizes inside a widget are in em of the widget's text: 0.1em is one pixel of the 960x540 mockups,
   so the looks keep the mockups' proportions at any size. The plain theme ("default") has no rules here at all.
   Cost: no backdrop blur and no animated filters on the wallpaper; no endless animations on the page itself: the
   Bubbles drift and the Fairy lights twinkle are moved by themes.js in the frames the scene paints anyway (only the
   preview tiles in Settings animate them in CSS), each transform or opacity on its own layer. */

/* ---------- Settings › Themes ---------- */
/* the themes as one strip that scrolls sideways (Settings › Look), so the page stays short */
/* every look as large as it can be: one per row, the full width of the side sheet (two across in the wider journal) */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 26px 18px; padding: 6px; margin: 0 0 8px; } /* room inside for the chosen one's outline */
.theme-tile { display: flex; flex-direction: column; gap: 10px; text-align: left; border-radius: 16px; }
.theme-current { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); font-size: 14px; line-height: 1.45; color: var(--muted); }
.theme-current span { display: block; margin-bottom: 2px; font-size: 12px; color: var(--faint); }
.theme-current b { color: var(--text); font-weight: 600; margin-right: 4px; }
.theme-all { margin-top: 22px; }
.tt-stage { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1c1730; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(6,4,22,.3); pointer-events: none; transition: transform .18s ease; }
.theme-tile:hover .tt-stage { transform: translateY(-2px); }
.theme-tile.on .tt-stage { outline: 3px solid var(--warm); outline-offset: 3px; }
.tt-label b { display: block; font-size: 15px; font-weight: 600; }
.tt-label span { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--faint); }
.theme-tile.on .tt-label b::after { content: "In use"; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--warm-ink); background: var(--warm); vertical-align: 1px; }
.t-swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.t-swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); }
.t-swatches button.none { width: auto; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.08); }
.t-swatches button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--warm); color: var(--text); }
.theme-opts .row input[type="text"] { width: 220px; }

/* ---------- shared by every theme ---------- */
/* the dialogs keep their look and take the theme's accent */
body[data-themed] { --warm: var(--t-ui, var(--t-accent)); --warm-ink: var(--t-ui-ink, var(--t-accent-ink)); }
:where([data-themed]) :is(.widget, .place-card, .pet-menu) { --ink: var(--t-ink); --display: var(--t-display); }
:where([data-themed]) .widget { font-family: var(--t-font); text-shadow: var(--t-text-shadow, none); }
:where([data-themed]) .widget[data-ink="ink"] { text-shadow: none; }
/* panels: each widget's body, except the place (its chip is the panel) and panel-like widgets (their .w-panel is) */
:where([data-themed] .widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body,
:where([data-themed]) .w-panel {
  position: relative; background: var(--t-panel, none); border: var(--t-panel-border, 0); border-radius: var(--t-radius, 0);
  box-shadow: var(--t-lift, none); padding: var(--t-pad, 0);
}
:where([data-themed]) .w-panel { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
:where([data-themed]) .w-note, :where([data-themed]) .w-chip { position: relative; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--t-panel, none); border: var(--t-panel-border, 0); box-shadow: var(--t-lift, none); color: var(--ink); }
:where([data-themed]) .w-note { color: var(--t-muted); }
:where([data-themed]) .w-place span { color: var(--t-muted); }
:where([data-themed]) .w-swap { background: var(--t-accent); color: var(--t-accent-ink); }
:where([data-themed]) .w-swap .ring { stroke: var(--t-ring, currentColor); }
:where([data-themed]) :is(.w-icon, .w-forecast i) svg { color: var(--t-icon, currentColor); }
:where([data-themed]) :is(.w-wx em, .w-far .meet) { color: var(--t-accent-text, var(--t-accent)); }
:where([data-themed]) .w-time { font-weight: var(--t-tw, 250); }
:where([data-themed]) .w-words { font-weight: var(--t-tw, 300); }
:where([data-themed]) :is(.w-count .big, .w-far b, .w-world b, .w-caption) { font-weight: var(--t-dw, 300); }
:where([data-themed]) .widget[data-weight="regular"] :is(.w-time, .w-words) { font-weight: max(400, var(--t-tw, 400)); }
:where([data-themed]) .widget[data-weight="bold"] :is(.w-time, .w-words) { font-weight: max(700, var(--t-tw, 700)); }
:where([data-themed]) .w-analog .face { fill: var(--t-face, none); }
:where([data-themed]) .w-analog line { filter: none; }
:where([data-themed]) .w-analog .sec { stroke: var(--t-accent); }
:where([data-themed]) .w-moon .dark { fill: var(--t-moon-dark, rgba(127,127,127,.25)); }
:where([data-themed]) .w-far .dot { background: currentColor; }
/* each widget type takes one of the theme's four colours (--c1..--c4, with a and b for two-tone fills) and a lean */
:where([data-themed]) .widget { --sc: var(--c4); --sa: var(--c4a); --sb: var(--c4b); --si: var(--c4i, var(--ink)); --k: .6; }
:where([data-themed]) .widget:is([data-type="clock"], [data-type="date"], [data-type="worldclock"], [data-type="focus"]) { --sc: var(--c1); --sa: var(--c1a); --sb: var(--c1b); --si: var(--c1i, var(--ink)); --k: -1; }
:where([data-themed]) .widget:is([data-type="weather"], [data-type="forecast"], [data-type="moon"], [data-type="phrase"], [data-type="system"]) { --sc: var(--c2); --sa: var(--c2a); --sb: var(--c2b); --si: var(--c2i, var(--ink)); --k: .8; }
:where([data-themed]) .widget:is([data-type="place"], [data-type="faraway"], [data-type="passport"], [data-type="together"], [data-type="media"]) { --sc: var(--c3); --sa: var(--c3a); --sb: var(--c3b); --si: var(--c3i, var(--ink)); --k: -.7; }
:where([data-themed]) .widget:is([data-type="countdown"], [data-type="lovenote"]) { --k: 1.2; }
/* the place card and the pet menu */
:where([data-themed]) :is(.place-card, .pet-menu) {
  background: var(--t-card, var(--t-panel)); color: var(--t-card-ink, var(--ink)); border: var(--t-card-border, 1px solid var(--t-line)); border-radius: var(--t-card-radius, 22px);
  backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--t-card-lift, 0 24px 60px rgba(6,4,22,.35)); font-family: var(--t-font); text-shadow: none;
}
:where([data-themed]) .place-card .pc-title { font-family: var(--display); color: var(--t-card-title, inherit); }
:where([data-themed]) .place-card .eyebrow { color: var(--t-accent-text, var(--t-accent)); }
:where([data-themed]) .place-card :is(.pc-country, .pc-fact, .pc-show .t span) { color: var(--t-card-muted, var(--t-muted)); }
:where([data-themed]) .place-card .stat span, :where([data-themed]) .pet-menu b { color: var(--t-card-muted, var(--t-muted)); }
:where([data-themed]) .place-card .stats { border-color: var(--t-line); }
:where([data-themed]) .place-card .pc-show { background: var(--t-btn); border-color: var(--t-line); }
:where([data-themed]) :is(.place-card .btn, .pet-menu button) { color: inherit; background: var(--t-btn); border-color: var(--t-line); }
:where([data-themed]) :is(.place-card .btn, .pet-menu button):hover { background: var(--t-btn-hover, var(--t-btn)); }
:where([data-themed]) .place-card .btn.primary { background: var(--t-accent); color: var(--t-accent-ink); border-color: transparent; }

/* ====================================================================== 1 Refined glass */
[data-theme="glass"] {
  --t-ink: #fff; --t-muted: rgba(255,255,255,.7); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --t-text-shadow: 0 .2em 2.4em rgba(10,6,30,.35); --t-tw: 200; --t-dw: 250; --t-accent: #ffb38a; --t-accent-ink: #2a1530; --t-icon: #ffe3b0; --t-ring: rgba(255,255,255,.85);
  --t-glass: rgba(20,14,40,.45); --t-line: rgba(255,255,255,.15); --t-face: rgba(10,8,24,.18); --t-moon-dark: rgba(255,255,255,.12);
  --t-card: rgba(22,16,44,.86); --t-btn: rgba(255,255,255,.08); --t-btn-hover: rgba(255,255,255,.14);
}
[data-theme="glass"][data-theme-accent="rose"] { --t-accent: #ff8fab; }
[data-theme="glass"][data-theme-accent="sky"] { --t-accent: #8fd0ff; --t-accent-ink: #10243a; }
[data-theme="glass"][data-theme-accent="mint"] { --t-accent: #8fe0c0; --t-accent-ink: #0f2a22; }
[data-theme="glass"][data-theme-glass="smoky"] { --t-glass: rgba(14,10,30,.66); }
[data-theme="glass"] .w-time { font-size: 11.2em; letter-spacing: -.018em; }
[data-theme="glass"] .w-time small { font-size: .2em; margin-top: .1em; }
[data-theme="glass"] .w-date { margin-top: .6em; font-size: 1.7em; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .82; }
[data-theme="glass"] .w-date.big { font-size: 2.2em; }
[data-theme="glass"] .w-wx { font-size: 1.7em; gap: .55em; }
[data-theme="glass"] .w-wx b { font-family: var(--display); font-size: 1.76em; font-weight: 300; }
[data-theme="glass"] .w-wx span { opacity: .9; }
[data-theme="glass"] .w-chip { background: var(--t-glass); border: 1px solid rgba(255,255,255,.16); padding: 1em 1.8em 1em 1em; gap: 1.2em; }
[data-theme="glass"] .w-note { background: var(--t-glass); border: 1px solid rgba(255,255,255,.16); }
[data-theme="glass"] .w-swap { width: 3.4em; height: 3.4em; background: linear-gradient(135deg, var(--t-accent), #e0607a); color: #fff; }
[data-theme="glass"] .w-swap > svg:not(.ring) { width: 1.3em; height: 1.3em; }
[data-theme="glass"] .w-place b { font-size: 1.5em; font-weight: 600; }
[data-theme="glass"] .w-place span { font-size: 1.25em; }
[data-theme="glass"] .w-panel { background: var(--t-glass); border: 1px solid rgba(255,255,255,.14); border-radius: 1.8em; padding: 1.6em 1.8em; box-shadow: 0 2.4em 5em rgba(6,4,22,.3); text-shadow: none; }

/* ====================================================================== 2 Postcard */
[data-theme="postcard"] {
  --t-ink: #1f2c4a; --t-muted: #5a6480; --t-hand: #2a4a8a; --t-paper: #f7f3ec;
  --t-display: "Sitka Display", "Sitka Text", Georgia, serif; --t-font: "Sitka Text", Georgia, serif; --t-tw: 400; --t-dw: 400;
  --t-panel: var(--t-paper); --t-radius: .2em; --t-pad: 1.6em 2em 1.8em; --t-lift: 0 1em 3em rgba(20,10,40,.28);
  --t-accent: #c8344a; --t-accent-ink: #fff; --t-ui: #ff8a8a; --t-ui-ink: #2a1020; --t-icon: var(--t-hand); --t-ring: rgba(31,44,74,.6);
  --t-line: rgba(31,44,74,.16); --t-face: none; --t-moon-dark: rgba(31,44,74,.14);
  --t-card: var(--t-paper); --t-card-radius: 4px; --t-card-border: 0; --t-btn: rgba(31,44,74,.06); --t-btn-hover: rgba(31,44,74,.12); --t-card-lift: 0 18px 50px rgba(20,10,40,.35);
  --tilt: 1;
}
[data-theme="postcard"][data-theme-ink="sepia"] { --t-ink: #4a3424; --t-muted: #7a6450; --t-hand: #6a3a1a; --t-ring: rgba(74,52,36,.6); --t-line: rgba(74,52,36,.16); }
[data-theme="postcard"][data-theme-ink="green"] { --t-ink: #1f3d2e; --t-muted: #4f6a5a; --t-hand: #2a5a3a; --t-ring: rgba(31,61,46,.6); --t-line: rgba(31,61,46,.16); }
[data-theme="postcard"][data-theme-tilt="straight"] { --tilt: 0; }
[data-theme="postcard"] :where(.widget:not([data-type="place"])) > .w-body { transform: rotate(calc(var(--k) * var(--tilt) * 1.4deg)); }
[data-theme="postcard"] :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body::before { content: ""; position: absolute; inset: .6em; border: 1px solid var(--t-line); pointer-events: none; }
[data-theme="postcard"] .w-time { font-size: 8em; line-height: .95; letter-spacing: -.012em; }
[data-theme="postcard"] .w-time small { text-transform: lowercase; font-size: .25em; font-style: italic; letter-spacing: 0; opacity: 1; }
[data-theme="postcard"] .w-date { margin-top: .4em; font-size: 1.6em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--t-muted); }
[data-theme="postcard"] .w-date.big { margin: 0; font-size: 2em; color: var(--ink); }
[data-theme="postcard"] .w-analog { width: 10em; height: 10em; }
[data-theme="postcard"] .w-wx { font-size: 1.6em; }
[data-theme="postcard"] .w-wx b { font-size: 1.2em; font-weight: 400; }
[data-theme="postcard"] .w-wx span { opacity: 1; }
[data-theme="postcard"][data-theme-hand="on"] .widget[data-type="weather"] { font-family: "Ink Free", "Segoe Print", cursive; }
[data-theme="postcard"][data-theme-hand="on"] .widget[data-type="weather"]:not([style*="font-family"]) .w-wx { color: var(--t-hand); font-size: 1.9em; }
[data-theme="postcard"][data-theme-hand="on"] .widget[data-type="weather"] .w-wx b { font-family: inherit; }
[data-theme="postcard"][data-theme-hand="on"] .widget[data-type="weather"] .w-icon { display: none; }
[data-theme="postcard"] .widget[data-type="weather"] > .w-body { padding: 1.2em 2em; }
[data-theme="postcard"] .w-forecast b { font-weight: 400; }
[data-theme="postcard"] .w-count .cap, [data-theme="postcard"] .w-far .part { font-style: italic; }
/* airmail edging on the letters: countdowns, love notes and panels */
[data-theme="postcard"] :is(.widget:is([data-type="countdown"], [data-type="lovenote"], [data-type="todo"]) > .w-body, .w-panel) {
  border: .7em solid transparent; border-radius: 0;
  background: linear-gradient(var(--t-paper), var(--t-paper)) padding-box,
    repeating-linear-gradient(135deg, #c8344a 0 1em, var(--t-paper) 1em 1.6em, #2a4a8a 1.6em 2.6em, var(--t-paper) 2.6em 3.2em) border-box;
}
[data-theme="postcard"] .widget:is([data-type="countdown"], [data-type="lovenote"], [data-type="todo"]) > .w-body::before { display: none; }
/* the place: a stamp with the scene on it, perforated all round (drawn, with its shadow, in one image: a CSS mask or
   filter here would be composited again on every frame of the scene), and a postmark beside it */
[data-theme="postcard"] .widget[data-type="place"] .w-body { position: relative; }
[data-theme="postcard"] .w-chip {
  display: flex; flex-direction: column; align-items: stretch; gap: .5em; width: 19.6em; height: 19.2em; padding: 1.9em 2.2em 1.8em; border: 0; border-radius: 0; box-shadow: none; overflow: hidden;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 196 192'><defs><filter id='s' x='-20%' y='-20%' width='140%' height='140%'><feDropShadow dx='0' dy='7' stdDeviation='6' flood-color='%23140a28' flood-opacity='.32'/></filter></defs><path filter='url(%23s)' fill='%23f7f3ec' d='M13 10 L14.9 10.0 A3.8 3.8 0 0 0 22.5 10.0 L26.2 10.0 A3.8 3.8 0 0 0 33.8 10.0 L37.5 10.0 A3.8 3.8 0 0 0 45.1 10.0 L48.9 10.0 A3.8 3.8 0 0 0 56.5 10.0 L60.2 10.0 A3.8 3.8 0 0 0 67.8 10.0 L71.5 10.0 A3.8 3.8 0 0 0 79.1 10.0 L82.9 10.0 A3.8 3.8 0 0 0 90.5 10.0 L94.2 10.0 A3.8 3.8 0 0 0 101.8 10.0 L105.5 10.0 A3.8 3.8 0 0 0 113.1 10.0 L116.9 10.0 A3.8 3.8 0 0 0 124.5 10.0 L128.2 10.0 A3.8 3.8 0 0 0 135.8 10.0 L139.5 10.0 A3.8 3.8 0 0 0 147.1 10.0 L150.9 10.0 A3.8 3.8 0 0 0 158.5 10.0 L162.2 10.0 A3.8 3.8 0 0 0 169.8 10.0 L173.5 10.0 A3.8 3.8 0 0 0 181.1 10.0 L183 10 L183.0 12.1 A3.8 3.8 0 0 0 183.0 19.7 L183.0 23.8 A3.8 3.8 0 0 0 183.0 31.4 L183.0 35.5 A3.8 3.8 0 0 0 183.0 43.1 L183.0 47.2 A3.8 3.8 0 0 0 183.0 54.8 L183.0 58.9 A3.8 3.8 0 0 0 183.0 66.5 L183.0 70.6 A3.8 3.8 0 0 0 183.0 78.2 L183.0 82.3 A3.8 3.8 0 0 0 183.0 89.9 L183.0 94.1 A3.8 3.8 0 0 0 183.0 101.7 L183.0 105.8 A3.8 3.8 0 0 0 183.0 113.4 L183.0 117.5 A3.8 3.8 0 0 0 183.0 125.1 L183.0 129.2 A3.8 3.8 0 0 0 183.0 136.8 L183.0 140.9 A3.8 3.8 0 0 0 183.0 148.5 L183.0 152.6 A3.8 3.8 0 0 0 183.0 160.2 L183.0 164.3 A3.8 3.8 0 0 0 183.0 171.9 L183 174 L181.1 174.0 A3.8 3.8 0 0 0 173.5 174.0 L169.8 174.0 A3.8 3.8 0 0 0 162.2 174.0 L158.5 174.0 A3.8 3.8 0 0 0 150.9 174.0 L147.1 174.0 A3.8 3.8 0 0 0 139.5 174.0 L135.8 174.0 A3.8 3.8 0 0 0 128.2 174.0 L124.5 174.0 A3.8 3.8 0 0 0 116.9 174.0 L113.1 174.0 A3.8 3.8 0 0 0 105.5 174.0 L101.8 174.0 A3.8 3.8 0 0 0 94.2 174.0 L90.5 174.0 A3.8 3.8 0 0 0 82.9 174.0 L79.1 174.0 A3.8 3.8 0 0 0 71.5 174.0 L67.8 174.0 A3.8 3.8 0 0 0 60.2 174.0 L56.5 174.0 A3.8 3.8 0 0 0 48.9 174.0 L45.1 174.0 A3.8 3.8 0 0 0 37.5 174.0 L33.8 174.0 A3.8 3.8 0 0 0 26.2 174.0 L22.5 174.0 A3.8 3.8 0 0 0 14.9 174.0 L13 174 L13.0 171.9 A3.8 3.8 0 0 0 13.0 164.3 L13.0 160.2 A3.8 3.8 0 0 0 13.0 152.6 L13.0 148.5 A3.8 3.8 0 0 0 13.0 140.9 L13.0 136.8 A3.8 3.8 0 0 0 13.0 129.2 L13.0 125.1 A3.8 3.8 0 0 0 13.0 117.5 L13.0 113.4 A3.8 3.8 0 0 0 13.0 105.8 L13.0 101.7 A3.8 3.8 0 0 0 13.0 94.1 L13.0 89.9 A3.8 3.8 0 0 0 13.0 82.3 L13.0 78.2 A3.8 3.8 0 0 0 13.0 70.6 L13.0 66.5 A3.8 3.8 0 0 0 13.0 58.9 L13.0 54.8 A3.8 3.8 0 0 0 13.0 47.2 L13.0 43.1 A3.8 3.8 0 0 0 13.0 35.5 L13.0 31.4 A3.8 3.8 0 0 0 13.0 23.8 L13.0 19.7 A3.8 3.8 0 0 0 13.0 12.1 L13 10Z'/></svg>") 0 0 / 100% 100% no-repeat; transform: rotate(calc(var(--tilt) * 2deg));
  will-change: transform; /* its own layer: a tilted photo inside the overlay was redrawn on every frame of the scene */
}
[data-theme="postcard"] .w-chip::before { content: ""; order: -1; flex: none; height: 8.4em; background: var(--t-photo, linear-gradient(#e9a07a, #b8607a 55%, #46407a)) 62% 50% / cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
[data-theme="postcard"] .w-swap { position: absolute; right: 2.8em; top: 8.1em; width: 2.6em; height: 2.6em; background: var(--t-paper); color: var(--ink); box-shadow: 0 .2em .5em rgba(0,0,0,.2); }
[data-theme="postcard"] .w-swap > svg:not(.ring) { width: 1.1em; height: 1.1em; }
[data-theme="postcard"] .w-swap .ring { stroke: var(--t-paper); }
[data-theme="postcard"] .w-place { padding: 0 .2em; white-space: normal; overflow: hidden; }
[data-theme="postcard"] .w-place b { font-family: var(--display); font-size: 1.6em; font-weight: 400; }
[data-theme="postcard"] .w-place span { font-size: 1.15em; font-style: italic; line-height: 1.3; }
[data-theme="postcard"] .widget[data-type="place"] .w-body::after {
  content: ""; position: absolute; left: 14.6em; bottom: 6.2em; width: 17em; height: 8.5em; pointer-events: none; opacity: .62; transform: rotate(-12deg);
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><g fill='none' stroke='%231f2c4a' stroke-width='3'><circle cx='50' cy='50' r='45'/><circle cx='50' cy='50' r='35' stroke-width='1.4'/><path d='M104 32q12-9 24 0t24 0 24 0 24 0M104 50q12-9 24 0t24 0 24 0 24 0M104 68q12-9 24 0t24 0 24 0 24 0'/></g><text x='50' y='46' text-anchor='middle' font-family='Georgia' font-size='12' font-style='italic' fill='%231f2c4a'>par avion</text><path fill='%231f2c4a' d='M50 56l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6z'/></svg>") center / contain no-repeat;
}
[data-theme="postcard"][data-theme-ink="sepia"] .widget[data-type="place"] .w-body::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><g fill='none' stroke='%234a3424' stroke-width='3'><circle cx='50' cy='50' r='45'/><circle cx='50' cy='50' r='35' stroke-width='1.4'/><path d='M104 32q12-9 24 0t24 0 24 0 24 0M104 50q12-9 24 0t24 0 24 0 24 0M104 68q12-9 24 0t24 0 24 0 24 0'/></g><text x='50' y='46' text-anchor='middle' font-family='Georgia' font-size='12' font-style='italic' fill='%234a3424'>par avion</text><path fill='%234a3424' d='M50 56l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6z'/></svg>"); }
[data-theme="postcard"][data-theme-ink="green"] .widget[data-type="place"] .w-body::after { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'><g fill='none' stroke='%231f3d2e' stroke-width='3'><circle cx='50' cy='50' r='45'/><circle cx='50' cy='50' r='35' stroke-width='1.4'/><path d='M104 32q12-9 24 0t24 0 24 0 24 0M104 50q12-9 24 0t24 0 24 0 24 0M104 68q12-9 24 0t24 0 24 0 24 0'/></g><text x='50' y='46' text-anchor='middle' font-family='Georgia' font-size='12' font-style='italic' fill='%231f3d2e'>par avion</text><path fill='%231f3d2e' d='M50 56l2.4 5 5.4.6-4 3.7 1.1 5.3-4.9-2.7-4.9 2.7 1.1-5.3-4-3.7 5.4-.6z'/></svg>"); }
[data-theme="postcard"] .widget[data-type="place"][data-align="end"] .w-body::after { left: auto; right: 14.6em; }
[data-theme="postcard"] .w-note { background: var(--t-paper); border-radius: .2em; font-style: italic; color: var(--ink); }
[data-theme="postcard"] .w-panel { color: var(--ink); text-shadow: none; padding: 1.8em 2em; }

/* ====================================================================== 4 Horizon */
[data-theme="horizon"] {
  --t-ink: #fff; --t-muted: rgba(255,236,222,.82); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-text-shadow: 0 .1em 1.2em rgba(20,10,40,.5); --t-tw: 100; --t-dw: 200; --t-accent: #ffd6b0; --t-accent-ink: #3a1e2a; --t-icon: #ffe6d2; --t-ring: rgba(255,255,255,.9);
  --t-sky: linear-gradient(#fff 30%, #ffd6b0 70%, #ffb090); --t-under: #ffe6d2; --t-line: rgba(255,230,210,.35); --t-face: none; --t-moon-dark: rgba(255,255,255,.14);
  --t-card: rgba(18,12,36,.78); --t-card-radius: 6px; --t-card-border: 0; --t-btn: transparent; --t-btn-hover: rgba(255,255,255,.08);
}
[data-theme="horizon"][data-sky="night"] { --t-sky: linear-gradient(#fff 30%, #dcd8ff 70%, #b4acf0); --t-under: #e4e0ff; --t-accent: #dcd8ff; }
[data-theme="horizon"][data-theme-tint="white"] { --t-sky: linear-gradient(#fff, #fff); --t-under: #fff; }
[data-theme="horizon"] .w-time { position: relative; font-size: 13.5em; line-height: .8; letter-spacing: -.03em; background: var(--t-sky); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
[data-theme="horizon"] .widget[style*="--ink"] .w-time { background: none; color: var(--ink); }
[data-theme="horizon"] .w-time .colon { opacity: 1; }
[data-theme="horizon"] .w-time small { font-size: .14em; font-weight: 300; margin-top: .3em; opacity: 1; color: var(--t-under); -webkit-text-fill-color: var(--t-under); }
[data-theme="horizon"] .w-time .w-sec { color: var(--t-under); -webkit-text-fill-color: var(--t-under); }
[data-theme="horizon"][data-theme-line="on"] .widget[data-type="clock"] .w-time::after {
  content: ""; position: absolute; left: -.08em; top: calc(100% + .1em); width: 60vw; height: max(1px, .008em); pointer-events: none;
  background: linear-gradient(90deg, rgba(255,230,210,.8), rgba(255,230,210,0) 70%);
}
[data-theme="horizon"][data-theme-line="on"] .widget[data-type="clock"][data-align="end"] .w-time::after { left: auto; right: -.08em; background: linear-gradient(270deg, rgba(255,230,210,.8), rgba(255,230,210,0) 70%); }
[data-theme="horizon"][data-theme-line="on"] .widget[data-type="clock"][data-align="center"] .w-time::after { left: 50%; width: 80vw; transform: translateX(-50%); background: linear-gradient(90deg, rgba(255,230,210,0), rgba(255,230,210,.8), rgba(255,230,210,0)); }
[data-theme="horizon"] .w-date { margin-top: 1.8em; font-size: 1.5em; font-weight: 600; letter-spacing: .02em; text-transform: none; opacity: 1; color: var(--t-under); }
[data-theme="horizon"] .w-date.big { margin: 0; font-size: 2.2em; }
[data-theme="horizon"] .w-analog { width: 16em; height: 16em; }
[data-theme="horizon"] .w-analog line { stroke-width: 1.2; }
[data-theme="horizon"] .w-wx { font-size: 1.5em; gap: .6em; color: var(--t-under); }
[data-theme="horizon"] .w-wx b { font-size: 1em; font-weight: 600; }
[data-theme="horizon"] .w-wx span { opacity: .78; }
[data-theme="horizon"] .w-icon svg { width: 1.3em; height: 1.3em; }
[data-theme="horizon"] .w-chip { padding: 0; gap: 1.4em; background: none; border: 0; box-shadow: none; border-radius: 0; }
[data-theme="horizon"] .w-swap { width: 3em; height: 3em; background: none; border: max(1px, .12em) solid rgba(255,255,255,.8); color: #fff; }
[data-theme="horizon"] .w-place b { font-size: 2.2em; font-weight: 600; }
[data-theme="horizon"] .w-place span { font-size: 1.5em; color: #fff; opacity: .85; }
[data-theme="horizon"] .w-note { background: none; border: 0; padding: 0 0 .2em; color: var(--t-under); border-bottom: 1px solid var(--t-line); border-radius: 0; }
[data-theme="horizon"] :is(.w-count .big, .w-far b, .w-world b) { font-size: 4em; letter-spacing: -.02em; }
[data-theme="horizon"] .w-panel { padding: 1em 0; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }
[data-theme="horizon"] .place-card { border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35); }

/* ====================================================================== 6 Pebble */
[data-theme="pebble"] {
  --t-ink: #3a2440; --t-muted: rgba(58,36,64,.66); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 700; --t-dw: 700; --t-accent: #e0607a; --t-accent-ink: #fff; --t-icon: #e0607a; --t-ring: rgba(58,36,64,.5);
  --c1a: #ffe4d6; --c1b: #f6c4c4; --c2a: #e6defc; --c2b: #c8c0f0; --c3a: #fff2d8; --c3b: #ffd8a8; --c4a: #fff7f0; --c4b: #f2e2ec;
  --t-radius: 3.4em; --t-pad: 1.4em 2.8em 1.8em;
  --t-lift: 0 1.4em 3em rgba(60,20,60,.25), inset 0 .2em 0 rgba(255,255,255,.7), inset 0 -.6em 1.4em rgba(180,90,120,.18);
  --t-line: rgba(58,36,64,.12); --t-face: rgba(255,255,255,.3); --t-moon-dark: rgba(58,36,64,.14);
  --t-card: linear-gradient(160deg, #fff7f0, #f2e2ec); --t-card-radius: 26px; --t-card-border: 0; --t-btn: rgba(58,36,64,.07); --t-btn-hover: rgba(58,36,64,.12);
}
[data-theme="pebble"] .place-card .btn.primary { background: #3a2440; color: #fff7f0; }
[data-theme="pebble"][data-theme-tint="blush"] { --c2a: var(--c1a); --c2b: var(--c1b); --c3a: var(--c1a); --c3b: var(--c1b); --c4a: var(--c1a); --c4b: var(--c1b); }
[data-theme="pebble"][data-theme-tint="lilac"] { --c1a: #e6defc; --c1b: #c8c0f0; --c3a: #e6defc; --c3b: #c8c0f0; --c4a: #efeafe; --c4b: #d8d0f6; }
[data-theme="pebble"][data-theme-tint="peach"] { --c1a: #fff2d8; --c1b: #ffd8a8; --c2a: #fff2d8; --c2b: #ffd8a8; --c4a: #fff6e6; --c4b: #ffe2c0; }
[data-theme="pebble"] :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body { background: linear-gradient(160deg, var(--sa), var(--sb)); }
[data-theme="pebble"] .w-time { font-size: 8.6em; line-height: 1; letter-spacing: -.023em; }
[data-theme="pebble"] .w-time small { font-size: .22em; font-weight: 600; margin-top: .25em; opacity: 1; }
[data-theme="pebble"] .w-date { margin-top: .2em; font-size: 1.6em; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .7; }
[data-theme="pebble"] .widget:is([data-type="weather"], [data-type="date"], [data-type="worldclock"], [data-type="caption"], [data-type="phrase"]) > .w-body { border-radius: 999px; padding: 1em 2em; }
[data-theme="pebble"] .w-date.big { font-size: 1.8em; opacity: .9; }
[data-theme="pebble"] .w-wx { font-size: 1.6em; font-weight: 600; gap: .6em; }
[data-theme="pebble"] .w-wx b { font-size: 1.62em; font-weight: 700; }
[data-theme="pebble"] .w-wx span { opacity: 1; }
[data-theme="pebble"] .w-chip { background: linear-gradient(160deg, var(--sa), var(--sb)); padding: 1em 2.2em 1em 1em; gap: 1.2em; }
[data-theme="pebble"] .w-swap { width: 3.8em; height: 3.8em; background: radial-gradient(circle at 35% 35%, #ffb070, #e0607a); color: #fff; }
[data-theme="pebble"] .w-place b { font-size: 1.6em; font-weight: 700; }
[data-theme="pebble"] .w-place span { font-size: 1.25em; font-weight: 600; }
[data-theme="pebble"] .w-note { background: linear-gradient(160deg, var(--c4a), var(--c4b)); font-weight: 600; }
[data-theme="pebble"] .w-panel { background: linear-gradient(160deg, var(--c4a), var(--c4b)); border-radius: 2.6em; padding: 1.6em 2em; box-shadow: var(--t-lift); color: var(--ink); text-shadow: none; }

/* ====================================================================== Dog tag */
[data-theme="dogtag"] {
  --t-ink: #fff4e4; --t-muted: rgba(255,244,228,.78); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 700; --t-dw: 700; --t-accent: #e8b84e; --t-accent-ink: #5a3410; --t-icon: #ffd88a; --t-ring: rgba(255,244,228,.8);
  --m-hi: #fff1c2; --m: #e8b84e; --m-lo: #b4802a; --m-ink: #6a4210; --m-ink2: #7a5018; --en: transparent; --tag-ink: var(--m-ink); --tag-ink2: var(--m-ink2);
  --leather: linear-gradient(#a85a32, #8a4424);
  --t-panel: var(--leather); --t-radius: 1.2em; --t-pad: 1.6em 1.8em 1.5em;
  --t-lift: 0 1em 2.4em rgba(40,20,10,.35), inset 0 0 0 .4em #9a4e2c, inset 0 0 0 .5em rgba(255,220,180,.35);
  --t-line: rgba(255,226,190,.22); --t-face: none; --t-moon-dark: rgba(255,255,255,.14);
  --t-card: linear-gradient(#a85a32, #8a4424); --t-card-radius: 16px; --t-card-border: 0; --t-btn: rgba(60,20,8,.25); --t-btn-hover: rgba(60,20,8,.4);
  --t-card-lift: 0 18px 44px rgba(40,20,10,.45), inset 0 0 0 5px #9a4e2c, inset 0 0 0 6px rgba(255,220,180,.35);
}
[data-theme="dogtag"] .place-card .btn.primary { background: linear-gradient(#f2d070, #d8a840); color: #5a3410; }
[data-theme="dogtag"][data-theme-metal="silver"] { --m-hi: #ffffff; --m: #c9ced8; --m-lo: #8a93a3; --m-ink: #3a4250; --m-ink2: #4a5262; --t-accent: #d8dce4; --t-accent-ink: #2a3240; }
[data-theme="dogtag"][data-theme-metal="rose"] { --m-hi: #ffe8de; --m: #e8a890; --m-lo: #b06a5a; --m-ink: #6a2e24; --m-ink2: #7a3a2e; --t-accent: #f0b8a2; --t-accent-ink: #5a2418; }
[data-theme="dogtag"]:not([data-theme-enamel="none"]) { --tag-ink: #fff7e8; --tag-ink2: rgba(255,247,232,.85); }
[data-theme="dogtag"][data-theme-enamel="red"] { --en: #c8343a; }
[data-theme="dogtag"][data-theme-enamel="navy"] { --en: #24365e; }
[data-theme="dogtag"][data-theme-enamel="green"] { --en: #2f6a46; }
[data-theme="dogtag"][data-theme-enamel="pink"] { --en: #e87aa0; }
/* the leather collar's stitching on every panel */
[data-theme="dogtag"] :is(.widget:not([data-type="place"]):not([data-type="clock"]):not([data-type="worldclock"]):not([data-type="weather"]):not(:has(.w-panel)) > .w-body, .w-panel)::after {
  content: ""; position: absolute; inset: .9em; border: max(1px, .15em) dashed rgba(255,226,190,.55); border-radius: .7em; pointer-events: none;
}
[data-theme="dogtag"] .w-panel { background: var(--leather); border-radius: 1.2em; padding: 1.8em 2em; box-shadow: var(--t-lift); color: var(--ink); text-shadow: none; position: relative; }
/* the clock (and world clocks): a round tag on a split ring, with the name engraved under the date */
[data-theme="dogtag"] .widget:is([data-type="clock"], [data-type="worldclock"]) > .w-body {
  display: grid; place-content: center; justify-items: center; text-align: center; width: 15.5em; aspect-ratio: 1; padding: 1.9em 1.2em 1.2em; border-radius: 50%; color: var(--tag-ink);
  background: radial-gradient(circle, var(--en) 0 65%, transparent 65.5%), radial-gradient(circle at 35% 30%, var(--m-hi), var(--m) 45%, var(--m-lo));
  box-shadow: 0 1.2em 2.6em rgba(40,20,10,.35), inset 0 -.6em 1.2em rgba(120,70,10,.35), inset 0 .4em .8em rgba(255,255,255,.6);
}
[data-theme="dogtag"] .widget[data-type="worldclock"] > .w-body { width: 12em; padding: 1.8em 1em 1.1em; }
[data-theme="dogtag"] .widget:is([data-type="clock"], [data-type="worldclock"]) > .w-body::before {
  content: ""; position: absolute; left: 50%; top: .7em; width: 1.2em; height: 1.2em; margin-left: -.6em; border-radius: 50%; background: #5a3a1a; box-shadow: inset 0 .2em .3em rgba(0,0,0,.5);
}
[data-theme="dogtag"] .widget:is([data-type="clock"], [data-type="worldclock"])::before {
  content: ""; position: absolute; left: 50%; top: -1.8em; width: 2.6em; height: 2.6em; margin-left: -1.3em; border-radius: 50%; z-index: 1; pointer-events: none;
  border: .4em solid #c9ced8; box-shadow: 0 .2em .4em rgba(0,0,0,.35), inset 0 .1em .2em rgba(0,0,0,.25);
}
[data-theme="dogtag"] .widget[data-type="clock"] > .w-body::after { content: var(--t-name); margin-top: .5em; font-size: .85em; font-weight: 700; letter-spacing: .3em; color: var(--tag-ink); opacity: .55; }
[data-theme="dogtag"] .widget:is([data-type="clock"], [data-type="worldclock"]) .w-time,
[data-theme="dogtag"] .widget:is([data-type="clock"], [data-type="worldclock"]) .w-world b { color: var(--tag-ink); text-shadow: 0 1px 0 rgba(255,240,200,.75), 0 -1px 0 rgba(90,50,0,.35); }
[data-theme="dogtag"]:not([data-theme-enamel="none"]) .widget:is([data-type="clock"], [data-type="worldclock"]) :is(.w-time, .w-world b) { text-shadow: 0 .03em 0 rgba(0,0,0,.35); }
[data-theme="dogtag"] .w-time { font-size: 4.6em; line-height: 1; letter-spacing: -.016em; }
[data-theme="dogtag"] .w-time small { font-size: .26em; margin: .2em 0 0 .25em; opacity: .85; }
[data-theme="dogtag"] .w-time .w-sec { font-size: .32em; }
[data-theme="dogtag"] .widget[data-type="clock"] .w-date { margin-top: .3em; font-size: 1em; font-weight: 700; letter-spacing: .04em; opacity: 1; color: var(--tag-ink2); }
[data-theme="dogtag"] .widget[data-type="clock"] .w-analog { width: 9em; height: 9em; }
[data-theme="dogtag"] .widget[data-type="clock"] .w-analog line { stroke: var(--tag-ink); }
[data-theme="dogtag"] .widget[data-type="clock"] .w-analog .face { stroke: none; }
[data-theme="dogtag"] .widget[data-type="clock"] .w-analog .hub { fill: var(--tag-ink); }
[data-theme="dogtag"] .widget[data-type="clock"] .w-words { font-size: 1.8em; width: 7em; font-weight: 700; color: var(--tag-ink); }
[data-theme="dogtag"] .w-world b { font-size: 2.8em; }
[data-theme="dogtag"] .w-world span { margin-top: .3em; font-size: .9em; font-weight: 700; opacity: 1; color: var(--tag-ink2); }
[data-theme="dogtag"] .w-date.big { font-size: 1.6em; letter-spacing: .14em; font-weight: 700; }
/* the weather on a bone */
[data-theme="dogtag"] .widget[data-type="weather"] > .w-body {
  --bone: #f6eadc; display: flex; align-items: center; height: 4.4em; padding: 0 3.2em; border-radius: 0; box-shadow: none; color: #7a3030;
  background: radial-gradient(circle closest-side, var(--bone) 97%, transparent) 0 0 / 2.5em 2.5em no-repeat, radial-gradient(circle closest-side, var(--bone) 97%, transparent) 0 100% / 2.5em 2.5em no-repeat,
    radial-gradient(circle closest-side, var(--bone) 97%, transparent) 100% 0 / 2.5em 2.5em no-repeat, radial-gradient(circle closest-side, var(--bone) 97%, transparent) 100% 100% / 2.5em 2.5em no-repeat,
    linear-gradient(var(--bone), var(--bone)) center / calc(100% - 2.2em) 2.9em no-repeat;
}
[data-theme="dogtag"] .widget[data-type="weather"] .w-wx { font-size: 1.5em; font-weight: 700; gap: .4em; }
[data-theme="dogtag"] .widget[data-type="weather"] .w-wx b { font-size: 1em; font-weight: 800; }
[data-theme="dogtag"] .widget[data-type="weather"] .w-wx span { opacity: 1; }
[data-theme="dogtag"] .widget[data-type="weather"] .w-icon svg { width: 1.2em; height: 1.2em; color: #a85a32; }
/* the place by a heart */
[data-theme="dogtag"] .w-chip { padding: 0; gap: 1.2em; background: none; border: 0; box-shadow: none; text-shadow: 0 .1em 1em rgba(40,10,20,.6); }
[data-theme="dogtag"] .w-swap {
  width: 7em; height: 6.6em; margin: -.6em -.6em -.6em -.6em; border-radius: 0; color: #fff;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -6 74 72'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='5' stdDeviation='4' flood-color='%23280a14' flood-opacity='0.35'/></filter></defs><g filter='url(%23d)'><path fill='%23e0505a' stroke='%23fff' stroke-width='3' d='M29 50C8 36 3 26 3 17A13 13 0 0 1 29 11a13 13 0 0 1 26 6c0 9-5 19-26 33z'/></g></svg>") center / contain no-repeat;
}
[data-theme="dogtag"] .w-swap > svg:not(.ring) { width: 1.4em; height: 1.4em; margin-top: -.3em; }
[data-theme="dogtag"] .w-swap .ring { display: none; }
[data-theme="dogtag"] .w-place b { font-size: 1.7em; font-weight: 700; color: #fff; }
[data-theme="dogtag"] .w-place span { font-size: 1.3em; color: #fff; opacity: .88; }
[data-theme="dogtag"] .w-note { background: var(--leather); box-shadow: 0 .6em 1.4em rgba(40,20,10,.3); color: var(--ink); text-shadow: none; }

/* ====================================================================== Scrapbook */
[data-theme="scrapbook"] {
  --t-ink: #3a2a3a; --t-muted: #6a5a6a; --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Ink Free", "Segoe Print", "Bradley Hand", cursive;
  --t-tw: 800; --t-dw: 700; --t-accent: #e0507a; --t-accent-ink: #fff; --t-blue: #4a6aa0; --t-icon: var(--t-blue); --t-ring: rgba(255,255,255,.9);
  --t-sheet: #fff9f0; --t-rule: #d8e4f4;
  --t-paper: repeating-linear-gradient(var(--t-sheet) 0 2.7em, var(--t-rule) 2.7em 2.8em);
  --t-tape: repeating-linear-gradient(45deg, #f6a8c0 0 .8em, #fbd0de .8em 1.6em);
  --t-panel: var(--t-paper); --t-radius: 0; --t-pad: 2.2em 2.2em 1.8em; --t-lift: 0 1em 2.4em rgba(30,10,40,.3);
  --t-line: rgba(58,42,58,.14); --t-face: none; --t-moon-dark: rgba(58,42,58,.14);
  --t-card: var(--t-paper); --t-card-radius: 2px; --t-card-border: 0; --t-btn: rgba(58,42,58,.06); --t-btn-hover: rgba(58,42,58,.12); --t-card-lift: 0 18px 44px rgba(30,10,40,.35);
}
[data-theme="scrapbook"][data-theme-paper="grid"] { --t-paper: linear-gradient(90deg, var(--t-rule) 1px, transparent 1px) 0 0 / 2em 2em, linear-gradient(var(--t-rule) 1px, transparent 1px) 0 0 / 2em 2em, var(--t-sheet); }
[data-theme="scrapbook"][data-theme-paper="dotted"] { --t-paper: radial-gradient(circle, #c4d0e6 .13em, transparent .16em) 0 0 / 1.7em 1.7em, var(--t-sheet); }
[data-theme="scrapbook"][data-theme-tape="mint"] { --t-tape: repeating-linear-gradient(90deg, #a8d8c8 0 .6em, #cdeee2 .6em 1.2em); }
[data-theme="scrapbook"][data-theme-tape="dots"] { --t-tape: radial-gradient(circle, #fff .24em, transparent .28em) 0 0 / 1em 1em, #ffd36a; }
[data-theme="scrapbook"] :where(.widget:not([data-type="place"])) > .w-body { transform: rotate(calc(var(--k) * 2.2deg)); }
[data-theme="scrapbook"] :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body::before,
[data-theme="scrapbook"] .w-panel::before {
  content: ""; position: absolute; left: calc(50% - 4.8em); top: -1.2em; width: 9.6em; height: 2.6em; background: var(--t-tape); opacity: .88; transform: rotate(calc(var(--k) * -3deg - 1deg)); pointer-events: none;
}
[data-theme="scrapbook"] .w-time { font-size: 7.2em; line-height: .95; letter-spacing: -.028em; color: var(--t-accent); }
[data-theme="scrapbook"] .widget[style*="--ink"] .w-time { color: var(--ink); }
[data-theme="scrapbook"] .w-time .colon { opacity: 1; }
[data-theme="scrapbook"] .w-time small { font-family: var(--t-font); font-size: .33em; font-weight: 400; color: var(--ink); vertical-align: baseline; margin: 0 0 0 .2em; letter-spacing: 0; opacity: 1; }
[data-theme="scrapbook"] .w-date { margin-top: .3em; font-size: 2.1em; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-theme="scrapbook"] .w-analog { width: 9em; height: 9em; color: var(--t-accent); }
[data-theme="scrapbook"] .widget[data-type="weather"] > .w-body { padding: 1.4em 2em 1.2em; }
[data-theme="scrapbook"] .w-wx { font-size: 1.9em; color: var(--t-blue); gap: .4em; }
[data-theme="scrapbook"] .w-wx b { font-size: 1em; font-weight: 400; }
[data-theme="scrapbook"] .w-wx span { opacity: 1; }
[data-theme="scrapbook"] :is(.w-count .big, .w-far b, .w-world b) { color: var(--t-accent); }
[data-theme="scrapbook"] .w-forecast b { font-weight: 400; font-size: 1.5em; }
/* doodles by the clock: a heart, or on your special days a sticker for it */
[data-theme="scrapbook"] .widget[data-type="clock"] > .w-body::after {
  content: ""; position: absolute; left: calc(100% + 1em); top: 1.4em; width: 6em; height: 5.6em; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 56'><path fill='none' stroke='%23e0507a' stroke-width='3' stroke-linecap='round' d='M30 48C12 36 6 27 7 18c1-9 13-12 20-3 6-9 20-7 21 3 1 10-6 20-18 30z'/></svg>") center / contain no-repeat;
}
[data-theme="scrapbook"] .widget[data-type="clock"][data-align="end"] > .w-body::after { left: auto; right: calc(100% + 1em); }
[data-theme="scrapbook"][data-theme-stickers="on"][data-today="birthday"] .widget[data-type="clock"] > .w-body::after { width: 7em; height: 7em; top: .4em; background-image: var(--st-cake); }
[data-theme="scrapbook"][data-theme-stickers="on"][data-today="anniversary"] .widget[data-type="clock"] > .w-body::after { width: 7em; height: 7em; top: .4em; background-image: var(--st-heart); }
[data-theme="scrapbook"][data-theme-stickers="on"][data-today="adoption"] .widget[data-type="clock"] > .w-body::after { width: 7em; height: 7em; top: .4em; background-image: var(--st-paw); }
[data-theme="scrapbook"][data-theme-stickers="on"][data-today="other"] .widget[data-type="clock"] > .w-body::after { width: 7em; height: 7em; top: .4em; background-image: var(--st-star); }
/* the place: a polaroid of the scene, taped in */
[data-theme="scrapbook"] .widget[data-type="place"] .w-body { position: relative; }
[data-theme="scrapbook"] .w-chip { display: flex; flex-direction: column; align-items: stretch; gap: .6em; width: 18em; padding: .9em .9em 1.1em; border-radius: 0; background: #fff; box-shadow: 0 1em 2.2em rgba(30,10,40,.32); transform: rotate(3deg); will-change: transform; text-shadow: none; }
[data-theme="scrapbook"] .w-chip::before { content: ""; order: -1; height: 11.2em; background: var(--t-photo, linear-gradient(#bcd8f6, #f6c8dc)) 62% 46% / cover; }
[data-theme="scrapbook"] .w-chip::after { content: ""; position: absolute; left: 4.6em; top: -1.4em; width: 9em; height: 2.4em; transform: rotate(-6deg); opacity: .88; background: repeating-linear-gradient(90deg, #a8d8c8 0 .6em, #cdeee2 .6em 1.2em); }
[data-theme="scrapbook"][data-theme-tape="pink"] .w-chip::after { background: repeating-linear-gradient(90deg, #a8d8c8 0 .6em, #cdeee2 .6em 1.2em); }
[data-theme="scrapbook"][data-theme-tape="mint"] .w-chip::after, [data-theme="scrapbook"][data-theme-tape="dots"] .w-chip::after { background: var(--t-tape); }
[data-theme="scrapbook"] .w-swap { position: absolute; right: 1.5em; top: 1.5em; width: 2.6em; height: 2.6em; background: var(--t-accent); color: #fff; box-shadow: 0 .2em .5em rgba(0,0,0,.25); }
[data-theme="scrapbook"] .w-swap > svg:not(.ring) { width: 1.1em; height: 1.1em; }
[data-theme="scrapbook"] .w-place { padding: 0 .3em; white-space: normal; }
[data-theme="scrapbook"] .w-place b { font-size: 1.8em; font-weight: 400; text-transform: lowercase; }
[data-theme="scrapbook"] .w-place b::after { content: " \2661"; }
[data-theme="scrapbook"] .w-place span { font-size: 1.15em; line-height: 1.3; }
[data-theme="scrapbook"] .widget[data-type="place"] .w-body::after {
  content: ""; position: absolute; left: 20.5em; bottom: 9.5em; width: 8em; height: 4em; pointer-events: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 40'><path fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' d='M4 30c10-18 20-18 26-6s16 10 22-6 18-10 24-2'/></svg>") center / contain no-repeat;
}
[data-theme="scrapbook"] .widget[data-type="place"][data-align="end"] .w-body::after { left: auto; right: 20.5em; }
[data-theme="scrapbook"] .w-note { background: var(--t-sheet); border-radius: 0; color: var(--ink); transform: rotate(-1deg); box-shadow: 0 .4em 1em rgba(30,10,40,.25); }
[data-theme="scrapbook"] .w-panel { padding: 1.6em 1.8em 1.6em 4.4em; color: var(--ink); text-shadow: none;
  background: linear-gradient(90deg, transparent 3.2em, #f0a0b0 3.2em 3.4em, transparent 3.4em), var(--t-paper); }

/* ====================================================================== Cloud nine */
[data-theme="cloud"] {
  --t-ink: #4a3a7a; --t-muted: #8a7ac0; --t-strong: #5a46a8; --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 600; --t-dw: 600; --t-accent: #5a46a8; --t-accent-ink: #fbf8ff; --t-ui: #b4a4f4; --t-ui-ink: #241a4a; --t-icon: #8a7ac0; --t-ring: rgba(90,70,168,.55);
  --cloud: #fbf8ff; --cloud2: #e8e2ff; --cloud-low: #f3ecfb;
  --t-panel: linear-gradient(var(--cloud) 40%, var(--cloud-low)); --t-radius: 6em; --t-pad: 2.6em 3em; --t-lift: 0 1.6em 3em rgba(60,40,120,.28);
  --t-line: rgba(74,58,122,.14); --t-face: rgba(90,70,168,.06); --t-moon-dark: rgba(90,70,168,.14);
  --t-card: var(--cloud); --t-card-radius: 40px; --t-card-border: 0; --t-btn: rgba(90,70,168,.08); --t-btn-hover: rgba(90,70,168,.14); --t-card-lift: 0 24px 50px rgba(60,40,120,.3);
}
[data-theme="cloud"][data-theme-clouds="storm"] {
  --t-ink: #eef0f8; --t-muted: #c4c8da; --t-strong: #fff; --t-accent: #ffe9a8; --t-accent-ink: #3a3f52; --t-ui: #ffe9a8; --t-ui-ink: #3a3f52; --t-icon: #ffe9a8; --t-ring: rgba(255,255,255,.7);
  --cloud: #7c8298; --cloud2: #646a80; --cloud-low: #646a80; --t-lift: 0 1.6em 3em rgba(20,24,40,.4);
  --t-line: rgba(255,255,255,.16); --t-face: rgba(255,255,255,.06); --t-moon-dark: rgba(255,255,255,.14); --t-btn: rgba(255,255,255,.08); --t-btn-hover: rgba(255,255,255,.14);
}
[data-theme="cloud"] .place-card .pc-title { color: var(--t-strong); }
/* puffs on top of every cloud; they sit over the cloud's own fill and under its words */
[data-theme="cloud"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip) { isolation: isolate; }
[data-theme="cloud"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::before,
[data-theme="cloud"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::after {
  content: ""; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; background: var(--puff, var(--cloud)); pointer-events: none;
}
[data-theme="cloud"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::before { left: 12%; bottom: 52%; width: min(36%, 11em); box-shadow: -.45em 1.2em 0 -.2em var(--puff, var(--cloud)); }
[data-theme="cloud"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::after { left: 40%; bottom: 44%; width: min(46%, 14em); }
[data-theme="cloud"] .widget:is([data-type="weather"], [data-type="date"]) { --puff: var(--cloud2); }
[data-theme="cloud"] .widget:is([data-type="weather"], [data-type="date"]) > .w-body { background: var(--cloud2); border-radius: 999px; padding: 1.2em 2.2em; }
[data-theme="cloud"] .widget:is([data-type="weather"], [data-type="date"]) > .w-body::before { left: 14%; bottom: 40%; width: min(26%, 4.6em); box-shadow: none; }
[data-theme="cloud"] .widget:is([data-type="weather"], [data-type="date"]) > .w-body::after { left: 34%; bottom: 36%; width: min(32%, 5.8em); }
[data-theme="cloud"] .w-chip::before { left: 12%; bottom: 46%; width: min(26%, 5.4em); box-shadow: none; }
[data-theme="cloud"] .w-chip::after { left: 30%; bottom: 40%; width: min(32%, 7em); }
[data-theme="cloud"] .w-time { font-size: 8em; line-height: .9; letter-spacing: -.025em; color: var(--t-strong); }
[data-theme="cloud"] .widget[style*="--ink"] .w-time { color: var(--ink); }
[data-theme="cloud"] .w-time small { font-size: .23em; color: var(--t-muted); opacity: 1; }
[data-theme="cloud"] .w-date { margin-top: .4em; font-size: 1.5em; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--t-muted); }
[data-theme="cloud"] .w-date.big { font-size: 1.7em; color: var(--ink); }
[data-theme="cloud"] .w-wx { font-size: 1.5em; font-weight: 600; gap: .5em; }
[data-theme="cloud"] .w-wx b { font-size: 1.6em; color: var(--t-strong); font-weight: 600; }
[data-theme="cloud"] .w-wx span { opacity: 1; }
[data-theme="cloud"] :is(.w-count .big, .w-far b, .w-world b, .w-forecast b) { color: var(--t-strong); }
[data-theme="cloud"] .w-chip { background: linear-gradient(var(--cloud) 40%, var(--cloud-low)); border-radius: 999px; padding: 1.4em 2.6em 1.4em 1.4em; gap: 1.2em; }
[data-theme="cloud"] .w-swap { width: 3em; height: 3em; }
[data-theme="cloud"] .w-place b { font-size: 1.7em; font-weight: 700; color: var(--t-strong); }
[data-theme="cloud"] .w-place span { font-size: 1.3em; font-weight: 600; }
[data-theme="cloud"] .w-note { background: var(--cloud2); color: var(--ink); }
[data-theme="cloud"] .w-panel { background: linear-gradient(var(--cloud) 40%, var(--cloud-low)); border-radius: 4em; padding: 2em 2.4em; box-shadow: var(--t-lift); color: var(--ink); text-shadow: none; }
/* a sleepy moon and little stars by the clock, at night (or always) */
[data-theme="cloud"] .widget[data-type="clock"]::after {
  content: ""; position: absolute; left: calc(100% + .6em); top: -1.8em; width: 12em; height: 12em; pointer-events: none; display: none;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'><g fill='%23fff7c0'><path d='M30 70l1.6 5.4 5.4 1.6-5.4 1.6-1.6 5.4-1.6-5.4-5.4-1.6 5.4-1.6z'/><path d='M96 20l1.2 3.8 3.8 1.2-3.8 1.2-1.2 3.8-1.2-3.8-3.8-1.2 3.8-1.2z'/><path d='M104 86l1.4 4.6 4.6 1.4-4.6 1.4-1.4 4.6-1.4-4.6-4.6-1.4 4.6-1.4z'/><path d='M14 26l1 3 3 1-3 1-1 3-1-3-3-1 3-1z'/></g><path fill='%23fff4b8' d='M70 24a24 24 0 1 0 14 34A20 20 0 0 1 70 24z'/><circle cx='54' cy='48' r='2.2' fill='%235a46a8'/><path d='M60 55q3 3 6 0' stroke='%235a46a8' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") center / contain no-repeat;
}
[data-theme="cloud"] .widget[data-type="clock"][data-align="end"]::after { left: auto; right: calc(100% + .6em); }
[data-theme="cloud"]:is([data-sky="night"], [data-sky="dusk"], [data-theme-moon="always"]) .widget[data-type="clock"]::after { display: block; }

/* ====================================================================== Cozy knit */
[data-theme="knit"] {
  --t-ink: #fff8ec; --t-muted: rgba(255,248,236,.86); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 700; --t-dw: 700; --t-accent: #e8b878; --t-accent-ink: #4a2a10; --t-icon: #ffe3b0; --t-ring: rgba(255,248,236,.8); --t-shade: rgba(60,20,10,.4);
  --c1: #c8483a; --c2: #d89a2a; --c3: #3a6a4a; --c4: #5a4a7a;
  --t-radius: 1.6em; --t-pad: 2em 3em 2.2em; --t-lift: 0 1.2em 2.6em rgba(40,20,10,.35);
  --knit: linear-gradient(135deg, rgba(255,255,255,.14) 25%, transparent 25%) 0 0 / 1.2em 1.6em, linear-gradient(225deg, rgba(255,255,255,.14) 25%, transparent 25%) .6em 0 / 1.2em 1.6em,
    linear-gradient(315deg, rgba(0,0,0,.12) 25%, transparent 25%) .6em -.8em / 1.2em 1.6em, linear-gradient(45deg, rgba(0,0,0,.12) 25%, transparent 25%) 0 -.8em / 1.2em 1.6em;
  --t-line: rgba(255,248,236,.2); --t-face: rgba(0,0,0,.08); --t-moon-dark: rgba(255,255,255,.16);
  --t-card: #5a4a7a; --t-card-radius: 20px; --t-card-border: 0; --t-btn: rgba(0,0,0,.18); --t-btn-hover: rgba(0,0,0,.28);
}
[data-theme="knit"][data-theme-yarn="nordic"] { --c1: #24365e; --c2: #a83238; --c3: #2f4a3a; --c4: #4a5a6e; --t-card: #24365e; --t-accent: #f0e6d0; --t-accent-ink: #24365e; }
[data-theme="knit"][data-theme-yarn="pastel"] { --c1: #e48a9c; --c2: #e0ae52; --c3: #6aa890; --c4: #9484c8; --t-card: #9484c8; --t-shade: rgba(80,40,60,.35); }
[data-theme="knit"][data-theme-stitch="rib"] { --knit: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 .35em, rgba(0,0,0,.12) .35em .7em); }
[data-theme="knit"][data-theme-stitch="moss"] { --knit: radial-gradient(circle, rgba(255,255,255,.17) .16em, transparent .22em) 0 0 / .8em .8em, radial-gradient(circle, rgba(0,0,0,.15) .16em, transparent .22em) .4em .4em / .8em .8em; }
[data-theme="knit"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip, .w-note) { background: var(--knit), var(--sc); }
[data-theme="knit"] .place-card { background: var(--knit), var(--t-card); }
/* stitched edges, and a scarf's stripes in winter */
[data-theme="knit"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::after {
  content: ""; position: absolute; inset: .8em; border: .2em dashed rgba(255,248,236,.55); border-radius: 1em; pointer-events: none;
}
[data-theme="knit"][data-season="winter"][data-theme-scarf="on"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2.2em, rgba(255,248,236,.32) 2.2em 3em, transparent 3em 3.6em, rgba(0,0,0,.14) 3.6em 4.2em);
}
[data-theme="knit"] .widget { text-shadow: 0 .2em 0 var(--t-shade); }
[data-theme="knit"] .w-time { font-size: 8.4em; line-height: .95; letter-spacing: -.024em; text-shadow: 0 .036em 0 var(--t-shade); }
[data-theme="knit"] .w-time small { font-size: .22em; opacity: 1; margin-top: .25em; }
[data-theme="knit"] .w-date { margin-top: .2em; font-size: 1.6em; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .92; }
[data-theme="knit"] .widget:is([data-type="weather"], [data-type="date"]) > .w-body { padding: 1.4em 2.4em; }
[data-theme="knit"] .w-wx { font-size: 1.6em; font-weight: 600; gap: .6em; }
[data-theme="knit"] .w-wx b { font-size: 1.62em; font-weight: 800; }
[data-theme="knit"] .w-wx span { opacity: 1; }
[data-theme="knit"] .w-chip { padding: 1.6em 2.6em 1.6em 1.6em; gap: 1.2em; border-radius: 1.6em; }
/* the swap is a wooden button */
[data-theme="knit"] .w-swap {
  width: 3.6em; height: 3.6em; color: transparent;
  background: radial-gradient(circle, #5a3a1a .16em, transparent .2em) calc(50% - .45em) calc(50% - .45em) / .9em .9em no-repeat, radial-gradient(circle, #5a3a1a .16em, transparent .2em) calc(50% + .45em) calc(50% - .45em) / .9em .9em no-repeat,
    radial-gradient(circle, #5a3a1a .16em, transparent .2em) calc(50% - .45em) calc(50% + .45em) / .9em .9em no-repeat, radial-gradient(circle, #5a3a1a .16em, transparent .2em) calc(50% + .45em) calc(50% + .45em) / .9em .9em no-repeat,
    radial-gradient(circle at 40% 35%, #e8b878, #a86a3a 70%);
  box-shadow: inset 0 0 0 .3em rgba(90,50,20,.35), 0 .3em .5em rgba(40,20,10,.3);
}
[data-theme="knit"] .w-place b { font-size: 1.7em; }
[data-theme="knit"] .w-place span { font-size: 1.3em; }
[data-theme="knit"] .w-note { border-radius: 999px; color: var(--ink); }
[data-theme="knit"] .w-panel { border-radius: 1.6em; padding: 2em 2.4em; box-shadow: var(--t-lift); color: var(--ink); position: relative; }

/* ====================================================================== Garden */
[data-theme="garden"] {
  --t-ink: #2f4a34; --t-muted: #6a8a6e; --t-strong: #2f5a3a; --t-blush: #d8708a; --t-display: "Sitka Display", "Sitka Text", Georgia, serif; --t-font: "Sitka Text", Georgia, serif;
  --t-tw: 400; --t-dw: 400; --t-accent: #2f5a3a; --t-accent-ink: #f3f7ee; --t-ui: #9ed49a; --t-ui-ink: #1c3a22; --t-icon: #d8708a; --t-ring: rgba(47,90,58,.55);
  --t-panel: #f3f7ee; --t-radius: 4.6em .6em 4.6em .6em; --t-pad: 2em 3.4em 2.2em 3em; --t-lift: 0 1.2em 2.6em rgba(30,50,30,.3);
  --t-line: rgba(47,74,52,.14); --t-face: rgba(122,170,90,.08); --t-moon-dark: rgba(47,74,52,.12);
  --t-card: #f3f7ee; --t-card-radius: 40px 8px 40px 8px; --t-card-border: 0; --t-btn: rgba(47,90,58,.07); --t-btn-hover: rgba(47,90,58,.13); --t-card-lift: 0 20px 44px rgba(30,50,30,.32);
}
[data-theme="garden"] .w-time { font-size: 8.2em; line-height: .95; color: var(--t-strong); }
[data-theme="garden"] .widget[style*="--ink"] .w-time { color: var(--ink); }
[data-theme="garden"] .w-time .colon { opacity: 1; }
[data-theme="garden"] .w-time small { font-size: .24em; font-style: italic; color: var(--t-blush); opacity: 1; }
[data-theme="garden"] .w-date { margin-top: .3em; font-size: 1.7em; font-style: italic; font-weight: 400; letter-spacing: 0; text-transform: none; opacity: 1; color: #4a6a4e; }
[data-theme="garden"] .w-date.big { color: var(--ink); }
[data-theme="garden"] .widget[data-type="clock"]::before {
  content: ""; position: absolute; left: -1.8em; top: -2.2em; width: 36em; height: 24em; z-index: 1; pointer-events: none; background: var(--t-vine) 0 0 / 100% 100% no-repeat;
}
[data-theme="garden"] .widget[data-type="clock"][data-align="end"]::before { left: auto; right: -1.8em; transform: scaleX(-1); }
[data-theme="garden"] .widget:is([data-type="weather"], [data-type="date"]) > .w-body { background: #fbe8ec; border-radius: 999px; padding: 1.2em 2.2em; color: #8a3a54; }
[data-theme="garden"] .w-wx { font-size: 1.6em; gap: .6em; }
[data-theme="garden"] .w-wx b { font-family: var(--display); font-size: 1.62em; font-weight: 400; }
[data-theme="garden"] .w-wx span { opacity: 1; font-family: "Sitka Text", Georgia, serif; }
[data-theme="garden"] .w-icon svg { color: #d8708a; }
[data-theme="garden"] :is(.w-count .big, .w-far b, .w-world b) { color: var(--t-strong); }
[data-theme="garden"] .w-chip { border-radius: .6em 4em .6em 4em; padding: 1.4em 2.4em 1.4em 1.6em; gap: 1.2em; background: #f3f7ee; }
[data-theme="garden"] .w-swap { width: 3.6em; height: 3.6em; background: var(--t-flower) center / contain no-repeat; color: transparent; }
[data-theme="garden"] .w-swap .ring { stroke: rgba(47,90,58,.4); }
[data-theme="garden"] .w-place b { font-family: var(--display); font-size: 1.9em; font-weight: 400; }
[data-theme="garden"] .w-place span { font-family: "Segoe UI", sans-serif; font-size: 1.3em; }
[data-theme="garden"] .w-note { background: #fbe8ec; color: #8a3a54; }
[data-theme="garden"] .w-panel { background: #f3f7ee; border-radius: 3em .6em 3em .6em; padding: 2em 2.4em; box-shadow: var(--t-lift); color: var(--ink); text-shadow: none; font-family: "Segoe UI Variable Text", "Segoe UI", sans-serif; }

/* ====================================================================== Gummy */
[data-theme="gummy"] {
  --t-ink: #fff; --t-muted: rgba(255,255,255,.92); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 900; --t-dw: 900; --t-accent: #ffc020; --t-accent-ink: #6a3a00; --t-ui: #ff6f9a; --t-ui-ink: #fff; --t-icon: #fff; --t-ring: rgba(255,255,255,.85);
  --c1: #ff4f86; --c2: #52c84a; --c3: #9a5aff; --c4: #ff9a2a; --sugar: .55;
  --t-radius: 999px; --t-pad: 1.2em 2.4em;
  --t-line: rgba(255,255,255,.22); --t-face: rgba(255,255,255,.12); --t-moon-dark: rgba(0,0,0,.15);
  --t-card: radial-gradient(120% 120% at 30% 25%, #ffb0c8, #ff4f86 45%, #c2245a); --t-card-radius: 34px; --t-card-border: 0; --t-btn: rgba(255,255,255,.18); --t-btn-hover: rgba(255,255,255,.28);
  --t-card-lift: 0 14px 0 -6px #c2245a, 0 24px 44px rgba(60,0,30,.4);
}
[data-theme="gummy"][data-theme-bag="sour"] { --c1: #9ad82a; --c2: #ffcf2a; --c3: #ff4fa3; --c4: #2ab4ff; --sugar: .9; --t-card: radial-gradient(120% 120% at 30% 25%, #e0ff9a, #9ad82a 45%, #5a8a10); --t-card-lift: 0 14px 0 -6px #5a8a10, 0 24px 44px rgba(20,40,0,.4); }
[data-theme="gummy"][data-theme-bag="tropical"] { --c1: #ff8a2a; --c2: #f4c81a; --c3: #ff5a78; --c4: #1ec0a8; --t-card: radial-gradient(120% 120% at 30% 25%, #ffd0a0, #ff8a2a 45%, #c0560a); --t-card-lift: 0 14px 0 -6px #c0560a, 0 24px 44px rgba(60,20,0,.4); }
[data-theme="gummy"][data-theme-bag="cola"] { --c1: #9a4a22; --c2: #c8802a; --c3: #6e2c16; --c4: #e0a040; --sugar: .4; --t-card: radial-gradient(120% 120% at 30% 25%, #e0a070, #9a4a22 45%, #5a2410); --t-card-lift: 0 14px 0 -6px #5a2410, 0 24px 44px rgba(40,10,0,.45); }
[data-theme="gummy"] .widget { --hi: color-mix(in srgb, var(--sc) 42%, #fff); --lo: color-mix(in srgb, var(--sc) 74%, #000); --mid: color-mix(in srgb, var(--sc) 88%, #000); text-shadow: 0 .2em 0 var(--lo); }
[data-theme="gummy"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip, .w-note) {
  isolation: isolate; border-radius: 999px; background: radial-gradient(120% 120% at 30% 25%, var(--hi) 0%, var(--sc) 45%, var(--lo) 100%);
  box-shadow: 0 1.6em 0 -.6em var(--lo), 0 2.2em 3em rgba(60,0,30,.35), inset 0 -.8em 1.6em rgba(0,0,0,.18);
}
[data-theme="gummy"] :is(.widget[data-type="clock"] > .w-body, :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body:has(.w-forecast, .w-far, .w-moon, .w-count), .w-panel) { border-radius: 4.6em; }
[data-theme="gummy"] .widget[data-type="clock"] > .w-body { padding: 2em 3.4em 2.6em; }
/* the hard highlight and the sugar on top */
[data-theme="gummy"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::before {
  content: ""; position: absolute; left: 12%; top: .5em; width: 30%; height: .7em; border-radius: 99px; background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.55)); pointer-events: none;
}
[data-theme="gummy"] :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel, .w-chip)::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.6em; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; pointer-events: none; z-index: -1; opacity: var(--sugar);
  background-image: radial-gradient(circle, rgba(255,255,255,.95) 0 .11em, transparent .16em), radial-gradient(circle, rgba(255,255,255,.7) 0 .09em, transparent .14em);
  background-size: 1.3em 1.1em, 1.7em 1.5em; background-position: 0 0, .6em .5em;
}
[data-theme="gummy"] .w-time { font-size: 9.6em; line-height: .95; letter-spacing: -.021em; text-shadow: 0 .021em 0 var(--hi), 0 .042em 0 var(--mid), 0 .0625em 0 var(--lo), 0 .094em .125em rgba(90,0,30,.4); }
[data-theme="gummy"] .w-time .colon { opacity: 1; }
[data-theme="gummy"] .w-time small { font-size: .23em; opacity: 1; margin-top: .2em; text-shadow: 0 .09em 0 var(--lo); }
[data-theme="gummy"] .w-date { margin-top: .2em; font-size: 1.7em; font-weight: 800; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-theme="gummy"] .w-wx { font-size: 1.6em; font-weight: 800; gap: .6em; }
[data-theme="gummy"] .w-wx b { font-size: 1.75em; font-weight: 900; }
[data-theme="gummy"] .w-wx span { opacity: 1; }
[data-theme="gummy"] :is(.w-count .big, .w-far b, .w-world b) { text-shadow: 0 .04em 0 var(--mid), 0 .07em 0 var(--lo); }
[data-theme="gummy"] .w-chip { padding: 1.2em 2.6em 1.2em 1.2em; gap: 1.2em; }
[data-theme="gummy"] .w-chip > * { position: relative; z-index: 1; }
[data-theme="gummy"] .w-swap { width: 4.2em; height: 4.2em; background: radial-gradient(circle at 35% 30%, #fff8b0, #ffc020 55%, #e08010); color: #7a4400; box-shadow: 0 .4em 0 #c06a10; text-shadow: none; }
[data-theme="gummy"] .w-place b { font-size: 1.7em; font-weight: 900; }
[data-theme="gummy"] .w-place span { font-size: 1.3em; font-weight: 800; color: #fff; }
[data-theme="gummy"] .w-note { color: #fff; font-weight: 800; }
[data-theme="gummy"] .w-panel { padding: 2em 2.2em 2.2em; color: #fff; }
/* a gummy bear sits on the clock, and dozes off at night */
[data-theme="gummy"] .widget[data-type="clock"]::after {
  content: ""; position: absolute; right: -.6em; top: -2.6em; width: 3.4em; height: 4.8em; pointer-events: none;
  background: var(--bear) center / contain no-repeat;
  --bear: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 48'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='3' stdDeviation='0' flood-color='%23783200' flood-opacity='0.35'/></filter></defs><g filter='url(%23d)'><g fill='%23ffcf3a'><circle cx='8' cy='7' r='5'/><circle cx='26' cy='7' r='5'/><circle cx='17' cy='14' r='10'/><ellipse cx='17' cy='31' rx='11' ry='12'/><circle cx='6' cy='24' r='4'/><circle cx='28' cy='24' r='4'/><circle cx='9' cy='40' r='4.5'/><circle cx='25' cy='40' r='4.5'/></g><circle cx='13' cy='12' r='1.5' fill='%237a4a00'/><circle cx='21' cy='12' r='1.5' fill='%237a4a00'/><ellipse cx='17' cy='17' rx='3' ry='2' fill='%23e09a10'/><ellipse cx='12' cy='9' rx='3' ry='1.5' fill='%23fff7c8' opacity='.8'/></g></svg>");
}
[data-theme="gummy"][data-theme-doze="on"]:is([data-sky="night"]) .widget[data-type="clock"]::after {
  width: 5.4em; right: -2.4em;
  --bear: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 48'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='3' stdDeviation='0' flood-color='%23783200' flood-opacity='0.35'/></filter></defs><g filter='url(%23d)'><g fill='%23ffcf3a'><circle cx='8' cy='9' r='5'/><circle cx='26' cy='9' r='5'/><circle cx='17' cy='16' r='10'/><ellipse cx='17' cy='32' rx='11' ry='11'/><circle cx='6' cy='27' r='4'/><circle cx='28' cy='27' r='4'/><circle cx='9' cy='40' r='4.5'/><circle cx='25' cy='40' r='4.5'/></g><path d='M11 14q2 2 4 0M19 14q2 2 4 0' stroke='%237a4a00' stroke-width='1.4' fill='none' stroke-linecap='round'/><ellipse cx='17' cy='19' rx='3' ry='2' fill='%23e09a10'/><ellipse cx='12' cy='11' rx='3' ry='1.5' fill='%23fff7c8' opacity='.8'/><g fill='%23fff' font-family='Segoe UI' font-weight='800'><text x='33' y='12' font-size='9'>z</text><text x='40' y='6' font-size='7'>z</text><text x='46' y='2' font-size='5'>z</text></g></g></svg>");
}
[data-theme="gummy"] .widget[data-type="clock"][data-align="end"]::after { right: auto; left: -.6em; }

/* ====================================================================== Sticker sheet */
[data-theme="sticker"] {
  --t-ink: #2a2440; --t-muted: rgba(42,36,64,.75); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 900; --t-dw: 900; --t-accent: #2a2440; --t-accent-ink: #fff; --t-ui: #ffe14a; --t-ui-ink: #2a2440; --t-icon: currentColor; --t-ring: rgba(255,255,255,.85);
  --c1: #ffe14a; --c2: #6ad0ff; --c3: #ff7aa8; --c4: #b8f0c8; --c3i: #fff; --mess: 1;
  --t-panel-border: .6em solid #fff; --t-radius: 2.4em; --t-pad: 1.4em 2.4em; --t-lift: 0 .8em 1.6em rgba(30,20,60,.3);
  --t-line: rgba(42,36,64,.14); --t-face: rgba(255,255,255,.3); --t-moon-dark: rgba(42,36,64,.16);
  --t-card: #b8f0c8; --t-card-border: 6px solid #fff; --t-card-radius: 26px; --t-btn: rgba(42,36,64,.08); --t-btn-hover: rgba(42,36,64,.14); --t-card-lift: 0 14px 30px rgba(30,20,60,.35);
}
[data-theme="sticker"][data-theme-colours="pastel"] { --c1: #fff0a0; --c2: #c4e8ff; --c3: #ffc4da; --c4: #d4f6dc; --c3i: var(--ink); --t-card: #d4f6dc; }
[data-theme="sticker"][data-theme-colours="retro"] { --c1: #ffa03a; --c2: #2fb0a0; --c3: #e0507a; --c4: #6a5ad0; --c2i: #fff; --c4i: #fff; --t-card: #ffa03a; }
[data-theme="sticker"][data-theme-mess="neat"] { --mess: 0; }
[data-theme="sticker"][data-theme-mess="messy"] { --mess: 2.4; }
[data-theme="sticker"] :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body { background: var(--sc); }
[data-theme="sticker"] .widget { color: var(--si); }
[data-theme="sticker"] .widget[style*="--ink"] { color: var(--ink); }
[data-theme="sticker"] :is(.widget:not([data-type="place"]) > .w-body, .w-chip) { transform: rotate(calc(var(--k) * var(--mess) * 2.4deg)); }
[data-theme="sticker"] .widget[data-type="clock"] > .w-body { border-radius: 2.8em; padding: 1.6em 2.8em 2em; }
[data-theme="sticker"] .widget:is([data-type="weather"], [data-type="date"], [data-type="caption"], [data-type="phrase"]) > .w-body { border-radius: 999px; padding: 1em 2em; }
/* one corner peeling up on the clock */
[data-theme="sticker"] .widget[data-type="clock"] > .w-body::after {
  content: ""; position: absolute; right: -.6em; bottom: -.6em; width: 3.8em; height: 3.8em; border-radius: 0 0 2.2em 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, #e8e4f0 50%, #fff 75%); box-shadow: -.3em -.3em .6em rgba(0,0,0,.15);
}
/* a sun sticker by the clock; on your special days, a sticker for the day */
[data-theme="sticker"] .widget[data-type="clock"]::after {
  content: ""; position: absolute; left: calc(100% + 2.4em); top: 2.4em; width: 7.4em; height: 7.4em; pointer-events: none; transform: rotate(8deg);
  background: var(--sticker, var(--st-sun)) center / contain no-repeat;
}
[data-theme="sticker"] .widget[data-type="clock"][data-align="end"]::after { left: auto; right: calc(100% + 2.4em); }
[data-theme="sticker"][data-theme-unlock="on"][data-today="birthday"] { --sticker: var(--st-cake); }
[data-theme="sticker"][data-theme-unlock="on"][data-today="anniversary"] { --sticker: var(--st-heart); }
[data-theme="sticker"][data-theme-unlock="on"][data-today="adoption"] { --sticker: var(--st-paw); }
[data-theme="sticker"][data-theme-unlock="on"][data-today="other"] { --sticker: var(--st-star); }
[data-theme="sticker"] .w-time { font-size: 8.6em; line-height: .95; letter-spacing: -.023em; }
[data-theme="sticker"] .w-time .colon { opacity: 1; }
[data-theme="sticker"] .w-time small { font-size: .23em; opacity: 1; margin-top: .2em; }
[data-theme="sticker"] .w-date { margin-top: .2em; font-size: 1.6em; font-weight: 800; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-theme="sticker"] .w-wx { font-size: 1.6em; font-weight: 800; gap: .5em; }
[data-theme="sticker"] .w-wx b { font-size: 1.62em; font-weight: 900; }
[data-theme="sticker"] .w-wx span { opacity: 1; }
[data-theme="sticker"] .w-chip { background: var(--sc); border: .6em solid #fff; border-radius: 1.8em; padding: 1.2em 2.2em 1.2em 1.2em; gap: 1.2em; box-shadow: var(--t-lift); color: var(--si); }
[data-theme="sticker"] .w-swap { width: 3.4em; height: 3.4em; background: #2a2440; color: #fff; border: .3em solid #fff; }
[data-theme="sticker"] .w-swap .ring { display: none; }
[data-theme="sticker"] .w-place b { font-size: 1.8em; font-weight: 900; }
[data-theme="sticker"] .w-place span { font-size: 1.3em; font-weight: 700; color: inherit; opacity: .9; }
[data-theme="sticker"] .w-note { background: #fff; color: var(--ink); font-weight: 700; }
[data-theme="sticker"] .w-panel { background: var(--sc); border: .6em solid #fff; border-radius: 2.4em; padding: 1.8em 2em; box-shadow: var(--t-lift); color: var(--si); text-shadow: none; transform: rotate(calc(var(--k) * var(--mess) * 1.2deg)); }

/* ====================================================================== Bakery */
[data-theme="bakery"] {
  --t-ink: #5a2a3a; --t-muted: #a8607a; --t-strong: #8a3a5a; --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 800; --t-dw: 800; --t-accent: #8a3a5a; --t-accent-ink: #fff3f0; --t-ui: #f6a8c0; --t-ui-ink: #5a2a3a; --t-icon: #d8708a; --t-ring: rgba(138,58,90,.5);
  --frost: #f6a8c0; --drip: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><path fill='%23f6a8c0' d='M0 0h320v14c-10 0-12 16-22 16s-10-14-20-14-12 22-24 22-12-20-22-20-10 10-20 10-12-14-22-14-12 24-26 24-12-22-24-22-10 8-20 8-12-12-22-12-12 18-24 18S30 16 20 16 6 26 0 22z'/></svg>"); --cream: #fff3f0; --fill: #fffaf0;
  --c1: #fff0b0; --c2: #c8e8b0; --c3: #f6c8d8; --c4: #d8ccf4; --c1i: #6a5a1a; --c2i: #3a6a2a; --c3i: #5a2a3a; --c4i: #4a3a6a;
  --t-panel: var(--cream); --t-radius: 2.6em; --t-pad: 1.8em 2.4em; --t-lift: 0 1.2em 2.6em rgba(80,30,40,.3);
  --t-line: rgba(90,42,58,.12); --t-face: rgba(246,168,192,.12); --t-moon-dark: rgba(90,42,58,.12);
  --t-card: var(--cream); --t-card-radius: 22px; --t-card-border: 0; --t-btn: rgba(138,58,90,.07); --t-btn-hover: rgba(138,58,90,.13); --t-card-lift: 0 20px 44px rgba(80,30,40,.32);
  --st-sprinkles: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><g stroke-width='3.5' stroke-linecap='round'><path d='M38 9l8 5' stroke='%237ad0ff'/><path d='M94 11l8-5' stroke='%23ffe14a'/><path d='M150 12l9 2' stroke='%237ae0a0'/><path d='M210 10l8-4' stroke='%23fff'/><path d='M262 9l6 6' stroke='%23b48aff'/><path d='M120 6l7 3' stroke='%23ff7a9a'/><path d='M184 6l-3 6' stroke='%23ffe14a'/><path d='M66 16l7-2' stroke='%23fff'/><path d='M236 15l7 2' stroke='%237ad0ff'/><path d='M290 13l7-3' stroke='%237ae0a0'/></g></svg>");
}
[data-theme="bakery"][data-theme-flavour="pistachio"] { --frost: #b8dca0; --drip: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><path fill='%23b8dca0' d='M0 0h320v14c-10 0-12 16-22 16s-10-14-20-14-12 22-24 22-12-20-22-20-10 10-20 10-12-14-22-14-12 24-26 24-12-22-24-22-10 8-20 8-12-12-22-12-12 18-24 18S30 16 20 16 6 26 0 22z'/></svg>"); }
[data-theme="bakery"][data-theme-flavour="lavender"] { --frost: #c8b4ec; --drip: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><path fill='%23c8b4ec' d='M0 0h320v14c-10 0-12 16-22 16s-10-14-20-14-12 22-24 22-12-20-22-20-10 10-20 10-12-14-22-14-12 24-26 24-12-22-24-22-10 8-20 8-12-12-22-12-12 18-24 18S30 16 20 16 6 26 0 22z'/></svg>"); }
[data-theme="bakery"][data-theme-flavour="lemon"] { --frost: #ffe48a; --drip: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><path fill='%23ffe48a' d='M0 0h320v14c-10 0-12 16-22 16s-10-14-20-14-12 22-24 22-12-20-22-20-10 10-20 10-12-14-22-14-12 24-26 24-12-22-24-22-10 8-20 8-12-12-22-12-12 18-24 18S30 16 20 16 6 26 0 22z'/></svg>"); }
[data-theme="bakery"] .widget[data-type="clock"] > .w-body { padding: 3.4em 2.8em 2.2em; min-width: 30em; }
[data-theme="bakery"] .widget[data-type="clock"] > .w-body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4em; border-radius: 2.6em 2.6em 0 0; pointer-events: none;
  background: var(--st-sprinkles) center / 100% 100% no-repeat, var(--drip) 0 0 / 100% 100% no-repeat;
}
[data-theme="bakery"] .w-time { position: relative; font-size: 8.2em; line-height: .95; letter-spacing: -.024em; color: var(--t-strong); }
[data-theme="bakery"] .widget[style*="--ink"] .w-time { color: var(--ink); }
[data-theme="bakery"] .w-time .colon { opacity: 1; }
[data-theme="bakery"] .w-time small { font-size: .23em; color: #d8708a; opacity: 1; }
[data-theme="bakery"] .w-date { position: relative; margin-top: .2em; font-size: 1.6em; font-weight: 700; letter-spacing: 0; text-transform: none; opacity: 1; color: var(--t-muted); }
/* macaron pills: two shells and the filling between */
[data-theme="bakery"] :is(.widget:is([data-type="weather"], [data-type="date"], [data-type="worldclock"], [data-type="caption"], [data-type="phrase"]) > .w-body, .w-chip) {
  border-radius: 999px; padding: 1.2em 2.4em; color: var(--si); box-shadow: 0 1em 2em rgba(80,30,40,.28);
  background: linear-gradient(var(--sc) 0 38%, var(--fill) 38% 62%, var(--sc) 62%);
}
[data-theme="bakery"] .w-wx { font-size: 1.6em; font-weight: 800; gap: .6em; }
[data-theme="bakery"] .w-wx b { font-size: 1.5em; }
[data-theme="bakery"] .w-wx span, [data-theme="bakery"] .w-place span { padding: .15em .7em; border-radius: 999px; background: var(--fill); opacity: 1; }
[data-theme="bakery"] .w-world span { opacity: 1; }
[data-theme="bakery"] :is(.w-count .big, .w-far b, .w-world b) { color: var(--t-strong); }
[data-theme="bakery"] .widget[data-type="worldclock"] .w-world b { color: inherit; }
[data-theme="bakery"] .w-chip { padding: 1.2em 2.4em 1.2em 1.2em; gap: 1.2em; }
[data-theme="bakery"] .w-swap { width: 3.4em; height: 3.4em; background: radial-gradient(circle at 40% 35%, #ff7a8a, #d8304a); color: #fff; box-shadow: inset 0 -.3em 0 rgba(0,0,0,.15); }
[data-theme="bakery"] .w-place { flex-direction: row; align-items: center; gap: .8em; }
[data-theme="bakery"] .w-place b { font-size: 1.7em; font-weight: 800; }
[data-theme="bakery"] .w-place span { margin: 0; font-size: 1.4em; font-weight: 700; color: inherit; }
[data-theme="bakery"] .w-note { background: var(--cream); color: var(--ink); font-weight: 700; }
[data-theme="bakery"] .w-panel { background: var(--cream); border-radius: 2.2em; padding: 1.8em 2em; box-shadow: var(--t-lift); color: var(--ink); text-shadow: none; }
/* a cake with candles on birthdays */
[data-theme="bakery"][data-theme-cake="on"][data-today="birthday"] .widget[data-type="clock"]::after {
  content: ""; position: absolute; right: -1.6em; top: -5.6em; width: 7.6em; height: 7.6em; pointer-events: none; background: var(--st-cake) center / contain no-repeat;
}

/* ====================================================================== Bubbles */
[data-theme="bubbles"] {
  --t-ink: #fff; --t-muted: rgba(255,255,255,.9); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-text-shadow: 0 .1em .2em rgba(20,40,80,.6), 0 .2em 1.4em rgba(20,40,80,.55); --t-tw: 500; --t-dw: 400;
  --t-accent: rgba(255,255,255,.9); --t-accent-ink: #3a5a8a; --t-ui: #9ad8ff; --t-ui-ink: #1a3050; --t-icon: #fff; --t-ring: rgba(255,255,255,.85);
  --t-line: rgba(255,255,255,.3); --t-face: none; --t-moon-dark: rgba(255,255,255,.18); --t-drift-s: 1;
  --t-card: rgba(60,90,140,.82); --t-card-radius: 30px; --t-card-border: 1.5px solid rgba(255,255,255,.55); --t-btn: rgba(255,255,255,.14); --t-btn-hover: rgba(255,255,255,.22);
  --t-card-lift: inset 0 0 0 1px rgba(160,220,255,.35), 0 14px 34px rgba(20,40,80,.3);
}
[data-theme="bubbles"] .place-card .btn.primary { background: rgba(255,255,255,.92); color: #3a5a8a; }
[data-theme="bubbles"] :where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body,
[data-theme="bubbles"] :where(.widget[data-type="place"]) > .w-body {
  position: relative; isolation: isolate; display: grid; place-content: center; justify-items: center; text-align: center; aspect-ratio: 1; border-radius: 50%; padding: 2.4em;
}
/* the soap film: a clear middle, a rainbow at the rim, and a window of light */
[data-theme="bubbles"] :where(.widget:not([data-type="place"]):not(:has(.w-panel)), .widget[data-type="place"]) > .w-body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; box-shadow: 0 1em 3em rgba(20,40,80,.15);
  background: radial-gradient(closest-side, transparent 0 70%, rgba(255,255,255,.14) 84%, rgba(255,255,255,.5) 96%, rgba(255,255,255,.2) 100%),
    radial-gradient(closest-side, rgba(30,50,100,.1) 0 45%, transparent 75%),
    conic-gradient(from 200deg, rgba(255,120,200,.24), rgba(120,200,255,.24), rgba(160,255,180,.24), rgba(255,230,120,.24), rgba(255,120,200,.24));
}
[data-theme="bubbles"] :where(.widget:not([data-type="place"]):not(:has(.w-panel)), .widget[data-type="place"]) > .w-body::after {
  content: ""; position: absolute; left: 20%; top: 14%; width: 22%; height: 12%; border-radius: 50%; background: rgba(255,255,255,.75); transform: rotate(-30deg); pointer-events: none; z-index: -1;
}
/* long ones are long bubbles */
[data-theme="bubbles"] .widget:is([data-type="forecast"], [data-type="caption"], [data-type="phrase"], [data-type="lovenote"], [data-type="date"]) > .w-body { aspect-ratio: auto; border-radius: 999px; padding: 1.8em 3.4em; }
[data-theme="bubbles"] .widget:is([data-type="forecast"], [data-type="caption"], [data-type="phrase"], [data-type="lovenote"], [data-type="date"]) > .w-body::after { left: 8%; top: 12%; width: 12%; height: 18%; }
[data-theme="bubbles"] .w-panel { position: relative; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.55); border-radius: 3em; padding: 1.8em 2.2em;
  box-shadow: inset 0 0 0 1px rgba(160,220,255,.35), 0 1em 2.6em rgba(20,40,80,.2); color: #fff; }
[data-theme="bubbles"] .w-time { font-size: 6.4em; line-height: .95; letter-spacing: -.014em; }
[data-theme="bubbles"] .w-time .colon { opacity: .8; }
[data-theme="bubbles"] .w-time small { font-size: .23em; opacity: 1; }
[data-theme="bubbles"] .widget[data-type="clock"] > .w-body { min-width: 19.5em; padding: 2em; }
[data-theme="bubbles"] .w-date { margin-top: .3em; font-size: 1.4em; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-theme="bubbles"] .w-analog { width: 13em; height: 13em; }
[data-theme="bubbles"] .w-words { width: 5.5em; font-size: 3.2em; }
[data-theme="bubbles"] .widget[data-type="weather"] > .w-body { min-width: 13em; padding: 1.6em; }
[data-theme="bubbles"] .w-wx { flex-direction: column; gap: .1em; font-size: 1.4em; font-weight: 600; line-height: 1.2; white-space: normal; max-width: 7em; }
[data-theme="bubbles"] .w-wx b { font-size: 1.7em; font-weight: 400; }
[data-theme="bubbles"] .w-wx span { opacity: 1; }
[data-theme="bubbles"] .w-wx .w-icon { display: none; }
[data-theme="bubbles"] :where(.widget[data-type="place"]) > .w-body { min-width: 17em; padding: 2em; }
[data-theme="bubbles"] .w-note { max-width: 12em; background: none; border: 0; padding: 0; color: #fff; font-size: 1.1em; }
[data-theme="bubbles"] .w-chip { flex-direction: column; gap: .6em; padding: 0; background: none; border: 0; box-shadow: none; }
[data-theme="bubbles"] .w-swap { width: 2.6em; height: 2.6em; background: rgba(255,255,255,.22); color: #fff; border: max(1px, .1em) solid rgba(255,255,255,.7); }
[data-theme="bubbles"] .w-place { align-items: center; text-align: center; white-space: normal; max-width: 13em; }
[data-theme="bubbles"] .w-place b { font-size: 1.8em; font-weight: 600; }
[data-theme="bubbles"] .w-place span { font-size: 1.3em; font-weight: 600; color: #fff; line-height: 1.25; }
[data-theme="bubbles"] .w-moon { flex-direction: column; gap: .4em; }
[data-theme="bubbles"] .w-far { justify-items: center; }
[data-theme="bubbles"] .w-far .meta, [data-theme="bubbles"] .w-far .meet { justify-content: center; }
[data-theme="bubbles"] .w-count .cap { white-space: normal; max-width: 9em; }
/* they drift, each on its own beat; a tapped one pops and floats back */
[data-theme="bubbles"][data-theme-drift="more"] { --t-drift-s: .8; }
:not(body)[data-theme="bubbles"]:not([data-theme-drift="still"]) .widget > .w-body { animation: t-drift calc(11s * var(--t-drift-s)) ease-in-out infinite alternate; will-change: transform; }
:not(body)[data-theme="bubbles"]:not([data-theme-drift="still"]) .widget:is([data-type="weather"], [data-type="moon"]) > .w-body { animation-duration: calc(8s * var(--t-drift-s)); animation-delay: -3s; }
:not(body)[data-theme="bubbles"]:not([data-theme-drift="still"]) .widget:is([data-type="place"], [data-type="faraway"]) > .w-body { animation-duration: calc(13s * var(--t-drift-s)); animation-delay: -6s; animation-direction: alternate-reverse; }
:not(body)[data-theme="bubbles"]:not([data-theme-drift="still"]) .widget:is([data-type="countdown"], [data-type="worldclock"]) > .w-body { animation-duration: calc(9.5s * var(--t-drift-s)); animation-delay: -2s; }
:not(body)[data-theme="bubbles"][data-theme-drift="more"]:not([data-theme-drift="still"]) .widget > .w-body { animation-name: t-drift-more; }
/* on the page itself the drift is moved by themes.js with the scene's frames (an endless animation paints 60 times a second) */
body[data-theme="bubbles"]:not([data-theme-drift="still"]) .widget > .w-body { will-change: transform; }
[data-theme="bubbles"][data-theme-pop="on"] .widget > .w-body { pointer-events: auto; cursor: pointer; }
body.editing[data-theme="bubbles"] .widget > .w-body { animation: none !important; pointer-events: none; }
[data-theme="bubbles"] .widget > .w-body.t-pop { animation: t-pop 1.9s ease-out !important; }
/* literal values: keyframes with variables would run on the main thread instead of the compositor */
@keyframes t-drift { 0% { transform: translate(0, 0); } 50% { transform: translate(.3em, -.5em); } 100% { transform: translate(-.25em, -.15em); } }
@keyframes t-drift-more { 0% { transform: translate(0, 0); } 50% { transform: translate(.7em, -1.2em); } 100% { transform: translate(-.6em, -.35em); } }
@keyframes t-pop { 0% { transform: scale(1); opacity: 1; } 10% { transform: scale(1.14); opacity: 0; } 45% { transform: translateY(2.5em) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ====================================================================== Fairy lights */
[data-theme="lights"] {
  --t-ink: #fff4dc; --t-muted: rgba(255,244,220,.78); --t-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; --t-font: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --t-tw: 200; --t-dw: 300; --t-accent: linear-gradient(#ffe0a0, #ffb860); --t-accent-ink: #4a2414; --t-ui: #ffd58a; --t-ui-ink: #4a2414; --t-icon: #ffd58a; --t-ring: rgba(255,213,138,.8); --t-accent-text: #ffd58a;
  --t-glow: 0 0 2.4em rgba(255,170,70,.25);
  --t-panel: rgba(40,22,30,.74); --t-panel-border: 1px solid rgba(255,213,138,.35); --t-radius: 1.6em; --t-pad: 1.8em 2em; --t-lift: var(--t-glow);
  --t-line: rgba(255,213,138,.2); --t-face: rgba(255,213,138,.06); --t-moon-dark: rgba(255,255,255,.14);
  --t-card: rgba(40,22,30,.9); --t-card-radius: 16px; --t-card-border: 1px solid rgba(255,213,138,.35); --t-btn: rgba(255,213,138,.08); --t-btn-hover: rgba(255,213,138,.16);
  --t-card-lift: 0 0 40px rgba(255,170,70,.2), 0 20px 50px rgba(10,4,10,.4);
}
[data-theme="lights"][data-sky="day"] {
  --t-ink: #3a2a22; --t-muted: rgba(58,42,34,.72); --t-icon: #c8783a; --t-ring: rgba(120,70,30,.5); --t-accent-text: #b8601a; --t-glow: 0 .8em 1.8em rgba(60,30,10,.22);
  --t-panel: rgba(255,250,240,.93); --t-panel-border: 1px solid rgba(120,70,30,.25); --t-line: rgba(120,70,30,.16); --t-face: rgba(120,70,30,.05); --t-moon-dark: rgba(58,42,34,.12);
  --t-card: rgba(255,250,240,.96); --t-card-border: 1px solid rgba(120,70,30,.25); --t-btn: rgba(120,70,30,.07); --t-btn-hover: rgba(120,70,30,.13); --t-card-lift: 0 20px 44px rgba(60,30,10,.25);
}
[data-theme="lights"] .place-card .btn.primary { background: linear-gradient(#ffe0a0, #ffb860); color: #4a2414; }
.t-string { position: absolute; left: 0; top: 0; right: 0; pointer-events: none; }
.t-string svg { position: absolute; left: 0; top: 0; overflow: visible; stroke: none; }
.t-string .wire { stroke: #3a2a2a; }
[data-sky="day"] .t-string .wire { stroke: #6a5a5a; }
.t-string .day, [data-sky="day"] .t-string .night, [data-sky="day"] .t-string .t-glow { display: none; }
[data-sky="day"] .t-string .day { display: inline; }
:not(body)[data-theme="lights"]:not([data-theme-twinkle="off"]):not([data-sky="day"]) .t-glow { animation: t-twinkle 5s ease-in-out infinite alternate; will-change: opacity; }
:not(body)[data-theme="lights"]:not([data-theme-twinkle="off"]):not([data-sky="day"]) .t-glow.b { animation-delay: -2.5s; }
:not(body)[data-theme="lights"][data-theme-twinkle="lively"]:not([data-sky="day"]) .t-glow { animation-duration: 1.8s; }
:not(body)[data-theme="lights"][data-theme-twinkle="lively"]:not([data-sky="day"]) .t-glow.b { animation-delay: -.9s; }
@keyframes t-twinkle { from { opacity: 1; } to { opacity: .35; } }
body[data-theme="lights"]:not([data-theme-twinkle="off"]):not([data-sky="day"]) .t-glow { will-change: opacity; } /* twinkled by themes.js with the scene's frames */
/* the clock and the date stand bare: lit filaments at night, plain by day */
[data-theme="lights"] .widget:is([data-type="clock"], [data-type="date"], [data-type="caption"]) > .w-body { background: none; border: 0; box-shadow: none; padding: 0; }
[data-theme="lights"] .w-time { font-size: 10.4em; line-height: .9; letter-spacing: -.019em; color: #fff4dc; text-shadow: 0 0 .058em rgba(255,210,140,.9), 0 0 .21em rgba(255,170,70,.65), 0 0 .48em rgba(255,140,40,.35); }
[data-theme="lights"] .w-time small { font-size: .21em; font-weight: 400; opacity: 1; }
[data-theme="lights"] .widget:is([data-type="clock"], [data-type="date"], [data-type="caption"]) { color: #ffe6b8; text-shadow: 0 0 1em rgba(255,170,70,.55); }
[data-theme="lights"] .w-date { margin-top: .6em; font-size: 1.7em; font-weight: 500; letter-spacing: 0; text-transform: none; opacity: 1; }
[data-theme="lights"] .w-caption { color: #fff4dc; }
[data-theme="lights"][data-sky="day"] .w-time { color: #fffaf0; text-shadow: 0 .02em .13em rgba(60,30,10,.35); }
[data-theme="lights"][data-sky="day"] .widget:is([data-type="clock"], [data-type="date"], [data-type="caption"]) { color: #fffaf0; text-shadow: 0 .1em 1em rgba(60,30,10,.4); }
[data-theme="lights"][data-sky="day"] .w-caption { color: #fffaf0; }
[data-theme="lights"] .widget:is([data-type="clock"], [data-type="date"], [data-type="caption"])[style*="--ink"] :is(.w-time, .w-date, .w-caption) { color: var(--ink); }
[data-theme="lights"] .w-analog { width: 12em; height: 12em; }
/* the weather in a paper lantern hung on a wire */
[data-theme="lights"] .widget[data-type="weather"] > .w-body { display: flex; flex-direction: column; align-items: center; width: 9.2em; padding: 0; background: none; border: 0; box-shadow: none; }
[data-theme="lights"] .widget[data-type="weather"] > .w-body::before { content: ""; width: 4.8em; height: .9em; border-radius: .3em; background: #4a2a22; box-shadow: 0 -2.6em 0 -2.3em #4a3a3a, 0 -1.3em 0 -.38em transparent; }
[data-theme="lights"] .widget[data-type="weather"] > .w-body::after { content: ""; width: 4.8em; height: .9em; border-radius: .3em; background: #4a2a22; }
[data-theme="lights"] .widget[data-type="weather"]::before { content: ""; position: absolute; left: calc(50% - 1px); top: -2.6em; width: 2px; height: 2.6em; background: #4a3a3a; }
[data-theme="lights"] .widget[data-type="weather"] .w-wx {
  flex-direction: column; justify-content: center; gap: 0; width: 100%; height: 10.4em; padding: 0 .6em; border-radius: 4em / 2.2em; white-space: normal; text-align: center;
  font-size: 1em; color: #6a2a14; text-shadow: none;
  background: repeating-linear-gradient(90deg, rgba(160,60,20,.18) 0 .2em, transparent .2em 1.5em), radial-gradient(circle at 50% 45%, #fff2c8, #ffb860 60%, #e0703a);
  box-shadow: 0 0 3em rgba(255,190,90,.75), 0 0 7em rgba(255,140,50,.35);
}
[data-theme="lights"][data-sky="day"] .widget[data-type="weather"] .w-wx {
  background: repeating-linear-gradient(90deg, rgba(160,60,20,.18) 0 .2em, transparent .2em 1.5em), radial-gradient(circle at 50% 45%, #fff6e0, #f6c890 60%, #e0906a); box-shadow: 0 .8em 1.8em rgba(60,30,10,.25);
}
[data-theme="lights"] .widget[data-type="weather"] .w-wx b { font-size: 2.6em; font-weight: 700; line-height: 1; }
[data-theme="lights"] .widget[data-type="weather"] .w-wx span { font-size: 1.15em; font-weight: 700; line-height: 1.1; opacity: 1; }
[data-theme="lights"] .widget[data-type="weather"] .w-wx em { font-size: 1em; color: #6a2a14; }
[data-theme="lights"] .widget[data-type="weather"] .w-icon { display: none; }
/* the place on a tag hung from the string */
[data-theme="lights"] .w-chip { background: var(--t-panel); border: var(--t-panel-border); border-radius: 1em; padding: 1.2em 2em 1.2em 1.2em; gap: 1.2em; box-shadow: var(--t-glow); }
[data-theme="lights"] .w-chip::before { content: ""; position: absolute; left: 50%; top: -3.2em; width: max(1px, .15em); height: 3.2em; background: #6a5a5a; }
[data-theme="lights"] .w-swap { width: 3em; height: 3em; box-shadow: 0 0 1.8em rgba(255,170,70,.45); }
[data-theme="lights"][data-sky="day"] .w-swap { box-shadow: none; }
[data-theme="lights"] .w-place b { font-size: 1.7em; font-weight: 600; }
[data-theme="lights"] .w-place span { font-size: 1.3em; }
[data-theme="lights"] .w-note { background: var(--t-panel); border: var(--t-panel-border); color: var(--ink); }
[data-theme="lights"]:not([data-sky="day"]) :is(:where(.widget:not([data-type="place"]):not(:has(.w-panel))) > .w-body, .w-panel) {
  background-image: radial-gradient(circle at 20% 30%, rgba(255,200,120,.16) 0 .3em, transparent .4em), radial-gradient(circle at 70% 60%, rgba(255,200,120,.12) 0 .5em, transparent .6em), radial-gradient(circle at 88% 20%, rgba(255,200,120,.14) 0 .2em, transparent .3em);
}
[data-theme="lights"] .w-panel { border-radius: 1.6em; padding: 1.8em 2em; color: var(--ink); text-shadow: none; box-shadow: var(--t-glow); }

/* ---------- stickers for special days (Scrapbook, Sticker sheet, Bakery) ---------- */
[data-themed] {
  --st-sun: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -6 90 92'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='5' stdDeviation='4' flood-color='%231e143c' flood-opacity='0.3'/></filter></defs><g filter='url(%23d)'><g stroke='%23fff' stroke-width='5' stroke-linejoin='round'><path fill='%23ffb02a' d='M37 4l6 12 12-5-2 13 13 3-10 9 9 10-13 2 2 13-12-5-5 12-6-12-12 5 2-13-13-2 9-10-10-9 13-3-2-13 12 5z'/></g><circle cx='37' cy='37' r='15' fill='%23ffe14a'/><circle cx='31' cy='35' r='2' fill='%232a2440'/><circle cx='43' cy='35' r='2' fill='%232a2440'/><path d='M31 42q6 5 12 0' stroke='%232a2440' stroke-width='2.5' fill='none' stroke-linecap='round'/></g></svg>");
  --st-cake: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -4 82 84'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='4' stdDeviation='3' flood-color='%23501e28' flood-opacity='0.3'/></filter></defs><g filter='url(%23d)'><g stroke='%23fff' stroke-width='4' stroke-linejoin='round'><rect x='10' y='34' width='50' height='28' rx='6' fill='%23ff8ab0'/><rect x='19' y='18' width='5' height='16' rx='2' fill='%236ad0ff'/><rect x='32.5' y='14' width='5' height='20' rx='2' fill='%23ffe14a'/><rect x='46' y='18' width='5' height='16' rx='2' fill='%23b8f0c8'/></g><path d='M12 44q5.8 7 11.6 0t11.6 0 11.6 0 11.6 0' fill='none' stroke='%23fff3f0' stroke-width='4' stroke-linecap='round'/><g fill='%23ffb02a'><ellipse cx='21.5' cy='12' rx='3' ry='4.5'/><ellipse cx='35' cy='8' rx='3' ry='4.5'/><ellipse cx='48.5' cy='12' rx='3' ry='4.5'/></g></g></svg>");
  --st-heart: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -4 76 74'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='4' stdDeviation='3' flood-color='%23501e28' flood-opacity='0.3'/></filter></defs><g filter='url(%23d)'><path fill='%23ff5a8a' stroke='%23fff' stroke-width='5' stroke-linejoin='round' d='M32 54C10 40 4 29 4 19A14 14 0 0 1 32 12a14 14 0 0 1 28 7c0 10-6 21-28 35z'/><ellipse cx='20' cy='20' rx='5' ry='3' fill='%23fff' opacity='.6' transform='rotate(-30 20 20)'/></g></svg>");
  --st-paw: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -4 76 78'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='4' stdDeviation='3' flood-color='%231e143c' flood-opacity='0.3'/></filter></defs><g filter='url(%23d)'><g fill='%23b98aff' stroke='%23fff' stroke-width='4'><ellipse cx='32' cy='42' rx='15' ry='12'/><ellipse cx='14' cy='26' rx='6' ry='8'/><ellipse cx='26' cy='15' rx='6' ry='8'/><ellipse cx='38' cy='15' rx='6' ry='8'/><ellipse cx='50' cy='26' rx='6' ry='8'/></g></g></svg>");
  --st-star: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -4 76 78'><defs><filter id='d' x='-30%' y='-30%' width='160%' height='170%'><feDropShadow dx='0' dy='4' stdDeviation='3' flood-color='%231e143c' flood-opacity='0.3'/></filter></defs><g filter='url(%23d)'><path fill='%23ffd23f' stroke='%23fff' stroke-width='5' stroke-linejoin='round' d='M32 4l8 18 19 2-14 13 4 19-17-10-17 10 4-19L5 24l19-2z'/></g></svg>");
}

@media (prefers-reduced-motion: reduce) {
  [data-theme] .t-glow, [data-theme] .widget > .w-body { animation: none !important; }
}

/* tilted photos (the photo widget in the themes that lean things) get a layer of their own, as the stamp and polaroid do */
:is([data-theme="postcard"], [data-theme="scrapbook"], [data-theme="sticker"]) .widget[data-type="photo"] > .w-body { will-change: transform; }
