/* Single source for the DESIGN.md tokens. */
:root {
  --ib-clinical-teal: #0e9aa0;
  --ib-clinical-teal-rgb: 14, 154, 160;
  --ib-cta-accent: var(--ib-clinical-teal);
  --ib-cta-accent-hover: #19b5ba;
  --ib-cta-fg: #ffffff;
  --ib-teal-rgb: var(--ib-clinical-teal-rgb);
  --ib-teal-light: #7fd6d9;
  --ib-teal-dark: #0b8287;
  --ib-teal-numeral: #7fe3e6;
  --ib-navy-cta: #0b8287;
  --ib-navy-cta-hover: var(--ib-navy-cta); /* spec 4.3: primary hover keeps the rest fill, brightness(1.08) only */
  --ib-primary-label-size: 14px;
  --ib-primary-label-weight: 600;
  --ib-primary-height: 44px;
  --ib-porcelain: #0a0f16;
  --ib-danger: #f07a7a;
  --ib-control-edge: rgba(255, 255, 255, 0.28);
  /* Hover, press and focus (design spec 4.3 / B13). Rules at the end of this file. */
  --ib-hover-fill: rgba(255, 255, 255, 0.06);
  --ib-press-fill: rgba(255, 255, 255, 0.09);
  --ib-focus-ring: #19B5BA;
  --ib-press-scale: .96;
  --ib-danger-hover-tint: rgba(240, 122, 122, 0.16);
  /* rounded-ib-md (8px) is not Tailwind rounded-md: Tailwind lg/md/sm are base, base - 2px, base - 4px. */
  --ib-radius-base: 0.5rem;
  --ib-radius-sm: 5px;
  --ib-radius-md: 8px;
  --ib-space-xs: 6px;
  --ib-space-sm: 8px;
  --ib-space-control: 10px 12px;
  --ib-space-md: 14px;
  --ib-space-lg: 16px;
  --ib-space-gutter: clamp(18px, 3vw, 36px);
  --ib-space-touch: 44px;
  /* Extended palette: added by scripts/colour-codemod.mjs. Each value equals the literal it replaced. */
  --ib-action-navy: #ffffff;
  --ib-action-navy-a045: rgba(var(--ib-action-navy-rgb), 0.045);
  --ib-action-navy-a06: rgba(var(--ib-action-navy-rgb), 0.06);
  --ib-action-navy-a10: rgba(var(--ib-action-navy-rgb), 0.1);
  --ib-action-navy-a12: rgba(var(--ib-action-navy-rgb), 0.12);
  --ib-action-navy-a14: rgba(var(--ib-action-navy-rgb), 0.14);
  --ib-action-navy-a20: rgba(var(--ib-action-navy-rgb), 0.2);
  --ib-action-navy-a24: rgba(var(--ib-action-navy-rgb), 0.24);
  --ib-action-navy-a34: rgba(var(--ib-action-navy-rgb), 0.34);
  --ib-action-navy-a50: rgba(var(--ib-action-navy-rgb), 0.5);
  --ib-action-navy-a68: rgba(var(--ib-action-navy-rgb), 0.68);
  --ib-action-navy-a75: rgba(var(--ib-action-navy-rgb), 0.75);
  --ib-action-navy-deep: #001233;
  --ib-action-navy-deep-a10: rgba(var(--ib-action-navy-deep-rgb), 0.1);
  --ib-action-navy-deep-rgb: 0, 18, 51;
  --ib-action-navy-rgb: 255, 255, 255;
  --ib-black: #000000;
  --ib-black-a03: rgba(var(--ib-black-rgb), 0.03);
  --ib-black-a04: rgba(var(--ib-black-rgb), 0.04);
  --ib-black-a05: rgba(var(--ib-black-rgb), 0.05);
  --ib-black-a06: rgba(var(--ib-black-rgb), 0.06);
  --ib-black-a07: rgba(var(--ib-black-rgb), 0.07);
  --ib-black-a08: rgba(var(--ib-black-rgb), 0.08);
  --ib-black-a10: rgba(var(--ib-black-rgb), 0.1);
  --ib-black-a12: rgba(var(--ib-black-rgb), 0.12);
  --ib-black-a13: rgba(var(--ib-black-rgb), 0.13);
  --ib-black-a14: rgba(var(--ib-black-rgb), 0.14);
  --ib-black-a15: rgba(var(--ib-black-rgb), 0.15);
  --ib-black-a16: rgba(var(--ib-black-rgb), 0.16);
  --ib-black-a18: rgba(var(--ib-black-rgb), 0.18);
  --ib-black-a20: rgba(var(--ib-black-rgb), 0.2);
  --ib-black-a22: rgba(var(--ib-black-rgb), 0.22);
  --ib-black-a25: rgba(var(--ib-black-rgb), 0.25);
  --ib-black-a28: rgba(var(--ib-black-rgb), 0.28);
  --ib-black-a32: rgba(var(--ib-black-rgb), 0.32);
  --ib-black-a35: rgba(var(--ib-black-rgb), 0.35);
  --ib-black-a40: rgba(var(--ib-black-rgb), 0.4);
  --ib-black-a45: rgba(var(--ib-black-rgb), 0.45);
  --ib-black-a50: rgba(var(--ib-black-rgb), 0.5);
  --ib-black-a54: rgba(var(--ib-black-rgb), 0.54);
  --ib-black-a55: rgba(var(--ib-black-rgb), 0.55);
  --ib-black-a72: rgba(var(--ib-black-rgb), 0.72);
  --ib-black-rgb: 0, 0, 0;
  --ib-c-04201d: #04201d;
  --ib-c-04211d: #04211d;
  --ib-c-06231f: #06231f;
  --ib-c-0a3f86: #0a3f86;
  --ib-c-0a8a80: #0a8a80;
  --ib-c-0b8f84: #0b8f84;
  --ib-c-0c8479: #0c8479;
  --ib-c-0e3893: #0e3893;
  --ib-c-101018: #101018;
  --ib-c-14c9b9: #14c9b9;
  --ib-c-16161a: #16161a;
  --ib-c-161821: #161821;
  --ib-c-17234d: #17234d;
  --ib-c-172b49: #172b49;
  --ib-c-18181c: #18181c;
  --ib-c-1a1a20: #1a1a20;
  --ib-c-222222: #222222;
  --ib-c-222228: #222228;
  --ib-c-2a2a30: #2a2a30;
  --ib-c-333333: #333333;
  --ib-c-344054: #344054;
  --ib-c-3a3a40: #3a3a40;
  --ib-c-3d4757: #3d4757;
  --ib-c-444444: #444444;
  --ib-c-444455: #444455;
  --ib-c-555555: #555555;
  --ib-c-5b6678: #5b6678;
  --ib-c-5c5c66: #5c5c66;
  --ib-c-666666: #666666;
  --ib-c-667085: #667085;
  --ib-c-6a6a72: #6a6a72;
  --ib-c-6b6b6b: #6b6b6b;
  --ib-c-707581: #707581;
  --ib-c-727c8d: #727c8d;
  --ib-c-7a8aff: #7a8aff;
  --ib-c-7ff0e4: #7ff0e4;
  --ib-c-888888: #888888;
  --ib-c-8a8a92: #8a8a92;
  --ib-c-92a6c4-a90: rgba(var(--ib-c-92a6c4-rgb), 0.9);
  --ib-c-92a6c4-rgb: 146, 166, 196;
  --ib-c-99aaaa: #99aaaa;
  --ib-c-a43d3d: #a43d3d;
  --ib-c-b3261e: #b3261e;
  --ib-c-b42318: #b42318;
  --ib-c-bcc4cf: #bcc4cf;
  --ib-c-c1121f: #c1121f;
  --ib-c-c22020: #c22020;
  --ib-c-c9cfdb: #c9cfdb;
  --ib-c-ccdddd: #ccdddd;
  --ib-c-cfd3db: #cfd3db;
  --ib-c-d0d5dd: #d0d5dd;
  --ib-c-d9d9e0: #d9d9e0;
  --ib-c-dcfffa-a72: rgba(var(--ib-c-dcfffa-rgb), 0.72);
  --ib-c-dcfffa-rgb: 220, 255, 250;
  --ib-c-dfe2e8: #dfe2e8;
  --ib-c-e0894b: #e0894b;
  --ib-c-e2e2e6: #e2e2e6;
  --ib-c-e5e9ef: #e5e9ef;
  --ib-c-e6e6ee: #e6e6ee;
  --ib-c-e9e9f0: #e9e9f0;
  --ib-c-ededed: #ededed;
  --ib-c-f0a832-a06: rgba(var(--ib-c-f0a832-rgb), 0.06);
  --ib-c-f0a832-rgb: 240, 168, 50;
  --ib-c-f0c8c8: #f0c8c8;
  --ib-c-f0f0f4: #f0f0f4;
  --ib-c-f1f2f4: #f1f2f4;
  --ib-c-f1f3f6: #f1f3f6;
  --ib-c-f2f5fb: #f2f5fb;
  --ib-c-f4f4f6: #f4f4f6;
  --ib-c-f4f4f8: #f4f4f8;
  --ib-c-f4f7f7: #f4f7f7;
  --ib-c-f5f6f8: #f5f6f8;
  --ib-c-f5f6f8-a94: rgba(var(--ib-c-f5f6f8-rgb), 0.94);
  --ib-c-f5f6f8-rgb: 245, 246, 248;
  --ib-c-f8f8fc-a95: rgba(var(--ib-c-f8f8fc-rgb), 0.95);
  --ib-c-f8f8fc-rgb: 248, 248, 252;
  --ib-c-f8f9fb: #f8f9fb;
  --ib-c-fafafb: #fafafb;
  --ib-c-fafafc-a92: rgba(var(--ib-c-fafafc-rgb), 0.92);
  --ib-c-fafafc-rgb: 250, 250, 252;
  --ib-c-ff5757: #ff5757;
  --ib-c-ff7a7a: #ff7a7a;
  --ib-c-fff1f1: #fff1f1;
  --ib-clinical-teal-a04: rgba(var(--ib-clinical-teal-rgb), 0.04);
  --ib-clinical-teal-a06: rgba(var(--ib-clinical-teal-rgb), 0.06);
  --ib-clinical-teal-a07: rgba(var(--ib-clinical-teal-rgb), 0.07);
  --ib-clinical-teal-a08: rgba(var(--ib-clinical-teal-rgb), 0.08);
  --ib-clinical-teal-a10: rgba(var(--ib-clinical-teal-rgb), 0.1);
  --ib-clinical-teal-a12: rgba(var(--ib-clinical-teal-rgb), 0.12);
  --ib-clinical-teal-a14: rgba(var(--ib-clinical-teal-rgb), 0.14);
  --ib-clinical-teal-a16: rgba(var(--ib-clinical-teal-rgb), 0.16);
  --ib-clinical-teal-a18: rgba(var(--ib-clinical-teal-rgb), 0.18);
  --ib-clinical-teal-a20: rgba(var(--ib-clinical-teal-rgb), 0.2);
  --ib-clinical-teal-a22: rgba(var(--ib-clinical-teal-rgb), 0.22);
  --ib-clinical-teal-a25: rgba(var(--ib-clinical-teal-rgb), 0.25);
  --ib-clinical-teal-a28: rgba(var(--ib-clinical-teal-rgb), 0.28);
  --ib-clinical-teal-a30: rgba(var(--ib-clinical-teal-rgb), 0.3);
  --ib-clinical-teal-a32: rgba(var(--ib-clinical-teal-rgb), 0.32);
  --ib-clinical-teal-a35: rgba(var(--ib-clinical-teal-rgb), 0.35);
  --ib-clinical-teal-a40: rgba(var(--ib-clinical-teal-rgb), 0.4);
  --ib-clinical-teal-a50: rgba(var(--ib-clinical-teal-rgb), 0.5);
  --ib-clinical-teal-a55: rgba(var(--ib-clinical-teal-rgb), 0.55);
  --ib-clinical-teal-a60: rgba(var(--ib-clinical-teal-rgb), 0.6);
  --ib-clinical-teal-a70: rgba(var(--ib-clinical-teal-rgb), 0.7);
  --ib-clinical-teal-a90: rgba(var(--ib-clinical-teal-rgb), 0.9);
  --ib-ink-a34: rgba(var(--ib-ink-rgb), 0.34);
  --ib-ink-a62: rgba(var(--ib-ink-rgb), 0.62);
  --ib-ink-deep: #ffffff;
  --ib-ink-rgb: 255, 255, 255;
  --ib-ink-soft: #ffffff;
  --ib-ink-wash: #ffffff;
  --ib-ink-wash-a25: rgba(var(--ib-ink-wash-rgb), 0.25);
  --ib-ink-wash-a35: rgba(var(--ib-ink-wash-rgb), 0.35);
  --ib-ink-wash-a40: rgba(var(--ib-ink-wash-rgb), 0.4);
  --ib-ink-wash-a42: rgba(var(--ib-ink-wash-rgb), 0.42);
  --ib-ink-wash-a45: rgba(var(--ib-ink-wash-rgb), 0.45);
  --ib-ink-wash-a50: rgba(var(--ib-ink-wash-rgb), 0.5);
  --ib-ink-wash-a55: rgba(var(--ib-ink-wash-rgb), 0.55);
  --ib-ink-wash-a60: rgba(var(--ib-ink-wash-rgb), 0.6);
  --ib-ink-wash-a65: rgba(var(--ib-ink-wash-rgb), 0.65);
  --ib-ink-wash-a66: rgba(var(--ib-ink-wash-rgb), 0.66);
  --ib-ink-wash-a68: rgba(var(--ib-ink-wash-rgb), 0.68);
  --ib-ink-wash-a70: rgba(var(--ib-ink-wash-rgb), 0.7);
  --ib-ink-wash-a72: rgba(var(--ib-ink-wash-rgb), 0.72);
  --ib-ink-wash-a74: rgba(var(--ib-ink-wash-rgb), 0.74);
  --ib-ink-wash-a75: rgba(var(--ib-ink-wash-rgb), 0.75);
  --ib-ink-wash-a78: rgba(var(--ib-ink-wash-rgb), 0.78);
  --ib-ink-wash-a82: rgba(var(--ib-ink-wash-rgb), 0.82);
  --ib-ink-wash-a85: rgba(var(--ib-ink-wash-rgb), 0.85);
  --ib-ink-wash-rgb: 255, 255, 255;
  --ib-mist: #f0f0f2;
  --ib-mist-a20: rgba(var(--ib-mist-rgb), 0.2);
  --ib-mist-a25: rgba(var(--ib-mist-rgb), 0.25);
  --ib-mist-a30: rgba(var(--ib-mist-rgb), 0.3);
  --ib-mist-a35: rgba(var(--ib-mist-rgb), 0.35);
  --ib-mist-a40: rgba(var(--ib-mist-rgb), 0.4);
  --ib-mist-a45: rgba(var(--ib-mist-rgb), 0.45);
  --ib-mist-a50: rgba(var(--ib-mist-rgb), 0.5);
  --ib-mist-a55: rgba(var(--ib-mist-rgb), 0.55);
  --ib-mist-a60: rgba(var(--ib-mist-rgb), 0.6);
  --ib-mist-a62: rgba(var(--ib-mist-rgb), 0.62);
  --ib-mist-a65: rgba(var(--ib-mist-rgb), 0.65);
  --ib-mist-a68: rgba(var(--ib-mist-rgb), 0.68);
  --ib-mist-a70: rgba(var(--ib-mist-rgb), 0.7);
  --ib-mist-a72: rgba(var(--ib-mist-rgb), 0.72);
  --ib-mist-a75: rgba(var(--ib-mist-rgb), 0.75);
  --ib-mist-a85: rgba(var(--ib-mist-rgb), 0.85);
  --ib-mist-rgb: 240, 240, 242;
  --ib-neutral-mid-a04: rgba(var(--ib-neutral-mid-rgb), 0.04);
  --ib-neutral-mid-a18: rgba(var(--ib-neutral-mid-rgb), 0.18);
  --ib-neutral-mid-a30: rgba(var(--ib-neutral-mid-rgb), 0.3);
  --ib-neutral-mid-a40: rgba(var(--ib-neutral-mid-rgb), 0.4);
  --ib-neutral-mid-a55: rgba(var(--ib-neutral-mid-rgb), 0.55);
  --ib-neutral-mid-a80: rgba(var(--ib-neutral-mid-rgb), 0.8);
  --ib-neutral-mid-a95: rgba(var(--ib-neutral-mid-rgb), 0.95);
  --ib-neutral-mid-rgb: 127, 127, 127;
  --ib-porcelain-a97: rgba(var(--ib-porcelain-rgb), 0.97);
  --ib-porcelain-rgb: 10, 15, 22;
  --ib-slate-navy: #ffffff;
  --ib-slate-navy-a10: rgba(var(--ib-slate-navy-rgb), 0.1);
  --ib-slate-navy-a22: rgba(var(--ib-slate-navy-rgb), 0.22);
  --ib-slate-navy-a32: rgba(var(--ib-slate-navy-rgb), 0.32);
  --ib-slate-navy-rgb: 255, 255, 255;
  --ib-tw-amber-100-a80: rgba(var(--ib-tw-amber-100-rgb), 0.8);
  --ib-tw-amber-100-rgb: 254, 243, 199;
  --ib-tw-amber-700: #b45309;
  --ib-tw-blue-600: #2563eb;
  --ib-tw-emerald-100-a80: rgba(var(--ib-tw-emerald-100-rgb), 0.8);
  --ib-tw-emerald-100-rgb: 209, 250, 229;
  --ib-tw-emerald-300: #6ee7b7;
  --ib-tw-emerald-400: #34d399;
  --ib-tw-emerald-50: #ecfdf5;
  --ib-tw-emerald-50-a70: rgba(var(--ib-tw-emerald-50-rgb), 0.7);
  --ib-tw-emerald-50-rgb: 236, 253, 245;
  --ib-tw-emerald-500: #10b981;
  --ib-tw-emerald-500-a10: rgba(var(--ib-tw-emerald-500-rgb), 0.1);
  --ib-tw-emerald-500-a15: rgba(var(--ib-tw-emerald-500-rgb), 0.15);
  --ib-tw-emerald-500-a20: rgba(var(--ib-tw-emerald-500-rgb), 0.2);
  --ib-tw-emerald-500-a40: rgba(var(--ib-tw-emerald-500-rgb), 0.4);
  --ib-tw-emerald-500-a50: rgba(var(--ib-tw-emerald-500-rgb), 0.5);
  --ib-tw-emerald-500-rgb: 16, 185, 129;
  --ib-tw-emerald-600: #059669;
  --ib-tw-emerald-800: #065f46;
  --ib-tw-green-700: #15803d;
  --ib-tw-neutral-900: #171717;
  --ib-tw-red-400: #f87171;
  --ib-tw-red-700: #b91c1c;
  --ib-tw-rose-100: #ffe4e6;
  --ib-tw-rose-200-a50: rgba(var(--ib-tw-rose-200-rgb), 0.5);
  --ib-tw-rose-200-rgb: 254, 205, 211;
  --ib-tw-rose-50: #fff1f2;
  --ib-tw-rose-500: #f43f5e;
  --ib-tw-rose-600: #e11d48;
  --ib-tw-rose-700: #be123c;
  --ib-tw-slate-100: #f1f5f9;
  --ib-tw-slate-200: #e2e8f0;
  --ib-tw-slate-200-a60: rgba(var(--ib-tw-slate-200-rgb), 0.6);
  --ib-tw-slate-200-a80: rgba(var(--ib-tw-slate-200-rgb), 0.8);
  --ib-tw-slate-200-rgb: 226, 232, 240;
  --ib-tw-slate-300: #cbd5e1;
  --ib-tw-slate-400: #94a3b8;
  --ib-tw-slate-50: #f8fafc;
  --ib-tw-slate-500: #64748b;
  --ib-tw-slate-600: #475569;
  --ib-tw-slate-700: #334155;
  --ib-tw-slate-800: #1e293b;
  --ib-tw-slate-900: #0f172a;
  --ib-tw-slate-900-a05: rgba(var(--ib-tw-slate-900-rgb), 0.05);
  --ib-tw-slate-900-a06: rgba(var(--ib-tw-slate-900-rgb), 0.06);
  --ib-tw-slate-900-a08: rgba(var(--ib-tw-slate-900-rgb), 0.08);
  --ib-tw-slate-900-a40: rgba(var(--ib-tw-slate-900-rgb), 0.4);
  --ib-tw-slate-900-rgb: 15, 23, 42;
  --ib-tw-slate-950: #020617;
  --ib-tw-teal-50: #f0fdfa;
  --ib-tw-teal-500-a22: rgba(var(--ib-tw-teal-500-rgb), 0.22);
  --ib-tw-teal-500-rgb: 20, 184, 166;
  --ib-tw-teal-600: #0d9488;
  --ib-tw-teal-700: #0f766e;
  --ib-tw-teal-950-a05: rgba(var(--ib-tw-teal-950-rgb), 0.05);
  --ib-tw-teal-950-a06: rgba(var(--ib-tw-teal-950-rgb), 0.06);
  --ib-tw-teal-950-rgb: 4, 47, 46;
  --ib-white: #ffffff;
  --ib-white-a02: rgba(var(--ib-white-rgb), 0.02);
  --ib-white-a04: rgba(var(--ib-white-rgb), 0.04);
  --ib-white-a05: rgba(var(--ib-white-rgb), 0.05);
  --ib-white-a06: rgba(var(--ib-white-rgb), 0.06);
  --ib-white-a07: rgba(var(--ib-white-rgb), 0.07);
  --ib-white-a08: rgba(var(--ib-white-rgb), 0.08);
  --ib-white-a10: rgba(var(--ib-white-rgb), 0.1);
  --ib-white-a12: rgba(var(--ib-white-rgb), 0.12);
  --ib-white-a13: rgba(var(--ib-white-rgb), 0.13);
  --ib-white-a14: rgba(var(--ib-white-rgb), 0.14);
  --ib-white-a16: rgba(var(--ib-white-rgb), 0.16);
  --ib-white-a18: rgba(var(--ib-white-rgb), 0.18);
  --ib-white-a22: rgba(var(--ib-white-rgb), 0.22);
  --ib-white-a45: rgba(var(--ib-white-rgb), 0.45);
  --ib-white-a50: rgba(var(--ib-white-rgb), 0.5);
  --ib-white-a55: rgba(var(--ib-white-rgb), 0.55);
  --ib-white-a60: rgba(var(--ib-white-rgb), 0.6);
  --ib-white-a70: rgba(var(--ib-white-rgb), 0.7);
  --ib-white-a75: rgba(var(--ib-white-rgb), 0.75);
  --ib-white-a80: rgba(var(--ib-white-rgb), 0.8);
  --ib-white-a85: rgba(var(--ib-white-rgb), 0.85);
  --ib-white-a90: rgba(var(--ib-white-rgb), 0.9);
  --ib-white-a95: rgba(var(--ib-white-rgb), 0.95);
  --ib-white-rgb: 255, 255, 255;
  --ib-cta-fg-a90: rgba(var(--ib-cta-fg-rgb), 0.9);
  --ib-cta-fg-rgb: 255, 255, 255;
  --ib-mist-a78: rgba(var(--ib-mist-rgb), 0.78);
  --ib-home-action-blue: #0b8287;
  /* Blue look tokens (moved from the blue block, chunk 1). The blue block below still applies until chunk 7. */
  /* Base look (IB-STYLES "Base"): 6% grain, teal top glow, teal left glow, blue glow low right, then the page gradient. */
  --ib-ui-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --ib-ui-glow-top: radial-gradient(ellipse 1100px 620px at 50% -120px, rgba(14, 154, 160, 0.2) 0%, rgba(14, 154, 160, 0.07) 45%, transparent 70%);
  --ib-ui-glow-left: radial-gradient(circle 420px at 0% 33%, rgba(14, 154, 160, 0.2) 0%, rgba(14, 154, 160, 0.07) 45%, transparent 70%);
  --ib-ui-glow-right: radial-gradient(circle 640px at 100% 70%, rgba(50, 94, 140, 0.22) 0%, rgba(50, 94, 140, 0.08) 45%, transparent 70%);
  --ib-ui-page-gradient: linear-gradient(180deg, #0f1d2d 0%, #122336 38%, #0f1c2b 68%, #0a0f16 100%);
  --ib-ui-page: var(--ib-ui-glow-top), var(--ib-ui-glow-left), var(--ib-ui-glow-right), var(--ib-ui-page-gradient);
  --ib-ui-page-fallback: #0a0f16;
  --ib-ui-on-blue: #ffffff;
  --ib-ui-on-blue-2: rgba(235, 240, 247, 0.8);
  --ib-ui-on-blue-off: rgba(255, 255, 255, 0.38);
  --ib-ui-glass: rgba(255, 255, 255, 0.045);
  --ib-ui-glass-strong: rgba(255, 255, 255, 0.1);
  --ib-ui-glass-lit: rgba(255, 255, 255, 0.16);
  --ib-ui-glass-border: rgba(255, 255, 255, 0.1);
  --ib-ui-glass-border-strong: rgba(255, 255, 255, 0.18);
  --ib-ui-divider-on-blue: rgba(255, 255, 255, 0.08);
  --ib-ui-outline-on-blue: rgba(255, 255, 255, 0.28);
  --ib-ui-solid-card: #131923;
  --ib-ui-card-white: #ffffff;
  --ib-ui-ink: #ffffff;
  --ib-ui-ink-2: rgba(235, 240, 247, 0.8);
  --ib-ui-link: #8db8ee;
  --ib-ui-link-hover: #ffffff;
  --ib-ui-divider-on-white: rgba(255, 255, 255, 0.08);
  --ib-ui-outline-on-white: rgba(255, 255, 255, 0.28);
  --ib-ui-teal: #0e9aa0;
  --ib-ui-focus-on-blue: #19b5ba;
  --ib-ui-focus-on-white: #19b5ba;
  --ib-ui-radius-btn: 16px;
  --ib-ui-radius-card: 22px;
  --ib-ui-radius-card-lg: 26px;
  --ib-ui-radius-chip: 14px;
  --ib-ui-blur: blur(24px) saturate(170%);
  --ib-ui-shadow-glass: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.35);
  /* Calculator blue (rules 15 Nov) */
  --ib-ui-tint: rgba(255, 255, 255, 0.06);
  --ib-ui-tint-hover: rgba(255, 255, 255, 0.1);
  --ib-ui-tint-press: rgba(255, 255, 255, 0.14);
  --ib-ui-tint-disabled: rgba(255, 255, 255, 0.03);
  --ib-ui-line: rgba(255, 255, 255, 0.08);
  --ib-ui-field-line: rgba(255, 255, 255, 0.18);
  --ib-ui-ink-disabled: rgba(255, 255, 255, 0.38);
  --ib-ui-result-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(19, 25, 35, 0.55);
  --ib-ui-bar-fill: rgba(19, 25, 35, 0.28);
  --ib-ui-bar-fallback: #131923;
  --ib-ui-bar-line: rgba(255, 255, 255, 0.18);
  --ib-ui-teal-liquid: #0e9aa0;
  --ib-ui-shadow-seg: 0 1px 3px rgba(0, 0, 0, 0.4);
  /* Operator picks (UPDATE 2, 15 Nov): navy main button in white cards, state pill, bar fades */
  --ib-ui-navy: #0b8287;
  --ib-ui-state-pill: rgba(255, 255, 255, 0.06);
  --ib-ui-top-fade: linear-gradient(180deg, #0f1d2d 0%, #0f1d2d calc(100% - 10px), rgba(15, 29, 45, 0) 100%);
  --ib-ui-top-fade-a: linear-gradient(180deg, #0f1d2d 0%, #0f1d2d 100%);
  --ib-ui-top-fade-b: linear-gradient(180deg, #0f1d2d 0%, #0f1d2d calc(100% - 8px), rgba(15, 29, 45, 0) 100%);
  --ib-ui-bottom-fade: linear-gradient(180deg, rgba(10, 15, 22, 0) 0%, #0a0f16 34%, #0a0f16 100%);
  --ib-ui-bottom-solid: #0a0f16;
  /* Guide pages (signed off 15 Nov): light glass reading card, blue panel, pop-up */
  --ib-ui-paper: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(19, 25, 35, 0.55);
  --ib-ui-paper-fallback: #131923;
  --ib-ui-paper-border: rgba(255, 255, 255, 0.08);
  /* Calc glass cards (Design board B, 16 Nov). Own tokens: the shared 8/26 glass above is unchanged. */
  --ib-c-fill: rgba(255, 255, 255, 0.045);
  --ib-c-border: rgba(255, 255, 255, 0.07);
  --ib-c-shadow: none;
  --ib-c-blur: none;
  --ib-c-chip: rgba(255, 255, 255, 0.06);
  --ib-c-chip-border: rgba(255, 255, 255, 0.1);
  --ib-c-text-shadow: none;
  --ib-c-band: rgba(255, 255, 255, 0.06);
  --ib-c-band-answer: rgba(255, 255, 255, 0.1);
  --ib-c-band-menu: rgba(255, 255, 255, 0.06);
  --ib-c-glint: rgba(255, 255, 255, 0.18);
  --ib-c-answer-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(19, 25, 35, 0.55);
  --ib-c-answer-border: rgba(255, 255, 255, 0.14);
  --ib-c-answer-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  --ib-c-answer-blur: blur(24px) saturate(170%);
  --ib-c-divider-ink: rgba(255, 255, 255, 0.1);
  --ib-c-track-ink: rgba(255, 255, 255, 0.08);
  --ib-ui-paper-blur: blur(24px) saturate(170%);
  --ib-ui-paper-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --ib-ui-paper-link: #7fe3e6;
  --ib-ui-inner-card: rgba(255, 255, 255, 0.045);
  --ib-ui-inner-card-border: rgba(255, 255, 255, 0.07);
  /* App pages (16 Nov): the same colours as HSL triplets, for the hsl(var(--x)) utilities of the Next routes */
  --ib-ui-hsl-on-blue: 0 0% 100%;
  --ib-ui-hsl-on-blue-2: 214 12% 77%;
  --ib-ui-hsl-line-on-blue: 217 16% 17%;
  --ib-ui-hsl-ink: 0 0% 100%;
  --ib-ui-hsl-ink-2: 214 12% 77%;
  --ib-ui-hsl-line: 217 16% 17%;
  --ib-ui-hsl-field-line: 216 11% 32%;
  --ib-ui-hsl-link: 213 74% 74%;
  --ib-ui-inner-card-shadow: none;
  --ib-ui-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), #131923;
  --ib-ui-panel-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --ib-ui-preview: rgba(255, 255, 255, 0.06);
  --ib-ui-preview-shadow: none;
  --ib-ui-sheet-shadow: 0 -14px 36px rgba(0, 0, 0, 0.45);
  --ib-ui-popup-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  --ib-ui-dot-off: rgba(255, 255, 255, 0.28);
  --ib-ui-peek: rgba(255, 255, 255, 0.28);
  --ib-ui-guide-top-fade: linear-gradient(180deg, #0f1d2d 0%, #0f1d2d 80%, rgba(15, 29, 45, 0) 100%);
  --ib-ui-guide-bottom-fade: linear-gradient(180deg, rgba(10, 15, 22, 0) 0, #0a0f16 30px);
  /* Ink, hairline, chip and home page (home.js) values. Each name is declared once (centralise chunk 3). */
  --ib-home-page-bg: transparent;
  --ib-home-page-ink: #ffffff;
  --ib-home-band-bg: transparent;
  --ib-home-band-line: rgba(255, 255, 255, 0.08);
  --ib-home-inset-bg: transparent;
  --ib-home-text: #ffffff;
  --ib-home-text-mute: rgba(235, 240, 247, 0.8);
  --ib-home-num: #ffffff;
  --ib-home-cta-bg: #0b8287;
  --ib-home-cta-ink: #ffffff;
  --ib-home-cta-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  --ib-ink: #ffffff;
  --ib-ink-muted: rgba(235, 240, 247, 0.8);
  --ib-hairline: rgba(255, 255, 255, 0.08);
  --ib-chip-grey: rgba(255, 255, 255, 0.06);
  --ib-card-white: #ffffff;
  --bg: #0a0f16;
  --white: #ffffff;
  --muted: rgba(235, 240, 247, 0.8);
  --soft: rgba(235, 240, 247, 0.8);
  --surface: #131923;
  --surface2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --teal-link: #7fe3e6;
  /* Blue look one-off colours. */
  --ib-lk-04142d-a28: rgba(0, 0, 0, 0.28);
  --ib-lk-ffffff: #ffffff;
  --ib-lk-214872: #0f1d2d;
  --ib-lk-27507b: #122336;
  --ib-lk-27507b-a57: rgba(18, 35, 54, 0.57);
  --ib-lk-c8cdd5: rgba(255, 255, 255, 0.55);
  --ib-lk-030c1a-a62: rgba(3, 7, 12, 0.62);
  --ib-lk-0e9aa0-a22: rgba(14, 154, 160, 0.22);
  --ib-lk-04142d-a35: rgba(0, 0, 0, 0.35);
  --ib-lk-04142d-a20: rgba(0, 0, 0, 0.2);
  --ib-lk-061a33-a18: rgba(255, 255, 255, 0.1);
  --ib-lk-1b3f66: #0f1c2b;
  --ib-lk-061a33-a22: rgba(255, 255, 255, 0.12);
  --ib-lk-ffffff-a74: rgba(255,255,255,.74);
  --ib-lk-ffffff-a62: rgba(255,255,255,.62);
  /* Blue look one-off colours. */
  --ib-lk-0b2a4a: #131923;
  --ib-lk-a9c3dd: rgba(255, 255, 255, 0.45);
  --ib-lk-cfd9e5: rgba(255, 255, 255, 0.1);
  --ib-lk-2f5680: rgba(255, 255, 255, 0.1);
  /* Shell on blue (chunk 3). */
  --ib-ui-btn-hover: var(--ib-ui-pick); /* spec 4.3: primary hover keeps the rest fill, brightness(1.08) only */
  --ib-ui-card-shadow: none;
  --ib-ui-fab-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  --ib-ui-guest-plate: #131923;
  --ib-ui-rail-search: rgba(19, 25, 35, 0.28);
  --ib-ui-bn-solid: rgba(19, 25, 35, 0.94);
  --ib-ui-fab-edge: rgba(255, 255, 255, 0.18);
  /* Design scale (centralise chunk 2). Values are the literals in use today, so pointing a rule at a
     token never changes what renders. Tailwind reads these through lib/design-tokens.mjs: every
     --ib-font-size-X is text-ib-X, --ib-z-X is z-ib-X, --ib-shadow-X is shadow-ib-X, --ib-motion-X is
     duration-ib-X, --ib-ease-X is ease-ib-X, --ib-radius-X is rounded-ib-X. Guard: npm run check:design-literals. */
  /* Font family. One face for the whole site; the -nosegoe stack is the older one some controls use
     (kept apart so the fallback order, and so the render, stays the same). Next app text uses
     next/font's --font-inter on body; these are for hand CSS and legacy pages. */
  --ib-font-face: 'Inter';
  --ib-font-family: var(--ib-font-face), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ib-font-family-nosegoe: var(--ib-font-face), -apple-system, BlinkMacSystemFont, sans-serif;
  --ib-font-size-none: 0;
  --ib-font-size-3xs: 9px;
  --ib-font-size-2xs: 10px;
  --ib-font-size-xs: 11px;
  --ib-font-size-sm: 12px;
  --ib-font-size-md: 13px;
  --ib-font-size-base: 14px;
  --ib-font-size-lg: 15px;
  --ib-font-size-xl: 16px;
  --ib-font-size-2xl: 18px;
  --ib-font-size-3xl: 20px;
  --ib-font-size-4xl: 24px;
  --ib-font-size-5xl: 30px;
  --ib-font-size-title: 28px;
  --ib-font-size-h1-md: 32px; /* page H1, tablet (spec 3.12) */
  --ib-font-size-h1-lg: 34px; /* page H1, desktop */
  --ib-font-size-h1-xl: 40px; /* page H1, 1920 */
  --ib-radius-xs: 4px;
  --ib-radius-input: 6px;
  --ib-radius-none: 0;
  --ib-radius-lg: 10px;
  --ib-radius-xl: 12px;
  --ib-radius-2xl: 16px;
  --ib-radius-3xl: 20px;
  --ib-radius-4xl: 24px; /* desktop reading card and pop-up card (spec 3.12) */
  --ib-radius-sheet: 28px; /* phone slide-up sheet top corners (spec 3.12) */
  --ib-radius-sheet-top: 28px 28px 0 0;
  --ib-radius-pill: 999px;
  --ib-radius-round: 50%;
  --ib-z-below: -1;
  --ib-z-base: 0;
  --ib-z-raised: 1;
  --ib-z-raised-2: 2;
  --ib-z-sticky: 95;
  --ib-z-header: 250;
  --ib-z-drawer: 401;
  --ib-z-overlay: 999;
  --ib-z-modal: 1000;
  --ib-z-toast: 9999;
  --ib-z-popover: 10000;
  --ib-z-tour: 10001;
  --ib-z-sheet: 30000;
  --ib-z-sheet-top: 30001;
  --ib-shadow-xs: 0 1px 2px 0 var(--ib-black-a05);
  --ib-shadow-control: 0 2px 5px var(--ib-black-a22);
  --ib-shadow-control-hover: 0 2px 7px var(--ib-black-a16);
  --ib-shadow-well: inset 0 1px 3px var(--ib-black-a14);
  --ib-shadow-focus: 0 0 0 2px #19b5ba;
  --ib-shadow-card: var(--ib-ui-card-shadow);
  --ib-shadow-panel: var(--ib-ui-panel-shadow);
  --ib-shadow-popup: var(--ib-ui-popup-shadow);
  --ib-shadow-sheet: var(--ib-ui-sheet-shadow);
  --ib-motion-press: 0.1s; /* press = scale .96 over 100 ms (spec 1) */
  --ib-motion-instant: 0.12s;
  --ib-motion-fast: 0.15s;
  --ib-motion-quick: 0.18s;
  --ib-motion-base: 0.2s;
  --ib-motion-medium: 0.25s;
  --ib-motion-slide: 0.28s;
  --ib-motion-slow: 0.3s;
  --ib-motion-slower: 0.5s;
  --ib-motion-shimmer: 1.4s; /* skeleton shimmer sweep (ib-skeleton.css, animate-ib-skel) */
  --ib-ease-out: ease-out;
  --ib-ease-spring: cubic-bezier(.34, 1.5, .6, 1);
  /* Breakpoints: @media cannot read var(), so these mirror lib/breakpoints.mjs (the source Tailwind
     screens and lib/breakpoint.ts use). check:design-literals fails when the two differ. */
  --ib-bp-sm: 640px;
  --ib-bp-md: 760px;
  --ib-bp-lg: 1024px;
  --ib-bp-xl: 1280px;
  --ib-bp-2xl: 1536px;
  /* Dark surfaces (P1, 20 Nov 2026): card, field and picked state for the old white-card rules. */
  --ib-ui-card-surface: rgba(255, 255, 255, 0.045);
  --ib-ui-card-surface-line: rgba(255, 255, 255, 0.07);
  --ib-ui-field: rgba(0, 0, 0, 0.22);
  --ib-ui-pick: #0b8287;
  --ib-ui-pick-fg: #ffffff;
  --ib-ui-pick-tint: rgba(14, 154, 160, 0.2);
  --ib-ui-pick-tint-line: rgba(127, 227, 230, 0.55);
  --ib-ui-shadow-pick-tint: inset 0 0 0 1px var(--ib-ui-pick-tint-line);
  --ib-ui-ink-on-light: #0a0f16;
  --ib-ui-hover: rgba(255, 255, 255, 0.06);
  --ib-ui-teal-text: #7fe3e6;
  --ib-ui-blue-text: #8db8ee;
  --ib-ui-text-3: rgba(255, 255, 255, 0.55);
  /* Calculators (P4, IB-DESIGN-SPEC 4.3): result card big number 56/62. */
  --ib-font-size-result: 56px;
  /* P4 r9: Amber for Moderate / Watch levels (same hue as the Missed-day border); number box line (Desk-02/03). */
  --ib-ui-amber: #ffc24b;
  --ib-ui-num-line: rgba(255, 255, 255, 0.12);
  /* Selected segment / chip (blue soft Selected, operator 2026-11-21); calculator presets stay teal. */
  --ib-ui-selected: rgba(76, 141, 219, 0.16);
  --ib-ui-selected-line: rgba(141, 184, 238, 0.55);
  --ib-ui-shadow-selected: inset 0 0 0 1px var(--ib-ui-selected-line);
  /* 14px tick before a selected chip's label; the empty alt keeps it out of the accessible name. */
  --ib-tick-label: '\2713' / '';
  /* Shell + nav (P2, IB-DESIGN-SPEC 3.7, 3.10, 4.2, 4.5): rail, pop-outs, panels, phone header and bottom nav. */
  --ib-shell-rail-w: 248px;
  --ib-shell-header-h: 44px;
  --ib-shell-active: rgba(14, 154, 160, 0.16);
  --ib-shell-row-hover: rgba(255, 255, 255, 0.07);
  --ib-shell-pop-line: rgba(255, 255, 255, 0.14);
  --ib-shell-pop-dim: rgba(3, 7, 12, 0.48);
  --ib-shell-panel-dim: rgba(3, 7, 12, 0.62);
  /* Phone slide-up (board IB-Anim-13; ib-bottomnav.css .ib-su-*): glass sheet, 44 x 5 handle, round x, grouped card. */
  --ib-radius-su-sheet: 28px 28px 0 0;
  --ib-radius-su-handle: 3px;
  --ib-radius-su-row: 0;
  --ib-su-handle: rgba(var(--ib-white-rgb), 0.36);
  --ib-su-group: rgba(var(--ib-white-rgb), 0.045);
  --ib-shadow-su-sheet: 0 -10px 30px rgba(0, 0, 0, 0.35);
  --ib-shell-dot-trt: var(--ib-ui-blue-text);
  --ib-shell-dot-glp1: #d8ccff;
  --ib-shell-dot-peptide: var(--ib-ui-teal-text);
  --ib-shell-dot-steroid: #f4a6c8;
  --ib-shell-dot-lab: #ffc24b;
  --ib-shell-dot-start: var(--ib-ui-text-3);
  --ib-font-size-header: 17px;
  --ib-shell-z-rail: 400;
  --ib-shell-z-dim: 402;
  --ib-shell-z-pop: 403;
  --ib-shell-z-sheet: 2000;
  --ib-shell-radius-pop: 16px;
  /* Phone web nav and sheets (IB-STYLES Surfaces): nav glass, strong glass, the dim behind sheets. */
  --ib-shell-nav-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(19, 25, 35, 0.28);
  --ib-shell-nav-blur: blur(14px) saturate(170%);
  --ib-shell-nav-shadow: 0 8px 24px var(--ib-black-a45);
  /* Desktop rail glass (Desk-04, P3 F4). */
  --ib-shell-tab-radius: 26px;
  --ib-shell-rail-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(10, 15, 22, 0.45);
  --ib-shell-glass-strong: var(--ib-ui-paper);
  --ib-shell-z-nav: 95;
  --ib-shell-radius-sheet: 22px;
  --ib-shell-sheet-up: 0.32s;
  --ib-shell-sheet-down: 0.24s;
  /* R1 web + (spec 3.4, Anim-03; app _layout.tsx + AddMenu.tsx): the white + with a teal icon, 10 from the pill; the + menu
     glass pills (200 x 52, .55 fill, blur 24, 0 8px 22px .40), their 36 teal .20 icon backing, the .55 dim with an 8 blur. */
  --ib-shell-plus-gap: 10px;
  --ib-shell-plus-ink: #0e9aa0;
  --ib-shell-plus-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  --ib-shell-add-dim: rgba(3, 7, 12, 0.55);
  --ib-shell-add-dim-blur: blur(8px);
  --ib-shell-add-pill: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(19, 25, 35, 0.55);
  --ib-shell-add-pill-blur: blur(24px) saturate(170%);
  --ib-shell-add-pill-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  --ib-shell-add-ic-bg: rgba(14, 154, 160, 0.2);
  --ib-shell-z-add: 2001;
  --ib-motion-add-in: 0.24s;
  --ib-motion-add-out: 0.14s;
  --ib-motion-add-in-gap: 0.055s;
  --ib-motion-add-out-gap: 0.045s;
  /* Today dashboard (P3, IB-DESIGN-SPEC 3.2, 4.4, 4.6 Desk-04/07; IB-STYLES Day states; IB-INTERACTIONS 1-2). */
  --ib-dash-col-w: 440px;
  --ib-dash-panel-w: 480px;
  --ib-dash-dialog-w: 420px;
  --ib-dash-dropdown-w: 248px;
  --ib-dash-content-max: 1112px;
  --ib-dash-radius-btn: 14px;
  --ib-dash-radius-dialog: 24px;
  --ib-dash-radius-sheet: 28px;
  --ib-dash-logged: rgba(14, 154, 160, 0.22);
  --ib-dash-logged-ink: #a6e6e8;
  --ib-dash-missed-ring: rgba(255, 194, 75, 0.55);
  --ib-dash-missed-ink: #ffc24b;
  --ib-dash-scheduled-ring: rgba(255, 255, 255, 0.28);
  --ib-dash-muted: rgba(255, 255, 255, 0.5);
  --ib-dash-line: rgba(255, 255, 255, 0.08);
  --ib-dash-line-strong: rgba(255, 255, 255, 0.14);
  --ib-dash-round-btn: rgba(255, 255, 255, 0.06);
  --ib-dash-tonal: rgba(76, 141, 219, 0.16);
  --ib-dash-selected-line: rgba(141, 184, 238, 0.55);
  --ib-dash-selected-ring: inset 0 0 0 1px var(--ib-dash-selected-line);
  --ib-dash-spin: 0.8s;
  --ib-dash-today-ink: #0f1d2d;
  --ib-dash-today-ring: #19b5ba;
  /* Web roll-out 25 Nov: desktop Log once logged (grey, no shadow) and the schedule tiles (Your schedules card). */
  --ib-dash-log-done: rgba(255, 255, 255, 0.1);
  --ib-dash-log-done-ink: rgba(235, 240, 247, 0.55);
  --ib-dash-tile-fill: rgba(255, 255, 255, 0.04);
  --ib-dash-tile-line: rgba(255, 255, 255, 0.06);
  --ib-share-mob-bg: rgba(255, 255, 255, 0.05);
  --ib-share-mob-line: rgba(255, 255, 255, 0.1);
  --ib-dash-tint-heart: rgba(240, 122, 122, 0.18);
  --ib-dash-tint-scale: rgba(76, 141, 219, 0.22);
  --ib-dash-tint-camera: rgba(124, 104, 220, 0.24);
  /* Round 5 (21 Nov): phone logged day solid teal ink; desktop done rows; Your dosages panel chips and Delete (Anim-10);
     signed-out preview fade mask (Desk-07). */
  --ib-dash-logged-solid-ink: #061a33;
  --ib-dash-panel-title: 22px;
  --ib-dash-done-surface: rgba(255, 255, 255, 0.025);
  --ib-dash-done-line: rgba(255, 255, 255, 0.06);
  --ib-dash-active-chip: rgba(52, 199, 140, 0.16);
  --ib-dash-active-chip-ink: #7fe0b0;
  --ib-dash-danger-tint: rgba(240, 122, 122, 0.12);
  --ib-dash-danger-line: rgba(240, 122, 122, 0.4);
  /* R1 round 3: Your dosages drawer glass (spec 3.6 / Anim-10), phone side drawer 420 max, 56 left clear, 300 in / 240 out. */
  --ib-dash-drawer-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 45%), rgba(19, 25, 35, 0.8);
  --ib-dash-drawer-blur: blur(22px) saturate(140%);
  --ib-dash-drawer-w: 420px;
  --ib-dash-drawer-gap: 56px;
  --ib-dash-drawer-head: 78px; /* under the 1px top line: title and x centre at y 40 (3.6) */
  --ib-dash-radius-drawer: 24px;
  --ib-dash-drawer-in: 0.3s;
  --ib-dash-drawer-out: 0.24s;
  /* The one right side panel (public/ib-side-panel.css, spec 22 Nov): Your dosages 480 over the page, plotter 400 docked. */
  --ib-side-panel-w: var(--ib-dash-panel-w);
  --ib-side-panel-docked-w: 400px;
  --ib-side-panel-head: 64px;
  --ib-side-panel-tile: 36px;
  --ib-side-panel-edge: rgba(255, 255, 255, 0.08);
  --ib-dash-preview-mask: linear-gradient(180deg, #000 55%, transparent 100%);
  --ib-dash-preview-chip: rgba(19, 25, 35, 0.9);
  --ib-dash-shadow-card: 0 20px 50px rgba(0, 0, 0, 0.3);
  --ib-dash-tile-blue: rgba(76, 141, 219, 0.3);
  --ib-dash-tile-violet: rgba(124, 104, 220, 0.38);
  /* Round 6 (F23): vial tiles by drug, Desk-04 (BPC teal, TB-500 pink). */
  --ib-dash-tile-teal: rgba(14, 154, 160, 0.35);
  --ib-dash-tile-pink: rgba(220, 104, 150, 0.32);
  /* Body-site picture on due rows (App-Matte5d dash). */
  --ib-dash-site-frame: rgba(255, 255, 255, 0.04);
  --ib-dash-site-line: rgba(255, 255, 255, 0.55);
  --ib-dash-site-fill: rgba(14, 154, 160, 0.55);
  --ib-dash-site-dot: #7fe3e6;
  --ib-dash-site-mark: rgba(255, 255, 255, 0.65);
  /* Body-map site picker (components/body/BodyFigure), same values as the app theme:
     colors.teal, sitePalette.fresh, colors.border, colors.bodyMuscle, colors.onBlue. */
  --ib-body-site-selected: #0e9aa0;
  --ib-body-site-fresh: #9ee6d8;
  --ib-body-site-line: rgba(255, 255, 255, 0.26);
  --ib-body-muscle: #cbd5e1;
  --ib-body-muscle-line: #ffffff;
  /* Floating phone primary (Site rotation Save, design chat 23 Nov): opaque when disabled, nothing behind it.
     Enabled fill is --ib-ui-pick (#0b8287). Same disabled look as Add vial. */
  --ib-primary-disabled-fill: #0b3e46;
  --ib-primary-disabled-ink: rgba(255, 255, 255, 0.55);
  /* Strong glass sheets and panels (IB-STYLES Surfaces, 21 Nov): --ib-ui-paper + this blur; solid only without blur. */
  --ib-dash-glass-blur: blur(24px) saturate(170%);
  --ib-dash-glass-solid: rgba(19, 25, 35, 1);
  --ib-dash-dim-blur: blur(14px);
  /* Phone Home head (App-Matte5d dash-full; design chat 21 Nov: greeting 24): 24/700 on one line, ib mark 30. */
  --ib-dash-greeting-phone: 24px;
  --ib-dash-mark-phone: 30px;
  /* Sheet grab handle (IB-STYLES Layout): 40 x 4. */
  --ib-dash-handle-w: 40px;
  --ib-dash-handle-h: 4px;
  --ib-dash-handle: rgba(255, 255, 255, 0.28);
  /* Segmented control (IB-DESIGN-SPEC 4.3, F25 21 Nov): 50 tall, padding 4, radius 14 (picked 10); picked solid Blue, white 600. */
  --ib-seg-h: 50px;
  --ib-seg-pad: 4px;
  --ib-seg-radius: 14px;
  --ib-seg-track: rgba(255, 255, 255, 0.04);
  --ib-seg-track-line: rgba(255, 255, 255, 0.08);
  --ib-seg-picked: #2f6fc4;
  --ib-seg-picked-ink: #ffffff;
  /* Plotter editor v2 (plotter rollout 25 Nov): Chrome-style tabs, date fields, phone pop-out. */
  --ib-cp-head: #20272f;
  --ib-cp-tab-on: #343c47;
  --ib-cp-tab-ink: rgba(235, 240, 247, 0.6);
  --ib-cp-date: #3e4750;
  --ib-cp-pop: #18212b;
  --ib-cp-pop-tab-on: #222e3a;
  --ib-cp-pop-date: #303a44;
  --ib-cp-pop-dim: rgba(3, 7, 12, 0.58);
  --ib-cp-pop-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  --ib-cp-menu: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), #131923;
  --ib-dash-dim: rgba(3, 7, 12, 0.62);
  --ib-dash-pulse-ring: rgba(14, 154, 160, 0.45);
  --ib-dash-pulse-clear: rgba(14, 154, 160, 0);
  --ib-dash-shadow-btn: 0 6px 18px rgba(0, 0, 0, 0.4);
  --ib-dash-shadow-dropdown: 0 20px 50px rgba(0, 0, 0, 0.55);
  --ib-dash-shadow-dialog: 0 30px 80px rgba(0, 0, 0, 0.55);
  --ib-dash-press: 0.1s;
  --ib-dash-pulse: 0.6s;
  --ib-dash-fill-hold: 0.4s;
  --ib-dash-z-menu: 450;
  --ib-dash-z-scrim: 1990;
  --ib-dash-z-panel: 1991;
  --ib-dash-z-dialog: 1995;
  --ib-dash-pulse-on: 0 0 0 0 var(--ib-dash-pulse-ring);
  --ib-dash-pulse-off: 0 0 0 14px var(--ib-dash-pulse-clear);
  /* Calendar (P5, IB-STYLES "Day states", IB-DESIGN-SPEC 3.3 and Desk-05): muted day states, dose pills, Today pulse. */
  --ib-cal-logged-bg: rgba(14, 154, 160, 0.22);
  --ib-cal-logged-fg: #a6e6e8;
  --ib-cal-missed-line: rgba(255, 194, 75, 0.55);
  --ib-cal-missed-fg: #ffc24b;
  --ib-cal-sched-line: rgba(255, 255, 255, 0.28);
  --ib-cal-skipped-fg: rgba(255, 255, 255, 0.5);
  --ib-cal-today-bg: #ffffff;
  --ib-cal-today-fg: #0a0f16;
  --ib-cal-ring: #ffffff;
  --ib-cal-pick-fill: rgba(255, 255, 255, 0.06);
  --ib-cal-pulse: rgba(14, 154, 160, 0.6);
  --ib-cal-pulse-end: rgba(14, 154, 160, 0);
  --ib-cal-pill-pep-bg: #0f4a50;
  --ib-cal-pill-pep-fg: #9ff0f2;
  --ib-cal-pill-pep-past-bg: #0b2c31;
  --ib-cal-pill-pep-past-fg: rgba(159, 240, 242, 0.55);
  --ib-cal-pill-glp-bg: #3a2f6b;
  --ib-cal-pill-glp-fg: #d8ccff;
  --ib-cal-pill-glp-past-bg: #231c40;
  --ib-cal-pill-glp-past-fg: rgba(216, 204, 255, 0.55);
  --ib-cal-pill-trt-bg: #1d3a5f;
  --ib-cal-pill-trt-fg: #bcd6f6;
  --ib-cal-pill-trt-past-bg: #142338;
  --ib-cal-pill-trt-past-fg: rgba(188, 214, 246, 0.55);
  --ib-cal-cell-h: 112px;
  --ib-cal-day-w: 440px;
  --ib-radius-cal-btn: 14px;
  --ib-radius-cal-sheet: 28px 28px 0 0;
  --ib-radius-cal-flat: 0;
  --ib-shadow-cal-ring: 0 0 0 2px var(--ib-cal-ring);
  --ib-shadow-cal-pulse-from: 0 0 0 0 var(--ib-cal-pulse);
  --ib-shadow-cal-pulse-to: 0 0 0 12px var(--ib-cal-pulse-end);
  --ib-shadow-cal-missed: inset 0 0 0 1.5px var(--ib-cal-missed-line);
  --ib-motion-cal-pulse: 0.6s;
  /* Selected (design review 21 Nov): picked chips and segments. Chips take the blue text, segments white. */
  --ib-sel-fill: rgba(76, 141, 219, 0.16);
  --ib-sel-border: rgba(141, 184, 238, 0.55);
  --ib-sel-text: var(--ib-ui-blue-text);
  --ib-shadow-sel: inset 0 0 0 1px var(--ib-sel-border);
  /* 1px .10 ring drawn inside a clear border, so a 44px hit area keeps a smaller visible button (23 Nov audit fix 8). */
  --ib-shadow-ring-a10: inset 0 0 0 1px var(--ib-white-a10);
  /* Segmented controls (spec 4.2): solid blue picked segment on a faint track. */
  --ib-ui-blue-fill: #2f6fc4;
  --ib-seg-pick: var(--ib-ui-blue-fill);
  --ib-seg-pick-fg: var(--ib-white);
  /* Message us (board IB-Anim-12): hello card, topic rows, bubbles and the pill composer. */
  --ib-cu-mark: linear-gradient(135deg, #17c3b2 0%, #1f5fa8 100%);
  /* Brand mark (text): avatars with a white initial; white is 4.6:1 or better across the fill (IB-STYLES, 23 Nov). */
  --ib-avatar-initial-grad: linear-gradient(135deg, #0b8287 0%, #1f5fa8 100%);
  --ib-cu-hello: rgba(var(--ib-white-rgb), 0.045);
  --ib-cu-hello-line: var(--ib-white-a07);
  --ib-cu-topic: var(--ib-white-a05);
  --ib-cu-topic-line: var(--ib-white-a10);
  --ib-cu-topic-ic-bg: var(--ib-clinical-teal-a18);
  --ib-cu-topic-ic: var(--ib-teal-light);
  --ib-cu-chev: rgba(var(--ib-white-rgb), 0.35);
  --ib-cu-own: var(--ib-ui-pick);
  --ib-cu-reply: var(--ib-white-a07);
  --ib-cu-reply-line: rgba(var(--ib-white-rgb), 0.09);
  --ib-cu-field: var(--ib-white-a06);
  --ib-cu-field-line: var(--ib-white-a10);
  --ib-cu-placeholder: var(--ib-white-a55);
  --ib-cu-tag: var(--ib-white-a80);
  --ib-cu-sheet: var(--ib-ui-result-grad);
  --ib-cu-sheet-line: var(--ib-white-a18);
  --ib-shadow-cu-sheet: 0 -10px 30px rgba(0, 0, 0, 0.35);
  --ib-z-cu-dim: calc(var(--ib-shell-z-sheet) + 1);
  --ib-z-cu-sheet: calc(var(--ib-shell-z-sheet) + 2);
  --ib-radius-cu-sheet: 28px 28px 0 0;
  --ib-cu-x: var(--ib-white-a06);
  --ib-cu-x-line: var(--ib-white-a08);
  --ib-radius-seg: 14px;
  --ib-radius-seg-btn: 10px;
  --ib-radius-cu-panel: 0;
  --ib-radius-cu-tile: 9px;
  --ib-radius-cu-mark: 11px;
  --ib-radius-cu-mark-sm: 8px;
  --ib-radius-cu-row: 14px;
  --ib-radius-cu-field: 22px;
  --ib-radius-cu-own: 18px 18px 6px 18px;
  --ib-radius-cu-reply: 18px 18px 18px 6px;
  /* Calendar day sheet rows (board Matte5d-calendar-day): site tile and figure. */
  --ib-cal-site-tile: var(--ib-white-a04);
  --ib-cal-site-tile-line: var(--ib-white-a08);
  --ib-cal-site-zone: rgba(var(--ib-clinical-teal-rgb), 0.55);
  --ib-cal-site-line: var(--ib-white-a55);
  --ib-cal-site-navel: rgba(var(--ib-white-rgb), 0.65);
  --ib-cal-site-dot: var(--ib-teal-numeral);
  --ib-cal-site-dot-ring: var(--ib-porcelain);
  --ib-cal-site-text: var(--ib-teal-numeral);
  /* Phone calendar (boards Matte5d-calendar, Anim-04): glass header, week lines, pills, picked ring, day sheet motion. */
  --ib-cal-head-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(13, 24, 37, 0.5);
  --ib-cal-head-blur: blur(20px) saturate(160%);
  --ib-shadow-cal-head: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  --ib-cal-week-line: var(--ib-white-a12);
  --ib-cal-handle: rgba(var(--ib-white-rgb), 0.36);
  --ib-shadow-cal-ring-phone: 0 0 0 3px rgba(11, 26, 44, 0.9), 0 0 0 5px var(--ib-cal-ring);
  --ib-shadow-cal-ring-off: 0 0 0 0 rgba(11, 26, 44, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  --ib-font-size-cal-pill: 10.5px;
  --ib-radius-cal-pill: 5px;
  --ib-radius-cal-handle: 3px;
  --ib-z-cal-sheet: calc(var(--ib-shell-z-nav) - 1);
  --ib-ease-cal: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ib-ease-cal-out: cubic-bezier(0.4, 0, 1, 1);
  --ib-motion-cal-sheet-delay: 0.06s;
  --ib-motion-cal-fade: 0.22s;
  --ib-motion-cal-fade-delay: 0.1s;
  /* Note card (spec 4.3): disclaimers. */
  --ib-note-fill: rgba(var(--ib-white-rgb), 0.035);
  /* Signed-out card (board Desk-07). */
  --ib-radius-so-card: 24px;
  --ib-shadow-so-card: 0 20px 50px rgba(0, 0, 0, 0.3);
  --ib-font-size-so-mark: 19px;
  /* Expired chip (vial storage): red tint, red text. */
  --ib-expired-bg: rgba(240, 122, 122, 0.14);
  --ib-expired-fg: var(--ib-danger);
  /* Settings, account and auth (P6; IB-STYLES Selected, spec 4.3 Segmented, boards Anim-08 and Desk-07). */
  --ib-set-blue: #2f6fc4;
  --ib-set-blue-soft: rgba(76, 141, 219, 0.16);
  --ib-set-blue-line: rgba(141, 184, 238, 0.55);
  --ib-set-seg-track: rgba(255, 255, 255, 0.04);
  --ib-set-tile: rgba(14, 154, 160, 0.18);
  --ib-set-row-line: rgba(255, 255, 255, 0.06);
  --ib-set-chevron: rgba(255, 255, 255, 0.35);
  --ib-set-handle: rgba(255, 255, 255, 0.36);
  --ib-set-danger-tint: rgba(240, 122, 122, 0.14);
  --ib-set-danger-line: rgba(240, 122, 122, 0.45);
  --ib-set-field: rgba(255, 255, 255, 0.05);
  --ib-set-field-line: rgba(255, 255, 255, 0.09);
  --ib-set-radius-tile: 9px;      /* Anim-08 row icon tile */
  --ib-set-radius-control: 14px;  /* spec 4.3 segmented track, fields, danger buttons */
  --ib-set-radius-card: 24px;     /* Desk-07 signed-out card */
  --ib-set-radius-handle: 3px;    /* Anim-08 grab handle */
  /* Web paywall (spec 878/879, boards IB-Pay-P2-Hard / IB-Pay-P3-NoTrial, canvas v163). Picked plan = teal radio, teal line, teal tint (board wins over 882). */
  --ib-pay-tile: rgba(76, 141, 219, 0.16);
  --ib-pay-chip-fill: rgba(255, 194, 75, 0.14);
  --ib-pay-row-line: rgba(255, 255, 255, 0.1);
  --ib-pay-ring: rgba(255, 255, 255, 0.45);
  --ib-pay-radius-logo: 8px;
  --ib-pay-pick-line: var(--ib-cta-accent-hover);
  --ib-pay-pick-fill: var(--ib-ui-pick-tint);
  --ib-pay-title-size: 32px;
  --ib-pay-legal-size: 11.5px;
  --ib-pay-per-size: 12.5px;
  --ib-pay-card-line-size: 13.5px;
  /* Marketing and static pages (P7, IB-DESIGN-SPEC 4.3 Segmented control 21 Nov; IB-STYLES Selected). */
  --ib-mk-seg-track: rgba(255, 255, 255, 0.04);
  --ib-mk-seg-line: rgba(255, 255, 255, 0.08);
  --ib-mk-seg-pick: #2f6fc4;
  --ib-mk-seg-radius: 14px;
  --ib-mk-sel-fill: rgba(76, 141, 219, 0.16);
  --ib-mk-sel-line: rgba(141, 184, 238, 0.55);
  --ib-mk-404-size: 60px;
  /* Result flags in the app mockups (design r4, 21 Nov): High = Red, Low = amber, each on a .16 fill. */
  --ib-mk-high-fg: var(--ib-danger);
  --ib-mk-high-fill: rgba(240, 122, 122, 0.16);
  --ib-mk-low-fg: #ffc24b;
  --ib-mk-low-fill: rgba(255, 194, 75, 0.16);
  /* P8 guide and blog pages (spec 3.12). Reading card DEFAULT is dark. White option: only
     --ib-guide-card/-ink/-ink-2/-link change, to --ib-guide-white-card/-ink/-ink-2/-link. */
  --ib-guide-card: var(--ib-ui-solid-card);
  --ib-guide-ink: var(--ib-ui-ink);
  --ib-guide-ink-2: var(--ib-ui-ink-2);
  --ib-guide-ink-3: var(--ib-ui-text-3);
  --ib-guide-link: var(--ib-ui-blue-text);
  --ib-guide-line: var(--ib-ui-line);
  --ib-guide-white-card: #ffffff;
  --ib-guide-white-ink: #061a33;
  --ib-guide-white-ink-2: #44556e;
  --ib-guide-white-link: #004494;
  --ib-guide-logged: var(--ib-lk-0e9aa0-a22);
  --ib-guide-logged-ink: #a6e6e8;
  --ib-guide-dot-off: rgba(255, 255, 255, 0.42);
  /* Desktop calculator result pop-up (boards IB-Calc-D1/D2/D3, 2026-11-23). */
  --ib-calc-show-shadow: 0 8px 24px rgba(14, 154, 160, 0.3);
  --ib-calc-pop-line: rgba(255, 255, 255, 0.12);
  --ib-calc-pop-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --ib-calc-pop-rule: rgba(255, 255, 255, 0.1);
  --ib-calc-pop-scroll: rgba(255, 255, 255, 0.25);
  --ib-calc-seg-track: rgba(255, 255, 255, 0.06);
  --ib-calc-seg-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  --ib-font-size-pop-hero: 72px;
  --ib-font-size-calc-note: 13.5px;
  /* Vial storage + Add vial (design note add-vial, 23 Nov): Teal liquid at .85, glass outline .35 (dropdowns use the opaque --ib-ui-solid-card). */
  --ib-vs-liquid: rgba(25, 181, 186, 0.85);
  --ib-vs-glass-line: rgba(255, 255, 255, 0.35);
}
/* Embeds stay light (spec B-answer 27): partner embeds (?embed=) keep the light look. Legacy shells set
   html.embed-mode (trt: html.ib-embed) before paint; Next routes get html.ib-embed-light from the shell-gate prepaint.
   The white foreground tokens flip to ink here, so text the dark site draws white reads dark on the light cards. */
:root:is(.embed-mode, .ib-embed, .ib-embed-light) {
  --bg: #f7f7f7;
  --white: #061a33;
  --muted: #44556e;
  --soft: #44556e;
  --surface: #ffffff;
  --surface2: #f1f2f4;
  --border: rgba(6, 26, 51, 0.12);
  --border2: rgba(6, 26, 51, 0.2);
  --teal-link: #0055b8;
  --ib-white: #061a33;
  --ib-white-rgb: 6, 26, 51;
  --ib-mist: #061a33;
  --ib-mist-rgb: 6, 26, 51;
  --ib-ink: #1a181b;
  --ib-ink-muted: #44556e;
  --ib-hairline: rgba(6, 26, 51, 0.12);
  --ib-chip-grey: #e1e4e8;
  --ib-ink-rgb: 26, 24, 27;
  --ib-ink-deep: #0b0b0d;
  --ib-ink-soft: #1a1a1e;
  --ib-ink-wash: #14141c;
  --ib-ink-wash-rgb: 20, 20, 28;
  --ib-slate-navy: #111a3a;
  --ib-slate-navy-rgb: 17, 26, 58;
  --ib-action-navy: #001d5c;
  --ib-action-navy-rgb: 0, 29, 92;
  --ib-porcelain: #f7f7f7;
  --ib-porcelain-rgb: 247, 247, 247;
  --ib-danger: #dc2626;
  --ib-control-edge: #808998;
  --ib-clinical-teal: #0e9aa0;
  --ib-clinical-teal-rgb: 14, 154, 160;
  --ib-teal-numeral: #075e56;
  --ib-teal-dark: #0a7378;
  --ib-navy-cta: #0e9aa0;
  --ib-navy-cta-hover: #19b5ba;
  --ib-cta-fg: #061a33;
  --ib-cta-fg-rgb: 6, 26, 51;
  --ib-ui-page: none;
  --ib-ui-grain: none;
  --ib-ui-page-fallback: #f7f7f7;
  --ib-ui-on-blue: #061a33;
  --ib-ui-on-blue-2: #44556e;
  --ib-ui-on-blue-off: rgba(6, 26, 51, 0.38);
  --ib-ui-glass: #ffffff;
  --ib-ui-glass-strong: #f1f2f4;
  --ib-ui-glass-lit: #e1e4e8;
  --ib-ui-glass-border: rgba(6, 26, 51, 0.12);
  --ib-ui-glass-border-strong: rgba(6, 26, 51, 0.2);
  --ib-ui-divider-on-blue: rgba(6, 26, 51, 0.12);
  --ib-ui-outline-on-blue: rgba(6, 26, 51, 0.5);
  --ib-ui-solid-card: #ffffff;
  --ib-ui-ink: #061a33;
  --ib-ui-ink-2: #44556e;
  --ib-ui-link: #0055b8;
  --ib-ui-link-hover: #061a33;
  --ib-ui-divider-on-white: rgba(6, 26, 51, 0.12);
  --ib-ui-outline-on-white: rgba(6, 26, 51, 0.5);
  --ib-ui-focus-on-blue: #0055b8;
  --ib-ui-focus-on-white: #0055b8;
  --ib-ui-tint: #e1e4e8;
  --ib-ui-tint-hover: #d6dae0;
  --ib-ui-tint-press: #ccd1d8;
  --ib-ui-tint-disabled: rgba(6, 26, 51, 0.04);
  --ib-ui-line: rgba(6, 26, 51, 0.12);
  --ib-ui-field-line: rgba(6, 26, 51, 0.5);
  --ib-ui-ink-disabled: rgba(6, 26, 51, 0.38);
  --ib-ui-result-grad: #ffffff;
  --ib-ui-navy: #0e9aa0;
  --ib-ui-btn-hover: #19b5ba;
  --ib-ui-paper: #ffffff;
  --ib-ui-paper-fallback: #ffffff;
  --ib-ui-paper-border: rgba(6, 26, 51, 0.12);
  --ib-ui-inner-card: #f5f6f8;
  --ib-ui-inner-card-border: rgba(6, 26, 51, 0.08);
  --ib-ui-preview: #ffffff;
  --ib-c-fill: #ffffff;
  --ib-c-border: rgba(6, 26, 51, 0.12);
  --ib-c-chip: #f1f2f4;
  --ib-c-chip-border: rgba(6, 26, 51, 0.12);
  --ib-c-answer-fill: #ffffff;
  --ib-c-answer-border: rgba(6, 26, 51, 0.12);
  --ib-c-answer-shadow: 0 8px 24px rgba(4, 20, 45, 0.08);
  --ib-c-divider-ink: rgba(6, 26, 51, 0.16);
  --ib-c-track-ink: rgba(6, 26, 51, 0.12);
  --ib-c-band: #f1f2f4;
  --ib-c-band-answer: #f1f2f4;
  --ib-c-band-menu: #f1f2f4;
  --ib-c-glint: rgba(6, 26, 51, 0.08);
  --ib-ui-card-surface: #ffffff;
  --ib-ui-card-surface-line: rgba(6, 26, 51, 0.12);
  --ib-ui-field: #ffffff;
  --ib-ui-num-line: var(--ib-ui-field-line);
  --ib-ui-pick: #0e9aa0;
  --ib-ui-pick-fg: #061a33;
  --ib-ui-pick-tint: rgba(14, 154, 160, 0.14);
  --ib-ui-pick-tint-line: #0e9aa0;
  --ib-ui-hover: rgba(6, 26, 51, 0.04);
  --ib-ui-teal-text: #075e56;
  --ib-ui-selected: var(--ib-ui-pick-tint);
  --ib-ui-selected-line: var(--ib-ui-pick-tint-line);
  --ib-ui-blue-text: #0055b8;
  --ib-ui-text-3: rgba(6, 26, 51, 0.62);
  --ib-lk-c8cdd5: #c8cdd5;
  --ib-ui-state-pill: #ffffff;
  --ib-ui-hsl-on-blue: 213 79% 11%;
  --ib-ui-hsl-on-blue-2: 216 24% 35%;
  --ib-ui-hsl-line-on-blue: 214 13% 89%;
  --ib-ui-hsl-ink: 213 79% 11%;
  --ib-ui-hsl-ink-2: 216 24% 35%;
  --ib-ui-hsl-line: 214 13% 89%;
  --ib-ui-hsl-field-line: 213 10% 56%;
  --ib-ui-hsl-link: 212 100% 36%;
  color-scheme: light;
}
/* Legacy static pages (calculators, info pages, hubs, home): the --teal/--mono/--sans aliases their page
   CSS reads. Each page used to carry its own :root block in a head <style>; the rest of those blocks was
   already overridden by the :root block above. :where() keeps :root specificity; the html class scopes it
   to those pages (app.js also injects ib-calc.css into app pages, which never had these). Chunk 9c. */
:root:where(.ib-page-vars) {
  --teal: var(--ib-clinical-teal);
  --mono: var(--ib-font-family);
  --sans: var(--ib-font-face), 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
:root:where(.ib-page-vars-accent) { --accent-numeral: var(--ib-teal-numeral); }


:is(.tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base) {
  box-sizing: border-box;
  border-radius: var(--ib-radius-md) !important;
  font-size: var(--ib-primary-label-size) !important;
  font-weight: var(--ib-primary-label-weight) !important;
  height: var(--ib-primary-height) !important;
  min-height: var(--ib-primary-height) !important;
}

.ib-inflow-cta {
  --ib-primary-height: 48px;
}

/* Spec 4.3 / B13: hover keeps the rest fill (brightness only, rules at the end of this file). */
:is(.tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base):not(:active):not(:disabled):not([aria-disabled="true"]):not(.is-saved):not(.is-copied) {
  background-color: var(--ib-navy-cta) !important;
  color: var(--ib-card-white) !important;
}

/* D272 (2026-11-02): form controls inherit the page font instead of the browser default (Arial).
   Audit 2026-11-02 card sizes F3: 1308 controls on 37 pages rendered Arial. Loaded by every static page and app/layout.tsx. */
button, input, select, textarea, [role="button"] { font-family: inherit; }

/* Info-page light-mode fix (about, disclaimer, privacy, privacy/app, support, terms): was an ib-guide-light-fix
   <style> in each page head, just before this sheet (chunk 10c). :where() keeps the old specificity; the html
   class ib-info-lf keeps it on those pages. Guides carry their own copy at the top of ib-guide.css. */
:where(:root.ib-info-lf) .updated{color:var(--ib-ink-wash-a55)!important}
:where(:root.ib-info-lf) .sources li{color:var(--ib-ink-wash-a70)!important}
:where(:root.ib-info-lf) [style*="color:rgba(240,240,242"],:where(:root.ib-info-lf) [style*="color: rgba(240,240,242"],
:where(:root.ib-info-lf) [style*="color:#f0f0f2"],:where(:root.ib-info-lf) [style*="color: #f0f0f2"]{color:var(--ib-ink-wash-a72)!important}

/* 404 page vars: was a :root block in public/legacy/404.html after this sheet (chunk 10d). Last here so it keeps
   winning over the :root rules above; same specificity as :root. */
:root:where(.ib-404-vars) {
  --bg: var(--ib-cta-fg); --surface: var(--ib-c-18181c);
  --border: var(--ib-white-a07); --border2: var(--ib-white-a13);
  --teal: var(--ib-clinical-teal); --white: var(--ib-mist);
  --mono: var(--ib-font-family); --sans: var(--ib-font-family);
}

/* Calculator page base: was `html, body {...}` in the head <style> of the calculator pages, which sat just before
   ib-containers/this sheet (chunk 10e). Kept here, ahead of ib-tw/ib-nav/ib-calc, so the later body background
   rules still win as before; html class ib-calc-head scopes it, same specificity as `html` / `body`. */
html:where(.ib-calc-head), :where(html.ib-calc-head) body { min-height: 100%; background: var(--bg); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

/* Hover, press and focus (design spec 4.3 / B13). Dark is the only theme.
   Hover: no lift, no scale, no shadow; every hover rule sits behind (hover: hover) and (pointer: fine).
   Press: scale(var(--ib-press-scale)) over 100ms on everything tappable (the TAP rule in lib/shell-classes.mjs,
   repeated here for the listed rows and buttons); no scale with reduced motion, fills and brightness still change.
   Focus: 2px var(--ib-focus-ring), offset 2px, :focus-visible only.
   Add .ib-row-i to a non-CTA row (disclosure toggle, list row, accordion, menu row) to opt it in. */
:root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row,
  .ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip) {
  cursor: pointer;
  transition: background-color var(--ib-motion-instant) ease-out, transform var(--ib-motion-press) ease-out;
}
/* Chips (their hover is an image layer) and the side-effects severity switch: only the press scale animates;
   a pick changes the fill at once (the shared TAP fade made the picked fill lag 120ms). */
:root :is(.ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip, .ib-se-seg-btn) {
  transition: transform var(--ib-motion-press) ease-out;
}
@media (hover: hover) and (pointer: fine) {
  /* (a) Rows that are not CTAs. */
  :root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row):hover:not(:disabled):not([aria-disabled="true"]) {
    background-color: var(--ib-hover-fill);
  }
  /* Unpicked chips: +.06 layered on the chip's own rest fill. Picked or open chips keep their own tint. */
  :root :is(.ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip):hover:not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):not([aria-checked="true"]):not([aria-selected="true"]):not(.is-on) {
    background-image: linear-gradient(var(--ib-hover-fill), var(--ib-hover-fill));
  }
  /* (b) Primary solid teal: brightness only (ib-tokens keeps the rest fill on hover; --ib-navy-cta-hover and
     --ib-ui-btn-hover equal the rest fill, so older hover rules that still name them no longer darken). */
  :root :is(.tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base, .ib-ui-btn, .ib-wiz-next,
    a.ib-nav-signin, a.ib-acct-rail-cta, .ib-td-primary, .ib-dosages-add, .ib-lograil-submit, .ib-confirm-main, .ib-bt-btn-primary,
    .ib-side-panel__main:not(.ib-side-panel__main--secondary), .v2-cta, .ibg-btn, .ib-guide-sticky a, .ib-calc-load-error button,
    [data-attr=cta-see-result], [data-attr=cta-save]):hover:not(:active):not(:disabled):not([aria-disabled="true"]) {
    filter: brightness(1.08);
  }
  /* (c) Glass buttons (secondary, tonal, round, close, icon): +.06 layered on their own rest fill, no darken or lift. */
  :root :is(.ib-ph-back, .ib-confirm-cancel, .ib-td-round, .ib-td-tonal, .ib-td-track-btn, .ib-dosages-close, .ib-dosages-edit,
    .ib-dosages-pause, .ib-dosages-retry, .ib-lograil-close, .ib-so-secondary, .ib-bt-btn:not(.ib-bt-btn-primary):not(.ib-bt-btn-danger),
    .cal-btn-secondary, .cal-help, .cal-nav, .ib-set-acct-plan, .ib-set-data-btn, .ib-ms-icon-button, .ib-side-panel__icon,
    .ib-side-panel__act, .ib-side-panel__main--secondary, .ibg-pn a):hover:not(:disabled):not([aria-disabled="true"]),
  :root #ib-suggest-bubble:hover {
    background-image: linear-gradient(var(--ib-hover-fill), var(--ib-hover-fill));
  }
  /* Nav-glass buttons: the rest fill is itself a gradient, so the hover layer goes on top of it. */
  :root :is(html.ib-rail-live .ib-desk-vial, .ib-td-head .ib-td-round.ib-td-phone-only):hover {
    background: linear-gradient(var(--ib-hover-fill), var(--ib-hover-fill)), var(--ib-shell-nav-glass);
  }
  /* Log button (Blue): brightness on hover; the press keeps its own Blue-to-Teal fill. */
  :root .ib-td-log.is-next:not(.is-logged):hover:not(:active) {
    background-image: none;
    filter: brightness(1.08);
  }
  /* In-text links: underline, no fill. */
  :root :is(p, li, td) > a[href]:not([class]):hover {
    text-decoration-line: underline;
    text-underline-offset: 3px;
    background: none;
  }
  /* Destructive red-tint glass: the same tint, about +.04 alpha. */
  :root :is(.ib-confirm-danger, .ib-dosages-delete):hover:not(:disabled):not([aria-disabled="true"]) {
    background: var(--ib-danger-hover-tint);
  }
}
:root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row):active:not(:disabled):not([aria-disabled="true"]),
:root :is(.ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip):active:not(:disabled):not([aria-disabled="true"]):not([aria-pressed="true"]):not([aria-checked="true"]):not([aria-selected="true"]):not(.is-on) {
  background-color: var(--ib-press-fill);
}
:root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row, .ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip,
  .tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base, .ib-ui-btn, .ib-td-log,
  .ib-confirm-btn):active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(var(--ib-press-scale));
}
:root :is(.tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base, .ib-ui-btn, .ib-wiz-next,
  a.ib-nav-signin, a.ib-acct-rail-cta):active {
  filter: none;
}
/* Disabled: no hover or press change. */
:root :is(button, [role="button"]):is(:disabled, [aria-disabled="true"]) { cursor: default; }
/* Focus ring: keyboard only; outline follows the element's own radius. */
:where(a[href], button, summary, [role="button"], [role="tab"], [role="radio"], [role="option"]):focus-visible {
  outline: 2px solid var(--ib-focus-ring);
  outline-offset: 2px;
}
:root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row, .ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip):focus-visible {
  outline: 2px solid var(--ib-focus-ring);
  outline-offset: 2px;
}
:root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row, .ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip):focus:not(:focus-visible) {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  :root :is(.ib-row-i, .ib-cs-vtoggle, .ib-td-menu-item, .ib-td-start-item, .ib-se-recent-row, .ib-se-chip, .ib-add-chips > button, .ib-lograil-site-chip,
    .tw-ib-primary-hover, .ib-cta, .ib-cta-save, .ib-guide-action-primary, .cp-calc-btn, .ib-primary-base, .ib-ui-btn, .ib-td-log,
    .ib-confirm-btn):active {
    transform: none;
  }
}
/* Desktop vial clearance: page-head rows whose actions reach the top right (Progress Photos, Blood tests Upload test)
   pad right by --ib-vial-clear so they clear the fixed 44 vial (ib-rail.css .ib-desk-vial): 44 button + 12 gap, the
   same 56 the calendar/calculator heads use. Only while the button shows; phone stays 0. */
@media (min-width: 760px) {
  html.ib-rail-live:has(body > .ib-desk-vial) { --ib-vial-clear: 56px; }
}
