/* ==========================================================================
   Fllo — Apple-style finish (loaded last on every page).
   Principles: respond on press, symmetric motion, materials that adapt,
   size-aware typography, and full respect for the user's accessibility
   settings (reduced motion, reduced transparency, increased contrast).
   ========================================================================== */
:root {
  /* Critically damped "spring" feel (no overshoot) and its mirror for exits. */
  --ap-ease-out: cubic-bezier(.32, .72, 0, 1);
  --ap-ease-in: cubic-bezier(.72, 0, 1, .32);
  --ap-press: 90ms;
  --ap-focus: var(--ui-primary, #1877f2);
}

/* ---------- 1. Response: no tap delay, feedback the instant a finger lands ---------- */
html body :is(a, button, [role="button"], [role="tab"], summary, label, select, input[type="checkbox"], input[type="radio"]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
html body :is(
  .btn, .tab, .chip, .filter-chip, .status-option, .choice:not(.sector-choice-disabled), .auth-tab,
  .stg-nav-item, .dsw-nav-item, .profile-menu-row, .rc-tabs button, .quick-actions button,
  .fllo-kanban-status-nav button, .billing-toggle button, .landing-auth-tabs button, .plan-cta,
  .mobile-bottom-nav a, .mobile-bottom-nav button, .fllo-theme-toggle, .dpl-switch, .stg-action,
  .ai-quick-actions button, .ui-more-toggle, .pricing-card .btn, #loginTab, #registerTab,
  #loginForm button[type="submit"], #registerForm button[type="submit"], #demoRequestForm button[type="submit"], [data-language-toggle]
):active:not(:disabled):not([aria-disabled="true"]) {
  transform: scale(.97);
  transition: transform var(--ap-press) ease-out !important;
}
/* Hover lift is a pointer affordance; on touch screens it sticks after a tap. */
@media (hover: none), (pointer: coarse) {
  html body :is(.dash-card, .rc-metric, .report-mini, .evaluation-metric, .dpl-pkg, .stg-user, .campaign-report-card, .pbx-overview-card, .dev-stat):hover { transform: none !important; }
}

/* ---------- 2. Keyboard focus: one clear, consistent ring ---------- */
html body :is(a, button, summary, [role="tab"], [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--ap-focus) !important;
  outline-offset: 2px !important;
}

/* ---------- 3. Motion: anchored origins and symmetric exits ---------- */
/* The profile menu grows out of the avatar that opened it, not from the middle. */
html body .profile-menu-panel { transform-origin: top right; }
html[dir="rtl"] body .profile-menu-panel { transform-origin: top left; }
/* Dialogs leave along the path they arrived on (fade + settle), instead of vanishing. */
@supports (transition-behavior: allow-discrete) {
  html[data-motion="on"] body dialog {
    transition: opacity .18s var(--ap-ease-in), transform .18s var(--ap-ease-in), overlay .18s allow-discrete, display .18s allow-discrete;
  }
  html[data-motion="on"] body dialog:not([open]) { opacity: 0; transform: translateY(8px) scale(.97); }
  html[data-motion="on"] body dialog::backdrop { transition: opacity .18s ease, overlay .18s allow-discrete, display .18s allow-discrete; }
  html[data-motion="on"] body dialog:not([open])::backdrop { opacity: 0; }
}
/* A modal task dims what is behind it; the scrim is soft, not black. */
html body dialog::backdrop { background: rgba(10, 16, 30, .42); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }

/* ---------- 4. Typography: hierarchy without awkward breaks ---------- */
html body :is(h1, h2, .section-title, .hero h1, .rc-hero h2, .stg-hero h2, .dsw-hero h2, .compare-wrap h3) { text-wrap: balance; }
html body :is(p, .sub, .section-copy, .lead-note, .dpl-block-head p) { text-wrap: pretty; }
/* Numbers line up and do not jump while they update. */
html body :is(.rc-metric b, .rc-metric strong, .dash-card b, .metric b, .evaluation-metric b, .plan-price b, .dpl-price b, .dpl-pkg-seats b,
  .dpl-usage b, .dpl-facts dd, table td, table th, time, .lead-phone, .fllo-kanban-count, .count, .badge-count, .stat-value) {
  font-variant-numeric: tabular-nums;
}
/* Latin script: tracking is size-specific — tight for display sizes, neutral for body.
   (Arabic is a connected script, so it never receives letter-spacing.) */
html[lang="en"] body h1 { letter-spacing: -.022em; line-height: 1.12; }
html[lang="en"] body h2 { letter-spacing: -.016em; line-height: 1.2; }
html[lang="en"] body h3 { letter-spacing: -.01em; line-height: 1.3; }
html[lang="ar"] body :is(h1, h2, h3, h4, p, label, button, .btn, .tab) { letter-spacing: normal; }

/* ---------- 5. Reduced motion: gentle cross-fades instead of travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  /* Entrances fade in place; nothing slides, scales or bounces. */
  html body :is(main#appPage .screen.active > *, .stg-hero, .dsw-hero, .stg-section, .stg-section > *, [data-rc-panel], dialog[open],
    .account-security-dialog, .modal, .profile-menu-panel, #appNavbar .card.header) { animation-name: fllo-fade !important; }
  html body :is(.btn, button, .tab, a, [role="tab"]):active { transform: none !important; opacity: .72; }
  html body :is(.dash-card, .rc-metric, .report-mini, .evaluation-metric, .dpl-pkg, .stg-user, .campaign-report-card, .pbx-overview-card, .dev-stat):hover { transform: none !important; }
  html body dialog, html body dialog:not([open]) { transform: none !important; }
  /* Decorative loops on the public pages stop (they include slow ~0.2 Hz oscillations). */
  body[data-public-landing="true"] *, body[data-public-landing="true"] *::before, body[data-public-landing="true"] *::after { animation: none !important; }
}
@keyframes fllo-fade { from { opacity: 0; } }

/* ---------- 6. Reduced transparency: frosted glass becomes solid ---------- */
@media (prefers-reduced-transparency: reduce) {
  html body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .stg-nav, .rc-hero, .rc-panel, .rc-tabs, .stg-hero, .dsw-hero, .mobile-bottom-nav, dialog, .modal, .profile-menu-panel, .dpl-dialog, .account-security-dialog) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    background: #ffffff !important; background-image: none !important;
  }
  html[data-theme="dark"] body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .stg-nav, .rc-hero, .rc-panel, .rc-tabs, .stg-hero, .dsw-hero, .mobile-bottom-nav, dialog, .modal, .profile-menu-panel, .dpl-dialog, .account-security-dialog) { background: #111827 !important; }
  body[data-public-landing="true"] :is(.glass, .nav-inner, .landing-auth-dialog, .ai-chat-panel) {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #0d1526 !important;
  }
  html body dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 16, 30, .6); }
}

