/* ───────────── Tally · Liquid Glass (Mealjot / Forge family) ───────────── */

:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Nunito', system-ui, sans-serif;

  --bg: #f3f1f8;
  --text: #0c0b14;
  --text-2: rgba(12, 11, 20, 0.62);
  --text-3: rgba(12, 11, 20, 0.48);
  --hair: rgba(12, 11, 20, 0.08);
  --fill: rgba(120, 116, 150, 0.12);
  --fill-2: rgba(120, 116, 150, 0.2);

  --g-top: rgba(255, 255, 255, 0.74);
  --g-bot: rgba(255, 255, 255, 0.48);
  --g-rim: rgba(255, 255, 255, 0.95);
  --g-rim-2: rgba(255, 255, 255, 0.35);
  --g-shadow: 0 12px 34px -10px rgba(45, 30, 90, 0.22), 0 2px 8px -2px rgba(45, 30, 90, 0.08);
  --g-shadow-lg: 0 24px 60px -16px rgba(45, 30, 90, 0.32), 0 4px 14px -4px rgba(45, 30, 90, 0.1);
  --blur: 22px;
  --sheet: rgba(250, 249, 253, 0.84);

  --accent: #5b4cf5;
  --accent-2: #2f9bff;
  --accent-soft: rgba(91, 76, 245, 0.13);
  --good: #12a85b;
  --warn: #e8930c;
  --bad: #f0384b;

  --blob-1: #9fd4ff;
  --blob-2: #b9a6ff;
  --blob-3: #8fe3c7;
  --blob-4: #ffc2a8;
  --blob-o: 0.6;

  --ease-soft: cubic-bezier(.34, 1.56, .64, 1);
  --ease-liquid: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.2, 1.12, .32, 1);

  --r-xl: 30px;
  --r-l: 24px;
  --r-m: 18px;
  --r-s: 13px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

:root[data-theme='dark'] {
  --bg: #08080d;
  --text: #f6f5fb;
  --text-2: rgba(246, 245, 251, 0.64);
  --text-3: rgba(246, 245, 251, 0.46);
  --hair: rgba(255, 255, 255, 0.09);
  --fill: rgba(255, 255, 255, 0.08);
  --fill-2: rgba(255, 255, 255, 0.14);
  --g-top: rgba(255, 255, 255, 0.12);
  --g-bot: rgba(255, 255, 255, 0.045);
  --g-rim: rgba(255, 255, 255, 0.3);
  --g-rim-2: rgba(255, 255, 255, 0.06);
  --g-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.6), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
  --g-shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.75), 0 4px 14px -4px rgba(0, 0, 0, 0.5);
  --sheet: rgba(22, 21, 32, 0.86);
  --accent: #8a7dff;
  --accent-2: #47a8ff;
  --accent-soft: rgba(138, 125, 255, 0.18);
  --good: #2fd27a;
  --blob-1: #0b74d1;
  --blob-2: #5b3cff;
  --blob-3: #00a37a;
  --blob-4: #c2410c;
  --blob-o: 0.34;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #08080d;
    --text: #f6f5fb;
    --text-2: rgba(246, 245, 251, 0.64);
    --text-3: rgba(246, 245, 251, 0.46);
    --hair: rgba(255, 255, 255, 0.09);
    --fill: rgba(255, 255, 255, 0.08);
    --fill-2: rgba(255, 255, 255, 0.14);
    --g-top: rgba(255, 255, 255, 0.12);
    --g-bot: rgba(255, 255, 255, 0.045);
    --g-rim: rgba(255, 255, 255, 0.3);
    --g-rim-2: rgba(255, 255, 255, 0.06);
    --g-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.6), 0 2px 8px -2px rgba(0, 0, 0, 0.4);
    --g-shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.75), 0 4px 14px -4px rgba(0, 0, 0, 0.5);
    --sheet: rgba(22, 21, 32, 0.86);
    --accent: #8a7dff;
    --accent-2: #47a8ff;
    --accent-soft: rgba(138, 125, 255, 0.18);
    --good: #2fd27a;
    --blob-1: #0b74d1;
    --blob-2: #5b3cff;
    --blob-3: #00a37a;
    --blob-4: #c2410c;
    --blob-o: 0.34;
  }
}

