:root {
  color-scheme: dark;

  /* Typography: local system stacks only, no webfont requests. */
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-stat: 2.5rem;
  --text-hero: 3.25rem;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.5;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-label: 0.08em;

  /* Neutrals: cool ink, three steps of lift. */
  --color-bg: #0d0e12;
  --color-bg-sunken: #090a0d;
  --color-surface: #14161b;
  --color-surface-raised: #1a1d24;
  --color-border: #262a33;
  --color-border-hover: #363b47;
  --color-border-subtle: rgba(255, 255, 255, 0.06);
  --color-text: #e7e8ec;
  --color-text-bright: #ffffff;
  --color-text-muted: #a3a8b4;
  --color-text-faint: #858a97;
  --color-link: #f0cf94;

  /* Accent: champagne gold, dark text on top. */
  --color-accent: #e3b872;
  --color-accent-hover: #eec789;
  --color-accent-soft-bg: rgba(227, 184, 114, 0.14);
  --color-accent-glow: rgba(227, 184, 114, 0.07);
  --color-on-accent: #17130a;
  --color-focus-ring: rgba(227, 184, 114, 0.45);

  /* Status: calm hues, equal visual weight. Errors use the amber notice pair. */
  --color-success: #5fd0a0;
  --color-success-soft-bg: rgba(95, 208, 160, 0.14);

  --color-warning: #f0a35e;
  --color-warning-soft-bg: rgba(240, 163, 94, 0.14);

  --color-danger: #ef8484;
  --color-danger-soft-bg: rgba(239, 132, 132, 0.14);
  --color-danger-focus-ring: rgba(239, 132, 132, 0.45);

  --color-danger-strong: #fca5a5;
  --color-danger-strong-soft-bg: rgba(153, 27, 27, 0.2);

  --color-notice-border: #6b4a22;
  --color-notice-text: #f1c27d;

  /* Spacing: 4px base. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Elevation: soft, low-contrast shadows plus a one-pixel top highlight. */
  --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);

  --ring: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-focus-ring);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
  }
}

/* Area themes share one lightness/chroma band so they read as siblings. */
[data-area='work'] {
  --color-bg: #080b14;
  --color-bg-sunken: #05070e;
  --color-surface: #0f1422;
  --color-surface-raised: #151b2d;
  --color-border: #1f2a42;
  --color-border-hover: #2d3b5c;
  --color-link: #a9ccff;
  --color-accent: #6aa8ff;
  --color-accent-hover: #86b9ff;
  --color-accent-soft-bg: rgba(106, 168, 255, 0.16);
  --color-accent-glow: rgba(106, 168, 255, 0.07);
  --color-on-accent: #07101f;
  --color-focus-ring: rgba(106, 168, 255, 0.45);
}

[data-area='planning'] {
  --color-bg: #0b0a13;
  --color-bg-sunken: #07060d;
  --color-surface: #141222;
  --color-surface-raised: #1b182c;
  --color-border: #2b2545;
  --color-border-hover: #3d3562;
  --color-link: #d3c3ff;
  --color-accent: #b69cff;
  --color-accent-hover: #c8b2ff;
  --color-accent-soft-bg: rgba(182, 156, 255, 0.16);
  --color-accent-glow: rgba(182, 156, 255, 0.07);
  --color-on-accent: #120c24;
  --color-focus-ring: rgba(182, 156, 255, 0.45);
}

[data-area='vacation'] {
  --color-bg: #080f11;
  --color-bg-sunken: #050a0b;
  --color-surface: #0f1a1c;
  --color-surface-raised: #152326;
  --color-border: #1e3a3d;
  --color-border-hover: #2b5559;
  --color-link: #a2efe2;
  --color-accent: #5fd8c4;
  --color-accent-hover: #7fe3d2;
  --color-accent-soft-bg: rgba(95, 216, 196, 0.15);
  --color-accent-glow: rgba(95, 216, 196, 0.07);
  --color-on-accent: #04161a;
  --color-focus-ring: rgba(95, 216, 196, 0.45);
}

[data-area='health'] {
  --color-bg: #090f0c;
  --color-bg-sunken: #060b08;
  --color-surface: #101a14;
  --color-surface-raised: #16231b;
  --color-border: #1f3b2a;
  --color-border-hover: #2d5640;
  --color-link: #aeeccb;
  --color-accent: #6fd49a;
  --color-accent-hover: #8bdcae;
  --color-accent-soft-bg: rgba(111, 212, 154, 0.15);
  --color-accent-glow: rgba(111, 212, 154, 0.07);
  --color-on-accent: #04170d;
  --color-focus-ring: rgba(111, 212, 154, 0.45);
}

/* Base element defaults, zero-specificity via :where() so any existing scoped
   selector (e.g. `.chat-box button`) still wins unchanged. Covers screens with
   no bespoke classes at all (pending-routes, quote-intents, to-read, etc). */
