/*
*   FOUT prevention for Material Symbols icon font.
*   While the font is downloading, every <span class="material-symbols-rounded">name</span>
*   briefly renders the literal name as text (e.g. "business_center" instead of the icon).
*   Hide them until <body class="fonts-loaded"> is set by JS (main.tsx's document.fonts.ready listener).
*/
.material-symbols-rounded,
.material-symbols-outlined,
.material-symbols-sharp {
    visibility: hidden;
}
body.fonts-loaded .material-symbols-rounded,
body.fonts-loaded .material-symbols-outlined,
body.fonts-loaded .material-symbols-sharp {
    visibility: visible;
}

/*
*   Normaize
*/

:root {
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    color: var(--C-c-1);
    background-color: var(--C-bg-1);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;

    /* Recolor browser-drawn form controls (checkbox, radio, range,
     * progress, etc.) to brand orange. Browsers auto-pick a contrasting
     * inner mark, so this looks right on both themes. Per-surface
     * overrides (e.g. `[theme=light] .authPage { accent-color: ... }`)
     * can drift this later if a surface ever wants its own accent. */
    accent-color: var(--brand-500);
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    --app-100vh: 100vh;
}

* {
    margin: 0;
    box-sizing: border-box;
}

/* Theme-swap uses the View Transitions API (see
 * client/src/utils/themeTransition.ts) — the browser takes a GPU
 * snapshot of the old + new state and reveals the new one from
 * `--theme-swap-cx` / `--theme-swap-cy` out to the far viewport
 * corner. ONE GPU animation regardless of DOM size, so big lists
 * don't stall the swap. Falls back to instant swap on browsers
 * without the API and when prefers-reduced-motion is set.
 *
 * The reveal uses a mask-image radial-gradient (not clip-path) so
 * the edge is FEATHERED — reads as a soft flashlight beam expanding
 * from the click point, not a hard-edged expanding pupil. `@property`
 * registers the animatable percentage so the gradient stops
 * interpolate frame-by-frame on the GPU. */
@property --theme-reveal {
    syntax: '<percentage>';
    inherits: false;
    initial-value: 0%;
}
::view-transition-old(root) {
    animation: none;
}
::view-transition-new(root) {
    /* `forwards` pins the end state (--theme-reveal: 200%, mask fully
     * transparent → new snapshot fully visible) until the browser
     * tears down the pseudo-element. Without it, `@property` snaps
     * `--theme-reveal` back to its initial 0% for one frame after
     * the animation ends — the mask collapses to a point and the OLD
     * snapshot briefly bleeds through, which reads as a flash. */
    animation: theme-swap-reveal 1600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    /* Soft feather: opaque core from center out to `reveal - 18%`,
     * fading to transparent at `reveal`. The ~18% window at any
     * given moment is the "beam edge" — wider = softer / dreamier. */
    mask-image: radial-gradient(
        circle at var(--theme-swap-cx, 50%) var(--theme-swap-cy, 50%),
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) calc(var(--theme-reveal) - 6%),
        rgba(0, 0, 0, 0) var(--theme-reveal)
    );
    -webkit-mask-image: radial-gradient(
        circle at var(--theme-swap-cx, 50%) var(--theme-swap-cy, 50%),
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) calc(var(--theme-reveal) - 6%),
        rgba(0, 0, 0, 0) var(--theme-reveal)
    );
    z-index: 1;
}
@keyframes theme-swap-reveal {
    from { --theme-reveal: 0%; }
    /* End at 200% (double the farthest-corner distance) so the soft
     * feather edge itself finishes off-screen — no visible boundary
     * hangs around at the finish. */
    to   { --theme-reveal: 200%; }
}
/* Respect user preference — no animation for reduced-motion. */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-new(root),
    ::view-transition-old(root) {
        animation: none;
    }
}

body {
    margin: 0;
    color: var(--C-c-1);
    background-color: var(--C-bg-1);
    min-width: 320px;
    height: var(--app-100vh);
    overflow: hidden; /* inner content boxes handle their own scroll */
}

/* ─── Native <select> — global reskin.
 *
 * The app has ~350 native `<select>` elements across 150+ files.
 * Rewriting each to the custom `Dropdown` component would take days.
 * Instead we style the CLOSED state of every native select to match
 * the platform's chip aesthetic (border-radius, brand focus ring,
 * custom chevron, theme-aware bg + color). Users see the closed
 * state 95% of the time; the dropdown panel that opens is OS-owned
 * and can't be styled cross-browser, but at least it inherits the
 * theme via `color-scheme` set on the theme roots.
 *
 * Opt-out: add `.native-select` to any `<select>` that must keep the
 * raw OS look (rare — usually inside legacy inline mockups).
 *
 * Element selectors have low specificity, so any module CSS class on
 * a specific `<select>` still wins — no need to hunt down overrides. */
select:not(.native-select) {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* Keep the chevron in the padding so it never overlaps the value. */
    padding: 0.4rem 2rem 0.4rem 0.7rem;
    min-height: 34px;
    border: 1px solid var(--C-b-2);
    border-radius: 8px;
    background-color: var(--C-bg-1);
    /* Chevron — hardcoded neutral gray reads on both themes. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.55rem center;
    background-size: 1rem;
    color: var(--C-c-1);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.3;
    cursor: pointer;
    outline: none;
}
select:not(.native-select):hover {
    background-color: var(--C-bg-2);
}
select:not(.native-select):focus,
select:not(.native-select):focus-visible {
    border-color: var(--C-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--C-primary) 20%, transparent);
}
select:not(.native-select):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
/* The dropdown panel can't be styled cross-browser, but the option
 * background/color follows the theme in Chromium — set them so
 * dark-theme selects don't flash a white panel. */
select:not(.native-select) option {
    background-color: var(--C-bg-1);
    color: var(--C-c-1);
}

#root {
    height: 100%;
    overflow: hidden;
}


/* scrollbar start*/

::-webkit-scrollbar {
    width: 10px;
    z-index: 10000;
}