/* ───────────── reset ───────────── */
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.35;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body { touch-action: manipulation; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .42; cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.ic { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; }
body { background: transparent; } /* html paints the colour, so the blobs behind can show */
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.num, .big-money, .row-amt, .timer-clock, .tile b, b { font-variant-numeric: tabular-nums; }

/* ───────────── ambient background ───────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(60px); opacity: var(--blob-o);
  animation: drift 26s ease-in-out infinite alternate;
}
.bg i:nth-child(1) { background: var(--blob-1); top: -30vmax; left: -20vmax; }
.bg i:nth-child(2) { background: var(--blob-2); top: -10vmax; right: -35vmax; animation-delay: -8s; }
.bg i:nth-child(3) { background: var(--blob-3); bottom: -35vmax; left: -25vmax; animation-delay: -16s; }
.bg i:nth-child(4) { background: var(--blob-4); bottom: -30vmax; right: -30vmax; animation-delay: -4s; opacity: calc(var(--blob-o) * .7); }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vmax, 4vmax) scale(1.08); }
  100% { transform: translate(-4vmax, 7vmax) scale(.96); }
}

/* ───────────── glass ───────────── */
.glass {
  background: linear-gradient(160deg, var(--g-top), var(--g-bot));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 0.5px solid var(--g-rim-2);
  box-shadow: inset 0 1px 0 var(--g-rim), var(--g-shadow);
}
.press { transition: transform .38s var(--ease-soft), box-shadow .3s var(--ease-liquid), background-color .25s, opacity .2s; }
.press:active:not(:disabled) { transform: scale(.955); transition-duration: .12s; }

.pop { animation: pop .62s var(--spring) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ───────────── page ───────────── */
.page {
  max-width: 560px; margin: 0 auto;
  padding: calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 120px);
  display: flex; flex-direction: column; gap: 16px;
}
.page > * { animation: rise .55s var(--spring) both; }
.page > *:nth-child(2) { animation-delay: .03s; }
.page > *:nth-child(3) { animation-delay: .06s; }
.page > *:nth-child(4) { animation-delay: .09s; }
.page > *:nth-child(n+5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 2px 0; }
.kicker { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
h1 { font-family: var(--font-round); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.head-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.icon-btn.soft { background: var(--fill); }
.icon-btn .ic { width: 20px; height: 20px; }
.pill { height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 14px; }

.section { display: flex; flex-direction: column; gap: 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 0; gap: 10px; }
h2 { font-size: 20px; font-weight: 750; letter-spacing: -.01em; font-family: var(--font-round); }
.link { color: var(--accent); font-weight: 650; font-size: 15px; padding: 4px 2px; }

/* ───────────── buttons & chips ───────────── */
.btn {
  height: 48px; padding: 0 18px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 650; font-size: 15.5px; white-space: nowrap;
}
.btn.small { height: 36px; padding: 0 15px; font-size: 14.5px; }
.btn.wide { width: 100%; }
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn.ghost { background: var(--fill); }
.btn.danger { color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.btn.glow { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px var(--accent-soft), 0 10px 24px -8px var(--accent); } }

.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--fill); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none;
  transition: background-color .25s, color .25s, transform .38s var(--ease-soft);
}
.chip .ic { width: 15px; height: 15px; }
.chip.on { background: var(--text); color: var(--bg); }
.chip.tint { --c: oklch(0.66 0.16 var(--h)); }
.chip.tint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.tint.on { background: var(--c); color: #fff; }
.chip.tint.on::before { background: #fff; }
.chip.soft { background: var(--fill); height: 30px; font-size: 13px; padding: 0 11px; color: var(--text-2); }
.chip.hot { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips:empty { display: none; }

.seg { display: flex; background: var(--fill); border-radius: 14px; padding: 3px; gap: 2px; }
.seg button {
  flex: 1; height: 36px; border-radius: 11px; font-weight: 600; font-size: 14.5px; text-align: center; color: var(--text-2);
  transition: background-color .3s var(--ease-liquid), color .25s, box-shadow .3s;
}
.seg button.on { background: var(--g-top); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0,0,0,.18), inset 0 0.5px 0 var(--g-rim); }
:root[data-theme='dark'] .seg button.on { background: rgba(255,255,255,.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .seg button.on { background: rgba(255,255,255,.16); } }

/* ───────────── hero ───────────── */
.hero { border-radius: var(--r-xl); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none;
}
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label { font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.big-money { font-family: var(--font-round); font-weight: 800; letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; }
.big-money > span { font-size: 54px; }
.big-money small { font-size: 26px; color: var(--text-2); margin-left: 1px; }
.hero-note { font-size: 14px; color: var(--text-2); margin-top: -4px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-stats div, .tile { background: var(--fill); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats b, .tile b { font-size: 18px; font-weight: 750; font-family: var(--font-round); }
.hero-stats span, .tile span { font-size: 12.5px; color: var(--text-2); }
.hero-actions { display: flex; gap: 10px; }
.hero-actions .btn.primary { flex: 1; }
.goal { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.goal-bar { height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .8s var(--spring); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tiles.glass { border-radius: var(--r-l); padding: 10px; }

/* ───────────── timer (liquid bucket) ───────────── */
.timer {
  --c: oklch(0.64 0.17 var(--h));
  border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate;
}
.liquid { position: absolute; inset: 0; z-index: -1; }
.liquid i {
  position: absolute; left: -75%; width: 250%; aspect-ratio: 1; border-radius: 43%;
  top: calc(100% - var(--fill) * 100%);
  transition: top 1s var(--ease-liquid);
  background: color-mix(in srgb, var(--c) 30%, transparent);
  animation: wave 11s linear infinite;
}
.liquid i:nth-child(2) { border-radius: 40%; animation-duration: 16s; margin-top: 6px; background: color-mix(in srgb, var(--c) 22%, transparent); }
@keyframes wave { to { transform: rotate(360deg); } }
.timer-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.timer-top { display: flex; align-items: center; gap: 8px; }
.timer-job { font-weight: 700; flex: 1; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.mini-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-2); }
.mini-x .ic { width: 15px; height: 15px; }
.timer-clock { font-family: var(--font-round); font-size: 52px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.timer-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text-2); }
.timer-meta b { color: var(--text); font-size: 20px; font-family: var(--font-round); }
.btn.stop { margin-top: 8px; color: #fff; background: var(--c); box-shadow: 0 10px 24px -10px var(--c); }

/* ───────────── jobs ───────────── */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.job {
  --c: oklch(0.65 0.17 var(--h));
  border-radius: var(--r-l); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 150px;
  position: relative; overflow: hidden; cursor: pointer; user-select: none; -webkit-user-select: none;
}
.job::before {
  content: ''; position: absolute; inset: auto -30% -50% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%); pointer-events: none;
}
.job-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; }
.job-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-top: 4px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.go {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--c); box-shadow: 0 8px 18px -6px var(--c), inset 0 1px 0 rgba(255,255,255,.35);
}
.go .ic { width: 20px; height: 20px; }
.go.running { animation: breathe 2s ease-in-out infinite; }
.go.done { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); box-shadow: none; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 22%, transparent); } }
.job-name { font-weight: 750; font-size: 16px; margin-top: 12px; line-height: 1.2; }
.job-rate { font-size: 12.5px; color: var(--text-2); }
.job-today { font-size: 12.5px; color: var(--text-3); margin-top: 4px; font-weight: 600; }
.job.add {
  border: 1.5px dashed var(--fill-2); align-items: center; justify-content: center; gap: 6px;
  color: var(--text-2); font-weight: 650; background: transparent; min-height: 150px;
}
.job.add .ic { width: 26px; height: 26px; }

/* ───────────── lists ───────────── */
.list { border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; }
.list.pad { padding: 14px; gap: 14px; }
.list.form { gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row {
  --c: oklch(0.65 0.17 var(--h));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; min-height: 58px;
  position: relative;
}
.row + .row::before { content: ''; position: absolute; top: 0; left: 36px; right: 0; height: 0.5px; background: var(--hair); }
button.row:active { background: var(--fill); }
.row.dim { opacity: .55; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.row-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub .note { color: var(--text-3); }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row-amt { font-weight: 700; font-family: var(--font-round); }
.badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.badge.unpaid { background: var(--fill); color: var(--text-2); }
.badge.req { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.paid { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.empty {
  border-radius: var(--r-l); padding: 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; color: var(--text-2); font-size: 14px; width: 100%;
}
.empty b { color: var(--text); font-size: 16px; }
.empty .ic { width: 28px; height: 28px; color: var(--text-3); }
.press-text { padding: 0; }
.reorder .icon-btn { width: 32px; height: 32px; font-weight: 700; }

/* ───────────── history ───────────── */
.search { border-radius: 14px; display: flex; }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 14px; outline: none; font-size: 16px; }
.month-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 0; }
.month-head span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.day-head { display: flex; justify-content: space-between; padding: 4px 6px 0; font-size: 13px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }

/* ───────────── pay ───────────── */
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.bd-row { --c: oklch(0.65 0.17 var(--h)); display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.bd-name { flex: 1; font-weight: 600; }
.bd-what { color: var(--text-2); font-size: 13px; }
.payout { border-radius: var(--r-l); overflow: hidden; }
.payout.paid { opacity: .85; }
.payout-main { display: flex; align-items: center; gap: 10px; padding: 14px 16px; width: 100%; }
.payout-main .row-title { font-size: 19px; font-family: var(--font-round); font-weight: 750; }
.payout-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 12px 16px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.check input { display: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--fill-2); display: grid; place-items: center; color: transparent; transition: all .3s var(--ease-soft); }
.check .box .ic { width: 14px; height: 14px; }
.check.on .box { background: var(--good); border-color: var(--good); color: #fff; transform: scale(1.06); }
.check.on { color: var(--text); }

/* ───────────── insights ───────────── */
.month-nav { display: flex; align-items: center; justify-content: space-between; border-radius: 999px; padding: 4px; }
.month-nav b { font-weight: 700; }
.bar-row { --c: oklch(0.65 0.17 var(--h)); display: grid; grid-template-columns: 1fr; gap: 5px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; }
.bar { height: 10px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--c); animation: grow .9s var(--spring) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.bar-sub { font-size: 12px; color: var(--text-2); }
.cal { border-radius: var(--r-l); padding: 12px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.cal-wd { font-size: 11px; font-weight: 700; color: var(--text-3); padding-bottom: 2px; }
.cal-day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--text-3);
  background: var(--fill);
}
.cal-day.has { color: #fff; background: color-mix(in srgb, var(--accent) calc(var(--lvl) * 100%), var(--accent-2)); }
.cal-day.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.weeks { border-radius: var(--r-l); padding: 14px 10px 8px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; height: 170px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.wk-bar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--fill); border-radius: 8px; overflow: hidden; }
.wk-bar i { width: 100%; border-radius: 8px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); animation: up .9s var(--spring) both; transform-origin: bottom; }
@keyframes up { from { transform: scaleY(0); } }
.wk.on .wk-bar { outline: 2px solid var(--accent); outline-offset: 1px; }
.wk-label { font-size: 10.5px; color: var(--text-3); font-weight: 600; }

/* ───────────── sheets ───────────── */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(8, 6, 20, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; max-width: 560px; width: 100%; margin: 0 auto; max-height: calc(100dvh - var(--safe-t) - 18px);
  background: var(--sheet); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border-radius: 32px 32px 0 0; box-shadow: var(--g-shadow-lg), inset 0 1px 0 var(--g-rim);
  display: flex; flex-direction: column;
  view-transition-name: sheet;
  transition: transform .45s var(--spring);
}
.sheet.dragging { transition: none; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-wrap.closing .scrim { opacity: 0; transition: opacity .26s; }
.grab-zone { touch-action: none; padding-top: 8px; flex: none; }
.grabber { width: 38px; height: 5px; border-radius: 99px; background: var(--fill-2); margin: 0 auto 4px; }
.sheet-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 0 18px calc(var(--safe-b) + 24px); display: flex; flex-direction: column; gap: 14px;
}
.sheet-body > * { flex-shrink: 0; }
.sheet-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  position: sticky; top: 0; z-index: 2; padding: 4px 0 6px; margin: 0 -18px; padding-inline: 18px;
  background: linear-gradient(var(--sheet) 70%, transparent);
}
.sheet-head h3 { font-size: 17px; font-weight: 700; text-align: center; }
.sheet-head > :first-child { justify-self: start; }
.sheet-head > :last-child { justify-self: end; }
.sheet-head.plain { display: flex; justify-content: space-between; padding: 2px 18px 10px; margin: 0; background: none; }
.sheet-head.plain h3 { font-size: 22px; font-family: var(--font-round); font-weight: 800; text-align: left; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12.5px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.input {
  width: 100%; border: 0; outline: none; background: var(--fill); border-radius: 14px; padding: 12px 14px; font-size: 16px;
  transition: box-shadow .25s var(--ease-liquid), background-color .25s;
  -webkit-appearance: none; appearance: none; min-height: 46px;
}
.input:focus { box-shadow: 0 0 0 3px var(--accent-soft); background: var(--g-top); }
textarea.input { resize: vertical; min-height: 160px; line-height: 1.45; font-size: 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.date-row { display: flex; gap: 8px; align-items: center; }
.date-row .input { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--text-2); text-align: center; }
.hint.left { text-align: left; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--fill); font-size: 14px; color: var(--text-2); }
.notice.install { flex-direction: column; gap: 4px; background: var(--accent-soft); }
.notice.install b { color: var(--text); }

.job-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.card { border-radius: var(--r-l); padding: 14px; }
.dur-card { display: flex; flex-direction: column; gap: 12px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.num { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--fill); border-radius: 16px; padding: 8px 4px 6px; }
.num input {
  width: 100%; border: 0; background: transparent; outline: none; text-align: center;
  font-family: var(--font-round); font-size: 36px; font-weight: 800; letter-spacing: -.02em; padding: 0;
  -moz-appearance: textfield;
}
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num input::placeholder { color: var(--text-3); }
.num span { font-size: 12px; color: var(--text-2); font-weight: 600; }
.typed { text-align: center; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.range { display: flex; align-items: center; gap: 10px; }
.time { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-2); font-weight: 650; }
.time input { border: 0; background: var(--fill); border-radius: 14px; padding: 10px; font-size: 24px; font-weight: 700; font-family: var(--font-round); text-align: center; outline: none; width: 100%; min-height: 52px; }
.arrow { color: var(--text-3); font-size: 22px; margin-top: 18px; }
.stepper-card { display: flex; align-items: center; justify-content: space-between; }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper b { font-size: 30px; font-family: var(--font-round); min-width: 30px; text-align: center; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--fill); font-size: 24px; font-weight: 600; display: grid; place-items: center; }

.preview { border-radius: var(--r-l); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.preview-line { font-weight: 650; }
.preview-amt { font-family: var(--font-round); font-size: 30px; font-weight: 800; color: var(--good); white-space: nowrap; animation: pop .5s var(--spring); }
.buckets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
.bk { width: 14px; height: 18px; border-radius: 3px 3px 6px 6px; background: var(--fill); overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--hair); }
.bk i { width: 100%; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-radius: 2px 2px 5px 5px; transition: height .5s var(--spring); }

.job-preview { --c: oklch(0.65 0.17 var(--h)); border-radius: var(--r-l); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.job-preview .job-dot { grid-row: span 2; margin: 0; }
.job-preview span:last-child { font-size: 13px; color: var(--text-2); }
.hues { display: flex; gap: 10px; flex-wrap: wrap; }
.hue { width: 34px; height: 34px; border-radius: 50%; background: oklch(0.65 0.17 var(--h)); transition: transform .35s var(--ease-soft), box-shadow .3s; }
.hue.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px oklch(0.65 0.17 var(--h)); transform: scale(1.08); }
.money-input { display: flex; align-items: center; gap: 10px; }
.money-input > span:first-child { font-weight: 700; font-size: 18px; color: var(--text-2); }
.money-input .input { flex: 1; }
.money-input.big { border-radius: var(--r-l); padding: 6px 18px; }
.money-input.big input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-family: var(--font-round); font-size: 34px; font-weight: 800; padding: 8px 0; }
.money-input.big .ic { color: var(--text-2); width: 24px; height: 24px; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.custom-step { display: inline-flex; align-items: center; gap: 6px; }
.custom-step .input { width: 96px; min-height: 34px; padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.examples { display: flex; flex-direction: column; gap: 6px; background: var(--fill); border-radius: 16px; padding: 12px 14px; }
.ex-row { display: grid; grid-template-columns: 1fr 1fr auto; font-size: 14.5px; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; cursor: pointer; }
.toggle-row span { display: flex; flex-direction: column; gap: 2px; }
.toggle-row small { color: var(--text-2); font-size: 13px; }
.switch {
  -webkit-appearance: none; appearance: none; width: 51px; height: 31px; border-radius: 99px; background: var(--fill-2);
  position: relative; flex: none; cursor: pointer; transition: background-color .3s; margin: 0;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,.2); transition: transform .4s var(--ease-soft);
}
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(20px); }

