/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose (deal 3/3, seed modern-home-lab-launcher-pinned-b59d·98db8bf3·2026-11-25·r0)
 * nav: top bar, nine-dot menu dropping a tabbed sheet · signature: glass pins floating in the town's own sky, mountains behind · states: loading, empty, error, full, saving, undo · dose: white by day, night after dark
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · faces: Instrument Sans alone (app scope), DM Mono for times · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: R, a launcher is a familiar grid; the live sky behind it, which the text follows from day to night, is what it's known by */
/* Hallmark · waive 80 · the town and mountains are live SVG the page draws, not a picture in the markup · the owner asked for this inked town by name, and its shop hours, sun and weather follow the real day */
/* Hallmark · waive 11 · the app tile tilts inside the pin that lifts · the owner asked for the apps and the nine-dot button to animate on hover */
/* Hallmark · answered F5 · the tinted tiles are app icons on a launcher, each app's own mark, the way a phone's home screen sets them */
/* Hallmark · answered F24 · the glass edge is an inset rim of light on a pane over a moving sky, not a border; without it a pin melts into a pale sky */
/* Hallmark · answered F14 · form errors open below the fields that caused them in a sheet that already scrolls; reserving the line would leave every form with a gap */

:root {
  color-scheme: light;
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.2rem; --text-xl: 1.44rem; --text-2xl: 1.728rem; --text-3xl: 2.074rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27);
  --gutter: 24px;
  --z-page: 1; --z-dropdown: 100;
  --color-paper: oklch(97.6% 0.011 88); --color-paper-2: oklch(96.5% 0.02 160); --color-paper-3: oklch(93% 0.036 160);
  --color-ink: oklch(21% 0.025 170); --color-ink-2: oklch(31% 0.02 170); --color-muted: oklch(46% 0.024 165);
  --color-rule: oklch(86.5% 0.022 140);
  --color-accent: oklch(50% 0.13 160); --color-accent-deep: oklch(42% 0.11 162); --color-accent-soft: oklch(88% 0.08 160); --color-accent-ink: oklch(99% 0.006 160);
  --color-focus: oklch(45% 0.14 160);
  --p-mon: oklch(85% 0.052 22); --p-tue: oklch(87.5% 0.058 64); --p-wed: oklch(91.5% 0.064 98); --p-thu: oklch(86.5% 0.075 160);
  --p-fri: oklch(87% 0.048 210); --p-sat: oklch(84% 0.045 270); --p-sun: oklch(84% 0.048 322);
  --light: oklch(99.4% 0.016 84); --glint: oklch(100% 0 0);
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-outlier: "DM Mono", ui-monospace, monospace;
  --radius-input: 10px; --radius-card: 14px; --radius-tile: 22px; --radius-sheet: 20px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px oklch(30% 0.03 165 / 0.08), 0 24px 48px -24px oklch(40% 0.08 165 / 0.35);
  --shadow-lift: 0 1px 1px oklch(30% 0.03 165 / 0.10), 8px 18px 28px -14px oklch(36% 0.06 165 / 0.32), 18px 40px 60px -30px oklch(40% 0.08 165 / 0.30);
  --tracking-display: -0.03em;

  /* what sits on the sky: the town says whether its sky is light or dark (html[data-sky]) */
  --sky-ink: var(--color-ink); --sky-muted: var(--color-ink-2);
  --glass: oklch(99.5% 0.008 88 / 0.6); --glass-strong: oklch(99.5% 0.008 88 / 0.8);
  --glass-rim: oklch(100% 0 0 / 0.95); --glass-edge: oklch(40% 0.03 165 / 0.12); --glass-shade: oklch(40% 0.04 165 / 0.10);
  --world-fallback: oklch(96.5% 0.008 90);
  --sheen: oklch(100% 0 0 / 0.3); --sheen-strong: oklch(100% 0 0 / 0.55);
  --sheet: oklch(98.6% 0.01 88 / 0.93); --sheet-solid: oklch(98.6% 0.01 88 / 0.97); --sheet-clear: oklch(98.6% 0.01 88 / 0);
  --edge: oklch(40% 0.03 165 / 0.12); --hollow: oklch(40% 0.03 165 / 0.10); --drop: oklch(40% 0.03 165 / 0.25);
  --shadow-tile: 0 1px 2px oklch(30% 0.03 165 / 0.14); --form-glass: oklch(99% 0.008 88 / 0.82);
  /* Dose's night ground, for when the town's sky is dark */
  --night-ink: oklch(96.5% 0.012 160); --night-muted: oklch(85% 0.02 250);
  --night-glass: oklch(30% 0.04 268 / 0.5); --night-glass-strong: oklch(33% 0.045 268 / 0.72);
  --night-rim: oklch(100% 0 0 / 0.22); --night-edge: oklch(100% 0 0 / 0.10); --night-shade: oklch(5% 0.02 268 / 0.25); --night-sky: oklch(18% 0.04 268);
}
:root[data-sky="night"] {
  --sky-ink: var(--night-ink); --sky-muted: var(--night-muted);
  --glass: var(--night-glass); --glass-strong: var(--night-glass-strong);
  --glass-rim: var(--night-rim); --glass-edge: var(--night-edge); --glass-shade: var(--night-shade);
  --world-fallback: var(--night-sky);
}

