/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"Fraunces","arguments":[{"subsets":["latin"],"axes":["opsz","SOFT","WONK"],"variable":"--font-fraunces","display":"swap"}],"variableName":"fraunces"} ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* vietnamese */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/287637279c44650d-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/b387097da7407747-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/cb9f64d62d112b41-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Fraunces Fallback';src: local("Times New Roman");ascent-override: 84.71%;descent-override: 22.09%;line-gap-override: 0.00%;size-adjust: 115.45%
}.__className_a0f935 {font-family: 'Fraunces', 'Fraunces Fallback';font-style: normal
}.__variable_a0f935 {--font-fraunces: 'Fraunces', 'Fraunces Fallback'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"Public_Sans","arguments":[{"subsets":["latin"],"variable":"--font-public-sans","display":"swap"}],"variableName":"publicSans"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* vietnamese */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/f7650dfaa438c37c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/98baa4a7809fbf72-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/_next/static/media/8bf7b2ceda89477b-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Public Sans Fallback';src: local("Arial");ascent-override: 90.59%;descent-override: 21.46%;line-gap-override: 0.00%;size-adjust: 104.87%
}.__className_81ca43 {font-family: 'Public Sans', 'Public Sans Fallback';font-style: normal
}.__variable_81ca43 {--font-public-sans: 'Public Sans', 'Public Sans Fallback'
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"IBM_Plex_Mono","arguments":[{"subsets":["latin"],"weight":["400","500"],"variable":"--font-plex-mono","display":"swap"}],"variableName":"plexMono"} ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/58f386aa6b1a2a92-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/82179190dde1591d-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* symbols2 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/dc4d8d7cae82600c-s.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/11c4c3cba9a7e226-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/d51fd126416ee4c8-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/cdec7fa3927eb560-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/ef4d5661765d0e49-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/f198ae9a2620d439-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* symbols2 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/a850a10de48942a7-s.woff2) format('woff2');
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}
/* vietnamese */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/bfede01fd09039d8-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/36bf3e92c0d6f837-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/af5dd2b5d3f396f3-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'IBM Plex Mono Fallback';src: local("Arial");ascent-override: 76.16%;descent-override: 20.43%;line-gap-override: 0.00%;size-adjust: 134.59%
}.__className_30a8c4 {font-family: 'IBM Plex Mono', 'IBM Plex Mono Fallback';font-style: normal
}.__variable_30a8c4 {--font-plex-mono: 'IBM Plex Mono', 'IBM Plex Mono Fallback'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./src/components/Toaster.module.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************/
.Toaster_region__mz8iR {
  position: fixed;
  bottom: var(--space-5, 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 32px));
}