::-webkit-scrollbar-track {
    border-radius: 5px;
    background: var(--C-csb-tr);
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--C-csb-th);
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--C-csb-th-h);
    cursor: pointer;
}

.box ::-webkit-scrollbar {
    width: 6px;
    z-index: 10000;
}

.microscrool ::-webkit-scrollbar {
    width: 3px;
    z-index: 10000;
}

.small-scrool ::-webkit-scrollbar {
    width: 7px;
}


/* scrollbar end */


/*** html components ***/


/* a */

a {
    color: var(--C-c-1);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    /* 150% */
}

a:hover {
    color: var(--C-a-h);
}


/* button */

button {
    cursor: pointer;
    background-color: #00000000;
    color: var(--C-c-1);
    border: var(--border-1);
    border-radius: var(--border-r-1);
    padding: 8px;
}


/* table */

ol,
ul {
    list-style: none;
    padding: 0;
}

hr {
    border: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border-bottom: 1px solid var(--C-b-1);
    text-align: left;
    padding: 8px;
}

/* Removed global `tr:nth-child(even) { background: var(--C-bg-3) }`.
   In dark theme bg-3 (#272727) is the BRIGHTEST background token —
   it made every even row pop hard against the page bg. Component-level
   tables (DataTable et al.) now opt into striping explicitly with their
   own subtle rule. If a legacy plain <table> needs a stripe, add a
   class-scoped rule to that component instead of a global element
   selector. */


/*
*    Vars
*/

:root {
    --SBapps-w: 56px;
    --SB-w: 200px;
    --SB-calendar-w: 280px;
    --H-h: 50px;
    --N-h: 30px;
    --W-SA-sb: 4px;
    --shadow-1: 0 4px 6px 0 var(--C-shadow);
    --border-1: 1px solid var(--C-b-2);
    --border-st: 1px solid var(--C-st);
    --border-r-1: 4px;
    --border-r-2: 8px;
    --border-r-3: 14px;
}


/*
 * ───── Firefice Design System — color tokens ─────────────────────────
 *
 * Brand: warm-orange family (Material Deep Orange ramp). The brand
 * ramp `--brand-50..900` is mode-agnostic — same orange shades sit on
 * both themes; what changes per theme is the surface + text + border
 * palette. Use brand tokens ONLY for accents, CTAs, links, focus and
 * branded surfaces. Use surface/text/border tokens for everything
 * structural so that swapping the brand later means editing one ramp.
 *
 * Semantic state colours (success/warning/danger/info) are independent
 * of the brand — they communicate meaning, not identity.
 *
 * Legacy aliases (`--C-primary`, `--C-a`, `--C-c-r`, ...) are kept so
 * the thousands of existing references in the app keep working — they
 * now point at brand / semantic tokens.
 *
 * Full reference + intended usage per token: docs/branding/design-system.md.
 */