/* faces: Instrument Sans and DM Mono (SIL Open Font License, the OFL files ship beside them), served from athena itself */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/font-instrumentsans-regular.woff) format("woff"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/font-instrumentsans-bold.woff) format("woff"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/font-dmmono-regular.woff) format("woff"); }

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) transparent; }
body { margin: 0; min-height: 100dvh; background: var(--world-fallback); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.5; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); font-synthesis: none; }
::selection { background: color-mix(in oklab, var(--color-accent) 24%, transparent); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: var(--tracking-display); line-height: 1.1; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
.num, .clock { font-family: var(--font-outlier); font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ the town, behind everything */
.world { position: fixed; inset: 0; z-index: 0; background: var(--world-sky, var(--world-fallback)); }
#world { position: absolute; inset: 0; }
#world svg { width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
#world svg .pp { fill: var(--paper, var(--color-paper)); }

/* the page floats over it; only its own pieces take the pointer, so the wind and the people still answer */
.page { position: relative; z-index: var(--z-page); min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; pointer-events: none; color: var(--sky-ink); }
.page :is(a, button, input, form, .card, .drawer, .status) { pointer-events: auto; }

/* ------------------------------------------------------------ glass */
.glass { background: linear-gradient(var(--sheen), transparent 42%), var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 var(--glass-rim), inset 0 0 0 1px var(--glass-edge), inset 0 -18px 28px -22px var(--glass-shade), var(--shadow-card); }

/* ------------------------------------------------------------ top bar */
.bar { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--gutter); }
.waffle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); color: var(--sky-ink); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.waffle .dots { display: grid; grid-template-columns: repeat(3, 4px); gap: var(--space-2xs); transition: transform var(--dur-short) var(--ease-out); }
.waffle .dots span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; transition: transform var(--dur-short) var(--ease-out); }
.waffle:hover .dots span { transform: scale(1.35); }
.waffle:hover .dots span:nth-child(2), .waffle:hover .dots span:nth-child(4) { transition-delay: 30ms; }
.waffle:hover .dots span:nth-child(3), .waffle:hover .dots span:nth-child(5), .waffle:hover .dots span:nth-child(7) { transition-delay: 60ms; }
.waffle:hover .dots span:nth-child(6), .waffle:hover .dots span:nth-child(8) { transition-delay: 90ms; }
.waffle:hover .dots span:nth-child(9) { transition-delay: 120ms; }
.waffle:active { transform: scale(0.94); }
.waffle[aria-expanded="true"] { background: var(--color-accent-soft); color: var(--color-accent-deep); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.waffle[aria-expanded="true"] .dots { transform: rotate(45deg) scale(0.92); }
.waffle:focus-visible { outline-offset: 3px; }

.wordmark { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.02em; text-decoration: none; color: var(--sky-ink); border-radius: var(--radius-input); padding: var(--space-2xs) var(--space-xs) var(--space-2xs) var(--space-2xs); }
.wordmark:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--color-accent-ink); background: linear-gradient(var(--sheen), transparent 50%), var(--color-accent); box-shadow: inset 0 1px 0 var(--sheen-strong), 0 0 0 1px var(--color-accent-deep); }
.mark svg { width: 20px; height: 20px; }