:where(button) {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

:where(button:active:not(:disabled)) {
  transform: translateY(1px);
}

:where(button:hover:not(:disabled)) {
  background: var(--color-accent-hover);
}

:where(button:focus-visible) {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:where(button:disabled) {
  opacity: 0.5;
  cursor: default;
}

:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color'])),
:where(select),
:where(textarea) {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-sunken);
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

:where(input)::placeholder,
:where(textarea)::placeholder {
  color: var(--color-text-faint);
}

:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color']):hover:not(:disabled)),
:where(select:hover:not(:disabled)),
:where(textarea:hover:not(:disabled)) {
  border-color: var(--color-border-hover);
}

:where(input:not([type='checkbox'], [type='radio'], [type='range'], [type='file'], [type='color']):focus-visible),
:where(select:focus-visible),
:where(textarea:focus-visible) {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

:where(input:disabled),
:where(select:disabled),
:where(textarea:disabled) {
  opacity: 0.5;
  cursor: default;
}

:where(textarea) {
  resize: vertical;
}

/* Reusable primitive classes — the components new JSX (and Storybook stories)
   should reach for directly instead of hand-rolling button/input CSS again. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-1), var(--highlight-top);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-surface-raised);
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-border);
  border-color: var(--color-border-hover);
}

.input,
.select,
.textarea {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-sunken);
  color: inherit;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-faint);
}

.input:hover:where(:not(:disabled)),
.select:hover:where(:not(:disabled)),
.textarea:hover:where(:not(:disabled)) {
  border-color: var(--color-border-hover);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.input:disabled,
.select:disabled,
.textarea:disabled {
  opacity: 0.5;
  cursor: default;
}

.textarea {
  resize: vertical;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.checkbox:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.checkbox:disabled {
  opacity: 0.6;
  cursor: default;
}

.checkbox-field:has(.checkbox:disabled) {
  opacity: 0.6;
  cursor: default;
}

.card,
.surface {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-1), var(--highlight-top);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
}

/* Stat tile: one big tabular figure with a quiet label and optional delta. */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.stat-value {
  font-size: var(--text-stat);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-bright);
  font-variant-numeric: tabular-nums;
}

.stat-value.hero {
  font-size: var(--text-hero);
}

.stat-unit {
  margin-left: var(--space-1);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-normal);
  color: var(--color-text-muted);
}

.stat-delta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  padding: 0.15rem var(--space-2);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  font-variant-numeric: tabular-nums;
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
}

.pill-success {
  background: var(--color-success-soft-bg);
  color: var(--color-success);
}

.pill-warning {
  background: var(--color-warning-soft-bg);
  color: var(--color-warning);
}

.pill-danger {
  background: var(--color-danger-soft-bg);
  color: var(--color-danger);
}

.pill-neutral {
  background: var(--color-accent-soft-bg);
  color: var(--color-accent);
}

.pill-tier-core {
  background: var(--color-success-soft-bg);
  color: var(--color-success);
}

.pill-tier-active {
  background: var(--color-accent-soft-bg);
  color: var(--color-accent);
}

.pill-tier-warm {
  background: var(--color-warning-soft-bg);
  color: var(--color-warning);
}

.pill-tier-cold {
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
}

.pill-tier-archive {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--color-border);
  color: var(--color-text-faint);
}

.pill-tier-no-data {
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
}

.notice {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-md);
  line-height: var(--leading-body);
}

.notice-error {
  border-color: var(--color-notice-border);
  background: var(--color-warning-soft-bg);
  color: var(--color-notice-text);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-field-error {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-notice-text);
}

.input[aria-invalid='true'],
.select[aria-invalid='true'],
.textarea[aria-invalid='true'] {
  border-color: var(--color-notice-border);
}

.input[aria-invalid='true']:focus-visible,
.select[aria-invalid='true']:focus-visible,
.textarea[aria-invalid='true']:focus-visible {
  box-shadow: 0 0 0 2px var(--color-danger-focus-ring);
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: var(--text-md);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.list-row:hover {
  background: var(--color-surface-raised);
  border-color: var(--color-border-hover);
}

.list-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.list-row-description {
  display: block;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.list-row-trailing {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

:where(.table) th,
:where(.table) td {
  text-align: left;
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums;
}

:where(.table) th {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-faint);
}

:where(.table) tbody tr:hover {
  background: var(--color-surface);
}

.ui-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 10rem;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-sunken);
  color: inherit;
  cursor: pointer;
}

.ui-select-trigger::after {
  content: '\25BE';
  color: var(--color-text-muted);
}

.ui-select-trigger:hover:where(:not(:disabled)),
.ui-select-trigger[aria-expanded='true'] {
  border-color: var(--color-border-hover);
}

.ui-select-trigger:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.ui-select-trigger:disabled {
  opacity: 0.6;
  cursor: default;
}

.ui-popover {
  margin: 0;
  padding: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  color: var(--color-text);
  box-shadow: var(--shadow-3), var(--highlight-top);
}

.ui-popover-panel {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  min-width: 14rem;
}

.ui-list {
  display: grid;
  gap: 2px;
  outline: none;
}

.ui-option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  cursor: pointer;
  user-select: none;
}

.ui-option[data-highlighted],
.ui-option[aria-selected='true'][data-highlighted],
.ui-option:hover:not([aria-disabled='true']) {
  background: var(--color-border);
  color: var(--color-text-bright);
}

.ui-option[aria-selected='true'],
.ui-option[aria-checked='true'] {
  color: var(--color-accent);
}

.ui-option[aria-disabled='true'] {
  color: var(--color-text-faint);
  cursor: default;
}

.ui-option[data-select-flash],
.ui-option[data-menu-flash],
.ui-option[data-listbox-flash] {
  background: var(--color-accent-soft-bg);
}

.ui-tabs {
  display: grid;
  gap: var(--space-3);
  width: 100%;
}

.ui-tab-list {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
}

.ui-tab {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-4);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.ui-tab:hover:not(:disabled) {
  color: var(--color-text);
  background: transparent;
}

.ui-tab[aria-selected='true'] {
  color: var(--color-text-bright);
  border-bottom-color: var(--color-accent);
}

.ui-tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.ui-tab:disabled {
  color: var(--color-text-faint);
  cursor: default;
}

.ui-tab-panel[hidden] {
  display: none;
}

.ui-accordion {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}

