/* Generated by scripts/ui/scope_tokens.py from tokens.css: do not edit. */
/*
  Feinh Pro product tokens (UI v2), light theme.
  The only file allowed to hold raw values. Every other stylesheet reads these.
  Brand kit v1.1 colours and fonts; product type scale (not the marketing scale).
  RTL: components use logical properties only (inline-start/end, block-start/end).

  Design system pass (2 Nov 2026, review/system.md section A): one teal scale and one navy-tinted neutral scale anchor
  every role below. Brand teal #0E9472 and navy #0B1B2B are unchanged. Components read ROLE tokens (text-*, surface-*,
  border-*, success-*, status-*, chart-*), never the scales or the brand primitives.
*/

/* Fonts are self hosted in the build (no Google Fonts call). Paths are relative to this file.
   Product UI uses 400 and 600; 500 and 700 files ship too (b, strong, marketing headings) so no weight is ever faked. */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ui/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ui/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ui/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ui/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ui/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF; }

.fp-scope {
  /* ---------- Scales (primitives: only this file reads them) ---------- */
  /* Brand teal. 500 is the brand mark (graphics only, 3.82:1); 600 is the ink (text, links, white text on it 5.30:1). */
  --teal-50: #ECF8F4;  --teal-100: #D2F0E6;  --teal-200: #A8E0CE;  --teal-300: #6FCBB0;  --teal-400: #34B08E;
  --teal-500: #0E9472; --teal-600: #0B7A5E;  --teal-700: #08624B;  --teal-800: #064D3B;  --teal-900: #04382B;
  --teal-on-navy: #7FD1B8;   /* 9.71:1 on navy */
  /* Navy-tinted neutral (hue about 210). Contrast on white / on the canvas (#F4F6F8):
     400 3.71 / 3.43 (control borders), 500 4.56 (placeholder, icons), 600 5.68 / 5.24 (tertiary), 700 7.69 / 7.10 (secondary). */
  --neutral-0: #FFFFFF;   --neutral-25: #FAFBFC;  --neutral-50: #F4F6F8;  --neutral-100: #EDF1F5; --neutral-200: #E2E8EF;
  --neutral-300: #CBD3DD; --neutral-400: #7A8693; --neutral-500: #6B7785; --neutral-600: #5B6878; --neutral-700: #475467;
  --neutral-800: #33475B; --neutral-900: #0B1B2B;
  /* Navy surfaces (the hero, the active nav pill, the primary button, tooltips) */
  --navy-950: #050F19;  --navy-900: #0B1B2B;  --navy-800: #13283C;  --navy-700: #1A2D41;
  --navy-line: #23384C;   /* dividers on navy */
  --navy-muted: #8FA3B5;  /* 6.70:1 on navy */
  --navy-sub: #C5D0DA;    /* 11.12:1 on navy */

  /* ---------- Brand primitives (kept as names; do not use directly in components) ---------- */
  --brand-navy: var(--navy-900);
  --brand-navy-hover: var(--navy-700);
  --brand-navy-press: var(--navy-950);
  --brand-navy-pale: var(--neutral-100);
  --brand-green: var(--teal-500);          /* dot, verified, icons, map pin; text only at 24px+ */
  --brand-green-ink: var(--teal-600);      /* green text and links on light */
  --brand-green-ink-hover: var(--teal-700);
  --brand-green-on-navy: var(--teal-on-navy);
  --brand-green-pale: var(--teal-50);
  --brand-slate: var(--neutral-600);
  --whatsapp: #25D366;
  --whatsapp-hover: #1FBF5B;
  --whatsapp-ink: #062A1A;

  /* ---------- Type families: Outfit (Latin, numbers) and IBM Plex Sans Arabic ---------- */
  --font-latin: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Outfit", system-ui, sans-serif;
  --font-ui: var(--font-latin);
  --font-display: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-num: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;  /* numbers, prices, phones: Latin digits, tabular; Arabic units fall back to Plex */

  /* ---------- Weights: product UI uses two (400, 600) ---------- */
  --weight-regular: 400;
  --weight-strong: 600;
  --weight-medium: 500;   /* rare: marketing pages only */
  --weight-bold: 700;     /* b, strong; marketing headings */
  --weight-normal: var(--weight-regular);   /* old name */

  /* ---------- Type scale, Latin (Outfit). size / line height ---------- */
  --text-hero-size: 32px;     --text-hero-lh: 40px;      /* Today greeting and the hero line, nothing else */
  --text-kpi-size: 28px;      --text-kpi-lh: 34px;       /* KPI numbers in tiles and the navy hero (tabular) */
  --text-display-size: 24px;  --text-display-lh: 32px;   /* record name (person, property, deal) */
  --text-title-size: 20px;    --text-title-lh: 28px;     /* page title: one per screen, same place on every screen */
  --text-card-title-size: 16px; --text-card-title-lh: 24px;   /* card and section titles: never bigger than the page title */
  --text-section-size: 16px;  --text-section-lh: 24px;   /* section title, drawer title */
  --text-body-size: 14px;     --text-body-lh: 20px;      /* body, list row titles (600), buttons, inputs, form labels */
  --text-table-size: 13px;    --text-table-lh: 20px;     /* grid cells, list rows, nav */
  --text-meta-size: 12px;     --text-meta-lh: 16px;      /* meta, captions, chips, column headers (600 + 0.02em) */
  --text-fine-size: 11px;     --text-fine-lh: 16px;      /* the account menu's legal footer only */
  --text-micro-size: var(--text-meta-size);              /* old name */
  /* marketing pages that also live inside Feinh Pro (the mortgage calculator): fluid headings and a lead paragraph */
  --text-mkt-h1-size: clamp(2.25rem, 4.4vw, 3.75rem);
  --text-mkt-h2-size: clamp(1.75rem, 3vw, 2.4rem);
  --text-mkt-num-size: clamp(2rem, 4vw, 2.9rem);
  --text-lead-size: 19px;
  --text-lg-size: 18px;
  --text-xl-size: 22px;
  --text-eyebrow-tracking: 0.12em;                       /* Latin only: Arabic has no case, wide tracking breaks the joins */
  --tracking-header: 0.02em;                             /* column headers and meta labels */

  /* ---------- Type scale, Arabic (IBM Plex Sans Arabic): +1px size for equal visual weight, line height about 1.6 ---------- */
  --text-ar-hero-size: 32px;     --text-ar-hero-lh: 48px;
  --text-ar-kpi-size: 28px;      --text-ar-kpi-lh: 36px;
  --text-ar-display-size: 26px;  --text-ar-display-lh: 40px;
  --text-ar-title-size: 22px;    --text-ar-title-lh: 34px;
  --text-ar-card-title-size: 17px; --text-ar-card-title-lh: 28px;
  --text-ar-section-size: 17px;  --text-ar-section-lh: 28px;
  --text-ar-body-size: 15px;     --text-ar-body-lh: 24px;
  --text-ar-table-size: 14px;    --text-ar-table-lh: 22px;
  --text-ar-meta-size: 13px;     --text-ar-meta-lh: 20px;
  --text-ar-fine-size: 12px;     --text-ar-fine-lh: 18px;

  /* ---------- Spacing: 4px grid ---------- */
  --space-0: 0;
  --space-half: 2px;   /* hairline offsets only (chip inner, focus offset) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* ---------- Layout rhythm (one value per role, never per screen) ---------- */
  --page-pad-x: 24px;        /* inline padding of every page */
  --page-pad-top: 16px;      /* between the top bar and the page title: every title box starts at y = 48 + 16 = 64 */
  --section-gap: 24px;       /* between cards and sections on a page */
  --card-pad: 16px;          /* inside dense cards */
  --card-pad-lg: 20px;       /* inside dashboard cards */
  --stack-gap: 12px;         /* between fields, rows of chips */
  --inline-gap: 8px;         /* between buttons in a toolbar, icon to label */

  /* ---------- Sizes ---------- */
  --control-sm: 32px;        /* toolbar buttons, filter chips, inputs in toolbars; desktop touch minimum */
  --control-md: 36px;        /* default buttons and inputs */
  --control-lg: 44px;        /* the page's primary CTA, phone controls */
  --control-touch: var(--control-lg);   /* phone minimum (old name) */
  --control-page: 40px;      /* design pass (11 Nov 2026): every page button and field on a desktop; 44 (--control-touch) on a phone */
  --row-compact: 32px;       /* data grid, Compact */
  --row-default: 40px;       /* data grid, Comfortable */
  --row-comfortable: var(--row-default);   /* old name */
  --row-relaxed: 48px;       /* lists with an avatar and one line */
  --row-2line: 56px;         /* two-line queue rows */
  --row-list-2line: var(--row-2line);      /* old name */
  --row-header: 36px;        /* grid column header: as tall as the rows under it */
  --phone-row: 56px;         /* every tappable list row on a phone */
  --topbar-h: 48px;
  --pageheader-h: 48px;
  --filterbar-h: 40px;
  --sidebar-w: 240px;
  --sidebar-rail-w: 56px;
  --panel-w: 432px;          /* record activity panel, lead detail minimum */
  --record-left-w: 300px;    /* v0.84 record: who they are */
  --record-right-w: 340px;   /* v0.84 record: deals, homes, people */
  --drawer-w: 480px;
  --modal-w: 560px;
  --palette-w: 640px;
  --phone-topbar-h: 52px;
  --phone-tabbar-h: 64px;
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-stroke: 1.5px;      /* rendered stroke at both sizes (non-scaling) */
  --avatar-xs: 20px;
  --avatar-sm: 24px;
  --avatar-md: 32px;
  --avatar-lg: 40px;
  --chip-h: 20px;            /* status chip (not interactive) */
  --badge-h: 18px;           /* count badge */
  --dot: 6px;
  --glyph: 12px;             /* stage status glyph (shape-coded ring), not an icon */
  --focus-ring-w: 2px;
  --kanban-col-w: 210px;
  --kanban-folded-w: 56px;
  --cal-hour-h: 48px;
  --content-max: 1680px;
  --search-w: 420px;
  /* ---------- Layout widths (screens) ---------- */
  --today-side-w: 360px;
  --queue-w: 520px;
  --cal-side-w: 272px;
  --cal-time-w: 56px;
  --col-sel: 40px; --col-wants: 156px; --col-area: 128px; --col-bud: 120px;
  --col-stage: 116px; --col-temp: 96px; --col-next: 176px; --col-last: 96px;  /* Customer column takes the rest */
  --phone-sheet-max: 88vh;

  --measure-short: 40ch;
  --measure-narrow: 18rem;
  --tracking-tight: -0.01em;

  /* ---------- Shape: one card radius for the whole CRM ---------- */
  --radius-xs: 4px;      /* checkbox, kbd, count badge, skeleton line, chart bars */
  --radius-sm: 6px;      /* buttons, inputs, selects, filter chips, menu items, segmented (renamed from --radius-md, 3 Nov 2026) */
  --radius-md: 10px;     /* toasts, thumbnails, rows and small cards inside a card (nested radius) */
  --radius-ctl: var(--radius-sm);
  --radius-inner: var(--radius-md);   /* old name */
  --radius-lg: 16px;     /* cards, panels, popovers, drawers, modals, kanban cards */
  --radius-xl: 20px;     /* the Today navy hero only */
  --radius-full: 999px;  /* status chips, avatars, toggles */
  --border-w: 1px;
  --border-w-strong: 1.5px;   /* the big inputs on marketing calculators */
  --radius-2xl: 28px;         /* marketing sections only */

  /* ---------- Colour roles: text ---------- */
  --text-primary: var(--neutral-900);     /* 17.4:1 on white */
  --text-secondary: var(--neutral-700);   /* 7.69:1 on white, 7.10:1 on the canvas: labels, meta, nav labels */
  --text-tertiary: var(--neutral-600);    /* 5.68:1 on white, 5.24:1 on the canvas: timestamps, hints, column headers */
  --text-strong-secondary: var(--neutral-800);   /* quiet button text */
  --text-placeholder: var(--neutral-500);
  --text-on-dark: #FFFFFF;
  --text-on-dark-secondary: var(--navy-sub);
  --text-on-dark-muted: var(--navy-muted);
  --text-link: var(--teal-600);          /* 5.30:1 */
  --text-link-hover: var(--teal-700);
  --text-accent-on-dark: var(--teal-on-navy);
  --text-disabled: var(--neutral-500);   /* exempt from AA (WCAG 1.4.3 inactive components) */

  /* ---------- Colour roles: surfaces ---------- */
  --surface-canvas: var(--neutral-50);   /* the app canvas behind the cards */
  --surface-page: var(--neutral-0);      /* work area */
  --surface-sunken: var(--neutral-25);   /* table header, kanban columns, composer, sunken inside a card */
  --surface-raised: var(--neutral-0);    /* cards, popovers */
  --surface-subtle: var(--neutral-100);  /* hover row, neutral chip, segmented track */
  --surface-selected: var(--neutral-100);   /* selected row, active filter, today: pale navy (green is for marks only) */
  --surface-dark: var(--navy-900);       /* primary button, tooltip, toast */
  --surface-dark-row: var(--navy-800);   /* rows inside a navy surface */
  --surface-overlay: rgba(11, 27, 43, 0.40);
  --surface-skeleton: var(--neutral-100);
  --surface-skeleton-shine: var(--neutral-25);

  /* ---------- Colour roles: borders ---------- */
  --border-subtle: var(--neutral-100);   /* row dividers */
  --border-default: var(--neutral-200);  /* cards, panels, sidebar edge */
  --border-strong: var(--neutral-300);   /* secondary buttons, segmented outline */
  --border-control: var(--neutral-400);  /* inputs, checkboxes: 3.71:1 on white, 3.43:1 on the canvas (WCAG 1.4.11) */
  --border-focus: var(--teal-600);
  --border-on-dark: var(--navy-line);

  /* ---------- One accent ---------- */
  --accent: var(--navy-900);             /* active nav, selected tab underline, today: navy (green is for marks) */
  --accent-strong: var(--teal-500);      /* icons, dot, verified, focus glow */
  --accent-subtle: var(--neutral-100);
  --primary: var(--navy-900);            /* the one primary action per screen */
  --primary-hover: var(--navy-700);
  --primary-press: var(--navy-950);

  /* ---------- Semantic: bg / text / border / solid (white text on solid) / mark (dots, bars, icons only) ---------- */
  --success-bg: var(--teal-50);  --success-text: #0B6B53;  --success-border: #A8DCCB;  --success-solid: var(--teal-600);  --success-mark: var(--teal-500);
  --warning-bg: #FFF6E5;  --warning-text: #8A5300;  --warning-border: #F2D299;  --warning-solid: #9A5B00;  --warning-mark: #D98A00;
  --danger-bg:  #FDEEEE;  --danger-text:  #B42318;  --danger-border:  #F5C2BE;  --danger-solid:  #B42318;  --danger-mark: #D92D20;
  --danger-solid-hover: #9A1D13;
  --info-bg:    #EEF4FD;  --info-text:    #1D5BB8;  --info-border:    #BFD5F5;  --info-solid:    #2F6FDB;  --info-mark: #2F6FDB;
  --neutral-bg: var(--neutral-100); --neutral-text: var(--neutral-700); --neutral-border: var(--neutral-300); --neutral-solid: var(--neutral-700); --neutral-mark: var(--neutral-400);

  /* ---------- Status palette: 6 hues, muted by default. Chip = bg + text + 1px border of the SAME role ---------- */
  --status-neutral-bg: var(--neutral-bg);  --status-neutral-text: var(--neutral-text);  --status-neutral-dot: var(--neutral-mark);  --status-neutral-border: var(--neutral-border);
  --status-blue-bg:    var(--info-bg);     --status-blue-text:    var(--info-text);     --status-blue-dot:    var(--info-mark);     --status-blue-border:    var(--info-border);
  --status-violet-bg:  #F1EEFB;            --status-violet-text:  #5B3FB0;              --status-violet-dot:  #7A5CD6;              --status-violet-border:  #D9D0F5;
  --status-amber-bg:   var(--warning-bg);  --status-amber-text:   var(--warning-text);  --status-amber-dot:   var(--warning-mark);  --status-amber-border:   var(--warning-border);
  --status-green-bg:   var(--success-bg);  --status-green-text:   var(--success-text);  --status-green-dot:   var(--success-mark);  --status-green-border:   var(--success-border);
  --status-red-bg:     var(--danger-bg);   --status-red-text:     var(--danger-text);   --status-red-dot:     var(--danger-mark);   --status-red-border:     var(--danger-border);
  --status-info-bg: var(--status-blue-bg); --status-info-text: var(--status-blue-text);   /* old names */

  /* ---------- Person roles (founder-approved identity design, 3 Nov 2026): colour by side, never alone (always an icon and
     the word). Buying side (Buyer, Renter) blue; selling side (Seller, Landlord) violet; other roles (Investor, Developer) grey.
     Badge = bg + ink + border; a role card = card fill + border; the ink passes 4.5:1 on both. ---------- */
  --role-buy-bg: var(--info-bg);      --role-buy-ink: #143F80;  --role-buy-border: var(--info-border);  --role-buy-card: #F7FAFE;
  --role-sell-bg: #F1EDFD;            --role-sell-ink: #4A2FB0; --role-sell-border: #D9CEF8;            --role-sell-card: #FBFAFF;
  --role-other-bg: var(--neutral-bg); --role-other-ink: var(--neutral-text); --role-other-border: var(--neutral-border); --role-other-card: var(--surface-sunken);
  --role-rent-bg: var(--role-buy-bg); --role-rent-ink: var(--role-buy-ink); --role-rent-border: var(--role-buy-border); --role-rent-card: var(--role-buy-card);   /* 1.53: Renter (lead card C); the base theme keeps renters on the buying side */
  --role-buy-ring: var(--info-mark); --role-sell-ring: var(--status-violet-dot); --role-rent-ring: var(--info-mark); --role-other-ring: var(--neutral-mark);   /* 1.53: the avatar ring and a possible role's dashed outline */
  --role-step-done: var(--success-text);   /* a passed step on a role's path */
  --status-action-bg:  var(--danger-solid); --status-action-text:  #FFFFFF;   /* the only strong status: Reply now / Overdue */

  /* ---------- ONE stage and status map (A3.4). Every stage chip, dot, column top and ring reads these. ----------
     New request = info. Contacted / Talking = neutral. Qualified / Ready to view = violet. Viewing booked / Viewing done,
     Offer / Negotiation = warning. Reserved / Contracted = success. Won / Closed = success SOLID (white text).
     Lost = neutral, struck, hollow dot. Overdue / Reply now = danger solid.
     NOTE: "Viewing booked" as a DEAL STAGE is warning; "Viewing" as a CALENDAR EVENT is success (--event-viewing-*).
     Two different things, two different words. Hot / Warm / Cold: icon + label only (never a filled chip). */
  --stage-new-bg: var(--info-bg);              --stage-new-fg: var(--info-text);              --stage-new-border: var(--info-border);              --stage-new-dot: var(--info-mark);
  --stage-contacted-bg: var(--neutral-bg);     --stage-contacted-fg: var(--neutral-text);     --stage-contacted-border: var(--neutral-border);     --stage-contacted-dot: var(--neutral-mark);
  --stage-qualified-bg: var(--status-violet-bg); --stage-qualified-fg: var(--status-violet-text); --stage-qualified-border: var(--status-violet-border); --stage-qualified-dot: var(--status-violet-dot);
  --stage-viewing-bg: var(--warning-bg);       --stage-viewing-fg: var(--warning-text);       --stage-viewing-border: var(--warning-border);       --stage-viewing-dot: var(--warning-mark);
  --stage-offer-bg: var(--warning-bg);         --stage-offer-fg: var(--warning-text);         --stage-offer-border: var(--warning-border);         --stage-offer-dot: var(--warning-mark);
  --stage-reserved-bg: var(--success-bg);      --stage-reserved-fg: var(--success-text);      --stage-reserved-border: var(--success-border);      --stage-reserved-dot: var(--success-mark);
  --stage-won-bg: var(--success-solid);        --stage-won-fg: #FFFFFF;                       --stage-won-border: var(--success-solid);            --stage-won-dot: var(--success-solid);
  --stage-lost-bg: var(--neutral-bg);          --stage-lost-fg: var(--neutral-600);           --stage-lost-border: var(--neutral-border);          --stage-lost-dot: var(--neutral-mark);
  --stage-overdue-bg: var(--danger-solid);     --stage-overdue-fg: #FFFFFF;                   --stage-overdue-border: var(--danger-solid);         --stage-overdue-dot: var(--danger-solid);
  --stage-progress: var(--neutral-700);        /* in-progress stages: one ink colour, the ring fill carries the stage */
  --stage-won: var(--success-mark); --stage-lost: var(--neutral-mark);   /* old names (rings, glyphs) */
  --temp-hot: var(--danger-text); --temp-warm: var(--warning-text); --temp-cold: var(--neutral-600);   /* temperature never reuses a stage hue: icon shape + label */

  /* ---------- Chart palette: 6 categorical + other (CVD-checked, every series 3:1 on white) ---------- */
  --chart-1: #0E9472;   /* the agent / you / won / positive */
  --chart-2: #2F6FDB;   /* leads, info */
  --chart-3: #B76E00;   /* viewings */
  --chart-4: #A23B8C;   /* plum (violet and blue collapse under protanopia) */
  --chart-5: #0B1B2B;   /* team average, target line */
  --chart-6: #D1495B;   /* lost, negative */
  --chart-other: #7A8693;   /* everything else, prior period */
  --chart-seq-1: var(--teal-50); --chart-seq-2: var(--teal-200); --chart-seq-3: var(--teal-400); --chart-seq-4: var(--teal-600); --chart-seq-5: var(--teal-800);
  --chart-div-neg-2: var(--danger-text); --chart-div-neg-1: var(--danger-border); --chart-div-0: var(--neutral-100); --chart-div-pos-1: var(--success-border); --chart-div-pos-2: var(--teal-600);
  --chart-grid: var(--neutral-100);
  --chart-axis: var(--neutral-600);
  --chart-target: var(--neutral-900);
  --chart-track: var(--neutral-200);
  /* Colour pickers (note text colours, event colours, team member tones): every swatch passes 4.5:1 as text on white and
     with white text on it. Read at runtime by fp-write.js and calendar.html (getComputedStyle), never typed there. */
  --swatch-navy: var(--navy-900);  --swatch-green: var(--teal-600);  --swatch-blue: var(--info-text);  --swatch-amber: var(--warning-solid);
  --swatch-plum: #A23B8C;          --swatch-red: var(--danger-solid);  --swatch-grey: var(--neutral-700);

  /* ---------- People: one soft colour per person, from the status palette (pale fill + its ink) ---------- */
  --hue-0-bg: var(--status-blue-bg);    --hue-0-ink: var(--status-blue-text);
  --hue-1-bg: var(--status-green-bg);   --hue-1-ink: var(--status-green-text);
  --hue-2-bg: var(--status-violet-bg);  --hue-2-ink: var(--status-violet-text);
  --hue-3-bg: var(--status-amber-bg);   --hue-3-ink: var(--status-amber-text);
  --hue-4-bg: var(--status-red-bg);     --hue-4-ink: var(--status-red-text);
  --hue-5-bg: var(--status-neutral-bg); --hue-5-ink: var(--status-neutral-text);

  /* ---------- Calendar event types (from the status palette). A viewing EVENT is success; a viewing STAGE is warning. ---------- */
  --event-viewing-bg: var(--status-green-bg);   --event-viewing-bar: var(--status-green-dot);   --event-viewing-text: var(--status-green-text);
  --event-meeting-bg: var(--status-blue-bg);    --event-meeting-bar: var(--status-blue-dot);    --event-meeting-text: var(--status-blue-text);
  --event-task-bg: var(--status-neutral-bg);    --event-task-bar: var(--status-neutral-text);   --event-task-text: var(--status-neutral-text);   /* slate, darker than its fill */
  --event-followup-bg: var(--status-violet-bg); --event-followup-bar: var(--status-violet-dot); --event-followup-text: var(--status-violet-text);   /* violet, never brown (founder, 29 Oct) */

  /* ---------- Today KPI tiles (1.28.1, founder-approved mock-up): a pale fill deepening down the tile, its status border, a
     deeper ink for the label and the line under the number (all AA on both ends of the fill), the number in the status text. ---------- */
  --kpi-red-bg: var(--danger-bg);     --kpi-red-bg-end: #FDE4E1;   --kpi-red-border: var(--danger-border);    --kpi-red-ink: #7A1A12;   --kpi-red-num: var(--danger-text);
  --kpi-amber-bg: #FFF8EB;            --kpi-amber-bg-end: #FDEFD3; --kpi-amber-border: var(--warning-border); --kpi-amber-ink: #6B4200; --kpi-amber-num: var(--warning-text);
  --kpi-green-bg: var(--success-bg);  --kpi-green-bg-end: #D9F1E8; --kpi-green-border: var(--success-border); --kpi-green-ink: var(--teal-800); --kpi-green-num: var(--success-text);
  --kpi-blue-bg: var(--info-bg);      --kpi-blue-bg-end: #DCE8FB;  --kpi-blue-border: var(--info-border);     --kpi-blue-ink: #143F80;  --kpi-blue-num: var(--info-text);
  --kpi-zero-bg: var(--surface-raised); --kpi-zero-bg-end: var(--surface-sunken); --kpi-zero-border: var(--border-default); --kpi-zero-ink: var(--text-secondary); --kpi-zero-num: var(--text-primary);
  --elevation-kpi: 0 1px 0 rgba(11, 27, 43, 0.04), 0 10px 24px -12px rgba(11, 27, 43, 0.28);   /* the Today KPI tiles: raised */
  --text-kpi-tile-size: 40px; --text-kpi-tile-lh: 44px;   /* the Today KPI tile numbers (tabular) */

  /* ---------- Elevation: border first, shadow second ---------- */
  --elevation-0: none;                                                                                  /* cards on white: border only */
  --elevation-1: 0 1px 2px rgba(11, 27, 43, 0.06), 0 2px 8px rgba(11, 27, 43, 0.04);                    /* cards on the canvas, kanban cards (always with a --border-default border) */
  --elevation-2: 0 4px 12px rgba(11, 27, 43, 0.10), 0 1px 3px rgba(11, 27, 43, 0.06);                  /* popover, menu, tooltip, toast */
  --elevation-3: 0 16px 40px rgba(11, 27, 43, 0.18), 0 2px 6px rgba(11, 27, 43, 0.08);                 /* modal, drawer, command palette */
  --elevation-hero: 0 10px 28px rgba(11, 27, 43, 0.18);                                                 /* the Today hero only */
  --elevation-float: 0 24px 60px -24px rgba(11, 27, 43, 0.25);                                          /* a marketing calculator card */
  --elevation-card: var(--elevation-1);   /* old name */
  --focus-ring: 0 0 0 var(--focus-ring-w) #FFFFFF, 0 0 0 4px var(--border-focus);
  --focus-ring-inset: inset 0 0 0 var(--focus-ring-w) var(--border-focus);
  --kanban-drag-shadow: 0 12px 24px rgba(11, 27, 43, 0.16);

  /* ---------- Motion ---------- */
  --duration-fast: 120ms;     /* hover, press, toggles */
  --duration-base: 200ms;     /* popover, menu, tooltip, toast enter */
  --duration-slow: 280ms;     /* drawer, modal, sidebar fold */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --skeleton-cycle: 1400ms;
  --spinner-cycle: 800ms;
  --drag-tilt: -1deg;

  /* ---------- Layers ---------- */
  --z-sticky: 10;
  --z-sidebar: 20;
  --z-popover: 40;
  --z-dropdown: 45;
  --z-drawer: 50;
  --z-modal: 60;
  --z-toast: 70;
  --z-tooltip: 80;

  --peek-w: 22rem;   /* the Customers side panel (v0.84.1.29) */
}