:root {
    /* ─── Brand ramp — Firefice identity (Material Deep Orange family).
     * MODE-AGNOSTIC and IMMUTABLE: same hex on both themes; this is the
     * canonical company identity and never changes per user. Used by
     * `--marketing-*` (always) and as the *default* for `--ui-*` (which
     * users can later override per-org for their in-app workspace). */
    --brand-50:  #fff3e9;
    --brand-100: #ffe1cd;
    --brand-200: #ffc4a4;
    --brand-300: #ffa074;
    --brand-400: #ff8a65;
    --brand-500: #ff7043;  /* canonical "Firefice orange" */
    --brand-600: #f4511e;
    --brand-700: #e64a19;
    --brand-800: #d84315;
    --brand-900: #bf360c;
    --brand-rgb: 255, 112, 67;

    /* ─── Three-surface theming.
     *
     * Firefice has three visually-distinct surfaces, each owning its own
     * primary namespace so they can drift independently in the future
     * without us hunting through hardcoded hex everywhere:
     *
     *   1. PUBLIC  (--marketing-*)  landing page, help docs, 404, mobile
     *      install landing — anything visible to the unauthenticated
     *      public web. ALWAYS fixed brand orange (the public identity
     *      doesn't change per user).
     *   2. AUTH    (--auth-*)       login, signup, recover, reset,
     *      verify-email, waitlist, 2FA challenge, OAuth consent — the
     *      account surface. Today equal to marketing; kept separate so
     *      a future redesign could give auth its own personality (e.g.
     *      a more "secure / calm" palette) without touching either
     *      adjacent surface.
     *   3. APP     (--ui-primary-*) the authenticated shell + every
     *      subapp. User / org overridable — that's the whole point of
     *      having it separate from the brand.
     *
     * RULE: in a component, pick the namespace that matches the surface
     * the component lives on. Never reach across (don't use --ui-primary
     * on the landing page; don't use --marketing-primary in an in-app
     * dashboard). The shared --brand-* ramp is the only correct way to
     * say "Firefice identity always" — use it for the logo mark itself.
     *
     * If you only need ONE namespace's value, prefer the brand ramp
     * directly (e.g. logo, favicon swatch). If you need "the primary of
     * THIS surface" so it can theme independently later, use the
     * surface-specific token. */

    /* PUBLIC surface — landing, help docs, 404, etc. Fixed identity. */
    --marketing-primary:        var(--brand-500);
    --marketing-primary-hover:  var(--brand-600);
    --marketing-primary-active: var(--brand-700);
    --marketing-primary-soft:   rgba(255,112,67,0.12);
    --marketing-primary-soft-bg: var(--brand-50);      /* opaque tint for light bg */
    --marketing-primary-rgb:    var(--brand-rgb);

    /* AUTH surface — login, signup, etc. Currently aliases marketing
     * (same orange) but the indirection lets the auth team redesign
     * independently of either marketing or in-app. */
    --auth-primary:        var(--marketing-primary);
    --auth-primary-hover:  var(--marketing-primary-hover);
    --auth-primary-active: var(--marketing-primary-active);
    --auth-primary-soft:   var(--marketing-primary-soft);
    --auth-primary-soft-bg: var(--marketing-primary-soft-bg);
    --auth-primary-rgb:    var(--marketing-primary-rgb);

    /* Auth input field background. Pages should pass this to InputField
     * instead of --C-bg-0 so the input matches the card in BOTH themes:
     *   - dark  → same dark fill the cards have always used
     *   - light → pure white (card is white too, no "cream box around
     *             a white input" effect)
     * Default = bgc-0 (dark behavior); the [theme="light"] block flips
     * it to white. */
    --auth-input-bg: var(--C-bg-0);

    /* ═══════════════════════════════════════════════════════════════════
     * COLOUR SYSTEM — 3-tier token architecture (advanced / futureproof)
     * ═══════════════════════════════════════════════════════════════════
     *
     *   Tier 1  PRIMITIVES  raw hue ramps (--red-500 …). Mode-agnostic, the
     *                       only place a literal hex ever lives. Never used
     *                       directly by a component.
     *   Tier 2  SEMANTIC    role aliases (--color-danger …) → a ramp step.
     *                       Re-pointed per theme in the [theme="*"] blocks so
     *                       every consumer shifts a shade with the theme for
     *                       free. This is what components use.
     *   Tier 3  ROLE        domain tokens (--status-*, --priority-*) → the
     *                       semantic layer. Add a domain here, not new hexes.
     *
     * To rebrand / add a theme / add a high-contrast mode: touch the
     * mapping, never the ramps. Inline-style call sites use semanticColors.ts
     * which returns `var(--token)` so they stay theme-aware too.
     * ═══════════════════════════════════════════════════════════════════ */

    /* ── Tier 1: primitive ramps (Tailwind-calibrated, mode-agnostic) ── */
    --red-50:#fef2f2; --red-100:#fee2e2; --red-200:#fecaca; --red-300:#fca5a5; --red-400:#f87171; --red-500:#ef4444; --red-600:#dc2626; --red-700:#b91c1c; --red-800:#991b1b; --red-900:#7f1d1d;
    --amber-50:#fffbeb; --amber-100:#fef3c7; --amber-200:#fde68a; --amber-300:#fcd34d; --amber-400:#fbbf24; --amber-500:#f59e0b; --amber-600:#d97706; --amber-700:#b45309; --amber-800:#92400e; --amber-900:#78350f;
    --orange-50:#fff7ed; --orange-100:#ffedd5; --orange-200:#fed7aa; --orange-300:#fdba74; --orange-400:#fb923c; --orange-500:#f97316; --orange-600:#ea580c; --orange-700:#c2410c; --orange-800:#9a3412; --orange-900:#7c2d12;
    --green-50:#f0fdf4; --green-100:#dcfce7; --green-200:#bbf7d0; --green-300:#86efac; --green-400:#4ade80; --green-500:#22c55e; --green-600:#16a34a; --green-700:#15803d; --green-800:#166534; --green-900:#14532d;
    --blue-50:#eff6ff; --blue-100:#dbeafe; --blue-200:#bfdbfe; --blue-300:#93c5fd; --blue-400:#60a5fa; --blue-500:#3b82f6; --blue-600:#2563eb; --blue-700:#1d4ed8; --blue-800:#1e40af; --blue-900:#1e3a8a;
    --violet-50:#f5f3ff; --violet-100:#ede9fe; --violet-200:#ddd6fe; --violet-300:#c4b5fd; --violet-400:#a78bfa; --violet-500:#8b5cf6; --violet-600:#7c3aed; --violet-700:#6d28d9; --violet-800:#5b21b6; --violet-900:#4c1d95;
    --gray-50:#f9fafb; --gray-100:#f3f4f6; --gray-200:#e5e7eb; --gray-300:#d1d5db; --gray-400:#9ca3af; --gray-500:#6b7280; --gray-600:#4b5563; --gray-700:#374151; --gray-800:#1f2937; --gray-900:#111827;

    /* ── Tier 2: semantic state colours — DARK defaults ──
     * (the [theme="light"] block re-points these one step darker for
     * contrast on light surfaces; consumers below adapt automatically).
     * Each family: base (fills/text), -strong (hover/border/emphasis),
     * -bg (subtle translucent tint). NEVER hardcode these hexes — use the
     * token (CSS) or semanticColors.ts (inline styles). */
    --color-success: var(--green-500);  --color-success-strong: var(--green-600);  --color-success-bg: rgba(34,197,94,0.12);
    --color-warning: var(--amber-500);  --color-warning-strong: var(--amber-600);  --color-warning-bg: rgba(245,158,11,0.15);
    --color-danger:  var(--red-500);    --color-danger-strong:  var(--red-600);    --color-danger-bg:  rgba(239,68,68,0.12);
    --color-info:    var(--blue-500);   --color-info-strong:    var(--blue-600);   --color-info-bg:    rgba(59,130,246,0.12);
    --color-accent:  var(--violet-500); --color-accent-strong:  var(--violet-600); --color-accent-bg:  rgba(139,92,246,0.12);
    --color-neutral: var(--gray-400);   --color-neutral-strong: var(--gray-500);   --color-neutral-bg: rgba(156,163,175,0.14);

    /* ── Tier 3: status — canonical task/issue/list status colours.
     * "in progress" is BLUE (active); amber is reserved for "blocked".
     * Map any vocabulary (todo/open/backlog, done/resolved/complete,
     * cancelled/closed) onto these — see semanticColors.ts. */
    --status-todo:      var(--color-neutral-strong);
    --status-progress:  var(--color-info);
    --status-done:      var(--color-success);
    --status-cancelled: var(--color-neutral);
    --status-blocked:   var(--color-warning);

    /* ── Tier 3: priority — canonical scale (matches shared PriorityDot).
     * critical/urgent = red, high = orange, medium/normal = blue, low = grey. */
    --priority-critical: var(--color-danger);
    --priority-high:     var(--orange-500);
    --priority-medium:   var(--color-info);
    --priority-low:      var(--color-neutral);
}

