/*
 * Generated by scripts/gen-design.mjs from design/tokens.json
 * (SOMA (Claude Design), version 1795450605-ac32). Do not edit: change the design
 * system, then run `npm run gen:design`.
 *
 * Type styles are used as `font: var(--type-body); letter-spacing: var(--tracking-body);`.
 * On medium and wide windows each style takes its desktop size (`body-wide`).
 */
:root {
  color-scheme: light dark;
  --bg: #f4efe7;
  --surface: #fffcf7;
  --surface-2: #ece5da;
  --text: #231e18;
  --text-muted: #665c50;
  --border: #e2d9cb;
  --border-strong: #877b6d;
  --accent: #231e18;
  --accent-hover: #3d352c;
  --accent-contrast: #fffcf7;
  --accent-soft: #ece5da;
  --brass: #6b573d;
  --brass-hover: #584832;
  --brass-contrast: #ffffff;
  --brass-soft: #eee8dc;
  --danger: #b0291b;
  --danger-contrast: #ffffff;
  --danger-soft: #fae3de;
  --badge: #b0291b;
  --badge-text: #ffffff;
  --rust: #974a22;
  --rust-soft: #f6e6d8;
  --focus: #6b573d;
  --hover: #231e180e;
  --selected: #ece5da;
  --toast: #2b251e;
  --toast-text: #f3ede3;
  --toast-action: #f3ede3;
  --scrim: #1a140d59;
  --theme-color: #f4efe7;
  --c-red: #b8322a;
  --c-red-soft: #f8e1dc;
  --c-orange: #bd5418;
  --c-orange-soft: #fbe5d4;
  --c-amber: #a0620a;
  --c-amber-soft: #f8ead0;
  --c-yellow: #857106;
  --c-yellow-soft: #f4eec6;
  --c-lime: #5a7812;
  --c-lime-soft: #e8f0d0;
  --c-green: #2d7a3c;
  --c-green-soft: #dcefdf;
  --c-teal: #1d786d;
  --c-teal-soft: #d5eeea;
  --c-cyan: #15718c;
  --c-cyan-soft: #d4ecf3;
  --c-blue: #2f62b3;
  --c-blue-soft: #dde7f6;
  --c-indigo: #4a52b0;
  --c-indigo-soft: #e2e3f6;
  --c-violet: #6a49b3;
  --c-violet-soft: #e9e2f6;
  --c-purple: #8b3ca0;
  --c-purple-soft: #f1def3;
  --c-pink: #b03a72;
  --c-pink-soft: #f8deea;
  --c-brown: #7f5530;
  --c-brown-soft: #eee2d6;
  --c-grey: #655f5a;
  --c-grey-soft: #e8e4df;
  --shadow-float: 0 12px 32px rgba(35, 30, 24, 0.14), 0 2px 6px rgba(35, 30, 24, 0.08);
  --shadow-page: 0 1px 2px rgba(35, 30, 24, 0.05);
  --table-sticky-shadow: 8px 0 10px -8px rgba(35, 30, 24, 0.28);
  --table-edge: rgba(35, 30, 24, 0.16);
  --font-sans: "Figtree Variable", "Figtree", -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-serif: "Literata Variable", "Literata", ui-serif, Georgia, serif;
  --type-display: 400 1.5rem / 1.875rem var(--font-serif);
  --tracking-display: -0.01em;
  --type-title: 500 1.5rem / 1.875rem var(--font-serif);
  --tracking-title: -0.005em;
  --type-note-body: 400 calc(1.0625rem * var(--note-scale)) / calc(1.6875rem * var(--note-scale))
    var(--font-serif);
  --tracking-note-body: normal;
  --type-note-h2: 600 calc(1.25rem * var(--note-scale)) / calc(1.625rem * var(--note-scale))
    var(--font-serif);
  --tracking-note-h2: normal;
  --type-section: italic 500 1.0625rem / 1.5rem var(--font-serif);
  --tracking-section: normal;
  --type-headline: 600 1.25rem / 1.625rem var(--font-serif);
  --tracking-headline: normal;
  --type-body: 400 0.9375rem / 1.4375rem var(--font-sans);
  --tracking-body: normal;
  --type-row-title: 500 0.9375rem / 1.3125rem var(--font-sans);
  --tracking-row-title: normal;
  --type-callout: 500 0.9375rem / 1.3125rem var(--font-sans);
  --tracking-callout: normal;
  --type-footnote: 400 0.8125rem / 1.25rem var(--font-sans);
  --tracking-footnote: normal;
  --type-label: 600 0.75rem / 0.875rem var(--font-sans);
  --tracking-label: 0.02em;
  --type-tab: 600 0.75rem / 0.875rem var(--font-sans);
  --tracking-tab: 0.01em;
  --type-tile-number: 500 1.5rem / 1.75rem var(--font-serif);
  --tracking-tile-number: normal;
  --type-display-wide: 400 1.875rem / 2.25rem var(--font-serif);
  --tracking-display-wide: -0.01em;
  --type-title-wide: 500 1.5rem / 1.875rem var(--font-serif);
  --tracking-title-wide: normal;
  --type-note-body-wide: 400 calc(1.0625rem * var(--note-scale)) /
    calc(1.6875rem * var(--note-scale)) var(--font-serif);
  --tracking-note-body-wide: normal;
  --type-note-h2-wide: 600 calc(1.25rem * var(--note-scale)) / calc(1.625rem * var(--note-scale))
    var(--font-serif);
  --tracking-note-h2-wide: normal;
  --type-note-title-wide: 500 1.875rem / 2.375rem var(--font-serif);
  --tracking-note-title-wide: normal;
  --type-body-wide: 400 0.9375rem / 1.4375rem var(--font-sans);
  --tracking-body-wide: normal;
  --type-row-title-wide: 500 0.9375rem / 1.3125rem var(--font-sans);
  --tracking-row-title-wide: normal;
  --type-callout-wide: 600 0.8125rem / 1.1875rem var(--font-sans);
  --tracking-callout-wide: normal;
  --type-kbd: 600 0.75rem / 0.875rem var(--font-sans);
  --tracking-kbd: normal;
  --type-table: 400 0.8125rem / 1.1875rem var(--font-sans);
  --tracking-table: normal;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --gutter: 16px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-full: 999px;
  --tap: 44px;
  --control: 48px;
  --tabbar: 56px;
  --column: 600px;
  --presence: 48px;
  --bp-medium: 720px;
  --bp-wide: 1100px;
  --sidebar: 248px;
  --rail: 72px;
  --page-inset: 8px;
  --pane-tree: 360px;
  --pane-list: 360px;
  --pane-list-min: 300px;
  --pane-detail: 520px;
  --pane-detail-min: 400px;
  --reading: 68ch;
  --side-panel: 232px;
  --dialog-sm: 440px;
  --dialog-md: 560px;
  --dialog-lg: 720px;
  --palette: 640px;
  --popover: 400px;
  --menu: 240px;
  --menu-row: 28px;
  --menu-row-picker: 32px;
  --menu-icon: 20px;
  --menu-inset: 4px;
  --row: 50px;
  --listrow: 48px;
  --iconbtn: 44px;
  --note-scale: 1;
  --table-col-min: 88px;
  --table-col-max: 240px;
  --table-max-h: 440px;
  --table-card-gap: 10px;
  --table-card-pad: 12px;
  --table-narrow-cols: 4;
  --blink-min: 6s;
  --blink-max: 12s;
  --blink-duration: 170ms;
  --wake-blink: 600ms;
  --follow-max: 3.2;
  --follow-ease: 280ms;
  --follow-return: 3s;
  --map-node-w: 142px;
  --map-node-w-centre: 200px;
  --map-node-w-sm: 92px;
  --help-col: 680px;
  --help-panel: 380px;
  --ill-sm: 96px;
  --ill-md: 160px;
  --ill-lg: 240px;
  --dur-instant: 80ms;
  --dur-menu-hover: 20ms;
  --dur-quick: 150ms;
  --dur-base: 200ms;
  --dur-slow: 260ms;
  --dur-delight: 500ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ease-spring: cubic-bezier(0.05, 0.7, 0.1, 1);
  --move-sm: 4px;
  --move-md: 8px;
  --press-scale: 0.97;
}