/* v1.26 record sections (founder, 31 Oct: "each section clearly separated, a slightly different background"): one calm tint and
   one icon ink per kind of section, made from the semantic colours so a dark theme carries them with no new values. */
.fp-scope {
  --section-history-bg: color-mix(in srgb, var(--info-bg) 45%, var(--surface-page));    --section-history-ink: var(--info-text);
  --section-want-bg: color-mix(in srgb, var(--success-bg) 55%, var(--surface-page));     --section-want-ink: var(--success-text);
  --section-home-bg: color-mix(in srgb, var(--status-violet-bg) 60%, var(--surface-page)); --section-home-ink: var(--status-violet-text);
  --section-contact-bg: color-mix(in srgb, var(--warning-bg) 60%, var(--surface-page));  --section-contact-ink: var(--warning-text);
  --section-deal-bg: color-mix(in srgb, var(--status-blue-bg) 50%, var(--surface-page)); --section-deal-ink: var(--info-text);
  --section-plan-bg: color-mix(in srgb, var(--surface-subtle) 70%, var(--surface-page)); --section-plan-ink: var(--text-secondary);
  --section-docs-bg: color-mix(in srgb, var(--surface-sunken) 60%, var(--surface-page)); --section-docs-ink: var(--text-secondary);
  --section-money-bg: color-mix(in srgb, var(--success-bg) 35%, var(--surface-page));    --section-money-ink: var(--success-text);
  --section-edit-bg: var(--surface-page);
}

