/* ================================================================
   IntellixCore Design Tokens — Global CSS Variable System
   ================================================================
   These variables define the application's visual language.
   Tenant stylesheets override these values at runtime.

   ================================================================ */


/* ================================================================
   1. BRAND COLORS
   ================================================================ */
   :root {
    /* primary that will remain same in IC theme but for RSM will replace with thier blue for active state navigation or focus */
    --brand-primary:           #314B87;
    --brand-primary-hover:     #293F73;
    /* Soft brand tint (chip/background washes) + translucent brand border — widely
     referenced with literal fallbacks; defined so tenant re-branding cascades. */
  --brand-primary-soft:      rgba(30, 69, 133, 0.08);
  --brand-primary-border:    rgba(30, 69, 133, 0.5);
  --brand-primary-active:    #1D2B50;
    --brand-primary-light:     #EEF2FB;
    --brand-primary-light-alpha: #EEF2FB33;
    --brand-primary-dark:      #1D2B50;
    --brand-primary-contrast:  #ffffff;
    --brand-teams:             #505AC9;

    /* primary 1 for IC will remain same but for RSM will replace with thier green for CTAs */
    --brand-primary-1:         #314B87;
    --brand-primary-1-hover:     #293F73;

    /* primary 2 for IC will remain same but for RSM will replace with thier grey */
    --brand-primary-2:         #63666A;

    
  
    /* Capability tones — the node card's capability strip and the chips
       attached to a node's ports. Declared here rather than left as inline
       fallbacks so a tenant stylesheet rebrands the canvas too. Deliberately
       SEPARATE from the brand colour: these identify a KIND of capability,
       the way a status chip identifies a state. */
    --cap-knowledge:           #0E8C86;
    --cap-tools:               #6D4AFF;
    --cap-web:                 #2B7FD4;
    --cap-guard:               #BC4A20;
  
    /* A hairline weaker than --border-color, for dividers inside a card that
       already carries its own border. */
    --border-color-soft:       #EAECF0;
    /* Light section divider (drawer/list separators) — same hex as --color-border-default. */
    --border-divider:          var(--color-border-default);
    /* Soft brand-tinted border (overflow / “+N more” chips — Figma #D3DCF0). */
    --border-brand-soft:       #D3DCF0;
  
    --brand-secondary:         #868b8d;
    --brand-secondary-hover:   #959798;
    --brand-secondary-light:   #f3f3f4;
  
    --brand-accent:            #314b87;
    --brand-accent-hover:      #314b87;
    --brand-accent-light:      #dbe5ff;
  }
  
  
  /* ================================================================
     2. SEMANTIC COLORS
     ================================================================ */
  :root {
    --color-success:           #577741;
    --color-success-light:     #e0fed0;
    --color-success-dark:      #577741;
  
    --color-warning:           #8b6028;
    /* Chart series for answers drawn from data (components/AnswerVisuals): checked for lightness,
       colour-blind separation and 3:1 contrast on a light surface. */
    --chart-series-1:          #4F78C9;
    --chart-series-2:          #C25E12;
    --color-warning-light:     #fbf3d6;
    --color-warning-bg:        #FBF3D6;
    --color-warning-border:    #8b6028;
    --color-warning-dark:      #8b6028;
  
    --color-error:             #AD3B41;
    --color-error-light:       #f6dede;
    --color-error-border:      #AD3B41;
    --color-error-dark:        #ad3b41;
  
    --color-info:              #4994ec;
    --color-info-light:        #e6f2fc;
    --color-info-border:       #4994EC;
    --color-info-dark:         #4994ec;
  
    --color-success-border:    #577741;
  
    --color-warning-amber:     #8B6028;
    --color-warning-amber-dark:#8B6028;
    --color-success-emerald:   #577741;
    --color-success-emerald-dark: #577741;
  
    --color-highlight:           #FBF3D6;
  }
  
  
  /* ================================================================
     3. BACKGROUNDS
     ================================================================ */
  :root {
    --bg-page:                 #F3F3F4;
    --bg-surface:              #ffffff;
    --bg-surface-elevated:     #ffffff;
    --bg-surface-hover:        #f3f3f4;
    --bg-surface-active:       #e7e8e8;
    --bg-surface-disabled:     #f3f3f4;
    --bg-overlay:              rgba(107, 114, 128, 0.75);
    /* Busy-state veil over a panel: the surface colour, translucent, so the
     content stays readable underneath. Not --bg-overlay, which is the dark
     scrim behind modals. Must track --bg-surface per theme. */
  --bg-surface-overlay:      rgba(255, 255, 255, 0.75);
  --bg-chat-viewport:        #F4F7FC;
    /* File-upload dropzone surface (RFP intake, etc.) — keep separate from chat viewport. */
    --bg-dropzone:             #F4F7FC;
    /* Quiet icon-tile wash (ReportDownloadCard file glyph). Figma #EEF1F6. */
    --bg-icon-well:            #EEF1F6;
    /* Soft panel / sidebar surfaces (RFP questions sidebar, context boxes). */
    --bg-subtle:               #F9F9FA;
    /* Soft card fill (Horizon Scanning detail cards) — same hex as --color-bg-subtle. */
    --bg-card:                 var(--color-bg-subtle);
    /* Loading-placeholder bars (RFP output skeleton, etc.). */
    --bg-skeleton:             #EFF1F4;
    --bg-chat-bubble:          #EEF2FB8A;
    --bg-code-block:           #f3f3f4;
    --bg-code-header:          #e7e8e8;
    /* Alias — prefer --tooltip-bg (section 16b) */
    --bg-tooltip:              var(--tooltip-bg);
  }
  
  
  /* ================================================================
     4. TEXT COLORS
     ================================================================ */
  :root {
    --text-primary:            #333333;
    --text-secondary:          #515356;
    --text-tertiary:           #63666A;
    /* Modal/helper body copy (e.g. RFP confirmation description). */
    --text-description:        #555555;
    --text-muted:              #737579;
    /* Figma caption / meta line (12px / 16px Regular) — e.g. ReportDownloadCard. */
    --text-caption:            #718096;
    /* Semantic alias — hex already defined as --brand-primary-2 (#63666A). */
    --text-label:              var(--brand-primary-2);
    /* Meta text (e.g. email on impact-scoring cards — Figma #58585D).
       Named --text-meta to avoid colliding with --color-text-tertiary (#718096). */
    --text-meta:               #58585D;
    /* Helper/caption copy — hex not previously in this file. */
    --text-helper:             #888B8D;
    --text-disabled:           #cfd1d1;
    --text-inverse:            #ffffff;
    /* Tenant-themable links — aliases CTA brand so Mission Control / white-label
       remaps cascade (hardcoded #314b87 would ignore --brand-primary-1). */
    --text-link:               var(--brand-primary-1);
    --text-link-hover:         var(--brand-primary-1-hover);
    /* Figma "color/text/brand" — brand-coloured text & icon glyphs (e.g. Icon
       Button · Tertiary). Aliases --brand-primary so tenant rebranding cascades. */
    --color-text-brand:        var(--brand-primary);
    --text-on-primary:         #ffffff;
    --text-on-error:           #ffffff;
    --text-on-success:         #ffffff;
    --text-heading:            #333333;
    --text-code:               #333333;
  }


  /* ================================================================
     4b. FIGMA SEMANTIC COLORS
     Figma "color/..." names used by the restyled components. Where the
     Figma value equals an existing token they are aliases, so dark mode
     and tenant --brand-* / --text-* / --bg-* overrides flow through.
     The few whose Figma light value differs keep that hex here and
     alias the existing token in dark mode (section 4b dark, below).
     ================================================================ */
  :root {
    --color-bg-surface:        var(--bg-surface);
    --color-bg-subtle:         #F9F9FB;
    --color-bg-brand:          var(--brand-primary);
    --color-border-default:    #E5E5E5;
    /* Figma color/border/mid — breadcrumb chevrons, mid-weight dividers. */
    --color-border-mid:        #B8B9BB;
    /* Figma color/border/control — outlined form controls (search, composer). */
    --color-border-control:    #D5D7DC;
    --color-border-brand:      var(--brand-primary);
    --color-text-primary:      var(--text-primary);
    --color-text-secondary:    var(--text-secondary);
    --color-text-tertiary:     #718096;
    --color-text-heading:      #2E343E;
    --color-text-placeholder:  #929AB5;
    --color-text-danger:       var(--color-error);
    --color-tint-brand-bg:     var(--brand-primary-light);
    --color-tint-info-bg:      var(--color-info-light);
    --color-tint-info-fg:      var(--brand-primary);
    --color-tint-warning-bg:   var(--color-warning-bg);
    --color-tint-warning-fg:   var(--color-warning);
    --color-tint-violet-bg:    #F1EDFC;
    --color-tint-violet-well:  #DDD3F5;
    --color-tint-violet-fg:    #576FEB;
    --color-tint-amber-bg:     #FFF6E0;
    --color-tint-danger-bg:    var(--color-error-light);
    --color-tint-danger-fg:    var(--color-error);
    /* Figma color/tint/success — status banner (e.g. Export complete). */
    --color-tint-success-bg:   var(--color-success-light);
    --color-tint-success-fg:   var(--color-success);
    /* Figma Progress (Indeterminate) track. */
    --color-progress-track:    #EFF0F0;
    --color-tint-neutral-fg:   var(--text-tertiary);
    --color-text-on-brand:     var(--text-on-primary);
    /* Figma "color/border/subtle" (#EAECF0) — not --border-color-subtle (#f3f3f4). */
    --color-border-subtle:     var(--border-color-soft);
    --color-code-keyword:      #3B82F6;
    --bg-brand-subtle:         var(--brand-primary-light);
    --text-brand:              var(--color-text-brand);
    /* Figma brand/100 (pill fill) and navy/500 (toggle thumb). The pill fill
       stays light in dark mode because its text is brand-coloured. */
    --brand-accent-subtle:     #DBE5FF;
    --brand-primary-muted:     #374A83;
  }

  /* JSON tree syntax colours. JsonSearchTree picks the set from its own
     `darkMode` prop, so both sets are defined here rather than flipped
     under :root.dark. */
  :root {
    --code-json-key:           #7C3AED;
    --code-json-string:        #B91C1C;
    --code-json-number:        #1D4ED8;
    --code-json-null:          #6B7280;
    --code-json-bracket:       #333333;
    --code-json-meta:          #888888;
    --code-json-mark:          #FFF2A3;
    --code-json-dark-key:      #9CDCFE;
    --code-json-dark-string:   #CE9178;
    --code-json-dark-number:   #B5CEA8;
    --code-json-dark-keyword:  #569CD6;
    --code-json-dark-bracket:  #D4D4D4;
    --code-json-dark-meta:     #808080;
    --code-json-dark-mark:     rgba(255, 214, 0, 0.45);
  }
  
  
  /* ================================================================
     5. TYPOGRAPHY  (non-color — no palette annotation)
     ================================================================ */
  :root {
    --font-family-primary:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-heading:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-accent:      "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-mono:        "Fira Code", "Consolas", "Monaco", monospace;
    --font-mono:               "Cascadia Mono", Consolas, monospace;
  
    /* TYPOGRAPHY SYSTEM
     Font: Inter (or tenant --font-family-primary)

     Micro:        9px  · Bold 700          → --font-size-3xs
     Tiny:         10px · Semi Bold 600     → --font-size-2xs
     XXS:          10.5px                   → --font-size-xxs
     Overline:     11px / 16px · Semi Bold 600 · letter-spacing: 0.08em · uppercase → --font-size-overline
     Caption:      12px / 16px · Regular 400 → --font-size-xs
     Body Small:   13px / 20px · Regular 400 → --font-size-body-sm
     Body Medium:  14px / 22px · Regular 400 → --font-size-sm
     Label/UI:     15px                      → --font-size-md
     Body Large:   16px / 26px · Regular 400 → --font-size-base
     H5:           18px / 26px · Semi Bold 600 → --font-size-lg
     H4:           20px / 28px · Semi Bold 600 → --font-size-xl
     Icon LG:      22px                      → --font-size-icon-lg
     H3:           24px / 32px · Semi Bold 600 → --font-size-2xl
     KPI:          26px                      → --font-size-kpi
     H2:           30px                      → --font-size-3xl
     Display SM:   32px                      → --font-size-display-sm
     Metric:       32px / 40px · Bold 700    → --font-size-display-sm
     Display:      36px                      → --font-size-4xl
     Hero/empty:   48px                      → --font-size-5xl
     Display LG:   76px / 92px               → --font-size-6xl
    */
    --font-size-3xs:           9px;
    --font-size-2xs:           10px;
    --font-size-xxs:           10.5px;
    --font-size-overline:      11px;
    --font-size-xs:            12px;
    --font-size-body-sm:       13px;
    --font-size-sm:            14px;
    --font-size-md:            15px;
    --font-size-base:          16px;
    --font-size-lg:            18px;
    --font-size-xl:            20px;
    --font-size-icon-lg:       22px;
    --font-size-2xl:           24px;
    --font-size-kpi:           26px;
    --font-size-3xl:           30px;
    /* The dashboard gauge figure (HalfDonutChartDashboard): 32px sits between
       H2 and Display and had no token, so the chart was falling back to a raw
       32px through var(). */
    --font-size-display-sm:    32px;
    --font-size-4xl:           36px;
    --font-size-5xl:           48px;
    --font-size-6xl:           76px;
  
    --font-weight-light:       300;
    --font-weight-regular:     400;
    --font-weight-medium:      500;
    --font-weight-semibold:    600;
    --font-weight-bold:        700;
  
    --line-height-tight:       1.25;
    --line-height-normal:      1.5;
    --line-height-relaxed:     1.7;
  
    --letter-spacing-tight:    -0.025em;
    --letter-spacing-normal:   0;
    --letter-spacing-wide:     0.025em;
  }
  
  
  /* ================================================================
     6. SPACING & LAYOUT  (non-color — no palette annotation)
     ================================================================ */
  :root {
    --space-1:                 4px;
    --space-2:                 8px;
    --space-3:                 12px;
    --space-4:                 16px;
    --space-5:                 20px;
    --space-6:                 24px;
    --space-8:                 32px;
    --space-10:                40px;
    --space-12:                48px;
    --space-16:                64px;
  
    --content-max-width:       80%;
    --sidebar-width:           250px;
    --sidebar-collapsed-width: 48px;
    --sidebar-rail-width:      48px; /* Rail width. 48px by owner decision (2026-12-01): the narrow rail, not the 82px Figma rail. Separate from --sidebar-collapsed-width so tenant stylesheets cannot change it */
    /* Figma "Sidenav Rail" colours/shape. Rail-only names on purpose, like
       --sidebar-rail-width: tenant stylesheets uploaded earlier declare the
       --sidebar-item-active-* / --sidebar-icon / --sidebar-divider names (and
       --radius-md: 0 on RSM), which repainted the rail pale blue and square. */
    --sidebar-rail-icon:        var(--text-on-primary, #FFFFFF);
    --sidebar-rail-hover-bg:    color-mix(in srgb, var(--text-on-primary, #FFFFFF) 10%, transparent);
    --sidebar-rail-active-bg:   var(--text-on-primary, #FFFFFF);
    --sidebar-rail-active-icon: var(--sidebar-bg, #00143E); /* the rail colour: navy, or a tenant / user (Green) rail */
    --sidebar-rail-divider:     rgba(255, 255, 255, 0.3);
    --sidebar-rail-tile-radius: 6px;
    --navbar-height:           64px;
    --z-overlay-menu:          1800;

    /* Global banner offsets. Idle = 0px (no banner). ImpersonationBanner /
       CredentialExpiryBanner override these on <html> with the measured
       height while visible, then remove the inline value on unmount so the
       page calc(100vh - var(--*-banner-h)) shrinks back. Must stay 0px here:
       a non-zero default would permanently steal viewport height. */
    --imp-banner-h:            0px;
    --cred-banner-h:           0px;

    /* Published at runtime by SubHeaderV3 / AccountMappingToolbar while those
       bars are mounted. Idle 0px so table headers stick to the viewport top
       when the chrome is absent. Inline html styles override while visible. */
    --subheader-v3-sticky-height: 0px;
    --account-mapping-toolbar-sticky-height: 0px;
  
    /* Responsive page layout tokens — adapt per breakpoint */
    --page-px:                 30px;
    --page-py:                 24px;
    --card-gap:                24px;
    --header-height:           64px;
    --page-kbb:                24px;
  }
  
  /* Tablet overrides (768–1023px) */
  @media (min-width: 768px) and (max-width: 1023px) {
    :root {
      --page-px:               20px;
      --page-py:               20px;
      --card-gap:              16px;
    }
  }
  
  /* Mobile overrides (< 768px) */
  @media (max-width: 767px) {
    :root {
      --page-px:               12px;
      --page-py:               16px;
      --card-gap:              12px;
      --header-height:         56px;
    }
  }
  
  
  /* ================================================================
     7. BORDERS & RADIUS
     ================================================================ */
  :root {
    --border-color:            #e7e8e8;
    --border-color-strong:     #cfd1d1;
    --border-color-subtle:     #f3f3f4;
    --border-width:            1px;
  
    --radius-xs:               2px;
    --radius-sm:               4px;
    --radius-md:               6px;
    --radius-lg:               8px;
    --radius-xl:               12px;
    --radius-2xl:              16px;
    --radius-full:             9999px;
    /* Switches stay pill-shaped. RSM sets --radius-full to 0 for square
       chrome; the track and thumb do not follow that. */
    --switch-radius:           9999px;

    /* RSM Dashboard only — do not use these for other products or screens.
       Other surfaces keep --radius-* / --btn-border-radius / --input-border-radius
       and --widget-table-header-bg. Shared components must keep those generic
       tokens. Mission Control, Pages, Entities, and Connections remap them
       via body.ic-rsm-dashboard.
       Scale matches --radius-*: sm < md < lg (2 / 4 / 8). */
    --dashboard-radius-sm:     2px;
    --dashboard-radius-md:     4px;
    --dashboard-radius-lg:     8px;
    --dashboard-table-header-bg: #dbe5ff;
    --dashboard-table-row-alt-bg: #F3F3F4;
    --dashboard-table-pagination-text: #828588;
  
    /* Dashboard workspace widgets — Figma node 26979-173518 */
    --widget-surface-border-color: #E7E8E8;
    --widget-surface-border-width: 1px;
    --widget-surface-border-radius: 8px;
    --widget-table-border-radius:  var(--widget-surface-border-radius);
    --widget-surface-bg:           #FFFFFF;
    --widget-surface-focus-border-width: 2px;
    --widget-surface-focus-border-color: var(--brand-primary, #314B87);
    --widget-surface-focus-shadow: 0 18px 42px rgba(49, 75, 135, 0.2);
    --widget-chrome-divider-color: #CFD1D1;
    --widget-table-header-bg:      #dbe5ff;
    --widget-table-header-text:    var(--text-primary, #333333);
    --widget-table-cell-text:      var(--text-primary, #333333);
    --widget-table-pagination-text: #828588;
    /* Shared table type — generic tokens. body.ic-rsm-dashboard remaps these
       from --dashboard-table-*; shared CSS must not read --dashboard-table-*. */
    --widget-table-header-font-size:   var(--font-size-xs, 12px);
    --widget-table-header-font-weight: 500;
    --widget-table-row-font-size:      var(--font-size-xs, 12px);
    --widget-table-row-font-weight:    400;
    --widget-trend-up:             var(--color-success, #577741);
    --widget-trend-down:           var(--color-error, #AD3B41);
    --widget-trend-flat:           var(--text-muted, #737579);
    --widget-sparkline:            var(--color-info, #4994ec);
    /* Categorical chart palette (Figma Agents bar chart). Series 1–2 are the
       Figma hexes; 3–6 are sampled from the same design. Categorical colours
       are fixed like the status-chip palette: they must stay distinguishable,
       so they do not follow the tenant brand. */
    --chart-series-1:              #4A67B0;
    --chart-series-2:              #F58229;
    --chart-series-3:              #53A29E;
    --chart-series-4:              #D0A33A;
    --chart-series-5:              #8261C1;
    --chart-series-6:              #6C9649;
    --chart-series-7:              var(--tc-accent-worker, #BE185D);
    --chart-series-8:              var(--text-secondary, #515356);
    --chart-series-9:              var(--badge-teal-text, #34a798);
    --chart-series-10:             var(--brand-primary-1, #314B87);
    /* Chart chrome: horizontal grid lines, axis / bar labels, and the unfilled
       part of a progress ring. */
    --chart-grid:                  var(--border-color-soft, #EAECF0);
    --chart-label:                 var(--color-text-tertiary, #718096);
    --chart-track:                 var(--border-color, #E7E8E8);

    /* Dashboard drill-down breadcrumb (212×16, gap 8) — Figma node 28720-18371 */
    --dashboard-breadcrumb-font-size:    var(--font-size-body-sm, 13px);
    --dashboard-breadcrumb-line-height:  16px;
    --dashboard-breadcrumb-gap:          var(--space-2, 8px);
    --dashboard-breadcrumb-icon-size:    16px;
    --dashboard-breadcrumb-text:         var(--text-secondary, #515356);
    /* Same brand colour as the active "My Dashboard" tab and selected page tab. */
    --dashboard-breadcrumb-current-text: var(--brand-primary);

    /* Dashboard cards (stat card 431×130) — Figma node 28720-18371 */
    --dashboard-card-radius:       10px;
    --dashboard-card-padding:      var(--space-5, 20px);
    --dashboard-card-gap:          14px;

    /* Dashboard table card — Figma node 28720-18371 (client-detail table).
       Title 16/28 semibold Inter, heading 13/18 semibold, row 14/22 medium
       (--font-size-xs; tenant --font-size-sm is 16px), pagination 13 regular. */
    --dashboard-table-title-text:          #001541;
    --dashboard-table-title-font-size:     var(--font-size-base, 16px);
    --dashboard-table-title-font-weight:   var(--font-weight-semibold, 600);
    --dashboard-table-title-line-height:   28px;
    --dashboard-table-header-font-size:    var(--font-size-body-sm, 13px);
    --dashboard-table-header-font-weight:  var(--font-weight-semibold, 600);
    --dashboard-table-header-line-height:  18px;
    --dashboard-table-row-font-size:       var(--font-size-xs, 14px);
    /* Literal 500 — Figma medium. Do not alias --font-weight-regular (400 on IC;
       some tenants override --font-weight-medium to a heavier weight). */
    --dashboard-table-row-font-weight:     500;
    --dashboard-table-row-line-height:     22px;
    --dashboard-table-cell-padding-x:      var(--space-6, 24px);
    --dashboard-table-cell-padding-y:      var(--space-3, 12px);
    --dashboard-table-cell-gap:            var(--space-3, 12px);
    --dashboard-table-title-height:        72px;
    --dashboard-table-header-height:       44px;
    --dashboard-table-row-height:          52px;
    --dashboard-table-footer-height:       52px;

    /* Summary strip cell divider (32px vertical, 1px) — Figma node 28720-18371 */
    --dashboard-summary-divider-color:     #E5E5E5;
    --dashboard-summary-divider-height:    32px;

    /* Summary strip cell text — Figma: label Poppins 500 10px, value Poppins 600 16px.
       Value line-height is 20px (not Figma "100%") so descenders (g/y/p) are not clipped
       inside the locked 1-row (~60px) grid cell. */
    --dashboard-summary-label-text:        #667085;
    --dashboard-summary-label-font-size:   var(--font-size-2xs, 10px);
    --dashboard-summary-label-font-weight: var(--font-weight-medium, 500);
    --dashboard-summary-label-line-height: 14px;
    --dashboard-summary-value-text:        #001541;
    --dashboard-summary-value-font-size:   var(--font-size-base, 16px);
    --dashboard-summary-value-font-weight: var(--font-weight-semibold, 600);
    --dashboard-summary-value-line-height: 20px;
    --dashboard-summary-label-gap:         2px;
    /* Strip frame — 4px radius, 8px side padding, 10px gap between cells/dividers.
       Vertical padding stays compact so label+value fit the locked 1-row height. */
    --dashboard-summary-border-width:      1px;
    --dashboard-summary-border-color:      var(--widget-surface-border-color, #E7E8E8);
    --dashboard-summary-radius:            var(--radius-sm, 4px);
    --dashboard-summary-padding-y:         8px;
    --dashboard-summary-padding-x:         var(--space-2, 8px);
    --dashboard-summary-gap:               10px;
    --dashboard-summary-cell-padding-x:    var(--space-1, 4px);
  }

  /* RSM Dashboard routes only (body class from NewDesignLayout). Portaled
     modals inherit these remaps. Do not reference --dashboard-radius-* or
     --dashboard-table-* in shared components. Modals, widgets, and
     table shells are 8px on Mission Control, Pages, Entities, and Connections.
     Buttons, fields, and badges stay 4px. */
  body.ic-rsm-dashboard {
    --btn-border-radius:           var(--dashboard-radius-md);
    --input-border-radius:         var(--dashboard-radius-md);
    --field-radius:                var(--dashboard-radius-md);
    --badge-border-radius:         var(--dashboard-radius-md);
    --modal-border-radius:         var(--dashboard-radius-lg);
    --widget-surface-border-radius: var(--dashboard-radius-lg);
    --widget-table-border-radius:   var(--dashboard-radius-lg);
    --widget-table-header-bg:      var(--dashboard-table-header-bg);
    --table-row-alt-bg:            var(--dashboard-table-row-alt-bg);
    --widget-table-pagination-text: var(--dashboard-table-pagination-text);
    /* Remap shared widget-table type tokens (used by widgetDataTable.css). */
    --widget-table-header-font-size:   var(--dashboard-table-header-font-size);
    --widget-table-header-font-weight: var(--dashboard-table-header-font-weight);
    --widget-table-row-font-size:      var(--dashboard-table-row-font-size);
    --widget-table-row-font-weight:    var(--dashboard-table-row-font-weight);
  }

  /* Switch geometry + label alignment — match the default MD switch used by
     “Depends on parent entity”. size="small" otherwise keeps a 32×15 track
     inside a 24px root and sits off the label. Portaled modals inherit this
     via the body class. */
  body.ic-rsm-dashboard .MuiSwitch-root.MuiSwitch-sizeSmall {
    width: 58px;
    height: 38px;
    padding: 12px;
    overflow: visible;
  }

  body.ic-rsm-dashboard .MuiSwitch-sizeSmall .MuiSwitch-switchBase {
    padding: 9px;
  }

  body.ic-rsm-dashboard .MuiSwitch-sizeSmall .MuiSwitch-thumb {
    width: 20px;
    height: 20px;
  }

  body.ic-rsm-dashboard .MuiSwitch-sizeSmall .MuiSwitch-switchBase.Mui-checked {
    transform: translateX(20px);
  }

  body.ic-rsm-dashboard .MuiFormControlLabel-root {
    align-items: center;
  }

  body.ic-rsm-dashboard .MuiFormControlLabel-root .MuiSwitch-root {
    align-self: center;
  }

  body.ic-rsm-dashboard label:has(> .MuiSwitch-root) {
    display: inline-flex;
    align-items: center;
  }
  
  
  /* ================================================================
     8. SHADOWS  (non-color — no palette annotation)
     ================================================================ */
  :root {
    --shadow-xs:               0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm:               0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md:               0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:               0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:               0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    /* Same weight as --shadow-xl, cast upward. Sticky footers sit on the
       bottom edge, so a downward shadow would fall outside the bar. */
    --shadow-sticky-top:       0px -20px 25px -5px rgba(0, 0, 0, 0.1), 0px -8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-card:             0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-modal:            0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-navbar:           0 2px 4px rgba(0, 0, 0, 0.06);
    /* Floating card over a full-page scrim (ColdStartOverlay) */
    --shadow-overlay-card:     0px 24px 56px 0px rgba(0, 0, 0, 0.18);
    /* Figma toast / snackbar: 0 8px 24px #0000001F */
    --shadow-toast:            0 8px 24px 0 rgba(0, 0, 0, 0.12);
    /* Figma floating warning card: 0 4px 12px #0000001A */
    --shadow-banner:           0 4px 12px 0 rgba(0, 0, 0, 0.1);
  }
  
  
  /* ================================================================
     9. BUTTONS
     ================================================================ */
  :root {
    --btn-primary-bg:          var(--brand-primary);
    --btn-primary-text:        var(--brand-primary-contrast);
    --btn-primary-hover-bg:    var(--brand-primary-hover);
    --btn-primary-hover-text:  var(--btn-primary-text);
    --btn-primary-active-bg:   var(--brand-primary-active);
    --btn-primary-disabled-bg: #b8b9bb;
    --btn-primary-disabled-text: #ffffff;
    --btn-primary-shadow:      var(--shadow-sm);
  
    --btn-secondary-bg:        transparent;
    --btn-secondary-text:      var(--brand-primary);
    --btn-secondary-border:    var(--brand-primary);
    --btn-secondary-hover-bg:  var(--brand-primary-light);
    --btn-secondary-hover-text: var(--btn-secondary-text);
  
    --btn-danger-bg:           var(--color-error);
    --btn-danger-text:         #ffffff;
    /* Distinct from --color-error so destructive / ButtonV3 danger hover is visible. */
    --btn-danger-hover-bg:     #8E3035;
  
    --btn-border-radius:       var(--radius-sm);
    --btn-padding-x:           var(--space-4);
    --btn-padding-y:           var(--space-2);
    --btn-font-size:           var(--font-size-sm);
    --btn-font-weight:         var(--font-weight-medium);
    --btn-height:              36px;
  }
  
  
  /* ================================================================
     10. INPUTS & FORMS
     ================================================================ */
  :root {
    --input-bg:                #ffffff;
    --input-border:            #c3c5c6;
    --input-border-focus:      var(--brand-primary);
    --input-border-error:      var(--color-error);
    --input-text:              var(--text-primary);
    --input-placeholder:       var(--text-muted);
    --input-disabled-bg:       #f3f3f4;
    --input-border-radius:     var(--radius-lg);
    --input-padding:           8px 12px;
    --input-font-size:         var(--font-size-sm);
    /* Figma IC/Input/Field (components/InputV3): value 15px, helper 12.5px,
       inside label + required mark 11.5px, disabled text #B8B9BB. */
    --input-value-font-size:   var(--font-size-md);
    --input-helper-font-size:  12.5px;
    --input-caption-font-size: 11.5px;
    --input-text-disabled:     #B8B9BB;

    /* Figma Ic/Search (components/SearchField) — SM 280×32, 4px radius,
       10px pad, 8px icon gap. Colours alias existing tokens so a tenant
       stylesheet (including RSM) remaps icon and hover with text/border. */
    --search-field-bg:         var(--bg-surface, #ffffff);
    --search-field-border:     var(--color-border-default, #E5E5E5);
    --search-field-border-hover: var(--color-border-mid, #B8B9BB);
    --search-field-bg-disabled: var(--bg-page, #F3F3F4);
    --search-field-border-disabled: var(--border-color, #E7E8E8);
    --search-field-icon:       var(--text-tertiary, #63666A);
    --search-field-icon-focus: var(--brand-primary, #314B87);
    --search-field-icon-disabled: var(--input-text-disabled, #B8B9BB);
    --search-field-radius:     var(--radius-sm, 4px);
    --search-field-height-sm:  32px;
    --search-field-height-md:  40px;
    --search-field-width-sm:   280px;
    --search-field-pad-x:      10px;
    --search-field-gap:        8px;
    /* DataTableV3 toolbar. Resting search border stays #7D8083.
       Filter ink and search focus follow --brand-primary, the same token
       as the active tab (Assigned). Settings remap that token per theme. */
    --dt-search-border:        #7D8083;
    --dt-search-border-focus:  var(--brand-primary, #314B87);
    --dt-search-icon-focus:    var(--brand-primary, #314B87);
    --dt-filter-border:        var(--brand-primary, #314B87);
    --dt-filter-icon:          var(--brand-primary, #314B87);
    --dt-filter-text:          var(--brand-primary, #314B87);

    /* Config Kit field geometry (NODE_CONFIG_PLAN.md §5.3). The ONLY place a
       configuration field's size is written. Height is never a literal: it
       is line + 2×pad-y + 2×border, so a tenant stylesheet that changes
       --font-size-sm moves every field, chip and label together. */
    --field-font:              var(--font-size-sm);
    --field-label-font:        var(--font-size-xs);
    --field-line:              1.4375em;
    --field-pad-y:             8.5px;
    --field-pad-x:             12px;
    --field-radius:            var(--radius-md);
    --field-gap:               var(--space-3);

    /* iOS zooms on focus of any sub-16px input and never zooms back.
       Token-level guard so tenant stylesheets inherit it too. */
  
    --select-bg:               #ffffff;
    --select-border:           var(--input-border);
    --select-arrow-color:      var(--text-secondary);
  
    --checkbox-checked-bg:     var(--brand-primary-1);
    --checkbox-checked-hover-bg: var(--checkbox-checked-bg);
    /* ON track follows the action color. Default theme: same navy as
       --brand-primary. RSM: Action Green via --brand-primary-1. */
    --switch-on-bg:            var(--brand-primary-1);
    --checkbox-border:         var(--input-border);
    /* IC/Checkbox/Option — a selectable row in a multi-select list. */
    --checkbox-option-hover-bg:    var(--bg-surface-hover);
    --checkbox-option-selected-bg: var(--brand-primary-light);
    --checkbox-option-radius:      var(--radius-lg);
    --radio-checked-bg:        var(--brand-primary);
  }
  
  
  /* ================================================================
     11. TABLES
     ================================================================ */
  :root {
    --table-header-bg:         var(--brand-primary);
    --table-header-text:       var(--brand-primary-contrast);
    --table-row-bg:            #ffffff;
    --table-row-alt-bg:        #f3f3f4;
    --table-row-hover-bg:      #eef2fb;
    --table-border:            #e7e8e8;
    --table-cell-padding:      8px 12px;
    --table-font-size:         var(--font-size-sm);
  }
  
  
  /* ================================================================
     12. CARDS & CONTAINERS
     ================================================================ */
  :root {
    --card-bg:                 var(--bg-surface);
    --card-border:             var(--border-color);
    --card-shadow:             var(--shadow-card);
    --card-border-radius:      var(--radius-xl);
    --card-padding:            var(--space-6);
  
    --modal-bg:                var(--bg-surface);
    --modal-shadow:            var(--shadow-modal);
    --modal-border-radius:     var(--radius-xl);
    /* Match components/Modal (MappingTreeWorkspaceModal): gray-500 @ 75% */
    --modal-overlay-bg:        var(--bg-overlay);
    --modal-max-width-sm:      400px;
    --modal-max-width-md:      560px;
    --modal-max-width-lg:      720px;
    --modal-max-width-xl:      960px;
    /* Wide admin grids (Track Feedback, multi-column tables). */
    --modal-max-width-xxl:     1280px;
  }
  
  
  /* ================================================================
     12a. STEPPER
     ================================================================ */
  :root {
    --stepper-active-bg:       var(--brand-primary);
    --stepper-active-text:     #ffffff;
    --stepper-completed-bg:    var(--color-success);
    --stepper-completed-text:  #ffffff;
    --stepper-pending-bg:      var(--bg-surface);
    --stepper-pending-text:    var(--brand-primary-2);
    --stepper-connector:       var(--brand-primary-2);
    --stepper-connector-active: var(--brand-primary);
  }
  
  
  /* ================================================================
     12b. AUTH SCREENS
     ================================================================ */
  :root {
    --auth-brand-gradient:     linear-gradient(135deg, var(--brand-primary) 0%, #dbe5ff 100%);
    --auth-surface:            var(--bg-surface);
    --auth-form-max-width:     440px;
  }
  
  
  /* ================================================================
     12c. STATUS INDICATORS
     ================================================================ */
  :root {
    --status-ready-bg:         var(--badge-success-bg);
    --status-ready-text:       var(--badge-success-text);
    --status-draft-bg:         var(--badge-neutral-bg);
    --status-draft-text:       var(--badge-neutral-text);
    --status-published-bg:     var(--badge-info-bg);
    --status-published-text:   var(--badge-info-text);
    --status-error-bg:         var(--badge-error-bg);
    --status-error-text:       var(--badge-error-text);
    --status-training-bg:      var(--badge-warning-bg);
    --status-training-text:    var(--badge-warning-text);
    /* Generic semantic aliases — used by the shared StatusChip
       primitive and by row-level statusCheck helpers (e.g. agent
       list, feature-extraction list) when the caller doesn't have a
       workflow-specific status name.
       These are SEMANTICALLY OWNED by status pills and tuned for
       at-a-glance distinguishability  they're intentionally
       stronger than the more subtle --badge-* tokens (which are
       reused for sidebar active states, button hovers, etc., where
       a lighter wash is desirable). Override these to rebrand
       status colours without touching the rest of the UI.
       NOTE: new palette is muted  vibrant fills map to the semantic
       subtle (bg) + strong (text) pair; original vibrant hues have no
       palette equivalent. */
    --status-success-bg:       #E0FED0;
    --status-success-text:     #577741;
    --status-warning-bg:       #FBF3D6;
    --status-warning-text:     #8B6028;
    --status-info-bg:          #E6F2FC;
    --status-info-text:        #4994EC;
    --status-error-bg:         #F6DEDE;
    --status-error-text:       #AD3B41;
    --status-neutral-bg:       #E7E8E8;
    --status-neutral-text:     #333333;
  
    /* Content max-width caps — consumed by future ContentContainer.
       Pages that don't opt in continue to render full-width. */
    --container-narrow:        600px;
    --container-standard:      1200px;
    --container-wide:          1400px;
    --container-full:          100%;
  
    /* Convenience text-on-error for inline form error copy. */
    --text-error:              var(--color-error, #AD3B41);

    /* Tool-card group accents — the per-kind colour on the collapsible
       tool cards in the chat thinking panel (ToolCallCard). One accent
       per tool GROUP so a card reads at a glance which kind of tool ran:
       knowledge lookups wear the brand primary; the rest are distinct
       hues tuned to sit beside it. Override to rebrand the tool cards. */
    --tc-accent-knowledge:     var(--brand-primary);
    --tc-accent-web:           #0E7490;
    --tc-accent-code:          #7C3AED;
    --tc-accent-docs:          #B45309;
    --tc-accent-worker:        #BE185D;
    --tc-accent-tool:          var(--text-secondary);

    /* Section-resolver-kind accents — the per-kind dot/label colour on
       generated-section chips (SectionCards), one per resolver kind so a
       chip reads at a glance how that section was produced. Override to
       rebrand. */
    --resolver-llm:            #6366F1;
    --resolver-rag:            #059669;
    --resolver-web:            #D97706;
    --resolver-function:       #8B5CF6;
  }
  
  
  /* ================================================================
     12d. EMPTY STATES
     ================================================================ */
  :root {
    --empty-icon-tint:         var(--text-muted);
    --empty-title-color:       var(--text-primary);
    --empty-subtitle-color:    var(--text-secondary);
  }
  
  
  /* ================================================================
     13. SIDEBAR & NAVIGATION
     ================================================================ */
  :root {
    /* --sidebar-bg is intentionally NOT set here.
       When unset, SidenavRoot.js falls back to the theme color (dark blue).
       Tenant stylesheets can override it via: --sidebar-bg: <color>; */
    --sidebar-bg-gradient-start: #00143e;
    --sidebar-bg-gradient-end: #00143e;
    --sidebar-text:            var(--text-primary);
    --sidebar-text-muted:      var(--text-secondary);
    /* The rail is navy in every theme: white icons, and a translucent white
       hover tile so a light icon never sits on a light tile (Figma Sidenav). */
    --sidebar-icon:            var(--text-on-primary);
    --sidebar-item-hover-bg:   color-mix(in srgb, var(--text-on-primary) 10%, transparent);
    --sidebar-item-active-bg:  var(--brand-primary-light);
    --sidebar-item-active-text: var(--brand-primary);
    --sidebar-divider:         var(--border-color-subtle);
    --sidebar-shadow:          var(--shadow-sm);
    --sidebar-brand-text:      var(--text-heading);

    --navbar-bg:               rgba(219, 229, 255, 0.8);
    --navbar-text:             var(--text-primary);
    --navbar-shadow:           var(--shadow-navbar);
    --navbar-border-bottom:    none;
    --navbar-icon-color:       var(--text-secondary);
  }
  
  
  /* ================================================================
     14. CHAT UI
     ================================================================ */
  :root {
    /* Core chat tokens */
    --chat-user-bubble:        #EEF2FB;
    --chat-user-text:          #333333;
    --chat-border:             #e7e8e8;
    --chat-muted:              #737579;
    --chat-accent:             #314b87;
    --chat-code-bg:            #f3f3f4;
    --chat-code-border:        #e7e8e8;
    --chat-radius-bubble:      18px;
    --chat-radius-code:        8px;
    /* Question + answer message avatars share one shape (circle). */
    --chat-avatar-radius:      50%;
  
    /* Extended chat tokens */
    --chat-agent-text:         var(--text-primary);
    --chat-agent-link:         var(--text-link);
    --chat-input-bg:           #ffffff;
    --chat-input-border:       var(--border-color);
    --chat-input-focus-border: var(--brand-primary);
    --chat-empty-title-color:  var(--text-secondary);
    --chat-viewport-bg:        var(--bg-chat-viewport);
    --chat-thread-max-width:   80%;
    /* Buttons above the chat (Open Sidebar, New Chat, Export). A tenant
       stylesheet may set these. `initial` leaves the fill unset, so the
       buttons fall back to the user's own theme colour. */
    --chat-toolbar-btn-bg:     initial;
    --chat-toolbar-btn-radius: 12px;

    /* Citation badges */
    --citation-bg:             #dbe5ff;
    --citation-text:           #333333;
    --citation-hover-bg:       #dbe5ff;
    --citation-active-bg:      #314b87;
    --citation-active-text:    #ffffff;
  
    /* Source panel */
    --source-title-color:      #314b87;
    --source-doc-icon-bg:      #e0fed0;
    --source-web-icon-bg:      #e6f2fc;
    --source-snippet-color:    var(--chat-muted);
  
    /* Thinking / tool panel */
    --thinking-border:         var(--chat-accent);
    --thinking-header-text:    var(--chat-muted);
    --thinking-content-text:   #515356;
    --thinking-content-bg:     #f3f3f4;
    --thinking-dot-color:      var(--chat-accent);
  
    /* Report phase streaming */
    --report-phase-border:     var(--chat-accent);
    --report-phase-bg:         #f3f3f4;
    --report-phase-header-text: var(--chat-muted);
  }
  
  
  /* ================================================================
     15. GRADIENTS
     ================================================================ */
  :root {
    --gradient-primary-start:  #314B87;
    --gradient-primary-end:    #293F73;
    --gradient-success-start:  #577741;
    --gradient-success-end:    #E0FED0;
    --gradient-info-start:     #4994ec;
    --gradient-info-end:       #e6f2fc;
    --gradient-dark-start:     #42424a;
    --gradient-dark-end:       #191919;
  
    --gradient-accent-start:   #314B87;
    --gradient-accent-end:     #6E82B5;
    --gradient-patterns-start: #6366F1;
    --gradient-patterns-end:   #8B5CF6;
  
    /* Organization page header */
    --org-header-gradient:     linear-gradient(135deg, var(--brand-primary) 0%, var(--gradient-accent-end) 100%);
  }
  
  
  /* ================================================================
     16. BADGES & STATUS
     ================================================================ */
  :root {
    --badge-success-bg:        #E0FED0;
    --badge-success-text:      #577741;
    --badge-warning-bg:        #FBF3D6;
    --badge-warning-text:      #8B6028;
    --badge-error-bg:          #F6DEDE;
    --badge-error-text:        #AD3B41;
    --badge-info-bg:           var(--brand-primary-light);
    --badge-info-text:         var(--brand-primary);
    --badge-neutral-bg:        #E7E8E8;
    --badge-neutral-text:      #737579;

    /* Non-clickable status chips / badges (MatchType, Confidence, pills) */
    --badge-border-radius:     var(--radius-full);
  
    /* Additional category badges (Profit & Loss / Balance Sheet / Historical) */
    --badge-yellow-bg:        #f1b434;
    --badge-yellow-text:      #f1b434;
    --badge-orange-text:      #e87722;
    --badge-orange-bg:        #FFE9D8;

    --badge-teal-text:        #34a798;
    --badge-teal-bg:          #D9EBE5;

    --badge-purple-bg:       #E8DEED;
    --badge-purple-text:     #9f5cc0;

    --badge-sand-text:        #A2a569;
    --badge-sand-bg:          #E8E9D8;
  
  }

  /* ================================================================
     16b. TOOLTIPS
     ================================================================ */
  :root {
    --tooltip-bg:              #EEF2FB;
    --tooltip-text:            var(--text-primary);
    --tooltip-border:          #DBDCDD;
    --tooltip-border-radius:   var(--radius-sm);
    --tooltip-shadow:          0px 6px 4px 0px rgba(15, 23, 41, 0.10);
    /* Fixed, not --font-size-sm (16px under RSM): matches components/Tooltip. */
    --tooltip-font-size:       14px;
    /* ToolTipV2 compact bubble: 5 / 8 / 4. 5px is not on the space scale. */
    --tooltip-padding:         5px var(--space-2) var(--space-1);
    /* Up-arrow on the short label bubble (12 × 6). */
    --tooltip-arrow-width:     12px;
    --tooltip-arrow-height:    6px;
  }

  /* ================================================================
     16c. ICONS
     ================================================================ */
  :root {
    /* Action / interactive icons  */
    --icon-primary:            var(--brand-primary-1);
    /* Emphasized brand icons */
    --icon-secondary:          var(--brand-primary);
    /* Quiet / decorative icons */
    --icon-neutral:            var(--brand-primary-2);
    --icon-neutral-bg:         #F3F3F4;
    --icon-neutral-fg:         #333333;
    --badge-accent-bg:         #F5F3FF;
  --badge-accent-text:       #7C3AED;
}
  
  
  /* ================================================================
     17. TRANSITIONS & ANIMATIONS 
     ================================================================ */
  :root {
    --transition-fast:         150ms ease;
    --transition-normal:       250ms ease;
    --transition-slow:         350ms ease-in-out;
  }
  
  
  /* ================================================================
     18. Z-INDEX LAYERS  
     ================================================================ */
  :root {
    --z-dropdown:              1000;
    --z-sticky:                1020;
    --z-modal-backdrop:        1040;
    --z-modal:                 1050;
    --z-sidenav:               1300;
    --z-tooltip:               1070;
    --z-toast:                 1400;
  }
  
  
  /* ================================================================
     19. SCROLLBAR
     ================================================================ */
  :root {
    --scrollbar-width:         6px;
    --scrollbar-track-bg:      #f3f3f4;
    --scrollbar-thumb-bg:      var(--brand-primary-2);
    --scrollbar-thumb-radius:  var(--radius-sm);
  }
  
  
  /* ================================================================
     20a. SYNTAX HIGHLIGHTING (HLjs)
    
     ================================================================ */
  :root {
    --hljs-keyword:            #ad3b41;
    --hljs-function:           #6e82b5;
    --hljs-variable:           #577741;
    --hljs-string:             #8b6028;
  }
  
  /* ================================================================
     20. FLOW BUILDER
     ================================================================ */
  :root {
    --fb-accent:               var(--app-accent);
    --fb-accent-hover:         var(--app-accent-hover);
    --fb-accent-gradient:      var(--app-accent-gradient);
    --fb-surface:              #F3F3F4;
    --fb-sidebar-bg:           var(--bg-surface-hover);
    --fb-card-shadow:          0px 13px 27px -5px #00143E26, 0px 8px 16px -8px #19253233, 0px -6px 16px -6px #19253208, 0px 0px 0px 1px #1925321A;
    --flow-edge-default:       #C4C9D2;
  --flow-edge-condition:     #F59E0B;
  --flow-edge-parallel:      #2563EB;
  --flow-edge-loop:          #7C3AED;
}
  
  
  /* ================================================================
     21. APP-WIDE ACCENT
     ================================================================ */
  :root {
    --app-accent:              var(--brand-primary);
    --app-accent-hover:        var(--brand-primary-hover);
    --app-accent-light:        var(--brand-primary-light);
    --app-accent-gradient:     linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-primary-hover) 100%);
  }
  
  
  /* ================================================================
     22. FORM & DIALOG UTILITIES
     Reusable tokens for modal dialogs, forms, and overlays.
     ================================================================ */
  :root {
    --dialog-padding:          24px;
    --dialog-padding-sm:       16px;
    --dialog-header-gap:       12px;
    --dialog-min-width:        400px;
    --form-field-gap:          16px;
    --form-label-color:        var(--text-secondary);
    --form-label-size:         13px;
    --form-label-weight:       600;
  }
  
  
  /* ================================================================
     DARK MODE OVERRIDES
     Activated via .dark class on <html> or <body>.
     Every token that changes in dark mode is listed below.
  
     ================================================================ */
  
  /* --- 1. Brand --- */
  :root.dark {
    --brand-primary-light:     #1D2B50;
    --brand-primary-light-alpha: #1D2B5033;
    --brand-primary-dark:      #A9B8DE;
    --brand-primary-contrast:  #FFFFFF;
    --brand-primary-3:         #515356;
    --brand-teams:             #6E82B5;
    --brand-secondary:         #868B8D;
    --brand-secondary-light:   #12203F;
    --brand-accent-light:      #1D2B50;
  }
  
  /* --- 2. Semantic --- */
  :root.dark {
    --color-success-light:     #577741;
    --color-warning-light:     #8B6028;
    --color-warning-bg:        #8B6028;
    --color-error-light:       #AD3B41;
    --color-error-border:      #AD3B41;
    --color-info-light:        #314B87;
    --color-info-border:       #314B87;
    --color-success-border:    #577741;
  }
  
  /* --- 3. Backgrounds --- */
  :root.dark {
    --bg-page:                 #00143E;
    --bg-surface:              #12203F;
    --bg-surface-elevated:     #1D2B50;
    --bg-surface-hover:        #1D2B50;
    --bg-surface-active:       #1D2B50;
    --bg-surface-disabled:     #12203F;
    --bg-overlay:              rgba(107, 114, 128, 0.75);
    /* Dark theme: the veil follows --bg-surface (#1E293B), not white. */
  --bg-surface-overlay:      rgba(30, 41, 59, 0.75);
  --bg-chat-viewport:        #00143E;
    --bg-dropzone:             #12203F;
    --bg-icon-well:            #1D2B50;
    --bg-subtle:               #12203F;
    /* Same dark elevated surface as --bg-surface-hover / --bg-skeleton. */
    --bg-card:                 var(--bg-surface-hover);
    --bg-skeleton:             #1D2B50;
    --bg-chat-bubble:          #1D2B508A;
    --bg-code-block:           #00143e;
    --bg-code-header:          #00143e;
    --bg-tooltip:              var(--tooltip-bg);
  }
  
  /* --- 4. Text --- */
  :root.dark {
    --text-primary:            #FFFFFF;
    --text-secondary:          #868B8D;
    --text-tertiary:           #9B9FA1;
    --text-description:        var(--text-secondary);
    --text-muted:              #737579;
    --text-caption:            #868B8D;
    /* --text-label stays aliased to --brand-primary-2 (unchanged in dark). */
    --text-meta:               var(--text-secondary);
    --text-helper:             var(--brand-secondary, #868B8D);
    --text-disabled:           #515356;
    --text-inverse:            #00143E;
    --text-link:               #4994EC;
    --text-link-hover:         #A9B8DE;
    --text-heading:            #FFFFFF;
    --text-code:               #DBE5FF;
  }

  /* --- 4b. Figma semantic colours whose light value is Figma-only --- */
  :root.dark {
    --color-bg-subtle:         var(--bg-subtle);
    --color-border-default:    var(--border-color);
    --color-border-mid:        var(--border-color-strong);
    --color-border-control:    var(--input-border);
    --color-text-tertiary:     var(--text-muted);
    --color-text-heading:      var(--text-heading);
    --color-text-placeholder:  var(--input-placeholder);
    /* Dark info / warning tints are saturated, so their text goes light */
    --color-tint-info-fg:      var(--text-primary);
    --color-tint-warning-fg:   var(--text-primary);
    --color-tint-violet-bg:    #2E1D4D;
    --color-tint-violet-well:  #4C3A6E;
    --color-tint-violet-fg:    #A5B4FC;
    --color-tint-amber-bg:     #3D3420;
    --color-tint-danger-fg:    var(--text-primary);
    --color-tint-success-fg:   var(--text-primary);
    --color-progress-track:    var(--border-color);
    --brand-primary-muted:     var(--brand-primary);
  }
  
  /* --- 7. Borders --- */
  :root.dark {
    --border-color:            #1D2B50;
    --border-color-strong:     #515356;
    --border-color-subtle:     #12203F;
    --border-color-soft:       #1D2B50;
    --border-divider:          var(--border-color-soft);
    /* Chart chrome follows the dark borders / muted text; the categorical
       --chart-series-* palette stays the same in both themes. */
    --chart-grid:              var(--border-color-soft);
    --chart-label:             var(--text-muted);
    --chart-track:             var(--border-color);
    --border-brand-soft:       #314B87;
    --widget-surface-border-color: #1D2B50;
    --widget-surface-bg:           var(--bg-surface);
    /* Dark-blue header so the (now light) header text keeps contrast in dark mode. */
    --widget-table-header-bg:      #1D2B50;
    --dashboard-table-title-text:  var(--text-heading);
    --dashboard-summary-divider-color: var(--border-color);
    --dashboard-summary-label-text:    var(--text-muted);
    --dashboard-summary-value-text:    var(--text-heading);
    --dashboard-table-header-bg:   #1D2B50;
    --dashboard-table-row-alt-bg:  #1D2B50;
  }
  
  /* --- 8. Shadows  (non-color) --- */
  :root.dark {
    --shadow-xs:               0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm:               0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md:               0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg:               0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
    --shadow-xl:               0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
    --shadow-sticky-top:       0px -20px 25px -5px rgba(0, 0, 0, 0.3), 0px -8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-card:             0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-modal:            0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-navbar:           0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-toast:            0 8px 24px 0 rgba(0, 0, 0, 0.36);
    --shadow-banner:           0 4px 12px 0 rgba(0, 0, 0, 0.3);
  }
  
  /* --- 9. Buttons --- */
  :root.dark {
    --btn-primary-disabled-bg: #515356;
    --btn-primary-disabled-text: #868B8D;
    --btn-secondary-bg:        transparent;
    --btn-secondary-text:      #A9B8DE;
    --btn-secondary-border:    #4994EC;
    --btn-secondary-hover-bg:  #1D2B50;
    --btn-secondary-hover-text: var(--btn-secondary-text);
  }
  
  /* --- 10. Inputs --- */
  :root.dark {
    --input-bg:                #12203F;
    --input-border:            #515356;
    --input-text:              var(--text-primary);
    --input-placeholder:       #737579;
    --input-disabled-bg:       #00143E;
    --input-text-disabled:     var(--text-disabled);
    --select-bg:               #12203F;
    --search-field-bg:         var(--bg-surface);
    --search-field-border:     var(--border-color);
    --search-field-border-hover: var(--border-color-strong, #515356);
    --search-field-bg-disabled: var(--input-disabled-bg, #00143E);
    --search-field-border-disabled: var(--border-color);
    --search-field-icon:       var(--text-secondary, #63666A);
    --search-field-icon-focus: var(--brand-primary, #314B87);
    --search-field-icon-disabled: var(--input-text-disabled, #B8B9BB);
    --dt-search-border:        #8E9194;
    --dt-search-border-focus:  var(--brand-primary, #314B87);
    --dt-search-icon-focus:    var(--brand-primary, #314B87);
    --dt-filter-border:        var(--brand-primary, #314B87);
    --dt-filter-icon:          var(--brand-primary, #314B87);
    --dt-filter-text:          var(--brand-primary, #314B87);
  }
  
  /* --- 11. Tables --- */
  :root.dark {
    --table-row-bg:            #12203F;
    --table-row-alt-bg:        #1D2B50;
    --table-row-hover-bg:      #1D2B50;
    --table-border:            #1D2B50;
  }
  
  /* --- 12. Cards --- */
  :root.dark {
    --card-bg:                 var(--bg-surface);
    --card-border:             var(--border-color);
    --card-shadow:             var(--shadow-card);
    --modal-bg:                var(--bg-surface);
    --modal-shadow:            var(--shadow-modal);
  }
  
  /* --- 13. Sidebar & Nav --- */
  :root.dark {
    --sidebar-bg-gradient-start: #12203F;
    --sidebar-bg-gradient-end: #00143E;
    --sidebar-text:            #FFFFFF;
    --sidebar-text-muted:      #868B8D;
    --sidebar-icon:            var(--text-on-primary);
    --sidebar-item-hover-bg:   color-mix(in srgb, var(--text-on-primary) 10%, transparent);
    --sidebar-item-active-bg:  #1D2B50;
    --sidebar-item-active-text: #4994EC;
    --sidebar-divider:         #1D2B50;
    /* Rail tokens, dark: the current item keeps the dark palette above. */
    --sidebar-rail-active-bg:   #1D2B50;
    --sidebar-rail-active-icon: #4994EC;
    --sidebar-rail-divider:     #1D2B50;
    --sidebar-brand-text:      #FFFFFF;
    --navbar-bg:               rgba(0, 20, 62, 0.85);
    --navbar-text:             #FFFFFF;
    --navbar-icon-color:       #868B8D;
  }
  
  /* --- Organization page header (dark) --- */
  :root.dark {
    --org-header-gradient:     linear-gradient(135deg, #00143e 0%, #1D2B50 100%);
  }
  
  /* --- 14. Chat UI --- */
  :root.dark {
    --chat-user-bubble:        #1D2B50;
    --chat-user-text:          #FFFFFF;
    --chat-border:             #1D2B50;
    --chat-muted:              #737579;
    --chat-accent:             #4994EC;
    --chat-code-bg:            #00143e;
    --chat-code-border:        #1D2B50;
    --chat-agent-text:         #FFFFFF;
    --chat-agent-link:         #4994EC;
    --chat-input-bg:           #12203F;
    --chat-input-border:       #1D2B50;
    --chat-empty-title-color:  #868B8D;
    --chat-viewport-bg:        #00143E;
  
    --citation-bg:             #1D2B50;
    --citation-text:           #4994EC;
    --citation-hover-bg:       #1D2B50;
    --citation-active-bg:      #314B87;
    --citation-active-text:    #ffffff;
  
    --source-title-color:      #4994EC;
    --source-doc-icon-bg:      #577741;
    --source-web-icon-bg:      #1D2B50;
    --source-snippet-color:    #737579;
  
    --thinking-border:         #4994EC;
    --thinking-header-text:    #737579;
    --thinking-content-text:   #868B8D;
    --thinking-content-bg:     #12203F;
  
    --report-phase-bg:         #12203F;
    --report-phase-header-text: #737579;
  }
  
  /* --- 16. Badges --- */
  :root.dark {
    --badge-success-bg:        #577741;
    --badge-success-text:      #E0FED0;
    --badge-warning-bg:        #8B6028;
    --badge-warning-text:      #FBF3D6;
    --badge-error-bg:          #AD3B41;
    --badge-error-text:        #F6DEDE;
    --badge-info-bg:           #1D2B50;
    --badge-info-text:         #A9B8DE;
    --badge-neutral-bg:        #1D2B50;
    --badge-neutral-text:      #868B8D;
    --badge-accent-bg:         #2E1D4D;
  --badge-accent-text:       #C4B5FD;

    /* Additional category badges */
    --badge-yellow-bg:        #f1b434;
    --badge-yellow-text:      #f1b434;
    --badge-orange-text:      #e87722;
    --badge-orange-bg:        #FFE9D8;

    --badge-teal-text:        #34a798;
    --badge-teal-bg:          #D9EBE5;

    --badge-purple-bg:       #E8DEED;
    --badge-purple-text:     #9f5cc0;

    --badge-sand-text:        #A2a569;
    --badge-sand-bg:          #E8E9D8;
  }

  /* --- 12c. Resolver-kind accents --- */
  :root.dark {
    --resolver-llm:            #A5B4FC;
    --resolver-rag:            #34D399;
    --resolver-web:            #FBBF24;
    --resolver-function:       #C4B5FD;
  }

  /* --- 16b. Tooltips --- */
  :root.dark {
    /* The tooltip surface stays light in dark mode, so the ink is pinned to the
       light-mode value instead of following --text-primary (white when dark). */
    --tooltip-bg:              #EEF2FB;
    --tooltip-text:            #333333;
    --tooltip-border:          #DBDCDD;
    --tooltip-border-radius:   var(--radius-sm);
    --tooltip-shadow:          0px 6px 4px 0px rgba(15, 23, 41, 0.10);
    --tooltip-padding:         5px var(--space-2) var(--space-1);
    --tooltip-arrow-width:     12px;
    --tooltip-arrow-height:    6px;
  }

  /* --- 16c. Icons --- */
  /* Alias brand tokens — inherit dark brand overrides automatically. */
  :root.dark {
    --icon-primary:            var(--brand-primary-1);
    --icon-secondary:          var(--brand-primary);
    --icon-neutral:            var(--brand-primary-2);
    --icon-neutral-bg:         #2A2E32;
    --icon-neutral-fg:         #FFFFFF;
}
  
  /* --- 19. Scrollbar --- */
  :root.dark {
    --scrollbar-track-bg:      #12203F;
    --scrollbar-thumb-bg:      #515356;
  }
  
  /* --- 20a. Syntax Highlighting --- */
  :root.dark {
    --hljs-keyword:            #AD3B41;
    --hljs-function:           #A9B8DE;
    --hljs-variable:           #577741;
    --hljs-string:             #FBF3D6;
  }
  
  /* --- 20. Flow Builder --- */
  :root.dark {
    --fb-surface:              #12203F;
    --fb-sidebar-bg:           #00143E;
    --fb-card-shadow:          0px 13px 27px -5px rgba(0,0,0,0.4), 0px 8px 16px -8px rgba(0,0,0,0.3), 0px 0px 0px 1px rgba(255,255,255,0.05);
    --flow-edge-default:       #64748B;
  --flow-edge-condition:     #F59E0B;
  --flow-edge-parallel:      #60A5FA;
  --flow-edge-loop:          #A78BFA;
}
  
  /* --- 12a. Stepper --- */
  :root.dark {
    --stepper-active-bg:       #4994EC;
    --stepper-active-text:     #00143E;
    --stepper-completed-bg:    var(--color-success);
    --stepper-completed-text:  #ffffff;
    --stepper-pending-bg:      var(--bg-surface);
    --stepper-pending-text:    var(--brand-primary-2);
    --stepper-connector:       var(--brand-primary-2);
    --stepper-connector-active: #4994EC;
  }
  
  /* --- 12b. Auth --- */
  :root.dark {
    --auth-brand-gradient:     linear-gradient(135deg, #00143e 0%, #1D2B50 100%);
    --auth-surface:            var(--bg-surface);
  }
  
  /* --- 12c. Status --- */
  :root.dark {
    --status-ready-bg:         var(--badge-success-bg);
    --status-ready-text:       var(--badge-success-text);
    --status-draft-bg:         var(--badge-neutral-bg);
    --status-draft-text:       var(--badge-neutral-text);
    --status-published-bg:     var(--badge-info-bg);
    --status-published-text:   var(--badge-info-text);
    --status-error-bg:         var(--badge-error-bg);
    --status-error-text:       var(--badge-error-text);
    --status-training-bg:      var(--badge-warning-bg);
    --status-training-text:    var(--badge-warning-text);
    /* Generic semantic aliases — dark-mode mirrors of the light
       palette so StatusChip variants render correctly in both modes. */
    --status-success-bg:       var(--badge-success-bg);
    --status-success-text:     var(--badge-success-text);
    --status-warning-bg:       var(--badge-warning-bg);
    --status-warning-text:     var(--badge-warning-text);
    --status-info-bg:          var(--badge-info-bg);
    --status-info-text:        var(--badge-info-text);
    --status-neutral-bg:       var(--badge-neutral-bg);
    --status-neutral-text:     var(--badge-neutral-text);
    --text-error:              var(--color-error, #AD3B41);
  }
  
  /* --- 12d. Empty States --- */
  :root.dark {
    --empty-icon-tint:         #737579;
    --empty-title-color:       #FFFFFF;
    --empty-subtitle-color:    #868B8D;
  }
  
  /* Support impersonation ("Login as user"): when active, ImpersonationBanner
     adds .imp-shift to #app and sets --imp-banner-h. The transform pushes the
     whole app (including the fixed Sidenav) below the banner so it never overlaps
     app chrome. The banner itself is portaled to <body>, outside #app. */
  #app.imp-shift {
    transform: translateY(var(--imp-banner-h, 44px));
  }
  
  /* Microsoft credential-expiry alert (Super Admin): CredentialExpiryBanner adds
     .cred-shift to #app and sets --cred-banner-h, same push-down mechanism. Hidden
     while impersonating, so it never stacks with .imp-shift. */
  #app.cred-shift {
    transform: translateY(var(--cred-banner-h, 40px));
  }
  
/* ── Mobile input-zoom guard (2026-09-01 mobile audit, fix #1) ──
   iOS Safari zooms the viewport when a focused input renders below 16px,
   and never zooms back out. Applies at the token level so every consumer
   of --input-font-size is covered. */
@media (max-width: 767.98px) {
  :root {
    --input-font-size: 16px;
    --input-value-font-size: 16px;
  }
}

/* ================================================================
   IntellixCore Shared Animations
   ================================================================
   Reusable keyframes shared across components.
   Component-specific animations (chat, flow builder, voice)
   remain in their own CSS files.
   ================================================================ */

/* --- Fade In --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Fade + Slide Up (modals, toasts, panels) --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Fade + Slide Down (dropdowns, menus) --- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Spinner (loading states) --- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- Pulse (status indicators, live dots) --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* --- Skeleton shimmer (loading placeholders) --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* --- Scale press (button feedback) --- */
@keyframes scalePress {
  0%   { transform: scale(1); }
  50%  { transform: scale(0.97); }
  100% { transform: scale(1); }
}

/* --- Utility classes --- */
.animate-fade-in {
  animation: fadeIn var(--transition-normal) ease forwards;
}

.animate-fade-slide-up {
  animation: fadeSlideUp var(--transition-normal) ease forwards;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-surface-hover) 25%,
    var(--bg-surface) 50%,
    var(--bg-surface-hover) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ================================================================
   MICRO-INTERACTIONS
   ================================================================ */

/* --- Button press feedback --- */
.btn-press:active {
  transform: scale(0.97);
  transition: transform 50ms ease;
}

/* --- Card hover lift (desktop only) --- */
@media (hover: hover) {
  .card-hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  }
  .card-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* --- Card tap feedback (touch devices) --- */
@media (hover: none) {
  .card-hover-lift:active {
    transform: scale(0.98);
    transition: transform 50ms ease;
  }
}

/* --- Tab underline slide --- */
.tab-underline {
  position: relative;
}
.tab-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand-primary, #1E4585);
  transition: width var(--transition-normal), left var(--transition-normal);
}
.tab-underline.active::after,
.tab-underline:hover::after {
  width: 100%;
  left: 0;
}

/* --- Focus ring (accessibility) --- */
.focus-ring:focus-visible {
  outline: 2px solid var(--brand-primary, #1E4585);
  outline-offset: 2px;
  border-radius: var(--radius-sm, 4px);
}

/* --- Status dot pulse --- */
.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success, #70B244);
  animation: pulse 2s ease-in-out infinite;
}

/* --- Skeleton loading block --- */
.skeleton-block {
  border-radius: var(--radius-lg, 8px);
  background: linear-gradient(
    90deg,
    var(--bg-surface-hover, #f8f9fa) 25%,
    var(--bg-surface, #fff) 50%,
    var(--bg-surface-hover, #f8f9fa) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}


/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in,
  .animate-fade-slide-up {
    animation: none;
    opacity: 1;
  }

  .animate-spin {
    animation: none;
  }

  .animate-pulse {
    animation: none;
  }

  .animate-shimmer,
  .skeleton-block {
    animation: none;
    background: var(--bg-surface-hover);
  }

  .card-hover-lift:hover {
    transform: none;
  }

  .btn-press:active {
    transform: none;
  }

  .status-dot-live {
    animation: none;
  }
}

/* Fonts are self-hosted (Inter/Mulish/Poppins/Playfair via @fontsource in
   src/index.js). Prelo is licensed for tenant themes and lazy-loaded from
   useTenantStylesheet when --font-family-primary is Prelo — no CDN.
   Utility classes follow --font-family-primary so tenant themes apply. */

.truncateSomeLine {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  overflow: hidden;
}

.portal-font {
  font-family: var(--font-family-primary, "Inter", sans-serif) !important;
}

.teams-font {
  font-family: var(--font-family-primary, "Inter", sans-serif) !important;
}

.inter-font {
  font-family: var(--font-family-primary, "Inter", sans-serif) !important;
}

/** @deprecated Use .inter-font or .portal-font instead */
.poppins-font {
  font-family: var(--font-family-primary, "Inter", sans-serif) !important;
}

/** @deprecated Use .inter-font or .portal-font instead */
.mulish-font {
  font-family: var(--font-family-primary, "Inter", sans-serif) !important;
}

.truncateOneLineNew {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

/* ── Toasts (react-toastify) — Figma ToastContent card
   Surface 360 wide, 8px radius, pad 16/7/16/16, gap 12. A one-line
   message plus the 32×32 icon well is 66px tall. Close is a 16 hit /
   9.33 glyph. Severity is the well colour, not a left accent bar.
   String toasts and ToastContent share this chrome.

   Selectors include `.Toastify__toast` so they beat ReactToastify.css
   (same-specificity `.Toastify__toast { padding: 8px }` loads after the
   first core.css import in Storybook because Toaster.jsx pulls it in). */
.toast-message.Toastify__toast-container {
  width: 360px;
  max-width: calc(100vw - 2rem);
}

.toast-message {
  font-family: var(--font-family-primary, Inter), sans-serif !important;
}

.toast-message-item .Toastify__toast-body,
.Toastify__toast-body {
  font-family: var(--font-family-primary, Inter), sans-serif !important;
  font-weight: var(--font-weight-regular, 400);
  font-size: var(--font-size-body-sm, 13px);
  line-height: 20px;
  letter-spacing: var(--letter-spacing-normal, 0);
  color: var(--color-text-secondary, #515356);
}

.Toastify__toast.toast-message-item {
  box-sizing: border-box;
  position: relative;
  width: 360px;
  min-width: min(100%, 280px);
  max-width: min(360px, calc(100vw - 2rem));
  min-height: 0 !important;
  margin-bottom: var(--space-2, 8px);
  padding: 16px 7px 16px 16px !important;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-3, 12px);
  border: 1px solid var(--color-border-subtle, #EAECF0);
  border-radius: var(--radius-lg, 8px) !important;
  background: var(--color-bg-surface, #FFFFFF) !important;
  color: var(--color-text-secondary, #515356) !important;
  box-shadow: var(--shadow-toast, 0 8px 24px 0 rgba(0, 0, 0, 0.12)) !important;
}

.toast-message-item .toast-message-body,
.toast-message-item .Toastify__toast-body {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: var(--space-3, 12px);
}

.toast-message-item .Toastify__toast-icon {
  width: 32px !important;
  height: 32px;
  margin: 0 !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg, 8px);
  background: var(--color-bg-subtle, #F9F9FB);
}
.toast-message-item .Toastify__toast-icon svg {
  width: 18px;
  height: 18px;
}

.Toastify__toast--success .Toastify__toast-icon {
  background: var(--status-success-bg, #E0FED0);
  color: var(--status-success-text, #577741);
}
.Toastify__toast--success .Toastify__toast-icon svg {
  fill: currentColor;
}
.Toastify__toast--error .Toastify__toast-icon {
  background: var(--color-tint-danger-bg, #F6DEDE);
  color: var(--color-tint-danger-fg, #AD3B41);
}
.Toastify__toast--error .Toastify__toast-icon svg {
  fill: currentColor;
}
.Toastify__toast--warning .Toastify__toast-icon {
  background: var(--color-tint-warning-bg, #FBF3D6);
  color: var(--color-tint-warning-fg, #8B6028);
}
.Toastify__toast--warning .Toastify__toast-icon svg {
  fill: currentColor;
}
.Toastify__toast--info .Toastify__toast-icon {
  background: var(--color-tint-info-bg, #E6F2FC);
  color: var(--color-tint-info-fg, #314B87);
}
.Toastify__toast--info .Toastify__toast-icon svg {
  fill: currentColor;
}
.Toastify__toast--default .Toastify__toast-icon {
  color: var(--color-tint-neutral-fg, #63666A);
}
.Toastify__toast--default .Toastify__toast-icon svg {
  fill: currentColor;
}

.toast-message-item .Toastify__close-button,
.toast-message-item .Toastify__close-button--light {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  padding: 0;
  align-self: flex-start;
  color: var(--color-text-tertiary, #718096) !important;
  opacity: 1 !important;
}
.toast-message-item .Toastify__close-button:hover,
.toast-message-item .Toastify__close-button:focus {
  opacity: 0.75 !important;
  color: var(--color-text-tertiary, #718096) !important;
}
.toast-message-item .Toastify__close-button > svg {
  position: absolute;
  top: 3.33px;
  left: 3.34px;
  width: 9.33px !important;
  height: 9.33px !important;
  fill: currentColor;
}

.Toastify__progress-bar--success { background: var(--status-success-text, #577741) !important; }
.Toastify__progress-bar--error   { background: var(--color-tint-danger-fg, #AD3B41) !important; }
.Toastify__progress-bar--warning { background: var(--color-tint-warning-fg, #8B6028) !important; }
.Toastify__progress-bar--info,
.Toastify__progress-bar--default {
  background: var(--color-tint-neutral-fg, #63666A) !important;
}

.ic-toast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 8px) var(--space-3, 12px);
  width: 100%;
  min-width: 0;
}
.ic-toast__copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  min-width: 180px;
}
.ic-toast__title {
  font-family: var(--font-family-primary, Inter);
  font-weight: var(--font-weight-semibold, 600);
  font-size: var(--font-size-sm, 14px);
  line-height: 20px;
  letter-spacing: var(--letter-spacing-normal, 0);
  color: var(--color-text-primary, #333333);
}
.ic-toast__msg {
  font-family: var(--font-family-primary, Inter);
  font-weight: var(--font-weight-regular, 400);
  font-size: var(--font-size-body-sm, 13px);
  line-height: 20px;
  letter-spacing: var(--letter-spacing-normal, 0);
  color: var(--color-text-secondary, #515356);
}
.ic-toast__action {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm, 4px);
  background: var(--color-bg-brand, #314B87);
  color: var(--color-text-on-brand, #FFFFFF);
  font-family: var(--font-family-primary, Inter), sans-serif;
  font-size: var(--font-size-xs, 12px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 16px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ic-toast__action:hover {
  background: var(--brand-primary-hover, #293F73);
}

.ic-toast__action--link {
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--color-text-brand, #314B87);
  font-size: var(--font-size-body-sm, 13px);
  font-weight: var(--font-weight-regular, 400);
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ic-toast__action--link:hover {
  background: none;
  color: var(--brand-primary-hover, #293F73);
}

/*
 * Flip the toast progress bar so it FILLS left → right as time passes
 * (elapsed-time semantics) instead of the default scaleX(1) → scaleX(0)
 * shrink, which visually reads as "draining toward the left".
 *
 * react-toastify's default keyframe (`Toastify__trackProgress`) animates
 *   0%  { transform: scaleX(1); }
 *   100%{ transform: scaleX(0); }
 * with `transform-origin: left`. `animation-direction: reverse` plays
 * those keyframes backward, so the bar starts at scaleX(0) (empty) and
 * grows to scaleX(1) (full) — anchored on the left, so it grows toward
 * the right exactly like a typical progress bar.
 *
 * `!important` because react-toastify writes the animation shorthand
 * inline on each progress bar with the duration set from `autoClose`.
 */
.Toastify__progress-bar--animated,
.Toastify__progress-bar {
  height: 3px !important;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
  animation-direction: reverse !important;
  transform-origin: left !important;
}

[contenteditable="true"]:focus {
  outline: none !important;
}
input,
select,
textarea {
  outline: none !important;
}
input:focus,
textarea:focus,
select:focus,
input.form-control:focus {
  outline: none !important;
  outline-width: 0 !important;
  box-shadow: none !important;
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-color: none !important;
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--scrollbar-track-bg);
  -webkit-border-radius: var(--scrollbar-thumb-radius);
  border-radius: var(--scrollbar-thumb-radius);
}

::-webkit-scrollbar-thumb {
  -webkit-border-radius: var(--scrollbar-thumb-radius);
  border-radius: var(--scrollbar-thumb-radius);
  background: var(--scrollbar-thumb-bg);
}

/* Placeholder */
textarea::placeholder {
  font-size: 13px;
}

/* ========== Markdown Preview ============= */

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-preview th,
.markdown-preview td {
  border: 1px solid var(--border-color);
  padding: 8px;
}

.markdown-preview th {
  background-color: var(--bg-surface-hover);
  text-align: left;
}

.markdown-preview pre {
  position: relative;
  padding: 3em 1em;
  background: var(--bg-surface-hover);
  border-radius: 5px;
  overflow: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
}

button.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-success);
  color: var(--text-inverse);
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  cursor: pointer;
}

.markdown-preview pre code {
  display: block;
  white-space: pre-wrap;
  overflow-x: auto;
  word-wrap: break-word;
}

.markdown-preview a {
  color: var(--text-link);
  text-decoration: underline;
}

.markdown-preview a:hover {
  color: var(--text-link-hover);
}

/* Highlight.js Syntax Highlighting Styles */
.hljs {
  display: block;
  overflow-x: auto;
  padding: 0.5em;
  background: var(--bg-surface-active);
  border-radius: 4px;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link {
  color: var(--hljs-keyword, #a71d5d);
}

.hljs-function,
.hljs-title,
.hljs-name {
  color: var(--hljs-function, #795da3);
}

.hljs-variable,
.hljs-template-variable {
  color: var(--hljs-variable, #007400);
}

.hljs-string,
.hljs-doctag,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: var(--hljs-string, #df5000);
}

.copy-alert {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  color: var(--text-inverse);
  padding: 10px;
  border-radius: 3px;
  z-index: 1000;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 20px !important;
  margin-bottom: 10px !important;
}

.markdown-preview li {
  line-height: 1.6;
  margin-top: 0px !important;
}

.markdown-preview ol {
  list-style-type: decimal !important;
  margin-top: 20px !important;
  margin-bottom: 20px !important;
}

.markdown-preview ul {
  list-style-type: disc !important;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ======= Dots  ========== */

.dots {
  display: inline-flex;
  margin-left: 5px;
}

.dot {
  opacity: 0;
  animation: dot-blink 1.5s infinite step-start;
}

.dot:nth-child(1) {
  animation-delay: 0s;
}
.dot:nth-child(2) {
  animation-delay: 0.3s;
}
.dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dot-blink {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* === Robot Icon ====*/
@keyframes shiver {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.robot-icon {
  animation: shiver 0.5s ease-in-out infinite;
}

/* ==== Custom TextArea */
.custom-textarea::placeholder {
  color: var(--text-secondary) !important;
  font-size: 14px !important;
}

/* ================================================================
   TYPOGRAPHY UTILITY CLASSES
   Reusable text styles using design tokens.
   Use these instead of inline fontSize/fontWeight/color.
   ================================================================ */

.text-title {
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
  line-height: var(--line-height-tight, 1.25);
}

.text-subtitle {
  font-size: var(--font-size-sm, 14px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
  line-height: var(--line-height-tight, 1.25);
}

.text-body {
  font-size: var(--font-size-sm, 14px);
  font-weight: var(--font-weight-regular, 400);
  color: var(--text-primary);
  line-height: 1.6;
}

.text-small {
  font-size: 13px;
  font-weight: var(--font-weight-regular, 400);
  color: var(--text-secondary);
  line-height: var(--line-height-normal, 1.5);
}

.text-caption {
  font-size: var(--font-size-xs, 12px);
  font-weight: var(--font-weight-regular, 400);
  color: var(--text-secondary);
  line-height: var(--line-height-tight, 1.25);
}

.text-label {
  font-size: 11px;
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide, 0.025em);
}

.text-mono {
  font-family: var(--font-family-mono, "Fira Code", "Consolas", monospace);
  font-size: 13px;
}

.text-muted {
  color: var(--text-muted) !important;
}

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

.text-link:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

/* ================================================================
   PAGE TRANSITIONS (Sprint 8)
   ================================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-enter {
  animation: fadeIn var(--transition-normal, 250ms) ease;
}

/* ==== Agentic Workers — action icons responsive ==== */
.agent-actions-row > * {
  flex-shrink: 0;
}
.agent-actions-row img,
.agent-actions-row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ================================================================
   DIALOG / MODAL UTILITIES
   Reusable classes for consistent dialog styling.
   ================================================================ */

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--dialog-header-gap, 12px);
  margin-bottom: var(--dialog-padding-sm, 16px);
}

.dialog-title {
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-semibold, 600);
  color: var(--text-primary);
  line-height: var(--line-height-tight, 1.25);
}

.dialog-body {
  font-size: var(--font-size-sm, 14px);
  color: var(--text-primary);
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: var(--dialog-padding, 24px);
}

/* ================================================================
   FORM FIELD UTILITIES
   ================================================================ */

.form-label {
  font-size: var(--form-label-size, 13px);
  font-weight: var(--form-label-weight, 600);
  color: var(--form-label-color, var(--text-secondary));
  margin-bottom: 6px;
  display: block;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 4px;
}

.form-group {
  margin-bottom: var(--form-field-gap, 16px);
}

/* ================================================================
   ACCESSIBILITY
   ================================================================ */

/* Skip-to-content link — hidden until focused */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--brand-primary, #1E4585);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-family-primary);
  border-radius: var(--radius-lg, 8px);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 16px;
}

/* Global focus-visible ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-primary, #1E4585);
  outline-offset: 2px;
}

/* Remove default outline for mouse users (keep for keyboard) */
:focus:not(:focus-visible) {
  outline: none;
}

/* ToolTipV2 — wrap long help text; keep overflow visible so the arrow is not clipped.
   react-tooltip paints the arrow at z-index: -1; a z-index on the tip creates a
   stacking context that would hide that arrow unless we lift it. */
.react-tooltip.large-arrow-tooltip {
  --rt-arrow-size: 10px;
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  overflow: visible !important;
  box-sizing: border-box;
}

.react-tooltip.large-arrow-tooltip .react-tooltip-arrow {
  z-index: 1;
  width: var(--rt-arrow-size);
  height: var(--rt-arrow-size);
}

/* ── Horizontal-overflow containment (2026-09-01 mobile audit, fix #7) ──
   Contain stray-wide children at the route container rather than only at
   html/body. `clip` (not hidden) avoids creating a scroll container, so
   position:sticky inside routes keeps working. The html/body rule above
   remains as the last-resort backstop; this catches the overflow closer
   to its source. */
#main-content {
  max-width: 100%;
  overflow-x: clip;
}

/**
 * Global text overflow rules for MUI selects, menus, chips, and lists.
 * Prevents long page names, descriptions, and categories from breaking layouts.
 */

/* Dropdown menus — cap width; ellipsis on options */
.MuiMenu-paper,
.MuiPopover-paper.MuiMenu-paper {
  max-width: min(480px, calc(100vw - 32px)) !important;
}

.MuiMenuItem-root {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

.MuiListItemText-primary,
.MuiListItemText-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Closed select / autocomplete display value */
.MuiSelect-select {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.MuiSelect-select .MuiTypography-root,
.MuiMenuItem-root .MuiTypography-root {
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* Chips (category filters, status badges) */
.MuiChip-root {
  max-width: min(240px, 50vw);
}

.MuiChip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}

/* Checkbox / switch labels in popovers */
.MuiFormControlLabel-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: min(280px, calc(100vw - 120px));
}

/* Tabs — long page names */
.MuiTab-root {
  min-width: 0;
  max-width: 220px;
}

.MuiTab-root .MuiTab-iconWrapper {
  flex-shrink: 0;
}

.MuiTab-root {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard page tab strip — override MUI scrollable tab sizing */
.ic-dashboard-page-tabs .MuiTab-root {
  min-width: 48px !important;
  max-width: min(168px, 36vw) !important;
  flex: 0 1 min(168px, 36vw) !important;
  overflow: hidden;
}

.ic-dashboard-page-tabs .MuiTab-iconWrapper {
  flex-shrink: 0;
}

.ic-dashboard-page-tabs .ic-dashboard-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: min(112px, 28vw);
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: inherit;
}

/* Category filter row on dashboard */
.ic-category-chip-row {
  max-width: 100%;
  overflow: hidden;
}

.ic-category-chip-row .MuiChip-root {
  max-width: min(220px, 45vw);
}

/* Cards in grid layouts */
.MuiCard-root {
  min-width: 0;
}

/* ================================================================
   Flow Builder — Global CSS Classes
   ================================================================
   Unified design language matching the Agent Listing screen.
   Uses CSS custom properties from designTokens.css.
   ================================================================ */


/* ── Outer Container ────────────────────────────────── */
.fb-container {
  height: calc(100vh);
  overflow: hidden;
}

.fb-builder-card {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: var(--fb-card-shadow);
  position: relative;
}


/* ── Toolbar ────────────────────────────────────────── */
.fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
  z-index: 10;
  min-height: 48px;
}

.fb-toolbar-group {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.fb-toolbar-group-tight {
  display: flex;
  align-items: center;
  gap: 2px;
}

.fb-toolbar-group-actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.fb-toolbar-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--transition-fast);
}

.fb-toolbar-name:hover {
  background: var(--bg-surface-hover);
}

.fb-toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 6px;
}

.fb-toolbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
}

.fb-toolbar-status-draft {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-warning-amber);
}

.fb-toolbar-status-published {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success-emerald);
}

.fb-toolbar-status-archived {
  background: rgba(107, 114, 128, 0.12);
  color: var(--text-secondary);
}


/* ── Buttons ────────────────────────────────────────── */
.fb-btn {
  font-size: var(--font-size-xs) !important;
  text-transform: none !important;
  min-width: 0 !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-lg) !important;
  font-weight: var(--font-weight-medium) !important;
  transition: all var(--transition-fast) !important;
}

.fb-btn-primary {
  background: var(--fb-accent) !important;
  color: white !important;
  border: none !important;
}

.fb-btn-primary:hover {
  background: var(--fb-accent-hover) !important;
}

.fb-btn-test {
  border-color: var(--color-success-emerald) !important;
  color: var(--color-success-emerald) !important;
}

.fb-btn-test:hover {
  background: rgba(5, 150, 105, 0.06) !important;
}

.fb-btn-validate {
  border-color: var(--fb-accent) !important;
  color: var(--fb-accent) !important;
}

.fb-btn-validate:hover {
  background: var(--app-accent-light) !important;
}

.fb-btn-save {
  border-color: var(--border-color-strong) !important;
  color: var(--text-primary) !important;
}

.fb-btn-save:hover {
  background: var(--bg-surface-hover) !important;
  border-color: var(--border-color-strong) !important;
}

.fb-btn-cancel {
  border-color: var(--color-error) !important;
  color: var(--color-error) !important;
}

.fb-btn-run {
  background: var(--color-success-emerald) !important;
  color: white !important;
}

.fb-btn-run:disabled {
  background: var(--border-color-strong) !important;
}


/* ── Sidebars (Palette, Property, Test) ─────────────── */
.fb-sidebar {
  border-color: var(--border-color);
  background: var(--fb-sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.fb-sidebar-left {
  width: 240px;
  border-right: 1px solid var(--border-color);
}

.fb-sidebar-right {
  width: 280px;
  border-left: 1px solid var(--border-color);
}

.fb-sidebar-right-wide {
  width: 380px;
  border-left: 1px solid var(--border-color);
}

.fb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.fb-sidebar-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.fb-sidebar-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.fb-sidebar-section {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color-subtle);
}

.fb-sidebar-section-title {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}


/* ── Node Palette ───────────────────────────────────── */
.fb-palette-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border-color);
}

.fb-palette-search {
  padding: var(--space-2) var(--space-3);
}

.fb-palette-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 var(--space-2) var(--space-2);
}

.fb-palette-category {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: background var(--transition-fast);
}

.fb-palette-category:hover {
  background: var(--bg-surface-hover);
}

.fb-palette-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-color-subtle);
  border-radius: var(--radius-lg);
  padding: 1px 6px;
}

.fb-palette-node {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  margin: 2px 0 2px 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: grab;
  background: var(--bg-surface);
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.fb-palette-node:hover {
  background: var(--bg-surface-hover);
}

.fb-palette-node-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}


/* ── Floating Node Palette ──────────────────────────── */
.fb-floating-panel {
  position: absolute;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--fb-sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  user-select: none;
}

.fb-floating-panel-header {
  display: flex;
  align-items: center;
  padding: 8px 8px 4px 10px;
  cursor: grab;
  border-bottom: 1px solid var(--border-color-subtle);
  background: var(--bg-surface-hover);
  flex-shrink: 0;
}
.fb-floating-panel-header:active {
  cursor: grabbing;
}

.fb-floating-panel-resize {
  height: 6px;
  cursor: ns-resize;
  flex-shrink: 0;
  background: transparent;
  position: relative;
}
.fb-floating-panel-resize::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--border-color);
}
.fb-floating-panel-resize:hover::after {
  background: var(--text-muted);
}

/* Minimized pill */
.fb-floating-pill {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--fb-sidebar-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  padding: 2px 10px 2px 2px;
  cursor: grab;
  user-select: none;
  transition: box-shadow 0.15s ease;
}
.fb-floating-pill:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.fb-floating-pill:active {
  cursor: grabbing;
}
.fb-floating-pill-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* ── Property Panel ─────────────────────────────────── */
.fb-property-desc {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
}

.fb-schema-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.fb-schema-label {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
}

.fb-schema-value {
  font-size: 11px;
  color: var(--text-primary);
}

.fb-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-2);
}

.fb-empty-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  padding: 0 var(--space-6);
}


/* ── Validation Panel ───────────────────────────────── */
.fb-validation-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  max-height: 200px;
  overflow: auto;
  z-index: 20;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.fb-validation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border-color-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
}

.fb-validation-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 0;
  font-size: var(--font-size-xs);
}

.fb-validation-code {
  font-family: var(--font-family-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--border-color-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

.fb-validation-message {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
}

.fb-chip-error {
  font-size: 10px;
  height: 20px;
  background: var(--color-error-light);
  color: var(--color-error);
}

.fb-chip-warning {
  font-size: 10px;
  height: 20px;
  background: var(--color-warning-light);
  color: var(--color-warning-amber);
}

.fb-chip-info {
  font-size: 10px;
  height: 20px;
  background: var(--color-info-light);
  color: var(--color-info);
}

/* ── Template Gallery ───────────────────────────────── */
.fb-template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.fb-template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  gap: 4px;
  min-height: 100px;
  border: 2px solid var(--border-color);
}

.fb-template-card:hover {
  border-color: var(--border-color-strong);
  box-shadow: var(--shadow-sm);
}

.fb-template-card-selected {
  border-color: var(--fb-accent) !important;
  box-shadow: 0 0 0 1px var(--fb-accent);
}

.fb-template-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: center;
}

.fb-template-desc {
  font-size: 10px;
  color: var(--text-muted);
}


/* ── Workflow Launcher ──────────────────────────────── */
/* Launcher tabs sit flush under the modal header, in line with the body (24px). */
.fb-launcher-tabs {
  padding: 0 var(--space-6, 24px);
}

/* HPA Designer body: space/3 under the tabs (Figma), 24px at the sides and bottom. */
.fb-architect-body {
  padding: var(--space-3, 12px) var(--space-6, 24px) var(--space-6, 24px);
}

.fb-launcher-body {
  padding: 20px 24px 24px;
}

.fb-launcher-filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.fb-launcher-filter-chips {
  display: flex;
  gap: 4px;
}

.fb-launcher-workflow-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 340px;
  overflow-y: auto;
}

.fb-launcher-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition-fast);
  border: 1px solid transparent;
}

.fb-launcher-row:hover {
  background: var(--border-color-subtle);
  border-color: var(--border-color);
}

.fb-launcher-workflow-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--border-color-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-launcher-workflow-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fb-launcher-workflow-name {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fb-launcher-workflow-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.fb-launcher-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.fb-launcher-chip-active {
  background: var(--fb-accent) !important;
  color: white !important;
}

.fb-launcher-status-draft {
  background: var(--border-color-subtle) !important;
  color: var(--text-secondary) !important;
}

.fb-launcher-status-published {
  background: var(--color-success-light) !important;
  color: var(--color-success-emerald-dark) !important;
}

.fb-launcher-status-archived {
  background: var(--color-warning-light) !important;
  color: var(--color-warning-amber-dark) !important;
}

/* ── Builder Body ──────────────────────────────────── */
.fb-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Knowledge Base Builder: native sideways scroll so the laid-out graph
   stays readable instead of being fitView-shrunk into the phone viewport. */
.fb-canvas-fill {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
}

.fb-canvas-fill .fb-canvas-hscroll__inner {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.fb-canvas-hscroll {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.fb-canvas-hscroll__inner {
  min-width: 100%;
  min-height: 100%;
  position: relative;
}


/* ── AI Generate Tab ───────────────────────────────── */
.fb-ai-generate-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.fb-ai-generate-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.fb-ai-generate-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: var(--line-height-normal);
}

.fb-ai-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  font-size: 13px;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  resize: vertical;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  margin-bottom: var(--space-4);
  box-sizing: border-box;
}

.fb-ai-textarea:focus {
  border-color: var(--fb-accent);
}

.fb-ai-textarea:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fb-ai-error {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-error);
  background: var(--color-error-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}


/* ── Test Panel ─────────────────────────────────────── */
.fb-trace-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.fb-trace-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color-subtle);
}

.fb-trace-icon {
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fb-trace-name {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.fb-trace-error {
  font-size: 11px;
  color: var(--color-error);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-trace-duration {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--border-color-subtle);
  border-radius: var(--radius-lg);
  padding: 1px 6px;
  flex-shrink: 0;
}

.fb-error-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2);
  background: var(--color-error-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
  color: var(--color-error-dark);
  margin-bottom: var(--space-2);
}

.fb-output-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  max-height: 200px;
  overflow-y: auto;
}

.fb-output-text {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-chip {
  font-size: 10px;
  color: var(--text-secondary);
  background: var(--border-color-subtle);
  border-radius: var(--radius-lg);
  padding: 2px 8px;
}

.fb-done-info {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}


/* ── Loading & Error ────────────────────────────────── */
.fb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.fb-error {
  padding: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-error);
}


/* ── Actions Row ────────────────────────────────────── */
.fb-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  padding-top: var(--space-2);
}


/* ================================================================
   Edge Condition Editor
   ================================================================ */
.fb-edge-editor {
  position: absolute;
  z-index: 100;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
  /* Bound the panel to the canvas and scroll the body instead of growing
     past it. With `overflow: hidden` and no cap, a condition with a few
     rows pushed Save and Remove below the canvas edge where they could
     not be reached at all. The header stays put while the body scrolls. */
  max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dragging the panel must not select the label text under the cursor. */
.fb-edge-editor-drag {
  user-select: none;
  -webkit-user-select: none;
}

/* Docked (mobile sheet): the parent owns position and size, so the panel
   fills it rather than floating and dragging. */
.fb-edge-editor--docked {
  position: static;
  width: 100%;
  max-height: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.fb-edge-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color-subtle);
  background: var(--border-color-subtle);
  flex: none;               /* the header never shrinks; the body scrolls */
}

.fb-edge-editor-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.fb-edge-editor-body {
  padding: 14px;
  overflow-y: auto;
  min-height: 0;            /* required for a flex child to actually scroll */
}

.fb-edge-editor-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.fb-edge-preset {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  padding: 3px 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fb-edge-preset:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
  background: var(--app-accent-light);
}

.fb-edge-preset-active {
  border-color: var(--fb-accent);
  background: var(--fb-accent);
  color: white;
}

.fb-edge-editor-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

.fb-edge-editor-hint code {
  font-family: var(--font-family-mono);
  font-size: 10px;
  background: var(--border-color-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

.fb-edge-editor-actions {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--border-color-subtle);
  gap: var(--space-2);
}


/* ================================================================
   Right-Click Context Menu
   ================================================================ */
.fb-context-menu {
  position: absolute;
  z-index: 100;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 4px;
  overflow: hidden;
}

.fb-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
  text-align: left;
}

.fb-context-item:hover {
  background: var(--bg-surface-hover);
}

.fb-context-item:disabled {
  opacity: 0.4;
  cursor: default;
}

.fb-context-item:disabled:hover {
  background: none;
}

.fb-context-item-danger {
  color: var(--color-error);
}

.fb-context-item-danger:hover {
  background: var(--color-error-light);
}

.fb-context-label {
  flex: 1;
}

.fb-context-shortcut {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-family-mono);
}

.fb-context-divider {
  height: 1px;
  background: var(--border-color-subtle);
  margin: 4px 6px;
}


/* ================================================================
   Version History Panel
   ================================================================ */
.fb-version-list {
  padding: 0 var(--space-3) var(--space-4);
}

.fb-version-item {
  display: flex;
  gap: 12px;
  position: relative;
}

.fb-version-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
  padding-top: 16px;
}

.fb-version-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-color-strong);
  background: var(--bg-surface);
  flex-shrink: 0;
  z-index: 1;
}

.fb-version-dot-active {
  border-color: var(--fb-accent);
  background: var(--fb-accent);
}

.fb-version-line {
  width: 2px;
  flex: 1;
  background: var(--border-color);
  margin-top: 4px;
}

.fb-version-content {
  flex: 1;
  padding: 10px 0 16px;
  min-width: 0;
}

.fb-version-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.fb-version-label {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.fb-version-badge {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  padding: 1px 8px;
  border-radius: var(--radius-lg);
  background: var(--fb-accent);
  color: white;
}

.fb-version-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fb-version-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.fb-version-restore-btn {
  border-color: var(--fb-accent) !important;
  color: var(--fb-accent) !important;
  margin-top: 4px !important;
}

.fb-version-restore-btn:hover {
  background: var(--app-accent-light) !important;
}

.fb-version-current {
  /* subtle highlight for current version row */
}

.fb-version-current .fb-version-content {
  background: var(--border-color-subtle);
  border-radius: var(--radius-lg);
  padding-left: 10px;
  padding-right: 10px;
}


/* ── Node glow animation (test running) ────────────── */
@keyframes nodeGlow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.45), 0 0 12px rgba(37, 99, 235, 0.2); }
}


/* ── Responsive: Tablet & Mobile ───────────────────── */
@media (max-width: 1024px) {
  .fb-sidebar-left {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1200;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.1);
  }
  /* These panels MOUNT only when opened (rightPanel === "test" | "history"
     | "property" in flow-builder/index.js), so mounted means visible. The
     old translateX(100%) hide waited for an .open class that NOTHING in
     the repo ever applied — on every phone and tablet the Test panel,
     version history and node config rendered one screen-width off to the
     right, clipped by .fb-body's overflow:hidden. Tapping "Test" appeared
     to do nothing (2026-09-01 mobile audit, fix #10). */
  .fb-sidebar-right,
  .fb-sidebar-right-wide {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1200;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    width: min(320px, 85vw);
  }
  .fb-template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fb-sidebar-left {
    width: 85vw;
  }
  .fb-sidebar-right,
  .fb-sidebar-right-wide {
    width: 100vw;
  }
  .fb-template-grid {
    grid-template-columns: 1fr;
  }
  .fb-toolbar {
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px 8px;
  }
  /* The actions row (Test/Validate/Save/Publish) is wider than a phone —
     without its own wrap the last buttons clip off-screen. */
  .fb-toolbar-group-actions {
    flex-wrap: wrap;
    row-gap: 6px;
    justify-content: flex-end;
  }
  .fb-builder-card {
    height: calc(100vh - 20px);
    border-radius: 0;
  }
}

*,
::before,
::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
} /*
! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
*/ /*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: "";
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

[type="text"],
input:where(:not([type])),
[type="email"],
[type="url"],
[type="password"],
[type="number"],
[type="date"],
[type="datetime-local"],
[type="month"],
[type="search"],
[type="tel"],
[type="time"],
[type="week"],
[multiple],
textarea,
select {
  appearance: none;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  border-radius: 0px;
  padding-top: 0.5rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
  padding-left: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  --tw-shadow: 0 0 #0000;
}

[type="text"]:focus,
input:where(:not([type])):focus,
[type="email"]:focus,
[type="url"]:focus,
[type="password"]:focus,
[type="number"]:focus,
[type="date"]:focus,
[type="datetime-local"]:focus,
[type="month"]:focus,
[type="search"]:focus,
[type="tel"]:focus,
[type="time"]:focus,
[type="week"]:focus,
[multiple]:focus,
textarea:focus,
select:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
    var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
    calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow);
  border-color: #2563eb;
}

input::placeholder,
textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: inherit;
}

::-webkit-datetime-edit {
  display: inline-flex;
}

::-webkit-datetime-edit,
::-webkit-datetime-edit-year-field,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute-field,
::-webkit-datetime-edit-second-field,
::-webkit-datetime-edit-millisecond-field,
::-webkit-datetime-edit-meridiem-field {
  padding-top: 0;
  padding-bottom: 0;
}

select {
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

[multiple],
[size]:where(select:not([size="1"])) {
  background-image: initial;
  background-position: initial;
  background-repeat: unset;
  background-size: initial;
  padding-right: 0.75rem;
  -webkit-print-color-adjust: unset;
  print-color-adjust: unset;
}

[type="checkbox"],
[type="radio"] {
  appearance: none;
  padding: 0;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  display: inline-block;
  vertical-align: middle;
  background-origin: border-box;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
  color: #2563eb;
  background-color: #fff;
  border-color: #6b7280;
  border-width: 1px;
  --tw-shadow: 0 0 #0000;
}

[type="checkbox"] {
  border-radius: 0px;
}

[type="radio"] {
  border-radius: 100%;
}

[type="checkbox"]:focus,
[type="radio"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-inset: var(--tw-empty, /*!*/ /*!*/);
  --tw-ring-offset-width: 2px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: #2563eb;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
    var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
    calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow);
}

[type="checkbox"]:checked,
[type="radio"]:checked {
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");
}

@media (forced-colors: active) {
  [type="checkbox"]:checked {
    appearance: auto;
  }
}

[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e");
}

@media (forced-colors: active) {
  [type="radio"]:checked {
    appearance: auto;
  }
}

[type="checkbox"]:checked:hover,
[type="checkbox"]:checked:focus,
[type="radio"]:checked:hover,
[type="radio"]:checked:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type="checkbox"]:indeterminate {
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3e%3cpath stroke=%27white%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3e%3c/svg%3e");
  border-color: transparent;
  background-color: currentColor;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

@media (forced-colors: active) {
  [type="checkbox"]:indeterminate {
    appearance: auto;
  }
}

[type="checkbox"]:indeterminate:hover,
[type="checkbox"]:indeterminate:focus {
  border-color: transparent;
  background-color: currentColor;
}

[type="file"] {
  background: unset;
  border-color: inherit;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-size: unset;
  line-height: inherit;
}

[type="file"]:focus {
  outline: 1px solid ButtonText;
  outline: 1px auto -webkit-focus-ring-color;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.pointer-events-none {
  pointer-events: none;
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-top-1\.5 {
  top: -0.375rem;
}
.left-0 {
  left: 0px;
}
.right-2 {
  right: 0.5rem;
}
.top-2 {
  top: 0.5rem;
}
.m-4 {
  margin: 1rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-\[10px\] {
  margin-left: 10px;
  margin-right: 10px;
}
.mx-\[15px\] {
  margin-left: 15px;
  margin-right: 15px;
}
.mx-\[50px\] {
  margin-left: 50px;
  margin-right: 50px;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-\[10px\] {
  margin-top: 10px;
  margin-bottom: 10px;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-\[20px\] {
  margin-bottom: 20px;
}
.mb-\[7px\] {
  margin-bottom: 7px;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-\[20px\] {
  margin-left: 20px;
}
.ml-\[7px\] {
  margin-left: 7px;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mr-8 {
  margin-right: 2rem;
}
.mr-\[20px\] {
  margin-right: 20px;
}
.mr-\[5px\] {
  margin-right: 5px;
}
.mr-\[7px\] {
  margin-right: 7px;
}
.mt-0 {
  margin-top: 0px;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-20 {
  margin-top: 5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-\[10px\] {
  margin-top: 10px;
}
.mt-\[16px\] {
  margin-top: 16px;
}
.mt-\[20px\] {
  margin-top: 20px;
}
.mt-\[22px\] {
  margin-top: 22px;
}
.mt-\[2px\] {
  margin-top: 2px;
}
.mt-\[30px\] {
  margin-top: 30px;
}
.mt-\[50px\] {
  margin-top: 50px;
}
.mt-\[6px\] {
  margin-top: 6px;
}
.mt-auto {
  margin-top: auto;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-\[100\%\] {
  height: 100%;
}
.h-\[13px\] {
  height: 13px;
}
.h-\[14px\] {
  height: 14px;
}
.h-\[160px\] {
  height: 160px;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[20px\] {
  height: 20px;
}
.h-\[21px\] {
  height: 21px;
}
.h-\[25px\] {
  height: 25px;
}
.h-\[270px\] {
  height: 270px;
}
.h-\[33px\] {
  height: 33px;
}
.h-\[34px\] {
  height: 34px;
}
.h-\[40px\] {
  height: 40px;
}
.h-\[45px\] {
  height: 45px;
}
.h-full {
  height: 100%;
}
.min-h-\[100px\] {
  min-height: 100px;
}
.min-h-\[130px\] {
  min-height: 130px;
}
.min-h-\[90px\] {
  min-height: 90px;
}
.min-h-full {
  min-height: 100%;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-3 {
  width: 0.75rem;
}
.w-5 {
  width: 1.25rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-72 {
  width: 18rem;
}
.w-\[100\%\] {
  width: 100%;
}
.w-\[13\%\] {
  width: 13%;
}
.w-\[13px\] {
  width: 13px;
}
.w-\[14px\] {
  width: 14px;
}
.w-\[15\%\] {
  width: 15%;
}
.w-\[17\%\] {
  width: 17%;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[190px\] {
  width: 190px;
}
.w-\[19px\] {
  width: 19px;
}
.w-\[20\%\] {
  width: 20%;
}
.w-\[20px\] {
  width: 20px;
}
.w-\[221px\] {
  width: 221px;
}
.w-\[24\%\] {
  width: 24%;
}
.w-\[25\%\] {
  width: 25%;
}
.w-\[25px\] {
  width: 25px;
}
.w-\[296px\] {
  width: 296px;
}
.w-\[3\%\] {
  width: 3%;
}
.w-\[30\%\] {
  width: 30%;
}
.w-\[32\%\] {
  width: 32%;
}
.w-\[330px\] {
  width: 330px;
}
.w-\[33px\] {
  width: 33px;
}
.w-\[34px\] {
  width: 34px;
}
.w-\[35\%\] {
  width: 35%;
}
.w-\[36\%\] {
  width: 36%;
}
.w-\[40\%\] {
  width: 40%;
}
.w-\[50\%\] {
  width: 50%;
}
.w-\[55\%\] {
  width: 55%;
}
.w-\[6\%\] {
  width: 6%;
}
.w-\[60\%\] {
  width: 60%;
}
.w-\[80\%\] {
  width: 80%;
}
.w-\[90\%\] {
  width: 90%;
}
.w-\[93\.4\%\] {
  width: 93.4%;
}
.w-\[94\%\] {
  width: 94%;
}
.w-\[95\%\] {
  width: 95%;
}
.w-full {
  width: 100%;
}
.min-w-\[200px\] {
  min-width: 200px;
}
.min-w-\[390px\] {
  min-width: 390px;
}
.min-w-max {
  min-width: max-content;
}
.max-w-\[80\%\] {
  max-width: 80%;
}
.max-w-max {
  max-width: max-content;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.flex-grow {
  flex-grow: 1;
}
.grow {
  flex-grow: 1;
}
.table-fixed {
  table-layout: fixed;
}
.translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-5 {
  --tw-translate-x: 1.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-4 {
  --tw-translate-y: 1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-pointer {
  cursor: pointer;
}
.select-none {
  -webkit-user-select: none;
  user-select: none;
}
.resize-none {
  resize: none;
}
.resize {
  resize: both;
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-stretch {
  align-items: stretch;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-\[100px\] {
  gap: 100px;
}
.gap-\[10px\] {
  gap: 10px;
}
.gap-\[15px\] {
  gap: 15px;
}
.gap-\[20px\] {
  gap: 20px;
}
.gap-\[30px\] {
  gap: 30px;
}
.gap-\[3px\] {
  gap: 3px;
}
.gap-\[4px\] {
  gap: 4px;
}
.gap-\[50px\] {
  gap: 50px;
}
.gap-\[5px\] {
  gap: 5px;
}
.gap-\[90px\] {
  gap: 90px;
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.overflow-hidden {
  overflow: hidden;
}
.\!overflow-visible {
  overflow: visible !important;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-\[20px\] {
  border-radius: 20px;
}
.rounded-\[2px\] {
  border-radius: 2px;
}
.rounded-\[50\%\] {
  border-radius: 50%;
}
.rounded-\[7px\] {
  border-radius: 7px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-bl-lg {
  border-bottom-left-radius: 0.5rem;
}
.rounded-br-lg {
  border-bottom-right-radius: 0.5rem;
}
.rounded-tl-lg {
  border-top-left-radius: 0.5rem;
}
.rounded-tr-lg {
  border-top-right-radius: 0.5rem;
}
.rounded-tr-xl {
  border-top-right-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-\[\#0F0F0F\] {
  --tw-border-opacity: 1;
  border-color: rgb(15 15 15 / var(--tw-border-opacity, 1));
}
.border-\[\#CCCCCC\] {
  --tw-border-opacity: 1;
  border-color: rgb(204 204 204 / var(--tw-border-opacity, 1));
}
.border-\[\#ffff\] {
  border-color: #ffff;
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-gray-500 {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}
.border-green-600 {
  --tw-border-opacity: 1;
  border-color: rgb(22 163 74 / var(--tw-border-opacity, 1));
}
.border-green-800 {
  --tw-border-opacity: 1;
  border-color: rgb(22 101 52 / var(--tw-border-opacity, 1));
}
.border-primary-blue {
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.border-b-primary-blue {
  --tw-border-opacity: 1;
  border-bottom-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.border-l-primary-blue {
  --tw-border-opacity: 1;
  border-left-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.border-r-primary-blue {
  --tw-border-opacity: 1;
  border-right-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.border-t-primary-blue {
  --tw-border-opacity: 1;
  border-top-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-\[\#FFFFFF\] {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}
.bg-green-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}
.bg-primary-blue {
  --tw-bg-opacity: 1;
  background-color: rgb(30 69 133 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-opacity-75 {
  --tw-bg-opacity: 0.75;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-\[20px\] {
  padding: 20px;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-\[10px\] {
  padding-left: 10px;
  padding-right: 10px;
}
.px-\[120px\] {
  padding-left: 120px;
  padding-right: 120px;
}
.px-\[15px\] {
  padding-left: 15px;
  padding-right: 15px;
}
.px-\[20px\] {
  padding-left: 20px;
  padding-right: 20px;
}
.px-\[30px\] {
  padding-left: 30px;
  padding-right: 30px;
}
.px-\[4px\] {
  padding-left: 4px;
  padding-right: 4px;
}
.px-\[5px\] {
  padding-left: 5px;
  padding-right: 5px;
}
.px-\[6px\] {
  padding-left: 6px;
  padding-right: 6px;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-\[10px\] {
  padding-top: 10px;
  padding-bottom: 10px;
}
.py-\[20px\] {
  padding-top: 20px;
  padding-bottom: 20px;
}
.py-\[5px\] {
  padding-top: 5px;
  padding-bottom: 5px;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-\[10px\] {
  padding-bottom: 10px;
}
.pb-\[15px\] {
  padding-bottom: 15px;
}
.pb-\[30px\] {
  padding-bottom: 30px;
}
.pb-\[8px\] {
  padding-bottom: 8px;
}
.pl-0 {
  padding-left: 0px;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-\[0px\] {
  padding-left: 0px;
}
.pl-\[10px\] {
  padding-left: 10px;
}
.pl-\[18px\] {
  padding-left: 18px;
}
.pl-\[20px\] {
  padding-left: 20px;
}
.pl-\[23px\] {
  padding-left: 23px;
}
.pl-\[5px\] {
  padding-left: 5px;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-\[10px\] {
  padding-right: 10px;
}
.pt-12 {
  padding-top: 3rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-\[10px\] {
  padding-top: 10px;
}
.pt-\[15px\] {
  padding-top: 15px;
}
.pt-\[20px\] {
  padding-top: 20px;
}
.pt-\[5px\] {
  padding-top: 5px;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[20px\] {
  font-size: 20px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.leading-tight {
  line-height: 1.25;
}
.text-\[\#000000\] {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-\[\#0F0F0F\] {
  --tw-text-opacity: 1;
  color: rgb(15 15 15 / var(--tw-text-opacity, 1));
}
.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-primary-blue {
  --tw-text-opacity: 1;
  color: rgb(30 69 133 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.overline {
  text-decoration-line: overline;
}
.placeholder-gray-200::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(229 231 235 / var(--tw-placeholder-opacity, 1));
}
.placeholder-gray-300::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(209 213 219 / var(--tw-placeholder-opacity, 1));
}
.placeholder-gray-500::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.\!shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1) !important;
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color) !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
    0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color),
    0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.outline-0 {
  outline-width: 0px;
}
.ring-0 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
    var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
    calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow, 0 0 #0000);
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
    var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate)
    var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
    backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 {
  transition-duration: 100ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.placeholder\:flex::placeholder {
  display: flex;
}
.placeholder\:placeholder-gray-100::placeholder::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(243 244 246 / var(--tw-placeholder-opacity, 1));
}
.placeholder\:placeholder-gray-300::placeholder::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(209 213 219 / var(--tw-placeholder-opacity, 1));
}
.before\:pointer-events-none::before {
  content: var(--tw-content);
  pointer-events: none;
}
.before\:mr-1::before {
  content: var(--tw-content);
  margin-right: 0.25rem;
}
.before\:mt-\[6\.5px\]::before {
  content: var(--tw-content);
  margin-top: 6.5px;
}
.before\:box-border::before {
  content: var(--tw-content);
  box-sizing: border-box;
}
.before\:block::before {
  content: var(--tw-content);
  display: block;
}
.before\:h-1\.5::before {
  content: var(--tw-content);
  height: 0.375rem;
}
.before\:w-2\.5::before {
  content: var(--tw-content);
  width: 0.625rem;
}
.before\:rounded-tl-md::before {
  content: var(--tw-content);
  border-top-left-radius: 0.375rem;
}
.before\:border-l::before {
  content: var(--tw-content);
  border-left-width: 1px;
}
.before\:border-t::before {
  content: var(--tw-content);
  border-top-width: 1px;
}
.before\:border-primary-blue::before {
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.before\:transition-all::before {
  content: var(--tw-content);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.after\:pointer-events-none::after {
  content: var(--tw-content);
  pointer-events: none;
}
.after\:ml-1::after {
  content: var(--tw-content);
  margin-left: 0.25rem;
}
.after\:mt-\[6\.5px\]::after {
  content: var(--tw-content);
  margin-top: 6.5px;
}
.after\:box-border::after {
  content: var(--tw-content);
  box-sizing: border-box;
}
.after\:block::after {
  content: var(--tw-content);
  display: block;
}
.after\:h-1\.5::after {
  content: var(--tw-content);
  height: 0.375rem;
}
.after\:w-2\.5::after {
  content: var(--tw-content);
  width: 0.625rem;
}
.after\:flex-grow::after {
  content: var(--tw-content);
  flex-grow: 1;
}
.after\:rounded-tr-md::after {
  content: var(--tw-content);
  border-top-right-radius: 0.375rem;
}
.after\:border-r::after {
  content: var(--tw-content);
  border-right-width: 1px;
}
.after\:border-t::after {
  content: var(--tw-content);
  border-top-width: 1px;
}
.after\:border-primary-blue::after {
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.after\:transition-all::after {
  content: var(--tw-content);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.placeholder-shown\:border:placeholder-shown {
  border-width: 1px;
}
.placeholder-shown\:border-primary-blue:placeholder-shown {
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.placeholder-shown\:border-t-primary-blue:placeholder-shown {
  --tw-border-opacity: 1;
  border-top-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.empty\:\!bg-primary-blue:empty {
  --tw-bg-opacity: 1 !important;
  background-color: rgb(30 69 133 / var(--tw-bg-opacity, 1)) !important;
}
.focus\:border-2:focus {
  border-width: 2px;
}
.focus\:border-\[\#0F0F0F\]:focus {
  --tw-border-opacity: 1;
  border-color: rgb(15 15 15 / var(--tw-border-opacity, 1));
}
.focus\:border-\[\#ffff\]:focus {
  border-color: #ffff;
}
.focus\:border-primary-blue:focus {
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.focus\:border-t-transparent:focus {
  border-top-color: transparent;
}
.focus\:outline-0:focus {
  outline-width: 0px;
}
.disabled\:resize-none:disabled {
  resize: none;
}
.disabled\:border-0:disabled {
  border-width: 0px;
}
.disabled\:bg-gray-300:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}
.disabled\:bg-primary-blue:disabled {
  --tw-bg-opacity: 1;
  background-color: rgb(30 69 133 / var(--tw-bg-opacity, 1));
}
.peer:placeholder-shown ~ .peer-placeholder-shown\:text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.peer:placeholder-shown ~ .peer-placeholder-shown\:leading-\[3\.75\] {
  line-height: 3.75;
}
.peer:placeholder-shown ~ .peer-placeholder-shown\:text-primary-blue {
  --tw-text-opacity: 1;
  color: rgb(30 69 133 / var(--tw-text-opacity, 1));
}
.peer:placeholder-shown
  ~ .peer-placeholder-shown\:before\:border-transparent::before {
  content: var(--tw-content);
  border-color: transparent;
}
.peer:placeholder-shown
  ~ .peer-placeholder-shown\:after\:border-transparent::after {
  content: var(--tw-content);
  border-color: transparent;
}
.peer:focus ~ .peer-focus\:text-\[11px\] {
  font-size: 11px;
}
.peer:focus ~ .peer-focus\:leading-tight {
  line-height: 1.25;
}
.peer:focus ~ .peer-focus\:text-primary-blue {
  --tw-text-opacity: 1;
  color: rgb(30 69 133 / var(--tw-text-opacity, 1));
}
.peer:focus ~ .peer-focus\:before\:border-l-2::before {
  content: var(--tw-content);
  border-left-width: 2px;
}
.peer:focus ~ .peer-focus\:before\:border-t-2::before {
  content: var(--tw-content);
  border-top-width: 2px;
}
.peer:focus ~ .peer-focus\:before\:\!border-primary-blue::before {
  content: var(--tw-content);
  --tw-border-opacity: 1 !important;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1)) !important;
}
.peer:focus ~ .peer-focus\:before\:border-primary-blue::before {
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.peer:focus ~ .peer-focus\:after\:border-r-2::after {
  content: var(--tw-content);
  border-right-width: 2px;
}
.peer:focus ~ .peer-focus\:after\:border-t-2::after {
  content: var(--tw-content);
  border-top-width: 2px;
}
.peer:focus ~ .peer-focus\:after\:\!border-primary-blue::after {
  content: var(--tw-content);
  --tw-border-opacity: 1 !important;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1)) !important;
}
.peer:focus ~ .peer-focus\:after\:border-primary-blue::after {
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(30 69 133 / var(--tw-border-opacity, 1));
}
.peer:disabled ~ .peer-disabled\:text-transparent {
  color: transparent;
}
.peer:disabled ~ .peer-disabled\:before\:border-transparent::before {
  content: var(--tw-content);
  border-color: transparent;
}
.peer:disabled ~ .peer-disabled\:after\:border-transparent::after {
  content: var(--tw-content);
  border-color: transparent;
}
.peer:disabled:placeholder-shown
  ~ .peer-disabled\:peer-placeholder-shown\:text-primary-blue {
  --tw-text-opacity: 1;
  color: rgb(30 69 133 / var(--tw-text-opacity, 1));
}
@media (min-width: 640px) {
  .sm\:my-8 {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:w-full {
    width: 100%;
  }

  .sm\:max-w-2xl {
    max-width: 42rem;
  }

  .sm\:max-w-4xl {
    max-width: 56rem;
  }

  .sm\:max-w-lg {
    max-width: 32rem;
  }

  .sm\:translate-y-0 {
    --tw-translate-y: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
      rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
      scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:scale-100 {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
      rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
      scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:scale-95 {
    --tw-scale-x: 0.95;
    --tw-scale-y: 0.95;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y))
      rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
      scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .sm\:p-0 {
    padding: 0px;
  }
}
@media (min-width: 768px) {
  .md\:gap-\[15px\] {
    gap: 15px;
  }

  .md\:border-b-0 {
    border-bottom-width: 0px;
  }

  .md\:border-l {
    border-left-width: 1px;
  }

  .md\:border-gray-300 {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
  }

  .md\:pl-5 {
    padding-left: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .lg\:gap-\[15px\] {
    gap: 15px;
  }
}

/* Tailwind directives removed — utilities served via static tailwind.css */

/* Global horizontal-overflow guard.
   Several post-login pages (dashboard search card, "No available agents"
   banner, etc.) had children wider than the viewport on narrow screens,
   which let the whole page scroll horizontally and pushed the Search
   button + banner content off-screen. Container-level fixes are still
   worth doing per-component, but this body-level guard ensures one
   misbehaving child can never cause page-level horizontal scroll on
   any screen. Vertical scroll is unaffected. */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 330px) and (min-width: 310px) {
  .css-4bjybn {
    margin-left: 0px !important;
    margin-right: 0px !important;
  }
}
@media only screen and (min-width: 319px) and (max-width: 426px) {
  .signup .MuiFormLabel-root {
    font-size: 10px;
  }
  .signup .MuiInputBase-input {
    padding: 2px;
  }
  .signup
    .css-um4mfw-MuiFormLabel-root-MuiInputLabel-root.MuiInputLabel-shrink {
    font-size: 12px;
  }
  .signup .MuiInputBase-input {
    font-size: 10px;
  }
}
@media only screen and (min-width: 760px) and (max-width: 770px) {
  .signup .MuiFormLabel-root {
    font-size: 10px;
  }
  .signup .MuiInputBase-input {
    padding: 2px;
  }
  .signup
    .css-um4mfw-MuiFormLabel-root-MuiInputLabel-root.MuiInputLabel-shrink {
    font-size: 10px;
  }
  .signup .MuiInputBase-input {
    font-size: 11px;
  }
}
.workForce .MuiOutlinedInput-root {
  height: 24px;
  width: 133px;
}
@media only screen and (min-width: 1000px) and (max-width: 1300px) {
  .workForce .MuiOutlinedInput-root {
    width: 110px;
  }
}
@media only screen and (min-width: 700px) and (max-width: 900px) {
  .workForce .MuiOutlinedInput-root {
    width: 80px;
    font-size: 12px;
  }
}

@media only screen and (min-width: 319px) and (max-width: 426px) {
  .workForce .MuiOutlinedInput-root {
    width: 50px;
    height: 22px;
    font-size: 9px;
  }
}
@media only screen and (min-width: 319px) and (max-width: 426px) {
  .financial-input .MuiInputBase-input .MuiInput-input {
    font-size: 9px;
  }
}
.tab-panel .MuiBox-root {
  padding: 0;
}
/* //audio preview */
.text-To-Speech .rhap_container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: inherit;
  width: 70%;
  padding: 10px 15px;
  background-color: #fff;
  box-shadow: "none";
}

/* Login cold-start status animations */
@keyframes loginStatusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes loginStatusFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* UrlPanel — slide-in side panel showing the active source's preview.
   PDF.js for PDFs, Office Online viewer for DOCX/XLSX/PPTX, native
   <iframe> for embed-friendly web pages, fallback metadata card with a
   "Open in new tab" CTA otherwise. Header strip provides prev/next
   navigation between all sources for the active response. */

.url-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: var(--bg-overlay, rgba(15, 30, 63, 0.18));
  pointer-events: auto;
  animation: url-panel-overlay-in 0.18s ease;
}

@keyframes url-panel-overlay-in {
  from { background: transparent; }
  to   { background: var(--bg-overlay, rgba(15, 30, 63, 0.18)); }
}

.url-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 94vw);
  max-width: 100vw;
  background: var(--bg-surface, #fff);
  border-left: 1px solid var(--border-color, #e0e0e0);
  box-shadow: var(--shadow-panel, -10px 0 28px rgba(0, 0, 0, 0.10));
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 1401;
  animation: url-panel-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: var(--font-family-primary, inherit);
  transition: width 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Preview mode — single source taking the full reading width.
   Documents and web embeds need horizontal room; the list mode is
   compact because it's just stacked cards. */
.url-panel.url-panel--wide {
  width: min(825px, 94vw);
}

@keyframes url-panel-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.url-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-default, #E5E5E5);
  flex-shrink: 0;
  background: var(--bg-surface, #fff);
}

.url-panel__header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.url-panel__header-favicon {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm, 3px);
  flex-shrink: 0;
}

.url-panel__header-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.url-panel__header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #344767);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-panel__header-host {
  font-size: 11px;
  color: var(--text-secondary, #5C5C5C);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.url-panel__header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.url-panel__nav-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-color, #e0e0e0);
  background: var(--bg-surface, #fff);
  border-radius: var(--radius-md, 6px);
  color: var(--text-secondary, #5C5C5C);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.url-panel__nav-btn:hover:not([disabled]) {
  background: var(--bg-surface-hover, #f8f9fa);
  color: var(--brand-primary, #314B87);
  border-color: var(--brand-primary, #314B87);
}
.url-panel__nav-btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.url-panel__nav-count {
  font-size: 11px;
  color: var(--text-secondary, #5C5C5C);
  font-variant-numeric: tabular-nums;
  padding: 0 4px;
}

.url-panel__open-tab {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-md, 6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary, #314B87);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}
.url-panel__open-tab:hover {
  background: var(--bg-surface-hover, #f8f9fa);
  color: var(--brand-primary, #314B87);
}

.url-panel__close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md, 6px);
  color: var(--text-secondary, #5C5C5C);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: background 0.12s ease;
  margin-left: 2px;
}

.url-panel__close:hover {
  background: var(--bg-surface-hover, #f1f5f9);
  color: var(--text-primary, #344767);
}

/* List view — scrollable list of all sources, click any card to enter
   preview mode for that source. */
.url-panel__list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 8px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.url-panel__empty {
  padding: 24px 16px;
  font-family: var(--font-family-primary, Inter, sans-serif);
  font-size: 13px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 100%;
  letter-spacing: 0px;
  color: var(--text-secondary, #515356);
  text-align: center;
}

.url-panel__source {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: var(--radius-lg, 8px);
  background: var(--bg-surface, #fff);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  font: inherit;
  color: inherit;
}
.url-panel__source:hover {
  background: var(--bg-surface-hover, #f8f9fa);
  border-color: var(--brand-primary, #314B87);
}
.url-panel__source.is-active {
  background: var(--brand-primary-light, #EEF2FB);
  border-color: var(--brand-primary, #314B87);
}

.url-panel__source-site {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 6px;
  height: 16px;
  margin-bottom: 4px;
  font-size: 11px;
  color: var(--text-secondary, #5C5C5C);
}
.url-panel__source-favicon {
  width: 14px;
  height: 14px;
  border-radius: var(--radius-sm, 2px);
  flex-shrink: 0;
}
.url-panel__source-sitename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.url-panel__source-title {
  margin: 0 0 6px 0;
  font-family: var(--font-family-primary, Inter, sans-serif);
  font-size: 13px;
  font-weight: var(--font-weight-medium, 500);
  line-height: 19px;
  letter-spacing: 0px;
  color: var(--text-primary, #333333);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.url-panel__source-snippet {
  margin: 0;
  font-family: var(--font-family-primary, Inter, sans-serif);
  font-size: 12px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 18px;
  letter-spacing: 0px;
  color: var(--text-secondary, #515356);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.url-panel__source-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.url-panel__skeleton-line {
  height: 8px;
  border-radius: var(--radius-sm, 4px);
  background: linear-gradient(
    90deg,
    var(--bg-surface-hover, #f1f5f9) 0%,
    var(--border-color, #e0e0e0) 50%,
    var(--bg-surface-hover, #f1f5f9) 100%
  );
  background-size: 200% 100%;
  animation: url-panel-shimmer 1.4s ease-in-out infinite;
}
.url-panel__skeleton-line.is-medium { width: 70%; }
.url-panel__skeleton-line.is-long { width: 100%; }
@keyframes url-panel-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Preview-mode header (replaces the list-mode header when a source
   is active). Has a "Back" button on the left to return to the list. */
.url-panel__preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
  flex-shrink: 0;
  background: var(--bg-surface, #fff);
}
.url-panel__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--brand-primary, #314B87);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.12s ease;
  flex-shrink: 0;
}
.url-panel__back-btn:hover {
  opacity: 0.75;
}

/* Office Online viewer wrapper — shows a spinner overlay until the
   iframe fires its load event (otherwise the user sees ~5s of blank
   white pane and assumes it's broken). */
.url-panel__embed-office {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  background: var(--bg-surface, #fff);
}
.url-panel__embed-office .url-panel__embed-iframe {
  position: relative;
  z-index: 1;
}
.url-panel__embed-office-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-surface, #fff);
  color: var(--text-secondary, #5C5C5C);
  font-size: 13px;
  pointer-events: none;
}
.url-panel__embed-office-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-color, #e0e0e0);
  border-top-color: var(--brand-primary, #314B87);
  border-radius: 50%;
  animation: url-panel-spin 0.9s linear infinite;
}
@keyframes url-panel-spin {
  to { transform: rotate(360deg); }
}

/* Generic iframe wrapper — same "spinner overlay until load fires" pattern
   as .url-panel__embed-office above, reused by EmbeddedWebPane so a
   frame-allowed embed doesn't show ~6s of blank pane before its onLoad
   (or the timeout fallback) fires. Shares .url-panel__embed-office-spinner
   (a plain spin animation, nothing Office-specific about its styling). */
.url-panel__embed-iframe-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  background: var(--bg-surface, #fff);
}
.url-panel__embed-iframe-wrap .url-panel__embed-iframe {
  position: relative;
  z-index: 1;
}
.url-panel__embed-iframe-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg-surface, #fff);
  color: var(--text-secondary, #515356);
  font-size: 13px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 20px;
  letter-spacing: 0px;
  pointer-events: none;
}

/* Body — fills remaining height; the embed pane's own DocCard (a bordered,
   rounded card wrapping the pane) sits inset on this gray page background. */
.url-panel__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-page, #F9F9FA);
  display: flex;
  flex-direction: column;
}

/* Iframe — full-pane bleed for both Office Online viewer + raw web embed */
.url-panel__embed-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg-surface, #fff);
}

.url-panel__embed-pdf {
  flex: 1;
  overflow: auto;
  background: var(--bg-surface, #fff);
  padding: 6px;
}

.url-panel__embed-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-image-viewer, #1a1a1a);
  padding: 12px;
}
.url-panel__embed-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.url-panel__embed-text {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  background: var(--bg-surface, #fff);
  font-family: var(--font-family-mono, ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
  color: var(--text-primary, #344767);
}

.url-panel__embed-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 20px;
  letter-spacing: 0px;
  color: var(--text-secondary, #515356);
}
.url-panel__embed-loading::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-color, #e0e0e0);
  border-top-color: var(--brand-primary, #314B87);
  border-radius: 50%;
  animation: url-panel-spin 0.9s linear infinite;
}

/* Fallback card for unembeddable sources (Excel, frame-blocked sites, etc.) */
.url-panel__embed-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background: var(--bg-page, #F9F9FA);
}

.url-panel__embed-fallback-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.url-panel__embed-fallback-title {
  font-size: 15px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 22px;
  letter-spacing: 0px;
  text-align: center;
  color: var(--text-primary, #333333);
  margin-bottom: 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.url-panel__embed-fallback-snippet {
  font-size: 13px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
  color: var(--text-secondary, #515356);
  margin-bottom: 6px;
  max-width: 420px;
}

.url-panel__embed-fallback-hint {
  font-size: 12px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 18px;
  letter-spacing: 0px;
  text-align: center;
  color: var(--text-caption, #718096);
  margin-bottom: 16px;
  max-width: 420px;
}

.url-panel__embed-fallback-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-primary, #314B87);
  text-decoration: none;
  font-size: 13px;
  font-weight: var(--font-weight-semibold, 600);
  line-height: 20px;
  letter-spacing: 0px;
  text-align: center;
  transition: color 0.12s ease;
}
.url-panel__embed-fallback-cta:hover {
  color: var(--brand-primary-hover, #263f73);
  text-decoration: underline;
}

/* Responsive — small screens / mobile.
   At narrow widths the panel takes the full viewport (no slide-over —
   acts more like a full-screen modal), header tightens, nav count
   collapses to "2/5" to save space, and the close button is the
   primary affordance to dismiss. */
@media (max-width: 600px) {
  .url-panel {
    width: 100vw;
    max-width: 100vw;
    /* iOS Safari mis-sizes 100vh when the address bar is showing —
       the panel ends up taller than the visible area and the close
       button can fall off-screen. dvh tracks the dynamic viewport. */
    height: 100vh;          /* fallback */
    height: 100dvh;
    border-left: none;
    box-shadow: none;
    /* Respect notched-iPhone safe areas so the header doesn't sit
       under the status bar and the bottom doesn't sit under the
       home indicator. */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .url-panel__header {
    padding: 10px 12px;
    gap: 8px;
  }

  .url-panel__header-favicon {
    width: 16px;
    height: 16px;
  }

  .url-panel__header-title {
    font-size: 12px;
  }

  .url-panel__header-host {
    font-size: 10px;
  }

  .url-panel__nav-btn,
  .url-panel__open-tab {
    width: 30px;
    height: 30px;
  }

  .url-panel__close {
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .url-panel__nav-count {
    font-size: 11px;
    padding: 0 2px;
  }

  .url-panel__embed-fallback {
    padding: 20px 16px;
  }

  .url-panel__embed-fallback-snippet,
  .url-panel__embed-fallback-hint {
    max-width: 100%;
  }

  /* PDF padding tightens on small screens to maximise reading area */
  .url-panel__embed-pdf {
    padding: 0;
  }
}

/* Mid-size screens (tablets / split-view): still slide-over but a
   touch narrower so the chat behind stays partly visible. */
@media (min-width: 601px) and (max-width: 900px) {
  .url-panel {
    width: min(390px, 80vw);
  }
}

