/* SenseiNodes Design System — generated from tokens.json */
:root, [data-theme="kenji"] {
  --tutor-seed: #1f4e79; /* The active tutor’s seed color (Core Theme HEX). Identity swatch only — never text, and always inside a `color-outline` ring so its edge holds 3:1 on any surface (Hana’s amber alone is 1.6:1 on white). */
  --seed-kenji: #1f4e79; /* Kenji — Deep Navy (穏やかで知的 · Charon). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --seed-hana: #ffbf00; /* Hana — Bright Amber (明るくエネルギッシュ · Aoede). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --seed-sarah: #ff7f50; /* Sarah — Warm Orange (温かく忍耐強い · Puck). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --seed-elena: #4a2e80; /* Dr. Elena — Academic Purple (正確で論理的 · Kore). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --seed-arthur: #4a5d4e; /* Arthur — Forest Green (威厳ある紳士 · Enceladus). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --seed-leo: #d9381e; /* Leo — Crimson Red (熱血でスポーティ · Fenrir). Fixed in every theme: theme-picker swatches and media assets (AITuber, Podcast artwork). Swatch only, inside a `color-outline` ring. */
  --color-primary: oklch(0.38 0.135 252); /* Filled buttons, active states, links, the “Sensei” half of the wordmark, on `color-surface`. DADS key color: ≥4.5:1 on `color-surface` in every theme (Hana 5.3:1 is the lowest). */
  --color-on-primary: oklch(1.00 0.000 252); /* Text and icons on `color-primary`. */
  --color-primary-container: oklch(0.91 0.055 252); /* Tonal buttons, selected filter chips, highlighted panels. */
  --color-on-primary-container: oklch(0.12 0.055 252); /* Text and icons on `color-primary-container`. */
  --color-inverse-primary: oklch(0.72 0.105 252); /* Primary accent on `color-inverse-surface` (snackbars, dark wordmark). */
  --color-secondary: oklch(0.44 0.048 252); /* Secondary emphasis: less prominent actions and accents, on `color-surface`. */
  --color-on-secondary: oklch(1.00 0.000 252); /* Text and icons on `color-secondary`. */
  --color-secondary-container: oklch(0.92 0.022 252); /* Secondary tonal fills (suggestion chips, quiet panels). */
  --color-on-secondary-container: oklch(0.15 0.022 252); /* Text and icons on `color-secondary-container`. */
  --color-tertiary: oklch(0.42 0.075 200); /* Tertiary accent, set against primary, on `color-surface`. */
  --color-on-tertiary: oklch(1.00 0.000 200); /* Text and icons on `color-tertiary`. */
  --color-tertiary-container: oklch(0.91 0.038 200); /* Tertiary tonal fills. */
  --color-on-tertiary-container: oklch(0.14 0.038 200); /* Text and icons on `color-tertiary-container`. */
  --color-error: oklch(0.52 0.185 25); /* Brand error accent — gentle quiz feedback only (incorrect option icon, on `color-surface`). Form validation and system messages use the DADS `error-2` / `error-1` instead. */
  --color-on-error: oklch(1.00 0.000 25); /* Text and icons on `color-error`. */
  --color-error-container: oklch(0.93 0.065 25); /* Error tonal fill (incorrect quiz option). */
  --color-on-error-container: oklch(0.16 0.065 25); /* Text and icons on `color-error-container`. */
  --color-background: oklch(0.994 0.002 252); /* App background behind all surfaces. */
  --color-on-background: oklch(0.14 0.010 252); /* Text on `color-background`. */
  --color-surface: oklch(0.986 0.003 252); /* Default page/screen surface. */
  --color-on-surface: oklch(0.14 0.010 252); /* Primary text and icons on `color-surface` and the surface containers. */
  --color-surface-variant: oklch(0.900 0.020 252); /* Variant surface (input fills, inactive tracks). */
  --color-on-surface-variant: oklch(0.36 0.028 252); /* Secondary text, captions and inactive icons on `color-surface`, `color-surface-variant` and the surface containers. */
  --color-surface-container-lowest: oklch(1.000 0.000 252); /* Lowest container tone (tone 100). */
  --color-surface-container-low: oklch(0.965 0.004 252); /* Low-emphasis containers. */
  --color-surface-container: oklch(0.932 0.008 252); /* Default card background (Knowledge Card, list cards). */
  --color-surface-container-high: oklch(0.900 0.012 252); /* Higher-emphasis containers (dialogs, menus). */
  --color-surface-container-highest: oklch(0.872 0.015 252); /* Highest container tone (tone 87): text fields, top sheets. */
  --color-outline: oklch(0.575 0.024 252); /* Control borders (text fields, outlined buttons, checkboxes), meaningful dividers. ≥3:1 on `color-surface` and `color-surface-container` in every tutor theme (DADS 1.4.11). */
  --color-outline-variant: oklch(0.610 0.018 252); /* Quiet separators: card hairlines, list rules, the knowledge-card example rule. ≥3:1 on `color-surface`, `color-surface-container-low` and `color-surface-container` in every tutor theme (DADS non-text contrast); still lighter than `color-outline`, which marks control borders. */
  --color-inverse-surface: oklch(0.225 0.015 252); /* Inverse surface (snackbars, tooltips, dark logo ground). */
  --color-inverse-on-surface: oklch(0.932 0.005 252); /* Text on `color-inverse-surface`. */
  --color-scrim: oklch(0 0 0 / 0.32); /* Modal scrim behind dialogs and bottom sheets. */
  --color-shadow: oklch(0 0 0 / 0.08); /* Shadow tint. */
  --focus-ring-outer: #000000; /* DADS focus indicator, outer ring: 4px solid outline, offset 2px, on every focusable element. Never change or theme it. */
  --focus-ring-inner: #ffd43d; /* DADS focus indicator, inner ring: 2px Yellow-300 box-shadow inside the black outline; also the fill behind focused links and text buttons. Never change. */
  --link-default: #00118f; /* Unvisited link text (DADS Blue-1000), always underlined. 13.6:1 on white; ≥12:1 on every tutor `color-surface`. */
  --link-hover: #0017c1; /* Link text on hover (DADS Blue-900) with a 3px underline. */
  --link-visited: #8b008b; /* Visited link text (DADS Magenta-900). */
  --link-active: #c74700; /* Link text while pressed (DADS Orange-800). */
  --success-1: #259d63; /* DADS Success-1 (Green-600): icons, borders and progress fills that mean success; 3:1 non-text only, never body text. */
  --success-2: #197a4b; /* DADS Success-2 (Green-800): success text and banner borders, on `neutral-white` and `success-bg`. */
  --success-bg: #e6f5ec; /* Success banner and chip-label fill (DADS Green-50); text on it is `success-2` or `neutral-gray-800`. */
  --error-1: #ec0000; /* DADS Error-1 (Red-800): invalid-field borders (2px), error icons, emergency fills; 4.0:1 on white, so never for text — text uses `error-2`. */
  --error-2: #ce0000; /* DADS Error-2 (Red-900): validation messages and error text on `neutral-white` and `error-bg`. Paired with an icon and the word 「エラー」 — never color alone. */
  --error-bg: #fdeeee; /* Error banner fill (DADS Red-50); text on it is `error-2` or `neutral-gray-800`. */
  --warning-yellow-1: #b78f00; /* DADS Warning Yellow-1 (Yellow-700): large warning icons and thick borders only (3.3:1 on white); text and thin rules use `warning-yellow-2`. */
  --warning-yellow-2: #806300; /* Warning text, banner border and icon (DADS Yellow-1000 — one step darker than the DADS default Yellow-900 so it also holds 5.2:1 on `warning-bg`; 5.7:1 on `neutral-white`; white text on it 5.7:1). */
  --warning-orange-1: #fb5b01; /* DADS Warning Orange-1 (Orange-600): emergency banner frame (6px). */
  --warning-orange-2: #c74700; /* DADS Warning Orange-2 (Orange-800): orange warning text on `neutral-white`. */
  --warning-bg: #fbf5e0; /* Warning chip-label and notice fill (DADS Yellow-50). Text on it is `warning-yellow-2` (5.2:1) or `neutral-gray-800`. */
  --search-highlight-bg: #c8f8ff; /* Search-hit highlight fill (DADS Cyan-100), paired with a `search-highlight-border` outline. */
  --search-highlight-border: #006f83; /* Search-hit highlight border (DADS Cyan-900). */
  --neutral-white: #ffffff; /* DADS White: dialog, input and banner grounds. */
  --neutral-gray-50: #f2f2f2; /* DADS Gray-50: zebra rows, hover fills on neutral controls. */
  --neutral-gray-100: #e6e6e6; /* DADS Gray-100: table header fill; disabled-control fill with `neutral-gray-700` text (6.8:1) and a `neutral-gray-420` border. */
  --neutral-gray-200: #cccccc; /* DADS Gray-200: fills only (skeleton blocks, zebra on gray grounds) — never a border, divider or text; it is 1.6:1 on white. */
  --neutral-gray-300: #b3b3b3; /* DADS Gray-300: decorative fills only (illustration blocks). Not text, border or divider (2.1:1 on white). Disabled controls use `neutral-gray-100` + `neutral-gray-700` instead. */
  --neutral-gray-420: #949494; /* DADS Gray-420: the lightest gray that holds 3:1 on white — dividers and table rules. */
  --neutral-gray-536: #767676; /* DADS Gray-536: the lightest gray for text on white (4.5:1) — placeholders, help text minimum. */
  --neutral-gray-600: #666666; /* DADS Gray-600: text-field and select borders; text of disabled outlined/text controls and disabled choice labels (≥5.4:1 on light surfaces). */
  --neutral-gray-700: #4d4d4d; /* DADS Gray-700: secondary text in banners; disabled-control label on `neutral-gray-100`. */
  --neutral-gray-800: #333333; /* DADS Gray-800: body text on `neutral-white` grounds (banners, dialogs). */
  --neutral-gray-900: #1a1a1a; /* DADS Gray-900: headings on `neutral-white`. */
  --neutral-black: #000000; /* DADS Black: focus outline, drawer scrim base. */
  --elevation-0: none; /* Level 0: everything that sits on the page (cards at rest, banners, inputs). */
  --elevation-1: 0 2px 8px 1px rgba(0,0,0,0.1), 0 1px 5px 0 rgba(0,0,0,0.3); /* Level 1: raised buttons (elevated variant), bottom navigation, sticky headers. */
  --elevation-2: 0 2px 12px 2px rgba(0,0,0,0.1), 0 1px 6px 0 rgba(0,0,0,0.3); /* Level 2: card hover (one level above rest), menus, popovers, combobox lists. */
  --elevation-3: 0 4px 16px 3px rgba(0,0,0,0.1), 0 1px 6px 0 rgba(0,0,0,0.3); /* Level 3: date-picker calendar, mega menu, scroll-top button. */
  --elevation-4: 0 6px 20px 4px rgba(0,0,0,0.1), 0 2px 6px 0 rgba(0,0,0,0.3); /* Level 4: drawers. */
  --elevation-5: 0 8px 24px 5px rgba(0,0,0,0.1), 0 2px 10px 0 rgba(0,0,0,0.3); /* Level 5: modal dialogs (at least two levels above anything beneath). */
  --elevation-6: 0 10px 30px 6px rgba(0,0,0,0.1), 0 3px 12px 0 rgba(0,0,0,0.3); /* Level 6: reserved — dialog over a drawer. */
  --elevation-7: 0 12px 36px 7px rgba(0,0,0,0.1), 0 3px 14px 0 rgba(0,0,0,0.3); /* Level 7: reserved. */
  --elevation-8: 0 14px 40px 7px rgba(0,0,0,0.1), 0 3px 16px 0 rgba(0,0,0,0.3); /* Level 8: reserved, the top of the scale. */
}
[data-theme="hana"] {
  --tutor-seed: #ffbf00;
  --color-primary: oklch(0.52 0.155 85);
  --color-on-primary: oklch(1.00 0.000 85);
  --color-primary-container: oklch(0.93 0.085 85);
  --color-on-primary-container: oklch(0.14 0.085 85);
  --color-inverse-primary: oklch(0.73 0.120 85);
  --color-secondary: oklch(0.50 0.065 85);
  --color-on-secondary: oklch(1.00 0.000 85);
  --color-secondary-container: oklch(0.93 0.030 85);
  --color-on-secondary-container: oklch(0.16 0.030 85);
  --color-background: oklch(0.994 0.002 85);
  --color-on-background: oklch(0.14 0.008 85);
  --color-surface: oklch(0.987 0.003 85);
  --color-on-surface: oklch(0.14 0.008 85);
  --color-surface-variant: oklch(0.905 0.022 85);
  --color-on-surface-variant: oklch(0.38 0.030 85);
  --color-surface-container-lowest: oklch(1.000 0.000 85);
  --color-surface-container-low: oklch(0.967 0.005 85);
  --color-surface-container: oklch(0.935 0.010 85);
  --color-surface-container-high: oklch(0.902 0.014 85);
  --color-surface-container-highest: oklch(0.875 0.017 85);
  --color-outline: oklch(0.580 0.026 85);
  --color-outline-variant: oklch(0.613 0.020 85);
  --color-inverse-surface: oklch(0.225 0.015 85);
  --color-inverse-on-surface: oklch(0.935 0.005 85);
}
[data-theme="sarah"] {
  --tutor-seed: #ff7f50;
  --color-primary: oklch(0.52 0.165 42);
  --color-on-primary: oklch(1.00 0.000 42);
  --color-primary-container: oklch(0.93 0.085 42);
  --color-on-primary-container: oklch(0.14 0.085 42);
  --color-inverse-primary: oklch(0.73 0.130 42);
  --color-secondary: oklch(0.50 0.070 42);
  --color-on-secondary: oklch(1.00 0.000 42);
  --color-secondary-container: oklch(0.93 0.030 42);
  --color-on-secondary-container: oklch(0.16 0.030 42);
  --color-background: oklch(0.994 0.002 42);
  --color-on-background: oklch(0.14 0.008 42);
  --color-surface: oklch(0.987 0.003 42);
  --color-on-surface: oklch(0.14 0.008 42);
  --color-surface-variant: oklch(0.905 0.022 42);
  --color-on-surface-variant: oklch(0.38 0.030 42);
  --color-surface-container-lowest: oklch(1.000 0.000 42);
  --color-surface-container-low: oklch(0.967 0.005 42);
  --color-surface-container: oklch(0.935 0.010 42);
  --color-surface-container-high: oklch(0.902 0.014 42);
  --color-surface-container-highest: oklch(0.875 0.017 42);
  --color-outline: oklch(0.580 0.026 42);
  --color-outline-variant: oklch(0.613 0.020 42);
  --color-inverse-surface: oklch(0.225 0.015 42);
  --color-inverse-on-surface: oklch(0.935 0.005 42);
}
[data-theme="elena"] {
  --tutor-seed: #4a2e80;
  --color-primary: oklch(0.38 0.175 296);
  --color-on-primary: oklch(1.00 0.000 296);
  --color-primary-container: oklch(0.92 0.075 296);
  --color-on-primary-container: oklch(0.14 0.075 296);
  --color-inverse-primary: oklch(0.72 0.140 296);
  --color-secondary: oklch(0.44 0.065 296);
  --color-on-secondary: oklch(1.00 0.000 296);
  --color-secondary-container: oklch(0.92 0.025 296);
  --color-on-secondary-container: oklch(0.16 0.025 296);
  --color-background: oklch(0.994 0.002 296);
  --color-on-background: oklch(0.14 0.008 296);
  --color-surface: oklch(0.986 0.003 296);
  --color-on-surface: oklch(0.14 0.008 296);
  --color-surface-variant: oklch(0.900 0.022 296);
  --color-on-surface-variant: oklch(0.36 0.030 296);
  --color-surface-container-lowest: oklch(1.000 0.000 296);
  --color-surface-container-low: oklch(0.966 0.004 296);
  --color-surface-container: oklch(0.933 0.009 296);
  --color-surface-container-high: oklch(0.900 0.013 296);
  --color-surface-container-highest: oklch(0.872 0.016 296);
  --color-outline: oklch(0.570 0.026 296);
  --color-outline-variant: oklch(0.615 0.020 296);
  --color-inverse-surface: oklch(0.225 0.015 296);
  --color-inverse-on-surface: oklch(0.933 0.005 296);
}
[data-theme="arthur"] {
  --tutor-seed: #4a5d4e;
  --color-primary: oklch(0.42 0.090 155);
  --color-on-primary: oklch(1.00 0.000 155);
  --color-primary-container: oklch(0.92 0.045 155);
  --color-on-primary-container: oklch(0.14 0.045 155);
  --color-inverse-primary: oklch(0.72 0.075 155);
  --color-secondary: oklch(0.44 0.042 155);
  --color-on-secondary: oklch(1.00 0.000 155);
  --color-secondary-container: oklch(0.92 0.020 155);
  --color-on-secondary-container: oklch(0.16 0.020 155);
  --color-background: oklch(0.994 0.002 155);
  --color-on-background: oklch(0.14 0.007 155);
  --color-surface: oklch(0.987 0.003 155);
  --color-on-surface: oklch(0.14 0.007 155);
  --color-surface-variant: oklch(0.905 0.020 155);
  --color-on-surface-variant: oklch(0.38 0.028 155);
  --color-surface-container-lowest: oklch(1.000 0.000 155);
  --color-surface-container-low: oklch(0.967 0.004 155);
  --color-surface-container: oklch(0.935 0.008 155);
  --color-surface-container-high: oklch(0.902 0.012 155);
  --color-surface-container-highest: oklch(0.875 0.015 155);
  --color-outline: oklch(0.580 0.024 155);
  --color-outline-variant: oklch(0.613 0.018 155);
  --color-inverse-surface: oklch(0.225 0.015 155);
  --color-inverse-on-surface: oklch(0.935 0.005 155);
}
[data-theme="leo"] {
  --tutor-seed: #d9381e;
  --color-primary: oklch(0.47 0.195 25);
  --color-on-primary: oklch(1.00 0.000 25);
  --color-primary-container: oklch(0.93 0.085 25);
  --color-on-primary-container: oklch(0.14 0.085 25);
  --color-inverse-primary: oklch(0.74 0.155 25);
  --color-secondary: oklch(0.50 0.075 25);
  --color-on-secondary: oklch(1.00 0.000 25);
  --color-secondary-container: oklch(0.93 0.030 25);
  --color-on-secondary-container: oklch(0.16 0.030 25);
  --color-background: oklch(0.994 0.002 25);
  --color-on-background: oklch(0.14 0.008 25);
  --color-surface: oklch(0.987 0.003 25);
  --color-on-surface: oklch(0.14 0.008 25);
  --color-surface-variant: oklch(0.905 0.022 25);
  --color-on-surface-variant: oklch(0.38 0.030 25);
  --color-surface-container-lowest: oklch(1.000 0.000 25);
  --color-surface-container-low: oklch(0.967 0.005 25);
  --color-surface-container: oklch(0.935 0.010 25);
  --color-surface-container-high: oklch(0.902 0.014 25);
  --color-surface-container-highest: oklch(0.875 0.017 25);
  --color-outline: oklch(0.580 0.026 25);
  --color-outline-variant: oklch(0.613 0.020 25);
  --color-inverse-surface: oklch(0.225 0.015 25);
  --color-inverse-on-surface: oklch(0.935 0.005 25);
}
:root {
  --space-1: 4px; /* 4dp grid step. */
  --space-2: 8px; /* DADS base unit (8px): gaps inside components. */
  --space-3: 12px; /* Top of scrollable content (12px). */
  --space-4: 16px; /* Standard content margin and card padding (16px). */
  --space-5: 20px; /* 4dp grid step. */
  --space-6: 24px; /* DADS 3× base (24px): gap between sections. */
  --space-7: 28px; /* 4dp grid step. */
  --space-8: 32px; /* 4dp grid step. */
  --space-10: 40px; /* 4dp grid step. */
  --space-12: 48px; /* 4dp grid step. */
  --space-14: 56px; /* 4dp grid step. */
  --space-16: 64px; /* DADS 8× base (64px): page section rhythm on desktop. */
  --space-20: 80px; /* 4dp grid step. */
  --space-24: 96px; /* 4dp grid step. */
  --shape-none: 0px; /* Square corners. */
  --shape-extra-small: 4px; /* Text field top corners, snackbars, tooltips. */
  --shape-small: 8px; /* Chips. */
  --shape-medium: 12px; /* Cards, small FAB. */
  --shape-large: 16px; /* FAB. */
  --shape-extra-large: 28px; /* Dialogs, bottom sheets, large cards. */
  --shape-full: 9999px; /* Pills: buttons, search bar, badges, nav indicator. */
  --size-button-height: 48px; /* Button height, default (DADS md 48px; was M3 40px — raised to clear the 44px target). */
  --size-button-height-sm: 36px; /* Button height, small (DADS sm); its hit area extends to `size-target-min`. */
  --size-button-height-lg: 56px; /* Button height, large (DADS lg): primary CTAs on mobile. */
  --size-icon-button: 48px; /* Icon-only button box (≥ `size-target-min`); always with an aria-label. */
  --size-icon: 24px; /* icon. */
  --size-icon-sm: 18px; /* icon sm. */
  --size-icon-lg: 32px; /* icon lg. */
  --size-nav-bar-height: 80px; /* nav bar height. */
  --size-top-app-bar: 64px; /* top app bar. */
  --size-card-min-height: 80px; /* card min height. */
  --size-chip-height: 32px; /* chip height. */
  --size-list-item: 56px; /* list item. */
  --size-list-item-2: 72px; /* list item 2. */
  --size-list-item-3: 88px; /* list item 3. */
  --size-target-min: 44px; /* DADS minimum target for buttons and controls; smaller visuals (sm/xs buttons, icons) extend their hit area to 44px. */
  --size-target-inline: 24px; /* WCAG 2.5.8 floor for inline links and dense targets (with 4px spacing above and below). */
  --size-input-sm: 40px; /* Text field / select height, small (DADS sm). */
  --size-input-md: 48px; /* Text field / select height, default (DADS md). */
  --size-input-lg: 56px; /* Text field / select height, large (DADS lg; M3 filled field). */
  --size-focus-outline: 4px; /* Width of the black DADS focus outline. */
  --size-focus-offset: 2px; /* Offset of the focus outline and width of the yellow inner ring. */
  --elevation-tonal-0-mix: 0%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --elevation-tonal-1-mix: 5%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --elevation-tonal-2-mix: 8%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --elevation-tonal-3-mix: 11%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --elevation-tonal-4-mix: 12%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --elevation-tonal-5-mix: 14%; /* Percent of `color-primary` mixed into `color-surface` at this elevation level. */
  --state-hover-opacity: 0.08; /* M3 state-layer opacity: hover. */
  --state-focus-opacity: 0.12; /* M3 state-layer opacity: focus. */
  --state-press-opacity: 0.12; /* M3 state-layer opacity: press. */
  --state-drag-opacity: 0.16; /* M3 state-layer opacity: drag. */
  --state-disabled-opacity: 0.38; /* M3 state-layer opacity: disabled. */
  --layout-breakpoint: 768px; /* The single DADS breakpoint: below = mobile/tablet layout, at or above = desktop (min-width: 48rem). */
  --layout-columns: 12; /* Desktop grid columns; mobile collapses to 1 (4 for card grids). */
  --layout-gutter: 32px; /* Column gutter = 2 × body size (16px), per DADS. */
  --layout-margin-mobile: 16px; /* Page side margin below the breakpoint (`space-4`). */
  --layout-margin-desktop: 40px; /* Page side margin at or above the breakpoint (`space-10`). */
  --layout-measure: 40em; /* Maximum line length for reading copy (about 40 Japanese characters). */
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-en-display: "Noto Serif", Georgia, "Times New Roman", serif;
  --font-en-body: "Noto Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "Noto Sans Mono", "Courier New", monospace;
  --text-display-l: 400 64px/1.4 var(--font-en-display); /* DADS Dsp-64N-140 size, set in the brand serif: hero English display. */
  --text-display-m: 400 57px/1.4 var(--font-en-display); /* DADS Dsp-57N-140: large English display. */
  --text-display-s: 400 48px/1.4 var(--font-en-display); /* DADS Dsp-48N-140: English display, onboarding. */
  --text-headline-l: 700 36px/1.4 var(--font-jp); /* DADS Std-36B-140: the page h1. */
  --text-headline-m: 700 32px/1.5 var(--font-jp); /* DADS Std-32B-150: h2 sections. */
  --text-headline-s: 700 28px/1.5 var(--font-jp); /* DADS Std-28B-150: h3 sub-sections. */
  --text-title-l: 700 24px/1.5 var(--font-jp); /* DADS Std-24B-150: top app bar, dialog titles (h4). */
  --text-title-m: 700 20px/1.5 var(--font-jp); /* DADS Std-20B-150: card and list titles (h5). */
  --text-title-s: 700 18px/1.6 var(--font-jp); /* DADS Std-18B-160: small titles, accordion summaries (h6). */
  --text-body-l: 400 16px/1.75 var(--font-jp); /* DADS Std-16N-175: long reading copy (explanations, help pages). */
  --text-body-m: 400 16px/1.7 var(--font-jp); /* DADS Std-16N-170: default body and UI copy — the 16px floor for text. */
  --text-body-s: 400 14px/1.5 var(--font-jp); /* Captions and meta only where space is constrained (DADS: 14px is exceptional). Never for instructions or errors. */
  --text-label-l: 700 16px/1 var(--font-jp); /* DADS Oln-16B-100: button labels. */
  --text-label-m: 400 16px/1 var(--font-jp); /* DADS Oln-16N-100: navigation, chip and form-control labels. */
  --text-label-s: 700 14px/1 var(--font-jp); /* DADS Oln-14B-100: compact chips, badges, counters; uppercase English tags set in `en-body`. */
  --text-dense-m: 400 16px/1.3 var(--font-jp); /* DADS Dns-16N-130: tables, resource lists, settings rows. */
  --text-dense-s: 400 14px/1.3 var(--font-jp); /* DADS Dns-14N-130: secondary lines inside dense rows. */
  --text-mono-m: 400 16px/1.5 var(--font-mono); /* DADS Mono-16N-150: IPA transcriptions, codes. */
  --text-headword: 400 40px/1.2 var(--font-en-display); /* Knowledge Card Face 1 headword — always lowercase, brand serif. */
  --text-ipa: 400 16px/1.5 var(--font-mono); /* IPA under the headword, always in / / delimiters (Mono-16N-150). */
  --text-definition-jp: 400 18px/1.6 var(--font-jp); /* Japanese one-line definition (Std-18N-160). */
  --text-definition-en: 400 16px/1.7 var(--font-en-body); /* English dictionary definition (Std-16N-170). */
  --text-example: italic 400 16px/1.7 var(--font-en-body); /* Example sentence / quotation, italic. */
  --text-pos: 700 14px/1 var(--font-en-body); /* Part-of-speech chip label, uppercase. */
}
.display-l {
  font-family: var(--font-en-display);
  font-size: 64px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.display-m {
  font-family: var(--font-en-display);
  font-size: 57px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.display-s {
  font-family: var(--font-en-display);
  font-size: 48px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0;
}
.headline-l {
  font-family: var(--font-jp);
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.headline-m {
  font-family: var(--font-jp);
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.headline-s {
  font-family: var(--font-jp);
  font-size: 28px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.title-l {
  font-family: var(--font-jp);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.title-m {
  font-family: var(--font-jp);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.title-s {
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.body-l {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.body-m {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.body-s {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.label-l {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.label-m {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.label-s {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.dense-m {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
}
.dense-s {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
}
.mono-m {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.headword {
  font-family: var(--font-en-display);
  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ipa {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.definition-jp {
  font-family: var(--font-jp);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.definition-en {
  font-family: var(--font-en-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.example {
  font-family: var(--font-en-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-style: italic;
}
.pos {
  font-family: var(--font-en-body);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
}