/* "A touch of colour" (founder-approved mock-up, 4 Nov 2026). Each place in Feinh Pro has one colour: its sidebar icon and
   the tile beside its page title (ink on a soft tint; every ink passes 3:1 as a graphic on white and on its tint). Insights and
   the More group are slate; the Feinh team's admin pages use the brand green. Colour is never alone: always the word with it. */
.fp-scope {
  --sec-today-ink: #B26B00;      --sec-today-bg: #FFF6E5;
  --sec-people-ink: #1D5BB8;     --sec-people-bg: #EEF4FD;
  --sec-homes-ink: #5B3FC4;      --sec-homes-bg: #F1EDFD;
  --sec-deals-ink: #0B7A5E;      --sec-deals-bg: #E7F7F2;
  --sec-calendar-ink: #0E6E7A;   --sec-calendar-bg: #E6F5F7;
  --sec-approvals-ink: #A3245A;  --sec-approvals-bg: #FCEEF3;
  --sec-slate-ink: #3D4B5C;      --sec-slate-bg: #EEF1F5;
  --sec-admin-ink: var(--sec-deals-ink); --sec-admin-bg: var(--sec-deals-bg);
  --sec-deals-card: #F3FBF8;     /* a chosen green option card (Team access), paler than the green badge on it */
  --sec-tile: 48px;              /* the page title's icon tile */
  --sec-tile-icon: 24px;
  --sec-tile-radius: 14px;
  /* Team access badges (the mock-up): Feinh team soft green, Admin solid navy, Manager grey */
  --badge-team-bg: var(--sec-deals-bg);  --badge-team-ink: #075C47;   /* 7.22:1 */
  /* Person circles: a soft tint and its ink, picked from the person's name (pro_shell.avatar_tone and window.FeinhHue use the
     same hash), so the same person has the same circle on every screen. Initials pass 4.5:1 on every tint (5.32 to 7.86). */
  --avatar-0-bg: #E6F5F7; --avatar-0-ink: #0E6E7A;   /* teal */
  --avatar-1-bg: #FCEEF3; --avatar-1-ink: #A3245A;   /* rose */
  --avatar-2-bg: #EEF0FB; --avatar-2-ink: #3A47A8;   /* indigo */
  --avatar-3-bg: #FBF1E4; --avatar-3-ink: #8A4B12;   /* sand */
  --avatar-4-bg: #EEF1F5; --avatar-4-ink: #3D4B5C;   /* slate */
  --avatar-row: 44px;            /* a person's circle in a list row */
  --avatar-xl: 52px;             /* a person's circle on Team access */
  --input-lg: 48px;              /* the large form inputs on Team access */
}