[data-bp="medium"],
[data-bp="wide"] {
  --type-display: var(--type-display-wide);
  --tracking-display: var(--tracking-display-wide);
  --type-title: var(--type-title-wide);
  --tracking-title: var(--tracking-title-wide);
  --type-note-body: var(--type-note-body-wide);
  --tracking-note-body: var(--tracking-note-body-wide);
  --type-note-h2: var(--type-note-h2-wide);
  --tracking-note-h2: var(--tracking-note-h2-wide);
  --type-note-title: var(--type-note-title-wide);
  --tracking-note-title: var(--tracking-note-title-wide);
  --type-body: var(--type-body-wide);
  --tracking-body: var(--tracking-body-wide);
  --type-row-title: var(--type-row-title-wide);
  --tracking-row-title: var(--tracking-row-title-wide);
  --type-callout: var(--type-callout-wide);
  --tracking-callout: var(--tracking-callout-wide);
}

[data-notesize="smaller"] {
  --note-scale: 0.91;
}
[data-notesize="larger"] {
  --note-scale: 1.12;
}

/* Density: compact (phone) values. Components read these, never fixed numbers. */
:root {
  --gutter: 16px;
  --control: 48px;
  --control-sm: 40px;
  --row: 50px;
  --listrow: 48px;
  --tile: 58px;
  --week: 56px;
  --fs-body: 15px;
  --lh-body: 23px;
  --fs-row: 15px;
  --lh-row: 21px;
  --fs-callout: 15px;
  --lh-callout: 21px;
  --fs-meta: 13px;
  --lh-meta: 20px;
  --fs-display: 24px;
  --lh-display: 30px;
  --fs-title: 24px;
  --lh-title: 30px;
  --fs-card: 17px;
  --lh-card: 24px;
  --fs-note: 17px;
  --lh-note: 27px;
  --fs-note-h2: 20px;
  --lh-note-h2: 26px;
  --fs-btn: 15px;
  --btn-pad: 24px;
  --fs-input: 16px;
  --seg: 34px;
  --iconbtn: 44px;
  --chip: 32px;
  --prose-max: 34em;

  /* One grid (20 November 2026, sizes 20 Nov evening): every page sits in one centred
     frame of 1220px = --gutter 16 + --page-max 1188 + --gutter 16. Inside it a page is
     one full column (1188), or a wide column (--col-main 796) and a narrow one
     (--col-zone 360) with --col-gap 32 between. The narrow one is left when it navigates
     or lists (Tasks, a room's Tasks and Notes, Settings), right when it accompanies
     (Today, the assistant's place, a room's Overview). */
  --page-max: 1188px;
  --col-main: 796px;
  --col-zone: 360px;
  --col-text: var(--reading);
  /* A list alone (nothing open beside it) runs the whole frame (20 Nov 2026). */
  --col-list: var(--page-max);
  --col-side: 360px;
  --col-tree: 360px;
  --col-gap: 32px;
  --lh-voice: 21px;
}
/* Desktop density: medium and wide share it. Visible sizes shrink; hit areas stay 44px. */
[data-bp="medium"],
[data-bp="wide"] {
  --gutter: 16px;
  --control: 36px;
  --control-sm: 32px;
  --row: 40px;
  --listrow: 38px;
  --tile: 52px;
  --week: 46px;
  --fs-body: 15px;
  --lh-body: 23px;
  --fs-row: 15px;
  --lh-row: 21px;
  --fs-callout: 13px;
  --lh-callout: 19px;
  --fs-meta: 13px;
  --lh-meta: 20px;
  --fs-display: 30px;
  --lh-display: 36px;
  --fs-title: 24px;
  --lh-title: 30px;
  --fs-card: 15px;
  --lh-card: 23px;
  --fs-note: 17px;
  --lh-note: 27px;
  --fs-note-h2: 20px;
  --lh-note-h2: 26px;
  --fs-btn: 13px;
  --btn-pad: 14px;
  --fs-input: 15px;
  --seg: 28px;
  --iconbtn: 32px;
  --chip: 28px;
  --prose-max: var(--reading);
  --lh-voice: 21px;
}
/* A touch screen in a wide window keeps finger-sized rows. */
@media (any-pointer: coarse) {
  [data-bp="medium"],
  [data-bp="wide"] {
    --row: 44px;
    --listrow: 44px;
    --control: 40px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --surface: #1f1c19;
    --surface-2: #2a2621;
    --text: #f3ede3;
    --text-muted: #ada295;
    --border: #342f2a;
    --border-strong: #787168;
    --accent: #f3ede3;
    --accent-hover: #ffffff;
    --accent-contrast: #15120e;
    --accent-soft: #2a2621;
    --brass: #d0b992;
    --brass-hover: #ddcaa8;
    --brass-contrast: #1c1408;
    --brass-soft: #302a20;
    --danger: #f4907f;
    --danger-contrast: #2a0e0a;
    --danger-soft: #3e1e18;
    --badge: #e5604f;
    --badge-text: #1f0806;
    --rust: #e3a47c;
    --rust-soft: #3a261a;
    --focus: #d0b992;
    --hover: #f3ede312;
    --selected: #2a2621;
    --toast: #f3ede3;
    --toast-text: #231e18;
    --toast-action: #231e18;
    --scrim: #00000099;
    --theme-color: #14120f;
    --c-red: #f08a7e;
    --c-red-soft: #3d201c;
    --c-orange: #f2a065;
    --c-orange-soft: #3d2718;
    --c-amber: #e9b552;
    --c-amber-soft: #392b15;
    --c-yellow: #e3cf5a;
    --c-yellow-soft: #35311a;
    --c-lime: #b4d06a;
    --c-lime-soft: #2b321a;
    --c-green: #7fcb8c;
    --c-green-soft: #1d3223;
    --c-teal: #6fcfc2;
    --c-teal-soft: #173331;
    --c-cyan: #6fc6e0;
    --c-cyan-soft: #17313b;
    --c-blue: #8db4f2;
    --c-blue-soft: #1d2b42;
    --c-indigo: #a2a8f0;
    --c-indigo-soft: #242740;
    --c-violet: #b9a3f0;
    --c-violet-soft: #2c2441;
    --c-purple: #d79be6;
    --c-purple-soft: #34223b;
    --c-pink: #f09cc2;
    --c-pink-soft: #3b2231;
    --c-brown: #d2a57a;
    --c-brown-soft: #34281e;
    --c-grey: #b9b1a8;
    --c-grey-soft: #2d2a26;
    --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.3);
    --table-sticky-shadow: 8px 0 10px -8px rgba(0, 0, 0, 0.7);
    --table-edge: rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #14120f;
  --surface: #1f1c19;
  --surface-2: #2a2621;
  --text: #f3ede3;
  --text-muted: #ada295;
  --border: #342f2a;
  --border-strong: #787168;
  --accent: #f3ede3;
  --accent-hover: #ffffff;
  --accent-contrast: #15120e;
  --accent-soft: #2a2621;
  --brass: #d0b992;
  --brass-hover: #ddcaa8;
  --brass-contrast: #1c1408;
  --brass-soft: #302a20;
  --danger: #f4907f;
  --danger-contrast: #2a0e0a;
  --danger-soft: #3e1e18;
  --badge: #e5604f;
  --badge-text: #1f0806;
  --rust: #e3a47c;
  --rust-soft: #3a261a;
  --focus: #d0b992;
  --hover: #f3ede312;
  --selected: #2a2621;
  --toast: #f3ede3;
  --toast-text: #231e18;
  --toast-action: #231e18;
  --scrim: #00000099;
  --theme-color: #14120f;
  --c-red: #f08a7e;
  --c-red-soft: #3d201c;
  --c-orange: #f2a065;
  --c-orange-soft: #3d2718;
  --c-amber: #e9b552;
  --c-amber-soft: #392b15;
  --c-yellow: #e3cf5a;
  --c-yellow-soft: #35311a;
  --c-lime: #b4d06a;
  --c-lime-soft: #2b321a;
  --c-green: #7fcb8c;
  --c-green-soft: #1d3223;
  --c-teal: #6fcfc2;
  --c-teal-soft: #173331;
  --c-cyan: #6fc6e0;
  --c-cyan-soft: #17313b;
  --c-blue: #8db4f2;
  --c-blue-soft: #1d2b42;
  --c-indigo: #a2a8f0;
  --c-indigo-soft: #242740;
  --c-violet: #b9a3f0;
  --c-violet-soft: #2c2441;
  --c-purple: #d79be6;
  --c-purple-soft: #34223b;
  --c-pink: #f09cc2;
  --c-pink-soft: #3b2231;
  --c-brown: #d2a57a;
  --c-brown-soft: #34281e;
  --c-grey: #b9b1a8;
  --c-grey-soft: #2d2a26;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.3);
  --table-sticky-shadow: 8px 0 10px -8px rgba(0, 0, 0, 0.7);
  --table-edge: rgba(0, 0, 0, 0.45);
}