[theme="dark"] {
    /* Pin browser-rendered form controls (checkboxes, radios, native
     * scrollbars, date pickers, etc.) to the matching palette. Without
     * this, OS pref leaks through and a user on a light-OS sees dark
     * controls in our light mode (or vice versa). */
    color-scheme: dark;

    /* Surfaces (warm neutrals — subtle orange tint, not slate blue) */
    --C-bg-0: #0d0a08;
    --C-bg-0-h: #100c0a;
    --C-bg-1: #141210;
    --C-bg-2: #1a1715;
    --C-bg-3: #221d1a;
    --C-bg-4: #2d2723;
    --C-bg-st-1: #0505057c;

    /* Text */
    --C-c-1: #e8e3df;
    --C-c-2: #b9b3ad;
    --C-c-3: #8c867f;
    --C-c-4: #5e5852;
    --C-c-on-brand: #ffffff;  /* for text sitting on a brand background */

    /* Borders */
    --C-b-1: #2b2724;
    --C-b-2: #3d3733;

    /* Anchors / links — point at the UI primary so they follow user
     * customization in-app. Marketing surfaces should override these
     * with --marketing-primary directly. */
    --C-a:   var(--ui-primary-soft-fg);
    --C-a-h: var(--ui-primary-hover);

    /* ─── In-app UI primary — user/org overridable.
     * Defaults to the brand ramp but is the override surface for
     * per-org / per-user brand customization. To customize at runtime,
     * inject a <style> that redefines --ui-primary-* on :root for the
     * authenticated app shell. PublicApp surfaces use --marketing-* and
     * are immune to these overrides. */
    --ui-primary:        var(--brand-500);
    --ui-primary-hover:  var(--brand-400);
    --ui-primary-active: var(--brand-300);
    --ui-primary-soft:   rgba(255,112,67,0.12);
    --ui-primary-soft-fg:var(--brand-400);  /* readable on dark surface */
    --ui-primary-rgb:    var(--brand-rgb);

    /* Legacy aliases — now resolve to UI primary so existing code
     * automatically benefits from per-org customization. */
    --C-primary:        var(--ui-primary);
    --C-primary-h:      var(--ui-primary-hover);
    --C-primary-active: var(--ui-primary-active);
    --C-primary-soft:   var(--ui-primary-soft);
    --C-primary-rgb:    var(--ui-primary-rgb);

    /* `--C-accent` alias — legacy token used in ~50+ places via
     * `var(--C-accent, #3b82f6)` fallbacks. Was never defined,
     * so every site silently fell through to raw blue. Aliasing
     * it to `--ui-primary` means every historical accent-color
     * usage becomes brand-driven for free — no site-by-site
     * hunt. Rebranding still just needs `--brand-500`. */
    --C-accent:      var(--ui-primary);
    --C-accent-soft: var(--ui-primary-soft);

    /* Accent / informational secondary (kept warm but cooler than brand) */
    --C-c-0: var(--brand-700);
    --C-c-0-bg-1: rgba(216,67,21,0.08);
    --C-c-0-bg-2: rgba(216,67,21,0.16);
    --C-c-0-bg-3: rgba(216,67,21,0.28);

    /* Sidebar items, scrollbars, shadows */
    --C-c-SA-items: #e8e3df;
    --C-bg-SA-sb-track: #1412100;
    --C-bg-SA-sb-thumb: #4d4742;
    --C-bg-SA-sb-thumb-h: #5e5852;
    --C-shadow: rgba(0,0,0,0.6);
    --C-st: #00000000;
    --C-csb-tr: #1f1c19;
    --C-csb-th: #4d4742;
    --C-csb-th-h: #5e5852;

    /* Danger (semantic alias of --color-danger, kept for legacy refs) */
    --C-c-r:   var(--color-danger);
    --C-c-r-2: #f0837d;
    --C-c-r-h: #dc2626;
}

[theme="light"] {
    /* Same as the dark-block note: pin browser controls (checkboxes,
     * scrollbars, etc.) to the matching palette regardless of OS pref. */
    color-scheme: light;

    /* Surfaces — warm whites (cream tint, not pure neutral grey) */
    --C-bg-0: #e8e3df;
    --C-bg-0-h: #e0dbd6;
    --C-bg-1: #ffffff;
    --C-bg-2: #faf7f5;
    --C-bg-3: #f4efeb;
    --C-bg-4: #ece6e0;
    --C-bg-st-1: #0505057c;

    /* Auth-input background — pure white in light mode (card is white;
     * matching this avoids the "cream box around the white input" the
     * dark token --C-bg-0 would otherwise produce). */
    --auth-input-bg: #ffffff;

    /* Text */
    --C-c-1: #1a1612;
    --C-c-2: #4a4540;
    --C-c-3: #6d6862;
    --C-c-4: #9c968f;
    --C-c-on-brand: #ffffff;

    /* Borders */
    --C-b-1: #e8e3df;
    --C-b-2: #d4cec8;

    /* Anchors / links — point at UI primary so they follow user customization. */
    --C-a:   var(--ui-primary);
    --C-a-h: var(--ui-primary-hover);

    /* ─── In-app UI primary — user/org overridable.
     * Defaults to brand. Override surface for per-org customization
     * inside the authenticated app shell. */
    --ui-primary:        var(--brand-600);
    --ui-primary-hover:  var(--brand-700);
    --ui-primary-active: var(--brand-800);
    --ui-primary-soft:   rgba(255,112,67,0.12);
    --ui-primary-soft-fg:var(--brand-700);
    --ui-primary-rgb:    var(--brand-rgb);

    --C-primary:        var(--ui-primary);
    --C-primary-h:      var(--ui-primary-hover);
    --C-primary-active: var(--ui-primary-active);
    --C-primary-soft:   var(--ui-primary-soft);
    --C-primary-rgb:    var(--ui-primary-rgb);

    /* Same alias as the dark block — see there for the reasoning. */
    --C-accent:      var(--ui-primary);
    --C-accent-soft: var(--ui-primary-soft);

    /* Accent / informational secondary */
    --C-c-0: var(--brand-800);
    --C-c-0-bg-1: #ffe1cd;
    --C-c-0-bg-2: #ffc4a4;
    --C-c-0-bg-3: #ffa074;

    /* Sidebar items, scrollbars, shadows */
    --C-c-SA-items: #2b2724;
    --C-bg-SA-sb-track: #ffffff00;
    --C-bg-SA-sb-thumb: #c9bfb6;
    --C-bg-SA-sb-thumb-h: #a89c91;
    --C-shadow: rgba(0,0,0,0.18);
    --C-st: #ffffff00;
    --C-csb-tr: #d4cec8;
    --C-csb-th: #a89c91;
    --C-csb-th-h: #8a7e72;

    /* ── Semantic state colours — LIGHT re-tune. Re-point one ramp step
     * darker than the dark defaults so fills/text keep AA contrast on the
     * light (cream) surfaces. Everything referencing these — --status-*,
     * --priority-*, and every component token — shifts automatically. */
    --color-success: var(--green-600);  --color-success-strong: var(--green-700);
    --color-warning: var(--amber-600);  --color-warning-strong: var(--amber-700);
    --color-danger:  var(--red-600);    --color-danger-strong:  var(--red-700);
    --color-info:    var(--blue-600);   --color-info-strong:    var(--blue-700);
    --color-accent:  var(--violet-600); --color-accent-strong:  var(--violet-700);
    --color-neutral: var(--gray-500);   --color-neutral-strong: var(--gray-600);
    --priority-high: var(--orange-600);

    /* Danger */
    --C-c-r:   var(--color-danger);
    --C-c-r-2: #ffafa9;
    --C-c-r-h: var(--red-700);
}