/* The larger type inside Feinh Pro ("A touch of colour", 4 Nov 2026): body 16, lists 15, chips 13, person names 18 to 19,
   card and section titles 21, page titles 30 (--text-page-title-size, on every page h1 and the shared page header). Only the Pro shell (body.fp-v2) reads it; public pages keep their scale. */
body.fp-v2 {
  --text-page-title-size: 30px;  --text-page-title-lh: 38px;   /* the page's h1 only (--text-title-size stays 20: dialogs, prices, numbers) */
  --text-card-title-size: 21px;  --text-card-title-lh: 28px;
  --text-section-size: 18px;     --text-section-lh: 26px;
  --text-body-size: 16px;        --text-body-lh: 24px;
  --text-table-size: 15px;       --text-table-lh: 22px;
  --text-meta-size: 13px;        --text-meta-lh: 18px;
  --text-nav-size: 16px;         --text-nav-lh: 24px;
  --text-name-size: 18px;        --text-name-lh: 24px;      /* a person's name in a list row */
  --text-name-lg-size: 19px;     --text-name-lg-lh: 26px;   /* a person's name on Team access */
  --text-row-title-size: var(--text-body-size); --text-row-title-lh: var(--text-body-lh);
  /* one type scale (founder, 7 Nov 2026: "the fonts on this page [Review] ... used throughout the CRM, same fonts, same weights"):
     nothing in the CRM is smaller than meta (13, Arabic 14), and a person's name is one size everywhere. These resolve here,
     on body, so they follow the larger scale above instead of the root's (the root's micro was 12 and fine 11). */
  --text-micro-size: var(--text-meta-size);
  --text-fine-size: var(--text-meta-size);  --text-fine-lh: var(--text-meta-lh);
  --text-name-lg-size: var(--text-name-size);  --text-name-lg-lh: var(--text-name-lh);
}
body.fp-v2:lang(ar), [dir="rtl"] body.fp-v2 {
  --text-page-title-size: 31px;  --text-page-title-lh: 46px;
  --text-card-title-size: 22px;  --text-card-title-lh: 34px;
  --text-section-size: 19px;     --text-section-lh: 30px;
  --text-body-size: 17px;        --text-body-lh: 28px;
  --text-table-size: 16px;       --text-table-lh: 26px;
  --text-meta-size: 14px;        --text-meta-lh: 22px;
  --text-nav-size: 17px;         --text-nav-lh: 28px;
  --text-name-size: 19px;        --text-name-lh: 30px;
}
@media (max-width: 760px) {
  body.fp-v2 { --text-page-title-size: 24px; --text-page-title-lh: 32px; --text-card-title-size: 19px; --text-card-title-lh: 26px; --sec-tile: 40px; --sec-tile-icon: 20px; --sec-tile-radius: 12px; }
  body.fp-v2:lang(ar), [dir="rtl"] body.fp-v2 { --text-page-title-size: 25px; --text-page-title-lh: 38px; --text-card-title-size: 20px; --text-card-title-lh: 32px; }
}

