/* Shared skin for the marketing site.
   The site's copy of mockups/marketing-site/_skin.css, taken 2026-09-25 with
   only the six font url()s changed from _fonts/ to /fonts/. The site owns it
   from here. Loaded first on every page, then site.css, then a page's own.
   Tokens are the app's own, copied from app/app/globals.css and
   app/styles/themes/*.css with only the selector changed, so a tile on this
   page reads as the tile on the board.

   Sections: fonts · page tokens · theme tokens · tile chrome · live tile
   internals (owned by _live.js) · signup states · honeypot · reduced motion. */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face { font-family: Montserrat; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 900; font-style: normal; font-display: swap; src: url(/fonts/montserrat-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2"); }

/* ── Page tokens ────────────────────────────────────────────────────────── */
:root {
  --sans: Montserrat, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* The page itself is always Space. Pages may add their own tokens. */
  --page-bg: #0C0F1D;
  --page-deep: #07090F;
  --page-panel: #111827;
  --page-fg: #EEF2FF;
  --page-text: #E8EDF7;
  --page-muted: #6B7DA3;   /* 4.3:1 on --page-panel: labels only, not body text */
  --page-help: #8FA0C4;    /* 6.8:1 on --page-panel: body-size secondary text */
  --page-note: #BAC6DE;
  --page-border: #1E2C48;
  --page-orbit: #2E3F5C;
  --lime: #B8FF57;
  --lime-hover: #A6E64E;
  --primary: #3B9EFF;
  --pink: #FF3CAC;
  --violet: #9B59F5;
  --cyan: #4DEEEA;
  --green: #39D353;
  --gold: #F0C142;
  --discord: #5865F2;
  /* A gradient, not a colour: color-mix() with it is silently dropped. Use
     --primary for tints and borders. */
  --aurora: linear-gradient(135deg, #FF3CAC 0%, #9B59F5 50%, #3B9EFF 100%);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Theme tokens (tiles and anything inside a [data-theme] scope) ─────── */
/* Space is the default, so :root carries it too. */
:root,
[data-theme="space"] {
  --background: #0C0F1D;
  --foreground: #EEF2FF;
  --muted-foreground: #6B7DA3;
  --border: #1E2C48;
  --radius: 0.5rem;
  --widget-bg: #1A2236;
  --widget-header: #111827;
  --widget-control-fg: #8496BB;
  --group-primary: #3B9EFF;
  --group-violet: #9B59F5;
  --group-pink: #FF3CAC;
  --group-cyan: #4DEEEA;
  --group-green: #39D353;
  --group-gold: #F0C142;
  --tile-shadow: 0 2px 8px rgba(0,0,0,0.4);
  --tile-bar-border: 1px solid rgba(255,255,255,0.04);
  --tile-label-font: var(--sans);
  --tile-label-step: 10;
  --tile-label-track: 0.12em;
  --tile-label-glow: none;
  --tile-label-color: initial;
  --tile-source-bg: rgba(0,0,0,0.10);
  --tile-source-fg: rgba(255,255,255,0.8);
  --tile-source-border: 1px solid rgba(255,255,255,0.04);
}

[data-theme="minimal-dark"] {
  --background: #131936;
  --foreground: #FFFFFF;
  --muted-foreground: rgba(255,255,255,0.38);
  --border: rgba(255,255,255,0.06);
  --radius: 1.125rem;
  --widget-bg: #1C2354;
  --widget-header: #1C2354;
  --widget-control-fg: #9AA0BE;
  --primary: #4DD9E9;
  --group-primary: #3B9EFF;
  --group-violet: #9B8EFF;
  --group-pink: #FF6B8A;
  --group-cyan: #4DD9E9;
  --group-green: #5BE584;
  --group-gold: #FFB547;
  --tile-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.25);
  --tile-bar-border: 0;
  --tile-label-font: var(--sans);
  --tile-label-step: 9;
  --tile-label-track: 0.06em;
  --tile-label-glow: none;
  --tile-label-color: rgba(255,255,255,0.28);
  --tile-source-bg: rgba(0,0,0,0.10);
  --tile-source-fg: rgba(255,255,255,0.8);
  --tile-source-border: 1px solid rgba(255,255,255,0.04);
}

[data-theme="minimal-light"] {
  --background: #E8EBF5;
  --foreground: #131936;
  --muted-foreground: rgba(19,25,54,0.42);
  --border: rgba(19,25,54,0.08);
  --radius: 1.125rem;
  --widget-bg: #FFFFFF;
  --widget-header: #FFFFFF;
  --widget-control-fg: #5A6480;
  --primary: #00B4C8;
  --group-primary: #2F80ED;
  --group-violet: #7C6FCD;
  --group-pink: #E8365D;
  --group-cyan: #00B4C8;
  --group-green: #27AE60;
  --group-gold: #F39C12;
  --tile-shadow: 0 8px 32px rgba(19,25,54,0.1), 0 2px 6px rgba(19,25,54,0.06);
  --tile-bar-border: 0;
  --tile-label-font: var(--sans);
  --tile-label-step: 9;
  --tile-label-track: 0.06em;
  --tile-label-glow: none;
  --tile-label-color: rgba(19,25,54,0.28);
  --tile-source-bg: rgba(19,25,54,0.04);
  --tile-source-fg: rgba(19,25,54,0.8);
  --tile-source-border: 1px solid rgba(19,25,54,0.06);
}

[data-theme="crt"] {
  --background: #000000;
  --foreground: #E9F6F8;
  --muted-foreground: #86A0A4;
  --border: #1B2427;
  --radius: 0rem;
  --widget-bg: #080C0D;
  --widget-header: #172428;
  --widget-control-fg: #7FC9D4;
  --primary: #00E5FF;
  --aurora: linear-gradient(135deg, #00E5FF 0%, #A8FCFF 50%, #00E5FF 100%);
  --group-primary: #00E5FF;
  --group-violet: #A472FF;
  --group-pink: #FF3DBE;
  --group-cyan: #5BF7D0;
  --group-green: #4BFF72;
  --group-gold: #FFD23F;
  --tile-shadow: inset 0 0 0 1px var(--border), 0 2px 16px rgba(0,0,0,0.65);
  --tile-bar-border: 1px solid rgba(0,229,255,0.18);
  --tile-label-font: var(--mono);
  --tile-label-step: 10;
  --tile-label-track: 0.18em;
  --tile-label-glow: 0 0 10px color-mix(in srgb, currentColor 35%, transparent);
  --tile-label-color: initial;
  --tile-source-bg: rgba(0,0,0,0.10);
  --tile-source-fg: rgba(233,246,248,0.8);
  --tile-source-border: 1px solid rgba(0,229,255,0.08);
}

/* A themed area paints its own ground, so a Light specimen reads as Light. */
[data-theme] { color: var(--foreground); }
[data-theme].theme-ground { background: var(--background); }
[data-theme="crt"].theme-ground {
  background-image:
    radial-gradient(ellipse 100% 70% at 50% 34%, rgba(0,229,255,0.09), transparent 62%),
    repeating-linear-gradient(to bottom, rgba(0,229,255,0.035) 0 1px, rgba(0,0,0,0.02) 1px 2px, transparent 2px 3px);
}

/* ── Tile chrome ────────────────────────────────────────────────────────── */
/* "tile", never "widget": ad blockers hide elements by class name on every
   site, and widget is on their lists. The app's own .widget-card is safe only
   because it lives on app.dashsuey.com behind a sign-in. */
.tile {
  /* The app's type ladder (globals.css). --ui-scale is 1.0 at a 104px cell;
     a page with smaller cells may set it lower on the board. */
  --t-2: calc(2px * var(--ui-scale, 1));
  --t-4: calc(4px * var(--ui-scale, 1));
  --t-6: calc(6px * var(--ui-scale, 1));
  --t-7: calc(7px * var(--ui-scale, 1));
  --t-8: calc(8px * var(--ui-scale, 1));
  --t-9: calc(9px * var(--ui-scale, 1));
  --t-10: calc(10px * var(--ui-scale, 1));
  --t-11: calc(11px * var(--ui-scale, 1));
  --t-12: calc(12px * var(--ui-scale, 1));
  --t-14: calc(14px * var(--ui-scale, 1));
  --t-16: calc(16px * var(--ui-scale, 1));
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--widget-bg);
  box-shadow: var(--tile-shadow);
  color: var(--foreground);
  font-family: var(--sans);
}

.tile-bar {
  /* border-box, as the app's Tailwind base has it: without it the 8px padding
     lands on top of the 36px and every tile body comes out 17px short. */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px;
  background: var(--widget-header);
  border-bottom: var(--tile-bar-border);
}

.tile-label {
  margin: 0;
  min-width: 0;
  font-family: var(--tile-label-font);
  /* The step is a bare number, because a token that named --t-10 would be
     resolved on :root, where the ladder does not exist yet. */
  font-size: calc(var(--tile-label-step, 10) * 1px * var(--ui-scale, 1));
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: var(--tile-label-track);
  text-transform: uppercase;
  /* Space and CRT leave --tile-label-color unset (initial), so the tile's own
     accent shows; the two minimal themes set a flat grey, as the app does. */
  color: var(--tile-label-color, var(--accent, var(--primary)));
  text-shadow: var(--tile-label-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The app hides the label on a header narrower than 150px. */
@container (max-width: 150px) { .tile-label { display: none; } }

/* A roadmap or plan chip in the header, pushed to the right. */
.tile-chip {
  margin-left: auto;
  padding: 2px 7px;
  border: 1px solid var(--page-orbit);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: var(--t-9);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B8C4E0;
}

/* The strip under the header that names the place or the source. */
.tile-source {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  flex: 0 0 auto;
  padding: 0 12px;
  background: var(--tile-source-bg);
  border-bottom: var(--tile-source-border);
  font-size: var(--t-10);
  font-weight: 700;
  color: var(--tile-source-fg);
  white-space: nowrap;
  overflow: hidden;
}
.tile-source .ico { width: 10px; height: 10px; flex: 0 0 auto; opacity: 0.5; color: var(--accent, var(--primary)); }
.tile-source .end { margin-left: auto; font-size: var(--t-9); color: var(--muted-foreground); }

.tile-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  font-variant-numeric: tabular-nums;
}

/* Before a live tile has its first reading it shows a quiet placeholder, never
   a made-up number. */
.tile-body[data-live]:empty::before {
  content: "";
  display: block;
  width: 60%;
  height: 1.2em;
  margin: auto;
  border-radius: 6px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
}

/* Icons drawn from FontAwesome path data. */
.ico { display: inline-block; width: 1em; height: 1em; fill: currentColor; vertical-align: -0.125em; }

/* ── Live tile internals ────────────────────────────────────────────────── */
/* Owned by _live.js: every class it renders is styled in this section and
   prefixed lv- so page CSS never collides with it. Sizes and colours are the
   app's own (Tailwind steps written out in px). The app paints faint washes
   in white; here they come from --foreground, so they still show on Light. */

/* Per-theme values the tiles need beyond the theme tokens above. They sit on
   the scope, so the nearest [data-theme] wins. The unit list popup carries
   its tile's data-theme, since it is drawn on <body>. */
:root,
[data-theme="space"] {
  --lv-field-bg: #111827;
  --lv-field-border: #2E3F5C;
  --lv-field-fg: #EEF2FF;
  --lv-field-label: #6B7DA3;
  --lv-field-scheme: dark;
  --lv-error: #FF3CAC;
}
[data-theme="minimal-dark"] {
  --lv-field-bg: #111827;
  --lv-field-border: #2E3F5C;
  --lv-field-fg: #EEF2FF;
  --lv-field-label: #8B96C4;
  --lv-field-scheme: dark;
  --lv-error: #FF6B8A;
}
[data-theme="minimal-light"] {
  --lv-field-bg: #F0F3FF;
  --lv-field-border: rgba(19,25,54,0.16);
  --lv-field-fg: #131936;
  --lv-field-label: #5A6480;
  --lv-field-scheme: light;
  --lv-error: #C7254E;
}
[data-theme="crt"] {
  --lv-field-bg: #040708;
  --lv-field-border: #223033;
  --lv-field-fg: #E9F6F8;
  --lv-field-label: #86A0A4;
  --lv-field-scheme: dark;
  --lv-error: #FF4D5E;
}

/* The body: each kind sets its own padding, as each widget does in the app.
   line-height 1.5 is the app's base (Tailwind preflight). */
/* Figures are proportional unless a reading asks for tabular ones (.lv-num
   and the few tabular-nums spots below), as in the app. */
.tile-body.lv-body { padding: 0; justify-content: flex-start; overflow: hidden; line-height: 1.5; font-variant-numeric: normal; }
.lv-body *, .lv-list, .lv-list * { box-sizing: border-box; }
:where(.lv-body) p { margin: 0; }
.lv-body [hidden] { display: none !important; }
.lv-body sub { font-size: 0.8em; line-height: 0; vertical-align: sub; }
/* :where() keeps this reset at element weight, so any lv- class beats it. */
:where(.lv-body, .lv-list) button {
  margin: 0; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.lv-body :focus-visible, .lv-list :focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

/* Layout helpers. */
.lv-root { position: relative; display: flex; flex: 1 1 auto; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.lv-col { flex-direction: column; }
.lv-center { display: flex; align-items: center; justify-content: center; }
.lv-grow { flex: 1 1 auto; min-height: 0; }
.lv-px16 { padding-left: 16px; padding-right: 16px; }
.lv-px8 { padding-left: 8px; padding-right: 8px; }
.lv-gap8 { gap: 8px; }
.lv-gap12 { gap: 12px; }
.lv-fg { color: var(--foreground); }
.lv-muted { color: var(--muted-foreground); }
.lv-none { line-height: 1; }

/* Readings. The app's "mono" is its own face with tabular figures, and its
   stat-value weight is 900. */
.lv-num { font-family: var(--sans); font-weight: 900; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.lv-strong { font-family: var(--sans); font-weight: 900; }

/* FitText (StatCard.tsx): the line is measured and shrunk to the box. */
.lv-fit { position: relative; width: 100%; min-width: 0; overflow: hidden; text-align: center; }
.lv-fit-in { display: inline-flex; align-items: baseline; white-space: nowrap; }

/* The source strip is .tile-source from the chrome above; these are its parts. */
.lv-strip-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.lv-strip-icon { display: inline-flex; flex: 0 0 auto; }
.lv-strip-end { display: flex; flex: 0 0 auto; margin-left: auto; }
.lv-strip-count { flex: 0 0 auto; font-size: var(--t-9, 9px); font-weight: 500; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--foreground) 35%, transparent); }

/* Segmented control (the app's .toggle-group). */
.lv-toggle {
  display: flex; align-items: center; gap: 2px; padding: 2px;
  border-radius: min(0.625rem, var(--radius));
  background: color-mix(in srgb, var(--foreground) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 8%, transparent);
}
.lv-toggle-btn {
  padding: 2px 8px; border-radius: min(0.5rem, var(--radius));
  font-size: var(--t-9, 9px); font-weight: 700; line-height: 1.25;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted-foreground);
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.lv-toggle-btn:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--foreground) 9%, transparent); color: var(--foreground); }
.lv-toggle-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--foreground) 10%, transparent); color: var(--toggle-active-color, var(--primary)); }
.lv-toggle-wide .lv-toggle-btn { flex: 1 1 0%; }
.tile-source .lv-toggle { height: 20px; padding: 0 1px; border-radius: min(0.5rem, var(--radius)); }
.tile-source .lv-toggle-btn { height: 100%; padding-top: 0; padding-bottom: 0; border-radius: min(0.375rem, var(--radius)); }