:root[data-theme="light"] {
  color-scheme: light;
}

/* A preview of one theme inside the other, such as the theme choices in Appearance. */
[data-theme-preview="light"] {
  --bg: #f4efe7;
  --surface: #fffcf7;
  --surface-2: #ece5da;
  --text: #231e18;
  --text-muted: #665c50;
  --border: #e2d9cb;
  --border-strong: #877b6d;
  --accent: #231e18;
  --accent-hover: #3d352c;
  --accent-contrast: #fffcf7;
  --accent-soft: #ece5da;
  --brass: #6b573d;
  --brass-hover: #584832;
  --brass-contrast: #ffffff;
  --brass-soft: #eee8dc;
  --danger: #b0291b;
  --danger-contrast: #ffffff;
  --danger-soft: #fae3de;
  --badge: #b0291b;
  --badge-text: #ffffff;
  --rust: #974a22;
  --rust-soft: #f6e6d8;
  --focus: #6b573d;
  --hover: #231e180e;
  --selected: #ece5da;
  --toast: #2b251e;
  --toast-text: #f3ede3;
  --toast-action: #f3ede3;
  --scrim: #1a140d59;
  --theme-color: #f4efe7;
  --c-red: #b8322a;
  --c-red-soft: #f8e1dc;
  --c-orange: #bd5418;
  --c-orange-soft: #fbe5d4;
  --c-amber: #a0620a;
  --c-amber-soft: #f8ead0;
  --c-yellow: #857106;
  --c-yellow-soft: #f4eec6;
  --c-lime: #5a7812;
  --c-lime-soft: #e8f0d0;
  --c-green: #2d7a3c;
  --c-green-soft: #dcefdf;
  --c-teal: #1d786d;
  --c-teal-soft: #d5eeea;
  --c-cyan: #15718c;
  --c-cyan-soft: #d4ecf3;
  --c-blue: #2f62b3;
  --c-blue-soft: #dde7f6;
  --c-indigo: #4a52b0;
  --c-indigo-soft: #e2e3f6;
  --c-violet: #6a49b3;
  --c-violet-soft: #e9e2f6;
  --c-purple: #8b3ca0;
  --c-purple-soft: #f1def3;
  --c-pink: #b03a72;
  --c-pink-soft: #f8deea;
  --c-brown: #7f5530;
  --c-brown-soft: #eee2d6;
  --c-grey: #655f5a;
  --c-grey-soft: #e8e4df;
  --shadow-float: 0 12px 32px rgba(35, 30, 24, 0.14), 0 2px 6px rgba(35, 30, 24, 0.08);
  --shadow-page: 0 1px 2px rgba(35, 30, 24, 0.05);
  --table-sticky-shadow: 8px 0 10px -8px rgba(35, 30, 24, 0.28);
  --table-edge: rgba(35, 30, 24, 0.16);
}