.ui-accordion-item + .ui-accordion-item {
  border-top: 1px solid var(--color-border);
}

.ui-accordion-item[data-disabled] {
  opacity: 0.5;
}

.ui-accordion-heading {
  margin: 0;
}

.ui-accordion-trigger {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  padding: var(--space-3) var(--space-4);
  border: none;
  background: transparent;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
}

.ui-accordion-trigger::after {
  content: '+';
  color: var(--color-text-muted);
}

.ui-accordion-trigger[aria-expanded='true']::after {
  content: '\2212';
  color: var(--color-accent);
}

.ui-accordion-trigger:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.ui-accordion-content {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.ui-accordion-content[hidden] {
  display: none;
}

.ui-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  cursor: pointer;
}

.ui-toggle-control {
  appearance: none;
  position: relative;
  flex: none;
  width: 2.25rem;
  height: 1.25rem;
  margin: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-hover);
  background: var(--color-bg-sunken);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.ui-toggle-control::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(1.25rem - 6px);
  height: calc(1.25rem - 6px);
  border-radius: var(--radius-pill);
  background: var(--color-text-muted);
  transition: transform var(--dur-base) var(--ease), background-color var(--dur-fast) var(--ease);
}

.ui-toggle-control:checked {
  background: var(--color-accent-soft-bg);
  border-color: var(--color-accent);
}

.ui-toggle-control:checked::after {
  background: var(--color-accent);
  transform: translateX(1rem);
}

.ui-toggle-control:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.ui-toggle-control:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Mac-style primitives: tab bar, list row additions, segmented control, sheet, motion. */
:root {
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-slow: 0ms;
  }
}

@keyframes ui-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ui-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.motion-fade-in {
  animation: ui-fade-in var(--dur-slow) var(--ease-out) both;
}

.motion-rise {
  animation: ui-rise var(--dur-slow) var(--ease-out) both;
}

.tab-bar {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--color-bg-sunken);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-bar-item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.tab-bar-item:hover:not(:disabled) {
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.tab-bar-item[aria-selected='true'] {
  background: var(--color-accent-soft-bg);
  color: var(--color-text-bright);
}

.tab-bar-badge {
  display: inline-block;
  min-width: 1.1em;
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-align: center;
}

.tab-bar-badge:empty {
  display: none;
}

.list-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.list-row-leading {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
}

.list-row-title {
  display: block;
  font-weight: var(--weight-medium);
  color: var(--color-text);
}

.list-row-stacked {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--space-1);
}

.list-row[data-tone='danger'] {
  border-color: var(--color-danger);
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.segmented-item {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.segmented-item:hover:not(:disabled) {
  background: var(--color-surface-raised);
  color: var(--color-text);
}

.segmented-item[aria-pressed='true'],
.segmented-item[aria-checked='true'] {
  background: var(--color-accent-soft-bg);
  color: var(--color-text-bright);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  animation: ui-fade-in var(--dur-base) var(--ease-out) both;
}

.sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(32rem, 100%);
  max-height: 85vh;
  padding: var(--space-5);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3), var(--highlight-top);
  animation: ui-rise var(--dur-slow) var(--ease-out) both;
}

.sheet-header {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}

.sheet-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sheet-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
}

.sheet-inline {
  width: auto;
  max-height: none;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  box-shadow: var(--shadow-1), var(--highlight-top);
  animation: none;
}