.request-total { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; }
.request-total b { font-family: var(--font-round); font-size: 46px; font-weight: 800; letter-spacing: -.02em; }
.actions-3 { display: flex; gap: 8px; }
.actions-3 .btn { flex: 1; padding: 0 10px; }
.steps-note { font-size: 13.5px; color: var(--text-2); padding: 0 4px; transition: color .3s; }
.steps-note.done { color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-2 .btn { padding: 0 10px; }

/* ───────────── tab bar ───────────── */
.tabbar-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 16px calc(var(--safe-b) + 10px); pointer-events: none;
}
.tabbar-wrap > * { pointer-events: auto; }
.tabbar { display: flex; border-radius: 999px; padding: 5px; gap: 2px; flex: 1; max-width: 420px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 999px;
  font-size: 10.5px; font-weight: 650; color: var(--text-2); transition: background-color .35s var(--ease-liquid), color .25s;
}
.tab .ic { width: 23px; height: 23px; transition: transform .45s var(--ease-soft); }
.tab.on { color: var(--accent); }
.tab.on .ic { transform: scale(1.08); }
.fab {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 28px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.4);
}
.fab .ic { width: 28px; height: 28px; }

/* ───────────── toast ───────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--safe-b) + 92px); z-index: 200; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; max-width: calc(100vw - 32px); width: max-content;
  animation: toast-in .5s var(--spring) both;
}
.toast > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast:not(:has(.toast-undo)) { padding-right: 18px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }
.toast-undo { color: var(--accent); font-weight: 750; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); flex: none; }

@media (min-width: 700px) {
  .jobs { grid-template-columns: repeat(3, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ───────────── picking unpaid work ───────────── */