/* Arabic: swap the scale and the family. Same roles, same component code. */
.fp-scope:lang(ar), [dir="rtl"] .fp-scope {
  --font-ui: var(--font-arabic);
  --font-display: var(--font-arabic);
  --text-hero-size: var(--text-ar-hero-size);        --text-hero-lh: var(--text-ar-hero-lh);
  --text-kpi-size: var(--text-ar-kpi-size);          --text-kpi-lh: var(--text-ar-kpi-lh);
  --text-display-size: var(--text-ar-display-size);  --text-display-lh: var(--text-ar-display-lh);
  --text-title-size: var(--text-ar-title-size);      --text-title-lh: var(--text-ar-title-lh);
  --text-card-title-size: var(--text-ar-card-title-size); --text-card-title-lh: var(--text-ar-card-title-lh);
  --text-section-size: var(--text-ar-section-size);  --text-section-lh: var(--text-ar-section-lh);
  --text-body-size: var(--text-ar-body-size);        --text-body-lh: var(--text-ar-body-lh);
  --text-table-size: var(--text-ar-table-size);      --text-table-lh: var(--text-ar-table-lh);
  --text-meta-size: var(--text-ar-meta-size);        --text-meta-lh: var(--text-ar-meta-lh);
  --text-fine-size: var(--text-ar-fine-size);        --text-fine-lh: var(--text-ar-fine-lh);
  --text-eyebrow-tracking: 0;
  --tracking-header: 0;
}