.sheet-inline > summary {
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

@media (prefers-reduced-motion: reduce) {
  .motion-fade-in,
  .motion-rise,
  .sheet,
  .sheet-backdrop {
    animation: none;
  }

  .tab-bar-item,
  .segmented-item {
    transition: none;
  }
}

  html, body {
    height: 100%;
  }
  body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-md);
    line-height: var(--leading-body);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  ::selection {
    background: var(--color-accent-soft-bg);
    color: var(--color-text-bright);
  }
  :where(a) {
    color: var(--color-link);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
  }
  :where(h1, h2, h3, h4) {
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-tight);
    color: var(--color-text-bright);
  }
  .content h1 {
    margin: 0 0 var(--space-2);
    font-size: var(--text-2xl);
    line-height: var(--leading-tight);
  }
  .content h2 {
    font-size: var(--text-lg);
  }
  .content h3 {
    font-size: var(--text-md);
  }
  :where(p) {
    max-width: 68ch;
  }
  :where(code, kbd, samp, pre) {
    font-family: var(--font-mono);
    font-size: 0.9em;
  }
  :where(code, kbd) {
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
    background: var(--color-surface-raised);
  }
  :where(hr) {
    border: 0;
    border-top: 1px solid var(--color-border);
  }
  :where(*) {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-hover) transparent;
  }
  .app-shell {
    background: var(--color-bg);
    background-image: radial-gradient(50rem 24rem at 85% -8%, var(--color-accent-glow), transparent 70%);
    background-repeat: no-repeat;
    color: var(--color-text);
    display: flex;
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    background: var(--color-bg-sunken);
    border-right: 1px solid var(--color-border);
  }
  .sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    font-weight: var(--weight-bold);
    font-size: var(--text-sm);
    letter-spacing: 0.2em;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1rem 0.75rem;
  }
  .sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .sidebar-section-title {
    cursor: pointer;
    list-style: none;
    padding: 0 0.5rem 0.35rem;
    font-size: 0.7rem;
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--color-text-faint);
  }
  .sidebar-section-title::-webkit-details-marker {
    display: none;
  }
  .sidebar-nav a {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: var(--weight-medium);
    font-size: var(--text-md);
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease),
      box-shadow var(--dur-fast) var(--ease);
  }
  .sidebar-nav a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
  }
  .sidebar-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem 0;
  }
  .sidebar-apps a {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.8rem;
  }
  .sidebar-apps a.app-current {
    color: var(--color-accent);
    font-weight: var(--weight-bold);
  }
  .sidebar-hint {
    margin: 0;
    padding: 0.6rem 1.25rem 0;
    font-size: 0.75rem;
    color: var(--color-text-muted);
  }
  .sidebar-badge {
    color: var(--color-accent);
    font-weight: var(--weight-bold);
    font-variant-numeric: tabular-nums;
  }
  .sidebar-nav a:hover {
    color: var(--color-text);
    background: var(--color-surface);
  }
  .sidebar-nav a.active {
    color: var(--color-text-bright);
    background: var(--color-surface-raised);
    box-shadow: inset 2px 0 0 var(--color-accent);
  }
  .content {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding: var(--space-8) var(--space-10);
  }
  .content-column {
    max-width: 1400px;
    margin: 0 auto;
  }
  .content-column.wide {
    max-width: none;
  }
  .folder {
    margin-left: 1rem;
    border-left: 1px solid var(--color-border);
    padding-left: 0.75rem;
  }
  .folder-name {
    font-weight: 600;
  }
  .folder-overview {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0.15rem 0 0.5rem;
  }
  /* Primary-button family: every "do a thing" button across the dashboard
     shares one look, driven by the shared accent token. */
  .chat-box button,
  .inbox-triggers button,
  .todos-add button,
  .todos-list button,
  .events-refresh button,
  .youtube-controls button {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: var(--weight-medium);
    cursor: pointer;
    box-shadow: var(--shadow-1), var(--highlight-top);
    transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  }
  .chat-box button:hover:not(:disabled),
  .inbox-triggers button:hover:not(:disabled),
  .todos-add button:hover:not(:disabled),
  .todos-list button:hover:not(:disabled),
  .events-refresh button:hover:not(:disabled),
  .youtube-controls button:hover:not(:disabled) {
    background: var(--color-accent-hover);
  }
  .chat-box button:active:not(:disabled),
  .inbox-triggers button:active:not(:disabled),
  .todos-add button:active:not(:disabled),
  .todos-list button:active:not(:disabled),
  .events-refresh button:active:not(:disabled),
  .youtube-controls button:active:not(:disabled) {
    transform: translateY(1px);
  }
  .inbox-triggers button:disabled,
  .todos-add button:disabled,
  .todos-list button:disabled,
  .events-refresh button:disabled,
  .youtube-controls button:disabled {
    opacity: 0.5;
    cursor: default;
  }
  .todos-list button {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
  }
  .health-table button {
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    margin-right: 0.4rem;
  }

  /* Text-input family: shares the same surface/border look everywhere a form
     field appears. */
  .chat-box input,
  .todos-add input,
  .health-add input,
  .events-limit input,
  .youtube-controls input[type='number'] {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: var(--color-bg-sunken);
    color: inherit;
  }
  .chat-box input {
    flex: 1;
  }
  .todos-add .form-field {
    flex: 1;
  }
  .health-add .form-field {
    flex: 1 1 160px;
  }
  .events-limit input {
    width: 5rem;
  }

  /* Card/surface family: every list item or output block that reads as a
     "card" shares one background/border/radius. */
  .chat-answer,
  .inbox-run-output,
  .dimension-card,
  .todos-list li:not(.list-row),
  .events-list li:not(.list-row) {
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-1), var(--highlight-top);
  }
  .chat-answer,
  .inbox-run-output {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
  }
  .inbox-run-output {
    margin: 0 0 1rem;
  }
  .chat-answer,
  .inbox-run-output {
    white-space: pre-wrap;
  }
  .inbox-run-output {
    font-family: inherit;
  }
  .dimension-card {
    padding: var(--space-5);
  }
  .todos-list li:not(.list-row),
  .events-list li:not(.list-row) {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }
  .todos-list li:not(.list-row) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .events-list li:not(.list-row) {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }
  /* Notice family: the recurring amber "something's off" treatment. */
  .chat-answer.stub,
  .inbox-run-output.error {
    border-color: var(--color-notice-border);
    color: var(--color-notice-text);
  }
  .today-notice {
    margin: 0.75rem 0 0;
    color: var(--color-notice-text);
    font-size: 0.8rem;
  }

  .chat-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  .inbox-triggers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
  }
  .inbox-limit-input {
    width: 6rem;
  }
  .needs-review-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
  }
  .needs-review-hint-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }
  .dimension-header h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: capitalize;
  }
  .dimension-bar-container {
    width: 100%;
    height: 10px;
    background: var(--color-bg-sunken);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid var(--color-border);
  }
  .dimension-bar-fill {
    height: 100%;
    transition: width 0.3s ease;
  }
  .dimension-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  .notice + .today-as-of {
    margin-top: 0.5rem;
  }
  .today-greeting + .today-as-of {
    margin-top: 0;
  }
  .today-as-of {
    margin: -0.5rem 0 0;
    color: var(--color-text-faint);
    font-size: 0.85rem;
  }
  .today-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-5);
  }
  .today-card h2 {
    margin: 0 0 var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-label);
    text-transform: uppercase;
    color: var(--color-text-faint);
  }
  .today-card .list-row {
    background: var(--color-bg-sunken);
  }
  .today-card .list-row:hover {
    background: var(--color-surface-raised);
  }
  .today-rows {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
  }
  .today-rows a {
    color: var(--color-link);
  }
  .today-rows li:not(.list-row) {
    list-style: disc;
    margin-left: 1.1rem;
  }
  .today-muted {
    color: var(--color-text-faint);
    font-size: 0.8rem;
  }
  .today-empty {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
  }
  .today-empty.unavailable {
    color: var(--color-notice-text);
  }
  .today-card h2 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-text-faint);
  }
  .today-card h2 a:hover {
    color: var(--color-accent);
  }
  .todos-add {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1rem 0;
  }
  .todos-list .todos-add {
    flex-wrap: wrap;
    margin: 0.5rem 0;
  }
  .todos-list .todos-add .form-field {
    flex: 1 1 8rem;
    min-width: 0;
  }
  .todos-list .todos-add .form-field input {
    min-width: 0;
    width: 100%;
  }
  .todos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .todos-list a {
    color: var(--color-link);
  }
  .todos-steps {
    list-style: none;
    margin: 0.25rem 0 0.25rem 1.25rem;
    padding: 0;
  }
  .todos-step {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .bulk-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
  }
  .stats-bars {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .stats-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
  }
  .stats-bar {
    display: block;
    height: 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
  }
  .health-section {
    margin-top: 1.5rem;
  }
  .health-section h2 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
  }
  .health-add {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
  }
  .health-course-editor {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .health-course-editor .form-field {
    flex: 1 1 260px;
  }
  .health-table td.actions input[type='number'] {
    width: 5rem;
  }
  .health-table td.actions {
    white-space: nowrap;
    text-align: right;
  }
  .health-time-pill {
    margin-right: 0.3rem;
  }
  .health-subheading {
    margin: 0.75rem 0 0.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .events-refresh {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
  }
  .youtube-controls {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
  }
  .youtube-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .youtube-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0 0.25rem;
  }
  .youtube-transcript {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 24rem;
    overflow-y: auto;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
  }
  .youtube-list a {
    color: var(--color-link);
  }
  .events-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .events-title {
    font-weight: 600;
  }
  .events-list a {
    color: var(--color-link);
  }
  .events-note {
    color: var(--color-text-muted);
    font-size: 0.85rem;
  }
  .events-refreshed {
    margin: 0.75rem 0 0;
  }
  .schedule-table th,
  .schedule-table td {
    text-align: center;
  }

  .schedule-cell {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    background: var(--color-surface-raised);
    color: var(--color-text-muted);
  }
  .life-balance-table {
    width: 100%;
    margin-top: var(--space-3);
    border-collapse: collapse;
    font-size: var(--text-sm);
  }
  .life-balance-table th,
  .life-balance-table td {
    padding: 0.35rem 0.5rem;
    text-align: right;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .life-balance-table th:first-child,
  .life-balance-table td:first-child {
    text-align: left;
  }
  .life-balance-table th {
    font-weight: var(--weight-semibold);
    color: var(--color-text-muted);
  }
  .balance-targets-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: var(--space-3);
  }
  .balance-targets-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 6rem;
  }
  /* Spacing-only overrides for Pill usages that sit inline after text — the
     shared .pill rule has no margin since most pills sit inside a row with
     their own gap. */
  .events-stale-pill {
    margin-left: 0.5rem;
  }
  .health-outcome-pill {
    margin-right: 0.4rem;
  }
  .health-slot-pill {
    margin-left: 0.4rem;
  }
  .to-read-status-pill {
    margin-left: 0.4rem;
  }
  .today-tier-pill {
    margin-left: 0.4rem;
  }
  .today-trailing-pill {
    margin-left: 0.4rem;
  }
  .todos-due-pill {
    margin-left: 0.4rem;
  }
  .books-progress-pill {
    margin-left: 0.4rem;
  }
  .books-sync-outcome-pill {
    margin-right: 0.4rem;
  }
  .citations-date-pill {
    margin-left: 0.4rem;
  }
  .todos-result-notice {
    margin: 0 0 1rem;
  }
  .offline-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
  }
  .offline-queue-panel {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
  }
  .schedule-cell.taken {
    background: var(--color-success-soft-bg);
    color: var(--color-success);
  }
  .schedule-cell.upcoming {
    background: var(--color-accent-soft-bg);
    color: var(--color-accent);
  }
  .schedule-cell.due {
    background: var(--color-warning-soft-bg);
    color: var(--color-warning);
  }
  .schedule-cell.missed {
    background: var(--color-surface-raised);
    color: var(--color-text-faint);
  }
  .schedule-cell.off {
    background: transparent;
    color: var(--color-text-muted);
  }
  .goals-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
  }
  .goals-tab {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-link);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease);
  }
  .goals-tab:hover {
    background: var(--color-surface-raised);
  }
  .goals-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
    font-weight: var(--weight-medium);
  }
  .goals-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(12rem, 1fr));
    gap: 0.75rem;
    overflow-x: auto;
  }
  .goals-column h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
  }
  .goals-list,
  .goals-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .goals-card,
  .goals-plan-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--highlight-top);
    overflow-wrap: anywhere;
  }
  .goals-plan-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .goals-plan-row.state-displaced {
    opacity: 0.7;
    border-style: dashed;
  }
  .goals-card-meta,
  .goals-card-actions,
  .goals-plan-actions,
  .goals-add-day,
  .goals-interrupt {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem;
  }
  .goals-plan {
    margin: 1rem 0;
  }
  .goals-review {
    margin: 1.5rem 0;
  }
  .goals-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.75rem;
  }
  .goals-review-group h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
  }
  .goals-add-day .form-field,
  .health-add .form-field {
    min-width: 0;
    max-width: 100%;
  }
  .goals-add-day .select,
  .health-add .select {
    max-width: 100%;
    text-overflow: ellipsis;
  }