/* Loading shapes (Skeleton.tsx). Never a number. */
.lv-skel {
  display: block; flex: 0 0 auto; border-radius: 6px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--foreground) 4%, transparent) 25%,
    color-mix(in srgb, var(--foreground) 10%, transparent) 37%,
    color-mix(in srgb, var(--foreground) 4%, transparent) 63%);
  background-size: 400% 100%;
  animation: lv-sheen 1.4s ease-in-out infinite;
}
/* A tile that has not been asked for yet sits still. */
[data-state="waiting"] .lv-skel { animation: none; }
@keyframes lv-sheen { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.lv-error { margin: 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--lv-error); }

/* Clock (TimeWidget.tsx). */
.lv-ampm { font-size: 0.38em; margin-left: 0.15em; }
.lv-clock-analog { color: var(--foreground); }
.lv-dial { display: block; }
.lv-dial-num { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; }
.lv-dial-second { stroke: var(--primary); }
.lv-dial-tail { fill: var(--primary); }
.lv-dial-pin { fill: var(--widget-bg); }

/* Date (DateWidget.tsx). */
.lv-date { gap: 4px; }
.lv-date-day { font-weight: 500; line-height: 1; color: var(--muted-foreground); }

/* World clock (WorldClockWidget.tsx). */
.lv-root.lv-wc { display: block; overflow-y: auto; padding: 6px 12px; }
.lv-wc-grid { display: grid; gap: 6px; }
.lv-wc-row {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--foreground) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 5%, transparent);
}
.lv-wc-row.is-local { background: #7DD3FC1F; border-color: #7DD3FC66; }
.lv-wc-where { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.lv-wc-name { font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--foreground); }
.lv-wc-meta { line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted-foreground); }
.lv-wc-time { flex: 0 0 46%; text-align: right; }
.lv-wc-clock { color: var(--foreground); }
.lv-wc-mer { font-size: 0.42em; margin-left: 4px; }
.is-local .lv-wc-name, .is-local .lv-wc-meta, .is-local .lv-wc-clock { color: #7DD3FC; }
.is-local .lv-wc-meta { opacity: 0.85; }

/* Count down and count up (CountdownWidget.tsx, CountupWidget.tsx). */
.lv-cd { gap: 4px; }
.lv-cd-label { font-weight: 500; line-height: 1; text-align: center; color: var(--muted-foreground); }
.lv-cd-row { display: flex; align-items: flex-start; gap: 12px; }
.lv-cd-col { display: flex; flex-direction: column; align-items: center; }
.lv-cd-unit { margin-top: 4px; font-size: var(--t-10, 10px); letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
.lv-cd-colon { display: flex; flex: 0 0 auto; align-items: center; }
.lv-cd-done-label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
.lv-cd-done { font-weight: 600; color: var(--foreground); }
.lv-cd-empty { width: 100%; max-width: 220px; }

/* Moon phase (MoonPhaseWidget.tsx). */
.lv-root.lv-moon { flex-direction: column; overflow: hidden; }
.lv-moon-main { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.lv-moon.is-wide .lv-moon-main { flex-direction: row; }
.lv-moon-now { display: flex; flex: 1 1 0%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; }
.lv-moon-disc { display: block; filter: drop-shadow(0 0 12px rgba(155,89,245,0.5)); }
.lv-moon-words { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: -4px; }
.lv-moon-name { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--foreground); }
.lv-moon-lit { font-size: var(--t-11, 11px); color: var(--muted-foreground); }
.lv-moon-rule-h { border-top: 1px solid color-mix(in srgb, var(--foreground) 5%, transparent); }
.lv-moon-rule-v { flex: 0 0 auto; align-self: stretch; border-left: 1px solid color-mix(in srgb, var(--foreground) 5%, transparent); }
.lv-moon-next { display: flex; flex: 0 0 auto; flex-direction: column; gap: 4px; padding: 8px 12px; }
.lv-moon.is-wide .lv-moon-next { flex: 1 1 0%; justify-content: center; }
.lv-moon-kicker { margin-bottom: 4px; font-size: var(--t-9, 9px); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(155,89,245,0.6); }
.lv-moon-row { display: flex; align-items: center; justify-content: space-between; }
.lv-moon-row-name { display: flex; align-items: center; gap: 6px; font-size: var(--t-11, 11px); font-weight: 500; color: var(--foreground); }
.lv-moon-ico { width: 10px; height: 10px; }
.lv-moon-row-when { display: flex; align-items: center; gap: 8px; font-size: var(--t-10, 10px); }
.lv-moon-in { color: rgba(155,89,245,0.8); }
.lv-moon-on { color: var(--muted-foreground); }
.lv-moon-cycle { flex: 0 0 auto; padding: 0 16px 12px; border-top: 1px solid color-mix(in srgb, var(--foreground) 5%, transparent); }
.lv-moon-cycle-words { display: flex; justify-content: space-between; margin: 6px 0; font-size: var(--t-9, 9px); color: var(--muted-foreground); }
.lv-moon-track { position: relative; height: 4px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--foreground) 7%, transparent); }
.lv-moon-fill { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(155,89,245,0.5), #9B59F5); }

/* Year dots and life dots: a canvas under the strip. */
.lv-dots { flex: 1 1 auto; min-height: 0; overflow: hidden; color: var(--foreground); }
.lv-canvas { display: block; }
.lv-life-empty { gap: 12px; padding: 0 16px; text-align: center; }
.lv-life-heart { width: 24px; height: 24px; opacity: 0.6; }
.lv-life-ask { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--foreground); }
.lv-life-form { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 220px; }
.lv-life-form .lv-field { flex: 1 1 auto; min-width: 0; }
.lv-life-save { flex: 0 0 auto; padding: 4px 8px; border-radius: 4px; background: #8B5CF6; color: #FFFFFF; font-size: 12px; font-weight: 600; }

/* Daily prompt (DailyPromptWidget.tsx). */
.lv-prompt-text { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; min-height: 0; padding: 12px 16px; overflow-y: auto; }
.lv-prompt-p { line-height: 1.375; color: var(--foreground); }
.lv-prompt-back { align-self: flex-start; margin-top: 8px; font-size: var(--t-10, 10px); color: var(--muted-foreground); }
.lv-prompt-back:hover { opacity: 0.8; }
.lv-prompt-foot { flex: 0 0 auto; padding: 0 12px 8px; }
.lv-shuffle { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 20px; height: 20px; margin-right: -5px; transition: opacity 0.15s var(--ease-out); }
.lv-shuffle:hover { opacity: 0.8; }
.tile-source .lv-shuffle .ico { display: block; width: 10px; height: 10px; opacity: 1; color: color-mix(in srgb, var(--foreground) 60%, transparent); }

/* Fields (the app's FloatInput and FloatSelect: 40px, label floats). */
.lv-field { position: relative; height: 40px; border-radius: 8px; background: var(--lv-field-bg); border: 1px solid var(--lv-field-border); transition: border-color 0.15s var(--ease-out); }
.lv-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.lv-field-input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  padding: 11px 12px 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 12px; color: var(--lv-field-fg); color-scheme: var(--lv-field-scheme);
  transition: padding-top 0.15s var(--ease-out);
}
.lv-field-label {
  position: absolute; left: 12px; top: 5px; z-index: 2;
  font-size: 10px; line-height: 1; white-space: nowrap; pointer-events: none;
  color: var(--lv-field-label);
  transition: top 0.15s var(--ease-out), font-size 0.15s var(--ease-out), transform 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.lv-field:focus-within .lv-field-label { color: var(--primary); }
.lv-field:has(.lv-field-input:placeholder-shown):not(:focus-within) .lv-field-label { top: 50%; transform: translateY(-50%); font-size: 12px; }
.lv-field:has(.lv-field-input:placeholder-shown):not(:focus-within) .lv-field-input { padding-top: 0; }
.lv-body .lv-field-input:focus-visible, .lv-body .lv-pick-btn:focus-visible { outline: none; }
.lv-pick-btn {
  position: absolute; inset: 0; width: 100%; display: flex; align-items: center;
  padding: 11px 32px 3px 12px; font-size: 12px; text-align: left; color: var(--lv-field-fg);
}
.lv-pick-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-pick-chevron { position: absolute; top: 50%; right: 12px; width: 10px; height: 10px; margin-top: -5px; color: var(--lv-field-label); transition: transform 0.15s var(--ease-out); }
.lv-pick-btn[aria-expanded="true"] .lv-pick-chevron { transform: rotate(180deg); }
.lv-pick.is-open { border-radius: 8px 8px 0 0; }
.lv-pick.is-open.is-up { border-radius: 0 0 8px 8px; }

/* The unit list, drawn on <body> under its button. */
.lv-list {
  position: fixed; z-index: 9999; overflow-y: auto;
  font-family: var(--sans); color: var(--lv-field-fg); background: var(--lv-field-bg);
  border: 1px solid var(--primary); border-top: 0; border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.lv-list.is-up { border-top: 1px solid var(--primary); border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 0 -12px 28px rgba(0,0,0,0.45); }
.lv-opt { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 12px; font-size: 12px; line-height: 1.5; cursor: pointer; }
.lv-opt-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv-opt.is-active { background: color-mix(in srgb, var(--lv-field-fg) 6%, transparent); }
.lv-opt.is-selected { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.lv-opt-check { flex: 0 0 auto; width: 10px; height: 10px; }

/* Unit converter (UnitConverterWidget.tsx): stacked, inline or compact. */
.lv-root.lv-unit { flex-direction: column; justify-content: center; gap: 4px; padding: 4px 10px; }
.lv-root.lv-unit.is-stacked { gap: 6px; padding: 8px 10px; }
.lv-unit-row { display: flex; align-items: flex-start; gap: 8px; }
.lv-unit.is-inline .lv-unit-row, .lv-unit.is-compact .lv-unit-row { gap: 6px; }
.lv-half { flex: 1 1 0%; min-width: 0; }
.lv-quarter { flex: 0 0 24%; width: 24%; }
.lv-unit-swapcell { display: flex; flex: 0 0 auto; align-items: center; height: 40px; }
.lv-unit-mid { display: flex; align-items: center; gap: 8px; }
.lv-unit-rule { flex: 1 1 auto; height: 1px; background: var(--border); }
.lv-swap {
  display: grid; flex: 0 0 auto; place-items: center; width: 18px; height: 18px;
  border-radius: 999px; opacity: 0.5; color: var(--foreground);
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  transition: opacity 0.15s var(--ease-out);
}
.lv-unit.is-stacked .lv-swap { width: 24px; height: 24px; }
.lv-swap:hover, .lv-swap:focus-visible { opacity: 1; }
.lv-swap .ico { width: 10px; height: 10px; }
.lv-unit-answer { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 4px; }
.lv-unit-result { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-14, 14px); line-height: 1.2; color: var(--foreground); }

/* Sticky note (StickyNoteWidget.tsx): light paper and dark ink in every theme. */
.lv-root.lv-sticky { display: block; background: color-mix(in srgb, var(--lv-paper, var(--group-gold)) 56%, white); }
.lv-sticky-text {
  display: block; width: 100%; height: 100%; margin: 0; padding: 12px 12px 20px;
  border: 0; outline: none; resize: none; background: transparent;
  font: inherit; line-height: 1.625; color: #2A2722;
}
.lv-sticky-text::placeholder { color: rgba(42,39,34,0.45); }
.lv-body .lv-sticky-text:focus-visible { outline: none; box-shadow: inset 0 0 0 2px rgba(42,39,34,0.4); }
.lv-sticky-colors {
  position: absolute; right: 8px; bottom: 6px; display: flex; align-items: center; gap: 14px; padding: 4px 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--lv-paper, var(--group-gold)) 56%, white);
  opacity: 0; transition: opacity 0.15s var(--ease-out);
}
.lv-sticky:hover .lv-sticky-colors, .lv-sticky-colors:focus-within { opacity: 1; }
.lv-swatch { position: relative; width: 10px; height: 10px; border-radius: 999px; transition: transform 0.15s var(--ease-out); }
/* A 24px target around a 10px dot (WCAG 2.5.8). The 14px gap puts the dots
   24px apart centre to centre, so the targets do not overlap. */