/* Phones: tighter page rhythm and smaller showpiece numbers */
@media (max-width: 760px) {
  .fp-scope {
    --page-pad-x: 16px;
    --page-pad-top: 12px;
    --section-gap: 16px;
    --text-hero-size: 26px; --text-hero-lh: 32px;
    --text-kpi-size: 22px;  --text-kpi-lh: 28px;
  }
  .fp-scope:lang(ar), [dir="rtl"] .fp-scope { --text-hero-size: 26px; --text-hero-lh: 40px; --text-kpi-size: 22px; --text-kpi-lh: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-scope {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
    --skeleton-cycle: 0ms;
  }
}

/* Icon strokes: Lucide draws on a 24-unit grid, so the stroke in grid units that renders 1.5px at each size */
.fp-scope { --icon-stroke-16: 2.25; --icon-stroke-20: 1.8; }

/* v0.84.2 body class fp-v3 (set on every Feinh Pro page by pro_shell.context). Inter is retired (2 Nov 2026 system pass):
   Outfit and IBM Plex Sans Arabic everywhere. The class stays only as a hook; its tokens now live in :root. */

/* The new design (founder, 2 Nov 2026; body class fp-v2). Old v2 names, kept as aliases of the role tokens above so the
   screen stylesheets keep working; new code reads the role tokens. */
.fp-scope {
  --v2-canvas: var(--surface-canvas);
  --v2-ink-2: var(--neutral-800);         /* nav labels, quiet buttons */
  --v2-hero-row: var(--navy-800);         /* rows inside the navy hero */
  --v2-hero-line: var(--navy-line);       /* dividers inside the navy hero */
  --v2-hero-muted: var(--navy-muted);     /* the hero's first line */
  --v2-hero-sub: var(--navy-sub);         /* labels under the hero's numbers */
  --v2-hero-icon: var(--teal-900);        /* an icon tile in the hero */
  --v2-clock: var(--warning-text);        /* reply clock and promise time: one amber ink */
  --v2-track: var(--chart-track);         /* bars and sparkline track */
  --v2-spark-fill: var(--teal-50);
  --v2-spark-line: var(--chart-1);
  --radius-card: var(--radius-lg);        /* one card radius: 16px */
  --radius-hero: var(--radius-xl);
  --radius-pill: var(--radius-inner);     /* 10px (not a pill: old name) */
  --radius-thumb: var(--radius-inner);
  --radius-row: var(--radius-inner);      /* rows inside a 16px card */
  --text-greet-size: var(--text-hero-size); --text-greet-lh: var(--text-hero-lh);
  --text-hero-big-size: var(--text-hero-size); --text-hero-big-lh: var(--text-hero-lh);
  --text-hero-n-size: var(--text-kpi-size); --text-hero-n-lh: var(--text-kpi-lh);
  --text-row-title-size: var(--text-body-size); --text-row-title-lh: var(--text-body-lh);
  --thumb-lg-w: 168px; --thumb-lg-h: 112px;
  --thumb-w: 88px; --thumb-h: 64px;
  --thumb-sm-w: 64px; --thumb-sm-h: 48px;
  --search-lg-w: 340px;
  --rail-w: 380px;
}

/* 5 Nov 2026: the person record, one screen (person-one.css, founder-approved boards V1 to V10). Colour means a role or
   attention only. The WhatsApp button is a deeper green than the brand mark so white text passes (4.8:1). */
.fp-scope {
  --po-whatsapp: #0F8444;  --po-whatsapp-hover: #0B6D38;  --po-whatsapp-ink: #FFFFFF;
  --po-rail-bg: var(--neutral-25);      /* the history rail: lighter than the page canvas, no border */
  --po-brief-bg: var(--neutral-50);     /* the brief's soft fill */
  --po-bubble-in: var(--neutral-100);  --po-bubble-out: #E6F4EE;
  --po-hist-w: clamp(340px, 27vw, 400px);   /* polish pass: the rail grows with the screen (389px at 1440) */   --po-line-w: 2px;   --po-dot: 10px;   --po-dot-now: 14px;   --po-avatar: 56px;   --po-avatar-ring: 2px;
  --po-thumb-w: 220px;  --po-thumb-h: 146px;   --po-match-w: 128px;  --po-match-h: 96px;   --po-date-w: 64px;
  --po-head-gap: 16px;  --po-pad: 40px;  --po-entry-min: 150px;
  /* motion (board V9): the record opens header first, then the brief, then the rest, 60 ms apart, 180 ms fade and 8 px rise;
     a panel grows from its row in 220 ms with no bounce; Not now folds away in 160 ms. Reduced motion: 100 ms fades only. */
  --po-rise: 8px;  --po-step: 60ms;  --po-fade: 180ms;  --po-grow: 220ms;  --po-fold: 160ms;  --po-reduced: 100ms;
  --po-spring: cubic-bezier(0.2, 0.9, 0.3, 1);
  --po-shadow-pal: 0 24px 64px -16px rgba(11, 27, 43, 0.35);
  --po-shadow-tile: 0 1px 2px rgba(11, 27, 43, 0.05), 0 4px 14px rgba(11, 27, 43, 0.06);   /* the strip tiles (6 Nov 2026) */
  --po-shadow-tile-hover: 0 2px 4px rgba(11, 27, 43, 0.06), 0 10px 24px rgba(11, 27, 43, 0.10);  --po-tile-lift: -2px;
  --po-scrim: rgba(11, 27, 43, 0.32);
}

/* 6 Nov 2026: Review (review.css, founder-approved boards R1 to R8). One screen: the list on the inline start, the decision
   pane on the inline end. The same tokens as the person record; these are the few sizes only Review uses. */
.fp-scope {
  --rv-list-w: 380px;  --rv-photo-w: 220px;  --rv-photo-h: 146px;  --rv-circle: 160px;  --rv-doc-w: 330px;  --rv-doc-h: 440px;
  --rv-switch-w: 40px;  --rv-switch-h: 24px;  --rv-knob: 18px;  --rv-spin: 16px;  --rv-sheet-bg: var(--neutral-50);
  --rv-undo-ms: 5s;
}

/* 8 Nov 2026: Review, fix it here (review-fix.css): the unit side panel, the phone's big Save and tap buttons, thumbnails. */
.fp-scope {
  --rf-panel-w: 560px;  --rf-save-h: 48px;  --rf-thumb: 96px;  --rf-field-w: 200px;
}

/* Dark mode, by token (board V3). Set on <html> by the person record (its menu and the palette), remembered per browser.
   Every component reads role tokens, so redefining them here turns the whole screen. */
:root.po-dark {
  color-scheme: dark;
  --text-primary: #E9EEF3;  --text-secondary: #B4C0CC;  --text-tertiary: #97A5B3;  --text-strong-secondary: #D3DCE4;
  --text-placeholder: #8796A5;  --text-disabled: #6F7F8F;  --text-link: #7FD1B8;  --text-link-hover: #A8E0CE;
  --surface-canvas: #0B1622;  --surface-page: #0E1A26;  --surface-sunken: #13212F;  --surface-raised: #152433;  --surface-subtle: #1B2C3D;
  --surface-selected: #1E3245;  --surface-dark: #E9EEF3;  --surface-dark-row: #C5D0DA;  --surface-overlay: rgba(0, 0, 0, 0.55);
  --surface-skeleton: #1B2C3D;  --surface-skeleton-shine: #22374B;
  --border-subtle: #1D2D3D;  --border-default: #26384A;  --border-strong: #34495E;  --border-control: #5A6E82;  --border-focus: #7FD1B8;
  --primary: #E9EEF3;  --primary-hover: #FFFFFF;  --primary-press: #C5D0DA;  --accent: #E9EEF3;  --accent-subtle: #1B2C3D;
  --text-on-dark: #0B1B2B;  --text-on-dark-secondary: #33475B;
  --success-bg: #0F2E26;  --success-text: #7FD1B8;  --success-border: #1E5446;
  --warning-bg: #33260F;  --warning-text: #F2B866;  --warning-border: #5C4317;
  --danger-bg: #3A1716;   --danger-text: #FF8E84;   --danger-border: #6B2A26;
  --info-bg: #13263F;     --info-text: #8DB8F2;     --info-border: #27466F;
  --neutral-bg: #1B2C3D;  --neutral-text: #C5D0DA;  --neutral-border: #34495E;
  --status-violet-bg: #231B40;  --status-violet-text: #BBA8F5;  --status-violet-border: #3F3270;
  --role-buy-bg: #13263F;  --role-buy-ink: #8DB8F2;  --role-buy-border: #27466F;  --role-buy-card: #12202F;
  --role-sell-bg: #231B40; --role-sell-ink: #BBA8F5; --role-sell-border: #3F3270; --role-sell-card: #161C33;
  --role-other-card: #13212F;
  --po-rail-bg: #0B1622;  --po-brief-bg: #152433;  --po-bubble-in: #1B2C3D;  --po-bubble-out: #12372B;
  --po-whatsapp: #12A055;  --po-whatsapp-hover: #15B862;  --po-whatsapp-ink: #04140B;
  --po-scrim: rgba(0, 0, 0, 0.55);
  --focus-ring: 0 0 0 var(--focus-ring-w) #0E1A26, 0 0 0 4px var(--border-focus);
  --rv-sheet-bg: #152433;
}

/* 6 Nov 2026: Expenses (expenses-page.css, founder-approved boards X1 to X7) and the shared period control (fp-period.css).
   Where it went is one stacked bar in calm navy shades with one accent; the rest are the person record's and Review's tokens. */
.fp-scope {
  --xe-list-w: 560px;  --xe-receipt-w: 250px;  --xe-receipt-h: 410px;  --xe-bar-h: 12px;  --xe-spark-h: 64px;  --xe-needs-w: 320px;
  --xe-cam-h: 300px;   --xe-shutter: 84px;  --xe-dot: 10px;  --xe-zig: 8px;  --xe-hero-w: 280px;
  --xe-seg-1: #1F4E9A;  --xe-seg-2: var(--neutral-700);  --xe-seg-3: var(--neutral-500);  --xe-seg-4: #9AA7B6;  --xe-seg-5: var(--neutral-300);  --xe-seg-6: var(--neutral-200);
  --xe-cam-bg: var(--navy-900);  --xe-cam-ink: var(--neutral-0);
  --fpp-menu-w: 300px;
}
:root.po-dark {
  --xe-seg-1: #8DB8F2;  --xe-seg-2: #C5D0DA;  --xe-seg-3: #97A5B3;  --xe-seg-4: #6F7F8F;  --xe-seg-5: #4A5C6E;  --xe-seg-6: #34495E;
  --xe-cam-bg: #050F19;
}

/* ======================================================================================================================
   The CRM palette: Warm stone with Editorial type (founder decision, 6 Nov 2026: the official core palette of Feinh Pro).
   Set on <html class="fp-crm"> by every Feinh Pro page (pro_base.html, insights_base.html). Public feinh.com pages never
   carry the class, so they keep the brand kit's navy, teal and cool greys above. Only primitives and the few role tokens
   that hold raw values are redefined here; every role token above follows, because both sit on the same <html> element.
   Warm stone greys and warm ink; ink for the one primary action and for links (underlined); a deep emerald only for
   WhatsApp, done and today; Inter for text and Inter Display for headings (OFL, self-hosted below). Contrast on white:
   ink 17.5:1, 700 10.4:1, 600 7.6:1, 500 4.8:1, 400 3.6:1 (control borders); emerald 600 6.6:1, 500 5.2:1.
   ====================================================================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ui/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ui/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ui/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ui/inter-display-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
:root.fp-crm {
  /* warm stone neutrals */
  --neutral-0: #FFFFFF;   --neutral-25: #FAFAF8;  --neutral-50: #F6F5F2;  --neutral-100: #EFEDE8; --neutral-200: #E6E3DC;
  --neutral-300: #D6D2C8; --neutral-400: #8C877C; --neutral-500: #78716C; --neutral-600: #57534E; --neutral-700: #44403C;
  --neutral-800: #292524; --neutral-900: #1C1917;
  /* warm ink in place of navy (the primary button, the Today hero, tooltips, toasts) */
  --navy-950: #0C0A09;  --navy-900: #1C1917;  --navy-800: #292524;  --navy-700: #3A3633;
  --navy-line: #44403C;  --navy-muted: #A8A29E;  --navy-sub: #D6D3D1;
  /* deep emerald in place of teal: WhatsApp, done, today, the brand dot */
  --teal-50: #ECF5EF;  --teal-100: #D3EADB;  --teal-200: #A7D5B8;  --teal-300: #6FB98C;  --teal-400: #2F9660;
  --teal-500: #0E7F45; --teal-600: #0B6B3A;  --teal-700: #095A30;  --teal-800: #074826;  --teal-900: #05361C;
  --teal-on-navy: #8FD3AE;
  --whatsapp: #0B6B3A;  --whatsapp-hover: #095A30;  --whatsapp-ink: #FFFFFF;
  --po-whatsapp: #0B6B3A;  --po-whatsapp-hover: #095A30;  --po-whatsapp-ink: #FFFFFF;
  /* type: Inter for text and numbers, Inter Display for headings; Arabic stays IBM Plex Sans Arabic */
  --font-latin: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-display: "Inter Display", "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-num: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --icon-stroke-16: 1.75;  --icon-stroke-20: 1.5;
  --tracking-display: -0.022em;  --tracking-label: 0.07em;
  /* weights: the CRM uses two, regular 400 and strong 600, as Review does; page titles (h1) alone are 700 (--weight-title).
     Stylesheets say var(--weight-bold, 700) and var(--weight-medium, 500), so public pages keep 700 and 500. */
  --weight-bold: 600;  --weight-medium: 600;  --weight-title: 700;
  /* links are ink, underlined (crm-editorial.css); focus is ink */
  --text-link: var(--neutral-900);  --text-link-hover: #000000;  --border-focus: var(--neutral-900);
  --surface-overlay: rgba(28, 25, 23, 0.40);
  /* shapes: softer cards */
  --radius-sm: 8px;  --radius-lg: 14px;
  /* person roles, 1.53 (founder, 12 Nov 2026: lead card C): selling side clay, buying blue, renting violet, business slate. No
     green, so WhatsApp keeps its meaning; always with the icon and the word. Ring: the avatar ring and a possible role's dashed outline. */
  --role-sell-bg: #FBE9DF;  --role-sell-ink: #8A3A12;  --role-sell-border: #F3CDB8;  --role-sell-card: #FEF8F4;  --role-sell-ring: #C2410C;
  --role-buy-bg: #E6EEFB;   --role-buy-ink: #1E3A8A;   --role-buy-border: #C5D6F5;  --role-buy-card: #F6F9FE;   --role-buy-ring: #2563EB;
  --role-rent-bg: #F0EAFB;  --role-rent-ink: #5B21B6;  --role-rent-border: #DACCF6;  --role-rent-card: #FAF7FE;  --role-rent-ring: #7C3AED;
  --role-other-bg: #E7ECEF; --role-other-ink: #334155; --role-other-border: #CDD6DD; --role-other-card: #F6F8F9; --role-other-ring: #64748B;
  /* places: one calm stone tile for every section (colour is kept for attention) */
  --sec-today-ink: #44403C;     --sec-today-bg: #EFEDE8;
  --sec-people-ink: #44403C;    --sec-people-bg: #EFEDE8;
  --sec-homes-ink: #44403C;     --sec-homes-bg: #EFEDE8;
  --sec-deals-ink: #44403C;     --sec-deals-bg: #EFEDE8;
  --sec-calendar-ink: #44403C;  --sec-calendar-bg: #EFEDE8;
  --sec-approvals-ink: #44403C; --sec-approvals-bg: #EFEDE8;
  --sec-slate-ink: #44403C;     --sec-slate-bg: #EFEDE8;
  --sec-deals-card: #FAFAF8;    --badge-team-bg: #ECF5EF;  --badge-team-ink: #095A30;
  /* person circles: earthy tints, initials 4.5:1 or better on each */
  --avatar-0-bg: #EDF2EA; --avatar-0-ink: #3D5A36;   /* sage */
  --avatar-1-bg: #F7ECE6; --avatar-1-ink: #8A3F24;   /* clay */
  --avatar-2-bg: #EFEDE8; --avatar-2-ink: #44403C;   /* stone */
  --avatar-3-bg: #F6F0E1; --avatar-3-ink: #6F5210;   /* ochre */
  --avatar-4-bg: #ECEEF0; --avatar-4-ink: #3E4A54;   /* slate */
  /* charts: emerald for you and won, ink for the team line */
  --chart-1: #0E7F45;  --chart-5: #1C1917;  --chart-other: #8C877C;
  /* the person record */
  --po-brief-bg: var(--neutral-0);  --po-rail-bg: var(--neutral-25);  --po-bubble-out: #E9F3EC;
  --po-line-w: 1px;  --po-dot: 8px;  --po-dot-now: 12px;
  --po-shadow-pal: 0 24px 64px -16px rgba(28, 25, 23, 0.30);
  --po-shadow-tile: 0 1px 2px rgba(28, 25, 23, 0.06);
  --po-shadow-tile-hover: 0 8px 20px rgba(28, 25, 23, 0.08);
  --po-scrim: rgba(28, 25, 23, 0.32);
  /* expenses: calm ink shades with one emerald */
  --xe-seg-1: #0B6B3A;  --xe-seg-4: #A8A29E;
  /* elevation in warm ink */
  --elevation-kpi: 0 1px 0 rgba(28, 25, 23, 0.04), 0 10px 24px -12px rgba(28, 25, 23, 0.22);
  --elevation-1: 0 1px 2px rgba(28, 25, 23, 0.05), 0 2px 8px rgba(28, 25, 23, 0.03);
  --elevation-2: 0 4px 12px rgba(28, 25, 23, 0.10), 0 1px 3px rgba(28, 25, 23, 0.06);
  --elevation-3: 0 16px 40px rgba(28, 25, 23, 0.16), 0 2px 6px rgba(28, 25, 23, 0.08);
  --elevation-hero: 0 10px 28px rgba(28, 25, 23, 0.16);
  --kanban-drag-shadow: 0 12px 24px rgba(28, 25, 23, 0.14);
}
/* the CRM palette, dark: warm charcoal surfaces, stone text, the same emerald lifted */
:root.fp-crm.po-dark {
  --text-primary: #F5F5F4;  --text-secondary: #D6D3D1;  --text-tertiary: #A8A29E;  --text-strong-secondary: #E7E5E4;
  --text-placeholder: #8C877C;  --text-disabled: #6B645C;  --text-link: #F5F5F4;  --text-link-hover: #FFFFFF;
  --surface-canvas: #0F0E0D;  --surface-page: #151413;  --surface-sunken: #1A1817;  --surface-raised: #1E1C1A;  --surface-subtle: #262321;
  --surface-selected: #2E2A27;  --surface-dark: #F5F5F4;  --surface-dark-row: #D6D3D1;
  --surface-skeleton: #262321;  --surface-skeleton-shine: #2E2A27;
  --border-subtle: #221F1D;  --border-default: #2E2A27;  --border-strong: #3D3834;  --border-control: #6B645C;  --border-focus: #F5F5F4;
  --primary: #F5F5F4;  --primary-hover: #FFFFFF;  --primary-press: #D6D3D1;  --accent: #F5F5F4;  --accent-subtle: #262321;
  --text-on-dark: #1C1917;  --text-on-dark-secondary: #44403C;
  --success-bg: #10291C;  --success-text: #8FD3AE;  --success-border: #1E4A33;
  --neutral-bg: #262321;  --neutral-text: #D6D3D1;  --neutral-border: #3D3834;
  --role-sell-bg: #33200F; --role-sell-ink: #F4B48C; --role-sell-border: #5A3A22; --role-sell-card: #1E1611; --role-sell-ring: #E07A3F;
  --role-buy-bg: #162440;  --role-buy-ink: #A9C4F5;  --role-buy-border: #2C4370; --role-buy-card: #131A26;  --role-buy-ring: #5B8DEF;
  --role-rent-bg: #251B3D; --role-rent-ink: #C9B3F7; --role-rent-border: #43336B; --role-rent-card: #19152A; --role-rent-ring: #9B6CF0;
  --role-other-bg: #1F262C; --role-other-ink: #C7D1DA; --role-other-border: #36414B; --role-other-card: #1A1817; --role-other-ring: #8A9AAB;
  --po-rail-bg: #0F0E0D;  --po-brief-bg: #1E1C1A;  --po-bubble-in: #262321;  --po-bubble-out: #13301F;
  --po-whatsapp: #1F9D5C;  --po-whatsapp-hover: #26B26A;  --po-whatsapp-ink: #04140B;
  --whatsapp: #1F9D5C;  --whatsapp-hover: #26B26A;  --whatsapp-ink: #04140B;
  --focus-ring: 0 0 0 var(--focus-ring-w) #151413, 0 0 0 4px var(--border-focus);
  --rv-sheet-bg: #1E1C1A;  --surface-overlay: rgba(0, 0, 0, 0.55);  --po-scrim: rgba(0, 0, 0, 0.55);
  --sec-today-ink: #D6D3D1;  --sec-today-bg: #262321;  --sec-people-ink: #D6D3D1;  --sec-people-bg: #262321;
  --sec-homes-ink: #D6D3D1;  --sec-homes-bg: #262321;  --sec-deals-ink: #D6D3D1;   --sec-deals-bg: #262321;
  --sec-calendar-ink: #D6D3D1; --sec-calendar-bg: #262321; --sec-approvals-ink: #D6D3D1; --sec-approvals-bg: #262321;
  --sec-slate-ink: #D6D3D1;  --sec-slate-bg: #262321;
  --xe-seg-1: #8FD3AE;  --xe-seg-2: #D6D3D1;  --xe-seg-3: #A8A29E;  --xe-seg-4: #78716C;  --xe-seg-5: #57534E;  --xe-seg-6: #3D3834;
  --xe-cam-bg: #0C0A09;
  --v2-ink-2: var(--text-strong-secondary);   /* sidebar labels and quiet buttons stay readable on charcoal */
  /* polish pass (11 Nov 2026): person circles, the team badge, deal cards and the ink chart line had no dark values (pale
     pastel discs and an invisible ink line on charcoal); initials are 7:1 or better on each */
  --avatar-0-bg: #1F2A1D; --avatar-0-ink: #B5D3AC;
  --avatar-1-bg: #33221B; --avatar-1-ink: #EDB59C;
  --avatar-2-bg: #262321; --avatar-2-ink: #E7E5E4;
  --avatar-3-bg: #2E2614; --avatar-3-ink: #EBCF85;
  --avatar-4-bg: #1E2428; --avatar-4-ink: #BAC7D2;
  --badge-team-bg: #10291C;  --badge-team-ink: #8FD3AE;  --sec-deals-card: #1A1817;  --chart-5: #E7E5E4;  --chart-other: #A8A29E;
}