.pick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pick-actions { display: flex; gap: 6px; }
.chip.small { height: 28px; padding: 0 11px; font-size: 13px; }
.pick-list { max-height: 300px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.row.pick { transition: opacity .25s; }
.row.pick.off { opacity: .5; }
.row.pick + .row.pick::before { left: 50px; }
.tick {
  width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; color: transparent;
  border: 1.5px solid var(--fill-2); transition: background-color .25s, border-color .25s, color .2s, transform .35s var(--ease-soft);
}
.tick .ic { width: 15px; height: 15px; }
.tick.on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #fff; transform: scale(1.05); }
.link.center { align-self: center; font-size: 14px; }

/* ═════════════ Motion: nothing appears, everything comes from somewhere ═════════════ */

/* Tabs: the page slides in from the side you are heading to. */
.page.from-r > * { animation-name: in-r; }
.page.from-l > * { animation-name: in-l; }
@keyframes in-r { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes in-l { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.page > .today-grid { animation: none !important; display: flex; flex-direction: column; gap: 16px; }
.today-grid > .col { display: flex; flex-direction: column; gap: 16px; }
.today-grid > .col > * { animation: rise .6s var(--spring) both; }
.today-grid > .col:nth-child(2) > * { animation-delay: .05s; }
.page.from-r .today-grid > .col > * { animation-name: in-r; }
.page.from-l .today-grid > .col > * { animation-name: in-l; }

/* A liquid pill glides between tabs instead of each tab lighting up. */
.tabbar { position: relative; }
.tab { position: relative; z-index: 1; }
.tab-ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px;
  width: calc((100% - 10px) / 4); border-radius: 999px; background: var(--accent-soft);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform var(--spring-ms, .56s) var(--spring);
}

/* Page morphs (View Transitions): the page itself stays put, named things travel. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: var(--spring-ms, .56s); animation-timing-function: var(--spring); }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; }
::view-transition-new(*):only-child { animation: vt-grow var(--spring-ms, .56s) var(--spring) both; }
::view-transition-old(*):only-child { animation: vt-shrink .28s cubic-bezier(.5, 0, .9, .4) both; }
@keyframes vt-grow { from { opacity: 0; transform: scale(.82); } 35% { opacity: 1; } }
@keyframes vt-shrink { to { opacity: 0; transform: scale(.86); } }

/* Rolling digits. */
.odo { display: inline-block; height: 1.12em; line-height: 1.12em; overflow: hidden; vertical-align: top; }
.odo-s { display: flex; flex-direction: column; transition: transform var(--spring-ms, .56s) var(--spring); will-change: transform; }
.odo-s > span { display: block; height: 1.12em; text-align: center; }
.odo-c { display: inline-block; height: 1.12em; line-height: 1.12em; vertical-align: top; }
@starting-style { .odo-s { transform: translateY(0) !important; } }
.big-money { line-height: 1.12; }
.timer-clock .odo, .timer-clock .odo-c { height: 1.08em; line-height: 1.08em; }
.timer-clock .odo-s > span { height: 1.08em; }

/* Toasts sink back down where they came from. */
.toast.leaving { animation: toast-out .32s cubic-bezier(.5, 0, .9, .4) both; }
@keyframes toast-out { to { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }
.toast { animation: toast-in var(--spring-ms, .5s) var(--spring) both; }

/* Hidden things open by growing, not by appearing. */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--spring-ms, .5s) var(--spring), opacity .25s; }
.reveal > div { overflow: hidden; min-height: 0; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }
.form-error {
  color: var(--bad); font-size: 14px; font-weight: 600; margin: 0; text-align: center;
  max-height: 0; opacity: 0; transition: max-height .4s var(--spring), opacity .25s;
}
.form-error.show { max-height: 80px; opacity: 1; }

/* ═════════════ Sign in ═════════════ */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) 16px calc(var(--safe-b) + 24px); }
.auth-card {
  width: 100%; max-width: 420px; border-radius: 34px; padding: 28px 22px 22px;
  display: flex; flex-direction: column; gap: 14px; text-align: center;
  view-transition-name: auth; animation: pop .7s var(--spring) both;
}
.auth-card .stack { text-align: left; gap: 12px; }
.auth-logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto; box-shadow: 0 14px 30px -10px rgba(60, 60, 200, .55); }
.auth-sub { color: var(--text-2); font-size: 15px; line-height: 1.4; min-height: 2.8em; }
.auth-foot { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.splash { animation: fade .4s both; }
.breathing { animation: breathe-logo 1.8s ease-in-out infinite; }
@keyframes breathe-logo { 50% { transform: scale(1.06); opacity: .8; } }
.pw { position: relative; display: block; }
.pw .input { padding-right: 70px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 650; color: var(--accent); padding: 6px 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ═════════════ Account ═════════════ */
.account { border-radius: var(--r-l); padding: 14px; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 800; font-size: 19px; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--text-2); padding: 5px 10px; border-radius: 99px; background: var(--fill); flex: none; }
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); transition: background-color .3s; }
.sync-pill.busy i { background: var(--accent); animation: blink 1s ease-in-out infinite; }
.sync-pill.off i { background: var(--warn); }
.sync-pill.bad i { background: var(--bad); }
@keyframes blink { 50% { opacity: .3; } }
.danger-link { color: var(--bad); }
.keys { gap: 10px !important; }
.keys > div { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.keys span { margin-left: 8px; color: var(--text-2); }
kbd { font: 600 12px ui-monospace, 'SF Mono', Menlo, monospace; padding: 3px 7px; border-radius: 7px; background: var(--fill-2); box-shadow: inset 0 -1px 0 var(--hair); }
.kbd-only { display: none; flex-direction: column; gap: 10px; }
@media (hover: hover) and (pointer: fine) { .kbd-only { display: flex; } }

/* ═════════════ Welcome ═════════════ */
.welcome { gap: 10px; }
.welcome-title { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.welcome .btn { align-self: flex-start; margin-top: 6px; }

/* ═════════════ Timer, grown up ═════════════ */
.timer.paused .liquid i { animation-play-state: paused; }
.timer.paused .pulse { animation: none; opacity: .5; }
.timer.paused .timer-clock { opacity: .55; }
.timer-clock { transition: opacity .3s; }
.timer-note {
  width: 100%; border: 0; outline: none; background: color-mix(in srgb, var(--bg) 40%, transparent);
  border-radius: 12px; padding: 9px 12px; font-size: 16px; margin-top: 4px;
  transition: box-shadow .25s, background-color .25s;
}
.timer-note:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); }
.timer-shift { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.timer-shift > span { margin-right: auto; }
.timer-shift .chip { background: color-mix(in srgb, var(--bg) 45%, transparent); }
.timer-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 6px; }
.timer-actions .btn.stop { margin-top: 0; }
.btn.pause { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }

/* Running timers on the other tabs. */
.minis {
  position: fixed; left: 0; right: 0; bottom: calc(var(--safe-b) + 84px); z-index: 45;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none;
}
.mini {
  --c: oklch(0.64 0.17 var(--h));
  pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px; border-radius: 999px;
  max-width: 420px; width: 100%; animation: mini-in var(--spring-ms, .5s) var(--spring) both;
}
@keyframes mini-in { from { opacity: 0; transform: translateY(30px) scale(.9); } }
.mini-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px 0; }
.mini-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
.mini-clock { font-family: var(--font-round); font-weight: 800; font-size: 16px; }
.mini-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex: none; }
.mini-btn.stop { background: var(--c); color: #fff; }
.mini-btn .ic { width: 16px; height: 16px; }
.mini .pulse { flex: none; }
.mini.paused .pulse { animation: none; opacity: .5; }
.page:has(~ .minis) { padding-bottom: calc(var(--safe-b) + 180px); }

/* Pointer niceties: things lift toward the cursor. */
@media (hover: hover) and (pointer: fine) {
  .job, .payout-main, .icon-btn { transition: transform .4s var(--ease-soft), box-shadow .3s var(--ease-liquid), background-color .2s; }
  .job:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--g-rim), var(--g-shadow-lg); }
  button.row:hover { background: var(--fill); }
  .icon-btn:hover { transform: translateY(-1px); }
  .btn.primary:hover { filter: brightness(1.06); }
}