.status { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-sm); min-height: 40px; padding: 0 var(--space-md) 0 var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-sm); color: var(--sky-ink); }
.status:empty { display: none; }
.wx { display: inline-flex; align-items: center; gap: var(--space-xs); }
.wx svg { width: 20px; height: 20px; }
.wx button { border: 0; background: none; padding: 0; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; cursor: pointer; }
.clock { font-size: var(--text-sm); }

/* ------------------------------------------------------------ home: the greeting and the pins, up in the sky */
.home { align-self: start; display: grid; justify-items: center; text-align: center; padding: clamp(var(--space-lg), 9vh, var(--space-3xl)) var(--gutter) var(--space-xl); }
.greet { font-size: var(--text-3xl); color: var(--sky-ink); max-width: 24ch; }
.sub { margin-top: var(--space-xs); color: var(--sky-muted); }

.pins { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); margin-top: var(--space-xl); max-width: calc(5 * 132px + 4 * var(--space-md)); }
.pin { --t: var(--p-fri); position: relative; display: grid; justify-items: center; align-content: center; gap: var(--space-sm); width: 132px; aspect-ratio: 1; padding: var(--space-md) var(--space-xs) var(--space-sm); border-radius: var(--radius-tile); color: var(--sky-ink); text-decoration: none; cursor: pointer;
  transition: transform var(--dur-short) var(--ease-out); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-lift); opacity: 0; transition: opacity var(--dur-short) var(--ease-out); pointer-events: none; }