/* ---------- 7. Increased contrast: defined edges, stronger text ---------- */
/* :is(main#appPage, #appNavbar, body) lifts these to ID specificity so they win over the glass rims. */
@media (prefers-contrast: more) {
  html body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .stg-nav, .rc-panel, .rc-hero, .rc-tabs, .dpl-pkg, dialog, .modal,
    .mobile-bottom-nav, input:not([type="checkbox"]):not([type="radio"]), select, textarea, .btn-secondary, .chip, .filter-chip, .lead) {
    border: 1px solid #475467 !important;
    box-shadow: none !important;
  }
  html[data-theme="dark"] body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .stg-nav, .rc-panel, .rc-hero, .rc-tabs, .dpl-pkg, dialog, .modal,
    .mobile-bottom-nav, input:not([type="checkbox"]):not([type="radio"]), select, textarea, .btn-secondary, .chip, .filter-chip, .lead) { border-color: #98a2b3 !important; }
  html body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .rc-panel, .rc-hero)::before,
  html body :is(main#appPage, #appNavbar, body) :is(.card, .stg-card, .rc-panel, .rc-hero)::after { opacity: 0 !important; }
  html body :is(main#appPage, body) :is(.sub, .muted, .stg-muted, small, .section-copy, .dpl-block-head p, .stg-hero p) { color: inherit !important; opacity: 1 !important; }
  html body :is(a, button, summary, [role="tab"], [tabindex]):focus-visible { outline-width: 3px !important; }
}

/* ---------- 8. Theme changes ease in rather than flashing (respects reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { transition: background-color .3s ease; }
}

/* ---------- 9. Public page: the brand caret blinks while typing, then rests ---------- */
body[data-public-landing="true"] .brand-type.is-typed::after { animation: none; opacity: 0; transition: opacity .4s ease; }
/* Brand dots play their intro and settle: a perpetual "loading" pulse signals a wait that is not happening.
   The floating notes stop after two drifts (slow ~0.2 Hz oscillation is tiring to watch). */
body[data-public-landing="true"] .brand-dot { animation-iteration-count: 2 !important; }
body[data-public-landing="true"] .ai-note { animation-iteration-count: 2 !important; }

/* ---------- 10. Scroll edges: soft fade only where more content waits (state set by ui-polish.js) ---------- */
html body :is(.rc-tabs, .stg-nav, .fllo-kanban-status-nav, .dsw-nav)[data-edge="start"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
html body :is(.rc-tabs, .stg-nav, .fllo-kanban-status-nav, .dsw-nav)[data-edge="end"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
html[dir="rtl"] body :is(.rc-tabs, .stg-nav, .fllo-kanban-status-nav, .dsw-nav)[data-edge="start"] { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 32px), transparent); }
html[dir="rtl"] body :is(.rc-tabs, .stg-nav, .fllo-kanban-status-nav, .dsw-nav)[data-edge="end"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
html body :is(.rc-tabs, .stg-nav, .fllo-kanban-status-nav, .dsw-nav)[data-edge="middle"] { -webkit-mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, transparent, #000 32px, #000 calc(100% - 32px), transparent); }

/* ==========================================================================
   11. One shape system — concentric radii (inner radius = outer radius − padding)
   28 surfaces · 20 panels · 14 cards & controls · 10 small inner tiles · pill · circle
   ========================================================================== */
:root { --r-surface: 28px; --r-panel: 20px; --r-column: 24px; --r-control: 14px; --r-tile: 10px; }

/* Surfaces */
html body #appNavbar .card.header,
html body :is(main#appPage, body) .card:not(.col),
html body :is(main#appPage, body) :is(.rc-hero, .rc-panel, .stg-card, .dsw-card, .dpl-block.card),
html body #furnitureLeadDetailsPanel.fllo-details-panel,
html body :is(dialog, .modal, .dpl-dialog, .account-security-dialog) { border-radius: var(--r-surface) !important; }

/* Panels: header nav strip (header 28 − padding ≈ 20), tiles, editor sections, menus, notices */
html body #appNavbar .tabs { border-radius: var(--r-panel) !important; padding: 6px !important; }
html body :is(main#appPage, body) :is(.stat, .dash-card, .rc-metric, .report-mini, .evaluation-metric, .fllo-furniture-report, .add-card,
  .ai-float-card, .dpl-pkg, .rc-tabs, .stg-nav, .pbx-overview-card, .campaign-report-card, .dev-stat),
html body #furnitureLeadDetailsPanel :is(.fllo-detail-section, #flloFurniturePanel),
html body :is(.profile-menu-panel, .fllo-entitlement-warning) { border-radius: var(--r-panel) !important; }

/* Kanban column 24, padding 10 → lead card 14 (concentric) */
html body .board .col { border-radius: var(--r-column) !important; }
@media (min-width: 761px) {
  html body .board .col { padding: 10px !important; }
  html body .board .col .col-head { top: -10px !important; margin: -10px -10px 10px !important; padding: 16px 16px 12px !important; }
}

/* Cards & controls: nav tab (strip 20 − padding 6 = 14), lead cards, fields, buttons, segmented choices */
html body #appNavbar .tabs .tab,
html body :is(main#appPage, body, #furnitureLeadDetailsPanel) .lead,
html body :is(main#appPage, #appNavbar, body, #furnitureLeadDetailsPanel) :is(.btn, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .choice, .status-option, .stg-action, .fllo-close-x) { border-radius: var(--r-control) !important; }

/* Small tiles inside a card (lead meta boxes, corner buttons) */
html body :is(main#appPage, body) .lead :is(.fllo-lead-meta-v13 > span, .lead-delete-corner) { border-radius: var(--r-tile) !important; }

/* ==========================================================================
   12. Scrollbars that behave like macOS: inside the shape, faint at rest, clear on hover
   Chromium draws these columns with ::-webkit-scrollbar (scrollbar-color stays "auto"),
   so the track is inset by the corner radius and the thumb is faint until the pointer is over the column.
   ========================================================================== */
html body .board .col::-webkit-scrollbar-track { margin-block: calc(var(--r-column) - 4px) !important; }
html body #furnitureLeadDetailsPanel .fllo-details-body::-webkit-scrollbar-track { margin-block: 8px !important; background: transparent !important; }
html body .board .col::-webkit-scrollbar-thumb,
html body #furnitureLeadDetailsPanel .fllo-details-body::-webkit-scrollbar-thumb { background-color: rgba(127, 127, 140, .2) !important; transition: background-color .2s ease; }
html body .board .col:is(:hover, :focus-within)::-webkit-scrollbar-thumb,
html body #furnitureLeadDetailsPanel .fllo-details-body:is(:hover, :focus-within)::-webkit-scrollbar-thumb { background-color: var(--ui-scroll-thumb, rgba(127, 127, 140, .45)) !important; }
@media (hover: none) {
  html body .board .col::-webkit-scrollbar-thumb,
  html body #furnitureLeadDetailsPanel .fllo-details-body::-webkit-scrollbar-thumb { background-color: var(--ui-scroll-thumb, rgba(127, 127, 140, .45)) !important; }
}
/* Firefox uses the standard properties instead. */
@supports (-moz-appearance: none) {
  html body .board .col, html body #furnitureLeadDetailsPanel .fllo-details-body { scrollbar-color: transparent transparent !important; }
  html body .board .col:is(:hover, :focus-within), html body #furnitureLeadDetailsPanel .fllo-details-body:is(:hover, :focus-within) { scrollbar-color: var(--ui-scroll-thumb) transparent !important; }
}

/* ==========================================================================
   13. Lead editor — one calm sheet: clear hierarchy, labels sit on their field
   ========================================================================== */
html body #furnitureLeadDetailsPanel .fllo-details-title a { font-size: 15px !important; font-weight: 700 !important; font-variant-numeric: tabular-nums; }
html body #furnitureLeadDetailsPanel .fllo-details-title .fllo-mini-campaign-v13 { margin-top: 8px !important; }

/* Spacing scales with the screen: generous on desktop, compact on phones so a full field stays visible under the toolbar. */
@media (min-width: 761px) {
  html body #furnitureLeadDetailsPanel.fllo-details-panel { padding: 24px 24px 20px !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header { padding: 0 0 16px !important; margin-bottom: 16px !important; border-bottom: 1px solid var(--ui-border, rgba(127, 127, 140, .2)) !important; align-items: flex-start !important; gap: 16px !important; }
  html body #furnitureLeadDetailsPanel .fllo-details-title h2 { font-size: 28px !important; line-height: 1.25 !important; margin: 0 0 4px !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(.btn, button):not(.fllo-close-x) { min-height: 40px !important; padding: 10px 16px !important; font-size: 14px !important; line-height: 20px !important; font-weight: 600 !important; box-shadow: none !important; }
}
@media (max-width: 760px) {
  html body #furnitureLeadDetailsPanel > .fllo-details-header { border-bottom: 1px solid var(--ui-border, rgba(127, 127, 140, .2)) !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(.btn, button):not(.fllo-close-x) { min-height: 38px !important; padding: 8px 10px !important; font-size: 13px !important; line-height: 20px !important; font-weight: 600 !important; box-shadow: none !important; white-space: nowrap !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x { width: 38px !important; height: 38px !important; min-height: 38px !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsRelatedBtn { margin-left: 0 !important; }
  html body #furnitureLeadDetailsPanel .fllo-detail-section { padding: 16px 16px 2px !important; }
}
/* Toolbar (visual order from the outer edge): Close · Save · Cancel | Related · Call · WhatsApp.
   One height (40), one radius (14); Save is the single filled button. */
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions { gap: 8px !important; align-items: center !important; flex-wrap: wrap !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn-success { order: 6 !important; background: rgba(18, 183, 106, .12) !important; color: #039855 !important; border: 1px solid rgba(18, 183, 106, .28) !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn-primary { order: 5 !important; background: rgba(46, 144, 250, .12) !important; color: #1570ef !important; border: 1px solid rgba(46, 144, 250, .28) !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsEditBtn { order: 2 !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsRelatedBtn { order: 4 !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCancelBtn { order: 3 !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsSaveBtn { order: 2 !important; background: var(--ui-primary, #1877f2) !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border: 1px solid transparent !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(#leadDetailsRelatedBtn, #leadDetailsCancelBtn) { background: var(--ui-surface-muted, rgba(127, 127, 140, .1)) !important; color: var(--ui-text) !important; border: 1px solid var(--ui-border, rgba(127, 127, 140, .22)) !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x {
  order: 1 !important; width: 40px !important; height: 40px !important; min-height: 40px !important; padding: 0 !important; border-radius: 50% !important;
  font-size: 0 !important; background: var(--ui-surface-muted, rgba(127, 127, 140, .12)) !important; border: 1px solid var(--ui-border, rgba(127, 127, 140, .22)) !important; position: relative;
}
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x::before,
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--ui-text, #101828);
  transform: translate(-50%, -50%) rotate(45deg);
}
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Sections: same shape, same rhythm (padding 20 · title 15/700 · 14px between fields) */
html body #furnitureLeadDetailsPanel .fllo-open-lead-columns { gap: 16px !important; }
html body #furnitureLeadDetailsPanel .fllo-open-lead-column { gap: 16px !important; }
html body #furnitureLeadDetailsPanel .fllo-lead-editor-grid, html body #furnitureLeadDetailsPanel .fllo-lead-editor-shell { gap: 16px !important; }
html body #furnitureLeadDetailsPanel .fllo-detail-section { padding: 20px 20px 6px !important; border: 1px solid var(--ui-border, rgba(127, 127, 140, .18)) !important; margin: 0 !important; }
html body #furnitureLeadDetailsPanel :is(.fllo-open-lead-column, .fllo-lead-editor-grid, .fllo-details-body) > .fllo-detail-section > h3 { font-size: 15px !important; font-weight: 700 !important; line-height: 1.4 !important; margin: 0 0 16px !important; letter-spacing: normal !important; }
html body #furnitureLeadDetailsPanel .fllo-lead-editor-field {
  display: flex !important; flex-direction: column !important; justify-content: flex-start !important; align-items: stretch !important;
  gap: 6px !important; height: auto !important; min-height: 0 !important; margin: 0 0 16px !important;
}
html body #furnitureLeadDetailsPanel .fllo-lead-editor-field > label { font-size: 13px !important; font-weight: 600 !important; line-height: 1.4 !important; padding: 0 !important; margin: 0 !important; color: var(--ui-muted, #667085) !important; }
html body #furnitureLeadDetailsPanel :is(.fllo-lead-editor-field, .fllo-open-lead-form-actions) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100% !important; max-width: none !important; min-height: 44px !important; padding: 10px 16px !important; font-size: 14px !important; margin: 0 !important; box-sizing: border-box !important;
}
html body #furnitureLeadDetailsPanel .fllo-lead-editor-field textarea { min-height: 88px !important; resize: vertical; }
html body #furnitureLeadDetailsPanel .fllo-lead-editor-field + .lead-note { margin: -6px 0 16px !important; font-size: 12px !important; color: var(--ui-muted, #667085) !important; }
/* Currency lives inside its field, not floating beside it. */
html body #furnitureLeadDetailsPanel .fllo-iqd-input { position: relative !important; display: block !important; width: 100% !important; }
html body #furnitureLeadDetailsPanel .fllo-iqd-input > input { padding-inline-end: 56px !important; font-variant-numeric: tabular-nums; }
html body #furnitureLeadDetailsPanel .fllo-iqd-input > .fllo-iqd-suffix {
  position: absolute !important; inset-inline-end: 14px !important; top: 50% !important; transform: translateY(-50%) !important;
  margin: 0 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .02em; color: var(--ui-muted, #667085) !important; pointer-events: none;
}
/* Rows with a control + its action (owner, add note, calls): the field takes the room, the button keeps its size. */
html body #furnitureLeadDetailsPanel .fllo-open-lead-form-actions { display: flex !important; gap: 8px !important; align-items: flex-start !important; margin: 0 0 16px !important; flex-wrap: wrap; }
html body #furnitureLeadDetailsPanel .fllo-open-lead-form-actions > :is(select, input, textarea) { flex: 1 1 220px !important; width: auto !important; }
html body #furnitureLeadDetailsPanel .fllo-open-lead-form-actions > .btn { min-height: 44px !important; padding: 0 16px !important; flex: 0 0 auto; }
html body #furnitureLeadDetailsPanel .fllo-open-lead-form-actions > textarea { min-height: 44px !important; }

html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn-success { color: #47cd89 !important; -webkit-text-fill-color: #47cd89 !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn-primary { color: #84caff !important; -webkit-text-fill-color: #84caff !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(#leadDetailsRelatedBtn, #leadDetailsCancelBtn) { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .12) !important; color: #e4e7ec !important; -webkit-text-fill-color: #e4e7ec !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x { background: rgba(255, 255, 255, .08) !important; border-color: rgba(255, 255, 255, .14) !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x::before,
html[data-theme="dark"] body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x::after { background: #e4e7ec; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel .fllo-detail-section { background: rgba(255, 255, 255, .03) !important; border-color: rgba(255, 255, 255, .08) !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel .fllo-lead-editor-field > label { color: #98a2b3 !important; -webkit-text-fill-color: #98a2b3 !important; }

/* ==========================================================================
   14. Subscription notice — a tinted panel in the same shape, readable in both themes
   ========================================================================== */
html body .fllo-entitlement-warning { padding: 16px 20px !important; gap: 16px !important; align-items: center !important; border: 1px solid #fedf89 !important; background: #fffaeb !important; box-shadow: none !important; }
html body .fllo-entitlement-warning strong { display: block; font-size: 14px !important; font-weight: 700 !important; color: #93370d !important; -webkit-text-fill-color: #93370d !important; margin-bottom: 2px; }
html body .fllo-entitlement-warning span { font-size: 13px !important; color: #b54708 !important; -webkit-text-fill-color: #b54708 !important; font-variant-numeric: tabular-nums; }
html body .fllo-entitlement-warning button { width: 32px !important; height: 32px !important; min-height: 32px !important; border-radius: 50% !important; display: grid !important; place-items: center !important; flex: 0 0 auto; }
html body .fllo-entitlement-warning.is-urgent { border-color: #fda29b !important; background: #fef3f2 !important; }
html body .fllo-entitlement-warning.is-urgent strong { color: #912018 !important; -webkit-text-fill-color: #912018 !important; }
html body .fllo-entitlement-warning.is-urgent span { color: #b42318 !important; -webkit-text-fill-color: #b42318 !important; }
html[data-theme="dark"] body .fllo-entitlement-warning { background: rgba(247, 144, 9, .1) !important; border-color: rgba(247, 144, 9, .32) !important; }
html[data-theme="dark"] body .fllo-entitlement-warning strong { color: #fec84b !important; -webkit-text-fill-color: #fec84b !important; }
html[data-theme="dark"] body .fllo-entitlement-warning span { color: #fedf89 !important; -webkit-text-fill-color: #fedf89 !important; }
html[data-theme="dark"] body .fllo-entitlement-warning button { color: #fedf89 !important; background: rgba(255, 255, 255, .06) !important; border: 1px solid rgba(255, 255, 255, .12) !important; }
html[data-theme="dark"] body .fllo-entitlement-warning.is-urgent { background: rgba(240, 68, 56, .1) !important; border-color: rgba(240, 68, 56, .32) !important; }
html[data-theme="dark"] body .fllo-entitlement-warning.is-urgent strong { color: #fda29b !important; -webkit-text-fill-color: #fda29b !important; }
html[data-theme="dark"] body .fllo-entitlement-warning.is-urgent span { color: #fecdca !important; -webkit-text-fill-color: #fecdca !important; }
/* Remaining outliers on the same scale */
html body :is(main#appPage, body) #flloLeadBrowser.fllo-lead-browser { border-radius: var(--r-surface) !important; }
html body :is(main#appPage, body) :is(#runAiBtn, #toggleAiPanel, #flloBoardViewBtn, #flloListViewBtn) { border-radius: var(--r-control) !important; }
html body :is(main#appPage, body) .ai-orb { border-radius: var(--r-control) !important; }
html body #furnitureLeadDetailsPanel .fllo-details-title .fllo-mini-campaign-v13 > span { margin-inline-end: 4px; }
/* A clear gap separates the decision group (Close · Save · Cancel) from the communication group. */
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCancelBtn { margin-left: 0 !important; margin-right: 0 !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsRelatedBtn { margin-left: 16px !important; margin-right: 0 !important; }
html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn { margin: 0 !important; }

/* Same scale on every page (outliers found by measuring each page) */
/* Panels — 20 */
html body :is(main#appPage, body) :is(.ai-box, .fllo-filter-bar, .report-table-wrap, .fllo-product-permissions, .fllo-products-table-wrap,
  .evaluation-rating, .pbx-loading-block, .dsw-nav-list, .dev-management-master, .dev-card, .dev-subscription-block, .dev-stats) { border-radius: var(--r-panel) !important; }
/* Cards & controls — 14 (strip/nav 20 − padding 6) */
html body :is(main#appPage, body) :is(.rc-tabs button, .stg-nav-item, .dsw-nav-item, .rc-hero-side, .campaign-card-note, .fllo-product-permission-user,
  .fllo-products-pagination, .dev-company-row, .dev-detail-fields, .dev-permission-disclosure, .pbx-dialer-display) { border-radius: var(--r-control) !important; }
/* Small inner tiles — 10 */
html body :is(main#appPage, body) :is(.stg-nav-icon, .dsw-nav-icon, .dev-mono, .dev-tag, .dev-user-fields) { border-radius: var(--r-tile) !important; }
html body :is(main#appPage, body) .fllo-pbx-meta > div { border-radius: var(--r-control) !important; }

/* ==========================================================================
   15. One spacing and control system
   Spacing: a 4pt grid (4 · 8 · 12 · 16 · 20 · 24 · 32 · 40 · 48) with 2 / 6 / 10
   as half steps inside tight components. Every source stylesheet was snapped to it.
   Controls: three heights only — 44 regular (buttons, fields, segmented, nav),
   32 compact (chips and actions inside a card), 48 large (sign-in form).
   Icon buttons are 44 circles. Fields are 16px on phones so iOS never zooms.
   ========================================================================== */
:root { --h-control: 44px; --h-compact: 32px; --h-large: 48px; --s-page: 32px; }

/* Page margins: 32 on desktop, 16 on phones (the iPhone standard) */
@media (min-width: 761px) and (max-width: 1899px) { html body .app { padding-inline: var(--s-page) !important; } }
@media (max-width: 760px) { html body .app { padding-inline: 16px !important; padding-left: max(16px, env(safe-area-inset-left)) !important; padding-right: max(16px, env(safe-area-inset-right)) !important; } }

/* Regular controls — 44 */
html body :is(main#appPage, #appNavbar, body) .btn:not(.fllo-close-x),
html body :is(#runAiBtn, #toggleAiPanel, #flloBoardViewBtn, #flloListViewBtn) {
  min-height: var(--h-control) !important; padding: 0 16px !important; line-height: 20px !important;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
html body :is(main#appPage, body, #furnitureLeadDetailsPanel) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select) {
  min-height: var(--h-control) !important; height: var(--h-control); padding: 0 16px !important; line-height: 20px !important; font-size: 15px;
}
html body :is(main#appPage, body, #furnitureLeadDetailsPanel) textarea { padding: 12px 16px !important; line-height: 1.5 !important; font-size: 15px; }
html body :is(main#appPage, body) label { margin-bottom: 8px; }

/* Header navigation and segmented tabs: 44 inside a 6px track → 56 */
html body #appNavbar .card.header .tabs { padding: 6px !important; gap: 4px !important; }
html body #appNavbar .card.header .tab { height: var(--h-control) !important; min-height: var(--h-control) !important; padding: 0 16px !important; gap: 8px !important; }
html body .rc-tabs { padding: 6px !important; gap: 4px !important; }
html body .rc-tabs :is(button, a) { min-height: var(--h-control) !important; height: var(--h-control) !important; padding: 0 16px !important; }
html body .fllo-view-toggle { padding: 4px !important; gap: 4px !important; }
html body .fllo-view-toggle :is(button, .btn) { min-height: 36px !important; height: 36px !important; border-radius: 10px !important; }

/* Icon buttons — 44 circles, everywhere */
html body :is(#flloThemeToggle, #profileMenuTrigger, #supportBubble, #flloFurnitureHelpBtn) { width: var(--h-control) !important; height: var(--h-control) !important; min-width: var(--h-control) !important; min-height: var(--h-control) !important; padding: 0 !important; }

/* Compact controls inside a card — 32 */
html body .lead :is(.fllo-open-details-v13, .quick-actions button, .q, .b, .s, .l) { min-height: var(--h-compact) !important; height: var(--h-compact); padding: 0 12px !important; line-height: 1 !important; display: inline-flex; align-items: center; justify-content: center; }
/* The delete corner stays a quiet 28px tile (owner contract). No enlarged hit area: it sits beside Edit,
   and an invisible overlay there would steal Edit taps (opened the delete dialog — fixed 2026-10-03). */
html body .lead .lead-delete-corner { width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; }

/* Sign-in: one large size for tabs, fields and the main button */
html body .auth-card :is(input:not([type="checkbox"]):not([type="radio"]), select) { min-height: var(--h-large) !important; height: var(--h-large); padding: 0 16px !important; }
html body .auth-card button[type="submit"], html body .auth-card form > button:last-child { min-height: var(--h-large) !important; padding: 0 20px !important; }
html body .auth-card .tabs { padding: 6px !important; gap: 4px !important; }
html body .auth-card .tabs :is(button, .tab) { min-height: var(--h-control) !important; height: var(--h-control) !important; padding: 0 16px !important; }
html body .auth-card { padding: 32px !important; }

/* Phones: fields at 16px so Safari never zooms on focus; buttons stay 44 */
@media (max-width: 760px) {
  html body :is(main#appPage, body, #furnitureLeadDetailsPanel) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: 16px !important; }
}

/* Lead editor: Apple uses a scroll-edge, not a hard rule, under floating chrome.
   The divider appears only once the form has scrolled under the toolbar (ui-polish.js sets data-scrolled). */
html body #furnitureLeadDetailsPanel > .fllo-details-header { border-bottom-color: transparent !important; transition: border-color .2s ease, box-shadow .2s ease; }
html body #furnitureLeadDetailsPanel[data-scrolled] > .fllo-details-header { border-bottom-color: var(--ui-border, rgba(127, 127, 140, .2)) !important; box-shadow: 0 10px 16px -14px rgba(0, 0, 0, .35); }

/* Rhythm: a subtitle sits 8 under its heading and 16 above what follows */
:where(main#appPage) .sub { margin-top: 0; margin-bottom: 16px; }
html body #flloLeadBrowser.fllo-lead-browser { padding: 20px !important; margin: 8px 0 12px !important; }
html body .auth-card :is(button, .btn):not(.tab) { border-radius: var(--r-control) !important; }
html body :is(#loginTab, #registerTab, #runAiBtn, #toggleAiPanel, #flloBoardViewBtn, #flloListViewBtn) { font-size: 14px !important; font-weight: 600 !important; }
html body > .language-toggle button { min-height: var(--h-compact) !important; padding: 0 12px !important; }

/* Lead editor — grouped sections with a real inset (16 phone / 20 desktop), label 8 above its field,
   helper notes hug the field they describe, toolbar on the same 44 control height. */
html body #furnitureLeadDetailsPanel :is(.fllo-lead-editor-grid, .fllo-open-lead-column, .fllo-details-body) > .fllo-detail-section.fllo-detail-section { padding: 20px 20px 4px !important; border-radius: var(--r-panel) !important; }
html body #furnitureLeadDetailsPanel[data-editing] .fllo-lead-editor-field.fllo-lead-editor-field { gap: 8px !important; }
html body #furnitureLeadDetailsPanel .fllo-detail-section .lead-note { margin: -8px 0 16px !important; line-height: 1.4 !important; }
html body #furnitureLeadDetailsPanel.fllo-details-panel > .fllo-details-header.fllo-details-header { border-bottom: 1px solid transparent !important; }
html body #furnitureLeadDetailsPanel.fllo-details-panel[data-scrolled] > .fllo-details-header.fllo-details-header { border-bottom-color: var(--ui-border, rgba(127, 127, 140, .2)) !important; box-shadow: 0 12px 16px -16px rgba(0, 0, 0, .45) !important; }
@media (min-width: 761px) {
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(.btn, button):not(.fllo-close-x).btn { min-height: var(--h-control) !important; height: var(--h-control) !important; padding: 0 16px !important; margin-block: 0 !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > :is(.btn, button):not(#leadDetailsRelatedBtn).btn { margin-inline: 0 !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > #leadDetailsCloseBtn.fllo-close-x.fllo-close-x { width: var(--h-control) !important; height: var(--h-control) !important; min-height: var(--h-control) !important; }
  html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions { gap: 8px !important; align-items: center !important; }
}
@media (max-width: 760px) {
  html body #furnitureLeadDetailsPanel :is(.fllo-lead-editor-grid, .fllo-open-lead-column, .fllo-details-body) > .fllo-detail-section.fllo-detail-section { padding: 16px 16px 0 !important; }
}
html body #furnitureLeadDetailsPanel #leadDetailCampaignAutoFillInfo.lead-note { margin: -8px 0 16px !important; line-height: 1.4 !important; }
@media (min-width: 761px) { html body #furnitureLeadDetailsPanel > .fllo-details-header .fllo-detail-actions > a.btn.btn { line-height: 42px !important; } }

/* Board / List: one segmented control (track 4 · segments 36 · radius 14 − 4 = 10), not two loose buttons */
html body #flloLeadBrowser .fllo-view-toggle { display: inline-flex; padding: 4px !important; gap: 4px !important; border-radius: var(--r-control) !important; background: var(--ui-surface-muted, rgba(127, 127, 140, .1)) !important; border: 1px solid var(--ui-border, rgba(127, 127, 140, .2)) !important; width: max-content; }
html body #flloLeadBrowser .fllo-view-toggle :is(#flloBoardViewBtn, #flloListViewBtn) { min-height: 36px !important; height: 36px !important; padding: 0 16px !important; border-radius: var(--r-tile) !important; border: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--ui-muted) !important; }
html body #flloLeadBrowser .fllo-view-toggle :is(#flloBoardViewBtn, #flloListViewBtn).active { background: var(--ui-surface, #fff) !important; color: var(--ui-text) !important; box-shadow: 0 1px 3px rgba(16, 24, 40, .12) !important; }
html[data-theme="dark"] body #flloLeadBrowser .fllo-view-toggle :is(#flloBoardViewBtn, #flloListViewBtn).active { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }
html body #flloLeadBrowser .fllo-view-toggle :is(#flloBoardViewBtn, #flloListViewBtn) { margin: 0 !important; }
html body #flloLeadBrowser .fllo-view-toggle { align-items: center !important; height: auto !important; }

/* Swipe strips show their extent with the edge fade (section 10), not a scrollbar — as on iOS */
html body :is(.fllo-kanban-status-nav, .rc-tabs, .stg-nav, .dsw-nav) { scrollbar-width: none; }
html body :is(.fllo-kanban-status-nav, .rc-tabs, .stg-nav, .dsw-nav)::-webkit-scrollbar { display: none; }

/* ==========================================================================
   16. Liquid glass fields, aligned Board/List control, refined column headers
   ========================================================================== */

/* Lead editor fields: a translucent glass well — soft fill, light catching the top edge,
   a hairline instead of a hard outline, and a blue glow (not a thicker line) on focus. */
html body #furnitureLeadDetailsPanel.fllo-details-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):not(:disabled),
html body #furnitureLeadDetailsPanel.fllo-details-panel[data-editing] .fllo-lead-editor-field.fllo-lead-editor-field :is(input, select, textarea):not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .56)) !important;
  border: 1px solid rgba(15, 23, 42, .09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(15, 23, 42, .04), 0 1px 2px rgba(15, 23, 42, .05) !important;
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}
html[data-theme="dark"] body #furnitureLeadDetailsPanel.fllo-details-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):not(:disabled),
html[data-theme="dark"] body #furnitureLeadDetailsPanel.fllo-details-panel[data-editing] .fllo-lead-editor-field.fllo-lead-editor-field :is(input, select, textarea):not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)) !important;
  border: 1px solid rgba(255, 255, 255, .09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .28), 0 1px 2px rgba(0, 0, 0, .25) !important;
  color: #f2f4f7 !important; -webkit-text-fill-color: #f2f4f7 !important;
}
html body #furnitureLeadDetailsPanel.fllo-details-panel :is(input, select, textarea):not(:disabled):hover { border-color: rgba(46, 144, 250, .35) !important; }
html body #furnitureLeadDetailsPanel.fllo-details-panel :is(input, select, textarea):not(:disabled):focus,
html body #furnitureLeadDetailsPanel.fllo-details-panel[data-editing] .fllo-lead-editor-field.fllo-lead-editor-field :is(input, select, textarea):not(:disabled):focus {
  outline: none !important; border-color: rgba(46, 144, 250, .7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 4px rgba(46, 144, 250, .18), 0 6px 18px -8px rgba(46, 144, 250, .45) !important;
}
html[data-theme="dark"] body #furnitureLeadDetailsPanel.fllo-details-panel :is(input, select, textarea):not(:disabled):focus { background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)) !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel.fllo-details-panel :is(input, textarea)::placeholder { color: rgba(255, 255, 255, .32) !important; -webkit-text-fill-color: rgba(255, 255, 255, .32) !important; }
/* Sections become the frosted layer the wells sit in (one material level up, never light-on-light) */
html[data-theme="dark"] body #furnitureLeadDetailsPanel :is(.fllo-lead-editor-grid, .fllo-open-lead-column, .fllo-details-body) > .fllo-detail-section.fllo-detail-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)) !important;
  border: 1px solid rgba(255, 255, 255, .07) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}
@media (prefers-reduced-transparency: reduce) {
  html body #furnitureLeadDetailsPanel.fllo-details-panel :is(input, select, textarea) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* Board / List: exactly the field height (44 with its hairline) and on the fields' baseline */
html body #flloLeadBrowser .fllo-view-toggle { box-sizing: border-box !important; height: var(--h-control) !important; min-height: var(--h-control) !important; padding: 4px !important; margin: 0 !important; align-self: end !important; }
html body #flloLeadBrowser .fllo-view-toggle :is(#flloBoardViewBtn, #flloListViewBtn) { height: 34px !important; min-height: 34px !important; }

/* Kanban column headers — quiet and typographic (Reminders / Linear style):
   the header is the column's own material, not a coloured band. Status is a small ring icon,
   the title is semibold, the count is a muted number beside it. Cards scroll under a frosted edge. */
html body .board .col[data-board-status="new"] { --st: 46, 144, 250; }
html body .board .col[data-board-status="qualified"] { --st: 134, 94, 255; }
html body .board .col[data-board-status="visit"] { --st: 247, 144, 9; }
html body .board .col[data-board-status="sold"] { --st: 23, 178, 106; }
html body .board .col[data-board-status="lost"] { --st: 240, 68, 56; }
html body .board .col .col-head {
  display: flex !important; align-items: center !important; justify-content: flex-start !important; gap: 8px !important;
  min-height: 52px !important; box-sizing: border-box !important;
  background: color-mix(in srgb, var(--ui-surface, #fff) 86%, transparent) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 23, 42, .06) !important;
  border-radius: var(--r-column) var(--r-column) 0 0 !important; box-shadow: none !important;
}
html[data-theme="dark"] body .board .col .col-head { background: rgba(17, 25, 44, .82) !important; border-bottom-color: rgba(255, 255, 255, .06) !important; }
@media (min-width: 761px) { html body .board .col .col-head { padding: 12px 16px !important; } }
html body .board .col .col-head .col-title { display: flex !important; align-items: center !important; gap: 10px !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: normal !important; line-height: 1.3 !important; color: var(--ui-text) !important; min-width: 0; }
/* Status ring: a 14px circle outlined in the status colour with a solid centre */
html body .board .col .col-head .col-title .dot {
  width: 14px !important; height: 14px !important; border-radius: 50% !important; flex: none; box-sizing: border-box !important;
  background: radial-gradient(circle, rgb(var(--st)) 0 3px, transparent 3.5px) !important;
  border: 2px solid rgb(var(--st)) !important; box-shadow: none !important;
}
html body .board .col .col-head .count {
  min-width: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important;
  font-size: 15px !important; font-weight: 500 !important; font-variant-numeric: tabular-nums; line-height: 1.3 !important;
  color: var(--ui-muted, #667085) !important;
}
html[data-theme="dark"] body .board .col .col-head .count { color: rgba(255, 255, 255, .45) !important; background: none !important; }
/* The scrollbar starts below the header, so it never runs beside the title */
@media (min-width: 761px) { html body .board .col::-webkit-scrollbar-track { margin-top: 54px !important; margin-bottom: 20px !important; } }
html body #flloLeadBrowser .fllo-lead-browser-row :is(input, select) { margin: 0 !important; }
html body #flloLeadBrowser .fllo-lead-browser-row label { margin-bottom: 8px !important; }
/* Header follows the reading direction (cards are right-aligned in Arabic), and the ring keeps its colour in dark mode */
html[dir="rtl"] body .board .col .col-head { direction: rtl !important; }
html[data-theme] body .board .col .col-head .col-title .dot.dot { border: 2px solid rgb(var(--st)) !important; background: radial-gradient(circle, rgb(var(--st)) 0 3px, transparent 3.5px) !important; }

/* Column header, seamless: the header band is painted by the column itself (fixed to the box, full width),
   so it also runs under the scrollbar gutter — no notch beside the scrollbar, corners follow the column's curve.
   The sticky header carries the same opaque colour so cards still slide cleanly beneath it. */
:root { --colhead-bg: #ffffff; --colhead-line: rgba(15, 23, 42, .07); }
html[data-theme="dark"] { --colhead-bg: #111a2e; --colhead-line: rgba(255, 255, 255, .07); }
@media (min-width: 761px) {
  html body main#appPage:not(#lg-x):not(#lg-y) .board .col {
    background-image: linear-gradient(to bottom, var(--colhead-bg) 0 52px, var(--colhead-line) 52px 53px, transparent 53px),
      linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02)) !important;
    background-repeat: no-repeat !important; background-attachment: scroll !important;
  }
  html:not([data-theme="dark"]) body main#appPage:not(#lg-x):not(#lg-y) .board .col {
    background-image: linear-gradient(to bottom, var(--colhead-bg) 0 52px, var(--colhead-line) 52px 53px, transparent 53px),
      linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7)) !important;
  }
  html body main#appPage:not(#lg-x):not(#lg-y) .board .col .col-head.col-head, html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col .col-head.col-head {
    height: 52px !important; min-height: 52px !important; background: var(--colhead-bg) !important;
    -webkit-backdrop-filter: none; backdrop-filter: none; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  }
}

/* Status icons tell the pipeline story — each stage fills a little more (Linear-style progress glyphs):
   New = dashed ring · Qualified = quarter · Visit = half · Sold = full with a check · Lost = full with a cross */
html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col .col-head .col-title .dot.dot {
  width: 16px !important; height: 16px !important; padding: 2px !important; box-sizing: border-box !important;
  border: 2px solid rgb(var(--st)) !important; border-radius: 50% !important; box-shadow: none !important;
  background: conic-gradient(rgb(var(--st)) 0 var(--fill, 0%), transparent 0) content-box !important;
}
html body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="new"] .col-head .dot.dot { border-style: dashed !important; --fill: 0%; }
html body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="qualified"] .col-head .dot.dot { --fill: 25%; }
html body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="visit"] .col-head .dot.dot { --fill: 50%; }
html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col:is([data-board-status="sold"], [data-board-status="lost"]) .col-head .col-title .dot.dot { padding: 0 !important; background-color: rgb(var(--st)) !important; background-position: center !important; background-repeat: no-repeat !important; background-size: 10px 10px !important; background-clip: border-box !important; }
html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="sold"] .col-head .col-title .dot.dot { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.2 5.2l1.9 1.9 3.8-4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }
html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="lost"] .col-head .col-title .dot.dot { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3l4 4M7 3l-4 4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") !important; }
/* The count reads as a quiet capsule, the same family as the stage glyph */
html body main#appPage:not(#lg-x):not(#lg-y) .board .col .col-head .count.count { min-width: 28px !important; height: 22px !important; padding: 0 8px !important; border-radius: 999px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; font-size: 12.5px !important; font-weight: 600 !important; background: rgba(var(--st), .1) !important; color: rgb(var(--st)) !important; border: 0 !important; }
html[data-theme="dark"] body main#appPage:not(#lg-x):not(#lg-y) .board .col .col-head .count.count { background: rgba(var(--st), .16) !important; color: rgba(255, 255, 255, .85) !important; }
html[data-theme] body main#appPage:not(#lg-x):not(#lg-y) .board .col[data-board-status="new"] .col-head .col-title .dot.dot { border-style: dashed !important; }

/* ==========================================================================
   17. No browser-default controls left: checkbox, radio, select chevron, date/time
       picker, number spinners, search clear, file button, disclosure marker, page
       scrollbar, text selection — plus the Fllo banner and alert sheet that replace
       alert / confirm / prompt (js/fllo-dialogs.js).
   ========================================================================== */
:root {
  --ctl-accent: #2e90fa; --ctl-accent-strong: #1570ef;
  --ctl-box-bg: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .7));
  --ctl-box-border: rgba(15, 23, 42, .2); --ctl-box-hover: rgba(46, 144, 250, .6);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23667085' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='2.5' fill='none' stroke='%23667085' stroke-width='1.3'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3' stroke='%23667085' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --clk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%23667085' stroke-width='1.3'/%3E%3Cpath d='M8 5v3.2l2 1.3' fill='none' stroke='%23667085' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2L9.4 3.8' fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --dash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6h6' stroke='white' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
  accent-color: var(--ctl-accent);
}
html[data-theme="dark"] {
  --ctl-box-bg: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  --ctl-box-border: rgba(255, 255, 255, .22); --ctl-box-hover: rgba(83, 177, 253, .7);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%2398a2b3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='2.5' fill='none' stroke='%2398a2b3' stroke-width='1.3'/%3E%3Cpath d='M2.5 6.5h11M5.5 2v3M10.5 2v3' stroke='%2398a2b3' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  --clk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='5.75' fill='none' stroke='%2398a2b3' stroke-width='1.3'/%3E%3Cpath d='M8 5v3.2l2 1.3' fill='none' stroke='%2398a2b3' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* Checkbox — a 20px rounded tile; fills with the accent and draws a check, with a small spring on press */
html body input[type="checkbox"]:not(#fx):not(#fy) {
  -webkit-appearance: none; appearance: none; flex: none; box-sizing: border-box !important;
  width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; margin: 0; padding: 0 !important;
  border-radius: 6px !important; border: 1.5px solid var(--ctl-box-border) !important;
  background: var(--ctl-box-bg) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(15, 23, 42, .08) !important;
  display: inline-grid; place-content: center; vertical-align: middle; cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .1s ease;
}
html body input[type="checkbox"]:not(#fx):not(#fy):hover:not(:disabled) { border-color: var(--ctl-box-hover) !important; }
html body input[type="checkbox"]:not(#fx):not(#fy):active:not(:disabled) { transform: scale(.9); }
html body input[type="checkbox"]:not(#fx):not(#fy):is(:checked, :indeterminate) {
  border-color: transparent !important;
  background: var(--check) center / 14px 14px no-repeat, linear-gradient(180deg, var(--ctl-accent), var(--ctl-accent-strong)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 2px 6px -1px rgba(21, 112, 239, .5) !important;
}
html body input[type="checkbox"]:not(#fx):not(#fy):indeterminate { background: var(--dash) center / 14px 14px no-repeat, linear-gradient(180deg, var(--ctl-accent), var(--ctl-accent-strong)) !important; }
html body input[type="checkbox"]:not(#fx):not(#fy):focus-visible { outline: none !important; box-shadow: 0 0 0 4px rgba(46, 144, 250, .28) !important; }
html body input[type="checkbox"]:not(#fx):not(#fy):disabled { opacity: .45; cursor: not-allowed; }

/* Radio — the same tile as a circle with a white centre */
html body input[type="radio"]:not(#fx):not(#fy) {
  -webkit-appearance: none; appearance: none; flex: none; box-sizing: border-box !important;
  width: 20px !important; height: 20px !important; margin: 0; padding: 0 !important; border-radius: 50% !important;
  border: 1.5px solid var(--ctl-box-border) !important; background: var(--ctl-box-bg) !important;
  display: inline-grid; place-content: center; vertical-align: middle; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .1s ease;
}
html body input[type="radio"]:not(#fx):not(#fy):hover:not(:disabled) { border-color: var(--ctl-box-hover) !important; }
html body input[type="radio"]:not(#fx):not(#fy):active:not(:disabled) { transform: scale(.9); }
html body input[type="radio"]:not(#fx):not(#fy):checked { border-color: transparent !important; background: radial-gradient(circle, #fff 0 3.5px, transparent 4px), linear-gradient(180deg, var(--ctl-accent), var(--ctl-accent-strong)) !important; box-shadow: 0 2px 6px -1px rgba(21, 112, 239, .5) !important; }
html body input[type="radio"]:not(#fx):not(#fy):focus-visible { outline: none !important; box-shadow: 0 0 0 4px rgba(46, 144, 250, .28) !important; }

/* Select — the site's own chevron at the reading-end edge, never the browser arrow */
html body select:not([multiple]):not([size]):not(#fx):not(#fy):not(#fz) {
  -webkit-appearance: none !important; appearance: none !important;
  background-image: var(--chev) !important; background-repeat: no-repeat !important; background-size: 12px 12px !important;
  background-position: right 14px center !important; padding-right: 36px !important;
}
html[dir="rtl"] body select:not([multiple]):not([size]):not(#fx):not(#fy):not(#fz) { background-position: left 14px center !important; padding-left: 36px !important; padding-right: 16px !important; }
/* Glass editor selects keep their glass fill under the chevron */
html body #furnitureLeadDetailsPanel.fllo-details-panel select:not(:disabled):not(#fx):not(#fy):not(#fz) { background-image: var(--chev), linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .56)) !important; background-size: 12px 12px, auto !important; background-position: right 14px center, 0 0 !important; }
html[dir="rtl"] body #furnitureLeadDetailsPanel.fllo-details-panel select:not(:disabled):not(#fx):not(#fy):not(#fz) { background-position: left 14px center, 0 0 !important; }
html[data-theme="dark"] body #furnitureLeadDetailsPanel.fllo-details-panel select:not(:disabled):not(#fx):not(#fy):not(#fz) { background-image: var(--chev), linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03)) !important; }
html body select option { background: var(--ui-surface, #fff); color: var(--ui-text, #101828); }
html[data-theme="dark"] body select option { background: #111a2e; color: #f2f4f7; }

/* Date / time — calm calendar and clock glyphs instead of the browser picker icon */
html body input:is([type="date"], [type="datetime-local"], [type="month"])::-webkit-calendar-picker-indicator { background: var(--cal) center / 16px 16px no-repeat; color: transparent; opacity: .9; width: 18px; height: 18px; padding: 2px; border-radius: 6px; cursor: pointer; }
html body input[type="time"]::-webkit-calendar-picker-indicator { background: var(--clk) center / 16px 16px no-repeat; color: transparent; opacity: .9; width: 18px; height: 18px; padding: 2px; border-radius: 6px; cursor: pointer; }
html body input:is([type="date"], [type="datetime-local"], [type="month"], [type="time"])::-webkit-calendar-picker-indicator:hover { background-color: rgba(46, 144, 250, .12); opacity: 1; }
html body input:is([type="date"], [type="time"])::-webkit-datetime-edit-fields-wrapper { padding: 0; }
html body input:is([type="date"], [type="time"])::-webkit-datetime-edit-text { color: var(--ui-muted, #98a2b3); padding: 0 2px; }

/* Number — no spinner arrows (Apple fields never show them) */
html body input[type="number"]::-webkit-outer-spin-button, html body input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html body input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* Search — a round clear button in the site's style */
html body input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
html body input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; cursor: pointer;
  background: rgba(127, 127, 140, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

/* File — the picker button looks like a secondary Fllo button */
html body input[type="file"] { font: inherit; color: var(--ui-muted, #667085); }
html body input[type="file"]::file-selector-button {
  font: inherit; font-size: 14px; font-weight: 600; height: 36px; padding: 0 16px; margin-inline-end: 12px; cursor: pointer;
  border-radius: var(--r-control, 14px); border: 1px solid var(--ui-border-strong, rgba(127, 127, 140, .3));
  background: var(--ui-surface, #fff); color: var(--ui-text, #101828); transition: background .16s ease;
}
html body input[type="file"]::file-selector-button:hover { background: var(--ui-surface-muted, rgba(127, 127, 140, .1)); }
html[data-theme="dark"] body input[type="file"]::file-selector-button { background: rgba(255, 255, 255, .06); color: #f2f4f7; border-color: rgba(255, 255, 255, .14); }

/* Disclosure (details/summary) — a chevron that turns, not the browser triangle */
html body details > summary { list-style: none; cursor: pointer; }
html body details > summary::-webkit-details-marker { display: none; }
html body details > summary::marker { content: ""; }
html body details > summary::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; vertical-align: -1px;
  background: var(--chev) center / 12px 12px no-repeat; transform: rotate(-90deg); transition: transform .2s ease;
}
html[dir="rtl"] body details > summary::before { transform: rotate(90deg); }
html body details[open] > summary::before { transform: rotate(0deg) !important; }

/* Textarea — vertical resize only, with an invisible corner */
html body textarea { resize: vertical; }
html body textarea::-webkit-resizer { background: transparent; border: 0; }

/* Page scrollbar — thin, rounded, inside a transparent track (as macOS) */
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb { background: rgba(127, 127, 140, .35); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
html::-webkit-scrollbar-thumb:hover { background-color: rgba(127, 127, 140, .55); }
html { scrollbar-color: rgba(127, 127, 140, .4) transparent; }

/* Selection and caret in the brand colour */
::selection { background: rgba(46, 144, 250, .28); }
html body :is(input, textarea) { caret-color: var(--ctl-accent); }

/* ---------- Banner (replaces alert) ---------- */
.fllo-ui-banners { position: fixed; inset-block-start: max(16px, env(safe-area-inset-top)); inset-inline: 0; z-index: 2147483647; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.fllo-ui-banner {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(560px, 100%); box-sizing: border-box;
  padding: 12px 12px 12px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; line-height: 1.45;
  color: var(--ui-text, #101828); background: rgba(255, 255, 255, .82); border: 1px solid rgba(15, 23, 42, .08);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 12px 32px -12px rgba(15, 23, 42, .35);
  animation: fllo-ui-drop .32s cubic-bezier(.2, .9, .3, 1.15) both;
}
html[data-theme="dark"] .fllo-ui-banner { color: #f2f4f7; background: rgba(22, 31, 52, .82); border-color: rgba(255, 255, 255, .1); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 16px 40px -12px rgba(0, 0, 0, .6); }
.fllo-ui-banner.is-leaving { animation: fllo-ui-lift .2s ease forwards; }
.fllo-ui-banner-icon { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ctl-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6.5v6M11 15.5v.2' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.fllo-ui-banner[data-tone="success"] .fllo-ui-banner-icon { background: #17b26a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11.3l2.7 2.7L15 8.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.fllo-ui-banner-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fllo-ui-banner-close { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(127, 127, 140, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%23808898' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.fllo-ui-banner-close:hover { background-color: rgba(127, 127, 140, .24); }
@keyframes fllo-ui-drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fllo-ui-lift { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---------- Alert sheet (replaces confirm / prompt) ---------- */
.fllo-ui-sheet-backdrop { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; padding: 16px; box-sizing: border-box; background: rgba(15, 23, 42, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .22s ease, backdrop-filter .22s ease; }
.fllo-ui-sheet-backdrop.is-open { background: rgba(15, 23, 42, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fllo-ui-sheet {
  box-sizing: border-box; width: min(100%, 400px); padding: 24px; border-radius: var(--r-surface, 28px); text-align: start;
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(15, 23, 42, .08); color: var(--ui-text, #101828);
  -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 80px -20px rgba(15, 23, 42, .45);
  opacity: 0; transform: scale(.94) translateY(8px); transition: opacity .22s ease, transform .3s cubic-bezier(.2, .9, .3, 1.1);
}
.fllo-ui-sheet-backdrop.is-open .fllo-ui-sheet { opacity: 1; transform: none; }
.fllo-ui-sheet-backdrop.is-leaving .fllo-ui-sheet { opacity: 0; transform: scale(.97); transition-duration: .16s; }
html[data-theme="dark"] .fllo-ui-sheet { background: rgba(20, 29, 49, .9); border-color: rgba(255, 255, 255, .1); color: #f2f4f7; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 80px -20px rgba(0, 0, 0, .7); }
.fllo-ui-sheet-icon { width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px; background: rgba(46, 144, 250, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8.5' fill='none' stroke='%232e90fa' stroke-width='1.8'/%3E%3Cpath d='M12 11v5M12 8v.2' stroke='%232e90fa' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.fllo-ui-sheet-icon[data-tone="danger"] { background: rgba(240, 68, 56, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5l8.5 15h-17z' fill='none' stroke='%23f04438' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M12 10v4M12 16.6v.2' stroke='%23f04438' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.fllo-ui-sheet-icon[data-tone="input"] { background: rgba(134, 94, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 18.5h4l9.5-9.5-4-4L5 14.5z' fill='none' stroke='%23865eff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }
.fllo-ui-sheet-text { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.fllo-ui-sheet-input { display: block; width: 100%; box-sizing: border-box; height: 44px; margin-top: 16px; padding: 0 16px; font: inherit; font-size: 15px; border-radius: var(--r-control, 14px); border: 1px solid rgba(15, 23, 42, .12); background: rgba(255, 255, 255, .7); color: inherit; outline: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
html[data-theme="dark"] .fllo-ui-sheet-input { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.fllo-ui-sheet-input:focus { border-color: rgba(46, 144, 250, .7); box-shadow: 0 0 0 4px rgba(46, 144, 250, .18); }
.fllo-ui-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.fllo-ui-sheet-actions .btn { min-height: 44px !important; width: 100%; justify-content: center; }
html body .fllo-ui-sheet .fllo-ui-danger { background: linear-gradient(180deg, #f04438, #d92d20) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 16px -6px rgba(217, 45, 32, .6) !important; }
@media (prefers-reduced-motion: reduce) { .fllo-ui-banner, .fllo-ui-sheet { animation: none !important; transition: opacity .15s ease !important; transform: none !important; } }

/* Lead list rows: hairline dividers in the theme's colour (dark mode had light-mode #e6ebf2 lines),
   a soft hover, and a tinted selected row instead of a bright outline */
html body main#appPage:not(#fx):not(#fy) :is(.fllo-lead-list-row, .fllo-lead-list-head) { border-bottom: 1px solid rgba(15, 23, 42, .06) !important; outline: none !important; transition: background-color .15s ease; }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) :is(.fllo-lead-list-row, .fllo-lead-list-head) { border-bottom-color: rgba(255, 255, 255, .06) !important; }
html body main#appPage:not(#fx):not(#fy) .fllo-lead-list-row:hover { background-color: rgba(46, 144, 250, .05) !important; }
html body main#appPage:not(#fx):not(#fy) .fllo-lead-list-row:has(input[type="checkbox"]:checked) { background-color: rgba(46, 144, 250, .1) !important; box-shadow: inset 3px 0 0 var(--ctl-accent) !important; }
/* Custom switches keep their visually-hidden input */
html body .dpl-switch input[type="checkbox"]:not(#fx):not(#fy):not(#fz) { width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; opacity: 0; border: 0 !important; box-shadow: none !important; }

/* =====================================================================
   18. New Campaign: three labelled steps (Basics → Channels → Budget)
   ===================================================================== */
html body main#appPage:not(#fx):not(#fy) .cn-card { display: flex; flex-direction: column; gap: 16px; }
html body main#appPage:not(#fx):not(#fy) .cn-card > h2 { margin: 0; }
html body main#appPage:not(#fx):not(#fy) .cn-card > .sub { margin: -8px 0 0; }
.cn-steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: cn; }
.cn-steps li { counter-increment: cn; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ui-text, #344054); opacity: .8; padding-block-end: 10px; border-block-end: 3px solid rgba(46, 144, 250, .35); }
.cn-steps li::before { content: counter(cn); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: rgba(46, 144, 250, .14); color: var(--ctl-accent, #2e90fa); }
html body main#appPage:not(#fx):not(#fy) .cn-step { padding: 18px; border-radius: var(--r-tile, 16px); background: rgba(255, 255, 255, .55); border: 1px solid rgba(16, 24, 40, .07); display: flex; flex-direction: column; gap: 10px; }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) .cn-step { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .07); }
.cn-step-head { display: flex; align-items: center; gap: 12px; margin-block-end: 4px; }
.cn-step-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.cn-step-head p { margin: 2px 0 0; font-size: 13px; opacity: .7; }
.cn-step-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #53b1fd, #1570ef); box-shadow: 0 6px 14px -6px rgba(21, 112, 239, .6); }
.cn-field { display: flex; flex-direction: column; gap: 8px; margin-block-start: 6px; }
@media (max-width: 560px) { html body main#appPage:not(#fx):not(#fy) .cn-step { padding: 14px; } .cn-steps li { font-size: 12px; } }

/* =====================================================================
   19. Products: catalog first, "Add product" card after it; helpful empty states
   ===================================================================== */
html body main#appPage:not(#fx):not(#fy) #flloProductsCatalog:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
#flloProductsCatalog > #flloCompanyProductPermissions { order: 1; }
#flloProductsCatalog > .fllo-products-catalog-tools { order: 2; }
#flloProductsCatalog > #flloProductsCatalogRows { order: 3; }
#flloProductsCatalog > #flloProductsPagination { order: 4; }
#flloProductsCatalog > #flloProductsCreateForm { order: 5; }
html body main#appPage:not(#fx):not(#fy) #flloProductsCreateForm { margin: 6px 0 0; padding: 18px; border-radius: var(--r-tile, 16px); background: rgba(255, 255, 255, .55); border: 1px solid rgba(16, 24, 40, .07); }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) #flloProductsCreateForm { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .07); }
.fllo-products-form-title { grid-column: 1 / -1; margin: 0 0 4px; font-size: 16px; font-weight: 700; }
html body main#appPage:not(#fx):not(#fy) .fllo-empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; }
.fllo-empty-state strong { font-size: 16px; font-weight: 700; }
.fllo-empty-state p { margin: 0; max-width: 420px; font-size: 14px; opacity: .72; line-height: 1.6; }
.fllo-empty-state .fllo-empty-cta { margin-top: 8px; min-width: 180px; }
.fllo-empty-icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 4px; background: rgba(46, 144, 250, .12) center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e90fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E"); }

/* =====================================================================
   20. Inner scroll areas (companies list, panels, tables): slim floating
       capsule thumb, no track line; brighter on hover.
   ===================================================================== */
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .fllo-ui-sheet, .dpl-shell *) { scrollbar-width: thin; scrollbar-color: rgba(127, 140, 170, .35) transparent; }
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .dpl-shell *)::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .dpl-shell *)::-webkit-scrollbar-track { background: transparent !important; border: 0 !important; box-shadow: none !important; margin-block: 10px; }
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .dpl-shell *)::-webkit-scrollbar-thumb { border-radius: 99px; border: 3px solid transparent; background: rgba(127, 140, 170, .32) padding-box; min-height: 40px; }
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .dpl-shell *)::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #53b1fd, #1570ef) padding-box; }
html body :is(#devCompaniesList, .dsw *, .dev-card *, .fllo-products-table-wrap, .modal, .dpl-shell *)::-webkit-scrollbar-corner { background: transparent; }

/* =====================================================================
   21. Developer > company users: compact rows (name, email, role, status),
       expand for details/actions; role chips + search.
   ===================================================================== */
html body .dev-user-filters { display: flex; flex-direction: column; gap: 10px; margin-block-end: 4px; }
html body .dev-user-filters[hidden] { display: none; }
html body .dev-user-search:not(#fx):not(#fy) { width: 100%; }
html body .dev-user-role-chips { display: flex; flex-wrap: wrap; gap: 6px; }
html body .dev-user-role-chips button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid rgba(127, 140, 170, .28); background: rgba(127, 140, 170, .08); color: inherit; transition: background-color .15s ease, border-color .15s ease; }
html body .dev-user-role-chips button:hover { background: rgba(46, 144, 250, .1); }
html body .dev-user-role-chips button[aria-pressed="true"] { background: rgba(46, 144, 250, .18); border-color: rgba(46, 144, 250, .6); color: #1570ef; }
html[data-theme="dark"] body .dev-user-role-chips button[aria-pressed="true"] { color: #84caff; }
html body .dev-user-role-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; background: rgba(127, 140, 170, .18); }
html body .dev-user-filter-empty { text-align: center; opacity: .7; margin: 12px 0; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item:not(#fx) { gap: 0 !important; padding: 0 !important; overflow: hidden; transition: border-color .15s ease, box-shadow .2s ease; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item[hidden] { display: none !important; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item.is-open:not(#fx) { border-color: rgba(46, 144, 250, .45) !important; box-shadow: 0 10px 30px -18px rgba(21, 112, 239, .55) !important; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head { cursor: pointer; padding: 12px 16px; margin: 0; align-items: center; border-radius: inherit; outline-offset: -3px; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head:hover { background: rgba(46, 144, 250, .06); }
.dev-user-who { min-width: 0; }
.dev-user-who .dev-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-user-role-chip { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: rgba(127, 140, 170, .14); width: fit-content; }
.dev-user-chevron { flex: none; width: 28px; height: 28px; border-radius: 50%; margin-inline-start: 4px; background: rgba(127, 140, 170, .12) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8caa' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); transition: transform .2s ease; }
.dev-user-item.is-open .dev-user-chevron { transform: rotate(180deg); }
body[data-mpa-page="developer-settings"] .dsw .dev-user-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; border-top: 1px solid rgba(127, 140, 170, .16); padding-top: 14px; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-body[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .dev-user-chevron { transition: none; } }
body[data-mpa-page="developer-settings"] .dsw #devCompanyUsers:not(#fx) { gap: 8px !important; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head:not(#fx) { padding: 10px 14px !important; gap: 12px; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head .dev-user-who:not(#fx) { display: flex !important; flex-direction: row !important; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; flex: 1 1 0; min-width: 0; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head .dev-user-who strong { min-width: 0; overflow-wrap: anywhere; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head .dev-user-who .dev-user-email { order: 3; flex-basis: 100%; min-width: 0; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head .dev-user-role-chip { margin: 0; white-space: nowrap; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head:not(#fx) { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head > .dev-company-state { flex: none; }
body[data-mpa-page="developer-settings"] .dsw .dev-user-item > .dev-user-head .dev-user-role-chip:not(#fx) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  html body .dev-user-role-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  html body .dev-user-role-chips::-webkit-scrollbar { display: none; }
  html body .dev-user-role-chips button { flex: none; }
}

/* =====================================================================
   22. TABLETS (iPad / Android tablets, 761–1279px): compact header where
       every nav item fits (icon above label), no clipped tabs.
   ===================================================================== */
@media (min-width: 761px) and (max-width: 1279px) {
  html body #appNavbar .card.header:not(#fx):not(#fy) { gap: 10px !important; padding: 8px 12px !important; min-height: 0 !important; }
  html body #appNavbar .card.header .brand:not(#fx) { gap: 8px !important; flex: none !important; }
  html body #appNavbar .card.header .brand-mark-img:not(#fx),
  html body #appNavbar .card.header .brand-mark-img img:not(#fx) { width: 46px !important; height: 46px !important; }
  html body #appNavbar .card.header .tabs:not(#fx):not(#fy) { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden !important; display: flex !important; justify-content: space-between !important; gap: 2px !important; padding: 4px !important; -webkit-mask-image: none !important; mask-image: none !important; }
  html body #appNavbar .card.header .tabs .tab:not(#fx):not(#fy) { flex: 1 1 0 !important; min-width: 0 !important; flex-direction: column !important; gap: 3px !important; height: auto !important; min-height: 52px !important; padding: 6px 2px !important; font-size: 11.5px !important; line-height: 1.15 !important; text-align: center !important; justify-content: center !important; }
  html body #appNavbar .card.header .tabs .tab span:not(#fx) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: 100%; overflow: hidden; white-space: normal !important; overflow-wrap: anywhere; }
  html body #appNavbar .card.header .tabs .tab svg:not(#fx) { width: 20px !important; height: 20px !important; margin: 0 !important; }
  html body #appNavbar .card.header .tabs::before,
  html body #appNavbar .card.header .tabs::after { display: none !important; }
}
@media (min-width: 761px) and (max-width: 1023px) {
  html body #appNavbar .card.header .brand-copy:not(#fx) { display: none !important; }
}

/* Lead filters on tablets: denser grid, no clipped selects */
@media (min-width: 761px) and (max-width: 1023px) {
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px 12px !important; }
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel > .fllo-lead-filter-search { grid-column: 1 / -1 !important; width: auto !important; }
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel > div { width: auto !important; min-width: 0 !important; }
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel > .fllo-view-toggle { align-self: end; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 10px 12px !important; }
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel > .fllo-lead-filter-search { grid-column: span 2 !important; width: auto !important; }
  html body main#appPage:not(#fx):not(#fy) #flloLeadFiltersPanel > div { width: auto !important; min-width: 0 !important; }
}
html body main#appPage #flloLeadFiltersPanel select:not(#fx) { text-overflow: ellipsis; }

/* =====================================================================
   23. TOUCH (any finger-driven device): Apple HIG 44pt targets, larger
       checkboxes, no hover-only affordances, no tap flash, smooth scroll.
   ===================================================================== */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (pointer: coarse) {
  html body :is(.btn, button.btn, .fllo-ui-sheet button, .dev-user-role-chips button, .dev-filter-chip, .choice, .status-option):not(#fx) { min-height: 44px !important; }
  html body main#appPage :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea):not(#fx):not(#fy) { min-height: 44px !important; font-size: max(16px, 1em) !important; }
  html body :is(input[type=checkbox], input[type=radio]):not(.dpl-switch input):not(#fx):not(#fy) { width: 24px !important; height: 24px !important; min-width: 24px !important; }
  html body label:has(> input[type=checkbox]), html body label:has(> input[type=radio]) { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
  html body summary:not(#fx) { min-height: 44px; display: flex; align-items: center; }
  html body :is(#flloBoardViewBtn, #flloListViewBtn):not(#fx):not(#fy) { min-height: 40px !important; min-width: 76px !important; }
  html body .lead-delete-corner:not(#fx):not(#fy) { width: 40px !important; height: 40px !important; }
  html body :is(.fllo-open-details-v13, .quick-actions > button):not(#fx):not(#fy) { min-height: 40px !important; min-width: 48px !important; }
  html body a.lead-phone:not(#fx) { display: inline-flex; align-items: center; min-height: 40px; }
  html body :is(.dev-company-row, .fllo-lead-list-row, .dev-user-head, .mobile-bottom-nav a):not(#fx) { min-height: 48px; }
  html body :is(.fllo-kanban-status-nav, .rc-tabs, .stg-nav, .dsw-nav, .fllo-products-table-wrap, .table-wrap) { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  html body .board { scroll-snap-type: x proximity; }
  html body .board .col { scroll-snap-align: start; }
  html body *:hover { transition-delay: 0s; }
  html body :is(button, a, [role=button], summary, .choice) { touch-action: manipulation; }
}
@media (pointer: coarse) and (min-width: 761px) {
  html body :is(.camp-meta, .lead-card, .fllo-lead-card, .fllo-lead-list-row) :is(small, .muted, .meta, time) { font-size: 12.5px !important; }
}
@media (min-width: 761px) and (max-width: 1279px) {
  html body .modal-bg .modal:not(#fx):not(#fy) { width: min(680px, calc(100vw - 64px)) !important; max-width: none !important; }
}

/* =====================================================================
   24. Smoothness on tablets/phones: no endless animated blur layers behind
       the header (repainted every frame), blur only where it matters
       (header, sheets, dialogs), cheaper cards while scrolling.
   ===================================================================== */
@media (pointer: coarse) {
  html body .header::before, html body .header::after { animation: none !important; }
  html body .support-bubble { animation: none !important; }
  html body main#appPage :is(.card, .lead-card, .fllo-lead-card, .board .col, .fllo-furniture-report, .rc-card, .stg-card, .dev-card, .dev-user-item, .dev-company-row, .fllo-lead-list-row, .cn-step) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* =====================================================================
   25. New Campaign v2: compact sector chips (all visible, small), name lives
       with the campaign step, real dark mode for the step cards, sticky CTA.
   ===================================================================== */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step { background: rgba(255, 255, 255, .6) !important; border: 1px solid rgba(16, 24, 40, .07) !important; border-radius: var(--r-tile, 18px) !important; padding: 18px !important; gap: 12px !important; box-shadow: none !important; }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) .cn-card .cn-step { background: rgba(255, 255, 255, .035) !important; border-color: rgba(255, 255, 255, .08) !important; }
html[data-theme="dark"] body .cn-step-head h3 { color: #f2f4f7; }
html[data-theme="dark"] body .cn-steps li { color: #d0d5dd; }
/* sector chips */
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices.choice-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 10px !important; min-height: 48px !important; height: auto !important; padding: 8px 12px !important; border-radius: 14px !important; text-align: start !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice .icon { width: 28px !important; height: 28px !important; min-width: 28px; margin: 0 !important; display: grid !important; place-items: center; border-radius: 9px; background: rgba(46, 144, 250, .1); }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice .icon .svg-icon,
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice .icon svg { width: 17px !important; height: 17px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice > span { font-size: 13.5px !important; line-height: 1.25 !important; font-weight: 700 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice.sector-choice-disabled { opacity: .55; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice.active .icon { background: linear-gradient(180deg, #53b1fd, #1570ef); }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice.active .icon svg { color: #fff !important; stroke: #fff !important; }
/* campaign type + channels: compact segmented tiles */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important; gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice { flex-direction: row !important; gap: 8px !important; min-height: 48px !important; height: auto !important; padding: 8px 12px !important; border-radius: 14px !important; justify-content: center !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice .static-icon { width: 20px !important; height: 20px !important; margin: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice > span:not(.static-icon) { font-size: 14px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-field { margin: 0 !important; padding: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-field > label { margin-bottom: 2px; }
/* sticky submit */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-submit { position: sticky; bottom: 12px; z-index: 5; padding-top: 4px; }
@media (max-width: 760px) { html body main#appPage:not(#fx):not(#fy) .cn-card .cn-submit { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-submit #startBtn { box-shadow: 0 12px 28px -10px rgba(21, 112, 239, .7) !important; }
/* step 3: one even grid for all detail fields */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step.cn-step--grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px 14px !important; align-items: start; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid > .cn-step-head { grid-column: 1 / -1; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid :is(#cCoreFields, .fllo-core-grid, .fllo-core-grid-3) { display: contents !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid :is(.cn-spend, #cCoreFields .fllo-core-grid > div, #cCoreFields .fllo-core-grid-3 > div) { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid :is(input, select) { width: 100% !important; max-width: none !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid .future-id-box { grid-column: 1 / -1; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid label { margin: 0 !important; }
@media (max-width: 1023px) { html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step.cn-step--grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step.cn-step--grid { grid-template-columns: minmax(0, 1fr) !important; } }
/* icon + text optically centred in type/channel tiles */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice { align-items: center !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice .static-icon { display: inline-grid !important; place-items: center; vertical-align: middle; transform: none !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid :is(.fllo-date-hint, .fllo-date-preview) { margin: 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.4 !important; min-height: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step--grid .fllo-native-date { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; }

/* =====================================================================
   26. New Campaign wizard (campaign-wizard.js): one step at a time,
       clickable stepper, live summary, segmented type control, channel
       pills, aligned icons, "More options" disclosure.
   ===================================================================== */
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 16px !important; }
@media (min-width: 1100px) {
  html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] { grid-template-columns: minmax(0, 1fr) 260px; column-gap: 20px !important; }
  html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] > :not(.cn-summary) { grid-column: 1; }
  html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] > .cn-summary { grid-column: 2; grid-row: 3 / span 3; align-self: start; position: sticky; top: 16px; }
}
@media (max-width: 1099px) { html body main#appPage .cn-card[data-wizard] > .cn-summary { display: none !important; } }
html body main#appPage .cn-card[data-wizard] > .cn-step[hidden] { display: none !important; }
html body main#appPage .cn-card[data-wizard] > .cn-step.is-current { animation: cnIn .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes cnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body main#appPage .cn-card[data-wizard] > .cn-step.is-current { animation: none; } }

/* stepper */
html body main#appPage .cn-card[data-wizard] .cn-steps li { cursor: pointer; opacity: .55; border-block-end-color: rgba(127, 140, 170, .25); transition: opacity .15s ease, border-color .15s ease; min-height: 44px; padding-block-end: 8px; }
html body main#appPage .cn-card[data-wizard] .cn-steps li.is-current { opacity: 1; border-block-end-color: #2e90fa; }
html body main#appPage .cn-card[data-wizard] .cn-steps li.is-done { opacity: .9; border-block-end-color: rgba(46, 144, 250, .55); }
html body main#appPage .cn-card[data-wizard] .cn-steps li.is-current::before { background: #2e90fa; color: #fff; }
html body main#appPage .cn-card[data-wizard] .cn-steps li.is-done::before { content: "✓"; background: rgba(46, 144, 250, .2); }
html body main#appPage .cn-card[data-wizard] .cn-steps li:focus-visible { outline: 2px solid #2e90fa; outline-offset: 4px; border-radius: 6px; }

/* footer */
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit { display: flex !important; gap: 10px; justify-content: flex-end; align-items: center; position: static; padding: 0; }
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit > button { width: auto !important; min-width: 140px; margin: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit .cn-back { margin-inline-end: auto !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit:not(.is-last) #startBtn { display: none !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit [hidden] { display: none !important; }
@media (max-width: 560px) { html body main#appPage:not(#fx):not(#fy) .cn-card[data-wizard] .cn-submit > button { flex: 1; min-width: 0; } }

/* summary */
.cn-summary { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(46, 144, 250, .06); border: 1px solid rgba(46, 144, 250, .18); }
.cn-summary-title { font-size: 14px; }
.cn-summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.cn-summary-row span { opacity: .65; }
.cn-summary-row b { font-weight: 700; text-align: end; overflow-wrap: anywhere; }
html[data-theme="dark"] body .cn-summary { background: rgba(46, 144, 250, .08); border-color: rgba(83, 177, 253, .22); }

/* aligned icons in every choice tile */
html body main#appPage:not(#fx):not(#fy) .cn-card .choice { display: flex !important; align-items: center !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .choice :is(.static-icon, .icon, .svg-icon) { display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 0 !important; margin: 0 !important; padding: 0 !important; transform: none !important; vertical-align: middle !important; position: static !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .choice svg { display: block !important; margin: 0 !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .choice > span:not(.static-icon) { line-height: 1.2 !important; display: block; }

/* campaign type: segmented control */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .cn-field > .choice-grid:not(#sectorChoices):not(.channels) { display: inline-grid !important; grid-template-columns: repeat(2, minmax(130px, 1fr)) !important; gap: 4px !important; padding: 4px; border-radius: 16px; background: rgba(127, 140, 170, .12); width: min(100%, 420px); }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .cn-field > .choice-grid:not(#sectorChoices):not(.channels) .choice { min-height: 44px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 12px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .cn-field > .choice-grid:not(#sectorChoices):not(.channels) .choice.active { background: #fff !important; box-shadow: 0 2px 8px rgba(16, 24, 40, .12) !important; color: #1570ef !important; }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .cn-field > .choice-grid:not(#sectorChoices):not(.channels) .choice.active { background: rgba(46, 144, 250, .22) !important; color: #84caff !important; }
/* channels: pills */
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid.channels { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid.channels .choice { flex: 0 0 auto; min-height: 44px !important; padding: 0 18px !important; border-radius: 99px !important; gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid.channels .choice.active { background: rgba(46, 144, 250, .14) !important; border-color: rgba(46, 144, 250, .6) !important; color: #1570ef !important; }
html[data-theme="dark"] body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid.channels .choice.active { color: #84caff !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #cName { max-width: 520px; }

/* "More options" */
html body main#appPage .cn-card .cn-more { grid-column: 1 / -1; border-top: 1px solid rgba(127, 140, 170, .2); padding-top: 4px; }
html body main#appPage .cn-card .cn-more > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; font-weight: 700; list-style: none; }
html body main#appPage .cn-card .cn-more > summary::-webkit-details-marker { display: none; }
html body main#appPage .cn-card .cn-more > summary::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: rgba(46, 144, 250, .14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e90fa' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); transition: transform .2s ease; }
html body main#appPage .cn-card .cn-more[open] > summary::before { transform: rotate(45deg); }
html body main#appPage .cn-card .cn-more-hint { font-weight: 400; font-size: 12.5px; opacity: .6; }
html body main#appPage .cn-card .cn-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 10px 0 4px; }
html body main#appPage .cn-card .cn-more-grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html body main#appPage .cn-card .cn-more-grid :is(input, select) { width: 100% !important; max-width: none !important; }
@media (max-width: 1023px) { html body main#appPage .cn-card .cn-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { html body main#appPage .cn-card .cn-more-grid { grid-template-columns: minmax(0, 1fr); } }
html body main#appPage:not(#fx):not(#fy):not(#fz) .cn-card[data-wizard] > .cn-step[hidden] { display: none !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice .static-icon,
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice .static-icon .svg-icon,
html body main#appPage:not(#fx):not(#fy) .cn-card .cn-step .choice-grid:not(#sectorChoices) .choice .static-icon svg { width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 0 !important; flex: none !important; }
html body main#appPage:not(#fx):not(#fy) .cn-card #sectorChoices .choice .icon { height: 28px !important; }

/* 27. Horizontal swipes inside the app never trigger the browser's "swipe back"
       gesture (the arrow bubble on Android/Chrome); the Kanban keeps the swipe. */
html, body { overscroll-behavior-x: none; }
html body :is(.board, .fllo-kanban-status-nav, .rc-tabs, .stg-nav, .dsw-nav-list, .fllo-products-table-wrap, .table-wrap, .campaign-report-table, #appNavbar .tabs, .dev-user-role-chips, .mobile-bottom-nav) { overscroll-behavior-x: contain; }
html body .board { touch-action: pan-x pan-y; }
/* columns scroll vertically; a sideways swipe on a column passes to the board */
html body .board .col { overscroll-behavior-x: auto !important; overscroll-behavior-y: contain; }

/* =====================================================================
   28. Previous campaigns: compact filters, count + sort bar, lighter cards,
       per-collection table folded below the campaigns.
   ===================================================================== */
html body main#appPage:not(#fx):not(#fy) #campaignPageFilters.fllo-filter-bar { grid-template-columns: repeat(5, minmax(0, 1fr)) auto !important; align-items: end !important; gap: 12px !important; padding: 14px 16px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignPageFilters > div { margin: 0 !important; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
html body main#appPage:not(#fx):not(#fy) #campaignPageFilters > label { margin: 0 !important; align-self: end; height: 44px; display: inline-flex !important; align-items: center; gap: 8px; white-space: nowrap; }
@media (max-width: 1100px) { html body main#appPage:not(#fx):not(#fy) #campaignPageFilters.fllo-filter-bar { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { html body main#appPage:not(#fx):not(#fy) #campaignPageFilters.fllo-filter-bar { grid-template-columns: minmax(0, 1fr) !important; } }

.ch-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.ch-toolbar[hidden] { display: none; }
.ch-count { font-size: 15px; }
.ch-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; }
.ch-sort select { width: auto !important; min-width: 150px; }

/* cards */
html body main#appPage:not(#fx):not(#fy) #campaignsList { gap: 14px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-report-card { display: flex !important; flex-direction: column; gap: 12px !important; padding: 16px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-report-top { gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-report-metrics { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .report-mini { padding: 8px 10px !important; min-height: 0 !important; border-radius: 12px !important; gap: 2px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .report-mini small { font-size: 11px !important; opacity: .7; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .report-mini b { font-size: 16px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .report-mini-wide { grid-column: 1 / -1; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .report-mini-wide.is-empty { display: none !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-note { padding: 10px 12px !important; border-radius: 12px !important; border-inline-start: 3px solid #f79009 !important; font-size: 12.5px !important; line-height: 1.5 !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-note b { font-size: 12.5px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions { display: flex !important; gap: 8px !important; margin-top: auto !important; flex-wrap: wrap; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions .btn { flex: 0 0 auto; min-height: 40px !important; padding: 0 14px !important; font-size: 13px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions .btn.ch-primary { flex: 1 1 auto; background: linear-gradient(180deg, #53b1fd, #1570ef) !important; color: #fff !important; border: 0 !important; }

/* per-collection summary */
html body main#appPage .ch-collections { margin-top: 18px; border-radius: 18px; border: 1px solid rgba(127, 140, 170, .2); padding: 4px 14px; }
html body main#appPage .ch-collections[hidden] { display: none; }
html body main#appPage .ch-collections > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: 10px; font-weight: 700; list-style: none; }
html body main#appPage .ch-collections > summary::-webkit-details-marker { display: none; }
html body main#appPage .ch-collections > summary::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: rgba(46, 144, 250, .14) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e90fa' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); transition: transform .2s ease; }
html body main#appPage .ch-collections[open] > summary::before { transform: rotate(180deg); }
html body main#appPage .ch-collections > .report-table-wrap { margin: 0 0 12px !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-report-sub { margin: 0 !important; min-height: 0 !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions { flex-wrap: nowrap !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions .btn:not(.ch-primary) { padding: 0 10px !important; min-width: 0 !important; }
html body main#appPage:not(#fx):not(#fy) #campaignsList .campaign-card-actions .btn.ch-primary { min-width: 64px; }