.lv-swatch::after { content: ""; position: absolute; inset: -7px; }
.lv-swatch:hover { transform: scale(1.25); }
.lv-swatch[aria-checked="true"] { outline: 1.5px solid #2A2722; outline-offset: 1.5px; }
.lv-body .lv-swatch:focus-visible { outline: 2px solid #2A2722; outline-offset: 2px; }

/* Search (SearchWidget.tsx). Sized in container units off the tile. */
.lv-root.lv-search {
  flex-direction: column; align-items: center; justify-content: center; container-type: inline-size;
  gap: clamp(8px, 3cqw, 22px); padding: 0 clamp(10px, 5cqw, 40px);
}
.lv-wordmark { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 13cqw, 52px); line-height: 1; letter-spacing: -0.03em; }
.lv-pill {
  display: flex; align-items: center; gap: 8px; width: 100%; border-radius: 999px;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--foreground) 14%, transparent);
  padding: clamp(4px, 1.4cqw, 8px) clamp(5px, 1.6cqw, 9px) clamp(4px, 1.4cqw, 8px) clamp(10px, 3.5cqw, 18px);
}
.lv-pill:focus-within { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.lv-pill-input {
  flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: clamp(11px, 3.4cqw, 15px); color: var(--foreground);
  -webkit-appearance: none; appearance: none;
}
.lv-pill-input::placeholder { color: var(--muted-foreground); }
.lv-pill-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.lv-body .lv-pill-input:focus-visible { outline: none; }
.lv-pill-go {
  flex: 0 0 auto; border-radius: 999px; color: #FFFFFF; font-weight: 600;
  font-size: clamp(10px, 3cqw, 13px); padding: clamp(4px, 1.5cqw, 8px) clamp(9px, 3cqw, 16px);
  transition: opacity 0.15s var(--ease-out);
}
.lv-pill-go:hover { opacity: 0.85; }

/* Weather (WeatherWidget.tsx). */
.lv-wx { text-align: center; }
.lv-wx-icon { flex: 0 0 auto; }
.lv-wx-temp { display: flex; align-items: baseline; gap: 1px; }
.lv-wx-cond { line-height: 1.25; color: var(--foreground); }
.lv-wx-stats { display: flex; justify-content: center; gap: 20px; font-size: 12px; line-height: 16px; }
.lv-wx-stat { display: flex; flex-direction: column; gap: 2px; }
.lv-wx-stat-name { font-size: 10px; color: var(--muted-foreground); }
.lv-wx-stat-value { font-weight: 600; color: var(--foreground); }

/* Forecast (ForecastWidget.tsx). */
.lv-fc-unit { flex: 0 0 auto; font-size: var(--t-10, 10px); line-height: 1.25; color: color-mix(in srgb, var(--foreground) 55%, transparent); }
.lv-fc { display: flex; flex: 1 1 auto; align-items: stretch; min-height: 0; }
.lv-fc-day { display: flex; flex: 1 1 0%; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 12px 8px; }
.lv-fc-day + .lv-fc-day { border-left: 1px solid color-mix(in srgb, var(--border) 30%, transparent); }
.lv-fc-day.is-today { background: rgba(77,238,234,0.04); }
.lv-fc-name { font-size: var(--t-10, 10px); font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase; color: var(--muted-foreground); }
.is-today .lv-fc-name { color: #4DEEEA; }
.lv-fc-icon { flex: 0 0 auto; width: 22px; height: 22px; }
.lv-fc-high { font-size: 14px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--foreground); }
.lv-fc-range { position: relative; width: 100%; height: 4px; border-radius: 999px; background: color-mix(in srgb, var(--foreground) 8%, transparent); }
.lv-fc-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.lv-fc-low { font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--muted-foreground); }
.lv-fc-rain { font-size: var(--t-10, 10px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lv-fc-rain-unit { font-weight: 400; opacity: 0.8; }
.lv-fc-skel { display: flex; flex: 1 1 auto; align-items: stretch; gap: 8px; padding: 12px; }
.lv-fc-skel-day { display: flex; flex: 1 1 0%; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }

/* Sunrise & sunset (SunriseWidget.tsx, less dawn and dusk). */
.lv-sun { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 12px; min-height: 0; padding: 16px 20px; }
.lv-sun-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.lv-sun-cell { display: flex; flex-direction: column; min-width: 0; }
.lv-sun-label { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: var(--t-10, 10px); font-weight: 700; line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-foreground); }
.lv-sun-ico { width: 9px; height: 9px; }
.lv-sun-value { display: flex; align-items: baseline; gap: 4px; }
.lv-sun-big { font-size: 20px; line-height: 28px; }
.lv-sun-mid { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--foreground); }
.lv-sun-ampm { font-size: 0.65rem; font-weight: 700; color: var(--muted-foreground); }
.lv-sun-ampm.is-small { font-size: 0.6rem; }
.lv-sun-skel { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.lv-sun-skel-row { display: flex; flex-direction: column; gap: 6px; }

/* Air quality (AQIWidget.tsx) has no public source, so the tile is one
   plain line (see the aqi kind in _live.js). */
.lv-note { margin: 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--muted-foreground); }

