/* Taqfeela — generated from tokens.json */
:root, [data-theme="light"] {
  --gold-50: #fbf9f4; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-100: #f7f2e3; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-200: #f3e7c4; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-300: #f0d994; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-400: #f2cb5a; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-500: #ffc519; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-600: #e0a800; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-700: #ae8200; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-800: #816000; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-900: #5c4500; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --gold-950: #3e2e00; /* Gold ramp — the Taqfeela brand hue. Use semantic tokens in product code; these are for building new semantics. */
  --teal-50: #f5fafa; /* Teal ramp — accent and positive/available states. */
  --teal-100: #e7f3f3; /* Teal ramp — accent and positive/available states. */
  --teal-200: #cde9e9; /* Teal ramp — accent and positive/available states. */
  --teal-300: #a6dcdd; /* Teal ramp — accent and positive/available states. */
  --teal-400: #78d1d3; /* Teal ramp — accent and positive/available states. */
  --teal-500: #2fbabd; /* Teal ramp — accent and positive/available states. */
  --teal-600: #249698; /* Teal ramp — accent and positive/available states. */
  --teal-700: #1b7577; /* Teal ramp — accent and positive/available states. */
  --teal-800: #135859; /* Teal ramp — accent and positive/available states. */
  --teal-900: #0d3f40; /* Teal ramp — accent and positive/available states. */
  --teal-950: #092a2b; /* Teal ramp — accent and positive/available states. */
  --coral-50: #faf5f5; /* Coral ramp — destructive, lost and overdue states. */
  --coral-100: #f4e8e6; /* Coral ramp — destructive, lost and overdue states. */
  --coral-200: #ecceca; /* Coral ramp — destructive, lost and overdue states. */
  --coral-300: #e3a8a1; /* Coral ramp — destructive, lost and overdue states. */
  --coral-400: #dd7b6f; /* Coral ramp — destructive, lost and overdue states. */
  --coral-500: #e25a49; /* Coral ramp — destructive, lost and overdue states. */
  --coral-600: #d0331f; /* Coral ramp — destructive, lost and overdue states. */
  --coral-700: #a32616; /* Coral ramp — destructive, lost and overdue states. */
  --coral-800: #7a1b10; /* Coral ramp — destructive, lost and overdue states. */
  --coral-900: #58130a; /* Coral ramp — destructive, lost and overdue states. */
  --coral-950: #3b0c07; /* Coral ramp — destructive, lost and overdue states. */
  --neutral-0: #ffffff; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-50: #fafafa; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-100: #f5f5f4; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-200: #ecebe9; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-300: #dddcd9; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-400: #b7b4ae; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-500: #969188; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-600: #777269; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-700: #59564f; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-800: #3b3935; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-850: #2c2a27; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-900: #23221f; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --neutral-950: #141311; /* Warm neutral ramp, hue-matched to Ink. All surfaces, borders and text. */
  --surface-page: #fafafa; /* App background behind cards and lists. */
  --surface-card: #ffffff; /* Cards, list rows, tables, sheets — the default content surface. */
  --surface-raised: #ffffff; /* Popovers, dropdowns, sheets stacked above a card. */
  --surface-sunken: #f5f5f4; /* Table headers, inset wells, kanban column backgrounds. */
  --surface-inverse: #141311; /* Inverted blocks: mobile top bar, desktop sidebar, tooltips. */
  --surface-chrome: #141311; /* App chrome: mobile top bar, desktop sidebar. Stays dark in BOTH themes — unlike surface-inverse, which flips to white and would give a dark-mode app a white top bar. */
  --text-on-chrome: #fafafa; /* Text and icons on surface-chrome. */
  --surface-hover: #f5f5f4; /* Row and list-item hover. */
  --surface-selected: #f5fafa; /* Selected row, selected filter, active list item. */
  --surface-brand: #ffc519; /* Primary action fill and brand blocks. Always pair with text-on-brand. */
  --surface-brand-subtle: #f7f2e3; /* Pending/reserved chips, gold callouts, Won-stage column tint. */
  --surface-accent-subtle: #e7f3f3; /* Available/matched chips, info banners. */
  --surface-danger-subtle: #f4e8e6; /* Lost/overdue chips, error banners. */
  --overlay: rgba(20,19,17,0.55); /* Scrim behind modals and bottom sheets. */
  --border-subtle: #ecebe9; /* Dividers between list rows and table cells. */
  --border-default: #dddcd9; /* Input borders, card outlines, chip outlines. */
  --border-strong: #969188; /* Secondary button outline, hovered input, drag handles. Meets 3:1 as a UI boundary. */
  --border-input: #969188; /* Input, select and checkbox borders. Must stay ≥3:1 against the surface — border-default is too faint for a control edge. */
  --border-brand: #e0a800; /* Active gold edge: selected tab underline, brand card outline. */
  --focus-ring: #249698; /* Keyboard focus outline. Never removed, never gold. */
  --text-primary: #141311; /* Body copy, table values, headings. */
  --text-secondary: #59564f; /* Labels, meta lines, secondary column values. */
  --text-tertiary: #777269; /* Timestamps, helper text, counts. Smallest allowed is 12px. */
  --text-disabled: #b7b4ae; /* Disabled control text. Decorative only — never the sole signal. */
  --text-on-brand: #141311; /* Text and icons on surface-brand / action-primary. Ink, never white. */
  --text-on-accent: #ffffff; /* Text on action-accent. */
  --text-on-danger: #ffffff; /* Text on action-danger. */
  --text-on-inverse: #fafafa; /* Text on surface-inverse. */
  --text-link: #1b7577; /* Inline links and clickable record names. */
  --text-brand: #816000; /* Gold text and icons on light surfaces. Raw gold-500 fails contrast as text. */
  --text-success: #1b7577; /* Available, matched, positive delta. */
  --text-warning: #816000; /* Pending, reserved, awaiting approval. */
  --text-danger: #a32616; /* Errors, overdue, lost, destructive labels. */
  --action-primary: #ffc519; /* Primary button fill. One per screen. */
  --action-primary-hover: #e0a800; /* Primary hover. */
  --action-primary-active: #ae8200; /* Primary pressed. */
  --action-neutral: #f5f5f4; /* Tertiary/ghost button fill, segmented control track. */
  --action-neutral-hover: #ecebe9; /* Tertiary hover. */
  --action-accent: #1b7577; /* Accent solid button: Accept match, Log activity. */
  --action-accent-hover: #135859; /* Accent hover. */
  --action-danger: #d0331f; /* Destructive solid button: Delete, Mark Lost. */
  --action-danger-hover: #a32616; /* Destructive hover. */
  --status-new-bg: #ecebe9; /* New / Draft chip background. */
  --status-new-fg: #59564f; /* New / Draft chip text. */
  --status-active-bg: #e7f3f3; /* Available, Contacted, Interested, Matched chips. */
  --status-active-fg: #135859; /* Text on status-active-bg. */
  --status-pending-bg: #f7f2e3; /* Reserved, Visit Scheduled, Negotiation, Awaiting moderation. */
  --status-pending-fg: #5c4500; /* Text on status-pending-bg. */
  --status-won-bg: #ffc519; /* Won / Sold / Contracted — solid gold. The money state. */
  --status-won-fg: #141311; /* Text on status-won-bg. */
  --status-lost-bg: #f4e8e6; /* Lost, Blocked, Cancelled, Rejected chips. */
  --status-lost-fg: #a32616; /* Text on status-lost-bg. */
  --status-overdue-bg: #d0331f; /* Overdue follow-up — solid, demands action. */
  --status-overdue-fg: #ffffff; /* Text on status-overdue-bg. */
  --chart-1: #1b7577; /* Series 1 / primary measure. */
  --chart-2: #ae8200; /* Series 2. Gold is darkened in the light theme — gold-500 only reaches 1.6:1 on white and disappears as a chart mark. */
  --chart-3: #d0331f; /* Series 3. */
  --chart-4: #0d3f40; /* Series 4. */
  --chart-5: #5c4500; /* Series 5. */
  --chart-6: #777269; /* Series 6 / Other. */
  --chart-grid: #ecebe9; /* Gridlines and axis rules. */
  --chart-track: #ecebe9; /* Unfilled portion of bars, meters and progress. */
  --chart-positive: #1b7577; /* Gains, target met. */
  --chart-negative: #d0331f; /* Losses, target missed. */
  --shadow-none: none; /* Flat surfaces inside a card. */
  --shadow-xs: 0 1px 2px rgba(20,19,17,0.06); /* Resting card on surface-page. */
  --shadow-sm: 0 1px 3px rgba(20,19,17,0.09), 0 1px 2px rgba(20,19,17,0.05); /* Hovered card, sticky table header. */
  --shadow-md: 0 4px 12px rgba(20,19,17,0.09); /* Dropdowns, popovers, dragged kanban card. */
  --shadow-lg: 0 12px 32px rgba(20,19,17,0.13); /* Modals. */
  --shadow-sheet: 0 -8px 32px rgba(20,19,17,0.16); /* Mobile bottom sheet and bottom nav. */
  --shadow-focus: 0 0 0 3px rgba(47,186,189,0.32); /* Focus halo, paired with focus-ring. */
}
[data-theme="dark"] {
  --surface-page: #141311;
  --surface-card: #23221f;
  --surface-raised: #2c2a27;
  --surface-sunken: #0e0d0c;
  --surface-inverse: #ffffff;
  --surface-chrome: #0e0d0c;
  --text-on-chrome: #fafafa;
  --surface-hover: #2c2a27;
  --surface-selected: #092a2b;
  --surface-brand: #ffc519;
  --surface-brand-subtle: #3e2e00;
  --surface-accent-subtle: #092a2b;
  --surface-danger-subtle: #3b0c07;
  --overlay: rgba(0,0,0,0.70);
  --border-subtle: #2c2a27;
  --border-default: #3b3935;
  --border-strong: #969188;
  --border-input: #969188;
  --border-brand: #ffc519;
  --focus-ring: #78d1d3;
  --text-primary: #f5f5f4;
  --text-secondary: #b7b4ae;
  --text-tertiary: #969188;
  --text-disabled: #59564f;
  --text-on-brand: #141311;
  --text-on-accent: #141311;
  --text-on-danger: #141311;
  --text-on-inverse: #141311;
  --text-link: #a6dcdd;
  --text-brand: #f2cb5a;
  --text-success: #a6dcdd;
  --text-warning: #f2cb5a;
  --text-danger: #e3a8a1;
  --action-primary: #ffc519;
  --action-primary-hover: #f2cb5a;
  --action-primary-active: #f0d994;
  --action-neutral: #3b3935;
  --action-neutral-hover: #59564f;
  --action-accent: #78d1d3;
  --action-accent-hover: #a6dcdd;
  --action-danger: #dd7b6f;
  --action-danger-hover: #e3a8a1;
  --status-new-bg: #3b3935;
  --status-new-fg: #dddcd9;
  --status-active-bg: #092a2b;
  --status-active-fg: #a6dcdd;
  --status-pending-bg: #3e2e00;
  --status-pending-fg: #f0d994;
  --status-won-bg: #ffc519;
  --status-won-fg: #141311;
  --status-lost-bg: #3b0c07;
  --status-lost-fg: #e3a8a1;
  --status-overdue-bg: #dd7b6f;
  --status-overdue-fg: #141311;
  --chart-1: #78d1d3;
  --chart-2: #ffc519;
  --chart-3: #dd7b6f;
  --chart-4: #cde9e9;
  --chart-5: #f3e7c4;
  --chart-6: #b7b4ae;
  --chart-grid: #3b3935;
  --chart-track: #3b3935;
  --chart-positive: #78d1d3;
  --chart-negative: #dd7b6f;
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.50);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.60);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.60);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.70);
  --shadow-sheet: 0 -8px 32px rgba(0,0,0,0.70);
  --shadow-focus: 0 0 0 3px rgba(120,209,211,0.36);
}
:root {
  --space-0: 0; /* Reset. */
  --space-1: 4px; /* Icon-to-label, chip inner gap. */
  --space-2: 8px; /* Between related controls, chip padding-x. */
  --space-3: 12px; /* List row padding-y, input padding-x. */
  --space-4: 16px; /* Card padding and screen gutter on mobile. The default. */
  --space-5: 20px; /* Between cards in a stack. */
  --space-6: 24px; /* Card padding on desktop, section gap. */
  --space-8: 32px; /* Between major sections. */
  --space-10: 40px; /* Desktop page gutter. */
  --space-12: 48px; /* Empty-state padding. */
  --space-16: 64px; /* Page top/bottom on desktop. */
  --radius-none: 0; /* Table cells, full-bleed media. */
  --radius-sm: 6px; /* Chips, checkboxes, small tags. */
  --radius-md: 8px; /* Buttons, inputs, selects. The default. */
  --radius-lg: 12px; /* Cards, list cards, popovers. */
  --radius-xl: 16px; /* Bottom sheets, modals, unit photo. */
  --radius-2xl: 24px; /* Hero blocks, onboarding panels. */
  --radius-pill: 999px; /* Filter pills, avatars, match-score badge. */
  --size-touch: 44px; /* Minimum touch target. Buttons, rows, nav items, icon buttons. */
  --size-touch-lg: 48px; /* Primary CTA and bottom-sheet actions on mobile. */
  --size-control-sm: 32px; /* Desktop-only dense controls, table inline actions. */
  --size-icon: 20px; /* Default icon in buttons, rows, inputs. */
  --size-icon-sm: 16px; /* Icon inside chips and captions. */
  --size-icon-lg: 24px; /* Nav and toolbar icons. */
  --size-avatar: 36px; /* Agent avatar in list rows and assignment pickers. */
  --size-topbar: 56px; /* Mobile top app bar. */
  --size-bottomnav: 64px; /* Mobile bottom nav, excluding safe-area inset. */
  --size-sidebar: 264px; /* Desktop sidebar, expanded. */
  --size-content-max: 1280px; /* Max content width on desktop. */
  --stroke-hairline: 1px; /* Borders and dividers. */
  --stroke-thick: 2px; /* Active tab underline, selected card edge, chart line. */
  --stroke-focus: 2px; /* Focus outline width, offset by 2px. */
  --z-base: 0; /* Page content. */
  --z-sticky: 10; /* Sticky table header, sticky filter bar. */
  --z-nav: 20; /* Top bar, bottom nav, sidebar. */
  --z-overlay: 30; /* Scrim. */
  --z-sheet: 40; /* Bottom sheet, drawer. */
  --z-modal: 50; /* Modal dialog. */
  --z-toast: 60; /* Toasts — above everything. */
  --font-display: "Chillax", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-wordmark: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  --text-display-xl: 600 48px/54px var(--font-display); /* Marketing hero. Chillax — outside the app only. */
  --text-display-lg: 600 36px/42px var(--font-display); /* Marketing section heads, pitch-deck titles, empty-state headlines. Never in a data screen. */
  --text-display-md: 600 30px/36px var(--font-display); /* Onboarding step titles, feature headings. */
  --text-display-sm: 600 22px/28px var(--font-display); /* Marketing card titles. The smallest size Chillax is allowed — below this its lower x-height costs legibility. */
  --text-h1: 600 24px/30px var(--font-sans); /* Page title: Leads, Opportunities, a unit name. */
  --text-h2: 600 20px/26px var(--font-sans); /* Section title inside a page; sheet title. */
  --text-h3: 600 18px/24px var(--font-sans); /* Card title, unit name in a card. */
  --text-h4: 600 16px/22px var(--font-sans); /* Sub-section, field group header, kanban column header. */
  --text-body-lg: 400 16px/24px var(--font-sans); /* Long-form: notes, descriptions, onboarding copy. */
  --text-body: 400 15px/22px var(--font-sans); /* Default UI text, table cells, list rows. */
  --text-body-sm: 400 13px/20px var(--font-sans); /* Dense tables, secondary meta lines. */
  --text-label: 500 13px/18px var(--font-sans); /* Field labels, button text at sm, nav items. */
  --text-label-strong: 600 13px/18px var(--font-sans); /* Chip text, active nav item, table column header. */
  --text-button: 600 15px/20px var(--font-sans); /* Default button text. */
  --text-caption: 500 12px/16px var(--font-sans); /* Timestamps, helper text, counts. Floor size — never smaller. */
  --text-overline: 600 11px/14px var(--font-sans); /* All-caps group labels. Latin only — never set Arabic in all caps. */
  --text-metric-lg: 600 30px/34px var(--font-sans); /* Dashboard stat tile value. Always tabular numerals. */
  --text-metric: 600 20px/24px var(--font-sans); /* Secondary metric, pipeline column total. */
  --text-price: 600 16px/22px var(--font-sans); /* Unit price, deal value. Tabular numerals, currency after the figure. */
  --text-ar-h1: 600 24px/36px var(--font-arabic); /* Arabic page title. Leading is ~1.45x — Arabic needs more than Latin. */
  --text-ar-h3: 600 18px/28px var(--font-arabic); /* Arabic card title. */
  --text-ar-body: 400 15px/26px var(--font-arabic); /* Arabic body and list rows. Never below 15px — Arabic loses legibility faster than Latin. */
  --text-ar-label: 500 14px/22px var(--font-arabic); /* Arabic field labels and chips. One step larger than the Latin label. */
}
.display-xl {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 54px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 42px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.display-sm {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.h1 {
  font-family: var(--font-sans);
  font-size: 24px;
  line-height: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  letter-spacing: 0;
}
.h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}
.h4 {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
.body-lg {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
}
.body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
}
.body-sm {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
}
.label {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0;
}
.label-strong {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.button {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0;
}
.overline {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.metric-lg {
  font-family: var(--font-sans);
  font-size: 30px;
  line-height: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0;
}
.price {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0;
}
.ar-h1 {
  font-family: var(--font-arabic);
  font-size: 24px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: 0;
}
.ar-h3 {
  font-family: var(--font-arabic);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
}
.ar-body {
  font-family: var(--font-arabic);
  font-size: 15px;
  line-height: 26px;
  font-weight: 400;
  letter-spacing: 0;
}
.ar-label {
  font-family: var(--font-arabic);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
@font-face {
  font-family: "Chillax";
  src: url("fonts/Chillax-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("fonts/Cairo-Arabic-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Cairo";
  src: url("fonts/Cairo-Latin-wght.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2212, U+2215;
}