.quick-add {
  display: flex;
  gap: var(--space-2, 8px);
  margin-bottom: var(--space-4, 16px);
}

.quick-add-input {
  flex: 1;
}

.health-add .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1 1 160px;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.health-add .field input,
.health-add .field select {
  width: 100%;
  font-size: 1rem;
}
.goals-add-day {
  gap: 0.75rem;
}
.health-add .field:first-of-type {
  flex-basis: 100%;
}
.health-add .checkbox-field {
  flex: none;
  padding-bottom: 0.5rem;
}
.health-add .field input,
.health-add .field select {
  box-sizing: border-box;
}

.find-results mark {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border-radius: 2px;
  padding: 0 0.15rem;
}

.habit-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.habit-days legend {
  padding: 0 0.25rem;
  color: var(--color-text-faint);
  font-size: 0.85rem;
}

.today-greeting {
  margin: 0.25rem 0 0.5rem;
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-tight);
}

.quick-add-preview {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.85rem;
}

.quick-add-echo {
  margin: 0 0 0.15rem;
}

.quick-add-repeat-mark {
  background: var(--color-accent-soft-bg);
  color: var(--color-accent);
  border-radius: 0.2rem;
  padding: 0 0.15rem;
}

.today-overdue {
  list-style: none;
  font-size: 0.85rem;
}