.bgc-0 {
    background-color: var(--C-bg-0);
}

.btn-bgc-0 {
    background-color: var(--C-bg-0);
    cursor: pointer;
}

.btn-bgc-0:hover {
    background-color: var(--C-bg-0-h);
}

.bgc-1 {
    background-color: var(--C-bg-1);
}

.btn-bgc-1 {
    background-color: var(--C-bg-1);
    cursor: pointer;
}

.btn-bgc-1:hover {
    background-color: var(--C-bg-2);
}

.btn-bgc-red {
    background-color: var(--C-c-r);
    cursor: pointer;
}

.btn-bgc-red:hover {
    background-color: var(--C-c-r-2);
}

.bgc-2 {
    background-color: var(--C-bg-3);
}

.btn-bgc-2 {
    background-color: var(--C-bg-3);
    cursor: pointer;
}

.btn-bgc-2:hover {
    background-color: var(--C-bg-4);
}

.bgc-4 {
    background-color: var(--C-bg-4);
}

.bgc-r {
    background-color: var(--C-c-r);
}

.bgc-r-2 {
    background-color: var(--C-c-r-2);
}

.bgc-st-1 {
    background-color: var(--C-bg-st-1);
}

.w-cntnt-100 {
    width: calc(100% - var(--SBapps-w) - var(--SB-w) - 10px);
}

.w-cntnt-100-calendar {
    width: calc(100% - var(--SBapps-w) - var(--SB-calendar-w) - 10px);
}

.c-1 {
    color: var(--C-c-1);
}

.c-2 {
    color: var(--C-c-2);
}

.c-3 {
    color: var(--C-c-3);
}

.c-4 {
    color: var(--C-c-4);
}

.c-r {
    color: var(--C-c-r);
}

.c-r-2 {
    color: var(--C-c-r-2);
}


/*
*   Components
*/


/* helpers */

.top-full{
    top: 100%;
}
.left-0 {
    left: 0;
  }

.pointer {
    cursor: pointer;
}

.c-text {
    cursor: text;
}

.hidden {
    display: none !important;
}