[data-theme-preview="dark"] {
  --bg: #14120f;
  --surface: #1f1c19;
  --surface-2: #2a2621;
  --text: #f3ede3;
  --text-muted: #ada295;
  --border: #342f2a;
  --border-strong: #787168;
  --accent: #f3ede3;
  --accent-hover: #ffffff;
  --accent-contrast: #15120e;
  --accent-soft: #2a2621;
  --brass: #d0b992;
  --brass-hover: #ddcaa8;
  --brass-contrast: #1c1408;
  --brass-soft: #302a20;
  --danger: #f4907f;
  --danger-contrast: #2a0e0a;
  --danger-soft: #3e1e18;
  --badge: #e5604f;
  --badge-text: #1f0806;
  --rust: #e3a47c;
  --rust-soft: #3a261a;
  --focus: #d0b992;
  --hover: #f3ede312;
  --selected: #2a2621;
  --toast: #f3ede3;
  --toast-text: #231e18;
  --toast-action: #231e18;
  --scrim: #00000099;
  --theme-color: #14120f;
  --c-red: #f08a7e;
  --c-red-soft: #3d201c;
  --c-orange: #f2a065;
  --c-orange-soft: #3d2718;
  --c-amber: #e9b552;
  --c-amber-soft: #392b15;
  --c-yellow: #e3cf5a;
  --c-yellow-soft: #35311a;
  --c-lime: #b4d06a;
  --c-lime-soft: #2b321a;
  --c-green: #7fcb8c;
  --c-green-soft: #1d3223;
  --c-teal: #6fcfc2;
  --c-teal-soft: #173331;
  --c-cyan: #6fc6e0;
  --c-cyan-soft: #17313b;
  --c-blue: #8db4f2;
  --c-blue-soft: #1d2b42;
  --c-indigo: #a2a8f0;
  --c-indigo-soft: #242740;
  --c-violet: #b9a3f0;
  --c-violet-soft: #2c2441;
  --c-purple: #d79be6;
  --c-purple-soft: #34223b;
  --c-pink: #f09cc2;
  --c-pink-soft: #3b2231;
  --c-brown: #d2a57a;
  --c-brown-soft: #34281e;
  --c-grey: #b9b1a8;
  --c-grey-soft: #2d2a26;
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.3);
  --table-sticky-shadow: 8px 0 10px -8px rgba(0, 0, 0, 0.7);
  --table-edge: rgba(0, 0, 0, 0.45);
}