.pin:hover { transform: translateY(-5px); }
.pin:hover::after { opacity: 1; }
.pin:hover .tile { transform: scale(1.07) rotate(-4deg); }
.pin:active { transform: translateY(-1px) scale(0.97); transition-duration: var(--dur-micro); }
.pin:focus-visible { outline-offset: 4px; }
.pin .label { max-width: 100%; font-size: var(--text-sm); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin--add { background: color-mix(in oklab, var(--glass) 45%, transparent); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1.5px dashed color-mix(in oklab, var(--sky-ink) 40%, transparent); color: var(--sky-muted); font: inherit; }
.pin--add .tile { background: none; box-shadow: none; color: var(--sky-ink); }
.pin--add:hover { border-color: var(--sky-ink); color: var(--sky-ink); }

/* an app's icon: a small tinted plastic tile */
.tile { --t: var(--p-fri); display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; color: var(--color-ink); transition: transform var(--dur-short) var(--ease-out);
  background: linear-gradient(var(--sheen-strong), transparent 55%), var(--t);
  box-shadow: inset 0 1.5px 0 var(--glint), inset 0 -10px 16px -10px color-mix(in oklab, var(--t) 50%, var(--color-ink)), var(--shadow-tile); }
.tile svg { width: 28px; height: 28px; }
.tile .letter { font-weight: 700; font-size: 1.5rem; line-height: 1; letter-spacing: -0.02em; }
.tile.sm { width: 40px; height: 40px; border-radius: 12px; }
.tile.sm svg { width: 21px; height: 21px; }
.tile.sm .letter { font-size: 1.1rem; }
[data-tint="mon"] { --t: var(--p-mon); } [data-tint="tue"] { --t: var(--p-tue); } [data-tint="wed"] { --t: var(--p-wed); } [data-tint="thu"] { --t: var(--p-thu); }
[data-tint="fri"] { --t: var(--p-fri); } [data-tint="sat"] { --t: var(--p-sat); } [data-tint="sun"] { --t: var(--p-sun); }

/* loading: three empty tiles breathing */
.pins.skeleton .pin { cursor: default; animation: breathe 1.6s var(--ease-in-out) infinite alternate; }
.pins.skeleton .pin:hover { transform: none; }
.pins.skeleton .pin:hover::after { opacity: 0; }
.pins.skeleton .tile { background: color-mix(in oklab, var(--sky-ink) 10%, transparent); box-shadow: none; }
.pins.skeleton li:nth-child(2) .pin { animation-delay: 0.2s; } .pins.skeleton li:nth-child(3) .pin { animation-delay: 0.4s; }
@keyframes breathe { from { opacity: 0.55; } to { opacity: 1; } }

.card { display: grid; justify-items: center; gap: var(--space-md); max-width: 360px; margin-top: var(--space-xl); padding: var(--space-lg); border-radius: var(--radius-card); color: var(--sky-ink); }

/* ------------------------------------------------------------ controls (moulded plastic) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: 40px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-input); white-space: nowrap; cursor: pointer; color: var(--color-ink);
  background: linear-gradient(var(--light), var(--color-paper-2)); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule), 0 2px 0 var(--color-rule);
  transition: transform var(--dur-micro) var(--ease-out); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: linear-gradient(var(--light), var(--color-paper-3)); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.btn--primary { color: var(--color-accent-ink); background: linear-gradient(var(--color-accent), var(--color-accent-deep)); box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px var(--color-accent-deep), 0 2px 0 var(--color-accent-deep); }
.btn--primary:hover { background: linear-gradient(color-mix(in oklab, var(--color-accent) 88%, var(--glint)), var(--color-accent)); }
.btn--primary:active { box-shadow: inset 0 1px 0 var(--sheen), 0 0 0 1px var(--color-accent-deep); }
.btn--small { height: 32px; padding: 0 var(--space-sm); font-size: var(--text-sm); border-radius: 9px; }
.btn--icon { width: 32px; padding: 0; }
.btn--quiet { background: none; box-shadow: none; color: var(--color-muted); }
.btn--quiet:hover { background: var(--color-paper-2); color: var(--color-ink); }
.btn--quiet:active { box-shadow: none; }
/* a key that stays down: pinned, chosen */
.key[aria-pressed="true"], .key[aria-checked="true"] { background: var(--color-accent-soft); color: var(--color-accent-deep); box-shadow: inset 0 1px 2px color-mix(in oklab, var(--color-accent-deep) 25%, transparent), 0 0 0 1px color-mix(in oklab, var(--color-accent) 45%, transparent); }

.field { display: grid; gap: var(--space-2xs); min-width: 0; }
.field label, .legend { font-size: var(--text-sm); color: var(--color-ink-2); }
input[type="text"], input[type="password"], input[type="url"], input:not([type]) { width: 100%; height: 40px; padding: 0 var(--space-sm); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--light); color: var(--color-ink); }
input:hover { border-color: var(--color-ink-2); }
input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
input[aria-invalid="true"] { border-color: var(--color-error); }
input:disabled { opacity: 0.6; cursor: not-allowed; }
.error { color: var(--color-error); font-size: var(--text-sm); }
.note { color: var(--color-muted); font-size: var(--text-sm); }

/* ------------------------------------------------------------ the sheet that drops from the nine dots */
.drawer { position: fixed; z-index: var(--z-dropdown); top: 70px; left: var(--space-md); width: min(440px, calc(100% - 2 * var(--space-md))); max-height: calc(100dvh - 86px); overflow: auto; overscroll-behavior: contain;
  color: var(--color-ink); border-radius: var(--radius-sheet);
  background: linear-gradient(var(--sheen-strong), transparent 120px), var(--sheet); -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--edge), var(--shadow-lift);
  transform-origin: 22px -8px; transform: translateY(-12px) scale(0.96); opacity: 0; visibility: hidden;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
.drawer.open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer-head { position: sticky; top: 0; z-index: 1; padding: var(--space-sm) var(--space-sm) var(--space-xs); background: var(--sheet-solid); box-shadow: 0 1px 0 var(--edge); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; }
.tabs { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: 13px; background: var(--color-paper-2); box-shadow: inset 0 1px 2px var(--hollow); }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); height: 34px; border: 0; border-radius: 10px; background: none; color: var(--color-muted); font-size: var(--text-sm); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--color-ink); }
.tab:active { transform: scale(0.97); }
.tab[aria-selected="true"] { background: var(--light); color: var(--color-ink); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule), 0 2px 4px -2px var(--drop); }
.panel { padding: var(--space-xs) var(--space-lg) var(--space-lg); }
.panel > section + section { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.said:empty { display: none; }
.panel .note + form, .panel .note + .row { margin-top: var(--space-sm); }
.panel h2 { font-size: var(--text-md); letter-spacing: -0.01em; }
.panel .head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.stack { display: grid; gap: var(--space-sm); }
.row { display: flex; gap: var(--space-xs); align-items: end; flex-wrap: wrap; }
.row .field { flex: 1 1 160px; }
.actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; }