@media (prefers-reduced-motion: reduce) {
  .lv-skel { animation: none; background: color-mix(in srgb, var(--foreground) 6%, transparent); }
}

/* ── Without JavaScript ─────────────────────────────────────────────────── */
/* Two cases, kept apart on purpose. With scripting off (the browser says so
   through @media (scripting: none)) an empty tile says why, and any claim that
   something is running (mark it .live-only) is not made. With scripting on but
   _live.js not run yet (it is deferred), the skeleton stays and a .live-only
   claim keeps its room but stays invisible, so nothing jumps when the script
   sets html[data-live-on] and nothing false is shown on a slow connection. */
@media (scripting: none) {
  .tile-body[data-live]:empty::before {
    content: "Needs JavaScript to run";
    width: auto;
    height: auto;
    margin: auto;
    padding: 0 8px;
    border-radius: 0;
    background: none;
    font-size: var(--t-11);
    font-weight: 700;
    text-align: center;
    color: var(--muted-foreground);
  }
  .live-only { display: none !important; }
}
html:not([data-live-on]) .live-only { visibility: hidden; }

/* ── Signup states ──────────────────────────────────────────────────────── */
/* One attribute on <html> decides which blocks exist. display:none, so a
   screen reader never hears both calls to action. */
html[data-signup="waitlist"] [data-when="open"],
html[data-signup="open"] [data-when="waitlist"] { display: none !important; }

/* The honeypot: out of sight, still in the DOM for the sort of visitor that
   fills in every field. Never display:none. */
.hp { position: absolute !important; left: -5000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Visually hidden, still read aloud. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    /* none, not a 0.01ms duration: a duration still makes every property a
       transition, and _live.js measures a reading straight after sizing it,
       so it read the old size and clipped ("7:24 p"). */
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