.Toaster_toast__elSfo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: var(--radius-md, 8px);
  background: var(--color-ink-900, #1c1917);
  color: var(--color-paper-0, #fff);
  box-shadow: var(--shadow-3, 0 8px 24px rgba(0, 0, 0, 0.25));
  font-size: var(--text-sm, 13.5px);
  line-height: 1.4;
}

.Toaster_toast__elSfo[data-kind="error"] {
  background: var(--color-danger-700, #9f1239);
}

.Toaster_toast__elSfo[data-kind="success"] {
  background: var(--color-success-700, #14532d);
}

.Toaster_message__IMPON {
  flex: 1 1;
}

.Toaster_action__SXAGP {
  flex: none;
  color: inherit;
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: 4px;
}

.Toaster_action__SXAGP:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.Toaster_dismiss__C6UAW {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.Toaster_dismiss__C6UAW:hover {
  opacity: 1;
}

.Toaster_dismiss__C6UAW:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

/* sit above the client's phone tab bar while the shell shows one (the shell
   sets --shell-tabbar-h / --shell-safe-bottom on <html>; both are 0 otherwise) */
.Toaster_region__mz8iR {
  bottom: calc(var(--shell-tabbar-h, 0px) + max(var(--shell-safe-bottom, 0px), env(safe-area-inset-bottom, 0px)) + var(--space-5, 20px));
}

@media screen and (max-width: 719.98px) {
  body:has([data-shell-tabbar]) .Toaster_region__mz8iR {
    bottom: calc(var(--shell-tabbar-h, 0px) + var(--shell-safe-bottom, 0px) + var(--space-3, 12px));
  }
}

@media print {
  .Toaster_region__mz8iR {
    display: none;
  }
}

.Toaster_actionButton__ynbfi {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: var(--weight-semibold);
  cursor: pointer;
}

/*!*******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/design/tokens.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************/
/* =============================================================================
   Cairn — design tokens
   The single source of truth for the visual system. Governed by docs/DESIGN.md.
   Import once at the app root; components read tokens, never hard-code values.

   Registers: :root = clinician (dense cockpit).  [data-portal="client"] = airy.
   Theme: light only in v1 (see DESIGN.md §3.7). No [data-theme="dark"] by design.
   ============================================================================= */

:root {
  /* ---------------------------------------------------------------------------
     TYPEFACES  (self-hosted via next/font — Fraunces, Public Sans, IBM Plex Mono)
     --------------------------------------------------------------------------- */
  /* next/font injects --font-fraunces / --font-public-sans / --font-plex-mono on <html> */
  --font-display: var(--font-fraunces, "Fraunces"), Georgia, "Times New Roman", serif;
  --font-sans: var(--font-public-sans, "Public Sans"), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-plex-mono, "IBM Plex Mono"), ui-monospace, "SF Mono", Menlo, monospace;

  /* Fraunces variable axes — sober/chiselled, not fashionable */
  --font-display-settings: "opsz" 40, "SOFT" 0, "WONK" 0;

  /* Numeric treatment (apply on money + aligned numeric columns) */
  --numeric-tabular: tabular-nums lining-nums;

  /* ---------------------------------------------------------------------------
     TYPE SCALE  (fixed; density selects which step is body/ui — see bottom)
     --------------------------------------------------------------------------- */
  --text-2xs: 0.6875rem;  /* 11px */
  --text-xs:  0.75rem;    /* 12px */
  --text-sm:  0.8125rem;  /* 13px */
  --text-md:  0.875rem;   /* 14px */
  --text-base:0.9375rem;  /* 15px */
  --text-lg:  1.0625rem;  /* 17px */
  --text-xl:  1.3125rem;  /* 21px */
  --text-2xl: 1.625rem;   /* 26px — Fraunces */
  --text-3xl: 2.0625rem;  /* 33px — Fraunces */
  --text-4xl: 2.625rem;   /* 42px — Fraunces */
  --text-5xl: 3.375rem;   /* 54px — Fraunces */

  --lh-tight: 1.1;     /* display */
  --lh-snug: 1.3;      /* headings, controls */
  --lh-normal: 1.5;    /* UI */
  --lh-relaxed: 1.65;  /* reading prose */

  --tracking-tight: -0.02em;   /* display */
  --tracking-snug: -0.01em;    /* large headings */
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
  --tracking-eyebrow: 0.08em;  /* 2xs uppercase eyebrows / table headers / nav groups */

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-display: 380;
  --weight-display-strong: 500;
  --weight-wordmark: 540;

  /* ---------------------------------------------------------------------------
     COLOR PRIMITIVES
     --------------------------------------------------------------------------- */

  /* Stone — warm neutral ramp (hue ~34). The dominant surface language. */
  --stone-50:  #FAF8F4;
  --stone-100: #F3F0EA;
  --stone-200: #E6E1D7;
  --stone-300: #D4CDBF;
  --stone-400: #B4AB99;
  --stone-500: #877D69;
  --stone-600: #6B6151;
  --stone-700: #4F4839;
  --stone-800: #33302A;
  --stone-900: #23201B;
  --stone-950: #17150F;

  /* Spruce — deep evergreen primary (hue ~175). Action, selection, focus, links. */
  --spruce-50:  #EAF3F0;
  --spruce-100: #D5E7E1;
  --spruce-200: #AECFC6;
  --spruce-300: #7FB0A4;
  --spruce-400: #4E8E80;
  --spruce-500: #2E7264;
  --spruce-600: #226055;
  --spruce-700: #1B4E45;
  --spruce-800: #163E37;
  --spruce-900: #12332E;

  /* Clay — warm terracotta accent (hue ~18). The trail blaze. NEVER a status. */
  --clay-50:  #FBEFE7;
  --clay-100: #F6DECB;
  --clay-200: #EFC5A6;
  --clay-500: #C0663A;
  --clay-600: #A9532B;
  --clay-700: #8C4222;

  /* Semantic ramps (tint-50 / border-200 / base / strong) */
  --success-50:  #E8F2E9;
  --success-200: #BEDCC2;
  --success-600: #1E7A3C;
  --success-700: #176632;   /* base: text-on-light AND solid-fill(white text) — 7:1 */

  --warning-50:  #FBF0DD;
  --warning-200: #F0D49B;
  --warning-500: #C77E12;   /* dot / graphical only — fails as text on white */
  --warning-700: #8A5A0B;   /* base: text on light / on warning-50 — 5.9:1 */

  --danger-50:  #FBEBE9;
  --danger-200: #F2C2BC;
  --danger-600: #C0392B;
  --danger-700: #A32B20;    /* base: text-on-light AND solid-fill(white text) — 7.2:1 */

  --info-50:  #E9F0F7;
  --info-200: #B9CFE6;
  --info-600: #2A6DAE;
  --info-700: #1F5C99;      /* base: text-on-light AND solid-fill(white text) — 6.9:1 */

  /* Data-viz — categorical (brand-anchored, ordered for hue + lightness separation) */
  --viz-1: #2E7264;  /* spruce     */
  --viz-2: #C0663A;  /* clay       */
  --viz-3: #3E6DA6;  /* slate-blue */
  --viz-4: #C79A3A;  /* honey      */
  --viz-5: #7E5A86;  /* plum       */
  --viz-6: #6E8E5E;  /* sage       */
  /* Sequential (heat/intensity): spruce-100 -> spruce-800.
     Diverging (over/under target): clay-600 <-> stone-200 <-> spruce-600. */
  --viz-grid: var(--stone-200);
  --viz-axis: var(--stone-600);
  --viz-target: var(--clay-500);   /* benchmark / target line (dashed) */

  /* Chart MARKS only — chroma-raised variants of the brand hues that pass the
     dataviz validator (chroma floor + CVD + 3:1 vs white). Brand tokens above
     stay the calm originals for chrome; marks need to not read gray. */
  --viz-mark-1: #0A8A6A;  /* spruce, chart-grade */
  --viz-mark-2: #C0663A;  /* clay (passes as-is) */
  --viz-mark-3: #3E6DA6;  /* slate-blue (passes as-is) */
  --viz-mark-4: #AA7B18;  /* honey, darkened to clear 3:1 */
  --viz-mark-5: #8B4F96;  /* plum, chroma-raised */
  --viz-mark-6: #57944A;  /* sage, chroma-raised */

  /* ---------------------------------------------------------------------------
     SEMANTIC ROLE TOKENS  (what components actually reference)
     --------------------------------------------------------------------------- */
  --color-canvas: var(--stone-100);          /* app ground */
  --color-surface: #FFFFFF;                  /* raised working plane */
  --color-surface-2: var(--stone-50);        /* secondary raised / hovered band */
  --color-surface-sunken: var(--stone-100);  /* wells, tracks, inset fields */

  --color-text: var(--stone-900);            /* ink — primary text */
  --color-text-secondary: var(--stone-700);
  --color-text-muted: var(--stone-600);      /* meta, timestamps */
  --color-text-placeholder: var(--stone-500);
  --color-text-disabled: var(--stone-400);
  --color-text-on-solid: #FFFFFF;

  --color-border: var(--stone-200);          /* default hairline */
  --color-border-strong: var(--stone-300);   /* dividers, input borders */
  --border-w: 1px;

  --color-primary: var(--spruce-600);
  --color-primary-hover: var(--spruce-700);
  --color-primary-edge: var(--spruce-700);   /* button chiselled bottom edge */
  --color-link: var(--spruce-700);

  --color-focus: var(--spruce-600);          /* focus ring */
  --color-hover-surface: var(--stone-100);   /* neutral row/menu hover wash */
  --color-selected: var(--spruce-50);        /* selected wash */
  --color-marker: var(--spruce-600);         /* the 2–3px "you-are-here" left bar */
  --color-overlay: rgba(35, 32, 27, 0.45);   /* modal backdrop — warm ink */

  --color-success: var(--success-700);
  --color-warning: var(--warning-700);
  --color-danger:  var(--danger-700);
  --color-info:    var(--info-700);
  --color-danger-hover: #8C2318;

  /* ---------------------------------------------------------------------------
     CLINICAL-STATUS TOKENS  (purpose-named; remap in one line if needed)
     Each status is rendered hue + text label + dot/icon — never color alone.
     --------------------------------------------------------------------------- */

  /* Claim lifecycle (837 -> 277 -> 835) */
  --status-claim-draft:     var(--stone-500);
  --status-claim-prepared:  var(--info-700);
  --status-claim-submitted: var(--info-700);
  --status-claim-pending:   var(--warning-700);
  --status-claim-partial:   var(--warning-700);
  --status-claim-paid:      var(--success-700);
  --status-claim-rejected:  var(--danger-700);   /* soft badge */
  --status-claim-denied:    var(--danger-700);   /* solid badge — high emphasis */

  /* Appointment status */
  --status-appt-confirmed:  var(--spruce-600);
  --status-appt-pending:    var(--warning-700);  /* hatched block */
  --status-appt-documented: var(--success-700);
  --status-appt-note-due:   var(--warning-700);
  --status-appt-cancelled:  var(--stone-500);
  --status-appt-noshow:     var(--danger-700);
  --status-appt-live:       var(--clay-500);      /* in session now */

  /* Risk flags (safety-critical) */
  --risk-low:      var(--success-700);
  --risk-moderate: var(--warning-700);
  --risk-high:     var(--danger-700);             /* ALWAYS solid + icon + label */

  /* Note state */
  --status-note-draft:   var(--stone-500);
  --status-note-locked:  var(--spruce-600);       /* signed & locked (+ lock icon) */
  --status-note-addendum:var(--info-700);
  --status-note-cosign:  var(--warning-700);

  /* ---------------------------------------------------------------------------
     SPACE  (4px base, 8px rhythm)
     --------------------------------------------------------------------------- */
  --space-0: 0;
  --space-05: 0.125rem;  /* 2  */
  --space-1: 0.25rem;    /* 4  */
  --space-2: 0.5rem;     /* 8  */
  --space-3: 0.75rem;    /* 12 */
  --space-4: 1rem;       /* 16 */
  --space-5: 1.25rem;    /* 20 */
  --space-6: 1.5rem;     /* 24 */
  --space-8: 2rem;       /* 32 */
  --space-10: 2.5rem;    /* 40 */
  --space-12: 3rem;      /* 48 */
  --space-16: 4rem;      /* 64 */
  --space-20: 5rem;      /* 80 */
  --space-24: 6rem;      /* 96 */

  /* ---------------------------------------------------------------------------
     RADIUS  (restrained/chiselled — see DESIGN.md §4.2)
     --------------------------------------------------------------------------- */
  --radius-0: 0;         /* bands, tables, dividers, schedule grid */
  --radius-xs: 3px;      /* badges / status tags / chips — a stamp, NOT a pill */
  --radius-sm: 5px;      /* buttons, inputs, selects, segmented controls */
  --radius-md: 8px;      /* panels/cards when truly warranted; popovers, menus */
  --radius-lg: 12px;     /* modals, large overlays, images */
  --radius-full: 999px;  /* avatars and status dots ONLY */

  /* ---------------------------------------------------------------------------
     ELEVATION  (tonal-first; shadows only for true overlays; warm-tinted, never blue)
     --------------------------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(35, 32, 27, 0.05), 0 1px 1px rgba(35, 32, 27, 0.04);
  --shadow-sm: 0 2px 6px rgba(35, 32, 27, 0.07), 0 1px 2px rgba(35, 32, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 32, 27, 0.10), 0 2px 6px rgba(35, 32, 27, 0.06);
  --shadow-lg: 0 16px 40px rgba(35, 32, 27, 0.14), 0 4px 10px rgba(35, 32, 27, 0.08);
  --shadow-inset: inset 0 1px 2px rgba(35, 32, 27, 0.06);

  /* ---------------------------------------------------------------------------
     MOTION  (steady, never bouncy — DESIGN.md §8)
     --------------------------------------------------------------------------- */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 260ms;
  --dur-slower: 400ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);       /* entrances — decisive settle */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);        /* exits */
  --ease-in-out: cubic-bezier(0.5, 0, 0.2, 1);  /* moves — no overshoot */

  /* ---------------------------------------------------------------------------
     Z-INDEX
     --------------------------------------------------------------------------- */
  --z-base: 0;
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-overlay: 1100;
  --z-modal: 1200;
  --z-toast: 1300;
  --z-tooltip: 1400;

  /* ---------------------------------------------------------------------------
     SHELL CHROME — the small-screen bars (staff < 960px, client < 720px).
     The *-size tokens are the bars' heights; the *-h tokens are what the live
     chrome occupies right now: 0 unless the shell is showing that bar (the
     shells set them per breakpoint). Size a viewport-tall pane with
     calc(100dvh - var(--shell-topbar-h) - var(--shell-tabbar-h) - var(--shell-safe-bottom)).
     --------------------------------------------------------------------------- */
  --shell-topbar-size: 48px;      /* staff top bar */
  --shell-topbar-size-client: 56px;
  --shell-tabbar-size: 64px;      /* client bottom tab bar */
  --shell-topbar-h: 0px;
  --shell-tabbar-h: 0px;
  --shell-safe-bottom: 0px;

  /* telehealth session room: the note panel beside the video (its floor, and
     its width — cqi resolves against the room's container, not the viewport:
     the staff rail stays beside the room at >= 960px), and the narrowest the
     video stage may get while they sit side by side */
  --session-note-min: 440px;
  --session-note-w: clamp(var(--session-note-min), 42cqi, 640px);
  --session-stage-min: 400px;

  /* ---------------------------------------------------------------------------
     DENSITY — clinician defaults (dense cockpit)
     Overridden by [data-portal="client"] below.
     --------------------------------------------------------------------------- */
  --row-h: 34px;            /* table / list row */
  --control-h: 32px;        /* button / input / select */
  --control-h-sm: 26px;     /* compact / table-inline control */
  --control-h-lg: 40px;     /* primary CTA */
  --field-pad-x: 10px;
  --cell-pad-x: 12px;
  --cell-pad-y: 7px;
  --page-pad: 20px;
  --stack-gap: 12px;        /* default vertical gap between stacked elements */
  --section-gap: 20px;      /* gap between bands / sections */
  --text-ui: var(--text-sm);      /* 13px — controls, labels, table cells */
  --text-body: var(--text-base);  /* 15px — reading prose */
}

/* =============================================================================
   CLIENT PORTAL — airy register. Same colors/type/radius/motion; density only.
   ============================================================================= */
[data-portal="client"] {
  --row-h: 52px;
  --control-h: 44px;
  --control-h-sm: 36px;
  --control-h-lg: 52px;
  --field-pad-x: 14px;
  --cell-pad-x: 16px;
  --cell-pad-y: 12px;
  --page-pad: 32px;
  --stack-gap: 20px;
  --section-gap: 32px;
  --text-ui: 1rem;              /* 16px — controls, labels (airy) */
  --text-body: var(--text-lg);  /* 17px — reading prose */
}

/* =============================================================================
   REDUCED MOTION — collapse durations; keep state changes instant.
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
    --dur-slow: 0.01ms;
    --dur-slower: 0.01ms;
  }
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/design/base.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
/* =============================================================================
   Cairn — base styles. Reset + element defaults + the handful of global
   utilities the constitution names (eyebrow, mono codes, tabular numerals,
   sr-only). Everything else lives in component CSS Modules on the tokens.
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography defaults ──────────────────────────────────────────────────── */

h1,
h2 {
  font-family: var(--font-display);
  font-variation-settings: var(--font-display-settings);
  font-weight: var(--weight-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-snug);
}

h3,
h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--lh-snug);
}

p {
  line-height: var(--lh-relaxed);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: var(--weight-semibold);
}

/* ── Form + control resets ───────────────────────────────────────────────── */

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

/* ── Focus — the wayfinding ring, everywhere, never removed ──────────────── */

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

::selection {
  background: var(--spruce-100);
}

/* ── Global utilities (the only ones) ────────────────────────────────────── */

/* Codes & identifiers: CPT, ICD-10, claim #, NPI, member id, time gutters */
.mono {
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-normal);
}

/* Money & aligned numeric columns (Public Sans, tabular lining figures) */
.tnum {
  font-feature-settings: tabular-nums lining-nums;
  font-variant-numeric: tabular-nums lining-nums;
}

/* 2xs uppercase tracked label: eyebrows, table headers, nav-group labels */
.eyebrow {
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/*!******************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/design/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************/
/* Cairn design system entrypoint.
   tokens.css is the authored constitution (see docs/DESIGN.md); base.css is the
   reset + element defaults. Page/component CSS Modules build on the tokens. */