.apps li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding: var(--space-xs) 0; }
.apps li + li { border-top: 1px solid color-mix(in oklab, var(--color-rule) 70%, transparent); }
.apps .name { min-width: 0; line-height: 1.3; }
.apps .name a { text-decoration: none; }
.apps .name a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.apps .sub { display: block; margin: 0; font-size: var(--text-sm); color: var(--color-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apps .tools { display: flex; gap: var(--space-2xs); align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-2xs); }
.tag { display: inline-flex; align-items: center; gap: var(--space-2xs); height: 22px; padding: 0 var(--space-xs); border-radius: var(--radius-pill); font-size: var(--text-xs); background: var(--color-paper-2); color: var(--color-ink-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
.tag svg { width: 13px; height: 13px; }
.tag--all { background: var(--color-accent-soft); color: var(--color-accent-deep); box-shadow: none; }

.places { display: grid; gap: var(--space-2xs); }
.places button { width: 100%; text-align: left; justify-content: flex-start; }
.said { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }

/* admin: the icon picker and the who-sees-it choice */
.icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--space-xs); }
.icons label { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius-input); cursor: pointer; color: var(--color-ink-2); background: var(--light); box-shadow: inset 0 0 0 1px var(--color-rule); transition: transform var(--dur-micro) var(--ease-out); }
.icons label:hover { color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-muted); }
.icons label:active { transform: scale(0.94); }
.icons input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.icons svg { width: 20px; height: 20px; }
.icons label:has(input:checked) { background: var(--color-accent-soft); color: var(--color-accent-deep); box-shadow: inset 0 0 0 1.5px var(--color-accent); }
.icons label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.seg { display: inline-flex; gap: var(--space-2xs); padding: var(--space-2xs); border-radius: 12px; background: var(--color-paper-2); }
.seg label { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--space-sm); border-radius: 9px; font-size: var(--text-sm); color: var(--color-muted); cursor: pointer; }
.seg label:hover { color: var(--color-ink); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--light); color: var(--color-ink); box-shadow: inset 0 1px 0 var(--glint), 0 0 0 1px var(--color-rule); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 1px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-xs); }
legend { padding: 0; margin-bottom: var(--space-2xs); }

/* ------------------------------------------------------------ sign in */
.signin { align-self: start; display: grid; justify-items: center; padding: clamp(var(--space-md), 8vh, var(--space-3xl)) var(--gutter) var(--space-xl); }
.signin form { display: grid; gap: var(--space-md); width: min(400px, 100%); padding: var(--space-lg); border-radius: var(--radius-sheet); color: var(--color-ink); background: linear-gradient(var(--sheen), transparent 40%), var(--form-glass); }
.signin h1 { font-size: var(--text-2xl); }
.signin .btn { width: 100%; height: 44px; }
.signin .top { display: grid; gap: var(--space-2xs); }

/* ------------------------------------------------------------ smaller screens */
@media (max-width: 40rem) {
  :root { --gutter: 16px; }
  .greet { font-size: var(--text-2xl); }
  .pins { gap: var(--space-sm); margin-top: var(--space-lg); }
  .pin { width: 104px; gap: var(--space-xs); padding: var(--space-sm) var(--space-2xs) var(--space-xs); border-radius: 19px; }
  .pin .tile { width: 50px; height: 50px; border-radius: 15px; }
  .pin .tile svg { width: 25px; height: 25px; }
  .status .wx .said-long { display: none; }
  .drawer { top: 66px; left: var(--space-xs); width: calc(100% - 2 * var(--space-xs)); max-height: calc(100dvh - 76px); }
  .panel { padding-inline: var(--space-md); }
  .icons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .glass, .drawer, .signin form { border: 1px solid CanvasText; }
  .waffle .dots span { background: CanvasText; }
}