.today-waiting {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.shortcut-help {
  display: none;
}

.shortcut-help.open {
  display: block;
}

.shortcut-help {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  padding: 1rem 1.25rem;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3), var(--highlight-top);
}

.shortcut-help h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.shortcut-help ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.today-done-line {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.today-week-line {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.today-focus-line {
  margin: 0 0 0.5rem;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}

.todos-dropped {
  margin-top: 1.5rem;
}

.todos-dropped summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.calendar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.calendar-item {
  font-size: 0.85rem;
}
.calendar-item.done {
  opacity: 0.55;
  text-decoration: line-through;
}
.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1rem;
  align-items: start;
}
.calendar-unscheduled {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.calendar-unscheduled h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.calendar-unscheduled-row,
.calendar-scheduled-row {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.calendar-unscheduled-row form,
.calendar-scheduled-row form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.calendar-item.external {
  background: var(--color-surface-raised);
  color: var(--color-text);
  border-left: 3px solid var(--color-text-muted);
}

.calendar-settings-section {
  margin-top: 1.25rem;
}
.calendar-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.calendar-item.overlap {
  outline: 2px dashed var(--color-accent);
}

.calendar-parent-link {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.todos-list .list-row-trailing {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 50%;
}

.pills-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pills-dose { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.pills-name { flex: 1 1 8rem; font-weight: 600; }
.pills-phrase { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem; }
.pills-phrase .field { flex: 1 1 16rem; }
.pills-choices { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.checkin-form { display: grid; gap: 0.75rem; }
.checkin-levels { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; margin: 0; padding: 0; }
.checkin-levels legend { font-weight: 600; margin-bottom: 0.25rem; }
.checkin-choice { display: inline-flex; align-items: center; gap: 0.25rem; }
.checkin-note { display: grid; gap: 0.25rem; }
.mood-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 2px; }
.mood-cell { height: 1.5rem; border-radius: 3px; background: transparent; border: 1px solid var(--color-border); }
.mood-blank { background: transparent; }
.mood-level-very_low { background: #2a3045; border-color: transparent; }
.mood-level-low { background: #3b4a73; border-color: transparent; }
.mood-level-middle { background: #5b73ad; border-color: transparent; }
.mood-level-high { background: #8aa4dc; border-color: transparent; }
.mood-level-very_high { background: #bccdf0; border-color: transparent; }
.mood-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; justify-content: space-between; }
.focus-label { margin: 0; font-weight: 600; }
.focus-elapsed { margin: 0.25rem 0; font-size: var(--text-hero); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); color: var(--color-text-bright); font-variant-numeric: tabular-nums; }
.focus-flag { margin: 0; color: var(--color-warning); font-weight: var(--weight-semibold); }
.focus-dots { margin: var(--space-2) 0; font-size: var(--text-xs); line-height: var(--leading-snug); letter-spacing: var(--space-2); color: var(--color-accent); overflow-wrap: anywhere; }

.documents-form { display: grid; gap: var(--space-3, 0.75rem); max-width: 40rem; }
.documents-lens { margin-block: var(--space-3, 0.75rem); }

.ai-spend-bars { display: grid; gap: 4px; }
.ai-spend-bar-row { display: grid; grid-template-columns: 9rem 1fr 5rem; align-items: center; gap: 8px; }
.ai-spend-bar { display: block; height: 10px; background: var(--color-accent); border-radius: var(--radius-pill); }
.ai-spend-bar-row { font-variant-numeric: tabular-nums; }

.calendar-main {
  min-width: 0;
}
.calendar-fc {
  position: relative;
  min-width: 0;
}
.calendar-fc .fc {
  --fc-border-color: var(--color-border);
  --fc-page-bg-color: var(--color-bg);
  --fc-neutral-bg-color: var(--color-surface);
  --fc-neutral-text-color: var(--color-text-muted);
  --fc-today-bg-color: var(--color-accent-soft-bg);
  --fc-now-indicator-color: var(--color-accent);
  --fc-event-bg-color: var(--color-accent);
  --fc-event-border-color: var(--color-accent);
  --fc-event-text-color: var(--color-on-accent);
  --fc-highlight-color: var(--color-accent-soft-bg);
  --fc-more-link-bg-color: var(--color-surface);
  --fc-non-business-color: var(--color-bg-sunken);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text);
}
.calendar-fc .fc a {
  color: inherit;
  text-decoration: none;
}
.calendar-fc .fc .fc-col-header-cell-cushion,
.calendar-fc .fc .fc-daygrid-day-number {
  color: var(--color-text);
}
.calendar-fc .fc .fc-timegrid-slot-label-cushion,
.calendar-fc .fc .fc-timegrid-axis-cushion {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}
.calendar-fc .fc .fc-day-today .fc-col-header-cell-cushion,
.calendar-fc .fc .fc-day-today .fc-daygrid-day-number {
  color: var(--color-text-bright);
  font-weight: 700;
}
.calendar-fc .fc .fc-scrollgrid {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.calendar-fc .fc .fc-event {
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.calendar-fc .fc .fc-event.cal-external {
  --fc-event-bg-color: var(--color-surface-raised);
  --fc-event-border-color: var(--color-text-muted);
  --fc-event-text-color: var(--color-text);
  border-left: 3px solid var(--color-text-muted);
  cursor: default;
}
.calendar-fc .fc .fc-event.cal-dose {
  --fc-event-bg-color: var(--color-success-soft-bg);
  --fc-event-border-color: var(--color-success);
}
.calendar-fc .fc .fc-event.cal-done {
  opacity: 0.55;
  text-decoration: line-through;
  cursor: default;
}
.calendar-fc .fc .fc-event.cal-overlap {
  outline: 2px dashed var(--color-warning);
  outline-offset: -2px;
}
.calendar-fc .fc .fc-event.cal-high {
  --fc-event-border-color: var(--color-warning);
  border-left: 3px solid var(--color-warning);
}
.calendar-fc .fc .fc-event.cal-repeating {
  --fc-event-bg-color: var(--color-surface);
  --fc-event-border-color: var(--color-border-hover);
  --fc-event-text-color: var(--color-text-muted);
  cursor: default;
}
.calendar-fc .fc .fc-daygrid-dot-event .fc-event-title,
.calendar-fc .fc .fc-daygrid-dot-event {
  color: var(--color-text);
}
.cal-event-label {
  overflow: hidden;
  padding: 0 0.25rem;
  text-overflow: ellipsis;
  font-size: 0.8rem;
}
.calendar-create {
  position: absolute;
  z-index: 10;
  width: 16rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-3);
}
.calendar-create input[type='text'] {
  width: 100%;
}
.calendar-unscheduled-title {
  cursor: grab;
}
.calendar-plain {
  display: grid;
  gap: 0.75rem;
}
.calendar-day-lists,
.calendar-day-notices {
  display: grid;
  gap: 1rem;
}
.inbox-capture {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.inbox-capture .textarea {
  width: 100%;
}
.inbox-capture .btn {
  justify-self: start;
}
.inbox-day {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.waiting-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.waiting-card-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.decided-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-1);
}

.points-headline {
  margin: 0;
  font-size: var(--text-stat);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-bright);
  font-variant-numeric: tabular-nums;
}

.points-bar {
  height: 0.5rem;
  margin: 0.6rem 0 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-sunken);
  box-shadow: inset 0 0 0 1px var(--color-border);
  overflow: hidden;
}

.points-bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  transition: width var(--dur-base) var(--ease);
}

.points-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.points-chip {
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.points-chip-done {
  border-color: var(--color-accent);
  background: var(--color-accent-soft-bg);
  color: var(--color-text);
}

.points-suggestion {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.points-moment {
  margin: 0 0 0.4rem;
  color: var(--color-accent);
}

@media (prefers-reduced-motion: no-preference) {
  .points-moment {
    animation: points-moment-fade 1.2s ease-out forwards;
  }
}

@keyframes points-moment-fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.6rem;
}

.rewards-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rewards-treats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rewards-treats li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

  .catalog-area {
    background: var(--color-bg);
    background-image: radial-gradient(40rem 16rem at 90% -10%, var(--color-accent-glow), transparent 70%);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
  }

  .catalog-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: var(--space-5);
  }
  .spark {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 6rem;
  }
  .spark-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
  }
  .spark-bar {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 3px 3px;
    background: linear-gradient(180deg, var(--color-accent-hover), var(--color-accent));
    opacity: 0.9;
  }
  .spark-col:hover .spark-bar {
    opacity: 1;
  }
  .spark-label {
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    font-variant-numeric: tabular-nums;
  }

  .mood-row {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
  }
  .mood-row .btn,
  .mood-row button {
    flex: 1;
    justify-content: center;
    padding: var(--space-2) 0;
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: none;
  }
  .mood-row .btn:hover:not(:disabled),
  .mood-row button:hover:not(:disabled) {
    background: var(--color-accent-soft-bg);
    border-color: var(--color-accent);
  }
  .mood-face {
    font-size: 1.5rem;
    line-height: 1;
  }

/* ideas */
.idea-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0;
}
.idea-cue {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.idea-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.idea-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-3) 0;
  padding: 0;
  list-style: none;
}
.idea-step {
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
}
.idea-step.is-done {
  border-left-color: var(--color-accent);
}
.idea-step.is-current {
  border-left-color: var(--color-accent);
  background: var(--color-accent-soft-bg);
  color: var(--color-text-bright);
  font-weight: var(--weight-semibold);
}
.widget-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.widget-header .card-title {
  margin: 0;
  margin-right: auto;
}
.widget-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.widget-more {
  font-size: var(--text-sm);
}

.area-name { display: inline-flex; align-items: center; gap: 0.5rem; }
.area-trend { color: var(--accent, currentColor); flex: none; }

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.widget h3 {
  margin: var(--space-3) 0 var(--space-2);
}

.sleep-entry { display: grid; gap: var(--space-2, 0.5rem); }
.sleep-stepper { display: flex; align-items: center; gap: var(--space-3, 0.75rem); }
.checkin-face { flex-direction: column; text-align: center; min-width: 4rem; }
.checkin-face-icon { font-size: 1.6rem; line-height: 1; }
.checkin-sleep, .checkin-slept { margin-top: 0.75rem; }
.trend-spark { display: block; color: var(--color-accent); }
.trend-line { font-weight: 600; }

  .app-shell {
    --sidebar-width: 220px;
  }
  .app-shell > .sidebar {
    flex: 0 0 var(--sidebar-width, 220px);
    width: var(--sidebar-width, 220px);
  }
  .sidebar-resizer {
    flex: 0 0 6px;
    margin-left: -3px;
    margin-right: -3px;
    z-index: 2;
    cursor: col-resize;
    touch-action: none;
    background: transparent;
  }
  .sidebar-resizer:hover,
  .sidebar-resizer:focus-visible,
  .sidebar-resizer.dragging {
    background: var(--color-accent);
    outline: none;
  }

:root,
[data-area] {
  color-scheme: light dark;
  --color-bg: #faf7f2;
  --color-bg-sunken: #f3eee6;
  --color-surface: #ffffff;
  --color-surface-raised: #f6f1ea;
  --color-border: #e6ded2;
  --color-border-hover: #d4c9b9;
  --color-border-subtle: rgba(43, 38, 34, 0.08);
  --color-text: #2b2622;
  --color-text-bright: #1a1613;
  --color-text-muted: #6b625a;
  --color-text-faint: #8f877e;
  --color-link: #2f7d6d;
  --color-accent: #2f7d6d;
  --color-accent-hover: #286b5d;
  --color-accent-soft-bg: rgba(47, 125, 109, 0.12);
  --color-accent-glow: rgba(47, 125, 109, 0.05);
  --color-on-accent: #ffffff;
  --color-focus-ring: rgba(47, 125, 109, 0.4);
  --color-today: #f6c26b;
  --color-success: #2f7d6d;
  --color-success-soft-bg: rgba(47, 125, 109, 0.12);
  --color-warning: #b7791f;
  --color-warning-soft-bg: rgba(183, 121, 31, 0.12);
  --color-danger: #b7791f;
  --color-danger-soft-bg: rgba(183, 121, 31, 0.12);
  --color-danger-focus-ring: rgba(183, 121, 31, 0.45);
  --color-danger-strong: #8a5a14;
  --color-danger-strong-soft-bg: rgba(183, 121, 31, 0.16);
  --color-notice-border: #e3c58f;
  --color-notice-text: #8a5a14;
  --area-work: #4a7fd6;
  --area-family: #e08e3c;
  --area-personal: #8a6fd1;
  --area-health: #4fa36d;
  --radius-card: 14px;
  --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --shadow-1: 0 1px 2px rgba(60, 45, 30, 0.08), 0 0 0 1px rgba(60, 45, 30, 0.04);
  --shadow-2: 0 4px 14px rgba(60, 45, 30, 0.1), 0 1px 2px rgba(60, 45, 30, 0.08);
  --shadow-3: 0 16px 40px rgba(60, 45, 30, 0.14), 0 2px 6px rgba(60, 45, 30, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root,
  [data-area] {
    --color-bg: #17151a;
    --color-bg-sunken: #121014;
    --color-surface: #1f1c22;
    --color-surface-raised: #27232b;
    --color-border: #34303a;
    --color-border-hover: #45404c;
    --color-border-subtle: rgba(255, 255, 255, 0.07);
    --color-text: #ece7e1;
    --color-text-bright: #ffffff;
    --color-text-muted: #b3aba2;
    --color-text-faint: #8e867e;
    --color-link: #6cc3ae;
    --color-accent: #6cc3ae;
    --color-accent-hover: #86d0bf;
    --color-accent-soft-bg: rgba(108, 195, 174, 0.14);
    --color-accent-glow: rgba(108, 195, 174, 0.06);
    --color-on-accent: #0d1f1b;
    --color-focus-ring: rgba(108, 195, 174, 0.45);
    --color-today: #e9b453;
    --color-success: #6cc3ae;
    --color-success-soft-bg: rgba(108, 195, 174, 0.14);
    --color-warning: #f0b45e;
    --color-warning-soft-bg: rgba(240, 180, 94, 0.14);
    --color-danger: #f0b45e;
    --color-danger-soft-bg: rgba(240, 180, 94, 0.14);
    --color-danger-focus-ring: rgba(240, 180, 94, 0.45);
    --color-danger-strong: #f5c985;
    --color-danger-strong-soft-bg: rgba(240, 180, 94, 0.18);
    --color-notice-border: #6b4a22;
    --color-notice-text: #f1c27d;
    --area-work: #7aa7f0;
    --area-family: #f0a65c;
    --area-personal: #ad97ec;
    --area-health: #76c48f;
    --highlight-top: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.12);
    --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35);
  }
}

.btn + .btn,
.btn + form,
form + form > .btn {
  margin-inline-start: var(--space-2);
}

.sidebar-section-title,
.today-card h2,
.health-subheading {
  text-transform: none;
  letter-spacing: normal;
}

.content {
  padding: var(--space-5);
}

.today-card h2 {
  font-size: 1.0625rem;
  color: var(--color-text);
}

.card,
.today-card {
  border-radius: var(--radius-card);
}

.sidebar-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0.75rem 0;
}

.sidebar-more > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.65rem;
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.sidebar-more > summary::-webkit-details-marker {
  display: none;
}

.empty-state {
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.sidebar-brand {
  letter-spacing: normal;
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
}