.ta-c {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.w-84 {
    width: 84%;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.w-45 {
    width: 45%;
}

.w-40 {
    width: 40%;
}

.w-25 {
    width: 25%;
}

.w-20 {
    width: 20%;
}

.w-15 {
    width: 15%;
}

.w-10 {
    width: 10%;
}

.w-6 {
    width: 6%;
}

.w-5 {
    width: 5%;
}

.h-100 {
    height: 100%;
}

.h-50 {
    height: 50%;
}

.h-75 {
    height: 75%;
}

.h-100vh {
    height: var(--app-100vh);
}

.h-100-hd {
    height: calc(var(--app-100vh) - var(--H-h));
}

.noborder {
    border: none;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-l-1 {
    padding-left: 0.25rem;
}

.p-l-2 {
    padding-left: 0.5rem;
}

.p-l-3 {
    padding-left: 0.75rem;
}

.p-l-4 {
    padding-left: 1rem;
}

.p-t-2 {
    padding-top: 0.5rem;
}

.p-t-3 {
    padding-top: 1rem;
}

.p-b-1 {
    padding-bottom: 0.25rem;
}

.t-1 {
    font-size: 11px;
    color: var(--C-c-4);
}

.t-2 {
    font-size: 16px;
    color: var(--C-c-4);
}

.t-3 {
    font-size: 14px;
    color: var(--C-c-4);
}

.t-4 {
    font-size: 12px;
    color: var(--C-c-4);
}

.t-h2 {
    font-size: 24px;
    font-weight: 700;
}

.tt-uc {
    text-transform: uppercase;
}

.fw-b {
    font-weight: bold;
}


/* fcn */

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0%;
}

.grid {
    display: grid;
}

.grid-rows-5 {
    grid-template-rows: repeat(5, minmax(0, 1fr));
}

.grid-cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.f-ai-c {
    align-items: center;
}

.f-ai-fs {
    align-items: flex-start;
}

.f-ai-fe {
    align-items: flex-end;
}

.f-jc-c {
    justify-content: center;
}

.f-jc-fs {
    justify-content: flex-start;
}

.f-jc-fe {
    justify-content: flex-end;
}

.f-jc-sb {
    justify-content: space-between;
}

.f-jc-se {
    justify-content: space-evenly;
}

.f-fd-r {
    flex-direction: row;
}

.f-fd-rr{
    flex-direction: row-reverse;
}

.f-fd-c {
    flex-direction: column;
}

.f-fd-cr{
    flex-direction: column-reverse;
}

.f-fw-w {
    flex-wrap: wrap;
}

.f-fw-nw {
    flex-wrap: nowrap;
}

.m-xxs {
    margin: 3px;
}

.m-xs {
    margin: 5px;
}

.m-s {
    margin: 10px;
}

.m-m {
    margin: 16px;
}

.m_l-xs {
    margin-left: 5px;
}

.m_l-s {
    margin-left: 10px;
}

.m_l-m {
    margin-left: 16px;
}

.m_l-l {
    margin-left: 20px;
}

.m_r-xs {
    margin-right: 5px;
}

.m_r-s {
    margin-right: 10px;
}

.m_r-m {
    margin-right: 16px;
}

.m_r-0 {
    margin-right: 0;
}

.m_t-xs {
    margin-top: 5px;
}

.m_t-s {
    margin-top: 10px;
}

.m_t-m {
    margin-top: 16px;
}

.m_b-xs {
    margin-bottom: 4px;
}

.m_b-s {
    margin-bottom: 10px;
}

.m_b-m {
    margin-bottom: 16px;
}

.m_b-l {
    margin-bottom: 20px;
}

.m_b-0 {
    margin-bottom: 0;
}


/* tooltip */

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    min-width: 30px;
    visibility: hidden;
    background-color: var(--C-bg-4);
    color: var(--C-c-1);
    box-shadow: var(--shadow-1);
    text-align: center;
    padding: 2px 10px;
    border-radius: 6px;
    position: absolute;
}

.tooltip .top {
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
}

.tooltip .bottom {
    top: 100%;
    left: 50%;
    margin-left: -60px;
}

.tooltip .left {
    top: -5px;
    right: 105%;
}

.tooltip .right {
    top: -5px;
    left: 105%;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}


/* Btn */

.Btn {
    display: flex;
    padding: 4px 8px;
    margin: 4px;
    align-items: center;
    gap: 4px;
    background: #00000000;
    border-radius: 8px;
    border: var(--border-1);
    /* Dark/Drop Shadow/1 */
    box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.Btn:hover {
    background-color: var(--C-bg-0);
}

/* Primary CTA — used by login / signup / accept-invite buttons.
 * Backed by --C-primary so it honors per-user/org brand override
 * inside the in-app shell, and defaults to Firefice orange on auth
 * pages (which inherit the in-app primary). */
.Btn.coloured {
    border: none;
    background-color: var(--C-primary);
    color: var(--C-c-on-brand);
}

.Btn.coloured:hover {
    border: none;
    background-color: var(--C-primary-h);
}

.Btn.coloured:active {
    background-color: var(--C-primary-active);
}

.Btn.coloured:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.BtnGroup {
    border: var(--border-1);
    border-radius: 6px;
    display: flex;
}


/* Dropdown */

.dropdown-content a {
    display: block;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    background-color: var(--C-bg-1);
    border: var(--border-1);
    border-radius: var(--border-r-1);
    padding: 10px 18px;
}

.dropdown:hover .dropdown-content {
    display: flex;
    position: absolute;
}





/* others */

.C-boxes-center {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.link-b-box {
    width: 400px;
    height: 300px;
    border-radius: 8px;
    border: 2px solid var(--C-b-1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-sidebar-resizer {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 6px;
    justify-self: flex-end;
    cursor: col-resize;
    resize: horizontal;
}

.bg-blue-xx {
    background-color: var(--C-c-0);
    color: #fff !important;
}

.bg-gray-xx {
    background-color: var(--C-bg-1);
    color: var(--C-c-4) !important;
}

.round-full {
    border-radius: 9999px;
}

/* Custom-scrollbar picker column for DatePicker / TimePicker (or
   any narrow scrollable list). Replaces the OS-styled scrollbar
   with a token-tinted thin one so scrollable popovers don't look
   like they belong to the operating system chrome. Firefox uses
   `scrollbar-width` / `scrollbar-color`; WebKit uses `::-webkit-
   scrollbar` pseudo-elements. Both cover the common browsers. */
.ff-picker-column {
    scrollbar-width: thin;
    scrollbar-color: var(--C-b-1) transparent;
}

.ff-picker-column::-webkit-scrollbar {
    width: 6px;
}

.ff-picker-column::-webkit-scrollbar-track {
    background: transparent;
}

.ff-picker-column::-webkit-scrollbar-thumb {
    background: var(--C-b-1);
    border-radius: 3px;
}

.ff-picker-column::-webkit-scrollbar-thumb:hover {
    background: var(--C-c-3);
}

/* Calendar today-date chip. `bg-blue-xx round-full` on a wide <p>
   used to render as a pill (round on left/right, straight top/bottom)
   because the paragraph is wider than tall. This variant forces a
   fixed-size square + inline-flex centring so the highlight is an
   actual circle around the number, matching every other calendar
   surface's convention. Used by month/week/day/agenda views. */
.calendar-date-today {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0 !important;
    border-radius: 50%;
    background-color: var(--ui-primary, var(--brand-500, var(--C-c-0)));
    color: #fff !important;
    font-weight: 600;
    line-height: 1;
}

.text-sm {
    font-size: small;
    line-height: 1rem;
}

.text-x-sm {
    font-size: x-small;
}

.b-no {
    border: none;
}

.b-2 {
    border: 1px solid var(--C-b-2);
}

.b-b-1 {
    border-bottom: var(--border-1);
}

.b-t-1 {
    border-top: var(--border-1);
}

.b-ri-1 {
    border-right: var(--border-1);
}

.b-le-1 {
    border-left: var(--border-1);
}

.b-r-1 {
    border-radius: var(--border-r-2);
}

.b-r-3 {
    border-radius: var(--border-r-3);
}

.h-32 {
    height: 40px !important;
    max-height: 40px;
}

.m-b-8 {
    margin-bottom: 8px;
}

.event_1 {
    background-color: #34fb1e17;
    border-radius: var(--border-r-2);
}

.pos-abs {
    position: absolute !important;
}

.pos-rel {
    position: relative;
}

.pos-fix {
    position: fixed;
}

.top-10 {
    top: 10px;
}

.tbtn {
    color: var(--C-c-1);
}

.tbtn:hover {
    color: var(--C-c-0);
}

.scrool {
    overflow-y: auto;
    position: sticky;
}

.popup-bg {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: fixed;
    background-color: #00000087;
    z-index: 10000;
}

.search-box {
    border-radius: 8px;
    height: 28px;
    padding: 0.1rem;
    padding-left: 1rem;
}

.search-box:focus-visible {
    outline: 2px solid var(--C-b-2);
}

.search-box-mini {
    padding-left: 0.75rem;
}

.search-box-mini:focus-visible {
    outline: 2px solid var(--C-b-2);
}

.search-box-big {
    border-radius: 8px;
    height: 36px;
    padding: 0.2rem;
    padding-left: 1.1rem;
}

.search-box-big:focus-visible {
    outline: 2px solid var(--C-b-2);
}

.search-box-snippet-itm {
    background-color: var(--C-bg-0);
    border-radius: var(--border-r-2);
}

.search-box-snippet-itm:hover {
    background-color: var(--C-bg-1);
}

.msg-box {
    border-radius: 8px;
    border: var(--border-1);
}

.msg-box:focus-visible {
    border: 1px solid var(--C-c-4);
    outline: var(--C-b-2);
}

.one_line {
    border-radius: 11px;
    border: var(--border-st);
}

.one_line:hover {
    color: var(--C-a-h);
    border: var(--border-1);
}

.msg_prev_1:hover {
    background-color: var(--C-bg-2);
}

.msg_prev_1.active {
    background-color: var(--C-bg-2);
    box-shadow: inset 3px 0px 0 0px var(--C-c-0);
}

.avatar-2 {
    width: 38px;
    height: 38px;
    border-radius: 100px;
}

.folder_icon {
    width: 20px;
}

.chat_msg_txt {
    margin-left: 54px;
}

/* ── Chat Markdown Rendered Styles ── */
.chat_msg_txt .chat-code-wrap {
    margin: 0.4rem 0;
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}
.chat_msg_txt .chat-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.85rem;
    background: #141414;
    border-bottom: 1px solid rgba(128,128,128,0.15);
}
.chat_msg_txt .chat-code-lang {
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
    text-transform: lowercase;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.chat_msg_txt .chat-code-copy {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 0.72rem;
    color: #888;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.chat_msg_txt .chat-code-copy:hover {
    background: rgba(255,255,255,0.12);
    color: #ccc;
}
.chat_msg_txt .chat-code-block {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    border-radius: 0;
    color: #d4d4d4;
}
.chat_msg_txt .chat-code-block code {
    font-family: inherit;
    color: inherit;
}

/* highlight.js theme (One Dark inspired) */
.chat_msg_txt .hljs-keyword { color: #c678dd; }
.chat_msg_txt .hljs-built_in { color: #e5c07b; }
.chat_msg_txt .hljs-type { color: #e5c07b; }
.chat_msg_txt .hljs-literal { color: #d19a66; }
.chat_msg_txt .hljs-number { color: #d19a66; }
.chat_msg_txt .hljs-string { color: #98c379; }
.chat_msg_txt .hljs-template-variable { color: #e06c75; }
.chat_msg_txt .hljs-variable { color: #e06c75; }
.chat_msg_txt .hljs-regexp { color: #56b6c2; }
.chat_msg_txt .hljs-title { color: #61afef; }
.chat_msg_txt .hljs-title\.function_ { color: #61afef; }
.chat_msg_txt .hljs-function { color: #61afef; }
.chat_msg_txt .hljs-params { color: #cdd6f4; }
.chat_msg_txt .hljs-comment { color: #5c6370; font-style: italic; }
.chat_msg_txt .hljs-doctag { color: #c678dd; }
.chat_msg_txt .hljs-meta { color: #56b6c2; }
.chat_msg_txt .hljs-attr { color: #d19a66; }
.chat_msg_txt .hljs-attribute { color: #98c379; }
.chat_msg_txt .hljs-name { color: #e06c75; }
.chat_msg_txt .hljs-tag { color: #e06c75; }
.chat_msg_txt .hljs-selector-class { color: #e5c07b; }
.chat_msg_txt .hljs-selector-id { color: #61afef; }
.chat_msg_txt .hljs-selector-tag { color: #e06c75; }
.chat_msg_txt .hljs-property { color: #61afef; }
.chat_msg_txt .hljs-punctuation { color: #abb2bf; }
.chat_msg_txt .hljs-operator { color: #56b6c2; }
.chat_msg_txt .hljs-symbol { color: #56b6c2; }
.chat_msg_txt .hljs-section { color: #61afef; font-weight: bold; }
.chat_msg_txt .hljs-addition { color: #98c379; background: rgba(152,195,121,0.1); }
.chat_msg_txt .hljs-deletion { color: #e06c75; background: rgba(224,108,117,0.1); }
.chat_msg_txt .chat-code-inline {
    background: var(--C-bg-2);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.chat_msg_txt .chat-link {
    color: var(--C-primary);
    text-decoration: none;
}
.chat_msg_txt .chat-link:hover {
    text-decoration: underline;
}
.chat_msg_txt .chat-img {
    max-width: 100%;
    max-height: 300px;
    min-height: 50px;
    border-radius: 6px;
    margin: 0.25rem 0;
    display: block;
    background: var(--C-bg-2);
    aspect-ratio: auto;
}
.chat_msg_txt .chat-blockquote {
    border-left: 4px solid var(--C-primary);
    padding: 0.35rem 0.85rem;
    margin: 0.3rem 0;
    color: var(--C-c-2);
    background: rgba(128, 128, 128, 0.06);
    border-radius: 0 6px 6px 0;
}
.chat_msg_txt .chat-heading {
    font-weight: 700;
    margin: 0.3rem 0;
    line-height: 1.3;
}
.chat_msg_txt h1.chat-heading { font-size: 1.25rem; }
.chat_msg_txt h2.chat-heading { font-size: 1.1rem; }
.chat_msg_txt h3.chat-heading { font-size: 0.95rem; }
.chat_msg_txt .chat-hr {
    border: none;
    border-top: 1px solid var(--C-b-1);
    margin: 0.5rem 0;
}
.chat_msg_txt .chat-list {
    margin: 0.15rem 0;
    padding-left: 1.5rem;
}
.chat_msg_txt ul.chat-list { list-style-type: disc; }
.chat_msg_txt ol.chat-list { list-style-type: decimal; }
.chat_msg_txt .chat-list li {
    margin: 0.1rem 0;
}
.chat_msg_txt .chat-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.25rem 0;
    font-size: 0.85rem;
    border: 1px solid rgba(128,128,128,0.25);
    border-radius: 6px;
    overflow: hidden;
}
.chat_msg_txt .chat-table th,
.chat_msg_txt .chat-table td {
    border: 1px solid rgba(128,128,128,0.2);
    padding: 5px 10px;
}
.chat_msg_txt .chat-table th {
    background: rgba(128,128,128,0.12);
    font-weight: 600;
}
.chat_msg_txt .chat-table tbody tr:nth-child(even) {
    background: rgba(128,128,128,0.05);
}

/* Mentions */
.chat_msg_txt .chat-mention {
    background: rgba(59, 130, 246, 0.15);
    color: var(--C-primary);
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.chat_msg_txt .chat-mention:hover {
    background: rgba(59, 130, 246, 0.3);
}

.chat_msg {
    background-color: var(--C-bg-1);
    border-radius: var(--border-r-2);
}

.chat_msg:hover {
    background-color: var(--C-bg-2);
}

.chat_msg_tools {
    position: absolute;
    right: 40px;
    margin-top: -18px;
    background-color: var(--C-bg-0);
    border-radius: var(--border-r-2);
    border: 0.5px solid var(--C-b-1);
}

.chat_msg_tools.visible {
    display: flex;
}

.chat_msg_tools_tool {
    background-color: var(--C-bg-0);
    padding: 4px;
    border-right: 0.5px solid var(--C-b-1);
}

.chat_msg_tools_tool:hover {
    background-color: var(--C-bg-2);
}

.chat_msg_tools_tool-f {
    border-radius: var(--border-r-2) 0 0 var(--border-r-2);
}

.chat_msg_tools_tool-l {
    border-radius: 0 var(--border-r-2) var(--border-r-2) 0;
    border-right: none;
}

.chat_msg_box {
    display: flex;
    /*flex-direction: column-reverse;*/
    flex-direction: column;
}

.chat_rep_tip {
    margin-top: -27px;
    margin-left: 10px;
    padding: 0.25rem 0.5rem 0.25rem 0.5rem;
    font-size: 14px;
}

.chat_msg_repl {
    margin-top: -10px;
    padding-bottom: 10px;
    color: var(--C-c-4);
}

.chat_msg_highlight {
    background-color: var(--C-bg-3) !important;
}

.chat_msg_react_img {
    width: 20px;
    height: 20px;
}

.chat_msg_react {
    background-color: var(--C-bg-0);
}

.chat_msg_react:hover {
    background-color: var(--C-bg-2);
}

.chat_msg_react_rctd {
    background-color: var(--C-c-0-bg-1);
    border: 2px solid var(--C-c-0);
}

.chat_msg_react_rctd:hover {
    background-color: var(--C-c-0-bg-3);
}

.chat_emoji_book {
    width: 320px;
    height: 310px;
}

.chat_emoji_book_emoji_img {
    width: 22px;
    height: 22px;
}

.chat_emoji_book_emoji {
    width: 33px;
    height: 33px;
}

.chat_alert_delete {
    width: 320px;
    height: 140px;
}

.chat_reaction_detail {
    width: 320px;
    height: 340px;
}

.chat_reaction_detail_emoji_img {
    width: 28px;
    height: 28px;
}

.sidebar_close_btn_div {
    left: var(--SBapps-w) !important;
    margin-top: 10px;
    z-index: 1005;
}

.sidebar_close_btn {
    border-radius: 0 20px 20px 0 !important;
    width: 38px;
    padding-left: 8px;
    border-left: none;
}

.chats_box_menu_box_is_open {
    margin-left: 45px;
}



.CalendarBox{
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.input_1 {
    height: 20px;
    background-color: var(--C-bg-0);
    border: var(--border-1);
    border-radius: var(--border-r-1);
    outline: none;
}

.input_2 {
    height: 32px;
    background-color: var(--C-bg-0);
    border: var(--border-1);
    border-radius: var(--border-r-1);
    outline: none;
}

.input_3 {
    height: 40px;
    background-color: var(--C-bg-0);
    border: var(--border-1);
    border-radius: var(--border-r-1);
    font-size: 15px;
    outline: none;
    padding-left: 10px
}

input {
    color: var(--C-c-1);
}

.err_msg {
    color: var(--C-c-r);
    font-size: 15px;
}

.chat-frmt-ul {
    white-space: normal !important;
    padding: 4px;
    margin-left: 16px;
}

.toolbar-btn {
    margin-right: 4px;
}

.contextMenu {
    position: absolute;
    box-shadow: 4px 6px 10px rgb(0 0 0 / 28%);
    z-index: 10000;
    background-color: var(--C-bg-0);
    padding: 0.5rem;
    border-radius: var(--border-r-2);
    background-color: var(--C-bg-0);
}

.contextMenu-itm {
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-r-2);
    background-color: var(--C-bg-0);
}

.contextMenu-itm:hover {
    background-color: var(--C-bg-3);
}

.icon_chat_tools {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
    font-size: 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    user-select: none;
}

.chat_scroll_to_bottom_btn {
    background-color: var(--C-bg-4);
    width: 30px;
    height: 30px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 5px 10px 4px var(--C-bg-0);
}

.chat_scroll_to_bottom_btn:hover {
    background-color: var(--C-bg-SA-sb-thumb);
}

.rol_badge_txt {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}



.event-box {
    box-shadow: rgb(0 0 0 / 30%) 0px 0px 14px !important;
    cursor: pointer;
}
.event-box:hover {
    z-index: 1000 !important;
    box-shadow: rgb(0 0 0 / 30%) 0px 0px 14px !important;
}