bare routes lacked a scrollport under overflow:hidden html/body. wide rich-text tables used overflow-x:auto alone, which computes overflow-y:auto and traps vertical touch on iphone. force ink palette on /s/* for a consistent public share look.
1666 lines
39 KiB
CSS
1666 lines
39 KiB
CSS
@import "tailwindcss";
|
||
@import "tw-animate-css";
|
||
@import "shadcn/tailwind.css";
|
||
|
||
@custom-variant dark (&:is(.dark *));
|
||
|
||
/* ── Tailwind theme bridge ──────────────────────────────────────────
|
||
Keep shadcn/Tailwind tokens (--background, --foreground, --primary,
|
||
etc.) as the surface API so existing <Card>, <Button>, <Input> and
|
||
friends keep working. We back them with paper-and-ink primitives
|
||
defined further down. */
|
||
@theme inline {
|
||
--font-heading: var(--serif);
|
||
--font-sans: var(--sans);
|
||
--font-serif: var(--serif);
|
||
--font-mono: var(--mono);
|
||
--color-sidebar-ring: var(--sidebar-ring);
|
||
--color-sidebar-border: var(--sidebar-border);
|
||
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
||
--color-sidebar-accent: var(--sidebar-accent);
|
||
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
||
--color-sidebar-primary: var(--sidebar-primary);
|
||
--color-sidebar-foreground: var(--sidebar-foreground);
|
||
--color-sidebar: var(--sidebar);
|
||
--color-chart-5: var(--chart-5);
|
||
--color-chart-4: var(--chart-4);
|
||
--color-chart-3: var(--chart-3);
|
||
--color-chart-2: var(--chart-2);
|
||
--color-chart-1: var(--chart-1);
|
||
--color-ring: var(--ring);
|
||
--color-input: var(--input);
|
||
--color-border: var(--border);
|
||
--color-destructive: var(--destructive);
|
||
--color-accent-foreground: var(--accent-foreground);
|
||
--color-accent: var(--accent);
|
||
--color-muted-foreground: var(--muted-foreground);
|
||
--color-muted: var(--muted);
|
||
--color-secondary-foreground: var(--secondary-foreground);
|
||
--color-secondary: var(--secondary);
|
||
--color-primary-foreground: var(--primary-foreground);
|
||
--color-primary: var(--primary);
|
||
--color-popover-foreground: var(--popover-foreground);
|
||
--color-popover: var(--popover);
|
||
--color-card-foreground: var(--card-foreground);
|
||
--color-card: var(--card);
|
||
--color-foreground: var(--foreground);
|
||
--color-background: var(--background);
|
||
--color-paper: var(--paper);
|
||
--color-paper-2: var(--paper-2);
|
||
--color-ink: var(--ink);
|
||
--color-ink-2: var(--ink-2);
|
||
--color-ink-soft: var(--ink-soft);
|
||
--color-ink-mute: var(--ink-mute);
|
||
--color-ink-faint: var(--ink-faint);
|
||
--color-hair: var(--hair);
|
||
--color-hair-2: var(--hair-2);
|
||
--color-shade: var(--shade);
|
||
--color-c-household: var(--c-household);
|
||
--color-c-private: var(--c-private);
|
||
--color-c-kids: var(--c-kids);
|
||
--color-c-work: var(--c-work);
|
||
--color-c-bills: var(--c-bills);
|
||
--color-ok: var(--ok);
|
||
--color-warn: var(--warn);
|
||
--color-bad: var(--bad);
|
||
--radius-sm: var(--r-sm);
|
||
--radius-md: var(--r-md);
|
||
--radius-lg: var(--r-lg);
|
||
--radius-xl: var(--r-xl);
|
||
--color-ok-dark: var(--c-success);
|
||
}
|
||
|
||
/* ── Paper-and-ink primitives (shared across all palettes) ────────── */
|
||
:root {
|
||
/* Surfaces */
|
||
--paper: #fbf9f4;
|
||
--paper-2: #f4f0e8;
|
||
--card: #ffffff;
|
||
|
||
/* Ink */
|
||
--ink: #1f1b16;
|
||
--ink-2: #2e2820;
|
||
--ink-soft: #5c5145;
|
||
--ink-mute: #8a7e6e;
|
||
--ink-faint: #b7ac9c;
|
||
|
||
/* Hairlines */
|
||
--hair: rgba(31, 27, 22, 0.09);
|
||
--hair-2: rgba(31, 27, 22, 0.16);
|
||
--shade: rgba(31, 27, 22, 0.04);
|
||
|
||
/* Functional accents — same chroma family, vary hue */
|
||
--c-household: #b85c3c;
|
||
--c-private: #3e5b8a;
|
||
--c-kids: #6f8b5e;
|
||
--c-work: #7b4f6e;
|
||
--c-bills: #c99a3f;
|
||
|
||
--ok: #4f7a3f;
|
||
--warn: #c99a3f;
|
||
--bad: #b05246;
|
||
--c-success: var(--ok);
|
||
/* Density (regular by default; overridden via [data-density]) */
|
||
--row: 48px;
|
||
--pad: 14px;
|
||
--pad-sm: 10px;
|
||
--gap: 12px;
|
||
|
||
/* Type — concrete fonts come from layout.tsx via next/font.
|
||
Defaults here are fallbacks; [data-font-pair] rebinds. */
|
||
--serif: var(--serif-source, "Source Serif 4", Georgia, serif);
|
||
--sans: var(
|
||
--sans-inter,
|
||
"Inter",
|
||
-apple-system,
|
||
BlinkMacSystemFont,
|
||
"Segoe UI",
|
||
system-ui,
|
||
sans-serif
|
||
);
|
||
--mono: var(--mono-jb, "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace);
|
||
|
||
/* Radii */
|
||
--r-xs: 4px;
|
||
--r-sm: 6px;
|
||
--r-md: 8px;
|
||
--r-lg: 12px;
|
||
--r-xl: 16px;
|
||
|
||
--shadow-1: 0 1px 0 rgba(31, 27, 22, 0.04), 0 1px 2px rgba(31, 27, 22, 0.04);
|
||
--shadow-2: 0 1px 0 rgba(31, 27, 22, 0.04), 0 6px 18px rgba(31, 27, 22, 0.06);
|
||
--shadow-pop: 0 1px 0 rgba(31, 27, 22, 0.04), 0 12px 40px rgba(31, 27, 22, 0.14);
|
||
|
||
/* shadcn token mapping (light, default palette = clay) */
|
||
--background: var(--paper);
|
||
--foreground: var(--ink);
|
||
--card-foreground: var(--ink);
|
||
--popover: var(--card);
|
||
--popover-foreground: var(--ink);
|
||
--primary: var(--ink);
|
||
--primary-foreground: var(--paper);
|
||
--secondary: var(--paper-2);
|
||
--secondary-foreground: var(--ink-2);
|
||
--muted: var(--paper-2);
|
||
--muted-foreground: var(--ink-mute);
|
||
--accent: #b85c3c;
|
||
--accent-soft: #ebd8ce;
|
||
--accent-foreground: var(--paper);
|
||
--destructive: var(--bad);
|
||
--border: var(--hair);
|
||
--input: var(--hair-2);
|
||
--ring: var(--ink);
|
||
--chart-1: var(--c-household);
|
||
--chart-2: var(--c-private);
|
||
--chart-3: var(--c-kids);
|
||
--chart-4: var(--c-work);
|
||
--chart-5: var(--c-bills);
|
||
--radius: var(--r-lg);
|
||
--sidebar: var(--paper-2);
|
||
--sidebar-foreground: var(--ink-2);
|
||
--sidebar-primary: var(--ink);
|
||
--sidebar-primary-foreground: var(--paper);
|
||
--sidebar-accent: var(--card);
|
||
--sidebar-accent-foreground: var(--ink);
|
||
--sidebar-border: var(--hair);
|
||
--sidebar-ring: var(--ink);
|
||
}
|
||
|
||
/* ── Density (regular is the default in :root) ───────────────────── */
|
||
[data-density="compact"] {
|
||
--row: 40px;
|
||
--pad: 10px;
|
||
--pad-sm: 8px;
|
||
--gap: 8px;
|
||
}
|
||
[data-density="regular"] {
|
||
--row: 48px;
|
||
--pad: 14px;
|
||
--pad-sm: 10px;
|
||
--gap: 12px;
|
||
}
|
||
[data-density="comfy"] {
|
||
--row: 56px;
|
||
--pad: 18px;
|
||
--pad-sm: 14px;
|
||
--gap: 16px;
|
||
}
|
||
|
||
/* ── Font pairings — the actual font families are mounted from
|
||
next/font as --sans-inter, --serif-source, --serif-newsreader,
|
||
--serif-fraunces, --mono-jb. We rebind here. ─────────────── */
|
||
[data-font-pair="serif-sans"] {
|
||
--serif: var(--serif-source, "Source Serif 4", Georgia, serif);
|
||
--sans: var(--sans-inter, "Inter", system-ui, sans-serif);
|
||
}
|
||
[data-font-pair="newsreader"] {
|
||
--serif: var(--serif-newsreader, "Newsreader", Georgia, serif);
|
||
--sans: var(--sans-inter, "Inter", system-ui, sans-serif);
|
||
}
|
||
[data-font-pair="fraunces"] {
|
||
--serif: var(--serif-fraunces, "Fraunces", Georgia, serif);
|
||
--sans: var(--sans-inter, "Inter", system-ui, sans-serif);
|
||
}
|
||
[data-font-pair="sans-only"] {
|
||
--serif: var(--sans-inter, "Inter", system-ui, sans-serif);
|
||
--sans: var(--sans-inter, "Inter", system-ui, sans-serif);
|
||
}
|
||
|
||
/* ── Palettes — each theme sets surfaces, accent, and household color. */
|
||
[data-theme="clay"] {
|
||
--paper: #fbf9f4;
|
||
--paper-2: #f4f0e8;
|
||
--card: #ffffff;
|
||
--hair: rgba(90, 40, 20, 0.09);
|
||
--hair-2: rgba(90, 40, 20, 0.16);
|
||
--shade: rgba(90, 40, 20, 0.04);
|
||
--accent: #b85c3c;
|
||
--accent-soft: #ebd8ce;
|
||
--c-household: #b85c3c;
|
||
}
|
||
[data-theme="indigo"] {
|
||
--paper: #f4f7fb;
|
||
--paper-2: #eaeff7;
|
||
--card: #ffffff;
|
||
--hair: rgba(22, 40, 74, 0.09);
|
||
--hair-2: rgba(22, 40, 74, 0.16);
|
||
--shade: rgba(22, 40, 74, 0.04);
|
||
--accent: #3e5b8a;
|
||
--accent-soft: #d5dde8;
|
||
--c-household: #3e5b8a;
|
||
}
|
||
[data-theme="sage"] {
|
||
--paper: #f5f8f2;
|
||
--paper-2: #eaf0e4;
|
||
--card: #ffffff;
|
||
--hair: rgba(30, 55, 22, 0.09);
|
||
--hair-2: rgba(30, 55, 22, 0.16);
|
||
--shade: rgba(30, 55, 22, 0.04);
|
||
--accent: #6f8b5e;
|
||
--accent-soft: #dbe3d2;
|
||
--c-household: #6f8b5e;
|
||
}
|
||
[data-theme="plum"] {
|
||
--paper: #faf5fb;
|
||
--paper-2: #f1e8f2;
|
||
--card: #ffffff;
|
||
--hair: rgba(60, 25, 65, 0.09);
|
||
--hair-2: rgba(60, 25, 65, 0.16);
|
||
--shade: rgba(60, 25, 65, 0.04);
|
||
--accent: #7b4f6e;
|
||
--accent-soft: #e2d5dd;
|
||
--c-household: #7b4f6e;
|
||
}
|
||
[data-theme="ink"] {
|
||
--paper: #f8f7f5;
|
||
--paper-2: #edecea;
|
||
--card: #ffffff;
|
||
--hair: rgba(31, 27, 22, 0.09);
|
||
--hair-2: rgba(31, 27, 22, 0.16);
|
||
--shade: rgba(31, 27, 22, 0.04);
|
||
--accent: #1f1b16;
|
||
--accent-soft: #e8e4dc;
|
||
--c-household: #5c5145;
|
||
}
|
||
[data-theme="rose"] {
|
||
--paper: #fdf5f7;
|
||
--paper-2: #f7e8ec;
|
||
--card: #ffffff;
|
||
--hair: rgba(100, 20, 40, 0.09);
|
||
--hair-2: rgba(100, 20, 40, 0.16);
|
||
--shade: rgba(100, 20, 40, 0.04);
|
||
--accent: #b5485e;
|
||
--accent-soft: #f2d4da;
|
||
--c-household: #b5485e;
|
||
}
|
||
[data-theme="amber"] {
|
||
--paper: #fdf9f0;
|
||
--paper-2: #f5eed8;
|
||
--card: #ffffff;
|
||
--hair: rgba(90, 60, 5, 0.09);
|
||
--hair-2: rgba(90, 60, 5, 0.16);
|
||
--shade: rgba(90, 60, 5, 0.04);
|
||
--accent: #b07d1e;
|
||
--accent-soft: #f0e2b8;
|
||
--c-household: #b07d1e;
|
||
}
|
||
[data-theme="ocean"] {
|
||
--paper: #f2f9fb;
|
||
--paper-2: #e4f2f5;
|
||
--card: #ffffff;
|
||
--hair: rgba(10, 65, 80, 0.09);
|
||
--hair-2: rgba(10, 65, 80, 0.16);
|
||
--shade: rgba(10, 65, 80, 0.04);
|
||
--accent: #2e7a8a;
|
||
--accent-soft: #cce8ed;
|
||
--c-household: #2e7a8a;
|
||
}
|
||
[data-theme="slate"] {
|
||
--paper: #f4f6f9;
|
||
--paper-2: #e8ecf0;
|
||
--card: #ffffff;
|
||
--hair: rgba(20, 40, 60, 0.09);
|
||
--hair-2: rgba(20, 40, 60, 0.16);
|
||
--shade: rgba(20, 40, 60, 0.04);
|
||
--accent: #4a657a;
|
||
--accent-soft: #d0dae2;
|
||
--c-household: #4a657a;
|
||
}
|
||
[data-theme="forest"] {
|
||
--paper: #f2f7f3;
|
||
--paper-2: #e4eee6;
|
||
--card: #ffffff;
|
||
--hair: rgba(15, 55, 25, 0.09);
|
||
--hair-2: rgba(15, 55, 25, 0.16);
|
||
--shade: rgba(15, 55, 25, 0.04);
|
||
--accent: #3a6645;
|
||
--accent-soft: #c8dece;
|
||
--c-household: #3a6645;
|
||
}
|
||
|
||
/* ── Dark variant — every palette switches to deep ink surfaces.
|
||
Functional accents lift slightly so they stay readable. ───── */
|
||
.dark {
|
||
--paper: #16140f;
|
||
--paper-2: #1e1b16;
|
||
--card: #24201a;
|
||
--ink: #f4efe5;
|
||
--ink-2: #e5e0d6;
|
||
--ink-soft: #c4bbaa;
|
||
--ink-mute: #948a78;
|
||
--ink-faint: #6b6354;
|
||
|
||
--hair: rgba(244, 239, 229, 0.08);
|
||
--hair-2: rgba(244, 239, 229, 0.16);
|
||
--shade: rgba(244, 239, 229, 0.04);
|
||
|
||
--c-household: #d88468;
|
||
--c-private: #6e8ac0;
|
||
--c-kids: #9cb58c;
|
||
--c-work: #b27fa1;
|
||
--c-bills: #dcb46a;
|
||
|
||
--ok: #82b070;
|
||
--warn: #dcb46a;
|
||
--bad: #d8746a;
|
||
--c-success: var(--ok);
|
||
|
||
--background: var(--paper);
|
||
--foreground: var(--ink);
|
||
--card-foreground: var(--ink);
|
||
--popover: var(--card);
|
||
--popover-foreground: var(--ink);
|
||
--primary: var(--ink);
|
||
--primary-foreground: var(--paper);
|
||
--secondary: var(--paper-2);
|
||
--secondary-foreground: var(--ink-2);
|
||
--muted: var(--paper-2);
|
||
--muted-foreground: var(--ink-mute);
|
||
--accent: #d88468;
|
||
--accent-soft: #3a2e26;
|
||
--accent-foreground: var(--paper);
|
||
--destructive: var(--bad);
|
||
--border: var(--hair);
|
||
--input: var(--hair-2);
|
||
--ring: var(--ink-soft);
|
||
--sidebar: var(--paper-2);
|
||
--sidebar-foreground: var(--ink-2);
|
||
--sidebar-primary: var(--ink);
|
||
--sidebar-primary-foreground: var(--paper);
|
||
--sidebar-accent: var(--card);
|
||
--sidebar-accent-foreground: var(--ink);
|
||
--sidebar-border: var(--hair);
|
||
--sidebar-ring: var(--ink-soft);
|
||
}
|
||
|
||
[data-theme="clay"].dark {
|
||
--paper: #16140f;
|
||
--paper-2: #1e1b16;
|
||
--card: #24201a;
|
||
--hair: rgba(244, 210, 180, 0.08);
|
||
--hair-2: rgba(244, 210, 180, 0.16);
|
||
--shade: rgba(244, 210, 180, 0.04);
|
||
--accent: #d88468;
|
||
--accent-soft: #3a2e26;
|
||
--c-household: #d88468;
|
||
}
|
||
[data-theme="indigo"].dark {
|
||
--paper: #0f1319;
|
||
--paper-2: #15202e;
|
||
--card: #1c2a3a;
|
||
--hair: rgba(184, 212, 244, 0.08);
|
||
--hair-2: rgba(184, 212, 244, 0.16);
|
||
--shade: rgba(184, 212, 244, 0.04);
|
||
--accent: #7e9dd0;
|
||
--accent-soft: #1a2540;
|
||
--c-household: #7e9dd0;
|
||
}
|
||
[data-theme="sage"].dark {
|
||
--paper: #0f1710;
|
||
--paper-2: #162018;
|
||
--card: #1c2a1e;
|
||
--hair: rgba(196, 228, 186, 0.08);
|
||
--hair-2: rgba(196, 228, 186, 0.16);
|
||
--shade: rgba(196, 228, 186, 0.04);
|
||
--accent: #a0bc8e;
|
||
--accent-soft: #1e2e1c;
|
||
--c-household: #a0bc8e;
|
||
}
|
||
[data-theme="plum"].dark {
|
||
--paper: #160f1a;
|
||
--paper-2: #1e1522;
|
||
--card: #261a2e;
|
||
--hair: rgba(230, 180, 240, 0.08);
|
||
--hair-2: rgba(230, 180, 240, 0.16);
|
||
--shade: rgba(230, 180, 240, 0.04);
|
||
--accent: #be8bad;
|
||
--accent-soft: #2a1630;
|
||
--c-household: #be8bad;
|
||
}
|
||
[data-theme="ink"].dark {
|
||
--paper: #0e0e0e;
|
||
--paper-2: #181818;
|
||
--card: #222222;
|
||
--hair: rgba(240, 240, 240, 0.08);
|
||
--hair-2: rgba(240, 240, 240, 0.16);
|
||
--shade: rgba(240, 240, 240, 0.04);
|
||
--accent: #f4efe5;
|
||
--accent-soft: #2a2620;
|
||
--c-household: #c4bbaa;
|
||
}
|
||
[data-theme="rose"].dark {
|
||
--paper: #1a0e10;
|
||
--paper-2: #221418;
|
||
--card: #2c1a1e;
|
||
--hair: rgba(248, 188, 200, 0.08);
|
||
--hair-2: rgba(248, 188, 200, 0.16);
|
||
--shade: rgba(248, 188, 200, 0.04);
|
||
--accent: #d87f94;
|
||
--accent-soft: #36181e;
|
||
--c-household: #d87f94;
|
||
}
|
||
[data-theme="amber"].dark {
|
||
--paper: #18130a;
|
||
--paper-2: #201a0e;
|
||
--card: #2a2214;
|
||
--hair: rgba(240, 210, 140, 0.08);
|
||
--hair-2: rgba(240, 210, 140, 0.16);
|
||
--shade: rgba(240, 210, 140, 0.04);
|
||
--accent: #d4a84a;
|
||
--accent-soft: #342410;
|
||
--c-household: #d4a84a;
|
||
}
|
||
[data-theme="ocean"].dark {
|
||
--paper: #091518;
|
||
--paper-2: #0f2028;
|
||
--card: #142c38;
|
||
--hair: rgba(170, 230, 240, 0.08);
|
||
--hair-2: rgba(170, 230, 240, 0.16);
|
||
--shade: rgba(170, 230, 240, 0.04);
|
||
--accent: #5ab8c8;
|
||
--accent-soft: #0f2c36;
|
||
--c-household: #5ab8c8;
|
||
}
|
||
[data-theme="slate"].dark {
|
||
--paper: #0e1420;
|
||
--paper-2: #151e2e;
|
||
--card: #1c2840;
|
||
--hair: rgba(160, 190, 218, 0.08);
|
||
--hair-2: rgba(160, 190, 218, 0.16);
|
||
--shade: rgba(160, 190, 218, 0.04);
|
||
--accent: #7ea8c4;
|
||
--accent-soft: #182032;
|
||
--c-household: #7ea8c4;
|
||
}
|
||
[data-theme="forest"].dark {
|
||
--paper: #0c1710;
|
||
--paper-2: #122018;
|
||
--card: #162c20;
|
||
--hair: rgba(152, 210, 170, 0.08);
|
||
--hair-2: rgba(152, 210, 170, 0.16);
|
||
--shade: rgba(152, 210, 170, 0.04);
|
||
--accent: #74b888;
|
||
--accent-soft: #142618;
|
||
--c-household: #74b888;
|
||
}
|
||
|
||
@layer base {
|
||
* {
|
||
box-sizing: border-box;
|
||
}
|
||
html,
|
||
body {
|
||
margin: 0;
|
||
padding: 0;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
body {
|
||
@apply bg-background text-foreground;
|
||
font-family: var(--sans);
|
||
font-feature-settings: "ss01", "cv11";
|
||
font-size: 14px;
|
||
line-height: 1.45;
|
||
-webkit-font-smoothing: antialiased;
|
||
}
|
||
html {
|
||
font-family: var(--sans);
|
||
}
|
||
h1,
|
||
h2,
|
||
h3,
|
||
h4 {
|
||
margin: 0;
|
||
font-weight: 500;
|
||
letter-spacing: -0.012em;
|
||
}
|
||
.serif {
|
||
font-family: var(--serif);
|
||
font-weight: 400;
|
||
}
|
||
}
|
||
|
||
/* ── App shell (CSS-grid driven by data-nav on <html>) ──────────── */
|
||
.app {
|
||
display: grid;
|
||
grid-template-columns: 232px 1fr;
|
||
height: 100vh;
|
||
height: 100dvh;
|
||
background: var(--paper);
|
||
}
|
||
:where(html[data-nav="rail"]) .app {
|
||
grid-template-columns: 64px 1fr;
|
||
}
|
||
:where(html[data-nav="top"]) .app {
|
||
grid-template-columns: 1fr;
|
||
grid-template-rows: 56px 1fr;
|
||
}
|
||
:where(html[data-nav="bottom"]) .app,
|
||
:where(html[data-nav="fab"]) .app {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.sidebar {
|
||
background: var(--paper-2);
|
||
border-right: 0.5px solid var(--hair);
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 14px 12px;
|
||
gap: 4px;
|
||
min-width: 0;
|
||
}
|
||
:where(html[data-nav="rail"]) .sidebar {
|
||
padding: 14px 8px;
|
||
align-items: center;
|
||
}
|
||
:where(html[data-nav="bottom"]) .sidebar,
|
||
:where(html[data-nav="fab"]) .sidebar,
|
||
:where(html[data-nav="top"]) .sidebar:not(.sidebar-top) {
|
||
display: none;
|
||
}
|
||
|
||
/* Top-nav variant flips sidebar to a horizontal strip */
|
||
.sidebar-top {
|
||
background: var(--paper);
|
||
border-right: 0;
|
||
border-bottom: 0.5px solid var(--hair);
|
||
flex-direction: row;
|
||
align-items: center;
|
||
height: 56px;
|
||
padding: 0 16px;
|
||
gap: 8px;
|
||
grid-column: 1 / -1;
|
||
}
|
||
|
||
.brand {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 6px 8px 14px;
|
||
font-family: var(--serif);
|
||
font-weight: 500;
|
||
font-size: 18px;
|
||
letter-spacing: -0.02em;
|
||
color: var(--ink);
|
||
}
|
||
.brand-mark {
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 7px;
|
||
background: var(--ink);
|
||
color: var(--paper);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-family: var(--serif);
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
flex-shrink: 0;
|
||
}
|
||
.brand-mark-sm {
|
||
width: 22px;
|
||
height: 22px;
|
||
font-size: 12px;
|
||
border-radius: 6px;
|
||
}
|
||
:where(html[data-nav="rail"]) .brand {
|
||
padding: 6px 0 18px;
|
||
}
|
||
:where(html[data-nav="rail"]) .brand .brand-name {
|
||
display: none;
|
||
}
|
||
.sidebar-top .brand {
|
||
padding: 0 8px 0 0;
|
||
}
|
||
|
||
.nav-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: 8px 10px;
|
||
height: 34px;
|
||
border-radius: var(--r-md);
|
||
color: var(--ink-soft);
|
||
font-size: 13.5px;
|
||
font-weight: 500;
|
||
cursor: pointer;
|
||
border: 0;
|
||
background: transparent;
|
||
text-align: left;
|
||
width: 100%;
|
||
text-decoration: none;
|
||
}
|
||
.nav-item:hover {
|
||
background: var(--shade);
|
||
color: var(--ink);
|
||
}
|
||
.nav-item[aria-current="page"] {
|
||
background: var(--card);
|
||
color: var(--ink);
|
||
box-shadow: 0 1px 0 rgba(31, 27, 22, 0.04);
|
||
}
|
||
.nav-item .nav-count {
|
||
margin-left: auto;
|
||
font-size: 11.5px;
|
||
color: var(--ink-mute);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
:where(html[data-nav="rail"]) .sidebar .nav-item {
|
||
width: 40px;
|
||
height: 40px;
|
||
padding: 0;
|
||
justify-content: center;
|
||
}
|
||
:where(html[data-nav="rail"]) .sidebar .nav-label,
|
||
:where(html[data-nav="rail"]) .sidebar .nav-count {
|
||
display: none;
|
||
}
|
||
.sidebar-top .nav-item {
|
||
width: auto;
|
||
height: 36px;
|
||
}
|
||
|
||
.nav-divider {
|
||
height: 1px;
|
||
background: var(--hair);
|
||
margin: 8px 4px;
|
||
}
|
||
|
||
.household-pill {
|
||
margin-top: auto;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
border-radius: var(--r-md);
|
||
border: 0.5px solid var(--hair);
|
||
background: var(--card);
|
||
font-size: 12.5px;
|
||
color: var(--ink);
|
||
}
|
||
:where(html[data-nav="rail"]) .household-pill {
|
||
padding: 4px;
|
||
}
|
||
:where(html[data-nav="rail"]) .household-pill .household-text {
|
||
display: none;
|
||
}
|
||
|
||
.main {
|
||
display: flex;
|
||
flex-direction: column;
|
||
overflow: hidden;
|
||
position: relative;
|
||
min-width: 0;
|
||
}
|
||
|
||
.topbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 24px;
|
||
border-bottom: 0.5px solid var(--hair);
|
||
background: color-mix(in oklab, var(--paper) 92%, transparent);
|
||
backdrop-filter: blur(10px);
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 5;
|
||
}
|
||
.topbar h1 {
|
||
font-family: var(--serif);
|
||
font-size: 22px;
|
||
font-weight: 500;
|
||
letter-spacing: -0.02em;
|
||
color: var(--ink);
|
||
}
|
||
.topbar .crumb {
|
||
color: var(--ink-mute);
|
||
font-size: 13px;
|
||
}
|
||
.topbar-actions {
|
||
margin-left: auto;
|
||
display: flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
.scroll-area {
|
||
flex: 1;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
padding: 20px 24px 60px;
|
||
}
|
||
|
||
/* Bare routes (/s/*, /login, signed-out) — same scrollport as .scroll-area
|
||
without app chrome padding. Needed because html/body are overflow:hidden. */
|
||
.bare-scroll {
|
||
height: 100%;
|
||
height: 100dvh;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
}
|
||
:where(html[data-nav="bottom"]) .scroll-area,
|
||
:where(html[data-nav="fab"]) .scroll-area {
|
||
padding: 12px 14px 74px;
|
||
}
|
||
|
||
.scroll-area::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
.scroll-area::-webkit-scrollbar-thumb {
|
||
background: var(--hair-2);
|
||
border-radius: 4px;
|
||
}
|
||
.scroll-area::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
/* ── Bottom nav (mobile) ─────────────────────────────────────────── */
|
||
.bottom-nav {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
z-index: 50;
|
||
display: none;
|
||
height: 62px;
|
||
border-top: 0.5px solid var(--hair);
|
||
background: color-mix(in oklab, var(--paper) 88%, transparent);
|
||
backdrop-filter: blur(14px) saturate(160%);
|
||
padding: 6px 8px env(safe-area-inset-bottom, 8px);
|
||
}
|
||
:where(html[data-nav="bottom"]) .bottom-nav {
|
||
display: flex;
|
||
}
|
||
|
||
.bottom-nav button,
|
||
.bottom-nav a {
|
||
flex: 1;
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
font: inherit;
|
||
font-size: 10.5px;
|
||
font-weight: 500;
|
||
color: var(--ink-mute);
|
||
cursor: pointer;
|
||
padding: 4px 0;
|
||
border-radius: 8px;
|
||
text-decoration: none;
|
||
}
|
||
.bottom-nav button[aria-current="page"],
|
||
.bottom-nav a[aria-current="page"] {
|
||
color: var(--ink);
|
||
}
|
||
|
||
/* ── Floating action button ─────────────────────────────────────── */
|
||
.fab {
|
||
position: fixed;
|
||
bottom: 78px;
|
||
right: 18px;
|
||
z-index: 60;
|
||
width: 52px;
|
||
height: 52px;
|
||
border-radius: 16px;
|
||
background: var(--ink);
|
||
color: var(--paper);
|
||
border: 0;
|
||
display: none;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow:
|
||
0 4px 14px rgba(31, 27, 22, 0.22),
|
||
0 1px 2px rgba(31, 27, 22, 0.18);
|
||
cursor: pointer;
|
||
}
|
||
.fab:hover {
|
||
background: var(--ink-2);
|
||
}
|
||
:where(html[data-nav="bottom"]) .fab {
|
||
display: inline-flex;
|
||
}
|
||
:where(html[data-nav="fab"]) .fab {
|
||
display: inline-flex;
|
||
bottom: 18px;
|
||
}
|
||
|
||
/* ── Assistant chat bubble (opt-in per user) ─────────────────────── */
|
||
.assistant-bubble {
|
||
position: fixed;
|
||
right: 18px;
|
||
bottom: 24px;
|
||
z-index: 70;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: flex-end;
|
||
gap: 12px;
|
||
pointer-events: none;
|
||
}
|
||
:where(html[data-nav="bottom"]) .assistant-bubble {
|
||
bottom: calc(62px + max(env(safe-area-inset-bottom, 0px), 8px) + 12px);
|
||
}
|
||
:where(html[data-nav="fab"]) .assistant-bubble {
|
||
bottom: calc(18px + 52px + 12px);
|
||
}
|
||
.assistant-bubble > * {
|
||
pointer-events: auto;
|
||
}
|
||
.assistant-bubble-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: min(360px, calc(100vw - 24px));
|
||
height: min(480px, calc(100vh - 140px));
|
||
border-radius: var(--r-md);
|
||
border: 0.5px solid var(--hair);
|
||
background: color-mix(in oklab, var(--card) 94%, transparent);
|
||
backdrop-filter: blur(16px) saturate(160%);
|
||
box-shadow:
|
||
0 12px 40px rgba(31, 27, 22, 0.16),
|
||
0 2px 8px rgba(31, 27, 22, 0.08);
|
||
padding: 12px;
|
||
overflow: hidden;
|
||
}
|
||
.assistant-bubble-header {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
margin-bottom: 8px;
|
||
flex-shrink: 0;
|
||
}
|
||
.assistant-bubble-close {
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
color: var(--ink-mute);
|
||
border-radius: 8px;
|
||
width: 32px;
|
||
height: 32px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
}
|
||
.assistant-bubble-close:hover {
|
||
background: var(--shade);
|
||
color: var(--ink);
|
||
}
|
||
.assistant-bubble-trigger {
|
||
width: 52px;
|
||
height: 52px;
|
||
border-radius: 999px;
|
||
border: 0;
|
||
background: var(--ink);
|
||
color: var(--paper);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
box-shadow:
|
||
0 4px 14px rgba(31, 27, 22, 0.22),
|
||
0 1px 2px rgba(31, 27, 22, 0.18);
|
||
}
|
||
.assistant-bubble-trigger:hover {
|
||
background: var(--ink-2);
|
||
}
|
||
|
||
/* ── Buttons (used inside .topbar etc; <Button> in shadcn comes from
|
||
button.tsx and uses these tokens via the theme bridge) ───── */
|
||
.btn {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
height: 32px;
|
||
padding: 0 12px;
|
||
border-radius: var(--r-md);
|
||
border: 0.5px solid var(--hair-2);
|
||
background: var(--card);
|
||
color: var(--ink);
|
||
font: inherit;
|
||
font-weight: 500;
|
||
font-size: 13px;
|
||
cursor: pointer;
|
||
transition:
|
||
background 0.12s,
|
||
border-color 0.12s,
|
||
transform 0.05s;
|
||
white-space: nowrap;
|
||
text-decoration: none;
|
||
}
|
||
.btn:hover {
|
||
background: var(--shade);
|
||
}
|
||
.btn:active {
|
||
transform: translateY(0.5px);
|
||
}
|
||
.btn-primary {
|
||
background: var(--ink);
|
||
color: var(--paper);
|
||
border-color: var(--ink);
|
||
}
|
||
.btn-primary:hover {
|
||
background: var(--ink-2);
|
||
}
|
||
.btn-ghost {
|
||
border-color: transparent;
|
||
background: transparent;
|
||
}
|
||
.btn-ghost:hover {
|
||
background: var(--shade);
|
||
}
|
||
.btn-icon {
|
||
width: 32px;
|
||
padding: 0;
|
||
}
|
||
.btn-sm {
|
||
height: 28px;
|
||
font-size: 12.5px;
|
||
padding: 0 10px;
|
||
}
|
||
.btn-lg {
|
||
height: 40px;
|
||
font-size: 14px;
|
||
padding: 0 16px;
|
||
}
|
||
|
||
/* ── Card primitives match the design (shadcn Card resolves through
|
||
these classes too, via component CSS) ─────────────────────── */
|
||
.card-h {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 12px 14px 10px;
|
||
border-bottom: 0.5px solid var(--hair);
|
||
}
|
||
.card-h h3 {
|
||
margin: 0;
|
||
font-family: var(--serif);
|
||
font-weight: 500;
|
||
font-size: 16px;
|
||
letter-spacing: -0.01em;
|
||
color: var(--ink);
|
||
}
|
||
.card-h .meta {
|
||
font-size: 12px;
|
||
color: var(--ink-mute);
|
||
}
|
||
|
||
/* ── Badge / chip / dot ─────────────────────────────────────────── */
|
||
.badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 1px 7px;
|
||
height: 20px;
|
||
border-radius: 999px;
|
||
font-size: 11px;
|
||
font-weight: 500;
|
||
background: var(--shade);
|
||
color: var(--ink-soft);
|
||
letter-spacing: 0.01em;
|
||
}
|
||
.dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
display: inline-block;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* ── Eyebrow / muted helpers ────────────────────────────────────── */
|
||
.eyebrow {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.08em;
|
||
text-transform: uppercase;
|
||
color: var(--ink-mute);
|
||
}
|
||
.muted {
|
||
color: var(--ink-mute);
|
||
}
|
||
.soft {
|
||
color: var(--ink-soft);
|
||
}
|
||
.tnum {
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* ── List rows ──────────────────────────────────────────────────── */
|
||
.list-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 10px 14px;
|
||
border-bottom: 0.5px solid var(--hair);
|
||
cursor: default;
|
||
}
|
||
.list-row:last-child {
|
||
border-bottom: 0;
|
||
}
|
||
.list-row:hover {
|
||
background: var(--shade);
|
||
}
|
||
.list-row.checked .row-text {
|
||
color: var(--ink-faint);
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.checkbox {
|
||
width: 18px;
|
||
height: 18px;
|
||
flex-shrink: 0;
|
||
border: 1.5px solid var(--ink-faint);
|
||
border-radius: 5px;
|
||
background: var(--card);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition:
|
||
background 0.12s,
|
||
border-color 0.12s;
|
||
padding: 0;
|
||
}
|
||
.checkbox.on {
|
||
background: var(--ink);
|
||
border-color: var(--ink);
|
||
}
|
||
|
||
/* ── Avatar ─────────────────────────────────────────────────────── */
|
||
.avatar {
|
||
width: 24px;
|
||
height: 24px;
|
||
border-radius: 50%;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.02em;
|
||
color: #fff;
|
||
flex-shrink: 0;
|
||
}
|
||
.avatar-lg {
|
||
width: 32px;
|
||
height: 32px;
|
||
font-size: 13px;
|
||
}
|
||
.avatar-sm {
|
||
width: 20px;
|
||
height: 20px;
|
||
font-size: 10px;
|
||
}
|
||
|
||
/* ── Tabs (segmented) ───────────────────────────────────────────── */
|
||
.seg {
|
||
display: inline-flex;
|
||
padding: 2px;
|
||
background: var(--shade);
|
||
border-radius: 8px;
|
||
font-size: 12.5px;
|
||
}
|
||
.seg button {
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
font: inherit;
|
||
font-weight: 500;
|
||
color: var(--ink-soft);
|
||
padding: 4px 10px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
}
|
||
.seg button[aria-selected="true"] {
|
||
background: var(--card);
|
||
color: var(--ink);
|
||
box-shadow: 0 1px 2px rgba(31, 27, 22, 0.08);
|
||
}
|
||
|
||
/* ── Switch ─────────────────────────────────────────────────────── */
|
||
.switch {
|
||
position: relative;
|
||
width: 38px;
|
||
height: 22px;
|
||
background: var(--hair-2);
|
||
border-radius: 99px;
|
||
cursor: pointer;
|
||
transition: background 0.15s;
|
||
border: 0;
|
||
padding: 0;
|
||
flex-shrink: 0;
|
||
}
|
||
.switch.on {
|
||
background: var(--ok);
|
||
}
|
||
.switch i {
|
||
position: absolute;
|
||
top: 2px;
|
||
left: 2px;
|
||
width: 18px;
|
||
height: 18px;
|
||
border-radius: 50%;
|
||
background: #fff;
|
||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
|
||
transition: transform 0.15s;
|
||
}
|
||
.switch.on i {
|
||
transform: translateX(16px);
|
||
}
|
||
|
||
/* ── Setting row ───────────────────────────────────────────────── */
|
||
.set-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
padding: 12px 14px;
|
||
border-bottom: 0.5px solid var(--hair);
|
||
}
|
||
.set-row:last-child {
|
||
border-bottom: 0;
|
||
}
|
||
.set-row .label {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.set-row .label .t {
|
||
font-size: 13.5px;
|
||
color: var(--ink);
|
||
font-weight: 500;
|
||
}
|
||
.set-row .label .d {
|
||
font-size: 12px;
|
||
color: var(--ink-mute);
|
||
margin-top: 1px;
|
||
}
|
||
|
||
/* ── Note card ──────────────────────────────────────────────────── */
|
||
.note-card {
|
||
background: var(--card);
|
||
border: 0.5px solid var(--hair);
|
||
border-radius: var(--r-md);
|
||
padding: 12px 14px;
|
||
cursor: pointer;
|
||
transition:
|
||
box-shadow 0.15s,
|
||
transform 0.12s;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 6px;
|
||
position: relative;
|
||
text-align: left;
|
||
width: 100%;
|
||
font: inherit;
|
||
color: var(--ink);
|
||
}
|
||
.note-card:hover {
|
||
box-shadow: var(--shadow-2);
|
||
transform: translateY(-1px);
|
||
}
|
||
.note-card h4 {
|
||
font-family: var(--serif);
|
||
font-weight: 500;
|
||
font-size: 15.5px;
|
||
padding-right: 18px;
|
||
}
|
||
.note-card p {
|
||
margin: 0;
|
||
color: var(--ink-soft);
|
||
font-size: 12.5px;
|
||
line-height: 1.45;
|
||
}
|
||
.note-card .pin {
|
||
position: absolute;
|
||
top: 10px;
|
||
right: 10px;
|
||
color: var(--accent);
|
||
}
|
||
|
||
/* ── Activity row ───────────────────────────────────────────────── */
|
||
.activity-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 10px;
|
||
padding: 8px 0;
|
||
font-size: 12.5px;
|
||
color: var(--ink-soft);
|
||
}
|
||
.activity-row time {
|
||
color: var(--ink-mute);
|
||
font-variant-numeric: tabular-nums;
|
||
font-size: 11.5px;
|
||
flex-shrink: 0;
|
||
}
|
||
.activity-row .who {
|
||
font-weight: 500;
|
||
color: var(--ink);
|
||
}
|
||
.activity-row .obj {
|
||
color: var(--ink-2);
|
||
}
|
||
|
||
/* ── kbd ────────────────────────────────────────────────────────── */
|
||
.kbd {
|
||
font-family: var(--mono);
|
||
font-size: 11px;
|
||
padding: 1px 5px;
|
||
border-radius: 3px;
|
||
background: var(--shade);
|
||
color: var(--ink-soft);
|
||
border: 0.5px solid var(--hair);
|
||
}
|
||
|
||
/* ── FullCalendar skin (Track D) ───────────────────────────────── */
|
||
.fc {
|
||
--fc-border-color: var(--hair);
|
||
--fc-page-bg-color: var(--card);
|
||
--fc-neutral-bg-color: var(--paper-2);
|
||
--fc-neutral-text-color: var(--ink-mute);
|
||
--fc-button-bg-color: var(--card);
|
||
--fc-button-border-color: var(--hair-2);
|
||
--fc-button-text-color: var(--ink);
|
||
--fc-button-hover-bg-color: var(--shade);
|
||
--fc-button-hover-border-color: var(--hair-2);
|
||
--fc-button-active-bg-color: var(--ink);
|
||
--fc-button-active-border-color: var(--ink);
|
||
--fc-today-bg-color: var(--paper);
|
||
color: var(--ink);
|
||
font-family: var(--sans);
|
||
}
|
||
|
||
.fc .fc-scrollgrid {
|
||
border: 0.5px solid var(--hair-2) !important;
|
||
border-radius: var(--r-lg);
|
||
overflow: hidden;
|
||
}
|
||
.fc .fc-scrollgrid td,
|
||
.fc .fc-scrollgrid th {
|
||
border-color: var(--hair) !important;
|
||
}
|
||
.fc .fc-button {
|
||
border-radius: var(--r-md);
|
||
font-size: 12.5px;
|
||
font-weight: 500;
|
||
padding: 4px 10px;
|
||
text-transform: none;
|
||
height: 28px;
|
||
box-shadow: none !important;
|
||
}
|
||
.fc .fc-button-primary:not(:disabled).fc-button-active {
|
||
color: var(--paper);
|
||
}
|
||
.fc .fc-toolbar-title {
|
||
font-family: var(--serif);
|
||
font-size: 22px;
|
||
font-weight: 500;
|
||
letter-spacing: -0.015em;
|
||
color: var(--ink);
|
||
}
|
||
.fc .fc-col-header-cell {
|
||
background: var(--card);
|
||
padding: 8px 0;
|
||
}
|
||
.fc .fc-col-header-cell-cushion {
|
||
font-size: 11px;
|
||
color: var(--ink-mute);
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.06em;
|
||
font-weight: 500;
|
||
text-decoration: none;
|
||
padding: 4px 8px;
|
||
}
|
||
.fc .fc-daygrid-day-number {
|
||
color: var(--ink-soft);
|
||
font-size: 12px;
|
||
font-variant-numeric: tabular-nums;
|
||
text-decoration: none;
|
||
padding: 4px 6px;
|
||
}
|
||
.fc .fc-day-today .fc-daygrid-day-number {
|
||
color: var(--paper);
|
||
background: var(--ink);
|
||
width: 22px;
|
||
height: 22px;
|
||
border-radius: 50%;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-weight: 500;
|
||
margin: 4px;
|
||
}
|
||
.fc .fc-day-today {
|
||
background: transparent !important;
|
||
}
|
||
.fc .fc-day-other {
|
||
background: var(--paper-2);
|
||
}
|
||
.fc .fc-day-other .fc-daygrid-day-number {
|
||
color: var(--ink-faint);
|
||
}
|
||
.fc .fc-event {
|
||
border: 0;
|
||
border-left: 3px solid var(--c-household);
|
||
border-radius: 4px;
|
||
padding: 2px 6px;
|
||
background: color-mix(in oklab, var(--c-household) 14%, transparent);
|
||
color: var(--ink-2);
|
||
font-size: 11.5px;
|
||
cursor: pointer;
|
||
margin: 1px 2px;
|
||
}
|
||
.fc .fc-event:hover {
|
||
filter: brightness(0.97);
|
||
}
|
||
.fc .fc-event-time {
|
||
color: var(--ink-mute);
|
||
font-size: 10.5px;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.fc .fc-event-title {
|
||
color: var(--ink-2);
|
||
font-weight: 500;
|
||
}
|
||
.fc .fc-event.fc-cal-private,
|
||
.fc .fc-event.fc-cal-priv {
|
||
background: color-mix(in oklab, var(--c-private) 12%, transparent);
|
||
border-left-color: var(--c-private);
|
||
}
|
||
.fc .fc-event.fc-cal-kids {
|
||
background: color-mix(in oklab, var(--c-kids) 14%, transparent);
|
||
border-left-color: var(--c-kids);
|
||
}
|
||
.fc .fc-event.fc-cal-work {
|
||
background: color-mix(in oklab, var(--c-work) 14%, transparent);
|
||
border-left-color: var(--c-work);
|
||
}
|
||
.fc .fc-event.fc-cal-bills {
|
||
background: color-mix(in oklab, var(--c-bills) 16%, transparent);
|
||
border-left-color: var(--c-bills);
|
||
}
|
||
.fc .fc-timegrid-slot {
|
||
height: 48px !important;
|
||
border-color: var(--hair) !important;
|
||
}
|
||
.fc .fc-timegrid-slot-label {
|
||
font-size: 10.5px;
|
||
color: var(--ink-mute);
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* ── Form controls ──────────────────────────────────────────────── */
|
||
.input,
|
||
select {
|
||
width: 100%;
|
||
padding: 7px 10px;
|
||
border-radius: var(--r-sm);
|
||
border: 1px solid var(--hair-2);
|
||
background: var(--card);
|
||
color: var(--ink);
|
||
font: inherit;
|
||
font-size: 13.5px;
|
||
line-height: 1.4;
|
||
box-shadow: inset 0 1px 2px rgba(31, 27, 22, 0.05);
|
||
transition:
|
||
border-color 0.12s,
|
||
box-shadow 0.12s;
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
outline: none;
|
||
}
|
||
.input:focus,
|
||
select:focus {
|
||
border-color: var(--ink-soft);
|
||
box-shadow:
|
||
inset 0 1px 2px rgba(31, 27, 22, 0.05),
|
||
0 0 0 2px rgba(31, 27, 22, 0.08);
|
||
}
|
||
.input::placeholder {
|
||
color: var(--ink-faint);
|
||
}
|
||
select {
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7e6e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
|
||
background-repeat: no-repeat;
|
||
background-position: right 10px center;
|
||
padding-right: 30px;
|
||
cursor: pointer;
|
||
}
|
||
.dark .input,
|
||
.dark select {
|
||
background: var(--paper-2);
|
||
border-color: var(--hair-2);
|
||
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
|
||
}
|
||
.dark .input:focus,
|
||
.dark select:focus {
|
||
border-color: var(--ink-soft);
|
||
box-shadow:
|
||
inset 0 1px 2px rgba(0, 0, 0, 0.12),
|
||
0 0 0 2px rgba(244, 239, 229, 0.08);
|
||
}
|
||
|
||
/* ─── Bang Counter celebration animations ─────────────────────────────────── */
|
||
@keyframes shake {
|
||
0%,
|
||
100% {
|
||
transform: translateX(0);
|
||
}
|
||
10% {
|
||
transform: translateX(-6px) rotate(-1deg);
|
||
}
|
||
20% {
|
||
transform: translateX(6px) rotate(1deg);
|
||
}
|
||
30% {
|
||
transform: translateX(-5px) rotate(-0.8deg);
|
||
}
|
||
40% {
|
||
transform: translateX(5px) rotate(0.8deg);
|
||
}
|
||
50% {
|
||
transform: translateX(-4px) rotate(-0.5deg);
|
||
}
|
||
60% {
|
||
transform: translateX(4px) rotate(0.5deg);
|
||
}
|
||
70% {
|
||
transform: translateX(-2px);
|
||
}
|
||
80% {
|
||
transform: translateX(2px);
|
||
}
|
||
90% {
|
||
transform: translateX(-1px);
|
||
}
|
||
}
|
||
|
||
@keyframes countPop {
|
||
0% {
|
||
transform: scale(1);
|
||
}
|
||
30% {
|
||
transform: scale(1.45);
|
||
}
|
||
60% {
|
||
transform: scale(0.9);
|
||
}
|
||
80% {
|
||
transform: scale(1.1);
|
||
}
|
||
100% {
|
||
transform: scale(1);
|
||
}
|
||
}
|
||
|
||
@keyframes emojiFloat {
|
||
0% {
|
||
transform: translateY(0) scale(1);
|
||
opacity: 1;
|
||
}
|
||
50% {
|
||
transform: translateY(-60px) scale(1.2);
|
||
opacity: 0.9;
|
||
}
|
||
100% {
|
||
transform: translateY(-120px) scale(0.7);
|
||
opacity: 0;
|
||
}
|
||
}
|
||
|
||
.animate-shake {
|
||
animation: shake 0.35s ease-in-out both;
|
||
}
|
||
.animate-count-pop {
|
||
animation: countPop 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
||
}
|
||
.animate-emoji-float {
|
||
animation: emojiFloat 1.8s ease-out both;
|
||
}
|
||
|
||
@keyframes journal-paper-out {
|
||
to {
|
||
opacity: 0;
|
||
transform: translateX(-28px) rotate(-1.2deg);
|
||
}
|
||
}
|
||
|
||
@keyframes journal-paper-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateX(32px) rotate(0.8deg);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateX(0) rotate(0deg);
|
||
}
|
||
}
|
||
|
||
.journal-entries-stack {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 0.75rem;
|
||
min-height: 0;
|
||
}
|
||
|
||
.journal-entries-stack[data-phase="exit"] .journal-entry-row {
|
||
animation: journal-paper-out 0.2s ease-in forwards;
|
||
}
|
||
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row {
|
||
opacity: 0;
|
||
animation: journal-paper-in 0.26s ease-out forwards;
|
||
}
|
||
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(1) {
|
||
animation-delay: 0ms;
|
||
}
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(2) {
|
||
animation-delay: 45ms;
|
||
}
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(3) {
|
||
animation-delay: 90ms;
|
||
}
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(4) {
|
||
animation-delay: 135ms;
|
||
}
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row:nth-child(5) {
|
||
animation-delay: 180ms;
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.journal-entries-stack[data-phase="exit"] .journal-entry-row,
|
||
.journal-entries-stack[data-phase="enter"] .journal-entry-row {
|
||
animation: none;
|
||
opacity: 1;
|
||
transform: none;
|
||
}
|
||
}
|
||
|
||
/* ── Calendar min-height CSS variable ───────────────────────────── */
|
||
/* Used by calendar-shell so the grid fills the viewport correctly */
|
||
/* on both desktop (topbar only) and mobile (topbar + bottom nav). */
|
||
:root {
|
||
--cal-topbar-h: 57px;
|
||
--cal-nav-h: 0px;
|
||
}
|
||
:where(html[data-nav="bottom"]),
|
||
:where(html[data-nav="fab"]) {
|
||
--cal-nav-h: 62px;
|
||
}
|
||
|
||
/* ── Mobile overrides (≤ 759 px) ────────────────────────────────── */
|
||
@media (max-width: 759px) {
|
||
/* Prevent iOS Safari from zooming into inputs (requires ≥ 16 px) */
|
||
.input,
|
||
input,
|
||
select,
|
||
textarea {
|
||
font-size: 16px;
|
||
}
|
||
|
||
/* Topbar: tighten padding; avatar is redundant (Settings in bottom nav) */
|
||
.topbar {
|
||
padding: 10px 14px;
|
||
gap: 8px;
|
||
}
|
||
.topbar-actions > .avatar {
|
||
display: none;
|
||
}
|
||
|
||
/* Keyboard shortcut hints are meaningless on touch */
|
||
.kbd {
|
||
display: none;
|
||
}
|
||
|
||
/* Eliminate 300 ms tap delay on interactive controls */
|
||
.btn,
|
||
.checkbox,
|
||
.nav-item,
|
||
.list-row,
|
||
.fab,
|
||
.bottom-nav button,
|
||
.bottom-nav a {
|
||
touch-action: manipulation;
|
||
}
|
||
|
||
/* Momentum scrolling + prevent page bounce fighting in-app scroll */
|
||
.scroll-area,
|
||
.bare-scroll {
|
||
-webkit-overflow-scrolling: touch;
|
||
overscroll-behavior-y: contain;
|
||
}
|
||
|
||
/* Checkbox: keep the 18 px visual but expand the tap area to 44 px */
|
||
.checkbox {
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
}
|
||
.checkbox::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: -13px; /* 18 + 2×13 = 44 px tap target */
|
||
}
|
||
|
||
/* Delete button on list rows: always visible on touch (no hover state) */
|
||
.list-row-delete {
|
||
opacity: 1 !important;
|
||
}
|
||
}
|
||
|
||
/* Landscape phone: compress bottom nav to icon-only to reclaim vertical space */
|
||
@media (max-width: 759px) and (orientation: landscape) and (max-height: 500px) {
|
||
.bottom-nav {
|
||
height: 44px;
|
||
padding: 2px 8px env(safe-area-inset-bottom, 2px);
|
||
}
|
||
.bottom-nav .nav-label {
|
||
display: none;
|
||
}
|
||
:where(html[data-nav="bottom"]) .scroll-area {
|
||
padding-bottom: 52px;
|
||
}
|
||
}
|