/* ═════════════ Desktop ═════════════ */
@media (min-width: 900px) {
  .page { max-width: 1080px; padding: 36px 40px 64px 150px; gap: 20px; }
  h1 { font-size: 40px; }
  .page > .today-grid { display: grid; grid-template-columns: minmax(330px, 400px) 1fr; gap: 24px; align-items: start; }
  .today-grid > .col:first-child { position: sticky; top: 24px; }
  .jobs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

  /* The tab bar becomes a rail on the left. */
  .tabbar-wrap {
    left: 24px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%);
    flex-direction: column-reverse; padding: 0; gap: 14px;
  }
  .tabbar { flex-direction: column; width: 84px; padding: 6px; flex: none; }
  .tab { padding: 12px 0 10px; }
  .tab-ind { left: 6px; right: 6px; top: 6px; bottom: auto; width: auto; height: calc((100% - 12px) / 4); transform: translateY(calc(var(--i) * 100%)); }
  .fab { width: 64px; height: 64px; }

  .minis { left: auto; right: 28px; bottom: 28px; width: 360px; padding: 0; align-items: stretch; }
  .page:has(~ .minis) { padding-bottom: 64px; }

  /* Sheets become dialogs, still growing out of whatever you clicked. */
  .sheet-wrap { justify-content: center; align-items: center; padding: 32px; }
  .sheet { border-radius: 30px; max-height: min(86vh, 900px); max-width: 520px; }
  .grab-zone .grabber { opacity: 0; }
  .toast { bottom: 32px; }
}
@media (min-width: 1300px) {
  .page > .today-grid { grid-template-columns: 420px 1fr; }
}
