/* RoxanAI single source of first-party styles. Vendor styles stay in wwwroot/lib. */

/* Shared stylesheet: vazirmatn-local.css */
@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Vazirmatn';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('../fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
}



/* Shared stylesheet: brand.css */

.roxan-brand{display:inline-block;width:180px;max-width:100%;vertical-align:middle;flex-shrink:0;line-height:0}
.roxan-brand img{display:block;width:100%;height:auto;object-fit:contain}
.roxan-brand .roxan-brand-light{display:none}
[data-theme="light"] .roxan-brand .roxan-brand-dark{display:none}
[data-theme="light"] .roxan-brand .roxan-brand-light{display:block}
.auth-header .roxan-brand{width:245px;margin:0 auto 14px}
.auth-header .auth-subtitle{margin-top:4px}
.roxan-mark{display:inline-block;width:32px;height:32px;flex-shrink:0;background:var(--brand,#2dd4bf);-webkit-mask:url('/brand/mark-black.svg?v=2') center/contain no-repeat;mask:url('/brand/mark-black.svg?v=2') center/contain no-repeat}
.logo .mark.roxan-mark{background:var(--brand,#2dd4bf);border:0;border-radius:0}
.roxan-footer-brand{display:flex;justify-content:center;margin-bottom:20px}
.roxan-footer-brand .roxan-brand{width:170px}
@media(max-width:600px){.navbar-brand .roxan-brand,.site-nav .roxan-brand{width:112px}.auth-header .roxan-brand{width:210px}.navbar-brand{margin-inline-start:0!important}.roxan-mark{width:28px;height:28px}}

.roxan-brand .roxan-brand-compact{display:none}
@media(max-width:600px){.navbar-brand .roxan-brand-full,.site-nav .roxan-brand-full{display:none}.navbar-brand .roxan-brand-dark.roxan-brand-compact,.site-nav .roxan-brand-dark.roxan-brand-compact{display:block}[data-theme="light"] .navbar-brand .roxan-brand-dark.roxan-brand-compact,[data-theme="light"] .site-nav .roxan-brand-dark.roxan-brand-compact{display:none}[data-theme="light"] .navbar-brand .roxan-brand-light.roxan-brand-compact,[data-theme="light"] .site-nav .roxan-brand-light.roxan-brand-compact{display:block}}

.navbar-brand .roxan-brand,.site-nav .roxan-brand{width:148px}
.navbar-brand .roxan-brand-full,.site-nav .roxan-brand-full{display:none}
.navbar-brand .roxan-brand-dark.roxan-brand-compact,.site-nav .roxan-brand-dark.roxan-brand-compact{display:block}
[data-theme="light"] .navbar-brand .roxan-brand-dark.roxan-brand-compact,[data-theme="light"] .site-nav .roxan-brand-dark.roxan-brand-compact{display:none}
[data-theme="light"] .navbar-brand .roxan-brand-light.roxan-brand-compact,[data-theme="light"] .site-nav .roxan-brand-light.roxan-brand-compact{display:block}
.light-theme .roxan-brand .roxan-brand-dark{display:none}
.light-theme .roxan-brand .roxan-brand-light.roxan-brand-full{display:block}
.light-theme .navbar-brand .roxan-brand-light.roxan-brand-full{display:none}
.light-theme .navbar-brand .roxan-brand-light.roxan-brand-compact{display:block}
.roxan-footer-brand .roxan-brand{width:220px}
@media(max-width:600px){.navbar-brand .roxan-brand,.site-nav .roxan-brand{width:112px}}

.roxan-page-brand{display:flex;justify-content:center;margin:24px auto;text-decoration:none;position:relative;z-index:1}
.roxan-page-brand .roxan-brand{width:220px}
.auth-header .roxan-page-brand{margin:0 auto 18px}
.auth-header .roxan-page-brand .roxan-brand{width:220px;margin:0}
.roxan-page-brand .roxan-brand-dark{display:none}
.roxan-page-brand .roxan-brand-light.roxan-brand-full{display:block}
.auth-body .roxan-page-brand .roxan-brand-dark.roxan-brand-full{display:block}
.auth-body .roxan-page-brand .roxan-brand-light{display:none}
@media(max-width:600px){.roxan-page-brand .roxan-brand,.auth-header .roxan-page-brand .roxan-brand{width:180px}}

.roxan-dark-brand .roxan-brand-light{display:none!important}
.roxan-dark-brand .roxan-brand-dark.roxan-brand-full{display:block}



/* Shared stylesheet: site.css */
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--rx-info);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


/* =====================================================================================
   RoxanAI design tokens
   ---------------------------------------------------------------------------------------
   The ONLY place first-party colours, type, radii, shadows and layout constants get a value.
   Light is the default. <html data-theme="dark"> (admin panel and operator desk toggles)
   switches the same names to their dark values; marketing and auth pages are light only.

   Rules for every other file under Styles/:
     - use var(--rx-*) — never a literal colour, and never give a token a new value;
     - a component may set its own local custom property (e.g. .kpi { --accent: var(--rx-success) }),
       but only from tokens;
     - the legacy names at the bottom exist so older page styles keep working; new code uses --rx-*.
   ===================================================================================== */

:root {
    color-scheme: light;

    /* Type */
    --rx-font: 'Vazirmatn', Tahoma, sans-serif;
    --rx-font-mono: 'Cascadia Code', 'Fira Code', Consolas, monospace;

    /* Canvas and surfaces */
    --rx-page: #f5f2eb;
    --rx-page-alt: #f0ece4;
    --rx-surface: #fffdf8;
    --rx-surface-rgb: 255, 253, 248;
    --rx-surface-2: #f8f5ef;
    --rx-surface-3: #eeeae1;
    --rx-input: #fffdf8;
    --rx-hover: rgba(15, 118, 110, .07);
    --rx-overlay: rgba(32, 43, 50, .45);

    /* Text */
    --rx-ink: #202b32;
    --rx-ink-soft: #35434a;
    --rx-muted: #68747a;
    --rx-faint: #899196;
    --rx-on-brand: #ffffff;

    /* Lines */
    --rx-line: #ded8cd;
    --rx-line-strong: #cfc7bb;
    --rx-line-input: #d7d0c5;

    /* Brand: --rx-brand fills (buttons, active states), --rx-accent is accent text and icons */
    --rx-brand: #0f766e;
    --rx-brand-hover: #0b5d56;
    --rx-brand-rgb: 15, 118, 110;
    --rx-brand-bright: #2dd4bf;
    --rx-brand-soft: #e5f2ee;
    --rx-brand-ink: #115e59;
    --rx-brand-ring: rgba(15, 118, 110, .22);
    --rx-accent: #0f766e;
    --rx-accent-rgb: 15, 118, 110;

    /* Status */
    --rx-success: #12805c;
    --rx-success-rgb: 18, 128, 92;
    --rx-success-soft: rgba(18, 128, 92, .10);
    --rx-warning: #b45309;
    --rx-warning-rgb: 180, 83, 9;
    --rx-warning-soft: rgba(180, 83, 9, .10);
    --rx-danger: #b42318;
    --rx-danger-rgb: 180, 35, 24;
    --rx-danger-soft: rgba(180, 35, 24, .09);
    --rx-info: #2b6c8f;
    --rx-info-rgb: 43, 108, 143;
    --rx-info-soft: rgba(43, 108, 143, .10);
    /* Solid status fills behind white text — same in both themes so the contrast holds */
    --rx-success-fill: #15803d;
    --rx-warning-fill: #b45309;
    --rx-danger-fill: #c53030;
    --rx-info-fill: #2b6c8f;

    /* Neutral tint: rgba(var(--rx-contrast-rgb), a) is a faint wash/hairline that is dark on
       the light theme and light on the dark theme (replaces rgba(255,255,255,a) from dark-only designs). */
    --rx-contrast-rgb: 32, 43, 50;

    /* Shape and depth */
    --rx-radius-sm: 4px;
    --rx-radius-control: 6px;
    --rx-radius-md: 8px;
    --rx-radius-panel: 10px;
    --rx-radius-pill: 999px;
    --rx-shadow-sm: 0 1px 2px rgba(32, 43, 50, .06);
    --rx-shadow-panel: 0 6px 22px rgba(32, 43, 50, .055);
    --rx-shadow-pop: 0 16px 40px rgba(32, 43, 50, .14);
    --rx-focus-ring: 0 0 0 3px var(--rx-brand-ring);

    /* Layout */
    --rx-sidebar-width: 240px;
    --rx-navbar-height: 70px;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --rx-page: #202629;
    --rx-page-alt: #262d31;
    --rx-surface: #2e363a;
    --rx-surface-rgb: 46, 54, 58;
    --rx-surface-2: #374044;
    --rx-surface-3: #40494d;
    --rx-input: #262d31;
    --rx-hover: rgba(45, 212, 191, .10);
    --rx-overlay: rgba(0, 0, 0, .55);

    --rx-ink: #edf2ef;
    --rx-ink-soft: #c2cbc7;
    --rx-muted: #96a29d;
    --rx-faint: #7b8983;

    --rx-line: rgba(255, 255, 255, .08);
    --rx-line-strong: rgba(255, 255, 255, .14);
    --rx-line-input: #475156;

    --rx-brand-soft: rgba(45, 212, 191, .14);
    --rx-brand-ink: #5eead4;
    --rx-brand-ring: rgba(45, 212, 191, .30);
    --rx-accent: #2dd4bf;
    --rx-accent-rgb: 45, 212, 191;

    --rx-success: #34d399;
    --rx-success-rgb: 52, 211, 153;
    --rx-success-soft: rgba(52, 211, 153, .14);
    --rx-warning: #fbbf24;
    --rx-warning-rgb: 251, 191, 36;
    --rx-warning-soft: rgba(251, 191, 36, .14);
    --rx-danger: #f87171;
    --rx-danger-rgb: 248, 113, 113;
    --rx-danger-soft: rgba(248, 113, 113, .14);
    --rx-info: #7cc4e4;
    --rx-info-rgb: 124, 196, 228;
    --rx-info-soft: rgba(124, 196, 228, .14);

    --rx-contrast-rgb: 255, 255, 255;

    --rx-shadow-sm: 0 1px 2px rgba(0, 0, 0, .25);
    --rx-shadow-panel: 0 8px 24px rgba(0, 0, 0, .16);
    --rx-shadow-pop: 0 16px 40px rgba(0, 0, 0, .35);
}

/* Customer workspace: one fixed light palette tuned to the public site's identity.
   It intentionally overrides global dark preferences and has no user-selectable palette. */
:root:is(.customer-panel-theme, .operator-kit-theme) {
    color-scheme: light;
    --rx-page: #fbfcfb;
    --rx-page-alt: #f0f5f3;
    --rx-surface: #ffffff;
    --rx-surface-rgb: 255, 255, 255;
    --rx-surface-2: #f0f5f3;
    --rx-surface-3: #e8f1ee;
    --rx-input: #ffffff;
    --rx-hover: rgba(15, 118, 110, .06);
    --rx-ink: #0b1a20;
    --rx-ink-soft: #38505a;
    --rx-muted: #667c83;
    --rx-faint: #82969c;
    --rx-line: #dbe6e3;
    --rx-line-strong: #c7d8d4;
    --rx-line-input: #cbdad6;
    --rx-brand: #0f766e;
    --rx-brand-hover: #0b5d56;
    --rx-brand-rgb: 15, 118, 110;
    --rx-brand-soft: #d9f6f1;
    --rx-brand-ink: #0b5d56;
    --rx-brand-ring: rgba(45, 212, 191, .38);
    --rx-accent: #0f766e;
    --rx-accent-rgb: 15, 118, 110;
    --rx-contrast-rgb: 11, 26, 32;
    --rx-shadow-sm: 0 1px 2px rgba(11, 26, 32, .05), 0 6px 18px -10px rgba(11, 26, 32, .10);
    --rx-shadow-panel: 0 1px 2px rgba(11, 26, 32, .05), 0 12px 32px -8px rgba(11, 26, 32, .12);
    --rx-shadow-pop: 0 16px 40px rgba(11, 26, 32, .16);
}

:root {
    /* Admin panel theme (admin-theme / admin-shell) */
    --theme-page: var(--rx-page);
    --theme-page-alt: var(--rx-page-alt);
    --theme-surface: var(--rx-surface);
    --theme-surface-2: var(--rx-surface-2);
    --theme-surface-3: var(--rx-surface-3);
    --theme-text: var(--rx-ink);
    --theme-text-2: var(--rx-ink-soft);
    --theme-muted: var(--rx-muted);
    --theme-faint: var(--rx-faint);
    --theme-border: var(--rx-line-strong);
    --theme-border-soft: var(--rx-line);
    --theme-input: var(--rx-input);
    --theme-hover: var(--rx-hover);
    --theme-shadow: var(--rx-shadow-panel);
    --theme-accent: var(--rx-accent);
    --theme-accent-rgb: var(--rx-accent-rgb);
    --theme-accent-strong: var(--rx-brand);
    --admin-accent: var(--rx-accent);
    --admin-accent-rgb: var(--rx-accent-rgb);
    --admin-accent-strong: var(--rx-brand);
    --admin-dark-1: var(--rx-page);
    --admin-dark-2: var(--rx-page-alt);
    --admin-dark-3: var(--rx-surface);
    --admin-dark-3-rgb: var(--rx-surface-rgb);
    --admin-light-1: var(--rx-page);
    --admin-light-2: var(--rx-page-alt);
    --admin-shadow: var(--rx-shadow-panel);
    --admin-shadow-lg: var(--rx-shadow-pop);
    --body-bg: var(--rx-page);
    --sidebar-bg: var(--rx-surface);
    --sidebar-border: var(--rx-line);
    --sidebar-width: var(--rx-sidebar-width);
    --navbar-bg: var(--rx-surface);
    --navbar-border: var(--rx-line);
    --navbar-height: var(--rx-navbar-height);
    --footer-bg: var(--rx-page);
    --panel-bg: var(--rx-surface);
    --panel-bg-rgb: var(--rx-surface-rgb);
    --card-bg: var(--rx-surface);
    --card-border: var(--rx-line);
    --input-bg: var(--rx-input);
    --input-border: var(--rx-line-input);
    --input-text: var(--rx-ink);
    --text-primary: var(--rx-ink);
    --text-secondary: var(--rx-ink-soft);
    --text-muted: var(--rx-muted);
    --accent: var(--rx-accent);
    --accent-color: var(--rx-accent);
    --accent-light: var(--rx-brand-bright);
    --primary: var(--rx-brand);
    --primary-color: var(--rx-brand);
    --primary-dark: var(--rx-brand-hover);
    --primary-light: var(--rx-brand-bright);
    --secondary: var(--rx-brand-ink);
    --secondary-color: var(--rx-brand-ink);

    /* Operator desk */
    --bg: var(--rx-page);
    --bg-2: var(--rx-page-alt);
    --surface: var(--rx-surface);
    --surface-2: var(--rx-surface-2);
    --surface-hover: var(--rx-surface-3);
    --border: var(--rx-line);
    --border-strong: var(--rx-line-strong);
    --text: var(--rx-ink);
    --text-2: var(--rx-ink-soft);
    --text-3: var(--rx-muted);
    --brand: var(--rx-brand);
    --brand-2: var(--rx-accent);
    --brand-soft: var(--rx-brand-soft);
    --brand-ring: var(--rx-brand-ring);
    --op-bubble: var(--rx-brand);
    --radius: var(--rx-radius-md);
    --radius-lg: var(--rx-radius-panel);
    --shadow-sm: var(--rx-shadow-sm);
    --shadow-lg: var(--rx-shadow-pop);
    --ok: var(--rx-success);
    --ok-soft: var(--rx-success-soft);
    --warn: var(--rx-warning);
    --warn-soft: var(--rx-warning-soft);
    --danger-soft: var(--rx-danger-soft);
    --info: var(--rx-info);
    --info-soft: var(--rx-info-soft);

    /* Marketing and auth pages */
    --indigo: var(--rx-brand);
    --indigo-dark: var(--rx-brand-hover);
    --indigo-light: var(--rx-brand-bright);
    --violet: var(--rx-brand-ink);
    --pink: var(--rx-brand-bright);
    --cyan: var(--rx-info);
    --emerald: var(--rx-success);
    --amber: var(--rx-warning);
    --red: var(--rx-danger);
    --text-dark: var(--rx-ink);
    --text-light: var(--rx-muted);
    --success: var(--rx-success);
    --success-dark: var(--rx-success);
    --danger: var(--rx-danger);
    --danger-dark: var(--rx-danger);
    --warning: var(--rx-warning);
}
/* Stylesheet: admin.css — body.admin-body */html[data-admin-palette] body.admin-body .admin-navbar,html[data-admin-palette] body.admin-body .admin-sidebar-permanent{ border-color: rgba(var(--admin-accent-rgb), 0.18) !important; }html[data-admin-palette] body.admin-body .sidebar-nav .nav-link.active,html[data-admin-palette] body.admin-body .sidebar-bot-overview.active,html[data-admin-palette] body.admin-body .sidebar-bot-group > summary.active,html[data-admin-palette] body.admin-body .sidebar-bot-submenu a.active{ color: var(--admin-accent) !important; background: rgba(var(--admin-accent-rgb), 0.11) !important; }html[data-admin-palette] body.admin-body .sidebar-nav .nav-link.active i,html[data-admin-palette] body.admin-body .sidebar-bot-overview.active i,html[data-admin-palette] body.admin-body .sidebar-bot-context-label i,html[data-admin-palette] body.admin-body .sidebar-bot-submenu a.active i{ color: var(--admin-accent) !important; }html[data-admin-palette] body.admin-body .primary-sidebar-toggle{ background: var(--admin-dark-3); border-color: rgba(var(--admin-accent-rgb), .22); color: var(--admin-accent); }html[data-admin-palette] body.admin-body .primary-sidebar-toggle:hover{ background: color-mix(in srgb, var(--admin-dark-3) 82%, var(--admin-accent)); border-color: rgba(var(--admin-accent-rgb), .5); color: var(--rx-ink); }html.light-theme[data-admin-palette] body.admin-body .primary-sidebar-toggle{ background: var(--admin-light-1); color: var(--admin-accent-strong); }html.light-theme[data-admin-palette] body.admin-body .primary-sidebar-toggle:hover{ background: var(--admin-light-2); color: var(--admin-accent-strong); }html[data-admin-palette] body.admin-body .btn-primary{ background-color: var(--admin-accent-strong) !important; border-color: var(--admin-accent-strong) !important; }html[data-admin-palette] body.admin-body a:focus-visible,html[data-admin-palette] body.admin-body button:focus-visible,html[data-admin-palette] body.admin-body input:focus-visible,html[data-admin-palette] body.admin-body select:focus-visible{ outline-color: var(--admin-accent) !important; }html.light-theme[data-admin-palette] body.admin-body{
    background: linear-gradient(135deg, var(--rx-surface) 0%, var(--admin-light-1) 38%, var(--admin-light-2) 100%) !important;
}html.light-theme[data-admin-palette] body.admin-body .admin-navbar,html.light-theme[data-admin-palette] body.admin-body .admin-sidebar-permanent{
    background: linear-gradient(180deg, var(--rx-surface), var(--admin-light-1)) !important;
}body.admin-body /* Theme Toggle Button */
.theme-toggle-btn{
    background: rgba(var(--rx-contrast-rgb), 0.1);
    border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}body.admin-body .theme-toggle-btn:hover{
    background: rgba(var(--rx-contrast-rgb), 0.2);
    transform: scale(1.05);
}body.admin-body .theme-toggle-btn i{
    font-size: 1.2rem;
    transition: all 0.3s ease;
}body.admin-body .theme-icon-light{
    color: var(--rx-warning);
    display: none;
}body.admin-body .theme-icon-dark{
    color: var(--rx-accent);
    display: block;
}body.admin-body /* Light Theme - Show sun, hide moon */
.light-theme .theme-icon-light{
    display: block;
}:is(html.light-theme, body.admin-body.light-theme) .theme-icon-dark{
    display: none;
}:is(html.light-theme, body.admin-body.light-theme) .theme-toggle-btn{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.12), rgba(var(--rx-accent-rgb), 0.08));
    border-color: rgba(var(--rx-accent-rgb), 0.25);
    box-shadow: 0 2px 8px rgba(var(--rx-accent-rgb), 0.15);
}:is(html.light-theme, body.admin-body.light-theme) .theme-toggle-btn:hover{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.12));
    box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.2);
}body.admin-body /* ===================================
   Light Theme Styles - Beautiful Modern Design
   =================================== */

.light-theme.admin-body{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        var(--rx-brand-bright) 25%,
        #fce7f3 50%,
        #e0f2fe 75%,
        var(--rx-surface) 100%);
    background-attachment: fixed;
}body.admin-body /* Animated gradient orbs for light theme */
.light-theme .admin-wrapper::before{
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(var(--rx-accent-rgb), 0.08) 0%, transparent 50%);
    animation: css03acb359d7-float-light 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}:is(html.light-theme, body.admin-body.light-theme) .admin-wrapper::after{
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(var(--rx-accent-rgb), 0.06) 0%, transparent 50%);
    animation: css03acb359d7-float-light 20s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes css03acb359d7-float-light {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-10deg); }
}body.admin-body /* Old light theme navbar/sidebar styles removed - see updated styles at bottom of file */

.light-theme .admin-footer{
    background: linear-gradient(135deg, var(--rx-surface) 0%, rgba(241, 245, 249, 0.95) 100%);
    border-top-color: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .admin-footer small{
    color: var(--rx-muted);
}body.admin-body /* Light Theme - Forms */
.light-theme .form-control{
    color: var(--rx-ink) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-control::placeholder{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-control:focus{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-select{
    color: var(--rx-ink) !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
}body.admin-body /* Light Theme - Dropdown Menu */
.light-theme .dropdown-menu{
    background: var(--rx-surface);
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1);
    box-shadow: 0 8px 24px rgba(var(--rx-accent-rgb), 0.15);
}:is(html.light-theme, body.admin-body.light-theme) .dropdown-item{
    color: var(--rx-ink-soft);
}:is(html.light-theme, body.admin-body.light-theme) .dropdown-item:hover{
    background: rgba(var(--rx-accent-rgb), 0.08);
    color: var(--rx-accent);
}body.admin-body /* Light Theme - Scrollbar */
.light-theme .admin-sidebar-permanent::-webkit-scrollbar-track{
    background: rgba(var(--rx-accent-rgb), 0.05);
}:is(html.light-theme, body.admin-body.light-theme) .admin-sidebar-permanent::-webkit-scrollbar-thumb{
    background: rgba(var(--rx-accent-rgb), 0.2);
}:is(html.light-theme, body.admin-body.light-theme) .admin-sidebar-permanent::-webkit-scrollbar-thumb:hover{
    background: rgba(var(--rx-accent-rgb), 0.3);
}body.admin-body /* ===================================
   Default Dark Theme Styles
   =================================== */

*{
    font-family: var(--rx-font) !important;
}body.admin-body /* Global Form Control Dark Theme */
.form-control{
    color: var(--rx-ink) !important;
}body.admin-body .form-control::placeholder{
    color: var(--rx-muted) !important;
}body.admin-body .form-select{
    color: var(--rx-ink) !important;
}body.admin-body .admin-body{
    background: var(--body-bg);
    font-family: var(--rx-font);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
}body.admin-body /* Top Navbar - Dark Glassmorphism */
.admin-navbar{
    height: var(--navbar-height);
    background: var(--navbar-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    z-index: 1030;
}body.admin-body .admin-navbar .navbar-brand{
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}body.admin-body .admin-logo-mark{
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}body.admin-body .admin-logo-mark i{
    font-size: 1.05rem;
    color: var(--rx-ink);
    filter: drop-shadow(0 4px 8px rgba(45, 212, 191, 0.25));
}body.admin-body .admin-navbar .nav-link{
    color: var(--rx-ink) !important;
    transition: all 0.3s;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
}body.admin-body .admin-navbar .nav-link:hover{
    color: var(--rx-accent) !important;
    background: rgba(var(--rx-accent-rgb), 0.1);
}body.admin-body /* Layout Wrapper */
.admin-wrapper{
    display: flex;
    margin-top: var(--navbar-height);
    min-height: calc(100vh - var(--navbar-height));
}body.admin-body /* Sidebar - Dark Glassmorphism */
.admin-sidebar-permanent{
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--sidebar-border);
    position: fixed;
    top: var(--navbar-height);
    bottom: 0;
    right: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1020;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
}body.admin-body .primary-sidebar-toggle{
    position: fixed;
    z-index: 1030;
    top: calc(var(--navbar-height) + 14px);
    right: calc(var(--sidebar-width) - 15px);
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.22);
    border-radius: 50%;
    background: #123234;
    color: #72cfc3;
    cursor: pointer;
    box-shadow:0 5px 16px rgba(2,15,19,.32);
    transition: background .16s ease, color .16s ease, border-color .16s ease, right .4s cubic-bezier(0.4, 0, 0.2, 1);
}body.admin-body .primary-sidebar-toggle:hover{ background:#174244; border-color:rgba(var(--rx-accent-rgb), 0.5); color:var(--rx-accent); transform:scale(1.05); }body.admin-body .primary-sidebar-toggle:focus-visible{ outline:2px solid var(--rx-accent); outline-offset:2px; }:is(html.light-theme, body.admin-body.light-theme) .primary-sidebar-toggle{ background:#f2faf8; color:var(--rx-accent); box-shadow:0 5px 14px rgba(15,71,66,.16); }:is(html.light-theme, body.admin-body.light-theme) .primary-sidebar-toggle:hover{ background:#e2f4f0; color:var(--rx-accent); }

@media (min-width: 992px) {body.admin-body .admin-wrapper.has-chatbot-context .primary-sidebar-toggle{ display:flex; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent{ width:68px; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .primary-sidebar-toggle{ right:53px; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-label,body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-heading{ display:none; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav{ padding-top:.35rem; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-item{ padding-inline:.45rem; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3{ padding-top:.25rem !important; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3::before{ margin:.3rem .25rem; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-link{ justify-content:center; min-height:42px; padding:.55rem; gap:0; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-link i{ min-width:0; font-size:1rem; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-sidebar-permanent .sidebar-nav .nav-link.active::after{ left:auto; right:0; border-radius:2px 0 0 2px; }
}body.admin-body /* Custom Scrollbar for Sidebar */
.admin-sidebar-permanent::-webkit-scrollbar{
    width: 6px;
}body.admin-body .admin-sidebar-permanent::-webkit-scrollbar-track{
    background: rgba(var(--rx-contrast-rgb), 0.05);
}body.admin-body .admin-sidebar-permanent::-webkit-scrollbar-thumb{
    background: rgba(var(--rx-accent-rgb), 0.2);
    border-radius: 3px;
}body.admin-body .admin-sidebar-permanent::-webkit-scrollbar-thumb:hover{
    background: rgba(var(--rx-accent-rgb), 0.35);
}body.admin-body /* ============================================================
   SIDEBAR — Complete Redesign
   ============================================================ */

.sidebar-nav{
    padding: 0.75rem 0 2rem;
}body.admin-body .sidebar-nav > ul{
    padding: 0;
    margin: 0;
    list-style: none;
}body.admin-body /* ── Regular nav item rows ── */
.sidebar-nav .nav-item{
    padding: 0 0.55rem;
    margin-bottom: 1px;
}body.admin-body /* ── Section separator rows (li.mt-3 wraps the h6 heading) ── */
.sidebar-nav .nav-item.mt-3{
    padding: 0.6rem 0 0.2rem !important;
    margin-top: 0 !important;
    position: relative;
}body.admin-body /* thin rule above every group divider */
.sidebar-nav .nav-item.mt-3::before{
    content: '';
    display: block;
    height: 1px;
    background: rgba(var(--rx-accent-rgb), 0.1);
    margin: 0 0.9rem 0.6rem;
}body.admin-body /* ── Section heading label ── */
.sidebar-heading{
    display: block;
    padding: 0 0.8rem;
    font-size: 0.595rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6faaa5;
    margin: 0;
    text-align: right;
    user-select: none;
}body.admin-body /* ── Nav link base ── */
.sidebar-nav .nav-link{
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.6rem;
    padding: 0.52rem 0.7rem;
    border-radius: 9px;
    color: #b3c9cc;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border: none;
    background: transparent;
    line-height: 1.3;
}body.admin-body /* ── Icon ── */
.sidebar-nav .nav-link i{
    font-size: 0.93rem;
    min-width: 17px;
    text-align: center;
    transition: transform 0.18s ease, color 0.15s ease;
    color: #72a9a4;
    flex-shrink: 0;
}body.admin-body /* ── Label text ── */
.sidebar-label{
    flex: 1;
    text-align: right;
}body.admin-body /* ── Hover ── */
.sidebar-nav .nav-link:hover{
    background: rgba(var(--rx-accent-rgb), 0.08);
    color: var(--rx-accent);
    transform: translateX(-1px);
}body.admin-body .sidebar-nav .nav-link:hover i{
    color: var(--rx-accent);
    transform: scale(1.08);
}body.admin-body /* ── Active ── */
.sidebar-nav .nav-link.active{
    background: rgba(var(--rx-accent-rgb), 0.12);
    color: var(--rx-accent);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(var(--rx-accent-rgb), 0.22);
}body.admin-body .sidebar-nav .nav-link.active i{
    color: var(--rx-accent);
    filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.25));
}body.admin-body .sidebar-nav .nav-link.active::after{
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 3px;
    background: linear-gradient(180deg, var(--rx-brand-bright), var(--rx-brand));
    border-radius: 0 2px 2px 0;
}body.admin-body .sidebar-nav .nav-link:focus-visible{
    outline: 2px solid var(--rx-accent);
    outline-offset: 2px;
}body.admin-body /* Main Content */
.admin-content{
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 0;
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
}body.admin-body .content-wrapper{
    flex: 1;
}body.admin-body .admin-footer{
    margin-top: auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(var(--rx-accent-rgb), 0.12);
    background: var(--footer-bg);
    backdrop-filter: blur(10px);
    text-align: center;
}body.admin-body .admin-footer small{
    color: #8aafad;
    font-weight: 600;
}body.admin-body /* Page Header */
.page-header{
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--rx-line);
}body.admin-body .page-header h1{
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rx-ink);
    margin-bottom: 0.5rem;
    text-align: right;
}body.admin-body .page-header .subtitle{
    color: var(--rx-muted);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: right;
}body.admin-body /* Policies Pages - Modern Hero */
.policies-page .page-header{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 45%, var(--rx-brand) 100%);
    color: var(--rx-on-brand);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(var(--rx-accent-rgb), 0.25);
}body.admin-body .policies-page .page-header h1{
    color: var(--rx-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    margin-bottom: 0.5rem;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}body.admin-body .policies-page .page-header .subtitle{
    color: var(--rx-ink);
}body.admin-body .policies-page .page-header .btn{
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}body.admin-body .policies-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

@media (max-width: 1200px) {body.admin-body .policies-page{
        padding: 1.5rem 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {body.admin-body .policies-page{
        padding: 1.25rem 1rem 2rem;
    }
}body.admin-body /* API Key Page */
.api-key-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

@media (max-width: 1200px) {body.admin-body .api-key-page{
        padding: 1.5rem 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {body.admin-body .api-key-page{
        padding: 1.25rem 1rem 2rem;
    }
}body.admin-body .api-key-page .page-header{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 45%, var(--rx-brand) 100%);
    color: var(--rx-on-brand);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(var(--rx-accent-rgb), 0.25);
}body.admin-body .api-key-page .page-header h1{
    color: var(--rx-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}body.admin-body .api-key-page .page-header .subtitle{
    color: var(--rx-ink);
}body.admin-body .api-key-page .admin-card-header h2{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}body.admin-body /* Requests Page */
.requests-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

@media (max-width: 1200px) {body.admin-body .requests-page{
        padding: 1.5rem 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {body.admin-body .requests-page{
        padding: 1.25rem 1rem 2rem;
    }
}body.admin-body .requests-page .page-header{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 45%, var(--rx-brand) 100%);
    color: var(--rx-on-brand);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(var(--rx-accent-rgb), 0.25);
}body.admin-body .requests-page .page-header h1{
    color: var(--rx-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}body.admin-body .requests-page .page-header .subtitle{
    color: var(--rx-ink);
}body.admin-body .requests-page .admin-card-header h2{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}body.admin-body .requests-filters .form-label{
    font-weight: 700;
}body.admin-body .requests-filters .form-control.ltr-input{
    direction: ltr;
    text-align: left;
}body.admin-body .requests-filters .btn{
    white-space: nowrap;
}body.admin-body /* Requests Details Page */
.requests-details-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

@media (max-width: 1200px) {body.admin-body .requests-details-page{
        padding: 1.5rem 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {body.admin-body .requests-details-page{
        padding: 1.25rem 1rem 2rem;
    }
}body.admin-body .requests-details-page .page-header{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 45%, var(--rx-brand) 100%);
    color: var(--rx-on-brand);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(var(--rx-accent-rgb), 0.25);
    margin-bottom: 1.5rem;
}body.admin-body .requests-details-page .page-header h1{
    color: var(--rx-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}body.admin-body /* Admin Pages (System Management) */
.admin-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

@media (max-width: 1200px) {body.admin-body .admin-page{
        padding: 1.5rem 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {body.admin-body .admin-page{
        padding: 1.25rem 1rem 2rem;
    }
}body.admin-body .admin-page .page-header{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 45%, var(--rx-brand) 100%);
    color: var(--rx-on-brand);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    border-bottom: none;
    box-shadow: 0 12px 32px rgba(var(--rx-accent-rgb), 0.25);
}body.admin-body .admin-page .page-header h1{
    color: var(--rx-ink);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
    margin-bottom: 0.5rem;
}body.admin-body .admin-page .page-header .subtitle{
    color: var(--rx-ink);
}body.admin-body .admin-page .admin-card-header h2{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}body.admin-body .requests-details-card{
    background: var(--rx-surface);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(var(--rx-accent-rgb), 0.12);
    border: 1px solid rgba(var(--rx-accent-rgb), 0.08);
    overflow: hidden;
}body.admin-body .requests-details-body{
    padding: 2rem;
}body.admin-body .request-detail-grid{
    display: grid;
    gap: 1.25rem;
}body.admin-body .request-detail-item{
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--rx-line);
    background: var(--rx-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}body.admin-body .request-detail-label{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--rx-ink-soft);
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
}body.admin-body .request-detail-value{
    color: var(--rx-ink);
    font-weight: 600;
    line-height: 1.8;
    word-break: break-word;
}body.admin-body .request-code-block{
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #2d2d2d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-family: var(--rx-font-mono);
    font-size: 0.92rem;
    line-height: 1.75;
    overflow-x: auto;
    white-space: pre;
    direction: ltr;
    text-align: left;
}body.admin-body .request-code-block code{
    color: inherit;
    font-family: inherit;
}body.admin-body .api-key-input-group .form-control{
    font-family: var(--rx-font-mono);
    font-size: 0.9rem;
}body.admin-body .api-key-input-group .form-control.ltr-input{
    direction: ltr;
    text-align: left;
}body.admin-body .api-key-stats .card{
    border-radius: 16px;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    background: var(--rx-surface);
}body.admin-body .api-key-stats .card-body{
    padding: 1.5rem;
}body.admin-body .api-key-code pre{
    direction: ltr;
    text-align: left;
    border-radius: 16px;
}body.admin-body .api-code-block{
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid #2d2d2d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    font-family: var(--rx-font-mono);
    font-size: 0.92rem;
    line-height: 1.75;
    overflow-x: auto;
    white-space: pre;
}body.admin-body .api-code-block code{
    color: inherit;
    font-family: inherit;
}body.admin-body .policies-page .admin-card-header h2{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
    width: 100%;
}body.admin-body .policy-details-card{
    background: linear-gradient(180deg, var(--rx-surface) 0%, var(--rx-surface) 100%);
    border-radius: 22px;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1);
    box-shadow: 0 18px 50px rgba(var(--rx-accent-rgb), 0.12);
    overflow: hidden;
}body.admin-body .policy-details-header{
    padding: 1.5rem 2rem;
    background: rgba(var(--rx-accent-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.12);
}body.admin-body .policy-details-title{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--rx-ink);
    flex-direction: row-reverse;
}body.admin-body .policy-details-body{
    padding: 2rem;
}body.admin-body .policy-detail-grid{
    display: grid;
    gap: 1.5rem;
}body.admin-body .policy-detail-item{
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: var(--rx-surface);
    border: 1px solid var(--rx-line);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}body.admin-body .policy-detail-label{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--rx-ink-soft);
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
}body.admin-body .policy-detail-value{
    color: var(--rx-ink);
    font-weight: 600;
    line-height: 1.8;
}body.admin-body .ltr-input{
    direction: ltr;
    text-align: left;
}body.admin-body /* Cards */
.admin-card{
    background: var(--rx-surface);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}body.admin-body .admin-card-header{
    padding: 1.75rem 2rem;
    border-bottom: 1px solid var(--rx-line);
    background-color: var(--rx-surface);
    border-radius: 20px 20px 0 0;
}body.admin-body .admin-card-header h2{
    font-size: 1.375rem;
    font-weight: 800;
    margin: 0;
    color: var(--rx-ink);
    text-align: right;
}body.admin-body .admin-card-body{
    padding: 2rem;
}body.admin-body /* Tables */
.admin-table{
    margin-bottom: 0;
    direction: rtl;
    border-collapse: separate;
    border-spacing: 0;
}body.admin-body .admin-table thead th{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15) 0%, rgba(var(--rx-accent-rgb), 0.12) 100%);
    border-bottom: 2px solid rgba(var(--rx-accent-rgb), 0.25);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--rx-on-brand);
    padding: 1.25rem 1.5rem;
    text-align: right;
    white-space: nowrap;
}body.admin-body .admin-table thead th:first-child{
    border-radius: 0 12px 0 0;
}body.admin-body .admin-table thead th:last-child{
    border-radius: 12px 0 0 0;
}body.admin-body .admin-table tbody td{
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    text-align: right;
    color: var(--rx-ink-soft);
    font-weight: 600;
}body.admin-body .admin-table tbody tr{
    transition: all 0.2s;
}body.admin-body .admin-table tbody tr:hover{
    background-color: rgba(var(--rx-accent-rgb), 0.08);
    box-shadow: 0 10px 24px rgba(var(--rx-accent-rgb), 0.12);
    transform: translateY(-2px);
}body.admin-body /* Badges */
.status-badge{
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}body.admin-body /* Buttons */
.btn{
    font-weight: 700;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}body.admin-body .btn-primary{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.3);
}body.admin-body .btn-primary:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--rx-accent-rgb), 0.4);
}body.admin-body .btn-icon{
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}body.admin-body .action-buttons{
    display: flex;
    gap: 0.75rem;
}body.admin-body /* Forms */
.admin-form .form-label{
    font-weight: 800;
    color: var(--rx-ink);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: right;
}body.admin-body .admin-form .form-control,body.admin-body .admin-form .form-select{
    border-radius: 12px;
    border: 2px solid var(--rx-line);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    direction: rtl;
    text-align: right;
}body.admin-body .admin-form .form-control:focus,body.admin-body .admin-form .form-select:focus{
    border-color: var(--rx-accent);
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.1);
}body.admin-body .admin-form .form-text{
    font-size: 0.875rem;
    color: var(--rx-muted);
    font-weight: 600;
    text-align: right;
}body.admin-body /* Toggle Switch */
.form-switch .form-check-input{
    width: 3.5rem;
    height: 1.75rem;
    cursor: pointer;
    border-radius: 50px;
}body.admin-body .form-switch .form-check-input:checked{
    background-color: var(--rx-success-fill);
    border-color: var(--rx-success);
}body.admin-body /* Empty State */
.empty-state{
    text-align: center;
    padding: 4rem 2rem;
}body.admin-body .empty-state i{
    font-size: 5rem;
    color: var(--rx-ink-soft);
    margin-bottom: 1.5rem;
}body.admin-body .empty-state h3{
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rx-ink);
    margin-bottom: 0.75rem;
}body.admin-body .empty-state p{
    color: var(--rx-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}body.admin-body /* Responsive - Mobile Sidebar */
@media (max-width: 992px){

    .admin-sidebar-permanent {
        transform: translateX(100%);
        box-shadow: none;
    }

    .admin-sidebar-permanent.show {
        transform: translateX(0);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    }

    .admin-content {
        margin-right: 0;
    }

    .admin-navbar {
        height: 60px;
    }

    .sidebar-nav {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {body.admin-body .admin-content{
        padding: 0;
    }body.admin-body .page-header h1{
        font-size: 1.875rem;
    }body.admin-body .admin-card{
        border-radius: 16px;
    }body.admin-body .admin-card-header,body.admin-body .admin-card-body{
        padding: 1.5rem;
    }body.admin-body .admin-table thead th,body.admin-body .admin-table tbody td{
        padding: 1rem;
    }
}body.admin-body /* Animations */
@keyframes css03acb359d7-slideInRight{
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes css03acb359d7-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}body.admin-body .admin-card{
    animation: css03acb359d7-fadeIn 0.5s ease-out;
}body.admin-body /* Code Tag Styling */
code.policy-key{
    background-color: #f1f3f5;
    color: #e83e8c;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: var(--rx-font-mono);
    font-weight: 600;
    direction: ltr;
    text-align: left;
    display: inline-block;
}body.admin-body /* Keywords Display */
.keywords-list{
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}body.admin-body .keyword-tag{
    background-color: #e7f1ff;
    color: #0a58ca;
    padding: 0.25rem 0.625rem;
    border-radius: 0.25rem;
    font-size: 0.8125rem;
    border: 1px solid #b6d4fe;
}body.admin-body /* Animations */
@keyframes css03acb359d7-fadeIn{
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}body.admin-body .fade-in{
    animation: css03acb359d7-fadeIn 0.3s ease;
}html:where(:has(> body.admin-body)){
    scroll-behavior: smooth;
}body.admin-body /* Modern Card Hover Effects */
.admin-card{
    transition: all 0.3s ease;
}body.admin-body .admin-card:hover{
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}body.admin-body /* Enhanced Buttons */
.btn{
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 10px;
}body.admin-body .btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}body.admin-body .btn-primary{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
    border: none;
}body.admin-body .btn-primary:hover{
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}body.admin-body /* Loading Spinner */
.spinner-modern{
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--rx-contrast-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--rx-line);
    animation: css03acb359d7-spin 0.8s linear infinite;
}

@keyframes css03acb359d7-spin {
    to { transform: rotate(360deg); }
}body.admin-body /* Tooltip Enhancements */
.tooltip{
    font-size: 0.875rem;
}body.admin-body /* Progress Bars */
.progress{
    border-radius: 10px;
    overflow: hidden;
    background-color: #f3f4f6;
}body.admin-body .progress-bar{
    background: linear-gradient(90deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
}body.admin-body /* Alert Modern Styling */
.alert{
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}body.admin-body /* Search and Filter Inputs */
.search-box{
    position: relative;
}body.admin-body .search-box input{
    padding-left: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--rx-line);
    transition: all 0.3s ease;
}body.admin-body .search-box input:focus{
    border-color: var(--rx-accent);
    box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.1);
}body.admin-body .search-box i{
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rx-muted);
}body.admin-body /* Tab Navigation Modern */
.nav-tabs{
    border-bottom: 2px solid var(--rx-line);
}body.admin-body .nav-tabs .nav-link{
    border: none;
    color: var(--rx-muted);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}body.admin-body .nav-tabs .nav-link:hover{
    color: var(--rx-accent);
    border-bottom: 2px solid var(--rx-accent);
}body.admin-body .nav-tabs .nav-link.active{
    color: var(--rx-accent);
    background: none;
    border-bottom: 2px solid var(--rx-accent);
}body.admin-body /* Modal Enhancements */
.modal-content{
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}body.admin-body .modal-header{
    border-bottom: 1px solid var(--rx-line);
    padding: 1.5rem 2rem;
}body.admin-body .modal-body{
    padding: 2rem;
}body.admin-body .modal-footer{
    border-top: 1px solid var(--rx-line);
    padding: 1.5rem 2rem;
}body.admin-body /* Dropdown Menus */
.dropdown-menu{
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}body.admin-body .dropdown-item{
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}body.admin-body .dropdown-item:hover{
    background: #f3f4f6;
    color: var(--rx-accent);
}body.admin-body /* Scrollbar Styling */
::-webkit-scrollbar{
    width: 10px;
    height: 10px;
}body.admin-body ::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 10px;
}body.admin-body ::-webkit-scrollbar-thumb{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
    border-radius: 10px;
}body.admin-body ::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
}body.admin-body /* Utility Classes */
.text-gradient{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}body.admin-body .shadow-modern{
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}body.admin-body .shadow-modern-lg{
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}body.admin-body .rounded-modern{
    border-radius: 20px !important;
}body.admin-body .rounded-modern-sm{
    border-radius: 12px !important;
}body.admin-body /* Hover Scale Effect */
.hover-scale{
    transition: transform 0.3s ease;
}body.admin-body .hover-scale:hover{
    transform: scale(1.05);
}body.admin-body /* Icon Buttons */
.icon-btn{
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--rx-line);
    background: var(--rx-surface);
    color: var(--rx-muted);
}body.admin-body .icon-btn:hover{
    background: var(--rx-brand);
    color: var(--rx-on-brand);
    border-color: var(--rx-accent);
    transform: translateY(-2px);
}body.admin-body /* Pulse Animation for Notifications */
@keyframes css03acb359d7-pulse-notification{
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}body.admin-body .pulse{
    animation: css03acb359d7-pulse-notification 2s infinite;
}body.admin-body /* Success, Warning, Error States */
.state-success{
    background: linear-gradient(135deg, #d1fae5 0%, var(--rx-success-fill) 100%);
    color: var(--rx-success);
}body.admin-body .state-warning{
    background: linear-gradient(135deg, var(--rx-warning-fill) 0%, var(--rx-warning-fill) 100%);
    color: var(--rx-warning);
}body.admin-body .state-error{
    background: linear-gradient(135deg, #fee2e2 0%, var(--rx-danger-fill) 100%);
    color: var(--rx-danger);
}body.admin-body .state-info{
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--rx-info);
}body.admin-body /* Print Styles */
@media print{
    .admin-navbar,
    .admin-sidebar,
    .btn,
    .action-buttons {
        display: none !important;
    }

    .admin-content {
        margin-left: 0;
        padding: 0;
    }

    .admin-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}body.admin-body /* ===================================
   Light Theme - Comprehensive Overrides
   =================================== */

/* All page wrappers and backgrounds */
.light-theme .dashboard-wrapper,:is(html.light-theme, body.admin-body.light-theme) .simulator-wrapper,:is(html.light-theme, body.admin-body.light-theme) .policies-wrapper,:is(html.light-theme, body.admin-body.light-theme) .apikey-wrapper,:is(html.light-theme, body.admin-body.light-theme) .create-wrapper,:is(html.light-theme, body.admin-body.light-theme) .edit-wrapper,:is(html.light-theme, body.admin-body.light-theme) .requests-wrapper,:is(html.light-theme, body.admin-body.light-theme) .support-wrapper,:is(html.light-theme, body.admin-body.light-theme) .page-wrapper,:is(html.light-theme, body.admin-body.light-theme) .details-wrapper{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        var(--rx-brand-bright) 25%,
        #fce7f3 50%,
        #e0f2fe 75%,
        var(--rx-surface) 100%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .simulator-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .policies-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .apikey-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .create-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .edit-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .page-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .details-wrapper::before{
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--rx-accent-rgb), 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(var(--rx-accent-rgb), 0.06) 0%, transparent 50%) !important;
    opacity: 1 !important;
}body.admin-body /* All Glass Cards - Beautiful glassmorphism */
.light-theme .glass-card,:is(html.light-theme, body.admin-body.light-theme) .simulator-card,:is(html.light-theme, body.admin-body.light-theme) .admin-card{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        var(--rx-surface) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 32px rgba(var(--rx-accent-rgb), 0.1),
                0 4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}:is(html.light-theme, body.admin-body.light-theme) .glass-card:hover,:is(html.light-theme, body.admin-body.light-theme) .simulator-card:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.3) !important;
    box-shadow: 0 12px 40px rgba(var(--rx-accent-rgb), 0.12) !important;
}body.admin-body /* All Headers */
.light-theme .dashboard-header h1,:is(html.light-theme, body.admin-body.light-theme) .header-left h1,:is(html.light-theme, body.admin-body.light-theme) .header-content h1,:is(html.light-theme, body.admin-body.light-theme) .policies-header h1,:is(html.light-theme, body.admin-body.light-theme) .hero-section h1,:is(html.light-theme, body.admin-body.light-theme) .create-header h1,:is(html.light-theme, body.admin-body.light-theme) .edit-header h1{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-header h1 i,:is(html.light-theme, body.admin-body.light-theme) .header-left h1 i,:is(html.light-theme, body.admin-body.light-theme) .header-content h1 i,:is(html.light-theme, body.admin-body.light-theme) .hero-section h1 i{
    -webkit-text-fill-color: transparent !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-header p,:is(html.light-theme, body.admin-body.light-theme) .header-left p,:is(html.light-theme, body.admin-body.light-theme) .header-content p,:is(html.light-theme, body.admin-body.light-theme) .policies-header p,:is(html.light-theme, body.admin-body.light-theme) .hero-section p,:is(html.light-theme, body.admin-body.light-theme) .create-header p,:is(html.light-theme, body.admin-body.light-theme) .edit-header p{
    color: var(--rx-muted) !important;
}body.admin-body /* All Card Headers */
.light-theme .card-header,:is(html.light-theme, body.admin-body.light-theme) .card-header-custom,:is(html.light-theme, body.admin-body.light-theme) .card-header-modern{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08) 0%, rgba(var(--rx-accent-rgb), 0.05) 100%) !important;
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-header h2,:is(html.light-theme, body.admin-body.light-theme) .card-header-custom h3,:is(html.light-theme, body.admin-body.light-theme) .card-header-modern h2,:is(html.light-theme, body.admin-body.light-theme) .card-title{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}body.admin-body /* All Stat Cards - Beautiful gradient backgrounds */
.light-theme .stat-card,:is(html.light-theme, body.admin-body.light-theme) .stat-mini{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        rgba(248, 250, 252, 0.95) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 24px rgba(var(--rx-accent-rgb), 0.08),
                0 2px 8px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-card:hover,:is(html.light-theme, body.admin-body.light-theme) .stat-mini:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    box-shadow: 0 12px 40px rgba(var(--rx-accent-rgb), 0.15),
                0 4px 16px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-2px);
}:is(html.light-theme, body.admin-body.light-theme) .stat-value,:is(html.light-theme, body.admin-body.light-theme) .stat-mini-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-label,:is(html.light-theme, body.admin-body.light-theme) .stat-mini-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-trend{
    background: rgba(var(--rx-success-rgb), 0.12) !important;
    color: var(--rx-success) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-progress{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
}body.admin-body /* Chart Info Items */
.light-theme .chart-info-item{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-info-item:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.25) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-info-item h5{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-info-item p{
    color: var(--rx-muted) !important;
}body.admin-body /* Hero Sections - Beautiful gradient */
.light-theme .hero-section{
    background: linear-gradient(135deg,
        rgba(var(--rx-accent-rgb), 0.12) 0%,
        rgba(var(--rx-accent-rgb), 0.08) 30%,
        rgba(var(--rx-accent-rgb), 0.06) 60%,
        rgba(var(--rx-info-rgb), 0.05) 100%) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.15) !important;
    box-shadow: 0 16px 50px rgba(var(--rx-accent-rgb), 0.12),
                0 4px 16px rgba(0, 0, 0, 0.04),
                inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}:is(html.light-theme, body.admin-body.light-theme) .hero-section::before,:is(html.light-theme, body.admin-body.light-theme) .hero-section::after{
    opacity: 0.4 !important;
}body.admin-body /* Simulator Specific */
.light-theme #textInput,:is(html.light-theme, body.admin-body.light-theme) textarea.form-control{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) #textInput:focus,:is(html.light-theme, body.admin-body.light-theme) textarea.form-control:focus{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) #textInput::placeholder,:is(html.light-theme, body.admin-body.light-theme) textarea.form-control::placeholder{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .char-counter{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policies-section{
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-label-custom{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-label-custom svg{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-overlay{
    background: rgba(248, 250, 252, 0.95) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-content{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    box-shadow: 0 25px 80px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-text{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-subtext{
    color: var(--rx-muted) !important;
}body.admin-body /* Results Section */
.light-theme .results-section,:is(html.light-theme, body.admin-body.light-theme) .result-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-header h4,:is(html.light-theme, body.admin-body.light-theme) .results-header h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-content,:is(html.light-theme, body.admin-body.light-theme) .result-text{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* Policy Items/Cards */
.light-theme .policy-item,:is(html.light-theme, body.admin-body.light-theme) .policy-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item:hover,:is(html.light-theme, body.admin-body.light-theme) .policy-card:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.25) !important;
    background: var(--rx-surface) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item h4,:is(html.light-theme, body.admin-body.light-theme) .policy-card h4,:is(html.light-theme, body.admin-body.light-theme) .policy-name{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item p,:is(html.light-theme, body.admin-body.light-theme) .policy-card p,:is(html.light-theme, body.admin-body.light-theme) .policy-description{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-key{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* Checkboxes and Policy Selection */
.light-theme .policy-checkbox-card{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-checkbox-card:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.25) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-checkbox-card.selected{
    border-color: var(--rx-accent) !important;
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-checkbox-card h5,:is(html.light-theme, body.admin-body.light-theme) .policy-checkbox-card h4{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-checkbox-card p{
    color: var(--rx-muted) !important;
}body.admin-body /* Badges */
.light-theme .badge,:is(html.light-theme, body.admin-body.light-theme) .status-badge{
    font-weight: 600 !important;
}:is(html.light-theme, body.admin-body.light-theme) .badge-active,:is(html.light-theme, body.admin-body.light-theme) .badge-success{
    background: rgba(var(--rx-success-rgb), 0.15) !important;
    color: var(--rx-success) !important;
}:is(html.light-theme, body.admin-body.light-theme) .badge-inactive,:is(html.light-theme, body.admin-body.light-theme) .badge-danger{
    background: rgba(var(--rx-danger-rgb), 0.15) !important;
    color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .badge-warning{
    background: rgba(var(--rx-warning-rgb), 0.15) !important;
    color: var(--rx-warning) !important;
}:is(html.light-theme, body.admin-body.light-theme) .badge-info{
    background: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* Tables */
.light-theme table,:is(html.light-theme, body.admin-body.light-theme) .table{
    background: var(--rx-surface) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-table thead th,:is(html.light-theme, body.admin-body.light-theme) thead th{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
    border-bottom: 3px solid var(--rx-accent) !important;
    font-weight: 800;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}:is(html.light-theme, body.admin-body.light-theme) .admin-table thead th:first-child,:is(html.light-theme, body.admin-body.light-theme) thead th:first-child{
    border-radius: 0 12px 0 0 !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-table thead th:last-child,:is(html.light-theme, body.admin-body.light-theme) thead th:last-child{
    border-radius: 12px 0 0 0 !important;
}:is(html.light-theme, body.admin-body.light-theme) thead,:is(html.light-theme, body.admin-body.light-theme) thead tr{
    background: transparent !important;
}:is(html.light-theme, body.admin-body.light-theme) td{
    color: var(--rx-ink-soft) !important;
    border-color: var(--rx-line) !important;
}:is(html.light-theme, body.admin-body.light-theme) tbody tr{
    background: var(--rx-surface) !important;
    transition: all 0.2s ease;
}:is(html.light-theme, body.admin-body.light-theme) tbody tr:nth-child(even){
    background: var(--rx-surface) !important;
}:is(html.light-theme, body.admin-body.light-theme) tbody tr:hover{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
    box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.1);
}body.admin-body /* Empty States */
.light-theme .empty-state,:is(html.light-theme, body.admin-body.light-theme) .no-data{
    background: rgba(255, 255, 255, 0.6) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-state h4,:is(html.light-theme, body.admin-body.light-theme) .empty-state-title{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-state p,:is(html.light-theme, body.admin-body.light-theme) .empty-state-text{
    color: var(--rx-muted) !important;
}body.admin-body /* API Key Card Gradient - Keep as is */
.light-theme .api-key-card{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 50%, var(--rx-brand) 100%) !important;
}body.admin-body /* Info Boxes */
.light-theme .info-box,:is(html.light-theme, body.admin-body.light-theme) .tip-box{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-box h4,:is(html.light-theme, body.admin-body.light-theme) .tip-box h4{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-box p,:is(html.light-theme, body.admin-body.light-theme) .tip-box p{
    color: var(--rx-muted) !important;
}body.admin-body /* Header Badge */
.light-theme .header-badge{
    background: rgba(var(--rx-success-rgb), 0.12) !important;
    border-color: rgba(var(--rx-success-rgb), 0.25) !important;
    color: var(--rx-success) !important;
}body.admin-body /* Action Buttons Row */
.light-theme .action-buttons .btn-outline,:is(html.light-theme, body.admin-body.light-theme) .btn-action{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .action-buttons .btn-outline:hover,:is(html.light-theme, body.admin-body.light-theme) .btn-action:hover{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* Links and Anchors */
/* Only plain text links. Class-styled links are buttons/tabs/chips that set their own colors
   (often white on an accent fill); forcing a color on every anchor turned those unreadable. */
.light-theme a:not([class]){
    color: var(--theme-accent-strong, #0f766e);
}:is(html.light-theme, body.admin-body.light-theme) a:not([class]):hover{
    color: var(--theme-accent, #0d9488);
}:is(html.light-theme, body.admin-body.light-theme) .back-link{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .back-link:hover{
    color: var(--rx-accent) !important;
}body.admin-body /* Card Body */
.light-theme .card-body,:is(html.light-theme, body.admin-body.light-theme) .card-body-custom,:is(html.light-theme, body.admin-body.light-theme) .card-body-modern{
    background: transparent !important;
}body.admin-body /* All Text Colors Override */
.light-theme h1,:is(html.light-theme, body.admin-body.light-theme) h2,:is(html.light-theme, body.admin-body.light-theme) h3,:is(html.light-theme, body.admin-body.light-theme) h4,:is(html.light-theme, body.admin-body.light-theme) h5,:is(html.light-theme, body.admin-body.light-theme) h6{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) p{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) span:not(.badge):not(.status-badge):not(.keyword-tag){
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) label{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .text-muted{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) small{
    color: var(--rx-muted) !important;
}body.admin-body /* Modal/Dialog */
.light-theme .modal-content{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .modal-header{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .modal-title{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .modal-body{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* Alerts */
.light-theme .alert{
    border-radius: 12px !important;
}:is(html.light-theme, body.admin-body.light-theme) .alert-success{
    background: rgba(var(--rx-success-rgb), 0.1) !important;
    border-color: rgba(var(--rx-success-rgb), 0.2) !important;
    color: var(--rx-success) !important;
}:is(html.light-theme, body.admin-body.light-theme) .alert-danger{
    background: rgba(var(--rx-danger-rgb), 0.1) !important;
    border-color: rgba(var(--rx-danger-rgb), 0.2) !important;
    color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .alert-warning{
    background: rgba(var(--rx-warning-rgb), 0.1) !important;
    border-color: rgba(var(--rx-warning-rgb), 0.2) !important;
    color: var(--rx-warning) !important;
}:is(html.light-theme, body.admin-body.light-theme) .alert-info{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* Support Page */
.light-theme .support-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .message-item{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .message-item.admin{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
}body.admin-body /* Requests Page */
.light-theme .request-item{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .request-item:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
}body.admin-body /* Pagination */
.light-theme .pagination .page-link{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .pagination .page-link:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .pagination .page-item.active .page-link{
    background: var(--rx-brand) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-on-brand) !important;
}body.admin-body /* Dropdown */
.light-theme .dropdown-menu{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
    box-shadow: 0 10px 40px rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dropdown-item{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dropdown-item:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dropdown-divider{
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}body.admin-body /* Tips & Tip Items */
.light-theme .tip-item{
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-number{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-content h4{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-content p{
    color: var(--rx-muted) !important;
}body.admin-body /* Form Hints */
.light-theme .form-hint{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-hint i{
    color: var(--rx-accent) !important;
}body.admin-body /* Input Groups */
.light-theme .input-group-text{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-ink-soft) !important;
}body.admin-body /* All white text to dark in light theme */
.light-theme [style*="color: white"],:is(html.light-theme, body.admin-body.light-theme) [style*="color:white"],:is(html.light-theme, body.admin-body.light-theme) [style*="color: #fff"],:is(html.light-theme, body.admin-body.light-theme) [style*="color:#fff"]{
    color: #1e293b !important;
}body.admin-body /* Exceptions: keep white text on gradient background elements */
.light-theme .stat-icon,:is(html.light-theme, body.admin-body.light-theme) .stat-mini-icon,:is(html.light-theme, body.admin-body.light-theme) .chart-info-icon,:is(html.light-theme, body.admin-body.light-theme) .result-icon,:is(html.light-theme, body.admin-body.light-theme) .method-badge{
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* Icon colors */
.light-theme .bi{
    color: inherit;
}:is(html.light-theme, body.admin-body.light-theme) .card-header i,:is(html.light-theme, body.admin-body.light-theme) .card-header-custom i,:is(html.light-theme, body.admin-body.light-theme) .card-title i{
    -webkit-text-fill-color: transparent !important;
}body.admin-body /* ===================================
   Light Theme - Additional Fixes
   =================================== */

/* Policies Page - Create Button */
.light-theme .btn-create{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-create:hover{
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* Delete Page */
.light-theme .delete-wrapper{
    background: linear-gradient(180deg, var(--rx-surface) 0%, var(--rx-surface-3) 50%, var(--rx-surface) 100%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .delete-wrapper::before{
    background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.06), rgba(var(--rx-danger-rgb), 0.03), transparent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-banner{
    background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.08), rgba(var(--rx-danger-rgb), 0.04)) !important;
    border-color: rgba(var(--rx-danger-rgb), 0.25) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-banner-content h3{
    color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-banner-content p{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-detail-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-detail-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-key-badge{
    background: rgba(var(--rx-accent-rgb), 0.12) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .keyword-pill{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
}:is(html.light-theme, body.admin-body.light-theme) .no-keywords{
    color: var(--rx-muted) !important;
}body.admin-body /* API Key Page - Sidebar Cards */
.light-theme .sidebar-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header.warning{
    background: rgba(var(--rx-warning-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header.danger{
    background: rgba(var(--rx-danger-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-body{
    background: transparent !important;
}:is(html.light-theme, body.admin-body.light-theme) .security-list li{
    color: var(--rx-ink-soft) !important;
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .quota-warning{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* API Key Page - Code Block */
.light-theme .code-section h4,:is(html.light-theme, body.admin-body.light-theme) .code-section h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-method{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-url{
    color: var(--rx-info) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-header{
    color: var(--rx-warning) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-value{
    color: var(--rx-info) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-json-key{
    color: var(--rx-success) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-block .code-json-value{
    color: var(--rx-info) !important;
}:is(html.light-theme, body.admin-body.light-theme) .api-key-warning{
    background: rgba(var(--rx-warning-rgb), 0.08) !important;
    border-color: rgba(var(--rx-warning-rgb), 0.15) !important;
    color: var(--rx-warning) !important;
}body.admin-body /* Simulator Page - Analyze Button */
.light-theme .analyze-button{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .analyze-button:hover:not(:disabled){
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* Simulator Page - Results Section */
.light-theme .results-section{
    background: transparent !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
    box-shadow: 0 10px 40px rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-header{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-title h4{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-title p{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-box{
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .violations-section{
    background: rgba(var(--rx-danger-rgb), 0.06) !important;
    border-color: rgba(var(--rx-danger-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .violations-section h5{
    color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .violation-item{
    background: var(--rx-surface) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .confidence-meter{
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .confidence-label{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .confidence-label .percentage{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .confidence-bar-container{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .model-info{
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-muted) !important;
}body.admin-body /* Simulator - Policies Section */
.light-theme .policies-section{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policies-header-left{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policies-header-left svg{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .select-all-btn{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .select-all-btn:hover{
    background: var(--rx-brand) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.25) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-name{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-description{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-badge{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-badge.inactive{
    background: rgba(107, 114, 128, 0.1) !important;
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-toggle-slider{
    background-color: var(--rx-surface-3) !important;
}body.admin-body /* Loading Overlay */
.light-theme .loading-overlay{
    background: rgba(248, 250, 252, 0.95) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-content{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
    box-shadow: 0 25px 80px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-spinner{
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    border-top-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-text{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .loading-subtext{
    color: var(--rx-muted) !important;
}body.admin-body /* Char Counter */
.light-theme .char-counter{
    color: var(--rx-muted) !important;
}body.admin-body /* ============================================
   Simulator - Policy Toggle Switch Light Theme
   ============================================ */
.light-theme .policy-toggle-slider{
    background-color: var(--rx-surface-3) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-toggle input:checked + .policy-toggle-slider{
    background-color: var(--rx-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-toggle-slider:before{
    background-color: var(--rx-surface) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}body.admin-body /* ============================================
   Simulator - Code Examples Section Light Theme
   ============================================ */
.light-theme .code-examples-section{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(var(--rx-accent-rgb), 0.08) !important;
    overflow: hidden !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-examples-header{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.06), rgba(var(--rx-accent-rgb), 0.03)) !important;
    border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
    padding: 1.25rem 1.5rem !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-examples-header h3{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-examples-header h3 span{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-examples-header h3 svg{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tabs{
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
    border-radius: 0 !important;
    padding: 0 1rem !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tab{
    background: transparent !important;
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tab:hover{
    background: transparent !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tab.active{
    background: transparent !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
    border-bottom-color: var(--rx-accent) !important;
    box-shadow: none !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content{
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 1.5rem !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-block{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(30, 41, 59, 0.2) !important;
    border-radius: 12px !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-block code{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-keyword{
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-string{
    color: #a5d6ff !important;
    -webkit-text-fill-color: #a5d6ff !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-type{
    color: var(--rx-info) !important;
    -webkit-text-fill-color: var(--rx-info) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-variable{
    color: var(--rx-warning) !important;
    -webkit-text-fill-color: var(--rx-warning) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-function{
    color: var(--rx-success) !important;
    -webkit-text-fill-color: var(--rx-success) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-content .code-comment{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .copy-code-btn{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.2) !important;
}:is(html.light-theme, body.admin-body.light-theme) .copy-code-btn:hover{
    background: var(--rx-brand) !important;
    color: var(--rx-on-brand) !important;
}body.admin-body /* ============================================
   Policies List - Delete Button Light Theme
   ============================================ */
.light-theme .btn-delete{
    background: rgba(var(--rx-danger-rgb), 0.1) !important;
    color: var(--rx-danger) !important;
    border-color: rgba(var(--rx-danger-rgb), 0.2) !important;
    -webkit-text-fill-color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-delete:hover{
    background: var(--rx-danger-fill) !important;
    color: var(--rx-on-brand) !important;
    border-color: var(--rx-danger) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-delete i{
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}body.admin-body /* ============================================
   Light Theme - Header & Navbar
   ============================================ */
.light-theme .admin-navbar{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        rgba(204, 251, 241, 0.9) 50%,
        rgba(252, 231, 243, 0.9) 100%) !important;
    border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.15) !important;
    box-shadow: 0 4px 40px rgba(var(--rx-accent-rgb), 0.1),
                0 1px 3px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .navbar-brand{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .navbar-brand span{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .nav-link{
    color: var(--rx-ink-soft) !important;
    -webkit-text-fill-color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .nav-link:hover{
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .nav-link i{
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .navbar-toggler{
    border-color: rgba(var(--rx-accent-rgb), 0.3) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2899, 102, 241, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-menu{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.12) !important;
    box-shadow: 0 10px 40px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-item{
    color: var(--rx-ink-soft) !important;
    -webkit-text-fill-color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-item:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-divider{
    border-top-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-item.text-danger{
    color: var(--rx-danger) !important;
    -webkit-text-fill-color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-navbar .dropdown-item.text-danger:hover{
    background: rgba(var(--rx-danger-rgb), 0.08) !important;
}body.admin-body /* ============================================
   Light Theme - Sidebar
   ============================================ */
.light-theme .admin-sidebar-permanent{
    background: linear-gradient(180deg,
        var(--rx-surface) 0%,
        rgba(204, 251, 241, 0.85) 50%,
        rgba(252, 231, 243, 0.85) 100%) !important;
    border-left: 1px solid rgba(var(--rx-accent-rgb), 0.15) !important;
    box-shadow: -4px 0 50px rgba(var(--rx-accent-rgb), 0.12),
                -1px 0 0 rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-brand{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-brand i{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-heading{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase !important;
    padding: 0.5rem 1rem !important;
    background: rgba(var(--rx-accent-rgb), 0.04) !important;
    border-radius: 8px !important;
    margin: 0.5rem 0.75rem !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link{
    color: var(--rx-ink-soft) !important;
    -webkit-text-fill-color: var(--rx-ink-soft) !important;
    border-radius: 12px !important;
    margin: 3px 8px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
    transform: translateX(-4px) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link.active{
    background: linear-gradient(90deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.05)) !important;
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
    border-right: 3px solid var(--rx-accent) !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link i{
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: 1.1rem !important;
    opacity: 0.85 !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link:hover i,:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link.active i{
    opacity: 1 !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-nav .nav-link .sidebar-label{
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}body.admin-body /* ============================================
   Light Theme - Dashboard
   ============================================ */
.light-theme .dashboard-wrapper,:is(html.light-theme, body.admin-body.light-theme) .admin-wrapper{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        var(--rx-brand-bright) 25%,
        #fce7f3 50%,
        #e0f2fe 75%,
        var(--rx-surface) 100%) !important;
    position: relative;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .admin-wrapper::before{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08), rgba(var(--rx-accent-rgb), 0.05), rgba(var(--rx-accent-rgb), 0.03)) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-header h1,:is(html.light-theme, body.admin-body.light-theme) .page-header h1{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-header h1 i,:is(html.light-theme, body.admin-body.light-theme) .page-header h1 i{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}:is(html.light-theme, body.admin-body.light-theme) .dashboard-header p,:is(html.light-theme, body.admin-body.light-theme) .page-header p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}body.admin-body /* Dashboard Stats Cards */
.light-theme .stat-card,:is(html.light-theme, body.admin-body.light-theme) .glass-stat-card{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 20px rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-card:hover,:is(html.light-theme, body.admin-body.light-theme) .glass-stat-card:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    box-shadow: 0 8px 32px rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-card .stat-value,:is(html.light-theme, body.admin-body.light-theme) .glass-stat-card .stat-value{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-card .stat-label,:is(html.light-theme, body.admin-body.light-theme) .glass-stat-card .stat-label{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}body.admin-body /* Dashboard Chart Card */
.light-theme .chart-card,:is(html.light-theme, body.admin-body.light-theme) .glass-chart-card{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 20px rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-card .card-header,:is(html.light-theme, body.admin-body.light-theme) .glass-chart-card .chart-header{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-card .card-header h3,:is(html.light-theme, body.admin-body.light-theme) .glass-chart-card .chart-header h3{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}body.admin-body /* ============================================
   Light Theme - Glass Cards & Card Headers
   ============================================ */
.light-theme .glass-card{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 24px rgba(var(--rx-accent-rgb), 0.08) !important;
    backdrop-filter: blur(20px) !important;
}:is(html.light-theme, body.admin-body.light-theme) .glass-card:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.18) !important;
    box-shadow: 0 8px 32px rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-header-modern{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.04), rgba(var(--rx-accent-rgb), 0.02)) !important;
    border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-header-modern h2{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-header-modern h2 i{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-body-modern{
    background: transparent !important;
}body.admin-body /* ============================================
   Light Theme - Page Headers & Titles
   ============================================ */
.light-theme .edit-header h1,:is(html.light-theme, body.admin-body.light-theme) .create-header h1,:is(html.light-theme, body.admin-body.light-theme) .delete-header h1,:is(html.light-theme, body.admin-body.light-theme) .page-title{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .edit-header h1 i,:is(html.light-theme, body.admin-body.light-theme) .create-header h1 i,:is(html.light-theme, body.admin-body.light-theme) .delete-header h1 i{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}:is(html.light-theme, body.admin-body.light-theme) .edit-header p,:is(html.light-theme, body.admin-body.light-theme) .create-header p,:is(html.light-theme, body.admin-body.light-theme) .delete-header p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .back-link{
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .back-link:hover{
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}body.admin-body /* ============================================
   Light Theme - Page Wrappers & Backgrounds
   ============================================ */
.light-theme .edit-wrapper,:is(html.light-theme, body.admin-body.light-theme) .create-wrapper,:is(html.light-theme, body.admin-body.light-theme) .delete-wrapper,:is(html.light-theme, body.admin-body.light-theme) .policies-wrapper,:is(html.light-theme, body.admin-body.light-theme) .simulator-wrapper,:is(html.light-theme, body.admin-body.light-theme) .apikey-wrapper,:is(html.light-theme, body.admin-body.light-theme) .support-wrapper{
    background: linear-gradient(180deg, var(--rx-surface) 0%, var(--rx-surface-3) 50%, var(--rx-surface) 100%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .edit-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .create-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .delete-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .policies-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .simulator-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .apikey-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .support-wrapper::before{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08), rgba(var(--rx-accent-rgb), 0.05), rgba(var(--rx-accent-rgb), 0.03)) !important;
}body.admin-body /* ============================================
   Light Theme - Info Cards & Tips
   ============================================ */
.light-theme .tips-card,:is(html.light-theme, body.admin-body.light-theme) .warning-card,:is(html.light-theme, body.admin-body.light-theme) .info-card{
    background: var(--rx-surface) !important;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-item{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-number{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-content h4{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-content p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .tip-content code{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-text h4{
    color: var(--rx-warning) !important;
    -webkit-text-fill-color: var(--rx-warning) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-text p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .warning-icon i{
    color: var(--rx-warning) !important;
    -webkit-text-fill-color: var(--rx-warning) !important;
}body.admin-body /* ============================================
   Light Theme - Footer
   ============================================ */
.light-theme .admin-footer{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        rgba(204, 251, 241, 0.9) 50%,
        rgba(252, 231, 243, 0.9) 100%) !important;
    border-top: 1px solid rgba(var(--rx-accent-rgb), 0.12) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-footer small{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .admin-footer a{
    color: var(--rx-accent) !important;
    -webkit-text-fill-color: var(--rx-accent) !important;
}body.admin-body /* ============================================
   Light Theme - Hero Section
   ============================================ */
.light-theme .hero-section{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08), rgba(var(--rx-accent-rgb), 0.05)) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .hero-section h2{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .hero-section p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}body.admin-body /* ============================================
   User Profile Dropdown
   ============================================ */
.user-profile-dropdown{
    position: relative;
}body.admin-body .user-avatar-btn{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}body.admin-body .user-avatar-btn:hover{
    background: rgba(var(--rx-contrast-rgb), 0.1);
}body.admin-body .user-avatar{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rx-on-brand);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(var(--rx-accent-rgb), 0.4);
    transition: all 0.3s ease;
}body.admin-body .user-avatar-btn:hover .user-avatar{
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--rx-accent-rgb), 0.5);
}body.admin-body .user-profile-menu{
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: color-mix(in srgb, var(--admin-dark-1, #0c1d1e) 98%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    overflow: hidden;
}body.admin-body .user-profile-menu.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}body.admin-body .user-profile-header{
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1));
    border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}body.admin-body .user-profile-header .user-avatar{
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
}body.admin-body .user-info{
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}body.admin-body .user-info .user-name{
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}body.admin-body .user-info .user-email{
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--rx-ink);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}body.admin-body .user-info .user-role{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--rx-ink-soft);
    background: rgba(var(--rx-accent-rgb), 0.2);
    padding: 4px 10px;
    border-radius: 20px;
}body.admin-body .user-info .user-role i{
    font-size: 0.7rem;
}body.admin-body .profile-menu-body{
    padding: 0.75rem;
}body.admin-body .profile-theme-picker{
    padding: 0.35rem 0.25rem 0.55rem;
}body.admin-body .profile-palette-grid{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem 0.35rem;
    margin-bottom: 0.85rem;
}body.admin-body .profile-palette-option{
    min-width: 0;
    padding: 0.3rem 0.1rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--rx-muted);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}body.admin-body .profile-palette-option > span{
    display: block;
    width: 23px;
    height: 23px;
    margin: 0 auto 0.25rem;
    border: 3px solid rgba(var(--rx-contrast-rgb), 0.16);
    border-radius: 50%;
    background: var(--palette-swatch);
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
}body.admin-body .profile-palette-option small{
    display: block;
    overflow: hidden;
    font-size: 0.62rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}body.admin-body .profile-palette-option:hover,body.admin-body .profile-palette-option.active{
    color: var(--rx-ink);
    background: rgba(var(--rx-contrast-rgb), 0.06);
}body.admin-body .profile-palette-option.active{
    border-color: var(--palette-swatch);
}body.admin-body .profile-palette-option.active > span{
    border-color: var(--rx-line);
    box-shadow: 0 0 0 2px var(--palette-swatch);
}body.admin-body .palette-teal{ --palette-swatch: var(--rx-accent); }body.admin-body .palette-ocean{ --palette-swatch: var(--rx-info); }body.admin-body .palette-indigo{ --palette-swatch: var(--rx-accent); }body.admin-body .palette-rose{ --palette-swatch: var(--rx-danger); }body.admin-body .palette-amber{ --palette-swatch: var(--rx-warning); }body.admin-body .palette-forest{ --palette-swatch: var(--rx-success); }body.admin-body .palette-graphite{ --palette-swatch: var(--rx-muted); }body.admin-body .palette-violet{ --palette-swatch: var(--rx-accent); }body.admin-body .palette-sunset{ --palette-swatch: var(--rx-warning); }body.admin-body .palette-midnight{ --palette-swatch: var(--rx-info); }body.admin-body .profile-mode-label{
    padding-top: 0.65rem;
    border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
}body.admin-body .profile-theme-label{
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0.35rem 0.65rem;
    color: var(--rx-ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
}body.admin-body .profile-theme-label i{
    color: var(--rx-accent);
    font-size: 0.95rem;
}body.admin-body .profile-theme-options{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.28);
}body.admin-body .profile-theme-option{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--rx-ink-soft);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}body.admin-body .profile-theme-option:hover{
    color: var(--rx-ink);
    background: rgba(var(--rx-contrast-rgb), 0.06);
}body.admin-body .profile-theme-option.active{
    color: var(--rx-accent);
    border-color: rgba(var(--rx-accent-rgb), 0.28);
    background: rgba(var(--rx-accent-rgb), 0.17);
}body.admin-body .profile-menu-item{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: var(--rx-ink);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}body.admin-body .profile-menu-item:hover{
    background: rgba(var(--rx-contrast-rgb), 0.08);
    color: var(--rx-ink);
}body.admin-body .profile-menu-item i{
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}body.admin-body .profile-menu-item:hover i{
    opacity: 1;
    color: var(--rx-accent);
}body.admin-body .profile-menu-divider{
    height: 1px;
    background: rgba(var(--rx-contrast-rgb), 0.08);
    margin: 0.5rem 0;
}body.admin-body .profile-menu-footer{
    padding: 0.75rem;
    border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
}body.admin-body .logout-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    background: rgba(var(--rx-danger-rgb), 0.1);
    border: 1px solid rgba(var(--rx-danger-rgb), 0.2);
    border-radius: 10px;
    color: var(--rx-danger);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}body.admin-body .logout-btn:hover{
    background: rgba(var(--rx-danger-rgb), 0.2);
    border-color: rgba(var(--rx-danger-rgb), 0.4);
    color: var(--rx-danger);
    transform: translateY(-1px);
}body.admin-body /* Light Theme - User Profile Dropdown */
.light-theme .user-avatar-btn:hover{
    background: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .user-profile-menu{
    background: var(--rx-surface);
    border: 1px solid rgba(var(--rx-accent-rgb), 0.12);
    box-shadow: 0 20px 60px rgba(var(--rx-accent-rgb), 0.2);
}:is(html.light-theme, body.admin-body.light-theme) .user-profile-header{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08), rgba(var(--rx-accent-rgb), 0.05));
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .user-info .user-name,:is(html.light-theme, body.admin-body.light-theme) .user-info .user-email{
    color: var(--rx-ink);
}:is(html.light-theme, body.admin-body.light-theme) .user-info .user-role{
    color: var(--rx-accent);
    background: rgba(var(--rx-accent-rgb), 0.12);
}:is(html.light-theme, body.admin-body.light-theme) .profile-menu-item{
    color: var(--rx-ink-soft);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-label{
    color: var(--rx-muted);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-label i{
    color: var(--rx-accent);
}:is(html.light-theme, body.admin-body.light-theme) .profile-palette-option{
    color: var(--rx-muted);
}:is(html.light-theme, body.admin-body.light-theme) .profile-palette-option:hover,:is(html.light-theme, body.admin-body.light-theme) .profile-palette-option.active{
    color: var(--rx-ink);
    background: var(--rx-surface);
}:is(html.light-theme, body.admin-body.light-theme) .profile-palette-option > span{
    border-color: rgba(15, 23, 42, 0.12);
}:is(html.light-theme, body.admin-body.light-theme) .profile-palette-option.active > span{
    border-color: var(--rx-line);
}:is(html.light-theme, body.admin-body.light-theme) .profile-mode-label{
    border-top-color: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-options{
    background: var(--rx-surface);
    border-color: rgba(var(--rx-accent-rgb), 0.12);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-option{
    color: var(--rx-muted);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-option:hover{
    color: var(--rx-ink);
    background: rgba(255, 255, 255, 0.8);
}:is(html.light-theme, body.admin-body.light-theme) .profile-theme-option.active{
    color: var(--rx-accent);
    background: var(--rx-surface);
    border-color: rgba(var(--rx-accent-rgb), 0.2);
    box-shadow: 0 2px 8px rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .profile-menu-item:hover{
    background: rgba(var(--rx-accent-rgb), 0.08);
    color: var(--rx-ink);
}:is(html.light-theme, body.admin-body.light-theme) .profile-menu-item:hover i{
    color: var(--rx-accent);
}:is(html.light-theme, body.admin-body.light-theme) .profile-menu-divider{
    background: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .profile-menu-footer{
    border-top-color: rgba(var(--rx-accent-rgb), 0.1);
}:is(html.light-theme, body.admin-body.light-theme) .logout-btn{
    background: rgba(var(--rx-danger-rgb), 0.08);
    border-color: rgba(var(--rx-danger-rgb), 0.15);
    color: var(--rx-danger);
}:is(html.light-theme, body.admin-body.light-theme) .logout-btn:hover{
    background: rgba(var(--rx-danger-rgb), 0.15);
    border-color: rgba(var(--rx-danger-rgb), 0.3);
    color: var(--rx-danger);
}body.admin-body /* ============================================
   Light Theme - COMPREHENSIVE FIX for All Pages
   ============================================ */

/* --- Page Wrappers (missing ones) --- */
.light-theme .page-wrapper,:is(html.light-theme, body.admin-body.light-theme) .details-wrapper{
    background: linear-gradient(135deg,
        var(--rx-surface) 0%,
        var(--rx-brand-bright) 25%,
        #fce7f3 50%,
        #e0f2fe 75%,
        var(--rx-surface) 100%) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-wrapper::before,:is(html.light-theme, body.admin-body.light-theme) .details-wrapper::before{
    background: radial-gradient(ellipse at 30% 20%, rgba(var(--rx-accent-rgb), 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(var(--rx-accent-rgb), 0.06) 0%, transparent 50%) !important;
    opacity: 1 !important;
}body.admin-body /* --- Page Headers (missing patterns) --- */
.light-theme .page-header-content h1{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-header-content h1 i{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-header-content p{
    color: var(--rx-muted) !important;
    -webkit-text-fill-color: var(--rx-muted) !important;
}body.admin-body /* --- Total Badge (Admin Requests) --- */
.light-theme .total-badge{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* --- Filter Labels --- */
.light-theme .filter-label{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Form Label (global fix) --- */
.light-theme .form-label,:is(html.light-theme, body.admin-body.light-theme) .form-label-custom{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Form Text / Hints --- */
.light-theme .form-text{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Select Option backgrounds --- */
.light-theme select.form-control option,:is(html.light-theme, body.admin-body.light-theme) .form-select option,:is(html.light-theme, body.admin-body.light-theme) .apikey-select option{
    background: var(--rx-surface) !important;
    color: var(--rx-ink) !important;
}body.admin-body /* --- Data Table (Admin Requests) --- */
.light-theme .data-table th{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
    border-bottom: 3px solid var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .data-table td{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Requests Table (User Requests) --- */
.light-theme .requests-table thead th{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .requests-table tbody td{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .requests-table tbody tr{
    background: var(--rx-surface) !important;
}:is(html.light-theme, body.admin-body.light-theme) .requests-table tbody tr:nth-child(even){
    background: var(--rx-surface) !important;
}:is(html.light-theme, body.admin-body.light-theme) .requests-table tbody tr:hover{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
}body.admin-body /* --- Policies Table (User Policies) --- */
.light-theme .policies-table thead th{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policies-table tbody td{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Modern Table (Admin pages) --- */
.light-theme .modern-table thead th{
    background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .modern-table tbody td{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .modern-table tbody tr:hover{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
}body.admin-body /* --- Secondary Stats (Admin Dashboard) --- */
.light-theme .secondary-stat{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 20px rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .secondary-stat-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .secondary-stat-label{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Quick Actions (Admin Dashboard) --- */
.light-theme .quick-actions-card h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .quick-action-btn{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-ink-soft) !important;
    box-shadow: 0 2px 8px rgba(var(--rx-accent-rgb), 0.06) !important;
}:is(html.light-theme, body.admin-body.light-theme) .quick-action-btn:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.3) !important;
    color: var(--rx-accent) !important;
    box-shadow: 0 4px 16px rgba(var(--rx-accent-rgb), 0.12) !important;
}body.admin-body /* --- User Email in tables --- */
.light-theme .user-email{
    color: var(--rx-ink) !important;
}body.admin-body /* --- Simulator API Key Selector --- */
.light-theme .apikey-selector-section{
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .apikey-selector-section label{
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .apikey-select{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .apikey-select:focus{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15) !important;
}body.admin-body /* --- API Key Page (Account/ApiKey) --- */
.light-theme .key-item{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .key-item:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
}:is(html.light-theme, body.admin-body.light-theme) .key-name{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .key-value-input{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .key-stat{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .key-stat strong{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-input{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-input:focus{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-input::placeholder{
    color: var(--rx-muted) !important;
}body.admin-body /* --- API Key Code blocks --- */
.light-theme .api-key-code{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* --- Details Page (Requests/Details) --- */
.light-theme .info-item{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .json-viewer{
    background: var(--rx-surface) !important;
    border-color: rgba(30, 41, 59, 0.3) !important;
}:is(html.light-theme, body.admin-body.light-theme) .json-content pre{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .json-title{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .json-empty{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-back{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-back:hover{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-copy{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-copy:hover{
    background: var(--rx-brand) !important;
    color: var(--rx-on-brand) !important;
}body.admin-body /* --- Model Configuration Page --- */
.light-theme .active-target-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}:is(html.light-theme, body.admin-body.light-theme) .active-target-card .target-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .active-target-card .target-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .active-target-card .target-note{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .last-updated-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .last-updated-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-card strong{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-card span{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Update Quota Page --- */
.light-theme .divider{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .info-list li{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Button Secondary --- */
.light-theme .btn-secondary{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-secondary:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* --- Button Filter (User Requests) --- */
.light-theme .btn-filter{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* --- Button Primary --- */
.light-theme .btn-primary{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
    border-color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-primary:hover{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* --- Pagination (all pages) --- */
.light-theme .page-link{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
    color: var(--rx-ink-soft) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-link:hover{
    background: rgba(var(--rx-accent-rgb), 0.08) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-item.active .page-link{
    background: var(--rx-brand) !important;
    border-color: var(--rx-accent) !important;
    color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-item.disabled .page-link{
    background: var(--rx-surface) !important;
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .page-info-text{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Empty States (all pages) --- */
.light-theme .empty-state{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-state h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-state p{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-state i{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .empty-row td{
    color: var(--rx-muted) !important;
}body.admin-body /* --- User Policies - Feature Items --- */
.light-theme .feature-item{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .feature-item span{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Keyword badges --- */
.light-theme .keyword-more{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .keywords-text{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Status Badge inactive --- */
.light-theme .status-badge.inactive{
    background: rgba(107, 114, 128, 0.12) !important;
    color: var(--rx-muted) !important;
}body.admin-body /* --- Simulator Result stats --- */
.light-theme .stat-label{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .status-subtitle{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .result-footer span{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .violation-chip{
    color: var(--rx-danger) !important;
}:is(html.light-theme, body.admin-body.light-theme) .rejection-reason-text{
    color: var(--rx-warning) !important;
}body.admin-body /* --- Simulator spinner --- */
.light-theme .spinner{
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    border-top-color: var(--rx-accent) !important;
}body.admin-body /* --- Inline style overrides for rgba(255,255,255,...) patterns --- */
.light-theme [style*="color: rgba(255,255,255"],:is(html.light-theme, body.admin-body.light-theme) [style*="color: rgba(255, 255, 255"],:is(html.light-theme, body.admin-body.light-theme) [style*="color:rgba(255,255,255"],:is(html.light-theme, body.admin-body.light-theme) [style*="color:rgba(255, 255, 255"]{
    color: #64748b !important;
}:is(html.light-theme, body.admin-body.light-theme) [style*="border-bottom: 1px solid rgba(255,255,255"],:is(html.light-theme, body.admin-body.light-theme) [style*="border-top: 1px solid rgba(255,255,255"],:is(html.light-theme, body.admin-body.light-theme) [style*="border-right: 3px solid rgba(255,255,255"],:is(html.light-theme, body.admin-body.light-theme) [style*="border-bottom: 1px solid rgba(255, 255, 255"],:is(html.light-theme, body.admin-body.light-theme) [style*="border-top: 1px solid rgba(255, 255, 255"]{
    border-color: rgba(15, 118, 110, 0.1) !important;
}body.admin-body /* --- Dashboard Card Subtitles --- */
.light-theme .api-key-subtitle{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .api-key-value{
    background: rgba(var(--rx-contrast-rgb), 0.2) !important;
    border-color: rgba(var(--rx-contrast-rgb), 0.3) !important;
    color: var(--rx-ink) !important;
}body.admin-body /* --- Quick Action Labels --- */
.light-theme .quick-action{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .quick-action:hover{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
}:is(html.light-theme, body.admin-body.light-theme) .quick-action-label{
    color: var(--rx-ink) !important;
}body.admin-body /* --- Simulator Empty Policies --- */
.light-theme .empty-policies{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Simulator Stat Numbers (keep colored) --- */
.light-theme .stat-number{
    -webkit-text-fill-color: inherit !important;
}body.admin-body /* --- Shamsi Datepicker light theme fix --- */
.light-theme .shamsi-datepicker{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink) !important;
}body.admin-body /* --- Sidebar Card (ApiKey page) --- */
.light-theme .sidebar-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 20px rgba(var(--rx-accent-rgb), 0.08) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-header h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .sidebar-card-body{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Card Header Row (Users, etc.) --- */
.light-theme .card-header-row{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-title{
    color: var(--rx-ink) !important;
}body.admin-body /* --- Card Header (ApiKey page) --- */
.light-theme .card-header{
    background: rgba(var(--rx-accent-rgb), 0.06) !important;
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-header h2{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .card-body{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Header Badge --- */
.light-theme .header-badge{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* --- User Cell in tables --- */
.light-theme .user-cell .user-name{
    color: var(--rx-ink) !important;
}body.admin-body /* --- Button action --- */
.light-theme .btn-action{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-action:hover{
    background: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}body.admin-body /* --- Button Copy Small --- */
.light-theme .btn-copy-sm{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-copy-sm:hover{
    background: rgba(var(--rx-accent-rgb), 0.25) !important;
}body.admin-body /* --- Button Create --- */
.light-theme .btn-create{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}:is(html.light-theme, body.admin-body.light-theme) .btn-create:hover{
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* --- Button Delete --- */
.light-theme .btn-del{
    background: rgba(var(--rx-danger-rgb), 0.1) !important;
    border-color: rgba(var(--rx-danger-rgb), 0.2) !important;
    color: var(--rx-danger) !important;
}body.admin-body /* --- Button Toggle --- */
.light-theme .btn-toggle{
    background: rgba(var(--rx-warning-rgb), 0.1) !important;
    border-color: rgba(var(--rx-warning-rgb), 0.2) !important;
    color: var(--rx-warning) !important;
}body.admin-body /* --- Button Key Action --- */
.light-theme .btn-key-action{
    color: inherit !important;
}body.admin-body /* --- Pagination Wrapper border --- */
.light-theme .pagination-wrapper{
    border-top-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}body.admin-body /* --- Stat Value & Label overrides --- */
.light-theme .stat-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-label{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Chart info items (User Dashboard) --- */
.light-theme .chart-info-item{
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-info-item h4,:is(html.light-theme, body.admin-body.light-theme) .chart-info-item h5{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .chart-info-item p{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Filter Section borders --- */
.light-theme .filter-section,:is(html.light-theme, body.admin-body.light-theme) .filters-row{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}body.admin-body /* --- Hero Section text --- */
.light-theme .hero-section h1{
    color: var(--rx-ink) !important;
    -webkit-text-fill-color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .hero-section h1 i{
    -webkit-text-fill-color: transparent !important;
}:is(html.light-theme, body.admin-body.light-theme) .hero-section p{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Hero Section background fix --- */
.light-theme .hero-section{
    background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.08) 0%, rgba(var(--rx-accent-rgb), 0.08) 50%, rgba(var(--rx-accent-rgb), 0.06) 100%) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
}body.admin-body /* --- Stat Card backgrounds --- */
.light-theme .stat-card{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    box-shadow: 0 4px 20px rgba(var(--rx-accent-rgb), 0.08) !important;
}body.admin-body /* --- Policy Item --- */
.light-theme .policy-item{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .policy-item:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.25) !important;
    background: var(--rx-surface) !important;
}body.admin-body /* --- Stat Mini (Policies page) --- */
.light-theme .stat-mini{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.1) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-mini-value{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .stat-mini-label{
    color: var(--rx-muted) !important;
}body.admin-body /* --- Stat Trend --- */
.light-theme .stat-trend{
    color: inherit !important;
}body.admin-body /* --- Generic borders -> light theme --- */
.light-theme .glass-card,:is(html.light-theme, body.admin-body.light-theme) .simulator-card,:is(html.light-theme, body.admin-body.light-theme) .admin-card{
    border-color: rgba(var(--rx-accent-rgb), 0.12) !important;
}body.admin-body /* --- Code Examples container --- */
.light-theme .code-examples-container h3{
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tab{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) .code-tab.active{
    color: var(--rx-accent) !important;
    border-bottom-color: var(--rx-accent) !important;
}body.admin-body /* --- form-control in light theme --- */
.light-theme .form-control{
    background: var(--rx-surface) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.2) !important;
    color: var(--rx-ink) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-control:focus{
    background: var(--rx-surface) !important;
    border-color: var(--rx-accent) !important;
    box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15) !important;
}:is(html.light-theme, body.admin-body.light-theme) .form-control::placeholder{
    color: var(--rx-muted) !important;
}:is(html.light-theme, body.admin-body.light-theme) select.form-control option{
    background: var(--rx-surface) !important;
    color: var(--rx-ink) !important;
}body.admin-body /* --- Last Updated container --- */
.light-theme .last-updated{
    background: rgba(var(--rx-accent-rgb), 0.05) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
}body.admin-body /* --- Info Card (ModelConfig, UpdateQuota) --- */
.light-theme .info-card{
    background: rgba(var(--rx-accent-rgb), 0.05) !important;
    border-color: rgba(var(--rx-accent-rgb), 0.15) !important;
}body.admin-body /* --- Table row borders --- */
.light-theme .modern-table tbody td,:is(html.light-theme, body.admin-body.light-theme) .data-table tbody td,:is(html.light-theme, body.admin-body.light-theme) .requests-table tbody td,:is(html.light-theme, body.admin-body.light-theme) .policies-table tbody td{
    border-bottom-color: rgba(var(--rx-accent-rgb), 0.08) !important;
}body.admin-body /* --- Stat Progress bar bg --- */
.light-theme .stat-progress{
    background: rgba(var(--rx-accent-rgb), 0.1) !important;
}body.admin-body /* --- Endpoint link --- */
.light-theme .endpoint-link{
    color: var(--rx-accent) !important;
}:is(html.light-theme, body.admin-body.light-theme) .endpoint-link:hover{
    color: var(--rx-accent) !important;
}body.admin-body /* --- Time Badge --- */
.light-theme .time-badge{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* --- Method Badge --- */
.light-theme .method-badge{
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}body.admin-body /* --- Model Badge --- */
.light-theme .model-badge{
    color: var(--rx-accent) !important;
}body.admin-body /* --- Security Tip Colors (keep for light too) --- */
.light-theme .security-list li{
    color: var(--rx-ink-soft) !important;
}body.admin-body /* ============================================
   Mobile Responsive - Header & Sidebar
   ============================================ */
@media (max-width: 992px){
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    /* Mobile Navbar */
    .admin-navbar {
        padding: 0.5rem 1rem !important;
        height: auto !important;
        min-height: 60px !important;
    }

    .admin-navbar .container-fluid {
        flex-wrap: nowrap !important;
        padding: 0 !important;
    }

    .admin-navbar .navbar-brand {
        font-size: 1.1rem !important;
        padding: 0 !important;
    }

    .admin-logo-mark {
        width: 28px !important;
        height: 28px !important;
    }

    .admin-logo-mark i {
        font-size: 0.9rem !important;
    }

    .admin-navbar .navbar-brand span {
        display: none !important;
    }

    /* Theme Toggle Button Mobile */
    .theme-toggle-btn {
        padding: 6px 10px !important;
        margin-left: 0.5rem !important;
    }

    .theme-toggle-btn i {
        font-size: 1rem !important;
    }

    /* Navbar Toggler */
    .navbar-toggler {
        padding: 0.4rem 0.6rem !important;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2) !important;
        border-radius: 8px !important;
        background: rgba(var(--rx-contrast-rgb), 0.1) !important;
    }

    .light-theme .navbar-toggler {
        border-color: rgba(var(--rx-accent-rgb), 0.3) !important;
        background: rgba(var(--rx-accent-rgb), 0.1) !important;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        width: 1.2em !important;
        height: 1.2em !important;
    }

    /* Mobile Dropdown Menu */
    .admin-navbar .navbar-collapse {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: calc(100vh - 60px) !important;
        height: calc(100dvh - 60px) !important;
        background: linear-gradient(180deg, color-mix(in srgb, var(--admin-dark-1, #0c1d1e) 99%, transparent) 0%, color-mix(in srgb, var(--admin-dark-2, #102829) 99%, transparent) 100%) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        padding: 1.5rem !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;
        /* Custom show/hide */
        display: none !important;
        visibility: hidden;
    }

    .admin-navbar .navbar-collapse.show {
        display: block !important;
        visibility: visible;
    }

    .light-theme .admin-navbar .navbar-collapse {
        background: linear-gradient(180deg, var(--rx-surface) 0%, rgba(248, 250, 252, 0.99) 100%) !important;
        border-top-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    }

    .admin-navbar .navbar-nav {
        gap: 0.5rem !important;
        flex-direction: column !important;
    }

    .admin-navbar .nav-item {
        width: 100% !important;
    }

    .admin-navbar .nav-link,
    .admin-navbar .nav-item button.nav-link {
        padding: 1rem 1.25rem !important;
        border-radius: 12px !important;
        font-size: 1rem !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        background: rgba(var(--rx-contrast-rgb), 0.05) !important;
        margin-bottom: 0.25rem !important;
        color: var(--rx-ink) !important;
        text-decoration: none !important;
        cursor: pointer !important;
    }

    .admin-navbar .nav-item button.nav-link.text-danger {
        background: rgba(var(--rx-danger-rgb), 0.1) !important;
        color: var(--rx-danger) !important;
    }

    .light-theme .admin-navbar .nav-link,
    .light-theme .admin-navbar .nav-item button.nav-link {
        background: rgba(var(--rx-accent-rgb), 0.05) !important;
        color: var(--rx-ink) !important;
    }

    .light-theme .admin-navbar .nav-item button.nav-link.text-danger {
        background: rgba(var(--rx-danger-rgb), 0.08) !important;
        color: var(--rx-danger) !important;
    }

    .admin-navbar .nav-link:hover,
    .admin-navbar .nav-item button.nav-link:hover {
        background: rgba(var(--rx-accent-rgb), 0.2) !important;
    }

    .admin-navbar .nav-link i {
        font-size: 1.2rem !important;
        width: 24px !important;
        text-align: center !important;
    }

    /* Mobile Dropdown Divider */
    .admin-navbar .dropdown-divider {
        border-top-color: rgba(var(--rx-contrast-rgb), 0.1) !important;
        margin: 0.75rem 0 !important;
    }

    .light-theme .admin-navbar .dropdown-divider {
        border-top-color: rgba(var(--rx-accent-rgb), 0.1) !important;
    }

    /* Hide user dropdown on mobile, show full-width link */
    .admin-navbar .dropdown {
        width: 100% !important;
    }

    .admin-navbar .dropdown-toggle::after {
        display: none !important;
    }

    .admin-navbar .dropdown-menu {
        position: static !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .admin-navbar .dropdown-item {
        padding: 1rem 1.25rem !important;
        border-radius: 12px !important;
        background: rgba(var(--rx-danger-rgb), 0.1) !important;
        color: var(--rx-danger) !important;
    }

    .light-theme .admin-navbar .dropdown-item {
        background: rgba(var(--rx-danger-rgb), 0.08) !important;
        color: var(--rx-danger) !important;
    }

    /* Mobile Sidebar */
    .admin-sidebar-permanent {
        width: 280px !important;
        transform: translateX(100%) !important;
        top: 0 !important;
        padding-top: 70px !important;
        z-index: 1040 !important;
    }

    .admin-sidebar-permanent.show {
        transform: translateX(0) !important;
    }

    /* Sidebar Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1039;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {body.admin-body /* Extra small screens */
    .admin-navbar{
        padding: 0.5rem 0.75rem !important;
    }body.admin-body .admin-logo-mark{
        width: 26px !important;
        height: 26px !important;
    }body.admin-body .admin-logo-mark i{
        font-size: 0.85rem !important;
    }body.admin-body .theme-toggle-btn{
        padding: 5px 8px !important;
    }body.admin-body .admin-navbar .navbar-collapse{
        padding: 1rem !important;
    }body.admin-body .admin-navbar .nav-link{
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
    }body.admin-body .admin-sidebar-permanent.show{
        width: 100% !important;
    }
}



/* Stylesheet: chatbot-workspace.css — body.admin-body */
body.admin-body .chatbot-workspace-nav{
    position: relative;
    overflow: visible;
    margin-bottom: 24px;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.13);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(17, 43, 43, .96), rgba(14, 36, 39, .96));
    box-shadow: 0 12px 30px rgba(2, 15, 19, .16);
    font-family: var(--rx-font);
}body.admin-body .chatbot-workspace-nav::before{
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent 3%, rgba(var(--rx-accent-rgb), 0.65) 35%, rgba(var(--rx-accent-rgb), 0.14) 78%, transparent);
    content: "";
}body.admin-body .workspace-context{
    display: flex;
    align-items: center;
    min-height: 66px;
    gap: 12px;
    padding: 11px 16px;
}body.admin-body .workspace-switch{ display: flex; align-items: center; gap: 9px; }body.admin-body .workspace-switch label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #8ca9a6;
    font-size: .75rem;
    white-space: nowrap;
}body.admin-body .workspace-switch label i{ color: var(--rx-accent); font-size: .9rem; }body.admin-body .workspace-switch select{
    min-width: 230px;
    max-width: min(330px, 52vw);
    height: 42px;
    padding: 0 13px 0 34px;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    border-radius: 11px;
    background: rgba(var(--rx-accent-rgb), 0.07);
    color: #eefcf9;
    font: 600 .82rem Vazirmatn, sans-serif;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}body.admin-body .workspace-switch select:hover{
    border-color: rgba(var(--rx-accent-rgb), 0.38);
    background: rgba(var(--rx-accent-rgb), 0.1);
}body.admin-body .workspace-switch select option{ background: #173536; color: var(--rx-ink); }body.admin-body .workspace-section-name{
    display: flex;
    align-items: center;
    gap: 9px;
    margin-inline-start: auto;
    white-space: nowrap;
}body.admin-body .workspace-section-name > span{ color: #6f908d; font-size: .68rem; }body.admin-body .workspace-section-name strong{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d9fbf4;
    font-size: .82rem;
    font-weight: 700;
}body.admin-body .workspace-section-name strong i{ color: var(--rx-accent); }body.admin-body .workspace-back{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #86a29f;
    text-decoration: none;
    font-size: .74rem;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}body.admin-body .workspace-back:hover{ background: rgba(var(--rx-contrast-rgb), 0.045); color: var(--rx-accent); }body.admin-body .workspace-mobile-destination{ display: none; }body.admin-body .workspace-tabs{
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px;
    overflow-x: auto;
    padding: 0 10px;
    border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.055);
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 191, .32) transparent;
}body.admin-body .workspace-tabs a{
    position: relative;
    display: inline-flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    gap: 7px;
    padding: 0 11px;
    border-radius: 8px 8px 0 0;
    color: #809e9b;
    text-decoration: none;
    font-size: .74rem;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}body.admin-body .workspace-tabs a i{ color: #658d89; font-size: .83rem; transition: color .18s ease; }body.admin-body .workspace-tabs a:hover{ background: rgba(var(--rx-contrast-rgb), 0.035); color: #c8e9e4; }body.admin-body .workspace-tabs a:hover i{ color: #94d9cf; }body.admin-body .workspace-tabs a.selected{
    background: linear-gradient(180deg, rgba(var(--rx-accent-rgb), 0.08), rgba(var(--rx-accent-rgb), 0.025));
    color: var(--rx-accent);
    font-weight: 700;
}body.admin-body .workspace-tabs a.selected i{ color: var(--rx-accent); }body.admin-body .workspace-tabs a.selected::after{
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--rx-brand-bright);
    box-shadow: 0 -2px 10px rgba(var(--rx-accent-rgb), 0.35);
    content: "";
}body.admin-body .chatbot-workspace-nav a:focus-visible,body.admin-body .workspace-switch select:focus-visible{ outline: 2px solid var(--rx-accent); outline-offset: -2px; }:is(html.light-theme, body.admin-body.light-theme) .chatbot-workspace-nav{
    border-color: rgba(var(--rx-accent-rgb), 0.14);
    background: linear-gradient(135deg, rgba(245, 251, 249, .98), rgba(235, 247, 244, .98));
    box-shadow: 0 10px 28px rgba(15, 71, 66, .08);
}:is(html.light-theme, body.admin-body.light-theme) .workspace-switch select{
    border-color: rgba(var(--rx-accent-rgb), 0.18);
    background: rgba(var(--rx-accent-rgb), 0.055);
    color: #173b38;
}:is(html.light-theme, body.admin-body.light-theme) .workspace-section-name strong{ color: #174b46; }:is(html.light-theme, body.admin-body.light-theme) .workspace-tabs{ border-top-color: rgba(var(--rx-accent-rgb), 0.1); }:is(html.light-theme, body.admin-body.light-theme) .workspace-tabs a{ color: #5e7775; }:is(html.light-theme, body.admin-body.light-theme) .workspace-tabs a:hover{ background: rgba(var(--rx-accent-rgb), 0.055); color: var(--rx-accent); }body.admin-body /* The workspace is organised by user goals. Each group exposes its related
   destinations without forcing ten equal-weight tabs into one row. */
.workspace-groups{
    overflow: visible;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px 0;
}body.admin-body .workspace-group{ position: relative; flex: 1 1 0; min-width: 0; }body.admin-body .workspace-group > summary{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 7px;
    padding: 0 10px;
    border-radius: 9px 9px 0 0;
    color: #809e9b;
    font-size: .76rem;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}body.admin-body .workspace-group > summary::-webkit-details-marker{ display: none; }body.admin-body .workspace-group > summary:hover,body.admin-body .workspace-group[open] > summary{ background: rgba(var(--rx-contrast-rgb), 0.045); color: #c8e9e4; }body.admin-body .workspace-group > summary > i:first-child{ color: #658d89; font-size: .9rem; }body.admin-body .workspace-group-caret{ margin-inline-start: 2px; font-size: .62rem; transition: transform .18s ease; }body.admin-body .workspace-group[open] .workspace-group-caret{ transform: rotate(180deg); }body.admin-body .workspace-group.selected > summary{ color: var(--rx-accent); font-weight: 800; }body.admin-body .workspace-group.selected > summary > i:first-child{ color: var(--rx-accent); }body.admin-body .workspace-group.selected > summary::after{
    position: absolute;
    right: 16%;
    bottom: 0;
    left: 16%;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--rx-brand-bright);
    box-shadow: 0 -2px 10px rgba(var(--rx-accent-rgb), 0.35);
    content: "";
}body.admin-body .workspace-group-menu{
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 50%;
    width: min(340px, 84vw);
    padding: 8px;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    border-radius: 13px;
    background: #102b2d;
    box-shadow: 0 18px 46px rgba(2, 15, 19, .42);
    transform: translateX(50%);
}body.admin-body .workspace-group-intro{ display: flex; flex-direction: column; gap: 2px; padding: 7px 9px 10px; }body.admin-body .workspace-group-intro strong{ color: #d9fbf4; font-size: .78rem; }body.admin-body .workspace-group-intro span{ color: #789895; font-size: .68rem; }body.admin-body .workspace-group-menu a{
    justify-content: flex-start;
    min-height: 54px;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    text-align: right;
}body.admin-body .workspace-group-menu a > i{ flex: 0 0 auto; font-size: 1rem; }body.admin-body .workspace-group-menu a > span{ display: flex; min-width: 0; flex-direction: column; gap: 2px; }body.admin-body .workspace-group-menu a strong{ color: inherit; font-size: .76rem; }body.admin-body .workspace-group-menu a small{ overflow: hidden; color: #789895; font-size: .65rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }body.admin-body .workspace-group-menu a.selected::after{ display: none; }:is(html.light-theme, body.admin-body.light-theme) .workspace-group > summary{ color: #5e7775; }:is(html.light-theme, body.admin-body.light-theme) .workspace-group > summary:hover,:is(html.light-theme, body.admin-body.light-theme) .workspace-group[open] > summary{ background: rgba(var(--rx-accent-rgb), 0.055); color: var(--rx-accent); }:is(html.light-theme, body.admin-body.light-theme) .workspace-group-menu{ border-color: rgba(var(--rx-accent-rgb), 0.18); background: #f7fcfa; box-shadow: 0 18px 42px rgba(15, 71, 66, .15); }:is(html.light-theme, body.admin-body.light-theme) .workspace-group-intro strong{ color: #174b46; }:is(html.light-theme, body.admin-body.light-theme) .workspace-group-intro span,:is(html.light-theme, body.admin-body.light-theme) .workspace-group-menu a small{ color: #6b8582; }

@media (max-width: 900px) {body.admin-body .workspace-context{ min-height: 58px; padding: 9px 11px; }body.admin-body .workspace-section-name{ display: none; }body.admin-body .workspace-back{ margin-inline-start: auto; }body.admin-body .workspace-tabs a{ flex: 0 0 auto; min-height: 47px; }body.admin-body .workspace-group > summary span{ display: none; }body.admin-body .workspace-group > summary > i:first-child{ font-size: 1.05rem; }
}

@media (max-width: 576px) {body.admin-body .chatbot-workspace-nav{ margin-bottom: 16px; border-radius: 13px; }body.admin-body .workspace-context{ min-height: 55px; gap: 8px; padding: 8px 10px; }body.admin-body .workspace-switch{ min-width: 0; flex: 1; }body.admin-body .workspace-switch label span,body.admin-body .workspace-back span{ display: none; }body.admin-body .workspace-switch select{ min-width: 0; width: 100%; max-width: none; height: 39px; padding-inline: 10px 30px; }body.admin-body .workspace-back{ padding: 8px; }body.admin-body .workspace-tabs{ display: none; }body.admin-body .workspace-mobile-destination{
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 9px 10px 10px;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.055);
    }body.admin-body .workspace-mobile-destination label{
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        color: #8ca9a6;
        font-size: .72rem;
        white-space: nowrap;
    }body.admin-body .workspace-mobile-destination label i{ color: var(--rx-accent); }body.admin-body .workspace-mobile-destination select{
        min-width: 0;
        width: 100%;
        height: 39px;
        padding: 0 10px 0 30px;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        border-radius: 10px;
        background: rgba(var(--rx-accent-rgb), 0.075);
        color: #d9fbf4;
        font: 700 .76rem Vazirmatn, sans-serif;
    }body.admin-body .workspace-mobile-destination select option{ background: #173536; color: var(--rx-ink); }body.admin-body .workspace-mobile-destination select:focus-visible{ outline: 2px solid var(--rx-accent); outline-offset: -2px; }:is(html.light-theme, body.admin-body.light-theme) .workspace-mobile-destination{ border-top-color: rgba(var(--rx-accent-rgb), 0.1); }:is(html.light-theme, body.admin-body.light-theme) .workspace-mobile-destination select{
        border-color: rgba(var(--rx-accent-rgb), 0.18);
        background: rgba(var(--rx-accent-rgb), 0.055);
        color: #174b46;
    }
}body.admin-body /* Chatbot workspace now lives in the persistent right sidebar. */
.chatbot-sidebar-workspace{
    margin: .45rem .55rem .3rem;
    padding: .55rem;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.13);
    border-radius: 12px;
    background: rgba(var(--rx-accent-rgb), 0.035);
    list-style: none;
}body.admin-body .workspace-exit-item{ margin-bottom: .35rem !important; }body.admin-body .sidebar-nav .workspace-exit-link{
    color: var(--rx-accent);
    background: rgba(var(--rx-accent-rgb), 0.08);
    border: 1px solid rgba(var(--rx-accent-rgb), 0.13);
}body.admin-body .sidebar-nav .workspace-exit-link:hover{ background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-ink); }body.admin-body .sidebar-bot-context{ padding: .15rem .15rem .55rem; border-bottom: 1px solid rgba(var(--rx-accent-rgb), 0.1); }body.admin-body .sidebar-bot-context-label{
    display: flex; align-items: center; gap: .4rem; margin-bottom: .4rem;
    color: #6faaa5; font-size: .66rem; font-weight: 800;
}body.admin-body .sidebar-bot-context-label i{ color: var(--rx-accent); font-size: .78rem; }body.admin-body .sidebar-bot-name{
    overflow: hidden; padding: .42rem .5rem; border-radius: 8px;
    background: rgba(var(--rx-accent-rgb), 0.12); color: #d9fbf4;
    font-size: .79rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap;
}body.admin-body .sidebar-bot-switcher select{
    width: 100%; height: 39px; padding: 0 .65rem 0 1.8rem;
    border: 1px solid rgba(var(--rx-accent-rgb), 0.2); border-radius: 8px;
    background: #123234; color: #e6fffb; font: 700 .75rem Vazirmatn, sans-serif;
    cursor: pointer;
}body.admin-body /* The dropdown's own popup list is rendered by the OS on Chromium, outside the page's
   theme entirely, unless the <option> elements carry their own background/color. */
.sidebar-bot-switcher select option{
    background: #123234; color: #e6fffb;
}body.admin-body .sidebar-bot-preview{
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    margin-top: .4rem; padding: .32rem .45rem; border-radius: 7px;
    color: #77bdb5; font-size: .68rem; text-decoration: none;
}body.admin-body .sidebar-bot-preview:hover{ background: rgba(var(--rx-accent-rgb), 0.07); color: var(--rx-accent); }body.admin-body .sidebar-bot-navigation{ padding-top: .4rem; }body.admin-body .sidebar-bot-overview{
    display: flex; align-items: center; gap: .6rem; min-height: 41px; margin-bottom: .2rem; padding: .45rem .6rem;
    border-radius: 8px; color: #9bb5b2; font-size: .75rem; font-weight: 700; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}body.admin-body .sidebar-bot-overview i{ width: 16px; color: #5f918c; text-align: center; }body.admin-body .sidebar-bot-overview:hover{ background: rgba(var(--rx-contrast-rgb), 0.035); color: #d5eeea; }body.admin-body .sidebar-bot-overview.active{ background: rgba(var(--rx-accent-rgb), 0.09); color: var(--rx-accent); font-weight: 800; }body.admin-body .sidebar-bot-overview.active i{ color: var(--rx-accent); }body.admin-body .sidebar-bot-group{ margin-bottom: 2px; }body.admin-body .sidebar-bot-group > summary{
    display: flex; align-items: center; gap: .6rem; min-height: 41px; padding: .45rem .6rem;
    border-radius: 8px; color: #9bb5b2; font-size: .75rem; font-weight: 700;
    cursor: pointer; list-style: none; transition: background .15s ease, color .15s ease;
}body.admin-body .sidebar-bot-group > summary::-webkit-details-marker{ display: none; }body.admin-body .sidebar-bot-group > summary:hover{ background: rgba(var(--rx-contrast-rgb), 0.035); color: #d5eeea; }body.admin-body .sidebar-bot-group > summary.active{ color: var(--rx-accent); background: rgba(var(--rx-accent-rgb), 0.07); }body.admin-body .sidebar-bot-group > summary > i:first-child{ width: 16px; color: #5f918c; text-align: center; }body.admin-body .sidebar-bot-group > summary.active > i:first-child{ color: var(--rx-accent); }body.admin-body .sidebar-bot-group .group-chevron{ margin-inline-start: auto; font-size: .55rem; transition: transform .16s ease; }body.admin-body .sidebar-bot-group[open] .group-chevron{ transform: rotate(180deg); }body.admin-body .sidebar-bot-submenu{ position: relative; margin: .15rem .7rem .35rem 0; padding-right: .55rem; border-right: 1px solid rgba(var(--rx-accent-rgb), 0.13); }body.admin-body .sidebar-bot-submenu a{
    display: flex; align-items: center; gap: .5rem; min-height: 36px; padding: .38rem .55rem;
    border-radius: 7px; color: #789895; font-size: .7rem; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}body.admin-body .sidebar-bot-submenu a i{ width: 14px; color: #527c78; text-align: center; }body.admin-body .sidebar-bot-submenu a:hover{ background: rgba(var(--rx-contrast-rgb), 0.035); color: #d5eeea; }body.admin-body .sidebar-bot-submenu a.active{ background: rgba(var(--rx-accent-rgb), 0.09); color: var(--rx-accent); font-weight: 800; }body.admin-body .sidebar-bot-submenu a.active i{ color: var(--rx-accent); }body.admin-body .chatbot-sidebar-workspace select:focus-visible,body.admin-body .sidebar-bot-group > summary:focus-visible,body.admin-body .sidebar-bot-submenu a:focus-visible{ outline: 2px solid var(--rx-accent); outline-offset: 1px; }:is(html.light-theme, body.admin-body.light-theme) .chatbot-sidebar-workspace{ border-color: rgba(var(--rx-accent-rgb), 0.14); background: rgba(var(--rx-accent-rgb), 0.035); }:is(html.light-theme, body.admin-body.light-theme) .sidebar-bot-name{ background: rgba(var(--rx-accent-rgb), 0.08); color: #174b46; }:is(html.light-theme, body.admin-body.light-theme) .sidebar-bot-switcher select{ background: #f2faf8; color: #174b46; }:is(html.light-theme, body.admin-body.light-theme) .sidebar-bot-switcher select option{ background: #f2faf8; color: #174b46; }:is(html.light-theme, body.admin-body.light-theme) .sidebar-bot-group > summary{ color: #58736f; }:is(html.light-theme, body.admin-body.light-theme) .sidebar-bot-submenu a{ color: #6b8582; }body.admin-body /* Secondary, contextual sidebar. The account navigation remains on the far right;
   this rail only exists while a chatbot workspace page is open. */
.chatbot-context-sidebar{
    --chatbot-context-width: 270px;
    position: fixed;
    z-index: 1015;
    top: var(--navbar-height);
    right: var(--sidebar-width);
    bottom: 0;
    width: var(--chatbot-context-width);
    overflow-x: hidden;
    overflow-y: auto;
    border-left: 1px solid rgba(var(--rx-accent-rgb), 0.13);
    background: linear-gradient(180deg, rgba(13, 40, 42, .98), rgba(11, 32, 35, .98));
    box-shadow: -10px 0 30px rgba(2, 15, 19, .14);
}body.admin-body .chatbot-context-nav{ padding-top: .75rem; }body.admin-body .admin-content.with-chatbot-context{ margin-right: calc(var(--sidebar-width) + 270px); }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .chatbot-context-sidebar{ right:68px; }body.admin-body .admin-wrapper.has-chatbot-context.primary-sidebar-collapsed .admin-content.with-chatbot-context{ margin-right:338px; }body.admin-body .chatbot-context-sidebar::-webkit-scrollbar{ width: 5px; }body.admin-body .chatbot-context-sidebar::-webkit-scrollbar-thumb{ border-radius: 4px; background: rgba(var(--rx-accent-rgb), 0.2); }:is(html.light-theme, body.admin-body.light-theme) .chatbot-context-sidebar{
    border-left-color: rgba(var(--rx-accent-rgb), 0.13);
    background: linear-gradient(180deg, rgba(244,251,249,.99), rgba(237,247,245,.99));
    box-shadow: -8px 0 25px rgba(15,71,66,.08);
}

@media (max-width: 991.98px) {body.admin-body .chatbot-context-sidebar{ display: none; }body.admin-body .admin-content.with-chatbot-context{ margin-right: 0; }
}




/* Items the customer's plan does not include: still visible, but dimmed, with a lock, and not clickable. */
.plan-locked,
a.plan-locked{opacity:.5; cursor:not-allowed !important; pointer-events:auto; filter:grayscale(.4);}
a.plan-locked:not([href]){text-decoration:none;}
a.plan-locked:hover,.plan-locked:hover{transform:none !important; box-shadow:none !important;}
.sidebar-bot-submenu .plan-locked{display:flex; align-items:center; gap:.5rem; padding:.45rem .75rem; border-radius:10px; color:var(--rx-muted);}
.plan-lock-ico{margin-inline-start:auto; font-size:.8rem; color:var(--rx-muted);}
.kb-act.plan-locked::after,.tab-trigger.plan-locked::after{content:"\F47B"; font-family:"bootstrap-icons"; font-size:.75rem; margin-inline-start:.35rem;}
/* Stylesheet: admin-theme-pages.css — body.admin-body */:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content,
html[data-admin-palette] body.admin-body .content-wrapper,
html[data-admin-palette] body.admin-body :is(.kb-wrapper, .policies-wrapper, .simulator-wrapper, .sim-wrapper,
    .dashboard-page, .dashboard-wrapper, .analytics-page, .analytics-wrapper, .content-page,
    .chats-page, .widget-page, .surveys-page, .reports-page, .live-dashboard-page,
    .requests-wrapper, .details-wrapper, .webhook-wrapper, .history-wrapper, .receipt-wrapper,
    .purchase-wrapper, .callback-wrapper, .apikey-wrapper, .pricing-wrapper, .form-wrapper,
    .edit-wrapper, .delete-wrapper, .create-wrapper, .transactions-wrapper,
    .account-wrapper, .page-wrapper, .admin-page, .settings-page, .packages-page,
    .sim-page, .analytics-dashboard, .dash, .surveys-page, .live-dash-page,
    .workspace-dashboard){
    background: var(--theme-page) !important;
    color: var(--theme-text) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( .card, .glass-card, .stat-card, .metric-card, .summary-card, .info-card, .form-card, .settings-card, .content-card, .chart-card, .table-card, .empty-card, .purchase-card, .receipt-card, .api-card, .webhook-card, .document-card, .config-card, .model-card, .kb-card, .kb-summary-tile, .kb-action-group, .kb-stat, .panel, .analytics-panel, .form-panel, .list-panel, .detail-panel, .settings-panel, .table-panel, .content-panel, .preview-panel, .summary-panel, .glass-panel, .workspace-panel, .section-panel, .stat-mini, .feature-item, .step-card, .modal-content, .dropdown-menu, .accordion-item, .list-group-item ){
    background: var(--theme-surface) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
    box-shadow: var(--theme-shadow);
}html[data-admin-palette] body.admin-body .admin-content :is(
    [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "],
    [class$="-tile"], [class*="-tile "]
):not(.alert-card):not(.success-card):not(.danger-card):not(.warning-card){
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(.kb-wrapper, .policies-wrapper, .sim-page,
    .requests-wrapper, .details-wrapper, .webhook-wrapper, .history-wrapper, .receipt-wrapper,
    .purchase-wrapper, .callback-wrapper, .apikey-wrapper, .page-wrapper)::before{
    background: radial-gradient(circle at 18% 10%, rgba(var(--theme-accent-rgb), .14), transparent 48%) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(.sim-bg-orb-1, .sim-bg-orb-2, .sim-bg-orb-3){
    background: radial-gradient(circle, rgba(var(--theme-accent-rgb), .14), transparent 70%) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .card-header, .card-header-modern, .card-header-custom, .panel-header, .section-header,
    .table-header, .modal-header, .modal-footer, .accordion-header, .accordion-button,
    thead, .table thead, .policies-table thead
){
    background: var(--theme-surface-2) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(table, .table, .policies-table){
    --bs-table-bg: transparent;
    --bs-table-color: var(--theme-text-2);
    --bs-table-border-color: var(--theme-border-soft);
    color: var(--theme-text-2) !important;
    border-color: var(--theme-border-soft) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(td, th, tr, .table > :not(caption) > * > *){
    border-color: var(--theme-border-soft) !important;
    color: inherit;
}html[data-admin-palette] body.admin-body .admin-content tbody tr:hover,html[data-admin-palette] body.admin-body .admin-content .list-group-item:hover{
    background: var(--theme-hover) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .form-control, .form-select, .form-control-dark, .input-group-text, .search-input ){
    background-color: var(--theme-input) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
    box-shadow: none;
}html[data-admin-palette] body.admin-body .admin-content :is(input, textarea, select, .form-control, .form-select):focus{
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), .14) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(input, textarea)::placeholder{ color: var(--theme-faint) !important; opacity: 1; }html[data-admin-palette] body.admin-body .admin-content select option{ background: var(--theme-surface); color: var(--theme-text); }:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is(h1, h2, h3, h4, h5, h6, legend, .card-title, .section-title, .page-title, .modal-title, .kb-name, .kb-stat-num, .stat-mini-value, .metric-value, .form-label, label){ color: var(--theme-text) !important; }html[data-admin-palette] body.admin-body .admin-content :is(p, small, .text-muted, .section-sub, .page-subtitle,
    .form-text, .form-hint, .card-subtitle, .kb-slug, .kb-stat-label, .stat-mini-label,
    .policy-description, .empty-state p){ color: var(--theme-muted) !important; }:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( .value, .number, .count, .total, .amount, .balance, [class$="-value"], [class$="-number"], [class$="-count"], [class$="-total"], [class$="-amount"], [class$="-balance"], [class$="-num"], [class*=" value"], [class*=" number"], [class*=" count"] ):not([class*="success"]):not([class*="danger"]):not([class*="warning"]):not([class*="muted"]){
    color: var(--theme-text) !important;
    opacity: 1 !important;
}html.light-theme[data-admin-palette] body.admin-body .admin-content :is(
    .card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "],
    [class$="-tile"], [class*="-tile "]
) :is(strong, b, .fw-bold, [class$="-value"], [class$="-num"], [class$="-count"]){
    color: var(--theme-text) !important;
    opacity: 1 !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is(.section-title, .page-title i, .card-title i, .card-header i, .card-header-modern i, .kb-action-group-head i, .kb-icon, .panel-icon, .header-content h1 i){ color: var(--theme-accent) !important; }html[data-admin-palette] body.admin-body .admin-content :is(.btn-primary, .btn-primary-glow, .btn-create,
    .btn-create-lg, .primary-button, .action-primary){
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important;
    border-color: var(--theme-accent-strong) !important;
    color: var(--rx-on-brand) !important;
    box-shadow: 0 8px 22px rgba(var(--theme-accent-rgb), .22) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(.nav-link.active, .tab.active, .tab.selected,
    .filter-btn.active, .theme-card.active, .btn-outline-primary, .page-link.active){
    background: var(--theme-hover) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-accent) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .chatbot-context-sidebar{
    background: linear-gradient(180deg, var(--theme-surface), var(--theme-page-alt)) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text-2) !important;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(.sidebar-bot-switcher select, .sidebar-bot-name,
    .sidebar-bot-overview, .sidebar-bot-group > summary, .sidebar-bot-submenu a){
    color: var(--theme-text-2) !important;
    border-color: var(--theme-border-soft) !important;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(.sidebar-bot-overview.active,
    .sidebar-bot-group > summary.active, .sidebar-bot-submenu a.active){
    background: var(--theme-hover) !important;
    color: var(--theme-accent) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is(.simulator-card, .sim-card, .policy-card, .request-card, .api-key-card, .pricing-card, .package-card, .transaction-card, .conversation-card, .chat-card, .source-card, .upload-card, .widget-card, .survey-card, .report-card, .live-card, .operator-card){
    background: var(--theme-surface) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .history-wrapper :is(.section-tabs, .pkg-item, .credit-meter){
    background: var(--theme-surface-2) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text-2) !important;
}html[data-admin-palette] body.admin-body .history-wrapper :is(.sum-info .value, .pkg-name, .card-head h5){
    color: var(--theme-text) !important;
    opacity: 1 !important;
}html[data-admin-palette] body.admin-body .history-wrapper :is(.sum-info .label, .pkg-date, .ref-id, .meter-note){
    color: var(--theme-muted) !important;
}html[data-admin-palette] body.admin-body .history-wrapper .card-head{
    background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .14), rgba(var(--theme-accent-rgb), .05)) !important;
    border-color: var(--theme-border-soft) !important;
}html[data-admin-palette] body.admin-body .history-wrapper .meter-bar{ background: var(--theme-surface-3) !important; }html[data-admin-palette] body.admin-body .history-wrapper .tab-btn:not(.active){ color: var(--theme-muted) !important; }:root[data-admin-palette]:where(:has(> body.admin-body)) .analytics-dashboard{ color: var(--theme-text) !important; }html[data-admin-palette] body.admin-body .analytics-kpi,html[data-admin-palette] body.admin-body .analytics-panel,html[data-admin-palette] body.admin-body .overview-panel,html[data-admin-palette] body.admin-body .feature-card{
    background: var(--theme-surface) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text) !important;
    box-shadow: var(--theme-shadow);
}html[data-admin-palette] body.admin-body .analytics-kpi > strong,html[data-admin-palette] body.admin-body .content-metrics strong,html[data-admin-palette] body.admin-body .credit-item strong,html[data-admin-palette] body.admin-body .knowledge-total strong,html[data-admin-palette] body.admin-body .mode-list strong{
    color: var(--theme-text) !important;
    opacity: 1 !important;
}html[data-admin-palette] body.admin-body .analytics-dashboard :is(.kpi-caption, .analytics-chip, .analytics-table a){
    color: var(--theme-text-2) !important;
}html[data-admin-palette] body.admin-body .analytics-dashboard :is(.analytics-header p, .analytics-header-meta > span,
    .analytics-panel-heading p, .analytics-kpi small, .kpi-footnote, .chart-footnote,
    .mode-list span, .content-metrics span, .knowledge-total span, .credit-item > span,
    .analytics-table thead th, .analytics-table small, .table-bot-status){
    color: var(--theme-muted) !important;
}html[data-admin-palette] body.admin-body .analytics-dashboard :is(.analytics-chip, .analytics-button,
    .kpi-caption i, .table-detail){
    background: var(--theme-surface-2) !important;
    border-color: var(--theme-border-soft) !important;
}html[data-admin-palette] body.admin-body .analytics-dashboard :is(.rating-track, .table-volume > span,
    .knowledge-progress){ background: var(--theme-surface-3) !important; }html[data-admin-palette] body.admin-body .analytics-dashboard :is(.analytics-eyebrow, .panel-icon,
    .analytics-no-data > i, .analytics-button:hover, .analytics-table a:hover,
    .table-bot-status.active, .credit-item a){ color: var(--theme-accent) !important; }html[data-admin-palette] body.admin-body .analytics-dashboard :is(.table-volume b, .knowledge-progress span){
    background: var(--theme-accent) !important;
}html.light-theme[data-admin-palette] body.admin-body .analytics-table tbody tr:hover{
    background: var(--theme-hover) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .kb-wrapper .badge-credit{
    background: var(--theme-surface-2) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text-2) !important;
    box-shadow: none !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .btn-operator-glow{
    background: transparent !important;
    border: 1px solid var(--theme-accent-strong) !important;
    color: var(--theme-accent-strong) !important;
    box-shadow: none !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .btn-operator-glow:hover{
    background: var(--theme-hover) !important;
    color: var(--theme-accent-strong) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .btn-primary-glow{
    background: var(--theme-accent-strong) !important;
    border: 1px solid var(--theme-accent-strong) !important;
    color: var(--rx-ink) !important;
    box-shadow: 0 7px 18px rgba(var(--theme-accent-rgb), .22) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is(.badge:not(.bg-success):not(.bg-danger):not(.bg-warning), .chip:not(.success):not(.danger):not(.warning), .tag, .policy-key-badge, .keyword-pill){
    background: var(--theme-surface-3) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text-2) !important;
}

@media (prefers-reduced-motion: reduce) {html[data-admin-palette] body.admin-body .admin-content *,html[data-admin-palette] body.admin-body .chatbot-context-sidebar *{ transition-duration: .01ms !important; }
}:root.light-theme[data-admin-palette]:where(:has(> body.admin-body)) .admin-wrapper::before,
html.light-theme[data-admin-palette] body.admin-body .admin-wrapper::after,
html.light-theme[data-admin-palette] body.admin-body .admin-content :is(
    .dashboard-wrapper, .simulator-wrapper, .policies-wrapper, .apikey-wrapper,
    .create-wrapper, .edit-wrapper, .delete-wrapper, .page-wrapper, .details-wrapper,
    .support-wrapper, .history-wrapper, .purchase-wrapper, .callback-wrapper,
    .webhook-wrapper, .requests-wrapper, .kb-wrapper, .sim-page
)::before,
html.light-theme[data-admin-palette] body.admin-body .admin-content :is(
    .dashboard-wrapper, .simulator-wrapper, .policies-wrapper, .apikey-wrapper,
    .create-wrapper, .edit-wrapper, .delete-wrapper, .page-wrapper, .details-wrapper,
    .support-wrapper, .history-wrapper, .purchase-wrapper, .callback-wrapper,
    .webhook-wrapper, .requests-wrapper, .kb-wrapper, .sim-page
)::after{
    content: none !important;
    display: none !important;
    animation: none !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-footer{
    background: linear-gradient(135deg, var(--theme-page-alt), var(--theme-surface)) !important;
    border-color: var(--theme-border) !important;
}html[data-admin-palette] body.admin-body .admin-footer :is(small, i){ color: var(--theme-muted) !important; }html[data-admin-palette] body.admin-body .admin-footer .roxan-mark{ background: var(--theme-accent) !important; }html[data-admin-palette] body.admin-body :is(.user-avatar, .user-avatar-btn .user-avatar){
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important;
    box-shadow: 0 4px 15px rgba(var(--theme-accent-rgb), .28) !important;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-nav .nav-link:not(.active) > i{
    color: var(--theme-accent) !important;
    opacity: .62;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-nav .nav-link:hover{
    background: rgba(var(--theme-accent-rgb), .09) !important;
    color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-nav .nav-link:hover > i{
    color: var(--theme-accent) !important;
    opacity: 1;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-nav .nav-link.active::after{
    background: linear-gradient(180deg, var(--theme-accent), var(--theme-accent-strong)) !important;
    box-shadow: 0 0 8px rgba(var(--theme-accent-rgb), .35) !important;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3::before{
    background: linear-gradient(90deg, transparent, rgba(var(--theme-accent-rgb), .22), transparent) !important;
}html[data-admin-palette] body.admin-body .admin-sidebar-permanent .sidebar-heading,html[data-admin-palette] body.admin-body .chatbot-context-sidebar .sidebar-bot-context-label,html[data-admin-palette] body.admin-body .chatbot-context-sidebar .sidebar-bot-preview{
    color: color-mix(in srgb, var(--theme-accent) 72%, var(--theme-muted)) !important;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(
    .sidebar-bot-context-label i, .sidebar-bot-preview i,
    .sidebar-bot-overview:not(.active) i,
    .sidebar-bot-group > summary:not(.active) > i:first-child,
    .sidebar-bot-submenu a:not(.active) i
){
    color: var(--theme-accent) !important;
    opacity: .62;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(
    .sidebar-bot-overview.active i, .sidebar-bot-group > summary.active > i:first-child,
    .sidebar-bot-submenu a.active i
){ color: var(--theme-accent) !important; opacity: 1; }html[data-admin-palette] body.admin-body .chatbot-context-sidebar .sidebar-bot-submenu{
    border-color: rgba(var(--theme-accent-rgb), .20) !important;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(.sidebar-bot-preview:hover,
    .sidebar-bot-overview:hover, .sidebar-bot-group > summary:hover,
    .sidebar-bot-submenu a:hover){
    background: rgba(var(--theme-accent-rgb), .08) !important;
    color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .chatbot-context-sidebar :is(.sidebar-bot-switcher select,
    .sidebar-bot-name){
    background-color: rgba(var(--theme-accent-rgb), .08) !important;
    border-color: rgba(var(--theme-accent-rgb), .20) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .kb-wrapper .kb-icon{
    color: var(--theme-accent) !important;
    background: rgba(var(--theme-accent-rgb), .13) !important;
    border-color: rgba(var(--theme-accent-rgb), .24) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper :is(.kb-action-group-head, .kb-action-group-head i){
    color: color-mix(in srgb, var(--theme-accent) 76%, var(--theme-muted)) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .kb-act:not(.kb-act-danger):not(.kb-act-live):not(.kb-act-warn){
    color: var(--theme-accent) !important;
    background: rgba(var(--theme-accent-rgb), .09) !important;
    border-color: rgba(var(--theme-accent-rgb), .20) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .kb-act:not(.kb-act-danger):not(.kb-act-live):not(.kb-act-warn):hover{
    color: var(--rx-ink) !important;
    background: var(--theme-accent-strong) !important;
    border-color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper .kb-card:hover{
    background: rgba(var(--theme-accent-rgb), .055) !important;
    border-color: rgba(var(--theme-accent-rgb), .30) !important;
}html[data-admin-palette] body.admin-body .kb-wrapper :is(.section-title, .glass-card h4 i){
    color: var(--theme-accent) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( .soft-link, .btn-copy, .btn-copy-sm, .btn-edit, .btn-edit-soft, .reprocess-btn, .pagination a, .page-link, .overview-button, .table-detail, .policy-key-code, .policy-key-badge, .api-key-badge, .pkg-credits-badge, .credits-badge, .hero-credits, .badge-soft, .slug, .transaction-id, .detail-value code, .tip-content code, .endpoint-path, code:not(.language-json) ){
    color: var(--theme-accent) !important;
    border-color: rgba(var(--theme-accent-rgb), .24) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .btn-submit, .btn-create, .btn-create-lg, .btn-primary, .btn-primary-glow,
    .btn-save, .btn-save-modal, .btn-add, .btn-purchase, .btn-filter,
    .search-form button, .sim-select-all-btn, .sim-submit-btn,
    .page-item.active .page-link, .pagination .active,
    .tab-btn.active, .tab-trigger.active, .channel-tab.active, .chan-tab.active,
    .tabs a.active,
    .page-btn.active, .action-primary
){
    background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important;
    border-color: var(--theme-accent-strong) !important;
    color: var(--rx-on-brand) !important;
    box-shadow: 0 7px 20px rgba(var(--theme-accent-rgb), .22) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .btn-action:not(.btn-delete), .btn-icon-action, .btn-edit-pkg, .btn-outline-primary,
    .btn-print, .sim-copy-btn,
    .page-btn, .qty-btn, .pager-btn, .pager-num, .page-link-soft, .wt-close-btn
){
    background-color: rgba(var(--theme-accent-rgb), .09) !important;
    border-color: rgba(var(--theme-accent-rgb), .24) !important;
    color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .btn-action:not(.btn-delete), .btn-icon-action, .btn-edit-pkg, .btn-outline-primary,
    .btn-print, .sim-copy-btn,
    .page-btn, .qty-btn, .pager-btn, .pager-num, .page-link-soft, .wt-close-btn
):hover{
    background-color: rgba(var(--theme-accent-rgb), .16) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .btn-copy, .btn-copy-sm, .btn-edit, .btn-edit-soft, .reprocess-btn,
    .pagination a, .page-link, .overview-button, .table-detail,
    .policy-key-badge, .api-key-badge, .pkg-credits-badge,
    .credits-badge, .hero-credits, .badge-soft
){
    background-color: rgba(var(--theme-accent-rgb), .09) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(
    .btn-copy, .btn-copy-sm, .btn-edit, .btn-edit-soft, .reprocess-btn,
    .pagination a, .page-link, .overview-button, .table-detail
):hover{
    background-color: rgba(var(--theme-accent-rgb), .16) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .admin-content ::selection{
    background: rgba(var(--theme-accent-rgb), .30);
    color: var(--theme-text);
}html[data-admin-palette] body.admin-body .admin-content :is(.form-check-input:checked, .form-switch .form-check-input:checked){
    background-color: var(--theme-accent-strong) !important;
    border-color: var(--theme-accent-strong) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(.progress-bar, .meter-fill):not(.bg-success):not(.bg-danger):not(.bg-warning){
    background: linear-gradient(90deg, var(--theme-accent-strong), var(--theme-accent)) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( [style*="color:#0f766e"], [style*="color: #0f766e"], [style*="color:#0d9488"], [style*="color: #0d9488"], [style*="color:#14b8a6"], [style*="color: #14b8a6"], [style*="color:#2dd4bf"], [style*="color: #2dd4bf"], [style*="color:#5eead4"], [style*="color: #5eead4"], [style*="color:#99f6e4"], [style*="color: #99f6e4"], [style*="color:#115e59"], [style*="color: #115e59"] ){ color: var(--theme-accent) !important; }html[data-admin-palette] body.admin-body .admin-content :is(
    [style*="background:rgba(15, 118, 110"], [style*="background: rgba(15, 118, 110"],
    [style*="background:rgba(13, 148, 136"], [style*="background: rgba(13, 148, 136"]
){ background: rgba(var(--theme-accent-rgb), .10) !important; }html[data-admin-palette] body.admin-body .admin-content :is(
    [style*="background:linear-gradient(135deg, #0f766e"],
    [style*="background: linear-gradient(135deg, #0f766e"],
    [style*="background:linear-gradient(135deg,#0f766e"],
    [style*="background: linear-gradient(135deg,#0f766e"]
){ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important; }html[data-admin-palette] body.admin-body .admin-content :is(
    [style*="border:1px solid rgba(15, 118, 110"],
    [style*="border: 1px solid rgba(15, 118, 110"],
    [style*="border-right:3px solid #0f766e"],
    [style*="border-right: 3px solid #0f766e"]
){ border-color: rgba(var(--theme-accent-rgb), .25) !important; }html[data-admin-palette] body.admin-body .admin-content [style*="--accent:#0f766e"]{
    --accent: var(--theme-accent) !important;
}html[data-admin-palette] body.admin-body .admin-content [style*="--accent:#0d9488"]{
    --accent: var(--theme-accent) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .followups-app .fu-summary > div{
    background: linear-gradient(145deg, var(--theme-surface-2), var(--theme-surface)) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: var(--theme-shadow) !important;
}html[data-admin-palette] body.admin-body .followups-app :is(.fu-list-panel, .fu-detail-panel){
    background: var(--theme-surface) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: var(--theme-shadow) !important;
}html[data-admin-palette] body.admin-body .followups-app :is(.fu-item, .fu-customer, .fu-note, .fu-scopes){
    background: var(--theme-surface-2) !important;
    border-color: var(--theme-border-soft) !important;
}html[data-admin-palette] body.admin-body .followups-app :is(.fu-button:not(.secondary), .fu-scopes button[aria-pressed="true"]){
    background: var(--theme-accent-strong) !important;
    border-color: var(--theme-accent-strong) !important;
    color: var(--rx-ink) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is( .delivery-item, .info-row, .key-item, .metric-row, .request-item, .request-text, .switch-row, .section-tabs, .hchip, .qbar, .sim-loading-box ){
    background: var(--theme-surface-2) !important;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text-2) !important;
}html[data-admin-palette] body.admin-body .admin-content :is(.tabs a:hover, .chan-tab:hover, .page-btn:hover,
    .qty-btn:hover:not(:disabled), .pager-btn:hover, .pager-num:hover){
    background: rgba(var(--theme-accent-rgb), .12) !important;
    border-color: rgba(var(--theme-accent-rgb), .28) !important;
    color: var(--theme-accent) !important;
}:root[data-admin-palette]:where(:has(> body.admin-body)) .admin-content :is(.page-link-soft.active, .pager-num.is-current, .pager-links a.active){
    background: var(--theme-accent-strong) !important;
    border-color: var(--theme-accent-strong) !important;
    color: var(--rx-ink) !important;
}:root.light-theme[data-admin-palette]:where(:has(> body.admin-body)) .admin-content .btn-outline-light{
    color: var(--theme-text-2) !important;
    border-color: var(--theme-border-soft) !important;
    background: transparent !important;
}html.light-theme[data-admin-palette] body.admin-body .admin-content .btn-outline-light:hover{
    color: var(--theme-accent-strong) !important;
    border-color: var(--theme-border) !important;
    background: var(--theme-hover) !important;
}html.light-theme[data-admin-palette] body.admin-body .btn-close{ filter: none !important; }



/* Stylesheet: code-blocks.css — body.admin-body */
body.admin-body /* Styles for request/response code blocks */
.code-container{
  position: relative;
  margin-bottom: 1rem;
}body.admin-body .code-container .copy-btn{
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  font-size: 0.85rem;
  color: #343a40;
  border-color: rgba(0,0,0,0.08);
  background: var(--rx-surface);
}body.admin-body .code-container pre{
  max-height: 480px;
  overflow: auto;
  padding: 1rem;
  border-radius: 0.375rem;
  background: var(--rx-surface); /* white background */
  color: var(--rx-ink); /* dark text */
  border: 1px solid #e6e9ef;
  white-space: pre-wrap; /* wrap long JSON lines */
  word-break: break-word;
  font-family: var(--rx-font-mono);
  font-size: 0.875rem;
}body.admin-body .code-container .code-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:0.5rem;
}body.admin-body .code-container .code-title{
  font-weight:600;
  font-size:0.95rem;
  color: var(--rx-ink);
}



/* Stylesheet: dashboard.css — shared by /Dashboard, /KnowledgeBase/Workspace */
body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) /* Statistics dashboard */
.analytics-dashboard{ max-width: 1520px; margin: auto; color: var(--rx-ink); font-family: var(--rx-font); padding: 8px 0 24px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header{ display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-eyebrow{ display: block; font-size: .73rem; color: var(--rx-accent); margin-bottom: 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header h1{ font-size: 1.8rem; font-weight: 850; margin: 0 0 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header p,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading p{ color: var(--rx-muted); font-size: .78rem; margin: 0; line-height: 1.8; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header-meta{ display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header-meta > span{ color: var(--rx-muted); font-size: .76rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-button{ display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.13); border-radius: 10px; padding: 10px 14px; color: var(--rx-ink); text-decoration: none; font-size: .8rem; background: rgba(var(--rx-contrast-rgb), 0.02); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-button:hover{ color: var(--rx-accent); border-color: rgba(var(--rx-accent-rgb), 0.38); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpis{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; align-items: stretch; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi{ position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 16px; background: linear-gradient(135deg, #18253d, #111d30); overflow: hidden; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption{ display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .83rem; color: var(--rx-ink-soft); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption i{ display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(var(--rx-accent-rgb), 0.05); color: var(--rx-accent); font-size: 1rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi > strong{ font-size: 2rem; font-weight: 850; line-height: 1.3; margin: 10px 0 6px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi em{ font-size: .92rem; color: var(--rx-muted); font-style: normal; font-weight: 500; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi small{ font-size: .72rem; color: var(--rx-muted); line-height: 1.8; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-sparkline{ height: 36px; margin-top: auto; padding-top: 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-footnote{ font-size: .72rem; color: var(--rx-muted); padding-top: 12px; margin-top: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .rating-track{ height: 5px; background: rgba(var(--rx-contrast-rgb), 0.04); border-radius: 6px; margin-top: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .rating-track span{ display: block; height: 100%; background: var(--rx-warning-fill); border-radius: inherit; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .metric-positive{ color: var(--rx-accent) !important; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .metric-negative{ color: var(--rx-danger) !important; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .metric-warning{ color: var(--rx-warning) !important; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid{ display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel{ min-width: 0; padding: 20px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 16px; background: #111d30c9; display: flex; flex-direction: column; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading{ display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading h2{ font-size: .98rem; font-weight: 750; margin: 0 0 6px; line-height: 1.6; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chip{ display: inline-block; flex-shrink: 0; background: rgba(var(--rx-contrast-rgb), 0.02); border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 8px; color: var(--rx-ink-soft); font-size: .7rem; padding: 5px 9px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart{ position: relative; min-width: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.large{ height: 270px; flex: 1; min-height: 240px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.donut{ height: 190px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.compact{ height: 170px; margin-top: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .chart-footnote{ color: var(--rx-muted); font-size: .69rem; line-height: 1.9; margin: 10px 0 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list{ display: grid; gap: 12px; margin-top: auto; padding-top: 16px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list > div,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-counters > div{ display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .78rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list span{ color: var(--rx-muted); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list strong{ font-weight: 650; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-dot{ display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-left: 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-dot.bot{ background: var(--rx-brand-bright); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-dot.operator{ background: var(--rx-brand-bright); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-dot.waiting{ background: var(--rx-warning-fill); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-no-data{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 30px 12px; flex: 1; color: var(--rx-muted); text-align: center; font-size: .8rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-no-data > i{ font-size: 2rem; color: var(--rx-accent); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table-scroll{ overflow-x: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table{ width: 100%; border-collapse: collapse; font-size: .82rem; white-space: nowrap; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table thead th{ color: var(--rx-muted); font-weight: 500; font-size: .72rem; padding: 12px; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); background: rgba(var(--rx-contrast-rgb), 0.01); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table td,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody th{ padding: 14px 12px; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.04); text-align: right; vertical-align: middle; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody tr:last-child > *{ border-bottom: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody tr:hover{ background: rgba(var(--rx-contrast-rgb), 0.01); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table a{ color: var(--rx-ink-soft); text-decoration: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table a:hover{ color: var(--rx-accent); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table small{ display: block; color: var(--rx-muted); font-size: .65rem; margin-top: 3px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-bot-status{ display: block; margin-top: 4px; color: var(--rx-muted); font-size: .65rem; font-weight: 400; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-bot-status.active{ color: var(--rx-accent); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-volume{ min-width: 80px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-volume > span{ display: block; height: 3px; background: rgba(var(--rx-contrast-rgb), 0.03); border-radius: 6px; margin-top: 6px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-volume b{ display: block; height: 100%; background: rgba(var(--rx-accent-rgb), 0.5); border-radius: inherit; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-detail{ display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-bottom-grid{ display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .85fr); gap: 16px; margin-top: 16px; align-items: stretch; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .panel-icon{ color: var(--rx-accent); font-size: 1.2rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics{ display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics strong{ display: block; font-size: 1.2rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics span{ color: var(--rx-muted); font-size: .68rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-total{ display: flex; align-items: baseline; gap: 12px; margin: 12px 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-total strong{ font-size: 2rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-total span{ color: var(--rx-muted); font-size: .75rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-progress{ height: 6px; background: rgba(var(--rx-contrast-rgb), 0.03); border-radius: 8px; margin-bottom: 20px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-progress span{ display: block; height: 100%; border-radius: inherit; background: var(--rx-brand-bright); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-counters{ display: grid; gap: 16px; color: var(--rx-muted); margin-bottom: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .knowledge-counters strong{ color: var(--rx-ink); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item{ display: flex; flex-direction: column; gap: 7px; padding: 14px 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item + .credit-item{ border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.06); margin-top: auto; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item > span{ font-size: .77rem; color: var(--rx-muted); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item strong{ font-size: 1.6rem; line-height: 1.3; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item a{ color: var(--rx-accent); font-size: .72rem; text-decoration: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item a:hover{ color: var(--rx-accent); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item small{ font-size: .7rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-dashboard a:focus-visible{ outline: 2px solid var(--rx-accent); outline-offset: 4px; }
@media (max-width: 1200px) {body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-bottom-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel{ grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 30px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .analytics-panel-heading{ margin: 0; flex: 1; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .credit-item{ flex: 1; padding: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .credit-item + .credit-item{ border-top: 0; border-inline-start: 1px solid rgba(var(--rx-contrast-rgb), 0.06); padding-inline-start: 24px; margin-top: 0; } }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) /* Legacy selector links remain available for old bookmarks. */
.workspace-dashboard{ max-width: 1200px; margin: auto; color: var(--rx-ink); font-family: var(--rx-font); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-header{ display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-header h1{ font-size: 1.6rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-header p,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-muted{ color: var(--rx-muted); font-size: .85rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .eyebrow{ color: var(--rx-accent); font-size: .75rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-panel{ padding: 20px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 16px; background: #111d30; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-panel h2{ font-size: 1.1rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .feature-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .feature-card{ display: flex; flex-direction: column; gap: 12px; padding: 18px; color: var(--rx-ink); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 12px; text-decoration: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .feature-card i{ color: var(--rx-accent); font-size: 1.5rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .feature-card span{ color: var(--rx-muted); font-size: .78rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-button{ display: inline-block; padding: 10px 14px; color: var(--rx-on-brand); border: 1px solid rgba(var(--rx-contrast-rgb), 0.13); border-radius: 10px; text-decoration: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-button.primary{ background: var(--rx-brand); color: var(--rx-on-brand); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .overview-empty{ padding: 24px; text-align: center; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) /* Keep the dashboard inside the available width of the shared flex layout. */
.admin-content.dashboard-content{ min-width: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-dashboard,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table-scroll{ width: 100%; min-width: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header > div,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading > div{ min-width: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi > strong,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics strong,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item strong{ overflow-wrap: anywhere; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart canvas{ max-width: 100%; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-detail-label{ display: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-dot.operator{ background: var(--rx-brand-bright); }
@media (max-width: 900px) {body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header{ align-items: start; flex-direction: column; gap: 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header-meta{ width: 100%; justify-content: space-between; gap: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid{ grid-template-columns: minmax(0, 1fr); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel{ padding: 16px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid > .analytics-panel:last-child{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid > .analytics-panel:last-child .analytics-panel-heading{ grid-column: 1 / -1; margin-bottom: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.donut{ height: 170px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list{ padding: 0; margin: 0; }
}
@media (max-width: 600px) {body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-dashboard{ padding: 16px 12px 24px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header{ margin-bottom: 16px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header h1{ font-size: 1.45rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header-meta{ align-items: stretch; flex-direction: column; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-header-meta .analytics-button{ justify-content: center; min-height: 44px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpis{ gap: 10px; margin-bottom: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi{ padding: 14px; border-radius: 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption{ font-size: .74rem; gap: 6px; align-items: start; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption span{ line-height: 1.8; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption i{ width: 26px; height: 26px; flex-shrink: 0; font-size: .85rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi > strong{ font-size: clamp(1.25rem, 5.5vw, 1.7rem); margin: 8px 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi small,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-footnote{ font-size: .69rem; line-height: 1.9; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-sparkline{ height: 30px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .rating-track{ margin-top: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid,body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-bottom-grid{ gap: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel{ border-radius: 14px; padding: 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading{ gap: 8px; flex-wrap: wrap; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading h2{ font-size: .9rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-panel-heading p{ font-size: .71rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid > .analytics-panel:last-child{ display: flex; gap: 0; align-items: stretch; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-main-grid > .analytics-panel:last-child .analytics-panel-heading{ margin-bottom: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.large{ flex: none; height: 210px; min-height: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.donut{ height: 160px; width: 100%; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list{ width: 100%; gap: 10px; margin-top: 14px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .mode-list > div{ font-size: .74rem; padding: 6px 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-no-data{ padding: 22px 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-bottom-grid{ grid-template-columns: minmax(0, 1fr); margin-top: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics strong{ font-size: 1.1rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .content-metrics span{ font-size: .66rem; line-height: 1.8; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-chart.compact{ height: 160px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel{ grid-column: auto; flex-direction: column; align-items: stretch; gap: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .analytics-panel-heading{ flex: none; margin-bottom: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .credit-item{ flex: none; padding: 12px 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-panel .credit-item + .credit-item{ border-inline-start: 0; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.06); padding-inline-start: 0; margin: 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .credit-item a{ display: inline-flex; align-items: center; min-height: 40px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) /* Turn each chatbot row into a labeled card, keeping the same data and links. */
    .analytics-table-scroll{ overflow: visible; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table{ display: block; white-space: normal; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table thead{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody{ display: grid; gap: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody tr{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 12px; padding: 12px; background: rgba(var(--rx-contrast-rgb), 0.01); }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody th{ grid-column: 1 / -1; padding: 0 0 12px; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06); overflow-wrap: anywhere; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody th a{ display: inline-block; font-size: .88rem; line-height: 1.9; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody td{ min-width: 0; padding: 12px 0 4px; border: 0; font-size: 1rem; overflow-wrap: anywhere; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody td::before{ display: block; content: attr(data-label); font-size: .67rem; font-weight: 400; color: var(--rx-muted); margin-bottom: 6px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody td:last-child{ grid-column: 1 / -1; padding: 12px 0 0; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-table tbody td:last-child::before{ display: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-volume{ min-width: 0; padding-inline-end: 16px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-detail{ width: 100%; min-height: 42px; justify-content: space-between; padding: 8px 12px; font-size: .75rem; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .table-detail-label{ display: inline; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .chart-footnote{ font-size: .67rem; }
}
@media (max-width: 360px) {body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-dashboard{ padding-inline: 10px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi{ padding: 12px; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .kpi-caption i{ display: none; }body:is([data-style-page="/Dashboard"], [data-style-page="/KnowledgeBase/Workspace"]) .analytics-kpi em{ font-size: .76rem; }
}


/* Stylesheet: analytics/analytics-shell.css — shared by /KnowledgeBase/Analytics, /KnowledgeBase/AnalyticsAudience, /KnowledgeBase/AnalyticsBot, /KnowledgeBase/AnalyticsOperator, /KnowledgeBase/AnalyticsOperatorSession, /KnowledgeBase/AnalyticsSla, /KnowledgeBase/AnalyticsTopics, /KnowledgeBase/Chats, /KnowledgeBase/SurveyReports */
body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* فاز دوم گزارش‌گیری — پوسته‌ی مشترک. همه‌ی رنگ‌ها از --theme-* (admin-theme-pages.css) می‌آیند تا با
   هر پالت و هر تم (روشن/تیره) سازگار باشد؛ هیچ رنگ ثابتی برای متن یا پس‌زمینه اینجا نیست. */

.report-page{max-width:1440px;margin:auto;padding:20px;color:var(--theme-text);font-family: var(--rx-font)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-header h1{font-size:1.6rem;margin:.25rem 0;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-header p{color:var(--theme-muted);margin:0;font-size:.85rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .eyebrow{color:var(--theme-accent);font-size:.75rem;font-weight:600}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-actions{display:flex;gap:8px;flex-wrap:wrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-link{color:var(--rx-ink);background:var(--theme-accent-strong);border:0;border-radius:10px;padding:11px 15px;text-decoration:none;font-weight:700;font-size:.85rem;display:inline-flex;align-items:center;gap:6px;min-height:44px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-link.ghost{background:transparent;color:var(--theme-accent);border:1px solid var(--theme-border)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .table-export{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:7px 11px;border-radius:9px;border:1px solid rgba(var(--rx-success-rgb), 0.28);background:rgba(var(--rx-success-rgb), 0.08);color:var(--rx-success);text-decoration:none;font-size:.76rem;font-weight:800;white-space:nowrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .table-export:hover{background:rgba(var(--rx-success-rgb), 0.16);color:#dcfce7;border-color:rgba(var(--rx-success-rgb), 0.45)}html.light-theme body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .table-export{color:var(--rx-success);background:rgba(var(--rx-success-rgb), 0.1);border-color:rgba(var(--rx-success-rgb), 0.3)}html.light-theme body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .table-export:hover{color:var(--rx-success);background:rgba(var(--rx-success-rgb), 0.16);border-color:rgba(var(--rx-success-rgb), 0.45)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Sub-navigation: نمای کلی | عملکرد بات | SLA و کارشناسان | مخاطبان | موضوعات | رضایت */
.report-tabs{display:flex;gap:6px;overflow-x:auto;margin:16px 0;padding-bottom:2px;scrollbar-width:thin}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-tabs a{white-space:nowrap;color:var(--theme-muted);text-decoration:none;padding:10px 14px;border-radius:9px;background:var(--theme-hover);font-size:.85rem;min-height:40px;display:inline-flex;align-items:center}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-tabs a.active{color:var(--rx-ink);background:var(--theme-accent-strong);font-weight:700}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-tabs a:focus-visible{outline:2px solid var(--theme-accent);outline-offset:1px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Filter bar */
.report-filter{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;padding:14px;background:var(--theme-surface);border:1px solid var(--theme-border-soft);border-radius:14px;margin-bottom:16px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter label{display:grid;gap:6px;color:var(--theme-muted);font-size:.75rem;flex:1 1 140px;min-width:130px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter select,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter input{width:100%;min-height:44px;border:1px solid var(--theme-border-soft);background:var(--theme-input);color:var(--theme-text);border-radius:9px;padding:8px 10px;font-family:inherit}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter .filter-buttons{display:flex;gap:8px;flex:0 0 auto}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter button{min-height:44px;border-radius:9px;padding:0 16px;font-weight:700;font-size:.85rem;border:0;cursor:pointer}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter button[type=submit]{background:var(--theme-accent-strong);color:var(--rx-ink)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter button.clear{background:transparent;color:var(--theme-muted);border:1px solid var(--theme-border-soft)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter-summary{display:none;color:var(--theme-muted);font-size:.8rem;margin-bottom:10px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-alert{background:color-mix(in srgb,var(--rx-warning-fill) 18%,transparent);border:1px solid color-mix(in srgb,var(--rx-warning) 45%,transparent);color:var(--theme-text);padding:10px 14px;border-radius:10px;margin-bottom:14px;font-size:.85rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* KPI grid */
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi{background:var(--theme-surface);border:1px solid var(--theme-border-soft);border-radius:15px;padding:16px;display:grid;gap:8px;position:relative}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi .kpi-title{display:flex;align-items:center;gap:5px;color:var(--theme-muted);font-size:.78rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-metric-help{position:absolute;top:-1px;left:-1px;z-index:2;width:28px;height:26px;margin:0;padding:0;display:inline-flex;align-items:center;justify-content:center;color:var(--theme-accent);background:var(--theme-hover);border:1px solid var(--theme-accent);border-radius:15px 0 10px 0;cursor:pointer;transition:color .18s,background .18s,box-shadow .18s}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-metric-help i{color:inherit;font-size:.72rem;line-height:1}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-metric-help:hover,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-metric-help:focus-visible{color:var(--theme-accent-strong);background:var(--theme-surface-2);box-shadow:0 0 0 2px rgba(var(--theme-accent-rgb),.14);outline:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-help-popover{--bs-popover-max-width:310px;--bs-popover-border-width:1px;--bs-popover-border-color:var(--theme-border);--bs-popover-border-radius:12px;--bs-popover-bg:var(--theme-surface);--bs-popover-header-bg:transparent;--bs-popover-header-color:var(--theme-text);--bs-popover-body-color:var(--theme-text-2);text-align:right;direction:rtl;box-shadow:var(--theme-shadow)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-help-popover .popover-header{margin:0;padding:.85rem .9rem .45rem;border:0;font-size:.86rem;font-weight:850}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-help-popover .popover-body{padding:.2rem .9rem .9rem;line-height:1.9;font-size:.78rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi strong{font-size:1.6rem;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi small{color:var(--theme-muted);font-size:.72rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-change{font-size:.72rem;font-weight:600}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-change.good{color:var(--rx-success)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-change.bad{color:var(--rx-danger)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-change.neutral{color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Panels */
.report-panel{background:var(--theme-surface);border:1px solid var(--theme-border-soft);border-radius:15px;padding:17px;margin-top:14px;position:relative}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;flex-wrap:wrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-heading h2{font-size:1rem;margin:0 0 4px;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-heading p{color:var(--theme-muted);margin:0;font-size:.8rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-heading>span{color:var(--theme-accent);font-size:.75rem;font-weight:600}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-controls{display:flex;gap:6px;flex-wrap:wrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-controls button{background:var(--theme-hover);color:var(--theme-muted);border:0;border-radius:8px;padding:6px 10px;font-size:.72rem;cursor:pointer;min-height:32px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-controls button.active{background:var(--theme-accent-strong);color:var(--rx-ink)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .chart-wrap{position:relative;height:220px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .chart-wrap.tall{height:280px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .chart-wrap.short{height:160px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Metric list */
.metric-list{display:grid;gap:8px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .metric-list>div{display:flex;justify-content:space-between;gap:16px;padding:10px 10px 10px 38px;background:var(--theme-hover);border-radius:9px;position:relative}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-row-help,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-snapshot-help{position:absolute;left:9px;top:50%;transform:translateY(-50%);width:20px;height:20px;padding:0;display:grid;place-items:center;border:1px solid var(--theme-border);border-radius:6px;background:var(--theme-surface);color:var(--theme-accent);cursor:pointer}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-row-help i,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-snapshot-help i{font-size:.62rem;line-height:1}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-row-help:hover,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-row-help:focus-visible,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-snapshot-help:hover,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .analytics-snapshot-help:focus-visible{border-color:var(--theme-accent);background:var(--theme-surface-2);outline:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .metric-list span{color:var(--theme-text-2, var(--theme-muted))}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .metric-list b{color:var(--theme-text);flex-shrink:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .metric-list span.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Heatmap: CSS grid, plain DOM cells populated by analytics-heatmap.js */
.heatmap-wrap{overflow-x:auto;padding-bottom:8px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-grid{display:grid;grid-template-columns:78px repeat(24,minmax(24px,1fr));gap:4px;min-width:800px;width:100%;align-items:center}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell{width:100%;height:22px;border-radius:4px;background:var(--theme-hover);cursor:default}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.level-1{background:color-mix(in srgb,var(--theme-accent) 30%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.level-2{background:color-mix(in srgb,var(--theme-accent) 55%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.level-3{background:color-mix(in srgb,var(--theme-accent) 80%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.level-4{background:var(--theme-accent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.warn.level-1{background:color-mix(in srgb,var(--rx-warning-fill) 30%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.warn.level-2{background:color-mix(in srgb,var(--rx-warning-fill) 60%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.warn.level-3{background:color-mix(in srgb,var(--rx-warning-fill) 78%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell.warn.level-4{background:var(--rx-danger-fill)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-cell:focus-visible{outline:2px solid var(--theme-accent);outline-offset:1px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-label,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heat-hour{font-size:.65rem;color:var(--theme-muted);text-align:center}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heatmap-legend{display:flex;align-items:center;gap:6px;margin-top:10px;font-size:.7rem;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .heatmap-legend .swatch{width:12px;height:12px;border-radius:3px;display:inline-block}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Operator table: sortable, collapses to cards on mobile */
.operator-table{overflow:auto}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table table{width:100%;border-collapse:collapse;min-width:900px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table th,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td{text-align:right;padding:11px;border-bottom:1px solid var(--theme-border-soft);color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table th{color:var(--theme-muted);font-size:.72rem;font-weight:600;cursor:pointer;user-select:none;white-space:nowrap}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table th.sorted:after{content:' ▾';color:var(--theme-accent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table th.sorted.asc:after{content:' ▴'}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td small{display:block;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .status{font-size:.7rem;padding:3px 9px;border-radius:99px;background:var(--theme-hover);color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .status.online{background:color-mix(in srgb,var(--rx-success-fill) 25%,transparent);color:var(--rx-success)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Snapshot: visually separate from date-filtered KPIs */
.snapshot-panel{border:1px dashed var(--theme-border);background:transparent}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-panel .panel-heading>span{color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid div{display:grid;text-align:center;gap:5px;background:var(--theme-hover);padding:12px 34px 12px 12px;border-radius:10px;position:relative}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid .analytics-snapshot-help{left:auto;right:8px;top:8px;transform:none}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid b{font-size:1.2rem;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid span{color:var(--theme-muted);font-size:.75rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Alerts (action-oriented) */
.insight-list{display:grid;gap:8px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .insight{display:flex;gap:10px;align-items:flex-start;padding:12px;border-radius:10px;background:color-mix(in srgb,var(--rx-warning-fill) 12%,transparent);border:1px solid color-mix(in srgb,var(--rx-warning) 30%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .insight.critical{background:color-mix(in srgb,var(--rx-danger-fill) 12%,transparent);border-color:color-mix(in srgb,var(--rx-danger) 30%,transparent)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .insight i{font-size:1.1rem;flex-shrink:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .insight p{margin:0;font-size:.85rem;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .insight small{color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Text-metric ranked bars (topics page) */
.topic-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;background:var(--theme-hover);border-radius:9px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .tag-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex-shrink:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .topic-flags{display:flex;gap:6px;flex-wrap:wrap;font-size:.68rem;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .topic-flags .flag{padding:2px 7px;border-radius:99px;background:var(--theme-hover)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .topic-flags .flag.warn{color:var(--rx-warning)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .note{color:var(--theme-muted);font-size:.8rem;line-height:1.8;margin:12px 0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .empty{color:var(--theme-muted);font-size:.85rem;padding:18px 0;text-align:center}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .panel-link{display:inline-block;margin-top:12px;color:var(--theme-accent);text-decoration:none;font-size:.85rem;min-height:44px;line-height:44px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-footer-link{text-align:center;margin:20px 0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-footer-link a{color:var(--theme-accent);text-decoration:none;display:inline-block;min-height:44px;line-height:44px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* ===================== Responsive ===================== */
@media(max-width:1100px){
    .kpi-grid{grid-template-columns:repeat(3,1fr)}
    .report-grid.three{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-grid.two,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-grid.three{grid-template-columns:1fr}
}
@media(max-width:720px){body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-page{padding:12px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-header{flex-direction:column;align-items:stretch}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-link{width:100%;justify-content:center}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter{flex-direction:column;align-items:stretch}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter label{flex:1 1 auto}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter .filter-buttons{flex-direction:column}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-filter button{width:100%}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table{overflow:visible}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table table,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table tbody,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table tr,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td{display:block;min-width:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table thead{display:none}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table tr{padding:10px;background:var(--theme-hover);border-radius:10px;margin-bottom:9px;border:0}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:6px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td:before{content:attr(data-label);color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td:first-child{display:block;font-weight:700}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .operator-table td:first-child:before{display:none}
}
@media(max-width:420px){body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi-grid,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .snapshot-grid{grid-template-columns:1fr}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi strong{font-size:1.4rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-header h1{font-size:1.3rem}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .report-panel,body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .kpi{padding:14px}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .chart-wrap{height:180px}
}body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) /* Collapsible mobile filter (progressive enhancement; the form works even if JS never runs) */
@media(max-width:720px){
    .filter-toggle{display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;gap:8px;background:var(--theme-surface);border:1px solid var(--theme-border-soft);color:var(--theme-text);border-radius:10px;font-weight:700;margin-bottom:10px;cursor:pointer}
    .report-filter{display:none}
    .report-filter.open{display:flex}
    .report-filter-summary{display:block}
}
@media(min-width:721px){body:is([data-style-page="/KnowledgeBase/Analytics"], [data-style-page="/KnowledgeBase/AnalyticsAudience"], [data-style-page="/KnowledgeBase/AnalyticsBot"], [data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"], [data-style-page="/KnowledgeBase/AnalyticsTopics"], [data-style-page="/KnowledgeBase/Chats"], [data-style-page="/KnowledgeBase/SurveyReports"]) .filter-toggle{display:none}}



/* Stylesheet: analytics/analytics-operator.css — shared by /KnowledgeBase/AnalyticsOperator, /KnowledgeBase/AnalyticsOperatorSession, /KnowledgeBase/AnalyticsSla */
body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* داشبورد فعالیت کارشناس و صفحه‌ی جزئیات چت. Builds on analytics-shell.css and, like it, takes every
   text and surface colour from --theme-* so it follows the tenant's palette and light/dark theme. */

.crumbs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:.8rem;color:var(--theme-muted);margin:0 0 12px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .crumbs a{color:var(--theme-accent);text-decoration:none;min-height:32px;display:inline-flex;align-items:center}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Profile card */
.op-profile{display:flex;gap:16px;align-items:center;flex-wrap:wrap}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-avatar{width:64px;height:64px;border-radius:50%;flex-shrink:0;object-fit:cover;background:var(--theme-hover);
    display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:var(--theme-accent)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-identity{flex:1 1 220px;min-width:0}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-identity h2{margin:0 0 4px;font-size:1.15rem;color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-identity p{margin:0;color:var(--theme-muted);font-size:.8rem;line-height:1.9}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:2 1 480px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-facts div{background:var(--theme-hover);border-radius:9px;padding:9px 10px;display:grid;gap:3px;min-width:0}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-facts span{color:var(--theme-muted);font-size:.7rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-facts b{color:var(--theme-text);font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .status.dnd{background:color-mix(in srgb,var(--rx-warning-fill) 22%,transparent);color:var(--rx-warning)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .status.warn{background:color-mix(in srgb,var(--rx-danger-fill) 18%,transparent);color:var(--rx-danger)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Ranked bars (device mix, browsers, OS) */
.bar-list{display:grid;gap:9px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-row{display:grid;grid-template-columns:minmax(80px,auto) 1fr auto;gap:10px;align-items:center;font-size:.8rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-row>span{color:var(--theme-text)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-row>b{color:var(--theme-muted);font-weight:600;font-size:.75rem;white-space:nowrap}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-track{height:8px;border-radius:99px;background:var(--theme-hover);overflow:hidden}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-fill{height:100%;border-radius:99px;background:var(--theme-accent)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .sub-heading{font-size:.8rem;color:var(--theme-muted);margin:16px 0 8px;font-weight:600}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Small inline tags in tables */
.chip{display:inline-block;font-size:.68rem;padding:2px 8px;border-radius:99px;background:var(--theme-hover);color:var(--theme-muted);margin-inline-start:4px;white-space:nowrap}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .chip.accent{background:color-mix(in srgb,var(--theme-accent) 18%,transparent);color:var(--theme-accent)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .chip.good{background:color-mix(in srgb,var(--rx-success-fill) 20%,transparent);color:var(--rx-success)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .chip.bad{background:color-mix(in srgb,var(--rx-danger-fill) 18%,transparent);color:var(--rx-danger)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .row-link{color:var(--theme-accent);text-decoration:none;font-weight:700;white-space:nowrap;min-height:32px;display:inline-flex;align-items:center}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .mono{direction:ltr;unicode-bidi:embed;font-family: var(--rx-font-mono);font-size:.75rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Chat rows that open their transcript in place */
.operator-table tr.expandable{cursor:pointer}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.expandable:hover td,body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.expandable.open td{background:var(--theme-hover)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.expandable:focus-visible{outline:2px solid var(--theme-accent);outline-offset:-2px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .expand-hint{display:inline-flex;align-items:center;gap:4px;color:var(--theme-accent);font-size:.75rem;font-weight:600;white-space:nowrap;margin-inline-end:8px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .expand-hint i{transition:transform .15s}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) tr.expandable.open .expand-hint i{transform:rotate(180deg)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.row-detail>td{padding:0 0 12px;background:var(--theme-hover)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .row-detail-body{max-height:560px;overflow:auto;padding:14px;margin:0 10px;border-radius:12px;background:var(--theme-surface);border:1px solid var(--theme-border-soft)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Pager */
.pager{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:14px;flex-wrap:wrap;font-size:.8rem;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .pager a,body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .pager span.current{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:0 10px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .pager a{background:var(--theme-hover);color:var(--theme-text);text-decoration:none}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .pager span.current{background:var(--theme-accent-strong);color:var(--rx-ink);font-weight:700}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Timeline */
.timeline{list-style:none;margin:0;padding:0;display:grid;gap:0}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline li{display:grid;grid-template-columns:14px 1fr;gap:10px;position:relative;padding-bottom:14px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline li:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--theme-accent);margin-top:5px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline li:after{content:'';position:absolute;inset-inline-start:4px;top:18px;bottom:0;width:2px;background:var(--theme-border-soft)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline li:last-child:after{display:none}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline b{color:var(--theme-text);font-size:.85rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .timeline small{display:block;color:var(--theme-muted);font-size:.72rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Transcript */
.transcript{display:grid;gap:10px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg{max-width:78%;padding:10px 13px;border-radius:13px;background:var(--theme-hover);color:var(--theme-text);font-size:.85rem;line-height:1.9}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:.7rem;color:var(--theme-muted);margin-bottom:4px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg header b{color:var(--theme-text);font-size:.72rem}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg .body{white-space:pre-wrap;overflow-wrap:anywhere}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:.68rem;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* RTL: the visitor speaks from the start edge (right), the support side from the end edge (left). */
.msg.visitor{justify-self:start;border-start-start-radius:4px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.bot,body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.operator{justify-self:end;border-start-end-radius:4px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.operator{background:color-mix(in srgb,var(--theme-accent) 14%,var(--theme-surface))}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.operator.mine{background:color-mix(in srgb,var(--theme-accent) 24%,var(--theme-surface));border:1px solid color-mix(in srgb,var(--theme-accent) 40%,transparent)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.system{justify-self:center;max-width:90%;background:transparent;border:1px dashed var(--theme-border);color:var(--theme-muted);font-size:.75rem;text-align:center}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg.deleted .body{font-style:italic;color:var(--theme-muted)}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .day-divider{justify-self:center;font-size:.7rem;color:var(--theme-muted);background:var(--theme-hover);padding:3px 12px;border-radius:99px}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) /* Wide transcript beside a narrow timeline; stacks on smaller screens. */
.report-grid.aside{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:14px;align-items:start}

@media(max-width:900px){body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .report-grid.aside{grid-template-columns:1fr}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .op-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.row-detail>td{display:block;padding:0}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .operator-table tr.row-detail>td:before{display:none}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .row-detail-body{margin:0}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .msg{max-width:92%}body:is([data-style-page="/KnowledgeBase/AnalyticsOperator"], [data-style-page="/KnowledgeBase/AnalyticsOperatorSession"], [data-style-page="/KnowledgeBase/AnalyticsSla"]) .bar-row{grid-template-columns:minmax(70px,auto) 1fr auto}
}



/* Stylesheet: operator.css â€” body[data-style-page="/Pages/Operator/Index"] */body[data-style-page="/Pages/Operator/Index"] *{ font-family: var(--rx-font); box-sizing: border-box; }html:has(body[data-style-page="/Pages/Operator/Index"]),body[data-style-page="/Pages/Operator/Index"]{ height: 100%; margin: 0; }body[data-style-page="/Pages/Operator/Index"]{
            background: var(--bg);
            color: var(--text);
            overflow: hidden;
        }html.op-ready:where(:has(> body[data-style-page="/Pages/Operator/Index"])) body{ transition: background .25s ease, color .25s ease; }html:not(.op-ready) body[data-style-page="/Pages/Operator/Index"] *,html:not(.op-ready) body[data-style-page="/Pages/Operator/Index"] *::before,html:not(.op-ready) body[data-style-page="/Pages/Operator/Index"] *::after{ transition: none !important; animation-duration: 0s !important; }body[data-style-page="/Pages/Operator/Index"] ::-webkit-scrollbar{ width: 9px; height: 9px; }body[data-style-page="/Pages/Operator/Index"] ::-webkit-scrollbar-track{ background: transparent; }body[data-style-page="/Pages/Operator/Index"] ::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 99px; }body[data-style-page="/Pages/Operator/Index"] ::-webkit-scrollbar-thumb:hover{ background: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .console{
            display: grid;
            grid-template-columns: 336px minmax(0, 1fr) 312px;
            grid-template-rows: 62px minmax(0, 1fr);
            height: 100vh;
            gap: 0;
        }body[data-style-page="/Pages/Operator/Index"] .topbar{
            grid-column: 1 / -1;
            display: flex;
            align-items: center;
            gap: .9rem;
            padding: 0 1.1rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            z-index: 10;
        }body[data-style-page="/Pages/Operator/Index"] .logo{
            display: flex; align-items: center; gap: .55rem;
            font-weight: 800; font-size: .98rem; color: var(--text);
            white-space: nowrap;
        }body[data-style-page="/Pages/Operator/Index"] .logo .mark{
            width: 31px; height: 31px; border-radius: 9px;
            background: var(--op-bubble);
            display: flex; align-items: center; justify-content: center;
            color: var(--rx-ink); font-size: .95rem;
            box-shadow: 0 3px 12px var(--brand-ring);
        }body[data-style-page="/Pages/Operator/Index"] .spacer{ flex: 1; }body[data-style-page="/Pages/Operator/Index"] .select-soft{
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 10px;
            padding: .42rem .7rem;
            font-size: .83rem;
            font-family: inherit;
            cursor: pointer;
            max-width: 260px;
            /* A native <select> ignores text-overflow on itself in most browsers (only its
               popup list respects normal text flow) â€” min-width:0 lets it actually shrink inside
               the topbar's flex row instead of overflowing/clipping the option text mid-word. */
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }body[data-style-page="/Pages/Operator/Index"] .select-soft:focus{ outline: none; border-color: var(--brand); }body[data-style-page="/Pages/Operator/Index"] .pill{
            display: inline-flex; align-items: center; gap: .4rem;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 99px;
            padding: .34rem .78rem;
            font-size: .77rem;
            color: var(--text-2);
            white-space: nowrap;
        }body[data-style-page="/Pages/Operator/Index"] .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }body[data-style-page="/Pages/Operator/Index"] .dot.on{ background: var(--ok);     box-shadow: 0 0 0 3px var(--ok-soft); }body[data-style-page="/Pages/Operator/Index"] .dot.off{ background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }body[data-style-page="/Pages/Operator/Index"] .dot.wait{ background: var(--warn);   box-shadow: 0 0 0 3px var(--warn-soft); animation: css06b628e47c-pulse 1.6s ease-in-out infinite; }

        @keyframes css06b628e47c-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }body[data-style-page="/Pages/Operator/Index"] .icon-btn{
            width: 35px; height: 35px;
            display: inline-flex; align-items: center; justify-content: center;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: 10px;
            color: var(--text-2);
            cursor: pointer;
            font-size: .95rem;
            transition: all .15s;
            flex: none;
        }body[data-style-page="/Pages/Operator/Index"] .icon-btn:hover{ color: var(--text); border-color: var(--brand); background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .icon-btn.active{ color: var(--ok); border-color: var(--ok); }body[data-style-page="/Pages/Operator/Index"] /* Distinct color from the generic .active (green, meaning "on/enabled") â€” DND being active
           is a deliberate opt-out, not something to celebrate the way sound-on is. */
        #dndBtn.active{ color: var(--warn); border-color: var(--warn); }body[data-style-page="/Pages/Operator/Index"] .who{
            display: flex; align-items: center; gap: .5rem;
            padding-inline-start: .3rem;
        }body[data-style-page="/Pages/Operator/Index"] .avatar{
            width: 32px; height: 32px; border-radius: 50%;
            background: var(--op-bubble);
            display: flex; align-items: center; justify-content: center;
            color: var(--rx-ink); font-size: .78rem; font-weight: 700;
            flex: none; overflow: hidden;
        }body[data-style-page="/Pages/Operator/Index"] .avatar img{ width: 100%; height: 100%; object-fit: cover; }body[data-style-page="/Pages/Operator/Index"] .who .name{ font-size: .82rem; font-weight: 600; line-height: 1.2; }body[data-style-page="/Pages/Operator/Index"] .who .role{ font-size: .68rem; color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Panes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .pane{
            background: var(--bg-2);
            display: flex; flex-direction: column;
            min-height: 0;
        }body[data-style-page="/Pages/Operator/Index"] .pane-list{ border-inline-end: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .pane-info{ border-inline-start: 1px solid var(--border); overflow-y: auto; }body[data-style-page="/Pages/Operator/Index"] /* Phone-only elements: invisible and out of flow on desktop/tablet by default. Each one's
           real appearance rule lives inside the max-width:767px query below. */
        .settings-pane,body[data-style-page="/Pages/Operator/Index"] .bottom-nav,body[data-style-page="/Pages/Operator/Index"] .sheet-scrim,body[data-style-page="/Pages/Operator/Index"] .who-mobile-trigger,body[data-style-page="/Pages/Operator/Index"] .mobile-only-handle{ display: none; }body[data-style-page="/Pages/Operator/Index"] /* Search + filter tabs */
        .list-head{ padding: .8rem .85rem .55rem; border-bottom: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .search{
            position: relative; margin-bottom: .7rem;
        }body[data-style-page="/Pages/Operator/Index"] .search input{
            width: 100%;
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 11px;
            padding: .55rem 2.2rem .55rem .8rem;
            font-size: .82rem;
            font-family: inherit;
        }body[data-style-page="/Pages/Operator/Index"] .search input:focus{ outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }body[data-style-page="/Pages/Operator/Index"] .search input::placeholder{ color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] .search .ico{
            position: absolute; inset-inline-start: .7rem; top: 50%; transform: translateY(-50%);
            color: var(--text-3); font-size: .85rem; pointer-events: none;
        }body[data-style-page="/Pages/Operator/Index"] /* Positioned OUT of .console's grid flow (position: fixed) rather than as a normal grid
           child: .console has exactly two explicit rows (topbar, content) and places items by
           source order, so an extra in-flow child before .topbar was auto-placed into the topbar's
           own row and pushed every other pane down, collapsing the whole console to a blank page.
           A floating banner also matches what this element actually is â€” a transient notification,
           not a permanent layout row. */
        .incoming-transfers{
            position: fixed;
            top: 70px; right: 1.1rem; left: 1.1rem;
            z-index: 50;
            flex-direction: column; gap: .35rem;
            padding: .5rem .8rem;
            background: var(--warn-soft, #3a2f10);
            border: 1px solid var(--border);
            border-radius: 10px;
            box-shadow: 0 8px 24px rgba(0,0,0,.35);
        }body[data-style-page="/Pages/Operator/Index"] /* [hidden] and .incoming-transfers are both single-selector rules (equal specificity), so
           whichever is declared LAST in the cascade wins regardless of source order in the HTML â€”
           without this, "display: flex" here unconditionally beat the browser's own
           "[hidden] { display: none }" and the empty banner stayed visible at all times. */
        .incoming-transfers:not([hidden]){ display: flex; }body[data-style-page="/Pages/Operator/Index"] .transfer-offer{
            display: flex; align-items: center; justify-content: space-between; gap: .8rem;
            font-size: .82rem; color: var(--text-1);
        }body[data-style-page="/Pages/Operator/Index"] .transfer-offer-actions{ display: flex; gap: .4rem; flex-shrink: 0; }body[data-style-page="/Pages/Operator/Index"] .btn-mini{
            border: none; border-radius: 7px;
            padding: .3rem .7rem;
            font-size: .76rem; font-weight: 700; font-family: inherit;
            cursor: pointer;
        }body[data-style-page="/Pages/Operator/Index"] .btn-mini-ok{ background: var(--ok); color: var(--rx-ink); }body[data-style-page="/Pages/Operator/Index"] .btn-mini-bad{ background: transparent; color: var(--text-2); border: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .btn-claim-next{
            display: flex; align-items: center; justify-content: center; gap: .4rem;
            width: 100%;
            margin-top: .5rem;
            background: var(--brand); border: none; color: var(--rx-ink);
            padding: .5rem .6rem; border-radius: 9px;
            font-size: .8rem; font-weight: 700; font-family: inherit;
            cursor: pointer;
            transition: filter .15s, opacity .15s;
        }body[data-style-page="/Pages/Operator/Index"] .btn-claim-next:hover{ filter: brightness(1.1); }body[data-style-page="/Pages/Operator/Index"] .btn-claim-next:disabled{ opacity: .6; cursor: default; }body[data-style-page="/Pages/Operator/Index"] .tabs{ display: flex; gap: .3rem; }body[data-style-page="/Pages/Operator/Index"] .tab{
            flex: 1;
            display: flex; align-items: center; justify-content: center; gap: .3rem;
            padding: .44rem .3rem;
            background: transparent;
            border: 1px solid transparent;
            border-radius: 9px;
            color: var(--text-2);
            font-size: .78rem;
            font-family: inherit;
            font-weight: 600;
            cursor: pointer;
            transition: all .15s;
            white-space: nowrap;
        }body[data-style-page="/Pages/Operator/Index"] .tab:hover{ background: var(--surface-2); color: var(--text); }body[data-style-page="/Pages/Operator/Index"] .tab.sel{ background: var(--brand-soft); color: var(--brand-2); border-color: var(--brand-ring); }html[data-theme="light"] .tab.sel body[data-style-page="/Pages/Operator/Index"]{ color: var(--brand); }body[data-style-page="/Pages/Operator/Index"] .tab .n{
            min-width: 1.15rem;
            padding: 0 .28rem;
            border-radius: 99px;
            background: var(--border-strong);
            color: var(--text);
            font-size: .68rem;
            font-weight: 700;
            line-height: 1.35;
        }body[data-style-page="/Pages/Operator/Index"] .tab.sel .n{ background: var(--brand); color: var(--rx-ink); }body[data-style-page="/Pages/Operator/Index"] .tab .n.urgent{ background: var(--danger); color: var(--rx-ink); }body[data-style-page="/Pages/Operator/Index"] /* Filter/sort bar: a row of small selects under the tabs. Wraps on narrow panes rather than
           scrolling horizontally â€” four selects at native width already fit the desktop list pane,
           and wrap is the cheaper failure mode on anything narrower. */
        .filter-bar{
            display: flex; flex-wrap: wrap; gap: .4rem;
            margin-top: .55rem;
        }body[data-style-page="/Pages/Operator/Index"] .filter-select{
            flex: 1 1 auto; min-width: 0;
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text-2);
            border-radius: 9px;
            padding: .38rem .5rem;
            font-size: .74rem;
            font-family: inherit;
            cursor: pointer;
        }body[data-style-page="/Pages/Operator/Index"] .filter-select:focus{ outline: none; border-color: var(--brand); color: var(--text); }body[data-style-page="/Pages/Operator/Index"] /* #filterTeam is toggled via the [hidden] attribute (native browser behaviour, no class
           needed) on tab switch â€” a queued session has no operator yet, so it has no team; see
           GetOperatorTeamsAsync in OperatorController.cs and syncFilterVisibility() below. */

        .filter-daterange{
            display: flex; align-items: center; gap: .4rem;
            margin-top: .4rem;
            font-size: .72rem; color: var(--text-3);
        }body[data-style-page="/Pages/Operator/Index"] .filter-date-input{
            flex: 1; min-width: 0;
            background: var(--surface-2);
            border: 1px solid var(--border);
            color: var(--text);
            border-radius: 9px;
            padding: .34rem .5rem;
            font-size: .72rem;
            font-family: inherit;
        }body[data-style-page="/Pages/Operator/Index"] .filter-date-input:focus{ outline: none; border-color: var(--brand); }body[data-style-page="/Pages/Operator/Index"] .list-scroll{ flex: 1; overflow-y: auto; padding: .5rem .55rem .8rem; }body[data-style-page="/Pages/Operator/Index"] /* Conversation card */
        .conv{
            position: relative;
            padding: .7rem .75rem;
            margin-bottom: .35rem;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            cursor: pointer;
            transition: transform .12s, border-color .15s, background .15s;
        }body[data-style-page="/Pages/Operator/Index"] .conv:hover{ background: var(--surface-hover); border-color: var(--border-strong); transform: translateX(-2px); }body[data-style-page="/Pages/Operator/Index"] .conv.sel{ border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand-ring); }body[data-style-page="/Pages/Operator/Index"] .conv.closed{ opacity: .52; }body[data-style-page="/Pages/Operator/Index"] .conv.closed:hover{ opacity: .82; }body[data-style-page="/Pages/Operator/Index"] .conv-top{ display: flex; align-items: center; gap: .45rem; margin-bottom: .35rem; }body[data-style-page="/Pages/Operator/Index"] .conv-av{
            width: 30px; height: 30px; border-radius: 9px;
            background: var(--surface-2);
            border: 1px solid var(--border);
            display: flex; align-items: center; justify-content: center;
            font-size: .8rem; color: var(--text-2); flex: none;
        }body[data-style-page="/Pages/Operator/Index"] .conv-who{ flex: 1; min-width: 0; }body[data-style-page="/Pages/Operator/Index"] /* Both are spans, so they must be told to stack: as inline elements the name and the
           timestamp ran together on one line ("Ù†Ø§Ø´Ù†Ø§Ø³Ù‡Ù…ÛŒÙ† Ø­Ø§Ù„Ø§") and margin-top did nothing. */
        .conv-name{
            display: block;
            font-size: .85rem; font-weight: 650; color: var(--text);
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }body[data-style-page="/Pages/Operator/Index"] .conv-when{
            display: block;
            font-size: .68rem; color: var(--text-3);
            margin-top: .3rem;
        }body[data-style-page="/Pages/Operator/Index"] .unread{
            min-width: 1.25rem; height: 1.25rem;
            padding: 0 .32rem;
            border-radius: 99px;
            background: var(--danger);
            color: var(--rx-ink);
            font-size: .68rem; font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            flex: none;
        }body[data-style-page="/Pages/Operator/Index"] .conv-snippet{
            font-size: .77rem; color: var(--text-2);
            line-height: 1.55;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
            overflow: hidden;
            margin-bottom: .4rem;
        }body[data-style-page="/Pages/Operator/Index"] .chips{ display: flex; gap: .28rem; flex-wrap: wrap; align-items: center; }body[data-style-page="/Pages/Operator/Index"] .chip{
            display: inline-flex; align-items: center; gap: .22rem;
            font-size: .67rem; font-weight: 600;
            padding: .14rem .46rem;
            border-radius: 7px;
            border: 1px solid transparent;
            white-space: nowrap;
        }body[data-style-page="/Pages/Operator/Index"] .chip i{ font-size: .72rem; }body[data-style-page="/Pages/Operator/Index"] .chip-queue{ background: var(--warn-soft);   color: var(--warn);   border-color: var(--warn-soft); }body[data-style-page="/Pages/Operator/Index"] .chip-fail{ background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }body[data-style-page="/Pages/Operator/Index"] .chip-ask{ background: var(--info-soft);   color: var(--info);   border-color: var(--info-soft); }body[data-style-page="/Pages/Operator/Index"] .chip-offline{ background: var(--border);      color: var(--text-2); }body[data-style-page="/Pages/Operator/Index"] .chip-away{ background: var(--border);      color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] .chip-ok{ background: var(--ok-soft);     color: var(--ok); }body[data-style-page="/Pages/Operator/Index"] .chip-mine{ background: var(--brand-soft);  color: var(--brand-2); border-color: var(--brand-ring); }body[data-style-page="/Pages/Operator/Index"] /* Distinct from the other neutral "closed" outcomes (Ø±Ù‡Ø§Ø´Ø¯Ù‡/Ø§Ø³Ù¾Ù… use chip-offline) â€” this
           one means the operator actually replied and got no answer, worth catching the eye more
           than a routine close outcome does. */
        .chip-noreply{ background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); font-weight: 700; }body[data-style-page="/Pages/Operator/Index"] .tag-color-chip{
            display: inline-flex; align-items: center; gap: .38rem; max-width: 100%;
            padding: .25rem .48rem; border-radius: 7px; border: 1px solid var(--tag-border);
            background: var(--tag-soft); color: var(--text); font-size: .71rem; font-weight: 650;
            line-height: 1.2; white-space: nowrap;
        }body[data-style-page="/Pages/Operator/Index"] .tag-color-chip--compact{ padding: .15rem .42rem; font-size: .67rem; }body[data-style-page="/Pages/Operator/Index"] .tag-color-dot,body[data-style-page="/Pages/Operator/Index"] .tag-picker-swatch{
            width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--tag-color);
            box-shadow: 0 0 0 2px var(--tag-soft);
        }body[data-style-page="/Pages/Operator/Index"] .tag-more{
            display: inline-flex; align-items: center; justify-content: center; min-width: 25px;
            padding: .14rem .42rem; border-radius: 7px; background: var(--surface-2);
            border: 1px solid var(--border); color: var(--text-2); font-size: .67rem; font-weight: 750;
        }body[data-style-page="/Pages/Operator/Index"] .empty-state{
            padding: 2.6rem 1.2rem;
            text-align: center;
            color: var(--text-3);
        }body[data-style-page="/Pages/Operator/Index"] .empty-state i{ font-size: 2rem; opacity: .35; display: block; margin-bottom: .6rem; }body[data-style-page="/Pages/Operator/Index"] .empty-state .t{ font-size: .85rem; color: var(--text-2); margin-bottom: .2rem; }body[data-style-page="/Pages/Operator/Index"] .empty-state .s{ font-size: .75rem; }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Conversation pane â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .chat{ display: flex; flex-direction: column; min-height: 0; background: var(--bg); }body[data-style-page="/Pages/Operator/Index"] .chat-head{
            display: flex; align-items: center; gap: .6rem;
            padding: .62rem .9rem;
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            min-height: 58px;
        }body[data-style-page="/Pages/Operator/Index"] .chat-head .title{ font-size: .92rem; font-weight: 700; }body[data-style-page="/Pages/Operator/Index"] .chat-head .sub{
            font-size: .72rem; color: var(--text-2); margin-top: .12rem;
            display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
        }body[data-style-page="/Pages/Operator/Index"] .chat-body{
            flex: 1; overflow-y: auto;
            padding: 1.1rem .95rem .5rem;
            display: flex; flex-direction: column;
        }body[data-style-page="/Pages/Operator/Index"] .day-sep{
            align-self: center;
            font-size: .68rem; color: var(--text-3);
            background: var(--surface-2);
            border: 1px solid var(--border);
            padding: .18rem .7rem; border-radius: 99px;
            margin: .35rem 0 .8rem;
        }body[data-style-page="/Pages/Operator/Index"] .msg{ max-width: 74%; margin-bottom: .62rem; animation: css06b628e47c-rise .18s ease-out; }
        @keyframes css06b628e47c-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }body[data-style-page="/Pages/Operator/Index"] .msg .bubble{
            padding: .58rem .82rem;
            border-radius: var(--radius);
            font-size: .855rem; line-height: 1.75;
            white-space: pre-wrap; word-break: break-word;
            box-shadow: var(--shadow-sm);
        }body[data-style-page="/Pages/Operator/Index"] /* Markdown in bot/operator messages (see md()/mdInline() above) â€” mirrors the widget's own
           .bbl markdown styling (wwwroot/widget/chatbot.js) so a bot answer reads the same way here
           as it does for the visitor, using this page's own theme tokens instead of the widget's. */
        .msg .bubble strong{ font-weight: 700; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble em{ font-style: italic; color: var(--text-2); }body[data-style-page="/Pages/Operator/Index"] .msg .bubble .ln{ display: block; unicode-bidi: isolate; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble .ln-gap{ display: block; height: .5em; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble .ln-gap:first-child,body[data-style-page="/Pages/Operator/Index"] .msg .bubble .ln-gap:last-child{ display: none; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble code{
            background: var(--surface-2); padding: 1px 5px; border-radius: 4px;
            font-size: .82rem; font-family: var(--rx-font-mono); direction: ltr; unicode-bidi: isolate;
            display: inline; overflow-wrap: anywhere;
        }body[data-style-page="/Pages/Operator/Index"] .msg .bubble a{ color: var(--brand-2); text-decoration: underline; word-break: break-all; overflow-wrap: anywhere; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble ul,body[data-style-page="/Pages/Operator/Index"] .msg .bubble ol{
            padding-inline-start: 16px; margin: 4px 0; direction: rtl; list-style-position: inside;
        }body[data-style-page="/Pages/Operator/Index"] .msg .bubble li{ margin: 2px 0; line-height: 1.6; overflow-wrap: anywhere; direction: rtl; unicode-bidi: isolate; text-align: right; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble hr{ border: none; border-top: 1px solid var(--border); margin: 6px 0; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble h1,body[data-style-page="/Pages/Operator/Index"] .msg .bubble h2,body[data-style-page="/Pages/Operator/Index"] .msg .bubble h3,body[data-style-page="/Pages/Operator/Index"] .msg .bubble h4,body[data-style-page="/Pages/Operator/Index"] .msg .bubble h5,body[data-style-page="/Pages/Operator/Index"] .msg .bubble h6{ font-weight: 700; margin: 4px 0; line-height: 1.4; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble h1{ font-size: 1.05rem; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble h2{ font-size: .98rem; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble h3{ font-size: .92rem; }body[data-style-page="/Pages/Operator/Index"] .msg .bubble del{ opacity: .6; }body[data-style-page="/Pages/Operator/Index"] .msg .meta{
            font-size: .66rem; color: var(--text-3);
            margin-top: .22rem; padding: 0 .25rem;
            display: flex; align-items: center; gap: .3rem;
        }body[data-style-page="/Pages/Operator/Index"] /* Edit/delete buttons on an operator's own recent message â€” hidden until hovered so the
           transcript does not permanently carry two extra icons on every one of the operator's own
           bubbles. */
        .msg-actions{ display: none; margin-inline-start: .4rem; gap: .35rem; }body[data-style-page="/Pages/Operator/Index"] .msg:hover .msg-actions{ display: inline-flex; }body[data-style-page="/Pages/Operator/Index"] .msg-actions i{
            cursor: pointer; font-size: .78rem; opacity: .75;
            transition: opacity .15s;
        }body[data-style-page="/Pages/Operator/Index"] .msg-actions i:hover{ opacity: 1; }body[data-style-page="/Pages/Operator/Index"] .msg.deleted .bubble{ opacity: .6; }body[data-style-page="/Pages/Operator/Index"] /* Visitor bubbles sit on the opposite side from the operator/bot/system ones â€” in this
           RTL layout that means flex-end (visitor) vs. flex-start (operator/bot), the reverse of
           what the flex-start/flex-end names suggest at a glance. Each bubble's rounded "tail"
           corner (border-*-radius below) is flipped to match its new side so the tail still
           points toward the edge the bubble is anchored to. */
        .m-visitor{ align-self: flex-end; }body[data-style-page="/Pages/Operator/Index"] .m-visitor .bubble{
            background: var(--surface);
            border: 1px solid var(--border);
            border-end-end-radius: 5px;
        }body[data-style-page="/Pages/Operator/Index"] .m-bot{ align-self: flex-start; }body[data-style-page="/Pages/Operator/Index"] .m-bot .bubble{
            background: var(--brand-soft);
            border: 1px solid var(--brand-ring);
            color: var(--text);
            border-start-start-radius: 5px;
        }body[data-style-page="/Pages/Operator/Index"] .m-bot .tag{
            font-size: .64rem; color: var(--brand-2); font-weight: 700;
            margin-bottom: .2rem; padding: 0 .25rem;
        }body[data-style-page="/Pages/Operator/Index"] .m-operator{ align-self: flex-start; }body[data-style-page="/Pages/Operator/Index"] .m-operator .bubble{
            background: var(--op-bubble);
            color: var(--rx-ink);
            border-start-start-radius: 5px;
            border: none;
        }body[data-style-page="/Pages/Operator/Index"] .m-operator .meta{ justify-content: flex-start; }body[data-style-page="/Pages/Operator/Index"] .m-system{ align-self: center; max-width: 88%; margin: .5rem 0; }body[data-style-page="/Pages/Operator/Index"] .m-system .bubble{
            background: transparent;
            border: 1px dashed var(--border-strong);
            color: var(--text-2);
            font-size: .75rem;
            text-align: center;
            box-shadow: none;
            border-radius: 99px;
            padding: .32rem .95rem;
        }body[data-style-page="/Pages/Operator/Index"] /* The visitor's typing indicator. Aligned to the visitor's side (flex-end, matching
           .m-visitor above) and shaped like their bubble, so it reads as "they are writing" rather
           than as a stray element near the composer. Empty until needed, hence no height. */
        .typing-row{ align-self: flex-end; margin-bottom: .62rem; }body[data-style-page="/Pages/Operator/Index"] .typing-row:empty{ display: none; }body[data-style-page="/Pages/Operator/Index"] .typing-dots{
            display: inline-flex; gap: 4px; align-items: center;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            border-end-end-radius: 5px;
            padding: .6rem .8rem;
            box-shadow: var(--shadow-sm);
        }body[data-style-page="/Pages/Operator/Index"] .typing-dots span{
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--text-2);
            animation: css06b628e47c-bounce 1.3s infinite;
        }body[data-style-page="/Pages/Operator/Index"] .typing-dots span:nth-child(2){ animation-delay: .16s; }body[data-style-page="/Pages/Operator/Index"] .typing-dots span:nth-child(3){ animation-delay: .32s; }
        @keyframes css06b628e47c-bounce { 0%,60%,100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }body[data-style-page="/Pages/Operator/Index"] /* Composer */
        .composer{
            border-top: 1px solid var(--border);
            background: var(--surface);
            padding: .6rem .75rem .7rem;
            position: relative;
        }body[data-style-page="/Pages/Operator/Index"] .composer-box{
            display: flex; align-items: flex-end; gap: .5rem;
            background: var(--surface-2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: .4rem .5rem;
            transition: border-color .15s, box-shadow .15s;
        }body[data-style-page="/Pages/Operator/Index"] .composer-box:focus-within{ border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }body[data-style-page="/Pages/Operator/Index"] .composer textarea{
            flex: 1;
            background: transparent; border: none; outline: none;
            color: var(--text);
            font-size: .86rem; font-family: inherit; line-height: 1.7;
            resize: none; max-height: 130px; min-height: 24px;
            padding: .25rem .3rem;
        }body[data-style-page="/Pages/Operator/Index"] .composer textarea::placeholder{ color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] /* "Sending" visual state (stage 2, production audit R-05) â€” set on #msgInput while a
           SendOperatorMessage invoke is in flight, cleared in sendMessage's own .finally(). */
        .composer textarea.sending{ opacity: .6; }body[data-style-page="/Pages/Operator/Index"] .send-btn{
            width: 36px; height: 36px; flex: none;
            border-radius: 10px; border: none;
            background: var(--brand); color: var(--rx-ink);
            cursor: pointer; font-size: .95rem;
            display: flex; align-items: center; justify-content: center;
            transition: filter .15s, opacity .15s;
        }body[data-style-page="/Pages/Operator/Index"] .send-btn:hover:not(:disabled){ filter: brightness(1.12); }body[data-style-page="/Pages/Operator/Index"] .send-btn:disabled{ opacity: .4; cursor: default; }body[data-style-page="/Pages/Operator/Index"] /* Emoji picker â€” same interaction pattern as the widget's (chatbot.js), styled with this
           page's own design tokens instead of the widget's inline color literals. */
        .emoji-wrap{ position: relative; flex: none; }body[data-style-page="/Pages/Operator/Index"] .emoji-btn{
            width: 34px; height: 34px; flex: none;
            background: none; border: none; font-size: 18px; cursor: pointer;
            border-radius: 8px; display: flex; align-items: center; justify-content: center;
            transition: background .15s;
        }body[data-style-page="/Pages/Operator/Index"] .emoji-btn:hover{ background: var(--surface-2); }body[data-style-page="/Pages/Operator/Index"] .emoji-panel{
            display: none; position: absolute; bottom: calc(100% + 8px); right: 0;
            width: 230px; max-height: 170px; overflow-y: auto;
            grid-template-columns: repeat(7, 1fr);
            background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
            box-shadow: var(--shadow-sm); padding: .4rem; z-index: 40;
        }body[data-style-page="/Pages/Operator/Index"] .emoji-panel.show{ display: grid; }body[data-style-page="/Pages/Operator/Index"] .emoji-panel span{
            cursor: pointer; font-size: 18px; text-align: center; padding: 4px 0; border-radius: 6px;
            transition: background .15s;
        }body[data-style-page="/Pages/Operator/Index"] .emoji-panel span:hover{ background: var(--surface-2); }body[data-style-page="/Pages/Operator/Index"] .composer-foot{
            display: flex; align-items: center; gap: .5rem;
            margin-top: .4rem; padding: 0 .15rem;
            font-size: .7rem; color: var(--text-3);
        }body[data-style-page="/Pages/Operator/Index"] .mini-btn{
            display: inline-flex; align-items: center; gap: .28rem;
            background: transparent; border: 1px solid var(--border);
            color: var(--text-2);
            border-radius: 8px; padding: .26rem .6rem;
            font-size: .72rem; font-family: inherit; cursor: pointer;
            transition: all .15s;
        }body[data-style-page="/Pages/Operator/Index"] .mini-btn:hover{ color: var(--text); border-color: var(--brand); }body[data-style-page="/Pages/Operator/Index"] /* Canned responses popover */
        .canned-pop{
            position: absolute;
            bottom: calc(100% - .3rem); inset-inline: .75rem;
            background: var(--surface);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            max-height: 250px; overflow-y: auto;
            display: none; z-index: 40;
        }body[data-style-page="/Pages/Operator/Index"] .canned-pop.show{ display: block; }body[data-style-page="/Pages/Operator/Index"] .canned-item{ padding: .55rem .75rem; cursor: pointer; border-bottom: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .canned-item:last-child{ border-bottom: none; }body[data-style-page="/Pages/Operator/Index"] .canned-item:hover,body[data-style-page="/Pages/Operator/Index"] .canned-item.sel{ background: var(--brand-soft); }body[data-style-page="/Pages/Operator/Index"] .canned-item .t{ font-size: .82rem; font-weight: 650; margin-bottom: .1rem; }body[data-style-page="/Pages/Operator/Index"] .canned-item .t .sc{ color: var(--brand-2); font-weight: 700; }body[data-style-page="/Pages/Operator/Index"] .canned-item .b{ font-size: .73rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }body[data-style-page="/Pages/Operator/Index"] /* Claim / closed bars */
        .action-bar{
            padding: 1rem;
            background: var(--surface);
            border-top: 1px solid var(--border);
            text-align: center;
        }body[data-style-page="/Pages/Operator/Index"] .btn-claim{
            display: inline-flex; align-items: center; gap: .45rem;
            background: var(--ok); border: none; color: var(--rx-ink);
            padding: .62rem 1.7rem; border-radius: 11px;
            font-size: .9rem; font-weight: 700; font-family: inherit;
            cursor: pointer;
            box-shadow: 0 4px 16px var(--ok-soft);
            transition: filter .15s;
        }body[data-style-page="/Pages/Operator/Index"] .btn-claim:hover{ filter: brightness(1.1); }body[data-style-page="/Pages/Operator/Index"] .action-bar .note{ font-size: .74rem; color: var(--text-3); margin-top: .55rem; line-height: 1.7; }body[data-style-page="/Pages/Operator/Index"] .closed-bar{
            padding: .8rem 1rem;
            background: var(--surface-2);
            border-top: 1px solid var(--border);
            text-align: center;
            font-size: .78rem; color: var(--text-2);
        }body[data-style-page="/Pages/Operator/Index"] .closed-bar-noreply{
            background: var(--danger-soft);
            color: var(--danger);
            font-weight: 700;
        }body[data-style-page="/Pages/Operator/Index"] /* Close-with-outcome menu */
        .menu-wrap{ position: relative; }body[data-style-page="/Pages/Operator/Index"] .menu{
            position: absolute; top: calc(100% + .35rem); inset-inline-end: 0;
            background: var(--surface);
            border: 1px solid var(--border-strong);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            min-width: 190px; padding: .3rem;
            display: none; z-index: 50;
        }body[data-style-page="/Pages/Operator/Index"] .menu.show{ display: block; }body[data-style-page="/Pages/Operator/Index"] .menu-item{
            display: flex; align-items: center; gap: .5rem;
            width: 100%;
            padding: .5rem .6rem;
            background: transparent; border: none;
            color: var(--text);
            font-size: .82rem; font-family: inherit;
            border-radius: 8px; cursor: pointer;
            text-align: start;
        }body[data-style-page="/Pages/Operator/Index"] .menu-item:hover{ background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .menu-item i{ font-size: .9rem; }body[data-style-page="/Pages/Operator/Index"] .menu-sep{ height: 1px; background: var(--border); margin: .25rem .2rem; }body[data-style-page="/Pages/Operator/Index"] .tag-section-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }body[data-style-page="/Pages/Operator/Index"] .tag-section-head h4{ margin: 0; }body[data-style-page="/Pages/Operator/Index"] .tag-section-head > span{ color: var(--text-3); font-size: .66rem; }body[data-style-page="/Pages/Operator/Index"] .tag-chip-list{ display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }body[data-style-page="/Pages/Operator/Index"] .tag-empty-hint{ color: var(--text-3); font-size: .72rem; }body[data-style-page="/Pages/Operator/Index"] .tag-chip-remove{
            display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
            margin-inline-start: .05rem; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
            color: var(--text-2); background: transparent;
        }body[data-style-page="/Pages/Operator/Index"] .tag-chip-remove:hover{ color: var(--text); background: rgba(var(--rx-contrast-rgb), 0.1); }body[data-style-page="/Pages/Operator/Index"] .tag-add-btn{ border-style: dashed; }body[data-style-page="/Pages/Operator/Index"] .tag-picker{ width: min(320px, calc(100vw - 16px)); padding: 0; overflow: hidden; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-head{ display: flex; align-items: center; justify-content: space-between; padding: .72rem .8rem .45rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-head strong{ font-size: .82rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-head span{ color: var(--text-3); font-size: .68rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-search{
            display: flex; align-items: center; gap: .45rem; margin: 0 .65rem .55rem; padding: .48rem .6rem;
            border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text-3);
        }body[data-style-page="/Pages/Operator/Index"] .tag-picker-search:focus-within{ border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }body[data-style-page="/Pages/Operator/Index"] .tag-picker-search input{ min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .78rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-list{ max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 0 .45rem .5rem; scrollbar-width: thin; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-item{
            display: grid; grid-template-columns: 10px minmax(0,1fr) 18px; align-items: center; gap: .55rem;
            width: 100%; padding: .56rem .5rem; border: 0; border-radius: 8px; cursor: pointer;
            background: transparent; color: var(--text); font-family: inherit; text-align: start;
        }body[data-style-page="/Pages/Operator/Index"] .tag-picker-item:hover{ background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .tag-picker-item.is-selected{ background: var(--tag-soft); }body[data-style-page="/Pages/Operator/Index"] .tag-picker-item > i{ color: var(--tag-color); }body[data-style-page="/Pages/Operator/Index"] .tag-picker-name{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .79rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-empty{ padding: 1.4rem .7rem; color: var(--text-3); text-align: center; font-size: .76rem; }body[data-style-page="/Pages/Operator/Index"] .tag-picker-empty i{ display: block; margin-bottom: .35rem; font-size: 1.15rem; }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ My Profile modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .profile-avatar-row{ display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-preview{
            width: 64px; height: 64px; border-radius: 50%; flex: none;
            background: var(--brand-soft); color: var(--brand-2);
            display: flex; align-items: center; justify-content: center;
            font-size: 1.3rem; font-weight: 700; overflow: hidden;
        }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-preview img{ width: 100%; height: 100%; object-fit: cover; }body[data-style-page="/Pages/Operator/Index"] .profile-field{ margin-bottom: .8rem; }body[data-style-page="/Pages/Operator/Index"] .profile-field label{
            display: block; font-size: .78rem; color: var(--text-2); margin-bottom: .35rem;
        }body[data-style-page="/Pages/Operator/Index"] .profile-field input{
            width: 100%; box-sizing: border-box;
            background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
            padding: .58rem .75rem; color: var(--text); font-size: .85rem; font-family: inherit;
        }body[data-style-page="/Pages/Operator/Index"] .profile-field input:focus{ outline: none; border-color: var(--brand-ring); }body[data-style-page="/Pages/Operator/Index"] .profile-section-title{
            font-size: .78rem; font-weight: 700; color: var(--text-3);
            margin: 1.3rem 0 .7rem; letter-spacing: .02em;
        }body[data-style-page="/Pages/Operator/Index"] .profile-section-title:first-child{ margin-top: 0; }body[data-style-page="/Pages/Operator/Index"] .profile-btn{
            display: inline-flex; align-items: center; gap: .4rem;
            background: var(--brand); border: none; color: var(--rx-ink);
            padding: .55rem 1.1rem; border-radius: 9px;
            font-size: .82rem; font-weight: 700; font-family: inherit; cursor: pointer;
        }body[data-style-page="/Pages/Operator/Index"] .profile-btn:disabled{ opacity: .6; cursor: not-allowed; }body[data-style-page="/Pages/Operator/Index"] .profile-btn-ghost{
            background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
            padding: .5rem 1rem; border-radius: 9px; font-size: .8rem; font-family: inherit; cursor: pointer;
        }body[data-style-page="/Pages/Operator/Index"] .profile-msg{ font-size: .8rem; margin-top: .6rem; display: none; }body[data-style-page="/Pages/Operator/Index"] .profile-msg.show{ display: block; }body[data-style-page="/Pages/Operator/Index"] .profile-msg.ok{ color: var(--ok); }body[data-style-page="/Pages/Operator/Index"] .profile-msg.err{ color: var(--danger); }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Chatbot settings modal (owner-only) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        @keyframes css06b628e47c-cbsPopIn{
            from { opacity: 0; transform: translateY(10px) scale(.98); }
            to   { opacity: 1; transform: translateY(0) scale(1); }
        }
        @keyframes css06b628e47c-cbsFadeIn { from { opacity: 0; } to { opacity: 1; } }body[data-style-page="/Pages/Operator/Index"] #cbsOverlay{ animation: css06b628e47c-cbsFadeIn .15s ease; }body[data-style-page="/Pages/Operator/Index"] #cbsOverlay .cbs-sheet{ animation: css06b628e47c-cbsPopIn .18s cubic-bezier(.2,.8,.3,1); }body[data-style-page="/Pages/Operator/Index"] .cbs-sheet{
            background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 100%);
            box-shadow: var(--shadow-lg);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-header{
            padding: 1.1rem 1.3rem .9rem; border-bottom: 1px solid var(--border);
            display: flex; align-items: center; justify-content: space-between;
            background: linear-gradient(135deg, var(--brand-soft), transparent 60%);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-header-title{ display: flex; align-items: center; gap: .65rem; }body[data-style-page="/Pages/Operator/Index"] .cbs-header-icon{
            width: 38px; height: 38px; border-radius: 11px; flex: none;
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            display: flex; align-items: center; justify-content: center;
            color: var(--rx-on-brand); font-size: 1.05rem; box-shadow: 0 4px 14px rgba(var(--rx-accent-rgb), 0.35);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-header-title strong{ font-size: .96rem; color: var(--text); display: block; }body[data-style-page="/Pages/Operator/Index"] .cbs-header-title span{ font-size: .76rem; color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] .cbs-close-btn{
            width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
            background: var(--surface-2); color: var(--text-2); display: flex; align-items: center;
            justify-content: center; cursor: pointer; transition: all .12s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-close-btn:hover{ background: var(--danger-soft); color: var(--danger); border-color: transparent; }body[data-style-page="/Pages/Operator/Index"] .cbs-field textarea{
            width: 100%; box-sizing: border-box; resize: vertical;
            background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
            padding: .62rem .8rem; color: var(--text); font-size: .85rem; font-family: inherit;
            transition: border-color .12s, box-shadow .12s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-field textarea:focus,body[data-style-page="/Pages/Operator/Index"] .cbs-field input:focus{
            outline: none; border-color: var(--brand-ring); box-shadow: 0 0 0 3px var(--brand-soft);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-field input{ transition: border-color .12s, box-shadow .12s; }body[data-style-page="/Pages/Operator/Index"] .cbs-field .form-hint{ font-size: .74rem; color: var(--text-3); margin-top: .35rem; line-height: 1.6; }body[data-style-page="/Pages/Operator/Index"] /* Segmented pill tab strip, icon + label, sliding active pill */
        .cbs-tabs{
            display: flex; gap: .25rem; padding: .7rem 1.1rem; overflow-x: auto;
            border-bottom: 1px solid var(--border); background: var(--bg-2);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tab{
            display: flex; align-items: center; gap: .4rem;
            background: transparent; border: 1px solid transparent; border-radius: 10px;
            color: var(--text-3); font-family: inherit; font-size: .8rem; font-weight: 600;
            padding: .5rem .8rem; cursor: pointer; white-space: nowrap; transition: all .14s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tab i{ font-size: .92rem; }body[data-style-page="/Pages/Operator/Index"] .cbs-tab:hover{ color: var(--text); background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .cbs-tab.sel{
            color: var(--rx-on-brand); background: linear-gradient(135deg, var(--brand), var(--brand-2));
            box-shadow: 0 3px 10px rgba(var(--rx-accent-rgb), 0.35);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-pane{ display: none; animation: css06b628e47c-cbsFadeIn .18s ease; }body[data-style-page="/Pages/Operator/Index"] .cbs-pane.sel{ display: block; }body[data-style-page="/Pages/Operator/Index"] .cbs-section-title{
            font-size: .74rem; font-weight: 700; color: var(--brand-2);
            margin: 1.4rem 0 .8rem; letter-spacing: .03em; text-transform: uppercase;
            display: flex; align-items: center; gap: .4rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-section-title:first-child{ margin-top: 0; }body[data-style-page="/Pages/Operator/Index"] .cbs-section-title::after{ content: ""; flex: 1; height: 1px; background: var(--border); }body[data-style-page="/Pages/Operator/Index"] .cbs-switch-card{
            display: flex; align-items: center; justify-content: space-between; gap: 1rem;
            background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
            padding: .9rem 1rem; margin-bottom: .9rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-switch-card .t{ font-size: .85rem; color: var(--text); font-weight: 600; }body[data-style-page="/Pages/Operator/Index"] .cbs-switch-card .s{ font-size: .76rem; color: var(--text-3); margin-top: .2rem; line-height: 1.6; }body[data-style-page="/Pages/Operator/Index"] .cbs-switch{ position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }body[data-style-page="/Pages/Operator/Index"] .cbs-switch input{ opacity: 0; width: 0; height: 0; }body[data-style-page="/Pages/Operator/Index"] .cbs-switch .slider{
            position: absolute; inset: 0; background: var(--border-strong); border-radius: 24px;
            cursor: pointer; transition: background .18s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-switch .slider::before{
            content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
            background: var(--rx-surface); border-radius: 50%; transition: transform .18s;
            box-shadow: 0 1px 3px rgba(0,0,0,.3);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-switch input:checked + .slider{ background: linear-gradient(135deg, var(--brand), var(--brand-2)); }body[data-style-page="/Pages/Operator/Index"] .cbs-switch input:checked + .slider::before{ transform: translateX(-18px); }body[data-style-page="/Pages/Operator/Index"] .cbs-list{ display: flex; flex-direction: column; gap: .55rem; }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row{
            display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem;
            background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
            transition: border-color .12s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row:hover{ border-color: var(--border-strong); }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-icon{
            width: 32px; height: 32px; border-radius: 9px; flex: none;
            background: var(--brand-soft); color: var(--brand-2);
            display: flex; align-items: center; justify-content: center; font-size: .9rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row.is-inactive .cbs-row-icon{ background: var(--border); color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-main{ flex: 1; min-width: 0; }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-title{
            font-size: .85rem; color: var(--text); font-weight: 700;
            display: flex; align-items: center; gap: .4rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-badge-off{
            font-size: .68rem; font-weight: 600; color: var(--text-3); background: var(--border);
            padding: .1rem .45rem; border-radius: 6px;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-sub{
            font-size: .78rem; color: var(--text-3); margin-top: .25rem; line-height: 1.5;
            overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
            -webkit-line-clamp: 2; -webkit-box-orient: vertical;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-actions{ display: flex; gap: .2rem; flex: none; }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-actions button{
            width: 30px; height: 30px; border-radius: 8px; background: none; border: none;
            color: var(--text-3); cursor: pointer; font-size: .92rem;
            display: flex; align-items: center; justify-content: center; transition: all .12s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-actions button:hover{ color: var(--text); background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .cbs-list-row .cbs-row-actions button.danger:hover{ color: var(--danger); background: var(--danger-soft); }body[data-style-page="/Pages/Operator/Index"] .cbs-empty{
            color: var(--text-3); font-size: .82rem; padding: 2rem 1rem; text-align: center;
            border: 1px dashed var(--border-strong); border-radius: 12px;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-empty i{ display: block; font-size: 1.6rem; margin-bottom: .5rem; opacity: .5; }body[data-style-page="/Pages/Operator/Index"] .cbs-add-btn{
            display: flex; align-items: center; justify-content: center; gap: .4rem;
            width: 100%; margin-top: .8rem; padding: .65rem; border-radius: 10px;
            border: 1.5px dashed var(--border-strong); background: transparent;
            color: var(--brand-2); font-family: inherit; font-size: .82rem; font-weight: 700;
            cursor: pointer; transition: all .14s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-add-btn:hover{ background: var(--brand-soft); border-color: var(--brand-ring); }body[data-style-page="/Pages/Operator/Index"] .cbs-form{
            background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px;
            padding: 1rem; margin-top: .9rem; animation: css06b628e47c-cbsPopIn .16s ease;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-form-title{
            font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: .8rem;
            display: flex; align-items: center; gap: .4rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-form-actions{ display: flex; gap: .5rem; margin-top: .7rem; }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ tags: toolbar + table â”€â”€ */
        .cbs-tags-toolbar{ display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; flex-wrap: wrap; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-add{
            width: auto; margin-top: 0; padding: .55rem 1rem; border-style: solid;
            background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--rx-on-brand); border-color: transparent;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-add:hover{ opacity: .92; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-count{ font-size: .78rem; color: var(--text-3); white-space: nowrap; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-search{ position: relative; flex: 1; min-width: 160px; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-search i{
            position: absolute; top: 50%; right: .7rem; transform: translateY(-50%);
            color: var(--text-3); font-size: .8rem; pointer-events: none;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-search input{
            width: 100%; box-sizing: border-box; padding: .5rem 1.9rem .5rem .7rem; border-radius: 9px;
            border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
            font-family: inherit; font-size: .8rem;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-table{ border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row{
            display: grid; grid-template-columns: 1.4fr 1fr 2fr auto; align-items: center;
            gap: .6rem; padding: .65rem .9rem; border-bottom: 1px solid var(--border);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row:last-child{ border-bottom: none; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-head{
            background: var(--surface-2); font-size: .74rem; font-weight: 700; color: var(--text-3);
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row:not(.cbs-tags-head){ font-size: .8rem; color: var(--text); }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row.is-inactive:not(.cbs-tags-head){ color: var(--text-3); }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-color{ display: flex; align-items: center; gap: .4rem; color: var(--text-3); font-size: .74rem; direction: ltr; justify-content: flex-end; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-desc{ color: var(--text-3); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-actions{ display: flex; gap: .2rem; justify-self: end; }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-actions button{
            width: 28px; height: 28px; border-radius: 8px; background: none; border: none;
            color: var(--text-3); cursor: pointer; font-size: .88rem;
            display: flex; align-items: center; justify-content: center; transition: all .12s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-actions button:hover{ color: var(--text); background: var(--surface-hover); }body[data-style-page="/Pages/Operator/Index"] .cbs-tags-row .col-actions button.danger:hover{ color: var(--danger); background: var(--danger-soft); }body[data-style-page="/Pages/Operator/Index"] .cbs-color-swatch{ width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid var(--border-strong); }body[data-style-page="/Pages/Operator/Index"] .cbs-color-row{ display: flex; align-items: center; gap: .5rem; }body[data-style-page="/Pages/Operator/Index"] .cbs-color-row input[type="color"]{
            width: 40px; height: 36px; padding: 0; border-radius: 8px; border: 1px solid var(--border-strong);
            background: none; cursor: pointer;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-color-row input[type="text"]{ flex: 1; direction: ltr; text-align: left; }body[data-style-page="/Pages/Operator/Index"] /* Scoped upgrade of the shared .profile-btn look, only inside this modal â€” gradient +
           shadow to match the header/tabs instead of the plain flat button used elsewhere. */
        .cbs-sheet .profile-btn{
            background: linear-gradient(135deg, var(--brand), var(--brand-2));
            box-shadow: 0 3px 10px rgba(var(--rx-accent-rgb), 0.3); transition: transform .1s, box-shadow .1s;
        }body[data-style-page="/Pages/Operator/Index"] .cbs-sheet .profile-btn:hover:not(:disabled){ transform: translateY(-1px); box-shadow: 0 5px 16px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Pages/Operator/Index"] .cbs-sheet .profile-btn-ghost{ transition: all .12s; }body[data-style-page="/Pages/Operator/Index"] .cbs-sheet .profile-btn-ghost:hover{ background: var(--surface-hover); border-color: var(--border-strong); }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Info pane â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
        .info-sec{ padding: .85rem .9rem; border-bottom: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .info-sec h4{
            font-size: .72rem; font-weight: 700; color: var(--text-3);
            margin: 0 0 .6rem; letter-spacing: .02em;
            display: flex; align-items: center; gap: .35rem;
        }body[data-style-page="/Pages/Operator/Index"] .kv{ display: flex; gap: .5rem; font-size: .79rem; margin-bottom: .42rem; align-items: baseline; }body[data-style-page="/Pages/Operator/Index"] .kv .k{ color: var(--text-3); min-width: 5.2rem; flex: none; }body[data-style-page="/Pages/Operator/Index"] .kv .v{ color: var(--text); word-break: break-word; flex: 1; }body[data-style-page="/Pages/Operator/Index"] .stat-row{ display: flex; gap: .45rem; }body[data-style-page="/Pages/Operator/Index"] .stat{
            flex: 1; text-align: center;
            background: var(--surface); border: 1px solid var(--border);
            border-radius: 11px; padding: .55rem .3rem;
        }body[data-style-page="/Pages/Operator/Index"] .stat .n{ font-size: 1.15rem; font-weight: 800; line-height: 1.15; }body[data-style-page="/Pages/Operator/Index"] .stat .l{ font-size: .66rem; color: var(--text-3); margin-top: .15rem; }body[data-style-page="/Pages/Operator/Index"] .stat.warn .n{ color: var(--warn); }body[data-style-page="/Pages/Operator/Index"] .quote{
            font-size: .76rem; color: var(--text-2); line-height: 1.8;
            background: var(--surface); border: 1px solid var(--border);
            border-inline-start: 2px solid var(--brand);
            border-radius: 9px; padding: .5rem .6rem;
        }body[data-style-page="/Pages/Operator/Index"] .trail{ list-style: none; margin: .2rem 0 0; padding: 0; }body[data-style-page="/Pages/Operator/Index"] .trail li{
            font-size: .72rem; color: var(--text-2);
            padding: .26rem 0 .26rem .8rem;
            border-inline-start: 1px solid var(--border);
            margin-inline-start: .2rem;
            position: relative;
            word-break: break-all;
            direction: ltr; text-align: left;
        }body[data-style-page="/Pages/Operator/Index"] .trail li::before{
            content: ''; position: absolute;
            inset-inline-start: -3.5px; top: .62rem;
            width: 6px; height: 6px; border-radius: 50%;
            background: var(--border-strong);
        }body[data-style-page="/Pages/Operator/Index"] .trail li:last-child::before{ background: var(--brand); }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Responsive: tablet â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
           Between phone and desktop, the info pane becomes a slide-in drawer instead of a
           permanent third column â€” there is room for list+chat but not a third rail too. */
        .back-btn{ display: none; }

        @media (max-width: 1180px) {body[data-style-page="/Pages/Operator/Index"] .console{ grid-template-columns: 300px minmax(0, 1fr); }body[data-style-page="/Pages/Operator/Index"] .pane-info{
                position: fixed; inset: 62px 0 0 auto;
                width: min(330px, 88vw);
                z-index: 60;
                box-shadow: var(--shadow-lg);
                transform: translateX(-100%);
                transition: transform .22s ease;
            }html[dir="rtl"] body[data-style-page="/Pages/Operator/Index"] .pane-info{ transform: translateX(100%); }body[data-style-page="/Pages/Operator/Index"] .pane-info.open{ transform: none !important; }
        }body[data-style-page="/Pages/Operator/Index"] /* â”€â”€ Responsive: phone (mobile-native, not a squeezed desktop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
           Below 768px the three-pane grid stops being a layout at all: the list, the open
           conversation, and settings become three full-screen views switched by a bottom tab bar
           (the shape every messaging app on the platform already trained an operator's thumb for),
           and the info pane and close-outcome menu become bottom sheets instead of a side drawer
           and a dropdown â€” both of which need a mouse-precision hover/click that a thumb doesn't
           have. Everything below is additive: it only fires under the breakpoint, so nothing here
           touches the desktop/tablet rules above. */
        @media (max-width: 767px){
            html, body { height: 100%; overflow: hidden; }

            .console {
                grid-template-columns: minmax(0, 1fr);
                grid-template-rows: calc(54px + env(safe-area-inset-top)) minmax(0, 1fr) 58px;
                height: 100vh;
                height: 100dvh; /* dvh excludes the address bar/keyboard chrome dvh-aware browsers already retract */
            }

            .topbar {
                padding: env(safe-area-inset-top) .6rem 0;
                height: calc(54px + env(safe-area-inset-top));
                gap: .4rem;
            }
            .logo .txt { display: none; }
            .who, .desktop-logout-btn { display: none; } /* moved into the settings pane below */
            #soundBtn, #themeBtn { display: none; } /* also moved into the settings pane */
            .who-mobile-trigger { display: inline-flex !important; }

            /* The 54px phone bar still has to fit the chatbot picker, the connection pill and the
               DND toggle after logo/who/sound/theme are stripped out above â€” at their desktop sizes
               those three alone already run wider than a narrow phone, which is why dndBtn and the
               settings avatar were being pushed off the left edge instead of just sitting snugly.
               Shrinking the picker and pill (rather than hiding either) keeps every control reachable. */
            .select-soft { max-width: 34vw; padding: .4rem .5rem; font-size: .78rem; }
            .topbar .pill#connPill { max-width: 30vw; overflow: hidden; }
            .topbar .pill#connPill #connLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
            .topbar .icon-btn { width: 32px; height: 32px; flex: none; }

            /* One pane visible at a time, chosen by data-view on #console rather than by which
               DOM node happens to be under a media-query display rule â€” see setView() in the
               script. This is the same "swap the whole screen" model as .console.detail already
               used, generalised to three destinations instead of two. */
            .pane-list, .chat, .settings-pane { display: none; }
            .console[data-view="list"] .pane-list { display: flex; }
            .console[data-view="chat"] .chat { display: flex; }
            .console[data-view="settings"] .settings-pane { display: flex; }
            .pane-list, .chat, .settings-pane { grid-column: 1; grid-row: 2; min-height: 0; }
            .pane-list { border-inline-end: none; }

            .back-btn { display: inline-flex; }
            .msg { max-width: 90%; }

            /* Chat header: four icon buttons plus back/avatar/title all in one row was designed
               for desktop's wide pane and just doesn't fit a phone screen â€” buttons crowd the
               title, wrap unpredictably, and the status line grows a second line that pushes the
               row taller than the fixed 58px it's meant to fit. Tighten the spacing/sizing instead
               of hiding any actions, and keep the identity block to a single truncating line so
               the row's height stays predictable. */
            .chat-head { gap: .35rem; padding: .5rem .55rem; }
            .chat-head .icon-btn { width: 32px; height: 32px; font-size: .85rem; }
            .chat-head .title {
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
            }
            .chat-head .sub {
                flex-wrap: nowrap; overflow: hidden;
                text-overflow: ellipsis; white-space: nowrap;
            }

            /* Info pane becomes a bottom sheet: dragged up from under the viewport rather than in
               from the side, since a side drawer on a 360px-wide screen leaves almost nothing for
               the content it is supposed to reveal. */
            .pane-info {
                position: fixed; inset: auto 0 0 0;
                width: auto; max-height: 82vh;
                border-radius: 18px 18px 0 0;
                border: 1px solid var(--border-strong); border-bottom: none;
                z-index: 70;
                transform: translateY(100%);
                transition: transform .25s cubic-bezier(.32,.72,0,1);
                padding-bottom: env(safe-area-inset-bottom);
            }
            .pane-info.open { transform: none !important; }
            .sheet-scrim {
                display: block;
                position: fixed; inset: 0; background: rgba(0,0,0,.45);
                z-index: 65; opacity: 0; pointer-events: none;
                transition: opacity .2s ease;
            }
            .sheet-scrim.show { opacity: 1; pointer-events: all; }
            .sheet-handle {
                display: block;
                width: 36px; height: 4px; border-radius: 99px;
                background: var(--border-strong);
                margin: .6rem auto .1rem;
            }

            /* Close-outcome menu: same bottom-sheet treatment as the info pane, for the same
               reason â€” a 190px dropdown anchored to a toolbar icon is easy to overshoot with a
               thumb and impossible to place well next to a notch/home-indicator. */
            .menu {
                position: fixed; inset: auto 0 0 0; top: auto;
                min-width: 0; width: auto;
                border-radius: 18px 18px 0 0;
                border-bottom: none;
                padding: .4rem .5rem calc(.5rem + env(safe-area-inset-bottom));
                transform: translateY(100%);
                transition: transform .22s cubic-bezier(.32,.72,0,1);
                z-index: 70;
            }
            .menu.show { transform: none; }
            .menu-item { padding: .8rem .7rem; font-size: .88rem; }

            /* Composer: safe-area padding so the send button never sits under a home indicator,
               and no auto-focus-driven layout jump beyond what the OS keyboard itself causes â€”
               visualViewport handling in the script keeps the composer pinned above the keyboard
               rather than letting the keyboard cover it (the default, unfixed mobile behaviour). */
            .composer { padding-bottom: calc(.7rem + env(safe-area-inset-bottom)); }
            .action-bar, .closed-bar { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }

            /* composer-foot's keyboard-shortcut hint ("Enter Ø§Ø±Ø³Ø§Ù„ Â· Shift+Enter Ø®Ø· Ø¬Ø¯ÛŒØ¯ Â· /
               Ù¾Ø§Ø³Ø® Ø¢Ù…Ø§Ø¯Ù‡") is meaningless on a phone with no physical Enter/Shift key, and next to
               the "Ù¾Ø§Ø³Ø® Ø¢Ù…Ø§Ø¯Ù‡" button it was the actual cause of the crowding/overlap â€” a mobile-only
               .spacer was stretching to force both onto one line, leaving neither enough room and
               visually merging them into a broken diagonal line of text. Drop the hint here; the
               button alone stands as its own single-line row. */
            .composer-foot .spacer + span { display: none; }
            .composer-foot .spacer { display: none; }

            /* With the hint text gone, this row is just the "Ù¾Ø§Ø³Ø® Ø¢Ù…Ø§Ø¯Ù‡" button â€” but it was still
               laid out at desktop size/spacing (margin-top, padding, font-size all sized for a row
               that used to share space with that text), which on a narrow phone reads as an
               oversized, mostly-empty bar under the input. Shrink the row and the button together so
               it sits snugly under the composer instead of visually ballooning the whole footer. */
            .composer-foot { margin-top: .3rem; }
            .composer-foot .mini-btn { padding: .22rem .5rem; font-size: .68rem; }

            /* Bottom tab bar â€” always visible on phone, unlike the three view panes above which
               are shown one at a time; this is the thing that switches between them. */
            .bottom-nav {
                grid-column: 1; grid-row: 3;
                display: flex; align-items: stretch;
                background: var(--surface);
                border-top: 1px solid var(--border);
                padding-bottom: env(safe-area-inset-bottom);
                z-index: 20;
            }
            .bn-item {
                flex: 1; display: flex; flex-direction: column; align-items: center;
                justify-content: center; gap: .18rem;
                background: none; border: none; color: var(--text-3);
                font-family: inherit; font-size: .64rem; cursor: pointer;
                position: relative; padding: .3rem 0;
            }
            .bn-item i { font-size: 1.15rem; }
            .bn-item.sel { color: var(--brand); }
            .bn-item .bn-badge {
                position: absolute; top: 2px; inset-inline-end: calc(50% - 18px);
                min-width: 16px; height: 16px; border-radius: 99px;
                background: var(--danger); color: var(--rx-ink);
                font-size: .62rem; font-weight: 700;
                display: none; align-items: center; justify-content: center;
                padding: 0 3px; line-height: 1;
            }
            .bn-item .bn-badge.show { display: flex; }

            /* Settings sheet: reachable from the fourth tab, replacing the desktop topbar's
               inline theme/sound toggles and profile block, none of which fit a 54px mobile bar. */
            .settings-pane {
                flex-direction: column;
                background: var(--bg-2);
                padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
                overflow-y: auto;
            }
            .settings-profile {
                display: flex; align-items: center; gap: .75rem;
                padding: .9rem; margin-bottom: 1rem;
                background: var(--surface); border: 1px solid var(--border);
                border-radius: var(--radius);
            }
            .settings-profile .avatar { width: 44px; height: 44px; font-size: 1rem; }
            .settings-profile .name { font-size: .95rem; font-weight: 700; }
            .settings-profile .role { font-size: .74rem; color: var(--text-3); margin-top: .1rem; }
            .settings-list {
                background: var(--surface); border: 1px solid var(--border);
                border-radius: var(--radius); overflow: hidden;
            }
            .settings-row {
                display: flex; align-items: center; gap: .7rem;
                width: 100%; padding: .85rem .9rem;
                background: none; border: none; border-bottom: 1px solid var(--border);
                color: var(--text); font-family: inherit; font-size: .85rem;
                text-align: start; cursor: pointer;
            }
            .settings-row:last-child { border-bottom: none; }
            .settings-row i:first-child { font-size: 1.05rem; color: var(--text-2); width: 22px; text-align: center; }
            .settings-row .sr-label { flex: 1; }
            .settings-row .sr-val { color: var(--text-3); font-size: .78rem; }
            .settings-row.danger { color: var(--danger); }
            .settings-row.danger i:first-child { color: var(--danger); }

            /* Push-notification permission card inside the settings sheet â€” see the client-side
               push module (loaded separately) for what populates/hides this. */
            .push-card {
                padding: .9rem; margin-bottom: 1rem;
                background: var(--brand-soft); border: 1px solid var(--brand-ring);
                border-radius: var(--radius);
                display: none;
            }
            .push-card.show { display: block; }
            .push-card .pc-title { font-size: .85rem; font-weight: 700; margin-bottom: .3rem; display: flex; align-items: center; gap: .4rem; }
            .push-card .pc-body { font-size: .76rem; color: var(--text-2); line-height: 1.7; margin-bottom: .7rem; }
            .push-card button {
                width: 100%; padding: .55rem; border-radius: 9px; border: none;
                background: var(--brand); color: var(--rx-ink); font-family: inherit;
                font-size: .82rem; font-weight: 600; cursor: pointer;
            }
        }body[data-style-page="/Pages/Operator/Index"] /* Below this, even the two-line topbar identity and 82%-width bubbles get tighter â€”
           a 360px screen (the median Android width) is not the same problem as a 767px tablet
           flip, and treating them identically leaves visible cramping on the phone most operators
           actually carry. */
        @media (max-width: 380px){
            .bn-item { font-size: .6rem; }
            .msg { max-width: 94%; }
        }body[data-style-page="/Pages/Operator/Index"] /* Compact account profile, with optional security controls. */
.profile-overlay{ position: fixed; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(4px); align-items: center; justify-content: center; z-index: 1100; padding: 16px; }body[data-style-page="/Pages/Operator/Index"] .profile-sheet{ width: 100%; max-width: 560px; max-height: 90dvh; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); }body[data-style-page="/Pages/Operator/Index"] .profile-header{ padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-soft); }body[data-style-page="/Pages/Operator/Index"] .profile-header strong{ font-size: 1rem; color: var(--text); }body[data-style-page="/Pages/Operator/Index"] .profile-header p{ margin: 6px 0 0; color: var(--text-2); font-size: .72rem; }body[data-style-page="/Pages/Operator/Index"] .profile-body{ overflow-y: auto; padding: 22px; min-height: 0; }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-avatar-row{ padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); gap: 16px; margin-bottom: 16px; }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-controls{ min-width: 0; }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-controls > strong{ font-size: .8rem; color: var(--text); }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-actions{ display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-actions button{ display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; font-size: .74rem; }body[data-style-page="/Pages/Operator/Index"] .profile-avatar-controls small{ color: var(--text-2); font-size: .65rem; line-height: 1.8; }body[data-style-page="/Pages/Operator/Index"] .profile-remove{ color: var(--danger); }body[data-style-page="/Pages/Operator/Index"] .profile-name-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }body[data-style-page="/Pages/Operator/Index"] .profile-name-grid .profile-field{ min-width: 0; }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-section-title{ margin: 20px 0 12px; color: var(--text-2); }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-field input{ min-height: 42px; }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-field input:focus-visible{ outline: 2px solid var(--brand-2); outline-offset: 2px; }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-field input:disabled{ color: var(--text-2); opacity: .8; }body[data-style-page="/Pages/Operator/Index"] .profile-save-bar{ display: flex; justify-content: end; padding-top: 4px; }body[data-style-page="/Pages/Operator/Index"] .profile-save-bar .profile-btn{ min-height: 42px; min-width: 160px; justify-content: center; }body[data-style-page="/Pages/Operator/Index"] .profile-security{ border: 1px solid var(--border); border-radius: 14px; margin-top: 22px; overflow: hidden; }body[data-style-page="/Pages/Operator/Index"] .profile-security summary{ display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; list-style: none; }body[data-style-page="/Pages/Operator/Index"] .profile-security summary::-webkit-details-marker{ display: none; }body[data-style-page="/Pages/Operator/Index"] .profile-security summary strong{ display: block; font-size: .8rem; color: var(--text); }body[data-style-page="/Pages/Operator/Index"] .profile-security summary small{ display: block; color: var(--text-2); font-size: .68rem; margin-top: 5px; }body[data-style-page="/Pages/Operator/Index"] .profile-security-icon{ display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); }body[data-style-page="/Pages/Operator/Index"] .profile-security-arrow{ margin-inline-start: auto; font-size: .75rem; color: var(--text-2); }body[data-style-page="/Pages/Operator/Index"] .profile-security[open] .profile-security-arrow{ transform: rotate(180deg); }body[data-style-page="/Pages/Operator/Index"] .profile-security-body{ padding: 16px; border-top: 1px solid var(--border); }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-msg.show{ padding: 10px 12px; background: var(--bg-2); border-radius: 9px; line-height: 1.8; margin: 8px 0; }
@media (max-width: 480px) {body[data-style-page="/Pages/Operator/Index"] .profile-overlay{ padding: 10px; }body[data-style-page="/Pages/Operator/Index"] .profile-header,body[data-style-page="/Pages/Operator/Index"] .profile-body{ padding: 16px; }body[data-style-page="/Pages/Operator/Index"] .profile-name-grid{ gap: 10px; }body[data-style-page="/Pages/Operator/Index"] .profile-security-body .profile-name-grid{ grid-template-columns: 1fr; }body[data-style-page="/Pages/Operator/Index"] .profile-save-bar .profile-btn{ width: 100%; }body[data-style-page="/Pages/Operator/Index"] .profile-body .profile-avatar-row{ padding: 12px; gap: 12px; } }




/* Operator workspace: align the complete three-pane desk with the shared light teal kit. */
body[data-style-page="/Pages/Operator/Index"] {
    --bg: var(--rx-page);
    --bg-2: var(--rx-page-alt);
    --surface: var(--rx-surface);
    --surface-2: var(--rx-surface-2);
    --surface-hover: var(--rx-surface-3);
    --border: var(--rx-line);
    --border-strong: var(--rx-line-strong);
    --text: var(--rx-ink);
    --text-2: var(--rx-ink-soft);
    --text-3: var(--rx-muted);
    --brand: var(--rx-brand);
    --brand-2: var(--rx-accent);
    --brand-soft: var(--rx-brand-soft);
    --brand-ring: var(--rx-brand-ring);
    --op-bubble: var(--rx-brand);
    --ok: var(--rx-success);
    --ok-soft: var(--rx-success-soft);
    --warn: var(--rx-warning);
    --warn-soft: var(--rx-warning-soft);
    --danger: var(--rx-danger);
    --danger-soft: var(--rx-danger-soft);
    --info: var(--rx-info);
    --info-soft: var(--rx-info-soft);
}
body[data-style-page="/Pages/Operator/Index"] .console { background: var(--rx-page); }
body[data-style-page="/Pages/Operator/Index"] .topbar {
    position: relative; background: var(--rx-surface); border-bottom-color: var(--rx-line);
    box-shadow: 0 5px 20px rgba(var(--rx-brand-rgb), .045);
}
body[data-style-page="/Pages/Operator/Index"] .logo .mark,
body[data-style-page="/Pages/Operator/Index"] .avatar {
    background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright)); color: var(--rx-on-brand);
}
body[data-style-page="/Pages/Operator/Index"] .pane { background: var(--rx-page-alt); }
body[data-style-page="/Pages/Operator/Index"] .pane-list,
body[data-style-page="/Pages/Operator/Index"] .pane-info { border-color: var(--rx-line); }
body[data-style-page="/Pages/Operator/Index"] .list-head,
body[data-style-page="/Pages/Operator/Index"] .chat-head,
body[data-style-page="/Pages/Operator/Index"] .info-head {
    background: linear-gradient(135deg, var(--rx-surface), var(--rx-brand-soft));
    border-color: var(--rx-line);
}
body[data-style-page="/Pages/Operator/Index"] .conv,
body[data-style-page="/Pages/Operator/Index"] .info-sec,
body[data-style-page="/Pages/Operator/Index"] .settings-list,
body[data-style-page="/Pages/Operator/Index"] .settings-profile {
    background: linear-gradient(145deg, var(--rx-surface), rgba(var(--rx-brand-rgb), .035));
    border-color: var(--rx-line); box-shadow: 0 5px 16px rgba(32, 43, 50, .045);
}
body[data-style-page="/Pages/Operator/Index"] .conv:hover,
body[data-style-page="/Pages/Operator/Index"] .conv.sel {
    background: linear-gradient(135deg, var(--rx-brand-soft), var(--rx-surface));
    border-color: var(--rx-brand-ring);
}
body[data-style-page="/Pages/Operator/Index"] .chat,
body[data-style-page="/Pages/Operator/Index"] .chat-body { background: var(--rx-page); }
body[data-style-page="/Pages/Operator/Index"] .composer {
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--rx-surface));
    border-top: 1px solid var(--rx-line);
}
body[data-style-page="/Pages/Operator/Index"] .composer-box,
body[data-style-page="/Pages/Operator/Index"] .search input,
body[data-style-page="/Pages/Operator/Index"] .select-soft,
body[data-style-page="/Pages/Operator/Index"] .filter-select,
body[data-style-page="/Pages/Operator/Index"] textarea,
body[data-style-page="/Pages/Operator/Index"] input:not([type="checkbox"]),
body[data-style-page="/Pages/Operator/Index"] select {
    background-color: var(--rx-input); border-color: var(--rx-line-input); color: var(--rx-ink);
}
body[data-style-page="/Pages/Operator/Index"] .icon-btn,
body[data-style-page="/Pages/Operator/Index"] .mini-btn,
body[data-style-page="/Pages/Operator/Index"] .quick-action {
    border-color: var(--rx-line); background: var(--rx-surface); color: var(--rx-ink-soft);
}
body[data-style-page="/Pages/Operator/Index"] .icon-btn:hover,
body[data-style-page="/Pages/Operator/Index"] .mini-btn:hover,
body[data-style-page="/Pages/Operator/Index"] .quick-action:hover {
    background: var(--rx-brand-soft); border-color: var(--rx-brand-ring); color: var(--rx-brand-ink);
}
body[data-style-page="/Pages/Operator/Index"] .tab.sel,
body[data-style-page="/Pages/Operator/Index"] .settings-row:hover {
    background: var(--rx-brand-soft); border-color: var(--rx-brand-ring); color: var(--rx-brand-ink);
}
body[data-style-page="/Pages/Operator/Index"] .msg { box-shadow: 0 2px 8px rgba(32, 43, 50, .045); }
body[data-style-page="/Pages/Operator/Index"] .m-visitor .bubble { background: var(--rx-surface); border-color: var(--rx-line); color: var(--rx-ink); }
body[data-style-page="/Pages/Operator/Index"] .m-bot .bubble { background: linear-gradient(145deg, var(--rx-brand-soft), var(--rx-surface)); border-color: var(--rx-brand-ring); color: var(--rx-ink); }
body[data-style-page="/Pages/Operator/Index"] .modal,
body[data-style-page="/Pages/Operator/Index"] .profile-sheet,
body[data-style-page="/Pages/Operator/Index"] .sheet {
    background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-radius-panel);
    box-shadow: var(--rx-shadow-pop); color: var(--rx-ink);
}
body[data-style-page="/Pages/Operator/Index"] #themeBtn,
body[data-style-page="/Pages/Operator/Index"] #settingsThemeRow { display: none !important; }
body[data-style-page="/Pages/Operator/Index"] :is(button,a,input,select,textarea):focus-visible {
    outline: 2px solid var(--rx-accent); outline-offset: 2px;
}
@media (max-width: 767px) {
    body[data-style-page="/Pages/Operator/Index"] .pane { background: var(--rx-page); }
    body[data-style-page="/Pages/Operator/Index"] .topbar { box-shadow: 0 3px 14px rgba(var(--rx-brand-rgb), .06); }
}

body[data-style-page="/Pages/Operator/Index"] .m-operator .bubble {
    background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright));
    border-color: var(--rx-brand-ring); color: var(--rx-on-brand);
}

/* Filled brand controls always use the kit's contrast-safe foreground. */
body[data-style-page="/Pages/Operator/Index"] .btn-claim-next,
body[data-style-page="/Pages/Operator/Index"] .send-btn,
body[data-style-page="/Pages/Operator/Index"] .btn-mini-ok,
body[data-style-page="/Pages/Operator/Index"] .tab.sel .n,
body[data-style-page="/Pages/Operator/Index"] .unread {
    color: var(--rx-on-brand) !important;
}
body[data-style-page="/Pages/Operator/Index"] .btn-claim-next,
body[data-style-page="/Pages/Operator/Index"] .send-btn {
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand-hover));
}
/* Stylesheet: operator-followups.css — body[data-style-page="/Operator/FollowUps"] */
body[data-style-page="/Operator/FollowUps"] .followups-body{ overflow: auto; height: auto; min-height: 100vh; }html[data-theme="light"] body[data-style-page="/Operator/FollowUps"] .followups-body{ }body[data-style-page="/Operator/FollowUps"] .admin-content.followups-content{ min-width: 0; }body[data-style-page="/Operator/FollowUps"] .followups-app{
    width: min(1500px, 100%);
    margin: auto;
    padding: 28px 24px 40px;
    color: var(--text);
}body[data-style-page="/Operator/FollowUps"] .followups-app [hidden]{ display: none !important; }body[data-style-page="/Operator/FollowUps"] .followups-app button,body[data-style-page="/Operator/FollowUps"] .followups-app input,body[data-style-page="/Operator/FollowUps"] .followups-app select,body[data-style-page="/Operator/FollowUps"] .followups-app textarea{ font: inherit; }body[data-style-page="/Operator/FollowUps"] .followups-app *,body[data-style-page="/Operator/FollowUps"] .followups-app *::before,body[data-style-page="/Operator/FollowUps"] .followups-app *::after{ box-sizing: border-box; }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Header */
.fu-header{ display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }body[data-style-page="/Operator/FollowUps"] .fu-back{ color: var(--text-2); font-size: .78rem; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; margin-bottom: 12px; transition: color .15s; }body[data-style-page="/Operator/FollowUps"] .fu-back:hover{ color: var(--brand-2); }body[data-style-page="/Operator/FollowUps"] .fu-header h1{ margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }body[data-style-page="/Operator/FollowUps"] .fu-header h1 span{ display: block; color: var(--text-2); font-size: .82rem; font-weight: 400; margin-top: 6px; }body[data-style-page="/Operator/FollowUps"] .fu-header-controls{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }body[data-style-page="/Operator/FollowUps"] .fu-bot-control{ display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .76rem; }body[data-style-page="/Operator/FollowUps"] .followups-app select,body[data-style-page="/Operator/FollowUps"] .followups-app input,body[data-style-page="/Operator/FollowUps"] .followups-app textarea{
    color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 10px 12px; font-size: .8rem; transition: border-color .15s, background .15s;
}body[data-style-page="/Operator/FollowUps"] .followups-app select option{ color: var(--text); background: var(--surface-2); }body[data-style-page="/Operator/FollowUps"] .followups-app select{ max-width: 240px; }body[data-style-page="/Operator/FollowUps"] .followups-app .fu-palette select{ padding-inline-start: 38px; padding-inline-end: 28px; min-width: 150px; max-width: 170px; }body[data-style-page="/Operator/FollowUps"] .followups-app .fu-palette > i{ inset-inline-start: 12px; }body[data-style-page="/Operator/FollowUps"] .followups-app :is(button, a, input, select, textarea):focus-visible{ outline: 2px solid var(--brand-2); outline-offset: 3px; }body[data-style-page="/Operator/FollowUps"] .fu-icon-button{
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 10px; border: 1px solid var(--border-strong); color: var(--text-2); background: var(--surface);
    cursor: pointer; flex-shrink: 0; transition: color .15s, background .15s, border-color .15s;
}body[data-style-page="/Operator/FollowUps"] .fu-icon-button:hover{ color: var(--brand-2); background: var(--surface-hover); border-color: var(--brand-2); }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Summary tiles */
.fu-summary{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }body[data-style-page="/Operator/FollowUps"] .fu-summary > div{
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    border: 1px solid var(--border-strong);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
    transition: transform .15s, box-shadow .15s;
}body[data-style-page="/Operator/FollowUps"] .fu-summary > div:hover{ transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .14); }body[data-style-page="/Operator/FollowUps"] .fu-summary i{ display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); font-size: 1.15rem; flex-shrink: 0; }body[data-style-page="/Operator/FollowUps"] .fu-summary span{ color: var(--text-2); font-size: .75rem; }body[data-style-page="/Operator/FollowUps"] .fu-summary strong{ display: block; color: var(--text); font-size: 1.55rem; font-weight: 800; line-height: 1.4; margin-top: 4px; }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Workspace layout */
.fu-workspace{ display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 1.3fr); align-items: start; gap: 20px; }body[data-style-page="/Operator/FollowUps"] .fu-list-panel,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{
    min-width: 0; border-radius: 18px; background: var(--surface); padding: 20px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .12);
}body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{ position: sticky; top: 18px; max-height: calc(100dvh - 36px); overflow-y: auto; scroll-margin-top: 16px; }body[data-style-page="/Operator/FollowUps"] /* Scope tabs */
.fu-scopes{ display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; margin-bottom: 16px; }body[data-style-page="/Operator/FollowUps"] .fu-scopes button{
    flex: 1; padding: 10px 6px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text-2); font-size: .74rem; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s;
}body[data-style-page="/Operator/FollowUps"] .fu-scopes button:hover:not([aria-pressed="true"]){ color: var(--text); background: var(--surface-hover); }body[data-style-page="/Operator/FollowUps"] .fu-scopes button[aria-pressed="true"]{ background: var(--brand); color: var(--rx-ink); box-shadow: 0 4px 14px rgba(var(--theme-accent-rgb), .28); }body[data-style-page="/Operator/FollowUps"] /* Filters */
.fu-filter-row{ display: flex; gap: 8px; margin-bottom: 10px; }body[data-style-page="/Operator/FollowUps"] .fu-search{
    display: flex; align-items: center; gap: 8px; padding-inline-start: 12px; background: var(--surface-2);
    border: 1px solid var(--border-strong); border-radius: 10px; flex: 1; min-width: 0; color: var(--text-2);
    transition: border-color .15s;
}body[data-style-page="/Operator/FollowUps"] .fu-search input{ border: 0; background: transparent; flex: 1; min-width: 0; width: 100%; padding-inline-start: 0; }body[data-style-page="/Operator/FollowUps"] .fu-search:focus-within{ border-color: var(--brand-2); }body[data-style-page="/Operator/FollowUps"] .fu-secondary-filters{ gap: 8px; }body[data-style-page="/Operator/FollowUps"] .fu-secondary-filters select{ flex: 1; min-width: 0; max-width: none; }body[data-style-page="/Operator/FollowUps"] .fu-list-caption{ color: var(--text-2); font-size: .71rem; line-height: 1.8; margin: 12px 2px 14px; }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- List */
.fu-list{ display: grid; gap: 10px; }body[data-style-page="/Operator/FollowUps"] .fu-item{
    display: flex; flex-direction: column; gap: 9px; text-align: right; padding: 16px 18px; width: 100%;
    border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--bg-2);
    cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
}body[data-style-page="/Operator/FollowUps"] .fu-item:hover{ background: var(--surface-hover); border-color: var(--border-strong); }body[data-style-page="/Operator/FollowUps"] .fu-item.selected{ border-color: var(--brand-2); box-shadow: inset 3px 0 0 var(--brand-2), 0 6px 18px rgba(0, 0, 0, .08); background: var(--brand-soft); }body[data-style-page="/Operator/FollowUps"] .fu-item.overdue{ border-inline-start: 3px solid var(--warn); }body[data-style-page="/Operator/FollowUps"] .fu-item-top,body[data-style-page="/Operator/FollowUps"] .fu-item-bottom{ display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }body[data-style-page="/Operator/FollowUps"] .fu-item-top strong{ font-size: .87rem; font-weight: 700; overflow-wrap: anywhere; }body[data-style-page="/Operator/FollowUps"] .fu-item-number{ color: var(--text-2); font-size: .71rem; letter-spacing: .01em; }body[data-style-page="/Operator/FollowUps"] .fu-item-action{ font-size: .8rem; line-height: 1.85; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }body[data-style-page="/Operator/FollowUps"] .fu-item-bottom{ color: var(--text-2); font-size: .68rem; line-height: 1.8; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }body[data-style-page="/Operator/FollowUps"] .fu-item-bottom span{ display: inline-flex; align-items: center; gap: 5px; }body[data-style-page="/Operator/FollowUps"] .fu-item.overdue .fu-item-bottom > span:first-child{ color: var(--warn); font-weight: 600; }body[data-style-page="/Operator/FollowUps"] .fu-badge{ border-radius: 999px; padding: 4px 11px; font-size: .68rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-2); white-space: nowrap; }body[data-style-page="/Operator/FollowUps"] .fu-badge[data-status="WaitingCustomer"],body[data-style-page="/Operator/FollowUps"] .fu-badge[data-status="WaitingTeam"]{ color: var(--warn); background: var(--warn-soft); }body[data-style-page="/Operator/FollowUps"] .fu-badge[data-status="Resolved"]{ color: var(--ok); background: var(--ok-soft); }body[data-style-page="/Operator/FollowUps"] .fu-pagination{ display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 16px; font-size: .75rem; color: var(--text-2); }body[data-style-page="/Operator/FollowUps"] .fu-button{
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent;
    border-radius: 10px; padding: 10px 16px; background: var(--brand); color: var(--rx-ink); font-size: .78rem !important;
    font-weight: 600; cursor: pointer; transition: filter .15s, transform .1s;
}body[data-style-page="/Operator/FollowUps"] .fu-button.secondary{ background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }body[data-style-page="/Operator/FollowUps"] .fu-button:hover:not(:disabled){ filter: brightness(1.1); }body[data-style-page="/Operator/FollowUps"] .fu-button:active:not(:disabled){ transform: scale(.98); }body[data-style-page="/Operator/FollowUps"] .followups-app button:disabled{ opacity: .5; cursor: default; }body[data-style-page="/Operator/FollowUps"] .fu-empty{ display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 56px 20px; color: var(--text-2); }body[data-style-page="/Operator/FollowUps"] .fu-empty > i{ font-size: 2.6rem; color: var(--brand-2); opacity: .85; }body[data-style-page="/Operator/FollowUps"] .fu-empty h2{ font-size: 1rem; color: var(--text); margin: 0; font-weight: 700; }body[data-style-page="/Operator/FollowUps"] .fu-empty p{ font-size: .8rem; line-height: 2; margin: 0; max-width: 330px; }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Detail panel */
.fu-detail-heading{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }body[data-style-page="/Operator/FollowUps"] .fu-detail-heading h2{ font-size: 1.15rem; font-weight: 700; margin: 6px 0 0; overflow-wrap: anywhere; }body[data-style-page="/Operator/FollowUps"] .fu-eyebrow{ color: var(--text-2); font-size: .72rem; }body[data-style-page="/Operator/FollowUps"] .fu-urgency{ display: flex; align-items: center; gap: 8px; background: var(--warn-soft); color: var(--warn); border-radius: 12px; padding: 12px 14px; font-size: .78rem; font-weight: 600; margin-bottom: 16px; }body[data-style-page="/Operator/FollowUps"] .fu-customer{ display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); }body[data-style-page="/Operator/FollowUps"] .fu-customer-avatar{ width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-2); display: flex; justify-content: center; align-items: center; font-size: 1.35rem; flex-shrink: 0; }body[data-style-page="/Operator/FollowUps"] .fu-customer strong{ font-size: .92rem; }body[data-style-page="/Operator/FollowUps"] #detailContact{ font-size: .76rem; color: var(--text-2); margin-top: 6px; overflow-wrap: anywhere; }body[data-style-page="/Operator/FollowUps"] .fu-metadata{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; padding: 18px 2px; margin: 0; }body[data-style-page="/Operator/FollowUps"] .fu-metadata dt{ font-size: .68rem; color: var(--text-2); margin-bottom: 5px; font-weight: 500; }body[data-style-page="/Operator/FollowUps"] .fu-metadata dd{ margin: 0; font-size: .79rem; font-weight: 500; }body[data-style-page="/Operator/FollowUps"] #detailMessageWrap{ border-top: 1px solid var(--border); padding: 18px 0; }body[data-style-page="/Operator/FollowUps"] #detailMessageWrap h3{ font-size: .88rem; font-weight: 700; margin: 0 0 10px; }body[data-style-page="/Operator/FollowUps"] .fu-visitor-message{ margin: 0; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; font-size: .82rem; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }body[data-style-page="/Operator/FollowUps"] .fu-edit-form{ border-top: 1px solid var(--border); padding-top: 20px; }body[data-style-page="/Operator/FollowUps"] .fu-edit-form h3,body[data-style-page="/Operator/FollowUps"] .fu-notes-heading h3{ font-size: .88rem; font-weight: 700; margin: 0 0 14px; }body[data-style-page="/Operator/FollowUps"] .fu-form-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }body[data-style-page="/Operator/FollowUps"] .fu-edit-form label{ display: flex; flex-direction: column; gap: 8px; font-size: .74rem; color: var(--text-2); margin-bottom: 14px; }body[data-style-page="/Operator/FollowUps"] .fu-edit-form select,body[data-style-page="/Operator/FollowUps"] .fu-edit-form input,body[data-style-page="/Operator/FollowUps"] .fu-edit-form textarea{ width: 100%; min-width: 0; max-width: none; }body[data-style-page="/Operator/FollowUps"] .followups-app textarea{ resize: vertical; line-height: 1.9; }body[data-style-page="/Operator/FollowUps"] .fu-save-row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }body[data-style-page="/Operator/FollowUps"] #dirtyHint{ color: var(--text-2); font-size: .69rem; }body[data-style-page="/Operator/FollowUps"] .fu-notes-section{ border-top: 1px solid var(--border); padding-top: 20px; margin-top: 22px; }body[data-style-page="/Operator/FollowUps"] .fu-notes-heading{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }body[data-style-page="/Operator/FollowUps"] .fu-notes-heading > span{ display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; color: var(--text-2); }body[data-style-page="/Operator/FollowUps"] .fu-notes{ max-height: 270px; overflow-y: auto; margin: 8px 0 16px; display: grid; gap: 9px; font-size: .76rem; }body[data-style-page="/Operator/FollowUps"] .fu-note{ padding: 13px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }body[data-style-page="/Operator/FollowUps"] .fu-note header{ display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--text-2); font-size: .67rem; }body[data-style-page="/Operator/FollowUps"] .fu-note p{ white-space: pre-wrap; overflow-wrap: anywhere; line-height: 2; margin: 8px 0 0; }body[data-style-page="/Operator/FollowUps"] .fu-note-empty{ color: var(--text-2); font-size: .76rem; }body[data-style-page="/Operator/FollowUps"] #fuNoteForm textarea{ display: block; width: 100%; margin: 8px 0; }body[data-style-page="/Operator/FollowUps"] .fu-feedback{ margin: 14px 0 0; font-size: .8rem; color: var(--brand-2); line-height: 1.8; }body[data-style-page="/Operator/FollowUps"] .fu-feedback:empty{ display: none; }body[data-style-page="/Operator/FollowUps"] .fu-feedback.error{ color: var(--danger); }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Scrollbars (list & notes only) */
.fu-list,body[data-style-page="/Operator/FollowUps"] .fu-notes,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }body[data-style-page="/Operator/FollowUps"] .fu-list::-webkit-scrollbar,body[data-style-page="/Operator/FollowUps"] .fu-notes::-webkit-scrollbar,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel::-webkit-scrollbar{ width: 6px; }body[data-style-page="/Operator/FollowUps"] .fu-list::-webkit-scrollbar-thumb,body[data-style-page="/Operator/FollowUps"] .fu-notes::-webkit-scrollbar-thumb,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 999px; }body[data-style-page="/Operator/FollowUps"] /* ---------------------------------------------------------------- Responsive */
@media (max-width: 1180px){
    .fu-header { align-items: start; }
    .fu-header-controls { justify-content: end; }
    .fu-summary > div { padding: 14px 16px; gap: 12px; }
    .fu-workspace { grid-template-columns: minmax(310px, 1fr) minmax(0, 1.15fr); }
}
@media (max-width: 860px) {body[data-style-page="/Operator/FollowUps"] .followups-app{ padding: 18px 16px 32px; }body[data-style-page="/Operator/FollowUps"] .fu-header{ flex-direction: column; align-items: stretch; gap: 16px; }body[data-style-page="/Operator/FollowUps"] .fu-header-controls{ justify-content: start; width: 100%; }body[data-style-page="/Operator/FollowUps"] .fu-summary{ grid-template-columns: 1fr 1fr; gap: 10px; }body[data-style-page="/Operator/FollowUps"] .fu-workspace{ grid-template-columns: 1fr; gap: 16px; }body[data-style-page="/Operator/FollowUps"] .fu-list-panel,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{ padding: 16px; border-radius: 16px; }body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{ position: static; max-height: none; overflow: visible; }body[data-style-page="/Operator/FollowUps"] .fu-list{ max-height: 62dvh; overflow-y: auto; padding-inline-end: 2px; }body[data-style-page="/Operator/FollowUps"] .fu-palette.palette-desktop{ display: flex; }body[data-style-page="/Operator/FollowUps"] .fu-filter-row{ flex-wrap: wrap; }body[data-style-page="/Operator/FollowUps"] .fu-secondary-filters select{ min-width: 140px; }
}
@media (max-width: 520px) {body[data-style-page="/Operator/FollowUps"] .followups-app{ padding: 14px 12px 28px; }body[data-style-page="/Operator/FollowUps"] .fu-header h1{ font-size: 1.35rem; }body[data-style-page="/Operator/FollowUps"] .fu-summary{ grid-template-columns: 1fr 1fr; gap: 8px; }body[data-style-page="/Operator/FollowUps"] .fu-summary > div{ padding: 12px; gap: 10px; border-radius: 13px; }body[data-style-page="/Operator/FollowUps"] .fu-summary i{ width: 34px; height: 34px; font-size: 1rem; }body[data-style-page="/Operator/FollowUps"] .fu-summary span{ font-size: .66rem; }body[data-style-page="/Operator/FollowUps"] .fu-summary strong{ font-size: 1.25rem; }body[data-style-page="/Operator/FollowUps"] .fu-list-panel,body[data-style-page="/Operator/FollowUps"] .fu-detail-panel{ padding: 12px; }body[data-style-page="/Operator/FollowUps"] .fu-scopes{ overflow-x: auto; }body[data-style-page="/Operator/FollowUps"] .fu-scopes button{ font-size: .68rem; padding: 9px 4px; }body[data-style-page="/Operator/FollowUps"] .fu-filter-row{ flex-direction: column; }body[data-style-page="/Operator/FollowUps"] .fu-secondary-filters{ flex-direction: row; }body[data-style-page="/Operator/FollowUps"] .fu-form-grid{ grid-template-columns: 1fr; }body[data-style-page="/Operator/FollowUps"] .fu-metadata{ grid-template-columns: 1fr; gap: 12px; }body[data-style-page="/Operator/FollowUps"] .fu-bot-control select{ max-width: 150px; }body[data-style-page="/Operator/FollowUps"] .fu-item{ padding: 14px; }
}



/* Page stylesheet: /Account/ApiKey */
body[data-style-page="/Account/ApiKey"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/ApiKey"] .apikey-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Account/ApiKey"] .apikey-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(ellipse at 20% 20%, rgba(var(--rx-accent-rgb), 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(var(--rx-accent-rgb), 0.1) 0%, transparent 50%);
        pointer-events: none;
    }body[data-style-page="/Account/ApiKey"] .apikey-container{ max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Account/ApiKey"] .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2) 0%, rgba(var(--rx-accent-rgb), 0.2) 50%, rgba(var(--rx-accent-rgb), 0.15) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px; padding: 2.5rem; margin-bottom: 2rem;
        position: relative; overflow: hidden;
    }body[data-style-page="/Account/ApiKey"] .hero-section::before{
        content: ''; position: absolute; top: -50%; right: -20%;
        width: 400px; height: 400px;
        background: radial-gradient(circle, rgba(var(--rx-accent-rgb), 0.2), transparent);
        border-radius: 50%;
    }body[data-style-page="/Account/ApiKey"] .hero-section h1{
        font-size: 2.25rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem;
        position: relative; z-index: 1;
    }body[data-style-page="/Account/ApiKey"] .hero-section h1 i{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Account/ApiKey"] .hero-section p{ color: var(--rx-ink-soft); font-size: 1.05rem; margin: 0; position: relative; z-index: 1; }body[data-style-page="/Account/ApiKey"] .alert-box{
        padding: 1rem 1.5rem; border-radius: 14px; margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: 0.75rem; font-weight: 600;
    }body[data-style-page="/Account/ApiKey"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.15); border: 1px solid rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Account/ApiKey"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Account/ApiKey"] .main-grid{ display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }body[data-style-page="/Account/ApiKey"] .glass-card{
        background: rgba(16, 40, 41, 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 24px;
        overflow: hidden; transition: all 0.3s ease; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/ApiKey"] .glass-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3); }body[data-style-page="/Account/ApiKey"] .card-header{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15) 0%, rgba(var(--rx-accent-rgb), 0.1) 100%);
        padding: 1.25rem 1.75rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        display: flex; align-items: center; justify-content: space-between;
    }body[data-style-page="/Account/ApiKey"] .card-header-title{ display: flex; align-items: center; gap: 0.75rem; }body[data-style-page="/Account/ApiKey"] .card-header i.hdr-icon{
        font-size: 1.35rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Account/ApiKey"] .card-header h2{ margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--rx-ink); }body[data-style-page="/Account/ApiKey"] .card-body{ padding: 1.75rem; }body[data-style-page="/Account/ApiKey"] .key-item{
        background: rgba(var(--rx-surface-rgb), 0.5); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Account/ApiKey"] .key-item:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); transform: translateY(-2px); }body[data-style-page="/Account/ApiKey"] .key-item.primary{ border-color: rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/Account/ApiKey"] .key-item.inactive{ opacity: 0.6; }body[data-style-page="/Account/ApiKey"] .key-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem; }body[data-style-page="/Account/ApiKey"] .key-name{ color: var(--rx-ink); font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }body[data-style-page="/Account/ApiKey"] .key-badges{ display: flex; gap: 0.5rem; flex-wrap: wrap; }body[data-style-page="/Account/ApiKey"] .badge-primary{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }body[data-style-page="/Account/ApiKey"] .badge-active{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }body[data-style-page="/Account/ApiKey"] .badge-inactive{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }body[data-style-page="/Account/ApiKey"] .key-value-row{ display: flex; gap: 0.5rem; margin-bottom: 0.75rem; align-items: center; }body[data-style-page="/Account/ApiKey"] .key-value-input{
        flex: 1; background: rgba(var(--rx-surface-rgb), 0.8); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 10px; padding: 0.6rem 0.85rem;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.8rem; color: var(--rx-accent); direction: ltr; text-align: left;
    }body[data-style-page="/Account/ApiKey"] .btn-copy-sm{
        background: rgba(var(--rx-accent-rgb), 0.2); border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent); border-radius: 10px; padding: 0.6rem 0.85rem;
        cursor: pointer; transition: all 0.3s ease; font-size: 0.85rem;
    }body[data-style-page="/Account/ApiKey"] .btn-copy-sm:hover{ background: rgba(var(--rx-accent-rgb), 0.35); }body[data-style-page="/Account/ApiKey"] .key-stats{ display: flex; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }body[data-style-page="/Account/ApiKey"] .key-stat{ color: var(--rx-ink-soft); font-size: 0.85rem; display: flex; align-items: center; gap: 0.35rem; }body[data-style-page="/Account/ApiKey"] .key-stat strong{ color: var(--rx-ink); font-weight: 800; }body[data-style-page="/Account/ApiKey"] .key-actions{ display: flex; gap: 0.5rem; }body[data-style-page="/Account/ApiKey"] .btn-key-action{
        padding: 0.5rem 0.85rem; border-radius: 10px; font-size: 0.8rem; font-weight: 700;
        border: none; cursor: pointer; transition: all 0.3s ease;
        display: inline-flex; align-items: center; gap: 0.35rem;
    }body[data-style-page="/Account/ApiKey"] .btn-toggle{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/Account/ApiKey"] .btn-toggle:hover{ background: rgba(var(--rx-warning-rgb), 0.25); }body[data-style-page="/Account/ApiKey"] .btn-del{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); }body[data-style-page="/Account/ApiKey"] .btn-del:hover{ background: rgba(var(--rx-danger-rgb), 0.25); }body[data-style-page="/Account/ApiKey"] .create-form{ display: flex; gap: 0.75rem; align-items: end; flex-wrap: wrap; }body[data-style-page="/Account/ApiKey"] .form-group{ flex: 1; min-width: 180px; }body[data-style-page="/Account/ApiKey"] .form-label{ color: var(--rx-ink-soft); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; display: block; }body[data-style-page="/Account/ApiKey"] .form-input{
        background: rgba(var(--rx-surface-rgb), 0.6); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px; padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--rx-ink); width: 100%;
        transition: all 0.3s ease;
    }body[data-style-page="/Account/ApiKey"] .form-input:focus{ outline: none; border-color: var(--rx-accent); background: rgba(var(--rx-accent-rgb), 0.1); }body[data-style-page="/Account/ApiKey"] .btn-create{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); border: none;
        border-radius: 12px; padding: 0.75rem 1.5rem; color: var(--rx-on-brand); font-weight: 700; font-size: 0.9rem;
        cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.5rem; white-space: nowrap;
    }body[data-style-page="/Account/ApiKey"] .btn-create:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Account/ApiKey"] .stats-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }body[data-style-page="/Account/ApiKey"] .stat-card{
        background: rgba(var(--rx-surface-rgb), 0.5); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px; padding: 1.25rem; text-align: center; transition: all 0.3s ease;
    }body[data-style-page="/Account/ApiKey"] .stat-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); transform: translateY(-2px); }body[data-style-page="/Account/ApiKey"] .stat-value{ color: var(--rx-ink); font-size: 1.5rem; font-weight: 900; margin-bottom: 0.25rem; }body[data-style-page="/Account/ApiKey"] .stat-label{ color: var(--rx-muted); font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Account/ApiKey"] .sidebar-card{
        background: rgba(16, 40, 41, 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px;
        overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/ApiKey"] .sidebar-card-header{
        padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        display: flex; align-items: center; gap: 0.75rem;
    }body[data-style-page="/Account/ApiKey"] .sidebar-card-header.warning{ background: rgba(var(--rx-warning-rgb), 0.1); }body[data-style-page="/Account/ApiKey"] .sidebar-card-header.info{ background: rgba(var(--rx-info-rgb), 0.1); }body[data-style-page="/Account/ApiKey"] .sidebar-card-header i{ font-size: 1.25rem; }body[data-style-page="/Account/ApiKey"] .sidebar-card-header.warning i{ color: var(--rx-warning); }body[data-style-page="/Account/ApiKey"] .sidebar-card-header.info i{ color: var(--rx-info); }body[data-style-page="/Account/ApiKey"] .sidebar-card-header h3{ margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--rx-ink); }body[data-style-page="/Account/ApiKey"] .sidebar-card-body{ padding: 1.5rem; }body[data-style-page="/Account/ApiKey"] .security-list{ list-style: none; padding: 0; margin: 0; }body[data-style-page="/Account/ApiKey"] .security-list li{
        display: flex; align-items: flex-start; gap: 0.75rem;
        color: var(--rx-ink-soft); font-size: 0.9rem; font-weight: 500;
        padding: 0.65rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Account/ApiKey"] .security-list li:last-child{ border-bottom: none; }body[data-style-page="/Account/ApiKey"] .security-list li i{ color: var(--rx-warning); font-size: 0.85rem; margin-top: 0.2rem; flex-shrink: 0; }body[data-style-page="/Account/ApiKey"] .code-block{
        background: var(--rx-page); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px; padding: 1.25rem; overflow-x: auto;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.85rem; line-height: 1.8; color: var(--rx-ink); direction: ltr; text-align: left;
    }body[data-style-page="/Account/ApiKey"] .code-block .cm{ color: var(--rx-danger); font-weight: 700; }body[data-style-page="/Account/ApiKey"] .code-block .cu{ color: var(--rx-info); }body[data-style-page="/Account/ApiKey"] .code-block .ch{ color: var(--rx-warning); }body[data-style-page="/Account/ApiKey"] .code-block .cv{ color: var(--rx-accent); }body[data-style-page="/Account/ApiKey"] .code-block .ck{ color: var(--rx-success); }

    @media (max-width: 1024px) {body[data-style-page="/Account/ApiKey"] .main-grid{ grid-template-columns: 1fr; } }
    @media (max-width: 768px) {body[data-style-page="/Account/ApiKey"] .apikey-wrapper{ padding: 1rem; }body[data-style-page="/Account/ApiKey"] .hero-section{ padding: 1.5rem; }body[data-style-page="/Account/ApiKey"] .hero-section h1{ font-size: 1.75rem; }body[data-style-page="/Account/ApiKey"] .stats-grid{ grid-template-columns: 1fr; }body[data-style-page="/Account/ApiKey"] .create-form{ flex-direction: column; }
    }body[data-style-page="/Account/ApiKey"] /* ── Webhook Test Modal ── */
    .wt-backdrop{
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }body[data-style-page="/Account/ApiKey"] .wt-modal{
        display: none; position: fixed; inset: 0; z-index: 9000;
        align-items: center; justify-content: center;
    }body[data-style-page="/Account/ApiKey"] .wt-modal.open{ display: flex; }body[data-style-page="/Account/ApiKey"] .wt-card{
        position: relative; z-index: 1;
        background: linear-gradient(145deg, var(--rx-surface) 0%, var(--rx-page) 100%);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.35);
        border-radius: 24px; padding: 2.5rem 2rem;
        width: 90%; max-width: 420px;
        box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--rx-accent-rgb), 0.1);
        text-align: center;
    }body[data-style-page="/Account/ApiKey"] /* Loading animation */
    .wt-pulse-wrap{
        position: relative; width: 100px; height: 100px;
        margin: 0 auto 1.5rem;
    }body[data-style-page="/Account/ApiKey"] .wt-ring{
        position: absolute; inset: 0; border-radius: 50%;
        border: 2px solid rgba(var(--rx-info-rgb), 0.5);
        animation: page1956d48063-wtRingPulse 2s ease-out infinite;
    }body[data-style-page="/Account/ApiKey"] .wt-ring:nth-child(2){ animation-delay: 0.6s; }body[data-style-page="/Account/ApiKey"] .wt-ring:nth-child(3){ animation-delay: 1.2s; }
    @keyframes page1956d48063-wtRingPulse {
        0%   { transform: scale(0.4); opacity: 1; }
        100% { transform: scale(1.4); opacity: 0; }
    }body[data-style-page="/Account/ApiKey"] .wt-center-icon{
        position: absolute; inset: 0;
        display: flex; align-items: center; justify-content: center;
        font-size: 2rem; color: var(--rx-info);
        animation: page1956d48063-wtIconPulse 1.5s ease-in-out infinite;
    }
    @keyframes page1956d48063-wtIconPulse {
        0%,100% { opacity: 1; transform: scale(1); }
        50%      { opacity: 0.6; transform: scale(0.92); }
    }body[data-style-page="/Account/ApiKey"] .wt-loading-title{
        color: var(--rx-ink); font-size: 1.15rem; font-weight: 700; margin: 0 0 0.5rem;
    }body[data-style-page="/Account/ApiKey"] .wt-url-label{
        color: var(--rx-muted); font-size: 0.78rem;
        word-break: break-all; margin: 0 0 1rem; direction: ltr;
    }body[data-style-page="/Account/ApiKey"] .wt-dots{ display: flex; justify-content: center; gap: 6px; }body[data-style-page="/Account/ApiKey"] .wt-dots span{
        width: 8px; height: 8px; border-radius: 50%;
        background: var(--rx-info-fill);
        animation: page1956d48063-wtDot 1.4s ease-in-out infinite;
    }body[data-style-page="/Account/ApiKey"] .wt-dots span:nth-child(2){ animation-delay: 0.2s; }body[data-style-page="/Account/ApiKey"] .wt-dots span:nth-child(3){ animation-delay: 0.4s; }
    @keyframes page1956d48063-wtDot {
        0%,80%,100% { transform: scale(0); opacity: 0.3; }
        40%          { transform: scale(1);   opacity: 1; }
    }body[data-style-page="/Account/ApiKey"] /* Success */
    .wt-success-icon{
        width: 80px; height: 80px; margin: 0 auto 1.25rem;
    }body[data-style-page="/Account/ApiKey"] .wt-check-circle{
        stroke: var(--rx-success); stroke-width: 2;
        stroke-dasharray: 166; stroke-dashoffset: 166;
        animation: page1956d48063-wtDrawCircle 0.6s ease forwards;
    }body[data-style-page="/Account/ApiKey"] .wt-check-mark{
        stroke: var(--rx-success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
        stroke-dasharray: 48; stroke-dashoffset: 48;
        animation: page1956d48063-wtDrawCheck 0.4s 0.5s ease forwards;
    }
    @keyframes page1956d48063-wtDrawCircle { to { stroke-dashoffset: 0; } }
    @keyframes page1956d48063-wtDrawCheck  { to { stroke-dashoffset: 0; } }body[data-style-page="/Account/ApiKey"] .wt-success-title{ color: var(--rx-success); font-size: 1.2rem; font-weight: 800; margin: 0 0 1.25rem; }body[data-style-page="/Account/ApiKey"] .wt-stats-row{
        display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/ApiKey"] .wt-stat-box{
        flex: 1; background: rgba(var(--rx-success-rgb), 0.1);
        border: 1px solid rgba(var(--rx-success-rgb), 0.25); border-radius: 12px;
        padding: 0.75rem 0.5rem;
    }body[data-style-page="/Account/ApiKey"] .wt-stat-val{ color: var(--rx-ink); font-size: 1.15rem; font-weight: 900; display: block; }body[data-style-page="/Account/ApiKey"] .wt-stat-lbl{ color: var(--rx-muted); font-size: 0.72rem; display: block; margin-top: 2px; }body[data-style-page="/Account/ApiKey"] .wt-status-badge{
        display: inline-block; padding: 0.2rem 0.6rem; border-radius: 6px;
        font-size: 0.8rem; font-weight: 700; margin-top: 4px;
    }body[data-style-page="/Account/ApiKey"] /* Error */
    .wt-error-icon{ font-size: 4rem; color: var(--rx-danger); margin-bottom: 1rem; animation: page1956d48063-wtShake 0.4s ease; }
    @keyframes page1956d48063-wtShake {
        0%,100% { transform: translateX(0); }
        20%      { transform: translateX(-8px); }
        40%      { transform: translateX(8px); }
        60%      { transform: translateX(-5px); }
        80%      { transform: translateX(5px); }
    }body[data-style-page="/Account/ApiKey"] .wt-error-title{ color: var(--rx-danger); font-size: 1.2rem; font-weight: 800; margin: 0 0 1rem; }body[data-style-page="/Account/ApiKey"] .wt-error-msg{
        background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.25);
        border-radius: 12px; padding: 0.85rem 1rem;
        color: var(--rx-ink-soft); font-size: 0.85rem; line-height: 1.6;
        word-break: break-word; margin-bottom: 1.5rem; direction: ltr; text-align: left;
    }body[data-style-page="/Account/ApiKey"] /* Close button */
    .wt-close-btn{
        background: rgba(var(--rx-accent-rgb), 0.15); border: 1px solid rgba(var(--rx-accent-rgb), 0.35);
        color: var(--rx-accent); border-radius: 12px; padding: 0.6rem 2rem;
        font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    }body[data-style-page="/Account/ApiKey"] .wt-close-btn:hover{ background: rgba(var(--rx-accent-rgb), 0.3); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/ApiKey"])) .hero-section{ border-color: var(--theme-border-soft); background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .10), rgba(var(--theme-accent-rgb), .04)); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .card-header i.hdr-icon{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .card-header > span{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .glass-card:hover{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-name i[style*="#2dd4bf"]{ color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-name i[style*="#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .badge-primary{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .badge-active{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .badge-inactive{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-stat{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-stat strong{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .admin-content .glass-card .key-item .key-stat strong[style*="#34d399"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .admin-content .glass-card .key-item .key-stat strong[style*="#f87171"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-item [style*="border-top: 1px solid rgba(255,255,255"]{ border-top-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .btn-toggle{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .btn-del{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .btn-key-action[style*="#22d3ee"]{ background: rgba(8,145,178,.1) !important; border-color: rgba(8,145,178,.3) !important; color: #0e7490 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .admin-content i[style*="#22d3ee"]{ color: #0e7490 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .admin-content i[style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .stat-value span[style*="rgba(255,255,255"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .stat-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .card-body > div[style*="rgba(255,255,255,0.4)"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .card-body > div[style*="rgba(15, 118, 110, 0.08)"]{ background: rgba(var(--theme-accent-rgb), .06) !important; border-color: var(--theme-border) !important; color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .sidebar-card-header{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .sidebar-card-header.warning i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .sidebar-card-header.info i{ color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .security-list li{ color: var(--theme-text-2); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .security-list li i{ color: var(--rx-warning); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/ApiKey"])) .wt-backdrop{ background: rgba(var(--rx-surface-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-card{ background: var(--theme-surface) !important; border-color: var(--theme-border) !important; box-shadow: 0 30px 80px rgba(15,23,42,.18); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-card .wt-loading-title{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-card .wt-url-label{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-ring{ border-color: rgba(8,145,178,.45); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-center-icon{ color: var(--rx-info); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-dots span{ background: var(--rx-info-fill); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-card .wt-success-title{ color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-stat-val{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] #wt-status-code[style*="52, 211, 153"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] #wt-status-code[style*="251, 191, 36"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] #wt-status-code[style*="248, 113, 113"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-stat-lbl{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-card .wt-error-title{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .wt-error-msg{ background: rgba(var(--rx-danger-rgb), 0.06); color: var(--theme-text-2); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .glass-card{ background: var(--theme-surface) !important; box-shadow: none; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .sidebar-card{ background: var(--theme-surface) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-item{ background: var(--theme-surface-2) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .key-value-input{ background: var(--theme-surface) !important; color: var(--theme-accent-strong) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .form-input{ background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .stat-card{ background: var(--theme-surface-2) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ApiKey"] .code-block{ background: #0d1b1c !important; color: #c9d1d9 !important; }
html.light-theme[data-admin-palette] body.customer-panel[data-style-page="/Account/ApiKey"] .code-block{ background: var(--rx-page) !important; color: var(--rx-ink) !important; }




/* Remaining-request balance */
body[data-style-page="/Account/ApiKey"] .rx-remaining-requests { font-size: .85rem; font-weight: 700; }
body[data-style-page="/Account/ApiKey"] .rx-remaining-requests.is-positive { color: var(--rx-success); }
body[data-style-page="/Account/ApiKey"] .rx-remaining-requests.is-negative { color: var(--rx-danger); }

/* Key type icon */
body[data-style-page="/Account/ApiKey"] .api-key-icon.is-primary { color: var(--rx-warning); }
body[data-style-page="/Account/ApiKey"] .api-key-icon.is-secondary { color: var(--rx-accent); }
/* API key management: separate key inventory from creation controls and usage guidance. */
body.customer-panel[data-style-page="/Account/ApiKey"] .apikey-wrapper { padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Account/ApiKey"] .apikey-container { max-width:1180px; }
body.customer-panel[data-style-page="/Account/ApiKey"] .hero-section { padding:20px 22px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/ApiKey"] .main-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr); gap:16px; align-items:start; }
body.customer-panel[data-style-page="/Account/ApiKey"] .key-card, body.customer-panel[data-style-page="/Account/ApiKey"] .glass-card { border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/ApiKey"] .apikey-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/ApiKey"] .hero-section{padding:16px}body.customer-panel[data-style-page="/Account/ApiKey"] .main-grid{grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/ApiKey"] .key-value-row{display:flex;min-width:0}body.customer-panel[data-style-page="/Account/ApiKey"] .key-value-input{min-width:0}}
/* Page stylesheet: /Account/ChatbotApi */
body[data-style-page="/Account/ChatbotApi"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/ChatbotApi"] .apikey-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Account/ChatbotApi"] .apikey-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(ellipse at 20% 20%, rgba(var(--rx-accent-rgb), 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(var(--rx-accent-rgb), 0.1) 0%, transparent 50%);
        pointer-events: none;
    }body[data-style-page="/Account/ChatbotApi"] .apikey-container{ max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Account/ChatbotApi"] .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2) 0%, rgba(var(--rx-accent-rgb), 0.2) 50%, rgba(var(--rx-accent-rgb), 0.15) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px; padding: 2.5rem; margin-bottom: 2rem;
        position: relative; overflow: hidden;
    }body[data-style-page="/Account/ChatbotApi"] .hero-section::before{
        content: ''; position: absolute; top: -50%; right: -20%;
        width: 400px; height: 400px;
        background: radial-gradient(circle, rgba(var(--rx-accent-rgb), 0.2), transparent);
        border-radius: 50%;
    }body[data-style-page="/Account/ChatbotApi"] .hero-section h1{
        font-size: 2.25rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem;
        position: relative; z-index: 1;
    }body[data-style-page="/Account/ChatbotApi"] .hero-section h1 i{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Account/ChatbotApi"] .hero-section p{ color: var(--rx-ink-soft); font-size: 1.05rem; margin: 0; position: relative; z-index: 1; }body[data-style-page="/Account/ChatbotApi"] .main-grid{ display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }body[data-style-page="/Account/ChatbotApi"] .glass-card{
        background: rgba(16, 40, 41, 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 24px;
        overflow: hidden; transition: all 0.3s ease; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/ChatbotApi"] .glass-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3); }body[data-style-page="/Account/ChatbotApi"] .card-header{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15) 0%, rgba(var(--rx-accent-rgb), 0.1) 100%);
        padding: 1.25rem 1.75rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
    }body[data-style-page="/Account/ChatbotApi"] .card-header-title{ display: flex; align-items: center; gap: 0.75rem; }body[data-style-page="/Account/ChatbotApi"] .card-header i.hdr-icon{
        font-size: 1.35rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Account/ChatbotApi"] .card-header h2{ margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--rx-ink); }body[data-style-page="/Account/ChatbotApi"] .card-body{ padding: 1.75rem; }body[data-style-page="/Account/ChatbotApi"] .method-badge{
        display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 8px;
        font-size: 0.75rem; font-weight: 800; font-family: var(--rx-font-mono) !important;
        margin-left: 0.5rem; direction: ltr;
    }body[data-style-page="/Account/ChatbotApi"] .method-post{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); }body[data-style-page="/Account/ChatbotApi"] .method-put{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/Account/ChatbotApi"] .method-delete{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); }body[data-style-page="/Account/ChatbotApi"] .method-get{ background: rgba(var(--rx-info-rgb), 0.15); color: var(--rx-info); border: 1px solid rgba(var(--rx-info-rgb), 0.3); }body[data-style-page="/Account/ChatbotApi"] .endpoint-path{
        font-family: var(--rx-font-mono) !important; direction: ltr; display: inline-block;
        color: var(--rx-accent); font-size: 0.9rem; font-weight: 700;
    }body[data-style-page="/Account/ChatbotApi"] .endpoint-block{ margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Account/ChatbotApi"] .endpoint-block:last-child{ margin-bottom: 0; padding-bottom: 0; border-bottom: none; }body[data-style-page="/Account/ChatbotApi"] .endpoint-title{ display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 0.6rem; }body[data-style-page="/Account/ChatbotApi"] .endpoint-desc{ color: var(--rx-ink-soft); font-size: 0.9rem; margin: 0 0 0.9rem 0; line-height: 1.8; }body[data-style-page="/Account/ChatbotApi"] .code-block{
        background: var(--rx-page); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px; padding: 1.25rem; overflow-x: auto;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.85rem; line-height: 1.8; color: var(--rx-ink); direction: ltr; text-align: left;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Account/ChatbotApi"] .code-block .cm{ color: var(--rx-danger); font-weight: 700; }body[data-style-page="/Account/ChatbotApi"] .code-block .cu{ color: var(--rx-info); }body[data-style-page="/Account/ChatbotApi"] .code-block .ch{ color: var(--rx-warning); }body[data-style-page="/Account/ChatbotApi"] .code-block .cv{ color: var(--rx-accent); }body[data-style-page="/Account/ChatbotApi"] .code-block .ck{ color: var(--rx-success); }body[data-style-page="/Account/ChatbotApi"] .code-label{ color: var(--rx-muted); font-size: 0.75rem; font-weight: 700; margin: 0 0 0.35rem 0; text-transform: uppercase; letter-spacing: 0.03em; }body[data-style-page="/Account/ChatbotApi"] .params-table{ width: 100%; border-collapse: collapse; margin-bottom: 0.5rem; font-size: 0.85rem; }body[data-style-page="/Account/ChatbotApi"] .params-table th,body[data-style-page="/Account/ChatbotApi"] .params-table td{ padding: 0.55rem 0.75rem; text-align: right; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Account/ChatbotApi"] .params-table th{ color: var(--rx-muted); font-weight: 700; font-size: 0.78rem; }body[data-style-page="/Account/ChatbotApi"] .params-table td{ color: var(--rx-ink-soft); }body[data-style-page="/Account/ChatbotApi"] .params-table code{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.8rem; direction: ltr; display: inline-block; }body[data-style-page="/Account/ChatbotApi"] .key-item{
        background: rgba(var(--rx-surface-rgb), 0.5); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px; padding: 1rem 1.25rem; margin-bottom: 0.85rem;
    }body[data-style-page="/Account/ChatbotApi"] .key-item.primary{ border-color: rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/Account/ChatbotApi"] .key-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; flex-wrap: wrap; gap: 0.4rem; }body[data-style-page="/Account/ChatbotApi"] .key-name{ color: var(--rx-ink); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }body[data-style-page="/Account/ChatbotApi"] .badge-primary{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); padding: 0.25rem 0.65rem; border-radius: 50px; font-size: 0.72rem; font-weight: 700; }body[data-style-page="/Account/ChatbotApi"] .key-value-row{ display: flex; gap: 0.5rem; align-items: center; }body[data-style-page="/Account/ChatbotApi"] .key-value-input{
        flex: 1; background: rgba(var(--rx-surface-rgb), 0.8); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 10px; padding: 0.6rem 0.85rem;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.8rem; color: var(--rx-accent); direction: ltr; text-align: left;
    }body[data-style-page="/Account/ChatbotApi"] .btn-copy-sm{
        background: rgba(var(--rx-accent-rgb), 0.2); border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent); border-radius: 10px; padding: 0.6rem 0.85rem;
        cursor: pointer; transition: all 0.3s ease; font-size: 0.85rem;
    }body[data-style-page="/Account/ChatbotApi"] .btn-copy-sm:hover{ background: rgba(var(--rx-accent-rgb), 0.35); }body[data-style-page="/Account/ChatbotApi"] .link-manage-keys{
        display: inline-flex; align-items: center; gap: 0.4rem;
        color: var(--rx-accent); font-size: 0.85rem; font-weight: 700; text-decoration: none;
        margin-top: 0.25rem;
    }body[data-style-page="/Account/ChatbotApi"] .link-manage-keys:hover{ color: var(--rx-accent); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card{
        background: rgba(16, 40, 41, 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px;
        overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header{
        padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        display: flex; align-items: center; gap: 0.75rem;
    }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.warning{ background: rgba(var(--rx-warning-rgb), 0.1); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.info{ background: rgba(var(--rx-info-rgb), 0.1); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header i{ font-size: 1.25rem; }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.warning i{ color: var(--rx-warning); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.info i{ color: var(--rx-info); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header h3{ margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--rx-ink); }body[data-style-page="/Account/ChatbotApi"] .sidebar-card-body{ padding: 1.5rem; }body[data-style-page="/Account/ChatbotApi"] .security-list{ list-style: none; padding: 0; margin: 0; }body[data-style-page="/Account/ChatbotApi"] .security-list li{
        display: flex; align-items: flex-start; gap: 0.75rem;
        color: var(--rx-ink-soft); font-size: 0.9rem; font-weight: 500;
        padding: 0.65rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Account/ChatbotApi"] .security-list li:last-child{ border-bottom: none; }body[data-style-page="/Account/ChatbotApi"] .security-list li i{ color: var(--rx-warning); font-size: 0.85rem; margin-top: 0.2rem; flex-shrink: 0; }body[data-style-page="/Account/ChatbotApi"] .status-list{ list-style: none; padding: 0; margin: 0; }body[data-style-page="/Account/ChatbotApi"] .status-list li{ display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05); font-size: 0.85rem; color: var(--rx-ink-soft); }body[data-style-page="/Account/ChatbotApi"] .status-list li:last-child{ border-bottom: none; }body[data-style-page="/Account/ChatbotApi"] .status-code{
        font-family: var(--rx-font-mono) !important; font-weight: 800; font-size: 0.8rem;
        padding: 0.15rem 0.5rem; border-radius: 6px; min-width: 2.6rem; text-align: center; direction: ltr;
    }body[data-style-page="/Account/ChatbotApi"] .status-2xx{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Account/ChatbotApi"] .status-4xx{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }

    @media (max-width: 1024px) {body[data-style-page="/Account/ChatbotApi"] .main-grid{ grid-template-columns: 1fr; } }
    @media (max-width: 768px) {body[data-style-page="/Account/ChatbotApi"] .apikey-wrapper{ padding: 1rem; }body[data-style-page="/Account/ChatbotApi"] .hero-section{ padding: 1.5rem; }body[data-style-page="/Account/ChatbotApi"] .hero-section h1{ font-size: 1.75rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/ChatbotApi"])) .hero-section{ border-color: var(--theme-border-soft); background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .10), rgba(var(--theme-accent-rgb), .04)); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .card-header i.hdr-icon{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .glass-card:hover{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .method-post{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .method-put{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .method-delete{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .method-get{ background: rgba(8,145,178,.1); border-color: rgba(8,145,178,.3); color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .endpoint-block{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .key-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .key-name i[style*="#2dd4bf"]{ color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .key-name i[style*="#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .badge-primary{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .card-body > div[style*="rgba(255,255,255,0.4)"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .link-manage-keys{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .link-manage-keys:hover{ color: var(--theme-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.warning i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .sidebar-card-header.info i{ color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .security-list li,html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .status-list li{ color: var(--theme-text-2); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .security-list li i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .security-list li i[style*="#22d3ee"]{ color: #0e7490 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .status-2xx{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .status-4xx{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .glass-card{ background: var(--theme-surface) !important; box-shadow: none; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .sidebar-card{ background: var(--theme-surface) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .key-item{ background: var(--theme-surface-2) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .key-value-input{ background: var(--theme-surface) !important; color: var(--theme-accent-strong) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/ChatbotApi"] .code-block{ background: #0d1b1c !important; color: #c9d1d9 !important; }
html.light-theme[data-admin-palette] body.customer-panel[data-style-page="/Account/ChatbotApi"] .code-block{ background: var(--rx-page) !important; color: var(--rx-ink) !important; }




/* Key type icon */
body[data-style-page="/Account/ChatbotApi"] .api-key-icon.is-primary { color: var(--rx-warning); }
body[data-style-page="/Account/ChatbotApi"] .api-key-icon.is-secondary { color: var(--rx-accent); }
/* Chatbot API docs: credentials remain visible beside a focused endpoint guide. */
body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-wrapper { padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-container { max-width:1440px; }
body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section { padding:20px 22px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid { display:grid; grid-template-columns:minmax(280px,.78fr) minmax(0,1.5fr); gap:16px; align-items:start; }
body.customer-panel[data-style-page="/Account/ChatbotApi"] .glass-card { border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/ChatbotApi"] .endpoint-block { margin-bottom:14px; border:1px solid var(--rx-line); border-radius:14px; background:var(--rx-page-alt); }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section{padding:16px}body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid{grid-template-columns:1fr}}

/* Customer API guide: a practical credentials rail and readable endpoint reference. */
body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-wrapper{padding:clamp(16px,2.3vw,36px);}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-container{max-width:1500px;margin-inline:auto;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(22px,3vw,38px);margin-bottom:20px;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section h1{margin:0 0 8px;font-size:clamp(1.45rem,2vw,2rem);}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section p{margin:0;max-width:64ch;line-height:1.9;color:var(--rx-muted);}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid{grid-template-columns:minmax(280px,.72fr) minmax(0,1.65fr);gap:20px;align-items:start;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:first-child{position:sticky;top:calc(var(--rx-header-height,72px) + 18px);display:grid;gap:16px;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:last-child{min-width:0;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .glass-card{overflow:hidden;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .card-header{padding:18px 20px;background:var(--rx-page-alt);border-bottom:1px solid var(--rx-line);}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .card-body{padding:20px;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .key-value-row{min-width:0;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .key-value-input{min-width:0;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .endpoint-block{padding:18px;margin-bottom:14px;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .endpoint-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .endpoint-path{overflow-wrap:anywhere;}
body.customer-panel[data-style-page="/Account/ChatbotApi"] .code-block{max-width:100%;white-space:pre;tab-size:2;}
@media(max-width:900px){body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid{grid-template-columns:1fr;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:first-child{position:static;grid-template-columns:repeat(2,minmax(0,1fr));}body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:first-child .glass-card:first-child{grid-column:1/-1;}}
@media(max-width:600px){body.customer-panel[data-style-page="/Account/ChatbotApi"] .apikey-wrapper{padding:10px;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .hero-section{display:block;padding:20px;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:first-child{display:grid;grid-template-columns:1fr;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .main-grid>div:first-child .glass-card:first-child{grid-column:auto;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .card-body{padding:16px;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .endpoint-block{padding:14px;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .key-value-row{align-items:stretch;}body.customer-panel[data-style-page="/Account/ChatbotApi"] .key-value-input{font-size:.72rem;}}
/* Page stylesheet: /Account/PaymentCallback */
body[data-style-page="/Account/PaymentCallback"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/PaymentCallback"] .callback-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }body[data-style-page="/Account/PaymentCallback"] .callback-container{
        max-width: 700px;
        width: 100%;
    }body[data-style-page="/Account/PaymentCallback"] .result-card{
        background: rgba(16, 40, 41, 0.7);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
        animation: page12ce4ef284-fadeInUp 0.5s ease;
    }body[data-style-page="/Account/PaymentCallback"] .result-card.success{
        border-color: rgba(var(--rx-success-rgb), 0.4);
    }body[data-style-page="/Account/PaymentCallback"] .result-card.failed{
        border-color: rgba(var(--rx-danger-rgb), 0.4);
    }body[data-style-page="/Account/PaymentCallback"] .result-header{
        padding: 3rem 2rem 2rem;
        text-align: center;
    }body[data-style-page="/Account/PaymentCallback"] .result-icon{
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4rem;
        animation: page12ce4ef284-bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        position: relative;
    }body[data-style-page="/Account/PaymentCallback"] .result-icon i{
        animation: page12ce4ef284-iconPulse 2s ease-in-out infinite;
    }body[data-style-page="/Account/PaymentCallback"] .result-icon::before{
        content: '';
        position: absolute;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        animation: page12ce4ef284-ripple 2s ease-out infinite;
    }body[data-style-page="/Account/PaymentCallback"] .result-icon.success::before{
        border: 3px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Account/PaymentCallback"] .result-icon.failed::before{
        border: 3px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Account/PaymentCallback"] .result-icon.success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 3px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Account/PaymentCallback"] .result-icon.failed{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
        border: 3px solid rgba(var(--rx-danger-rgb), 0.3);
    }

    @keyframes page12ce4ef284-bounceIn {
        0% { transform: scale(0) rotate(-180deg); opacity: 0; }
        50% { transform: scale(1.1) rotate(10deg); }
        70% { transform: scale(0.9) rotate(-5deg); }
        100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }

    @keyframes page12ce4ef284-iconPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    @keyframes page12ce4ef284-ripple {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.3); opacity: 0; }
    }

    @keyframes page12ce4ef284-fadeInUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }body[data-style-page="/Account/PaymentCallback"] .result-title{
        font-size: 2rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.75rem;
        animation: page12ce4ef284-fadeInUp 0.6s ease 0.3s both;
    }body[data-style-page="/Account/PaymentCallback"] .result-message{
        color: var(--rx-ink-soft);
        font-size: 1.1rem;
        margin: 0;
        line-height: 1.6;
        animation: page12ce4ef284-fadeInUp 0.6s ease 0.4s both;
    }body[data-style-page="/Account/PaymentCallback"] .result-body{
        padding: 2rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        animation: page12ce4ef284-fadeInUp 0.6s ease 0.5s both;
    }body[data-style-page="/Account/PaymentCallback"] .info-row{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Account/PaymentCallback"] .info-row:last-child{
        border-bottom: none;
    }body[data-style-page="/Account/PaymentCallback"] .info-label{
        color: var(--rx-ink-soft);
        font-size: 0.95rem;
    }body[data-style-page="/Account/PaymentCallback"] .info-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 1rem;
    }body[data-style-page="/Account/PaymentCallback"] .info-value.highlight{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.25rem;
    }body[data-style-page="/Account/PaymentCallback"] .btn-group{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Account/PaymentCallback"] .btn{
        flex: 1;
        padding: 1rem;
        border-radius: 12px;
        text-decoration: none;
        text-align: center;
        font-weight: 700;
        transition: all 0.3s;
        border: none;
        cursor: pointer;
        font-size: 1rem;
        position: relative;
        overflow: hidden;
    }body[data-style-page="/Account/PaymentCallback"] .btn::before{
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(var(--rx-contrast-rgb), 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }body[data-style-page="/Account/PaymentCallback"] .btn:hover::before{
        width: 300px;
        height: 300px;
    }body[data-style-page="/Account/PaymentCallback"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        position: relative;
        z-index: 1;
    }body[data-style-page="/Account/PaymentCallback"] .btn-primary i,body[data-style-page="/Account/PaymentCallback"] .btn-secondary i{
        position: relative;
        z-index: 2;
        margin-left: 0.5rem;
    }body[data-style-page="/Account/PaymentCallback"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Account/PaymentCallback"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-muted);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Account/PaymentCallback"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.2);
    }

    @media (max-width: 768px) {body[data-style-page="/Account/PaymentCallback"] .callback-wrapper{
            padding: 1rem;
        }body[data-style-page="/Account/PaymentCallback"] .result-header{
            padding: 2rem 1.5rem 1.5rem;
        }body[data-style-page="/Account/PaymentCallback"] .result-icon{
            width: 100px;
            height: 100px;
            font-size: 3rem;
        }body[data-style-page="/Account/PaymentCallback"] .result-icon::before{
            width: 120px;
            height: 120px;
        }body[data-style-page="/Account/PaymentCallback"] .result-title{
            font-size: 1.5rem;
        }body[data-style-page="/Account/PaymentCallback"] .result-message{
            font-size: 1rem;
        }body[data-style-page="/Account/PaymentCallback"] .result-body{
            padding: 1.5rem;
        }body[data-style-page="/Account/PaymentCallback"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Account/PaymentCallback"] .btn{
            width: 100%;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/PaymentCallback"])) .result-card{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .result-icon.success{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .result-icon.failed{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.25); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .result-icon[style*="#94a3b8"]{ color: #64748b !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .result-body{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .info-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .info-value{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .info-value.highlight{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .btn-secondary{ background: var(--theme-surface-3); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/PaymentCallback"] .result-card{ background: var(--theme-surface) !important; }



body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-wrapper{min-height:0;padding:clamp(16px,4vw,54px);background:transparent}body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-container{max-width:760px;margin-inline:auto}body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-card{border:1px solid var(--rx-line);border-radius:24px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);overflow:hidden}body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-wrapper{padding:12px}body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-actions{display:grid;grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/PaymentCallback"] .callback-actions a{justify-content:center}}
body.customer-panel[data-style-page="/Account/PaymentCallback"] .result-card{border:1px solid var(--rx-line);border-radius:24px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);overflow:hidden}
/* Page stylesheet: /Account/PurchaseChat */
body[data-style-page="/Account/PurchaseChat"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/PurchaseChat"] .purchase-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-brand-soft) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Account/PurchaseChat"] .purchase-container{ max-width: 760px; margin: 0 auto; }body[data-style-page="/Account/PurchaseChat"] .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.2), rgba(var(--rx-info-rgb), 0.15));
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-success-rgb), 0.2);
        border-radius: 24px;
        padding: 2rem 2.5rem;
        margin-bottom: 2rem;
        display: flex; align-items: center; justify-content: space-between;
        flex-wrap: wrap; gap: 1rem;
    }body[data-style-page="/Account/PurchaseChat"] .hero-text h1{
        font-size: 1.85rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 .35rem; display: flex; align-items: center; gap: .6rem;
    }body[data-style-page="/Account/PurchaseChat"] .hero-text h1 i{ background: linear-gradient(135deg,var(--rx-success-fill),var(--rx-info-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseChat"] .hero-text p{ color: var(--rx-ink-soft); margin: 0; font-size: .9rem; }body[data-style-page="/Account/PurchaseChat"] .hero-credits{
        background: rgba(var(--rx-success-rgb), 0.1); border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        border-radius: 16px; padding: 1rem 1.5rem; text-align: center; min-width: 150px;
    }body[data-style-page="/Account/PurchaseChat"] .hero-credits .cred-label{ color: var(--rx-success); font-size: .78rem; margin-bottom: .2rem; }body[data-style-page="/Account/PurchaseChat"] .hero-credits .cred-val{
        font-size: 1.8rem; font-weight: 900;
        background: linear-gradient(135deg,var(--rx-success-fill),var(--rx-info-fill));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }body[data-style-page="/Account/PurchaseChat"] .alert-box{
        padding: 1rem 1.5rem; border-radius: 14px; margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: .75rem; font-weight: 600;
    }body[data-style-page="/Account/PurchaseChat"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Account/PurchaseChat"] .glass-card{
        background: rgba(var(--rx-surface-rgb), 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 24px;
        overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/PurchaseChat"] .card-header-main{
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.12), rgba(var(--rx-info-rgb), 0.1));
        padding: 1.5rem 2rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Account/PurchaseChat"] .card-header-main h2{
        margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--rx-ink);
        display: flex; align-items: center; gap: .6rem;
    }body[data-style-page="/Account/PurchaseChat"] .card-body{ padding: 2rem; }body[data-style-page="/Account/PurchaseChat"] .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Account/PurchaseChat"] .form-label{ display: block; color: var(--rx-ink); font-weight: 700; margin-bottom: .75rem; font-size: .95rem; }body[data-style-page="/Account/PurchaseChat"] .quantity-control{ display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }body[data-style-page="/Account/PurchaseChat"] .qty-btn{
        width: 50px; height: 50px;
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-info-fill));
        border: none; border-radius: 12px; color: var(--rx-on-brand); font-size: 1.25rem;
        cursor: pointer; transition: all .3s; display: flex; align-items: center; justify-content: center;
    }body[data-style-page="/Account/PurchaseChat"] .qty-btn:hover:not(:disabled){ transform: scale(1.1); box-shadow: 0 8px 20px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Account/PurchaseChat"] .qty-btn:disabled{ opacity: .5; cursor: not-allowed; }body[data-style-page="/Account/PurchaseChat"] .qty-input{
        flex: 1; text-align: center; font-size: 2rem; font-weight: 900;
        background: rgba(var(--rx-surface-rgb), 0.8); border: 2px solid rgba(var(--rx-success-rgb), 0.3);
        border-radius: 16px; color: var(--rx-ink) !important; padding: 1rem; font-family: var(--rx-font-mono);
    }body[data-style-page="/Account/PurchaseChat"] .slider-container{ margin-top: 1rem; }body[data-style-page="/Account/PurchaseChat"] .request-slider{
        width: 100%; height: 8px;
        background: linear-gradient(90deg, var(--rx-success-fill), var(--rx-info-fill), var(--rx-info-fill));
        border-radius: 10px; outline: none; -webkit-appearance: none; cursor: pointer;
    }body[data-style-page="/Account/PurchaseChat"] .request-slider::-webkit-slider-thumb{
        -webkit-appearance: none; appearance: none; width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); border-radius: 50%; cursor: pointer;
        box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5); transition: all .3s;
    }body[data-style-page="/Account/PurchaseChat"] .request-slider::-moz-range-thumb{
        width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5);
    }body[data-style-page="/Account/PurchaseChat"] .slider-labels{ display: flex; justify-content: space-between; margin-top: .5rem; color: var(--rx-muted); font-size: .85rem; }body[data-style-page="/Account/PurchaseChat"] .price-display{
        background: rgba(var(--rx-warning-rgb), 0.08); border: 1px solid rgba(var(--rx-warning-rgb), 0.25);
        border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0;
    }body[data-style-page="/Account/PurchaseChat"] .price-label{ color: var(--rx-ink-soft); font-size: .9rem; margin-bottom: .5rem; }body[data-style-page="/Account/PurchaseChat"] .price-amount{ font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--rx-font-mono); }body[data-style-page="/Account/PurchaseChat"] .price-unit{ color: var(--rx-ink-soft); font-size: 1.25rem; margin-right: .5rem; }body[data-style-page="/Account/PurchaseChat"] .btn-purchase{
        width: 100%; padding: 1.25rem;
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-info-fill));
        color: var(--rx-on-brand); border: none; border-radius: 14px;
        font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: all .3s;
        display: flex; align-items: center; justify-content: center; gap: .75rem;
    }body[data-style-page="/Account/PurchaseChat"] .btn-purchase:hover{ transform: translateY(-2px); box-shadow: 0 15px 40px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Account/PurchaseChat"] .btn-purchase:disabled{ opacity: .5; cursor: not-allowed; transform: none; }body[data-style-page="/Account/PurchaseChat"] .info-box{
        background: rgba(var(--rx-info-rgb), 0.08); border: 1px solid rgba(var(--rx-info-rgb), 0.25);
        border-radius: 14px; padding: 1.25rem; margin-top: 1.5rem;
    }body[data-style-page="/Account/PurchaseChat"] .info-box p{ color: var(--rx-ink-soft); margin: 0; line-height: 1.6; }body[data-style-page="/Account/PurchaseChat"] .info-box i{ color: var(--rx-info); margin-left: .5rem; }body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav{
        display: flex; align-items: center; gap: .5rem;
        margin-bottom: 1.5rem; font-size: .875rem; color: var(--rx-muted);
    }body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav a{ color: var(--rx-muted); text-decoration: none; }body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav a:hover{ color: var(--rx-ink); }body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav .current{ color: var(--rx-ink); font-weight: 600; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/PurchaseChat"])) .breadcrumb-nav{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav a{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav a:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .breadcrumb-nav .current{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .hero-section{ background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.1), rgba(var(--rx-info-rgb), 0.07)); border-color: rgba(var(--rx-success-rgb), 0.22); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .hero-text h1 i{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-brand)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .hero-credits .cred-label{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .hero-credits .cred-val{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-brand)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .card-header-main{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .card-header-main h2 i,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .form-label i{ color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .slider-labels{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-unit{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-amount{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-display [style*="rgba(255,255,255,.12)"]{ border-bottom-color: rgba(180,83,9,.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-display [style*="rgba(255,255,255,.7)"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-display [style*="color:#fff"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .price-display [style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseChat"] .info-box i{ color: var(--rx-accent); }



body.customer-panel[data-style-page="/Account/PurchaseChat"] .purchase-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Account/PurchaseChat"] .purchase-container{max-width:1120px}body.customer-panel[data-style-page="/Account/PurchaseChat"] .hero-section{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/PurchaseChat"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/PurchaseChat"] #purchaseForm{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.72fr);gap:18px;align-items:start}body.customer-panel[data-style-page="/Account/PurchaseChat"] .price-display{position:sticky;top:96px;border:1px solid var(--rx-line);border-radius:18px;background:linear-gradient(145deg,var(--rx-surface),var(--rx-brand-soft))}@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/PurchaseChat"] .purchase-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/PurchaseChat"] .hero-section{padding:16px}body.customer-panel[data-style-page="/Account/PurchaseChat"] #purchaseForm{grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/PurchaseChat"] .price-display{position:static}}
/* Page stylesheet: /Account/PurchaseContent */
body[data-style-page="/Account/PurchaseContent"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/PurchaseContent"] .purchase-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Account/PurchaseContent"] .purchase-container{ max-width: 760px; margin: 0 auto; }body[data-style-page="/Account/PurchaseContent"] .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.15));
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px;
        padding: 2rem 2.5rem;
        margin-bottom: 2rem;
        display: flex; align-items: center; justify-content: space-between;
        flex-wrap: wrap; gap: 1rem;
    }body[data-style-page="/Account/PurchaseContent"] .hero-text h1{
        font-size: 1.85rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 .35rem; display: flex; align-items: center; gap: .6rem;
    }body[data-style-page="/Account/PurchaseContent"] .hero-text h1 i{ background: linear-gradient(135deg,var(--rx-brand-bright),var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseContent"] .hero-text p{ color: var(--rx-ink-soft); margin: 0; font-size: .9rem; }body[data-style-page="/Account/PurchaseContent"] .alert-box{
        padding: 1rem 1.5rem; border-radius: 14px; margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: .75rem; font-weight: 600;
    }body[data-style-page="/Account/PurchaseContent"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Account/PurchaseContent"] .glass-card{
        background: rgba(16, 40, 41,.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 24px;
        overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/PurchaseContent"] .card-header-main{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1));
        padding: 1.5rem 2rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
    }body[data-style-page="/Account/PurchaseContent"] .card-header-main h2{
        margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--rx-ink);
        display: flex; align-items: center; gap: .6rem;
    }body[data-style-page="/Account/PurchaseContent"] .card-body{ padding: 2rem; }body[data-style-page="/Account/PurchaseContent"] .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Account/PurchaseContent"] .form-label{ display: block; color: var(--rx-ink); font-weight: 700; margin-bottom: .75rem; font-size: .95rem; }body[data-style-page="/Account/PurchaseContent"] .form-select,body[data-style-page="/Account/PurchaseContent"] .form-control{
        width: 100%; padding: .75rem 1rem;
        background: rgba(var(--rx-surface-rgb), 0.6); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px; color: var(--rx-ink) !important; font-size: .9rem; transition: all .3s;
    }body[data-style-page="/Account/PurchaseContent"] .form-select:focus,body[data-style-page="/Account/PurchaseContent"] .form-control:focus{
        outline: none; border-color: var(--rx-accent); background: rgba(var(--rx-accent-rgb), 0.1); color: var(--rx-ink) !important;
    }body[data-style-page="/Account/PurchaseContent"] .form-select option{ background: var(--rx-surface); color: var(--rx-ink); }body[data-style-page="/Account/PurchaseContent"] .quantity-control{ display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }body[data-style-page="/Account/PurchaseContent"] .qty-btn{
        width: 50px; height: 50px;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none; border-radius: 12px; color: var(--rx-on-brand); font-size: 1.25rem;
        cursor: pointer; transition: all .3s; display: flex; align-items: center; justify-content: center;
    }body[data-style-page="/Account/PurchaseContent"] .qty-btn:hover:not(:disabled){ transform: scale(1.1); box-shadow: 0 8px 20px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Account/PurchaseContent"] .qty-btn:disabled{ opacity: .5; cursor: not-allowed; }body[data-style-page="/Account/PurchaseContent"] .qty-input{
        flex: 1; text-align: center; font-size: 2rem; font-weight: 900;
        background: rgba(var(--rx-surface-rgb), 0.8); border: 2px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 16px; color: var(--rx-ink) !important; padding: 1rem; font-family: var(--rx-font-mono);
    }body[data-style-page="/Account/PurchaseContent"] .slider-container{ margin-top: 1rem; }body[data-style-page="/Account/PurchaseContent"] .request-slider{
        width: 100%; height: 8px;
        background: linear-gradient(90deg, var(--rx-brand), var(--rx-brand), var(--rx-brand));
        border-radius: 10px; outline: none; -webkit-appearance: none; cursor: pointer;
    }body[data-style-page="/Account/PurchaseContent"] .request-slider::-webkit-slider-thumb{
        -webkit-appearance: none; appearance: none; width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); border-radius: 50%; cursor: pointer;
        box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5); transition: all .3s;
    }body[data-style-page="/Account/PurchaseContent"] .request-slider::-moz-range-thumb{
        width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5);
    }body[data-style-page="/Account/PurchaseContent"] .slider-labels{ display: flex; justify-content: space-between; margin-top: .5rem; color: var(--rx-muted); font-size: .85rem; }body[data-style-page="/Account/PurchaseContent"] .price-display{
        background: rgba(var(--rx-warning-rgb), 0.1); border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
        border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; text-align: center;
    }body[data-style-page="/Account/PurchaseContent"] .price-label{ color: var(--rx-ink-soft); font-size: .9rem; margin-bottom: .5rem; }body[data-style-page="/Account/PurchaseContent"] .price-amount{ font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--rx-font-mono); }body[data-style-page="/Account/PurchaseContent"] .price-unit{ color: var(--rx-ink-soft); font-size: 1.25rem; margin-right: .5rem; }body[data-style-page="/Account/PurchaseContent"] .btn-purchase{
        width: 100%; padding: 1.25rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand); border: none; border-radius: 14px;
        font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: all .3s;
        display: flex; align-items: center; justify-content: center; gap: .75rem;
    }body[data-style-page="/Account/PurchaseContent"] .btn-purchase:hover{ transform: translateY(-2px); box-shadow: 0 15px 40px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Account/PurchaseContent"] .btn-purchase:disabled{ opacity: .5; cursor: not-allowed; transform: none; }body[data-style-page="/Account/PurchaseContent"] .info-box{
        background: rgba(var(--rx-info-rgb), 0.1); border: 1px solid rgba(var(--rx-info-rgb), 0.3);
        border-radius: 14px; padding: 1.25rem; margin-top: 1.5rem;
    }body[data-style-page="/Account/PurchaseContent"] .info-box p{ color: var(--rx-ink-soft); margin: 0; line-height: 1.6; }body[data-style-page="/Account/PurchaseContent"] .info-box i{ color: var(--rx-info); margin-left: .5rem; }body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav{
        display: flex; align-items: center; gap: .5rem;
        margin-bottom: 1.5rem; font-size: .875rem; color: var(--rx-muted);
    }body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav a{ color: var(--rx-muted); text-decoration: none; }body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav a:hover{ color: var(--rx-ink); }body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav .current{ color: var(--rx-ink); font-weight: 600; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/PurchaseContent"])) .breadcrumb-nav{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav a{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav a:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav .current{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .hero-section{ border-color: var(--theme-border-soft); background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .10), rgba(var(--theme-accent-rgb), .04)); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .hero-text h1 i{ background: linear-gradient(135deg, var(--theme-accent), var(--theme-accent-strong)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .card-header-main{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .card-header-main h2 i,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .form-label i{ color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .slider-labels{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-unit{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-amount{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-display [style*="rgba(255,255,255,.2)"]{ border-bottom-color: rgba(180,83,9,.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-display [style*="rgba(255,255,255,.7)"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-display [style*="color:#fff"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .price-display [style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .info-box i{ color: var(--rx-info); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseContent"] .glass-card{ background: var(--theme-surface) !important; }



/* Content credit checkout: selector and quantity on the left, live price summary on the right. */
body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-wrapper { padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-container { max-width:1120px; }
body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-wrapper .glass-card { border:1px solid var(--rx-line); border-radius:20px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.72fr); gap:18px; align-items:start; }
body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display { position:sticky; top:96px; border:1px solid var(--rx-line); border-radius:18px; background:linear-gradient(145deg,var(--rx-surface),var(--rx-brand-soft)); }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm{grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display{position:static}}

/* Purchase flow: the request controls stay focused while the live quote remains visible. */
body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-wrapper{padding:clamp(14px,2.2vw,32px);background:transparent;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-container{max-width:1180px;margin-inline:auto;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .breadcrumb-nav{margin-bottom:16px;color:var(--rx-muted);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .hero-section{margin-bottom:18px;padding:clamp(22px,3vw,36px);border:1px solid var(--rx-line);border-radius:22px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .hero-text h1{font-size:clamp(1.5rem,2.2vw,2rem);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .glass-card{overflow:hidden;border:1px solid var(--rx-line);border-radius:22px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .card-header-main{padding:18px 22px;background:var(--rx-page-alt);border-bottom:1px solid var(--rx-line);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .card-body{padding:clamp(16px,2.2vw,28px);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm{grid-template-columns:minmax(0,1fr) minmax(300px,.78fr);gap:18px 24px;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm>.form-group{padding:18px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-page-alt);}
body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm>.form-group:nth-child(2){grid-column:1;grid-row:2;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display{grid-column:2;grid-row:1 / span 2;top:100px;padding:20px;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .btn-purchase{grid-column:1 / -1;min-height:52px;}
body.customer-panel[data-style-page="/Account/PurchaseContent"] .info-box{grid-column:1 / -1;}
@media(max-width:800px){body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr);gap:14px;}body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display{padding:16px;}}
@media(max-width:620px){body.customer-panel[data-style-page="/Account/PurchaseContent"] .purchase-wrapper{padding:10px;}body.customer-panel[data-style-page="/Account/PurchaseContent"] .hero-section{padding:20px;}body.customer-panel[data-style-page="/Account/PurchaseContent"] .card-body{padding:14px;}body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm{grid-template-columns:1fr;}body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm>.form-group,body.customer-panel[data-style-page="/Account/PurchaseContent"] #purchaseForm>.form-group:nth-child(2),body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display,body.customer-panel[data-style-page="/Account/PurchaseContent"] .btn-purchase,body.customer-panel[data-style-page="/Account/PurchaseContent"] .info-box{grid-column:1;grid-row:auto;}body.customer-panel[data-style-page="/Account/PurchaseContent"] .price-display{position:static;}body.customer-panel[data-style-page="/Account/PurchaseContent"] .quantity-control{max-width:100%;}}
/* Page stylesheet: /Account/PurchaseRequests */
body[data-style-page="/Account/PurchaseRequests"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/PurchaseRequests"] .purchase-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Account/PurchaseRequests"] .purchase-container{ max-width: 1100px; margin: 0 auto; }body[data-style-page="/Account/PurchaseRequests"] /* hero */
    .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.15));
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px;
        padding: 2.5rem;
        margin-bottom: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Account/PurchaseRequests"] .hero-text h1{
        font-size: 2rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 .35rem;
        display: flex;
        align-items: center;
        gap: .6rem;
    }body[data-style-page="/Account/PurchaseRequests"] .hero-text h1 i{ background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseRequests"] .hero-text p{ color: var(--rx-ink-soft); margin: 0; font-size: .95rem; }body[data-style-page="/Account/PurchaseRequests"] .hero-credits{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 16px;
        padding: 1rem 1.5rem;
        text-align: center;
    }body[data-style-page="/Account/PurchaseRequests"] .hero-credits .cred-label{ color: var(--rx-muted); font-size: .8rem; margin-bottom: .2rem; }body[data-style-page="/Account/PurchaseRequests"] .hero-credits .cred-val{ font-size: 1.6rem; font-weight: 900; background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseRequests"] /* tabs */
    .section-tabs{
        display: flex;
        gap: 0;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        padding: .4rem;
        margin-bottom: 2rem;
        width: fit-content;
    }body[data-style-page="/Account/PurchaseRequests"] .tab-btn{
        padding: .7rem 2rem;
        border-radius: 12px;
        border: none;
        background: transparent;
        color: var(--rx-muted);
        font-size: .92rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: .5rem;
        transition: all .2s;
    }body[data-style-page="/Account/PurchaseRequests"] .tab-btn.active{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        box-shadow: 0 4px 15px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Account/PurchaseRequests"] /* alert */
    .alert-box{
        padding: 1rem 1.5rem;
        border-radius: 14px;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: .75rem;
        font-weight: 600;
    }body[data-style-page="/Account/PurchaseRequests"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Account/PurchaseRequests"] /* glass card */
    .glass-card{
        background: rgba(16, 40, 41,.6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Account/PurchaseRequests"] .card-header-main{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1));
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
    }body[data-style-page="/Account/PurchaseRequests"] .card-header-main h2{
        margin: 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--rx-ink);
        display: flex;
        align-items: center;
        gap: .6rem;
    }body[data-style-page="/Account/PurchaseRequests"] .card-body{ padding: 2rem; }body[data-style-page="/Account/PurchaseRequests"] /* form */
    .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Account/PurchaseRequests"] .form-label{
        display: block;
        color: var(--rx-ink);
        font-weight: 700;
        margin-bottom: .75rem;
        font-size: .95rem;
    }body[data-style-page="/Account/PurchaseRequests"] .form-select,body[data-style-page="/Account/PurchaseRequests"] .form-control{
        width: 100%;
        padding: .75rem 1rem;
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        color: var(--rx-ink) !important;
        font-size: .9rem;
        transition: all .3s;
    }body[data-style-page="/Account/PurchaseRequests"] .form-select:focus,body[data-style-page="/Account/PurchaseRequests"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.1);
        color: var(--rx-ink) !important;
    }body[data-style-page="/Account/PurchaseRequests"] .form-select option{ background: var(--rx-surface); color: var(--rx-ink); }body[data-style-page="/Account/PurchaseRequests"] /* quantity */
    .quantity-control{ display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }body[data-style-page="/Account/PurchaseRequests"] .qty-btn{
        width: 50px; height: 50px;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none; border-radius: 12px; color: var(--rx-on-brand); font-size: 1.25rem;
        cursor: pointer; transition: all .3s; display: flex; align-items: center; justify-content: center;
    }body[data-style-page="/Account/PurchaseRequests"] .qty-btn:hover:not(:disabled){ transform: scale(1.1); box-shadow: 0 8px 20px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Account/PurchaseRequests"] .qty-btn:disabled{ opacity: .5; cursor: not-allowed; }body[data-style-page="/Account/PurchaseRequests"] .qty-input{
        flex: 1; text-align: center; font-size: 2rem; font-weight: 900;
        background: rgba(var(--rx-surface-rgb), 0.8); border: 2px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 16px; color: var(--rx-ink) !important; padding: 1rem; font-family: var(--rx-font-mono);
    }body[data-style-page="/Account/PurchaseRequests"] /* slider */
    .slider-container{ margin-top: 1rem; }body[data-style-page="/Account/PurchaseRequests"] .request-slider{
        width: 100%; height: 8px;
        background: linear-gradient(90deg, var(--rx-brand), var(--rx-brand), var(--rx-brand));
        border-radius: 10px; outline: none; -webkit-appearance: none; cursor: pointer;
    }body[data-style-page="/Account/PurchaseRequests"] .request-slider::-webkit-slider-thumb{
        -webkit-appearance: none; appearance: none;
        width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        border-radius: 50%; cursor: pointer;
        box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5); transition: all .3s;
    }body[data-style-page="/Account/PurchaseRequests"] .request-slider::-moz-range-thumb{
        width: 28px; height: 28px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        border-radius: 50%; cursor: pointer; border: none;
        box-shadow: 0 4px 15px rgba(var(--rx-warning-rgb), 0.5);
    }body[data-style-page="/Account/PurchaseRequests"] .slider-labels{ display: flex; justify-content: space-between; margin-top: .5rem; color: var(--rx-muted); font-size: .85rem; }body[data-style-page="/Account/PurchaseRequests"] /* price display */
    .price-display{
        background: rgba(var(--rx-warning-rgb), 0.1); border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
        border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; text-align: center;
    }body[data-style-page="/Account/PurchaseRequests"] .price-label{ color: var(--rx-ink-soft); font-size: .9rem; margin-bottom: .5rem; }body[data-style-page="/Account/PurchaseRequests"] .price-amount{ font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--rx-font-mono); }body[data-style-page="/Account/PurchaseRequests"] .price-unit{ color: var(--rx-ink-soft); font-size: 1.25rem; margin-right: .5rem; }body[data-style-page="/Account/PurchaseRequests"] .btn-purchase{
        width: 100%; padding: 1.25rem;
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        color: var(--rx-on-brand); border: none; border-radius: 14px;
        font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: all .3s;
        display: flex; align-items: center; justify-content: center; gap: .75rem;
    }body[data-style-page="/Account/PurchaseRequests"] .btn-purchase:hover{ transform: translateY(-2px); box-shadow: 0 15px 40px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Account/PurchaseRequests"] .btn-purchase:disabled{ opacity: .5; cursor: not-allowed; transform: none; }body[data-style-page="/Account/PurchaseRequests"] .info-box{
        background: rgba(var(--rx-info-rgb), 0.1); border: 1px solid rgba(var(--rx-info-rgb), 0.3);
        border-radius: 14px; padding: 1.25rem; margin-top: 1.5rem;
    }body[data-style-page="/Account/PurchaseRequests"] .info-box p{ color: var(--rx-ink-soft); margin: 0; line-height: 1.6; }body[data-style-page="/Account/PurchaseRequests"] .info-box i{ color: var(--rx-info); margin-left: .5rem; }body[data-style-page="/Account/PurchaseRequests"] /* ========== CHAT PACKAGES ========== */
    .chat-packages-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 2rem;
    }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card{
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-radius: 20px;
        padding: 2rem;
        position: relative;
        text-align: center;
        transition: all .3s;
        display: flex;
        flex-direction: column;
    }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card:hover{ transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.silver{ border-color: rgba(var(--rx-contrast-rgb), 0.175); }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.bronze{ border-color: rgba(205,127,50,.3); }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.gold{ border-color: rgba(var(--rx-warning-rgb), 0.35); box-shadow: 0 0 30px rgba(var(--rx-warning-rgb), 0.08); }body[data-style-page="/Account/PurchaseRequests"] .pkg-ribbon{
        position: absolute;
        top: -1px; right: 20px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        color: var(--rx-on-brand); font-size: .7rem; font-weight: 800;
        padding: .3rem .85rem;
        border-radius: 0 0 10px 10px;
        letter-spacing: .5px;
        text-transform: uppercase;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-ribbon.free-ribbon{ background: linear-gradient(135deg, var(--rx-faint), var(--rx-faint)); }body[data-style-page="/Account/PurchaseRequests"] .pkg-icon{
        font-size: 3rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.silver .pkg-icon{ color: var(--rx-muted); }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.bronze .pkg-icon{ color: #cd7f32; }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.gold   .pkg-icon{ color: var(--rx-warning); }body[data-style-page="/Account/PurchaseRequests"] .pkg-name-big{
        font-size: 1.4rem;
        font-weight: 800;
        color: var(--rx-ink);
        margin-bottom: .5rem;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-desc-big{
        font-size: .85rem;
        color: var(--rx-muted);
        margin-bottom: 1.5rem;
        line-height: 1.5;
        flex: 1;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-credits-big{
        font-size: 2.2rem;
        font-weight: 900;
        margin-bottom: .25rem;
    }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.silver .pkg-credits-big{ color: var(--rx-muted); }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.bronze .pkg-credits-big{ background: linear-gradient(135deg,#cd7f32,#a0522d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.gold   .pkg-credits-big{ background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }body[data-style-page="/Account/PurchaseRequests"] .pkg-credits-label{ font-size: .8rem; color: var(--rx-ink-soft); margin-bottom: 1.5rem; }body[data-style-page="/Account/PurchaseRequests"] .pkg-price-section{ margin-bottom: 1.5rem; }body[data-style-page="/Account/PurchaseRequests"] .pkg-free-badge{
        display: inline-block;
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.2), rgba(var(--rx-success-rgb), 0.2));
        border: 1px solid rgba(var(--rx-success-rgb), 0.4);
        color: var(--rx-success);
        font-size: 1.1rem;
        font-weight: 800;
        padding: .4rem 1.5rem;
        border-radius: 30px;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-price-original{
        font-size: .85rem;
        color: var(--rx-ink-soft);
        text-decoration: line-through;
        margin-bottom: .2rem;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-price-final{
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--rx-warning);
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: .3rem;
    }body[data-style-page="/Account/PurchaseRequests"] .pkg-price-final .toman{ font-size: .9rem; font-weight: 500; color: var(--rx-muted); }body[data-style-page="/Account/PurchaseRequests"] .pkg-discount-badge{
        display: inline-block;
        background: rgba(var(--rx-success-rgb), 0.15);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
        font-size: .75rem;
        font-weight: 700;
        padding: .2rem .65rem;
        border-radius: 20px;
        margin-top: .35rem;
    }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat{
        width: 100%;
        padding: .9rem;
        border: none;
        border-radius: 12px;
        font-size: .95rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        color: var(--rx-on-brand);
    }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.silver-btn{
        background: rgba(var(--rx-contrast-rgb), 0.14);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
        color: var(--rx-ink-soft);
        cursor: default;
    }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.bronze-btn{ background: linear-gradient(135deg, #cd7f32, #a0522d); }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.gold-btn{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.bronze-btn:hover{ box-shadow: 0 8px 25px rgba(205,127,50,.4); transform: translateY(-2px); }body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.gold-btn:hover{ box-shadow: 0 8px 25px rgba(var(--rx-warning-rgb), 0.4); transform: translateY(-2px); }body[data-style-page="/Account/PurchaseRequests"] .per-credit-note{ font-size: .72rem; color: var(--rx-ink-soft); margin-top: .5rem; }body[data-style-page="/Account/PurchaseRequests"] /* section hidden */
    .tab-section{ display: none; }body[data-style-page="/Account/PurchaseRequests"] .tab-section.active{ display: block; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/PurchaseRequests"])) .hero-section{ border-color: var(--theme-border-soft); background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .10), rgba(var(--theme-accent-rgb), .04)); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .hero-credits .cred-val{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .tab-btn:not(.active){ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .tab-btn:not(.active):hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .card-header-main{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .card-header-main h2 i,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .form-label i{ color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .slider-labels{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-unit{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-amount{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-display [style*="rgba(255,255,255,.2)"]{ border-bottom-color: rgba(180,83,9,.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-display [style*="rgba(255,255,255,.7)"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-display [style*="color:#fff"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .price-display [style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .info-box i{ color: var(--rx-info); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-name-big{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-desc-big,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-credits-label,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .per-credit-note,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-price-original{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.silver .pkg-icon,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.silver .pkg-credits-big{ color: var(--rx-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card.gold .pkg-credits-big{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .chat-pkg-card:hover{ box-shadow: 0 16px 36px rgba(15,23,42,.10); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-price-final{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-price-final .toman{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-free-badge,html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .pkg-discount-badge{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .btn-buy-chat.silver-btn{ background: var(--theme-surface-3); border-color: var(--theme-border-soft); color: var(--theme-text-2); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/PurchaseRequests"] .glass-card{ background: var(--theme-surface) !important; }



body.customer-panel[data-style-page="/Account/PurchaseRequests"] .purchase-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .purchase-container{max-width:1120px}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .hero-section{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .section-tabs{display:flex;gap:8px;padding:6px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);width:max-content;max-width:100%;overflow-x:auto}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .tab-section .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/PurchaseRequests"] .purchase-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .hero-section{padding:16px}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .section-tabs{width:100%}body.customer-panel[data-style-page="/Account/PurchaseRequests"] .section-tabs .tab-btn{flex:1;white-space:nowrap}}
/* Page stylesheet: /Account/Receipt */
body[data-style-page="/Account/Receipt"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/Receipt"] .receipt-wrapper{
        min-height: 100vh;
        background: linear-gradient(135deg, var(--rx-page) 0%, var(--rx-surface) 100%);
        padding: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }body[data-style-page="/Account/Receipt"] .receipt-container{
        max-width: 600px;
        width: 100%;
    }body[data-style-page="/Account/Receipt"] .receipt-card{
        background: rgba(16, 40, 41, 0.95);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Account/Receipt"] .receipt-header{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        padding: 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }body[data-style-page="/Account/Receipt"] .receipt-header::before{
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(var(--rx-contrast-rgb), 0.15) 1px, transparent 1px);
        background-size: 30px 30px;
        animation: page08c5d3b11b-movePattern 30s linear infinite;
    }

    @keyframes page08c5d3b11b-movePattern {
        0% { transform: translate(0, 0); }
        100% { transform: translate(30px, 30px); }
    }body[data-style-page="/Account/Receipt"] .success-icon{
        width: 80px;
        height: 80px;
        background: rgba(var(--rx-contrast-rgb), 0.25);
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1;
        animation: page08c5d3b11b-scaleIn 0.5s ease-out;
    }

    @keyframes page08c5d3b11b-scaleIn {
        0% { transform: scale(0); }
        50% { transform: scale(1.1); }
        100% { transform: scale(1); }
    }body[data-style-page="/Account/Receipt"] .success-icon i{
        font-size: 2.5rem;
        color: var(--rx-ink);
    }body[data-style-page="/Account/Receipt"] .receipt-title{
        font-size: 1.75rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Account/Receipt"] .receipt-subtitle{
        color: var(--rx-ink);
        font-size: 0.95rem;
        margin: 0.5rem 0 0;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Account/Receipt"] .receipt-body{
        padding: 2rem;
    }body[data-style-page="/Account/Receipt"] .transaction-id{
        text-align: center;
        padding: 1rem;
        background: rgba(var(--rx-accent-rgb), 0.1);
        border-radius: 12px;
        margin-bottom: 1.5rem;
        border: 1px dashed rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Account/Receipt"] .transaction-id-label{
        color: var(--rx-ink-soft);
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }body[data-style-page="/Account/Receipt"] .transaction-id-value{
        color: var(--rx-accent);
        font-size: 1.25rem;
        font-weight: 800;
        font-family: var(--rx-font-mono);
    }body[data-style-page="/Account/Receipt"] .info-grid{
        display: grid;
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Account/Receipt"] .info-row{
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: rgba(var(--rx-surface-rgb), 0.6);
        border-radius: 12px;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Account/Receipt"] .info-label{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Account/Receipt"] .info-label i{
        color: var(--rx-accent);
    }body[data-style-page="/Account/Receipt"] .info-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 1rem;
        text-align: left;
    }body[data-style-page="/Account/Receipt"] .amount-highlight{
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.2), rgba(var(--rx-success-rgb), 0.1));
        border: 2px solid rgba(var(--rx-success-rgb), 0.3);
        padding: 1.25rem;
        text-align: center;
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Account/Receipt"] .amount-highlight .info-label{
        justify-content: center;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }body[data-style-page="/Account/Receipt"] .amount-highlight .info-value{
        font-size: 2rem;
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 900;
        text-align: center;
    }body[data-style-page="/Account/Receipt"] .receipt-footer{
        padding: 1.5rem 2rem;
        background: rgba(var(--rx-surface-rgb), 0.8);
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        text-align: center;
    }body[data-style-page="/Account/Receipt"] .footer-note{
        color: var(--rx-ink-soft);
        font-size: 0.85rem;
        margin: 0 0 1rem;
        line-height: 1.6;
    }body[data-style-page="/Account/Receipt"] .action-buttons{
        display: flex;
        gap: 1rem;
        justify-content: center;
        margin-top: 1.5rem;
    }body[data-style-page="/Account/Receipt"] .btn{
        padding: 0.875rem 1.75rem;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        border: none;
        cursor: pointer;
        font-size: 0.95rem;
    }body[data-style-page="/Account/Receipt"] .btn-print{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
    }body[data-style-page="/Account/Receipt"] .btn-print:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Account/Receipt"] .btn-back{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Account/Receipt"] .btn-back:hover{
        background: rgba(var(--rx-contrast-rgb), 0.15);
    }body[data-style-page="/Account/Receipt"] .date-badge{
        display: inline-block;
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Account/Receipt"] .empty-receipt{
        text-align: center;
        padding: 3rem 2rem;
    }body[data-style-page="/Account/Receipt"] .empty-icon{
        font-size: 4rem;
        color: var(--rx-faint);
        margin-bottom: 1rem;
    }body[data-style-page="/Account/Receipt"] .empty-title{
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--rx-ink-soft);
        margin: 0 0 0.5rem;
    }body[data-style-page="/Account/Receipt"] .empty-message{
        color: var(--rx-ink-soft);
        margin: 0 0 2rem;
    }

    @media print {body[data-style-page="/Account/Receipt"] .receipt-wrapper{
            background: var(--rx-surface);
            padding: 0;
        }body[data-style-page="/Account/Receipt"] .action-buttons{
            display: none;
        }body[data-style-page="/Account/Receipt"] .receipt-card{
            box-shadow: none;
        }body[data-style-page="/Account/Receipt"] .btn-back,body[data-style-page="/Account/Receipt"] .btn-print{
            display: none;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Account/Receipt"] .action-buttons{
            flex-direction: column;
        }body[data-style-page="/Account/Receipt"] .btn{
            width: 100%;
            justify-content: center;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/Receipt"])) .receipt-card{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .receipt-header .receipt-title{ color: var(--rx-ink) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .receipt-header .receipt-subtitle{ color: var(--rx-ink) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .transaction-id-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .info-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .info-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .amount-highlight{ background: rgba(var(--rx-success-rgb), 0.08); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .amount-highlight .info-value{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .receipt-footer{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .btn-back{ background: var(--theme-surface); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .btn-back:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .date-badge{ background: rgba(var(--theme-accent-rgb), .09); color: var(--theme-accent-strong); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .empty-icon{ color: var(--theme-faint); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/Receipt"] .receipt-card{ background: var(--theme-surface) !important; }



body.customer-panel[data-style-page="/Account/Receipt"] .receipt-wrapper{padding:clamp(12px,3vw,36px);background:transparent}body.customer-panel[data-style-page="/Account/Receipt"] .receipt-container{max-width:780px;margin-inline:auto}body.customer-panel[data-style-page="/Account/Receipt"] .receipt-card{border:1px solid var(--rx-line);border-radius:24px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);overflow:hidden}body.customer-panel[data-style-page="/Account/Receipt"] .info-row{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--rx-line)}body.customer-panel[data-style-page="/Account/Receipt"] .receipt-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}@media(max-width:600px){body.customer-panel[data-style-page="/Account/Receipt"] .receipt-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/Receipt"] .info-row{grid-template-columns:1fr;gap:4px}body.customer-panel[data-style-page="/Account/Receipt"] .receipt-footer{display:grid}}
/* Page stylesheet: /Account/Subscription */
body[data-style-page="/Account/Subscription"] *{font-family: var(--rx-font) !important;}
body[data-style-page="/Account/Subscription"] .sub-wrapper{min-height:100vh; padding:2rem; background:linear-gradient(180deg,var(--rx-page) 0%,var(--rx-brand-soft) 50%,var(--rx-page) 100%);}
body[data-style-page="/Account/Subscription"] .sub-container{max-width:1080px; margin:0 auto;}
body[data-style-page="/Account/Subscription"] .sub-hero{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1.2rem; padding:2rem 2.25rem; margin-bottom:1.25rem; border-radius:22px;
  background:linear-gradient(135deg,rgba(var(--rx-brand-rgb),.16),rgba(var(--rx-info-rgb),.12)); border:1px solid rgba(var(--rx-brand-rgb),.22);}
body[data-style-page="/Account/Subscription"] .sub-hero h1{font-size:1.8rem; font-weight:900; color:var(--rx-ink); margin:.35rem 0 .3rem; display:flex; align-items:center; gap:.6rem;}
body[data-style-page="/Account/Subscription"] .sub-hero h1 i{color:var(--rx-brand);}
body[data-style-page="/Account/Subscription"] .sub-hero p{color:var(--rx-ink-soft); margin:0; max-width:46rem;}
body[data-style-page="/Account/Subscription"] .sub-hero-side{text-align:center; min-width:150px; padding:1rem 1.5rem; border-radius:16px; background:rgba(var(--rx-surface-rgb),.7); border:1px solid var(--rx-line);}
body[data-style-page="/Account/Subscription"] .sub-hero-label{color:var(--rx-muted); font-size:.8rem;}
body[data-style-page="/Account/Subscription"] .sub-hero-val{font-size:2.2rem; font-weight:900; color:var(--rx-brand); line-height:1.3; font-variant-numeric:tabular-nums;}
body[data-style-page="/Account/Subscription"] .sub-hero-val.sm{font-size:1.3rem;}
body[data-style-page="/Account/Subscription"] .sub-state{display:inline-flex; align-items:center; gap:.45rem; padding:.2rem .8rem; border-radius:99px; font-size:.8rem; font-weight:800;}
body[data-style-page="/Account/Subscription"] .sub-state i{font-size:.55rem;}
body[data-style-page="/Account/Subscription"] .sub-state.ok{background:var(--rx-success-soft); color:var(--rx-success);}
body[data-style-page="/Account/Subscription"] .sub-state.warn{background:var(--rx-warning-soft); color:var(--rx-warning);}
body[data-style-page="/Account/Subscription"] .sub-state.bad{background:var(--rx-danger-soft); color:var(--rx-danger);}
body[data-style-page="/Account/Subscription"] .sub-alert{display:flex; gap:.7rem; align-items:flex-start; padding:1rem 1.25rem; border-radius:14px; margin-bottom:1.25rem; font-weight:600; line-height:1.9;}
body[data-style-page="/Account/Subscription"] .sub-alert.warn{background:var(--rx-warning-soft); border:1px solid rgba(var(--rx-warning-rgb),.3); color:var(--rx-warning);}
body[data-style-page="/Account/Subscription"] .sub-alert.bad{background:var(--rx-danger-soft); border:1px solid rgba(var(--rx-danger-rgb),.3); color:var(--rx-danger);}
body[data-style-page="/Account/Subscription"] .sub-grid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem;}
body[data-style-page="/Account/Subscription"] .sub-card{padding:1.4rem 1.5rem; border-radius:18px; background:rgba(var(--rx-surface-rgb),.85); border:1px solid var(--rx-line); box-shadow:var(--rx-shadow-panel);}
body[data-style-page="/Account/Subscription"] .sub-card.wide{grid-column:1 / -1;}
body[data-style-page="/Account/Subscription"] .sub-card header{display:flex; align-items:center; justify-content:space-between; gap:.8rem; flex-wrap:wrap; margin-bottom:1rem;}
body[data-style-page="/Account/Subscription"] .sub-card h2{font-size:1.08rem; font-weight:800; margin:0; color:var(--rx-ink); display:flex; align-items:center; gap:.5rem;}
body[data-style-page="/Account/Subscription"] .sub-card h2 i{color:var(--rx-brand);}
body[data-style-page="/Account/Subscription"] .sub-note{color:var(--rx-muted); font-size:.82rem;}
body[data-style-page="/Account/Subscription"] .sub-meter-top{display:flex; align-items:baseline; gap:.5rem; flex-wrap:wrap; color:var(--rx-ink-soft);}
body[data-style-page="/Account/Subscription"] .sub-meter-top b{font-size:1.7rem; font-weight:900; color:var(--rx-ink); font-variant-numeric:tabular-nums;}
body[data-style-page="/Account/Subscription"] .sub-bar{height:10px; border-radius:99px; background:rgba(var(--rx-contrast-rgb),.09); overflow:hidden; margin-top:.6rem;}
body[data-style-page="/Account/Subscription"] .sub-bar i{display:block; height:100%; border-radius:99px; background:var(--rx-brand); transition:width .6s ease;}
body[data-style-page="/Account/Subscription"] .sub-meter.warn .sub-bar i{background:var(--rx-warning-fill);}
body[data-style-page="/Account/Subscription"] .sub-meter.bad .sub-bar i{background:var(--rx-danger-fill);}
body[data-style-page="/Account/Subscription"] .sub-meter.warn .sub-meter-top b{color:var(--rx-warning);}
body[data-style-page="/Account/Subscription"] .sub-meter.bad .sub-meter-top b{color:var(--rx-danger);}
body[data-style-page="/Account/Subscription"] .sub-rows{display:grid; margin-top:1rem;}
body[data-style-page="/Account/Subscription"] .sub-rows>div{display:flex; justify-content:space-between; gap:1rem; padding:.65rem 0; border-top:1px dashed var(--rx-line); color:var(--rx-ink-soft);}
body[data-style-page="/Account/Subscription"] .sub-rows b{color:var(--rx-ink); font-variant-numeric:tabular-nums;}
body[data-style-page="/Account/Subscription"] .sub-hint{margin:.9rem 0 0; color:var(--rx-muted); font-size:.85rem; line-height:1.9;}
body[data-style-page="/Account/Subscription"] .sub-buy{display:flex; align-items:center; justify-content:space-between; gap:1.2rem; flex-wrap:wrap; margin-top:1.1rem; padding:1rem 1.2rem; border-radius:14px; background:var(--rx-brand-soft); border:1px solid rgba(var(--rx-brand-rgb),.18);}
body[data-style-page="/Account/Subscription"] .sub-buy p{margin:.2rem 0; color:var(--rx-ink-soft); font-size:.88rem; max-width:34rem;}
body[data-style-page="/Account/Subscription"] .sub-buy small{color:var(--rx-muted);}
body[data-style-page="/Account/Subscription"] .sub-feats{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1.4rem;}
body[data-style-page="/Account/Subscription"] .sub-feats li{display:flex; align-items:center; gap:.6rem; color:var(--rx-ink-soft);}
body[data-style-page="/Account/Subscription"] .sub-feats li.on i{color:var(--rx-success);}
body[data-style-page="/Account/Subscription"] .sub-feats li.off{color:var(--rx-muted);}
body[data-style-page="/Account/Subscription"] .sub-feats li.off i{color:var(--rx-faint);}
body[data-style-page="/Account/Subscription"] .sub-actions{display:flex; gap:.7rem; flex-wrap:wrap; margin-top:1.1rem;}
body[data-style-page="/Account/Subscription"] .sub-btn{display:inline-flex; align-items:center; gap:.5rem; padding:.6rem 1.2rem; border-radius:12px; font-weight:800; color:var(--rx-ink); background:rgba(var(--rx-surface-rgb),.9); border:1px solid var(--rx-line-strong); text-decoration:none; transition:transform .15s,box-shadow .15s;}
body[data-style-page="/Account/Subscription"] .sub-btn:hover{transform:translateY(-2px); box-shadow:var(--rx-shadow-panel); color:var(--rx-ink);}
body[data-style-page="/Account/Subscription"] .sub-btn.primary{background:var(--rx-brand); color:var(--rx-on-brand); border-color:var(--rx-brand);}
body[data-style-page="/Account/Subscription"] .sub-btn.primary:hover{background:var(--rx-brand-hover); color:var(--rx-on-brand);}
@media (max-width:760px){body[data-style-page="/Account/Subscription"] .sub-wrapper{padding:1rem;}
body[data-style-page="/Account/Subscription"] .sub-grid,body[data-style-page="/Account/Subscription"] .sub-feats{grid-template-columns:1fr;}
body[data-style-page="/Account/Subscription"] .sub-hero{padding:1.4rem;}}
/* Subscription page: plan status and renewal action lead, usage limits follow in a clear grid. */
body.customer-panel[data-style-page="/Account/Subscription"] .sub-wrapper { padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Account/Subscription"] .sub-container { max-width:1180px; }
body.customer-panel[data-style-page="/Account/Subscription"] .sub-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; align-items:center; padding:24px; border:1px solid var(--rx-line); border-radius:22px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/Subscription"] .sub-actions { display:flex; gap:10px; flex-wrap:wrap; margin-block:14px; }
body.customer-panel[data-style-page="/Account/Subscription"] .sub-alert { border-radius:16px; }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/Subscription"] .sub-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/Subscription"] .sub-hero{grid-template-columns:1fr;padding:18px}body.customer-panel[data-style-page="/Account/Subscription"] .sub-hero-side{justify-self:stretch}body.customer-panel[data-style-page="/Account/Subscription"] .sub-actions{display:grid;grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/Subscription"] .sub-actions .sub-btn{justify-content:center}}
/* Page stylesheet: /Account/Checkout */
body[data-style-page="/Account/Checkout"] *{font-family: var(--rx-font) !important;}
body[data-style-page="/Account/Checkout"] .ck-wrapper{padding:1.5rem 1.5rem 3rem;}
body[data-style-page="/Account/Checkout"] .ck-container{max-width:1040px; margin:0 auto;}
body[data-style-page="/Account/Checkout"] .ck-hero{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem 1.5rem; padding:1.5rem 1.75rem; margin:1rem 0 1.25rem; border-radius:22px; background:linear-gradient(135deg,rgba(var(--rx-brand-rgb),.18),rgba(var(--rx-brand-rgb),.05) 70%); border:1px solid rgba(var(--rx-brand-rgb),.28);}
body[data-style-page="/Account/Checkout"] .ck-title{display:flex; align-items:center; gap:1rem;}
body[data-style-page="/Account/Checkout"] .ck-ico{width:52px; height:52px; border-radius:16px; display:grid; place-items:center; font-size:1.5rem; background:var(--rx-brand); color:var(--rx-on-brand); box-shadow:0 10px 24px -10px rgba(var(--rx-brand-rgb),.8);}
body[data-style-page="/Account/Checkout"] .ck-hero h1{font-size:1.5rem; font-weight:900; color:var(--rx-ink); margin:0; line-height:1.5;}
body[data-style-page="/Account/Checkout"] .ck-title p{margin:.1rem 0 0; color:var(--rx-muted); font-size:.9rem;}
body[data-style-page="/Account/Checkout"] .ck-cycle{display:inline-flex; padding:5px; gap:4px; border-radius:14px; background:rgba(var(--rx-contrast-rgb),.06); border:1px solid var(--rx-line);}
body[data-style-page="/Account/Checkout"] .ck-cycle a{display:inline-flex; align-items:center; gap:.4rem; padding:.55rem 1.25rem; border-radius:10px; font-weight:800; color:var(--rx-ink-soft) !important; text-decoration:none !important; transition:background .15s,color .15s;}
body[data-style-page="/Account/Checkout"] .ck-cycle a:hover{background:rgba(var(--rx-brand-rgb),.12);}
body[data-style-page="/Account/Checkout"] .ck-cycle a.on{background:var(--rx-brand); color:var(--rx-on-brand) !important; box-shadow:0 6px 16px -8px rgba(var(--rx-brand-rgb),.9);}
body[data-style-page="/Account/Checkout"] .ck-save{font-size:.72rem; font-weight:800; padding:2px 8px; border-radius:99px; background:rgba(var(--rx-brand-rgb),.18); color:var(--rx-brand-ink);}
body[data-style-page="/Account/Checkout"] .ck-cycle a.on .ck-save{background:rgba(0,0,0,.18); color:inherit;}
body[data-style-page="/Account/Checkout"] .ck-alert{display:flex; gap:.6rem; align-items:center; padding:.9rem 1.2rem; border-radius:14px; margin-bottom:1rem; font-weight:700; background:var(--rx-danger-soft); color:var(--rx-danger); border:1px solid rgba(var(--rx-danger-rgb),.3);}
body[data-style-page="/Account/Checkout"] .ck-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:1.25rem; align-items:start;}
body[data-style-page="/Account/Checkout"] .ck-card{padding:1.5rem 1.6rem; border-radius:20px; background:var(--rx-surface); border:1px solid var(--rx-line); box-shadow:var(--rx-shadow-panel);}
body[data-style-page="/Account/Checkout"] .ck-card h2{display:flex; align-items:center; gap:.55rem; font-size:1.05rem; font-weight:900; margin:0 0 1.1rem; padding-bottom:.9rem; border-bottom:1px solid var(--rx-line); color:var(--rx-ink);}
body[data-style-page="/Account/Checkout"] .ck-card h2 i{color:var(--rx-brand);}
body[data-style-page="/Account/Checkout"] .ck-card p{color:var(--rx-ink-soft); line-height:1.95; margin:0 0 .8rem;}
body[data-style-page="/Account/Checkout"] .ck-row{display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.75rem 0; border-bottom:1px dashed var(--rx-line); color:var(--rx-ink-soft);}
body[data-style-page="/Account/Checkout"] .ck-row b{color:var(--rx-ink); font-variant-numeric:tabular-nums;}
body[data-style-page="/Account/Checkout"] .ck-row.good b{color:var(--rx-success);}
body[data-style-page="/Account/Checkout"] .ck-row.total{margin-top:.9rem; padding:1rem 1.1rem; border:0; border-radius:14px; background:rgba(var(--rx-brand-rgb),.12);}
body[data-style-page="/Account/Checkout"] .ck-row.total span{font-weight:800; color:var(--rx-ink);}
body[data-style-page="/Account/Checkout"] .ck-row.total b{font-size:1.55rem; color:var(--rx-brand-ink); font-weight:900;}
body[data-style-page="/Account/Checkout"] .ck-hint{display:flex; gap:.5rem; align-items:flex-start; margin:.9rem 0 0 !important; color:var(--rx-muted) !important; font-size:.86rem; line-height:1.9;}
body[data-style-page="/Account/Checkout"] .ck-hint i{color:var(--rx-brand); margin-top:.35rem;}
body[data-style-page="/Account/Checkout"] .ck-warn{display:flex; gap:.7rem; align-items:flex-start; padding:.9rem 1.1rem; border-radius:14px; background:var(--rx-warning-soft); color:var(--rx-ink); border:1px solid rgba(var(--rx-warning-rgb),.4); font-weight:600; line-height:1.95; margin:.4rem 0 .9rem; font-size:.92rem;}
body[data-style-page="/Account/Checkout"] .ck-warn i{color:var(--rx-warning); font-size:1.1rem; margin-top:.3rem;}
body[data-style-page="/Account/Checkout"] .ck-dates{list-style:none; margin:.4rem 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:.6rem;}
body[data-style-page="/Account/Checkout"] .ck-dates li{display:flex; flex-direction:column; gap:.15rem; padding:.7rem .9rem; border-radius:12px; background:rgba(var(--rx-brand-rgb),.08); border:1px solid rgba(var(--rx-brand-rgb),.18); color:var(--rx-muted); font-size:.82rem;}
body[data-style-page="/Account/Checkout"] .ck-dates li b{color:var(--rx-ink); font-size:1rem;}
body[data-style-page="/Account/Checkout"] .ck-form{margin-top:1.2rem; display:grid; gap:1rem;}
body[data-style-page="/Account/Checkout"] .ck-check{display:flex; gap:.65rem; align-items:flex-start; padding:.8rem 1rem; border-radius:12px; border:1px solid var(--rx-line-strong); color:var(--rx-ink); font-weight:700; cursor:pointer; line-height:1.8;}
body[data-style-page="/Account/Checkout"] .ck-check input{width:1.1rem; height:1.1rem; margin-top:.35rem; accent-color:var(--rx-brand); flex:none;}
body[data-style-page="/Account/Checkout"] .ck-btn{display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.8rem 1.4rem; border-radius:14px; font-weight:800; border:1px solid var(--rx-line-strong); background:var(--rx-surface); color:var(--rx-ink); text-decoration:none; cursor:pointer;}
body[data-style-page="/Account/Checkout"] .ck-btn.primary{padding:1rem 1.4rem; font-size:1.05rem; background:var(--rx-brand); color:var(--rx-on-brand); border-color:var(--rx-brand); box-shadow:0 14px 28px -14px rgba(var(--rx-brand-rgb),.9); transition:transform .15s,background .15s;}
body[data-style-page="/Account/Checkout"] .ck-btn.primary:hover{background:var(--rx-brand-hover); transform:translateY(-1px);}
@media (max-width:860px){body[data-style-page="/Account/Checkout"] .ck-grid{grid-template-columns:1fr;}}
@media (max-width:560px){body[data-style-page="/Account/Checkout"] .ck-wrapper{padding:1rem .75rem 2rem;} body[data-style-page="/Account/Checkout"] .ck-hero{padding:1.1rem;} body[data-style-page="/Account/Checkout"] .ck-dates{grid-template-columns:1fr;}}
body.customer-panel[data-style-page="/Account/Checkout"] .ck-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Account/Checkout"] .ck-container{max-width:1120px;margin-inline:auto}body.customer-panel[data-style-page="/Account/Checkout"] .ck-hero{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/Checkout"] .ck-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:14px;align-items:start}body.customer-panel[data-style-page="/Account/Checkout"] .ck-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/Checkout"] .ck-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/Checkout"] .ck-hero{padding:16px}body.customer-panel[data-style-page="/Account/Checkout"] .ck-grid{grid-template-columns:1fr}body.customer-panel[data-style-page="/Account/Checkout"] .ck-cycle{max-width:100%;overflow-x:auto}}
/* Page stylesheet: /Account/TransactionHistory */
body[data-style-page="/Account/TransactionHistory"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/TransactionHistory"] .history-wrapper{ min-height: 100vh; background: linear-gradient(180deg,var(--rx-page),var(--rx-surface) 50%,var(--rx-page)); padding: 2rem; }body[data-style-page="/Account/TransactionHistory"] .history-container{ max-width: 1100px; margin: 0 auto; }body[data-style-page="/Account/TransactionHistory"] .page-title{
        font-size: 1.6rem; font-weight: 900; color: var(--rx-ink);
        display: flex; align-items: center; gap: .6rem; margin-bottom: 2rem;
    }body[data-style-page="/Account/TransactionHistory"] .page-title i{ color: var(--rx-accent); }body[data-style-page="/Account/TransactionHistory"] /* summary cards */
    .summary-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2.5rem;
    }body[data-style-page="/Account/TransactionHistory"] .sum-card{
        background: rgba(16, 40, 41,.6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }body[data-style-page="/Account/TransactionHistory"] .sum-icon{
        width: 48px; height: 48px;
        border-radius: 12px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.4rem; flex-shrink: 0;
    }body[data-style-page="/Account/TransactionHistory"] .sum-icon.green{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Account/TransactionHistory"] .sum-icon.blue{ background: rgba(var(--rx-accent-rgb), 0.15);  color: var(--rx-accent); }body[data-style-page="/Account/TransactionHistory"] .sum-icon.amber{ background: rgba(var(--rx-warning-rgb), 0.15);  color: var(--rx-warning); }body[data-style-page="/Account/TransactionHistory"] .sum-icon.red{ background: rgba(var(--rx-danger-rgb), 0.12);   color: var(--rx-danger); }body[data-style-page="/Account/TransactionHistory"] .sum-info .label{ font-size: .78rem; color: var(--rx-muted); margin-bottom: .2rem; }body[data-style-page="/Account/TransactionHistory"] .sum-info .value{ font-size: 1.3rem; font-weight: 900; color: var(--rx-ink); }body[data-style-page="/Account/TransactionHistory"] /* tabs */
    .section-tabs{
        display: flex; gap: 0;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px; padding: .35rem;
        width: fit-content; margin-bottom: 1.75rem;
    }body[data-style-page="/Account/TransactionHistory"] .tab-btn{
        padding: .6rem 1.75rem; border-radius: 10px;
        border: none; background: transparent; color: var(--rx-muted);
        font-size: .9rem; font-weight: 600; cursor: pointer;
        display: flex; align-items: center; gap: .4rem; transition: all .2s;
    }body[data-style-page="/Account/TransactionHistory"] .tab-btn.active{
        background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand));
        color: var(--rx-on-brand); box-shadow: 0 4px 14px rgba(var(--rx-accent-rgb), 0.35);
    }body[data-style-page="/Account/TransactionHistory"] .tab-section{ display: none; }body[data-style-page="/Account/TransactionHistory"] .tab-section.active{ display: block; }body[data-style-page="/Account/TransactionHistory"] /* glass card */
    .glass-card{
        background: rgba(16, 40, 41,.6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Account/TransactionHistory"] .card-head{
        background: linear-gradient(135deg,rgba(var(--rx-accent-rgb), 0.15),rgba(var(--rx-accent-rgb), 0.1));
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        display: flex; align-items: center; justify-content: space-between;
    }body[data-style-page="/Account/TransactionHistory"] .card-head h5{ margin: 0; color: var(--rx-ink); font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/Account/TransactionHistory"] /* chat packages timeline */
    .pkg-timeline{ padding: 1.5rem; }body[data-style-page="/Account/TransactionHistory"] .pkg-item{
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 14px;
        padding: 1.1rem 1.25rem;
        margin-bottom: .85rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }body[data-style-page="/Account/TransactionHistory"] .pkg-item:last-child{ margin-bottom: 0; }body[data-style-page="/Account/TransactionHistory"] .pkg-dot{
        width: 40px; height: 40px; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.1rem; flex-shrink: 0;
    }body[data-style-page="/Account/TransactionHistory"] .pkg-dot.free{ background: rgba(var(--rx-contrast-rgb), 0.105); color: var(--rx-muted); }body[data-style-page="/Account/TransactionHistory"] .pkg-dot.paid{ background: rgba(var(--rx-accent-rgb), 0.15);  color: var(--rx-accent); }body[data-style-page="/Account/TransactionHistory"] .pkg-info{ flex: 1; min-width: 140px; }body[data-style-page="/Account/TransactionHistory"] .pkg-name{ font-weight: 700; color: var(--rx-ink); font-size: .95rem; }body[data-style-page="/Account/TransactionHistory"] .pkg-date{ font-size: .75rem; color: var(--rx-ink-soft); margin-top: .15rem; }body[data-style-page="/Account/TransactionHistory"] .pkg-credits-badge{
        font-size: .85rem; font-weight: 700;
        background: rgba(var(--rx-accent-rgb), 0.12); color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        border-radius: 8px; padding: .3rem .75rem;
        white-space: nowrap;
    }body[data-style-page="/Account/TransactionHistory"] .pkg-amount{ font-size: .85rem; color: var(--rx-warning); font-weight: 700; white-space: nowrap; }body[data-style-page="/Account/TransactionHistory"] .pkg-amount.free-amt{ color: var(--rx-success); }body[data-style-page="/Account/TransactionHistory"] .pkg-status{
        font-size: .72rem; font-weight: 700;
        padding: .25rem .65rem; border-radius: 20px;
        white-space: nowrap;
    }body[data-style-page="/Account/TransactionHistory"] .pkg-status.completed{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.2); }body[data-style-page="/Account/TransactionHistory"] .ref-id{ font-size: .72rem; color: var(--rx-ink-soft); font-family: var(--rx-font-mono); }body[data-style-page="/Account/TransactionHistory"] /* moderation table */
    .table-wrap{ overflow-x: auto; }body[data-style-page="/Account/TransactionHistory"] table.tx-table{
        width: 100%; border-collapse: collapse; min-width: 650px;
    }body[data-style-page="/Account/TransactionHistory"] .tx-table th{
        padding: .85rem 1rem; text-align: right;
        color: var(--rx-muted); font-size: .78rem; font-weight: 600;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        white-space: nowrap;
    }body[data-style-page="/Account/TransactionHistory"] .tx-table td{
        padding: .9rem 1rem; text-align: right;
        color: var(--rx-ink-soft); font-size: .85rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.04);
    }body[data-style-page="/Account/TransactionHistory"] .tx-table tr:last-child td{ border-bottom: none; }body[data-style-page="/Account/TransactionHistory"] .tx-table tr:hover td{ background: rgba(var(--rx-contrast-rgb), 0.02); }body[data-style-page="/Account/TransactionHistory"] .badge-status{
        display: inline-block; font-size: .72rem; font-weight: 700;
        padding: .2rem .65rem; border-radius: 20px;
    }body[data-style-page="/Account/TransactionHistory"] .badge-success{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.2); }body[data-style-page="/Account/TransactionHistory"] .badge-failed{ background: rgba(var(--rx-danger-rgb), 0.1);   color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.2); }body[data-style-page="/Account/TransactionHistory"] .badge-pending{ background: rgba(var(--rx-warning-rgb), 0.1);  color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.2); }body[data-style-page="/Account/TransactionHistory"] .empty-state{
        text-align: center; padding: 3rem 1.5rem; color: var(--rx-ink-soft);
    }body[data-style-page="/Account/TransactionHistory"] .empty-state i{ font-size: 2.5rem; margin-bottom: .75rem; display: block; }body[data-style-page="/Account/TransactionHistory"] .empty-state p{ margin: 0; font-size: .9rem; }body[data-style-page="/Account/TransactionHistory"] /* credit meter */
    .credit-meter{
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 14px;
        padding: 1.25rem;
        margin: 1.25rem 1.5rem;
    }body[data-style-page="/Account/TransactionHistory"] .meter-labels{ display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .8rem; }body[data-style-page="/Account/TransactionHistory"] .meter-labels .used-label{ color: var(--rx-danger); }body[data-style-page="/Account/TransactionHistory"] .meter-labels .left-label{ color: var(--rx-success); }body[data-style-page="/Account/TransactionHistory"] .meter-bar{
        height: 10px; background: rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 10px; overflow: hidden;
    }body[data-style-page="/Account/TransactionHistory"] .meter-fill{
        height: 100%;
        background: linear-gradient(90deg,var(--rx-success-fill),var(--rx-brand));
        border-radius: 10px;
        transition: width .5s;
    }body[data-style-page="/Account/TransactionHistory"] .meter-note{ font-size: .75rem; color: var(--rx-ink-soft); margin-top: .5rem; text-align: center; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/TransactionHistory"])) .sum-icon.green{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .sum-icon.blue{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .sum-icon.amber{ background: rgba(var(--rx-warning-rgb), 0.1); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .sum-icon.red{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .pkg-dot.paid{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .pkg-dot.free{ color: var(--rx-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .pkg-status.completed,html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .badge-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .badge-failed{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .badge-pending{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .tx-table td[style*="color:#f59e0b"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .tx-table td[style*="color:#475569"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .meter-labels .used-label{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .meter-labels .left-label{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .empty-state{ color: var(--theme-muted); }
html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .sum-card{ background: var(--theme-surface) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/TransactionHistory"] .glass-card{ background: var(--theme-surface) !important; }



body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-container{max-width:1440px}body.customer-panel[data-style-page="/Account/TransactionHistory"] .page-title{padding:18px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/TransactionHistory"] .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:14px}body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-card{border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Account/TransactionHistory"] .section-tabs{display:flex;gap:8px;padding:6px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);width:max-content;max-width:100%;overflow-x:auto}body.customer-panel[data-style-page="/Account/TransactionHistory"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:850px){body.customer-panel[data-style-page="/Account/TransactionHistory"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/TransactionHistory"] .summary-grid{grid-template-columns:1fr 1fr;gap:8px}body.customer-panel[data-style-page="/Account/TransactionHistory"] .section-tabs{width:100%}body.customer-panel[data-style-page="/Account/TransactionHistory"] .section-tabs .tab-btn{flex:1;white-space:nowrap}}

/* Transaction ledger: orient users with account totals before the separate histories. */
body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-wrapper{padding:clamp(14px,2.2vw,32px);}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-container{max-width:1480px;margin-inline:auto;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .page-title{display:flex;align-items:center;gap:14px;margin-bottom:18px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .summary-grid{margin:0 0 18px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-card{display:flex;align-items:center;gap:14px;min-height:112px;padding:18px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-info .value{font-size:clamp(1.2rem,1.8vw,1.65rem);font-weight:800;line-height:1.35;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .section-tabs{margin-bottom:14px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .tab-section>.glass-card{overflow:hidden;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;background:var(--rx-page-alt);border-bottom:1px solid var(--rx-line);}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .credit-meter{padding:18px 22px;border-bottom:1px solid var(--rx-line);}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .pkg-timeline{padding:8px 22px 18px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .pkg-item{padding-block:14px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .table-wrap{max-width:100%;overflow-x:auto;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .tx-table{min-width:720px;}
body.customer-panel[data-style-page="/Account/TransactionHistory"] .empty-state{padding:42px 20px;text-align:center;}
@media(max-width:600px){body.customer-panel[data-style-page="/Account/TransactionHistory"] .history-wrapper{padding:10px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .page-title{padding:16px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-card{display:block;min-height:0;padding:12px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-icon{margin-bottom:8px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .sum-info .value{font-size:1.1rem;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .card-head,body.customer-panel[data-style-page="/Account/TransactionHistory"] .credit-meter{padding:14px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .pkg-timeline{padding-inline:14px;}body.customer-panel[data-style-page="/Account/TransactionHistory"] .pkg-item{gap:10px;flex-wrap:wrap;}}
/* Page stylesheet: /Account/WebhookRequests */
body[data-style-page="/Account/WebhookRequests"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(ellipse at 20% 20%, rgba(var(--rx-info-rgb), 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(var(--rx-accent-rgb), 0.1) 0%, transparent 50%);
        pointer-events: none;
    }body[data-style-page="/Account/WebhookRequests"] .webhook-container{ max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Account/WebhookRequests"] .hero-section{
        background: linear-gradient(135deg, rgba(var(--rx-info-rgb), 0.2) 0%, rgba(var(--rx-accent-rgb), 0.2) 50%, rgba(var(--rx-accent-rgb), 0.15) 100%);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 24px; padding: 2.5rem; margin-bottom: 2rem;
        position: relative; overflow: hidden;
    }body[data-style-page="/Account/WebhookRequests"] .hero-section h1{
        font-size: 2.25rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem;
    }body[data-style-page="/Account/WebhookRequests"] .hero-section h1 i{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Account/WebhookRequests"] .hero-section p{ color: var(--rx-ink-soft); font-size: 1.05rem; margin: 0; }body[data-style-page="/Account/WebhookRequests"] .glass-card{
        background: rgba(16, 40, 41, 0.6); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 24px;
        overflow: hidden; margin-bottom: 2rem;
    }body[data-style-page="/Account/WebhookRequests"] .request-item{
        background: rgba(var(--rx-surface-rgb), 0.5); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Account/WebhookRequests"] .request-item:hover{ border-color: rgba(var(--rx-info-rgb), 0.3); transform: translateY(-2px); }body[data-style-page="/Account/WebhookRequests"] .request-header{ display: flex; justify-content: space-between; align-items: start; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }body[data-style-page="/Account/WebhookRequests"] .request-id{ 
        font-family: var(--rx-font-mono) !important;
        color: var(--rx-info); font-size: 0.9rem; font-weight: 700;
    }body[data-style-page="/Account/WebhookRequests"] .status-badge{
        padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.8rem; font-weight: 700;
        display: inline-flex; align-items: center; gap: 0.4rem;
    }body[data-style-page="/Account/WebhookRequests"] .status-queued{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/Account/WebhookRequests"] .status-processing{ background: rgba(var(--rx-info-rgb), 0.15); color: var(--rx-info); border: 1px solid rgba(var(--rx-info-rgb), 0.3); }body[data-style-page="/Account/WebhookRequests"] .status-sent{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); }body[data-style-page="/Account/WebhookRequests"] .status-failed{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); }body[data-style-page="/Account/WebhookRequests"] .request-text{
        background: rgba(var(--rx-surface-rgb), 0.7); border-radius: 10px; padding: 0.75rem 1rem;
        color: var(--rx-ink-soft); font-size: 0.9rem; margin-bottom: 1rem;
        line-height: 1.6;
    }body[data-style-page="/Account/WebhookRequests"] .request-meta{
        display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--rx-muted);
        font-size: 0.85rem; margin-bottom: 1rem;
    }body[data-style-page="/Account/WebhookRequests"] .request-meta span{ display: flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Account/WebhookRequests"] .request-meta strong{ color: var(--rx-ink); }body[data-style-page="/Account/WebhookRequests"] .deliveries-section{
        margin-top: 1rem; padding-top: 1rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Account/WebhookRequests"] .deliveries-title{
        color: var(--rx-ink-soft); font-size: 0.85rem; font-weight: 700;
        margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem;
    }body[data-style-page="/Account/WebhookRequests"] .delivery-item{
        background: rgba(var(--rx-surface-rgb), 0.5); border-radius: 8px; padding: 0.75rem 1rem;
        margin-bottom: 0.5rem; font-size: 0.85rem;
    }body[data-style-page="/Account/WebhookRequests"] .delivery-item.success{ border-right: 3px solid var(--rx-success); }body[data-style-page="/Account/WebhookRequests"] .delivery-item.failed{ border-right: 3px solid var(--rx-danger); }body[data-style-page="/Account/WebhookRequests"] .pagination{
        display: flex; justify-content: center; align-items: center; gap: 0.5rem;
        margin-top: 2rem;
    }body[data-style-page="/Account/WebhookRequests"] .page-btn{
        background: rgba(var(--rx-accent-rgb), 0.2); border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent); padding: 0.5rem 1rem; border-radius: 10px;
        text-decoration: none; font-weight: 600; transition: all 0.3s ease;
    }body[data-style-page="/Account/WebhookRequests"] .page-btn:hover{ background: rgba(var(--rx-accent-rgb), 0.35); }body[data-style-page="/Account/WebhookRequests"] .page-btn.active{ background: rgba(var(--rx-accent-rgb), 0.5); color: var(--rx-ink); }body[data-style-page="/Account/WebhookRequests"] .page-btn:disabled{ opacity: 0.3; cursor: not-allowed; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Account/WebhookRequests"])) .hero-section{ border-color: var(--theme-border-soft); background: linear-gradient(135deg, rgba(8,145,178,.09), rgba(var(--theme-accent-rgb), .05)); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .hero-section h1 i{ background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-brand)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .request-item:hover{ border-color: rgba(8,145,178,.35) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .request-id{ color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .status-queued{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .status-processing{ background: rgba(8,145,178,.1); border-color: rgba(8,145,178,.3); color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .status-sent{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .status-failed{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .request-item .request-text{ background: var(--theme-surface-3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .request-meta{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .deliveries-section{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .deliveries-title{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .delivery-item.success{ border-right-color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .delivery-item.failed{ border-right-color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper [style*="color: rgba(255,255,255,0.6)"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper [style*="color: rgba(255,255,255,0.4)"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper [style*="color: rgba(255,255,255,0.2)"]{ color: var(--theme-faint) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper [style*="color: #34d399"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .webhook-wrapper [style*="color: #f87171"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .admin-content .glass-card .request-item strong[style*="#34d399"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .admin-content .glass-card .request-item strong[style*="#f87171"]{ color: #b91c1c !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .glass-card{ background: var(--theme-surface) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Account/WebhookRequests"] .request-item{ background: var(--theme-surface-2) !important; }



/* Webhook delivery history: each attempt reads as a compact status-led event card. */
body.customer-panel[data-style-page="/Account/WebhookRequests"] .webhook-wrapper { padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .webhook-container { max-width:1180px; }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .hero-section { padding:20px 22px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .glass-card { display:grid; gap:12px; border:0; background:transparent; box-shadow:none; }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .request-item { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 18px; padding:18px; border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .request-text { grid-column:1/-1; }
body.customer-panel[data-style-page="/Account/WebhookRequests"] .request-meta { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px 18px; }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Account/WebhookRequests"] .webhook-wrapper{padding:8px}body.customer-panel[data-style-page="/Account/WebhookRequests"] .hero-section{padding:16px}body.customer-panel[data-style-page="/Account/WebhookRequests"] .request-item{grid-template-columns:1fr;padding:14px}body.customer-panel[data-style-page="/Account/WebhookRequests"] .request-header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}}
/* Page stylesheet: /Admin/AiCacheSettings */
body[data-style-page="/Admin/AiCacheSettings"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/AiCacheSettings"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/AiCacheSettings"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/AiCacheSettings"] .page-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/AiCacheSettings"] .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/AiCacheSettings"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .alert-modern{
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 600;
        border: 1px solid transparent;
    }body[data-style-page="/Admin/AiCacheSettings"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/AiCacheSettings"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/AiCacheSettings"] .alert-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/AiCacheSettings"] .alert-warning{
        background: rgba(var(--rx-warning-rgb), 0.15);
        border-color: rgba(var(--rx-warning-rgb), 0.3);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/AiCacheSettings"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        padding: 2rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .card-title{
        color: var(--rx-ink);
        font-weight: 800;
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .card-title i{
        color: var(--rx-accent);
    }body[data-style-page="/Admin/AiCacheSettings"] .form-row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    @media (max-width: 700px) {body[data-style-page="/Admin/AiCacheSettings"] .form-row{ grid-template-columns: 1fr; }
    }body[data-style-page="/Admin/AiCacheSettings"] .form-group{ margin-bottom: 1.5rem; }body[data-style-page="/Admin/AiCacheSettings"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: .95rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-label i{ color: var(--rx-accent); font-size: 1.05rem; }body[data-style-page="/Admin/AiCacheSettings"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: .85rem 1.1rem;
        font-size: 1rem;
        color: var(--rx-ink);
        transition: all 0.3s ease;
        width: 100%;
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/AiCacheSettings"] .form-text{
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        color: var(--rx-muted);
        font-size: 0.82rem;
        margin-top: 0.55rem;
        line-height: 1.6;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-text i{ margin-top: 0.15rem; flex-shrink: 0; }body[data-style-page="/Admin/AiCacheSettings"] .switch-row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background: rgba(var(--rx-contrast-rgb), 0.04);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        padding: 1.1rem 1.4rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .switch-row .switch-label{
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .switch-row .switch-label strong{
        color: var(--rx-ink);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .switch-row .switch-label small{
        color: var(--rx-muted);
        font-size: 0.82rem;
        line-height: 1.6;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern{
        display: inline-block;
        direction: ltr;
        position: relative;
        width: 52px;
        height: 30px;
        min-width: 52px;
        flex-shrink: 0;
        margin: 0;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="checkbox"]{
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        width: 0;
        height: 0;
        margin: 0;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="hidden"]{
        display: none;
    }body[data-style-page="/Admin/AiCacheSettings"] .switch-slider{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        cursor: pointer;
        background: rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 30px;
        transition: background-color 0.3s;
    }body[data-style-page="/Admin/AiCacheSettings"] .switch-slider::before{
        content: '';
        position: absolute;
        height: 22px;
        width: 22px;
        top: 4px;
        left: 4px;
        background: var(--rx-surface);
        border-radius: 50%;
        transition: left 0.3s;
    }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
    }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider::before{
        left: 26px;
    }body[data-style-page="/Admin/AiCacheSettings"] .last-updated{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Admin/AiCacheSettings"] .last-updated-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/AiCacheSettings"] .last-updated-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        direction: ltr;
    }body[data-style-page="/Admin/AiCacheSettings"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/AiCacheSettings"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/AiCacheSettings"] .page-wrapper{ padding: 1.1rem; }body[data-style-page="/Admin/AiCacheSettings"] .page-header{ margin-bottom: 1.25rem; }body[data-style-page="/Admin/AiCacheSettings"] .header-left h1{ font-size: 1.5rem; gap: 0.6rem; }body[data-style-page="/Admin/AiCacheSettings"] .header-left p{ font-size: 0.9rem; }body[data-style-page="/Admin/AiCacheSettings"] .alert-modern{
            padding: 1rem 1.1rem;
            border-radius: 12px;
        }body[data-style-page="/Admin/AiCacheSettings"] .glass-card{
            padding: 1.25rem;
            border-radius: 18px;
        }body[data-style-page="/Admin/AiCacheSettings"] .card-title{ font-size: 1.05rem; margin-bottom: 1.1rem; }body[data-style-page="/Admin/AiCacheSettings"] .switch-row{
            flex-wrap: wrap;
            padding: 1rem 1.1rem;
            border-radius: 14px;
        }body[data-style-page="/Admin/AiCacheSettings"] .last-updated{
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
            padding: 0.9rem 1.1rem;
        }body[data-style-page="/Admin/AiCacheSettings"] .form-control{
            padding: 0.8rem 1rem;
            min-height: 46px;
        }body[data-style-page="/Admin/AiCacheSettings"] .btn-primary{
            width: 100%;
            justify-content: center;
            padding: 1rem 1.5rem;
            min-height: 48px;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/AiCacheSettings"] .header-left h1{ font-size: 1.3rem; }body[data-style-page="/Admin/AiCacheSettings"] .glass-card{ padding: 1rem; }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern{ width: 46px; height: 26px; min-width: 46px; }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern .switch-slider::before{ width: 18px; height: 18px; top: 4px; left: 4px; }body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider::before{ left: 24px; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/AiCacheSettings"])) .header-left h1 i{ background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/AiCacheSettings"])) .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .form-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .switch-slider{ background: rgba(15, 23, 42, .18); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .switch-slider::before{ box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/AiCacheSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }



/* Page stylesheet: /Admin/ChatbotConfiguration */
body[data-style-page="/Admin/ChatbotConfiguration"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, #042f2e 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.12), rgba(var(--rx-info-rgb), 0.08), rgba(var(--rx-success-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .page-container{ max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header{ margin-bottom: 2rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header h1{
        font-size: 2.1rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 .5rem; display: flex; align-items: center; gap: .75rem;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header h1 i{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-info-fill));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header p{ color: var(--rx-ink-soft); margin: 0; font-size: 1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .alert-modern{
        border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: 1rem; font-weight: 600; border: 1px solid transparent;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.15); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/ChatbotConfiguration"] .alert-error{ background: rgba(var(--rx-danger-rgb), 0.15); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Admin/ChatbotConfiguration"] .alert-info{ background: rgba(var(--rx-info-rgb), 0.1); border-color: rgba(var(--rx-info-rgb), 0.25); color: var(--rx-info); }body[data-style-page="/Admin/ChatbotConfiguration"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 24px;
        overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header{
        padding: 1.5rem 2rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        display: flex; align-items: center; gap: .75rem;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header i{ font-size: 1.4rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header h2{ margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--rx-ink); }body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header p{ margin: .2rem 0 0; font-size: .85rem; color: var(--rx-muted); }body[data-style-page="/Admin/ChatbotConfiguration"] .card-body{ padding: 2rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-label{
        display: flex; align-items: center; gap: .5rem;
        color: var(--rx-ink); font-weight: 700; font-size: 1rem; margin-bottom: .75rem;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .form-label i{ color: var(--rx-success); font-size: 1.1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px; padding: 1rem 1.25rem; font-size: 1rem; color: var(--rx-ink);
        transition: all .3s; width: 100%;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .form-control::placeholder{ color: var(--rx-faint); }body[data-style-page="/Admin/ChatbotConfiguration"] .form-control:focus{ outline: none; border-color: var(--rx-success); box-shadow: 0 0 0 4px rgba(var(--rx-success-rgb), 0.15); background: rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/ChatbotConfiguration"] .form-control.ltr-input{ direction: ltr; text-align: left; font-family: var(--rx-font-mono) !important; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-text{ display: flex; align-items: center; gap: .4rem; color: var(--rx-muted); font-size: .85rem; margin-top: .5rem; }body[data-style-page="/Admin/ChatbotConfiguration"] select.form-control{
        cursor: pointer; appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2334d399'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: left 1rem center; background-size: 1.25rem;
        padding-left: 3rem; background-color: rgba(var(--rx-contrast-rgb), 0.05); color: var(--rx-ink);
    }body[data-style-page="/Admin/ChatbotConfiguration"] select.form-control:focus{ background-color: rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/ChatbotConfiguration"] select.form-control option{ background: #042f2e !important; color: var(--rx-ink) !important; }body[data-style-page="/Admin/ChatbotConfiguration"] .two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview{
        background: rgba(var(--rx-success-rgb), 0.08); border: 1px solid rgba(var(--rx-success-rgb), 0.2);
        border-radius: 14px; padding: 1.25rem 1.5rem; margin-top: 1.5rem;
        display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview i{ color: var(--rx-success); font-size: 1.5rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview p{ margin: 0; color: var(--rx-ink-soft); font-size: .9rem; line-height: 1.5; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview strong{ color: var(--rx-success); }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-info-fill));
        border: none; border-radius: 14px; padding: 1rem 2rem;
        color: var(--rx-on-brand); font-weight: 700; font-size: 1rem;
        display: inline-flex; align-items: center; gap: .6rem;
        cursor: pointer; transition: all .3s;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 10px 30px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px; padding: 1rem 2rem; color: var(--rx-ink-soft);
        font-weight: 600; font-size: 1rem; text-decoration: none;
        display: inline-flex; align-items: center; gap: .5rem; transition: all .3s;
    }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-group-row{ display: flex; gap: 1rem; margin-top: 2rem; }

    @media (max-width: 768px) {body[data-style-page="/Admin/ChatbotConfiguration"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header h1{ font-size: 1.6rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header p{ font-size: .9rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header{ padding: 1.1rem 1.25rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .card-body{ padding: 1.25rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .two-col{ grid-template-columns: 1fr; gap: .75rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-control{ padding: .85rem 1rem; min-height: 44px; }body[data-style-page="/Admin/ChatbotConfiguration"] select.form-control{ padding-left: 2.75rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview{ padding: 1rem 1.1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview p{ font-size: .85rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-group-row{ flex-direction: column; margin-top: 1.5rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .btn-primary,body[data-style-page="/Admin/ChatbotConfiguration"] .btn-secondary{ width: 100%; justify-content: center; padding: .9rem 1.25rem; min-height: 44px; box-sizing: border-box; }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/ChatbotConfiguration"] .page-wrapper{ padding: .75rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .page-header h1{ font-size: 1.4rem; gap: .5rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .card-body{ padding: 1rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .form-label{ font-size: .92rem; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview{ flex-direction: column; align-items: flex-start; }body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview i{ font-size: 1.25rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ChatbotConfiguration"])) .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .card-section-header{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .form-label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .price-preview i{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .glass-card [style*="color:#34d399"]{ color: #047857 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .glass-card [style*="color:#fbbf24"]{ color: #b45309 !important; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ChatbotConfiguration"])) .card-body [style*="color:#6ee7b7"]{ color: #047857 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .card-body [style*="background:rgba(255,255,255,.03)"],html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .card-body [style*="background:rgba(15,23,42,.5)"]{
        background: var(--theme-surface-2) !important;
        border-color: var(--theme-border-soft) !important;
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatbotConfiguration"] .card-body [style*="color:rgba(255,255,255,.5)"]{ color: var(--theme-muted) !important; }



/* Page stylesheet: /Admin/Chatbots/Details */
body[data-style-page="/Admin/Chatbots/Details"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/Chatbots/Details"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/Chatbots/Details"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Chatbots/Details"] .page-container{ max-width: 1500px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/Chatbots/Details"] .page-header{ margin-bottom: 1.5rem; }body[data-style-page="/Admin/Chatbots/Details"] .breadcrumb-link{
        color: var(--rx-muted);
        text-decoration: none;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .breadcrumb-link:hover{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .page-header h1{
        font-size: 2rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/Chatbots/Details"] .page-header h1 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .slug{
        display: inline-block;
        font-family: var(--rx-font-mono);
        font-size: 0.8rem;
        color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.12);
        border-radius: 0.35rem;
        padding: 0.15rem 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .meta-row{ color: var(--rx-muted); font-size: 0.88rem; display: flex; gap: 1.25rem; flex-wrap: wrap; }body[data-style-page="/Admin/Chatbots/Details"] .meta-row strong{ color: var(--rx-ink-soft); }body[data-style-page="/Admin/Chatbots/Details"] .card{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1rem;
        backdrop-filter: blur(12px);
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .card-head{
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/Chatbots/Details"] .card-head h2{
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .card-head h2 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .card-body{ padding: 1.25rem; }body[data-style-page="/Admin/Chatbots/Details"] .stat-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1rem;
        padding: 1.1rem 1.25rem;
        backdrop-filter: blur(12px);
    }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile .label{
        color: var(--rx-muted);
        font-size: 0.78rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile .value{ color: var(--rx-ink); font-size: 1.6rem; font-weight: 900; line-height: 1; }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile .sub{ color: var(--rx-muted); font-size: 0.72rem; margin-top: 0.35rem; }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-ok .label i{ color: var(--rx-success); }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-info .label i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-warn .label i{ color: var(--rx-warning); }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-fail .label i{ color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Details"] /* daily bars */
    .chart-scroll{ overflow-x: auto; }body[data-style-page="/Admin/Chatbots/Details"] .chart{
        display: flex;
        align-items: flex-end;
        gap: 3px;
        height: 170px;
        padding-top: 0.5rem;
        min-width: 560px;
    }body[data-style-page="/Admin/Chatbots/Details"] .chart .col{
        flex: 1 1 0;
        min-width: 10px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 1px;
        height: 100%;
        position: relative;
    }body[data-style-page="/Admin/Chatbots/Details"] /* A day with no sessions still gets a faint baseline, so 30 slots read as a timeline
       rather than as empty space with two bars floating in it. */
    .chart .col::after{
        content: '';
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: rgba(var(--rx-contrast-rgb), 0.126);
    }body[data-style-page="/Admin/Chatbots/Details"] .chart .col.has-data::after{ content: none; }body[data-style-page="/Admin/Chatbots/Details"] .chart .seg{ width: 100%; border-radius: 2px; position: relative; z-index: 1; }body[data-style-page="/Admin/Chatbots/Details"] .chart .seg.web{ background: linear-gradient(180deg, var(--rx-brand-bright), var(--rx-brand)); }body[data-style-page="/Admin/Chatbots/Details"] .chart .seg.tg{ background: linear-gradient(180deg, var(--rx-info-fill), var(--rx-info-fill)); }body[data-style-page="/Admin/Chatbots/Details"] .chart .seg.bale{ background: linear-gradient(180deg, var(--rx-success-fill), var(--rx-success-fill)); }body[data-style-page="/Admin/Chatbots/Details"] .chart .col:hover{ filter: brightness(1.25); }body[data-style-page="/Admin/Chatbots/Details"] .chart-axis{
        display: flex;
        gap: 3px;
        margin-top: 0.4rem;
        min-width: 560px;
        color: var(--rx-muted);
        font-size: 0.62rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .chart-axis span{
        flex: 1 1 0;
        min-width: 10px;
        text-align: center;
        white-space: nowrap;
    }body[data-style-page="/Admin/Chatbots/Details"] .chart-legend{
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        margin-top: 0.85rem;
        color: var(--rx-muted);
        font-size: 0.78rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .chart-legend span{ display: inline-flex; align-items: center; gap: 0.35rem; }body[data-style-page="/Admin/Chatbots/Details"] .dot{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }body[data-style-page="/Admin/Chatbots/Details"] .dot.web{ background: var(--rx-brand); }body[data-style-page="/Admin/Chatbots/Details"] .dot.tg{ background: var(--rx-info-fill); }body[data-style-page="/Admin/Chatbots/Details"] .dot.bale{ background: var(--rx-success-fill); }body[data-style-page="/Admin/Chatbots/Details"] /* hourly */
    .hours{ display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 110px; min-width: 480px; }body[data-style-page="/Admin/Chatbots/Details"] .hours .h{ background: linear-gradient(180deg, var(--rx-brand-bright), var(--rx-brand)); border-radius: 2px; min-height: 2px; }body[data-style-page="/Admin/Chatbots/Details"] .hours-axis{ display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 0.4rem; color: var(--rx-muted); font-size: 0.6rem; text-align: center; min-width: 480px; }body[data-style-page="/Admin/Chatbots/Details"] /* lists */
    .metric-list{ display: flex; flex-direction: column; gap: 0.6rem; }body[data-style-page="/Admin/Chatbots/Details"] .metric-row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        border-radius: 0.6rem;
        padding: 0.6rem 0.85rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .metric-row .text{ color: var(--rx-ink-soft); font-size: 0.85rem; line-height: 1.7; }body[data-style-page="/Admin/Chatbots/Details"] .metric-row .count{ color: var(--rx-accent); font-weight: 800; font-size: 0.85rem; white-space: nowrap; }body[data-style-page="/Admin/Chatbots/Details"] .two-col{ display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }body[data-style-page="/Admin/Chatbots/Details"] /* table */
    .table-wrap{ overflow-x: auto; }body[data-style-page="/Admin/Chatbots/Details"] table{ width: 100%; border-collapse: collapse; min-width: 900px; }body[data-style-page="/Admin/Chatbots/Details"] thead th{
        background: rgba(var(--rx-surface-rgb), 0.6);
        color: var(--rx-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-align: right;
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        white-space: nowrap;
    }body[data-style-page="/Admin/Chatbots/Details"] tbody td{
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056);
        color: var(--rx-ink-soft);
        font-size: 0.84rem;
        vertical-align: middle;
    }body[data-style-page="/Admin/Chatbots/Details"] tbody tr:hover{ background: rgba(var(--rx-accent-rgb), 0.06); }body[data-style-page="/Admin/Chatbots/Details"] .badge{
        display: inline-block;
        border-radius: 0.4rem;
        padding: 0.15rem 0.5rem;
        font-size: 0.72rem;
        font-weight: 700;
        white-space: nowrap;
    }body[data-style-page="/Admin/Chatbots/Details"] .badge-ok{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/Chatbots/Details"] .badge-warn{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); }body[data-style-page="/Admin/Chatbots/Details"] .badge-fail{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Details"] .badge-info{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .badge-idle{ background: rgba(var(--rx-contrast-rgb), 0.105); color: var(--rx-ink-soft); }body[data-style-page="/Admin/Chatbots/Details"] .num-muted{ color: var(--rx-muted); font-size: 0.75rem; }body[data-style-page="/Admin/Chatbots/Details"] .truncate{ max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }body[data-style-page="/Admin/Chatbots/Details"] .btn{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        border: none;
        border-radius: 0.6rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.83rem;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
    }body[data-style-page="/Admin/Chatbots/Details"] .btn:hover{ filter: brightness(1.12); }body[data-style-page="/Admin/Chatbots/Details"] .btn-primary{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand); }body[data-style-page="/Admin/Chatbots/Details"] .btn-ghost{ background: rgba(var(--rx-contrast-rgb), 0.084); color: var(--rx-ink-soft); border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); }body[data-style-page="/Admin/Chatbots/Details"] .btn-sm{ padding: 0.35rem 0.65rem; font-size: 0.76rem; }body[data-style-page="/Admin/Chatbots/Details"] .chan-tabs{ display: flex; gap: 0.4rem; flex-wrap: wrap; }body[data-style-page="/Admin/Chatbots/Details"] .chan-tab{
        padding: 0.35rem 0.8rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        text-decoration: none;
        color: var(--rx-ink-soft);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
    }body[data-style-page="/Admin/Chatbots/Details"] .chan-tab:hover{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-ink); }body[data-style-page="/Admin/Chatbots/Details"] .chan-tab.active{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand); border-color: transparent; font-weight: 700; }body[data-style-page="/Admin/Chatbots/Details"] .pager{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        flex-wrap: wrap;
    }body[data-style-page="/Admin/Chatbots/Details"] .pager .info{ color: var(--rx-muted); font-size: 0.82rem; }body[data-style-page="/Admin/Chatbots/Details"] .pager .links{ display: flex; gap: 0.4rem; }body[data-style-page="/Admin/Chatbots/Details"] .pager a,body[data-style-page="/Admin/Chatbots/Details"] .pager span.current{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        text-decoration: none;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/Chatbots/Details"] .pager a:hover{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-ink); }body[data-style-page="/Admin/Chatbots/Details"] .pager span.current{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand); border-color: transparent; font-weight: 700; }body[data-style-page="/Admin/Chatbots/Details"] .empty{ text-align: center; color: var(--rx-muted); padding: 2.5rem 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .empty i{ display: block; font-size: 1.8rem; margin-bottom: 0.5rem; }body[data-style-page="/Admin/Chatbots/Details"] /* transcript modal */
    .modal-backdrop-custom{
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.75);
        backdrop-filter: blur(4px);
        z-index: 1080;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .modal-backdrop-custom.show{ display: flex; }body[data-style-page="/Admin/Chatbots/Details"] .modal-card{
        background: var(--rx-surface);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        border-radius: 1rem;
        max-width: 720px;
        width: 100%;
        padding: 1.5rem;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }body[data-style-page="/Admin/Chatbots/Details"] .modal-card h3{
        color: var(--rx-ink);
        font-size: 1.05rem;
        font-weight: 900;
        margin: 0 0 0.35rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .modal-card h3 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .transcript{
        overflow-y: auto;
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        padding-inline-end: 0.35rem;
    }body[data-style-page="/Admin/Chatbots/Details"] .msg{ max-width: 82%; padding: 0.65rem 0.9rem; border-radius: 0.85rem; font-size: 0.85rem; line-height: 1.9; word-break: break-word; }body[data-style-page="/Admin/Chatbots/Details"] .msg.user{ align-self: flex-start; background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); border: 1px solid rgba(var(--rx-accent-rgb), 0.3); }body[data-style-page="/Admin/Chatbots/Details"] .msg.bot{ align-self: flex-end; background: rgba(var(--rx-contrast-rgb), 0.07); color: var(--rx-ink-soft); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); }body[data-style-page="/Admin/Chatbots/Details"] .msg .when{ display: block; color: var(--rx-muted); font-size: 0.68rem; margin-top: 0.35rem; }body[data-style-page="/Admin/Chatbots/Details"] /* rendered markdown inside a transcript bubble */
    .msg .md strong{ color: var(--rx-ink); font-weight: 800; }body[data-style-page="/Admin/Chatbots/Details"] .msg.bot .md strong{ color: var(--rx-ink); }body[data-style-page="/Admin/Chatbots/Details"] .msg .md em{ font-style: italic; }body[data-style-page="/Admin/Chatbots/Details"] .msg .md del{ opacity: .7; }body[data-style-page="/Admin/Chatbots/Details"] .msg .md code{
        font-family: var(--rx-font-mono);
        font-size: 0.8em;
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        border-radius: 0.3rem;
        padding: 0.05rem 0.3rem;
        direction: ltr;
        display: inline-block;
    }body[data-style-page="/Admin/Chatbots/Details"] .msg .md a{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Details"] .msg .md-list{ margin: 0.3rem 0; padding-inline-start: 1.2rem; }body[data-style-page="/Admin/Chatbots/Details"] .msg .md-list li{ margin: 0.15rem 0; }body[data-style-page="/Admin/Chatbots/Details"] .msg .md-gap{ height: 0.5rem; }body[data-style-page="/Admin/Chatbots/Details"] .privacy-note{
        background: rgba(var(--rx-warning-rgb), 0.08);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.25);
        border-radius: 0.6rem;
        padding: 0.7rem 0.9rem;
        color: var(--rx-warning);
        font-size: 0.78rem;
        line-height: 1.8;
        margin-top: 0.75rem;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Chatbots/Details"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .page-header h1{ font-size: 1.4rem; }body[data-style-page="/Admin/Chatbots/Details"] .meta-row{ flex-direction: column; gap: 0.4rem; }body[data-style-page="/Admin/Chatbots/Details"] .card-head{ padding: 0.9rem 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .card-body{ padding: 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .stat-grid{ grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile{ padding: 0.9rem 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .stat-tile .value{ font-size: 1.3rem; }body[data-style-page="/Admin/Chatbots/Details"] .two-col{ grid-template-columns: 1fr; gap: 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .chan-tabs{ width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 0.15rem; }body[data-style-page="/Admin/Chatbots/Details"] .chan-tab{ white-space: nowrap; }body[data-style-page="/Admin/Chatbots/Details"] /* table -> cards */
        .table-wrap{ overflow-x: visible; }body[data-style-page="/Admin/Chatbots/Details"] table{ min-width: 0; width: 100%; }body[data-style-page="/Admin/Chatbots/Details"] thead{ display: none; }body[data-style-page="/Admin/Chatbots/Details"] tbody tr{
            display: block;
            background: rgba(var(--rx-surface-rgb), 0.5);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
            border-radius: 0.75rem;
            padding: 0.75rem 0.9rem;
            margin-bottom: 0.75rem;
        }body[data-style-page="/Admin/Chatbots/Details"] tbody tr:last-child{ margin-bottom: 0; }body[data-style-page="/Admin/Chatbots/Details"] tbody tr:hover{ background: rgba(var(--rx-surface-rgb), 0.5); }body[data-style-page="/Admin/Chatbots/Details"] tbody td{
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.5rem 0;
            border-bottom: 1px dashed rgba(var(--rx-contrast-rgb), 0.084);
            text-align: left;
        }body[data-style-page="/Admin/Chatbots/Details"] tbody td:last-child{ border-bottom: none; }body[data-style-page="/Admin/Chatbots/Details"] tbody td::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-size: 0.75rem;
            font-weight: 700;
            flex: 0 0 auto;
            padding-inline-end: 0.75rem;
        }body[data-style-page="/Admin/Chatbots/Details"] tbody td .truncate{ max-width: 60%; }body[data-style-page="/Admin/Chatbots/Details"] tbody td[data-label="رونوشت"]{ justify-content: flex-end; }body[data-style-page="/Admin/Chatbots/Details"] tbody td[data-label="رونوشت"]::before{ content: none; }body[data-style-page="/Admin/Chatbots/Details"] tbody td[data-label="رونوشت"] .btn{ width: 100%; justify-content: center; }body[data-style-page="/Admin/Chatbots/Details"] .empty{ padding: 1.5rem 1rem; }body[data-style-page="/Admin/Chatbots/Details"] .pager{ flex-direction: column; align-items: stretch; text-align: center; }body[data-style-page="/Admin/Chatbots/Details"] .pager .links{ justify-content: center; }body[data-style-page="/Admin/Chatbots/Details"] /* charts */
        .chart,body[data-style-page="/Admin/Chatbots/Details"] .chart-axis{ min-width: 700px; }body[data-style-page="/Admin/Chatbots/Details"] .hours,body[data-style-page="/Admin/Chatbots/Details"] .hours-axis{ min-width: 600px; }body[data-style-page="/Admin/Chatbots/Details"] /* modal */
        .modal-backdrop-custom{ padding: 0.75rem; }body[data-style-page="/Admin/Chatbots/Details"] .modal-card{ padding: 1.1rem; max-height: 92vh; }body[data-style-page="/Admin/Chatbots/Details"] .msg{ max-width: 92%; }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/Chatbots/Details"] .stat-grid{ grid-template-columns: 1fr; }body[data-style-page="/Admin/Chatbots/Details"] .page-header h1{ font-size: 1.2rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Chatbots/Details"])) .breadcrumb-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .breadcrumb-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .page-header h1 i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .card-head h2 i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-info .label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .modal-card h3 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .meta-row{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .meta-row strong{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .card-head{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .stat-tile .label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-ok .label i{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-warn .label i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .stat-tile.accent-fail .label i{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .chart .col::after{ background: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .chart .col:hover{ filter: brightness(.92); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .chart-legend{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .metric-row .text{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] thead th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .admin-content [style*="color:white"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .admin-content .card-body[style*="color:#cbd5e1"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .btn-ghost{ background: var(--theme-surface-2); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .btn-ghost:hover{ filter: none; background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .chan-tab:not(.active){ color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .pager .info{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .pager a{ color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .pager a:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .modal-backdrop-custom{ background: rgba(var(--rx-surface-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .msg.user{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-text); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .msg.bot{ background: var(--theme-surface-2); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .msg .when{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .msg .md code{ background: var(--theme-surface-3); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .msg .md a{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] .privacy-note{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] tbody tr,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] tbody tr:hover{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Details"] tbody td::before{ color: var(--theme-muted); }
    }



/* Page stylesheet: /Admin/Chatbots/Index */
body[data-style-page="/Admin/Chatbots/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-container{
        max-width: 1500px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-header{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .page-header h1 i{
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Chatbots/Index"] .page-header p{
        color: var(--rx-muted);
        margin: 0;
        font-size: 0.95rem;
        line-height: 1.8;
    }body[data-style-page="/Admin/Chatbots/Index"] .card{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1rem;
        backdrop-filter: blur(12px);
        overflow: hidden;
    }body[data-style-page="/Admin/Chatbots/Index"] .card-body{
        padding: 1.25rem;
    }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- headline tiles ---------- */
    .stat-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1rem;
        padding: 1.1rem 1.25rem;
        backdrop-filter: blur(12px);
    }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile .label{
        color: var(--rx-muted);
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile .value{
        color: var(--rx-ink);
        font-size: 1.75rem;
        font-weight: 900;
        line-height: 1;
    }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile .sub{
        color: var(--rx-muted);
        font-size: 0.75rem;
        margin-top: 0.35rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-ok .label i{ color: var(--rx-success); }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-info .label i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-warn .label i{ color: var(--rx-warning); }body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-fail .label i{ color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- filters ---------- */
    .filter-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 0.9rem;
        align-items: end;
    }body[data-style-page="/Admin/Chatbots/Index"] .form-label{
        display: block;
        color: var(--rx-ink-soft);
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .form-control,body[data-style-page="/Admin/Chatbots/Index"] .form-select,body[data-style-page="/Admin/Chatbots/Index"] textarea.form-control{
        width: 100%;
        background: rgba(var(--rx-surface-rgb), 0.75);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.175);
        border-radius: 0.6rem;
        color: var(--rx-ink);
        padding: 0.55rem 0.75rem;
        font-size: 0.88rem;
    }body[data-style-page="/Admin/Chatbots/Index"] /* Bootstrap's own .form-control:focus repaints the field white with dark text. These rules sit
       on the same elements, so background and colour must be restated here (not just the border)
       or every field turns white the moment it is clicked. */
    .form-control:focus,body[data-style-page="/Admin/Chatbots/Index"] .form-select:focus,body[data-style-page="/Admin/Chatbots/Index"] textarea.form-control:focus{
        outline: none;
        background: rgba(var(--rx-surface-rgb), 0.9);
        color: var(--rx-ink);
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Chatbots/Index"] .form-control::placeholder,body[data-style-page="/Admin/Chatbots/Index"] textarea.form-control::placeholder{ color: var(--rx-muted); }body[data-style-page="/Admin/Chatbots/Index"] /* Chrome paints autofilled inputs with an opaque light background that normal background
       rules cannot override; a long inset shadow is the usual way to repaint it. */
    .form-control:-webkit-autofill,body[data-style-page="/Admin/Chatbots/Index"] .form-control:-webkit-autofill:focus{
        -webkit-text-fill-color: var(--rx-ink);
        -webkit-box-shadow: 0 0 0 1000px #16233b inset;
        caret-color: var(--rx-ink);
    }body[data-style-page="/Admin/Chatbots/Index"] .form-select option{
        background: var(--rx-surface);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Chatbots/Index"] .filter-actions{
        display: flex;
        gap: 0.6rem;
        margin-top: 1rem;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/Chatbots/Index"] .btn{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        border: none;
        border-radius: 0.6rem;
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        transition: filter .15s ease, opacity .15s ease;
    }body[data-style-page="/Admin/Chatbots/Index"] .btn:hover{ filter: brightness(1.12); }body[data-style-page="/Admin/Chatbots/Index"] .btn:disabled{ opacity: .45; cursor: not-allowed; }body[data-style-page="/Admin/Chatbots/Index"] .btn-primary{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand); }body[data-style-page="/Admin/Chatbots/Index"] .btn-danger{ background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill)); color: var(--rx-on-brand); }body[data-style-page="/Admin/Chatbots/Index"] .btn-ghost{ background: rgba(var(--rx-contrast-rgb), 0.084); color: var(--rx-ink-soft); border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); }body[data-style-page="/Admin/Chatbots/Index"] .btn-sm{ padding: 0.4rem 0.7rem; font-size: 0.78rem; }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- alerts ---------- */
    .alert{
        display: flex;
        align-items: flex-start;
        gap: 0.6rem;
        border-radius: 0.75rem;
        padding: 0.9rem 1.1rem;
        margin-bottom: 1.25rem;
        font-size: 0.88rem;
        line-height: 1.9;
    }body[data-style-page="/Admin/Chatbots/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border: 1px solid rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/Chatbots/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Index"] .alert-info{ background: rgba(var(--rx-accent-rgb), 0.1); border: 1px solid rgba(var(--rx-accent-rgb), 0.3); color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- table ---------- */
    .table-wrap{ overflow-x: auto; }body[data-style-page="/Admin/Chatbots/Index"] table{
        width: 100%;
        border-collapse: collapse;
        min-width: 1180px;
    }body[data-style-page="/Admin/Chatbots/Index"] thead th{
        background: rgba(var(--rx-surface-rgb), 0.6);
        color: var(--rx-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-align: right;
        padding: 0.8rem 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        white-space: nowrap;
    }body[data-style-page="/Admin/Chatbots/Index"] tbody td{
        padding: 0.85rem 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056);
        color: var(--rx-ink-soft);
        font-size: 0.85rem;
        vertical-align: middle;
    }body[data-style-page="/Admin/Chatbots/Index"] tbody tr:hover{ background: rgba(var(--rx-accent-rgb), 0.06); }body[data-style-page="/Admin/Chatbots/Index"] .sort-link{
        color: var(--rx-muted);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .sort-link:hover{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] .sort-link.is-active{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] .sort-link i{ font-size: 0.75rem; }body[data-style-page="/Admin/Chatbots/Index"] .company{ color: var(--rx-ink); font-weight: 700; margin-bottom: 0.2rem; }body[data-style-page="/Admin/Chatbots/Index"] .slug{
        display: inline-block;
        font-family: var(--rx-font-mono);
        font-size: 0.72rem;
        color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.12);
        border-radius: 0.35rem;
        padding: 0.1rem 0.4rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .owner{ color: var(--rx-muted); font-size: 0.8rem; word-break: break-all; }body[data-style-page="/Admin/Chatbots/Index"] .num{ color: var(--rx-ink); font-weight: 700; }body[data-style-page="/Admin/Chatbots/Index"] .num-muted{ color: var(--rx-muted); font-size: 0.75rem; }body[data-style-page="/Admin/Chatbots/Index"] .badge{
        display: inline-block;
        border-radius: 0.4rem;
        padding: 0.15rem 0.5rem;
        font-size: 0.72rem;
        font-weight: 700;
        margin-inline-end: 0.25rem;
        white-space: nowrap;
    }body[data-style-page="/Admin/Chatbots/Index"] .badge-ok{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/Chatbots/Index"] .badge-warn{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); }body[data-style-page="/Admin/Chatbots/Index"] .badge-fail{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Index"] .badge-idle{ background: rgba(var(--rx-contrast-rgb), 0.105); color: var(--rx-ink-soft); }body[data-style-page="/Admin/Chatbots/Index"] .badge-info{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] .row-actions{ display: flex; gap: 0.4rem; flex-wrap: wrap; }body[data-style-page="/Admin/Chatbots/Index"] .empty{
        text-align: center;
        color: var(--rx-muted);
        padding: 3rem 1rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .empty i{ display: block; font-size: 2rem; margin-bottom: 0.6rem; }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- pagination ---------- */
    .pager{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.25rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        flex-wrap: wrap;
    }body[data-style-page="/Admin/Chatbots/Index"] .pager .info{ color: var(--rx-muted); font-size: 0.82rem; }body[data-style-page="/Admin/Chatbots/Index"] .pager .links{ display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }body[data-style-page="/Admin/Chatbots/Index"] .pager a,body[data-style-page="/Admin/Chatbots/Index"] .pager span.current{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        text-decoration: none;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/Chatbots/Index"] .pager a:hover{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-ink); }body[data-style-page="/Admin/Chatbots/Index"] .pager span.current{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand); border-color: transparent; font-weight: 700; }body[data-style-page="/Admin/Chatbots/Index"] .pager span.disabled{ opacity: .35; }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- modals ---------- */
    .modal-backdrop-custom{
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.75);
        backdrop-filter: blur(4px);
        z-index: 1080;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
        overflow-y: auto;
    }body[data-style-page="/Admin/Chatbots/Index"] .modal-backdrop-custom.show{ display: flex; }body[data-style-page="/Admin/Chatbots/Index"] .modal-card{
        background: var(--rx-surface);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        border-radius: 1rem;
        max-width: 560px;
        width: 100%;
        padding: 1.75rem;
        max-height: 90vh;
        overflow-y: auto;
    }body[data-style-page="/Admin/Chatbots/Index"] .modal-card h3{
        color: var(--rx-ink);
        font-size: 1.15rem;
        font-weight: 900;
        margin: 0 0 1rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .modal-card h3 i{ color: var(--rx-danger); }body[data-style-page="/Admin/Chatbots/Index"] .modal-card.settings h3 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Chatbots/Index"] .modal-card p{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        line-height: 1.9;
        margin: 0 0 1rem 0;
    }body[data-style-page="/Admin/Chatbots/Index"] .modal-actions{
        display: flex;
        gap: 0.6rem;
        justify-content: flex-start;
        margin-top: 1.25rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .warn-list{
        background: rgba(var(--rx-warning-rgb), 0.08);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.25);
        border-radius: 0.6rem;
        padding: 0.85rem 1rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .warn-list ul{
        margin: 0;
        padding-right: 1.1rem;
        color: var(--rx-warning);
        font-size: 0.85rem;
        line-height: 1.9;
    }body[data-style-page="/Admin/Chatbots/Index"] .field{ margin-bottom: 1rem; }body[data-style-page="/Admin/Chatbots/Index"] .field .hint{
        color: var(--rx-muted);
        font-size: 0.75rem;
        margin-top: 0.35rem;
        line-height: 1.8;
    }body[data-style-page="/Admin/Chatbots/Index"] .switch-row{
        display: flex;
        align-items: center;
        gap: 0.6rem;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        border-radius: 0.6rem;
        padding: 0.7rem 0.9rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/Chatbots/Index"] .switch-row input{ width: 1.05rem; height: 1.05rem; accent-color: var(--rx-accent); cursor: pointer; }body[data-style-page="/Admin/Chatbots/Index"] .switch-row label{ color: var(--rx-ink); font-size: 0.88rem; font-weight: 700; cursor: pointer; margin: 0; }body[data-style-page="/Admin/Chatbots/Index"] textarea.form-control{ resize: vertical; min-height: 74px; }body[data-style-page="/Admin/Chatbots/Index"] /* ---------- responsive ---------- */
    @media (max-width: 768px){
        .page-wrapper { padding: 1rem; }

        .page-header h1 { font-size: 1.5rem; }
        .page-header p { font-size: 0.85rem; line-height: 1.7; }

        .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

        .stat-tile { padding: 0.9rem 1rem; }
        .stat-tile .value { font-size: 1.4rem; }

        .filter-grid { grid-template-columns: 1fr; }

        .form-control, .form-select, textarea.form-control {
            min-height: 44px;
            font-size: 0.95rem;
        }

        .filter-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }

        /* ----- table -> cards ----- */
        .table-wrap { overflow-x: visible; }

        table { min-width: 0; width: 100%; }

        thead { display: none; }

        tbody, table, tr, td { display: block; width: 100%; }

        tbody tr {
            background: rgba(var(--rx-surface-rgb), 0.55);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
            border-radius: 0.85rem;
            padding: 0.85rem 1rem;
            margin: 0 0 0.9rem 0;
        }

        tbody tr:last-child { margin-bottom: 0; }

        tbody tr:hover { background: rgba(var(--rx-surface-rgb), 0.55); }

        tbody td {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.55rem 0;
            border-bottom: 1px dashed rgba(var(--rx-contrast-rgb), 0.084);
            text-align: left;
        }

        tbody td:last-child { border-bottom: none; padding-bottom: 0; }
        tbody td:first-child { padding-top: 0; }

        tbody td::before {
            content: attr(data-label);
            color: var(--rx-muted);
            font-size: 0.75rem;
            font-weight: 700;
            flex: 0 0 auto;
            padding-inline-end: 0.75rem;
            white-space: nowrap;
        }

        tbody td.empty {
            display: block;
            text-align: center;
            padding: 2rem 1rem;
            border-bottom: none;
        }
        tbody td.empty::before { content: none; }
        tbody tr:has(td.empty) {
            background: transparent;
            border: none;
            padding: 0;
        }

        .row-actions { width: 100%; justify-content: flex-start; }
        .row-actions .btn { flex: 1 1 auto; justify-content: center; }

        .pager { flex-direction: column; align-items: stretch; text-align: center; }
        .pager .links { justify-content: center; }

        /* ----- modals ----- */
        .modal-backdrop-custom { padding: 0.75rem; }

        .modal-card { padding: 1.1rem; max-width: 100%; }

        .modal-actions { flex-direction: column; }
        .modal-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Chatbots/Index"])) .page-header h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-info .label i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .modal-card.settings h3 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .stat-tile .label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-ok .label i{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-warn .label i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .stat-tile.accent-fail .label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .modal-card h3 i{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .form-control:-webkit-autofill,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .form-control:-webkit-autofill:focus{
        -webkit-text-fill-color: var(--theme-text);
        -webkit-box-shadow: 0 0 0 1000px var(--theme-input) inset;
        caret-color: var(--theme-text);
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .btn-ghost{ background: var(--theme-surface-2); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .btn-ghost:hover{ filter: none; background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .alert-info{ background: rgba(var(--theme-accent-rgb), .08); border-color: var(--theme-border); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] thead th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .sort-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .sort-link:hover,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .sort-link.is-active{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .company,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .num{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .owner{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .pager .info{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .pager a{ color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .pager a:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .warn-list ul{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] .modal-backdrop-custom{ background: rgba(var(--rx-surface-rgb), 0.45); }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] tbody tr,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] tbody tr:hover{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] tbody td{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] tbody td::before{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Chatbots/Index"] tbody tr:has(td.empty){ background: transparent; border: none; }
    }



/* Page stylesheet: /Admin/ChatCreditPackages */
body[data-style-page="/Admin/ChatCreditPackages"] .packages-page{ padding: 1.5rem; }body[data-style-page="/Admin/ChatCreditPackages"] .page-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .page-title{
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--rx-ink);
        display: flex;
        align-items: center;
        gap: .6rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .page-title i{ color: var(--rx-accent); }body[data-style-page="/Admin/ChatCreditPackages"] .glass-card{
        background: rgba(16, 40, 41,.6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        overflow: hidden;
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .card-header-bar{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.15));
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Admin/ChatCreditPackages"] .card-header-bar h5{
        margin: 0;
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 600;
    }body[data-style-page="/Admin/ChatCreditPackages"] /* alert */
    .alert-glass{
        border-radius: 12px;
        padding: .85rem 1.25rem;
        margin-bottom: 1.5rem;
        font-size: .92rem;
        border: 1px solid;
    }body[data-style-page="/Admin/ChatCreditPackages"] .alert-success-g{ background: rgba(var(--rx-success-rgb), 0.12); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/ChatCreditPackages"] .alert-danger-g{ background: rgba(var(--rx-danger-rgb), 0.12);  border-color: rgba(var(--rx-danger-rgb), 0.3);  color: var(--rx-danger); }body[data-style-page="/Admin/ChatCreditPackages"] /* packages grid */
    .packages-grid{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
        padding: 1.5rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card{
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-radius: 14px;
        padding: 1.25rem;
        position: relative;
        transition: border-color .2s;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card.free-pkg{ border-color: rgba(var(--rx-contrast-rgb), 0.175); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card.paid-pkg{ border-color: rgba(var(--rx-accent-rgb), 0.2); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card.gold-pkg{ border-color: rgba(var(--rx-warning-rgb), 0.25); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-badge{
        position: absolute;
        top: -.6rem;
        right: 1rem;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        color: var(--rx-on-brand);
        font-size: .7rem;
        font-weight: 700;
        padding: .2rem .6rem;
        border-radius: 20px;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-badge.free{ background: linear-gradient(135deg, var(--rx-faint), var(--rx-faint)); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-name{
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--rx-ink);
        margin-bottom: .25rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-desc{
        font-size: .8rem;
        color: var(--rx-muted);
        margin-bottom: 1rem;
        min-height: 2.4rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-credits{
        font-size: 1.4rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: .25rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-price-row{
        display: flex;
        align-items: baseline;
        gap: .5rem;
        margin-bottom: .25rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-original{
        font-size: .8rem;
        color: var(--rx-muted);
        text-decoration: line-through;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-final{
        font-size: 1rem;
        font-weight: 700;
        color: var(--rx-warning);
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-discount{
        font-size: .75rem;
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border-radius: 20px;
        padding: .1rem .45rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-meta{
        display: flex;
        gap: .5rem;
        margin: .75rem 0;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag{
        font-size: .72rem;
        padding: .2rem .55rem;
        border-radius: 20px;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-muted);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
    }body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.active{ background: rgba(var(--rx-success-rgb), 0.1);  color: var(--rx-success);  border-color: rgba(var(--rx-success-rgb), 0.2); }body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.inactive{ background: rgba(var(--rx-danger-rgb), 0.1);   color: var(--rx-danger);  border-color: rgba(var(--rx-danger-rgb), 0.2); }body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.free-tag{ background: rgba(var(--rx-contrast-rgb), 0.07); color: var(--rx-ink-soft);  border-color: rgba(var(--rx-contrast-rgb), 0.14); }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-actions{
        display: flex;
        gap: .5rem;
        margin-top: 1rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] .btn-edit-pkg{
        flex: 1;
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 8px;
        padding: .45rem .75rem;
        font-size: .8rem;
        cursor: pointer;
        transition: background .2s;
    }body[data-style-page="/Admin/ChatCreditPackages"] .btn-edit-pkg:hover{ background: rgba(var(--rx-accent-rgb), 0.3); }body[data-style-page="/Admin/ChatCreditPackages"] .btn-del-pkg{
        background: rgba(var(--rx-danger-rgb), 0.1);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.2);
        border-radius: 8px;
        padding: .45rem .65rem;
        font-size: .8rem;
        cursor: pointer;
        transition: background .2s;
    }body[data-style-page="/Admin/ChatCreditPackages"] .btn-del-pkg:hover{ background: rgba(var(--rx-danger-rgb), 0.2); }body[data-style-page="/Admin/ChatCreditPackages"] /* add card */
    .add-pkg-card{
        background: rgba(var(--rx-accent-rgb), 0.05);
        border: 2px dashed rgba(var(--rx-accent-rgb), 0.25);
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 2rem;
        cursor: pointer;
        transition: all .2s;
        min-height: 220px;
        color: var(--rx-accent);
    }body[data-style-page="/Admin/ChatCreditPackages"] .add-pkg-card:hover{ background: rgba(var(--rx-accent-rgb), 0.1); border-color: rgba(var(--rx-accent-rgb), 0.5); }body[data-style-page="/Admin/ChatCreditPackages"] .add-pkg-card i{ font-size: 2rem; }body[data-style-page="/Admin/ChatCreditPackages"] .add-pkg-card span{ font-size: .9rem; font-weight: 600; }body[data-style-page="/Admin/ChatCreditPackages"] /* modal */
    .modal-dark .modal-content{
        background: var(--rx-surface);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
        border-radius: 16px;
    }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .modal-header{
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.15));
        border-radius: 16px 16px 0 0;
    }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .modal-footer{ border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .form-label{ color: var(--rx-muted); font-size: .85rem; margin-bottom: .35rem; }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .form-control,body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .form-select{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
        border-radius: 8px;
    }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .form-control:focus,body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .form-select:focus{
        background: rgba(var(--rx-surface-rgb), 0.9);
        border-color: rgba(var(--rx-accent-rgb), 0.5);
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .btn-close{ filter: invert(1); }body[data-style-page="/Admin/ChatCreditPackages"] .btn-save-modal{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        border: none;
        border-radius: 8px;
        padding: .55rem 1.5rem;
        font-weight: 600;
        cursor: pointer;
        transition: opacity .2s;
    }body[data-style-page="/Admin/ChatCreditPackages"] .btn-save-modal:hover{ opacity: .85; }body[data-style-page="/Admin/ChatCreditPackages"] .form-check-label{ color: var(--rx-ink); font-size: .88rem; }body[data-style-page="/Admin/ChatCreditPackages"] .free-price-note{
        font-size: .78rem;
        color: var(--rx-muted);
        margin-top: .25rem;
    }body[data-style-page="/Admin/ChatCreditPackages"] /* responsive */
    @media (max-width: 768px){
        .packages-page { padding: 1rem; }

        .page-header { margin-bottom: 1.25rem; }

        .page-title { font-size: 1.25rem; }

        .card-header-bar {
            padding: .85rem 1rem;
            flex-wrap: wrap;
            gap: .4rem;
        }

        .packages-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
            padding: 1rem;
        }

        .add-pkg-card { min-height: 160px; padding: 1.5rem; }

        .pkg-actions { flex-wrap: wrap; }

        .btn-edit-pkg,
        .btn-del-pkg {
            min-height: 44px;
            font-size: .85rem;
        }

        .btn-del-pkg { flex: 1; }

        /* modal */
        .modal-dark .modal-dialog {
            margin: .75rem;
            max-width: calc(100% - 1.5rem);
        }

        .modal-dark .modal-body { padding: 1rem; }

        .modal-dark .modal-footer {
            padding: .75rem 1rem;
            flex-wrap: wrap;
        }

        .modal-dark .modal-footer .btn,
        .modal-dark .modal-footer .btn-save-modal {
            flex: 1;
            min-height: 44px;
            width: 100%;
            margin: 0;
        }

        .modal-dark .row.g-3 > [class*="col-"] {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .modal-dark .form-control,
        .modal-dark .form-select {
            min-height: 44px;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card{ padding: 1rem; }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-credits{ font-size: 1.2rem; }body[data-style-page="/Admin/ChatCreditPackages"] .pkg-name{ font-size: 1rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ChatCreditPackages"])) .card-header-bar{ background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .12), rgba(var(--theme-accent-rgb), .05)); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .alert-success-g{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .alert-danger-g{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-card:hover{ border-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-desc{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-final{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-final[style*="color:#6ee7b7"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .pkg-discount{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag{ background: var(--theme-surface-2); color: var(--theme-muted); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.active{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.inactive{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .meta-tag.free-tag{ background: var(--theme-surface-3); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .btn-del-pkg{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .btn-del-pkg:hover{ background: rgba(var(--rx-danger-rgb), 0.15); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .add-pkg-card{ color: var(--theme-accent-strong); border: 2px dashed var(--theme-border) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .add-pkg-card:hover{ background: var(--theme-hover) !important; border-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .modal-footer{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .modal-dark .btn-close{ filter: none; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatCreditPackages"] .free-price-note{ color: var(--theme-muted); }



/* Page stylesheet: /Admin/ChatSessions/Details */
body[data-style-page="/Admin/ChatSessions/Details"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/ChatSessions/Details"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Admin/ChatSessions/Details"] .page-container{ max-width: 980px; margin: 0 auto; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header-content h1{ font-size: 1.7rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 .4rem; display: flex; align-items: center; gap: .6rem; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header-content p{ color: var(--rx-muted); margin: 0; font-size: .9rem; }body[data-style-page="/Admin/ChatSessions/Details"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15); border-radius: 12px;
        padding: 0.6rem 1.1rem; color: var(--rx-ink-soft); font-weight: 600; font-size: 0.85rem;
        text-decoration: none; transition: all 0.3s ease; white-space: nowrap;
    }body[data-style-page="/Admin/ChatSessions/Details"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/Admin/ChatSessions/Details"] .btn-delete{
        background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger); border-radius: 12px; padding: 0.7rem 1.25rem; cursor: pointer;
        font-weight: 700; font-size: 0.9rem; transition: all .2s ease; white-space: nowrap;
    }body[data-style-page="/Admin/ChatSessions/Details"] .btn-delete:hover{ background: rgba(var(--rx-danger-rgb), 0.22); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.55); }body[data-style-page="/Admin/ChatSessions/Details"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/ChatSessions/Details"] .card-header-row{ padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/ChatSessions/Details"] .card-title{ display: flex; align-items: center; gap: .6rem; color: var(--rx-ink); font-size: 1rem; font-weight: 800; margin: 0; }body[data-style-page="/Admin/ChatSessions/Details"] .card-body{ padding: 1.25rem 1.5rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .85rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-item{ background: rgba(var(--rx-contrast-rgb), 0.035); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 12px; padding: .75rem .9rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-item div:first-child{ color: var(--rx-muted); font-size: .74rem; margin-bottom: .3rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-item div:last-child{ color: var(--rx-ink); font-weight: 700; font-size: .9rem; }body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.web{ background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); }body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.telegram{ background: rgba(41,169,235,.16); color: var(--rx-info); }body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.bale{ background: rgba(var(--rx-warning-rgb), 0.16); color: var(--rx-warning); }body[data-style-page="/Admin/ChatSessions/Details"] /* Conversation bubbles */
    .conv-body{ display: flex; flex-direction: column; gap: .7rem; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row{ display: flex; flex-direction: column; max-width: 78%; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user{ align-self: flex-end; align-items: flex-end; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot{ align-self: flex-start; align-items: flex-start; width: 100%; max-width: 100%; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble{ padding: .65rem .9rem; border-radius: 14px; font-size: .87rem; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user .bubble{ background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); color: var(--rx-on-brand); border-radius: 14px 14px 4px 14px; max-width: 78%; align-self: flex-end; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot .bubble{ background: rgba(var(--rx-contrast-rgb), 0.06); color: var(--rx-ink); border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 14px 14px 14px 4px; max-width: 78%; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-meta{ display: flex; align-items: center; gap: .4rem; margin-top: .25rem; padding: 0 .2rem; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-time{ color: var(--rx-muted); font-size: .68rem; direction: ltr; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-rating{ font-size: .78rem; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-rating.up{ color: var(--rx-success); }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-rating.down{ color: var(--rx-danger); }body[data-style-page="/Admin/ChatSessions/Details"] /* Trace block under a bot bubble */
    .trace-block{
        margin-top: .5rem; max-width: 78%; background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px dashed rgba(var(--rx-contrast-rgb), 0.154);
        border-radius: 12px; padding: .75rem .9rem;
    }body[data-style-page="/Admin/ChatSessions/Details"] /* Raw <validation> block the model emitted before this answer — admin-only debugging aid for
       retrieval quality, collapsed by default so it doesn't clutter the normal transcript view. */
    .debug-block{ margin-top: .4rem; max-width: 78%; }body[data-style-page="/Admin/ChatSessions/Details"] .debug-block summary{
        cursor: pointer; font-size: .72rem; color: var(--rx-accent); list-style: none; display: inline-flex;
        align-items: center; gap: .3rem; user-select: none;
    }body[data-style-page="/Admin/ChatSessions/Details"] .debug-block summary::-webkit-details-marker{ display: none; }body[data-style-page="/Admin/ChatSessions/Details"] .debug-block summary::before{ content: "\f285"; font-family: bootstrap-icons; font-size: .7rem; transition: transform .15s; }body[data-style-page="/Admin/ChatSessions/Details"] .debug-block[open] summary::before{ transform: rotate(90deg); }body[data-style-page="/Admin/ChatSessions/Details"] .debug-block-content{
        margin-top: .4rem; background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px dashed rgba(var(--rx-contrast-rgb), 0.154);
        border-radius: 12px; padding: .7rem .85rem; font-size: .78rem; line-height: 1.7; color: var(--rx-ink-soft);
        white-space: pre-wrap; overflow-wrap: anywhere; direction: ltr; text-align: left;
    }body[data-style-page="/Admin/ChatSessions/Details"] .trace-summary{ display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.112); border-radius: 999px;
        padding: .25rem .65rem; font-size: .72rem; color: var(--rx-muted); display: inline-flex; align-items: center; gap: .3rem;
    }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip strong{ color: var(--rx-ink); direction: ltr; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.error{ color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); background: rgba(var(--rx-danger-rgb), 0.08); }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.cache{ color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); background: rgba(var(--rx-success-rgb), 0.08); }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.cost{ color: var(--rx-warning); border-color: rgba(var(--rx-warning-rgb), 0.3); background: rgba(var(--rx-warning-rgb), 0.08); }body[data-style-page="/Admin/ChatSessions/Details"] .stage-row{ display: flex; flex-direction: column; gap: .2rem; margin-bottom: .4rem; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-row:last-child{ margin-bottom: 0; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-labels{ display: flex; justify-content: space-between; font-size: .74rem; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-name{ color: var(--rx-ink-soft); }body[data-style-page="/Admin/ChatSessions/Details"] .stage-ms{ color: var(--rx-accent); font-weight: 800; direction: ltr; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-bar-track{ height: 7px; border-radius: 999px; background: rgba(var(--rx-contrast-rgb), 0.05); overflow: hidden; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-bar-fill{ height: 100%; border-radius: 999px; background: linear-gradient(90deg,var(--rx-brand),var(--rx-brand-bright)); }body[data-style-page="/Admin/ChatSessions/Details"] .empty-state{ text-align: center; padding: 2.5rem; color: var(--rx-muted); }body[data-style-page="/Admin/ChatSessions/Details"] .empty-state i{ font-size: 2.5rem; margin-bottom: .75rem; opacity: 0.5; display: block; }

    @media (max-width: 768px) {body[data-style-page="/Admin/ChatSessions/Details"] .page-wrapper{ padding: 1.25rem .9rem; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header{ align-items: stretch; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header-content h1{ font-size: 1.4rem; }body[data-style-page="/Admin/ChatSessions/Details"] .btn-secondary{ display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: .7rem 1rem; }body[data-style-page="/Admin/ChatSessions/Details"] .card-header-row{ padding: 1rem 1.1rem; }body[data-style-page="/Admin/ChatSessions/Details"] .card-body{ padding: 1rem 1.1rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-grid{ grid-template-columns: repeat(2, 1fr); }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user,body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot,body[data-style-page="/Admin/ChatSessions/Details"] .trace-block{ max-width: 100%; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user .bubble{ max-width: 92%; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot .bubble{ max-width: 92%; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-block{ max-width: 92%; padding: .7rem .8rem; }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/ChatSessions/Details"] .page-wrapper{ padding: 1rem .6rem; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header-content h1{ font-size: 1.25rem; gap: .45rem; }body[data-style-page="/Admin/ChatSessions/Details"] .page-header-content p{ font-size: .82rem; }body[data-style-page="/Admin/ChatSessions/Details"] .card-title{ font-size: .92rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-grid{ grid-template-columns: 1fr 1fr; gap: .6rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-item{ padding: .6rem .7rem; }body[data-style-page="/Admin/ChatSessions/Details"] .meta-item div:last-child{ font-size: .84rem; }body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user .bubble,body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot .bubble{ max-width: 96%; font-size: .84rem; padding: .6rem .8rem; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-block{ max-width: 96%; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-summary{ gap: .35rem; }body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip{ font-size: .68rem; padding: .22rem .55rem; }body[data-style-page="/Admin/ChatSessions/Details"] .stage-labels{ font-size: .7rem; }
    }

    @media (max-width: 380px) {body[data-style-page="/Admin/ChatSessions/Details"] .meta-grid{ grid-template-columns: 1fr; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ChatSessions/Details"])) .btn-secondary{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .btn-delete{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .btn-delete:hover{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .card-header-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .card-title i[style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .meta-item{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .meta-item div:first-child{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .meta-item div:last-child{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.web{ background: rgba(var(--theme-accent-rgb), .12); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.telegram{ background: rgba(var(--rx-info-rgb), 0.12); color: #0369a1; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .ch-badge.bale{ background: rgba(var(--rx-warning-rgb), 0.12); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.user .bubble{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .bubble-row.bot .bubble{ background: var(--theme-surface-2); color: var(--theme-text); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .bubble-time{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .bubble-rating.up{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .bubble-rating.down{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-block,html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .debug-block-content{ background: var(--theme-surface-2); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .debug-block-content{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .debug-block summary{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-block summary{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip{ background: var(--theme-surface); border-color: var(--theme-border-soft); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip strong{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.error{ color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); background: rgba(var(--rx-danger-rgb), 0.08); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.cache{ color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); background: rgba(var(--rx-success-rgb), 0.1); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .trace-chip.cost{ color: var(--rx-warning); border-color: rgba(var(--rx-warning-rgb), 0.3); background: rgba(var(--rx-warning-rgb), 0.1); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .stage-name{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .stage-ms{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .stage-bar-track{ background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .stage-bar-fill{ background: linear-gradient(90deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Details"] .empty-state{ color: var(--theme-muted); }



/* Page stylesheet: /Admin/ChatSessions/Index */
body[data-style-page="/Admin/ChatSessions/Index"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/ChatSessions/Index"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-container{ max-width: 1400px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/ChatSessions/Index"] .page-header{
        display: flex; align-items: center; justify-content: space-between;
        margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content h1{
        font-size: 2.25rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 0.5rem 0;
        display: flex; align-items: center; gap: 0.75rem;
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content p{ color: var(--rx-ink-soft); margin: 0; font-size: 1rem; }body[data-style-page="/Admin/ChatSessions/Index"] .total-badge{
        background: rgba(var(--rx-contrast-rgb), 0.08); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        padding: 0.6rem 1.25rem; border-radius: 30px; color: var(--rx-ink); font-weight: 700; font-size: 0.95rem;
    }body[data-style-page="/Admin/ChatSessions/Index"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 24px; overflow: hidden; margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/ChatSessions/Index"] .card-header-row{ padding: 1.25rem 1.75rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/ChatSessions/Index"] .card-title{ display: flex; align-items: center; gap: 0.75rem; color: var(--rx-ink); font-size: 1.1rem; font-weight: 800; margin: 0; }body[data-style-page="/Admin/ChatSessions/Index"] .card-title i{
        font-size: 1.2rem; background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }body[data-style-page="/Admin/ChatSessions/Index"] .card-body{ padding: 1.5rem 1.75rem; }body[data-style-page="/Admin/ChatSessions/Index"] .filters-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; align-items: end; }body[data-style-page="/Admin/ChatSessions/Index"] .filter-group{ display: flex; flex-direction: column; gap: 0.5rem; }body[data-style-page="/Admin/ChatSessions/Index"] .filter-label{ color: var(--rx-ink-soft); font-size: 0.85rem; font-weight: 600; }body[data-style-page="/Admin/ChatSessions/Index"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px; padding: 0.7rem 1rem; font-size: 0.9rem; color: var(--rx-ink); width: 100%; transition: all 0.3s ease;
    }body[data-style-page="/Admin/ChatSessions/Index"] .form-control::placeholder{ color: var(--rx-faint); }body[data-style-page="/Admin/ChatSessions/Index"] .form-control:focus{
        outline: none; border-color: var(--rx-accent); box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15); background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/ChatSessions/Index"] .filter-buttons{ display: flex; gap: 0.75rem; }body[data-style-page="/Admin/ChatSessions/Index"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); border: none; border-radius: 12px;
        padding: 0.7rem 1.25rem; color: var(--rx-on-brand); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease;
    }body[data-style-page="/Admin/ChatSessions/Index"] .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Admin/ChatSessions/Index"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15); border-radius: 12px;
        padding: 0.7rem 1.25rem; color: var(--rx-ink-soft); font-weight: 600; font-size: 0.9rem;
        text-decoration: none; transition: all 0.3s ease;
    }body[data-style-page="/Admin/ChatSessions/Index"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/Admin/ChatSessions/Index"] .table-card .card-body{ padding: 0; }body[data-style-page="/Admin/ChatSessions/Index"] .table-wrapper{ overflow-x: auto; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table{ width: 100%; border-collapse: collapse; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table th{
        background: rgba(var(--rx-contrast-rgb), 0.03); padding: 1rem 1.25rem; text-align: right;
        color: var(--rx-ink-soft); font-weight: 700; font-size: 0.85rem;
        text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td{
        padding: 1rem 1.25rem; color: var(--rx-ink); font-size: 0.95rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05); vertical-align: middle;
    }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row{ cursor: pointer; transition: background .12s; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row:hover{ background: rgba(var(--rx-contrast-rgb), 0.04); }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr:last-child td{ border-bottom: none; }body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.web{ background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); }body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.telegram{ background: rgba(41,169,235,.16); color: var(--rx-info); }body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.bale{ background: rgba(var(--rx-warning-rgb), 0.16); color: var(--rx-warning); }body[data-style-page="/Admin/ChatSessions/Index"] .kb-link{ color: var(--rx-accent); text-decoration: none; font-weight: 700; }body[data-style-page="/Admin/ChatSessions/Index"] .kb-link:hover{ color: var(--rx-accent); text-decoration: underline; }body[data-style-page="/Admin/ChatSessions/Index"] .kb-slug{ color: var(--rx-muted); font-size: .78rem; direction: ltr; text-align: right; display: block; }body[data-style-page="/Admin/ChatSessions/Index"] .visitor-cell strong{ color: var(--rx-ink); }body[data-style-page="/Admin/ChatSessions/Index"] .visitor-cell div{ color: var(--rx-muted); font-size: .78rem; margin-top: 2px; direction: ltr; text-align: right; }body[data-style-page="/Admin/ChatSessions/Index"] .cost-cell{ color: var(--rx-warning); font-weight: 700; direction: ltr; text-align: right; white-space: nowrap; }body[data-style-page="/Admin/ChatSessions/Index"] .alert{
        display: flex; align-items: flex-start; gap: 0.6rem;
        border-radius: 0.75rem; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-weight: 600;
    }body[data-style-page="/Admin/ChatSessions/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border: 1px solid rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/ChatSessions/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Admin/ChatSessions/Index"] .btn-delete{
        background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger); border-radius: 10px; padding: .4rem .7rem; cursor: pointer;
        font-size: .85rem; font-weight: 700; transition: all .2s ease; white-space: nowrap;
    }body[data-style-page="/Admin/ChatSessions/Index"] .btn-delete:hover{ background: rgba(var(--rx-danger-rgb), 0.22); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.55); }body[data-style-page="/Admin/ChatSessions/Index"] .empty-state{ text-align: center; padding: 3rem; color: var(--rx-muted); }body[data-style-page="/Admin/ChatSessions/Index"] .empty-state i{ font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }body[data-style-page="/Admin/ChatSessions/Index"] .pagination-wrapper{
        display: flex; flex-direction: column; align-items: center; gap: 1rem;
        padding: 1.25rem; background: rgba(var(--rx-contrast-rgb), 0.02); border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Admin/ChatSessions/Index"] .pagination{ display: flex; align-items: center; gap: 0.5rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }body[data-style-page="/Admin/ChatSessions/Index"] .page-link{
        display: flex; align-items: center; gap: 0.3rem; background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink-soft); padding: 0.5rem 0.75rem;
        border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.2s ease;
        min-width: 40px; justify-content: center;
    }body[data-style-page="/Admin/ChatSessions/Index"] a.page-link:hover{ background: rgba(var(--rx-accent-rgb), 0.2); border-color: rgba(var(--rx-accent-rgb), 0.4); color: var(--rx-ink); transform: translateY(-1px); }body[data-style-page="/Admin/ChatSessions/Index"] .page-item.active .page-link{
        background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%); border-color: var(--rx-accent); color: var(--rx-on-brand);
        box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/ChatSessions/Index"] .page-item.disabled .page-link{ opacity: 0.4; cursor: not-allowed; pointer-events: none; background: rgba(var(--rx-contrast-rgb), 0.02); }body[data-style-page="/Admin/ChatSessions/Index"] .page-info-text{ color: var(--rx-muted); font-size: 0.85rem; }

    @media (max-width: 768px) {body[data-style-page="/Admin/ChatSessions/Index"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/ChatSessions/Index"] .page-header{ flex-direction: column; align-items: flex-start; }body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content h1{ font-size: 1.75rem; }body[data-style-page="/Admin/ChatSessions/Index"] .filters-grid{ grid-template-columns: 1fr; }body[data-style-page="/Admin/ChatSessions/Index"] .filter-buttons{ flex-direction: column; }body[data-style-page="/Admin/ChatSessions/Index"] .filter-buttons .btn-primary,body[data-style-page="/Admin/ChatSessions/Index"] .filter-buttons .btn-secondary{ width: 100%; justify-content: center; display: flex; min-height: 44px; box-sizing: border-box; }body[data-style-page="/Admin/ChatSessions/Index"] .card-header-row{ padding: 1rem 1.25rem; }body[data-style-page="/Admin/ChatSessions/Index"] .card-body{ padding: 1.25rem; }body[data-style-page="/Admin/ChatSessions/Index"] .table-wrapper{ overflow-x: visible; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table{ min-width: 0; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table thead{ display: none; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table,body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody,body[data-style-page="/Admin/ChatSessions/Index"] .data-table tr,body[data-style-page="/Admin/ChatSessions/Index"] .data-table td{ display: block; width: 100%; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row{
            background: rgba(var(--rx-contrast-rgb), 0.04);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 16px;
            padding: 0.5rem 1rem;
            margin-bottom: 1rem;
        }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr:last-child td{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05); }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row:last-child{ margin-bottom: 0; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row td:last-child{ border-bottom: none; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td{
            display: flex; align-items: center; justify-content: space-between; gap: 1rem;
            padding: 0.65rem 0; text-align: left;
        }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td::before{
            content: attr(data-label);
            color: var(--rx-muted); font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
        }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td .cell-stack{
            display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0;
        }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td.visitor-cell{ align-items: flex-start; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td.visitor-cell strong,body[data-style-page="/Admin/ChatSessions/Index"] .data-table td.visitor-cell div{ text-align: left; }body[data-style-page="/Admin/ChatSessions/Index"] .data-table td .kb-slug{ text-align: left; }body[data-style-page="/Admin/ChatSessions/Index"] td:has(.empty-state){
            display: block !important; text-align: center;
        }body[data-style-page="/Admin/ChatSessions/Index"] td:has(.empty-state)::before{ content: none; }body[data-style-page="/Admin/ChatSessions/Index"] .pagination{ gap: 0.3rem; }body[data-style-page="/Admin/ChatSessions/Index"] .page-link{ padding: 0.4rem 0.5rem; font-size: 0.8rem; min-width: 35px; }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content h1{ font-size: 1.4rem; }body[data-style-page="/Admin/ChatSessions/Index"] .page-header-content p{ font-size: 0.85rem; }body[data-style-page="/Admin/ChatSessions/Index"] .total-badge{ font-size: 0.85rem; padding: 0.5rem 1rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ChatSessions/Index"])) .total-badge{ background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .total-badge i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .card-header-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .btn-secondary{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .data-table th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.web{ background: rgba(var(--theme-accent-rgb), .12); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.telegram{ background: rgba(var(--rx-info-rgb), 0.12); color: #0369a1; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .ch-badge.bale{ background: rgba(var(--rx-warning-rgb), 0.12); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .kb-link,html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .kb-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .visitor-cell div{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .cost-cell{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .btn-delete{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .btn-delete:hover{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .pagination-wrapper{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .page-info-text{ color: var(--theme-muted); }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .data-table tbody tr.session-row{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ChatSessions/Index"] .data-table td::before{ color: var(--theme-muted); }
    }



/* Page stylesheet: /Admin/ContentLimits */
body[data-style-page="/Admin/ContentLimits"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/ContentLimits"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/ContentLimits"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/ContentLimits"] .page-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/ContentLimits"] .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/ContentLimits"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/ContentLimits"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/ContentLimits"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/ContentLimits"] .alert-modern{
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 600;
        border: 1px solid transparent;
    }body[data-style-page="/Admin/ContentLimits"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/ContentLimits"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/ContentLimits"] .alert-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/ContentLimits"] .alert-warning{
        background: rgba(var(--rx-warning-rgb), 0.15);
        border-color: rgba(var(--rx-warning-rgb), 0.3);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/ContentLimits"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        padding: 2rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/ContentLimits"] .card-title{
        color: var(--rx-ink);
        font-weight: 800;
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/ContentLimits"] .card-title i{
        color: var(--rx-accent);
    }body[data-style-page="/Admin/ContentLimits"] .form-row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    @media (max-width: 700px) {body[data-style-page="/Admin/ContentLimits"] .form-row{ grid-template-columns: 1fr; }
    }body[data-style-page="/Admin/ContentLimits"] .form-group{ margin-bottom: 1.5rem; }body[data-style-page="/Admin/ContentLimits"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: .95rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Admin/ContentLimits"] .form-label i{ color: var(--rx-accent); font-size: 1.05rem; }body[data-style-page="/Admin/ContentLimits"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: .85rem 1.1rem;
        font-size: 1rem;
        color: var(--rx-ink);
        transition: all 0.3s ease;
        width: 100%;
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/ContentLimits"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/ContentLimits"] .form-text{
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--rx-muted);
        font-size: 0.82rem;
        margin-top: 0.5rem;
    }body[data-style-page="/Admin/ContentLimits"] .last-updated{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Admin/ContentLimits"] .last-updated-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/ContentLimits"] .last-updated-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        direction: ltr;
    }body[data-style-page="/Admin/ContentLimits"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/ContentLimits"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/ContentLimits"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/ContentLimits"] .page-header{ margin-bottom: 1.25rem; }body[data-style-page="/Admin/ContentLimits"] .header-left h1{ font-size: 1.5rem; gap: 0.5rem; }body[data-style-page="/Admin/ContentLimits"] .header-left p{ font-size: 0.85rem; }body[data-style-page="/Admin/ContentLimits"] .alert-modern{
            padding: 1rem;
            border-radius: 12px;
            gap: 0.75rem;
        }body[data-style-page="/Admin/ContentLimits"] .glass-card{
            padding: 1.25rem;
            border-radius: 16px;
            margin-bottom: 1rem;
        }body[data-style-page="/Admin/ContentLimits"] .card-title{ font-size: 1.05rem; margin-bottom: 1.1rem; }body[data-style-page="/Admin/ContentLimits"] .form-group{ margin-bottom: 1.1rem; }body[data-style-page="/Admin/ContentLimits"] .form-group[style*="max-width"]{ max-width: 100% !important; }body[data-style-page="/Admin/ContentLimits"] .form-control{
            padding: .8rem 1rem;
            min-height: 44px;
            font-size: 1rem;
        }body[data-style-page="/Admin/ContentLimits"] .last-updated{
            flex-direction: column;
            align-items: flex-start;
            gap: 0.4rem;
            padding: 0.9rem 1.1rem;
        }body[data-style-page="/Admin/ContentLimits"] .btn-primary{
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1.5rem;
            min-height: 48px;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/ContentLimits"] .header-left h1{ font-size: 1.3rem; }body[data-style-page="/Admin/ContentLimits"] .glass-card{ padding: 1rem; border-radius: 14px; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ContentLimits"])) .header-left h1 i{ background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ContentLimits"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ContentLimits"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ContentLimits"])) .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ContentLimits"] .form-label i{ color: var(--theme-accent-strong); }



/* Page stylesheet: /Admin/Dashboard */
body[data-style-page="/Admin/Dashboard"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/Dashboard"] .dash,body[data-style-page="/Admin/Dashboard"] .dash *,body[data-style-page="/Admin/Dashboard"] .dash *::before,body[data-style-page="/Admin/Dashboard"] .dash *::after{ box-sizing: border-box; }body[data-style-page="/Admin/Dashboard"] .dash{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
        overflow-x: hidden;
    }body[data-style-page="/Admin/Dashboard"] .dash::before{
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 380px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Dashboard"] .dash-inner{ max-width: 1500px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/Dashboard"] .dash-head{ margin-bottom: 1.75rem; }body[data-style-page="/Admin/Dashboard"] .dash-head h1{
        font-size: 2.1rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 .4rem;
        display: flex; align-items: center; gap: .7rem;
    }body[data-style-page="/Admin/Dashboard"] .dash-head h1 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Dashboard"] .dash-head p{ color: var(--rx-muted); margin: 0; font-size: .92rem; }body[data-style-page="/Admin/Dashboard"] /* ---- health strip ---- */
    .health-strip{
        display: flex; flex-wrap: wrap; gap: .6rem;
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: .9rem; padding: .9rem 1.1rem; margin-bottom: 1.5rem;
        backdrop-filter: blur(12px);
    }body[data-style-page="/Admin/Dashboard"] .hchip{
        display: inline-flex; align-items: center; gap: .4rem;
        font-size: .82rem; font-weight: 700;
        padding: .35rem .8rem; border-radius: 999px;
        background: rgba(var(--rx-surface-rgb), 0.6); color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/Dashboard"] .hdot{ width: .55rem; height: .55rem; border-radius: 50%; flex: 0 0 auto; }body[data-style-page="/Admin/Dashboard"] .hdot.ok{ background: var(--rx-success-fill); box-shadow: 0 0 8px rgba(var(--rx-success-rgb), 0.7); }body[data-style-page="/Admin/Dashboard"] .hdot.bad{ background: var(--rx-danger-fill); box-shadow: 0 0 8px rgba(var(--rx-danger-rgb), 0.7); }body[data-style-page="/Admin/Dashboard"] .hchip.bad{ background: rgba(var(--rx-danger-rgb), 0.14); color: var(--rx-danger); }body[data-style-page="/Admin/Dashboard"] /* ---- KPI grid ---- */
    .kpis{
        display: grid; gap: 1rem; margin-bottom: 1.5rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    @media (max-width: 900px) {body[data-style-page="/Admin/Dashboard"] .kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 520px) {body[data-style-page="/Admin/Dashboard"] .kpis{ grid-template-columns: minmax(0, 1fr); }
    }body[data-style-page="/Admin/Dashboard"] .kpi{
        box-sizing: border-box;
        min-width: 0;
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1.1rem; padding: 1.15rem 1.25rem;
        backdrop-filter: blur(12px);
        position: relative; overflow: hidden;
        transition: box-shadow .2s, transform .2s;
    }body[data-style-page="/Admin/Dashboard"] .kpi::after{
        content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
        background: var(--accent, #0f766e); opacity: .8;
    }body[data-style-page="/Admin/Dashboard"] .kpi:hover{
        box-shadow: 0 10px 24px rgba(var(--rx-contrast-rgb), 0.12);
        transform: translateY(-1px);
    }body[data-style-page="/Admin/Dashboard"] .kpi-label{
        color: var(--rx-muted); font-size: .8rem; font-weight: 700;
        display: flex; align-items: center; gap: .4rem; margin-bottom: .55rem;
    }body[data-style-page="/Admin/Dashboard"] .kpi-label i{
        display: inline-flex; align-items: center; justify-content: center;
        width: 1.7rem; height: 1.7rem; border-radius: .6rem;
        background: color-mix(in srgb, var(--accent, #2dd4bf) 15%, transparent);
        color: var(--accent, #2dd4bf); font-size: .85rem; flex: 0 0 auto;
    }body[data-style-page="/Admin/Dashboard"] .kpi-value{ color: var(--rx-ink); font-size: 1.75rem; font-weight: 900; line-height: 1.1; }body[data-style-page="/Admin/Dashboard"] .kpi-sub{ color: var(--rx-muted); font-size: .78rem; font-weight: 600; margin-top: .35rem; }body[data-style-page="/Admin/Dashboard"] .kpi-sub.up{ color: var(--rx-success); }body[data-style-page="/Admin/Dashboard"] .kpi-sub.down{ color: var(--rx-danger); }body[data-style-page="/Admin/Dashboard"] /* ---- section ---- */
    .section{ margin-bottom: 1.5rem; }body[data-style-page="/Admin/Dashboard"] .section-title{
        color: var(--rx-ink); font-size: 1.05rem; font-weight: 800;
        margin: 0 0 .85rem; display: flex; align-items: center; gap: .5rem;
    }body[data-style-page="/Admin/Dashboard"] .section-title i{ color: var(--rx-accent); }body[data-style-page="/Admin/Dashboard"] .section-title .count{
        background: rgba(var(--rx-accent-rgb), 0.18); color: var(--rx-accent);
        font-size: .75rem; padding: .1rem .45rem; border-radius: .35rem;
    }body[data-style-page="/Admin/Dashboard"] .grid-2{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }body[data-style-page="/Admin/Dashboard"] .grid-3{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }body[data-style-page="/Admin/Dashboard"] .card{
        background: rgba(var(--rx-surface-rgb), 0.7);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
        border-radius: 1.1rem; backdrop-filter: blur(12px); overflow: hidden;
    }body[data-style-page="/Admin/Dashboard"] .card-head{
        padding: .95rem 1.15rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    }body[data-style-page="/Admin/Dashboard"] .card-head h3{
        margin: 0; color: var(--rx-ink); font-size: .93rem; font-weight: 800;
        display: flex; align-items: center; gap: .45rem;
    }body[data-style-page="/Admin/Dashboard"] .card-head h3 i{ color: var(--rx-accent); }body[data-style-page="/Admin/Dashboard"] .card-head a{ color: var(--rx-accent); font-size: .8rem; text-decoration: none; font-weight: 700; }body[data-style-page="/Admin/Dashboard"] .card-head a:hover{ color: var(--rx-accent); }body[data-style-page="/Admin/Dashboard"] .card-body{ padding: 1.15rem; }body[data-style-page="/Admin/Dashboard"] .chart-box{ padding: 1.15rem; height: 320px; position: relative; width: 100%; min-width: 0; }body[data-style-page="/Admin/Dashboard"] /* ---- tables ---- */
    .t-wrap{ overflow-x: auto; }body[data-style-page="/Admin/Dashboard"] table{ width: 100%; border-collapse: collapse; }body[data-style-page="/Admin/Dashboard"] thead th{
        background: rgba(var(--rx-surface-rgb), 0.6); color: var(--rx-muted);
        font-size: .74rem; font-weight: 800; text-align: right;
        padding: .65rem .9rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.098);
        white-space: nowrap;
    }body[data-style-page="/Admin/Dashboard"] tbody td{
        padding: .7rem .9rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.049);
        color: var(--rx-ink); font-size: .85rem; vertical-align: middle;
    }body[data-style-page="/Admin/Dashboard"] tbody tr:last-child td{ border-bottom: none; }body[data-style-page="/Admin/Dashboard"] tbody tr:hover{ background: rgba(var(--rx-accent-rgb), 0.06); }body[data-style-page="/Admin/Dashboard"] .strong{ font-weight: 800; color: var(--rx-ink); }body[data-style-page="/Admin/Dashboard"] .muted{ color: var(--rx-muted); font-size: .78rem; }body[data-style-page="/Admin/Dashboard"] .ltr{ direction: ltr; text-align: right; font-size: .78rem; color: var(--rx-muted); }body[data-style-page="/Admin/Dashboard"] .mono{
        font-family: var(--rx-font-mono); font-size: .76rem; color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.12); padding: .1rem .4rem; border-radius: .3rem;
        display: inline-block; direction: ltr;
    }body[data-style-page="/Admin/Dashboard"] .num-cell{ font-weight: 800; }body[data-style-page="/Admin/Dashboard"] .pill{
        display: inline-block; padding: .15rem .5rem; border-radius: .35rem;
        font-size: .72rem; font-weight: 800; white-space: nowrap;
    }body[data-style-page="/Admin/Dashboard"] .pill-ok{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/Dashboard"] .pill-warn{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); }body[data-style-page="/Admin/Dashboard"] .pill-bad{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/Admin/Dashboard"] .pill-info{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); }body[data-style-page="/Admin/Dashboard"] /* ---- quality bar ---- */
    .qbar{
        display: flex; height: .7rem; border-radius: .35rem; overflow: hidden;
        background: rgba(var(--rx-surface-rgb), 0.7); margin: .75rem 0 .5rem;
    }body[data-style-page="/Admin/Dashboard"] .qbar span{ display: block; height: 100%; }body[data-style-page="/Admin/Dashboard"] .qbar .pos{ background: linear-gradient(90deg,var(--rx-success-fill),var(--rx-success-fill)); }body[data-style-page="/Admin/Dashboard"] .qbar .neg{ background: linear-gradient(90deg,var(--rx-danger-fill),var(--rx-danger-fill)); }body[data-style-page="/Admin/Dashboard"] .qlegend{ display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; }body[data-style-page="/Admin/Dashboard"] .qlegend .pos{ color: var(--rx-success); }body[data-style-page="/Admin/Dashboard"] .qlegend .neg{ color: var(--rx-danger); }body[data-style-page="/Admin/Dashboard"] .stat-row{
        display: flex; justify-content: space-between; align-items: center;
        padding: .6rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.049);
        font-size: .85rem;
    }body[data-style-page="/Admin/Dashboard"] .stat-row:last-child{ border-bottom: none; }body[data-style-page="/Admin/Dashboard"] .stat-row .k{ color: var(--rx-muted); font-weight: 600; }body[data-style-page="/Admin/Dashboard"] .stat-row .v{ font-weight: 800; color: var(--rx-ink); }body[data-style-page="/Admin/Dashboard"] .empty{ text-align: center; padding: 2rem 1rem; color: var(--rx-muted); font-size: .85rem; }body[data-style-page="/Admin/Dashboard"] .empty i{ display: block; font-size: 1.9rem; margin-bottom: .5rem; opacity: .45; }body[data-style-page="/Admin/Dashboard"] .err-msg{
        color: var(--rx-ink-soft); font-size: .8rem; max-width: 460px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right;
    }

    @media (max-width: 640px) {body[data-style-page="/Admin/Dashboard"] .dash{ padding: 1rem; }body[data-style-page="/Admin/Dashboard"] .grid-2,body[data-style-page="/Admin/Dashboard"] .grid-3{ grid-template-columns: 1fr; }
    }body[data-style-page="/Admin/Dashboard"] /* ---- responsive: table -> card list ---- */
    @media (max-width: 768px){
        .dash-head h1 { font-size: 1.5rem; }
        .dash-head p { font-size: .85rem; }

        .health-strip { padding: .75rem .85rem; gap: .5rem; }
        .hchip { font-size: .78rem; padding: .3rem .6rem; }

        .card-head { padding: .85rem 1rem; flex-wrap: wrap; }
        .card-body { padding: 1rem; }
        .chart-box { height: 240px; padding: .85rem .5rem .85rem 1rem; }

        .section-title { font-size: .98rem; }

        .t-wrap table,
        .t-wrap thead,
        .t-wrap tbody,
        .t-wrap th,
        .t-wrap td,
        .t-wrap tr {
            display: block;
        }

        .t-wrap thead { display: none; }

        .t-wrap tbody tr {
            background: rgba(var(--rx-surface-rgb), 0.55);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.098);
            border-radius: .7rem;
            padding: .6rem .8rem;
            margin-bottom: .65rem;
        }
        .t-wrap tbody tr:last-child { margin-bottom: 0; }
        .t-wrap tbody tr:hover { background: rgba(var(--rx-accent-rgb), 0.08); }

        .t-wrap tbody td {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: .75rem;
            padding: .4rem 0;
            border-bottom: 1px dashed rgba(var(--rx-contrast-rgb), 0.084);
            text-align: left;
        }
        .t-wrap tbody td:last-child { border-bottom: none; }

        .t-wrap tbody td[data-label]::before {
            content: attr(data-label);
            color: var(--rx-muted);
            font-size: .74rem;
            font-weight: 700;
            flex: 0 0 auto;
        }

        /* cells whose value is itself a label/name block (no data-label) stay full-width */
        .t-wrap tbody td:not([data-label]) { justify-content: flex-start; }

        .t-wrap .err-msg { max-width: none; white-space: normal; text-align: left; }
        .t-wrap .ltr { text-align: left; }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/Dashboard"] .kpi-value{ font-size: 1.45rem; }body[data-style-page="/Admin/Dashboard"] .kpi{ padding: 1rem; }body[data-style-page="/Admin/Dashboard"] .card-head h3{ font-size: .88rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Dashboard"])) .dash-head h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .card-head h3 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .health-strip,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .kpi{
        background: var(--theme-surface);
        border-color: var(--theme-border-soft);
        box-shadow: var(--theme-shadow);
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .hchip.bad{ background: rgba(var(--rx-danger-rgb), 0.08) !important; color: var(--rx-danger) !important; border-color: rgba(var(--rx-danger-rgb), 0.3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .hdot.ok{ background: var(--rx-success-fill); box-shadow: 0 0 6px rgba(var(--rx-success-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .hdot.bad{ background: var(--rx-danger-fill); box-shadow: 0 0 6px rgba(var(--rx-danger-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .kpi-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .kpi-sub{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .kpi-sub.up{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .kpi-sub.down{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .card-head a,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .card-head a:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] thead th{ background: var(--theme-surface-2); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .strong,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .stat-row .v{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .ltr,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .stat-row .k{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .stat-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .mono{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .1); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .pill-ok{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .pill-warn{ background: rgba(var(--rx-warning-rgb), 0.1); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .pill-bad{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .pill-info{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .qbar{ background: var(--theme-surface-3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .qlegend .pos{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .qlegend .neg{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .err-msg{ color: var(--theme-text-2); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Dashboard"])) .admin-content [style*="color:#fca5a5"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content [style*="color:#6ee7b7"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content [style*="color:#fcd34d"]{ color: #b45309 !important; }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .t-wrap tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .t-wrap tbody td[data-label]::before{ color: var(--theme-muted); }
    }




/* Status-driven values */
body[data-style-page="/Admin/Dashboard"] .kpi.is-profitable { --accent: var(--rx-success); }
body[data-style-page="/Admin/Dashboard"] .kpi.is-loss { --accent: var(--rx-danger); }
body[data-style-page="/Admin/Dashboard"] .stat-row .v.has-errors { color: var(--rx-danger); }
body[data-style-page="/Admin/Dashboard"] .stat-row .v.is-healthy { color: var(--rx-success); }
/* Page stylesheet: /Admin/DefaultPolicies/Create */
body[data-style-page="/Admin/DefaultPolicies/Create"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-container{
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Header */
    .page-header{
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Layout */
    .content-grid{
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        align-items: start;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-title i{
        font-size: 1.25rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-body{
        padding: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Form */
    .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-label{
        display: block;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-label .required{
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 0.9rem 1.15rem;
        font-size: 1rem;
        color: var(--rx-ink);
        width: 100%;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] textarea.form-control{
        resize: vertical;
        min-height: 100px;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .text-danger{
        color: var(--rx-danger) !important;
        font-size: 0.85rem;
        margin-top: 0.35rem;
        display: block;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Checkbox */
    .form-check{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check-input{
        width: 22px;
        height: 22px;
        margin: 0;
        background: rgba(var(--rx-contrast-rgb), 0.1);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.2);
        border-radius: 6px;
        cursor: pointer;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check-input:checked{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border-color: transparent;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        cursor: pointer;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Buttons */
    .btn-group{
        display: flex;
        gap: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] /* Info Card */
    .info-card{
        background: rgba(var(--rx-accent-rgb), 0.1);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-card .card-header-row{
        border-bottom-color: rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-card .card-title i{
        background: none;
        -webkit-text-fill-color: var(--rx-accent);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-card h5{
        color: var(--rx-ink);
        font-weight: 700;
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-card p{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-list{
        list-style: none;
        padding: 0;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-list li{
        color: var(--rx-ink-soft);
        padding: 0.5rem 0;
        font-size: 0.85rem;
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-list li i{
        color: var(--rx-accent);
        margin-top: 0.15rem;
    }body[data-style-page="/Admin/DefaultPolicies/Create"] .info-list li strong{
        color: var(--rx-ink-soft);
    }

    @media (max-width: 900px) {body[data-style-page="/Admin/DefaultPolicies/Create"] .content-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header h1{
            font-size: 1.75rem;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/DefaultPolicies/Create"] .page-wrapper{
            padding: 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header h1{
            font-size: 1.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-header-row{
            padding: 1.25rem 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-control{
            padding: 0.85rem 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-primary,body[data-style-page="/Admin/DefaultPolicies/Create"] .btn-secondary{
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1.5rem;
            min-height: 44px;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check{
            padding: 0.9rem 1rem;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header h1{
            font-size: 1.3rem;
            gap: 0.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .page-header p{
            font-size: 0.9rem;
        }body[data-style-page="/Admin/DefaultPolicies/Create"] .card-title{
            font-size: 1.05rem;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Create"])) .page-header h1 i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important; -webkit-background-clip: text !important; background-clip: text !important; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Create"])) .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Create"] .form-label .required,html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Create"] .form-group .text-danger{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Create"] .form-check-input:not(:checked){ background: var(--theme-input); border-color: rgba(15, 23, 42, .28); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Create"] .info-list li i{ color: var(--theme-accent-strong); }



/* Page stylesheet: /Admin/DefaultPolicies/Delete */
body[data-style-page="/Admin/DefaultPolicies/Delete"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.15), rgba(220, 38, 127, 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-container{
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Header */
    .page-header{
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header h1 i{
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Layout */
    .content-grid{
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        align-items: start;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-title i{
        font-size: 1.25rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-body{
        padding: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Danger Card */
    .danger-card{
        border: 1px solid rgba(var(--rx-danger-rgb), 0.4);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .danger-card .card-header-row{
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.2), rgba(220, 38, 127, 0.1));
        border-bottom-color: rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .danger-card .card-title i{
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Alert */
    .alert-box{
        background: rgba(var(--rx-warning-rgb), 0.1);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .alert-box i{
        color: var(--rx-warning);
        font-size: 1.25rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .alert-box span{
        color: var(--rx-ink-soft);
        font-size: 0.95rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .alert-box strong{
        color: var(--rx-warning);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Policy Details */
    .policy-details{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        overflow: hidden;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header-title{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header-title i{
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .status-badge{
        padding: 0.35rem 0.85rem;
        border-radius: 30px;
        font-size: 0.8rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .badge-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .badge-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.105);
        color: var(--rx-muted);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-body{
        padding: 1.25rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-row{
        display: flex;
        gap: 1rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-row:last-child{
        border-bottom: none;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-label{
        width: 120px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-muted);
        font-size: 0.9rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-value{
        flex: 1;
        color: var(--rx-ink);
        font-size: 0.95rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-value code{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
        padding: 0.25rem 0.6rem;
        border-radius: 6px;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.9rem;
        direction: ltr;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .keywords-text{
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Buttons */
    .btn-group{
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-danger{
        background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill));
        border: none;
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-danger:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-danger-rgb), 0.4);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] /* Info Card */
    .info-card .card-title i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list{
        list-style: none;
        padding: 0;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list li{
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list li:last-child{
        border-bottom: none;
    }body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list li i{
        color: var(--rx-success);
        margin-top: 0.15rem;
    }

    @media (max-width: 900px) {body[data-style-page="/Admin/DefaultPolicies/Delete"] .content-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header h1{
            font-size: 1.75rem;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header h1{
            font-size: 1.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-header-row{
            padding: 1.1rem 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-row{
            flex-direction: column;
            gap: 0.35rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-label{
            width: auto;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-danger,body[data-style-page="/Admin/DefaultPolicies/Delete"] .btn-secondary{
            width: 100%;
            justify-content: center;
            padding: 0.95rem 1.25rem;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/DefaultPolicies/Delete"] .page-header h1{
            font-size: 1.3rem;
            gap: 0.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Delete"] .alert-box{
            flex-direction: column;
            align-items: flex-start;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Delete"])) .page-header h1 i{ background: none !important; color: var(--rx-danger); -webkit-text-fill-color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .glass-card.danger-card{ border-color: rgba(var(--rx-danger-rgb), 0.35) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .danger-card .card-header-row{ border-bottom-color: rgba(var(--rx-danger-rgb), 0.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .danger-card .card-title i{ -webkit-text-fill-color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-card .card-title i{ background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .alert-box i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-details{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header{ background: var(--theme-surface-3); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .policy-header-title i{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .status-badge.badge-secondary{ background: var(--theme-surface); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .detail-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list li{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Delete"] .info-list li i{ color: var(--rx-success); }



/* Page stylesheet: /Admin/DefaultPolicies/Edit */
body[data-style-page="/Admin/DefaultPolicies/Edit"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-container{
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Header */
    .page-header{
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Layout */
    .content-grid{
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        align-items: start;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-title i{
        font-size: 1.25rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-body{
        padding: 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Form */
    .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-label{
        display: block;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-label .required{
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 0.9rem 1.15rem;
        font-size: 1rem;
        color: var(--rx-ink);
        width: 100%;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] textarea.form-control{
        resize: vertical;
        min-height: 100px;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .text-danger{
        color: var(--rx-danger) !important;
        font-size: 0.85rem;
        margin-top: 0.35rem;
        display: block;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Checkbox */
    .form-check{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.25rem;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check-input{
        width: 22px;
        height: 22px;
        margin: 0;
        background: rgba(var(--rx-contrast-rgb), 0.1);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.2);
        border-radius: 6px;
        cursor: pointer;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check-input:checked{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border-color: transparent;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        cursor: pointer;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Buttons */
    .btn-group{
        display: flex;
        gap: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] /* Warning Card */
    .warning-card{
        background: rgba(var(--rx-warning-rgb), 0.1);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card .card-header-row{
        border-bottom-color: rgba(var(--rx-warning-rgb), 0.2);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card .card-title i{
        background: none;
        -webkit-text-fill-color: var(--rx-warning);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card p{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.7;
    }body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card p strong{
        color: var(--rx-warning);
    }

    @media (max-width: 900px) {body[data-style-page="/Admin/DefaultPolicies/Edit"] .content-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header h1{
            font-size: 1.75rem;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-wrapper{
            padding: 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-header-row{
            padding: 1.15rem 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-primary,body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-secondary{
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header h1{
            font-size: 1.4rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .page-header p{
            font-size: 0.9rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .glass-card{
            border-radius: 16px;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-header-row{
            padding: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-title{
            font-size: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-body{
            padding: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-control{
            padding: 0.8rem 1rem;
            min-height: 44px;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check{
            padding: 0.85rem 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-primary,body[data-style-page="/Admin/DefaultPolicies/Edit"] .btn-secondary{
            padding: 0.9rem 1.25rem;
            min-height: 44px;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Edit"])) .page-header h1 i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important; -webkit-background-clip: text !important; background-clip: text !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-label .required,html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-group .text-danger{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .form-check-input:not(:checked){ background: var(--theme-input); border-color: rgba(15, 23, 42, .28); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Edit"])) .glass-card.warning-card{ border-color: rgba(var(--rx-warning-rgb), 0.4) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card .card-header-row{ background: rgba(var(--rx-warning-rgb), 0.08); border-bottom-color: rgba(var(--rx-warning-rgb), 0.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Edit"] .warning-card .card-title i{ -webkit-text-fill-color: var(--rx-warning) !important; }



/* Page stylesheet: /Admin/DefaultPolicies/Index */
body[data-style-page="/Admin/DefaultPolicies/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .page-container{
        max-width: 1500px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Header */
    .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-add{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 0.9rem 1.75rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.95rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-add:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Alert */
    .info-alert{
        background: rgba(var(--rx-info-rgb), 0.1);
        border: 1px solid rgba(var(--rx-info-rgb), 0.3);
        border-radius: 16px;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-info);
        font-size: 0.9rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .info-alert i{
        font-size: 1.25rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .info-alert strong{
        color: var(--rx-info);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .card-title i{
        font-size: 1.35rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Table */
    .modern-table{
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table thead th{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        color: var(--rx-ink-soft);
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        text-align: right;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr{
        transition: all 0.2s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr:hover{
        background: rgba(var(--rx-contrast-rgb), 0.03);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td{
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        vertical-align: middle;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .policy-key-code{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 8px;
        padding: 0.35rem 0.75rem;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.85rem;
        color: var(--rx-accent);
        direction: ltr;
        display: inline-block;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .keywords-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .status-badge{
        padding: 0.4rem 0.85rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .status-badge.active{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .status-badge.inactive{
        background: rgba(var(--rx-contrast-rgb), 0.08);
        color: var(--rx-muted);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-group{
        display: flex;
        gap: 0.5rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-action{
        padding: 0.45rem 0.85rem;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.8rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-edit{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-edit:hover{
        background: rgba(var(--rx-accent-rgb), 0.25);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-delete{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-delete:hover{
        background: rgba(var(--rx-danger-rgb), 0.25);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Empty State */
    .empty-state{
        text-align: center;
        padding: 4rem 2rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state i{
        font-size: 4rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0.5;
        margin-bottom: 1.5rem;
        display: block;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state h3{
        color: var(--rx-ink);
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state p{
        color: var(--rx-muted);
        margin-bottom: 1.5rem;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/DefaultPolicies/Index"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .header-left h1{
            font-size: 1.75rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .page-header{
            flex-direction: column;
            align-items: flex-start;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-add{
            width: 100%;
            justify-content: center;
            padding: 0.85rem 1.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .card-header-row{
            padding: 1.25rem 1.5rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] /* Table -> cards */
        .modern-table thead{
            display: none;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table,body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody,body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr,body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr{
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 16px;
            padding: 0.5rem 1rem;
            margin: 1rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr:hover{
            background: rgba(var(--rx-contrast-rgb), 0.03);
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
            text-align: left;
            min-width: 0;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td > *:not(.btn-group){
            min-width: 0;
            overflow-wrap: break-word;
            word-break: break-word;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td:last-child{
            border-bottom: none;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-weight: 700;
            font-size: 0.8rem;
            flex-shrink: 0;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td .btn-group{
            width: 100%;
            justify-content: flex-end;
            flex-wrap: wrap;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td .keywords-text{
            text-align: left;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state{
            padding: 3rem 1.25rem;
        }body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state i{
            font-size: 3rem;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Index"])) .header-left h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .card-title i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .empty-state i{
        background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .info-alert{ color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .info-alert strong{ color: var(--rx-accent); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Index"])) .modern-table thead th{ background: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .status-badge.active{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/DefaultPolicies/Index"])) .btn-action.btn-delete{
        background-color: rgba(var(--rx-danger-rgb), 0.08) !important;
        border-color: rgba(var(--rx-danger-rgb), 0.3) !important;
        color: var(--rx-danger) !important;
        -webkit-text-fill-color: var(--rx-danger) !important;
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .btn-action.btn-delete:hover{
        background-color: var(--rx-danger-fill) !important;
        border-color: var(--rx-danger) !important;
        color: var(--rx-on-brand) !important;
        -webkit-text-fill-color: var(--rx-on-brand) !important;
    }
    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/DefaultPolicies/Index"] .modern-table tbody td::before{ color: var(--theme-muted); }
    }



/* Page stylesheet: /Admin/Documents/Index */
body[data-style-page="/Admin/Documents/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Documents/Index"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/Documents/Index"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Documents/Index"] .page-container{
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/Documents/Index"] /* Header */
    .page-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/Documents/Index"] .page-header-content h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Documents/Index"] .page-header-content h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Documents/Index"] .page-header-content p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/Documents/Index"] .total-badge{
        background: rgba(var(--rx-contrast-rgb), 0.08);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        padding: 0.6rem 1.25rem;
        border-radius: 30px;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
    }body[data-style-page="/Admin/Documents/Index"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Documents/Index"] .card-header-row{
        padding: 1.25rem 1.75rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/Documents/Index"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.1rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/Documents/Index"] .card-title i{
        font-size: 1.2rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Documents/Index"] .card-body{
        padding: 1.5rem 1.75rem;
    }body[data-style-page="/Admin/Documents/Index"] /* Filters */
    .filters-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        align-items: end;
    }body[data-style-page="/Admin/Documents/Index"] .filter-group{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Documents/Index"] .filter-label{
        color: var(--rx-ink-soft);
        font-size: 0.85rem;
        font-weight: 600;
    }body[data-style-page="/Admin/Documents/Index"] .form-control,body[data-style-page="/Admin/Documents/Index"] .form-select{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        color: var(--rx-ink);
        width: 100%;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Documents/Index"] .form-select option{
        background: var(--rx-surface);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Documents/Index"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Admin/Documents/Index"] .form-control:focus,body[data-style-page="/Admin/Documents/Index"] .form-select:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/Documents/Index"] .filter-buttons{
        display: flex;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Documents/Index"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 12px;
        padding: 0.7rem 1.25rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Documents/Index"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/Documents/Index"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 12px;
        padding: 0.7rem 1.25rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Documents/Index"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Documents/Index"] /* Table */
    .table-card .card-body{
        padding: 0;
    }body[data-style-page="/Admin/Documents/Index"] /* .glass-card clips with overflow:hidden for its rounded corners, which would cut the last
       column off instead of letting the wrapper scroll to it. */
    .table-card{
        overflow: visible;
    }body[data-style-page="/Admin/Documents/Index"] .table-wrapper{
        overflow-x: auto;
        max-width: 100%;
        border-radius: 0 0 24px 24px;
    }body[data-style-page="/Admin/Documents/Index"] .data-table{
        width: 100%;
        /* 12 columns do not fit a narrow viewport; give the table a floor so columns keep their
           content width and the wrapper scrolls, rather than squeezing the last one away. */
        min-width: 1180px;
        border-collapse: collapse;
    }body[data-style-page="/Admin/Documents/Index"] .data-table th{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        padding: 1rem 1.25rem;
        text-align: right;
        color: var(--rx-ink-soft);
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] .data-table td{
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        vertical-align: middle;
    }body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr:hover{
        background: rgba(var(--rx-contrast-rgb), 0.03);
    }body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr:last-child td{
        border-bottom: none;
    }body[data-style-page="/Admin/Documents/Index"] .doc-title{
        color: var(--rx-ink);
        font-weight: 600;
    }body[data-style-page="/Admin/Documents/Index"] .doc-company{
        color: var(--rx-muted);
        font-size: 0.8rem;
    }body[data-style-page="/Admin/Documents/Index"] .source-badge{
        padding: 0.3rem 0.7rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] .status-badge{
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] .status-pending{
        background: rgba(var(--rx-warning-rgb), 0.15);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/Documents/Index"] .status-processing{
        background: rgba(var(--rx-info-rgb), 0.15);
        color: var(--rx-info);
    }body[data-style-page="/Admin/Documents/Index"] .status-completed{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Documents/Index"] .status-failed{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/Documents/Index"] .flash-message{
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.9rem 1.15rem;
        border-radius: 12px;
        margin-bottom: 1.25rem;
        font-size: 0.9rem;
        font-weight: 600;
        border: 1px solid transparent;
    }body[data-style-page="/Admin/Documents/Index"] .flash-success{
        background: rgba(var(--rx-success-rgb), 0.12);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Documents/Index"] .flash-error{
        background: rgba(var(--rx-danger-rgb), 0.12);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/Documents/Index"] /* The actions column must never be the one the table steals width from: its button has a
       fixed label, so a squeezed column clips the text rather than reflowing it. */
    .data-table th:last-child,body[data-style-page="/Admin/Documents/Index"] .data-table td:last-child{
        width: 1%;
        white-space: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-form{
        margin: 0;
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.4rem 0.85rem;
        border-radius: 8px;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.35);
        background: rgba(var(--rx-accent-rgb), 0.12);
        color: var(--rx-accent);
        font-family: inherit;
        font-size: 0.8rem;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-btn:hover:not(:disabled){
        background: rgba(var(--rx-accent-rgb), 0.25);
        border-color: rgba(var(--rx-accent-rgb), 0.6);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-btn:disabled{
        background: rgba(var(--rx-contrast-rgb), 0.04);
        border-color: rgba(var(--rx-contrast-rgb), 0.08);
        color: var(--rx-muted);
        cursor: not-allowed;
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-btn i{
        font-size: 0.9rem;
        flex-shrink: 0;
    }body[data-style-page="/Admin/Documents/Index"] .reprocess-btn span{
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] /* The icon reads as activity while the row is queued, matching the disabled label. */
    .reprocess-btn:disabled i{
        animation: page72a7ab8aba-reprocess-pulse 1.6s ease-in-out infinite;
    }

    @keyframes page72a7ab8aba-reprocess-pulse {
        0%, 100% { opacity: 0.45; }
        50% { opacity: 1; }
    }body[data-style-page="/Admin/Documents/Index"] .error-text{
        color: var(--rx-danger);
        font-size: 0.8rem;
        max-width: 260px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] .cost-cell{
        color: var(--rx-warning);
        font-weight: 700;
        direction: ltr;
        text-align: right;
        white-space: nowrap;
    }body[data-style-page="/Admin/Documents/Index"] .empty-state{
        text-align: center;
        padding: 3rem;
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Documents/Index"] .empty-state i{
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }body[data-style-page="/Admin/Documents/Index"] /* Pagination */
    .pagination-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem;
        background: rgba(var(--rx-contrast-rgb), 0.02);
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Admin/Documents/Index"] .pagination{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
    }body[data-style-page="/Admin/Documents/Index"] .page-link{
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink-soft);
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        min-width: 40px;
        justify-content: center;
    }body[data-style-page="/Admin/Documents/Index"] a.page-link:hover{
        background: rgba(var(--rx-accent-rgb), 0.2);
        border-color: rgba(var(--rx-accent-rgb), 0.4);
        color: var(--rx-ink);
        transform: translateY(-1px);
    }body[data-style-page="/Admin/Documents/Index"] .page-item.active .page-link{
        background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
        border-color: var(--rx-accent);
        color: var(--rx-on-brand);
        box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/Documents/Index"] .page-item.disabled .page-link{
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
        background: rgba(var(--rx-contrast-rgb), 0.02);
    }body[data-style-page="/Admin/Documents/Index"] .page-info-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Documents/Index"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Documents/Index"] .page-header{
            flex-direction: column;
            align-items: flex-start;
        }body[data-style-page="/Admin/Documents/Index"] .page-header-content h1{
            font-size: 1.5rem;
        }body[data-style-page="/Admin/Documents/Index"] .card-header-row{
            padding: 1rem 1.25rem;
        }body[data-style-page="/Admin/Documents/Index"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/Documents/Index"] .filters-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/Documents/Index"] .filter-buttons{
            flex-direction: column;
        }body[data-style-page="/Admin/Documents/Index"] .btn-primary,body[data-style-page="/Admin/Documents/Index"] .btn-secondary{
            width: 100%;
            justify-content: center;
            padding: 0.75rem 1.25rem;
            min-height: 44px;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }body[data-style-page="/Admin/Documents/Index"] .form-control,body[data-style-page="/Admin/Documents/Index"] .form-select{
            min-height: 44px;
        }body[data-style-page="/Admin/Documents/Index"] /* Table -> Cards */
        .table-wrapper{
            overflow-x: visible;
        }body[data-style-page="/Admin/Documents/Index"] .data-table,body[data-style-page="/Admin/Documents/Index"] .data-table tbody,body[data-style-page="/Admin/Documents/Index"] .data-table tr,body[data-style-page="/Admin/Documents/Index"] .data-table td{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/Documents/Index"] .data-table{
            min-width: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table thead{
            display: none;
        }body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr{
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 16px;
            padding: 0.5rem 1rem;
            margin-bottom: 1rem;
        }body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr:last-child{
            margin-bottom: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            text-align: left;
            padding: 0.65rem 0;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
            white-space: normal;
        }body[data-style-page="/Admin/Documents/Index"] /* Undo the desktop actions-column sizing: stacked cards are full width, and the 1%
           width rule would otherwise collapse the row that holds the button. */
        .data-table td:last-child{
            width: 100%;
            padding-left: 0;
            padding-right: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td:last-child{
            border-bottom: none;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-weight: 700;
            font-size: 0.78rem;
            flex-shrink: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td[data-label="عنوان / نام فایل"]{
            justify-content: flex-start;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.35rem;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td[data-label="تاریخ ثبت"],body[data-style-page="/Admin/Documents/Index"] .data-table td[data-label="آخرین بروزرسانی"],body[data-style-page="/Admin/Documents/Index"] .data-table td[data-label="زمان پردازش"]{
            font-size: 0.8rem;
            color: var(--rx-muted);
        }body[data-style-page="/Admin/Documents/Index"] .error-text{
            max-width: 100%;
            white-space: normal;
            text-overflow: unset;
            overflow: visible;
            text-align: left;
        }body[data-style-page="/Admin/Documents/Index"] .cost-cell{
            text-align: left;
        }body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr:has(.empty-state){
            background: transparent;
            border: none;
            padding: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td:has(.empty-state){
            display: block;
            padding: 0;
        }body[data-style-page="/Admin/Documents/Index"] .data-table td:has(.empty-state)::before{
            content: none;
        }body[data-style-page="/Admin/Documents/Index"] .pagination{
            gap: 0.3rem;
        }body[data-style-page="/Admin/Documents/Index"] .page-link{
            padding: 0.4rem 0.5rem;
            font-size: 0.8rem;
            min-width: 35px;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Documents/Index"])) .total-badge{ background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .total-badge i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .card-header-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .btn-secondary{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .data-table th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .doc-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .doc-company{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .source-badge{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .status-pending{ background: rgba(var(--rx-warning-rgb), 0.1); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .status-processing{ background: rgba(var(--rx-info-rgb), 0.1); color: var(--rx-info); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .status-completed{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .status-failed{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .flash-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .flash-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .error-text{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .cost-cell{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .pagination-wrapper{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .page-info-text{ color: var(--theme-muted); }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .data-table td::before{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Documents/Index"] .data-table tbody tr:has(.empty-state){ background: transparent; border: none; }
    }



/* Page stylesheet: /Admin/EmbeddingConfiguration */
body[data-style-page="/Admin/EmbeddingConfiguration"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/EmbeddingConfiguration"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/EmbeddingConfiguration"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/EmbeddingConfiguration"] .page-container{ max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/EmbeddingConfiguration"] .page-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left h1{ font-size: 2.25rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left h1 i{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left p{ color: var(--rx-ink-soft); margin: 0; font-size: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-modern{ border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; font-weight: 600; border: 1px solid transparent; }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.15); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-error{ background: rgba(var(--rx-danger-rgb), 0.15); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-warning{ background: rgba(var(--rx-warning-rgb), 0.15); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card{ background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1)); border: 1px solid rgba(var(--rx-accent-rgb), 0.4); border-radius: 16px; padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card i{ font-size: 2rem; background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-label{ color: var(--rx-ink-soft); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-value{ color: var(--rx-on-brand); font-weight: 800; font-size: 1.25rem; background: linear-gradient(135deg, var(--rx-brand-bright), var(--rx-brand-bright)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-note{ color: var(--rx-muted); font-size: 0.85rem; margin-top: 0.35rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .glass-card{ background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 24px; padding: 2rem; margin-bottom: 1.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-label{ display: flex; align-items: center; gap: 0.5rem; color: var(--rx-ink); font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-label i{ color: var(--rx-accent); font-size: 1.15rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-control{ background: rgba(var(--rx-contrast-rgb), 0.05); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 14px; padding: 1rem 1.25rem; font-size: 1rem; color: var(--rx-ink); transition: all 0.3s ease; width: 100%; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-control::placeholder{ color: var(--rx-faint); }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-control:focus{ outline: none; border-color: var(--rx-accent); box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15); background: rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-control.ltr-input{ direction: ltr; text-align: left; font-family: var(--rx-font-mono) !important; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-text{ display: flex; align-items: center; gap: 0.4rem; color: var(--rx-muted); font-size: 0.85rem; margin-top: 0.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-text a{ color: var(--rx-accent); text-decoration: none; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-primary{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); border: none; border-radius: 14px; padding: 1rem 2rem; color: var(--rx-on-brand); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; transition: all 0.3s ease; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-secondary{ background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15); border-radius: 14px; padding: 1rem 2rem; color: var(--rx-ink-soft); font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-group{ display: flex; gap: 1rem; margin-top: 2rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-success{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill)); border: none; border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-on-brand); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-success:hover{ transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-primary{ background: rgba(var(--rx-accent-rgb), 0.1); border: 1px solid rgba(var(--rx-accent-rgb), 0.3); border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-accent); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-primary:hover{ background: rgba(var(--rx-accent-rgb), 0.2); transform: translateY(-2px); }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-danger{ background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-danger); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.2); transform: translateY(-2px); }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card{ background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; padding: 1.75rem; transition: all 0.3s ease; position: relative; overflow: hidden; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); transform: translateY(-2px); }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card.active{ border-color: rgba(var(--rx-success-rgb), 0.5); background: rgba(var(--rx-success-rgb), 0.05); }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card.active::before{ content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rx-success-fill), var(--rx-success-fill)); }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header h6{ color: var(--rx-ink); font-weight: 700; font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header h6 i{ color: var(--rx-accent); }body[data-style-page="/Admin/EmbeddingConfiguration"] .badge-active{ background: rgba(var(--rx-success-rgb), 0.2); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Admin/EmbeddingConfiguration"] .badge-inactive{ background: rgba(var(--rx-contrast-rgb), 0.05); color: var(--rx-muted); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail{ display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail i{ color: var(--rx-accent); font-size: 0.95rem; width: 20px; text-align: center; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail .detail-label{ color: var(--rx-muted); font-size: 0.85rem; min-width: 70px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail .detail-value{ color: var(--rx-ink); font-size: 0.9rem; font-family: var(--rx-font-mono); direction: ltr; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions{ display: flex; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.06); }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-meta{ display: flex; align-items: center; gap: 0.5rem; color: var(--rx-muted); font-size: 0.8rem; margin-top: 0.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card{ background: rgba(var(--rx-accent-rgb), 0.1); border: 1px solid rgba(var(--rx-accent-rgb), 0.2); border-radius: 16px; padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card i{ font-size: 1.35rem; color: var(--rx-accent); margin-top: 0.125rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card strong{ color: var(--rx-ink); display: block; margin-bottom: 0.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card span{ color: var(--rx-ink-soft); font-size: 0.9rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .last-updated{ background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 14px; padding: 1rem 1.5rem; margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; }body[data-style-page="/Admin/EmbeddingConfiguration"] .last-updated-label{ color: var(--rx-ink-soft); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .last-updated-value{ color: var(--rx-ink); font-weight: 700; font-size: 0.95rem; direction: ltr; }body[data-style-page="/Admin/EmbeddingConfiguration"] .empty-state{ text-align: center; padding: 3rem 1rem; color: var(--rx-muted); }body[data-style-page="/Admin/EmbeddingConfiguration"] .empty-state i{ font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--rx-faint); }body[data-style-page="/Admin/EmbeddingConfiguration"] .empty-state p{ font-size: 1rem; margin: 0; }body[data-style-page="/Admin/EmbeddingConfiguration"] /* Modal */
    .modal-content{ background: var(--rx-surface); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-header{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-header .modal-title{ color: var(--rx-ink); font-weight: 700; }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-header .btn-close{ filter: invert(1); }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-body .form-label{ color: var(--rx-ink-soft); }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-footer{ border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-footer .btn-secondary{ border-color: rgba(var(--rx-contrast-rgb), 0.15); color: var(--rx-on-brand); }

    @media (max-width: 768px) {body[data-style-page="/Admin/EmbeddingConfiguration"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .page-header{ margin-bottom: 1.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left h1{ font-size: 1.5rem; gap: 0.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left p{ font-size: 0.9rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-modern{ padding: 1rem; border-radius: 12px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card{ padding: 1.25rem; border-radius: 12px; flex-wrap: wrap; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-value{ font-size: 1.1rem; word-break: break-all; }body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-note{ word-break: break-all; }body[data-style-page="/Admin/EmbeddingConfiguration"] .glass-card{ padding: 1.25rem; border-radius: 16px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .form-control{ padding: 0.85rem 1rem; min-height: 44px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-primary,body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-secondary{ width: 100%; justify-content: center; min-height: 44px; padding: 0.85rem 1.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-group{ flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-grid{ grid-template-columns: 1fr; gap: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card{ padding: 1.25rem; border-radius: 16px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail{ flex-wrap: wrap; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail .detail-value{ word-break: break-all; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions{ flex-direction: column; gap: 0.6rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions form.d-inline{ width: 100%; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions .btn-success,body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions .btn-outline-primary,body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions .btn-outline-danger{ width: 100%; justify-content: center; min-height: 44px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-grid{ grid-template-columns: 1fr; gap: 0.75rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card{ padding: 1rem 1.25rem; border-radius: 12px; }body[data-style-page="/Admin/EmbeddingConfiguration"] .last-updated{ flex-direction: column; align-items: flex-start; gap: 0.5rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-dialog{ margin: 0.75rem; max-width: calc(100% - 1.5rem); }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-body{ padding: 1.25rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-footer{ flex-direction: column-reverse; gap: 0.6rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-footer .btn-primary,body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-footer .btn-secondary{ width: 100%; justify-content: center; margin: 0; min-height: 44px; }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/EmbeddingConfiguration"] .header-left h1{ font-size: 1.3rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .glass-card{ padding: 1rem; }body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card{ padding: 1rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/EmbeddingConfiguration"])) .header-left h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card i{
        background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .active-target-card .target-value{ background: none; -webkit-text-fill-color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .form-label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header h6 i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .info-card i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card.active{ border-color: rgba(var(--rx-success-rgb), 0.4) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header .badge-active{ background: rgba(var(--rx-success-rgb), 0.1) !important; border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-card-header .badge-inactive{ background: var(--theme-surface-3) !important; border-color: var(--theme-border-soft); color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-detail .detail-label{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-meta{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .config-actions{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .btn-outline-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.14); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/EmbeddingConfiguration"] .modal-header .btn-close{ filter: none; }



/* Page stylesheet: /Admin/HealthCheck */
body[data-style-page="/Admin/HealthCheck"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/HealthCheck"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/HealthCheck"] .page-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/HealthCheck"] .page-container{ max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/HealthCheck"] .page-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem; }body[data-style-page="/Admin/HealthCheck"] .header-left h1{ font-size: 2.1rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 .4rem; display: flex; align-items: center; gap: .7rem; }body[data-style-page="/Admin/HealthCheck"] .header-left h1 i{ background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/HealthCheck"] .header-left p{ color: var(--rx-ink-soft); margin: 0; font-size: .95rem; }body[data-style-page="/Admin/HealthCheck"] .btn-primary{
        background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); border: none; border-radius: 14px; padding: .9rem 1.75rem;
        color: var(--rx-on-brand); font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: .55rem;
        cursor: pointer; transition: all .3s ease; white-space: nowrap;
    }body[data-style-page="/Admin/HealthCheck"] .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 25px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Admin/HealthCheck"] .btn-primary:disabled{ opacity: .6; cursor: wait; transform: none; box-shadow: none; }body[data-style-page="/Admin/HealthCheck"] .btn-primary i.spin{ animation: page4faa945779-hc-spin 1s linear infinite; }
    @keyframes page4faa945779-hc-spin { to { transform: rotate(360deg); } }body[data-style-page="/Admin/HealthCheck"] /* Overall hero banner */
    .hero-banner{
        border-radius: 22px; padding: 1.75rem 2rem; margin-bottom: 1.75rem;
        display: flex; align-items: center; gap: 1.5rem; border: 1px solid transparent; transition: all .3s;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/HealthCheck"] .hero-banner.all-healthy{ background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.16), rgba(var(--rx-success-rgb), 0.05)); border-color: rgba(var(--rx-success-rgb), 0.35); }body[data-style-page="/Admin/HealthCheck"] .hero-banner.has-issues{ background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.16), rgba(var(--rx-danger-rgb), 0.05)); border-color: rgba(var(--rx-danger-rgb), 0.35); }body[data-style-page="/Admin/HealthCheck"] .hero-banner.checking{ background: rgba(var(--rx-contrast-rgb), 0.03); border-color: rgba(var(--rx-contrast-rgb), 0.1); }body[data-style-page="/Admin/HealthCheck"] .hero-icon{ width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }body[data-style-page="/Admin/HealthCheck"] .hero-banner.all-healthy .hero-icon{ background: rgba(var(--rx-success-rgb), 0.2); color: var(--rx-success); }body[data-style-page="/Admin/HealthCheck"] .hero-banner.has-issues .hero-icon{ background: rgba(var(--rx-danger-rgb), 0.2); color: var(--rx-danger); }body[data-style-page="/Admin/HealthCheck"] .hero-banner.checking .hero-icon{ background: rgba(var(--rx-contrast-rgb), 0.08); color: var(--rx-muted); }body[data-style-page="/Admin/HealthCheck"] .hero-text{ flex: 1; min-width: 200px; }body[data-style-page="/Admin/HealthCheck"] .hero-title{ font-size: 1.3rem; font-weight: 800; color: var(--rx-ink); margin-bottom: .3rem; }body[data-style-page="/Admin/HealthCheck"] .hero-sub{ color: var(--rx-muted); font-size: .88rem; }body[data-style-page="/Admin/HealthCheck"] .hero-stats{ display: flex; gap: 1.5rem; flex-wrap: wrap; }body[data-style-page="/Admin/HealthCheck"] .hero-stat{ text-align: center; }body[data-style-page="/Admin/HealthCheck"] .hero-stat-value{ font-size: 1.5rem; font-weight: 900; color: var(--rx-ink); direction: ltr; }body[data-style-page="/Admin/HealthCheck"] .hero-stat-label{ color: var(--rx-muted); font-size: .74rem; margin-top: 2px; }body[data-style-page="/Admin/HealthCheck"] .section-title{ display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; color: var(--rx-ink); font-size: 1.05rem; font-weight: 800; }body[data-style-page="/Admin/HealthCheck"] .section-title i{ color: var(--rx-accent); }body[data-style-page="/Admin/HealthCheck"] .section-title .count-badge{ background: rgba(var(--rx-contrast-rgb), 0.08); border-radius: 999px; padding: .15rem .65rem; font-size: .75rem; color: var(--rx-ink-soft); font-weight: 700; }body[data-style-page="/Admin/HealthCheck"] /* Core services grid */
    .services-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin-bottom: 2rem; }body[data-style-page="/Admin/HealthCheck"] .service-card{
        background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 18px; padding: 1.25rem 1.4rem; transition: all .25s; position: relative; overflow: hidden;
    }body[data-style-page="/Admin/HealthCheck"] .service-card::before{ content: ''; position: absolute; top: 0; right: 0; width: 4px; height: 100%; }body[data-style-page="/Admin/HealthCheck"] .service-card.healthy::before{ background: var(--rx-success-fill); }body[data-style-page="/Admin/HealthCheck"] .service-card.unhealthy::before{ background: var(--rx-danger-fill); }body[data-style-page="/Admin/HealthCheck"] .service-card.degraded::before{ background: var(--rx-warning-fill); }body[data-style-page="/Admin/HealthCheck"] .service-card.not-configured::before{ background: var(--rx-faint); }body[data-style-page="/Admin/HealthCheck"] .service-card-top{ display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }body[data-style-page="/Admin/HealthCheck"] .service-name{ color: var(--rx-ink); font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/Admin/HealthCheck"] .service-name i{ font-size: 1.15rem; color: var(--rx-accent); }body[data-style-page="/Admin/HealthCheck"] .status-pill{ display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }body[data-style-page="/Admin/HealthCheck"] .status-pill.healthy{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/HealthCheck"] .status-pill.unhealthy{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/Admin/HealthCheck"] .status-pill.degraded{ background: rgba(var(--rx-warning-rgb), 0.15); color: var(--rx-warning); }body[data-style-page="/Admin/HealthCheck"] .status-pill.not-configured{ background: rgba(var(--rx-contrast-rgb), 0.14); color: var(--rx-muted); }body[data-style-page="/Admin/HealthCheck"] .status-pill .dot{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; }body[data-style-page="/Admin/HealthCheck"] .status-pill.healthy .dot{ animation: page4faa945779-hc-pulse 2s infinite; }
    @keyframes page4faa945779-hc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }body[data-style-page="/Admin/HealthCheck"] .service-meta{ display: flex; flex-direction: column; gap: .45rem; }body[data-style-page="/Admin/HealthCheck"] .service-meta-row{ display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }body[data-style-page="/Admin/HealthCheck"] .service-meta-row .k{ color: var(--rx-muted); }body[data-style-page="/Admin/HealthCheck"] .service-meta-row .v{ color: var(--rx-ink-soft); font-weight: 600; direction: ltr; text-align: left; }body[data-style-page="/Admin/HealthCheck"] .service-error{ margin-top: .6rem; padding: .6rem .75rem; background: rgba(var(--rx-danger-rgb), 0.08); border: 1px solid rgba(var(--rx-danger-rgb), 0.2); border-radius: 10px; color: var(--rx-danger); font-size: .76rem; line-height: 1.7; overflow-wrap: anywhere; direction: ltr; text-align: left; }body[data-style-page="/Admin/HealthCheck"] /* AI provider group panels */
    .ai-panel{ background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.5rem; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row{
        display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 1rem;
        padding: .9rem 1rem; border-radius: 14px; background: rgba(var(--rx-contrast-rgb), 0.02); border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        margin-bottom: .65rem;
    }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row:last-child{ margin-bottom: 0; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon{ width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.healthy{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.unhealthy{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.not-configured{ background: rgba(var(--rx-contrast-rgb), 0.14); color: var(--rx-muted); }body[data-style-page="/Admin/HealthCheck"] .ai-provider-info{ min-width: 0; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-name{ color: var(--rx-ink); font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-model{ color: var(--rx-muted); font-size: .78rem; margin-top: 2px; direction: ltr; text-align: right; overflow-wrap: anywhere; }body[data-style-page="/Admin/HealthCheck"] .priority-badge{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); border-radius: 6px; padding: .1rem .5rem; font-size: .68rem; font-weight: 800; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-latency{ color: var(--rx-muted); font-size: .8rem; font-weight: 700; direction: ltr; white-space: nowrap; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-error{ color: var(--rx-danger); font-size: .74rem; margin-top: .4rem; direction: ltr; text-align: left; overflow-wrap: anywhere; grid-column: 1 / -1; }body[data-style-page="/Admin/HealthCheck"] .empty-ai-panel{ color: var(--rx-muted); font-size: .85rem; text-align: center; padding: 1.5rem; }body[data-style-page="/Admin/HealthCheck"] .last-updated{ color: var(--rx-muted); font-size: .8rem; text-align: center; margin-top: 1rem; }

    @media (max-width: 768px) {body[data-style-page="/Admin/HealthCheck"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/HealthCheck"] .header-left h1{ font-size: 1.55rem; }body[data-style-page="/Admin/HealthCheck"] .header-left p{ font-size: .85rem; }body[data-style-page="/Admin/HealthCheck"] .hero-banner{ padding: 1.25rem 1.4rem; gap: 1rem; }body[data-style-page="/Admin/HealthCheck"] .hero-icon{ width: 54px; height: 54px; font-size: 1.6rem; }body[data-style-page="/Admin/HealthCheck"] .hero-title{ font-size: 1.1rem; }body[data-style-page="/Admin/HealthCheck"] .hero-stats{ width: 100%; justify-content: space-between; gap: .75rem; }body[data-style-page="/Admin/HealthCheck"] .services-grid{ grid-template-columns: 1fr; gap: .85rem; }body[data-style-page="/Admin/HealthCheck"] .ai-panel{ padding: 1.1rem .9rem; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row{
            grid-template-columns: auto 1fr;
            row-gap: .55rem;
            padding: .85rem .9rem;
        }body[data-style-page="/Admin/HealthCheck"] .ai-provider-latency{ grid-column: 2; justify-self: start; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row > .status-pill{ grid-column: 1 / -1; justify-self: start; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-error{ grid-column: 1 / -1; }body[data-style-page="/Admin/HealthCheck"] .section-title{ font-size: .95rem; }body[data-style-page="/Admin/HealthCheck"] .page-header{ flex-direction: column; align-items: stretch; }body[data-style-page="/Admin/HealthCheck"] .page-header .btn-primary{ width: 100%; justify-content: center; min-height: 46px; }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/HealthCheck"] .page-wrapper{ padding: .75rem; }body[data-style-page="/Admin/HealthCheck"] .header-left h1{ font-size: 1.35rem; }body[data-style-page="/Admin/HealthCheck"] .hero-banner{ flex-direction: column; align-items: flex-start; padding: 1.1rem 1.15rem; }body[data-style-page="/Admin/HealthCheck"] .hero-stats{ justify-content: space-between; }body[data-style-page="/Admin/HealthCheck"] .hero-stat-value{ font-size: 1.25rem; }body[data-style-page="/Admin/HealthCheck"] .service-card{ padding: 1.05rem 1.1rem; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row{ grid-template-columns: 1fr; gap: .4rem; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon{ width: 34px; height: 34px; font-size: 1rem; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-latency{ grid-column: 1; justify-self: start; }body[data-style-page="/Admin/HealthCheck"] .ai-provider-row > .status-pill{ grid-column: 1; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/HealthCheck"])) .header-left h1 i{ background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .section-title i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .service-name i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .section-title .count-badge{ background: var(--theme-surface-3); border: 1px solid var(--theme-border-soft); color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-banner.all-healthy .hero-icon{ background: rgba(var(--rx-success-rgb), 0.14); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-banner.has-issues .hero-icon{ background: rgba(var(--rx-danger-rgb), 0.1); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-banner.checking{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-title,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .service-name,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-sub,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .hero-stat-label,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-model,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-latency,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .page-container > .last-updated{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .status-pill.healthy{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .status-pill.unhealthy{ background: rgba(var(--rx-danger-rgb), 0.1); color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .status-pill.degraded{ background: rgba(var(--rx-warning-rgb), 0.12); color: var(--rx-warning) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .status-pill.not-configured{ background: var(--theme-surface-3); color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .service-meta-row .k{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .service-meta-row .v{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .service-error,html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-error{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-row{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.healthy{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.unhealthy{ background: rgba(var(--rx-danger-rgb), 0.1); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-icon.not-configured{ background: var(--theme-surface-3); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/HealthCheck"] .ai-provider-name .priority-badge{ background: rgba(var(--theme-accent-rgb), .12); color: var(--theme-accent-strong) !important; }



/* Page stylesheet: /Admin/MetadataEnrichmentConfiguration */
body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-container{ max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left h1{ font-size: 2.25rem; font-weight: 900; color: var(--rx-ink); margin: 0 0 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left h1 i{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left p{ color: var(--rx-ink-soft); margin: 0; font-size: 1rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-modern{ border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; font-weight: 600; border: 1px solid transparent; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.15); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-error{ background: rgba(var(--rx-danger-rgb), 0.15); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card{ background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1)); border: 1px solid rgba(var(--rx-accent-rgb), 0.4); border-radius: 16px; padding: 1.5rem 1.75rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.25rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card i{ font-size: 2rem; background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-label{ color: var(--rx-ink-soft); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-value{ color: var(--rx-on-brand); font-weight: 800; font-size: 1.25rem; background: linear-gradient(135deg, var(--rx-brand-bright), var(--rx-brand-bright)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-note{ color: var(--rx-muted); font-size: 0.85rem; margin-top: 0.35rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .glass-card{ background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 24px; padding: 2rem; margin-bottom: 1.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-group{ margin-bottom: 1.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-label{ display: flex; align-items: center; gap: 0.5rem; color: var(--rx-ink); font-weight: 700; font-size: 1rem; margin-bottom: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-label i{ color: var(--rx-accent); font-size: 1.15rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-control{ background: rgba(var(--rx-contrast-rgb), 0.05); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 14px; padding: 1rem 1.25rem; font-size: 1rem; color: var(--rx-ink); transition: all 0.3s ease; width: 100%; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-control::placeholder{ color: var(--rx-faint); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-control:focus{ outline: none; border-color: var(--rx-accent); box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15); background: rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-control.ltr-input{ direction: ltr; text-align: left; font-family: var(--rx-font-mono) !important; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-text{ display: flex; align-items: center; gap: 0.4rem; color: var(--rx-muted); font-size: 0.85rem; margin-top: 0.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-check{ display: flex; align-items: center; gap: 0.6rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-check-input{ width: 2.5rem; height: 1.4rem; cursor: pointer; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-check-label{ color: var(--rx-ink); font-weight: 600; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-primary{ background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); border: none; border-radius: 14px; padding: 1rem 2rem; color: var(--rx-on-brand); font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; transition: all 0.3s ease; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-secondary{ background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15); border-radius: 14px; padding: 1rem 2rem; color: var(--rx-ink-soft); font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s ease; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-group{ display: flex; gap: 1rem; margin-top: 2rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-success{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill)); border: none; border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-on-brand); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-success:hover{ transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--rx-success-rgb), 0.4); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-primary{ background: rgba(var(--rx-accent-rgb), 0.1); border: 1px solid rgba(var(--rx-accent-rgb), 0.3); border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-accent); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-primary:hover{ background: rgba(var(--rx-accent-rgb), 0.2); transform: translateY(-2px); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-warning{ background: rgba(var(--rx-warning-rgb), 0.1); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-warning); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-warning:hover{ background: rgba(var(--rx-warning-rgb), 0.2); transform: translateY(-2px); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-danger{ background: rgba(var(--rx-danger-rgb), 0.1); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); border-radius: 12px; padding: 0.5rem 1.25rem; color: var(--rx-danger); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.4rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.2); transform: translateY(-2px); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card{ background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; padding: 1.75rem; transition: all 0.3s ease; position: relative; overflow: hidden; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.3); transform: translateY(-2px); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card.active{ border-color: rgba(var(--rx-success-rgb), 0.5); background: rgba(var(--rx-success-rgb), 0.05); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card.active::before{ content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--rx-success-fill), var(--rx-success-fill)); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card.disabled{ opacity: 0.6; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header h6{ color: var(--rx-ink); font-weight: 700; font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 0.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header h6 i{ color: var(--rx-accent); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .badge-active{ background: rgba(var(--rx-success-rgb), 0.2); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .badge-inactive{ background: rgba(var(--rx-contrast-rgb), 0.05); color: var(--rx-muted); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .badge-disabled{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); border: 1px solid rgba(var(--rx-danger-rgb), 0.3); border-radius: 20px; padding: 0.3rem 0.85rem; font-size: 0.8rem; font-weight: 600; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail{ display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail i{ color: var(--rx-accent); font-size: 0.95rem; width: 20px; text-align: center; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail .detail-label{ color: var(--rx-muted); font-size: 0.85rem; min-width: 70px; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail .detail-value{ color: var(--rx-ink); font-size: 0.9rem; font-family: var(--rx-font-mono); direction: ltr; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions{ display: flex; gap: 0.5rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.06); flex-wrap: wrap; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-meta{ display: flex; align-items: center; gap: 0.5rem; color: var(--rx-muted); font-size: 0.8rem; margin-top: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .empty-state{ text-align: center; padding: 3rem 1rem; color: var(--rx-muted); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .empty-state i{ font-size: 3rem; margin-bottom: 1rem; display: block; color: var(--rx-faint); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .empty-state p{ font-size: 1rem; margin: 0; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] /* Modal */
    .modal-content{ background: var(--rx-surface); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 20px; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-header{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-header .modal-title{ color: var(--rx-ink); font-weight: 700; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-header .btn-close{ filter: invert(1); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-body .form-label{ color: var(--rx-ink-soft); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer{ border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer .btn-secondary{ border-color: rgba(var(--rx-contrast-rgb), 0.15); color: var(--rx-on-brand); }

    @media (max-width: 768px) {body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-wrapper{ padding: 1rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left h1{ font-size: 1.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left p{ font-size: 0.9rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-header{ margin-bottom: 1.25rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card{ flex-direction: column; align-items: flex-start; text-align: right; padding: 1.25rem; gap: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-value{ font-size: 1.1rem; word-break: break-word; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-note{ word-break: break-all; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .glass-card{ padding: 1.25rem; border-radius: 18px; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .row{ margin-left: 0; margin-right: 0; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .col-lg-5,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .col-lg-7{ padding-left: 0; padding-right: 0; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-control{ padding: 0.85rem 1rem; min-height: 44px; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-check-input{ min-width: 2.5rem; min-height: 1.4rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-group{ flex-direction: column; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-primary,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-secondary{ width: 100%; justify-content: center; min-height: 44px; box-sizing: border-box; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-grid{ grid-template-columns: 1fr; gap: 1rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card{ padding: 1.25rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header{ align-items: flex-start; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail{ flex-wrap: wrap; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail .detail-value{ word-break: break-all; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions{ flex-direction: column; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions form.d-inline{ display: block !important; width: 100%; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions .btn-success,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions .btn-outline-primary,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions .btn-outline-warning,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions .btn-outline-danger{ width: 100%; justify-content: center; min-height: 44px; box-sizing: border-box; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-dialog{ margin: 0.75rem; max-width: calc(100% - 1.5rem); }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-body,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-header,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer{ padding: 1rem 1.25rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer{ flex-wrap: wrap; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer .btn-primary,body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-footer .btn-secondary{ width: 100%; justify-content: center; min-height: 44px; box-sizing: border-box; margin: 0; }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .header-left h1{ font-size: 1.5rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .page-wrapper{ padding: 0.75rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .glass-card{ padding: 1rem; }body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header h6{ font-size: 0.95rem; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/MetadataEnrichmentConfiguration"])) .header-left h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card i{
        background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .active-target-card .target-value{ background: none; -webkit-text-fill-color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .form-label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header h6 i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card.active{ border-color: rgba(var(--rx-success-rgb), 0.4) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header .badge-active{ background: rgba(var(--rx-success-rgb), 0.1) !important; border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header .badge-inactive{ background: var(--theme-surface-3) !important; border-color: var(--theme-border-soft); color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-card-header .badge-disabled{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-detail .detail-label{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-meta{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .config-actions{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-warning{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.35); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-warning:hover{ background: rgba(var(--rx-warning-rgb), 0.16); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .btn-outline-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.14); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/MetadataEnrichmentConfiguration"] .modal-header .btn-close{ filter: none; }



/* Page stylesheet: /Admin/ModelConfiguration */
body[data-style-page="/Admin/ModelConfiguration"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/ModelConfiguration"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/ModelConfiguration"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/ModelConfiguration"] .page-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Header */
    .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/ModelConfiguration"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Alerts */
    .alert-modern{
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 600;
        border: 1px solid transparent;
    }body[data-style-page="/Admin/ModelConfiguration"] .alert-modern i{
        font-size: 1.5rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/ModelConfiguration"] .alert-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/ModelConfiguration"] .alert-warning{
        background: rgba(var(--rx-warning-rgb), 0.15);
        border-color: rgba(var(--rx-warning-rgb), 0.3);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/ModelConfiguration"] /* Active Target Info */
    .active-target-card{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1));
        border: 1px solid rgba(var(--rx-accent-rgb), 0.4);
        border-radius: 16px;
        padding: 1.5rem 1.75rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1.25rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card i{
        font-size: 2rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card .target-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card .target-value{
        color: var(--rx-on-brand);
        font-weight: 800;
        font-size: 1.25rem;
        background: linear-gradient(135deg, var(--rx-brand-bright), var(--rx-brand-bright));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card .target-note{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-top: 0.35rem;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        padding: 2rem;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Form Styling */
    .form-group{
        margin-bottom: 1.75rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-label i{
        color: var(--rx-accent);
        font-size: 1.15rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        color: var(--rx-ink);
        transition: all 0.3s ease;
        width: 100%;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Admin/ModelConfiguration"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/ModelConfiguration"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
        font-family: var(--rx-font-mono) !important;
    }body[data-style-page="/Admin/ModelConfiguration"] select.form-control{
        cursor: pointer;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 1rem center;
        background-size: 1.25rem;
        padding-left: 3rem;
        background-color: rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/ModelConfiguration"] select.form-control:focus{
        background-color: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/ModelConfiguration"] select.form-control option{
        background: var(--rx-surface) !important;
        color: var(--rx-ink) !important;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/ModelConfiguration"] select.form-control option:hover{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;
        color: var(--rx-on-brand) !important;
    }body[data-style-page="/Admin/ModelConfiguration"] select.form-control option:checked,body[data-style-page="/Admin/ModelConfiguration"] select.form-control option:focus,body[data-style-page="/Admin/ModelConfiguration"] select.form-control option:active,body[data-style-page="/Admin/ModelConfiguration"] select.form-control option[selected]{
        background: var(--rx-brand) !important;
        color: var(--rx-on-brand) !important;
        font-weight: 600;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Fix for webkit browsers selected option visibility */
    select.form-control option:checked::before{
        content: '✓ ';
        margin-left: 0.5rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-text{
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-text a{
        color: var(--rx-accent);
        text-decoration: none;
    }body[data-style-page="/Admin/ModelConfiguration"] .form-text a:hover{
        text-decoration: underline;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Last Updated */
    .last-updated{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.5rem;
        margin-top: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Admin/ModelConfiguration"] .last-updated-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .last-updated-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        direction: ltr;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Buttons */
    .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/ModelConfiguration"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/ModelConfiguration"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/ModelConfiguration"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/ModelConfiguration"] .btn-group{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Admin/ModelConfiguration"] /* Info Cards */
    .info-grid{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .info-card{
        background: rgba(var(--rx-accent-rgb), 0.1);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .info-card i{
        font-size: 1.35rem;
        color: var(--rx-accent);
        margin-top: 0.125rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .info-card strong{
        color: var(--rx-ink);
        display: block;
        margin-bottom: 0.25rem;
    }body[data-style-page="/Admin/ModelConfiguration"] .info-card span{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/ModelConfiguration"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .page-header{
            margin-bottom: 1.25rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .header-left h1{
            font-size: 1.5rem;
            gap: 0.5rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .header-left p{
            font-size: 0.9rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .alert-modern{
            padding: 1rem 1.1rem;
            border-radius: 12px;
            gap: 0.75rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card{
            padding: 1.1rem 1.25rem;
            border-radius: 14px;
            gap: 1rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .active-target-card .target-value{
            font-size: 1.1rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .glass-card{
            padding: 1.25rem;
            border-radius: 18px;
        }body[data-style-page="/Admin/ModelConfiguration"] .form-group{
            margin-bottom: 1.4rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .form-control{
            padding: 0.85rem 1rem;
            min-height: 46px;
        }body[data-style-page="/Admin/ModelConfiguration"] select.form-control{
            padding-left: 2.75rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .last-updated{
            flex-direction: column;
            align-items: flex-start;
            gap: 0.4rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Admin/ModelConfiguration"] .btn-primary,body[data-style-page="/Admin/ModelConfiguration"] .btn-secondary{
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1.5rem;
            min-height: 46px;
        }body[data-style-page="/Admin/ModelConfiguration"] .info-grid{
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/ModelConfiguration"] .page-wrapper{
            padding: 0.75rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .header-left h1{
            font-size: 1.3rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .glass-card{
            padding: 1rem;
        }body[data-style-page="/Admin/ModelConfiguration"] .info-card{
            padding: 1rem 1.1rem;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ModelConfiguration"])) .header-left h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] .active-target-card i{
        background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent));
    }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/ModelConfiguration"])) .active-target-card .target-value{ background: none; -webkit-text-fill-color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] .form-label i,html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] .info-card i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/ModelConfiguration"] select.form-control option:checked{ background: var(--theme-accent-strong) !important; }



/* Page stylesheet: /Admin/Pricing/Create */
body[data-style-page="/Admin/Pricing/Create"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Pricing/Create"] .form-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Admin/Pricing/Create"] .form-container{
        max-width: 800px;
        margin: 0 auto;
    }body[data-style-page="/Admin/Pricing/Create"] .page-header{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Create"] .page-title{
        font-size: 2rem;
        font-weight: 700;
        color: var(--rx-ink);
        margin: 0;
    }body[data-style-page="/Admin/Pricing/Create"] .form-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2.5rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Create"] .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Pricing/Create"] .form-label{
        display: block;
        color: var(--rx-ink);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/Pricing/Create"] .form-control{
        width: 100%;
        padding: 0.75rem 1rem;
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        color: var(--rx-ink) !important;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Pricing/Create"] .form-control::placeholder{
        color: var(--rx-muted) !important;
    }body[data-style-page="/Admin/Pricing/Create"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.1);
        color: var(--rx-ink) !important;
    }body[data-style-page="/Admin/Pricing/Create"] .form-check{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/Pricing/Create"] .form-check-input{
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
    }body[data-style-page="/Admin/Pricing/Create"] .form-check-label{
        color: var(--rx-ink);
        cursor: pointer;
    }body[data-style-page="/Admin/Pricing/Create"] .text-danger{
        color: var(--rx-danger);
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }body[data-style-page="/Admin/Pricing/Create"] .alert{
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
    }body[data-style-page="/Admin/Pricing/Create"] .alert-danger{
        background: rgba(var(--rx-danger-rgb), 0.1);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Create"] .btn-group{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Admin/Pricing/Create"] .btn{
        padding: 0.875rem 1.75rem;
        border-radius: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 1rem;
    }body[data-style-page="/Admin/Pricing/Create"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/Pricing/Create"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/Pricing/Create"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-muted);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Create"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.2);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Pricing/Create"] .form-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Pricing/Create"] .page-header{
            padding: 1.25rem;
            border-radius: 1rem;
            margin-bottom: 1.25rem;
        }body[data-style-page="/Admin/Pricing/Create"] .page-title{
            font-size: 1.4rem;
        }body[data-style-page="/Admin/Pricing/Create"] .form-card{
            padding: 1.25rem;
            border-radius: 1rem;
        }body[data-style-page="/Admin/Pricing/Create"] .form-control{
            font-size: 16px;
            padding: 0.7rem 0.9rem;
        }body[data-style-page="/Admin/Pricing/Create"] .btn-group{
            flex-direction: column;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }body[data-style-page="/Admin/Pricing/Create"] .btn{
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1.5rem;
            min-height: 44px;
            display: flex;
            align-items: center;
        }
    }

    @media (max-width: 480px) {body[data-style-page="/Admin/Pricing/Create"] .form-wrapper{
            padding: 0.75rem;
        }body[data-style-page="/Admin/Pricing/Create"] .page-header{
            padding: 1rem;
        }body[data-style-page="/Admin/Pricing/Create"] .page-title{
            font-size: 1.2rem;
        }body[data-style-page="/Admin/Pricing/Create"] .form-card{
            padding: 1rem;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Pricing/Create"])) .form-group .text-danger{ color: var(--rx-danger) !important; }



/* Page stylesheet: /Admin/Pricing/Edit */
body[data-style-page="/Admin/Pricing/Edit"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-container{
        max-width: 800px;
        margin: 0 auto;
    }body[data-style-page="/Admin/Pricing/Edit"] .page-header{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Edit"] .page-title{
        font-size: 2rem;
        font-weight: 700;
        color: var(--rx-ink);
        margin: 0;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2.5rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Edit"] .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-label{
        display: block;
        color: var(--rx-ink);
        font-weight: 600;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-control{
        width: 100%;
        padding: 0.75rem 1rem;
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        color: var(--rx-ink) !important;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-control::placeholder{
        color: var(--rx-muted) !important;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.1);
        color: var(--rx-ink) !important;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-check{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-check-input{
        width: 1.25rem;
        height: 1.25rem;
        cursor: pointer;
    }body[data-style-page="/Admin/Pricing/Edit"] .form-check-label{
        color: var(--rx-ink);
        cursor: pointer;
    }body[data-style-page="/Admin/Pricing/Edit"] .text-danger{
        color: var(--rx-danger);
        font-size: 0.875rem;
        margin-top: 0.25rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .alert{
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
    }body[data-style-page="/Admin/Pricing/Edit"] .alert-danger{
        background: rgba(var(--rx-danger-rgb), 0.1);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Edit"] .btn-group{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .btn{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem 1.75rem;
        border-radius: 0.75rem;
        font-weight: 600;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 1rem;
    }body[data-style-page="/Admin/Pricing/Edit"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/Pricing/Edit"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/Pricing/Edit"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-muted);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Edit"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.2);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Pricing/Edit"] .form-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Pricing/Edit"] .page-header{
            padding: 1.25rem;
            border-radius: 1rem;
        }body[data-style-page="/Admin/Pricing/Edit"] .page-title{
            font-size: 1.4rem;
        }body[data-style-page="/Admin/Pricing/Edit"] .form-card{
            padding: 1.25rem;
            border-radius: 1rem;
        }body[data-style-page="/Admin/Pricing/Edit"] .btn-group{
            flex-direction: column;
            gap: 0.75rem;
        }body[data-style-page="/Admin/Pricing/Edit"] .btn{
            width: 100%;
            justify-content: center;
            padding: 0.9rem 1.5rem;
            min-height: 44px;
            box-sizing: border-box;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Pricing/Edit"])) .form-group .text-danger{ color: var(--rx-danger) !important; }



/* Page stylesheet: /Admin/Pricing/Index */
body[data-style-page="/Admin/Pricing/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-container{
        max-width: 1200px;
        margin: 0 auto;
    }body[data-style-page="/Admin/Pricing/Index"] .page-header{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Index"] .page-title{
        font-size: 2rem;
        font-weight: 700;
        color: var(--rx-ink) !important;
        margin: 0;
    }body[data-style-page="/Admin/Pricing/Index"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        padding: 0.75rem 1.5rem;
        border-radius: 0.75rem;
        text-decoration: none;
        display: inline-block;
        font-weight: 600;
        transition: all 0.3s;
        border: none;
    }body[data-style-page="/Admin/Pricing/Index"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/Pricing/Index"] .alert{
        padding: 1rem 1.5rem;
        border-radius: 0.75rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
    }body[data-style-page="/Admin/Pricing/Index"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.1);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .alert-danger{
        background: rgba(var(--rx-danger-rgb), 0.1);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        overflow-x: auto;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table table{
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
    }

    @media (max-width: 992px) {body[data-style-page="/Admin/Pricing/Index"] .pricing-table{
            border-radius: 1rem;
        }
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table thead{
        background: rgba(var(--rx-accent-rgb), 0.1);
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table th{
        padding: 1.25rem 1.5rem;
        text-align: right;
        color: var(--rx-accent);
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td{
        padding: 1.25rem 1.5rem;
        border-top: 1px solid rgba(var(--rx-accent-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody tr{
        transition: all 0.3s;
    }body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody tr:hover{
        background: rgba(var(--rx-accent-rgb), 0.05);
    }body[data-style-page="/Admin/Pricing/Index"] .badge{
        display: inline-block;
        padding: 0.4rem 0.8rem;
        border-radius: 0.5rem;
        font-size: 0.85rem;
        font-weight: 600;
    }body[data-style-page="/Admin/Pricing/Index"] .badge-success{
        background: rgba(var(--rx-success-rgb), 0.2);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Pricing/Index"] .badge-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.14);
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Pricing/Index"] .badge-primary{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-group{
        display: flex;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Pricing/Index"] .btn-sm{
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        border-radius: 0.5rem;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
        border: none;
        cursor: pointer;
    }body[data-style-page="/Admin/Pricing/Index"] .btn-info{
        background: rgba(var(--rx-info-rgb), 0.2);
        color: var(--rx-info);
        border: 1px solid rgba(var(--rx-info-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-info:hover{
        background: rgba(var(--rx-info-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-warning{
        background: rgba(var(--rx-warning-rgb), 0.2);
        color: var(--rx-warning);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-warning:hover{
        background: rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-danger{
        background: rgba(var(--rx-danger-rgb), 0.2);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/Pricing/Index"] .btn-danger:hover{
        background: rgba(var(--rx-danger-rgb), 0.3);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Pricing/Index"] .pricing-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Pricing/Index"] .page-header{
            padding: 1.25rem;
            border-radius: 1rem;
            margin-bottom: 1.25rem;
        }body[data-style-page="/Admin/Pricing/Index"] .page-header > div{
            flex-direction: column;
            align-items: flex-start !important;
            gap: 0.75rem;
        }body[data-style-page="/Admin/Pricing/Index"] .page-title{
            font-size: 1.4rem;
        }body[data-style-page="/Admin/Pricing/Index"] .btn-primary{
            width: 100%;
            text-align: center;
            box-sizing: border-box;
            padding: 0.85rem 1.5rem;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table{
            overflow-x: visible;
            background: none;
            border: none;
            border-radius: 0;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table table{
            width: 100%;
            min-width: 0;
            border-collapse: separate;
            border-spacing: 0;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table thead{
            display: none;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody{
            display: block;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody tr{
            display: block;
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
            border-radius: 1rem;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody tr:hover{
            background: rgba(var(--rx-contrast-rgb), 0.03);
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td{
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            padding: 0.65rem 0;
            border-top: 1px solid rgba(var(--rx-accent-rgb), 0.1);
            text-align: left;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td:first-child{
            border-top: none;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td::before{
            content: attr(data-label);
            color: var(--rx-accent);
            font-weight: 600;
            font-size: 0.85rem;
            flex-shrink: 0;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[data-label="تاریخ ایجاد"]{
            font-size: 0.85rem;
            color: var(--rx-muted);
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[data-label="عملیات"]{
            display: block;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[data-label="عملیات"]::before{
            display: block;
            margin-bottom: 0.5rem;
        }body[data-style-page="/Admin/Pricing/Index"] .btn-group{
            flex-wrap: wrap;
        }body[data-style-page="/Admin/Pricing/Index"] .btn-group .btn-sm,body[data-style-page="/Admin/Pricing/Index"] .btn-group form{
            flex: 1 1 auto;
        }body[data-style-page="/Admin/Pricing/Index"] .btn-sm{
            width: 100%;
            box-sizing: border-box;
            text-align: center;
            padding: 0.65rem 1rem;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[colspan]{
            display: block;
            text-align: center !important;
        }body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[colspan]::before{
            content: none;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Pricing/Index"])) .btn-sm.btn-info{ background: rgba(var(--rx-info-rgb), 0.1); border-color: rgba(var(--rx-info-rgb), 0.3); color: #0369a1; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .btn-sm.btn-warning{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.35); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .btn-sm.btn-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .btn-sm.btn-info:hover{ background: rgba(var(--rx-info-rgb), 0.16); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .btn-sm.btn-warning:hover{ background: rgba(var(--rx-warning-rgb), 0.16); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .btn-sm.btn-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.14); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table td [style*="color: #fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table td [style*="color: #5eead4"]{ color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table td [style*="color: #f472b6"]{ color: #be185d !important; }
    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table tbody tr{ background: var(--theme-surface); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table td::before{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Pricing/Index"] .pricing-table td[data-label="تاریخ ایجاد"]{ color: var(--theme-muted); }
    }



/* Page stylesheet: /Admin/PricingModels */
body[data-style-page="/Admin/PricingModels"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/PricingModels"] .page-wrapper{
        padding: 2rem 1rem;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        min-height: 100vh;
    }body[data-style-page="/Admin/PricingModels"] .page-container{
        max-width: 1400px;
        margin: 0 auto;
    }body[data-style-page="/Admin/PricingModels"] /* Header Section */
    .page-header{
        margin-bottom: 2.5rem;
    }body[data-style-page="/Admin/PricingModels"] .page-title{
        font-size: 2rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin: 0 0 0.5rem 0;
    }body[data-style-page="/Admin/PricingModels"] .page-subtitle{
        color: var(--rx-ink-soft);
        font-size: 1rem;
    }body[data-style-page="/Admin/PricingModels"] /* Alerts */
    .alert{
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        animation: pageac788ff53d-slideIn 0.3s ease-out;
    }body[data-style-page="/Admin/PricingModels"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/PricingModels"] .alert-danger{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }

    @keyframes pageac788ff53d-slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }body[data-style-page="/Admin/PricingModels"] /* Tab Navigation */
    .tab-navigation{
        display: flex;
        gap: 0.5rem;
        margin-bottom: 2rem;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        padding: 0.5rem;
        border-radius: 16px;
        backdrop-filter: blur(10px);
        overflow-x: auto;
    }body[data-style-page="/Admin/PricingModels"] .tab-btn{
        padding: 0.75rem 1.5rem;
        border: none;
        background: transparent;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/PricingModels"] .tab-btn:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/PricingModels"] .tab-btn.active{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        box-shadow: 0 4px 15px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/PricingModels"] .tab-content{
        display: none;
    }body[data-style-page="/Admin/PricingModels"] .tab-content.active{
        display: block;
        animation: pageac788ff53d-fadeIn 0.3s ease-out;
    }

    @keyframes pageac788ff53d-fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }body[data-style-page="/Admin/PricingModels"] /* Model Cards Grid */
    .models-grid{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
        margin-top: 1.5rem;
    }body[data-style-page="/Admin/PricingModels"] .model-card{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 16px;
        padding: 1.5rem;
        backdrop-filter: blur(10px);
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
    }body[data-style-page="/Admin/PricingModels"] .model-card::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--rx-brand), var(--rx-brand), var(--rx-brand));
        opacity: 0;
        transition: opacity 0.3s;
    }body[data-style-page="/Admin/PricingModels"] .model-card:hover{
        transform: translateY(-4px);
        border-color: rgba(var(--rx-accent-rgb), 0.4);
        box-shadow: 0 8px 30px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/PricingModels"] .model-card:hover::before{
        opacity: 1;
    }body[data-style-page="/Admin/PricingModels"] .model-card.default{
        border-color: rgba(var(--rx-success-rgb), 0.5);
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.1), rgba(var(--rx-success-rgb), 0.05));
    }body[data-style-page="/Admin/PricingModels"] .model-card.default::before{
        background: linear-gradient(90deg, var(--rx-success-fill), var(--rx-success-fill));
        opacity: 1;
    }body[data-style-page="/Admin/PricingModels"] .model-card-header{
        display: flex;
        justify-content: space-between;
        align-items: start;
        margin-bottom: 1rem;
        gap: 1rem;
    }body[data-style-page="/Admin/PricingModels"] .model-info h3{
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--rx-ink);
        margin: 0 0 0.25rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/PricingModels"] .model-provider{
        color: var(--rx-muted);
        font-size: 0.875rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }body[data-style-page="/Admin/PricingModels"] .badge-group{
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }body[data-style-page="/Admin/PricingModels"] .badge{
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        white-space: nowrap;
    }body[data-style-page="/Admin/PricingModels"] .badge-default{
        background: rgba(var(--rx-success-rgb), 0.2);
        color: var(--rx-success);
        border: 1px solid var(--rx-success);
    }body[data-style-page="/Admin/PricingModels"] .badge-active{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
        border: 1px solid var(--rx-accent);
    }body[data-style-page="/Admin/PricingModels"] .badge-inactive{
        background: rgba(156, 163, 175, 0.2);
        color: var(--rx-muted);
        border: 1px solid var(--rx-line-strong);
    }body[data-style-page="/Admin/PricingModels"] .model-rates{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
    }body[data-style-page="/Admin/PricingModels"] .rate-item{
        text-align: center;
    }body[data-style-page="/Admin/PricingModels"] .rate-label{
        font-size: 0.7rem;
        color: var(--rx-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
    }body[data-style-page="/Admin/PricingModels"] .rate-value{
        font-size: 1rem;
        font-weight: 700;
        color: var(--rx-ink);
        direction: ltr;
    }body[data-style-page="/Admin/PricingModels"] .rate-value small{
        font-size: 0.75rem;
        color: var(--rx-ink-soft);
        font-weight: 400;
    }body[data-style-page="/Admin/PricingModels"] .model-specs{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin: 1rem 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        font-size: 0.85rem;
    }body[data-style-page="/Admin/PricingModels"] .spec-item{
        display: flex;
        justify-content: space-between;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/PricingModels"] .spec-label{
        color: var(--rx-muted);
    }body[data-style-page="/Admin/PricingModels"] .spec-value{
        font-weight: 600;
        color: var(--rx-ink);
        direction: ltr;
    }body[data-style-page="/Admin/PricingModels"] .model-notes{
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(var(--rx-accent-rgb), 0.05);
        border-right: 3px solid var(--rx-accent);
        border-radius: 8px;
        font-size: 0.85rem;
        line-height: 1.6;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/PricingModels"] .model-actions{
        display: flex;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
    }body[data-style-page="/Admin/PricingModels"] .btn{
        padding: 0.6rem 1.2rem;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.875rem;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
    }body[data-style-page="/Admin/PricingModels"] .btn-sm{
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }body[data-style-page="/Admin/PricingModels"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        box-shadow: 0 2px 10px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/PricingModels"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Admin/PricingModels"] .btn-success{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/PricingModels"] .btn-success:hover{
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--rx-success-rgb), 0.5);
    }body[data-style-page="/Admin/PricingModels"] .btn-warning{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/PricingModels"] .btn-danger{
        background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill));
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/PricingModels"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Admin/PricingModels"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.15);
    }body[data-style-page="/Admin/PricingModels"] /* Form Styles */
    .form-card{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 16px;
        padding: 2rem;
        backdrop-filter: blur(10px);
        max-width: 900px;
    }body[data-style-page="/Admin/PricingModels"] .form-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }body[data-style-page="/Admin/PricingModels"] .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/PricingModels"] .form-label{
        display: block;
        margin-bottom: 0.5rem;
        color: var(--rx-ink);
        font-weight: 600;
        font-size: 0.9rem;
    }body[data-style-page="/Admin/PricingModels"] .form-control{
        width: 100%;
        padding: 0.75rem 1rem;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
        border-radius: 10px;
        color: var(--rx-ink);
        font-size: 0.95rem;
        transition: all 0.3s;
    }body[data-style-page="/Admin/PricingModels"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.2);
        background: rgba(0, 0, 0, 0.4);
    }body[data-style-page="/Admin/PricingModels"] .form-control::placeholder{
        color: var(--rx-muted);
    }body[data-style-page="/Admin/PricingModels"] textarea.form-control{
        min-height: 100px;
        resize: vertical;
    }body[data-style-page="/Admin/PricingModels"] .form-check{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin: 1rem 0;
    }body[data-style-page="/Admin/PricingModels"] .form-check-input{
        width: 20px;
        height: 20px;
        cursor: pointer;
    }body[data-style-page="/Admin/PricingModels"] .form-check-label{
        color: var(--rx-ink);
        cursor: pointer;
        font-weight: 500;
    }body[data-style-page="/Admin/PricingModels"] .form-actions{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
    }body[data-style-page="/Admin/PricingModels"] /* Empty State */
    .empty-state{
        text-align: center;
        padding: 4rem 2rem;
        color: var(--rx-muted);
    }body[data-style-page="/Admin/PricingModels"] .empty-state i{
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.3;
    }body[data-style-page="/Admin/PricingModels"] .empty-state h3{
        margin-bottom: 0.5rem;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/PricingModels"] /* Analysis Tables */
    .analysis-section{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 16px;
        padding: 2rem;
        margin-bottom: 2rem;
        backdrop-filter: blur(10px);
    }body[data-style-page="/Admin/PricingModels"] .analysis-section h3{
        color: var(--rx-ink);
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/PricingModels"] .table-responsive{
        overflow-x: auto;
        margin-top: 1rem;
    }body[data-style-page="/Admin/PricingModels"] .pricing-table{
        width: 100%;
        border-collapse: collapse;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 12px;
        overflow: hidden;
    }body[data-style-page="/Admin/PricingModels"] .pricing-table thead{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.3), rgba(var(--rx-accent-rgb), 0.2));
    }body[data-style-page="/Admin/PricingModels"] .pricing-table th{
        padding: 1rem;
        text-align: center;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.9rem;
    }body[data-style-page="/Admin/PricingModels"] .pricing-table tbody tr{
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        transition: background 0.2s;
    }body[data-style-page="/Admin/PricingModels"] .pricing-table tbody tr:hover{
        background: rgba(var(--rx-accent-rgb), 0.1);
    }body[data-style-page="/Admin/PricingModels"] .pricing-table td{
        padding: 1rem;
        text-align: center;
        color: var(--rx-ink);
    }body[data-style-page="/Admin/PricingModels"] .pricing-table .highlight-cell{
        color: var(--rx-success);
        font-weight: 700;
        font-size: 1.05rem;
    }body[data-style-page="/Admin/PricingModels"] /* Comparison table (built via JS) mobile card fallback */
    #comparison-table thead th:first-child,body[data-style-page="/Admin/PricingModels"] #comparison-table tbody td:first-child{
        text-align: right;
    }body[data-style-page="/Admin/PricingModels"] /* Loading State */
    .loading{
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(var(--rx-contrast-rgb), 0.3);
        border-radius: 50%;
        border-top-color: var(--rx-line);
        animation: pageac788ff53d-spin 0.8s linear infinite;
    }

    @keyframes pageac788ff53d-spin {
        to { transform: rotate(360deg); }
    }body[data-style-page="/Admin/PricingModels"] /* Responsive */
    @media (max-width: 768px){
        .page-wrapper {
            padding: 1rem 0.75rem;
        }

        .page-title {
            font-size: 1.4rem;
            flex-wrap: wrap;
        }

        .page-subtitle {
            font-size: 0.9rem;
        }

        .tab-navigation {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            flex-wrap: nowrap;
        }

        .tab-btn {
            padding: 0.65rem 1rem;
            font-size: 0.85rem;
        }

        .models-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .model-card {
            padding: 1.25rem;
        }

        .model-rates {
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            padding: 0.75rem;
        }

        .rate-value {
            font-size: 0.85rem;
        }

        .model-specs {
            grid-template-columns: 1fr;
        }

        .model-actions {
            flex-wrap: wrap;
        }

        .model-actions .btn,
        .model-actions form {
            flex: 1 1 auto;
        }

        .model-actions .btn {
            width: 100%;
            justify-content: center;
        }

        .model-actions form {
            display: block !important;
            width: 100%;
        }

        .model-actions form .btn {
            width: 100%;
        }

        .form-card {
            padding: 1.25rem;
            max-width: 100%;
        }

        .form-grid {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .form-actions {
            flex-direction: column;
        }

        .form-actions .btn {
            width: 100%;
            justify-content: center;
            min-height: 44px;
        }

        .btn {
            min-height: 40px;
        }

        .analysis-section {
            padding: 1.25rem;
        }

        .analysis-section h3 {
            font-size: 1.2rem;
        }

        /* Model comparison card selection: single column */
        #tab-compare div[style*="grid-template-columns: repeat(auto-fill, minmax(200px"] {
            grid-template-columns: 1fr !important;
        }

        /* Cost comparison charts: single column */
        #tab-compare div[style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
            grid-template-columns: 1fr !important;
        }

        /* Comparison table -> stacked cards */
        #comparison-table {
            min-width: 0 !important;
        }

        #comparison-table th {
            min-width: 0 !important;
        }

        #comparison-table thead {
            display: none;
        }

        #comparison-table,
        #comparison-table tbody {
            display: block;
            width: 100%;
        }

        #comparison-table tbody tr {
            display: block;
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            padding: 0.5rem;
            background: rgba(0, 0, 0, 0.2);
        }

        #comparison-table tbody tr td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: left;
            padding: 0.6rem 0.75rem;
            position: static !important;
            background: transparent !important;
        }

        #comparison-table tbody tr td[colspan] {
            display: block;
            text-align: right;
        }

        #comparison-table tbody tr td:not([colspan])::before {
            content: attr(data-label);
            color: var(--rx-muted);
            font-weight: 600;
            font-size: 0.8rem;
            margin-left: 1rem;
        }

        /* Analysis AJAX pricing-table -> stacked cards */
        .pricing-table thead {
            display: none;
        }

        .pricing-table,
        .pricing-table tbody {
            display: block;
            width: 100%;
        }

        .pricing-table tbody tr {
            display: block;
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
            border-radius: 12px;
            margin-bottom: 0.75rem;
            padding: 0.5rem;
            background: rgba(0, 0, 0, 0.2);
        }

        .pricing-table tbody tr td {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: left;
            padding: 0.6rem 0.75rem;
            border-top: none !important;
        }

        .pricing-table tbody tr td::before {
            content: attr(data-label);
            color: var(--rx-muted);
            font-weight: 600;
            font-size: 0.8rem;
            margin-left: 1rem;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/PricingModels"] .page-title{
            font-size: 1.2rem;
        }body[data-style-page="/Admin/PricingModels"] .model-rates{
            grid-template-columns: 1fr 1fr;
        }body[data-style-page="/Admin/PricingModels"] .tab-btn{
            padding: 0.6rem 0.85rem;
            font-size: 0.8rem;
        }body[data-style-page="/Admin/PricingModels"] .tab-btn span,body[data-style-page="/Admin/PricingModels"] .tab-btn{
            white-space: nowrap;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/PricingModels"])) .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .tab-navigation{ background: var(--theme-surface-2); border: 1px solid var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .tab-btn:not(.active){ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .tab-btn:not(.active):hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-card:hover{ border-color: var(--theme-accent) !important; box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-card.default{ border-color: rgba(var(--rx-success-rgb), 0.45) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-provider,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .rate-label,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .spec-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-rates,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-specs{ background: var(--theme-surface-2); border: 1px solid var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .spec-item{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-notes{ color: var(--theme-text-2); background: rgba(var(--theme-accent-rgb), .06); border-right-color: var(--theme-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .model-actions,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .form-actions{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .btn-secondary{ background: var(--theme-surface-2); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .analysis-section{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .pricing-table{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .pricing-table .highlight-cell{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .loading{ border-color: rgba(var(--theme-accent-rgb), .25); border-top-color: var(--theme-accent-strong); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/PricingModels"])) .page-wrapper [style*="color: white"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper :is([style*="color: rgba(255, 255, 255, 0.9)"], [style*="color: rgba(255, 255, 255, 0.7)"]){ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper :is([style*="color: rgba(255, 255, 255, 0.6)"], [style*="color: rgba(255, 255, 255, 0.5)"], [style*="color: rgba(255,255,255,0.6)"]){ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="color: rgba(255,255,255,0.3)"]{ color: var(--theme-faint) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="color: #10b981"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper :is([style*="color: #f59e0b"], [style*="color: #fbbf24"]){ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="color: #ec4899"]{ color: #be185d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="background: rgba(0, 0, 0, 0.3)"]{ background: var(--theme-surface-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="background: rgba(255, 255, 255, 0.05)"]{ background: var(--theme-surface) !important; box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="background: rgba(255, 255, 255, 0.1)"]{ background: var(--theme-surface-3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper [style*="background: rgba(15, 23, 42, 0.95)"]{ background: var(--theme-surface) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .page-wrapper :is([style*="border: 1px solid rgba(255, 255, 255, 0.1)"], [style*="border-color: rgba(255, 255, 255, 0.1)"], [style*="border-top: 1px solid rgba(255, 255, 255, 0.1)"]){ border-color: var(--theme-border-soft) !important; }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] #comparison-table tbody tr,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .pricing-table tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] #comparison-table tbody tr td:not([colspan])::before,html.light-theme[data-admin-palette] body[data-style-page="/Admin/PricingModels"] .pricing-table tbody tr td::before{ color: var(--theme-muted); }
    }




/* Comparison table cells and cost charts (rendered by JS) */
body[data-style-page="/Admin/PricingModels"] .pricing-model-rate-cell { padding: 1rem; text-align: center; font-weight: 400; }
body[data-style-page="/Admin/PricingModels"] .pricing-model-rate-cell.is-best { color: var(--rx-success); font-weight: 700; }
body[data-style-page="/Admin/PricingModels"] .pricing-model-rate-cell.is-best-cost { background: var(--rx-success-soft); }
body[data-style-page="/Admin/PricingModels"] .pricing-model-rate-cell.has-rate { color: var(--rx-ink); }
body[data-style-page="/Admin/PricingModels"] .pricing-model-rate-cell.no-rate { color: var(--rx-faint); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-value { font-weight: 700; }
body[data-style-page="/Admin/PricingModels"] .pm-chart-value.is-best { color: var(--rx-success); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-value.is-costly { color: var(--rx-warning); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-value.is-brand { color: var(--rx-accent); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-fill { width: var(--pm-fill, 0%); height: 100%; border-radius: inherit; transition: width .5s; }
body[data-style-page="/Admin/PricingModels"] .pm-chart-fill.is-best { background: var(--rx-success); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-fill.is-costly { background: var(--rx-warning); }
body[data-style-page="/Admin/PricingModels"] .pm-chart-fill.is-brand { background: var(--rx-brand); }
/* Page stylesheet: /Admin/RagPipelineSettings */
body[data-style-page="/Admin/RagPipelineSettings"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/RagPipelineSettings"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/RagPipelineSettings"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/RagPipelineSettings"] .page-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/RagPipelineSettings"] .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/RagPipelineSettings"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .alert-modern{
        border-radius: 16px;
        padding: 1.25rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 600;
        border: 1px solid transparent;
    }body[data-style-page="/Admin/RagPipelineSettings"] .alert-modern i{ font-size: 1.5rem; }body[data-style-page="/Admin/RagPipelineSettings"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/RagPipelineSettings"] .alert-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/RagPipelineSettings"] .alert-warning{
        background: rgba(var(--rx-warning-rgb), 0.15);
        border-color: rgba(var(--rx-warning-rgb), 0.3);
        color: var(--rx-warning);
    }body[data-style-page="/Admin/RagPipelineSettings"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        padding: 2rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .card-title{
        color: var(--rx-ink);
        font-weight: 800;
        font-size: 1.15rem;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .card-title i{
        color: var(--rx-accent);
    }body[data-style-page="/Admin/RagPipelineSettings"] .card-subtitle{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-row{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    @media (max-width: 700px) {body[data-style-page="/Admin/RagPipelineSettings"] .form-row{ grid-template-columns: 1fr; }
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-group{ margin-bottom: 1.5rem; }body[data-style-page="/Admin/RagPipelineSettings"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: .95rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-label i{ color: var(--rx-accent); font-size: 1.05rem; }body[data-style-page="/Admin/RagPipelineSettings"] .form-control,body[data-style-page="/Admin/RagPipelineSettings"] .form-select{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: .85rem 1.1rem;
        font-size: 1rem;
        color: var(--rx-ink);
        transition: all 0.3s ease;
        width: 100%;
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-select option{
        background: var(--rx-surface);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-control:focus,body[data-style-page="/Admin/RagPipelineSettings"] .form-select:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-text{
        display: flex;
        align-items: flex-start;
        gap: 0.4rem;
        color: var(--rx-muted);
        font-size: 0.82rem;
        margin-top: 0.55rem;
        line-height: 1.6;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-text i{ margin-top: 0.15rem; flex-shrink: 0; }body[data-style-page="/Admin/RagPipelineSettings"] .form-text.warn{ color: var(--rx-warning); }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        background: rgba(var(--rx-contrast-rgb), 0.04);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        padding: 1.1rem 1.4rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row .switch-label{
        display: flex;
        flex-direction: column;
        gap: 0.3rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row .switch-label strong{
        color: var(--rx-ink);
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row .switch-label small{
        color: var(--rx-muted);
        font-size: 0.82rem;
        line-height: 1.6;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern{
        display: inline-block;
        direction: ltr;
        position: relative;
        width: 52px;
        height: 30px;
        min-width: 52px;
        flex-shrink: 0;
        margin: 0;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern input[type="checkbox"]{
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        width: 0;
        height: 0;
        margin: 0;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern input[type="hidden"]{
        display: none;
    }body[data-style-page="/Admin/RagPipelineSettings"] .switch-slider{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        cursor: pointer;
        background: rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 30px;
        transition: background-color 0.3s;
    }body[data-style-page="/Admin/RagPipelineSettings"] .switch-slider::before{
        content: '';
        position: absolute;
        height: 22px;
        width: 22px;
        top: 4px;
        left: 4px;
        background: var(--rx-surface);
        border-radius: 50%;
        transition: left 0.3s;
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
    }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider::before{
        left: 26px;
    }body[data-style-page="/Admin/RagPipelineSettings"] .last-updated{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Admin/RagPipelineSettings"] .last-updated-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/RagPipelineSettings"] .last-updated-value{
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
        direction: ltr;
    }body[data-style-page="/Admin/RagPipelineSettings"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/RagPipelineSettings"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4);
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/RagPipelineSettings"] .page-wrapper{ padding: 1.1rem; }body[data-style-page="/Admin/RagPipelineSettings"] .header-left h1{
            font-size: 1.5rem;
            gap: 0.5rem;
        }body[data-style-page="/Admin/RagPipelineSettings"] .header-left p{ font-size: 0.9rem; }body[data-style-page="/Admin/RagPipelineSettings"] .glass-card{
            padding: 1.25rem;
            border-radius: 18px;
            margin-bottom: 1.1rem;
        }body[data-style-page="/Admin/RagPipelineSettings"] .card-title{ font-size: 1.05rem; }body[data-style-page="/Admin/RagPipelineSettings"] .form-row{ gap: 1.1rem; }body[data-style-page="/Admin/RagPipelineSettings"] .form-group{ margin-bottom: 1.1rem; }body[data-style-page="/Admin/RagPipelineSettings"] .form-control,body[data-style-page="/Admin/RagPipelineSettings"] .form-select{
            padding: .8rem 1rem;
            min-height: 44px;
        }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row{
            flex-wrap: wrap;
            padding: 1rem 1.1rem;
            gap: 0.85rem;
        }body[data-style-page="/Admin/RagPipelineSettings"] .switch-row .switch-label{ min-width: 100%; order: 1; }body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern{ order: 2; }body[data-style-page="/Admin/RagPipelineSettings"] .last-updated{
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: .9rem 1.1rem;
        }body[data-style-page="/Admin/RagPipelineSettings"] .btn-primary{
            width: 100%;
            justify-content: center;
            padding: 1rem 1.5rem;
            min-height: 44px;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/RagPipelineSettings"] .page-wrapper{ padding: 0.85rem; }body[data-style-page="/Admin/RagPipelineSettings"] .header-left h1{ font-size: 1.3rem; }body[data-style-page="/Admin/RagPipelineSettings"] .glass-card{ padding: 1rem; border-radius: 16px; }body[data-style-page="/Admin/RagPipelineSettings"] .alert-modern{
            padding: 1rem 1.1rem;
            flex-direction: column;
            align-items: flex-start;
        }body[data-style-page="/Admin/RagPipelineSettings"] .form-group[style*="max-width"]{ max-width: 100% !important; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/RagPipelineSettings"])) .header-left h1 i{ background-image: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .alert-modern > span{ color: inherit !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .alert-modern.alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/RagPipelineSettings"])) .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .form-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .form-text.warn{ color: var(--rx-warning) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .switch-slider{ background: rgba(15, 23, 42, .18); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .switch-slider::before{ box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/RagPipelineSettings"] .form-switch-modern input[type="checkbox"]:checked ~ .switch-slider{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }



/* Page stylesheet: /Admin/Requests/Index */
body[data-style-page="/Admin/Requests/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Requests/Index"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/Requests/Index"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Requests/Index"] .page-container{
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/Requests/Index"] /* Header */
    .page-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/Requests/Index"] .page-header-content h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Requests/Index"] .page-header-content h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Requests/Index"] .page-header-content p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/Requests/Index"] .total-badge{
        background: rgba(var(--rx-contrast-rgb), 0.08);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        padding: 0.6rem 1.25rem;
        border-radius: 30px;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.95rem;
    }body[data-style-page="/Admin/Requests/Index"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/Requests/Index"] .card-header-row{
        padding: 1.25rem 1.75rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/Requests/Index"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.1rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/Requests/Index"] .card-title i{
        font-size: 1.2rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Requests/Index"] .card-body{
        padding: 1.5rem 1.75rem;
    }body[data-style-page="/Admin/Requests/Index"] /* Filters */
    .filters-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        align-items: end;
    }body[data-style-page="/Admin/Requests/Index"] .filter-group{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Requests/Index"] .filter-label{
        color: var(--rx-ink-soft);
        font-size: 0.85rem;
        font-weight: 600;
    }body[data-style-page="/Admin/Requests/Index"] .form-control,body[data-style-page="/Admin/Requests/Index"] .form-select{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        color: var(--rx-ink);
        width: 100%;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Requests/Index"] .form-select option{
        background: var(--rx-surface);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Requests/Index"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Admin/Requests/Index"] .form-control:focus,body[data-style-page="/Admin/Requests/Index"] .form-select:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/Requests/Index"] .ltr-input{
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/Requests/Index"] .filter-buttons{
        display: flex;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Requests/Index"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border: none;
        border-radius: 12px;
        padding: 0.7rem 1.25rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Requests/Index"] .btn-primary:hover{
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Admin/Requests/Index"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 12px;
        padding: 0.7rem 1.25rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Requests/Index"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/Requests/Index"] /* Table */
    .table-card .card-body{
        padding: 0;
    }body[data-style-page="/Admin/Requests/Index"] .table-wrapper{
        overflow-x: auto;
    }body[data-style-page="/Admin/Requests/Index"] .data-table{
        width: 100%;
        border-collapse: collapse;
    }body[data-style-page="/Admin/Requests/Index"] .data-table th{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        padding: 1rem 1.25rem;
        text-align: right;
        color: var(--rx-ink-soft);
        font-weight: 700;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/Requests/Index"] .data-table td{
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        vertical-align: middle;
    }body[data-style-page="/Admin/Requests/Index"] .data-table tbody tr:hover{
        background: rgba(var(--rx-contrast-rgb), 0.03);
    }body[data-style-page="/Admin/Requests/Index"] .data-table tbody tr:last-child td{
        border-bottom: none;
    }body[data-style-page="/Admin/Requests/Index"] .endpoint-link{
        color: var(--rx-accent);
        text-decoration: none;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }body[data-style-page="/Admin/Requests/Index"] .endpoint-link:hover{
        color: var(--rx-accent);
        text-decoration: underline;
    }body[data-style-page="/Admin/Requests/Index"] .method-badge{
        padding: 0.3rem 0.7rem;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 700;
        font-family: var(--rx-font-mono) !important;
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Requests/Index"] .status-badge{
        padding: 0.35rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
    }body[data-style-page="/Admin/Requests/Index"] .status-200{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Requests/Index"] .status-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/Requests/Index"] .empty-state{
        text-align: center;
        padding: 3rem;
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Requests/Index"] .empty-state i{
        font-size: 3rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }body[data-style-page="/Admin/Requests/Index"] /* Pagination */
    .pagination-wrapper{
        display: flex;
        justify-content: center;
        padding: 1.25rem;
        background: rgba(var(--rx-contrast-rgb), 0.02);
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Admin/Requests/Index"] .pagination-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }body[data-style-page="/Admin/Requests/Index"] .pagination{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
    }body[data-style-page="/Admin/Requests/Index"] .page-link{
        display: flex;
        align-items: center;
        gap: 0.3rem;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink-soft);
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        min-width: 40px;
        justify-content: center;
    }body[data-style-page="/Admin/Requests/Index"] a.page-link:hover{
        background: rgba(var(--rx-accent-rgb), 0.2);
        border-color: rgba(var(--rx-accent-rgb), 0.4);
        color: var(--rx-ink);
        transform: translateY(-1px);
    }body[data-style-page="/Admin/Requests/Index"] .page-item.active .page-link{
        background: linear-gradient(135deg, var(--rx-brand) 0%, var(--rx-brand) 100%);
        border-color: var(--rx-accent);
        color: var(--rx-on-brand);
        box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/Requests/Index"] .page-item.disabled .page-link{
        opacity: 0.4;
        cursor: not-allowed;
        pointer-events: none;
        background: rgba(var(--rx-contrast-rgb), 0.02);
    }body[data-style-page="/Admin/Requests/Index"] .page-info-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Requests/Index"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Requests/Index"] .page-header{
            flex-direction: column;
            align-items: flex-start;
        }body[data-style-page="/Admin/Requests/Index"] .page-header-content h1{
            font-size: 1.6rem;
        }body[data-style-page="/Admin/Requests/Index"] .card-header-row{
            padding: 1rem 1.25rem;
        }body[data-style-page="/Admin/Requests/Index"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/Requests/Index"] .filters-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/Requests/Index"] .form-control,body[data-style-page="/Admin/Requests/Index"] .form-select{
            min-height: 44px;
        }body[data-style-page="/Admin/Requests/Index"] .filter-buttons{
            flex-direction: column;
        }body[data-style-page="/Admin/Requests/Index"] .btn-primary,body[data-style-page="/Admin/Requests/Index"] .btn-secondary{
            width: 100%;
            justify-content: center;
            min-height: 44px;
            display: flex;
            align-items: center;
        }body[data-style-page="/Admin/Requests/Index"] /* Table -> Cards */
        .table-wrapper{
            overflow-x: visible;
        }body[data-style-page="/Admin/Requests/Index"] .data-table,body[data-style-page="/Admin/Requests/Index"] .data-table thead,body[data-style-page="/Admin/Requests/Index"] .data-table tbody,body[data-style-page="/Admin/Requests/Index"] .data-table tr,body[data-style-page="/Admin/Requests/Index"] .data-table td{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/Requests/Index"] .data-table thead{
            display: none;
        }body[data-style-page="/Admin/Requests/Index"] .data-table tbody tr{
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 16px;
            padding: 0.75rem 1rem;
            margin-bottom: 0.9rem;
        }body[data-style-page="/Admin/Requests/Index"] .data-table tbody tr:last-child{
            margin-bottom: 0;
        }body[data-style-page="/Admin/Requests/Index"] .data-table td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.6rem 0.25rem;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
            text-align: left;
        }body[data-style-page="/Admin/Requests/Index"] .data-table td:last-child{
            border-bottom: none;
        }body[data-style-page="/Admin/Requests/Index"] .data-table td::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-weight: 700;
            font-size: 0.8rem;
            flex-shrink: 0;
        }body[data-style-page="/Admin/Requests/Index"] .data-table td.empty-state-cell{
            display: block;
            text-align: center;
        }body[data-style-page="/Admin/Requests/Index"] .data-table td.empty-state-cell::before{
            content: none;
        }body[data-style-page="/Admin/Requests/Index"] .endpoint-link{
            word-break: break-all;
            text-align: left;
        }body[data-style-page="/Admin/Requests/Index"] .pagination{
            gap: 0.3rem;
        }body[data-style-page="/Admin/Requests/Index"] .page-link{
            padding: 0.4rem 0.5rem;
            font-size: 0.8rem;
            min-width: 35px;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Requests/Index"])) .total-badge{ background: var(--theme-surface); border-color: var(--theme-border); color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .total-badge i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .card-header-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .btn-secondary{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .btn-secondary:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .data-table th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .endpoint-link,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .endpoint-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .method-badge{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .status-200{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .status-error{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .pagination-wrapper{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .page-info-text{ color: var(--theme-muted); }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .data-table tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Requests/Index"] .data-table td::before{ color: var(--theme-muted); }
    }



/* Page stylesheet: /Admin/Surveys/Index */
body[data-style-page="/Admin/Surveys/Index"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/Admin/Surveys/Index"] .page-wrapper{ min-height: 100vh; background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%); padding: 2rem; }body[data-style-page="/Admin/Surveys/Index"] .page-container{ max-width: 1200px; margin: 0 auto; }body[data-style-page="/Admin/Surveys/Index"] .page-header{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }body[data-style-page="/Admin/Surveys/Index"] .page-header h1{ font-size: 1.6rem; font-weight: 900; color: var(--rx-ink); margin: 0; }body[data-style-page="/Admin/Surveys/Index"] .search-form{ display: flex; gap: .5rem; }body[data-style-page="/Admin/Surveys/Index"] .search-form input{
        background: rgba(var(--rx-surface-rgb), 0.6); border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); border-radius: 8px;
        padding: .55rem .85rem; color: var(--rx-ink); font-size: .85rem;
    }body[data-style-page="/Admin/Surveys/Index"] .search-form button{
        background: rgba(var(--rx-accent-rgb), 0.2); border: 1px solid rgba(153, 246, 228,.3); color: var(--rx-accent);
        border-radius: 8px; padding: .55rem 1rem; font-size: .85rem; font-weight: 700; cursor: pointer;
    }body[data-style-page="/Admin/Surveys/Index"] .panel{ background: rgba(var(--rx-surface-rgb), 0.86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 8px; overflow: hidden; }body[data-style-page="/Admin/Surveys/Index"] table.surveys-table{ width: 100%; border-collapse: collapse; }body[data-style-page="/Admin/Surveys/Index"] table.surveys-table th,body[data-style-page="/Admin/Surveys/Index"] table.surveys-table td{ padding: .75rem 1rem; text-align: right; font-size: .85rem; }body[data-style-page="/Admin/Surveys/Index"] table.surveys-table th{ color: var(--rx-muted); border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.126); font-weight: 700; }body[data-style-page="/Admin/Surveys/Index"] table.surveys-table td{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056); color: var(--rx-ink); }body[data-style-page="/Admin/Surveys/Index"] .score-emoji{ font-size: 1.3rem; }body[data-style-page="/Admin/Surveys/Index"] .src-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }body[data-style-page="/Admin/Surveys/Index"] .src-badge.ai{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); }body[data-style-page="/Admin/Surveys/Index"] .src-badge.livechat{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/Admin/Surveys/Index"] .comment-cell{ color: var(--rx-muted); max-width: 320px; }body[data-style-page="/Admin/Surveys/Index"] .kb-cell a{ color: var(--rx-accent); text-decoration: none; font-weight: 700; }body[data-style-page="/Admin/Surveys/Index"] .empty-state{ padding: 3rem 1rem; text-align: center; color: var(--rx-muted); }body[data-style-page="/Admin/Surveys/Index"] .pager{ display: flex; justify-content: center; gap: .5rem; padding: 1rem; }body[data-style-page="/Admin/Surveys/Index"] .pager a{ color: var(--rx-muted); text-decoration: none; padding: .4rem .8rem; border-radius: 6px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); font-size: .82rem; }body[data-style-page="/Admin/Surveys/Index"] .pager a.active{ background: rgba(var(--rx-accent-rgb), 0.18); color: var(--rx-accent); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Surveys/Index"])) .src-badge.ai{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .src-badge.livechat{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .comment-cell{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .kb-cell a{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .pager a{ color: var(--theme-muted); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .pager a:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Surveys/Index"] .pager a.active{ background: var(--theme-hover); color: var(--theme-accent-strong); border-color: var(--theme-border); }



/* Page stylesheet: /Admin/Transactions/Index */
body[data-style-page="/Admin/Transactions/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-container{
        max-width: 1400px;
        margin: 0 auto;
    }body[data-style-page="/Admin/Transactions/Index"] .page-header{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        padding: 2rem;
        margin-bottom: 2rem;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }body[data-style-page="/Admin/Transactions/Index"] .page-title{
        font-size: 2rem;
        font-weight: 700;
        color: var(--rx-ink) !important;
        margin: 0;
    }body[data-style-page="/Admin/Transactions/Index"] .stats-row{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/Transactions/Index"] .stat-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        border-radius: 1rem;
        padding: 1.5rem;
        text-align: center;
    }body[data-style-page="/Admin/Transactions/Index"] .stat-value{
        font-size: 2rem;
        font-weight: 700;
        color: var(--rx-accent);
        display: block;
        margin-bottom: 0.5rem;
    }body[data-style-page="/Admin/Transactions/Index"] .stat-label{
        font-size: 0.875rem;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border-radius: 1.5rem;
        overflow: hidden;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Admin/Transactions/Index"] .table-wrapper{
        overflow-x: auto;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table table{
        width: 100%;
        border-collapse: collapse;
        min-width: 1000px;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table thead{
        background: rgba(var(--rx-accent-rgb), 0.1);
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table th{
        padding: 1rem 1.25rem;
        text-align: right;
        color: var(--rx-accent);
        font-weight: 600;
        font-size: 0.875rem;
        white-space: nowrap;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table td{
        padding: 1rem 1.25rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        font-size: 0.875rem;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr{
        transition: all 0.2s;
    }body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr:hover{
        background: rgba(var(--rx-accent-rgb), 0.05);
    }body[data-style-page="/Admin/Transactions/Index"] .status-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.375rem 0.75rem;
        border-radius: 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }body[data-style-page="/Admin/Transactions/Index"] .status-badge.success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Admin/Transactions/Index"] .status-badge.failed{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Admin/Transactions/Index"] .status-badge.pending{
        background: rgba(var(--rx-warning-rgb), 0.15);
        color: var(--rx-warning);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Admin/Transactions/Index"] .amount-cell{
        font-family: var(--rx-font-mono) !important;
        font-weight: 600;
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Transactions/Index"] .user-info{
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }body[data-style-page="/Admin/Transactions/Index"] .user-email{
        font-size: 0.875rem;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Admin/Transactions/Index"] .user-name{
        font-size: 0.75rem;
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Transactions/Index"] .pagination{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 2rem 1rem;
    }body[data-style-page="/Admin/Transactions/Index"] .pagination a,body[data-style-page="/Admin/Transactions/Index"] .pagination span{
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        text-decoration: none;
        transition: all 0.2s;
        font-weight: 600;
    }body[data-style-page="/Admin/Transactions/Index"] .pagination a{
        background: rgba(var(--rx-accent-rgb), 0.1);
        color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Admin/Transactions/Index"] .pagination a:hover{
        background: rgba(var(--rx-accent-rgb), 0.2);
        border-color: rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Admin/Transactions/Index"] .pagination .active{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Admin/Transactions/Index"] .pagination .disabled{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        color: var(--rx-faint);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        cursor: not-allowed;
    }body[data-style-page="/Admin/Transactions/Index"] .empty-state{
        text-align: center;
        padding: 4rem 2rem;
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Transactions/Index"] .empty-icon{
        font-size: 4rem;
        color: var(--rx-faint);
        margin-bottom: 1rem;
    }body[data-style-page="/Admin/Transactions/Index"] .refid-cell{
        font-family: var(--rx-font-mono) !important;
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Admin/Transactions/Index"] .api-key-badge{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.25rem 0.5rem;
        border-radius: 0.375rem;
        font-size: 0.75rem;
        font-weight: 600;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Transactions/Index"] .transactions-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Transactions/Index"] .page-header{
            flex-direction: column;
            gap: 1rem;
            align-items: flex-start;
            padding: 1.25rem;
            border-radius: 1rem;
        }body[data-style-page="/Admin/Transactions/Index"] .page-title{
            font-size: 1.375rem;
        }body[data-style-page="/Admin/Transactions/Index"] .stats-row{
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }body[data-style-page="/Admin/Transactions/Index"] .stat-card{
            padding: 1rem;
            border-radius: 0.75rem;
        }body[data-style-page="/Admin/Transactions/Index"] .stat-value{
            font-size: 1.5rem;
        }body[data-style-page="/Admin/Transactions/Index"] /* Card-based table layout */
        .transactions-table table{
            min-width: 0;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table thead{
            display: none;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table .table-wrapper{
            overflow-x: visible;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table table,body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody,body[data-style-page="/Admin/Transactions/Index"] .transactions-table tr,body[data-style-page="/Admin/Transactions/Index"] .transactions-table td{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr{
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
            border-radius: 1rem;
            padding: 0.5rem 1rem;
            margin: 0.75rem 0;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody{
            padding: 0 0.75rem;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr:hover{
            background: rgba(var(--rx-contrast-rgb), 0.03);
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.75rem 0;
            border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            text-align: left;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table td:first-child{
            border-top: none;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table td::before{
            content: attr(data-label);
            color: var(--rx-accent);
            font-weight: 600;
            font-size: 0.8rem;
            white-space: nowrap;
            flex-shrink: 0;
        }body[data-style-page="/Admin/Transactions/Index"] .transactions-table td[data-label="شناسه"]{
            font-size: 0.75rem;
            color: var(--rx-muted);
        }body[data-style-page="/Admin/Transactions/Index"] .user-info{
            align-items: flex-end;
        }body[data-style-page="/Admin/Transactions/Index"] .pagination{
            padding: 1.5rem 0.5rem;
            flex-wrap: wrap;
        }body[data-style-page="/Admin/Transactions/Index"] .pagination a,body[data-style-page="/Admin/Transactions/Index"] .pagination span{
            padding: 0.5rem 0.85rem;
            min-height: 44px;
            min-width: 44px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/Transactions/Index"] .stats-row{
            grid-template-columns: 1fr;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Transactions/Index"])) .page-header,
html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table{ background: var(--theme-surface); border-color: var(--theme-border); box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .stat-label,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .user-name,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .empty-icon{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .user-email{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .amount-cell{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .status-badge.success{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .status-badge.failed{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .status-badge.pending{ background: rgba(var(--rx-warning-rgb), 0.1); color: var(--rx-warning); border-color: rgba(var(--rx-warning-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .pagination .disabled{ background: var(--theme-surface-2); color: var(--theme-faint); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table [style*="color: rgba(255, 255, 255, 0.5)"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table [style*="color: rgba(255, 255, 255, 0.3)"]{ color: var(--theme-faint) !important; }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table tbody tr:hover{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Transactions/Index"] .transactions-table td::before{ color: var(--theme-accent-strong); }
    }



/* Page stylesheet: /Admin/UpdateQuota */
body[data-style-page="/Admin/UpdateQuota"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/UpdateQuota"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/UpdateQuota"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/UpdateQuota"] .page-container{
        max-width: 1100px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/UpdateQuota"] /* Header */
    .page-header{
        margin-bottom: 2rem;
    }body[data-style-page="/Admin/UpdateQuota"] .page-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/UpdateQuota"] .page-header h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/UpdateQuota"] .page-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/UpdateQuota"] /* Layout */
    .content-grid{
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 1.5rem;
        align-items: start;
    }body[data-style-page="/Admin/UpdateQuota"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/UpdateQuota"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/UpdateQuota"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/UpdateQuota"] .card-title i{
        font-size: 1.25rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/UpdateQuota"] .card-body{
        padding: 2rem;
    }body[data-style-page="/Admin/UpdateQuota"] /* User Info */
    .user-info-grid{
        display: grid;
        gap: 1.25rem;
    }body[data-style-page="/Admin/UpdateQuota"] .info-row{
        display: flex;
        align-items: center;
        gap: 1rem;
    }body[data-style-page="/Admin/UpdateQuota"] .info-label{
        color: var(--rx-muted);
        font-weight: 600;
        font-size: 0.9rem;
        min-width: 100px;
    }body[data-style-page="/Admin/UpdateQuota"] .info-value{
        color: var(--rx-ink);
        font-weight: 600;
    }body[data-style-page="/Admin/UpdateQuota"] .api-key-code{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 10px;
        padding: 0.5rem 0.85rem;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.8rem;
        color: var(--rx-accent);
        direction: ltr;
    }body[data-style-page="/Admin/UpdateQuota"] .status-badge{
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }body[data-style-page="/Admin/UpdateQuota"] .status-badge.success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/UpdateQuota"] .status-badge.danger{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/UpdateQuota"] /* Form */
    .form-group{
        margin-bottom: 1.5rem;
    }body[data-style-page="/Admin/UpdateQuota"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Admin/UpdateQuota"] .form-label i{
        color: var(--rx-accent);
    }body[data-style-page="/Admin/UpdateQuota"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--rx-ink);
        width: 100%;
        transition: all 0.3s ease;
        direction: ltr;
        text-align: center;
    }body[data-style-page="/Admin/UpdateQuota"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
        background: rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Admin/UpdateQuota"] .form-text{
        display: flex;
        align-items: center;
        gap: 0.4rem;
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }body[data-style-page="/Admin/UpdateQuota"] .text-danger{
        color: var(--rx-danger) !important;
    }body[data-style-page="/Admin/UpdateQuota"] /* Divider */
    .divider{
        height: 1px;
        background: rgba(var(--rx-contrast-rgb), 0.1);
        margin: 1.5rem 0;
    }body[data-style-page="/Admin/UpdateQuota"] /* Buttons */
    .btn-group{
        display: flex;
        gap: 1rem;
    }body[data-style-page="/Admin/UpdateQuota"] .btn-primary{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        border: none;
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/UpdateQuota"] .btn-primary:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(var(--rx-success-rgb), 0.4);
    }body[data-style-page="/Admin/UpdateQuota"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 14px;
        padding: 1rem 2rem;
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/UpdateQuota"] .btn-secondary:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Admin/UpdateQuota"] /* Info Card */
    .info-card{
        background: rgba(var(--rx-info-rgb), 0.1);
        border: 1px solid rgba(var(--rx-info-rgb), 0.2);
    }body[data-style-page="/Admin/UpdateQuota"] .info-card .card-header-row{
        border-bottom-color: rgba(var(--rx-info-rgb), 0.2);
    }body[data-style-page="/Admin/UpdateQuota"] .info-card .card-title i{
        background: none;
        -webkit-text-fill-color: var(--rx-info);
        color: var(--rx-info);
    }body[data-style-page="/Admin/UpdateQuota"] .info-list{
        list-style: none;
        padding: 0;
        margin: 0;
    }body[data-style-page="/Admin/UpdateQuota"] .info-list li{
        color: var(--rx-ink-soft);
        padding: 0.6rem 0;
        font-size: 0.9rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }body[data-style-page="/Admin/UpdateQuota"] .info-list li i{
        color: var(--rx-info);
        margin-top: 0.15rem;
    }

    @media (max-width: 900px) {body[data-style-page="/Admin/UpdateQuota"] .content-grid{
            grid-template-columns: 1fr;
        }body[data-style-page="/Admin/UpdateQuota"] .page-header h1{
            font-size: 1.75rem;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/UpdateQuota"] .page-wrapper{
            padding: 1.25rem;
        }body[data-style-page="/Admin/UpdateQuota"] .page-header h1{
            font-size: 1.5rem;
            gap: 0.6rem;
        }body[data-style-page="/Admin/UpdateQuota"] .page-header p{
            font-size: 0.9rem;
        }body[data-style-page="/Admin/UpdateQuota"] .card-header-row{
            padding: 1.1rem 1.25rem;
        }body[data-style-page="/Admin/UpdateQuota"] .card-body{
            padding: 1.25rem;
        }body[data-style-page="/Admin/UpdateQuota"] .user-info-grid{
            gap: 1rem;
        }body[data-style-page="/Admin/UpdateQuota"] .info-row{
            flex-wrap: wrap;
            gap: 0.5rem;
        }body[data-style-page="/Admin/UpdateQuota"] .info-label{
            min-width: unset;
            width: 100%;
        }body[data-style-page="/Admin/UpdateQuota"] .api-key-code{
            width: 100%;
            box-sizing: border-box;
            overflow-x: auto;
            white-space: nowrap;
        }body[data-style-page="/Admin/UpdateQuota"] .btn-group{
            flex-direction: column;
        }body[data-style-page="/Admin/UpdateQuota"] .btn-primary,body[data-style-page="/Admin/UpdateQuota"] .btn-secondary{
            width: 100%;
            justify-content: center;
            box-sizing: border-box;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/UpdateQuota"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/UpdateQuota"] .page-header h1{
            font-size: 1.3rem;
        }body[data-style-page="/Admin/UpdateQuota"] .card-header-row{
            padding: 1rem;
        }body[data-style-page="/Admin/UpdateQuota"] .card-body{
            padding: 1rem;
        }body[data-style-page="/Admin/UpdateQuota"] .card-title{
            font-size: 1.05rem;
        }body[data-style-page="/Admin/UpdateQuota"] .form-control{
            font-size: 1.1rem;
            padding: 0.85rem 1rem;
        }body[data-style-page="/Admin/UpdateQuota"] .btn-primary,body[data-style-page="/Admin/UpdateQuota"] .btn-secondary{
            padding: 0.85rem 1.5rem;
            min-height: 44px;
        }body[data-style-page="/Admin/UpdateQuota"] .status-badge{
            font-size: 0.8rem;
            padding: 0.4rem 0.85rem;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/UpdateQuota"])) .page-header h1 i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)) !important; -webkit-background-clip: text !important; background-clip: text !important; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/UpdateQuota"])) .card-title i{ -webkit-text-fill-color: var(--theme-accent) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .form-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .status-badge.success{ background: rgba(var(--rx-success-rgb), 0.12); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .status-badge.danger{ background: rgba(var(--rx-danger-rgb), 0.1); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .form-group .text-danger{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .info-value [style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .info-card .card-header-row{ border-bottom-color: rgba(var(--rx-info-rgb), 0.25) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/UpdateQuota"] .info-list li i{ color: var(--rx-accent); }



/* Page stylesheet: /Admin/Subscriptions */
body[data-style-page="/Admin/Subscriptions"] *{font-family: var(--rx-font) !important;}
body[data-style-page="/Admin/Subscriptions"] .adm-wrapper{min-height:100vh; padding:2rem; background:linear-gradient(180deg,var(--rx-page) 0%,var(--rx-surface) 50%,var(--rx-page) 100%);}
body[data-style-page="/Admin/Subscriptions"] .adm-container{max-width:1240px; margin:0 auto;}
body[data-style-page="/Admin/Subscriptions"] .adm-head h1{font-size:1.7rem; font-weight:900; color:var(--rx-ink); margin:0 0 .3rem; display:flex; align-items:center; gap:.6rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-head h1 i{color:var(--rx-brand);}
body[data-style-page="/Admin/Subscriptions"] .adm-head p{color:var(--rx-ink-soft); margin:0 0 1.2rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-alert{display:flex; gap:.6rem; align-items:center; padding:.9rem 1.2rem; border-radius:12px; margin-bottom:1rem; font-weight:700;}
body[data-style-page="/Admin/Subscriptions"] .adm-alert.ok{background:var(--rx-success-soft); color:var(--rx-success); border:1px solid rgba(var(--rx-success-rgb),.3);}
body[data-style-page="/Admin/Subscriptions"] .adm-alert.bad{background:var(--rx-danger-soft); color:var(--rx-danger); border:1px solid rgba(var(--rx-danger-rgb),.3);}
body[data-style-page="/Admin/Subscriptions"] .adm-card{padding:1.4rem 1.5rem; margin-bottom:1.2rem; border-radius:18px; background:rgba(var(--rx-surface-rgb),.9); border:1px solid var(--rx-line); box-shadow:var(--rx-shadow-panel);}
body[data-style-page="/Admin/Subscriptions"] .adm-card h2{font-size:1.1rem; font-weight:800; margin:0 0 1rem; color:var(--rx-ink); display:flex; align-items:center; gap:.5rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-card h2 i{color:var(--rx-brand);}
body[data-style-page="/Admin/Subscriptions"] .adm-hint{color:var(--rx-muted); font-size:.86rem; line-height:1.9; margin:.7rem 0 0;}
body[data-style-page="/Admin/Subscriptions"] .adm-form{display:flex; flex-wrap:wrap; gap:.9rem 1rem; align-items:flex-end;}
body[data-style-page="/Admin/Subscriptions"] .adm-form label,body[data-style-page="/Admin/Subscriptions"] .adm-fields label{display:flex; flex-direction:column; gap:.3rem; font-size:.84rem; font-weight:700; color:var(--rx-ink-soft); min-width:170px;}
body[data-style-page="/Admin/Subscriptions"] .adm-form label small{font-weight:500; color:var(--rx-muted);}
body[data-style-page="/Admin/Subscriptions"] .adm-form label.grow,body[data-style-page="/Admin/Subscriptions"] .adm-fields label.grow{flex:1 1 260px;}
body[data-style-page="/Admin/Subscriptions"] .adm-form label.check{flex-direction:row; align-items:center; min-width:0;}
body[data-style-page="/Admin/Subscriptions"] .adm-card input[type=text],body[data-style-page="/Admin/Subscriptions"] .adm-card input[type=number],body[data-style-page="/Admin/Subscriptions"] .adm-card select{padding:.5rem .7rem; border-radius:9px; border:1px solid var(--rx-line-input); background:var(--rx-input); color:var(--rx-ink);}
body[data-style-page="/Admin/Subscriptions"] .adm-btn{display:inline-flex; align-items:center; gap:.4rem; padding:.55rem 1.1rem; border-radius:10px; border:1px solid var(--rx-line-strong); background:var(--rx-surface); color:var(--rx-ink); font-weight:800; cursor:pointer;}
body[data-style-page="/Admin/Subscriptions"] .adm-btn.primary{background:var(--rx-brand); color:var(--rx-on-brand); border-color:var(--rx-brand);}
body[data-style-page="/Admin/Subscriptions"] .adm-btn.danger{color:var(--rx-danger); border-color:rgba(var(--rx-danger-rgb),.4);}
body[data-style-page="/Admin/Subscriptions"] .adm-btn.sm{padding:.3rem .8rem; font-size:.82rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-tablew{overflow-x:auto;}
body[data-style-page="/Admin/Subscriptions"] .adm-table{width:100%; border-collapse:collapse; min-width:980px;}
body[data-style-page="/Admin/Subscriptions"] .adm-table th,body[data-style-page="/Admin/Subscriptions"] .adm-table td{padding:.65rem .7rem; text-align:start; border-bottom:1px solid var(--rx-line); font-size:.9rem; color:var(--rx-ink-soft);}
body[data-style-page="/Admin/Subscriptions"] .adm-table th{color:var(--rx-ink); font-weight:800; background:rgba(var(--rx-contrast-rgb),.04);}
body[data-style-page="/Admin/Subscriptions"] .adm-table td.act{white-space:nowrap;}
body[data-style-page="/Admin/Subscriptions"] .adm-table form.inline{display:inline-flex; gap:.4rem; align-items:center; margin-inline-end:.4rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-table form.inline input{width:64px; padding:.25rem .4rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-pill{display:inline-block; padding:.15rem .7rem; border-radius:99px; font-size:.78rem; font-weight:800;}
body[data-style-page="/Admin/Subscriptions"] .adm-pill.ok{background:var(--rx-success-soft); color:var(--rx-success);}
body[data-style-page="/Admin/Subscriptions"] .adm-pill.warn{background:var(--rx-warning-soft); color:var(--rx-warning);}
body[data-style-page="/Admin/Subscriptions"] .adm-pill.bad{background:var(--rx-danger-soft); color:var(--rx-danger);}
body[data-style-page="/Admin/Subscriptions"] .adm-plan{padding:1rem 0 1.2rem; border-top:1px dashed var(--rx-line);}
body[data-style-page="/Admin/Subscriptions"] .adm-plan-head{display:flex; gap:.7rem; align-items:center; margin-bottom:.7rem; color:var(--rx-ink); font-size:1.05rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-plan-head code{color:var(--rx-muted);}
body[data-style-page="/Admin/Subscriptions"] .adm-fields{display:flex; flex-wrap:wrap; gap:.8rem 1rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-fields label{min-width:150px; flex:1 1 150px;}
body[data-style-page="/Admin/Subscriptions"] .adm-checks{display:flex; flex-wrap:wrap; gap:.7rem 1.2rem; align-items:center; margin-top:.8rem;}
body[data-style-page="/Admin/Subscriptions"] .adm-checks label{display:flex; gap:.4rem; align-items:center; font-size:.88rem; color:var(--rx-ink-soft);}
body[data-style-page="/Admin/Subscriptions"] .adm-checks .inline-hint{margin:0; margin-inline-start:auto;}
@media (max-width:760px){body[data-style-page="/Admin/Subscriptions"] .adm-wrapper{padding:1rem;}}
/* Page stylesheet: /Admin/Users */
body[data-style-page="/Admin/Users"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Admin/Users"] .page-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Admin/Users"] .page-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Admin/Users"] .page-container{
        max-width: 1500px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Admin/Users"] /* Header */
    .page-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/Users"] .header-left h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Users"] .header-left h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Users"] .header-left p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Admin/Users"] .header-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        padding: 0.6rem 1.25rem;
        border-radius: 50px;
        font-size: 0.9rem;
        font-weight: 700;
    }body[data-style-page="/Admin/Users"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Admin/Users"] .card-header-row{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Admin/Users"] .card-title{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
    }body[data-style-page="/Admin/Users"] .card-title i{
        font-size: 1.35rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Admin/Users"] /* Table */
    .modern-table{
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }body[data-style-page="/Admin/Users"] .modern-table thead th{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        color: var(--rx-ink-soft);
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        text-align: right;
    }body[data-style-page="/Admin/Users"] .modern-table tbody tr{
        transition: all 0.2s ease;
    }body[data-style-page="/Admin/Users"] .modern-table tbody tr:hover{
        background: rgba(var(--rx-contrast-rgb), 0.03);
    }body[data-style-page="/Admin/Users"] .modern-table tbody td{
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        vertical-align: middle;
    }body[data-style-page="/Admin/Users"] .user-cell{
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Admin/Users"] .user-avatar{
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--rx-on-brand);
        font-weight: 700;
        font-size: 0.95rem;
    }body[data-style-page="/Admin/Users"] .api-key-code{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 8px;
        padding: 0.4rem 0.75rem;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.75rem;
        color: var(--rx-accent);
        direction: ltr;
        display: inline-block;
    }body[data-style-page="/Admin/Users"] .status-badge{
        padding: 0.4rem 0.85rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }body[data-style-page="/Admin/Users"] .status-badge.success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Users"] .status-badge.danger{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/Users"] /* Role badges: Admin/Operator are staff accounts (accent), a plain tenant carries no
       Identity role at all and shows a muted neutral badge instead. */
    .status-badge.role-admin{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Users"] .status-badge.role-operator{
        background: rgba(var(--rx-info-rgb), 0.15);
        color: var(--rx-info);
    }body[data-style-page="/Admin/Users"] .status-badge.role-none{
        background: rgba(var(--rx-contrast-rgb), 0.084);
        color: var(--rx-muted);
    }body[data-style-page="/Admin/Users"] .btn-action{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.8rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Users"] .btn-action:hover{
        background: rgba(var(--rx-accent-rgb), 0.25);
        color: var(--rx-accent);
        transform: translateY(-2px);
    }body[data-style-page="/Admin/Users"] /* Pagination */
    .pagination-wrapper{
        padding: 1.25rem 2rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        display: flex;
        justify-content: center;
    }body[data-style-page="/Admin/Users"] .pagination{
        display: flex;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }body[data-style-page="/Admin/Users"] .pagination .page-item .page-link{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink-soft);
        padding: 0.5rem 0.85rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Admin/Users"] .pagination .page-item .page-link:hover{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border-color: rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
    }body[data-style-page="/Admin/Users"] .pagination .page-item.active .page-link{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        border-color: transparent;
        color: var(--rx-on-brand);
    }body[data-style-page="/Admin/Users"] /* Empty State */
    .empty-state{
        text-align: center;
        padding: 4rem 2rem;
    }body[data-style-page="/Admin/Users"] .empty-state i{
        font-size: 4rem;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0.5;
        margin-bottom: 1.5rem;
        display: block;
    }body[data-style-page="/Admin/Users"] .empty-state h3{
        color: var(--rx-ink);
        font-size: 1.5rem;
        font-weight: 800;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Admin/Users"] .empty-state p{
        color: var(--rx-muted);
        margin: 0;
    }

    @media (max-width: 768px) {body[data-style-page="/Admin/Users"] .page-wrapper{
            padding: 1rem;
        }body[data-style-page="/Admin/Users"] .header-left h1{
            font-size: 1.75rem;
        }body[data-style-page="/Admin/Users"] .card-header-row{
            padding: 1rem 1.25rem;
        }body[data-style-page="/Admin/Users"] .modern-table thead th,body[data-style-page="/Admin/Users"] .modern-table tbody td{
            padding: 0.75rem 1rem;
        }body[data-style-page="/Admin/Users"] /* Card mode for the main users table */
        .modern-table thead{
            display: none;
        }body[data-style-page="/Admin/Users"] .modern-table,body[data-style-page="/Admin/Users"] .modern-table tbody{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/Users"] .modern-table tbody tr:not([id^="keys-"]){
            display: block;
            background: rgba(var(--rx-contrast-rgb), 0.03);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 16px;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
        }body[data-style-page="/Admin/Users"] .modern-table tbody tr:not([id^="keys-"]):hover{
            background: rgba(var(--rx-contrast-rgb), 0.03);
        }body[data-style-page="/Admin/Users"] .modern-table tbody td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.6rem 0.25rem;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
            text-align: left;
        }body[data-style-page="/Admin/Users"] .modern-table tbody tr:not([id^="keys-"]) td:last-child{
            border-bottom: none;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td[data-label]::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-size: 0.75rem;
            font-weight: 700;
            flex-shrink: 0;
            margin-left: 1rem;
        }body[data-style-page="/Admin/Users"] /* Operations column: stack action buttons full width below the label row */
        .modern-table tbody td.actions-cell{
            flex-direction: column;
            align-items: stretch;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell::before{
            margin-bottom: 0.5rem;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell > div{
            width: 100%;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell .btn-action,body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell form,body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell .btn-danger{
            width: 100%;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell .btn-action,body[data-style-page="/Admin/Users"] .modern-table tbody td.actions-cell .btn-danger{
            justify-content: center;
        }body[data-style-page="/Admin/Users"] /* Credits cell keeps its inline edit controls but wraps within the card row */
        .modern-table tbody td.credits-cell-td{
            flex-wrap: wrap;
        }body[data-style-page="/Admin/Users"] .modern-table tbody td.credits-cell-td .credits-cell{
            flex-wrap: wrap;
            justify-content: flex-end;
            flex: 1;
        }body[data-style-page="/Admin/Users"] /* Nested API keys row/table: switch to cards too, no forced min-width scroll */
        .modern-table tbody tr[id^="keys-"] td{
            display: block;
        }body[data-style-page="/Admin/Users"] .nested-keys-table{
            min-width: 0 !important;
        }body[data-style-page="/Admin/Users"] .nested-keys-table thead{
            display: none;
        }body[data-style-page="/Admin/Users"] .nested-keys-table,body[data-style-page="/Admin/Users"] .nested-keys-table tbody{
            display: block;
            width: 100%;
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody tr{
            display: block;
            background: rgba(var(--rx-contrast-rgb), 0.04);
            border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
            border-radius: 12px;
            padding: 0.5rem 0.75rem;
            margin-bottom: 0.75rem;
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody tr:last-child{
            margin-bottom: 0;
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody td{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.5rem 0.25rem !important;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody td:last-child{
            border-bottom: none;
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody td[data-label]::before{
            content: attr(data-label);
            color: var(--rx-muted);
            font-size: 0.7rem;
            font-weight: 700;
            flex-shrink: 0;
        }body[data-style-page="/Admin/Users"] .nested-keys-table tbody td .btn-action{
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 520px) {body[data-style-page="/Admin/Users"] .header-left h1{
            font-size: 1.5rem;
        }body[data-style-page="/Admin/Users"] .header-badge{
            font-size: 0.8rem;
            padding: 0.5rem 1rem;
        }body[data-style-page="/Admin/Users"] .credits-input{
            width: 70px;
        }
    }body[data-style-page="/Admin/Users"] /* Alert Messages */
    .alert-message{
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-weight: 600;
        animation: page1833840c60-slideIn 0.3s ease;
    }body[data-style-page="/Admin/Users"] .alert-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Users"] .alert-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }

    @keyframes page1833840c60-slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }body[data-style-page="/Admin/Users"] .btn-danger{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-weight: 700;
        font-size: 0.8rem;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        transition: all 0.3s ease;
        cursor: pointer;
    }body[data-style-page="/Admin/Users"] .btn-danger:hover{
        background: rgba(var(--rx-danger-rgb), 0.25);
        color: var(--rx-danger);
        transform: translateY(-2px);
    }body[data-style-page="/Admin/Users"] .credits-cell{
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Admin/Users"] .credits-badge{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        padding: 0.4rem 0.85rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        white-space: nowrap;
    }body[data-style-page="/Admin/Users"] .credits-edit-form{
        display: none;
        align-items: center;
        gap: 0.4rem;
    }body[data-style-page="/Admin/Users"] .credits-edit-form.active{
        display: flex;
    }body[data-style-page="/Admin/Users"] .credits-display.hidden{
        display: none;
    }body[data-style-page="/Admin/Users"] .credits-input{
        width: 80px;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        color: var(--rx-ink);
        border-radius: 8px;
        padding: 0.35rem 0.6rem;
        font-size: 0.8rem;
    }body[data-style-page="/Admin/Users"] .credits-input:focus{
        outline: none;
        border-color: var(--rx-accent);
    }body[data-style-page="/Admin/Users"] .btn-icon-action{
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        width: 28px;
        height: 28px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 0.75rem;
        transition: all 0.2s ease;
    }body[data-style-page="/Admin/Users"] .btn-icon-action:hover{
        background: rgba(var(--rx-accent-rgb), 0.25);
    }body[data-style-page="/Admin/Users"] .btn-icon-save{
        background: rgba(var(--rx-success-rgb), 0.15);
        border-color: rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success);
    }body[data-style-page="/Admin/Users"] .btn-icon-save:hover{
        background: rgba(var(--rx-success-rgb), 0.25);
    }body[data-style-page="/Admin/Users"] .btn-icon-cancel{
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-color: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
    }body[data-style-page="/Admin/Users"] .btn-icon-cancel:hover{
        background: rgba(var(--rx-danger-rgb), 0.25);
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Users"])) .header-badge{ background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .card-header-row,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .pagination-wrapper{ border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .modern-table thead th{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .api-key-code{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .status-badge.success{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .status-badge.danger{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .status-badge.role-admin{ background: rgba(var(--theme-accent-rgb), .12); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .status-badge.role-operator{ background: rgba(var(--rx-info-rgb), 0.12); color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .status-badge.role-none{ background: var(--theme-surface-3); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .alert-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .btn-danger{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .btn-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .btn-icon-action.btn-icon-save{ background-color: rgba(var(--rx-success-rgb), 0.1) !important; border-color: rgba(var(--rx-success-rgb), 0.3) !important; color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .btn-icon-action.btn-icon-cancel{ background-color: rgba(var(--rx-danger-rgb), 0.08) !important; border-color: rgba(var(--rx-danger-rgb), 0.3) !important; color: var(--rx-danger) !important; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Admin/Users"])) .page-wrapper [style*="color:white"]{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .page-wrapper :is([style*="color:rgba(255,255,255,0.5)"], [style*="color: rgba(255,255,255,0.5)"]){ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .page-wrapper :is([style*="color:#34d399"], [style*="color: #34d399"]){ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .page-wrapper :is([style*="color:#f87171"], [style*="color: #f87171"]){ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .page-wrapper [style*="color:#fbbf24"]{ color: #d97706 !important; }

    @media (max-width: 768px) {html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .modern-table tbody tr:not([id^="keys-"]),html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .nested-keys-table tbody tr{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .modern-table tbody td[data-label]::before,html.light-theme[data-admin-palette] body[data-style-page="/Admin/Users"] .nested-keys-table tbody td[data-label]::before{ color: var(--theme-muted); }
    }




/* Remaining-request balance */
body[data-style-page="/Admin/Users"] .rx-remaining-requests { font-size: .85rem; font-weight: 700; }
body[data-style-page="/Admin/Users"] .rx-remaining-requests.is-positive { color: var(--rx-success); }
body[data-style-page="/Admin/Users"] .rx-remaining-requests.is-negative { color: var(--rx-danger); }
/* Page stylesheet: /KnowledgeBase/Chats */
body[data-style-page="/KnowledgeBase/Chats"] .chats-help-trigger{ position:absolute; top:12px; left:12px; z-index:2; width:26px; height:24px; padding:0; display:grid; place-items:center; color:var(--theme-accent); background:var(--theme-hover); border:1px solid var(--theme-accent); border-radius:10px 0 8px 0; cursor:pointer; }body[data-style-page="/KnowledgeBase/Chats"] .chats-help-trigger i{ font-size:.7rem; }body[data-style-page="/KnowledgeBase/Chats"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/Chats"] .chats-page{ min-height: 100vh; padding: 2rem; background: var(--body-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .chats-shell{ max-width: 1180px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/Chats"] .analytics-top{ display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Chats"] .analytics-title h1{ font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .analytics-title p{ margin: 0; color: var(--rx-muted); font-size: .9rem; }body[data-style-page="/KnowledgeBase/Chats"] .soft-link{
        display: inline-flex; align-items: center; gap: .4rem; color: var(--rx-accent);
        border: 1px solid rgba(153, 246, 228,.25); background: rgba(var(--rx-accent-rgb), 0.08);
        border-radius: 8px; padding: .55rem .85rem; text-decoration: none; font-size: .84rem; font-weight: 700;
        white-space: nowrap;
    }body[data-style-page="/KnowledgeBase/Chats"] .soft-link:hover{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.16); }body[data-style-page="/KnowledgeBase/Chats"] .panel{
        background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 8px;
        padding: 1rem; box-shadow: 0 18px 50px rgba(2,6,23,.22);
    }body[data-style-page="/KnowledgeBase/Chats"] /* Filter form */
    .filter-panel{ margin-bottom:1.15rem; padding:0; overflow:visible; border-radius:16px; }body[data-style-page="/KnowledgeBase/Chats"] .filter-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.084); background:linear-gradient(90deg,rgba(var(--rx-accent-rgb), 0.055),transparent 55%); border-radius:16px 16px 0 0; }body[data-style-page="/KnowledgeBase/Chats"] .filter-heading{ display:flex; align-items:center; gap:.7rem; min-width:0; }body[data-style-page="/KnowledgeBase/Chats"] .filter-heading-icon{ width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:11px; color:var(--rx-accent); background:rgba(var(--rx-accent-rgb), 0.12); border:1px solid rgba(var(--rx-accent-rgb), 0.18); font-size:1rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-heading strong{ display:block; color:var(--rx-ink); font-size:.9rem; font-weight:800; }body[data-style-page="/KnowledgeBase/Chats"] .filter-heading span{ display:block; margin-top:.15rem; color:var(--rx-muted); font-size:.72rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-result-count{ display:inline-flex; align-items:center; gap:.38rem; flex:none; padding:.38rem .62rem; border-radius:999px; color:var(--rx-accent); background:rgba(var(--rx-accent-rgb), 0.08); border:1px solid rgba(var(--rx-accent-rgb), 0.14); font-size:.72rem; font-weight:700; }body[data-style-page="/KnowledgeBase/Chats"] .filter-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; align-items:start; padding:1.15rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field{ min-width:0; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field-wide{ grid-column:span 2; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field label{ display:flex; align-items:center; gap:.35rem; color:var(--rx-muted); font-size:.74rem; font-weight:750; margin-bottom:.42rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field label i{ color:var(--rx-ink-soft); font-size:.75rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field input,body[data-style-page="/KnowledgeBase/Chats"] .filter-field select{
        width:100%; height:44px; background:rgba(2,6,23,.28); border:1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius:10px; padding:.55rem .75rem; color:var(--rx-ink); font-size:.82rem; font-family:inherit; outline:none; transition:border-color .16s,box-shadow .16s,background .16s;
    }body[data-style-page="/KnowledgeBase/Chats"] .filter-field input:hover,body[data-style-page="/KnowledgeBase/Chats"] .filter-field select:hover{ border-color:rgba(var(--rx-contrast-rgb), 0.2); background:rgba(2,6,23,.4); }body[data-style-page="/KnowledgeBase/Chats"] .filter-field input:focus,body[data-style-page="/KnowledgeBase/Chats"] .filter-field select:focus{ border-color:rgba(var(--rx-accent-rgb), 0.65); box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.1); background:rgba(2,6,23,.5); }body[data-style-page="/KnowledgeBase/Chats"] .filter-field input::placeholder{ color:var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Chats"] /* The open dropdown list is largely outside CSS's reach, but background/color on the option
       element is honored by every major browser -- without it the list falls back to the
       browser's light theme regardless of the closed select's own dark styling. */
    .filter-field select option{ background: var(--panel-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .filter-field select option:checked{ background: var(--rx-brand); color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/Chats"] .filter-field select option:hover{ background: var(--rx-brand); color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-field{ position:relative; grid-column:span 2; }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger{
        width:100%; min-width:0; height:44px; display:flex; align-items:center; gap:.55rem; padding:.5rem .75rem;
        border:1px dashed rgba(var(--rx-contrast-rgb), 0.189); border-radius:10px; cursor:pointer;
        background:rgba(2,6,23,.22); color:var(--rx-ink-soft); font-family:inherit; text-align:right; transition:.16s ease;
    }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger:hover,body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger[aria-expanded="true"]{ border-color: rgba(var(--rx-accent-rgb), 0.5); background: rgba(var(--rx-accent-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-icon{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-text{ flex:1; min-width:0; font-size:.78rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-count{ display: none; min-width: 22px; height: 22px; align-items: center; justify-content: center; padding: 0 .35rem; border-radius: 999px; background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); font-size: .7rem; font-weight: 800; }body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-chevron{ color: var(--rx-muted); transition: transform .15s; }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger[aria-expanded="true"] .tag-trigger-chevron{ transform: rotate(180deg); }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-box{
        position: absolute; z-index: 30; top: calc(100% + .35rem); right: 0; width: min(320px, calc(100vw - 32px)); display: none;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); border-radius: 12px; overflow: hidden;
        background: var(--panel-bg); box-shadow: 0 18px 45px rgba(0,0,0,.45);
    }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-box.open{ display: block; }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-preview{ display:flex; flex-wrap:wrap; align-items:center; gap:.35rem; margin-top:.45rem; }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-preview:empty{ display:none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-chip{
        display:inline-flex; align-items:center; gap:.35rem; max-width:220px; padding:.22rem .38rem .22rem .48rem;
        border:1px solid var(--tag-border); border-radius:7px; background:var(--tag-soft); color:var(--rx-ink);
        font-size:.7rem; font-family:inherit; line-height:1.2;
    }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-chip .dot{ width:7px; height:7px; border-radius:50%; flex:none; background:var(--tag-color); }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-chip .name{ overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-remove{ width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center; flex:none; padding:0; border:0; border-radius:50%; background:transparent; color:var(--rx-muted); cursor:pointer; }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-remove:hover{ background:rgba(var(--rx-contrast-rgb), 0.1); color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-more{ padding:.22rem .48rem; border:1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius:7px; background:rgba(var(--rx-contrast-rgb), 0.056); color:var(--rx-muted); font-size:.7rem; cursor:pointer; }body[data-style-page="/KnowledgeBase/Chats"] .tag-picker-head{ display:flex; align-items:center; justify-content:space-between; padding:.72rem .8rem .45rem; }body[data-style-page="/KnowledgeBase/Chats"] .tag-picker-head strong{ color:var(--rx-ink); font-size:.82rem; }body[data-style-page="/KnowledgeBase/Chats"] .tag-picker-head span{ color:var(--rx-muted); font-size:.68rem; }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top{ display: flex; align-items: center; gap: .55rem; margin: 0 .65rem .55rem; padding: .48rem .6rem; border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius:9px; background:rgba(var(--rx-contrast-rgb), 0.025); }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top:focus-within{ border-color:var(--rx-accent); box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.1); }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top i{ color: var(--rx-muted); }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top input{ flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-count{ color: var(--rx-muted); font-size: .7rem; white-space: nowrap; }body[data-style-page="/KnowledgeBase/Chats"] .tag-checklist{ display: flex; flex-direction:column; gap: .1rem; max-height: 280px; overflow-y: auto; padding: 0 .45rem .5rem; overscroll-behavior: contain; scrollbar-width: thin; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check{
        display: grid; grid-template-columns:10px minmax(0,1fr) 18px; align-items: center; gap: .55rem; min-width: 0; margin: 0; color: var(--rx-ink-soft);
        border: 0; border-radius: 8px; padding: .56rem .5rem; font-size: .78rem; cursor: pointer;
    }body[data-style-page="/KnowledgeBase/Chats"] .tag-check:hover{ background: rgba(var(--rx-contrast-rgb), 0.045); }body[data-style-page="/KnowledgeBase/Chats"] .tag-check:has(input:checked){ background: var(--tag-soft); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .tag-check input{ position:absolute; opacity:0; pointer-events:none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--tag-color); flex: none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check-name{ overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check-state{ color:var(--tag-color); font-size:.9rem; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check-state.checked{ display:none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check:has(input:checked) .tag-check-state.empty{ display:none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-check:has(input:checked) .tag-check-state.checked{ display:inline-block; }body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-empty{ display: none; grid-column: 1 / -1; color: var(--rx-muted); text-align: center; padding: 1rem; font-size: .78rem; }
    @media (max-width: 640px) {body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-box{ position: fixed; z-index: 1100; inset: auto .75rem .75rem .75rem; border-radius: 16px; }body[data-style-page="/KnowledgeBase/Chats"] .tag-checklist{ max-height: min(52vh, 360px); }
    }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; grid-column:1 / -1; margin:0 -1.15rem -1.15rem; padding:.9rem 1.15rem; border-top:1px solid rgba(var(--rx-contrast-rgb), 0.084); background:rgba(2,6,23,.14); border-radius:0 0 16px 16px; }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions-primary{ display:flex; align-items:center; gap:.55rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions a,body[data-style-page="/KnowledgeBase/Chats"] .filter-actions button{ min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:.42rem; white-space:nowrap; transition:.16s ease; }body[data-style-page="/KnowledgeBase/Chats"] .btn-filter{
        background:linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); color:var(--rx-on-brand); border:1px solid rgba(var(--rx-accent-rgb), 0.25); border-radius:9px;
        padding:.58rem 1rem; font-weight:800; font-size:.8rem; cursor:pointer; box-shadow:0 8px 22px rgba(var(--rx-accent-rgb), 0.18);
    }body[data-style-page="/KnowledgeBase/Chats"] .btn-filter:hover{ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 10px 26px rgba(var(--rx-accent-rgb), 0.28); }body[data-style-page="/KnowledgeBase/Chats"] .btn-clear{
        background:rgba(var(--rx-contrast-rgb), 0.025); color:var(--rx-muted); border:1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius:9px; padding:.58rem .9rem; font-weight:700; font-size:.78rem; text-decoration:none;
    }body[data-style-page="/KnowledgeBase/Chats"] .btn-clear:hover{ color:var(--rx-ink); border-color:rgba(var(--rx-contrast-rgb), 0.2); background:rgba(var(--rx-contrast-rgb), 0.05); }body[data-style-page="/KnowledgeBase/Chats"] .btn-export{
        background:rgba(var(--rx-success-rgb), 0.08); color:var(--rx-success); border:1px solid rgba(var(--rx-success-rgb), 0.24);
        border-radius:9px; padding:.58rem .9rem; font-weight:800; font-size:.78rem; text-decoration:none;
    }body[data-style-page="/KnowledgeBase/Chats"] .btn-export:hover{ color:var(--rx-success); background:rgba(var(--rx-success-rgb), 0.14); border-color:rgba(var(--rx-success-rgb), 0.45); transform:translateY(-1px); }body[data-style-page="/KnowledgeBase/Chats"] /* Mode / outcome / tag badges */
    .mode-badge{ display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; }body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.bot{ background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.waiting{ background: rgba(var(--rx-warning-rgb), 0.16); color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.with-operator{ background: rgba(var(--rx-success-rgb), 0.16); color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.closed{ background: rgba(var(--rx-contrast-rgb), 0.112); color: var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Chats"] .tag-pill{
        display: inline-flex; align-items: center; gap: .32rem; background: var(--tag-soft); color: var(--rx-ink);
        border: 1px solid var(--tag-border); border-radius: 7px; padding: .16rem .45rem; font-size: .7rem; margin: 0 .12rem .15rem 0; white-space: nowrap;
    }body[data-style-page="/KnowledgeBase/Chats"] .tag-pill::before{ content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tag-color); flex: none; }body[data-style-page="/KnowledgeBase/Chats"] .tag-overflow{ display:inline-flex; padding:.16rem .42rem; border-radius:7px; background:rgba(var(--rx-contrast-rgb), 0.07); border:1px solid rgba(var(--rx-contrast-rgb), 0.126); color:var(--rx-muted); font-size:.7rem; }body[data-style-page="/KnowledgeBase/Chats"] .score-emoji{ font-size: 1.2rem; }body[data-style-page="/KnowledgeBase/Chats"] /* Channel badge (session table) */
    .ch-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.web{ background: rgba(var(--rx-accent-rgb), 0.16); color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.telegram{ background: rgba(41,169,235,.16); color: var(--rx-info); }body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.bale{ background: rgba(var(--rx-warning-rgb), 0.16); color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Chats"] .session-table{ width: 100%; border-collapse: separate; border-spacing: 0 .55rem; }body[data-style-page="/KnowledgeBase/Chats"] .session-table th{
        color: var(--rx-info); font-size: .72rem; font-weight: 800; letter-spacing: .02em;
        padding: .55rem .7rem; background: rgba(125, 211, 252, .06);
        border-bottom: 1px solid rgba(125, 211, 252, .18);
    }body[data-style-page="/KnowledgeBase/Chats"] .session-table th:first-child{ border-radius: 8px 0 0 0; }body[data-style-page="/KnowledgeBase/Chats"] .session-table th:last-child{ border-radius: 0 8px 0 0; }body[data-style-page="/KnowledgeBase/Chats"] .session-table td{
        background: rgba(var(--rx-contrast-rgb), 0.035); border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07); padding: .75rem .7rem; color: var(--rx-ink-soft);
        font-size: .82rem; vertical-align: middle;
    }body[data-style-page="/KnowledgeBase/Chats"] .session-table td:first-child{ border-right: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 0 8px 8px 0; }body[data-style-page="/KnowledgeBase/Chats"] .session-table td:last-child{ border-left: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 8px 0 0 8px; }body[data-style-page="/KnowledgeBase/Chats"] .session-row{ cursor: pointer; transition: transform .12s; }body[data-style-page="/KnowledgeBase/Chats"] .session-row:hover td{ background: rgba(var(--rx-accent-rgb), 0.07); }body[data-style-page="/KnowledgeBase/Chats"] .session-row:active{ transform: scale(.997); }body[data-style-page="/KnowledgeBase/Chats"] .visitor-cell strong{ color: var(--rx-ink); font-size: .82rem; }body[data-style-page="/KnowledgeBase/Chats"] .visitor-cell div{ color: var(--rx-muted); font-size: .74rem; margin-top: 1px; }body[data-style-page="/KnowledgeBase/Chats"] .session-export-btn{ width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid rgba(var(--rx-success-rgb), 0.28); background:rgba(var(--rx-success-rgb), 0.08); color:var(--rx-success); text-decoration:none; transition:.16s ease; }body[data-style-page="/KnowledgeBase/Chats"] .session-export-btn:hover{ color:var(--rx-success); background:rgba(var(--rx-success-rgb), 0.18); border-color:rgba(var(--rx-success-rgb), 0.55); transform:translateY(-1px); }body[data-style-page="/KnowledgeBase/Chats"] .session-export-cell{ width:48px; text-align:center; }body[data-style-page="/KnowledgeBase/Chats"] .ltr{ direction: ltr; text-align: left; display: inline-block; }body[data-style-page="/KnowledgeBase/Chats"] .empty-box{
        min-height: 160px; display: flex; align-items: center; justify-content: center; text-align: center;
        color: var(--rx-muted); border: 1px dashed rgba(var(--rx-contrast-rgb), 0.175); border-radius: 8px; padding: 1rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .pagination-bar{ display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }body[data-style-page="/KnowledgeBase/Chats"] .pagination-info{ color: var(--rx-muted); font-size: .8rem; }body[data-style-page="/KnowledgeBase/Chats"] .pagination-links{ display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Chats"] .page-link-soft{
        min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
        border-radius: 8px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); background: rgba(var(--rx-contrast-rgb), 0.035);
        color: var(--rx-ink-soft); text-decoration: none; font-size: .8rem; font-weight: 800; padding: 0 .65rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .page-link-soft:hover{ color: var(--rx-ink); border-color: rgba(var(--rx-accent-rgb), 0.45); background: rgba(var(--rx-accent-rgb), 0.12); }body[data-style-page="/KnowledgeBase/Chats"] .page-link-soft.active{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.22); border-color: rgba(var(--rx-accent-rgb), 0.5); }body[data-style-page="/KnowledgeBase/Chats"] .page-link-soft.disabled{ opacity: .42; pointer-events: none; }body[data-style-page="/KnowledgeBase/Chats"] /* Mobile cards */
    .session-cards{ display: none; flex-direction: column; gap: .6rem; }body[data-style-page="/KnowledgeBase/Chats"] .session-card{
        background: rgba(var(--rx-contrast-rgb), 0.035); border: 1px solid rgba(var(--rx-contrast-rgb), 0.098); border-radius: 12px;
        padding: .85rem .9rem; cursor: pointer;
    }body[data-style-page="/KnowledgeBase/Chats"] .session-card:active{ transform: scale(.99); }body[data-style-page="/KnowledgeBase/Chats"] .session-card-top{ display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .5rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Chats"] .session-card-top .who{ color: var(--rx-ink); font-weight: 700; font-size: .84rem; }body[data-style-page="/KnowledgeBase/Chats"] .session-card-question{ color: var(--rx-muted); font-size: .8rem; line-height: 1.7; overflow-wrap: anywhere; margin-bottom: .5rem; }body[data-style-page="/KnowledgeBase/Chats"] .session-card-meta{ display: flex; align-items: center; justify-content: space-between; color: var(--rx-muted); font-size: .74rem; }body[data-style-page="/KnowledgeBase/Chats"] .session-card-tags{ margin-bottom: .5rem; }body[data-style-page="/KnowledgeBase/Chats"] /* ===== Transcript modal ===== */
    .tm-overlay{
        position: fixed; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(4px);
        display: none; align-items: center; justify-content: center; z-index: 1050; padding: 1rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-overlay.open{ display: flex; }body[data-style-page="/KnowledgeBase/Chats"] .tm-modal{
        width: 100%; max-width: 480px; max-height: 88vh; background: var(--panel-bg); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        border-radius: 20px; display: flex; flex-direction: column; overflow: hidden;
        box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.94) translateY(10px); opacity: 0;
        transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-overlay.open .tm-modal{ transform: scale(1) translateY(0); opacity: 1; }body[data-style-page="/KnowledgeBase/Chats"] .tm-header{
        padding: 1rem 1.1rem; background: linear-gradient(135deg,rgba(var(--rx-accent-rgb), 0.18),rgba(var(--rx-accent-rgb), 0.05));
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08); display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-avatar{
        width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg,var(--rx-brand-bright),var(--rx-brand)); color: var(--rx-on-brand); font-size: 1.05rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-avatar.telegram{ background: linear-gradient(135deg,#29a9eb,#1e88c7); }body[data-style-page="/KnowledgeBase/Chats"] .tm-avatar.bale{ background: linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)); }body[data-style-page="/KnowledgeBase/Chats"] .tm-header-info{ flex: 1; min-width: 0; }body[data-style-page="/KnowledgeBase/Chats"] .tm-header-title{ color: var(--rx-ink); font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: .4rem; }body[data-style-page="/KnowledgeBase/Chats"] .tm-header-sub{ color: var(--rx-muted); font-size: .74rem; margin-top: 2px; direction: ltr; text-align: right; }body[data-style-page="/KnowledgeBase/Chats"] .tm-close{
        width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(var(--rx-contrast-rgb), 0.08); color: var(--rx-ink-soft);
        display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all .15s;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-close:hover{ background: rgba(var(--rx-contrast-rgb), 0.16); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Chats"] .tm-body{
        flex: 1; overflow-y: auto; padding: 1.1rem .9rem; display: flex; flex-direction: column; gap: .55rem;
        background: radial-gradient(circle at 50% 0%, rgba(var(--rx-accent-rgb), 0.05), transparent 60%);
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-loading,body[data-style-page="/KnowledgeBase/Chats"] .tm-empty{
        margin: auto; color: var(--rx-muted); font-size: .85rem; display: flex; flex-direction: column; align-items: center; gap: .6rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-loading i{ font-size: 1.6rem; animation: page97f9bff081-tmspin 1s linear infinite; }
    @keyframes page97f9bff081-tmspin { to { transform: rotate(360deg); } }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row{ display: flex; flex-direction: column; max-width: 84%; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.user{ align-self: flex-end; align-items: flex-end; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot{ align-self: flex-start; align-items: flex-start; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble{ padding: .6rem .85rem; border-radius: 14px; font-size: .84rem; line-height: 1.75; overflow-wrap: anywhere; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble .tm-md-gap{ height: .5rem; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble .tm-md-list{ margin: .25rem 0; padding-inline-start: 1.15rem; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble .tm-md-list li{ margin: .15rem 0; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble code{ background: rgba(var(--rx-contrast-rgb), 0.12); padding: .05rem .3rem; border-radius: 4px; font-size: .95em; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble a{ color: inherit; text-decoration: underline; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot .tm-bubble a{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.user .tm-bubble{ background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); color: var(--rx-on-brand); border-radius: 14px 14px 4px 14px; }body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot .tm-bubble{ background: rgba(var(--rx-contrast-rgb), 0.07); color: var(--rx-ink); border: 1px solid rgba(var(--rx-contrast-rgb), 0.07); border-radius: 14px 14px 14px 4px; }body[data-style-page="/KnowledgeBase/Chats"] .tm-meta{ display: flex; align-items: center; gap: .4rem; margin-top: .3rem; padding: 0 .2rem; }body[data-style-page="/KnowledgeBase/Chats"] .tm-time{ color: var(--rx-muted); font-size: .68rem; direction: ltr; }body[data-style-page="/KnowledgeBase/Chats"] .tm-rating{ font-size: .78rem; }body[data-style-page="/KnowledgeBase/Chats"] .tm-rating.up{ color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Chats"] .tm-rating.down{ color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Chats"] .tm-footer{
        padding: .75rem 1.1rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.07); flex-shrink: 0;
        display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    }body[data-style-page="/KnowledgeBase/Chats"] .tm-footer-stat{ color: var(--rx-muted); font-size: .76rem; }

    @media (max-width: 992px) {body[data-style-page="/KnowledgeBase/Chats"] .chats-page{ padding: 1rem; }body[data-style-page="/KnowledgeBase/Chats"] .analytics-top{ align-items: flex-start; flex-direction: column; }body[data-style-page="/KnowledgeBase/Chats"] .filter-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    }
    @media (max-width: 720px) {body[data-style-page="/KnowledgeBase/Chats"] .chats-page{ padding: .75rem; }body[data-style-page="/KnowledgeBase/Chats"] .panel{ padding: .85rem; border-radius: 14px; }body[data-style-page="/KnowledgeBase/Chats"] .session-table-wrap{ display: none; }body[data-style-page="/KnowledgeBase/Chats"] .session-cards{ display: flex; }body[data-style-page="/KnowledgeBase/Chats"] .tm-modal{ max-width: 100%; max-height: 92vh; border-radius: 16px; }body[data-style-page="/KnowledgeBase/Chats"] .soft-link{ flex: 1; justify-content: center; }body[data-style-page="/KnowledgeBase/Chats"] .analytics-top > div.d-flex{ width: 100%; }body[data-style-page="/KnowledgeBase/Chats"] .filter-panel-head{ padding:.9rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-result-count{ display:none; }body[data-style-page="/KnowledgeBase/Chats"] .filter-grid{ grid-template-columns:1fr; padding:.9rem; gap:.75rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-field-wide,body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-field{ grid-column:auto; }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions{ flex-direction:column; align-items:stretch; margin:.1rem -.9rem -.9rem; padding:.85rem .9rem; }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions-primary{ display:grid; grid-template-columns:1fr 1fr; }body[data-style-page="/KnowledgeBase/Chats"] .filter-actions a,body[data-style-page="/KnowledgeBase/Chats"] .filter-actions button{ width:100%; }body[data-style-page="/KnowledgeBase/Chats"] .btn-export{ order:2; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Chats"])) .panel{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-panel-head{ border-bottom-color: var(--theme-border-soft); background: linear-gradient(90deg, rgba(var(--theme-accent-rgb), .06), transparent 55%); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-heading-icon{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-heading span{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-field label i{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-field :is(input, select){ }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-field select option:checked,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-field select option:hover{ background: var(--theme-accent-strong); color: var(--rx-ink); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger{ background: var(--theme-input); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger:hover,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger[aria-expanded="true"]{ border-color: var(--theme-accent); background: var(--theme-hover); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-icon{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-trigger-count{ background: rgba(var(--theme-accent-rgb), .14); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-box{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-chip{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-remove{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-remove:hover{ background: var(--theme-surface-3); color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-selected-more,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-overflow{ color: var(--theme-muted); background: var(--theme-surface-3); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top:focus-within{ border-color: var(--theme-accent); box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), .12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-top input{ background: transparent !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-filter-count{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-check:hover{ background: var(--theme-hover); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .filter-actions{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .btn-clear{ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .btn-clear:hover{ color: var(--theme-text); background: var(--theme-surface-3); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .btn-export{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .btn-export:hover{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.16); border-color: rgba(var(--rx-success-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.bot{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.waiting{ color: var(--rx-warning); background: rgba(var(--rx-warning-rgb), 0.12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.with-operator{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .mode-badge.closed{ color: var(--theme-text-2); background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tag-pill{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.web{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.telegram{ color: #0369a1; background: rgba(var(--rx-info-rgb), 0.12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .ch-badge.bale{ color: var(--rx-warning); background: rgba(var(--rx-warning-rgb), 0.12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .session-table th{ background: var(--theme-surface-2); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .session-table td{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .session-row:hover td{ background: var(--theme-hover); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .visitor-cell strong{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .visitor-cell div{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .page-link-soft.active{ color: var(--rx-ink) !important; background: var(--theme-accent-strong) !important; border-color: var(--theme-accent-strong) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .session-card-top .who{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .session-card-question{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .empty-box{ color: var(--theme-muted); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-overlay{ background: rgba(var(--rx-surface-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-modal{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: 0 30px 80px rgba(15, 23, 42, .22); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-header{ background: linear-gradient(135deg, rgba(var(--theme-accent-rgb), .12), rgba(var(--theme-accent-rgb), .03)); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-header-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-header-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-close{ background: var(--theme-surface-3); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-close:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-body{ background: radial-gradient(circle at 50% 0%, rgba(var(--theme-accent-rgb), .05), transparent 60%); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot .tm-bubble{ background: var(--theme-surface-2); color: var(--theme-text); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot .tm-bubble code{ background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.bot .tm-bubble a{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-bubble-row.user .tm-bubble code{ background: rgba(var(--rx-contrast-rgb), 0.2); color: var(--rx-ink) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-rating.up{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-rating.down{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-footer{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Chats"] .tm-footer-stat{ color: var(--theme-muted); }



/* Customer redesign: archive page gets a purposeful filter-first layout and compact mobile cards. */
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .chats-page {
    min-height: auto;
    padding: clamp(12px, 2vw, 28px);
    background: transparent;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .chats-shell {
    max-width: 1440px;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .analytics-top {
    padding: 20px 22px;
    border: 1px solid var(--rx-line);
    border-radius: 20px;
    background: linear-gradient(120deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 45%, var(--rx-surface)));
    box-shadow: var(--rx-shadow-panel);
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-panel {
    position: relative;
    border: 1px solid var(--rx-line);
    border-radius: 20px;
    background: var(--rx-surface);
    box-shadow: var(--rx-shadow-panel);
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-field-wide {
    grid-column: span 1;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-field :is(input, select),
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger {
    min-height: 44px;
    border-color: var(--rx-line-strong);
    border-radius: 12px;
    background: var(--rx-page-alt);
    color: var(--rx-ink);
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--rx-line);
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-actions-primary {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .chats-page { padding: 8px; }
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .analytics-top {
        align-items: stretch;
        padding: 15px;
    }
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .analytics-top > .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-grid { grid-template-columns: 1fr 1fr; padding: 14px; }
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-field-wide { grid-column: 1 / -1; }
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-actions,
    body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-actions-primary { display: grid; grid-template-columns: 1fr; }
}
/* Page stylesheet: /KnowledgeBase/Content */
body[data-style-page="/KnowledgeBase/Content"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/Content"] .kb-wrapper{ min-height: 100vh; background: var(--body-bg); padding: 2rem; }body[data-style-page="/KnowledgeBase/Content"] .kb-container{ max-width: 1200px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/Content"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 20px;
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }body[data-style-page="/KnowledgeBase/Content"] .section-title{ color: var(--rx-ink); font-size: 1.05rem; font-weight: 800; margin-bottom: .45rem; display:flex; align-items:center; gap:.55rem; }body[data-style-page="/KnowledgeBase/Content"] .section-sub{ color: var(--rx-muted); font-size: .9rem; line-height: 1.9; margin-bottom: 1rem; }body[data-style-page="/KnowledgeBase/Content"] /* نشانگر سهم اسناد «همیشه فعال» از فضای متن چت‌بات */
    .pinned-budget{ margin-top: .5rem; }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget-bar{
        height: 5px; border-radius: 999px; overflow: hidden;
        background: rgba(var(--rx-contrast-rgb), 0.126);
    }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget-bar > span{
        display: block; height: 100%; width: 0; border-radius: 999px;
        background: var(--rx-success-fill); transition: width .2s ease, background-color .2s ease;
    }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget.is-near .pinned-budget-bar > span{ background: var(--rx-warning-fill); }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget.is-over .pinned-budget-bar > span{ background: var(--rx-danger-fill); }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget.is-near #pinnedBudgetText{ color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget.is-over #pinnedBudgetText{ color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Content"] .pinned-budget .section-sub{ margin-bottom: 0; }body[data-style-page="/KnowledgeBase/Content"] .form-check-label{ color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Content"] .section-divider{ height: 1px; background: linear-gradient(90deg, rgba(var(--rx-accent-rgb), 0.35), transparent); margin: 1rem 0; }body[data-style-page="/KnowledgeBase/Content"] .alert-success,body[data-style-page="/KnowledgeBase/Content"] .alert-danger{ border-radius: 14px; padding: .95rem 1rem; display:flex; gap:.5rem; align-items:center; margin-bottom: 1rem; }body[data-style-page="/KnowledgeBase/Content"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.14); border:1px solid rgba(var(--rx-success-rgb), 0.28); color:var(--rx-success); }body[data-style-page="/KnowledgeBase/Content"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.14); border:1px solid rgba(var(--rx-danger-rgb), 0.28); color:var(--rx-danger); }body[data-style-page="/KnowledgeBase/Content"] .hero{ display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }body[data-style-page="/KnowledgeBase/Content"] .hero-copy{ max-width: 760px; }body[data-style-page="/KnowledgeBase/Content"] .badge-soft{
        display:inline-flex; align-items:center; gap:.45rem; padding:.45rem .8rem;
        background: rgba(var(--rx-accent-rgb), 0.14); border:1px solid rgba(var(--rx-accent-rgb), 0.28);
        color:var(--rx-accent); border-radius:999px; font-size:.8rem; font-weight:700;
    }body[data-style-page="/KnowledgeBase/Content"] .metrics{ display:flex; gap:.75rem; flex-wrap:wrap; align-items:flex-start; align-self:flex-start; }body[data-style-page="/KnowledgeBase/Content"] .metric{
        min-width:130px; background: rgba(var(--rx-contrast-rgb), 0.04); border:1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius:16px; padding:.9rem 1rem;
    }body[data-style-page="/KnowledgeBase/Content"] .metric-value{ color:var(--rx-ink); font-size:1rem; font-weight:800; }body[data-style-page="/KnowledgeBase/Content"] .metric-label{ color:var(--rx-muted); font-size:.76rem; margin-top:.2rem; }body[data-style-page="/KnowledgeBase/Content"] .metric-credit{ border-color: rgba(250,204,21,.35); background: rgba(250,204,21,.08); }body[data-style-page="/KnowledgeBase/Content"] .metric-credit .metric-value{ color:var(--rx-warning); }body[data-style-page="/KnowledgeBase/Content"] .credit-note{ color:var(--rx-warning); background: rgba(250,204,21,.08); border:1px solid rgba(250,204,21,.2); border-radius:14px; padding:.8rem .95rem; }body[data-style-page="/KnowledgeBase/Content"] .credit-note strong{ color:var(--rx-warning); }body[data-style-page="/KnowledgeBase/Content"] .tabs-header{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; margin-top:1rem; }body[data-style-page="/KnowledgeBase/Content"] .tab-trigger{
        width:100%; text-align:right; border:1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius:18px;
        background: rgba(var(--rx-contrast-rgb), 0.04); color:var(--rx-ink-soft); padding:1rem;
    }body[data-style-page="/KnowledgeBase/Content"] .tab-trigger.active{ border-color: rgba(var(--rx-accent-rgb), 0.55); background: rgba(var(--rx-accent-rgb), 0.16); color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Content"] .tab-trigger-title{ display:block; font-size:.95rem; font-weight:800; margin-bottom:.3rem; }body[data-style-page="/KnowledgeBase/Content"] .tab-trigger-sub{ display:block; font-size:.8rem; color:var(--rx-muted); line-height:1.8; }body[data-style-page="/KnowledgeBase/Content"] .tab-trigger.active .tab-trigger-sub{ color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Content"] .tab-panel{ display:none; margin-top:1rem; }body[data-style-page="/KnowledgeBase/Content"] .tab-panel.active{ display:block; }body[data-style-page="/KnowledgeBase/Content"] .manual-stack{ display:grid; gap:1rem; }body[data-style-page="/KnowledgeBase/Content"] .editor-card,body[data-style-page="/KnowledgeBase/Content"] .list-card{
        background: rgba(var(--rx-contrast-rgb), 0.03); border:1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius:18px; padding:1rem;
    }body[data-style-page="/KnowledgeBase/Content"] .field-label{ color:var(--rx-ink-soft); font-size:.83rem; font-weight:700; margin-bottom:.35rem; display:block; }body[data-style-page="/KnowledgeBase/Content"] .form-control-dark{
        background: rgba(var(--rx-contrast-rgb), 0.08); border:1px solid rgba(var(--rx-contrast-rgb), 0.16); color:var(--rx-ink);
        border-radius:14px; padding:.9rem 1rem; width:100%;
    }body[data-style-page="/KnowledgeBase/Content"] .form-control-dark:focus{ outline:none; border-color:var(--rx-accent); box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.18); }body[data-style-page="/KnowledgeBase/Content"] textarea.form-control-dark{ min-height:260px; resize:vertical; line-height:1.95; }body[data-style-page="/KnowledgeBase/Content"] .btn-primary-glow{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color:var(--rx-on-brand); border:none;
        border-radius:14px; padding:.82rem 1.35rem; font-weight:700;
    }body[data-style-page="/KnowledgeBase/Content"] .btn-soft{
        background: rgba(var(--rx-contrast-rgb), 0.05); color:var(--rx-ink); border:1px solid rgba(var(--rx-contrast-rgb), 0.14);
        border-radius:12px; padding:.7rem .95rem; text-decoration:none;
    }body[data-style-page="/KnowledgeBase/Content"] .btn-danger-soft{
        background: rgba(var(--rx-danger-rgb), 0.08); color:var(--rx-danger); border:1px solid rgba(var(--rx-danger-rgb), 0.24);
        border-radius:12px; padding:.65rem .9rem;
    }body[data-style-page="/KnowledgeBase/Content"] .word-counter{ color:var(--rx-muted); font-size:.82rem; }body[data-style-page="/KnowledgeBase/Content"] .word-counter.limit-near{ color:var(--rx-warning); }body[data-style-page="/KnowledgeBase/Content"] .word-counter.limit-over{ color:var(--rx-danger); }body[data-style-page="/KnowledgeBase/Content"] .hint-chip-row{ display:flex; gap:.55rem; flex-wrap:wrap; margin-top:1rem; }body[data-style-page="/KnowledgeBase/Content"] .hint-chip{
        background: rgba(var(--rx-contrast-rgb), 0.04); border:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius:999px;
        color:var(--rx-ink-soft); padding:.45rem .8rem; font-size:.78rem; font-weight:700;
    }body[data-style-page="/KnowledgeBase/Content"] .manual-toolbar{ display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; justify-content:space-between; margin-bottom:1rem; }body[data-style-page="/KnowledgeBase/Content"] .manual-search{ position:relative; flex:1 1 280px; min-width:220px; max-width:420px; }body[data-style-page="/KnowledgeBase/Content"] .manual-search i{ position:absolute; top:50%; right:.9rem; transform:translateY(-50%); color:var(--rx-muted); pointer-events:none; }body[data-style-page="/KnowledgeBase/Content"] .manual-search input{
        width:100%; background: rgba(var(--rx-contrast-rgb), 0.08); border:1px solid rgba(var(--rx-contrast-rgb), 0.16); color:var(--rx-ink);
        border-radius:14px; padding:.7rem 2.4rem .7rem 1rem; font-size:.86rem;
    }body[data-style-page="/KnowledgeBase/Content"] .manual-search input:focus{ outline:none; border-color:var(--rx-accent); box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.18); }body[data-style-page="/KnowledgeBase/Content"] .manual-search-clear{
        position:absolute; top:50%; left:.6rem; transform:translateY(-50%); border:none; background:none;
        color:var(--rx-muted); cursor:pointer; padding:.2rem;
    }body[data-style-page="/KnowledgeBase/Content"] .manual-toolbar-new{ flex-shrink:0; }body[data-style-page="/KnowledgeBase/Content"] .manual-count-note{ color:var(--rx-muted); font-size:.82rem; margin-bottom:.85rem; }body[data-style-page="/KnowledgeBase/Content"] .manual-grid{
        display:grid; grid-template-columns:repeat(3, 1fr); gap:.9rem;
        position:relative; min-height:80px;
    }
    @media (max-width: 992px) {body[data-style-page="/KnowledgeBase/Content"] .manual-grid{ grid-template-columns:repeat(2, 1fr); }
    }
    @media (max-width: 640px) {body[data-style-page="/KnowledgeBase/Content"] .manual-grid{ grid-template-columns:1fr; }
    }body[data-style-page="/KnowledgeBase/Content"] .manual-grid.is-loading{ opacity:.45; pointer-events:none; }body[data-style-page="/KnowledgeBase/Content"] .manual-item{
        background: rgba(var(--rx-contrast-rgb), 0.04); border:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius:16px; padding:1rem;
        display:flex; flex-direction:column; gap:.65rem; transition:.15s;
    }body[data-style-page="/KnowledgeBase/Content"] .manual-item:hover{ border-color: rgba(var(--rx-accent-rgb), 0.35); background: rgba(var(--rx-contrast-rgb), 0.055); }body[data-style-page="/KnowledgeBase/Content"] .manual-item-header{ display:flex; justify-content:space-between; gap:.6rem; align-items:flex-start; }body[data-style-page="/KnowledgeBase/Content"] .manual-item-title{ color:var(--rx-ink); font-size:.95rem; font-weight:800; line-clamp:2; -webkit-line-clamp:2; display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }body[data-style-page="/KnowledgeBase/Content"] .manual-item-meta{ color:var(--rx-muted); font-size:.76rem; margin-top:.25rem; display:flex; gap:.5rem; flex-wrap:wrap; }body[data-style-page="/KnowledgeBase/Content"] .manual-item-flags{ display:flex; gap:.35rem; flex-wrap:wrap; }body[data-style-page="/KnowledgeBase/Content"] .manual-item-flag{
        display:inline-flex; align-items:center; gap:.25rem; font-size:.7rem; font-weight:700; padding:.15rem .5rem;
        border-radius:999px; background: rgba(var(--rx-accent-rgb), 0.14); color:var(--rx-accent); border:1px solid rgba(var(--rx-accent-rgb), 0.28);
    }body[data-style-page="/KnowledgeBase/Content"] .manual-item-preview{
        color:var(--rx-ink-soft); font-size:.83rem; line-height:1.9; background:rgba(var(--panel-bg-rgb), .22);
        border-radius:14px; padding:.8rem .9rem; border:1px solid rgba(var(--rx-contrast-rgb), 0.05);
        flex:1; word-break:break-word;
    }body[data-style-page="/KnowledgeBase/Content"] .manual-item-actions{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:auto; }body[data-style-page="/KnowledgeBase/Content"] .manual-item-actions .btn-soft,body[data-style-page="/KnowledgeBase/Content"] .manual-item-actions .btn-danger-soft{ flex:1; text-align:center; }body[data-style-page="/KnowledgeBase/Content"] .manual-empty-search{ grid-column:1/-1; }body[data-style-page="/KnowledgeBase/Content"] .pager{
        display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap;
        margin-top:1rem; padding-top:1rem; border-top:1px solid rgba(var(--rx-contrast-rgb), 0.07);
    }body[data-style-page="/KnowledgeBase/Content"] .pager-status{ color:var(--rx-muted); font-size:.8rem; }body[data-style-page="/KnowledgeBase/Content"] .pager-controls{ display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; }body[data-style-page="/KnowledgeBase/Content"] .pager-btn,body[data-style-page="/KnowledgeBase/Content"] .pager-num{
        background: rgba(var(--rx-contrast-rgb), 0.05); border:1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius:12px;
        color:var(--rx-ink-soft); padding:.42rem .75rem; font-size:.8rem; font-weight:700;
        text-decoration:none; transition:.15s; display:inline-flex; align-items:center; gap:.3rem;
    }body[data-style-page="/KnowledgeBase/Content"] .pager-num{ min-width:2.1rem; justify-content:center; }body[data-style-page="/KnowledgeBase/Content"] .pager-btn:hover,body[data-style-page="/KnowledgeBase/Content"] .pager-num:hover{ background: rgba(var(--rx-accent-rgb), 0.16); border-color:rgba(var(--rx-accent-rgb), 0.4); color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Content"] .pager-num.is-current{
        background: rgba(var(--rx-accent-rgb), 0.28); border-color:rgba(var(--rx-accent-rgb), 0.55); color:var(--rx-ink); cursor:default;
    }body[data-style-page="/KnowledgeBase/Content"] .pager-btn.is-disabled{ opacity:.38; cursor:default; }body[data-style-page="/KnowledgeBase/Content"] .pager-btn.is-disabled:hover{ background: rgba(var(--rx-contrast-rgb), 0.05); border-color:rgba(var(--rx-contrast-rgb), 0.1); color:var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Content"] .guidance-list{ list-style:none; padding:0; margin:0; display:grid; gap:.55rem; }body[data-style-page="/KnowledgeBase/Content"] .guidance-list li{ color:var(--rx-ink-soft); font-size:.84rem; line-height:1.85; display:flex; gap:.5rem; align-items:flex-start; }body[data-style-page="/KnowledgeBase/Content"] .guidance-list i{ color:var(--rx-accent); margin-top:.2rem; }body[data-style-page="/KnowledgeBase/Content"] .doc-table{ width:100%; border-collapse:separate; border-spacing:0 .7rem; }body[data-style-page="/KnowledgeBase/Content"] .doc-table th{ color:var(--rx-muted); font-size:.8rem; font-weight:600; padding:0 .85rem .35rem; }body[data-style-page="/KnowledgeBase/Content"] .doc-table td{
        background: rgba(var(--rx-contrast-rgb), 0.04); padding: 1rem .85rem; color:var(--rx-ink);
        border-top:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.08); vertical-align:middle;
    }body[data-style-page="/KnowledgeBase/Content"] .doc-table td:first-child{ border-right:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-top-right-radius:14px; border-bottom-right-radius:14px; }body[data-style-page="/KnowledgeBase/Content"] .doc-table td:last-child{ border-left:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-top-left-radius:14px; border-bottom-left-radius:14px; }body[data-style-page="/KnowledgeBase/Content"] .doc-actions{ display:flex; gap:.5rem; flex-wrap:wrap; }body[data-style-page="/KnowledgeBase/Content"] .status-badge{ display:inline-flex; align-items:center; gap:.35rem; border-radius:999px; padding:.3rem .75rem; font-size:.78rem; font-weight:700; }body[data-style-page="/KnowledgeBase/Content"] .status-pending{ background: rgba(var(--rx-warning-rgb), 0.16); color:var(--rx-warning); }body[data-style-page="/KnowledgeBase/Content"] .status-processing{ background: rgba(var(--rx-info-rgb), 0.16); color:var(--rx-info); }body[data-style-page="/KnowledgeBase/Content"] .status-completed{ background: rgba(var(--rx-success-rgb), 0.16); color:var(--rx-success); }body[data-style-page="/KnowledgeBase/Content"] .status-failed{ background: rgba(var(--rx-danger-rgb), 0.16); color:var(--rx-danger); }body[data-style-page="/KnowledgeBase/Content"] .empty-state{ text-align:center; color:var(--rx-muted); padding:2rem 1rem; background:rgba(var(--rx-contrast-rgb), 0.03); border:1px dashed rgba(var(--rx-contrast-rgb), 0.12); border-radius:16px; }body[data-style-page="/KnowledgeBase/Content"] .delete-document-form{ display:inline; }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .modal-dialog{ max-width: 760px; }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .modal-content{
        background:var(--panel-bg); border:1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius:20px; color:var(--rx-ink);
    }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .modal-header{ border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.08); padding:1.25rem 1.5rem; }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .modal-body{ padding:1.5rem; max-height:72vh; overflow-y:auto; }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .modal-footer{ border-top:1px solid rgba(var(--rx-contrast-rgb), 0.08); padding:1rem 1.5rem; }body[data-style-page="/KnowledgeBase/Content"] .manual-modal .btn-close{ filter: invert(1) grayscale(1) brightness(1.6); }body[data-style-page="/KnowledgeBase/Content"] .qa-entry-question{ min-height:90px !important; }body[data-style-page="/KnowledgeBase/Content"] .qa-entry-answer{ min-height:240px; resize:vertical; line-height:1.95; }body[data-style-page="/KnowledgeBase/Content"] .qa-preview-card{
        padding:1rem 1.1rem;
        border:1px solid rgba(var(--rx-accent-rgb), 0.3);
        border-radius:12px;
        background:rgba(var(--rx-accent-rgb), 0.08);
    }body[data-style-page="/KnowledgeBase/Content"] .qa-preview-card strong{ display:block; margin:.55rem 0; color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Content"] .qa-preview-card p{ margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.9; color:var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Content"] .manual-modal-error{
        background: rgba(var(--rx-danger-rgb), 0.14); border:1px solid rgba(var(--rx-danger-rgb), 0.28); color:var(--rx-danger);
        border-radius:12px; padding:.7rem .9rem; font-size:.85rem; margin-bottom:1rem;
    }
    @media (max-width: 992px) {body[data-style-page="/KnowledgeBase/Content"] .tabs-header{ grid-template-columns:1fr; }body[data-style-page="/KnowledgeBase/Content"] .manual-toolbar{ flex-direction:column; align-items:stretch; }body[data-style-page="/KnowledgeBase/Content"] .manual-search{ max-width:none; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Content"])) .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .section-divider{ background: linear-gradient(90deg, rgba(var(--theme-accent-rgb), .35), transparent); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .metric:not(.metric-credit){ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .metric-credit{ border-color: rgba(202,138,4,.35); background: rgba(250,204,21,.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .metric-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .tab-trigger:not(.active){ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .tab-trigger:not(.active):hover{ background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .tab-trigger:not(.active) .tab-trigger-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .field-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .btn-soft{ background: var(--theme-surface-2); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .btn-soft:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .btn-danger-soft{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .btn-danger-soft:hover{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .word-counter{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .word-counter.limit-near{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .word-counter.limit-over{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .hint-chip{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] :is(.manual-search i, .manual-search-clear){ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-count-note{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item:hover{ background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item-meta{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item-flag{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-item-preview{ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .pager-status{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .pager-num.is-current{ background: var(--theme-accent-strong) !important; border-color: var(--theme-accent-strong) !important; color: var(--rx-ink) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .guidance-list li{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .guidance-list i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .doc-table th{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .doc-table td{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .status-pending{ background: rgba(var(--rx-warning-rgb), 0.12); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .status-processing{ background: rgba(var(--rx-info-rgb), 0.1); color: var(--rx-info); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .status-completed{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .status-failed{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .empty-state{ color: var(--theme-muted); background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .modal .btn-close{ filter: none !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] .manual-modal-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] #deleteConfirmModal .section-title{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Content"] #deleteFileName{ color: var(--theme-text) !important; }



/* Knowledge sources: orient users with capacity and source type before the source inventory. */
body.customer-panel[data-style-page="/KnowledgeBase/Content"] .kb-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .kb-container{max-width:1440px}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.55fr);gap:18px;align-items:center;padding:22px;border:1px solid var(--rx-line);border-radius:22px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .metrics{display:grid;grid-template-columns:1fr;gap:10px}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/Content"] .kb-wrapper{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .hero{grid-template-columns:1fr;padding:16px}body.customer-panel[data-style-page="/KnowledgeBase/Content"] .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Page stylesheet: /KnowledgeBase/ExternalApis */
body[data-style-page="/KnowledgeBase/ExternalApis"] .api-page{direction:rtl;max-width:1100px;margin:auto;padding:20px 28px;font-size:13px;color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-title{margin:0;font-size:22px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-sub{color:var(--rx-muted);margin:8px 0 0}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-card{background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:14px;padding:16px;margin-bottom:16px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn{border:1px solid var(--rx-line-strong);border-radius:8px;padding:7px 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;background:var(--rx-surface-2);color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn.primary{background:var(--rx-brand-bright);color:#062e2b;border-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn.danger{background:transparent;color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.45)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn.small{padding:4px 10px;font-size:12px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn:hover{filter:brightness(1.1)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn:disabled{opacity:.5;cursor:default;filter:none}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert{border-radius:10px;padding:12px 16px;margin-bottom:16px;font-weight:700}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert.error{background:rgba(var(--rx-danger-rgb), 0.1);border:1px solid rgba(var(--rx-danger-rgb), 0.35);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert.success{background:var(--rx-brand);border:1px solid var(--rx-accent);color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-master{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--rx-line)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-master .hint{margin:4px 0 0}body[data-style-page="/KnowledgeBase/ExternalApis"] .sw{flex:none;position:relative;width:40px;height:22px;border-radius:11px;border:0;background:var(--rx-faint);cursor:pointer;padding:0;transition:background .2s}body[data-style-page="/KnowledgeBase/ExternalApis"] .sw .knob{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:var(--rx-surface);transition:transform .2s}body[data-style-page="/KnowledgeBase/ExternalApis"] .sw[aria-checked=true]{background:var(--rx-brand-bright)}body[data-style-page="/KnowledgeBase/ExternalApis"] .sw[aria-checked=true] .knob{transform:translateX(-18px)}body[data-style-page="/KnowledgeBase/ExternalApis"] .sw:focus-visible{outline:2px solid var(--rx-accent);outline-offset:2px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-list.off,body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item.off{opacity:.55}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-badge{font-size:11px;font-weight:700;color:var(--rx-danger);border:1px solid rgba(var(--rx-danger-rgb), 0.4);border-radius:10px;padding:2px 10px;white-space:nowrap}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions{align-items:center}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-empty{padding:42px;text-align:center;border:1px dashed var(--rx-line-strong);border-radius:12px;color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-list{display:grid;gap:12px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item{background:var(--rx-surface-2);border:1px solid var(--rx-line);border-radius:12px;padding:16px 20px;display:grid;grid-template-columns:1fr auto;gap:8px 18px;align-items:center}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:14px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-head>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-method{color:var(--rx-accent);direction:ltr}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-url{grid-column:1/-1;direction:ltr;text-align:left;color:var(--rx-muted);font:12px Consolas,monospace;padding:8px 0;border-top:1px solid var(--rx-line);border-bottom:1px solid var(--rx-line);word-break:break-all}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions{grid-column:2;display:flex;gap:8px}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-meta{grid-column:1;color:var(--rx-muted);font-size:12px}body[data-style-page="/KnowledgeBase/ExternalApis"].api-modal-open{overflow:hidden}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-overlay{position:fixed;inset:0;z-index:1050;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(var(--rx-contrast-rgb), 0.45);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-overlay.open{display:flex;animation:page289bd03c31-apiFade .18s ease}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal{direction:rtl;width:min(880px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;background:var(--rx-surface);color:var(--rx-ink);font-size:13px;border:1px solid var(--rx-line);border-radius:16px;box-shadow:var(--rx-shadow-pop);animation:page289bd03c31-apiPop .22s ease;transition:width .2s ease}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal[data-step="1"]{width:min(640px,100%)}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal[data-step="4"]{width:min(780px,100%)}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-head{display:flex;justify-content:space-between;align-items:center;padding:16px 20px 6px}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-head h2{margin:0;font-size:17px;font-weight:800}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-close{width:32px;height:32px;border-radius:50%;border:0;background:var(--rx-surface-2);color:var(--rx-ink-soft);font-size:20px;line-height:1;cursor:pointer}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-close:hover{background:var(--rx-faint);color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/ExternalApis"] .steps{display:flex;align-items:center;padding:10px 20px 14px;border-bottom:1px solid var(--rx-line)}body[data-style-page="/KnowledgeBase/ExternalApis"] .step{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0;color:var(--rx-muted);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}body[data-style-page="/KnowledgeBase/ExternalApis"] .step .n{width:24px;height:24px;border-radius:50%;border:1px solid var(--rx-line-strong);display:grid;place-items:center;font-size:12px;font-weight:700;transition:.2s}body[data-style-page="/KnowledgeBase/ExternalApis"] .step.active{color:var(--rx-brand-ink);font-weight:700}body[data-style-page="/KnowledgeBase/ExternalApis"] .step.active .n{background:var(--rx-brand-bright);color:#062e2b;border-color:var(--rx-accent);box-shadow:0 0 0 4px rgba(var(--rx-accent-rgb), 0.15)}body[data-style-page="/KnowledgeBase/ExternalApis"] .step.done .n{background:var(--rx-brand);border-color:var(--rx-accent);color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .step-line{flex:1;height:1px;background:var(--rx-line);margin:0 10px;min-width:10px}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-body{overflow:auto;padding:16px 20px 6px;flex:1}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-foot{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;border-top:1px solid var(--rx-line);background:var(--rx-surface-2);border-radius:0 0 16px 16px}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage-head{margin-bottom:14px}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage-head h3{margin:0 0 4px;font-size:15px;font-weight:800}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage-head p{margin:0;color:var(--rx-muted);font-size:12.5px;line-height:1.7}
@keyframes page289bd03c31-apiFade{from{opacity:0}to{opacity:1}}
@keyframes page289bd03c31-apiPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage{padding:0}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage:not([hidden]){animation:page289bd03c31-apiFade .2s ease}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage[hidden]{display:none}body[data-style-page="/KnowledgeBase/ExternalApis"] .stage-error{color:var(--rx-danger);font-weight:700;margin:4px 0 10px;min-height:1.2em}body[data-style-page="/KnowledgeBase/ExternalApis"] .field{margin-bottom:14px}body[data-style-page="/KnowledgeBase/ExternalApis"] .field>label,body[data-style-page="/KnowledgeBase/ExternalApis"] .cell>label{display:block;font-size:12px;font-weight:700;margin-bottom:5px;color:var(--rx-ink-soft)}body[data-style-page="/KnowledgeBase/ExternalApis"] .hint{color:var(--rx-muted);font-size:12px;margin:0 0 8px}body[data-style-page="/KnowledgeBase/ExternalApis"] .hint.warn{color:var(--rx-warning);margin:8px 0 0}body[data-style-page="/KnowledgeBase/ExternalApis"] .chk{display:flex;align-items:center;gap:8px;margin:12px 0 4px;font-size:13px;font-weight:700;color:var(--rx-ink);cursor:pointer}body[data-style-page="/KnowledgeBase/ExternalApis"] .chk input{width:16px;height:16px;accent-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-badge.on{color:var(--rx-accent);border-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-badge.warn{color:var(--rx-warning);border-color:rgba(var(--rx-warning-rgb), 0.45)}body[data-style-page="/KnowledgeBase/ExternalApis"] .input,body[data-style-page="/KnowledgeBase/ExternalApis"] .select{width:100%;box-sizing:border-box;background:var(--rx-input);color:var(--rx-ink);border:1px solid var(--rx-line-input);border-radius:7px;padding:6px 10px;font:inherit;font-size:13px;min-height:34px}body[data-style-page="/KnowledgeBase/ExternalApis"] .input:focus,body[data-style-page="/KnowledgeBase/ExternalApis"] .select:focus{outline:0;border-color:var(--rx-accent);box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.14)}body[data-style-page="/KnowledgeBase/ExternalApis"] .ltr{direction:ltr;text-align:left}body[data-style-page="/KnowledgeBase/ExternalApis"] .two{display:grid;grid-template-columns:140px 1fr;gap:10px}body[data-style-page="/KnowledgeBase/ExternalApis"] .row{display:grid;gap:8px;align-items:end;background:var(--rx-surface-2);border:1px solid var(--rx-line);border-radius:8px;padding:8px;margin:8px 0}body[data-style-page="/KnowledgeBase/ExternalApis"] #headers,body[data-style-page="/KnowledgeBase/ExternalApis"] #params,body[data-style-page="/KnowledgeBase/ExternalApis"] #testValues{direction:ltr}body[data-style-page="/KnowledgeBase/ExternalApis"] #headers .cell>label,body[data-style-page="/KnowledgeBase/ExternalApis"] #params .cell>label,body[data-style-page="/KnowledgeBase/ExternalApis"] #testValues .cell>label{text-align:left}body[data-style-page="/KnowledgeBase/ExternalApis"] #headers .select,body[data-style-page="/KnowledgeBase/ExternalApis"] #params .select{direction:rtl}body[data-style-page="/KnowledgeBase/ExternalApis"] .row.header-row{grid-template-columns:1fr 1fr auto}body[data-style-page="/KnowledgeBase/ExternalApis"] .row.param-row{grid-template-columns:1.1fr 1fr 1fr 1.3fr auto}body[data-style-page="/KnowledgeBase/ExternalApis"] .row.test-row{grid-template-columns:1fr 1.6fr}body[data-style-page="/KnowledgeBase/ExternalApis"] .cell{min-width:0}body[data-style-page="/KnowledgeBase/ExternalApis"] .code{direction:ltr;text-align:left;background:var(--rx-page-alt);color:var(--rx-ink);border:1px solid var(--rx-line);border-radius:10px;padding:12px;min-height:90px;white-space:pre-wrap;word-break:break-word;font:12px/1.7 Consolas,monospace;margin:0;max-height:420px;overflow:auto}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-key{color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-str{color:var(--rx-success)}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-num{color:var(--rx-info)}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-bool{color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-punc{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/ExternalApis"] .j-visitor{color:var(--rx-accent);font-weight:700}body[data-style-page="/KnowledgeBase/ExternalApis"] .status-line{font-weight:800;margin:8px 0}body[data-style-page="/KnowledgeBase/ExternalApis"] #fieldPicker .picker-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:700;color:var(--rx-ink-soft);margin-bottom:8px}body[data-style-page="/KnowledgeBase/ExternalApis"] #fieldPicker .picker-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:4px 12px;max-height:220px;overflow:auto;background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:8px;padding:10px}body[data-style-page="/KnowledgeBase/ExternalApis"] .picker-item{display:flex;align-items:center;gap:8px;font:12px Consolas,monospace;color:var(--rx-accent);cursor:pointer}body[data-style-page="/KnowledgeBase/ExternalApis"] .picker-item input{accent-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .status-line.ok{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/ExternalApis"] .status-line.bad{color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/ExternalApis"] .output-fields{display:flex;flex-wrap:wrap;gap:8px;background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:10px;padding:10px;direction:ltr;min-height:20px}body[data-style-page="/KnowledgeBase/ExternalApis"] .output-field{background:var(--rx-surface-2);border:1px solid var(--rx-line-strong);border-radius:8px;color:var(--rx-accent);padding:4px 8px;font:12px Consolas,monospace;cursor:pointer}body[data-style-page="/KnowledgeBase/ExternalApis"] .output-field:hover{border-color:var(--rx-accent);color:var(--rx-success)}body[data-style-page="/KnowledgeBase/ExternalApis"] .output-empty{direction:rtl;color:var(--rx-muted);font-size:13px}body[data-style-page="/KnowledgeBase/ExternalApis"] .rules-wrap{position:relative;height:220px;background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:7px}body[data-style-page="/KnowledgeBase/ExternalApis"] .rules-wrap:focus-within{border-color:var(--rx-accent);box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.14)}body[data-style-page="/KnowledgeBase/ExternalApis"] .rules-hl,body[data-style-page="/KnowledgeBase/ExternalApis"] textarea.rules{position:absolute;inset:0;box-sizing:border-box;margin:0;padding:8px 10px;border:0;font-size:13px;line-height:1.9;font-family:inherit;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;direction:rtl;text-align:right}body[data-style-page="/KnowledgeBase/ExternalApis"] .rules-hl{overflow:hidden;pointer-events:none;color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/ExternalApis"] .rules-hl .token{color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.22);border-radius:3px}body[data-style-page="/KnowledgeBase/ExternalApis"] textarea.rules{background:transparent;color:transparent;caret-color:var(--rx-ink);resize:none;outline:0;min-height:0;box-shadow:none}body[data-style-page="/KnowledgeBase/ExternalApis"] #apiPage .rules-wrap textarea.rules,body[data-style-page="/KnowledgeBase/ExternalApis"] #apiPage .rules-wrap textarea.rules:focus{background-color:transparent!important;color:transparent!important;border-color:transparent!important;box-shadow:none!important}body[data-style-page="/KnowledgeBase/ExternalApis"] textarea.rules::placeholder{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/ExternalApis"] .actions{display:flex;gap:8px}
@media(max-width:800px){body[data-style-page="/KnowledgeBase/ExternalApis"] .row.header-row,body[data-style-page="/KnowledgeBase/ExternalApis"] .row.param-row,body[data-style-page="/KnowledgeBase/ExternalApis"] .row.test-row,body[data-style-page="/KnowledgeBase/ExternalApis"] .two{grid-template-columns:1fr}body[data-style-page="/KnowledgeBase/ExternalApis"] .api-header{display:block}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-overlay{padding:0;align-items:flex-end}body[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal{max-height:94vh;border-radius:16px 16px 0 0}body[data-style-page="/KnowledgeBase/ExternalApis"] .step .t{display:none}body[data-style-page="/KnowledgeBase/ExternalApis"] .step.active .t{display:inline}}



/* External API settings: connection inventory is primary; the multi-step editor stays focused. */
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-page{max-width:1280px;margin-inline:auto;padding:clamp(10px,2vw,26px)}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-header{padding:18px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-card{margin-top:14px;border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--rx-line)}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--rx-line);border-radius:22px;background:var(--rx-surface)}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .steps{overflow-x:auto}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-page{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-header{padding:16px}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar{align-items:stretch}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar .api-btn{width:100%;justify-content:center}body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}
/* Page stylesheet: /KnowledgeBase/Faqs */
body[data-style-page="/KnowledgeBase/Faqs"] .faq-page{max-width:1120px;margin:0 auto;padding:1.75rem 1.5rem 3rem;direction:rtl}body[data-style-page="/KnowledgeBase/Faqs"] .faq-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-head-copy{max-width:720px}body[data-style-page="/KnowledgeBase/Faqs"] .faq-eyebrow{display:inline-flex;align-items:center;gap:.45rem;color:var(--rx-accent);font-size:.78rem;font-weight:800;margin-bottom:.65rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-title{color:var(--rx-ink);font-size:1.55rem;font-weight:900;margin:0 0 .45rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-description{color:var(--rx-muted);line-height:1.9;font-size:.9rem;margin:0}body[data-style-page="/KnowledgeBase/Faqs"] .faq-count{min-width:94px;padding:.8rem 1rem;border:1px solid rgba(var(--rx-accent-rgb), 0.2);border-radius:16px;background:rgba(var(--rx-accent-rgb), 0.08);text-align:center}body[data-style-page="/KnowledgeBase/Faqs"] .faq-count strong{display:block;color:var(--rx-ink);font-size:1.4rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-count span{color:var(--rx-muted);font-size:.72rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-alert{display:flex;align-items:center;gap:.55rem;padding:.8rem 1rem;border-radius:13px;margin-bottom:1rem;font-size:.85rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-alert.ok{background:rgba(var(--rx-success-rgb), 0.09);border:1px solid rgba(var(--rx-success-rgb), 0.2);color:var(--rx-success)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-alert.error{background:rgba(var(--rx-danger-rgb), 0.09);border:1px solid rgba(var(--rx-danger-rgb), 0.2);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel{background:rgba(var(--rx-contrast-rgb), 0.035);border:1px solid rgba(var(--rx-contrast-rgb), 0.085);border-radius:18px;overflow:hidden;margin-bottom:1.25rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-head{display:flex;align-items:center;gap:.75rem;padding:1rem 1.15rem;border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.07)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.12)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-head h2{color:var(--rx-ink);font-size:.95rem;font-weight:850;margin:0}body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-head p{color:var(--rx-muted);font-size:.75rem;margin:.15rem 0 0}body[data-style-page="/KnowledgeBase/Faqs"] .faq-editor{padding:1.15rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-field label{display:block;color:var(--rx-ink-soft);font-size:.78rem;font-weight:750;margin-bottom:.45rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-input{width:100%;min-height:48px;padding:.75rem .9rem;color:var(--rx-ink);background:rgba(2,6,23,.45);border:1px solid rgba(var(--rx-contrast-rgb), 0.126);border-radius:12px;outline:none;transition:.18s}body[data-style-page="/KnowledgeBase/Faqs"] .faq-input:focus{border-color:rgba(var(--rx-accent-rgb), 0.65);box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.11)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-switches{display:flex;gap:.55rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/Faqs"] .faq-check{display:flex;align-items:center;gap:.45rem;min-height:36px;padding:.4rem .7rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.08);background:rgba(var(--rx-contrast-rgb), 0.025);border-radius:10px;color:var(--rx-muted);font-size:.76rem;cursor:pointer}body[data-style-page="/KnowledgeBase/Faqs"] .faq-check input{accent-color:var(--rx-accent);width:15px;height:15px}body[data-style-page="/KnowledgeBase/Faqs"] .faq-actions{display:flex;gap:.55rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:38px;padding:.55rem .9rem;border-radius:10px;border:1px solid transparent;font-size:.78rem;font-weight:800;cursor:pointer;transition:.18s}body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-primary{color:#042f2e;background:var(--rx-brand-bright)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-primary:hover{background:var(--rx-brand-bright);transform:translateY(-1px)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-ghost{color:var(--rx-ink-soft);background:rgba(var(--rx-contrast-rgb), 0.04);border-color:rgba(var(--rx-contrast-rgb), 0.09)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-list-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .75rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-list-head h2{color:var(--rx-ink);font-size:.92rem;font-weight:850;margin:0}body[data-style-page="/KnowledgeBase/Faqs"] .faq-list-head span{color:var(--rx-muted);font-size:.72rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-list{display:grid;gap:.65rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:.9rem 1rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.075);border-radius:14px;background:rgba(var(--rx-contrast-rgb), 0.025);transition:.18s}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row:hover{border-color:rgba(var(--rx-accent-rgb), 0.18);background:rgba(var(--rx-contrast-rgb), 0.038)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row.is-inactive{opacity:.58}body[data-style-page="/KnowledgeBase/Faqs"] .faq-handle{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:var(--rx-muted);cursor:grab;background:rgba(var(--rx-contrast-rgb), 0.035)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-question{color:var(--rx-ink);font-size:.88rem;font-weight:750;line-height:1.8}body[data-style-page="/KnowledgeBase/Faqs"] .faq-meta{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.35rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.2rem .48rem;border-radius:7px;color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.049);font-size:.66rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-badge.active{color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.08)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row-actions{display:flex;gap:.35rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;border:1px solid rgba(var(--rx-contrast-rgb), 0.08);color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.025);cursor:pointer}body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn:hover{color:var(--rx-on-brand);border-color:rgba(var(--rx-contrast-rgb), 0.16)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn.delete:hover{color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.25);background:rgba(var(--rx-danger-rgb), 0.06)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-empty{padding:3rem 1rem;text-align:center;border:1px dashed rgba(var(--rx-contrast-rgb), 0.112);border-radius:16px;color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-empty i{display:block;font-size:1.8rem;color:var(--rx-ink-soft);margin-bottom:.6rem}@media(max-width:760px){body[data-style-page="/KnowledgeBase/Faqs"] .faq-page{padding:1.25rem .85rem 2rem}body[data-style-page="/KnowledgeBase/Faqs"] .faq-count{display:none}body[data-style-page="/KnowledgeBase/Faqs"] .faq-editor-foot{align-items:stretch;flex-direction:column}body[data-style-page="/KnowledgeBase/Faqs"] .faq-actions{justify-content:flex-end}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row{grid-template-columns:32px minmax(0,1fr)}body[data-style-page="/KnowledgeBase/Faqs"] .faq-row-actions{grid-column:2}}:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Faqs"])) .faq-eyebrow{color:var(--theme-accent-strong)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-count{background:rgba(var(--theme-accent-rgb),.08);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-count span{color:var(--theme-muted)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-alert.ok{color:var(--rx-success);background:rgba(var(--rx-success-rgb), 0.1);border-color:rgba(var(--rx-success-rgb), 0.3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-alert.error{color:var(--rx-danger);background:rgba(var(--rx-danger-rgb), 0.08);border-color:rgba(var(--rx-danger-rgb), 0.3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel{box-shadow:var(--theme-shadow)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-head{border-bottom-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-panel-icon{color:var(--theme-accent-strong);background:rgba(var(--theme-accent-rgb),.12)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-check{color:var(--theme-text-2) !important;background:var(--theme-surface-2);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-check input{accent-color:var(--theme-accent-strong)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-primary{color:var(--rx-ink);background:var(--theme-accent-strong)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-primary:hover{color:var(--rx-ink);background:var(--theme-accent)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-btn-ghost{color:var(--theme-text-2);background:var(--theme-surface-2);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-row{background:var(--theme-surface);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-row:hover{background:var(--theme-hover);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-handle{background:var(--theme-surface-2);color:var(--theme-muted)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-question{color:var(--theme-text)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-badge{color:var(--theme-muted);background:var(--theme-surface-3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-badge.active{color:var(--theme-accent-strong);background:rgba(var(--theme-accent-rgb),.1)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn{color:var(--theme-muted);background:var(--theme-surface-2);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn:hover{color:var(--theme-accent-strong);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-icon-btn.delete:hover{color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.3);background:rgba(var(--rx-danger-rgb), 0.08)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-empty{border-color:var(--theme-border-soft);color:var(--theme-muted)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Faqs"] .faq-empty i{color:var(--theme-faint)}



/* FAQs: place the quick editor up front and present sortable questions as clear rows. */
body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-page{max-width:1320px;margin-inline:auto;padding:clamp(10px,2vw,26px)}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-panel{margin-block:14px;border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);padding:14px 16px}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-page{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-head{grid-template-columns:1fr;padding:16px}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-count{justify-self:start}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-row{grid-template-columns:auto minmax(0,1fr);padding:12px}body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-row-actions{grid-column:2;justify-self:start}}
/* Page stylesheet: /KnowledgeBase/FastPath */
body[data-style-page="/KnowledgeBase/FastPath"] .fp{max-width:1080px;margin:auto;padding:2rem 1.5rem 4rem;direction:rtl;color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{display:flex;justify-content:space-between;gap:2rem;padding:1.7rem 1.8rem;margin-bottom:1.4rem;border:1px solid rgba(var(--rx-accent-rgb), 0.22);border-radius:22px;background:linear-gradient(135deg,var(--rx-brand),var(--rx-brand-hover))}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero h1{margin:0;color:var(--rx-ink);font-size:1.45rem;font-weight:900}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero p{margin:.5rem 0 0;color:var(--rx-muted);font-size:.8rem;line-height:2}body[data-style-page="/KnowledgeBase/FastPath"] .fp-title{display:flex;align-items:center;gap:.65rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-title i{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-actions{display:flex;gap:.45rem;align-items:start;white-space:nowrap}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn{border:0;border-radius:10px;padding:.6rem .85rem;font:inherit;font-size:.75rem;font-weight:800;cursor:pointer;text-decoration:none}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn.save{color:#063b39;background:var(--rx-brand-bright)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn.back{color:var(--rx-ink);background:rgba(var(--rx-contrast-rgb), 0.08)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar{display:flex;justify-content:space-between;align-items:end;margin-bottom:.7rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar h2{font-size:1rem;margin:0;color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar p{font-size:.72rem;color:var(--rx-muted);margin:.3rem 0 0}body[data-style-page="/KnowledgeBase/FastPath"] .fp-list{display:flex;flex-direction:column;gap:.75rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule{border:1px solid rgba(var(--rx-contrast-rgb), 0.105);border-radius:17px;background:rgba(var(--rx-contrast-rgb), 0.035);overflow:hidden}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-head{display:flex;align-items:center;gap:.8rem;padding:.95rem 1.1rem;border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.07)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-number{width:31px;height:31px;display:grid;place-items:center;border-radius:10px;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.13);font-size:.76rem;font-weight:900}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name{flex:1}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name input,body[data-style-page="/KnowledgeBase/FastPath"] .fp-answer,body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase{width:100%;box-sizing:border-box;color:var(--rx-ink);background:rgba(2,6,23,.4);border:1px solid rgba(var(--rx-contrast-rgb), 0.126);border-radius:9px;padding:.55rem .65rem;font:inherit;outline:0}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name input{font-size:.84rem;font-weight:850}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name input:focus,body[data-style-page="/KnowledgeBase/FastPath"] .fp-answer:focus,body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase:focus{border-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-state{font-size:.66rem;color:var(--rx-success)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-state.off{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-body{display:grid;grid-template-columns:1fr 1.25fr;gap:1rem;padding:1rem 1.1rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-label{display:block;color:var(--rx-muted);font-size:.68rem;font-weight:800;margin-bottom:.4rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-answer{min-height:105px;resize:vertical;line-height:1.9;font-size:.76rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrases{display:flex;flex-direction:column;gap:.45rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase-row{display:flex;gap:.4rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase{font-size:.74rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-remove{width:31px;border:0;border-radius:9px;color:var(--rx-danger);background:rgba(var(--rx-danger-rgb), 0.08);cursor:pointer}body[data-style-page="/KnowledgeBase/FastPath"] .fp-add{border:0;color:var(--rx-info);background:transparent;font:inherit;font-size:.7rem;font-weight:800;cursor:pointer;margin-top:.55rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot{display:flex;justify-content:space-between;padding:.7rem 1.1rem;border-top:1px solid rgba(var(--rx-contrast-rgb), 0.07);font-size:.7rem;color:var(--rx-ink-soft)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot label{display:flex;align-items:center;gap:.4rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot input{accent-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-delete{border:0;color:var(--rx-danger);background:transparent;font:inherit;font-size:.68rem;cursor:pointer}body[data-style-page="/KnowledgeBase/FastPath"] .fp-new{width:100%;padding:1rem;border:1px dashed rgba(var(--rx-accent-rgb), 0.35);border-radius:15px;color:var(--rx-brand-ink);background:rgba(var(--rx-accent-rgb), 0.035);font:inherit;font-size:.76rem;font-weight:800;cursor:pointer}body[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;padding:.9rem 1rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.091);border-radius:13px;background:rgba(var(--rx-contrast-rgb), 0.03);font-size:.73rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom label{font-weight:850}body[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom input{accent-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-note{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-alert{padding:.7rem .9rem;border-radius:10px;margin-bottom:1rem;font-size:.76rem}body[data-style-page="/KnowledgeBase/FastPath"] .ok{color:var(--rx-success);background:rgba(var(--rx-success-rgb), 0.1)}body[data-style-page="/KnowledgeBase/FastPath"] .err{color:var(--rx-danger);background:rgba(var(--rx-danger-rgb), 0.1)}
@media(max-width:700px){body[data-style-page="/KnowledgeBase/FastPath"] .fp{padding:1rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{display:block;padding:1.2rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-actions{margin-top:1rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn{flex:1;text-align:center}body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar{align-items:start;flex-direction:column;gap:.6rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-body{grid-template-columns:1fr}body[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom{align-items:start;flex-direction:column;gap:.5rem}}



/* Page stylesheet: /KnowledgeBase/FastPath */
body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-toggle-copy{display:flex;flex-direction:column;gap:.22rem;min-width:0}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-toggle-copy strong{color:var(--theme-text);font-size:.86rem;font-weight:900}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-toggle-copy span{color:var(--theme-muted);font-size:.7rem;line-height:1.8}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch{display:inline-flex;flex:0 0 auto;align-items:center;cursor:pointer}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch input{position:absolute;opacity:0;pointer-events:none}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch>span{position:relative;display:block;width:50px;height:28px;border:1px solid var(--theme-border-soft);border-radius:999px;background:var(--theme-hover);transition:.2s}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch>span:after{content:'';position:absolute;top:3px;right:3px;width:20px;height:20px;border-radius:50%;background:var(--theme-muted);transition:.2s;box-shadow:0 1px 3px rgba(var(--rx-contrast-rgb), 0.2)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch input:checked+span{background:var(--theme-accent-strong);border-color:var(--theme-accent)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch input:checked+span:after{right:25px;background:var(--rx-surface)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch input:focus-visible+span{box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 22%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-switch:before{content:none!important}
@media(max-width:700px){body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom{align-items:flex-start}body[data-style-page="/KnowledgeBase/FastPath"] .fp-toggle-copy{flex:1}}



/* Page stylesheet: /KnowledgeBase/FastPath */
body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom{padding:1rem 1.15rem;background:var(--theme-surface);border:1px solid var(--theme-border-soft);border-radius:14px}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom label{display:inline-flex;align-items:center;gap:.7rem;color:var(--theme-text);font-size:.82rem;font-weight:850;cursor:pointer}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom label:before{content:'فعال';order:2;color:var(--theme-accent);font-size:.68rem;font-weight:800}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom input{appearance:none;-webkit-appearance:none;position:relative;width:48px;height:27px;margin:0;border:1px solid var(--theme-border-soft);border-radius:999px;background:var(--theme-hover);cursor:pointer;transition:.2s}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom input:before{content:'';position:absolute;top:3px;right:3px;width:19px;height:19px;border-radius:50%;background:var(--theme-muted);transition:.2s}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom input:checked{background:var(--theme-accent-strong);border-color:var(--theme-accent)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom input:checked:before{right:24px;background:var(--rx-surface)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom input:not(:checked)+*{color:var(--theme-muted)}



/* Page stylesheet: /KnowledgeBase/FastPath */
body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrases{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center;gap:.45rem!important;min-height:48px;padding:.55rem!important;border:1px solid var(--theme-border-soft);border-radius:12px;background:var(--theme-input)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrases{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center;gap:.45rem!important;min-height:48px;padding:.55rem!important;border:1px solid var(--theme-border-soft);border-radius:12px;background:var(--theme-input)}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm{display:flex;flex-direction:column}body[data-style-page="/KnowledgeBase/FastPath"] #fpForm .fp-bottom{order:-1;margin-top:0;margin-bottom:1rem}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase-row{display:inline-flex!important;align-items:center;gap:.15rem!important;width:auto!important;margin:0!important;padding:.18rem .25rem .18rem .4rem;border:1px solid color-mix(in srgb,var(--theme-accent) 28%,transparent);border-radius:999px;background:color-mix(in srgb,var(--theme-accent) 10%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase{width:8rem!important;min-width:3rem!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:.2rem .25rem!important;font-size:.72rem!important}body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase:focus{box-shadow:none!important;border:0!important}body[data-style-page="/KnowledgeBase/FastPath"] .fp-remove{width:22px!important;height:22px;border-radius:50%!important;background:transparent!important;color:var(--theme-muted)!important;font-size:.9rem;line-height:1}body[data-style-page="/KnowledgeBase/FastPath"] .fp-remove:hover{background:color-mix(in srgb,var(--rx-danger-fill) 18%,transparent)!important;color:var(--rx-danger)!important}body[data-style-page="/KnowledgeBase/FastPath"] .fp-add{display:inline-flex;align-items:center;margin-top:.5rem;padding:.35rem .65rem;border:1px dashed color-mix(in srgb,var(--theme-accent) 40%,transparent);border-radius:8px;background:transparent}



/* Page stylesheet: /KnowledgeBase/FastPath */
body[data-style-page="/KnowledgeBase/FastPath"] /* The workspace theme owns every surface, text and accent on this page. */
.fp{color:var(--theme-text)!important}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{background:linear-gradient(135deg,var(--theme-surface),var(--theme-surface-2));border-color:color-mix(in srgb,var(--theme-accent) 28%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero h1,body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar h2{color:var(--theme-text)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero p,body[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar p,body[data-style-page="/KnowledgeBase/FastPath"] .fp-note{color:var(--theme-muted)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn.save{color:var(--rx-ink);background:var(--theme-accent-strong)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-btn.back{color:var(--theme-text);background:var(--theme-hover);border-color:var(--theme-border-soft)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule,body[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom{background:var(--theme-surface);border-color:var(--theme-border-soft);box-shadow:none}body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-head,body[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot{border-color:var(--theme-border-soft)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-number,body[data-style-page="/KnowledgeBase/FastPath"] .fp-icon{color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 14%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-title input,body[data-style-page="/KnowledgeBase/FastPath"] .fp-answer,body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase{color:var(--theme-text);background:var(--theme-input);border-color:var(--theme-border-soft)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-title input:focus,body[data-style-page="/KnowledgeBase/FastPath"] .fp-answer:focus,body[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase:focus{border-color:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 14%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-label,body[data-style-page="/KnowledgeBase/FastPath"] .fast-label{color:var(--theme-muted)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-state{color:var(--theme-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-add{color:var(--theme-accent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-new{color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 5%,transparent);border-color:color-mix(in srgb,var(--theme-accent) 38%,transparent)}body[data-style-page="/KnowledgeBase/FastPath"] .fp-alert{border:1px solid var(--theme-border-soft)}html.light-theme body[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{background:linear-gradient(135deg,var(--theme-surface),var(--theme-surface-2))}body[data-style-page="/KnowledgeBase/FastPath"] .fp i{color:var(--theme-accent)}



/* Prepared answers: keep the rule composer distinct from the ordered response library. */
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-page,body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-wrapper{max-width:1360px;margin-inline:auto;padding:clamp(10px,2vw,26px)}body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-page,body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-wrapper{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero{padding:16px}body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule{grid-template-columns:1fr}body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-actions{justify-self:start}}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp{max-width:1360px;margin-inline:auto;padding:clamp(10px,2vw,26px)}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp{padding:8px}}
/* Page stylesheet: /KnowledgeBase/HandoffRules */
body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page{max-width:1120px;margin:0 auto;padding:1.75rem 1.5rem 3rem;direction:rtl}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;margin-bottom:1.25rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-head-copy{max-width:720px}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-eyebrow{display:inline-flex;align-items:center;gap:.45rem;color:var(--rx-accent);font-size:.78rem;font-weight:800;margin-bottom:.65rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-title{color:var(--rx-ink);font-size:1.55rem;font-weight:900;margin:0 0 .45rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-description{color:var(--rx-muted);line-height:1.9;font-size:.9rem;margin:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count{min-width:110px;padding:.8rem 1rem;border:1px solid rgba(var(--rx-accent-rgb), 0.2);border-radius:16px;background:rgba(var(--rx-accent-rgb), 0.08);text-align:center}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count strong{display:block;color:var(--rx-ink);font-size:1.4rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count span{color:var(--rx-muted);font-size:.72rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert{display:flex;align-items:flex-start;gap:.55rem;padding:.8rem 1rem;border-radius:13px;margin-bottom:1rem;font-size:.85rem;line-height:1.8}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert i{margin-top:.2rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.ok{background:rgba(var(--rx-success-rgb), 0.09);border:1px solid rgba(var(--rx-success-rgb), 0.2);color:var(--rx-success)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.error{background:rgba(var(--rx-danger-rgb), 0.09);border:1px solid rgba(var(--rx-danger-rgb), 0.2);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.warn{background:rgba(var(--rx-warning-rgb), 0.08);border:1px solid rgba(var(--rx-warning-rgb), 0.22);color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert a{color:inherit;text-decoration:underline}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel{background:rgba(var(--rx-contrast-rgb), 0.035);border:1px solid rgba(var(--rx-contrast-rgb), 0.085);border-radius:18px;overflow:hidden;margin-bottom:1.25rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head{display:flex;align-items:center;gap:.75rem;padding:1rem 1.15rem;border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.07)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.12);flex-shrink:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head h2{color:var(--rx-ink);font-size:.95rem;font-weight:850;margin:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head p{color:var(--rx-muted);font-size:.75rem;margin:.15rem 0 0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head .hr-grow{flex:1}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-body{padding:1.15rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-status{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-status-text{color:var(--rx-ink-soft);font-size:.85rem;line-height:1.8}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .6rem;border-radius:999px;font-size:.72rem;font-weight:800}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pill.on{color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.12)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pill.off{color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.07)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-sentence{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:.6rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-chip{display:inline-flex;align-items:center;gap:.35rem;min-height:48px;padding:.5rem .8rem;border-radius:12px;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.1);border:1px solid rgba(var(--rx-accent-rgb), 0.18);font-size:.8rem;font-weight:800;white-space:nowrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-input{width:100%;min-height:48px;padding:.75rem .9rem;color:var(--rx-ink);background:rgba(2,6,23,.45);border:1px solid rgba(var(--rx-contrast-rgb), 0.126);border-radius:12px;outline:none;transition:.18s;resize:none;overflow:hidden;line-height:1.8;font:inherit;font-size:.88rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-input:focus{border-color:rgba(var(--rx-accent-rgb), 0.65);box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.11)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:.85rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-counter{color:var(--rx-muted);font-size:.72rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-counter.over{color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-check{display:flex;align-items:center;gap:.45rem;min-height:36px;padding:.4rem .7rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.08);background:rgba(var(--rx-contrast-rgb), 0.025);border-radius:10px;color:var(--rx-muted);font-size:.76rem;cursor:pointer}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-check input{accent-color:var(--rx-accent);width:15px;height:15px}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:38px;padding:.55rem .9rem;border-radius:10px;border:1px solid transparent;font-size:.78rem;font-weight:800;cursor:pointer;transition:.18s;text-decoration:none}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-primary{color:#042f2e;background:var(--rx-brand-bright)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-primary:hover{background:var(--rx-brand-bright);transform:translateY(-1px)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-ghost{color:var(--rx-ink-soft);background:rgba(var(--rx-contrast-rgb), 0.04);border-color:rgba(var(--rx-contrast-rgb), 0.09)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-ghost:hover{color:var(--rx-on-brand);border-color:rgba(var(--rx-contrast-rgb), 0.18)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help{margin-top:.9rem;border-top:1px dashed rgba(var(--rx-contrast-rgb), 0.098);padding-top:.8rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help summary{cursor:pointer;color:var(--rx-muted);font-size:.8rem;font-weight:750}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-top:.8rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box{padding:.8rem .9rem;border-radius:12px;background:rgba(var(--rx-contrast-rgb), 0.025);border:1px solid rgba(var(--rx-contrast-rgb), 0.07);font-size:.8rem;line-height:1.9;color:var(--rx-ink-soft)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box h3{font-size:.8rem;font-weight:850;margin:0 0 .35rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box.good h3{color:var(--rx-success)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box.bad h3{color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box ul{margin:0;padding-inline-start:1.1rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .75rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head h2{color:var(--rx-ink);font-size:.92rem;font-weight:850;margin:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head small{color:var(--rx-muted);font-size:.72rem;margin-inline-start:.4rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-search{display:flex;gap:.45rem;align-items:center}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-search input{min-height:38px;width:260px;max-width:100%;padding:.45rem .8rem;color:var(--rx-ink);background:rgba(2,6,23,.45);border:1px solid rgba(var(--rx-contrast-rgb), 0.126);border-radius:10px;outline:none;font:inherit;font-size:.8rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list{display:grid;gap:.65rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:.85rem;padding:.85rem 1rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.075);border-radius:14px;background:rgba(var(--rx-contrast-rgb), 0.025);transition:.18s}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row:hover{border-color:rgba(var(--rx-accent-rgb), 0.18);background:rgba(var(--rx-contrast-rgb), 0.038)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row.is-off{opacity:.6}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-num{display:grid;place-items:center;min-height:36px;border-radius:10px;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.1);font-weight:900;font-size:.9rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-num.off{color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.056);font-size:.66rem;font-weight:800}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-text{color:var(--rx-ink);font-size:.87rem;line-height:1.9;word-break:break-word}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compile{display:inline-flex;align-items:center;gap:.3rem;margin-top:.3rem;font-size:.7rem;font-weight:800}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compile.ok{color:var(--rx-success)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compile.pending{color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compile.bad{color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions{display:flex;gap:.35rem;align-items:center}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions form{margin:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-icon-btn{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;border:1px solid rgba(var(--rx-contrast-rgb), 0.08);color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.025);cursor:pointer}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-icon-btn:hover:not(:disabled){color:var(--rx-on-brand);border-color:rgba(var(--rx-contrast-rgb), 0.16)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-icon-btn:disabled{opacity:.3;cursor:default}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-icon-btn.delete:hover{color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.25);background:rgba(var(--rx-danger-rgb), 0.06)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-empty{padding:3rem 1rem;text-align:center;border:1px dashed rgba(var(--rx-contrast-rgb), 0.112);border-radius:16px;color:var(--rx-muted);line-height:1.9}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-empty i{display:block;font-size:1.8rem;color:var(--rx-ink-soft);margin-bottom:.6rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager{display:flex;justify-content:center;gap:.35rem;margin-top:1rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager a,body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager span{min-width:36px;height:36px;display:grid;place-items:center;padding:0 .6rem;border-radius:9px;border:1px solid rgba(var(--rx-contrast-rgb), 0.08);color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.025);font-size:.78rem;text-decoration:none}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager .current{color:#042f2e;background:var(--rx-brand-bright);border-color:transparent;font-weight:900}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager .disabled{opacity:.35}
@media(max-width:760px){body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page{padding:1.25rem .85rem 2rem}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count{display:none}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-sentence{grid-template-columns:1fr}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-chip{min-height:0}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-grid{grid-template-columns:1fr}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{grid-template-columns:44px minmax(0,1fr)}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions{grid-column:1/-1;justify-content:flex-end}body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-search input{width:100%}}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-eyebrow{color:var(--theme-accent-strong)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-title{color:var(--theme-text)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count{background:rgba(var(--theme-accent-rgb),.08);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count strong{color:var(--theme-text)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count span,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-description{color:var(--theme-muted)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.ok{color:var(--rx-success);background:rgba(var(--rx-success-rgb), 0.1);border-color:rgba(var(--rx-success-rgb), 0.3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.error{color:var(--rx-danger);background:rgba(var(--rx-danger-rgb), 0.08);border-color:rgba(var(--rx-danger-rgb), 0.3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-alert.warn{color:var(--rx-warning);background:rgba(var(--rx-warning-rgb), 0.1);border-color:rgba(var(--rx-warning-rgb), 0.3)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel{box-shadow:var(--theme-shadow);background:var(--theme-surface);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head{border-bottom-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head h2,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-status-text,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-text,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head h2{color:var(--theme-text)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-icon,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-chip,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-num{color:var(--theme-accent-strong);background:rgba(var(--theme-accent-rgb),.1);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-input,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-search input{color:var(--theme-text);background:var(--theme-surface-2);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-check,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-ghost,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-icon-btn,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager a,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager span{color:var(--theme-text-2);background:var(--theme-surface-2);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-btn-primary,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-pager .current{color:var(--rx-ink);background:var(--theme-accent-strong)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-box{color:var(--theme-text-2);background:var(--theme-surface-2);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{background:var(--theme-surface);border-color:var(--theme-border-soft)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row:hover{background:var(--theme-hover);border-color:var(--theme-border)}html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/HandoffRules"] .hr-empty{border-color:var(--theme-border-soft);color:var(--theme-muted)}



/* Handoff rules: sentence builder leads, searchable rule list follows. */
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-wrap{max-width:1320px;margin-inline:auto;padding:clamp(10px,2vw,26px)}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compose{padding:18px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(135deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface)}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-wrap{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-compose{padding:14px}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{grid-template-columns:1fr}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions{justify-self:start}}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor{padding:18px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(135deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor{padding:14px}}

/* Handoff rules: separate the feature switch, rule composer, and searchable rule list. */
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page{max-width:1420px;margin-inline:auto;padding:clamp(14px,2.2vw,32px);}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;padding:clamp(20px,2.6vw,32px);margin-bottom:16px;border:1px solid var(--rx-line);border-radius:22px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count{min-width:150px;padding:16px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-surface);text-align:center;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel{margin-bottom:16px;overflow:hidden;border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-panel-head{padding:17px 20px;background:var(--rx-page-alt);border-bottom:1px solid var(--rx-line);}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-body{padding:20px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-status{display:flex;align-items:center;justify-content:space-between;gap:16px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-sentence{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-input{width:100%;min-height:96px;resize:vertical;line-height:1.85;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 12px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list{display:grid;gap:10px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{grid-template-columns:auto minmax(0,1fr) auto;gap:14px;}
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
@media(max-width:760px){body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-page{padding:10px;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-head{grid-template-columns:1fr;padding:18px;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-count{justify-self:start;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-sentence{grid-template-columns:1fr;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-editor-foot,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-status,body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-list-head{align-items:stretch;flex-direction:column;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-help-grid{grid-template-columns:1fr;}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row{grid-template-columns:auto minmax(0,1fr);}body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row-actions{grid-column:1/-1;justify-self:start;}}
/* Page stylesheet: /KnowledgeBase/Index */
body[data-style-page="/KnowledgeBase/Index"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/Index"] .kb-wrapper{
        min-height: 100vh;
        background: var(--body-bg);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-wrapper::before{
        content: '';
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            radial-gradient(ellipse at 20% 20%, rgba(var(--rx-accent-rgb), 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(var(--rx-accent-rgb), 0.1) 0%, transparent 50%);
        pointer-events: none;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-container{ max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }body[data-style-page="/KnowledgeBase/Index"] .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        padding: 2rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/KnowledgeBase/Index"] .section-title{ color: var(--rx-accent); font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/KnowledgeBase/Index"] .section-sub{ color: var(--rx-muted); font-size: .85rem; margin: -.5rem 0 1.1rem 0; line-height: 1.8; }body[data-style-page="/KnowledgeBase/Index"] .badge-credit{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand); border-radius: 8px; padding: 0.45rem 1.1rem;
        font-size: 0.9rem; display: inline-flex; align-items: center; gap: .4rem;
        box-shadow: 0 4px 14px rgba(var(--rx-accent-rgb), 0.35);
    }body[data-style-page="/KnowledgeBase/Index"] .form-control-dark{
        background: rgba(var(--rx-contrast-rgb), 0.07) !important;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15) !important;
        color: var(--rx-ink) !important;
        border-radius: 10px;
        padding: 0.65rem 1rem;
        width: 100%;
        transition: border-color .15s, box-shadow .15s;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:focus{
        border-color: var(--rx-accent) !important;
        outline: none !important;
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.2) !important;
        background: rgba(var(--rx-contrast-rgb), 0.1) !important;
        color: var(--rx-ink) !important;
    }body[data-style-page="/KnowledgeBase/Index"] .form-control-dark::placeholder{ color: var(--rx-muted) !important; }body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:-webkit-autofill,body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:-webkit-autofill:hover,body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:-webkit-autofill:focus{
        -webkit-box-shadow: 0 0 0 1000px rgba(16, 40, 41,1) inset !important;
        -webkit-text-fill-color: var(--rx-ink) !important;
        caret-color: var(--rx-ink) !important;
    }body[data-style-page="/KnowledgeBase/Index"] .btn-primary-glow{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand); border: none; border-radius: 10px;
        padding: 0.65rem 1.6rem; cursor: pointer; font-family: var(--rx-font);
        font-weight: 600; font-size: .92rem;
        transition: opacity .2s, transform .1s;
        box-shadow: 0 4px 14px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/KnowledgeBase/Index"] .btn-primary-glow:hover{ opacity: 0.9; }body[data-style-page="/KnowledgeBase/Index"] .btn-primary-glow:active{ transform: scale(0.98); }body[data-style-page="/KnowledgeBase/Index"] /* Same glow-button family as .btn-primary-glow, but its own color so it reads as a distinct
       destination (the operator console, not "manage this list") rather than a muted afterthought
       squeezed between the two brand-purple buttons. */
    .btn-operator-glow{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        color: var(--rx-on-brand); border: none; border-radius: 10px;
        padding: 0.65rem 1.4rem; cursor: pointer; font-family: var(--rx-font);
        font-weight: 600; font-size: .92rem; text-decoration: none;
        display: inline-flex; align-items: center; gap: .45rem;
        transition: opacity .2s, transform .1s;
        box-shadow: 0 4px 14px rgba(var(--rx-info-rgb), 0.35);
    }body[data-style-page="/KnowledgeBase/Index"] .btn-operator-glow:hover{ opacity: 0.9; color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/Index"] .btn-operator-glow:active{ transform: scale(0.98); }body[data-style-page="/KnowledgeBase/Index"] .btn-secondary{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.15);
        border-radius: 10px; padding: 0.5rem 1.2rem; color: var(--rx-ink-soft);
        text-decoration: none; display: inline-flex; align-items: center; gap: .4rem;
        font-size: .85rem; font-weight: 600; transition: all .15s; cursor: pointer;
        font-family: var(--rx-font);
    }body[data-style-page="/KnowledgeBase/Index"] .btn-secondary:hover{ background: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.15); border: 1px solid rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); border-radius: 10px; padding: .8rem 1.1rem; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/KnowledgeBase/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.15);  border: 1px solid rgba(var(--rx-danger-rgb), 0.3);  color: var(--rx-danger); border-radius: 10px; padding: .8rem 1.1rem; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/KnowledgeBase/Index"] /* ---- Header summary grid: totals across ALL chatbots (not just the current page), so an owner
       with dozens of bots sees the whole picture before scrolling. Tiles that map to a list filter
       are links to that filter. ---- */
    .kb-summary-row{ display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin-top: 1.1rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile{
        display: flex; align-items: center; gap: .7rem; min-width: 0;
        background: rgba(var(--rx-contrast-rgb), 0.035); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 12px; padding: .75rem .9rem;
        color: inherit; text-decoration: none; transition: border-color .15s, background .15s;
    }body[data-style-page="/KnowledgeBase/Index"] a.kb-summary-tile:hover{ border-color: rgba(var(--rx-accent-rgb), 0.4); background: rgba(var(--rx-accent-rgb), 0.08); color: inherit; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile > div:last-child{ min-width: 0; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile .kb-summary-sub{ color: var(--rx-muted); font-size: .7rem; margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }body[data-style-page="/KnowledgeBase/Index"] /* ---- List toolbar: search, sort, filter chips and the "showing x–y of n" line. ---- */
    .kb-toolbar{
        display: flex; flex-direction: column; gap: .8rem;
        background: rgba(var(--rx-contrast-rgb), 0.035); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px; padding: .9rem 1rem; margin-bottom: 1rem;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-toolbar-row{ display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }body[data-style-page="/KnowledgeBase/Index"] .kb-search{ position: relative; flex: 1 1 260px; }body[data-style-page="/KnowledgeBase/Index"] .kb-search i{ position: absolute; top: 50%; inset-inline-start: .8rem; transform: translateY(-50%); color: var(--rx-muted); pointer-events: none; }body[data-style-page="/KnowledgeBase/Index"] .kb-search .form-control-dark{ padding-inline-start: 2.2rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-sort{ flex: 0 1 220px; cursor: pointer; }body[data-style-page="/KnowledgeBase/Index"] .kb-chips{ display: flex; gap: .4rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Index"] .kb-chip{
        display: inline-flex; align-items: center; gap: .35rem;
        padding: .32rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
        background: rgba(var(--rx-contrast-rgb), 0.04); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink-soft);
        text-decoration: none; transition: all .15s;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-chip:hover{ border-color: rgba(var(--rx-accent-rgb), 0.4); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Index"] .kb-chip.is-current{ background: rgba(var(--rx-accent-rgb), 0.2); border-color: rgba(var(--rx-accent-rgb), 0.55); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Index"] .kb-chip-count{ background: rgba(var(--rx-contrast-rgb), 0.08); border-radius: 999px; padding: 0 .45rem; font-size: .7rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-chip.is-empty{ opacity: .5; }body[data-style-page="/KnowledgeBase/Index"] .kb-result-line{ color: var(--rx-muted); font-size: .8rem; display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Index"] .kb-result-line a{ color: var(--rx-accent); text-decoration: none; }body[data-style-page="/KnowledgeBase/Index"] .pager{
        display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
        margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
    }body[data-style-page="/KnowledgeBase/Index"] .pager-status{ color: var(--rx-muted); font-size: .8rem; }body[data-style-page="/KnowledgeBase/Index"] .pager-controls{ display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Index"] .pager-btn,body[data-style-page="/KnowledgeBase/Index"] .pager-num{
        background: rgba(var(--rx-contrast-rgb), 0.05); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); border-radius: 12px;
        color: var(--rx-ink-soft); padding: .42rem .75rem; font-size: .8rem; font-weight: 700;
        text-decoration: none; transition: .15s; display: inline-flex; align-items: center; gap: .3rem;
    }body[data-style-page="/KnowledgeBase/Index"] .pager-num{ min-width: 2.1rem; justify-content: center; }body[data-style-page="/KnowledgeBase/Index"] .pager-btn:hover,body[data-style-page="/KnowledgeBase/Index"] .pager-num:hover{ background: rgba(var(--rx-accent-rgb), 0.16); border-color: rgba(var(--rx-accent-rgb), 0.4); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Index"] .pager-num.is-current{ background: rgba(var(--rx-accent-rgb), 0.28); border-color: rgba(var(--rx-accent-rgb), 0.55); color: var(--rx-ink); cursor: default; }body[data-style-page="/KnowledgeBase/Index"] .pager-btn.is-disabled{ opacity: .38; cursor: default; }body[data-style-page="/KnowledgeBase/Index"] .pager-btn.is-disabled:hover{ background: rgba(var(--rx-contrast-rgb), 0.05); border-color: rgba(var(--rx-contrast-rgb), 0.1); color: var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Index"] .pager-gap{ color: var(--rx-muted); padding: 0 .2rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-icon{
        width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile .kb-summary-num{ color: var(--rx-ink); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile .kb-summary-label{ color: var(--rx-muted); font-size: .74rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile.attn{ border-color: rgba(var(--rx-warning-rgb), 0.35); background: rgba(var(--rx-warning-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile.live{ border-color: rgba(var(--rx-danger-rgb), 0.35); background: rgba(var(--rx-danger-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Index"] /* ---- Chatbot rows: one full-width row per chatbot, identity+stats on the right (RTL logical
       "start"), the full action grid on the left — nothing hidden behind a menu anymore. ---- */
    .kb-grid{ display: flex; flex-direction: column; gap: 1rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-card{
        padding: 1.25rem 1.4rem;
        background: rgba(var(--rx-contrast-rgb), 0.045); border: 1px solid rgba(var(--rx-contrast-rgb), 0.09);
        border-radius: 18px; transition: border-color .2s, background .2s;
        color: inherit;
        display: flex; align-items: stretch; gap: 1.5rem; flex-wrap: wrap;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-card:hover{ border-color: rgba(var(--rx-accent-rgb), 0.32); background: rgba(var(--rx-accent-rgb), 0.045); }body[data-style-page="/KnowledgeBase/Index"] .kb-main{ display: flex; align-items: flex-start; gap: .9rem; flex: 1 1 320px; min-width: 280px; }body[data-style-page="/KnowledgeBase/Index"] .kb-icon{
        width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.22), rgba(var(--rx-accent-rgb), 0.16));
        border: 1px solid rgba(var(--rx-accent-rgb), 0.18);
        display: flex; align-items: center; justify-content: center;
        font-size: 1.3rem; color: var(--rx-accent);
        position: relative;
    }body[data-style-page="/KnowledgeBase/Index"] /* Small live dot on the avatar when this bot has a visitor waiting for an operator right now. */
    .kb-icon .live-dot{
        position: absolute; top: -3px; inset-inline-end: -3px;
        width: 12px; height: 12px; border-radius: 50%;
        background: var(--rx-danger-fill); border: 2px solid var(--rx-line-strong);
        box-shadow: 0 0 0 0 rgba(var(--rx-danger-rgb), 0.6);
        animation: pagefa45d220f0-kb-pulse 1.8s infinite;
    }
    @keyframes pagefa45d220f0-kb-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(var(--rx-danger-rgb), 0.55); }
        70%  { box-shadow: 0 0 0 7px rgba(var(--rx-danger-rgb), 0); }
        100% { box-shadow: 0 0 0 0 rgba(var(--rx-danger-rgb), 0); }
    }body[data-style-page="/KnowledgeBase/Index"] .kb-info{ flex: 1; min-width: 0; }body[data-style-page="/KnowledgeBase/Index"] .kb-name-row{ display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Index"] .kb-name{ color: var(--rx-ink); font-weight: 700; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }body[data-style-page="/KnowledgeBase/Index"] .kb-slug{ color: var(--rx-muted); font-size: .74rem; margin-top: .2rem; direction: ltr; text-align: right; }body[data-style-page="/KnowledgeBase/Index"] .status-badge{
        display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px;
        font-size: .7rem; font-weight: 600; flex-shrink: 0;
    }body[data-style-page="/KnowledgeBase/Index"] .status-active{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); }body[data-style-page="/KnowledgeBase/Index"] .status-inactive{ background: rgba(var(--rx-contrast-rgb), 0.05); color: var(--rx-muted); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1); }body[data-style-page="/KnowledgeBase/Index"] /* ---- Content health chip: the one signal worth flagging before anything else. ---- */
    .kb-health{ margin-top: .5rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-health-chip{
        display: inline-flex; align-items: center; gap: .32rem;
        font-size: .76rem; font-weight: 500; padding: .18rem .1rem;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-health-ok{ color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Index"] .kb-health-processing{ color: var(--rx-info); }body[data-style-page="/KnowledgeBase/Index"] .kb-health-failed{ color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Index"] .kb-health-empty{ color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Index"] .kb-lastseen{
        display: flex; align-items: center; gap: .35rem;
        color: var(--rx-muted); font-size: .74rem; margin: .4rem 0 0;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-lastseen i{ font-size: .78rem; }body[data-style-page="/KnowledgeBase/Index"] /* ---- Live stat strip: sits beside the identity block on wide screens, wraps below on narrow ones. ---- */
    .kb-stats{
        display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr));
        gap: .45rem;
        flex: 0 0 auto;
        align-self: center;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-stat{
        text-align: center; padding: .5rem .55rem;
        background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 10px; min-width: 70px;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-stat-num{ color: var(--rx-ink); font-weight: 700; font-size: .98rem; display: block; line-height: 1.3; }body[data-style-page="/KnowledgeBase/Index"] .kb-stat-label{ color: var(--rx-muted); font-size: .65rem; display: block; margin-top: .1rem; white-space: nowrap; }body[data-style-page="/KnowledgeBase/Index"] .kb-stat.warn .kb-stat-num{ color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Index"] .kb-stat.warn{ border-color: rgba(var(--rx-danger-rgb), 0.28); background: rgba(var(--rx-danger-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Index"] .kb-stat.good .kb-stat-num{ color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Index"] /* ---- Capability launcher: rich, but grouped by the job the user is doing. ---- */
    .kb-action-block{
        flex: 1 1 590px; min-width: 520px;
        padding-inline-start: 1rem;
        border-inline-start: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
        align-self: center;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-action-group{
        min-width: 0; padding: .55rem; border: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-radius: 12px; background: rgba(2, 15, 19, .12);
    }body[data-style-page="/KnowledgeBase/Index"] .kb-action-group-head{
        display: flex; align-items: center; gap: .35rem; margin-bottom: .45rem;
        color: var(--rx-muted); font-size: .61rem; font-weight: 700; white-space: nowrap;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-action-group-head i{ color: var(--rx-accent); font-size: .72rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-action-row{ display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: .35rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-act{
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .28rem;
        min-height: 57px; width: 100%; padding: .4rem .25rem;
        background: rgba(var(--rx-accent-rgb), 0.1);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.22);
        border-radius: 11px;
        color: var(--rx-accent); text-decoration: none;
        font: 600 .62rem/1.25 'Vazirmatn', sans-serif; text-align: center; cursor: pointer;
        transition: all .15s;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-act:hover{ background: rgba(var(--rx-accent-rgb), 0.22); color: var(--rx-ink); border-color: var(--rx-accent); transform: translateY(-1px); }body[data-style-page="/KnowledgeBase/Index"] .kb-act i{ font-size: 1rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-act-ghost{ background: transparent; border-color: rgba(var(--rx-contrast-rgb), 0.126); color: var(--rx-muted); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-ghost:hover{ background: rgba(var(--rx-contrast-rgb), 0.07); color: var(--rx-ink); border-color: rgba(var(--rx-contrast-rgb), 0.2); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-live{ background: rgba(var(--rx-danger-rgb), 0.14); border-color: rgba(var(--rx-danger-rgb), 0.32); color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-live:hover{ background: rgba(var(--rx-danger-rgb), 0.26); color: var(--rx-ink); border-color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-live i{ position: relative; }body[data-style-page="/KnowledgeBase/Index"] .kb-act-warn{ background: rgba(var(--rx-warning-rgb), 0.12); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-warn:hover{ background: rgba(var(--rx-warning-rgb), 0.22); color: var(--rx-ink); border-color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/Index"] .kb-act-danger{
        background: transparent; border-color: rgba(var(--rx-danger-rgb), 0.2); color: var(--rx-danger);
        cursor: pointer; font-family: inherit;
    }body[data-style-page="/KnowledgeBase/Index"] .kb-act-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.14); color: var(--rx-danger); border-color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Index"] /* Small numeric badge on an action button, e.g. unread feedback count. */
    .kb-act-badge{
        position: absolute; top: -6px; inset-inline-end: -8px;
        background: var(--rx-danger-fill); color: var(--rx-on-brand); border-radius: 999px;
        font-size: .58rem; font-weight: 700; min-width: 15px; height: 15px;
        display: flex; align-items: center; justify-content: center; padding: 0 3px;
        border: 2px solid var(--rx-line-strong);
    }body[data-style-page="/KnowledgeBase/Index"] .empty-state{ text-align: center; padding: 3rem 1rem; }body[data-style-page="/KnowledgeBase/Index"] .empty-state i{ font-size: 3rem; color: var(--rx-faint); margin-bottom: 1rem; display: block; }body[data-style-page="/KnowledgeBase/Index"] .empty-state p{ color: var(--rx-muted); font-size: .95rem; margin-bottom: 1.5rem; }body[data-style-page="/KnowledgeBase/Index"] .btn-action{
        background: transparent; border: 1px solid; border-radius: 8px;
        padding: .35rem .65rem; font-size: .8rem; cursor: pointer;
        font-family: var(--rx-font); font-weight: 600; transition: all .15s;
        display: inline-flex; align-items: center; gap: .3rem; text-decoration: none;
    }body[data-style-page="/KnowledgeBase/Index"] .btn-action:hover{ opacity: .8; }body[data-style-page="/KnowledgeBase/Index"] .step-card{ display: flex; align-items: flex-start; gap: 1rem; }body[data-style-page="/KnowledgeBase/Index"] .step-num{
        width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand)); color: var(--rx-on-brand);
        display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
    }body[data-style-page="/KnowledgeBase/Index"] /* Below the point where the stats block and action block both fit beside the identity block,
       stack all three sections full-width instead of letting them squeeze into unreadable columns. */
    @media (max-width: 980px){
        .kb-card { flex-direction: column; }
        .kb-stats { grid-template-columns: repeat(6, 1fr); width: 100%; }
        .kb-action-block {
            border-inline-start: none; padding-inline-start: 0;
            padding-top: .9rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.084);
            width: 100%; min-width: 0;
        }
        .kb-action-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {body[data-style-page="/KnowledgeBase/Index"] .kb-wrapper{ padding: 1rem; }body[data-style-page="/KnowledgeBase/Index"] .glass-card{ padding: 1.25rem; }body[data-style-page="/KnowledgeBase/Index"] .badge-credit{ font-size: .8rem; padding: .4rem .8rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-summary-row{ gap: .6rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-stats{ grid-template-columns: repeat(3, 1fr); }body[data-style-page="/KnowledgeBase/Index"] .kb-action-block{ grid-template-columns: 1fr; }body[data-style-page="/KnowledgeBase/Index"] .kb-action-row{ grid-template-columns: repeat(3, 1fr); }body[data-style-page="/KnowledgeBase/Index"] .kb-icon{ width: 40px; height: 40px; font-size: 1.15rem; }body[data-style-page="/KnowledgeBase/Index"] .kb-name{ font-size: .95rem; max-width: 130px; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Index"])) .form-control-dark:-webkit-autofill,
html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:-webkit-autofill:hover,
html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .form-control-dark:-webkit-autofill:focus{
        -webkit-box-shadow: 0 0 0 1000px var(--theme-input) inset !important;
        -webkit-text-fill-color: var(--theme-text) !important;
        caret-color: var(--theme-text) !important;
    }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .btn-secondary{
        background: var(--theme-surface-2) !important; border-color: var(--theme-border-soft) !important; color: var(--theme-text-2) !important;
    }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .btn-secondary:hover{ background: var(--theme-surface-3) !important; color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .alert-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .alert-danger{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-summary-icon[style*="#60a5fa"]{ color: #1d4ed8 !important; background: rgba(59,130,246,.1) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-summary-icon[style*="#f87171"]{ color: #b91c1c !important; background: rgba(239,68,68,.08) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile.attn{ border-color: rgba(var(--rx-warning-rgb), 0.4) !important; background: rgba(var(--rx-warning-rgb), 0.08) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile.live{ border-color: rgba(var(--rx-danger-rgb), 0.35) !important; background: rgba(var(--rx-danger-rgb), 0.06) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile .kb-summary-sub,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-result-line,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .pager-status{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-toolbar{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-chip{ background: var(--theme-surface); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-chip.is-current{ background: var(--theme-accent-strong); border-color: var(--theme-accent-strong); color: var(--rx-ink); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-chip-count{ background: rgba(0,0,0,.06); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-result-line a{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .pager-num.is-current{ background: var(--theme-accent-strong) !important; border-color: var(--theme-accent-strong) !important; color: var(--rx-ink) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-icon .live-dot,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-badge{ border-color: var(--theme-surface); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .status-active{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .status-inactive{ background: var(--theme-surface-3); color: var(--theme-muted); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-health-ok{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-health-processing{ color: var(--rx-info); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-health-failed,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-health-empty{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-stat.warn{ border-color: rgba(var(--rx-danger-rgb), 0.3) !important; background: rgba(var(--rx-danger-rgb), 0.06) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-stat.warn .kb-stat-num{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-stat.good .kb-stat-num{ color: var(--rx-success) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-live{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-live:hover{ background: var(--rx-danger-fill); border-color: var(--rx-danger); color: var(--rx-on-brand); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-warn{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.35); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-warn:hover{ background: rgba(var(--rx-warning-rgb), 0.2); border-color: var(--rx-warning); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-danger{ border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .kb-act-danger:hover{ background: rgba(var(--rx-danger-rgb), 0.1); border-color: var(--rx-danger); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .empty-state i{ color: var(--theme-faint); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Index"])) .modal .btn-close{ filter: none !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] .modal-content :is(div, ul)[style*="color:rgba(255,255,255"]{ color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] #regenerateChatbotName{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Index"] #deleteChatbotName{ color: var(--rx-danger) !important; }



/* Customer-first chatbot portfolio layout: actions, health summary, then searchable inventory. */
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-wrapper {
    min-height: 0;
    padding: clamp(12px, 2vw, 28px);
    background: transparent;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-wrapper::before { content: none; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container { max-width: 1440px; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card {
    border-color: var(--rx-line);
    border-radius: 22px;
    background: linear-gradient(130deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 42%, var(--rx-surface)));
    box-shadow: var(--rx-shadow-panel);
    backdrop-filter: none;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card > .d-flex:first-child {
    align-items: flex-start !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card h4 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 850;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 12px;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar {
    padding: 18px;
    border: 1px solid var(--rx-line);
    border-radius: 20px;
    background: var(--rx-surface);
    box-shadow: var(--rx-shadow-panel);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
    gap: 10px;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 14px 0 4px;
    scrollbar-width: thin;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-chip { flex: 0 0 auto; }
@media (max-width: 767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-wrapper { padding: 8px; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card { padding: 16px; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card > .d-flex:first-child { display: grid !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .glass-card > .d-flex:first-child > .d-flex { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .badge-credit { grid-column: 1 / -1; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-row { grid-template-columns: 1fr 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar-row { grid-template-columns: 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-sort { width: 100%; }
}

/* Keep the chatbot action launcher bright, grouped, and easy to scan. */
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-group {
    padding: .7rem;
    border: 1px solid var(--rx-line);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--rx-surface), var(--rx-surface-2));
    box-shadow: 0 5px 16px rgba(var(--rx-brand-rgb), .07);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-group-head {
    margin-bottom: .6rem;
    color: var(--rx-ink-soft);
    font-size: .68rem;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-row { gap: .45rem; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act {
    min-height: 66px;
    padding: .5rem .3rem;
    border: 1px solid rgba(var(--rx-brand-rgb), .2);
    border-radius: 14px;
    background: var(--rx-surface);
    color: var(--rx-brand);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.4;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act i { font-size: 1.08rem; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act:hover,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act:focus-visible {
    border-color: var(--rx-brand);
    background: var(--rx-brand);
    color: var(--rx-on-brand);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(var(--rx-brand-rgb), .18);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-ghost {
    background: var(--rx-surface-2);
    border-color: var(--rx-line);
    color: var(--rx-ink-soft);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-live,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-danger {
    background: rgba(var(--rx-danger-rgb), .06);
    border-color: rgba(var(--rx-danger-rgb), .24);
    color: var(--rx-danger);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-warn {
    background: rgba(var(--rx-warning-rgb), .07);
    border-color: rgba(var(--rx-warning-rgb), .25);
    color: var(--rx-warning);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-live:hover,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-danger:hover {
    background: var(--rx-danger-fill);
    color: var(--rx-on-brand);
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-act-warn:hover {
    background: var(--rx-warning-fill);
    color: var(--rx-ink);
}
/* Page stylesheet: /KnowledgeBase/LiveChat */
/* Customer live-chat settings: make the current section and its schedule easy to scan. */
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper{min-height:0;padding:clamp(14px,2.2vw,32px);background:transparent;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container{max-width:1360px;margin-inline:auto;padding:clamp(16px,2.2vw,30px);border:1px solid var(--rx-line);border-radius:24px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-header{padding:22px 24px;margin-bottom:16px;border:1px solid var(--rx-line);border-radius:18px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-header h1{font-size:clamp(1.4rem,2vw,1.9rem);}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .tabs{display:flex;gap:8px;max-width:100%;margin-bottom:18px;padding:6px;border:1px solid var(--rx-line);border-radius:16px;background:var(--rx-page-alt);overflow-x:auto;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .tabs a{flex:0 0 auto;border-radius:11px;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .card-panel{padding:clamp(16px,2vw,24px);margin-bottom:16px;border:1px solid var(--rx-line);border-radius:18px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel);}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .card-panel h2{margin-bottom:14px;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .day-row{grid-template-columns:minmax(84px,.55fr) minmax(100px,.7fr) minmax(120px,1fr) minmax(120px,1fr);gap:10px;padding:12px;border:1px solid var(--rx-line);border-radius:14px;background:var(--rx-page-alt);margin-bottom:8px;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .form-control,body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .form-select{min-width:0;}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .form-hint{max-width:78ch;line-height:1.8;}
@media(max-width:700px){body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper{padding:10px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container{padding:12px;border-radius:18px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-header{padding:18px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .tabs{margin-inline:-2px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .day-row{grid-template-columns:1fr 1fr;gap:10px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .day-row>*{min-width:0;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .card-panel{padding:14px;}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .row.g-3{--bs-gutter-x:.75rem;--bs-gutter-y:.75rem;}}
body[data-style-page="/KnowledgeBase/LiveChat"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper{
        min-height: 100vh;
        background: var(--body-bg);
        padding: 2rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .page-container{ max-width: 1200px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/LiveChat"] .page-header{ margin-bottom: 1.5rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .page-header h1{ color: var(--rx-ink); font-size: 1.6rem; font-weight: 700; margin: 0; }body[data-style-page="/KnowledgeBase/LiveChat"] .page-header p{ color: var(--rx-muted); margin: .4rem 0 0; font-size: .9rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .card-panel{
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .card-panel h2{
        color: var(--rx-ink); font-size: 1.05rem; font-weight: 700;
        margin: 0 0 1rem; padding-bottom: .75rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
    }body[data-style-page="/KnowledgeBase/LiveChat"] /* Per-chatbot switcher */
    .kb-switch{
        display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius: 14px;
        padding: .6rem .8rem;
        margin-bottom: 1.1rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .kb-switch-label{ color: var(--rx-muted); font-size: .82rem; margin-inline-end: .2rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip{
        display: inline-flex; align-items: center; gap: .35rem;
        color: var(--rx-ink-soft); text-decoration: none;
        font-size: .84rem; font-weight: 500;
        padding: .4rem .85rem;
        border-radius: 999px;
        background: rgba(var(--panel-bg-rgb), .55);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        transition: all .15s;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip:hover{ color: var(--rx-ink); border-color: var(--rx-accent); background: rgba(var(--rx-accent-rgb), 0.14); }body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip.active{
        background: var(--rx-brand); color: var(--rx-on-brand); border-color: var(--rx-accent);
        box-shadow: 0 2px 10px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/KnowledgeBase/LiveChat"] /* A dot rather than a word: the owner only needs to spot which chatbots are already live. */
    .kb-on{
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--rx-success-fill);
        box-shadow: 0 0 0 3px rgba(var(--rx-success-rgb), 0.22);
        flex: none;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .tabs{ display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .tabs a{
        color: var(--rx-ink-soft); text-decoration: none; padding: .55rem 1.1rem;
        border-radius: 10px; font-size: .88rem; font-weight: 500;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        transition: all .15s;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .tabs a:hover{ background: rgba(var(--rx-accent-rgb), 0.18); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/LiveChat"] .tabs a.active{ background: var(--rx-brand); color: var(--rx-on-brand); border-color: var(--rx-accent); }
    @media (min-width: 992px) {body[data-style-page="/KnowledgeBase/LiveChat"] .tabs{ display: none; } }body[data-style-page="/KnowledgeBase/LiveChat"] .form-label{ color: var(--rx-ink-soft); font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .form-hint{ color: var(--rx-muted); font-size: .78rem; margin-top: .3rem; display: block; }body[data-style-page="/KnowledgeBase/LiveChat"] /* وضعیت تبدیل قوانین هنداف: یک خط جمع‌وجور به جای alert بزرگ */
    .handoff-status{
        display: flex; align-items: flex-start; gap: .5rem;
        font-size: .82rem; line-height: 1.6; margin-top: .5rem;
        padding: .5rem .7rem; border-radius: 8px; border: 1px solid transparent;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status i{ margin-top: .15rem; flex-shrink: 0; }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-ok{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.08); border-color: rgba(var(--rx-success-rgb), 0.22); }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-pending{ color: var(--rx-info); background: rgba(var(--rx-info-rgb), 0.08); border-color: rgba(var(--rx-info-rgb), 0.22); }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-failed{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.22); }body[data-style-page="/KnowledgeBase/LiveChat"] /* توضیحات بلند، جمع‌شده تا صفحه شلوغ نشود */
    .handoff-help{ margin-top: .6rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary{
        cursor: pointer; color: var(--rx-muted); font-size: .8rem; list-style: none;
        display: inline-flex; align-items: center; gap: .35rem; user-select: none;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary::-webkit-details-marker{ display: none; }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary::before{ content: "؟"; font-size: .7rem; opacity: .75;
        border: 1px solid currentColor; border-radius: 50%; width: 1.05em; height: 1.05em;
        display: inline-flex; align-items: center; justify-content: center; }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary:hover{ color: var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > div{
        margin-top: .5rem; padding: .7rem .85rem; border-radius: 8px;
        background: rgba(var(--rx-contrast-rgb), 0.042); border: 1px solid rgba(var(--rx-contrast-rgb), 0.098);
        color: var(--rx-muted); font-size: .8rem; line-height: 1.75;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help ul{ margin: .45rem 0 .45rem 0; padding-inline-start: 1.1rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help b{ color: var(--rx-ink-soft); font-weight: 600; }body[data-style-page="/KnowledgeBase/LiveChat"] /* کادر قوانین: بلند، قابل تغییر اندازه، و خوانا برای فهرست خط‌به‌خط */
    .handoff-rules{
        min-height: 22rem;
        max-height: 70vh;
        resize: vertical;
        line-height: 2;
        font-size: .86rem;
        white-space: pre-wrap;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .char-counter{ color: var(--rx-muted); font-size: .74rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .char-counter.is-near{ color: var(--rx-warning); }body[data-style-page="/KnowledgeBase/LiveChat"] .char-counter.is-over{ color: var(--rx-danger); font-weight: 600; }body[data-style-page="/KnowledgeBase/LiveChat"] .form-control,body[data-style-page="/KnowledgeBase/LiveChat"] .form-select{
        background: rgba(var(--panel-bg-rgb), .75) !important;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.154) !important;
        color: var(--rx-ink) !important;
        border-radius: 10px;
        padding: .6rem .85rem;
        font-size: .9rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .form-control:focus,body[data-style-page="/KnowledgeBase/LiveChat"] .form-select:focus{
        border-color: var(--rx-accent) !important;
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.15) !important;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .form-control::placeholder{ color: var(--rx-ink-soft) !important; }body[data-style-page="/KnowledgeBase/LiveChat"] .form-check-input{
        background-color: rgba(var(--panel-bg-rgb), .8);
        border-color: rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/KnowledgeBase/LiveChat"] .form-check-input:checked{ background-color: var(--rx-brand); border-color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/LiveChat"] .form-check-label{ color: var(--rx-ink-soft); font-size: .88rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-save{
        background: var(--rx-brand); border: none; color: var(--rx-on-brand);
        padding: .6rem 1.6rem; border-radius: 10px;
        font-size: .9rem; font-weight: 600;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-save:hover{ background: var(--rx-brand); color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-danger-soft{
        background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.35);
        color: var(--rx-danger); padding: .35rem .8rem; border-radius: 8px; font-size: .8rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-danger-soft:hover{ background: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-edit-soft{
        background: rgba(var(--rx-accent-rgb), 0.15); border: 1px solid rgba(var(--rx-accent-rgb), 0.35);
        color: var(--rx-accent); padding: .35rem .8rem; border-radius: 8px; font-size: .8rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .btn-edit-soft:hover{ background: rgba(var(--rx-accent-rgb), 0.3); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft{ width: 100%; color: var(--rx-ink-soft); font-size: .88rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft th{
        color: var(--rx-muted); font-weight: 600; font-size: .8rem;
        padding: .7rem .6rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.14);
        text-align: right;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft td{
        padding: .75rem .6rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056);
        vertical-align: middle;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .badge-on{ background: rgba(var(--rx-success-rgb), 0.18); color: var(--rx-success); border: 1px solid rgba(var(--rx-success-rgb), 0.3); }body[data-style-page="/KnowledgeBase/LiveChat"] .badge-off{ background: rgba(var(--rx-contrast-rgb), 0.126); color: var(--rx-ink-soft); border: 1px solid rgba(var(--rx-contrast-rgb), 0.2); }body[data-style-page="/KnowledgeBase/LiveChat"] .badge-live{ background: rgba(var(--rx-info-rgb), 0.18); color: var(--rx-info); border: 1px solid rgba(var(--rx-info-rgb), 0.3); }body[data-style-page="/KnowledgeBase/LiveChat"] .badge-pending{ background: rgba(var(--rx-warning-rgb), 0.16); color: var(--rx-warning); border: 1px solid rgba(var(--rx-warning-rgb), 0.3); }body[data-style-page="/KnowledgeBase/LiveChat"] .badge-soft{ padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }body[data-style-page="/KnowledgeBase/LiveChat"] .alert-ok{
        background: rgba(var(--rx-success-rgb), 0.12); border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .alert-err{
        background: rgba(var(--rx-danger-rgb), 0.12); border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
    }body[data-style-page="/KnowledgeBase/LiveChat"] .day-row{
        display: grid; grid-template-columns: 6rem 7rem 1fr 1fr; gap: .75rem;
        align-items: center; padding: .6rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056);
    }body[data-style-page="/KnowledgeBase/LiveChat"] .day-row:last-child{ border-bottom: none; }body[data-style-page="/KnowledgeBase/LiveChat"] .day-name{ color: var(--rx-ink); font-size: .9rem; font-weight: 500; }

    @media (max-width: 720px) {body[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper{ padding: 1rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .day-row{ grid-template-columns: 1fr 1fr; row-gap: .5rem; }body[data-style-page="/KnowledgeBase/LiveChat"] .day-name{ grid-column: 1 / -1; }body[data-style-page="/KnowledgeBase/LiveChat"] .table-responsive-wrap{ overflow-x: auto; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/LiveChat"])) .page-header h1 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-switch{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-switch-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip{ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip:hover{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-chip.active{ color: var(--rx-ink); background: var(--theme-accent-strong); border-color: var(--theme-accent-strong); box-shadow: 0 2px 10px rgba(var(--theme-accent-rgb), .25); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .kb-on{ background: var(--rx-success-fill); box-shadow: 0 0 0 3px rgba(var(--rx-success-rgb), 0.18); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .tabs a:not(.active){ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-ok{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-pending{ color: var(--rx-info); background: rgba(var(--rx-info-rgb), 0.08); border-color: rgba(var(--rx-info-rgb), 0.28); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-status.is-failed{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > summary:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .handoff-help > div{ color: var(--theme-text-2); background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .char-counter.is-near{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .char-counter.is-over{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .btn-danger-soft{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .btn-danger-soft:hover{ background: var(--rx-danger-fill); border-color: var(--rx-danger); color: var(--rx-on-brand); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft :is(th, td){ border-bottom-color: var(--theme-border-soft); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/LiveChat"])) .badge-soft.badge-on{ color: var(--rx-success) !important; background: rgba(var(--rx-success-rgb), 0.1) !important; border-color: rgba(var(--rx-success-rgb), 0.3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .badge-soft.badge-off{ color: var(--theme-text-2) !important; background: var(--theme-surface-3) !important; border-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .badge-soft.badge-live{ color: var(--rx-info) !important; background: rgba(var(--rx-info-rgb), 0.1) !important; border-color: rgba(var(--rx-info-rgb), 0.3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .badge-soft.badge-pending{ color: var(--rx-warning) !important; background: rgba(var(--rx-warning-rgb), 0.1) !important; border-color: rgba(var(--rx-warning-rgb), 0.35) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .alert-ok{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .alert-err{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .day-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] .day-name{ color: var(--theme-text); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/LiveChat"])) #contactHistoryOverlay{ background: rgba(var(--rx-surface-rgb), 0.45) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryOverlay > div{ background: var(--theme-surface) !important; border-color: var(--theme-border-soft) !important; box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryOverlay > div > div:first-child{ border-bottom-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryTitle{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryOverlay button[onclick^="closeContactHistory"]{ background: var(--theme-surface-3) !important; color: var(--theme-text-2) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryBody [style*="color:#e2e8f0"]{ color: var(--theme-text) !important; border-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryBody [style*="color:#94a3b8"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveChat"] #contactHistoryBody [style*="background:rgba(255,255,255,.07)"]{ background: var(--theme-surface-2) !important; color: var(--theme-text) !important; border: 1px solid var(--theme-border-soft); }



/* Page stylesheet: /KnowledgeBase/LiveDashboard */
body[data-style-page="/KnowledgeBase/LiveDashboard"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-page{ padding: 1.5rem 2rem 2.5rem; background: var(--body-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-shell{ width: 100%; max-width: 1540px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-top{
        display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
        margin-bottom: 1rem; padding: 1.1rem 1.25rem;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.098); border-radius: 14px;
        background: rgba(var(--panel-bg-rgb), .58); flex-wrap: wrap;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title h1{ font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; color: var(--rx-ink); display: flex; align-items: center; gap: .5rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title p{ margin: 0; color: var(--rx-muted); font-size: .9rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .soft-link{
        display: inline-flex; align-items: center; gap: .4rem; color: var(--rx-accent);
        border: 1px solid rgba(153, 246, 228,.25); background: rgba(var(--rx-accent-rgb), 0.08);
        border-radius: 8px; padding: .55rem .85rem; text-decoration: none; font-size: .84rem; font-weight: 700;
        white-space: nowrap;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .soft-link:hover{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.16); }body[data-style-page="/KnowledgeBase/LiveDashboard"] /* Live/offline pill — mirrors the operator console's own connDot convention so a supervisor
       recognizes the same "connected" language across both screens. */
    .live-pill{
        display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
        font-size: .78rem; font-weight: 700; border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); color: var(--rx-muted);
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--rx-faint); flex: none; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dot.on{ background: var(--rx-success-fill); box-shadow: 0 0 0 3px rgba(var(--rx-success-rgb), 0.18); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dot.off{ background: var(--rx-danger-fill); box-shadow: 0 0 0 3px rgba(var(--rx-danger-rgb), 0.18); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid{ display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: .75rem; margin-bottom: 1rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi{
        background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 12px;
        padding: .9rem; box-shadow: 0 12px 32px rgba(2,6,23,.14);
        min-height: 116px; display: flex; flex-direction: column; justify-content: space-between;
        position: relative; overflow: visible; transition: box-shadow .25s;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] /* Brief highlight flash when a stat's value changes after a live refetch — otherwise a number
       silently updating in place is too easy to miss on a screen meant to be glanced at, not read. */
    .kpi.flash{ box-shadow: 0 0 0 2px rgba(var(--rx-accent-rgb), 0.55), 0 18px 50px rgba(2,6,23,.22); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-label{ display: flex; align-items: center; gap: .45rem; color: var(--rx-muted); font-size: .82rem; font-weight: 700; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-label i{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help{
        position: absolute; top: -1px; left: -1px; z-index: 2;
        width: 28px; height: 26px; margin: 0; padding: 0; flex: none;
        display: inline-flex; align-items: center; justify-content: center;
        color: var(--theme-accent); background: var(--theme-hover);
        border: 1px solid var(--theme-accent); border-radius: 12px 0 10px 0; cursor: pointer;
        opacity: 1; transition: color .18s, background .18s, box-shadow .18s;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help i{ color: inherit; font-size: .72rem; line-height: 1; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help:hover,body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help:focus-visible{
        color: var(--theme-accent-strong); background: var(--theme-surface-2);
        box-shadow: 0 0 0 2px rgba(var(--theme-accent-rgb), .14); outline: none;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help-note{ margin: -.25rem 0 .85rem; color: var(--rx-muted); font-size: .76rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help-note i{ color: var(--rx-accent); margin-inline-end: .2rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi-head{ display: flex; align-items: center; gap: .4rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi-head .metric-help{ margin: 0; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-popover{
        --bs-popover-max-width: 310px; --bs-popover-border-width: 1px;
        --bs-popover-border-color: var(--theme-border); --bs-popover-border-radius: 12px;
        --bs-popover-bg: var(--theme-surface); --bs-popover-header-bg: transparent;
        --bs-popover-header-color: var(--theme-text); --bs-popover-body-color: var(--theme-text-2);
        text-align: right; direction: rtl; box-shadow: var(--theme-shadow);
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-popover .popover-header{
        margin: 0; padding: .85rem .9rem .45rem;
        border: 0; font-size: .86rem; font-weight: 850;
    }body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-popover .popover-body{ padding: .2rem .9rem .9rem; line-height: 1.9; font-size: .78rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-value{ font-size: 1.65rem; font-weight: 900; color: var(--rx-ink); line-height: 1.15; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-hint{ color: var(--rx-muted); font-size: .76rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .section-grid{ display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .panel{ background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 12px; padding: 1.1rem; position: relative; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .panel h2{ margin: 0 0 .9rem; color: var(--rx-ink); font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: .5rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row{ display: flex; align-items: center; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row:last-child{ border-bottom: none; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row .mode-label{ display: flex; align-items: center; gap: .5rem; color: var(--rx-ink-soft); font-size: .88rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row .mode-dot{ width: 9px; height: 9px; border-radius: 50%; flex: none; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row .mode-value{ font-size: 1.05rem; font-weight: 800; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .dot-bot{ background: var(--rx-brand-bright); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .dot-waiting{ background: var(--rx-warning-fill); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .dot-operator{ background: var(--rx-success-fill); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .op-count-row{ display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .op-count-row + .op-count-row{ border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.07); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-section{ margin-top: 1rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-title{ display: flex; align-items: center; gap: .5rem; margin: 0 0 .65rem; color: var(--rx-ink); font-size: .9rem; font-weight: 800; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-title i{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-grid{ display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi{ min-height: 96px; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi > span:first-child{ color: var(--rx-muted); font-size: .76rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi > span:last-child{ font-size: 1.15rem; font-weight: 800; color: var(--rx-ink); }

    @media (max-width: 1400px) {body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
    }
    @media (max-width: 900px) {body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-page{ padding: 1rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid,body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }body[data-style-page="/KnowledgeBase/LiveDashboard"] .section-grid{ grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-top{ align-items: flex-start; padding: 1rem; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title h1{ font-size: 1.12rem; line-height: 1.65; }body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid,body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-grid{ grid-template-columns: 1fr; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/LiveDashboard"])) .live-dash-page{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-top{
        background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow);
    }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title h1{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title h1 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-title p{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .live-pill{ color: var(--theme-text-2); border-color: var(--theme-border-soft); background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi.flash{ box-shadow: 0 0 0 2px rgba(var(--theme-accent-rgb), .55), var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] :is(.kpi-label i, .history-title i, .panel h2 i){ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-value{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-hint{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .metric-help-note{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .panel h2{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-row .mode-label,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .op-count-row .mode-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .mode-value{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] :is(.mode-row, .op-count-row + .op-count-row){ border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .dot-bot{ background: var(--theme-accent); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-title{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi > span:first-child{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/LiveDashboard"] .history-kpi > span:last-child{ color: var(--theme-text); }



body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-page{padding:clamp(8px,1.8vw,24px);background:transparent}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-shell{max-width:1480px}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-top{padding:18px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:14px}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .panel{border:1px solid var(--rx-line);border-radius:18px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:900px){body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-page{padding:6px}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .live-dash-top{display:grid;gap:12px;padding:14px}body.customer-panel[data-style-page="/KnowledgeBase/LiveDashboard"] .kpi-grid{grid-template-columns:1fr 1fr;gap:8px}}
/* Page stylesheet: /KnowledgeBase/SlaSettings */
body[data-style-page="/KnowledgeBase/SlaSettings"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper{
        min-height: 100vh;
        background: var(--body-bg);
        padding: 2rem;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .page-container{ max-width: 900px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/SlaSettings"] .page-header{ margin-bottom: 1.5rem; }body[data-style-page="/KnowledgeBase/SlaSettings"] .page-header h1{ color: var(--rx-ink); font-size: 1.6rem; font-weight: 700; margin: 0; }body[data-style-page="/KnowledgeBase/SlaSettings"] .page-header p{ color: var(--rx-muted); margin: .4rem 0 0; font-size: .9rem; }body[data-style-page="/KnowledgeBase/SlaSettings"] .card-panel{
        background: rgba(var(--rx-surface-rgb), 0.6);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        border-radius: 16px;
        padding: 1.5rem;
        margin-bottom: 1.25rem;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .card-panel h2{
        color: var(--rx-ink); font-size: 1.05rem; font-weight: 700;
        margin: 0 0 1rem; padding-bottom: .75rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.105);
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-switch{
        display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
        background: rgba(var(--rx-surface-rgb), 0.5);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius: 14px;
        padding: .6rem .8rem;
        margin-bottom: 1.1rem;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-switch-label{ color: var(--rx-muted); font-size: .82rem; margin-inline-end: .2rem; }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip{
        display: inline-flex; align-items: center; gap: .35rem;
        color: var(--rx-ink-soft); text-decoration: none;
        font-size: .84rem; font-weight: 500;
        padding: .4rem .85rem;
        border-radius: 999px;
        background: rgba(var(--panel-bg-rgb), .55);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.126);
        transition: all .15s;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip:hover{ color: var(--rx-ink); border-color: var(--rx-accent); background: rgba(var(--rx-accent-rgb), 0.14); }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip.active{
        background: var(--rx-brand); color: var(--rx-on-brand); border-color: var(--rx-accent);
        box-shadow: 0 2px 10px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-on{
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--rx-success-fill);
        box-shadow: 0 0 0 3px rgba(var(--rx-success-rgb), 0.22);
        flex: none;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .form-label{ color: var(--rx-ink-soft); font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }body[data-style-page="/KnowledgeBase/SlaSettings"] .form-hint{ color: var(--rx-muted); font-size: .78rem; margin-top: .3rem; display: block; }body[data-style-page="/KnowledgeBase/SlaSettings"] .alert-ok{
        background: rgba(var(--rx-success-rgb), 0.12); border: 1px solid rgba(var(--rx-success-rgb), 0.3);
        color: var(--rx-success); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .alert-err{
        background: rgba(var(--rx-danger-rgb), 0.12); border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger); border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .field-row{
        display: grid; grid-template-columns: 1fr 10rem; gap: 1rem;
        align-items: end; padding: .75rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056);
    }body[data-style-page="/KnowledgeBase/SlaSettings"] .field-row:last-child{ border-bottom: none; }body[data-style-page="/KnowledgeBase/SlaSettings"] .field-row input.form-control{ text-align: center; }

    @media (max-width: 640px) {body[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper{ padding: 1rem; }body[data-style-page="/KnowledgeBase/SlaSettings"] .field-row{ grid-template-columns: 1fr; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/SlaSettings"])) .kb-switch{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-switch-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip{ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip:hover{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-chip.active{ color: var(--rx-ink); background: var(--theme-accent-strong); border-color: var(--theme-accent-strong); box-shadow: 0 2px 10px rgba(var(--theme-accent-rgb), .25); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .kb-on{ background: var(--rx-success-fill); box-shadow: 0 0 0 3px rgba(var(--rx-success-rgb), 0.18); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .alert-ok{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .alert-err{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .page-header h1 i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .field-row{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper .btn-outline-light{ color: var(--theme-accent-strong); border-color: var(--theme-border); background: transparent; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper .btn-outline-light:hover{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-accent); }



/* Page stylesheet: /KnowledgeBase/Surveys */
body[data-style-page="/KnowledgeBase/Surveys"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/Surveys"] .surveys-page{ min-height: 100vh; padding: 2rem; background: var(--body-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Surveys"] .surveys-shell{ max-width: 980px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/Surveys"] .surveys-top{ display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Surveys"] .surveys-title h1{ font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Surveys"] .surveys-title p{ margin: 0; color: var(--rx-muted); font-size: .9rem; }body[data-style-page="/KnowledgeBase/Surveys"] .soft-link{
        display: inline-flex; align-items: center; gap: .4rem; color: var(--rx-accent);
        border: 1px solid rgba(153, 246, 228,.25); background: rgba(var(--rx-accent-rgb), 0.08);
        border-radius: 8px; padding: .55rem .85rem; text-decoration: none; font-size: .84rem; font-weight: 700;
    }body[data-style-page="/KnowledgeBase/Surveys"] .soft-link:hover{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.16); }body[data-style-page="/KnowledgeBase/Surveys"] .kpi-row{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-bottom: 1.25rem; }body[data-style-page="/KnowledgeBase/Surveys"] .kpi{
        background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 8px;
        padding: 1rem; box-shadow: 0 18px 50px rgba(2,6,23,.22);
    }body[data-style-page="/KnowledgeBase/Surveys"] .kpi-label{ color: var(--rx-muted); font-size: .82rem; font-weight: 700; margin-bottom: .4rem; }body[data-style-page="/KnowledgeBase/Surveys"] .kpi-value{ font-size: 1.75rem; font-weight: 900; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-bar{ display: flex; gap: .5rem; margin-bottom: 1rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-chip{
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); border-radius: 999px; padding: .4rem .9rem;
        color: var(--rx-muted); font-size: .82rem; text-decoration: none; font-weight: 700;
    }body[data-style-page="/KnowledgeBase/Surveys"] .filter-chip.active{ background: rgba(var(--rx-accent-rgb), 0.18); color: var(--rx-accent); border-color: rgba(153, 246, 228,.35); }body[data-style-page="/KnowledgeBase/Surveys"] /* Same filter-panel look as the chat archive (Chats.cshtml), so both lists read as one feature. */
    .filter-panel{ background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius:16px; margin-bottom:1.15rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-panel-head{ display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.084); background:linear-gradient(90deg,rgba(var(--rx-accent-rgb), 0.055),transparent 55%); border-radius:16px 16px 0 0; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading{ display:flex; align-items:center; gap:.7rem; min-width:0; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading-icon{ width:38px; height:38px; display:grid; place-items:center; flex:none; border-radius:11px; color:var(--rx-accent); background:rgba(var(--rx-accent-rgb), 0.12); border:1px solid rgba(var(--rx-accent-rgb), 0.18); font-size:1rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading strong{ display:block; color:var(--rx-ink); font-size:.9rem; font-weight:800; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading span{ display:block; margin-top:.15rem; color:var(--rx-muted); font-size:.72rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-result-count{ display:inline-flex; align-items:center; gap:.38rem; flex:none; padding:.38rem .62rem; border-radius:999px; color:var(--rx-accent); background:rgba(var(--rx-accent-rgb), 0.08); border:1px solid rgba(var(--rx-accent-rgb), 0.14); font-size:.72rem; font-weight:700; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.9rem; align-items:start; padding:1.15rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field{ min-width:0; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field label{ display:flex; align-items:center; gap:.35rem; color:var(--rx-muted); font-size:.74rem; font-weight:750; margin-bottom:.42rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field label i{ color:var(--rx-ink-soft); font-size:.75rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field input,body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select{
        width:100%; height:44px; background:rgba(2,6,23,.28); border:1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius:10px; padding:.55rem .75rem; color:var(--rx-ink); font-size:.82rem; font-family:inherit; outline:none; transition:border-color .16s,box-shadow .16s,background .16s;
    }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field input:hover,body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select:hover{ border-color:rgba(var(--rx-contrast-rgb), 0.2); background:rgba(2,6,23,.4); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field input:focus,body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select:focus{ border-color:rgba(var(--rx-accent-rgb), 0.65); box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.1); background:rgba(2,6,23,.5); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field input::placeholder{ color:var(--rx-ink-soft); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select option{ background: var(--panel-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select option:checked,body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select option:hover{ background: var(--rx-brand); color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions{ display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.9rem 1.15rem; border-top:1px solid rgba(var(--rx-contrast-rgb), 0.084); background:rgba(2,6,23,.14); border-radius:0 0 16px 16px; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions-primary{ display:flex; align-items:center; gap:.55rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions a,body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions button{ min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:.42rem; white-space:nowrap; transition:.16s ease; }body[data-style-page="/KnowledgeBase/Surveys"] .btn-filter{
        background:linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); color:var(--rx-on-brand); border:1px solid rgba(var(--rx-accent-rgb), 0.25); border-radius:9px;
        padding:.58rem 1rem; font-weight:800; font-size:.8rem; cursor:pointer; box-shadow:0 8px 22px rgba(var(--rx-accent-rgb), 0.18);
    }body[data-style-page="/KnowledgeBase/Surveys"] .btn-filter:hover{ transform:translateY(-1px); filter:brightness(1.08); box-shadow:0 10px 26px rgba(var(--rx-accent-rgb), 0.28); }body[data-style-page="/KnowledgeBase/Surveys"] .btn-clear{
        background:rgba(var(--rx-contrast-rgb), 0.025); color:var(--rx-muted); border:1px solid rgba(var(--rx-contrast-rgb), 0.112);
        border-radius:9px; padding:.58rem .9rem; font-weight:700; font-size:.78rem; text-decoration:none;
    }body[data-style-page="/KnowledgeBase/Surveys"] .btn-clear:hover{ color:var(--rx-ink); border-color:rgba(var(--rx-contrast-rgb), 0.2); background:rgba(var(--rx-contrast-rgb), 0.05); }body[data-style-page="/KnowledgeBase/Surveys"] .btn-export{
        background:rgba(var(--rx-success-rgb), 0.08); color:var(--rx-success); border:1px solid rgba(var(--rx-success-rgb), 0.24);
        border-radius:9px; padding:.58rem .9rem; font-weight:800; font-size:.78rem; text-decoration:none;
    }body[data-style-page="/KnowledgeBase/Surveys"] .btn-export:hover{ color:var(--rx-success); background:rgba(var(--rx-success-rgb), 0.14); border-color:rgba(var(--rx-success-rgb), 0.45); transform:translateY(-1px); }
    @media (max-width: 992px) {body[data-style-page="/KnowledgeBase/Surveys"] .filter-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
    @media (max-width: 720px) {body[data-style-page="/KnowledgeBase/Surveys"] .filter-panel-head{ padding:.9rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-result-count{ display:none; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-grid{ grid-template-columns:1fr; padding:.9rem; gap:.75rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions{ flex-direction:column; align-items:stretch; padding:.85rem .9rem; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions-primary{ display:grid; grid-template-columns:1fr 1fr; }body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions a,body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions button{ width:100%; }body[data-style-page="/KnowledgeBase/Surveys"] .btn-export{ order:2; }
    }body[data-style-page="/KnowledgeBase/Surveys"] .panel{ background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 8px; overflow: hidden; }body[data-style-page="/KnowledgeBase/Surveys"] table.surveys-table{ width: 100%; border-collapse: collapse; }body[data-style-page="/KnowledgeBase/Surveys"] table.surveys-table th,body[data-style-page="/KnowledgeBase/Surveys"] table.surveys-table td{ padding: .75rem 1rem; text-align: right; font-size: .85rem; }body[data-style-page="/KnowledgeBase/Surveys"] table.surveys-table th{ color: var(--rx-muted); border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.126); font-weight: 700; }body[data-style-page="/KnowledgeBase/Surveys"] table.surveys-table td{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Surveys"] .score-emoji{ font-size: 1.3rem; }body[data-style-page="/KnowledgeBase/Surveys"] .src-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; }body[data-style-page="/KnowledgeBase/Surveys"] .src-badge.ai{ background: rgba(var(--rx-accent-rgb), 0.15); color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Surveys"] .src-badge.livechat{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Surveys"] .comment-cell{ color: var(--rx-muted); max-width: 320px; }body[data-style-page="/KnowledgeBase/Surveys"] .empty-state{ padding: 3rem 1rem; text-align: center; color: var(--rx-muted); }body[data-style-page="/KnowledgeBase/Surveys"] /* Windowed pager (current ±2 plus first/last), same look as the chat archive's pagination. */
    .pager{ display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9rem 1rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.084); }body[data-style-page="/KnowledgeBase/Surveys"] .pager-info{ color: var(--rx-muted); font-size: .8rem; }body[data-style-page="/KnowledgeBase/Surveys"] .pager-links{ display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a{
        min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
        border-radius: 8px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); background: rgba(var(--rx-contrast-rgb), 0.035);
        color: var(--rx-ink-soft); text-decoration: none; font-size: .8rem; font-weight: 800; padding: 0 .65rem;
    }body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a:hover{ color: var(--rx-ink); border-color: rgba(var(--rx-accent-rgb), 0.45); background: rgba(var(--rx-accent-rgb), 0.12); }body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a.active{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.22); border-color: rgba(var(--rx-accent-rgb), 0.5); }body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a.disabled{ opacity: .42; pointer-events: none; }body[data-style-page="/KnowledgeBase/Surveys"] .pager-gap{ color: var(--rx-muted); padding: 0 .15rem; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Surveys"])) .kpi{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .kpi-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-chip{ color: var(--theme-muted); border-color: var(--theme-border-soft); background: var(--theme-surface); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-chip:hover{ color: var(--theme-accent-strong); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-chip.active{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-panel-head{ border-bottom-color: var(--theme-border-soft); background: linear-gradient(90deg, rgba(var(--theme-accent-rgb), .06), transparent 55%); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading-icon{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-heading span{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-field label i{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-field :is(input, select){ }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-field select option:checked{ background: var(--theme-accent-strong); color: var(--rx-ink); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .filter-actions{ background: var(--theme-surface-2); border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .btn-clear{ color: var(--theme-text-2); background: var(--theme-surface); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .btn-clear:hover{ color: var(--theme-text); background: var(--theme-surface-3); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .btn-export{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .btn-export:hover{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.16); border-color: rgba(var(--rx-success-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .src-badge.ai{ color: var(--theme-accent-strong); background: rgba(var(--theme-accent-rgb), .1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .src-badge.livechat{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a{ color: var(--theme-text-2); background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a:hover{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Surveys"] .pager-links a.active{ color: var(--rx-ink); background: var(--theme-accent-strong); border-color: var(--theme-accent-strong); }



/* Page stylesheet: /KnowledgeBase/VisitorData */
body[data-style-page="/KnowledgeBase/VisitorData"] .vd-page{direction:rtl;max-width:1050px;margin:0 auto;padding:1.7rem 1.3rem 3rem;color:var(--rx-ink)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.3rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-kicker{color:var(--rx-accent);font-size:.78rem;font-weight:800}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-title{font-size:1.55rem;font-weight:900;margin:.35rem 0}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-copy{color:var(--rx-muted);line-height:1.9;margin:0}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-card{background:rgba(var(--rx-contrast-rgb), 0.035);border:1px solid rgba(var(--rx-contrast-rgb), 0.09);border-radius:18px;margin-bottom:1rem;overflow:hidden}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-card-head{padding:1rem 1.2rem;border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.07);display:flex;align-items:center;gap:.65rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-card-head h2{font-size:.95rem;margin:0;font-weight:850}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-card-body{padding:1.1rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-note{padding:.9rem 1rem;border-radius:12px;background:rgba(var(--rx-accent-rgb), 0.1);border:1px solid rgba(var(--rx-accent-rgb), 0.18);color:var(--rx-accent);line-height:1.9;font-size:.82rem;margin-bottom:1rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-fields{display:grid;gap:.75rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-field{padding:1rem;border:1px solid rgba(var(--rx-contrast-rgb), 0.098);border-radius:14px;background:var(--rx-input)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:.65rem;align-items:end}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-label{display:block;color:var(--rx-muted);font-size:.73rem;margin-bottom:.35rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-input,body[data-style-page="/KnowledgeBase/VisitorData"] .vd-select{width:100%;min-height:42px;padding:.55rem .7rem;color:var(--rx-ink);background:var(--rx-input);border:1px solid rgba(var(--rx-contrast-rgb), 0.14);border-radius:9px;font:inherit;font-size:.82rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-help{margin-top:.65rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-foot{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.8rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-required{display:flex;align-items:center;gap:.4rem;color:var(--rx-ink-soft);font-size:.78rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-required input{accent-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-remove{border:1px solid rgba(var(--rx-danger-rgb), 0.22);background:rgba(var(--rx-danger-rgb), 0.08);color:var(--rx-danger);border-radius:9px;padding:.5rem .7rem;cursor:pointer}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-btn{display:inline-flex;align-items:center;gap:.4rem;border:0;border-radius:10px;padding:.65rem .95rem;font-weight:800;cursor:pointer;text-decoration:none}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-primary{background:var(--rx-brand-bright);color:#042f2e}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-secondary{background:rgba(var(--rx-contrast-rgb), 0.06);border:1px solid rgba(var(--rx-contrast-rgb), 0.1);color:var(--rx-ink-soft)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-actions{display:flex;gap:.55rem;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-empty{text-align:center;padding:2.4rem;color:var(--rx-muted);border:1px dashed rgba(var(--rx-contrast-rgb), 0.14);border-radius:14px}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-alert{padding:.75rem 1rem;border-radius:10px;margin-bottom:1rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-error{background:rgba(var(--rx-danger-rgb), 0.1);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-success{background:rgba(var(--rx-success-rgb), 0.1);color:var(--rx-success)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code{direction:ltr;text-align:left;background:var(--rx-page-alt);border:1px solid rgba(var(--rx-contrast-rgb), 0.112);padding:1rem;border-radius:12px;color:var(--rx-success);overflow:auto;font-size:.78rem;line-height:1.7}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-key{color:var(--rx-info)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-string{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-number{color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-attr{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-tag{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-code .code-punc{color:var(--rx-muted)}
@media(max-width:760px){body[data-style-page="/KnowledgeBase/VisitorData"] .vd-page{padding:1.2rem .8rem 2rem}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-grid{grid-template-columns:1fr 1fr}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-grid .vd-remove{grid-column:1/-1}body[data-style-page="/KnowledgeBase/VisitorData"] .vd-head{display:block}}



/* Page stylesheet: /KnowledgeBase/Widget */
body[data-style-page="/KnowledgeBase/Widget"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/Widget"] .page-wrapper{
        min-height: 100vh;
        background: var(--body-bg);
        padding: 2rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .page-container{ max-width: 1300px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/Widget"] .back-link{
        display: inline-flex; align-items: center; gap: .4rem;
        color: var(--rx-muted); text-decoration: none; font-size: .84rem; font-weight: 600;
        margin-bottom: 1rem; transition: color .15s;
    }body[data-style-page="/KnowledgeBase/Widget"] .back-link:hover{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] .back-link i{ font-size: .85rem; }body[data-style-page="/KnowledgeBase/Widget"] .page-header{ margin-bottom: 1.5rem; }body[data-style-page="/KnowledgeBase/Widget"] .page-header h1{
        font-size: 2rem; font-weight: 900; color: var(--rx-ink);
        margin: 0 0 .4rem; display: flex; align-items: center; gap: .75rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .page-header h1 i{ background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }body[data-style-page="/KnowledgeBase/Widget"] .page-header p{ color: var(--rx-ink-soft); margin: 0; }body[data-style-page="/KnowledgeBase/Widget"] .alert-m{
        border-radius: 14px; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
        display: flex; align-items: center; gap: .75rem; font-weight: 600; border: 1px solid transparent;
    }body[data-style-page="/KnowledgeBase/Widget"] .a-ok{ background: rgba(var(--rx-success-rgb), 0.15); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Widget"] .a-err{ background: rgba(var(--rx-danger-rgb), 0.15); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Widget"] /* Tabs: a compact underline bar (GitHub/Linear-style) instead of five boxy tiles — a single
       scannable row that also works on a phone by scrolling horizontally instead of wrapping into
       an uneven grid. */
    .tabs-nav-wrap{
        position: relative; margin-bottom: 1.75rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.09);
    }body[data-style-page="/KnowledgeBase/Widget"] .tabs-nav{
        display: flex; align-items: stretch; gap: .25rem;
        overflow-x: auto; scrollbar-width: none;
    }body[data-style-page="/KnowledgeBase/Widget"] .tabs-nav::-webkit-scrollbar{ display: none; }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger{
        flex-shrink: 0;
        display: flex; align-items: center; gap: .5rem;
        padding: .85rem .95rem; margin-bottom: -1px;
        color: var(--rx-muted); text-decoration: none;
        font-size: .88rem; font-weight: 700;
        border-bottom: 2px solid transparent;
        transition: color .15s, border-color .15s;
        white-space: nowrap;
    }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger i{ font-size: 1rem; color: var(--rx-muted); transition: color .15s; }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:hover{ color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:hover i{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger.active{ color: var(--rx-ink); border-color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger.active i{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] /* A small live dot instead of text, so a connected channel is obvious without reading the label. */
    .tab-trigger .tab-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--rx-success-fill); flex-shrink: 0; }
    @media (max-width: 560px) {body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger{ padding: .75rem .7rem; font-size: .82rem; }
    }body[data-style-page="/KnowledgeBase/Widget"] /* Telegram tab */
    .telegram-layout{ display:grid; grid-template-columns:1fr 360px; gap:1.5rem; align-items:start; }
    @media (max-width: 1000px) {body[data-style-page="/KnowledgeBase/Widget"] .telegram-layout{ grid-template-columns:1fr; }
    }body[data-style-page="/KnowledgeBase/Widget"] .telegram-status{ display:flex; align-items:center; gap:.6rem; padding:.9rem 1.1rem; border-radius:12px; margin-bottom:1.25rem; font-weight:700; font-size:.88rem; }body[data-style-page="/KnowledgeBase/Widget"] .telegram-status.connected{ background:rgba(var(--rx-success-rgb), 0.12); border:1px solid rgba(var(--rx-success-rgb), 0.3); color:var(--rx-success); }body[data-style-page="/KnowledgeBase/Widget"] .telegram-status.disconnected{ background:rgba(var(--rx-contrast-rgb), 0.04); border:1px solid rgba(var(--rx-contrast-rgb), 0.1); color:var(--rx-muted); }body[data-style-page="/KnowledgeBase/Widget"] .btn-disconnect{ background:rgba(var(--rx-danger-rgb), 0.15); border:1px solid rgba(var(--rx-danger-rgb), 0.3); border-radius:10px; color:var(--rx-danger); font-size:.85rem; font-weight:700; padding:.6rem 1.2rem; cursor:pointer; transition:all .2s; width:100%; }body[data-style-page="/KnowledgeBase/Widget"] .btn-disconnect:hover{ background:rgba(var(--rx-danger-rgb), 0.25); }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-card{
        display:flex; align-items:center; gap:.9rem; padding:1rem 1.1rem; border-radius:14px; margin-bottom:1.25rem;
        background:linear-gradient(135deg,rgba(41,169,235,.12),rgba(41,169,235,.04)); border:1px solid rgba(41,169,235,.25);
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-avatar{
        width:46px; height:46px; border-radius:50%; flex-shrink:0; display:flex; align-items:center; justify-content:center;
        background:linear-gradient(135deg,#29a9eb,#1e88c7); color:var(--rx-on-brand); font-size:1.4rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-info{ flex:1; min-width:0; }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-name{ color:var(--rx-ink); font-weight:800; font-size:.95rem; direction:ltr; text-align:right; }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-sub{ color:var(--rx-muted); font-size:.78rem; margin-top:2px; }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-link{
        color:var(--rx-info); font-size:.8rem; text-decoration:none; display:inline-flex; align-items:center; gap:.3rem;
        border:1px solid rgba(125,211,252,.3); border-radius:8px; padding:.35rem .7rem; white-space:nowrap; transition:all .2s;
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-link:hover{ background:rgba(125,211,252,.12); color:var(--rx-info); }body[data-style-page="/KnowledgeBase/Widget"] .tg-toggle-form{ margin-top:0; }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle{
        display:flex; align-items:center; justify-content:space-between; gap:.5rem; width:100%;
        background:rgba(var(--rx-contrast-rgb), 0.03); border:1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius:12px;
        padding:.85rem 1.1rem; color:var(--rx-ink-soft); font-size:.85rem; font-weight:700; cursor:pointer; transition:all .2s;
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle:hover{ background:rgba(var(--rx-contrast-rgb), 0.06); color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle i.chev{ transition:transform .25s; font-size:.8rem; }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle.open i.chev{ transform:rotate(180deg); }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-body{ display:none; padding-top:1rem; }body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-body.open{ display:block; }body[data-style-page="/KnowledgeBase/Widget"] /* QR panel */
    .tg-qr-card{ position:sticky; top:1.5rem; text-align:center; }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-box{
        width:100%; aspect-ratio:1/1; max-width:220px; margin:0 auto 1rem; border-radius:16px;
        background:var(--rx-surface); display:flex; align-items:center; justify-content:center; padding:14px;
        box-shadow:0 8px 30px rgba(41,169,235,.25);
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-box img,body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-box canvas{ width:100%; height:100%; display:block; }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-placeholder{
        width:100%; aspect-ratio:1/1; max-width:220px; margin:0 auto 1rem; border-radius:16px;
        background:rgba(var(--rx-contrast-rgb), 0.03); border:2px dashed rgba(var(--rx-contrast-rgb), 0.12);
        display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem;
        color:var(--rx-muted); font-size:.8rem; text-align:center; padding:1rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-placeholder i{ font-size:1.8rem; }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-title{ color:var(--rx-ink); font-weight:800; font-size:.95rem; margin-bottom:.35rem; }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-desc{ color:var(--rx-muted); font-size:.8rem; line-height:1.7; margin-bottom:1rem; }body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-username{ direction:ltr; color:var(--rx-info); font-size:.85rem; font-weight:700; margin-bottom:1rem; }body[data-style-page="/KnowledgeBase/Widget"] /* Step timeline (connect flow) */
    .tg-steps{ list-style:none; counter-reset:tgstep; margin:0 0 1.5rem; padding:0; }body[data-style-page="/KnowledgeBase/Widget"] .tg-steps li{ counter-increment:tgstep; display:flex; gap:1rem; align-items:flex-start; padding:.75rem 0; border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Widget"] .tg-steps li:last-child{ border-bottom:none; }body[data-style-page="/KnowledgeBase/Widget"] .tg-steps li::before{
        content:counter(tgstep); width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#29a9eb,#1e88c7);
        color:var(--rx-on-brand); font-size:.78rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px;
    }body[data-style-page="/KnowledgeBase/Widget"] .tg-steps li p{ color:var(--rx-ink-soft); font-size:.85rem; line-height:1.6; margin:0; }body[data-style-page="/KnowledgeBase/Widget"] .tg-steps li p strong{ color:var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .layout{ display: grid; grid-template-columns: 1fr 420px; gap: 1.5rem; align-items: start; }body[data-style-page="/KnowledgeBase/Widget"] .glass{ background: rgba(var(--rx-contrast-rgb), 0.03); backdrop-filter: blur(20px); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; overflow: hidden; }body[data-style-page="/KnowledgeBase/Widget"] .sec-head{
        padding: 1.25rem 1.75rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        display: flex; align-items: center; gap: .6rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .sec-head i{ font-size: 1.2rem; }body[data-style-page="/KnowledgeBase/Widget"] .sec-head h2{ margin: 0; font-size: 1rem; font-weight: 800; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .sec-body{ padding: 1.75rem; }body[data-style-page="/KnowledgeBase/Widget"] .form-group{ margin-bottom: 1.5rem; }body[data-style-page="/KnowledgeBase/Widget"] /* Two fields per row so a wide page doesn't leave a lone narrow column of inputs with empty
       space beside it — a field that needs the full line (address hint, textarea) opts out with
       form-span-2. */
    .form-grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }body[data-style-page="/KnowledgeBase/Widget"] .form-span-2{ grid-column: 1 / -1; }
    @media (max-width: 700px) {body[data-style-page="/KnowledgeBase/Widget"] .form-grid-2{ grid-template-columns: 1fr; }
    }body[data-style-page="/KnowledgeBase/Widget"] .form-label{ display: flex; align-items: center; gap: .4rem; color: var(--rx-ink); font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }body[data-style-page="/KnowledgeBase/Widget"] .form-label i{ color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.06); border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px; padding: .8rem 1rem; font-size: .9rem; color: var(--rx-ink);
        transition: border-color .2s; width: 100%;
    }body[data-style-page="/KnowledgeBase/Widget"] .form-control:focus{ outline: none; border-color: var(--rx-accent); background: rgba(var(--rx-contrast-rgb), 0.09); }body[data-style-page="/KnowledgeBase/Widget"] .form-control::placeholder{ color: var(--rx-faint); }body[data-style-page="/KnowledgeBase/Widget"] .form-control:disabled{ background: rgba(var(--rx-contrast-rgb), 0.03); border-color: rgba(var(--rx-contrast-rgb), 0.06); color: var(--rx-muted); cursor: not-allowed; -webkit-text-fill-color: var(--rx-muted); opacity: 1; }body[data-style-page="/KnowledgeBase/Widget"] select.form-control{ cursor: pointer; appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23818cf8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat; background-position: left 1rem center; background-size: 1.1rem; padding-left: 2.5rem;
    }body[data-style-page="/KnowledgeBase/Widget"] select.form-control option{ background: var(--panel-bg) !important; color: var(--rx-ink) !important; }body[data-style-page="/KnowledgeBase/Widget"] .form-hint{ color: var(--rx-muted); font-size: .8rem; margin-top: .4rem; }body[data-style-page="/KnowledgeBase/Widget"] .word-counter{ color:var(--rx-muted); font-size:.78rem; direction:ltr; text-align:left; margin-top:.3rem; }body[data-style-page="/KnowledgeBase/Widget"] .word-counter.limit-near{ color:var(--rx-warning); }body[data-style-page="/KnowledgeBase/Widget"] .word-counter.limit-over{ color:var(--rx-danger); }body[data-style-page="/KnowledgeBase/Widget"] /* Theme presets */
    .theme-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }body[data-style-page="/KnowledgeBase/Widget"] .theme-card{
        position: relative; border-radius: 14px; padding: .7rem .6rem .6rem; cursor: pointer;
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.08); background: rgba(var(--rx-contrast-rgb), 0.03);
        display: flex; flex-direction: column; align-items: center; gap: .5rem; transition: all .18s;
    }body[data-style-page="/KnowledgeBase/Widget"] .theme-card:hover{ border-color: rgba(var(--rx-contrast-rgb), 0.25); transform: translateY(-2px); }body[data-style-page="/KnowledgeBase/Widget"] .theme-card.active{ border-color: var(--rx-line); box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.35); }body[data-style-page="/KnowledgeBase/Widget"] .theme-swatch{
        width: 100%; height: 40px; border-radius: 10px; overflow: hidden;
        display: flex; box-shadow: inset 0 0 0 1px rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/KnowledgeBase/Widget"] .theme-swatch span{ flex: 1; height: 100%; }body[data-style-page="/KnowledgeBase/Widget"] .theme-name{ font-size: .74rem; font-weight: 700; color: var(--rx-ink); text-align: center; line-height: 1.4; }body[data-style-page="/KnowledgeBase/Widget"] .theme-card.active .theme-name{ color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .theme-check{
        position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; border-radius: 50%;
        background: var(--rx-brand); color: var(--rx-on-brand); display: none; align-items: center; justify-content: center; font-size: .65rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .theme-card.active .theme-check{ display: flex; }
    @media (max-width: 640px) {body[data-style-page="/KnowledgeBase/Widget"] .theme-grid{ grid-template-columns: repeat(2, 1fr); }
    }body[data-style-page="/KnowledgeBase/Widget"] .color-row{ display: flex; gap: .75rem; align-items: center; }body[data-style-page="/KnowledgeBase/Widget"] .color-picker{ width: 48px; height: 48px; border-radius: 10px; border: 2px solid rgba(var(--rx-contrast-rgb), 0.15); cursor: pointer; padding: 3px; background: transparent; flex-shrink: 0; }body[data-style-page="/KnowledgeBase/Widget"] .color-presets{ display: flex; gap: 8px; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/Widget"] .preset{ width: 28px; height: 28px; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: transform .15s,border-color .15s; }body[data-style-page="/KnowledgeBase/Widget"] .preset:hover{ transform: scale(1.15); }body[data-style-page="/KnowledgeBase/Widget"] .preset.active{ border-color: var(--rx-line); }body[data-style-page="/KnowledgeBase/Widget"] .btn-save{
        width: 100%; padding: .9rem; margin-top: .5rem;
        background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand));
        border: none; border-radius: 12px; color: var(--rx-on-brand);
        font-weight: 700; font-size: 1rem; cursor: pointer; transition: all .3s;
        display: flex; align-items: center; justify-content: center; gap: .5rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .btn-save:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.4); }body[data-style-page="/KnowledgeBase/Widget"] /* Code block */
    .code-block{
        background: var(--rx-page); border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px; overflow: hidden; margin-top: .75rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .code-topbar{
        background: rgba(var(--rx-contrast-rgb), 0.05); padding: .6rem 1rem;
        display: flex; justify-content: space-between; align-items: center;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
    }body[data-style-page="/KnowledgeBase/Widget"] .code-topbar span{ color: var(--rx-muted); font-size: .78rem; }body[data-style-page="/KnowledgeBase/Widget"] .btn-copy{
        background: rgba(var(--rx-accent-rgb), 0.2); border: 1px solid rgba(var(--rx-accent-rgb), 0.4);
        border-radius: 8px; color: var(--rx-accent); font-size: .8rem; font-weight: 600;
        padding: .3rem .8rem; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: .4rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .btn-copy:hover{ background: rgba(var(--rx-accent-rgb), 0.35); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .btn-copy.copied{ background: rgba(var(--rx-success-rgb), 0.2); border-color: rgba(var(--rx-success-rgb), 0.4); color: var(--rx-success); }body[data-style-page="/KnowledgeBase/Widget"] pre{ padding: 1rem 1.25rem; color: var(--rx-info); font-size: .82rem; font-family: var(--rx-font-mono); overflow-x: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.6; direction: ltr; text-align: left; }body[data-style-page="/KnowledgeBase/Widget"] /* Live Preview */
    .preview-wrap{ position: relative; background: var(--rx-surface-3); border-radius: 16px; overflow: hidden; min-height: 380px; }body[data-style-page="/KnowledgeBase/Widget"] .preview-label{ position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.5); color: var(--rx-ink); font-size: .7rem; padding: .25rem .6rem; border-radius: 6px; }body[data-style-page="/KnowledgeBase/Widget"] .preview-site{ width: 100%; height: 100%; min-height: 380px; background: linear-gradient(135deg,#f0f4ff,#e8eeff); display: flex; align-items: center; justify-content: center; }body[data-style-page="/KnowledgeBase/Widget"] .preview-site-text{ color: var(--rx-muted); font-size: .85rem; text-align: center; }body[data-style-page="/KnowledgeBase/Widget"] /* Steps */
    .steps{ list-style: none; counter-reset: step; margin: 0; padding: 0; }body[data-style-page="/KnowledgeBase/Widget"] .steps li{ counter-increment: step; display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06); }body[data-style-page="/KnowledgeBase/Widget"] .steps li:last-child{ border-bottom: none; }body[data-style-page="/KnowledgeBase/Widget"] .steps li::before{ content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); color: var(--rx-on-brand); font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }body[data-style-page="/KnowledgeBase/Widget"] .steps li p{ color: var(--rx-ink-soft); font-size: .85rem; line-height: 1.6; margin: 0; }body[data-style-page="/KnowledgeBase/Widget"] .steps li p strong{ color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/Widget"] .install-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }body[data-style-page="/KnowledgeBase/Widget"] .install-card{ background: rgba(var(--rx-contrast-rgb), 0.03); border: 1px solid rgba(var(--rx-contrast-rgb), 0.08); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }body[data-style-page="/KnowledgeBase/Widget"] .install-card-header{ padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.07); display: flex; align-items: center; gap: .85rem; }body[data-style-page="/KnowledgeBase/Widget"] .install-icon{ width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--rx-ink); flex-shrink: 0; }body[data-style-page="/KnowledgeBase/Widget"] .install-title{ color: var(--rx-ink); font-size: .95rem; font-weight: 800; margin: 0 0 2px; }body[data-style-page="/KnowledgeBase/Widget"] .install-sub{ color: var(--rx-muted); font-size: .75rem; margin: 0; }body[data-style-page="/KnowledgeBase/Widget"] .install-badge{ margin-right: auto; font-size: .7rem; font-weight: 700; padding: .2rem .7rem; border-radius: 20px; border: 1px solid; white-space: nowrap; flex-shrink: 0; }body[data-style-page="/KnowledgeBase/Widget"] .install-card-body{ padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0; }body[data-style-page="/KnowledgeBase/Widget"] .install-desc{ color: var(--rx-ink-soft); font-size: .86rem; line-height: 1.75; margin: 0 0 1rem; direction: rtl; }body[data-style-page="/KnowledgeBase/Widget"] .inline-code{ color: var(--rx-info); background: rgba(var(--rx-contrast-rgb), 0.07); padding: 1px 6px; border-radius: 5px; font-size: .82em; font-family: var(--rx-font-mono); }body[data-style-page="/KnowledgeBase/Widget"] .btn-wp-download{
        display: inline-flex; align-items: center; gap: .5rem;
        padding: .75rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: .9rem;
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        color: var(--rx-on-brand); text-decoration: none; transition: all .25s;
        box-shadow: 0 4px 15px rgba(var(--rx-info-rgb), 0.35);
    }body[data-style-page="/KnowledgeBase/Widget"] .btn-wp-download:hover{ transform: translateY(-2px); box-shadow: 0 8px 25px rgba(var(--rx-info-rgb), 0.5); color: var(--rx-on-brand); }body[data-style-page="/KnowledgeBase/Widget"] /* Logo upload area */
    .logo-upload-area{
        border: 2px dashed rgba(var(--rx-contrast-rgb), 0.15); border-radius: 14px;
        padding: 1.5rem; text-align: center; transition: border-color .2s;
        cursor: pointer; position: relative;
    }body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-area:hover{ border-color: var(--rx-accent); }body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-area.has-logo{ border-style: solid; border-color: rgba(var(--rx-accent-rgb), 0.3); }body[data-style-page="/KnowledgeBase/Widget"] .logo-preview{
        max-width: 120px; max-height: 80px; border-radius: 8px;
        margin: 0 auto .75rem; display: block; object-fit: contain;
        background: rgba(var(--rx-contrast-rgb), 0.05); padding: .5rem;
    }body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-icon{ font-size: 2rem; color: var(--rx-accent); margin-bottom: .5rem; }body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-text{ color: var(--rx-ink-soft); font-size: .85rem; }body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-hint{ color: var(--rx-muted); font-size: .75rem; margin-top: .3rem; }body[data-style-page="/KnowledgeBase/Widget"] .btn-remove-logo{
        background: rgba(var(--rx-danger-rgb), 0.15); border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
        border-radius: 8px; color: var(--rx-danger); font-size: .8rem; font-weight: 600;
        padding: .4rem .8rem; cursor: pointer; margin-top: .75rem; transition: all .2s;
    }body[data-style-page="/KnowledgeBase/Widget"] .btn-remove-logo:hover{ background: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/Widget"] /* Color section grid */
    .color-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }body[data-style-page="/KnowledgeBase/Widget"] .color-grid .form-group{ margin-bottom: 0; }body[data-style-page="/KnowledgeBase/Widget"] .color-grid .color-row{ flex-direction: column; align-items: flex-start; gap: .5rem; }body[data-style-page="/KnowledgeBase/Widget"] .color-grid .color-picker{ width: 100%; height: 40px; border-radius: 8px; }body[data-style-page="/KnowledgeBase/Widget"] /* Toggle row (lead capture, etc.) */
    .toggle-row{ display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }body[data-style-page="/KnowledgeBase/Widget"] .toggle-row-text{ flex: 1; min-width: 0; }body[data-style-page="/KnowledgeBase/Widget"] .toggle-row-title{ color: var(--rx-ink); font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }body[data-style-page="/KnowledgeBase/Widget"] .toggle-row-sub{ color: var(--rx-muted); font-size: .8rem; line-height: 1.6; }body[data-style-page="/KnowledgeBase/Widget"] .switch{ position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; cursor: pointer; }body[data-style-page="/KnowledgeBase/Widget"] .switch input{ position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }body[data-style-page="/KnowledgeBase/Widget"] .switch-track{
        position: absolute; inset: 0; background: rgba(var(--rx-contrast-rgb), 0.12);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.15); border-radius: 999px; transition: background .25s, border-color .25s;
    }body[data-style-page="/KnowledgeBase/Widget"] .switch-thumb{
        position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
        background: var(--rx-surface); border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.35);
        transition: transform .25s cubic-bezier(.34,1.56,.64,1);
    }body[data-style-page="/KnowledgeBase/Widget"] .switch input:checked ~ .switch-track{ background: linear-gradient(135deg,var(--rx-brand),var(--rx-brand)); border-color: transparent; }body[data-style-page="/KnowledgeBase/Widget"] .switch input:checked ~ .switch-track .switch-thumb{ transform: translateX(-22px); }body[data-style-page="/KnowledgeBase/Widget"] .switch input:focus-visible ~ .switch-track{ outline: 2px solid var(--rx-accent); outline-offset: 2px; }

    @media (max-width: 1100px) {body[data-style-page="/KnowledgeBase/Widget"] .layout{ grid-template-columns: 1fr; }
    }
    @media (min-width: 992px) {body[data-style-page="/KnowledgeBase/Widget"] .tabs-nav-wrap{ display: none; }
    }
    @media (max-width: 800px) {body[data-style-page="/KnowledgeBase/Widget"] .install-grid{ grid-template-columns: 1fr; }body[data-style-page="/KnowledgeBase/Widget"] .color-grid{ grid-template-columns: 1fr; }
    }body[data-style-page="/KnowledgeBase/Widget"] /* Phone-width tightening across all tabs */
    @media (max-width: 560px){
        .page-wrapper { padding: 1rem; }
        .page-header h1 { font-size: 1.4rem; gap: .5rem; }
        .page-header p { font-size: .85rem; }
        .sec-head { padding: 1rem 1.1rem; }
        .sec-body { padding: 1.1rem; }
        .theme-grid { grid-template-columns: repeat(2,1fr) !important; }
        .install-card-header { flex-wrap: wrap; }
        .install-badge { margin-right: 0; }
        .code-topbar { flex-wrap: wrap; gap: .4rem; }
        pre { font-size: .74rem; }
        .tg-bot-card { flex-wrap: wrap; }
        .tg-bot-link { width: 100%; justify-content: center; }
        .btn-save, .btn-wp-download { width: 100%; justify-content: center; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Widget"])) .back-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .back-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .page-header h1 i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .a-ok{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .a-err{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tabs-nav-wrap{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:not(.active){ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:not(.active) i{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:not(.active):hover{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger:not(.active):hover i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tab-trigger.active i{ color: var(--rx-ink); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .glass{ background: var(--theme-surface); border-color: var(--theme-border-soft); box-shadow: var(--theme-shadow); backdrop-filter: none; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .sec-head{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .form-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .form-control:disabled{
        background: var(--theme-surface-2) !important; color: var(--theme-muted) !important; -webkit-text-fill-color: var(--theme-muted);
    }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] select.form-control option{ background: var(--theme-surface) !important; color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .word-counter{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .word-counter.limit-near{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .word-counter.limit-over{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .theme-name,html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .theme-card.active .theme-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .theme-check{ background: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .theme-swatch{ box-shadow: inset 0 0 0 1px rgba(15,23,42,.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .color-picker{ border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .preset{ box-shadow: inset 0 0 0 1px rgba(15,23,42,.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .preset.active{ border-color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .code-block{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .code-topbar{ background: var(--theme-surface-3); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .code-topbar span{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .page-wrapper pre{ color: #0369a1; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .inline-code{ background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] :is(.steps, .tg-steps) li{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] :is(.steps, .tg-steps) li p strong{ color: var(--theme-text) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .install-card-header{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .install-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .install-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .install-badge[style*="color:#34d399"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .install-badge[style*="color:#fbbf24"]{ color: #b45309 !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .telegram-status.connected{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .telegram-status.disconnected{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .btn-disconnect{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .btn-disconnect:hover{ background: rgba(var(--rx-danger-rgb), 0.15); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-link{ color: #0369a1; border-color: rgba(3,105,161,.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-bot-link:hover{ color: #075985; background: rgba(var(--rx-info-rgb), 0.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-collapsible-toggle:hover{ background: var(--theme-hover); color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-box{ border: 1px solid var(--theme-border-soft); box-shadow: 0 8px 24px rgba(41,169,235,.15); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-placeholder{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-desc{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .tg-qr-username{ color: #0369a1; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-area{ border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-area:hover{ border-color: var(--theme-accent); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-area.has-logo{ border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-preview{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-icon{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-text{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .logo-upload-hint{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .btn-remove-logo{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.3); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .btn-remove-logo:hover{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .toggle-row-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .toggle-row-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .switch-track{ background: rgba(15,23,42,.14); border-color: rgba(15,23,42,.12); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .switch-thumb{ box-shadow: 0 2px 6px rgba(15,23,42,.25); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .switch input:checked ~ .switch-track{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .switch input:focus-visible ~ .switch-track{ outline-color: var(--theme-accent); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/Widget"])) .page-wrapper [style*="color:rgba(255,255,255"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .page-wrapper [style*="background:rgba(255,255,255,.04)"]{ background: var(--theme-surface-2) !important; border-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/Widget"] .page-wrapper i[style*="color:#fbbf24"]{ color: #d97706 !important; }





/* Page stylesheet: /KnowledgeBase/WidgetFeedback */
body[data-style-page="/KnowledgeBase/WidgetFeedback"] *{ font-family: var(--rx-font) !important; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-page{ min-height: 100vh; padding: 2rem; background: var(--body-bg); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-shell{ max-width: 1040px; margin: 0 auto; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-top{ display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-title h1{ font-size: 1.45rem; font-weight: 800; margin: 0 0 .35rem; color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-title p{ margin: 0; color: var(--rx-muted); font-size: .9rem; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .soft-link{
        display: inline-flex; align-items: center; gap: .4rem; color: var(--rx-accent);
        border: 1px solid rgba(153, 246, 228,.25); background: rgba(var(--rx-accent-rgb), 0.08);
        border-radius: 8px; padding: .55rem .85rem; text-decoration: none; font-size: .84rem; font-weight: 700;
    }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .soft-link:hover{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.16); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-bar{ display: flex; gap: .5rem; margin-bottom: 1rem; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-chip{
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); border-radius: 999px; padding: .4rem .9rem;
        color: var(--rx-muted); font-size: .82rem; text-decoration: none; font-weight: 700;
    }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-chip.active{ background: rgba(var(--rx-accent-rgb), 0.18); color: var(--rx-accent); border-color: rgba(153, 246, 228,.35); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-bar{ align-items: center; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .btn-export{ display:inline-flex; align-items:center; gap:.42rem; margin-inline-start:auto; min-height:36px; background:rgba(var(--rx-success-rgb), 0.08); color:var(--rx-success); border:1px solid rgba(var(--rx-success-rgb), 0.24); border-radius:9px; padding:.45rem .9rem; font-weight:800; font-size:.78rem; text-decoration:none; white-space:nowrap; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .btn-export:hover{ color:var(--rx-success); background:rgba(var(--rx-success-rgb), 0.14); border-color:rgba(var(--rx-success-rgb), 0.45); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .panel{ background: rgba(var(--panel-bg-rgb), .86); border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); border-radius: 8px; overflow: hidden; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] table.fb-table{ width: 100%; border-collapse: collapse; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] table.fb-table th,body[data-style-page="/KnowledgeBase/WidgetFeedback"] table.fb-table td{ padding: .75rem 1rem; text-align: right; font-size: .85rem; vertical-align: top; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] table.fb-table th{ color: var(--rx-muted); border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.126); font-weight: 700; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] table.fb-table td{ border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.056); color: var(--rx-ink); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] tr.unread td{ background: rgba(var(--rx-accent-rgb), 0.06); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .src-badge{ display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .src-badge.conn{ background: rgba(var(--rx-danger-rgb), 0.15); color: var(--rx-danger); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .src-badge.livechat{ background: rgba(var(--rx-success-rgb), 0.15); color: var(--rx-success); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .msg-cell{ color: var(--rx-ink); max-width: 340px; white-space: pre-wrap; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .contact-cell{ color: var(--rx-muted); font-size: .8rem; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .empty-state{ padding: 3rem 1rem; text-align: center; color: var(--rx-muted); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] /* Windowed pager (current ±2 plus first/last), same look as the chat archive's pagination. */
    .pager{ display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .9rem 1rem; border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.084); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-info{ color: var(--rx-muted); font-size: .8rem; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links{ display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a{
        min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
        border-radius: 8px; border: 1px solid rgba(var(--rx-contrast-rgb), 0.126); background: rgba(var(--rx-contrast-rgb), 0.035);
        color: var(--rx-ink-soft); text-decoration: none; font-size: .8rem; font-weight: 800; padding: 0 .65rem;
    }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a:hover{ color: var(--rx-ink); border-color: rgba(var(--rx-accent-rgb), 0.45); background: rgba(var(--rx-accent-rgb), 0.12); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a.active{ color: var(--rx-ink); background: rgba(var(--rx-accent-rgb), 0.22); border-color: rgba(var(--rx-accent-rgb), 0.5); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a.disabled{ opacity: .42; pointer-events: none; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-gap{ color: var(--rx-muted); padding: 0 .15rem; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .mark-read-btn{ background: none; border: 1px solid rgba(var(--rx-contrast-rgb), 0.175); color: var(--rx-muted); border-radius: 6px; padding: .3rem .7rem; font-size: .74rem; cursor: pointer; }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .mark-read-btn:hover{ color: var(--rx-on-brand); border-color: rgba(153, 246, 228,.4); }body[data-style-page="/KnowledgeBase/WidgetFeedback"] .unread-dot{ display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rx-brand-bright); margin-left: 6px; }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/KnowledgeBase/WidgetFeedback"])) .filter-chip{ color: var(--theme-muted); border-color: var(--theme-border-soft); background: var(--theme-surface); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-chip:hover{ color: var(--theme-accent-strong); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-chip.active{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .btn-export{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .btn-export:hover{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.16); border-color: rgba(var(--rx-success-rgb), 0.45); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] tr.unread td{ background: rgba(var(--theme-accent-rgb), .06); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .src-badge.conn{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .src-badge.livechat{ color: var(--rx-success); background: rgba(var(--rx-success-rgb), 0.1); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .empty-state{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a{ color: var(--theme-text-2); background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a:hover{ color: var(--theme-accent-strong); background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .pager-links a.active{ color: var(--rx-ink); background: var(--theme-accent-strong); border-color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .mark-read-btn{ color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .mark-read-btn:hover{ color: var(--theme-accent-strong); border-color: var(--theme-border); background: var(--theme-hover); }html.light-theme[data-admin-palette] body[data-style-page="/KnowledgeBase/WidgetFeedback"] .unread-dot{ background: var(--theme-accent); }



/* Page stylesheet: /KnowledgeBase/Workflow */
body[data-style-page="/KnowledgeBase/Workflow"] .wf-page{position:fixed;inset:0;z-index:1500;direction:rtl;font-size:13px;color:var(--rx-ink);background:var(--rx-page-alt);display:grid;grid-template-rows:56px minmax(0,1fr)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-form{display:contents}body[data-style-page="/KnowledgeBase/Workflow"] .wf-top{display:flex;align-items:center;gap:8px;padding:0 14px;background:var(--rx-surface-2);border-bottom:1px solid var(--rx-line);min-width:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-brand{display:flex;align-items:center;gap:10px;min-width:0;margin-inline-end:8px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-logo{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,var(--rx-brand),var(--rx-brand-bright));color:var(--rx-on-brand);font-size:17px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-brand b{display:block;font-size:14.5px;white-space:nowrap}body[data-style-page="/KnowledgeBase/Workflow"] .wf-brand small{display:block;color:var(--rx-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-top .grow{flex:1}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sep{width:1px;height:24px;background:var(--rx-line);margin:0 4px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 11px;border-radius:10px;border:1px solid var(--rx-line);background:var(--rx-surface-2);color:var(--rx-ink);font:inherit;cursor:pointer;text-decoration:none;white-space:nowrap;transition:.15s}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn:hover{background:var(--rx-line);border-color:var(--rx-line-strong)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn.sq{width:36px;padding:0;justify-content:center}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn.on{border-color:var(--rx-accent);color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn.primary{background:var(--rx-brand);border-color:var(--rx-brand);color:var(--rx-on-brand);font-weight:700}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn.exit{background:transparent;color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.35)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn:disabled{opacity:.4;cursor:default}body[data-style-page="/KnowledgeBase/Workflow"] .wf-toast{position:fixed;top:66px;left:50%;transform:translateX(-50%);z-index:1600;display:flex;align-items:center;gap:10px;max-width:min(560px,92vw);border-radius:12px;padding:10px 14px;font-weight:700;box-shadow:0 12px 30px -12px rgba(var(--rx-contrast-rgb), 0.3);animation:pageadfff45124-wftin .25s ease}
@keyframes pageadfff45124-wftin{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}body[data-style-page="/KnowledgeBase/Workflow"] .wf-toast.error{background:rgba(var(--rx-danger-rgb), 0.1);border:1px solid rgba(var(--rx-danger-rgb), 0.4);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-toast.success{background:var(--rx-brand);border:1px solid var(--rx-brand);color:var(--rx-on-brand)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-toast button{background:none;border:0;color:inherit;cursor:pointer;font-size:16px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-menu{position:fixed;top:62px;left:14px;z-index:1650;width:310px;background:var(--rx-surface-2);border:1px solid var(--rx-line);border-radius:16px;padding:8px 8px 10px;box-shadow:0 22px 48px -16px rgba(var(--rx-contrast-rgb), 0.4);max-height:calc(100vh - 80px);overflow:auto;animation:pageadfff45124-wftin2 .15s ease}
@keyframes pageadfff45124-wftin2{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}body[data-style-page="/KnowledgeBase/Workflow"] .wf-menu[hidden]{display:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-t{font-size:11.5px;color:var(--rx-muted);margin:10px 8px 6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-row{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-radius:10px;color:var(--rx-ink);font:inherit;padding:9px 8px;cursor:pointer;text-align:right}body[data-style-page="/KnowledgeBase/Workflow"] button.wf-m-row:hover{background:var(--rx-surface-2)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-row i{font-size:16px;color:var(--rx-ink-soft);width:20px;text-align:center}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-row span{flex:1}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-row.sw{cursor:default}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-row kbd{background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:7px;color:var(--rx-muted);font-size:11px;padding:1px 7px;direction:ltr}body[data-style-page="/KnowledgeBase/Workflow"] .wf-seg{display:flex;gap:4px;background:var(--rx-page-alt);border:1px solid var(--rx-surface-3);border-radius:12px;padding:3px;margin:0 4px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-seg button{flex:1;border:0;border-radius:9px;background:transparent;color:var(--rx-muted);font:inherit;padding:7px 6px;cursor:pointer;white-space:nowrap}body[data-style-page="/KnowledgeBase/Workflow"] .wf-seg button.on{background:var(--rx-line);color:var(--rx-ink);font-weight:700}body[data-style-page="/KnowledgeBase/Workflow"] .wf-seg button:hover:not(.on){background:var(--rx-surface-2)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-m-hr{height:1px;background:var(--rx-surface-3);margin:10px 6px 0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr{border:1px solid var(--rx-line);border-radius:10px;background:var(--rx-surface-2);padding:8px;margin-bottom:8px;display:grid;gap:6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr-r{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr-r input,body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr-r select{padding:6px 7px;font-size:12px;min-width:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr-r:nth-child(2){grid-template-columns:.9fr 1.1fr}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pr input.ltr{direction:ltr;text-align:left}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chk{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:13px;color:var(--rx-ink);cursor:pointer}body[data-style-page="/KnowledgeBase/Workflow"] .wf-rule .wf-rule-sum,body[data-style-page="/KnowledgeBase/Workflow"] .wf-fb .wf-rule-sum{flex:1;min-width:0;font-size:12.5px;line-height:1.6;color:var(--rx-ink);overflow-wrap:anywhere}body[data-style-page="/KnowledgeBase/Workflow"] .wf-cl{display:grid;grid-template-columns:34px 1fr 1.15fr 1fr 32px;gap:5px;align-items:center;padding:0 8px 7px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-cl input,body[data-style-page="/KnowledgeBase/Workflow"] .wf-cl select{padding:6px 7px;font-size:12px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-if{font-size:11.5px;font-weight:700;color:var(--rx-warning);text-align:center}body[data-style-page="/KnowledgeBase/Workflow"] .wf-if.and{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ic.ghost{visibility:hidden}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ic:disabled{opacity:.35;cursor:default}body[data-style-page="/KnowledgeBase/Workflow"] .wf-mini{margin:0 8px 8px;border:1px dashed var(--rx-line-strong);background:transparent;color:var(--rx-warning);border-radius:9px;padding:4px 10px;font:inherit;font-size:12px;cursor:pointer}body[data-style-page="/KnowledgeBase/Workflow"] .wf-mini:hover{background:rgba(250,204,21,.08)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-fb{border-inline-start-color:var(--rx-line-strong)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-fb .wf-num{color:var(--rx-muted);background:rgba(var(--rx-contrast-rgb), 0.084)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:-4px 0 10px;color:var(--rx-muted);font-size:11.5px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chips.hint{display:block;line-height:1.7}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chipv{border:1px solid rgba(var(--rx-brand-rgb), 0.4);background:rgba(var(--rx-accent-rgb), 0.08);color:var(--rx-accent);border-radius:8px;padding:1px 8px;font:inherit;font-size:12px;cursor:pointer;direction:ltr}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chipv:hover{background:rgba(var(--rx-accent-rgb), 0.18)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-zoom{position:absolute;bottom:12px;left:12px;display:flex;align-items:center;gap:2px;background:var(--rx-surface-2)ee;border:1px solid var(--rx-line);border-radius:12px;padding:3px;backdrop-filter:blur(6px)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-zoom button{width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:var(--rx-ink);cursor:pointer;font-size:15px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-zoom button:hover{background:var(--rx-line)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-zoom span{min-width:46px;text-align:center;font-size:12px;color:var(--rx-muted);direction:ltr}body[data-style-page="/KnowledgeBase/Workflow"] .wf-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/Workflow"] .wf-head h1{margin:0;font-size:21px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sub{color:var(--rx-muted);margin:6px 0 0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn{border:1px solid var(--rx-line-strong);border-radius:8px;padding:6px 12px;font:inherit;font-weight:700;cursor:pointer;background:var(--rx-surface-2);color:var(--rx-ink);text-decoration:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn.primary{background:var(--rx-brand);color:var(--rx-on-brand);border-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn.danger{background:transparent;color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.4)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn:hover{filter:brightness(1.1)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn:disabled{opacity:.5;cursor:default}body[data-style-page="/KnowledgeBase/Workflow"] .wf-alert{border-radius:10px;padding:10px 14px;margin-bottom:12px;font-weight:700}body[data-style-page="/KnowledgeBase/Workflow"] .wf-alert.error{background:rgba(var(--rx-danger-rgb), 0.1);border:1px solid rgba(var(--rx-danger-rgb), 0.4);color:var(--rx-danger)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-alert.success{background:var(--rx-brand);border:1px solid var(--rx-accent);color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-bar .grow{flex:1}body[data-style-page="/KnowledgeBase/Workflow"] .wf-master{display:flex;align-items:center;gap:8px;font-weight:700}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sw{position:relative;width:40px;height:22px;border-radius:11px;border:0;background:var(--rx-faint);cursor:pointer;padding:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sw i{position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:var(--rx-surface);transition:transform .2s}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sw[aria-checked=true]{background:var(--rx-brand-bright)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sw[aria-checked=true] i{transform:translateX(-18px)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-work{display:grid;grid-template-columns:auto minmax(0,1fr) auto;min-height:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-page.no-pal .wf-pal,body[data-style-page="/KnowledgeBase/Workflow"] .wf-page.no-side .wf-side{display:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side{background:var(--rx-surface-2);border:0;padding:10px;overflow:auto;min-height:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal{width:230px;border-inline-start:1px solid var(--rx-line)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side{width:340px;border-inline-end:1px solid var(--rx-line)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal h6,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side h6{margin:0 0 8px;font-size:12px;color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal{padding:0;background:linear-gradient(180deg,var(--rx-surface-2),var(--rx-surface-3));display:flex;flex-direction:column}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-h{padding:13px 14px 11px;border-bottom:1px solid var(--rx-line)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-h b{display:block;font-size:14px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-h small{display:block;color:var(--rx-muted);font-size:11.5px;margin-top:2px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chip{--c:var(--rx-info);display:flex;align-items:center;gap:10px;margin:10px 10px 0;padding:9px 10px;border:1px solid var(--rx-line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--c) 10%,var(--rx-surface-2)),var(--rx-surface-2) 65%);cursor:grab;user-select:none;transition:transform .15s,border-color .15s,box-shadow .15s}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chip:hover{transform:translateY(-2px);border-color:var(--c);box-shadow:0 8px 18px -10px var(--c)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chip:active{cursor:grabbing;transform:scale(.98)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chip.off{opacity:.45;filter:grayscale(.9);cursor:not-allowed;background:var(--rx-surface-2)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-chip.off:hover{transform:none;border-color:var(--rx-line);box-shadow:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-links{margin:12px 10px 0;display:grid;gap:6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-links a{color:var(--rx-accent);font-size:11.5px;text-decoration:none;border:1px dashed rgba(var(--rx-brand-rgb), 0.4);border-radius:10px;padding:6px 9px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-links a:hover{background:rgba(var(--rx-accent-rgb), 0.08)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ci{flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:18px;color:var(--c);background:color-mix(in srgb,var(--c) 17%,var(--rx-surface-3));border:1px solid color-mix(in srgb,var(--c) 42%,transparent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-cx{min-width:0;flex:1}body[data-style-page="/KnowledgeBase/Workflow"] .wf-cx b{display:block;font-size:12.5px;line-height:1.5}body[data-style-page="/KnowledgeBase/Workflow"] .wf-cx small{display:block;color:var(--rx-muted);font-size:10.8px;line-height:1.5}body[data-style-page="/KnowledgeBase/Workflow"] .wf-grip{color:var(--rx-line-strong);font-size:15px;flex:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-f{margin:auto 10px 10px;padding-top:14px;color:var(--rx-muted);font-size:11px;line-height:1.7;display:flex;gap:6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal-f i{color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-canvas{position:relative;background:var(--rx-surface-3);overflow:hidden;min-height:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-canvas svg{width:100%;height:100%;display:block;touch-action:none;direction:ltr}body[data-style-page="/KnowledgeBase/Workflow"] .wf-node rect{stroke-width:1.5}body[data-style-page="/KnowledgeBase/Workflow"] .wf-node text{font-family: var(--rx-font);fill:var(--rx-ink);pointer-events:none;direction:rtl}body[data-style-page="/KnowledgeBase/Workflow"] .wf-node.sel rect.body{stroke:var(--rx-accent);stroke-width:2.5}body[data-style-page="/KnowledgeBase/Workflow"] .wf-port{fill:var(--rx-accent);stroke:var(--rx-on-brand);stroke-width:1.5;cursor:crosshair}body[data-style-page="/KnowledgeBase/Workflow"] .wf-port:hover{r:8}body[data-style-page="/KnowledgeBase/Workflow"] .wf-in{fill:var(--rx-muted);stroke:var(--rx-surface-3);stroke-width:2}body[data-style-page="/KnowledgeBase/Workflow"] .wf-edge{fill:none;stroke:var(--rx-muted);stroke-width:2}body[data-style-page="/KnowledgeBase/Workflow"] .wf-edge.sel{stroke:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-edge-label{font-size:11px;fill:var(--rx-ink-soft);font-family: var(--rx-font)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-hint{position:absolute;bottom:8px;right:10px;color:var(--rx-muted);font-size:11px;pointer-events:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side{padding:0;display:flex;flex-direction:column;gap:0;background:linear-gradient(180deg,var(--rx-surface-2),var(--rx-surface-3))}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side>*{margin:0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side{padding-bottom:14px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ph{--c:var(--rx-info);display:flex;align-items:center;gap:11px;padding:14px;border-bottom:1px solid var(--rx-line);background:linear-gradient(135deg,color-mix(in srgb,var(--c) 16%,transparent),transparent 70%)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pi{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:19px;color:var(--c);background:color-mix(in srgb,var(--c) 18%,var(--rx-surface-3));border:1px solid color-mix(in srgb,var(--c) 45%,transparent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pt b{display:block;font-size:14px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-pt small{display:block;color:var(--rx-muted);font-size:11.5px;margin-top:2px;line-height:1.5}body[data-style-page="/KnowledgeBase/Workflow"] .wf-badge{margin-inline-start:auto;font-size:11px;font-weight:700;color:var(--rx-on-brand);background:var(--rx-brand);border-radius:20px;padding:2px 10px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sec{padding:14px 14px 4px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sec-t{font-size:11.5px;font-weight:700;letter-spacing:.2px;color:var(--rx-muted);margin-bottom:10px;display:flex;align-items:center;gap:6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-sec-t:after{content:'';flex:1;height:1px;background:var(--rx-line)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-field{margin-bottom:12px;position:relative}body[data-style-page="/KnowledgeBase/Workflow"] .wf-field label{display:block;margin-bottom:5px;color:var(--rx-ink-soft);font-size:12px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side input,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side textarea,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side select{width:100%;background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:10px;color:var(--rx-ink);padding:8px 10px;font:inherit;transition:border-color .15s,box-shadow .15s}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side input:focus,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side textarea:focus,body[data-style-page="/KnowledgeBase/Workflow"] .wf-side select:focus{outline:0;border-color:var(--rx-accent);box-shadow:0 0 0 3px rgba(var(--rx-accent-rgb), 0.15)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side textarea{resize:vertical;min-height:84px;line-height:1.8}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side ::placeholder{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-count{display:block;text-align:left;direction:ltr;color:var(--rx-muted);font-size:11px;margin-top:3px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-oc{--c:var(--rx-ink-soft);border:1px solid var(--rx-line);border-inline-start:3px solid var(--c);border-radius:12px;background:var(--rx-surface-2);margin-bottom:10px;overflow:hidden}body[data-style-page="/KnowledgeBase/Workflow"] .wf-oc.open{border-inline-start-color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-oc-h{display:flex;align-items:center;gap:8px;padding:8px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-oc-d{display:flex;align-items:center;gap:8px;padding:0 8px 8px;color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-oc-d i{font-size:15px;flex:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-num{flex:none;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.12)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ic{flex:none;width:32px;height:32px;border-radius:9px;border:1px solid var(--rx-line-strong);background:var(--rx-surface-3);color:var(--rx-ink-soft);cursor:pointer;display:grid;place-items:center;padding:0;font-size:14px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ic.danger{color:var(--rx-danger);border-color:rgba(var(--rx-danger-rgb), 0.35)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ic:hover{filter:brightness(1.25)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-add{width:100%;border:1.5px dashed var(--rx-line-strong);background:transparent;color:var(--rx-accent);border-radius:12px;padding:9px;font:inherit;font-weight:700;cursor:pointer;margin-bottom:10px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-add:hover{background:rgba(var(--rx-accent-rgb), 0.08);border-color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-actions{display:flex;gap:8px;padding:6px 14px 0;flex-wrap:wrap}body[data-style-page="/KnowledgeBase/Workflow"] .wf-actions .wf-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-btn.on{background:rgba(var(--rx-accent-rgb), 0.14);border-color:var(--rx-accent);color:var(--rx-accent);opacity:1}body[data-style-page="/KnowledgeBase/Workflow"] .wf-link{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:var(--rx-page-alt);border:1px solid var(--rx-line);border-radius:10px;padding:10px;margin-bottom:10px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-link i{color:var(--rx-accent)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-warns{padding:14px 14px 0}body[data-style-page="/KnowledgeBase/Workflow"] .wf-warn{display:flex;gap:8px;align-items:flex-start;background:rgba(var(--rx-warning-rgb), 0.08);border:1px solid rgba(var(--rx-warning-rgb), 0.28);color:var(--rx-warning);border-radius:10px;padding:7px 9px;margin-bottom:6px;font-size:12px;line-height:1.7}body[data-style-page="/KnowledgeBase/Workflow"] .wf-warn i{margin-top:3px;color:var(--rx-warning)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-more{color:var(--rx-muted);font-size:12px;text-align:center}body[data-style-page="/KnowledgeBase/Workflow"] .wf-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:22px 14px 12px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-hero-i{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-size:26px;color:var(--rx-accent);background:linear-gradient(135deg,rgba(var(--rx-accent-rgb), 0.2),rgba(96,165,250,.14));border:1px solid rgba(var(--rx-accent-rgb), 0.35)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-hero small{color:var(--rx-muted)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-howto{list-style:none;margin:0;padding:6px 14px 0;display:grid;gap:8px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-howto li{display:flex;gap:10px;align-items:flex-start;background:var(--rx-surface-2);border:1px solid var(--rx-line);border-radius:12px;padding:9px 10px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-howto li span{flex:none;width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:var(--rx-accent);background:rgba(var(--rx-accent-rgb), 0.1)}body[data-style-page="/KnowledgeBase/Workflow"] .wf-howto li p{margin:0;line-height:1.8;color:var(--rx-ink-soft);font-size:12.5px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-tip{display:flex;gap:8px;margin:12px 14px 0;color:var(--rx-muted);font-size:12px;line-height:1.8}body[data-style-page="/KnowledgeBase/Workflow"] .wf-tip i{color:var(--rx-warning);margin-top:3px}
@media(max-width:900px){body[data-style-page="/KnowledgeBase/Workflow"] .wf-pal{width:190px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-side{width:280px}body[data-style-page="/KnowledgeBase/Workflow"] .wf-brand small{display:none}body[data-style-page="/KnowledgeBase/Workflow"] .wf-ibtn .t{display:none}}



body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-page{max-width:100%;min-width:0}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-top{position:sticky;top:0;z-index:20;flex-wrap:wrap;gap:8px;border:1px solid var(--rx-line);border-radius:0 0 16px 16px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-canvas-wrap{min-width:0;min-height:60vh}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-side{max-width:min(340px,90vw)}@media(max-width:700px){body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-top{padding:8px}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-brand{flex:1 1 100%}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-sep{display:none}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-canvas-wrap{min-height:50vh}body.customer-panel[data-style-page="/KnowledgeBase/Workflow"] .wf-side{position:fixed;inset-block:70px 0;max-width:calc(100vw - 20px);z-index:30}}
/* Page stylesheet: /Policies/Create */
body[data-style-page="/Policies/Create"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Policies/Create"] .create-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Policies/Create"] .create-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Policies/Create"] .create-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Policies/Create"] /* Header */
    .create-header{
        margin-bottom: 2.5rem;
    }body[data-style-page="/Policies/Create"] .back-link{
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink-soft);
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Create"] .back-link:hover{
        color: var(--rx-accent);
    }body[data-style-page="/Policies/Create"] .create-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Create"] .create-header h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Create"] .create-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Policies/Create"] /* Layout */
    .create-grid{
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }body[data-style-page="/Policies/Create"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Policies/Create"] .card-header-modern{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Policies/Create"] .card-header-modern h2{
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Create"] .card-header-modern h2 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Create"] .card-body-modern{
        padding: 2rem;
    }body[data-style-page="/Policies/Create"] /* Form */
    .form-group{
        margin-bottom: 1.75rem;
    }body[data-style-page="/Policies/Create"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }body[data-style-page="/Policies/Create"] .form-label i{
        color: var(--rx-accent);
    }body[data-style-page="/Policies/Create"] .form-control{
        width: 100%;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Create"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Policies/Create"] .form-control:focus{
        outline: none;
        border-color: var(--rx-accent);
        background: rgba(var(--rx-accent-rgb), 0.1);
        box-shadow: 0 0 0 4px rgba(var(--rx-accent-rgb), 0.15);
    }body[data-style-page="/Policies/Create"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
        font-family: var(--rx-font-mono) !important;
    }body[data-style-page="/Policies/Create"] textarea.form-control{
        resize: vertical;
        min-height: 120px;
        line-height: 1.8;
    }body[data-style-page="/Policies/Create"] select.form-control{
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 1rem center;
        padding-left: 2.5rem;
        cursor: pointer;
    }body[data-style-page="/Policies/Create"] select.form-control option{
        background: var(--rx-input);
        color: var(--rx-ink);
        padding: 0.5rem;
        font-family: var(--rx-font);
    }body[data-style-page="/Policies/Create"] .form-hint{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--rx-muted);
    }body[data-style-page="/Policies/Create"] .form-hint i{
        font-size: 0.9rem;
    }body[data-style-page="/Policies/Create"] .text-danger{
        color: var(--rx-danger) !important;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        display: block;
    }body[data-style-page="/Policies/Create"] /* Toggle Switch */
    .toggle-group{
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1.25rem 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Create"] .toggle-group:hover{
        border-color: rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Create"] .toggle-info h4{
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
    }body[data-style-page="/Policies/Create"] .toggle-info p{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin: 0;
    }body[data-style-page="/Policies/Create"] .toggle-switch{
        position: relative;
        width: 56px;
        height: 30px;
        flex-shrink: 0;
    }body[data-style-page="/Policies/Create"] .toggle-switch input{
        opacity: 0;
        width: 0;
        height: 0;
    }body[data-style-page="/Policies/Create"] .toggle-slider{
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(var(--rx-contrast-rgb), 0.2);
        transition: 0.3s;
        border-radius: 30px;
    }body[data-style-page="/Policies/Create"] .toggle-slider:before{
        position: absolute;
        content: "";
        height: 24px;
        width: 24px;
        left: 3px;
        bottom: 3px;
        background: var(--rx-surface);
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }body[data-style-page="/Policies/Create"] .toggle-switch input:checked + .toggle-slider{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
    }body[data-style-page="/Policies/Create"] .toggle-switch input:checked + .toggle-slider:before{
        transform: translateX(26px);
    }body[data-style-page="/Policies/Create"] /* Buttons */
    .form-actions{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Policies/Create"] .btn-submit{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        border: none;
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Create"] .btn-submit:hover{
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Policies/Create"] .btn-cancel{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Create"] .btn-cancel:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Policies/Create"] /* Tips Card */
    .tips-card{
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
    }body[data-style-page="/Policies/Create"] .tip-item{
        display: flex;
        gap: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Policies/Create"] .tip-item:last-child{
        border-bottom: none;
        padding-bottom: 0;
    }body[data-style-page="/Policies/Create"] .tip-item:first-child{
        padding-top: 0;
    }body[data-style-page="/Policies/Create"] .tip-number{
        width: 32px;
        height: 32px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
        font-size: 0.9rem;
        flex-shrink: 0;
    }body[data-style-page="/Policies/Create"] .tip-content h4{
        color: var(--rx-accent);
        font-size: 0.95rem;
        font-weight: 700;
        margin: 0 0 0.35rem 0;
    }body[data-style-page="/Policies/Create"] .tip-content p{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.6;
    }body[data-style-page="/Policies/Create"] .tip-content code{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
        padding: 0.15rem 0.5rem;
        border-radius: 4px;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.8rem;
    }body[data-style-page="/Policies/Create"] /* Keyword Tags System */
    .keyword-input-wrapper{
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }body[data-style-page="/Policies/Create"] .keyword-input-wrapper .form-control{
        flex: 1;
    }body[data-style-page="/Policies/Create"] .btn-add-keyword{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        border: none;
        padding: 12px 20px;
        border-radius: 12px;
        color: var(--rx-on-brand);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }body[data-style-page="/Policies/Create"] .btn-add-keyword:hover{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Policies/Create"] .keywords-tags-container{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-height: 50px;
        padding: 15px;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 2px dashed rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
    }body[data-style-page="/Policies/Create"] .keyword-tag{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 500;
        animation: pageecdfdb2fc6-tagAppear 0.3s ease;
    }

    @keyframes pageecdfdb2fc6-tagAppear {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }body[data-style-page="/Policies/Create"] .keyword-tag .remove-tag{
        background: rgba(var(--rx-contrast-rgb), 0.2);
        border: none;
        color: var(--rx-ink);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        font-size: 14px;
        padding: 0;
    }body[data-style-page="/Policies/Create"] .keyword-tag .remove-tag:hover{
        background: var(--rx-danger-fill);
        transform: scale(1.1);
    }body[data-style-page="/Policies/Create"] .keywords-empty-state{
        color: var(--rx-muted);
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        padding: 10px;
    }body[data-style-page="/Policies/Create"] /* Responsive */
    @media (max-width: 1024px){
        .create-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Policies/Create"] .create-wrapper{
            padding: 1rem;
        }body[data-style-page="/Policies/Create"] .create-header h1{
            font-size: 1.75rem;
        }body[data-style-page="/Policies/Create"] .form-actions{
            flex-direction: column;
        }body[data-style-page="/Policies/Create"] .btn-submit,body[data-style-page="/Policies/Create"] .btn-cancel{
            justify-content: center;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Policies/Create"])) .back-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .back-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .create-header h1 i,html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .card-header-modern h2 i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .form-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] select.form-control{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .text-danger{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .toggle-group{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .toggle-group:hover{ border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .toggle-slider{ background: var(--rx-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .toggle-slider:before{ box-shadow: 0 1px 4px rgba(15,23,42,.25); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .form-actions{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .btn-cancel{ background: var(--theme-surface); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .btn-cancel:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .tip-item{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .tip-number{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .keywords-tags-container{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .keyword-tag{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Create"] .keywords-empty-state{ color: var(--theme-muted); }



body.customer-panel[data-style-page="/Policies/Create"] .create-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Policies/Create"] .create-container{max-width:1060px;margin-inline:auto}body.customer-panel[data-style-page="/Policies/Create"] .create-header{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Policies/Create"] .create-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.65fr);gap:14px;align-items:start}body.customer-panel[data-style-page="/Policies/Create"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/Policies/Create"] .create-wrapper{padding:8px}body.customer-panel[data-style-page="/Policies/Create"] .create-header{padding:16px}body.customer-panel[data-style-page="/Policies/Create"] .create-grid{grid-template-columns:1fr}}
/* Page stylesheet: /Policies/Delete */
body[data-style-page="/Policies/Delete"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Policies/Delete"] .delete-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }body[data-style-page="/Policies/Delete"] .delete-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 100%;
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.1), rgba(var(--rx-danger-rgb), 0.05), transparent);
        pointer-events: none;
    }body[data-style-page="/Policies/Delete"] .delete-container{
        max-width: 700px;
        width: 100%;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Policies/Delete"] /* Back Link */
    .back-link{
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink-soft);
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Delete"] .back-link:hover{
        color: var(--rx-danger);
    }body[data-style-page="/Policies/Delete"] /* Warning Banner */
    .warning-banner{
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.2), rgba(var(--rx-danger-rgb), 0.1));
        border: 1px solid rgba(var(--rx-danger-rgb), 0.4);
        border-radius: 16px;
        padding: 1.5rem 2rem;
        display: flex;
        align-items: center;
        gap: 1.25rem;
        margin-bottom: 2rem;
    }body[data-style-page="/Policies/Delete"] .warning-banner-icon{
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: rgba(var(--rx-danger-rgb), 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        color: var(--rx-danger);
        flex-shrink: 0;
    }body[data-style-page="/Policies/Delete"] .warning-banner-content h3{
        color: var(--rx-danger);
        font-size: 1.1rem;
        font-weight: 800;
        margin: 0 0 0.35rem 0;
    }body[data-style-page="/Policies/Delete"] .warning-banner-content p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 0.9rem;
    }body[data-style-page="/Policies/Delete"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Policies/Delete"] .card-header-modern{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Policies/Delete"] .card-header-modern h2{
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Delete"] .card-header-modern h2 i{
        color: var(--rx-danger);
    }body[data-style-page="/Policies/Delete"] .status-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
    }body[data-style-page="/Policies/Delete"] .status-active{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Policies/Delete"] .status-inactive{
        background: rgba(107, 114, 128, 0.15);
        color: var(--rx-muted);
        border: 1px solid rgba(107, 114, 128, 0.3);
    }body[data-style-page="/Policies/Delete"] .card-body-modern{
        padding: 2rem;
    }body[data-style-page="/Policies/Delete"] /* Policy Details */
    .policy-detail{
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Policies/Delete"] .policy-detail:last-child{
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }body[data-style-page="/Policies/Delete"] .policy-detail-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-muted);
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Policies/Delete"] .policy-detail-label i{
        font-size: 1rem;
    }body[data-style-page="/Policies/Delete"] .policy-detail-value{
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.7;
    }body[data-style-page="/Policies/Delete"] .policy-key-badge{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
        padding: 0.6rem 1.25rem;
        border-radius: 10px;
        font-family: var(--rx-font-mono) !important;
        font-size: 1rem;
        font-weight: 600;
        display: inline-block;
    }body[data-style-page="/Policies/Delete"] /* Keywords */
    .keywords-container{
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }body[data-style-page="/Policies/Delete"] .keyword-pill{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.4rem 0.85rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Delete"] .no-keywords{
        color: var(--rx-muted);
        font-style: italic;
    }body[data-style-page="/Policies/Delete"] /* Buttons */
    .form-actions{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Policies/Delete"] .btn-delete{
        background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill));
        color: var(--rx-on-brand);
        border: none;
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Policies/Delete"] .btn-delete:hover{
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(var(--rx-danger-rgb), 0.4);
    }body[data-style-page="/Policies/Delete"] .btn-cancel{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Delete"] .btn-cancel:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Policies/Delete"] /* Responsive */
    @media (max-width: 768px){
        .delete-wrapper {
            padding: 1rem;
            align-items: flex-start;
            padding-top: 2rem;
        }

        .warning-banner {
            flex-direction: column;
            text-align: center;
        }

        .form-actions {
            flex-direction: column;
        }

        .btn-delete, .btn-cancel {
            justify-content: center;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Policies/Delete"])) .back-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .back-link:hover{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .warning-banner{ background: rgba(var(--rx-danger-rgb), 0.07); border-color: rgba(var(--rx-danger-rgb), 0.3); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .warning-banner-icon{ background: rgba(var(--rx-danger-rgb), 0.12); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .warning-banner .warning-banner-content h3{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .glass-card .card-header-modern h2 i{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .status-active{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .status-inactive{ background: rgba(var(--rx-contrast-rgb), 0.07); border-color: rgba(var(--rx-contrast-rgb), 0.175); color: var(--rx-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .policy-detail{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .policy-detail-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .no-keywords{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .btn-cancel{ background: var(--theme-surface); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Delete"] .btn-cancel:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }



body.customer-panel[data-style-page="/Policies/Delete"] .delete-wrapper{min-height:0;padding:clamp(16px,4vw,54px);background:transparent}body.customer-panel[data-style-page="/Policies/Delete"] .delete-container{max-width:760px;margin-inline:auto}body.customer-panel[data-style-page="/Policies/Delete"] .glass-card{border:1px solid var(--rx-line);border-radius:22px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Policies/Delete"] .delete-actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:600px){body.customer-panel[data-style-page="/Policies/Delete"] .delete-wrapper{padding:8px}body.customer-panel[data-style-page="/Policies/Delete"] .delete-actions{display:grid;grid-template-columns:1fr}}
/* Page stylesheet: /Policies/Edit */
body[data-style-page="/Policies/Edit"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Policies/Edit"] .edit-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Policies/Edit"] .edit-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Policies/Edit"] .edit-container{
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Policies/Edit"] /* Header */
    .edit-header{
        margin-bottom: 2.5rem;
    }body[data-style-page="/Policies/Edit"] .back-link{
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink-soft);
        text-decoration: none;
        font-weight: 600;
        margin-bottom: 1rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Edit"] .back-link:hover{
        color: var(--rx-accent);
    }body[data-style-page="/Policies/Edit"] .edit-header h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Edit"] .edit-header h1 i{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Edit"] .edit-header p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Policies/Edit"] /* Layout */
    .edit-grid{
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2rem;
        align-items: start;
    }body[data-style-page="/Policies/Edit"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Policies/Edit"] .card-header-modern{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Policies/Edit"] .card-header-modern h2{
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Edit"] .card-header-modern h2 i{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Edit"] .card-body-modern{
        padding: 2rem;
    }body[data-style-page="/Policies/Edit"] /* Form */
    .form-group{
        margin-bottom: 1.75rem;
    }body[data-style-page="/Policies/Edit"] .form-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        margin-bottom: 0.75rem;
        font-size: 1rem;
    }body[data-style-page="/Policies/Edit"] .form-label i{
        color: var(--rx-warning);
    }body[data-style-page="/Policies/Edit"] .form-control{
        width: 100%;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Edit"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Policies/Edit"] .form-control:focus{
        outline: none;
        border-color: var(--rx-warning);
        background: rgba(var(--rx-warning-rgb), 0.1);
        box-shadow: 0 0 0 4px rgba(var(--rx-warning-rgb), 0.15);
    }body[data-style-page="/Policies/Edit"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
        font-family: var(--rx-font-mono) !important;
    }body[data-style-page="/Policies/Edit"] textarea.form-control{
        resize: vertical;
        min-height: 120px;
        line-height: 1.8;
    }body[data-style-page="/Policies/Edit"] select.form-control{
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 1rem center;
        padding-left: 2.5rem;
        cursor: pointer;
    }body[data-style-page="/Policies/Edit"] select.form-control option{
        background: var(--rx-input);
        color: var(--rx-ink);
        padding: 0.5rem;
        font-family: var(--rx-font);
    }body[data-style-page="/Policies/Edit"] .form-hint{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--rx-muted);
    }body[data-style-page="/Policies/Edit"] .form-hint i{
        font-size: 0.9rem;
    }body[data-style-page="/Policies/Edit"] .text-danger{
        color: var(--rx-danger) !important;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        display: block;
    }body[data-style-page="/Policies/Edit"] /* Toggle Switch */
    .toggle-group{
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 14px;
        padding: 1.25rem 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Edit"] .toggle-group:hover{
        border-color: rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Policies/Edit"] .toggle-info h4{
        color: var(--rx-ink);
        font-size: 1rem;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
    }body[data-style-page="/Policies/Edit"] .toggle-info p{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin: 0;
    }body[data-style-page="/Policies/Edit"] .toggle-switch{
        position: relative;
        width: 56px;
        height: 30px;
        flex-shrink: 0;
    }body[data-style-page="/Policies/Edit"] .toggle-switch input{
        opacity: 0;
        width: 0;
        height: 0;
    }body[data-style-page="/Policies/Edit"] .toggle-slider{
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(var(--rx-contrast-rgb), 0.2);
        transition: 0.3s;
        border-radius: 30px;
    }body[data-style-page="/Policies/Edit"] .toggle-slider:before{
        position: absolute;
        content: "";
        height: 24px;
        width: 24px;
        left: 3px;
        bottom: 3px;
        background: var(--rx-surface);
        transition: 0.3s;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }body[data-style-page="/Policies/Edit"] .toggle-switch input:checked + .toggle-slider{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
    }body[data-style-page="/Policies/Edit"] .toggle-switch input:checked + .toggle-slider:before{
        transform: translateX(26px);
    }body[data-style-page="/Policies/Edit"] /* Buttons */
    .form-actions{
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Policies/Edit"] .btn-submit{
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        color: var(--rx-ink);
        border: none;
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Policies/Edit"] .btn-submit:hover{
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(var(--rx-warning-rgb), 0.4);
    }body[data-style-page="/Policies/Edit"] .btn-cancel{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Edit"] .btn-cancel:hover{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink);
    }body[data-style-page="/Policies/Edit"] /* Warning Card */
    .warning-card{
        background: linear-gradient(135deg, rgba(var(--rx-warning-rgb), 0.1), rgba(var(--rx-warning-rgb), 0.05));
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
    }body[data-style-page="/Policies/Edit"] .warning-card .card-header-modern{
        border-bottom-color: rgba(var(--rx-warning-rgb), 0.2);
    }body[data-style-page="/Policies/Edit"] .warning-icon{
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: linear-gradient(135deg, rgba(var(--rx-warning-rgb), 0.2), rgba(var(--rx-warning-rgb), 0.1));
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 1.75rem;
        color: var(--rx-warning);
    }body[data-style-page="/Policies/Edit"] .warning-text{
        text-align: center;
    }body[data-style-page="/Policies/Edit"] .warning-text h4{
        color: var(--rx-warning);
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Policies/Edit"] .warning-text p{
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.7;
    }body[data-style-page="/Policies/Edit"] /* Keyword Tags System */
    .keyword-input-wrapper{
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
    }body[data-style-page="/Policies/Edit"] .keyword-input-wrapper .form-control{
        flex: 1;
    }body[data-style-page="/Policies/Edit"] .btn-add-keyword{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        border: none;
        padding: 12px 20px;
        border-radius: 12px;
        color: var(--rx-on-brand);
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }body[data-style-page="/Policies/Edit"] .btn-add-keyword:hover{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Policies/Edit"] .keywords-tags-container{
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-height: 50px;
        padding: 15px;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 2px dashed rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
    }body[data-style-page="/Policies/Edit"] .keyword-tag{
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill));
        color: var(--rx-ink);
        padding: 8px 14px;
        border-radius: 20px;
        font-size: 0.9rem;
        font-weight: 600;
        animation: page5420883671-tagAppear 0.3s ease;
    }

    @keyframes page5420883671-tagAppear {
        from {
            opacity: 0;
            transform: scale(0.8);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }body[data-style-page="/Policies/Edit"] .keyword-tag .remove-tag{
        background: rgba(0, 0, 0, 0.2);
        border: none;
        color: var(--rx-ink);
        width: 22px;
        height: 22px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        font-size: 14px;
        padding: 0;
    }body[data-style-page="/Policies/Edit"] .keyword-tag .remove-tag:hover{
        background: var(--rx-danger-fill);
        color: var(--rx-on-brand);
        transform: scale(1.1);
    }body[data-style-page="/Policies/Edit"] .keywords-empty-state{
        color: var(--rx-muted);
        font-size: 0.9rem;
        text-align: center;
        width: 100%;
        padding: 10px;
    }body[data-style-page="/Policies/Edit"] /* Responsive */
    @media (max-width: 1024px){
        .edit-grid {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Policies/Edit"] .edit-wrapper{
            padding: 1rem;
        }body[data-style-page="/Policies/Edit"] .edit-header h1{
            font-size: 1.75rem;
        }body[data-style-page="/Policies/Edit"] .form-actions{
            flex-direction: column;
        }body[data-style-page="/Policies/Edit"] .btn-submit,body[data-style-page="/Policies/Edit"] .btn-cancel{
            justify-content: center;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Policies/Edit"])) .back-link{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .back-link:hover{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .edit-header h1 i,html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .card-header-modern h2 i{ background: linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .form-label i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] select.form-control{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .text-danger{ color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .toggle-group{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .toggle-group:hover{ border-color: rgba(var(--rx-warning-rgb), 0.35); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .toggle-slider{ background: var(--rx-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .toggle-slider:before{ box-shadow: 0 1px 4px rgba(15,23,42,.25); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .form-actions{ border-top-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .btn-cancel{ background: var(--theme-surface); color: var(--theme-text-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .btn-cancel:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .glass-card.warning-card{ border-color: rgba(var(--rx-warning-rgb), 0.3) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .warning-icon{ background: rgba(var(--rx-warning-rgb), 0.12); color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .keywords-tags-container{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Edit"] .keywords-empty-state{ color: var(--theme-muted); }



body.customer-panel[data-style-page="/Policies/Edit"] .edit-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Policies/Edit"] .edit-container{max-width:1060px;margin-inline:auto}body.customer-panel[data-style-page="/Policies/Edit"] .edit-header{padding:20px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Policies/Edit"] .edit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,.65fr);gap:14px;align-items:start}body.customer-panel[data-style-page="/Policies/Edit"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}@media(max-width:767.98px){body.customer-panel[data-style-page="/Policies/Edit"] .edit-wrapper{padding:8px}body.customer-panel[data-style-page="/Policies/Edit"] .edit-header{padding:16px}body.customer-panel[data-style-page="/Policies/Edit"] .edit-grid{grid-template-columns:1fr}}
/* Page stylesheet: /Policies/Index */
body[data-style-page="/Policies/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Policies/Index"] .policies-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Policies/Index"] .policies-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Policies/Index"] .policies-container{
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Policies/Index"] /* Header */
    .policies-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }body[data-style-page="/Policies/Index"] .header-content h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Index"] .header-content h1 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Index"] .header-content p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Policies/Index"] .btn-create{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        border: none;
        padding: 1rem 2rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .btn-create:hover{
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(var(--rx-accent-rgb), 0.4);
        color: var(--rx-on-brand);
    }body[data-style-page="/Policies/Index"] /* Stats */
    .stats-row{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }body[data-style-page="/Policies/Index"] .stat-mini{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 16px;
        padding: 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Index"] .stat-mini:hover{
        border-color: rgba(var(--rx-accent-rgb), 0.3);
        transform: translateY(-3px);
    }body[data-style-page="/Policies/Index"] .stat-mini-icon{
        width: 50px;
        height: 50px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }body[data-style-page="/Policies/Index"] .stat-mini-value{
        font-size: 1.75rem;
        font-weight: 900;
        color: var(--rx-ink);
        line-height: 1;
    }body[data-style-page="/Policies/Index"] .stat-mini-label{
        font-size: 0.85rem;
        color: var(--rx-muted);
        margin-top: 0.25rem;
    }body[data-style-page="/Policies/Index"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
    }body[data-style-page="/Policies/Index"] .card-header-modern{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }body[data-style-page="/Policies/Index"] .card-header-modern h2{
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Policies/Index"] .card-header-modern h2 i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Index"] /* Table */
    .policies-table{
        width: 100%;
        border-collapse: collapse;
    }body[data-style-page="/Policies/Index"] .policies-table thead th{
        background: rgba(var(--rx-accent-rgb), 0.1);
        padding: 1.25rem 1.5rem;
        text-align: right;
        font-weight: 700;
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Policies/Index"] .policies-table tbody tr{
        transition: all 0.3s ease;
    }body[data-style-page="/Policies/Index"] .policies-table tbody tr:hover{
        background: rgba(var(--rx-accent-rgb), 0.05);
    }body[data-style-page="/Policies/Index"] .policies-table tbody td{
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        vertical-align: middle;
    }body[data-style-page="/Policies/Index"] .policy-key-badge{
        background: rgba(var(--rx-accent-rgb), 0.2);
        color: var(--rx-accent);
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.9rem;
        font-weight: 600;
        display: inline-block;
    }body[data-style-page="/Policies/Index"] .policy-description{
        max-width: 300px;
        color: var(--rx-ink-soft);
        line-height: 1.5;
    }body[data-style-page="/Policies/Index"] /* Keywords */
    .keywords-container{
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }body[data-style-page="/Policies/Index"] .keyword-pill{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.35rem 0.75rem;
        border-radius: 50px;
        font-size: 0.8rem;
        font-weight: 600;
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .keyword-more{
        background: rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink-soft);
        border-color: rgba(var(--rx-contrast-rgb), 0.2);
    }body[data-style-page="/Policies/Index"] /* Status Badge */
    .status-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 700;
    }body[data-style-page="/Policies/Index"] .status-active{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .status-inactive{
        background: rgba(107, 114, 128, 0.15);
        color: var(--rx-muted);
        border: 1px solid rgba(107, 114, 128, 0.3);
    }body[data-style-page="/Policies/Index"] /* Action Buttons */
    .action-btns{
        display: flex;
        gap: 0.5rem;
    }body[data-style-page="/Policies/Index"] .btn-action{
        width: 40px;
        height: 40px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        transition: all 0.3s ease;
        font-size: 1rem;
        text-decoration: none;
    }body[data-style-page="/Policies/Index"] .btn-edit{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .btn-edit:hover{
        background: rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        transform: translateY(-2px);
    }body[data-style-page="/Policies/Index"] .btn-delete{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .btn-delete:hover{
        background: rgba(var(--rx-danger-rgb), 0.3);
        color: var(--rx-danger);
        transform: translateY(-2px);
    }body[data-style-page="/Policies/Index"] /* Empty State */
    .empty-state{
        padding: 5rem 2rem;
        text-align: center;
    }body[data-style-page="/Policies/Index"] .empty-icon{
        width: 120px;
        height: 120px;
        border-radius: 30px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.2), rgba(var(--rx-accent-rgb), 0.2));
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 2rem;
        font-size: 3.5rem;
    }body[data-style-page="/Policies/Index"] .empty-icon i{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Policies/Index"] .empty-state h3{
        color: var(--rx-ink);
        font-size: 1.75rem;
        font-weight: 800;
        margin-bottom: 1rem;
    }body[data-style-page="/Policies/Index"] .empty-state p{
        color: var(--rx-muted);
        font-size: 1.1rem;
        max-width: 400px;
        margin: 0 auto 2rem;
    }body[data-style-page="/Policies/Index"] .features-list{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto 2.5rem;
        text-align: right;
    }body[data-style-page="/Policies/Index"] .feature-item{
        display: flex;
        align-items: center;
        gap: 1rem;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        padding: 1rem 1.5rem;
        border-radius: 12px;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
    }body[data-style-page="/Policies/Index"] .feature-item i{
        color: var(--rx-success);
        font-size: 1.25rem;
    }body[data-style-page="/Policies/Index"] .feature-item span{
        color: var(--rx-ink-soft);
        font-weight: 600;
    }body[data-style-page="/Policies/Index"] .btn-create-lg{
        background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand));
        color: var(--rx-on-brand);
        border: none;
        padding: 1.25rem 3rem;
        border-radius: 16px;
        font-weight: 700;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 15px 40px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Policies/Index"] .btn-create-lg:hover{
        transform: translateY(-3px);
        box-shadow: 0 20px 50px rgba(var(--rx-accent-rgb), 0.4);
        color: var(--rx-on-brand);
    }body[data-style-page="/Policies/Index"] /* Responsive */
    @media (max-width: 1200px){
        .stats-row {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Policies/Index"] .policies-wrapper{
            padding: 1rem;
        }body[data-style-page="/Policies/Index"] .policies-header{
            flex-direction: column;
            text-align: center;
        }body[data-style-page="/Policies/Index"] .header-content h1{
            font-size: 1.75rem;
            justify-content: center;
        }body[data-style-page="/Policies/Index"] .stats-row{
            grid-template-columns: 1fr;
        }body[data-style-page="/Policies/Index"] .policies-table thead{
            display: none;
        }body[data-style-page="/Policies/Index"] .policies-table tbody tr{
            display: block;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-radius: 16px;
            background: rgba(var(--rx-contrast-rgb), 0.02);
        }body[data-style-page="/Policies/Index"] .policies-table tbody td{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        }body[data-style-page="/Policies/Index"] .policies-table tbody td::before{
            content: attr(data-label);
            font-weight: 700;
            color: var(--rx-muted);
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Policies/Index"])) .header-content h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .card-header-modern h2 i,
html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .empty-icon i{ background: linear-gradient(135deg, var(--theme-accent-strong), var(--theme-accent)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .empty-icon{ background: rgba(var(--theme-accent-rgb), .1); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .policies-table td > span[style*="rgba(255,255,255,0.4)"]{ color: var(--theme-faint) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .status-active{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .status-inactive{ background: rgba(var(--rx-contrast-rgb), 0.07); border-color: rgba(var(--rx-contrast-rgb), 0.175); color: var(--rx-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .btn-action.btn-delete{ background-color: rgba(var(--rx-danger-rgb), 0.08) !important; border-color: rgba(var(--rx-danger-rgb), 0.25) !important; color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .btn-action.btn-delete:hover{ background-color: rgba(var(--rx-danger-rgb), 0.15) !important; border-color: rgba(var(--rx-danger-rgb), 0.4) !important; color: var(--rx-danger) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .feature-item i{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .feature-item span{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Policies/Index"] .policies-table tbody td::before{ color: var(--theme-muted); }



/* Policy library: summary first, then a readable full-width rule table. */
body.customer-panel[data-style-page="/Policies/Index"] .policies-wrapper { min-height:0; padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Policies/Index"] .policies-container { max-width:1440px; }
body.customer-panel[data-style-page="/Policies/Index"] .policies-header { padding:20px 22px; margin-bottom:16px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Policies/Index"] .stats-row { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
body.customer-panel[data-style-page="/Policies/Index"] .stat-mini { border:1px solid var(--rx-line); border-radius:16px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Policies/Index"] .glass-card { overflow:hidden; border:1px solid var(--rx-line); border-radius:20px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Policies/Index"] .policies-table { width:100%; }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Policies/Index"] .policies-wrapper{padding:8px}body.customer-panel[data-style-page="/Policies/Index"] .policies-header{display:grid;gap:12px;padding:16px}body.customer-panel[data-style-page="/Policies/Index"] .btn-create{width:100%;justify-content:center}body.customer-panel[data-style-page="/Policies/Index"] .stats-row{grid-template-columns:1fr}body.customer-panel[data-style-page="/Policies/Index"] .policies-table{min-width:680px}body.customer-panel[data-style-page="/Policies/Index"] .glass-card{overflow-x:auto}}
/* Page stylesheet: /Requests/Details */
body[data-style-page="/Requests/Details"] .details-wrapper{
        min-height: 100vh;
        background: linear-gradient(135deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
    }body[data-style-page="/Requests/Details"] .details-container{
        max-width: 1200px;
        margin: 0 auto;
    }body[data-style-page="/Requests/Details"] /* Header */
    .details-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }body[data-style-page="/Requests/Details"] .header-content h1{
        font-size: 2rem;
        font-weight: 800;
        color: var(--rx-ink);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Requests/Details"] .header-content h1 i{
        color: var(--rx-info);
    }body[data-style-page="/Requests/Details"] .header-content p{
        color: var(--rx-ink-soft);
        margin: 0.5rem 0 0 0;
    }body[data-style-page="/Requests/Details"] .btn-back{
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(var(--rx-contrast-rgb), 0.1);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.2);
        color: var(--rx-ink);
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }body[data-style-page="/Requests/Details"] .btn-back:hover{
        background: rgba(var(--rx-contrast-rgb), 0.15);
        color: var(--rx-ink);
        transform: translateX(5px);
    }body[data-style-page="/Requests/Details"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Requests/Details"] .card-header{
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }body[data-style-page="/Requests/Details"] .card-title{
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--rx-ink);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Requests/Details"] .card-title i{
        color: var(--rx-accent);
    }body[data-style-page="/Requests/Details"] .card-body{
        padding: 1.5rem;
    }body[data-style-page="/Requests/Details"] /* Info Grid */
    .info-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }body[data-style-page="/Requests/Details"] .info-item{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 14px;
        padding: 1rem 1.25rem;
        transition: all 0.2s ease;
    }body[data-style-page="/Requests/Details"] .info-item:hover{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border-color: rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Requests/Details"] .info-label{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--rx-muted);
        margin-bottom: 0.5rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }body[data-style-page="/Requests/Details"] .info-label i{
        color: var(--rx-accent);
        font-size: 0.9rem;
    }body[data-style-page="/Requests/Details"] .info-value{
        font-size: 1rem;
        font-weight: 600;
        color: var(--rx-ink);
        word-break: break-all;
    }body[data-style-page="/Requests/Details"] .info-value.ltr{
        direction: ltr;
        text-align: left;
        font-family: var(--rx-font-mono);
    }body[data-style-page="/Requests/Details"] /* Status Badge */
    .status-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 700;
    }body[data-style-page="/Requests/Details"] .status-success{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Requests/Details"] .status-error{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Requests/Details"] .method-badge{
        display: inline-flex;
        padding: 0.35rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        font-family: var(--rx-font-mono);
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Requests/Details"] /* JSON Viewer */
    .json-section{
        margin-top: 0.5rem;
    }body[data-style-page="/Requests/Details"] .json-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Requests/Details"] .json-title{
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--rx-ink-soft);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Requests/Details"] .json-title i{
        color: var(--rx-accent);
    }body[data-style-page="/Requests/Details"] .btn-copy{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(var(--rx-accent-rgb), 0.15);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
        color: var(--rx-accent);
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }body[data-style-page="/Requests/Details"] .btn-copy:hover{
        background: rgba(var(--rx-accent-rgb), 0.25);
        color: var(--rx-ink);
    }body[data-style-page="/Requests/Details"] .btn-copy.copied{
        background: rgba(var(--rx-success-rgb), 0.2);
        border-color: rgba(var(--rx-success-rgb), 0.4);
        color: var(--rx-success);
    }body[data-style-page="/Requests/Details"] .json-viewer{
        background: var(--rx-page-alt);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }body[data-style-page="/Requests/Details"] .json-content{
        padding: 1.25rem;
        overflow-x: auto;
        max-height: 500px;
        overflow-y: auto;
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Requests/Details"] .json-content pre{
        margin: 0;
        font-family: var(--rx-font-mono);
        font-size: 0.85rem;
        line-height: 1.7;
        white-space: pre-wrap;
        word-break: break-word;
        color: var(--rx-ink);
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Requests/Details"] /* JSON Syntax Highlighting */
    .json-key{
        color: var(--rx-success);
    }body[data-style-page="/Requests/Details"] .json-string{
        color: var(--rx-info);
    }body[data-style-page="/Requests/Details"] .json-number{
        color: var(--rx-warning);
    }body[data-style-page="/Requests/Details"] .json-boolean{
        color: var(--rx-danger);
    }body[data-style-page="/Requests/Details"] .json-null{
        color: var(--rx-muted);
    }body[data-style-page="/Requests/Details"] .json-bracket{
        color: var(--rx-muted);
    }body[data-style-page="/Requests/Details"] .json-empty{
        color: var(--rx-muted);
        font-style: italic;
    }body[data-style-page="/Requests/Details"] /* Alert */
    .alert-not-found{
        background: rgba(var(--rx-warning-rgb), 0.1);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.3);
        color: var(--rx-warning);
        padding: 1.5rem;
        border-radius: 16px;
        text-align: center;
        font-weight: 600;
    }body[data-style-page="/Requests/Details"] /* Scrollbar */
    .json-content::-webkit-scrollbar{
        width: 8px;
        height: 8px;
    }body[data-style-page="/Requests/Details"] .json-content::-webkit-scrollbar-track{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border-radius: 4px;
    }body[data-style-page="/Requests/Details"] .json-content::-webkit-scrollbar-thumb{
        background: rgba(var(--rx-accent-rgb), 0.3);
        border-radius: 4px;
    }body[data-style-page="/Requests/Details"] .json-content::-webkit-scrollbar-thumb:hover{
        background: rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Requests/Details"] /* Animation */
    .fade-in{
        animation: page01673abea0-fadeIn 0.5s ease forwards;
    }

    @keyframes page01673abea0-fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }body[data-style-page="/Requests/Details"] /* Responsive */
    @media (max-width: 768px){
        .details-wrapper {
            padding: 1rem;
        }

        .details-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .header-content h1 {
            font-size: 1.5rem;
        }

        .info-grid {
            grid-template-columns: 1fr;
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Requests/Details"])) .btn-back{ background: var(--theme-surface); border-color: var(--theme-border-soft); color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .btn-back:hover{ background: var(--theme-hover); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-item{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-item:hover{ background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-value{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .info-value span[style*="rgba(255,255,255,0.4)"]{ color: var(--theme-faint) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .status-success{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .status-error{ background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .method-badge{ background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .json-title{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Details"] .alert-not-found{ background: rgba(var(--rx-warning-rgb), 0.1); border-color: rgba(var(--rx-warning-rgb), 0.3); color: var(--rx-warning); }



body.customer-panel[data-style-page="/Requests/Details"] .details-wrapper{padding:clamp(12px,2vw,28px);background:transparent}body.customer-panel[data-style-page="/Requests/Details"] .details-container{max-width:1240px;margin-inline:auto}body.customer-panel[data-style-page="/Requests/Details"] .details-header{padding:18px 22px;border:1px solid var(--rx-line);border-radius:20px;background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft));box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Requests/Details"] .info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.customer-panel[data-style-page="/Requests/Details"] .glass-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}body.customer-panel[data-style-page="/Requests/Details"] pre,body.customer-panel[data-style-page="/Requests/Details"] .code-block{max-width:100%;overflow:auto;border-radius:14px}@media(max-width:767.98px){body.customer-panel[data-style-page="/Requests/Details"] .details-wrapper{padding:8px}body.customer-panel[data-style-page="/Requests/Details"] .details-header{display:grid;gap:12px;padding:16px}body.customer-panel[data-style-page="/Requests/Details"] .info-grid{grid-template-columns:1fr}}
/* Page stylesheet: /Requests/Index */
body[data-style-page="/Requests/Index"] *{
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Requests/Index"] .requests-wrapper{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        padding: 2rem;
        position: relative;
    }body[data-style-page="/Requests/Index"] .requests-wrapper::before{
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 400px;
        background: linear-gradient(135deg, rgba(var(--rx-info-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05));
        pointer-events: none;
    }body[data-style-page="/Requests/Index"] .requests-container{
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Requests/Index"] /* Header */
    .requests-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
        gap: 1.5rem;
    }body[data-style-page="/Requests/Index"] .header-content h1{
        font-size: 2.25rem;
        font-weight: 900;
        color: var(--rx-ink);
        margin: 0 0 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Requests/Index"] .header-content h1 i{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Requests/Index"] .header-content p{
        color: var(--rx-ink-soft);
        margin: 0;
        font-size: 1rem;
    }body[data-style-page="/Requests/Index"] .total-badge{
        background: rgba(var(--rx-info-rgb), 0.15);
        border: 1px solid rgba(var(--rx-info-rgb), 0.3);
        color: var(--rx-info);
        padding: 0.75rem 1.5rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Requests/Index"] /* Glass Card */
    .glass-card{
        background: rgba(var(--rx-contrast-rgb), 0.03);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Requests/Index"] .card-header-modern{
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Requests/Index"] .card-header-modern h2{
        color: var(--rx-ink);
        font-size: 1.25rem;
        font-weight: 800;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }body[data-style-page="/Requests/Index"] .card-header-modern h2 i{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Requests/Index"] .card-body-modern{
        padding: 1.5rem 2rem;
    }body[data-style-page="/Requests/Index"] /* Filter Form */
    .filter-form{
        display: grid;
        grid-template-columns: 1fr 200px 200px auto;
        gap: 1rem;
        align-items: end;
    }body[data-style-page="/Requests/Index"] .form-group{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }body[data-style-page="/Requests/Index"] .form-label{
        color: var(--rx-ink-soft);
        font-weight: 600;
        font-size: 0.9rem;
    }body[data-style-page="/Requests/Index"] .form-control{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.1);
        border-radius: 12px;
        padding: 0.875rem 1rem;
        color: var(--rx-ink);
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }body[data-style-page="/Requests/Index"] .form-control::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Requests/Index"] .form-control:focus{
        outline: none;
        border-color: var(--rx-info);
        background: rgba(var(--rx-info-rgb), 0.1);
    }body[data-style-page="/Requests/Index"] .form-control.ltr-input{
        direction: ltr;
        text-align: left;
    }body[data-style-page="/Requests/Index"] .btn-filter{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        color: var(--rx-on-brand);
        border: none;
        padding: 0.875rem 1.5rem;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }body[data-style-page="/Requests/Index"] .btn-filter:hover{
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(var(--rx-info-rgb), 0.3);
    }body[data-style-page="/Requests/Index"] /* Table */
    .requests-table{
        width: 100%;
        border-collapse: collapse;
    }body[data-style-page="/Requests/Index"] .requests-table thead th{
        background: rgba(var(--rx-info-rgb), 0.1);
        padding: 1.25rem 1.5rem;
        text-align: right;
        font-weight: 700;
        color: var(--rx-ink-soft);
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
    }body[data-style-page="/Requests/Index"] .requests-table tbody tr{
        transition: all 0.3s ease;
    }body[data-style-page="/Requests/Index"] .requests-table tbody tr:hover{
        background: rgba(var(--rx-info-rgb), 0.05);
    }body[data-style-page="/Requests/Index"] .requests-table tbody td{
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        color: var(--rx-ink-soft);
        vertical-align: middle;
    }body[data-style-page="/Requests/Index"] .time-badge{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.85rem;
        font-weight: 500;
        direction: ltr;
        display: inline-block;
    }body[data-style-page="/Requests/Index"] .endpoint-link{
        color: var(--rx-info);
        text-decoration: none;
        font-weight: 600;
        font-family: var(--rx-font-mono) !important;
        font-size: 0.9rem;
        direction: ltr;
        display: inline-block;
        transition: all 0.3s ease;
    }body[data-style-page="/Requests/Index"] .endpoint-link:hover{
        color: var(--rx-info);
        text-decoration: underline;
    }body[data-style-page="/Requests/Index"] .method-badge{
        padding: 0.4rem 0.85rem;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }body[data-style-page="/Requests/Index"] .method-post{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Requests/Index"] .method-get{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Requests/Index"] .model-badge{
        background: rgba(var(--rx-accent-rgb), 0.15);
        color: var(--rx-accent);
        padding: 0.4rem 0.75rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 600;
    }body[data-style-page="/Requests/Index"] .status-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.4rem 0.85rem;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 700;
    }body[data-style-page="/Requests/Index"] .status-200{
        background: rgba(var(--rx-success-rgb), 0.15);
        color: var(--rx-success);
    }body[data-style-page="/Requests/Index"] .status-400,body[data-style-page="/Requests/Index"] .status-500{
        background: rgba(var(--rx-danger-rgb), 0.15);
        color: var(--rx-danger);
    }body[data-style-page="/Requests/Index"] /* Empty State */
    .empty-row td{
        text-align: center;
        color: var(--rx-muted);
        padding: 3rem !important;
    }body[data-style-page="/Requests/Index"] /* Pagination */
    .pagination-wrapper{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
    }body[data-style-page="/Requests/Index"] .pagination{
        display: flex;
        gap: 0.5rem;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
        justify-content: center;
    }body[data-style-page="/Requests/Index"] .page-item{
        display: inline-block;
    }body[data-style-page="/Requests/Index"] .page-link{
        display: flex;
        align-items: center;
        gap: 0.3rem;
        justify-content: center;
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.1);
        color: var(--rx-ink-soft);
        padding: 0.5rem 0.75rem;
        border-radius: 10px;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        transition: all 0.2s ease;
        min-width: 40px;
    }body[data-style-page="/Requests/Index"] a.page-link:hover{
        background: rgba(var(--rx-info-rgb), 0.2);
        border-color: rgba(var(--rx-info-rgb), 0.4);
        color: var(--rx-info);
        transform: translateY(-1px);
    }body[data-style-page="/Requests/Index"] .page-item.disabled .page-link{
        opacity: 0.4;
        pointer-events: none;
        cursor: not-allowed;
        background: rgba(var(--rx-contrast-rgb), 0.02);
    }body[data-style-page="/Requests/Index"] .page-item.active .page-link{
        background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-info-fill));
        border-color: transparent;
        color: var(--rx-on-brand);
        box-shadow: 0 4px 12px rgba(var(--rx-info-rgb), 0.3);
    }body[data-style-page="/Requests/Index"] .page-info-text{
        color: var(--rx-muted);
        font-size: 0.85rem;
    }body[data-style-page="/Requests/Index"] /* Responsive */
    @media (max-width: 1024px){
        .filter-form {
            grid-template-columns: 1fr 1fr;
        }
    }

    @media (max-width: 768px) {body[data-style-page="/Requests/Index"] .requests-wrapper{
            padding: 1rem;
        }body[data-style-page="/Requests/Index"] .requests-header{
            flex-direction: column;
            text-align: center;
        }body[data-style-page="/Requests/Index"] .header-content h1{
            font-size: 1.75rem;
            justify-content: center;
        }body[data-style-page="/Requests/Index"] .pagination{
            gap: 0.3rem;
        }body[data-style-page="/Requests/Index"] .page-link{
            padding: 0.4rem 0.5rem;
            font-size: 0.8rem;
            min-width: 35px;
        }body[data-style-page="/Requests/Index"] .filter-form{
            grid-template-columns: 1fr;
        }body[data-style-page="/Requests/Index"] .requests-table thead{
            display: none;
        }body[data-style-page="/Requests/Index"] .requests-table tbody tr{
            display: block;
            padding: 1.5rem;
            margin-bottom: 1rem;
            border-radius: 16px;
            background: rgba(var(--rx-contrast-rgb), 0.02);
        }body[data-style-page="/Requests/Index"] .requests-table tbody td{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        }body[data-style-page="/Requests/Index"] .requests-table tbody td::before{
            content: attr(data-label);
            font-weight: 700;
            color: var(--rx-muted);
        }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Requests/Index"])) .header-content h1 i,
html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .card-header-modern h2 i{ background: linear-gradient(135deg, var(--rx-info-fill), var(--rx-brand)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .total-badge{ background: rgba(8,145,178,.1); border-color: rgba(8,145,178,.3); color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .time-badge{ background: rgba(var(--theme-accent-rgb), .1); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .endpoint-link{ color: var(--rx-accent); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .endpoint-link:hover{ color: #155e75; }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .method-post{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .method-get{ background: rgba(var(--theme-accent-rgb), .1); border-color: var(--theme-border); color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .status-200{ background: rgba(var(--rx-success-rgb), 0.1); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .status-400,html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .status-500{ background: rgba(var(--rx-danger-rgb), 0.08); color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .empty-row td{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .page-info-text{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Requests/Index"] .requests-table tbody td::before{ color: var(--theme-muted); }



/* Request log: keep the date and endpoint filters above a dense, scan-friendly audit table. */
body.customer-panel[data-style-page="/Requests"] .requests-wrapper { min-height:0; padding:clamp(12px,2vw,28px); background:transparent; }
body.customer-panel[data-style-page="/Requests"] .requests-container { max-width:1440px; }
body.customer-panel[data-style-page="/Requests"] .requests-header { padding:20px 22px; margin-bottom:16px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Requests"] .requests-header .total-badge { align-self:center; }
body.customer-panel[data-style-page="/Requests"] .requests-wrapper .glass-card { overflow:hidden; border:1px solid var(--rx-line); border-radius:20px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Requests"] .filter-form { display:grid; grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(150px,1fr)) auto; align-items:end; gap:12px; }
body.customer-panel[data-style-page="/Requests"] .requests-table { width:100%; }
@media(max-width:767.98px){body.customer-panel[data-style-page="/Requests"] .requests-wrapper{padding:8px}body.customer-panel[data-style-page="/Requests"] .requests-header{display:grid;gap:12px;padding:16px}body.customer-panel[data-style-page="/Requests"] .filter-form{grid-template-columns:1fr}body.customer-panel[data-style-page="/Requests"] .filter-form .btn-filter{width:100%}body.customer-panel[data-style-page="/Requests"] .requests-table{min-width:620px}body.customer-panel[data-style-page="/Requests"] .requests-wrapper .glass-card{overflow-x:auto}}
/* Page stylesheet: /Simulator */
body[data-style-page="/Simulator"] /* ── Reset & Variables ── */
    *,body[data-style-page="/Simulator"] *::before,body[data-style-page="/Simulator"] *::after{
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }html:has(body[data-style-page="/Simulator"]),body[data-style-page="/Simulator"]{
        overflow-x: hidden;
        max-width: 100vw;
        font-family: var(--rx-font) !important;
    }body[data-style-page="/Simulator"] /* ── Page Wrapper ── */
    .sim-page{
        min-height: 100vh;
        background: linear-gradient(180deg, var(--rx-page) 0%, var(--rx-surface) 50%, var(--rx-page) 100%);
        position: relative;
        overflow: hidden;
    }body[data-style-page="/Simulator"] /* Animated background orbs */
    .sim-bg-orb{
        position: fixed;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
        z-index: 0;
    }body[data-style-page="/Simulator"] .sim-bg-orb-1{
        width: 600px;
        height: 600px;
        top: -200px;
        right: -150px;
        background: radial-gradient(circle, rgba(var(--rx-accent-rgb), 0.2) 0%, transparent 70%);
        animation: pagec939669b7c-simFloat1 20s ease-in-out infinite alternate;
    }body[data-style-page="/Simulator"] .sim-bg-orb-2{
        width: 500px;
        height: 500px;
        bottom: -150px;
        left: -100px;
        background: radial-gradient(circle, rgba(var(--rx-accent-rgb), 0.15) 0%, transparent 70%);
        animation: pagec939669b7c-simFloat2 25s ease-in-out infinite alternate;
    }body[data-style-page="/Simulator"] .sim-bg-orb-3{
        width: 400px;
        height: 400px;
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
        background: radial-gradient(circle, rgba(var(--rx-accent-rgb), 0.08) 0%, transparent 70%);
        animation: pagec939669b7c-simFloat3 18s ease-in-out infinite alternate;
    }

    @keyframes pagec939669b7c-simFloat1 {
        from { transform: translate(0, 0) scale(1); }
        to { transform: translate(-40px, 30px) scale(1.1); }
    }

    @keyframes pagec939669b7c-simFloat2 {
        from { transform: translate(0, 0) scale(1); }
        to { transform: translate(30px, -40px) scale(1.05); }
    }

    @keyframes pagec939669b7c-simFloat3 {
        from { transform: translateX(-50%) translate(0, 0); }
        to { transform: translateX(-50%) translate(20px, 20px); }
    }body[data-style-page="/Simulator"] /* Grid overlay */
    .sim-grid-overlay{
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        background-image:
            linear-gradient(rgba(var(--rx-contrast-rgb), 0.02) 1px, transparent 1px),
            linear-gradient(90deg, rgba(var(--rx-contrast-rgb), 0.02) 1px, transparent 1px);
        background-size: 50px 50px;
        mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 100%);
    }body[data-style-page="/Simulator"] .sim-container{
        max-width: 820px;
        margin: 0 auto;
        padding: 1.5rem 1.5rem 4rem;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Simulator"] /* ── Header ── */
    .sim-header{
        text-align: center;
        margin-bottom: 2rem;
        padding-top: 0.5rem;
    }body[data-style-page="/Simulator"] .sim-header-badge{
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(var(--rx-accent-rgb), 0.1);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.25);
        border-radius: 50px;
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--indigo-light);
        margin-bottom: 1.25rem;
        animation: pagec939669b7c-simFadeUp 0.6s ease both;
    }body[data-style-page="/Simulator"] .sim-header-icon{
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.25), rgba(var(--rx-accent-rgb), 0.2));
        border: 1px solid rgba(var(--rx-accent-rgb), 0.35);
        border-radius: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
        box-shadow: 0 8px 32px rgba(var(--rx-accent-rgb), 0.25);
        animation: pagec939669b7c-simFadeUp 0.6s 0.1s ease both;
    }body[data-style-page="/Simulator"] .sim-header h1{
        font-size: 2rem;
        font-weight: 900;
        margin-bottom: 0.6rem;
        background: linear-gradient(135deg, var(--rx-surface) 0%, var(--rx-brand-bright) 50%, var(--rx-brand-bright) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: pagec939669b7c-simFadeUp 0.6s 0.15s ease both;
    }body[data-style-page="/Simulator"] .sim-header p{
        color: var(--rx-muted);
        font-size: 0.95rem;
        line-height: 1.6;
        animation: pagec939669b7c-simFadeUp 0.6s 0.2s ease both;
    }

    @keyframes pagec939669b7c-simFadeUp {
        from { opacity: 0; transform: translateY(16px); }
        to { opacity: 1; transform: translateY(0); }
    }body[data-style-page="/Simulator"] /* ── Main Card ── */
    .sim-card{
        background: linear-gradient(145deg, rgba(var(--rx-contrast-rgb), 0.04) 0%, rgba(var(--rx-contrast-rgb), 0.02) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 24px;
        overflow: hidden;
        box-shadow:
            0 4px 24px rgba(0, 0, 0, 0.2),
            0 0 80px rgba(var(--rx-accent-rgb), 0.05);
        animation: pagec939669b7c-simFadeUp 0.6s 0.25s ease both;
    }body[data-style-page="/Simulator"] .sim-card:hover{
        border-color: rgba(var(--rx-accent-rgb), 0.2);
        box-shadow:
            0 8px 40px rgba(0, 0, 0, 0.3),
            0 0 100px rgba(var(--rx-accent-rgb), 0.1);
    }body[data-style-page="/Simulator"] /* ── Input Area ── */
    .sim-input-area{
        padding: 1.75rem 1.75rem 1.25rem;
    }body[data-style-page="/Simulator"] .sim-label{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        font-weight: 700;
        color: var(--rx-ink);
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Simulator"] .sim-label i{
        color: var(--indigo-light);
        font-size: 1rem;
    }body[data-style-page="/Simulator"] .sim-textarea-wrap{
        position: relative;
    }body[data-style-page="/Simulator"] .sim-textarea{
        width: 100%;
        min-height: 150px;
        padding: 1.1rem 1.25rem;
        background: rgba(16, 40, 41, 0.6);
        border: 1.5px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 14px;
        color: var(--rx-ink);
        font-family: var(--rx-font);
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.8;
        direction: rtl;
        text-align: right;
        resize: vertical;
        transition: all 0.3s;
    }body[data-style-page="/Simulator"] .sim-textarea:focus{
        outline: none;
        border-color: rgba(var(--rx-accent-rgb), 0.5);
        background: rgba(16, 40, 41, 0.8);
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.1), inset 0 0 30px rgba(var(--rx-accent-rgb), 0.03);
    }body[data-style-page="/Simulator"] .sim-textarea::placeholder{
        color: var(--rx-faint);
    }body[data-style-page="/Simulator"] .sim-textarea.is-invalid{
        border-color: rgba(var(--rx-danger-rgb), 0.5);
    }body[data-style-page="/Simulator"] .sim-textarea-glow{
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(var(--rx-accent-rgb), 0.3), transparent);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }body[data-style-page="/Simulator"] .sim-textarea:focus ~ .sim-textarea-glow{
        opacity: 1;
    }body[data-style-page="/Simulator"] .sim-error{
        display: none;
        color: var(--rx-danger);
        background: rgba(var(--rx-danger-rgb), 0.08);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.2);
        border-radius: 10px;
        padding: 0.6rem 1rem;
        margin-top: 0.6rem;
        font-size: 0.85rem;
        font-weight: 600;
    }body[data-style-page="/Simulator"] .sim-char-counter{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.6rem;
        font-size: 0.78rem;
        color: var(--rx-muted);
    }body[data-style-page="/Simulator"] .sim-char-counter span:last-child{
        direction: ltr;
        font-weight: 600;
        color: var(--rx-muted);
    }body[data-style-page="/Simulator"] /* ── Divider ── */
    .sim-divider{
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(var(--rx-contrast-rgb), 0.06), transparent);
        margin: 0 1.75rem;
    }body[data-style-page="/Simulator"] /* ── API Key Section ── */
    .sim-apikey-section{
        padding: 1.25rem 1.75rem;
    }body[data-style-page="/Simulator"] .sim-apikey-label{
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        color: var(--rx-ink-soft);
        font-weight: 700;
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }body[data-style-page="/Simulator"] .sim-apikey-label i{
        color: var(--rx-warning);
    }body[data-style-page="/Simulator"] .sim-apikey-select-wrap{
        position: relative;
    }body[data-style-page="/Simulator"] .sim-apikey-select{
        width: 100%;
        background: rgba(16, 40, 41, 0.5);
        border: 1.5px solid rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        color: var(--rx-ink);
        font-size: 0.85rem;
        font-weight: 500;
        font-family: var(--rx-font);
        direction: rtl;
        cursor: pointer;
        transition: all 0.3s;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23818cf8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 0.75rem center;
        background-size: 12px;
        padding-left: 2rem;
    }body[data-style-page="/Simulator"] .sim-apikey-select:focus{
        outline: none;
        border-color: rgba(var(--rx-accent-rgb), 0.5);
        box-shadow: 0 0 0 3px rgba(var(--rx-accent-rgb), 0.1);
    }body[data-style-page="/Simulator"] .sim-apikey-select option{
        background: var(--rx-surface);
        color: var(--rx-ink);
    }body[data-style-page="/Simulator"] .sim-apikey-info{
        margin-top: 0.5rem;
        font-size: 0.78rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.35rem;
        color: var(--rx-success);
    }body[data-style-page="/Simulator"] /* ── Policies Section ── */
    .sim-policies{
        padding: 1.25rem 1.75rem;
    }body[data-style-page="/Simulator"] .sim-policies-header{
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.85rem;
    }body[data-style-page="/Simulator"] .sim-policies-title{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-ink);
        font-weight: 700;
        font-size: 0.85rem;
    }body[data-style-page="/Simulator"] .sim-policies-title i{
        color: var(--emerald);
    }body[data-style-page="/Simulator"] .sim-select-all-btn{
        background: rgba(var(--rx-accent-rgb), 0.12);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.25);
        color: var(--indigo-light);
        padding: 0.4rem 0.9rem;
        border-radius: 8px;
        font-size: 0.75rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: var(--rx-font);
    }body[data-style-page="/Simulator"] .sim-select-all-btn:hover{
        background: rgba(var(--rx-accent-rgb), 0.25);
        color: var(--rx-ink);
        transform: translateY(-1px);
    }body[data-style-page="/Simulator"] .sim-policies-list{
        display: grid;
        gap: 0.5rem;
        overflow: visible;
        padding-right: 0.25rem;
    }body[data-style-page="/Simulator"] .sim-policies-list::-webkit-scrollbar{
        width: 4px;
    }body[data-style-page="/Simulator"] .sim-policies-list::-webkit-scrollbar-track{
        background: rgba(var(--rx-contrast-rgb), 0.02);
        border-radius: 4px;
    }body[data-style-page="/Simulator"] .sim-policies-list::-webkit-scrollbar-thumb{
        background: rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 4px;
    }body[data-style-page="/Simulator"] .sim-policies-list::-webkit-scrollbar-thumb:hover{
        background: rgba(var(--rx-contrast-rgb), 0.15);
    }body[data-style-page="/Simulator"] .sim-policy-item{
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
        background: rgba(var(--rx-contrast-rgb), 0.025);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.05);
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.25s;
    }body[data-style-page="/Simulator"] .sim-policy-item:hover{
        background: rgba(var(--rx-contrast-rgb), 0.05);
        border-color: rgba(var(--rx-accent-rgb), 0.25);
        transform: translateX(-3px);
    }body[data-style-page="/Simulator"] .sim-policy-toggle{
        position: relative;
        width: 38px;
        height: 22px;
        flex-shrink: 0;
    }body[data-style-page="/Simulator"] .sim-policy-toggle input{
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }body[data-style-page="/Simulator"] .sim-policy-toggle-track{
        position: absolute;
        cursor: pointer;
        inset: 0;
        background: rgba(var(--rx-contrast-rgb), 0.12);
        border-radius: 22px;
        transition: all 0.3s;
    }body[data-style-page="/Simulator"] .sim-policy-toggle-track::before{
        content: "";
        position: absolute;
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        background: var(--rx-surface);
        border-radius: 50%;
        transition: all 0.3s;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }body[data-style-page="/Simulator"] .sim-policy-toggle input:checked + .sim-policy-toggle-track{
        background: linear-gradient(135deg, var(--indigo), var(--violet));
        box-shadow: 0 0 12px rgba(var(--rx-accent-rgb), 0.4);
    }body[data-style-page="/Simulator"] .sim-policy-toggle input:checked + .sim-policy-toggle-track::before{
        transform: translateX(16px);
    }body[data-style-page="/Simulator"] .sim-policy-info{
        flex: 1;
        min-width: 0;
    }body[data-style-page="/Simulator"] .sim-policy-name{
        font-weight: 600;
        color: var(--rx-ink);
        font-size: 0.85rem;
    }body[data-style-page="/Simulator"] .sim-policy-desc{
        font-size: 0.72rem;
        color: var(--rx-muted);
        margin-top: 0.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }body[data-style-page="/Simulator"] .sim-policy-badge{
        font-size: 0.65rem;
        font-weight: 700;
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        flex-shrink: 0;
        letter-spacing: 0.02em;
    }body[data-style-page="/Simulator"] .sim-policy-badge.active{
        background: rgba(var(--rx-success-rgb), 0.12);
        color: var(--rx-success);
        border: 1px solid rgba(var(--rx-success-rgb), 0.2);
    }body[data-style-page="/Simulator"] .sim-policy-badge.inactive{
        background: rgba(var(--rx-contrast-rgb), 0.06);
        color: var(--rx-muted);
    }body[data-style-page="/Simulator"] .sim-policies-validation{
        display: none;
        color: var(--rx-danger);
        background: rgba(var(--rx-danger-rgb), 0.08);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.2);
        border-radius: 10px;
        padding: 0.6rem 1rem;
        margin-top: 0.6rem;
        font-size: 0.8rem;
        font-weight: 600;
        text-align: center;
    }body[data-style-page="/Simulator"] /* ── Submit Button ── */
    .sim-submit-area{
        padding: 1.25rem 1.75rem 1.75rem;
    }body[data-style-page="/Simulator"] .sim-submit-btn{
        width: 100%;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, var(--indigo), var(--violet));
        border: none;
        border-radius: 14px;
        color: var(--rx-on-brand);
        font-size: 1rem;
        font-weight: 800;
        font-family: var(--rx-font);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        position: relative;
        overflow: hidden;
        box-shadow: 0 6px 24px rgba(var(--rx-accent-rgb), 0.35);
    }body[data-style-page="/Simulator"] .sim-submit-btn::before{
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(var(--rx-contrast-rgb), 0.15), transparent);
        transition: transform 0.5s;
    }body[data-style-page="/Simulator"] .sim-submit-btn:hover::before{
        transform: translateX(200%);
    }body[data-style-page="/Simulator"] .sim-submit-btn:hover:not(:disabled){
        transform: translateY(-2px);
        box-shadow: 0 10px 32px rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Simulator"] .sim-submit-btn:active:not(:disabled){
        transform: translateY(0);
    }body[data-style-page="/Simulator"] .sim-submit-btn:disabled{
        opacity: 0.5;
        cursor: not-allowed;
    }body[data-style-page="/Simulator"] .sim-submit-btn .spinner{
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(var(--rx-contrast-rgb), 0.3);
        border-radius: 50%;
        border-top-color: var(--rx-line);
        animation: pagec939669b7c-simSpin 0.7s linear infinite;
    }body[data-style-page="/Simulator"] .sim-submit-btn.loading .spinner{
        display: block;
    }body[data-style-page="/Simulator"] .sim-submit-btn.loading .btn-text{
        display: none;
    }

    @keyframes pagec939669b7c-simSpin {
        to { transform: rotate(360deg); }
    }body[data-style-page="/Simulator"] /* ── Loading Overlay ── */
    .sim-loading{
        position: fixed;
        inset: 0;
        background: rgba(8, 8, 20, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }body[data-style-page="/Simulator"] .sim-loading.active{
        display: flex;
        animation: pagec939669b7c-simFadeIn 0.3s ease;
    }

    @keyframes pagec939669b7c-simFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }body[data-style-page="/Simulator"] .sim-loading-box{
        background: linear-gradient(145deg, rgba(25, 25, 45, 0.98), rgba(16, 40, 41, 0.98));
        backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--rx-accent-rgb), 0.2);
        border-radius: 24px;
        padding: 2.5rem 3rem;
        text-align: center;
        max-width: 340px;
        width: 90%;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.5),
            0 0 60px rgba(var(--rx-accent-rgb), 0.15);
        animation: pagec939669b7c-simFadeUp 0.4s ease;
    }body[data-style-page="/Simulator"] .sim-loading-icon{
        font-size: 2.75rem;
        margin-bottom: 1rem;
        animation: pagec939669b7c-simPulseIcon 1.5s ease-in-out infinite;
    }

    @keyframes pagec939669b7c-simPulseIcon {
        0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(15, 118, 110, 0.5)); }
        50% { transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(13, 148, 136, 0.7)); }
    }body[data-style-page="/Simulator"] .sim-loading-text{
        color: var(--rx-ink);
        font-weight: 800;
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }body[data-style-page="/Simulator"] .sim-loading-sub{
        color: var(--rx-muted);
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }body[data-style-page="/Simulator"] .sim-loading-bar{
        height: 4px;
        background: rgba(var(--rx-contrast-rgb), 0.08);
        border-radius: 4px;
        overflow: hidden;
    }body[data-style-page="/Simulator"] .sim-loading-bar-fill{
        height: 100%;
        background: linear-gradient(90deg, var(--indigo), var(--violet), var(--pink), var(--violet), var(--indigo));
        background-size: 200% 100%;
        border-radius: 4px;
        animation: pagec939669b7c-simProgressFlow 1.5s linear infinite;
        width: 0%;
        transition: width 0.3s;
    }

    @keyframes pagec939669b7c-simProgressFlow {
        0% { background-position: 0% 50%; }
        100% { background-position: 200% 50%; }
    }body[data-style-page="/Simulator"] .sim-loading-quota{
        margin-top: 1.25rem;
        font-size: 0.75rem;
        color: var(--rx-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
    }body[data-style-page="/Simulator"] /* ── Results ── */
    .sim-results{
        margin-top: 1.5rem;
        display: none;
    }body[data-style-page="/Simulator"] .sim-results.visible{
        display: block;
        animation: pagec939669b7c-simFadeUp 0.5s ease;
    }body[data-style-page="/Simulator"] /* Result Card */
    .sim-result-card{
        background: rgba(var(--rx-contrast-rgb), 0.025);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }body[data-style-page="/Simulator"] .sim-result-card.approved{
        border-top: 3px solid var(--emerald);
    }body[data-style-page="/Simulator"] .sim-result-card.rejected{
        border-top: 3px solid var(--red);
    }body[data-style-page="/Simulator"] /* Status Banner */
    .sim-result-status{
        padding: 2rem 1.5rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }body[data-style-page="/Simulator"] .sim-result-card.approved .sim-result-status{
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.1), rgba(var(--rx-success-rgb), 0.05));
    }body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-result-status{
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.1), rgba(var(--rx-danger-rgb), 0.05));
    }body[data-style-page="/Simulator"] .sim-result-status::before{
        content: '';
        position: absolute;
        top: -100%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(var(--rx-contrast-rgb), 0.03) 0%, transparent 70%);
        animation: pagec939669b7c-simBannerShine 5s ease-in-out infinite;
    }

    @keyframes pagec939669b7c-simBannerShine {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(0%) translateY(-25%); }
    }body[data-style-page="/Simulator"] .sim-status-icon{
        width: 72px;
        height: 72px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        margin-bottom: 1rem;
        position: relative;
        z-index: 1;
        animation: pagec939669b7c-simBounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes pagec939669b7c-simBounceIn {
        from { transform: scale(0); opacity: 0; }
        to { transform: scale(1); opacity: 1; }
    }body[data-style-page="/Simulator"] .sim-result-card.approved .sim-status-icon{
        background: linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.25), rgba(var(--rx-success-rgb), 0.15));
        border: 2px solid rgba(var(--rx-success-rgb), 0.4);
        box-shadow: 0 0 40px rgba(var(--rx-success-rgb), 0.3);
    }body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-status-icon{
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.25), rgba(var(--rx-danger-rgb), 0.15));
        border: 2px solid rgba(var(--rx-danger-rgb), 0.4);
        box-shadow: 0 0 40px rgba(var(--rx-danger-rgb), 0.3);
    }body[data-style-page="/Simulator"] .sim-status-title{
        font-size: 1.35rem;
        font-weight: 900;
        margin-bottom: 0.3rem;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Simulator"] .sim-result-card.approved .sim-status-title{
        background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-status-title{
        background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Simulator"] .sim-status-sub{
        color: var(--rx-muted);
        font-size: 0.85rem;
        position: relative;
        z-index: 1;
    }body[data-style-page="/Simulator"] /* Stats Row */
    .sim-result-stats{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    }body[data-style-page="/Simulator"] .sim-stat{
        padding: 1.1rem;
        text-align: center;
        transition: background 0.2s;
    }body[data-style-page="/Simulator"] .sim-stat:hover{
        background: rgba(var(--rx-contrast-rgb), 0.02);
    }body[data-style-page="/Simulator"] .sim-stat:not(:last-child){
        border-left: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    }body[data-style-page="/Simulator"] .sim-stat-icon{
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }body[data-style-page="/Simulator"] .sim-stat-value{
        font-size: 1.2rem;
        font-weight: 800;
    }body[data-style-page="/Simulator"] .sim-stat-label{
        font-size: 0.7rem;
        color: var(--rx-muted);
        margin-top: 0.15rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }body[data-style-page="/Simulator"] /* Confidence Bar */
    .sim-confidence{
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    }body[data-style-page="/Simulator"] .sim-confidence-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.7rem;
    }body[data-style-page="/Simulator"] .sim-confidence-title{
        color: var(--rx-ink-soft);
        font-size: 0.8rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }body[data-style-page="/Simulator"] .sim-confidence-title i{
        color: var(--indigo-light);
    }body[data-style-page="/Simulator"] .sim-confidence-value{
        font-size: 1.15rem;
        font-weight: 900;
        background: linear-gradient(135deg, var(--indigo-light), var(--violet));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }body[data-style-page="/Simulator"] .sim-confidence-bar{
        height: 10px;
        background: rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 10px;
        overflow: hidden;
    }body[data-style-page="/Simulator"] .sim-confidence-fill{
        height: 100%;
        border-radius: 10px;
        transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        position: relative;
    }body[data-style-page="/Simulator"] .sim-confidence-fill::after{
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(var(--rx-contrast-rgb), 0.25), transparent);
        animation: pagec939669b7c-simGaugeShimmer 2s linear infinite;
    }

    @keyframes pagec939669b7c-simGaugeShimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
    }body[data-style-page="/Simulator"] .sim-result-card.approved .sim-confidence-fill{
        background: linear-gradient(90deg, var(--rx-success-fill), var(--rx-success-fill), var(--rx-success-fill));
        box-shadow: 0 0 12px rgba(var(--rx-success-rgb), 0.4);
    }body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-confidence-fill{
        background: linear-gradient(90deg, var(--rx-danger-fill), var(--rx-danger-fill), var(--rx-danger-fill));
        box-shadow: 0 0 12px rgba(var(--rx-danger-rgb), 0.4);
    }body[data-style-page="/Simulator"] /* Violations */
    .sim-violations{
        padding: 1.25rem 1.5rem;
        background: linear-gradient(135deg, rgba(var(--rx-danger-rgb), 0.06), rgba(var(--rx-danger-rgb), 0.02));
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    }body[data-style-page="/Simulator"] .sim-violations-title{
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rx-danger);
        font-weight: 700;
        font-size: 0.85rem;
        margin-bottom: 0.85rem;
    }body[data-style-page="/Simulator"] .sim-violation-item{
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.7rem 0.9rem;
        background: rgba(var(--rx-danger-rgb), 0.06);
        border: 1px solid rgba(var(--rx-danger-rgb), 0.15);
        border-radius: 10px;
        margin-bottom: 0.4rem;
        font-size: 0.85rem;
        color: var(--rx-ink-soft);
        transition: all 0.2s;
        animation: pagec939669b7c-simViolationSlide 0.4s ease both;
    }body[data-style-page="/Simulator"] .sim-violation-item:nth-child(1){ animation-delay: 0.1s; }body[data-style-page="/Simulator"] .sim-violation-item:nth-child(2){ animation-delay: 0.2s; }body[data-style-page="/Simulator"] .sim-violation-item:nth-child(3){ animation-delay: 0.3s; }body[data-style-page="/Simulator"] .sim-violation-item:nth-child(4){ animation-delay: 0.4s; }

    @keyframes pagec939669b7c-simViolationSlide {
        from { opacity: 0; transform: translateX(12px); }
        to { opacity: 1; transform: translateX(0); }
    }body[data-style-page="/Simulator"] .sim-violation-item:hover{
        background: rgba(var(--rx-danger-rgb), 0.1);
        transform: translateX(-3px);
    }body[data-style-page="/Simulator"] .sim-violation-item:last-child{
        margin-bottom: 0;
    }body[data-style-page="/Simulator"] .sim-violation-icon{
        width: 30px;
        height: 30px;
        background: rgba(var(--rx-danger-rgb), 0.15);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        flex-shrink: 0;
    }body[data-style-page="/Simulator"] /* Rejection Reason */
    .sim-rejection{
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        background: rgba(var(--rx-warning-rgb), 0.06);
        border: 1px solid rgba(var(--rx-warning-rgb), 0.2);
        border-radius: 12px;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Simulator"] .sim-rejection-icon{
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }body[data-style-page="/Simulator"] .sim-rejection-text{
        color: var(--rx-warning);
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1.7;
    }body[data-style-page="/Simulator"] /* Model Footer */
    .sim-result-footer{
        display: none;
        padding: 0.85rem 1.5rem;
        background: rgba(var(--rx-contrast-rgb), 0.015);
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        font-size: 0.75rem;
        color: var(--rx-muted);
    }body[data-style-page="/Simulator"] .sim-result-footer i{
        color: var(--indigo-light);
    }body[data-style-page="/Simulator"] .sim-result-footer strong{
        color: var(--indigo-light);
        font-weight: 700;
    }body[data-style-page="/Simulator"] /* ── Code Examples ── */
    .sim-code-section{
        margin-top: 1.5rem;
        background: rgba(var(--rx-contrast-rgb), 0.025);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.07);
        border-radius: 18px;
        overflow: hidden;
    }body[data-style-page="/Simulator"] .sim-code-header{
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: 700;
        font-size: 0.85rem;
        color: var(--rx-ink-soft);
    }body[data-style-page="/Simulator"] .sim-code-header i{
        color: var(--indigo-light);
    }body[data-style-page="/Simulator"] .sim-code-tabs{
        display: flex;
        border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        padding: 0 0.5rem;
    }body[data-style-page="/Simulator"] .sim-code-tab{
        padding: 0.65rem 1.1rem;
        border: none;
        background: none;
        color: var(--rx-muted);
        font-size: 0.8rem;
        font-weight: 600;
        font-family: var(--rx-font);
        cursor: pointer;
        border-bottom: 2px solid transparent;
        transition: all 0.2s;
        position: relative;
    }body[data-style-page="/Simulator"] .sim-code-tab:hover{
        color: var(--rx-ink-soft);
    }body[data-style-page="/Simulator"] .sim-code-tab.active{
        color: var(--indigo-light);
        border-bottom-color: var(--indigo);
    }body[data-style-page="/Simulator"] .sim-code-content{
        display: none;
        padding: 1rem;
    }body[data-style-page="/Simulator"] .sim-code-content.active{
        display: block;
    }body[data-style-page="/Simulator"] .sim-code-block{
        background: var(--rx-page);
        border-radius: 12px;
        padding: 1rem;
        position: relative;
        direction: ltr;
        text-align: left;
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
    }body[data-style-page="/Simulator"] .sim-code-block pre{
        margin: 0;
        font-family: var(--rx-font-mono);
        font-size: 0.8rem;
        line-height: 1.7;
        color: #c9d1d9;
        white-space: pre;
        overflow-x: auto;
    }body[data-style-page="/Simulator"] .sim-copy-btn{
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
        background: linear-gradient(135deg, var(--indigo), var(--violet));
        border: none;
        color: var(--rx-on-brand);
        padding: 0.35rem 0.75rem;
        border-radius: 8px;
        font-size: 0.7rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.2s;
        font-family: var(--rx-font);
        box-shadow: 0 2px 8px rgba(var(--rx-accent-rgb), 0.3);
    }body[data-style-page="/Simulator"] .sim-copy-btn:hover{
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(var(--rx-accent-rgb), 0.5);
    }body[data-style-page="/Simulator"] /* ── Empty State ── */
    .sim-empty{
        text-align: center;
        padding: 3rem 1.5rem;
        color: var(--rx-faint);
    }body[data-style-page="/Simulator"] .sim-empty-icon{
        width: 64px;
        height: 64px;
        background: rgba(var(--rx-contrast-rgb), 0.03);
        border: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }body[data-style-page="/Simulator"] .sim-empty p{
        font-size: 0.9rem;
    }body[data-style-page="/Simulator"] /* ── Responsive ── */
    @media (max-width: 640px){
        .sim-container {
            padding: 1rem 0.75rem 3rem;
        }

        .sim-header h1 {
            font-size: 1.5rem;
        }

        .sim-header p {
            font-size: 0.85rem;
        }

        .sim-input-area,
        .sim-apikey-section,
        .sim-policies,
        .sim-submit-area {
            padding-left: 1.1rem;
            padding-right: 1.1rem;
        }

        .sim-divider {
            margin: 0 1.1rem;
        }

        .sim-textarea {
            min-height: 120px;
            font-size: 0.9rem;
        }

        .sim-policy-item {
            padding: 0.6rem 0.75rem;
        }

        .sim-policy-desc {
            display: none;
        }

        .sim-result-stats {
            grid-template-columns: 1fr;
        }

        .sim-stat:not(:last-child) {
            border-left: none;
            border-bottom: 1px solid rgba(var(--rx-contrast-rgb), 0.06);
        }

        .sim-status-icon {
            width: 56px;
            height: 56px;
            font-size: 1.6rem;
        }

        .sim-status-title {
            font-size: 1.15rem;
        }

        .sim-loading-box {
            padding: 2rem 1.5rem;
        }

        .sim-bg-orb-1 { width: 300px; height: 300px; }
        .sim-bg-orb-2 { width: 250px; height: 250px; }
        .sim-bg-orb-3 { width: 200px; height: 200px; }
    }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Simulator"])) .sim-grid-overlay{ display: none; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-header-badge{ color: var(--theme-accent-strong); border-color: var(--theme-border); background: rgba(var(--theme-accent-rgb), .08); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-header h1{ background: linear-gradient(135deg, var(--theme-text) 0%, var(--theme-accent-strong) 100%); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-label,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policies-title{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-label i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-error,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policies-validation{ color: var(--rx-danger); background: rgba(var(--rx-danger-rgb), 0.08); border-color: rgba(var(--rx-danger-rgb), 0.25); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-char-counter{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-char-counter span:last-child{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-divider{ background: linear-gradient(90deg, transparent, var(--theme-border-soft), transparent); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-label{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-label i{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-info{ color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-info[style*="52, 211, 153"]{ color: #15803d !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-info[style*="248, 113, 113"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policies-list > div[style*="rgba(255,255,255,0.3)"]{ color: var(--theme-muted) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policies-list > div[style*="#fca5a5"]{ color: #b91c1c !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-item{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-item:hover{ background: var(--theme-hover); border-color: var(--theme-border); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-toggle-track{ background: var(--rx-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-toggle-track::before{ box-shadow: 0 1px 3px rgba(15,23,42,.25); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-name{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-desc{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-badge.active{ background: rgba(var(--rx-success-rgb), 0.1); border-color: rgba(var(--rx-success-rgb), 0.3); color: var(--rx-success); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-policy-badge.inactive{ background: var(--theme-surface-3); color: var(--theme-muted); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Simulator"])) .sim-loading{ background: rgba(15,23,42,.35); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-box{ box-shadow: 0 20px 60px rgba(15,23,42,.18); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-text{ color: var(--theme-text); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-bar{ background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-quota{ color: var(--theme-accent-strong); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Simulator"])) .sim-result-card{ box-shadow: var(--theme-shadow); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-card.approved .sim-status-title{ background: linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-status-title{ background: linear-gradient(135deg, var(--rx-danger-fill), var(--rx-danger-fill)); -webkit-background-clip: text; background-clip: text; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-status-title[style*="#fcd34d"]{ background: linear-gradient(135deg, #b45309, #d97706) !important; -webkit-background-clip: text !important; background-clip: text !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-card.approved .sim-status-icon,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-card.rejected .sim-status-icon{ box-shadow: none; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-status-sub{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-results [style*="border-top: 1px solid rgba(255,255,255"]{ border-top-color: var(--theme-border-soft) !important; }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-stats,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-confidence,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-violations,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-stat:not(:last-child){ border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-stat:hover{ background: var(--theme-surface-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-stat-label{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-confidence-title{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-confidence-bar{ background: var(--theme-surface-3); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-violations-title{ color: var(--rx-danger); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-violation-item{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-rejection{ background: rgba(var(--rx-warning-rgb), 0.08); border-color: rgba(var(--rx-warning-rgb), 0.28); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-rejection-text{ color: var(--rx-warning); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-footer{ background: var(--theme-surface-2); color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-footer i,html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-result-footer strong{ color: var(--theme-accent-strong); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Simulator"])) .sim-code-section{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-header{ color: var(--theme-text-2); border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-header i{ color: var(--theme-accent-strong); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-tabs{ border-bottom-color: var(--theme-border-soft); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-tab{ color: var(--theme-muted); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-tab:hover{ color: var(--theme-text-2); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-code-tab.active{ color: var(--theme-accent-strong); border-bottom-color: var(--theme-accent-strong); }:root.light-theme[data-admin-palette]:where(:has(> body[data-style-page="/Simulator"])) .sim-empty{ color: var(--theme-faint); }html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-empty-icon{ background: var(--theme-surface-2); border-color: var(--theme-border-soft); }
html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-textarea{ background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-apikey-select{ background: var(--theme-surface) !important; color: var(--theme-text) !important; }
html.light-theme[data-admin-palette] body[data-style-page="/Simulator"] .sim-loading-box{ background: var(--theme-surface) !important; }




/* Result status (rendered by JS) */
body[data-style-page="/Simulator"] .sim-stat-value.is-approved,
body[data-style-page="/Simulator"] .sim-stat-value.no-violations { color: var(--rx-success); }
body[data-style-page="/Simulator"] .sim-stat-value.is-rejected,
body[data-style-page="/Simulator"] .sim-stat-value.has-violations { color: var(--rx-danger); }
/* Customer simulator: separate setup from the result so the next action is always clear. */
body.customer-panel[data-style-page="/Simulator"] .sim-bg-orb,
body.customer-panel[data-style-page="/Simulator"] .sim-grid-overlay { display:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-page { min-height:0; padding:clamp(12px,2vw,30px); overflow:visible; background:transparent; }
body.customer-panel[data-style-page="/Simulator"] .sim-container { width:min(1180px,100%); max-width:1180px; padding:0; }
body.customer-panel[data-style-page="/Simulator"] .sim-header { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"badge icon" "copy icon" "note note"; align-items:center; gap:8px 18px; margin:0 0 18px; padding:clamp(20px,2.5vw,30px); text-align:right; border:1px solid var(--rx-line); border-radius:22px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Simulator"] .sim-header-badge { grid-area:badge; justify-self:start; margin:0; color:var(--rx-brand-ink); border-color:var(--rx-brand-ring); background:var(--rx-brand-soft); animation:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-header-copy { grid-area:copy; }
body.customer-panel[data-style-page="/Simulator"] .sim-header h1 { margin:0 0 6px; color:var(--rx-ink); font-size:clamp(1.55rem,2.3vw,2.15rem); background:none; -webkit-text-fill-color:currentColor; }
body.customer-panel[data-style-page="/Simulator"] .sim-header p { max-width:66ch; margin:0; color:var(--rx-muted); font-size:.95rem; line-height:1.9; }
body.customer-panel[data-style-page="/Simulator"] .sim-header-icon { grid-area:icon; display:grid; place-items:center; width:68px; height:68px; margin:0; color:var(--rx-brand); border:1px solid var(--rx-line); border-radius:20px; background:var(--rx-surface); font-size:1.8rem; }
body.customer-panel[data-style-page="/Simulator"] .sim-header-note { grid-area:note; display:flex; align-items:center; gap:8px; padding-top:12px; color:var(--rx-muted); border-top:1px solid var(--rx-line); font-size:.82rem; }
body.customer-panel[data-style-page="/Simulator"] .sim-header-note i { color:var(--rx-brand); }
body.customer-panel[data-style-page="/Simulator"] .sim-card { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(280px,.82fr); gap:0; overflow:hidden; padding:0; border:1px solid var(--rx-line); border-radius:22px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Simulator"] .sim-input-area { grid-column:1; grid-row:1; min-width:0; padding:24px; }
body.customer-panel[data-style-page="/Simulator"] .sim-divider { display:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-label,
body.customer-panel[data-style-page="/Simulator"] .sim-policies-title { color:var(--rx-ink); }
body.customer-panel[data-style-page="/Simulator"] .sim-label>span,
body.customer-panel[data-style-page="/Simulator"] .sim-policies-title>span,
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-label>span { display:inline-flex; align-items:center; gap:9px; }
body.customer-panel[data-style-page="/Simulator"] .sim-label small,
body.customer-panel[data-style-page="/Simulator"] .sim-policies-title small,
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-label small { display:inline-grid; place-items:center; min-width:26px; height:26px; padding-inline:5px; color:var(--rx-brand-ink); border-radius:8px; background:var(--rx-brand-soft); font-size:.68rem; font-weight:800; }
body.customer-panel[data-style-page="/Simulator"] .sim-field-hint { margin:0 0 12px; color:var(--rx-muted); font-size:.8rem; line-height:1.8; }
body.customer-panel[data-style-page="/Simulator"] .sim-textarea-wrap { border:1px solid var(--rx-line-strong); border-radius:16px; background:var(--rx-surface); box-shadow:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-textarea-wrap:focus-within { border-color:var(--rx-brand); box-shadow:0 0 0 3px var(--rx-brand-soft); }
body.customer-panel[data-style-page="/Simulator"] .sim-textarea { min-height:176px; padding:16px; color:var(--rx-ink); line-height:1.9; resize:vertical; }
body.customer-panel[data-style-page="/Simulator"] .sim-textarea::placeholder { color:var(--rx-muted); opacity:.8; }
body.customer-panel[data-style-page="/Simulator"] .sim-textarea-glow { display:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-char-counter { display:flex; justify-content:space-between; gap:10px; margin-top:10px; color:var(--rx-muted); }
body.customer-panel[data-style-page="/Simulator"] .sim-char-counter span:last-child { color:var(--rx-ink-soft); font-variant-numeric:tabular-nums; }
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-section { grid-column:2; grid-row:1; align-self:start; min-width:0; margin:24px 24px 20px 0; padding:18px; border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-label { color:var(--rx-ink); }
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-select { width:100%; min-width:0; color:var(--rx-ink); background:var(--rx-surface); border-color:var(--rx-line-strong); }
body.customer-panel[data-style-page="/Simulator"] .sim-apikey-info { margin-top:10px; color:var(--rx-success) !important; font-size:.78rem; }
body.customer-panel[data-style-page="/Simulator"] .sim-policies { grid-column:1/-1; grid-row:2; min-width:0; padding:20px 24px; border-top:1px solid var(--rx-line); background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Simulator"] .sim-policies-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:4px; }
body.customer-panel[data-style-page="/Simulator"] .sim-policies-title { display:flex; align-items:center; gap:10px; }
body.customer-panel[data-style-page="/Simulator"] .sim-policies-title i { color:var(--rx-brand); }
body.customer-panel[data-style-page="/Simulator"] .sim-select-all-btn { color:var(--rx-brand-ink); border:1px solid var(--rx-brand-ring); border-radius:10px; background:var(--rx-surface); }
body.customer-panel[data-style-page="/Simulator"] .sim-policies-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:310px; overflow:auto; padding:2px; }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-item { min-width:0; gap:12px; padding:13px 14px; border:1px solid var(--rx-line); border-radius:14px; background:var(--rx-surface); }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-item:hover { border-color:var(--rx-brand-ring); background:var(--rx-brand-soft); }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-name { color:var(--rx-ink); overflow-wrap:anywhere; }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-desc { color:var(--rx-muted); line-height:1.7; }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-toggle-track { background:var(--rx-line-strong); }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-toggle input:checked + .sim-policy-toggle-track { background:var(--rx-brand); }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-badge.active { color:var(--rx-success); background:rgba(var(--rx-success-rgb),.08); border-color:rgba(var(--rx-success-rgb),.24); }
body.customer-panel[data-style-page="/Simulator"] .sim-policy-badge.inactive { color:var(--rx-muted); background:var(--rx-page-alt); border-color:var(--rx-line); }
body.customer-panel[data-style-page="/Simulator"] .sim-submit-area { grid-column:1/-1; grid-row:3; display:flex; justify-content:flex-start; padding:16px 24px; border-top:1px solid var(--rx-line); background:var(--rx-surface); }
body.customer-panel[data-style-page="/Simulator"] .sim-submit-btn { min-width:min(100%,260px); min-height:50px; color:var(--rx-on-brand); background:var(--rx-brand); box-shadow:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-submit-btn:hover:not(:disabled) { background:var(--rx-brand-strong); transform:translateY(-1px); box-shadow:0 8px 20px rgba(7,96,89,.16); }
body.customer-panel[data-style-page="/Simulator"] .sim-output { margin-top:20px; padding:clamp(16px,2vw,24px); border:1px solid var(--rx-line); border-radius:22px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Simulator"] .sim-output-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:14px; margin-bottom:14px; padding-bottom:14px; border-bottom:1px solid var(--rx-line); }
body.customer-panel[data-style-page="/Simulator"] .sim-output-heading h2 { margin:4px 0 0; color:var(--rx-ink); font-size:1.1rem; font-weight:850; }
body.customer-panel[data-style-page="/Simulator"] .sim-output-heading p { max-width:60ch; margin:0; color:var(--rx-muted); font-size:.8rem; line-height:1.8; }
body.customer-panel[data-style-page="/Simulator"] .sim-output-kicker { color:var(--rx-brand); font-size:.72rem; font-weight:800; }
body.customer-panel[data-style-page="/Simulator"] .sim-results { margin-top:0; }
body.customer-panel[data-style-page="/Simulator"] .sim-result-card { border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-result-status { padding:20px 16px; }
body.customer-panel[data-style-page="/Simulator"] .sim-result-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
body.customer-panel[data-style-page="/Simulator"] .sim-code-section { margin-top:14px; border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Simulator"] .sim-code-block { background:#102321; border-color:#254541; }
body.customer-panel[data-style-page="/Simulator"] .sim-code-block pre { color:#d7eee8; }
body.customer-panel[data-style-page="/Simulator"] .sim-copy-btn { color:#fff; background:var(--rx-brand); box-shadow:none; }
body.customer-panel[data-style-page="/Simulator"] .sim-code-tab.active { color:var(--rx-brand); border-bottom-color:var(--rx-brand); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading { background:rgba(16,39,37,.38); backdrop-filter:blur(5px); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading-box { color:var(--rx-ink); background:var(--rx-surface); border:1px solid var(--rx-line); border-radius:22px; box-shadow:0 24px 72px rgba(10,45,42,.2); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading-text { color:var(--rx-ink); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading-sub,
body.customer-panel[data-style-page="/Simulator"] .sim-loading-quota { color:var(--rx-muted); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading-bar { background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Simulator"] .sim-loading-bar-fill { background:linear-gradient(90deg,var(--rx-brand),var(--rx-brand-strong)); }
body.customer-panel[data-style-page="/Simulator"] .sim-empty { display:flex; align-items:center; justify-content:flex-start; gap:16px; min-height:118px; padding:20px; text-align:right; color:var(--rx-ink); border:1px dashed var(--rx-line-strong); border-radius:16px; background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Simulator"] .sim-empty-icon { display:grid; place-items:center; flex:0 0 48px; width:48px; height:48px; margin:0; color:var(--rx-brand); border:1px solid var(--rx-line); border-radius:14px; background:var(--rx-surface); }
body.customer-panel[data-style-page="/Simulator"] .sim-empty strong { display:block; margin-bottom:4px; color:var(--rx-ink); }
body.customer-panel[data-style-page="/Simulator"] .sim-empty p { margin:0; color:var(--rx-muted); line-height:1.8; }
body.customer-panel[data-style-page="/Simulator"] .sim-error,
body.customer-panel[data-style-page="/Simulator"] .sim-policies-validation { color:var(--rx-danger); background:rgba(var(--rx-danger-rgb),.08); border-color:rgba(var(--rx-danger-rgb),.24); }
@media(max-width:850px){body.customer-panel[data-style-page="/Simulator"] .sim-card{grid-template-columns:minmax(0,1.2fr) minmax(250px,.8fr);}body.customer-panel[data-style-page="/Simulator"] .sim-input-area{padding:20px;}body.customer-panel[data-style-page="/Simulator"] .sim-apikey-section{margin:20px 20px 16px 0;}body.customer-panel[data-style-page="/Simulator"] .sim-policies{padding:18px 20px;}}
@media(max-width:650px){body.customer-panel[data-style-page="/Simulator"] .sim-page{padding:10px;}body.customer-panel[data-style-page="/Simulator"] .sim-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"badge icon" "copy copy" "note note";gap:12px;padding:17px;}body.customer-panel[data-style-page="/Simulator"] .sim-header-icon{width:44px;height:44px;border-radius:13px;font-size:1.2rem;}body.customer-panel[data-style-page="/Simulator"] .sim-header h1{font-size:1.5rem;}body.customer-panel[data-style-page="/Simulator"] .sim-header p{font-size:.85rem;}body.customer-panel[data-style-page="/Simulator"] .sim-header-note{font-size:.74rem;}body.customer-panel[data-style-page="/Simulator"] .sim-card{grid-template-columns:1fr;}body.customer-panel[data-style-page="/Simulator"] .sim-input-area{grid-column:1;grid-row:1;padding:17px;}body.customer-panel[data-style-page="/Simulator"] .sim-apikey-section{grid-column:1;grid-row:2;margin:0 16px 16px;padding:15px;}body.customer-panel[data-style-page="/Simulator"] .sim-policies{grid-column:1;grid-row:3;padding:16px;}body.customer-panel[data-style-page="/Simulator"] .sim-policies-list{grid-template-columns:1fr;max-height:280px;}body.customer-panel[data-style-page="/Simulator"] .sim-policy-desc{display:block;}body.customer-panel[data-style-page="/Simulator"] .sim-submit-area{grid-column:1;grid-row:4;padding:14px 16px;}body.customer-panel[data-style-page="/Simulator"] .sim-submit-btn{width:100%;}body.customer-panel[data-style-page="/Simulator"] .sim-output{margin-top:14px;padding:14px;border-radius:18px;}body.customer-panel[data-style-page="/Simulator"] .sim-output-heading{display:block;}body.customer-panel[data-style-page="/Simulator"] .sim-output-heading p{margin-top:6px;}body.customer-panel[data-style-page="/Simulator"] .sim-result-stats{grid-template-columns:1fr;}body.customer-panel[data-style-page="/Simulator"] .sim-empty{align-items:flex-start;padding:15px;} }
/* User guide: shared light teal identity, with the article structure kept intact. */
html:has(body[data-style-page="/docs/live-chat-system-guide"]) {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}
body[data-style-page="/docs/live-chat-system-guide"] {
    margin: 0;
    min-height: 100vh;
    background: var(--rx-page);
    color: var(--rx-ink);
    font-family: var(--rx-font);
    font-size: 14px;
    line-height: 1.9;
}
body[data-style-page="/docs/live-chat-system-guide"] *,
body[data-style-page="/docs/live-chat-system-guide"] *::before,
body[data-style-page="/docs/live-chat-system-guide"] *::after { box-sizing: border-box; }
body[data-style-page="/docs/live-chat-system-guide"] a { color: var(--rx-brand-ink); }
body[data-style-page="/docs/live-chat-system-guide"] b,
body[data-style-page="/docs/live-chat-system-guide"] strong { color: var(--rx-ink); font-weight: 800; }
body[data-style-page="/docs/live-chat-system-guide"] .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem max(1.2rem, calc((100vw - 94rem) / 2));
    background: rgba(var(--rx-surface-rgb), .94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rx-line);
    box-shadow: 0 5px 20px rgba(var(--rx-brand-rgb), .045);
}
body[data-style-page="/docs/live-chat-system-guide"] .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--rx-ink);
    text-decoration: none;
    line-height: 1.45;
}
body[data-style-page="/docs/live-chat-system-guide"] .brand .logo {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright));
    color: var(--rx-on-brand);
    box-shadow: 0 6px 14px rgba(var(--rx-brand-rgb), .18);
}
body[data-style-page="/docs/live-chat-system-guide"] .brand b { display: block; font-size: .9rem; white-space: nowrap; }
body[data-style-page="/docs/live-chat-system-guide"] .brand small { display: block; color: var(--rx-muted); font-size: .7rem; white-space: nowrap; }
body[data-style-page="/docs/live-chat-system-guide"] .top-actions { margin-inline-start: auto; display: flex; gap: .45rem; }
body[data-style-page="/docs/live-chat-system-guide"] .btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border: 1px solid var(--rx-line);
    border-radius: 11px;
    background: var(--rx-surface);
    color: var(--rx-ink-soft);
    text-decoration: none;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.2;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
body[data-style-page="/docs/live-chat-system-guide"] .btn:hover { background: var(--rx-brand-soft); border-color: var(--rx-brand-ring); color: var(--rx-brand-ink); transform: translateY(-1px); }
body[data-style-page="/docs/live-chat-system-guide"] .btn.primary {
    border-color: var(--rx-brand);
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand-hover));
    color: var(--rx-on-brand);
}
body[data-style-page="/docs/live-chat-system-guide"] .btn.primary:hover { background: linear-gradient(135deg, var(--rx-brand-hover), var(--rx-brand)); color: var(--rx-on-brand); }
body[data-style-page="/docs/live-chat-system-guide"] .btn.lg { min-height: 44px; padding-inline: 1.1rem; }
body[data-style-page="/docs/live-chat-system-guide"] .progress { position: absolute; inset-inline-start: 0; bottom: -1px; height: 3px; width: 0; background: var(--rx-brand-bright); transition: width .1s; }
body[data-style-page="/docs/live-chat-system-guide"] .hero,
body[data-style-page="/docs/live-chat-system-guide"] .layout { width: min(94rem, 100%); margin-inline: auto; padding-inline: 1.5rem; }
body[data-style-page="/docs/live-chat-system-guide"] .hero { padding-top: 1.5rem; padding-bottom: .7rem; }
body[data-style-page="/docs/live-chat-system-guide"] .hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--rx-line);
    border-radius: 24px;
    background: linear-gradient(120deg, var(--rx-surface) 24%, var(--rx-brand-soft));
    box-shadow: var(--rx-shadow-panel);
}
body[data-style-page="/docs/live-chat-system-guide"] .hero-card::after {
    content: "";
    position: absolute;
    inset-inline-start: -4rem;
    top: -8rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--rx-brand-rgb), .13), transparent 70%);
    pointer-events: none;
}
body[data-style-page="/docs/live-chat-system-guide"] .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .24rem .75rem;
    border: 1px solid var(--rx-brand-ring);
    border-radius: 99px;
    background: rgba(var(--rx-brand-rgb), .06);
    color: var(--rx-brand-ink);
    font-size: .72rem;
    font-weight: 800;
}
body[data-style-page="/docs/live-chat-system-guide"] h1 { margin: .85rem 0 .45rem; color: var(--rx-ink); font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.5; font-weight: 900; }
body[data-style-page="/docs/live-chat-system-guide"] .hero p { max-width: 54rem; margin: 0 0 1.25rem; color: var(--rx-muted); font-size: .9rem; }
body[data-style-page="/docs/live-chat-system-guide"] .cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .55rem; }
body[data-style-page="/docs/live-chat-system-guide"] .layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); align-items: start; gap: 1.2rem; padding-top: .6rem; padding-bottom: 3rem; }
body[data-style-page="/docs/live-chat-system-guide"] nav {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: .65rem;
    border: 1px solid var(--rx-line);
    border-radius: 18px;
    background: var(--rx-surface);
    box-shadow: var(--rx-shadow-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--rx-line-strong) transparent;
}
body[data-style-page="/docs/live-chat-system-guide"] nav .group { display: block; margin: .8rem .55rem .25rem; color: var(--rx-faint); font-size: .65rem; font-weight: 900; }
body[data-style-page="/docs/live-chat-system-guide"] nav a {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 34px;
    padding: .38rem .55rem;
    border-radius: 10px;
    color: var(--rx-ink-soft);
    text-decoration: none;
    font-size: .73rem;
    font-weight: 650;
    line-height: 1.55;
    transition: background .14s ease, color .14s ease;
}
body[data-style-page="/docs/live-chat-system-guide"] nav a i { width: 1rem; color: var(--rx-muted); text-align: center; }
body[data-style-page="/docs/live-chat-system-guide"] nav a:hover { background: var(--rx-surface-2); color: var(--rx-brand-ink); }
body[data-style-page="/docs/live-chat-system-guide"] nav a.active { background: var(--rx-brand-soft); color: var(--rx-brand-ink); box-shadow: inset -3px 0 0 var(--rx-brand); }
body[data-style-page="/docs/live-chat-system-guide"] nav a.active i { color: var(--rx-brand); }
body[data-style-page="/docs/live-chat-system-guide"] nav a.flow-link { margin-bottom: .35rem; border: 1px solid var(--rx-brand-ring); background: linear-gradient(120deg, var(--rx-brand-soft), var(--rx-surface)); color: var(--rx-brand-ink); font-weight: 850; }
body[data-style-page="/docs/live-chat-system-guide"] main { min-width: 0; }
body[data-style-page="/docs/live-chat-system-guide"] section {
    margin-bottom: .9rem;
    padding: clamp(1rem, 2.5vw, 1.65rem);
    border: 1px solid var(--rx-line);
    border-radius: 19px;
    background: linear-gradient(145deg, var(--rx-surface), rgba(var(--rx-brand-rgb), .025));
    box-shadow: var(--rx-shadow-sm);
    scroll-margin-top: 82px;
}
body[data-style-page="/docs/live-chat-system-guide"] h2 { display: flex; align-items: center; gap: .65rem; margin: 0 0 .9rem; color: var(--rx-ink); font-size: 1.08rem; line-height: 1.6; font-weight: 900; }
body[data-style-page="/docs/live-chat-system-guide"] .h2i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--rx-brand-ring); border-radius: 11px; background: linear-gradient(145deg, var(--rx-brand-soft), var(--rx-surface)); color: var(--rx-brand); font-size: .98rem; }
body[data-style-page="/docs/live-chat-system-guide"] p,
body[data-style-page="/docs/live-chat-system-guide"] li { color: var(--rx-ink-soft); }
body[data-style-page="/docs/live-chat-system-guide"] .box { margin: .8rem 0; padding: .8rem 1rem; border: 1px solid var(--rx-line); border-inline-start: 3px solid var(--rx-brand); border-radius: 13px; background: var(--rx-brand-soft); color: var(--rx-ink-soft); }
body[data-style-page="/docs/live-chat-system-guide"] .box.warn { border-inline-start-color: var(--rx-warning); background: var(--rx-warning-soft); }
body[data-style-page="/docs/live-chat-system-guide"] .steps { margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
body[data-style-page="/docs/live-chat-system-guide"] .steps li { position: relative; padding: 0 3rem 1rem 0; counter-increment: guide-step; }
body[data-style-page="/docs/live-chat-system-guide"] .steps li::before { content: counter(guide-step); position: absolute; inset-inline-end: 0; top: .05rem; width: 2.05rem; height: 2.05rem; display: grid; place-items: center; border: 1px solid var(--rx-brand-ring); border-radius: 10px; background: var(--rx-brand-soft); color: var(--rx-brand-ink); font-size: .78rem; font-weight: 900; }
body[data-style-page="/docs/live-chat-system-guide"] .steps li::after { content: ""; position: absolute; inset-inline-end: 1rem; top: 2.35rem; bottom: .12rem; width: 1px; background: var(--rx-line); }
body[data-style-page="/docs/live-chat-system-guide"] .steps li:last-child::after { display: none; }
body[data-style-page="/docs/live-chat-system-guide"] table { display: block; width: 100%; overflow-x: auto; margin: .8rem 0; border: 1px solid var(--rx-line); border-radius: 13px; border-spacing: 0; border-collapse: separate; background: var(--rx-surface); }
body[data-style-page="/docs/live-chat-system-guide"] th,
body[data-style-page="/docs/live-chat-system-guide"] td { min-width: 9rem; padding: .65rem .8rem; border-bottom: 1px solid var(--rx-line); text-align: right; vertical-align: top; color: var(--rx-ink-soft); font-size: .8rem; }
body[data-style-page="/docs/live-chat-system-guide"] th { background: var(--rx-brand-soft); color: var(--rx-brand-ink); font-weight: 850; }
body[data-style-page="/docs/live-chat-system-guide"] tr:last-child td { border-bottom: 0; }
body[data-style-page="/docs/live-chat-system-guide"] tr:hover td { background: rgba(var(--rx-brand-rgb), .035); }
body[data-style-page="/docs/live-chat-system-guide"] td:first-child { color: var(--rx-ink); font-weight: 750; }
body[data-style-page="/docs/live-chat-system-guide"] details { margin: .5rem 0; padding: .2rem .85rem; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-surface); }
body[data-style-page="/docs/live-chat-system-guide"] summary { padding: .55rem 0; cursor: pointer; color: var(--rx-ink); font-weight: 800; list-style: none; }
body[data-style-page="/docs/live-chat-system-guide"] summary::-webkit-details-marker { display: none; }
body[data-style-page="/docs/live-chat-system-guide"] summary::before { content: "\F282"; display: inline-block; margin-inline-end: .55rem; color: var(--rx-brand); font-family: bootstrap-icons; transition: transform .2s ease; vertical-align: -2px; }
body[data-style-page="/docs/live-chat-system-guide"] details[open] summary::before { transform: rotate(180deg); }
body[data-style-page="/docs/live-chat-system-guide"] .totop { position: fixed; inset-inline-start: 1.2rem; bottom: 1.2rem; z-index: 20; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rx-line); border-radius: 13px; background: var(--rx-surface); color: var(--rx-brand-ink); text-decoration: none; opacity: 0; pointer-events: none; box-shadow: var(--rx-shadow-panel); transition: opacity .2s ease, transform .2s ease; }
body[data-style-page="/docs/live-chat-system-guide"] .totop.show { opacity: 1; pointer-events: auto; transform: translateY(-2px); }
body[data-style-page="/docs/live-chat-system-guide"] .totop:hover { background: var(--rx-brand-soft); }
@media (max-width: 900px) {
    body[data-style-page="/docs/live-chat-system-guide"] .hero,
    body[data-style-page="/docs/live-chat-system-guide"] .layout { padding-inline: 1rem; }
    body[data-style-page="/docs/live-chat-system-guide"] .layout { display: block; }
    body[data-style-page="/docs/live-chat-system-guide"] nav { position: relative; top: auto; max-height: 40vh; margin-bottom: .85rem; }
    body[data-style-page="/docs/live-chat-system-guide"] nav a { display: inline-flex; margin: 2px; }
    body[data-style-page="/docs/live-chat-system-guide"] nav .group { margin-top: .5rem; }
}
@media (max-width: 560px) {
    body[data-style-page="/docs/live-chat-system-guide"] .topbar { min-height: 58px; padding-inline: .7rem; gap: .5rem; }
    body[data-style-page="/docs/live-chat-system-guide"] .brand small,
    body[data-style-page="/docs/live-chat-system-guide"] .top-actions .btn span { display: none; }
    body[data-style-page="/docs/live-chat-system-guide"] .brand .logo { width: 36px; height: 36px; }
    body[data-style-page="/docs/live-chat-system-guide"] .top-actions .btn { width: 38px; min-height: 38px; padding: 0; }
    body[data-style-page="/docs/live-chat-system-guide"] .hero { padding-top: .8rem; }
    body[data-style-page="/docs/live-chat-system-guide"] .hero-card { padding: 1.15rem; border-radius: 18px; }
    body[data-style-page="/docs/live-chat-system-guide"] h1 { font-size: 1.45rem; }
    body[data-style-page="/docs/live-chat-system-guide"] .hero p { font-size: .8rem; }
    body[data-style-page="/docs/live-chat-system-guide"] .cta .btn { flex: 1 1 auto; }
    body[data-style-page="/docs/live-chat-system-guide"] section { padding: .95rem; border-radius: 15px; }
    body[data-style-page="/docs/live-chat-system-guide"] h2 { font-size: .98rem; }
    body[data-style-page="/docs/live-chat-system-guide"] th,
    body[data-style-page="/docs/live-chat-system-guide"] td { min-width: 8rem; padding: .55rem; font-size: .73rem; }
}
body[data-style-page="/docs/live-chat-system-guide"] .guide-updates { width: min(94rem, calc(100% - 3rem)); margin: .35rem auto .75rem; padding-inline: 1.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
body[data-style-page="/docs/live-chat-system-guide"] .guide-updates .box { margin: 0; padding: .7rem .9rem; box-shadow: var(--rx-shadow-sm); font-size: .84rem; line-height: 1.75; }
@media (max-width: 760px) { body[data-style-page="/docs/live-chat-system-guide"] .guide-updates { width: 100%; padding-inline: 1rem; grid-template-columns: 1fr; } }
/* Static guide stylesheet: /docs/chat-flowchart */
html:has(body[data-style-page="/docs/chat-flowchart"]){--bg:#181b20;--bg2:#20252c;--surface:#272d35;--surface2:#303843;--hover:#3b4552;--line:#323a45;--line2:#46505e;--ink:#e6e9ee;--muted:#9aa3b2;--faint:#6f7a8a;--accent:#cbd5e1;--brand:#475569;--canvas:#1b1f25}body[data-style-page="/docs/chat-flowchart"] *{box-sizing:border-box}html:has(body[data-style-page="/docs/chat-flowchart"]){color-scheme:dark}body[data-style-page="/docs/chat-flowchart"]{margin:0;height:100vh;overflow:hidden;background:var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;font-size:14px}body[data-style-page="/docs/chat-flowchart"] button,body[data-style-page="/docs/chat-flowchart"] input{font:inherit;color:inherit}body[data-style-page="/docs/chat-flowchart"] .app{height:100%;display:grid;grid-template-rows:56px 1fr}body[data-style-page="/docs/chat-flowchart"] .topbar{display:flex;align-items:center;gap:1rem;padding:0 1rem;background:var(--bg2);border-bottom:1px solid var(--line)}body[data-style-page="/docs/chat-flowchart"] .brand{display:flex;align-items:center;gap:.7rem;color:var(--ink);text-decoration:none;min-width:0}body[data-style-page="/docs/chat-flowchart"] .brand .logo{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,#475569,#64748b);font-size:1.05rem;color:#fff;flex:none}body[data-style-page="/docs/chat-flowchart"] .brand b{display:block;font-size:.98rem;white-space:nowrap}body[data-style-page="/docs/chat-flowchart"] .brand small{display:block;color:var(--faint);font-size:.75rem;white-space:nowrap}body[data-style-page="/docs/chat-flowchart"] .search{position:relative;flex:1;max-width:440px;margin-inline:auto}body[data-style-page="/docs/chat-flowchart"] .search i{position:absolute;right:.8rem;top:50%;transform:translateY(-50%);color:var(--faint)}body[data-style-page="/docs/chat-flowchart"] .search input{width:100%;height:36px;border-radius:10px;border:1px solid var(--line);background:var(--bg);padding:0 2.3rem 0 4.2rem;outline:0;transition:.15s}body[data-style-page="/docs/chat-flowchart"] .search input:focus{border-color:var(--line2);background:var(--surface)}body[data-style-page="/docs/chat-flowchart"] .search input::placeholder{color:var(--faint)}body[data-style-page="/docs/chat-flowchart"] .search .count{position:absolute;left:.7rem;top:50%;transform:translateY(-50%);font-size:.75rem;color:var(--muted)}body[data-style-page="/docs/chat-flowchart"] .actions{display:flex;align-items:center;gap:.4rem}body[data-style-page="/docs/chat-flowchart"] .btn{display:inline-flex;align-items:center;gap:.45rem;height:36px;padding:0 .85rem;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);text-decoration:none;cursor:pointer;white-space:nowrap;transition:.15s}body[data-style-page="/docs/chat-flowchart"] .btn:hover{background:var(--hover);border-color:var(--line2)}body[data-style-page="/docs/chat-flowchart"] .btn.icon{width:36px;padding:0;justify-content:center}body[data-style-page="/docs/chat-flowchart"] .work{display:grid;grid-template-columns:auto 1fr;min-height:0}body[data-style-page="/docs/chat-flowchart"] .side::-webkit-scrollbar{width:8px}body[data-style-page="/docs/chat-flowchart"] .side::-webkit-scrollbar-thumb{background:var(--hover);border-radius:8px}body[data-style-page="/docs/chat-flowchart"] .side{scrollbar-width:thin;scrollbar-color:var(--hover) transparent}body[data-style-page="/docs/chat-flowchart"] .side{width:272px;background:var(--bg2);border-left:1px solid var(--line);overflow-y:auto;padding:.9rem .8rem 1.2rem;transition:width .2s,padding .2s}body[data-style-page="/docs/chat-flowchart"] .work.collapsed .side{width:0;padding:0;border:0;overflow:hidden}body[data-style-page="/docs/chat-flowchart"] .side section{padding:.2rem 0 1rem;margin-bottom:.9rem;border-bottom:1px solid var(--line)}body[data-style-page="/docs/chat-flowchart"] .side section:last-child{border:0}body[data-style-page="/docs/chat-flowchart"] .side h6{margin:0 0 .6rem;font-size:.72rem;font-weight:600;color:var(--faint);letter-spacing:.02em}body[data-style-page="/docs/chat-flowchart"] .row{display:flex;align-items:center;gap:.6rem;width:100%;padding:.5rem .6rem;border:0;border-radius:9px;background:transparent;cursor:pointer;text-align:right;transition:.12s}body[data-style-page="/docs/chat-flowchart"] .row:hover{background:var(--surface)}body[data-style-page="/docs/chat-flowchart"] .row i{color:var(--muted);font-size:1rem;width:1.1rem;text-align:center}body[data-style-page="/docs/chat-flowchart"] .row kbd{margin-right:auto}body[data-style-page="/docs/chat-flowchart"] kbd{font-family:inherit;font-size:.7rem;padding:.05rem .4rem;border-radius:5px;background:var(--bg);border:1px solid var(--line);color:var(--muted);white-space:nowrap}body[data-style-page="/docs/chat-flowchart"] .label{display:block;margin:.7rem .2rem .35rem;font-size:.78rem;color:var(--muted)}body[data-style-page="/docs/chat-flowchart"] .seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:3px;padding:3px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}body[data-style-page="/docs/chat-flowchart"] .seg button{border:0;background:transparent;color:var(--muted);padding:.38rem .2rem;border-radius:7px;cursor:pointer;font-size:.8rem;display:flex;align-items:center;justify-content:center;gap:.3rem;transition:.12s}body[data-style-page="/docs/chat-flowchart"] .seg button:hover{color:var(--ink)}body[data-style-page="/docs/chat-flowchart"] .seg button.on{background:var(--hover);color:#fff;box-shadow:0 1px 3px #0008,inset 0 0 0 1px var(--line2)}body[data-style-page="/docs/chat-flowchart"] .switch{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.5rem .6rem;border-radius:9px;cursor:pointer;margin-top:.3rem}body[data-style-page="/docs/chat-flowchart"] .switch:hover{background:var(--surface)}body[data-style-page="/docs/chat-flowchart"] .switch input{display:none}body[data-style-page="/docs/chat-flowchart"] .switch span{width:34px;height:20px;border-radius:99px;background:var(--hover);position:relative;transition:.2s;flex:none}body[data-style-page="/docs/chat-flowchart"] .switch span:after{content:"";position:absolute;top:3px;right:3px;width:14px;height:14px;border-radius:50%;background:var(--muted);transition:.2s}body[data-style-page="/docs/chat-flowchart"] .switch input:checked+span{background:#64748b}body[data-style-page="/docs/chat-flowchart"] .switch input:checked+span:after{right:17px;background:#fff}body[data-style-page="/docs/chat-flowchart"] .legend,body[data-style-page="/docs/chat-flowchart"] .keys{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}body[data-style-page="/docs/chat-flowchart"] .legend li,body[data-style-page="/docs/chat-flowchart"] .keys li{display:flex;align-items:center;gap:.6rem;color:var(--muted);font-size:.82rem}body[data-style-page="/docs/chat-flowchart"] .keys li kbd{margin-right:auto}body[data-style-page="/docs/chat-flowchart"] .sw{width:18px;height:13px;border-radius:4px;border:2px solid;flex:none}body[data-style-page="/docs/chat-flowchart"] .sw.dia{width:12px;height:12px;transform:rotate(45deg);margin:0 3px;border-radius:2px}body[data-style-page="/docs/chat-flowchart"] .sw.pill{border-radius:99px}body[data-style-page="/docs/chat-flowchart"] .ln{width:20px;height:0;border-top:3px solid;flex:none}body[data-style-page="/docs/chat-flowchart"] .ln.dash{border-top-style:dashed}body[data-style-page="/docs/chat-flowchart"] .canvas{position:relative;min-width:0;overflow:hidden;background-color:var(--canvas);background-image:radial-gradient(rgba(148,163,184,.14) 1.2px,transparent 1.2px);background-size:24px 24px}body[data-style-page="/docs/chat-flowchart"] .canvas:fullscreen{background-color:var(--canvas)}body[data-style-page="/docs/chat-flowchart"] #cy{position:absolute;inset:0}body[data-style-page="/docs/chat-flowchart"] .loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}body[data-style-page="/docs/chat-flowchart"] .dock{position:absolute;bottom:1rem;left:1rem;display:flex;align-items:center;gap:2px;padding:4px;border-radius:12px;background:rgba(32,37,44,.92);border:1px solid var(--line);box-shadow:0 10px 30px #0008;backdrop-filter:blur(8px);z-index:4}body[data-style-page="/docs/chat-flowchart"] .dock button{width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer;display:grid;place-items:center;font-size:1rem;transition:.12s}body[data-style-page="/docs/chat-flowchart"] .dock button:hover{background:var(--hover);color:var(--ink)}body[data-style-page="/docs/chat-flowchart"] .dock .pct{min-width:58px;text-align:center;font-size:.8rem;color:var(--ink);font-variant-numeric:tabular-nums}body[data-style-page="/docs/chat-flowchart"] .dock .div{width:1px;height:20px;background:var(--line);margin:0 4px}body[data-style-page="/docs/chat-flowchart"] .tabs{position:absolute;top:.8rem;right:1rem;z-index:4;display:flex;gap:3px;padding:4px;border-radius:12px;background:rgba(32,37,44,.92);border:1px solid var(--line);box-shadow:0 10px 30px #0008;backdrop-filter:blur(8px);max-width:calc(100% - 2rem);overflow-x:auto;scrollbar-width:none}body[data-style-page="/docs/chat-flowchart"] .tabs button{border:0;background:transparent;color:var(--muted);padding:.42rem .85rem;border-radius:8px;cursor:pointer;white-space:nowrap;font-size:.82rem;transition:.12s}body[data-style-page="/docs/chat-flowchart"] .tabs button:hover{color:var(--ink)}body[data-style-page="/docs/chat-flowchart"] .tabs button.on{background:var(--hover);color:#fff;box-shadow:inset 0 0 0 1px var(--line2)}body[data-style-page="/docs/chat-flowchart"] .panel{position:absolute;top:4.4rem;left:1rem;width:min(380px,calc(100% - 2rem));max-height:calc(100% - 9rem);overflow:auto;background:rgba(32,37,44,.96);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 44px #000a;display:none;z-index:5;backdrop-filter:blur(8px);line-height:1.8}body[data-style-page="/docs/chat-flowchart"] .panel.open{display:block}body[data-style-page="/docs/chat-flowchart"] .panel .head{position:sticky;top:0;background:inherit;padding:1rem 1rem .6rem;border-bottom:1px solid var(--line)}body[data-style-page="/docs/chat-flowchart"] .panel .head h3{margin:.45rem 0 0;font-size:1rem;line-height:1.75;padding-left:2rem}body[data-style-page="/docs/chat-flowchart"] .panel .body{padding:.3rem 1rem 1rem}body[data-style-page="/docs/chat-flowchart"] .panel h4{display:flex;align-items:center;gap:.4rem;margin:.9rem 0 .4rem;font-size:.78rem;color:var(--faint);font-weight:600}body[data-style-page="/docs/chat-flowchart"] .chip{display:inline-flex;align-items:center;gap:.35rem;font-size:.72rem;padding:.05rem .6rem;border-radius:99px;background:var(--bg);border:1px solid var(--line);color:var(--muted)}body[data-style-page="/docs/chat-flowchart"] .chip i{width:8px;height:8px;border-radius:50%}body[data-style-page="/docs/chat-flowchart"] .panel ul{list-style:none;margin:0;padding:0;display:grid;gap:.35rem}body[data-style-page="/docs/chat-flowchart"] .panel .empty{color:var(--faint);font-size:.82rem;margin:0}body[data-style-page="/docs/chat-flowchart"] .panel li button{width:100%;text-align:right;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:.45rem .65rem;cursor:pointer;font-size:.84rem;line-height:1.7;transition:.12s}body[data-style-page="/docs/chat-flowchart"] .panel li button:hover{background:var(--hover);border-color:var(--line2)}body[data-style-page="/docs/chat-flowchart"] .panel li b{color:var(--accent);font-weight:600}body[data-style-page="/docs/chat-flowchart"] .panel li .ret{color:var(--faint);font-size:.75rem}body[data-style-page="/docs/chat-flowchart"] .panel .x{position:absolute;top:.75rem;left:.75rem;width:30px;height:30px;border-radius:8px;border:0;background:transparent;color:var(--muted);cursor:pointer}body[data-style-page="/docs/chat-flowchart"] .panel .x:hover{background:var(--hover);color:var(--ink)}body[data-style-page="/docs/chat-flowchart"] .panel .guide{display:flex;align-items:center;justify-content:center;gap:.4rem;margin-top:1rem;background:var(--accent);color:#181b20;border-radius:9px;padding:.5rem;text-decoration:none;font-weight:600}body[data-style-page="/docs/chat-flowchart"] .panel .guide:hover{background:#fff}body[data-style-page="/docs/chat-flowchart"] .toast{position:absolute;bottom:1.1rem;left:50%;transform:translateX(-50%) translateY(8px);background:var(--surface2);border:1px solid var(--line2);padding:.4rem 1rem;border-radius:99px;font-size:.82rem;opacity:0;transition:.2s;pointer-events:none;z-index:6}body[data-style-page="/docs/chat-flowchart"] .toast.show{opacity:1;transform:translateX(-50%)}body[data-style-page="/docs/chat-flowchart"] .scrim{display:none}
@media(max-width:820px){body[data-style-page="/docs/chat-flowchart"] .tabs{right:.6rem;left:.6rem;top:.6rem}body[data-style-page="/docs/chat-flowchart"] .brand small,body[data-style-page="/docs/chat-flowchart"] .actions .btn span{display:none}body[data-style-page="/docs/chat-flowchart"] .actions .btn{width:36px;padding:0;justify-content:center}body[data-style-page="/docs/chat-flowchart"] .side{position:fixed;top:56px;bottom:0;right:0;z-index:30;box-shadow:-10px 0 30px #0009}body[data-style-page="/docs/chat-flowchart"] .work:not(.open) .side{width:0;padding:0;border:0;overflow:hidden}body[data-style-page="/docs/chat-flowchart"] .work.open .scrim{display:block;position:fixed;inset:56px 0 0;background:#0007;z-index:25}body[data-style-page="/docs/chat-flowchart"] .work{grid-template-columns:1fr}body[data-style-page="/docs/chat-flowchart"] .panel{top:auto;bottom:4.2rem;left:.6rem;width:calc(100% - 1.2rem);max-height:55%}body[data-style-page="/docs/chat-flowchart"] .dock{left:50%;transform:translateX(-50%);bottom:.6rem}}
@media(max-width:520px){body[data-style-page="/docs/chat-flowchart"] .brand div{display:none}body[data-style-page="/docs/chat-flowchart"] .topbar{gap:.5rem;padding:0 .6rem}}



/* Static guide stylesheet: /docs/chat-flowchart */




/* Step-kind swatch in the detail panel; the colour is per node kind (set inline by the script). */
body[data-style-page="/docs/chat-flowchart"] .chip .chip-swatch { background: var(--chip-color, #94a3b8); }

/* Former inline styles of this page (own palette, not tokenised) */
[data-rx-inline="rx-inline-48c453a2f1"]{border-color:#f08a8a !important}
[data-rx-inline="rx-inline-5150899d6c"]{background:#3a3222 !important;border-color:#fbbf24 !important}
[data-rx-inline="rx-inline-5b198be519"]{background:#3f2429 !important;border-color:#f87171 !important}
[data-rx-inline="rx-inline-60b8ddc4ed"]{background:#1d3a3a !important;border-color:#5eead4 !important}
[data-rx-inline="rx-inline-87dee068cc"]{background:transparent !important;border-color:#cbd5e1 !important;border-style:double !important;border-width:4px !important}
[data-rx-inline="rx-inline-8d4dbb7497"]{background:#1e3050 !important;border-color:#60a5fa !important}
[data-rx-inline="rx-inline-9675ba1cfd"]{background:#20252c !important;border-color:#8b95a5 !important;border-style:dashed !important}
[data-rx-inline="rx-inline-b19c1c3020"]{background:#2f2946 !important;border-color:#a78bfa !important}
[data-rx-inline="rx-inline-b499a8023c"]{background:#1f3a2c !important;border-color:#4ade80 !important}
[data-rx-inline="rx-inline-c0b20609e8"]{border-color:#5fcf8f !important}
[data-rx-inline="rx-inline-e1a78edfdf"]{border-color:#8b95a5 !important}
/* Static guide stylesheet: /docs/handoff-decision-flow */
html:has(body[data-style-page="/docs/handoff-decision-flow"]){color-scheme:dark;--bg:#181b20;--bar:#20252c;--surface:#272d35;--line:#323a45;--line2:#46505e;--ink:#e6e9ee;--muted:#9aa3b2;--faint:#6f7a8a;--accent:#cbd5e1;--teal:#5eead4;--green:#4ade80;--amber:#fbbf24;--red:#f87171}body[data-style-page="/docs/handoff-decision-flow"] *{box-sizing:border-box}body[data-style-page="/docs/handoff-decision-flow"]{margin:0;min-height:100vh;background:radial-gradient(circle at 15% 0,#33415555,transparent 34rem),var(--bg);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;line-height:1.95}body[data-style-page="/docs/handoff-decision-flow"] .top{height:58px;display:flex;align-items:center;gap:.7rem;padding:0 1.1rem;background:rgba(32,37,44,.94);border-bottom:1px solid var(--line);box-shadow:0 8px 25px #0004}body[data-style-page="/docs/handoff-decision-flow"] .brand{display:flex;align-items:center;gap:.65rem;color:var(--ink);text-decoration:none;font-weight:700}body[data-style-page="/docs/handoff-decision-flow"] .brand i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#475569,#64748b);color:#fff}body[data-style-page="/docs/handoff-decision-flow"] .top a:last-child{margin-right:auto;color:var(--muted);font-size:.8rem;text-decoration:none}body[data-style-page="/docs/handoff-decision-flow"] .top a:last-child:hover{color:#fff}body[data-style-page="/docs/handoff-decision-flow"] main{max-width:900px;margin:auto;padding:38px 20px 60px}body[data-style-page="/docs/handoff-decision-flow"] .hero{padding:28px 30px;background:linear-gradient(135deg,#20252c,#303843);border:1px solid var(--line2);border-radius:16px;box-shadow:0 18px 45px #0005}body[data-style-page="/docs/handoff-decision-flow"] .eyebrow{color:var(--teal);font-size:.78rem;font-weight:600}body[data-style-page="/docs/handoff-decision-flow"] .hero h1{margin:.25rem 0 .35rem;font-size:clamp(1.55rem,4vw,2.25rem);line-height:1.5}body[data-style-page="/docs/handoff-decision-flow"] .hero p{margin:0;color:var(--muted);font-size:.9rem}body[data-style-page="/docs/handoff-decision-flow"] .flow{position:relative;margin:34px 0 28px;padding-right:52px}body[data-style-page="/docs/handoff-decision-flow"] .flow:before{content:"";position:absolute;right:20px;top:22px;bottom:22px;width:2px;background:linear-gradient(var(--teal),#47556955)}body[data-style-page="/docs/handoff-decision-flow"] .step{position:relative;padding:0 0 30px}body[data-style-page="/docs/handoff-decision-flow"] .step:last-child{padding-bottom:8px}body[data-style-page="/docs/handoff-decision-flow"] .node{position:absolute;right:-52px;top:0;z-index:1;display:grid;place-items:center;width:42px;height:42px;border:2px solid var(--teal);border-radius:50%;background:#20252c;color:#fff;font-weight:700;box-shadow:0 0 0 6px var(--bg)}body[data-style-page="/docs/handoff-decision-flow"] .step h2{margin:0 0 .25rem;font-size:1.05rem}body[data-style-page="/docs/handoff-decision-flow"] .step p{margin:0;color:var(--muted);font-size:.88rem}body[data-style-page="/docs/handoff-decision-flow"] .outcome{margin-top:10px;padding:9px 13px;border-right:3px solid var(--teal);border-radius:8px;background:#ffffff08;color:#cbd5e1;font-size:.84rem}body[data-style-page="/docs/handoff-decision-flow"] .outcome.green{border-color:var(--green);background:#4ade800d}body[data-style-page="/docs/handoff-decision-flow"] .outcome.amber{border-color:var(--amber);background:#fbbf240d}body[data-style-page="/docs/handoff-decision-flow"] .outcome.red{border-color:var(--red);background:#f871710d}body[data-style-page="/docs/handoff-decision-flow"] .summary{padding:20px 22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}body[data-style-page="/docs/handoff-decision-flow"] .summary h2{margin:0 0 8px;font-size:1.05rem}body[data-style-page="/docs/handoff-decision-flow"] .summary ol{margin:0;padding-right:22px;color:var(--muted);font-size:.88rem}body[data-style-page="/docs/handoff-decision-flow"] .note{margin-top:16px;padding:14px 16px;border:1px solid #fbbf2438;border-right:3px solid var(--amber);border-radius:9px;background:#fbbf240d;color:#fde68a;font-size:.84rem}body[data-style-page="/docs/handoff-decision-flow"] .footer{margin-top:25px;color:var(--faint);font-size:.75rem}
    @media(max-width:600px){body[data-style-page="/docs/handoff-decision-flow"] main{padding:22px 14px 42px}body[data-style-page="/docs/handoff-decision-flow"] .hero{padding:23px 20px}body[data-style-page="/docs/handoff-decision-flow"] .flow{padding-right:43px}body[data-style-page="/docs/handoff-decision-flow"] .flow:before{right:16px}body[data-style-page="/docs/handoff-decision-flow"] .node{right:-43px;width:36px;height:36px}body[data-style-page="/docs/handoff-decision-flow"] .step{padding-bottom:25px}body[data-style-page="/docs/handoff-decision-flow"] .top{padding:0 .75rem}body[data-style-page="/docs/handoff-decision-flow"] .top a:last-child{font-size:.7rem}}
  


/* Static guide stylesheet: /docs/developer-docs */
html:has(body[data-style-page="/docs/developer-docs"]){
    --paper:#FAF9F6;
    --paper-raised:#FFFFFF;
    --ink:#1C1F26;
    --ink-soft:#4A5061;
    --line:#E4E1D8;
    --line-soft:#ECEAE2;
    --accent:#3E5E8C;
    --accent-ink:#2D4569;
    --accent-tint:#EAF0F8;
    --ok:#3E7A51;
    --ok-tint:#E9F4EB;
    --warn:#966A2A;
    --warn-tint:#FAF1E2;
    --danger:#A34742;
    --danger-tint:#FBECEA;
    --code-bg:#F4F2EA;
    --code-ink:#2B2E24;
    --sidebar-bg:#F3F1E9;
    --focus:#3E5E8C;
  }
  @media (prefers-color-scheme: dark){html:not([data-theme="light"]):has(body[data-style-page="/docs/developer-docs"]){
      --paper:#15171C;
      --paper-raised:#1B1E25;
      --ink:#E9E8E3;
      --ink-soft:#A7ABB8;
      --line:#2B2E37;
      --line-soft:#23262E;
      --accent:#7FA1D6;
      --accent-ink:#9DBCE8;
      --accent-tint:#1D2836;
      --ok:#7FBF8F;
      --ok-tint:#17251A;
      --warn:#D9AE64;
      --warn-tint:#2A2214;
      --danger:#E08E88;
      --danger-tint:#2B1917;
      --code-bg:#1D1F1A;
      --code-ink:#DCDACB;
      --sidebar-bg:#191B21;
      --focus:#9DBCE8;
    }
  }html[data-theme="dark"]:has(body[data-style-page="/docs/developer-docs"]){
    --paper:#15171C;
    --paper-raised:#1B1E25;
    --ink:#E9E8E3;
    --ink-soft:#A7ABB8;
    --line:#2B2E37;
    --line-soft:#23262E;
    --accent:#7FA1D6;
    --accent-ink:#9DBCE8;
    --accent-tint:#1D2836;
    --ok:#7FBF8F;
    --ok-tint:#17251A;
    --warn:#D9AE64;
    --warn-tint:#2A2214;
    --danger:#E08E88;
    --danger-tint:#2B1917;
    --code-bg:#1D1F1A;
    --code-ink:#DCDACB;
    --sidebar-bg:#191B21;
    --focus:#9DBCE8;
  }body[data-style-page="/docs/developer-docs"] *{box-sizing:border-box;}html:has(body[data-style-page="/docs/developer-docs"]){-webkit-text-size-adjust:100%;}body[data-style-page="/docs/developer-docs"]{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    font-size:15.5px;
    line-height:1.6;
    overflow-x:hidden;
  }
  @media (prefers-reduced-motion: reduce){body[data-style-page="/docs/developer-docs"] *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }body[data-style-page="/docs/developer-docs"] h1,body[data-style-page="/docs/developer-docs"] h2,body[data-style-page="/docs/developer-docs"] h3,body[data-style-page="/docs/developer-docs"] h4{
    font-family:'Newsreader', Georgia, serif;
    font-weight:600;
    color:var(--ink);
    text-wrap:balance;
    letter-spacing:-0.01em;
  }body[data-style-page="/docs/developer-docs"] code,body[data-style-page="/docs/developer-docs"] pre,body[data-style-page="/docs/developer-docs"] .mono{
    font-family:'IBM Plex Mono', ui-monospace, Consolas, monospace;
  }body[data-style-page="/docs/developer-docs"] a{color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] a:focus-visible,body[data-style-page="/docs/developer-docs"] button:focus-visible,body[data-style-page="/docs/developer-docs"] summary:focus-visible,body[data-style-page="/docs/developer-docs"] [tabindex]:focus-visible{
    outline:2px solid var(--focus);
    outline-offset:2px;
    border-radius:3px;
  }body[data-style-page="/docs/developer-docs"] /* ---------- Top bar ---------- */
  .topbar{
    position:sticky; top:0; z-index:40;
    display:flex; align-items:center; justify-content:space-between;
    gap:1rem;
    padding:0.85rem 1.5rem;
    background:var(--paper);
    border-bottom:1px solid var(--line);
  }body[data-style-page="/docs/developer-docs"] .brand{
    display:flex; align-items:center; gap:0.55rem;
    font-family:'Newsreader', serif;
    font-weight:600; font-size:1.15rem;
    color:var(--ink);
    text-decoration:none;
    white-space:nowrap;
  }body[data-style-page="/docs/developer-docs"] .brand-mark{
    width:26px; height:26px; border-radius:7px;
    background:linear-gradient(155deg, var(--accent), var(--accent-ink));
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-family:'IBM Plex Mono',monospace; font-size:12px; font-weight:600;
    flex-shrink:0;
  }body[data-style-page="/docs/developer-docs"] .brand small{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.62rem;
    letter-spacing:0.08em;
    color:var(--ink-soft);
    font-weight:500;
    display:block;
    margin-top:1px;
  }body[data-style-page="/docs/developer-docs"] .top-actions{display:flex; align-items:center; gap:0.6rem;}body[data-style-page="/docs/developer-docs"] .env-pill{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.68rem; letter-spacing:0.03em;
    padding:0.3rem 0.6rem;
    border-radius:99px;
    background:var(--warn-tint); color:var(--warn);
    border:1px solid color-mix(in srgb, var(--warn) 35%, transparent);
    white-space:nowrap;
  }body[data-style-page="/docs/developer-docs"] .menu-btn{
    display:none;
    background:none; border:1px solid var(--line); border-radius:7px;
    padding:0.4rem 0.6rem; cursor:pointer; color:var(--ink);
    font-family:inherit; font-size:0.85rem;
  }body[data-style-page="/docs/developer-docs"] /* ---------- Layout shell ---------- */
  .shell{
    display:grid;
    grid-template-columns:230px minmax(0,1fr) 300px;
    max-width:1400px;
    margin:0 auto;
    align-items:start;
  }
  @media (max-width:1180px){body[data-style-page="/docs/developer-docs"] .shell{grid-template-columns:220px minmax(0,1fr);}body[data-style-page="/docs/developer-docs"] .toc{display:none;}
  }
  @media (max-width:860px){body[data-style-page="/docs/developer-docs"] .shell{grid-template-columns:1fr;}body[data-style-page="/docs/developer-docs"] .sidebar{display:none;}body[data-style-page="/docs/developer-docs"] .menu-btn{display:inline-flex;}body[data-style-page="/docs/developer-docs"] .sidebar.open{
      display:block; position:fixed; inset:56px 0 0 0; z-index:50;
      background:var(--sidebar-bg); overflow-y:auto; padding-bottom:2rem;
    }
  }body[data-style-page="/docs/developer-docs"] /* ---------- Sidebar ---------- */
  .sidebar{
    position:sticky; top:53px;
    height:calc(100vh - 53px);
    overflow-y:auto;
    background:var(--sidebar-bg);
    border-right:1px solid var(--line);
    padding:1.4rem 1rem 3rem;
  }body[data-style-page="/docs/developer-docs"] .sidebar-group{margin-bottom:1.5rem;}body[data-style-page="/docs/developer-docs"] .sidebar-label{
    font-family:'IBM Plex Mono', monospace;
    font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase;
    color:var(--ink-soft);
    padding:0 0.6rem;
    margin-bottom:0.5rem;
    display:block;
  }body[data-style-page="/docs/developer-docs"] .sidebar a{
    display:flex; align-items:center; gap:0.5rem;
    padding:0.4rem 0.6rem;
    border-radius:6px;
    font-size:0.86rem;
    color:var(--ink-soft);
    text-decoration:none;
    line-height:1.35;
  }body[data-style-page="/docs/developer-docs"] .sidebar a:hover{background:var(--line-soft); color:var(--ink);}body[data-style-page="/docs/developer-docs"] .sidebar a.active{background:var(--accent-tint); color:var(--accent-ink); font-weight:500;}body[data-style-page="/docs/developer-docs"] .sidebar .method-tag{
    font-family:'IBM Plex Mono',monospace;
    font-size:0.6rem; font-weight:600;
    padding:0.08rem 0.32rem; border-radius:4px;
    flex-shrink:0; min-width:38px; text-align:center;
  }body[data-style-page="/docs/developer-docs"] .m-get{background:var(--ok-tint); color:var(--ok);}body[data-style-page="/docs/developer-docs"] .m-post{background:var(--accent-tint); color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] /* ---------- Main content ---------- */
  main{
    padding:2.6rem 3rem 6rem;
    min-width:0;
  }
  @media (max-width:640px){body[data-style-page="/docs/developer-docs"] main{padding:1.6rem 1.1rem 4rem;} }body[data-style-page="/docs/developer-docs"] .lede{
    max-width:62ch;
    color:var(--ink-soft);
    font-size:1.02rem;
  }body[data-style-page="/docs/developer-docs"] section.intro h1{font-size:2.1rem; margin:0 0 0.6rem;}body[data-style-page="/docs/developer-docs"] .badge-row{display:flex; gap:0.5rem; flex-wrap:wrap; margin:1.1rem 0 1.6rem;}body[data-style-page="/docs/developer-docs"] .badge{
    font-family:'IBM Plex Mono',monospace; font-size:0.72rem;
    padding:0.32rem 0.65rem; border-radius:6px;
    background:var(--paper-raised); border:1px solid var(--line);
    color:var(--ink-soft);
  }body[data-style-page="/docs/developer-docs"] .callout{
    border-radius:10px;
    padding:0.95rem 1.1rem;
    margin:1.3rem 0;
    border:1px solid;
    font-size:0.9rem;
    max-width:68ch;
  }body[data-style-page="/docs/developer-docs"] .callout p{margin:0.35rem 0 0;}body[data-style-page="/docs/developer-docs"] .callout p:first-child{margin-top:0;}body[data-style-page="/docs/developer-docs"] .callout-title{
    font-weight:600; font-size:0.78rem; letter-spacing:0.03em; text-transform:uppercase;
    font-family:'IBM Plex Mono',monospace;
  }body[data-style-page="/docs/developer-docs"] .callout.warn{background:var(--warn-tint); border-color:color-mix(in srgb, var(--warn) 35%, transparent); color:var(--ink);}body[data-style-page="/docs/developer-docs"] .callout.warn .callout-title{color:var(--warn);}body[data-style-page="/docs/developer-docs"] .callout.info{background:var(--accent-tint); border-color:color-mix(in srgb, var(--accent) 30%, transparent); color:var(--ink);}body[data-style-page="/docs/developer-docs"] .callout.info .callout-title{color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] .callout.danger{background:var(--danger-tint); border-color:color-mix(in srgb, var(--danger) 35%, transparent); color:var(--ink);}body[data-style-page="/docs/developer-docs"] .callout.danger .callout-title{color:var(--danger);}body[data-style-page="/docs/developer-docs"] .api-group{
    margin:3.4rem 0 1.2rem;
    padding-top:1.6rem;
    border-top:1px solid var(--line);
  }body[data-style-page="/docs/developer-docs"] .api-group:first-of-type{border-top:none; margin-top:2.4rem;}body[data-style-page="/docs/developer-docs"] .api-group h2{font-size:1.5rem; margin:0 0 0.3rem;}body[data-style-page="/docs/developer-docs"] .api-group .group-desc{color:var(--ink-soft); max-width:64ch; margin:0 0 0.4rem; font-size:0.95rem;}body[data-style-page="/docs/developer-docs"] .auth-chip{
    display:inline-flex; align-items:center; gap:0.4rem;
    font-family:'IBM Plex Mono',monospace; font-size:0.72rem;
    padding:0.25rem 0.6rem; border-radius:99px;
    margin-top:0.5rem;
  }body[data-style-page="/docs/developer-docs"] .auth-chip.key{background:var(--ok-tint); color:var(--ok);}body[data-style-page="/docs/developer-docs"] .auth-chip.none{background:var(--danger-tint); color:var(--danger);}body[data-style-page="/docs/developer-docs"] .auth-chip.cookie{background:var(--accent-tint); color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] .auth-chip.role{background:var(--warn-tint); color:var(--warn);}body[data-style-page="/docs/developer-docs"] .endpoint{
    margin:2.1rem 0;
    padding-top:1.6rem;
  }body[data-style-page="/docs/developer-docs"] .endpoint-head{
    display:flex; align-items:baseline; gap:0.7rem; flex-wrap:wrap;
    margin-bottom:0.35rem;
  }body[data-style-page="/docs/developer-docs"] .method{
    font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:0.78rem;
    padding:0.2rem 0.55rem; border-radius:5px; letter-spacing:0.02em;
  }body[data-style-page="/docs/developer-docs"] .method.get{background:var(--ok-tint); color:var(--ok);}body[data-style-page="/docs/developer-docs"] .method.post{background:var(--accent-tint); color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] .route{
    font-family:'IBM Plex Mono',monospace; font-size:0.95rem; color:var(--ink);
    word-break:break-all;
  }body[data-style-page="/docs/developer-docs"] .endpoint h3{font-size:1.15rem; margin:0.5rem 0 0.4rem; font-weight:600;}body[data-style-page="/docs/developer-docs"] .endpoint > p{color:var(--ink-soft); max-width:64ch; margin:0.3rem 0 1rem; font-size:0.93rem;}body[data-style-page="/docs/developer-docs"] .grid-2{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:1.6rem;
    align-items:start;
  }
  @media (max-width:1180px){body[data-style-page="/docs/developer-docs"] .grid-2{grid-template-columns:1fr;}
  }body[data-style-page="/docs/developer-docs"] table{
    width:100%; border-collapse:collapse;
    font-size:0.85rem;
    margin:0.6rem 0 1.4rem;
  }body[data-style-page="/docs/developer-docs"] caption{
    text-align:left; font-family:'IBM Plex Mono',monospace;
    font-size:0.68rem; letter-spacing:0.08em; text-transform:uppercase;
    color:var(--ink-soft); margin-bottom:0.5rem;
  }body[data-style-page="/docs/developer-docs"] th{
    text-align:left; font-family:'IBM Plex Mono',monospace; font-weight:500;
    font-size:0.72rem; letter-spacing:0.03em; text-transform:uppercase;
    color:var(--ink-soft);
    padding:0.5rem 0.7rem;
    border-bottom:1px solid var(--line);
  }body[data-style-page="/docs/developer-docs"] td{
    padding:0.55rem 0.7rem;
    border-bottom:1px solid var(--line-soft);
    vertical-align:top;
  }body[data-style-page="/docs/developer-docs"] td.field{font-family:'IBM Plex Mono',monospace; font-size:0.82rem; color:var(--ink); white-space:nowrap;}body[data-style-page="/docs/developer-docs"] td.type{font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--accent-ink); white-space:nowrap;}body[data-style-page="/docs/developer-docs"] .req-badge{
    font-family:'IBM Plex Mono',monospace; font-size:0.65rem;
    padding:0.1rem 0.4rem; border-radius:4px;
    background:var(--danger-tint); color:var(--danger);
  }body[data-style-page="/docs/developer-docs"] .opt-badge{
    font-family:'IBM Plex Mono',monospace; font-size:0.65rem;
    padding:0.1rem 0.4rem; border-radius:4px;
    background:var(--line-soft); color:var(--ink-soft);
  }body[data-style-page="/docs/developer-docs"] .table-wrap{overflow-x:auto;}body[data-style-page="/docs/developer-docs"] .code-panel{
    background:var(--code-bg);
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    margin-bottom:1rem;
  }body[data-style-page="/docs/developer-docs"] .code-panel-head{
    display:flex; align-items:center; justify-content:space-between;
    padding:0.55rem 0.85rem;
    border-bottom:1px solid var(--line);
    font-family:'IBM Plex Mono',monospace;
    font-size:0.7rem; color:var(--ink-soft);
  }body[data-style-page="/docs/developer-docs"] .code-tabs{display:flex; gap:0.3rem;}body[data-style-page="/docs/developer-docs"] .code-tab{
    background:none; border:none; cursor:pointer;
    font-family:'IBM Plex Mono',monospace; font-size:0.7rem;
    padding:0.2rem 0.5rem; border-radius:5px;
    color:var(--ink-soft);
  }body[data-style-page="/docs/developer-docs"] .code-tab.active{background:var(--paper-raised); color:var(--ink);}body[data-style-page="/docs/developer-docs"] .copy-btn{
    background:none; border:1px solid var(--line); border-radius:5px;
    color:var(--ink-soft); font-family:inherit; font-size:0.68rem;
    padding:0.2rem 0.5rem; cursor:pointer;
  }body[data-style-page="/docs/developer-docs"] .copy-btn:hover{color:var(--ink); border-color:var(--ink-soft);}body[data-style-page="/docs/developer-docs"] pre.code-body{
    margin:0; padding:0.9rem 1rem;
    overflow-x:auto;
    font-size:0.78rem; line-height:1.65;
    color:var(--code-ink);
    white-space:pre;
  }body[data-style-page="/docs/developer-docs"] .code-block-label{
    font-family:'IBM Plex Mono',monospace; font-size:0.68rem; letter-spacing:0.06em;
    text-transform:uppercase; color:var(--ink-soft); margin:1rem 0 0.4rem;
  }body[data-style-page="/docs/developer-docs"] /* syntax hints (manual, minimal) */
  .tok-key{color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] .tok-str{color:var(--ok);}body[data-style-page="/docs/developer-docs"] .tok-num{color:var(--warn);}body[data-style-page="/docs/developer-docs"] .tok-comment{color:var(--ink-soft); font-style:italic;}body[data-style-page="/docs/developer-docs"] .tok-const{color:#8B5FBF;}
  @media (prefers-color-scheme: dark){html:not([data-theme="light"]) body[data-style-page="/docs/developer-docs"] .tok-const{color:#B79CE0;}}html[data-theme="dark"] body[data-style-page="/docs/developer-docs"] .tok-const{color:#B79CE0;}body[data-style-page="/docs/developer-docs"] .status-list{list-style:none; margin:0.6rem 0 1.4rem; padding:0; display:grid; gap:0.5rem;}body[data-style-page="/docs/developer-docs"] .status-row{
    display:flex; align-items:baseline; gap:0.7rem;
    font-size:0.86rem; padding:0.15rem 0;
  }body[data-style-page="/docs/developer-docs"] .status-code{
    font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:0.82rem;
    min-width:2.6rem;
  }body[data-style-page="/docs/developer-docs"] .status-code.ok{color:var(--ok);}body[data-style-page="/docs/developer-docs"] .status-code.warn{color:var(--warn);}body[data-style-page="/docs/developer-docs"] .status-code.danger{color:var(--danger);}body[data-style-page="/docs/developer-docs"] .status-row span.desc{color:var(--ink-soft);}body[data-style-page="/docs/developer-docs"] .toc{
    position:sticky; top:53px;
    height:calc(100vh - 53px);
    overflow-y:auto;
    padding:2.4rem 1.4rem 3rem 0;
  }body[data-style-page="/docs/developer-docs"] .toc-inner{
    border-left:1px solid var(--line);
    padding-left:1.1rem;
  }body[data-style-page="/docs/developer-docs"] .toc-label{
    font-family:'IBM Plex Mono',monospace; font-size:0.65rem; letter-spacing:0.1em;
    text-transform:uppercase; color:var(--ink-soft); margin-bottom:0.7rem; display:block;
  }body[data-style-page="/docs/developer-docs"] .toc a{
    display:block; font-size:0.82rem; color:var(--ink-soft); text-decoration:none;
    padding:0.28rem 0; line-height:1.4;
  }body[data-style-page="/docs/developer-docs"] .toc a:hover{color:var(--accent-ink);}body[data-style-page="/docs/developer-docs"] hr.rule{border:none; border-top:1px solid var(--line); margin:2.4rem 0;}body[data-style-page="/docs/developer-docs"] footer{
    max-width:1400px; margin:0 auto;
    padding:2rem 3rem 3rem;
    border-top:1px solid var(--line);
    color:var(--ink-soft); font-size:0.82rem;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:0.6rem;
  }




/* Former inline styles of this page (own palette, not tokenised) */
[data-rx-inline="rx-inline-09ce397c6c"]{color:var(--ink-soft) !important;font-size:0.88rem !important;line-height:2 !important}
[data-rx-inline="rx-inline-1cfbafcd27"]{margin-top:1.2rem !important}
[data-rx-inline="rx-inline-3817c53f7b"]{font-size:0.95rem !important;margin:1.3rem 0 0.5rem !important}
[data-rx-inline="rx-inline-44c26a8e8e"]{display:inline-block !important}
[data-rx-inline="rx-inline-4829e4e96c"]{background:var(--ok-tint) !important;color:var(--ok) !important;border-color:color-mix(in srgb, var(--ok) 35%, transparent) !important}
[data-rx-inline="rx-inline-4c699e962e"]{font-size:1.05rem !important}
[data-rx-inline="rx-inline-652c9e49bd"]{background:var(--danger-tint) !important;color:var(--danger) !important}
[data-rx-inline="rx-inline-6646d47208"]{font-size:0.9rem !important}
[data-rx-inline="rx-inline-8e2b91d031"]{font-size:1.5rem !important}
[data-rx-inline="rx-inline-a02ae2d1bd"]{color:var(--ink-soft) !important;max-width:64ch !important;font-size:0.93rem !important}
[data-rx-inline="rx-inline-e5ebaecb69"]{font-size:0.85rem !important;color:var(--ink-soft) !important}
/* Static guide stylesheet: /brand/preview */
body[data-style-page="/brand/preview"]{margin:0;padding:32px;background:#f5f8f7;color:#0f1e25;font-family:Tahoma,sans-serif}body[data-style-page="/brand/preview"] h1{font-size:24px}body[data-style-page="/brand/preview"] main{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}body[data-style-page="/brand/preview"] figure{margin:0;padding:28px;border:1px solid #c5ded9;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:24px}body[data-style-page="/brand/preview"] figure.dark{background:#0f1e25;color:#f5f8f7}body[data-style-page="/brand/preview"] img{max-width:100%;width:350px;height:185px;object-fit:contain}body[data-style-page="/brand/preview"] .icon{width:100px}body[data-style-page="/brand/preview"] figcaption{font-size:14px}body[data-style-page="/brand/preview"] a{color:#0f766e}


/* Migrated static and data-driven inline declarations. */
[data-rx-inline="rx-inline-36f3fb3af4"]{color:var(--rx-success) !important}
[data-rx-inline="rx-inline-5a920fbf89"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-e3e9a133f1"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-87f24a9120"]{font-size:0.9rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-b3082c223c"]{color:var(--rx-success) !important}
[data-rx-inline="rx-inline-23cce7b566"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-c6bcfbbe27"]{color:var(--rx-muted) !important;font-size:0.8rem !important;margin-top:0.75rem !important}
[data-rx-inline="rx-inline-493317541c"]{color:var(--rx-muted) !important;font-size:0.85rem !important}
[data-rx-dynamic="rx-dynamic-15362c47c5"]{color:var(--rx-dyn-color)}
[data-rx-inline="rx-inline-22e66179c4"]{margin-top:1rem !important;padding-top:1rem !important;border-top:1px solid rgba(var(--rx-contrast-rgb), 0.08) !important}
[data-rx-inline="rx-inline-4b236a4a87"]{margin-bottom:0.5rem !important;display:flex !important;align-items:center !important;gap:0.5rem !important}
[data-rx-inline="rx-inline-b51e19dad8"]{color:var(--rx-info) !important}
[data-rx-inline="rx-inline-c44699fa81"]{display:flex !important;gap:0.5rem !important;align-items:start !important}
[data-rx-inline="rx-inline-36524bbfa9"]{flex:1 !important;padding:0.6rem 0.85rem !important;font-size:0.85rem !important;direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-debe63b63c"]{background:rgba(var(--rx-info-rgb), 0.15) !important;color:var(--rx-info) !important;border:1px solid rgba(var(--rx-info-rgb), 0.3) !important;white-space:nowrap !important}
[data-rx-inline="rx-inline-c9c7330e4b"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;color:var(--rx-accent) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.3) !important;white-space:nowrap !important}
[data-rx-inline="rx-inline-5d92a8b247"]{color:var(--rx-muted) !important;font-size:0.75rem !important;margin:0.5rem 0 0 0 !important}
[data-rx-inline="rx-inline-0cd28ce9ba"]{display:inline !important}
[data-rx-inline="rx-inline-7461e514e1"]{text-align:center !important;padding:2rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-ffc70b7efc"]{font-size:3rem !important;display:block !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-2853ef8eb7"]{color:var(--rx-ink-soft) !important;margin-bottom:1rem !important;font-size:0.9rem !important}
[data-rx-inline="rx-inline-f2faa2f355"]{background:rgba(var(--rx-accent-rgb), 0.2) !important;padding:0.2rem 0.5rem !important;border-radius:6px !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-614a62d571"]{color:var(--rx-ink) !important;margin:1.5rem 0 0.75rem 0 !important;font-size:0.95rem !important}
[data-rx-inline="rx-inline-a74e5afdb7"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-1c70a014df"]{color:var(--rx-ink-soft) !important;margin-bottom:0.75rem !important;font-size:0.9rem !important}
[data-rx-inline="rx-inline-1b9a73f5fc"]{color:var(--rx-ink-soft) !important;margin:1.25rem 0 0.5rem 0 !important;font-size:0.9rem !important}
[data-rx-inline="rx-inline-227b814b65"]{color:var(--rx-ink-soft) !important;font-size:0.85rem !important;margin-bottom:0.5rem !important}
[data-rx-inline="rx-inline-c3762f3419"]{background:rgba(var(--rx-accent-rgb), 0.08) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.2) !important;border-radius:12px !important;padding:1rem !important;margin-top:0.75rem !important;font-size:0.8rem !important;color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-6ac9ea3dc2"]{margin:0 0 0.75rem 0 !important;font-weight:600 !important;color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-1908c8d8d0"]{list-style:none !important;padding:0 !important;margin:0 !important}
[data-rx-inline="rx-inline-1c09f0c006"]{margin-bottom:0.5rem !important}
[data-rx-inline="rx-inline-f96a54f424"]{color:var(--rx-ink-soft) !important;margin-top:0.75rem !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-2ddf87696d"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-482c7f2276"]{color:var(--rx-info) !important}
[data-rx-inline="rx-inline-4a7a8c82af"]{background:rgba(var(--rx-danger-rgb), 0.1) !important}
[data-rx-inline="rx-inline-c4976e7bbe"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-006447770d"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-5c16c85926"]{color:var(--rx-ink-soft) !important;font-size:0.9rem !important;line-height:1.7 !important}
[data-rx-inline="rx-inline-c8be1ccba6"]{display:none !important}
[data-rx-inline="rx-inline-c5cc417c9a"]{width:100% !important;height:100% !important}
[data-rx-inline="rx-inline-780d0c7f7c"]{color:var(--rx-ink-soft) !important;font-size:0.9rem !important;line-height:1.9 !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-4dd4b16ef2"]{color:var(--rx-ink) !important}
[data-rx-inline="rx-inline-9c4f3246de"]{text-align:center !important;padding:1.5rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-d18ae349e5"]{font-size:2.5rem !important;display:block !important;margin-bottom:0.75rem !important}
[data-rx-inline="rx-inline-7af81923b8"]{background:rgba(var(--rx-accent-rgb), 0.2) !important;padding:0.1rem 0.4rem !important;border-radius:6px !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-aaa57c3fb4"]{border-right:3px solid var(--rx-warning) !important;padding-right:.8rem !important}
[data-rx-inline="rx-inline-405c315c20"]{color:var(--rx-ink) !important;direction:ltr !important;display:inline-block !important}
[data-rx-inline="rx-inline-fad44774aa"]{color:var(--rx-ink-soft) !important;font-size:0.85rem !important;line-height:1.8 !important}
[data-rx-inline="rx-inline-71c7258ecd"]{margin-left:.5rem !important}
[data-rx-inline="rx-inline-ec61366f4a"]{margin-left:0.5rem !important}
[data-rx-inline="rx-inline-a9351770dd"]{font-family: var(--rx-font-mono) !important}
[data-rx-inline="rx-inline-988e05092a"]{background:rgba(var(--rx-contrast-rgb), 0.105) !important;color:var(--rx-muted) !important;border-color:rgba(var(--rx-contrast-rgb), 0.2) !important}
[data-rx-inline="rx-inline-4fe22d167f"]{color:var(--rx-success) !important}
[data-rx-inline="rx-inline-a67eecb78c"]{margin-left:.5rem !important;color:var(--rx-success) !important}
[data-rx-inline="rx-inline-b8f7c45907"]{margin:1rem 0 !important;padding:1rem 0 !important;border-bottom:1px dashed rgba(var(--rx-contrast-rgb), 0.12) !important}
[data-rx-inline="rx-inline-262cf36f97"]{display:flex !important;justify-content:space-between !important;margin-bottom:.75rem !important}
[data-rx-inline="rx-inline-be7b8c23f9"]{color:var(--rx-ink-soft) !important;font-size:.95rem !important}
[data-rx-inline="rx-inline-aebe6a3fd0"]{color:var(--rx-ink) !important;font-weight:700 !important;font-family: var(--rx-font-mono) !important}
[data-rx-inline="rx-inline-da5a491935"]{display:flex !important;justify-content:space-between !important}
[data-rx-inline="rx-inline-596f828a83"]{color:var(--rx-warning) !important;font-weight:700 !important;font-family: var(--rx-font-mono) !important}
[data-rx-inline="rx-inline-e2ffe6105c"]{text-align:center !important;margin-top:1rem !important}
[data-rx-inline="rx-inline-e4917103c8"]{margin-bottom:.5rem !important}
[data-rx-inline="rx-inline-f49554988b"]{margin-top:1rem !important;font-size:.85rem !important}
[data-rx-inline="rx-inline-8a44b31613"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-5099d1056e"]{margin-left:.5rem !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-d53616ff20"]{margin:1rem 0 !important;padding:1rem 0 !important;border-bottom:1px dashed rgba(var(--rx-contrast-rgb), 0.2) !important}
[data-rx-inline="rx-inline-229f37a4f7"]{font-size:.72rem !important;color:var(--rx-ink-soft) !important;margin-top:.2rem !important}
[data-rx-inline="rx-inline-0bf5a17ee4"]{padding:0 2rem 1.5rem !important}
[data-rx-inline="rx-inline-c03f7ce27a"]{font-family: var(--rx-font-mono) !important;direction:ltr !important}
[data-rx-inline="rx-inline-72a68ac344"]{text-align:center !important}
[data-rx-inline="rx-inline-936eb1771a"]{margin-left:0.25rem !important}
[data-rx-inline="rx-inline-6068e4a967"]{font-size:.8rem !important;color:var(--rx-accent) !important;text-decoration:none !important}
[data-rx-dynamic="rx-dynamic-46871a2d31"]{width:var(--rx-dyn-width)}
[data-rx-inline="rx-inline-5c8ea6c3dd"]{color:var(--rx-accent) !important;font-size:.8rem !important}
[data-rx-inline="rx-inline-758a887326"]{font-weight:700 !important}
[data-rx-inline="rx-inline-e695f226a6"]{color:var(--rx-warning) !important;font-weight:700 !important}
[data-rx-inline="rx-inline-6a6cf38c89"]{font-family: var(--rx-font-mono) !important;font-size:.78rem !important;color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-a4812596aa"]{padding:2rem !important}
[data-rx-inline="rx-inline-cadda2ded5"]{background:rgba(var(--rx-success-rgb), 0.1) !important;border:1px solid rgba(var(--rx-success-rgb), 0.2) !important;border-radius:10px !important;padding:0.75rem 1rem !important;margin-bottom:0.75rem !important}
[data-rx-inline="rx-inline-a0c470f63f"]{color:var(--rx-ink-soft) !important;margin-right:1rem !important}
[data-rx-inline="rx-inline-be2a4afd36"]{background:rgba(var(--rx-danger-rgb), 0.1) !important;border:1px solid rgba(var(--rx-danger-rgb), 0.2) !important;border-radius:10px !important;padding:0.75rem 1rem !important;color:var(--rx-danger) !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-8d345006e3"]{display:flex !important;justify-content:space-between !important;align-items:start !important;flex-wrap:wrap !important;gap:0.5rem !important}
[data-rx-inline="rx-inline-d8f0f010fa"]{color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-1a622b1c22"]{color:var(--rx-danger) !important;font-size:0.8rem !important;margin-top:0.5rem !important}
[data-rx-inline="rx-inline-bca7730ad2"]{color:var(--rx-muted) !important;font-size:0.75rem !important;margin-top:0.25rem !important}
[data-rx-inline="rx-inline-e291d2410f"]{padding:3rem !important;text-align:center !important}
[data-rx-inline="rx-inline-4896089ccd"]{font-size:4rem !important;color:var(--rx-faint) !important;display:block !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-4d013c6b63"]{color:var(--rx-ink-soft) !important;font-size:1.1rem !important}
[data-rx-inline="rx-inline-6e1c3f9d68"]{color:var(--rx-muted) !important;font-size:0.9rem !important;margin-top:0.5rem !important}
[data-rx-inline="rx-inline-11d68f16b2"]{color:var(--rx-success) !important}
[data-rx-inline="rx-inline-5e8341da91"]{background:rgba(var(--rx-contrast-rgb), 0.03) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.06) !important;border-radius:12px !important;padding:1rem 1.25rem !important}
[data-rx-inline="rx-inline-8ea3a9086a"]{color:var(--rx-muted) !important;font-size:.8rem !important;margin-bottom:.75rem !important;font-weight:600 !important}
[data-rx-inline="rx-inline-c92780eb49"]{display:flex !important;flex-wrap:wrap !important;gap:.5rem !important}
[data-rx-inline="rx-inline-bad9357bd4"]{background:rgba(var(--rx-success-rgb), 0.1) !important;border:1px solid rgba(var(--rx-success-rgb), 0.2) !important;border-radius:8px !important;padding:.3rem .65rem !important;font-size:.8rem !important;color:var(--rx-success) !important;cursor:pointer !important;font-family: var(--rx-font-mono) !important}
[data-rx-inline="rx-inline-20679505b4"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-b4ba607c11"]{background:rgba(var(--rx-surface-rgb), 0.5) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.126) !important;border-radius:.75rem !important;padding:1rem 1.15rem !important;margin-bottom:1.5rem !important}
[data-rx-inline="rx-inline-a02af0e15d"]{margin-bottom:.65rem !important}
[data-rx-inline="rx-inline-c49190e2d2"]{display:flex !important;align-items:center !important;gap:.6rem !important}
[data-rx-inline="rx-inline-6d024ef7d7"]{width:1.05rem !important;height:1.05rem !important;accent-color:var(--rx-success) !important;cursor:pointer !important}
[data-rx-inline="rx-inline-0c6f0f63b6"]{color:var(--rx-ink) !important;font-size:.9rem !important;font-weight:700 !important;cursor:pointer !important;margin:0 !important}
[data-rx-inline="rx-inline-6b5ffc83e7"]{color:var(--rx-muted) !important;font-size:.78rem !important;line-height:1.9 !important;margin:.6rem 0 0 0 !important}
[data-rx-inline="rx-inline-f5bcf59b6b"]{display:flex !important;gap:0.6rem !important;flex-wrap:wrap !important;align-items:center !important}
[data-rx-inline="rx-inline-b4aaaa8154"]{color:var(--rx-ink-soft) !important;font-size:0.88rem !important}
[data-rx-dynamic="rx-dynamic-85c4f27666"]{height:var(--rx-dyn-height)}
[data-rx-inline="rx-inline-d6b082b001"]{margin-top:1rem !important;display:flex !important;gap:0.5rem !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-d88077d092"]{color:var(--rx-ink) !important;font-weight:700 !important}
[data-rx-inline="rx-inline-c50435f51e"]{color:var(--rx-ink-soft) !important;font-size:0.88rem !important;line-height:1.9 !important;white-space:pre-wrap !important}
[data-rx-inline="rx-inline-0cf8f93b0e"]{margin-top:1rem !important}
[data-rx-inline="rx-inline-f0b24eea08"]{margin-bottom:1.5rem !important}
[data-rx-inline="rx-inline-09995325dc"]{color:var(--rx-accent) !important;font-family: var(--rx-font-mono) !important}
[data-rx-inline="rx-inline-cad980f4b7"]{width:100% !important}
[data-rx-inline="rx-inline-0c0477db24"]{font-size:.8rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-00c8a84922"]{direction:ltr !important;display:inline-block !important}
[data-rx-inline="rx-inline-5291d96e1f"]{display:flex !important;gap:.6rem !important;align-items:center !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-50fd99b851"]{direction:ltr !important;text-align:right !important}
[data-rx-inline="rx-inline-779f400020"]{white-space:pre-wrap !important;overflow-wrap:anywhere !important;max-height:300px !important;overflow:auto !important;direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-22399768e0"]{white-space:pre-wrap !important;overflow-wrap:anywhere !important;max-height:200px !important;overflow:auto !important;direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-b7bc38b355"]{white-space:pre-wrap !important;overflow-wrap:anywhere !important;max-height:500px !important;overflow:auto !important;direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-2c8110d4ee"]{max-width:400px !important}
[data-rx-inline="rx-inline-235ca0a370"]{text-decoration:none !important;margin-right:auto !important}
[data-rx-inline="rx-inline-314e4a9a55"]{--accent:var(--rx-accent) !important}
[data-rx-inline="rx-inline-4196a0ea94"]{--accent:var(--rx-accent) !important}
[data-rx-inline="rx-inline-21911c78ac"]{--accent:var(--rx-info) !important}
[data-rx-inline="rx-inline-d0f62f4e5e"]{--accent:var(--rx-success) !important}
[data-rx-inline="rx-inline-6b25fc3292"]{--accent:var(--rx-warning) !important}
[data-rx-inline="rx-inline-a6fc6701ae"]{--accent:var(--rx-accent) !important}
[data-rx-inline="rx-inline-ae01fa962b"]{font-size:1.35rem !important}
[data-rx-inline="rx-inline-387781a8c0"]{margin-top:.15rem !important}
[data-rx-inline="rx-inline-842a4f9b1f"]{--accent:var(--rx-danger) !important}
[data-rx-inline="rx-inline-0cf9b78f03"]{margin:.9rem 0 0 !important;line-height:1.8 !important}
[data-rx-inline="rx-inline-dbc3a0c3d5"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-16884469a8"]{margin-bottom:1rem !important}
[data-rx-inline="rx-inline-78f1f58677"]{--accent:var(--rx-danger) !important}
[data-rx-inline="rx-inline-45e6bfc17d"]{--accent:var(--rx-muted) !important}
[data-rx-inline="rx-inline-04e0e859cd"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-711f43dd7a"]{width:1% !important;color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-e4bb81a1c7"]{width:1% !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-7feb2d6cad"]{color:var(--rx-ink) !important;font-weight:700 !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-dab43fb936"]{margin-top:1rem !important}
[data-rx-inline="rx-inline-e85027a346"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-8a77e5a311"]{margin-top:8px !important}
[data-rx-inline="rx-inline-c2bcea0858"]{display:flex !important;justify-content:space-between !important;align-items:center !important}
[data-rx-inline="rx-inline-c307ecc0c4"]{font-family: var(--rx-font-mono) !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-0a3a56155d"]{font-family: var(--rx-font-mono) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-b48a211e71"]{font-family: var(--rx-font-mono) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-d82513d1a3"]{color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-434fc32ec2"]{display:inline !important}
[data-rx-inline="rx-inline-faf51058de"]{text-align:center !important;padding:3rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-1ea6bf192c"]{font-size:3rem !important;margin-bottom:1rem !important;display:block !important}
[data-rx-inline="rx-inline-139f2fc840"]{color:var(--rx-success) !important}
[data-rx-inline="rx-inline-008a31c6f7"]{margin-bottom:2rem !important}
[data-rx-inline="rx-inline-df07a212a9"]{color:var(--rx-ink) !important;margin-bottom:1rem !important;display:flex !important;align-items:center !important;gap:0.75rem !important}
[data-rx-inline="rx-inline-dec031c854"]{color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-bfbafde1ae"]{background:rgba(var(--rx-contrast-rgb), 0.05) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:16px !important;padding:1.5rem !important;margin-bottom:2rem !important}
[data-rx-inline="rx-inline-ebb27664de"]{color:var(--rx-ink) !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-47b8fcd7de"]{display:grid !important;grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)) !important;gap:1rem !important}
[data-rx-inline="rx-inline-bbc0284f03"]{display:flex !important;align-items:center !important;gap:0.75rem !important;padding:0.75rem !important;background:rgba(0, 0, 0, 0.3) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:10px !important;cursor:pointer !important;transition:all 0.3s !important}
[data-rx-inline="rx-inline-5ef9a4093c"]{width:20px !important;height:20px !important;cursor:pointer !important}
[data-rx-inline="rx-inline-ee3d55bf99"]{flex:1 !important}
[data-rx-inline="rx-inline-6f014671bc"]{color:var(--rx-ink) !important;font-weight:600 !important;font-size:0.9rem !important}
[data-rx-inline="rx-inline-c5e666be6d"]{color:var(--rx-muted) !important;font-size:0.75rem !important}
[data-rx-inline="rx-inline-68028a2460"]{margin-top:1rem !important;padding:0.75rem !important;background:rgba(var(--rx-accent-rgb), 0.1) !important;border-radius:8px !important;color:var(--rx-ink-soft) !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-f2892a2e8a"]{display:none !important}
[data-rx-inline="rx-inline-11149fe005"]{background:rgba(var(--rx-contrast-rgb), 0.05) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:16px !important;padding:1.5rem !important;overflow-x:auto !important}
[data-rx-inline="rx-inline-d87e082f4c"]{color:var(--rx-ink) !important;margin-bottom:1.5rem !important}
[data-rx-inline="rx-inline-de8cad8d1b"]{width:100% !important;border-collapse:collapse !important;min-width:800px !important}
[data-rx-inline="rx-inline-70896409fd"]{margin-top:2rem !important;display:grid !important;grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)) !important;gap:1.5rem !important}
[data-rx-inline="rx-inline-2276874f30"]{background:rgba(var(--rx-contrast-rgb), 0.05) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:16px !important;padding:1.5rem !important}
[data-rx-inline="rx-inline-b32dcb380e"]{color:var(--rx-ink) !important;margin-bottom:1rem !important;font-size:1rem !important}
[data-rx-inline="rx-inline-571500b718"]{display:flex !important;flex-direction:column !important;gap:0.75rem !important}
[data-rx-inline="rx-inline-b2b1515752"]{text-align:center !important;padding:4rem 2rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-16bf6d5fd5"]{font-size:3rem !important;margin-bottom:1rem !important;opacity:0.3 !important}
[data-rx-inline="rx-inline-8bac5eb203"]{color:var(--rx-ink-soft) !important}
[data-rx-inline="rx-inline-b49d25e498"]{color:var(--rx-ink) !important;margin-bottom:2rem !important;display:flex !important;align-items:center !important;gap:0.75rem !important}
[data-rx-inline="rx-inline-03983531b3"]{display:flex !important;gap:2rem !important;margin-top:1.5rem !important}
[data-rx-inline="rx-inline-67736fc747"]{color:var(--rx-ink-soft) !important;margin-bottom:2rem !important}
[data-rx-inline="rx-inline-965f4fd7a8"]{display:flex !important;align-items:end !important}
[data-rx-inline="rx-inline-cee5c5825a"]{margin-top:2rem !important}
[data-rx-inline="rx-inline-b1228459bf"]{background:linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.1), rgba(var(--rx-accent-rgb), 0.05)) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.3) !important;border-radius:12px !important;padding:1.5rem !important;margin-top:1.5rem !important}
[data-rx-inline="rx-inline-a7a252a1ad"]{color:var(--rx-ink) !important;margin-bottom:1rem !important;font-size:1.1rem !important}
[data-rx-inline="rx-inline-722e9ac702"]{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)) !important}
[data-rx-inline="rx-inline-74ef944265"]{background:rgba(0, 0, 0, 0.3) !important;border-radius:12px !important;padding:1.5rem !important;margin-top:1rem !important}
[data-rx-inline="rx-inline-888228c557"]{grid-template-columns:1fr !important}
[data-rx-inline="rx-inline-ec526fe136"]{background:rgba(var(--rx-accent-rgb), 0.1) !important;padding:0.75rem !important;border-radius:8px !important;margin-bottom:0.5rem !important}
[data-rx-inline="rx-inline-0dcd697bec"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;padding:0.75rem !important;border-radius:8px !important;margin-bottom:0.5rem !important}
[data-rx-inline="rx-inline-b232345c58"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-ec4bb0ffbb"]{background:rgba(var(--rx-accent-rgb), 0.2) !important;padding:0.75rem !important;border-radius:8px !important;font-weight:700 !important}
[data-rx-inline="rx-inline-0cda642f28"]{color:var(--rx-accent) !important;font-size:1.1rem !important}
[data-rx-inline="rx-inline-52c9f7f503"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;padding:0.75rem !important;border-radius:8px !important;margin-top:0.5rem !important}
[data-rx-inline="rx-inline-1d1159eba1"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-722601e106"]{background:rgba(var(--rx-warning-rgb), 0.1) !important;border:1px solid rgba(var(--rx-warning-rgb), 0.3) !important;border-radius:10px !important;padding:1rem !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-524fa72543"]{color:var(--rx-ink-soft) !important;font-size:0.9rem !important;margin-bottom:0.75rem !important}
[data-rx-inline="rx-inline-fa51fc2d06"]{font-family: var(--rx-font-mono) !important;background:rgba(0, 0, 0, 0.3) !important;padding:1rem !important;border-radius:8px !important;color:var(--rx-warning) !important;font-size:0.85rem !important;line-height:1.8 !important;direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-580e8b2e0f"]{background:rgba(var(--rx-accent-rgb), 0.1) !important;padding:0.75rem !important;border-radius:8px !important}
[data-rx-inline="rx-inline-179ff0522b"]{background:rgba(var(--rx-accent-rgb), 0.1) !important;padding:0.75rem !important;border-radius:8px !important}
[data-rx-inline="rx-inline-d7823f2637"]{background:rgba(var(--rx-warning-rgb), 0.15) !important;padding:0.75rem !important;border-radius:8px !important;font-weight:700 !important;border:1px solid rgba(var(--rx-warning-rgb), 0.3) !important}
[data-rx-inline="rx-inline-2f666ddb30"]{color:var(--rx-warning) !important;font-size:1.1rem !important}
[data-rx-inline="rx-inline-ccd13ebaaf"]{background:linear-gradient(135deg, rgba(var(--rx-success-rgb), 0.15), rgba(var(--rx-success-rgb), 0.1)) !important;border:1px solid rgba(var(--rx-success-rgb), 0.4) !important;border-radius:12px !important;padding:1.5rem !important;margin-top:1rem !important}
[data-rx-inline="rx-inline-69ff1e1dfc"]{color:var(--rx-success) !important;margin-bottom:1rem !important;font-size:1.1rem !important}
[data-rx-inline="rx-inline-aba882c663"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-2cb38c12c2"]{background:rgba(var(--rx-success-rgb), 0.2) !important;padding:1rem !important;border-radius:10px !important;margin-top:0.5rem !important}
[data-rx-inline="rx-inline-7a04c047ba"]{font-size:1.05rem !important}
[data-rx-inline="rx-inline-b106f0d0c1"]{color:var(--rx-success) !important;font-size:1.5rem !important;font-weight:800 !important}
[data-rx-inline="rx-inline-8d946aa83e"]{background:rgba(var(--rx-success-rgb), 0.1) !important;padding:0.75rem !important;border-radius:8px !important}
[data-rx-inline="rx-inline-35fc5152e6"]{color:var(--rx-success) !important;font-weight:700 !important}
[data-rx-inline="rx-inline-196a91d2b0"]{background:linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.3), rgba(var(--rx-accent-rgb), 0.2)) !important}
[data-rx-inline="rx-inline-0d83068469"]{padding:1rem !important;text-align:right !important;color:var(--rx-ink) !important;font-weight:700 !important;position:sticky !important;right:0 !important;background:inherit !important;z-index:2 !important}
[data-rx-inline="rx-inline-2aa39afbc4"]{padding:1rem !important;text-align:center !important;color:var(--rx-ink) !important;font-weight:700 !important;min-width:150px !important}
[data-rx-inline="rx-inline-35b4442671"]{font-size:0.75rem !important;font-weight:400 !important;color:var(--rx-ink-soft) !important;margin-top:0.25rem !important}
[data-rx-inline="rx-inline-ae972c19a6"]{background:rgba(var(--rx-accent-rgb), 0.05) !important}
[data-rx-inline="rx-inline-162aa263a7"]{padding:0.75rem 1rem !important;color:var(--rx-accent) !important;font-weight:700 !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-926f116001"]{border-top:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important}
[data-rx-inline="rx-inline-a45a739520"]{padding:1rem !important;color:var(--rx-ink-soft) !important;position:sticky !important;right:0 !important;background:rgba(var(--rx-surface-rgb), 0.95) !important;z-index:1 !important}
[data-rx-inline="rx-inline-bd547bd257"]{background:rgba(var(--rx-accent-rgb), 0.05) !important}
[data-rx-inline="rx-inline-35dcfca97a"]{padding:0.75rem 1rem !important;color:var(--rx-accent) !important;font-weight:700 !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-4e5b395442"]{background:rgba(var(--rx-warning-rgb), 0.05) !important}
[data-rx-inline="rx-inline-46c14d1783"]{padding:0.75rem 1rem !important;color:var(--rx-warning) !important;font-weight:700 !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-63aaca2e9e"]{display:flex !important;justify-content:space-between !important;margin-bottom:0.25rem !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-c1c3c192ae"]{color:var(--rx-ink) !important}
[data-rx-inline="rx-inline-75d4afd2ea"]{width:100% !important;height:8px !important;background:rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:4px !important;overflow:hidden !important}
[data-rx-inline="rx-inline-798336a2c1"]{font-size:0.75rem !important;color:var(--rx-muted) !important;margin-top:0.25rem !important}
[data-rx-inline="rx-inline-f6c9263a92"]{color:var(--rx-muted) !important;text-align:center !important}
[data-rx-inline="rx-inline-8985a0e5d4"]{text-align:center !important;padding:2rem !important}
[data-rx-inline="rx-inline-20bd913b2b"]{color:var(--rx-ink-soft) !important;margin-top:1rem !important}
[data-rx-inline="rx-inline-b98a83e257"]{color:var(--rx-ink) !important;margin:2rem 0 1.5rem 0 !important}
[data-rx-inline="rx-inline-76084ee4e5"]{margin-bottom:0 !important}
[data-rx-inline="rx-inline-72fca94264"]{max-width:500px !important}
[data-rx-inline="rx-inline-edf49475b9"]{font-family: var(--rx-font-mono) !important;font-weight:600 !important}
[data-rx-inline="rx-inline-ce8caac7e2"]{text-align:center !important;font-weight:600 !important}
[data-rx-inline="rx-inline-54febbcbfd"]{color:var(--rx-faint) !important}
[data-rx-inline="rx-inline-93c6e1d4bb"]{white-space:nowrap !important}
[data-rx-inline="rx-inline-495ddd497e"]{display:flex !important;flex-direction:column !important;gap:0.25rem !important}
[data-rx-inline="rx-inline-52b2fa5df6"]{font-size:0.75rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-b71581730c"]{background:rgba(var(--rx-warning-rgb), 0.15) !important;color:var(--rx-warning) !important;border:1px solid rgba(var(--rx-warning-rgb), 0.3) !important;padding:0.2rem 0.6rem !important;border-radius:50px !important;font-size:0.7rem !important;font-weight:700 !important;margin-right:0.5rem !important}
[data-rx-inline="rx-inline-76085d3f68"]{font-size:1.25rem !important}
[data-rx-inline="rx-inline-f7b558f205"]{width:17% !important}
[data-rx-inline="rx-inline-2931fcd63a"]{width:11% !important}
[data-rx-inline="rx-inline-a659372d50"]{width:15% !important}
[data-rx-inline="rx-inline-85b7a6bea8"]{width:20% !important}
[data-rx-inline="rx-inline-63d058f849"]{cursor:pointer !important}
[data-rx-inline="rx-inline-d25a0ac8e3"]{display:flex !important;gap:0.5rem !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-bcb0a0d8bd"]{padding:0 !important}
[data-rx-inline="rx-inline-65c3f9fc8e"]{background:rgba(var(--rx-accent-rgb), 0.05) !important;padding:1rem 1.5rem !important;border-right:3px solid var(--rx-accent) !important;overflow-x:auto !important}
[data-rx-inline="rx-inline-b0a278ec0b"]{width:100% !important;min-width:600px !important;border-collapse:collapse !important}
[data-rx-inline="rx-inline-62bca67d30"]{color:var(--rx-muted) !important;font-size:0.75rem !important;padding:0.5rem !important;text-align:right !important;font-weight:700 !important}
[data-rx-inline="rx-inline-dd0d9e7c89"]{border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.05) !important}
[data-rx-inline="rx-inline-48b572fd6b"]{padding:0.6rem 0.5rem !important;color:var(--rx-ink) !important;font-weight:600 !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-1d29480804"]{color:var(--rx-warning) !important;font-size:0.7rem !important}
[data-rx-inline="rx-inline-a21c77cadd"]{padding:0.6rem 0.5rem !important}
[data-rx-inline="rx-inline-4500b7ef55"]{font-size:0.7rem !important}
[data-rx-inline="rx-inline-02c649a1a1"]{color:var(--rx-success) !important;font-size:0.8rem !important;font-weight:600 !important}
[data-rx-inline="rx-inline-6c91015d6c"]{color:var(--rx-danger) !important;font-size:0.8rem !important;font-weight:600 !important}
[data-rx-inline="rx-inline-14ba35b14a"]{font-size:0.75rem !important;padding:0.35rem 0.75rem !important}
[data-rx-inline="rx-inline-885e900531"]{direction:ltr !important}
[data-rx-inline="rx-inline-9c859621d7"]{direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-2b583d7389"]{margin-bottom:14px !important}
[data-rx-inline="rx-inline-91a87015f4"]{text-align:center !important}
[data-rx-inline="rx-inline-7bb4174728"]{color:inherit !important;text-decoration:none !important}
[data-rx-dynamic="rx-dynamic-fb27c2227d"]{background:var(--rx-dyn-background)}
[data-rx-inline="rx-inline-d6f2af6e0a"]{margin-top:14px !important}
[data-rx-inline="rx-inline-0ddf068bfb"]{overflow-x:auto !important}
[data-rx-inline="rx-inline-c66ba7f8ab"]{margin-top:.25rem !important;color:var(--rx-muted) !important;font-size:.72rem !important}
[data-rx-inline="rx-inline-b4f8df57bf"]{margin-top:.15rem !important;color:var(--rx-muted) !important;font-size:.7rem !important}
[data-rx-inline="rx-inline-d4169b69b7"]{font-size:1.6rem !important}
[data-rx-inline="rx-inline-c6b76b8577"]{margin-right:4px !important}
[data-rx-inline="rx-inline-4d7489f6d0"]{background:var(--panel-bg) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:18px !important}
[data-rx-inline="rx-inline-a35eb3b51a"]{padding:2rem 1.8rem !important;text-align:right !important}
[data-rx-inline="rx-inline-f33ddc8c91"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-0d75823b20"]{color:var(--rx-ink) !important}
[data-rx-inline="rx-inline-327eeaf745"]{font-weight:800 !important}
[data-rx-inline="rx-inline-687c5ec762"]{display:flex !important;align-items:center !important;gap:.5rem !important}
[data-rx-inline="rx-inline-aa025b7114"]{width:1.1em !important;height:1.1em !important;margin:0 !important;flex-shrink:0 !important}
[data-rx-inline="rx-inline-7730e77e2a"]{color:var(--rx-ink) !important;margin:0 !important;cursor:pointer !important}
[data-rx-inline="rx-inline-b0816963d9"]{margin-top:2px !important}
[data-rx-inline="rx-inline-690f054c4e"]{margin-left:auto !important}
[data-rx-inline="rx-inline-e178ee7d11"]{font-size:2rem !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-6b99de8b69"]{display:none !important}
[data-rx-inline="rx-inline-d6e47aa9df"]{font-size:.9rem !important}
[data-rx-inline="rx-inline-4c92f4a024"]{background:rgba(var(--rx-accent-rgb), 0.14) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-ace6ab5a12"]{background:rgba(var(--rx-danger-rgb), 0.14) !important;color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-21467cdefa"]{background:rgba(96,165,250,.14) !important;color:var(--rx-info) !important}
[data-rx-inline="rx-inline-da3e9c4cd0"]{background:rgba(var(--rx-accent-rgb), 0.14) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-543962f430"]{background:rgba(250,204,21,.14) !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-8c088f2a2e"]{background:rgba(var(--rx-warning-rgb), 0.14) !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-bb3055d276"]{background:rgba(var(--rx-contrast-rgb), 0.098) !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-3dd2dd08c4"]{background:rgba(var(--rx-danger-rgb), 0.14) !important;color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-0dcba7666b"]{font-size:.62rem !important}
[data-rx-inline="rx-inline-0c63c0dc2b"]{text-align:center !important;padding:3rem 2rem !important}
[data-rx-inline="rx-inline-8c9c2b07a9"]{width:80px !important;height:80px !important;border-radius:20px !important;background:linear-gradient(135deg, rgba(var(--rx-accent-rgb), 0.15), rgba(var(--rx-accent-rgb), 0.1)) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.2) !important;display:flex !important;align-items:center !important;justify-content:center !important;margin:0 auto 1.5rem !important}
[data-rx-inline="rx-inline-071a7af73c"]{font-size:2.2rem !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-a77bf91cc6"]{color:var(--rx-ink) !important;font-weight:700 !important;margin-bottom:.5rem !important}
[data-rx-inline="rx-inline-a7cb8a776d"]{color:var(--rx-muted) !important;font-size:.9rem !important;margin-bottom:1.5rem !important;max-width:400px !important;margin-left:auto !important;margin-right:auto !important;line-height:1.7 !important}
[data-rx-inline="rx-inline-75a1aeaf1b"]{background:linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;border:none !important;border-radius:12px !important;padding:.7rem 1.8rem !important;color:var(--rx-on-brand) !important;cursor:pointer !important;font-family: var(--rx-font) !important;font-weight:600 !important;font-size:.9rem !important;display:inline-flex !important;align-items:center !important;gap:.5rem !important;box-shadow:0 4px 14px rgba(var(--rx-accent-rgb), 0.3) !important;transition:all .2s !important}
[data-rx-inline="rx-inline-4ec6a07265"]{background:var(--panel-bg) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.1) !important;border-radius:16px !important}
[data-rx-inline="rx-inline-de514ce072"]{border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.08) !important;direction:rtl !important}
[data-rx-inline="rx-inline-a66515706b"]{position:absolute !important;left:1rem !important;top:1rem !important;filter:invert(1) !important}
[data-rx-inline="rx-inline-f239d9d95c"]{color:var(--rx-ink) !important;font-weight:700 !important}
[data-rx-inline="rx-inline-1a2f969051"]{padding:1.5rem !important}
[data-rx-inline="rx-inline-2a3793a650"]{background:rgba(var(--rx-danger-rgb), 0.15) !important;border:1px solid rgba(var(--rx-danger-rgb), 0.3) !important;color:var(--rx-danger) !important;border-radius:10px !important;padding:.6rem 1rem !important;margin-bottom:1rem !important;font-size:.85rem !important;display:flex !important;align-items:center !important;gap:.4rem !important}
[data-rx-inline="rx-inline-cffe591801"]{color:var(--rx-ink-soft) !important;font-weight:600 !important}
[data-rx-inline="rx-inline-9c5c755783"]{color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-068032c5f5"]{color:var(--rx-muted) !important;font-size:.78rem !important;margin-top:.3rem !important}
[data-rx-inline="rx-inline-353354963a"]{padding:.6rem .8rem !important;background:rgba(var(--rx-accent-rgb), 0.08) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.2) !important;border-radius:10px !important;display:flex !important;align-items:center !important;gap:.5rem !important}
[data-rx-inline="rx-inline-fd75cfd836"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-ba3dbfc45e"]{color:var(--rx-accent) !important;font-size:.8rem !important}
[data-rx-inline="rx-inline-3162961074"]{color:var(--rx-muted) !important;font-weight:400 !important;font-size:.8rem !important}
[data-rx-inline="rx-inline-10549f9dfb"]{display:flex !important;justify-content:space-between !important;align-items:center !important;margin-top:.3rem !important}
[data-rx-inline="rx-inline-311e4d0f62"]{color:var(--rx-muted) !important;font-size:.75rem !important;line-height:1.7 !important}
[data-rx-inline="rx-inline-90f605eecd"]{color:var(--rx-muted) !important;font-size:.72rem !important;direction:ltr !important;white-space:nowrap !important}
[data-rx-inline="rx-inline-4a86346a72"]{color:var(--rx-muted) !important;font-size:.75rem !important}
[data-rx-inline="rx-inline-e24b26ab09"]{color:var(--rx-muted) !important;font-size:.72rem !important;direction:ltr !important}
[data-rx-inline="rx-inline-089afc04f5"]{color:var(--rx-muted) !important;font-size:.75rem !important;margin-top:.3rem !important;line-height:1.7 !important}
[data-rx-inline="rx-inline-4bbc89bf73"]{border-top:1px solid rgba(var(--rx-contrast-rgb), 0.08) !important;padding:1rem 1.5rem !important}
[data-rx-inline="rx-inline-702f1428c7"]{background:rgba(var(--rx-contrast-rgb), 0.05) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.15) !important;border-radius:10px !important;padding:.5rem 1.2rem !important;color:var(--rx-ink-soft) !important;cursor:pointer !important}
[data-rx-inline="rx-inline-0aa905c186"]{background:var(--panel-bg) !important;border:1px solid rgba(var(--rx-danger-rgb), 0.3) !important;border-radius:16px !important}
[data-rx-inline="rx-inline-49cb0065de"]{padding:2rem !important;text-align:center !important}
[data-rx-inline="rx-inline-784478ac6a"]{width:60px !important;height:80px !important;border-radius:50% !important;background:rgba(var(--rx-danger-rgb), 0.15) !important;display:flex !important;align-items:center !important;justify-content:center !important;margin:0 auto 1.25rem !important}
[data-rx-inline="rx-inline-ed5a4cf5e7"]{font-size:1.8rem !important;color:var(--rx-danger) !important}
[data-rx-inline="rx-inline-1b265cb7be"]{color:var(--rx-muted) !important;font-size:.9rem !important;margin-bottom:.25rem !important}
[data-rx-inline="rx-inline-602355d880"]{color:var(--rx-danger) !important;font-weight:700 !important;font-size:1rem !important;margin-bottom:1.25rem !important}
[data-rx-inline="rx-inline-11a3b04764"]{background:rgba(var(--rx-danger-rgb), 0.08) !important;border:1px solid rgba(var(--rx-danger-rgb), 0.2) !important;border-radius:10px !important;padding:.75rem 1rem !important;margin-bottom:1.5rem !important;text-align:right !important}
[data-rx-inline="rx-inline-da6c45debe"]{color:var(--rx-muted) !important;font-size:.8rem !important;display:flex !important;align-items:center !important;gap:.4rem !important;margin-bottom:.3rem !important}
[data-rx-inline="rx-inline-dff43d69d4"]{color:var(--rx-ink-soft) !important;font-size:.8rem !important;margin:0 !important;padding-right:1.2rem !important;list-style:disc !important}
[data-rx-inline="rx-inline-842252d1fb"]{justify-content:center !important}
[data-rx-inline="rx-inline-61cadb520f"]{background:rgba(var(--rx-contrast-rgb), 0.05) !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.15) !important;border-radius:10px !important;padding:.5rem 1.5rem !important;color:var(--rx-ink-soft) !important;cursor:pointer !important;font-family: var(--rx-font) !important;font-weight:600 !important}
[data-rx-inline="rx-inline-77b5be893b"]{background:linear-gradient(135deg,var(--rx-danger-fill),var(--rx-danger-fill)) !important;border:none !important;border-radius:10px !important;padding:.5rem 1.5rem !important;color:var(--rx-on-brand) !important;cursor:pointer !important;font-family: var(--rx-font) !important;font-weight:600 !important;display:flex !important;align-items:center !important;gap:.4rem !important}
[data-rx-inline="rx-inline-59b6bec58a"]{background:var(--panel-bg) !important;border:1px solid rgba(var(--rx-warning-rgb), 0.3) !important;border-radius:16px !important}
[data-rx-inline="rx-inline-f9649fb975"]{width:60px !important;height:60px !important;border-radius:50% !important;background:rgba(var(--rx-warning-rgb), 0.15) !important;display:flex !important;align-items:center !important;justify-content:center !important;margin:0 auto 1.25rem !important}
[data-rx-inline="rx-inline-3e578d07b9"]{font-size:1.6rem !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-35d17dbe6a"]{color:var(--rx-ink) !important;font-weight:700 !important}
[data-rx-inline="rx-inline-bc8c4556f0"]{background:rgba(var(--rx-warning-rgb), 0.08) !important;border:1px solid rgba(var(--rx-warning-rgb), 0.2) !important;border-radius:10px !important;padding:.75rem 1rem !important;margin:1rem 0 1.5rem !important;text-align:right !important}
[data-rx-inline="rx-inline-a5dee6e0da"]{color:var(--rx-ink-soft) !important;font-size:.8rem !important;display:flex !important;align-items:center !important;gap:.4rem !important}
[data-rx-inline="rx-inline-cfc294ffc2"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-e6cc7ff72e"]{background:linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)) !important;border:none !important;border-radius:10px !important;padding:.5rem 1.5rem !important;color:var(--rx-on-brand) !important;cursor:pointer !important;font-family: var(--rx-font) !important;font-weight:600 !important;display:flex !important;align-items:center !important;gap:.4rem !important}
[data-rx-inline="rx-inline-32db495cc2"]{color:var(--rx-muted) !important;font-size:.85rem !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-a5982facce"]{font-size:.75rem !important}
[data-rx-inline="rx-inline-e17cc4420a"]{color:var(--rx-muted) !important;font-size:.88rem !important;margin:0 !important}
[data-rx-inline="rx-inline-f6909f80c2"]{font-size:.82rem !important}
[data-rx-inline="rx-inline-5915d497b6"]{text-align:left !important;white-space:nowrap !important}
[data-rx-inline="rx-inline-818a88bb31"]{display:flex !important;gap:.5rem !important;margin-bottom:1rem !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-213c7882cb"]{max-width:320px !important}
[data-rx-inline="rx-inline-c799d6183e"]{text-decoration:none !important;display:inline-flex !important;align-items:center !important}
[data-rx-inline="rx-inline-fda9b4dca7"]{color:var(--rx-muted) !important;text-align:center !important;padding:2rem 1rem !important}
[data-rx-inline="rx-inline-5a914a766f"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;border-color:rgba(var(--rx-accent-rgb), 0.35) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-3fe0336230"]{display:flex !important;justify-content:center !important;gap:.4rem !important;padding-top:1rem !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-0339a10f12"]{text-decoration:none !important;padding:.35rem .75rem !important;border-radius:8px !important;font-size:.8rem !important}
[data-rx-inline="rx-inline-f5f16da686"]{display:none !important;position:fixed !important;inset:0 !important;background:rgba(2,6,23,.72) !important;backdrop-filter:blur(4px) !important;align-items:center !important;justify-content:center !important;z-index:1050 !important;padding:1rem !important}
[data-rx-inline="rx-inline-902c5bf7dd"]{width:100% !important;max-width:480px !important;max-height:82vh !important;background:#0b1220 !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.126) !important;border-radius:16px !important;display:flex !important;flex-direction:column !important;overflow:hidden !important}
[data-rx-inline="rx-inline-87f46bd3c0"]{padding:1rem 1.1rem !important;border-bottom:1px solid rgba(var(--rx-contrast-rgb), 0.08) !important;display:flex !important;align-items:center !important;justify-content:space-between !important}
[data-rx-inline="rx-inline-ccd9a78bd9"]{background:rgba(var(--rx-contrast-rgb), 0.08) !important;border:none !important;color:var(--rx-ink-soft) !important;width:32px !important;height:32px !important;border-radius:50% !important;cursor:pointer !important}
[data-rx-inline="rx-inline-62270af19a"]{flex:1 !important;overflow-y:auto !important;padding:1rem !important}
[data-rx-inline="rx-inline-c39479378e"]{color:var(--rx-muted) !important;text-align:center !important;padding:2rem !important}
[data-rx-inline="rx-inline-41923db572"]{padding:.7rem .9rem !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.105) !important;border-radius:10px !important;margin-bottom:.5rem !important;cursor:pointer !important;color:var(--rx-ink) !important}
[data-rx-inline="rx-inline-81f259db40"]{color:var(--rx-muted) !important;font-size:.78rem !important}
[data-rx-inline="rx-inline-5b19f402ef"]{color:var(--rx-muted) !important;font-size:.8rem !important;margin-top:.3rem !important}
[data-rx-inline="rx-inline-c463949e09"]{display:flex !important;flex-direction:column !important;align-items:flex-start !important;margin-bottom:.6rem !important}
[data-rx-inline="rx-inline-c463949e09"].ch-user{align-items:flex-end !important}
[data-rx-inline="rx-inline-43f81ce692"]{max-width:82% !important;background:rgba(255,255,255,.07) !important;color:var(--rx-ink) !important;padding:.55rem .8rem !important;border-radius:12px !important;font-size:.84rem !important;line-height:1.7 !important;overflow-wrap:anywhere !important}
[data-rx-inline="rx-inline-c463949e09"].ch-user > [data-rx-inline="rx-inline-43f81ce692"]{background:linear-gradient(135deg,#0f766e,#115e59) !important}
[data-rx-inline="rx-inline-608739f870"]{display:flex !important;gap:.4rem !important;margin-top:.25rem !important;color:var(--rx-muted) !important;font-size:.72rem !important}
[data-rx-inline="rx-inline-c5cc0cbaa7"]{background:var(--rx-faint) !important}
[data-rx-inline="rx-inline-2d07dbcfdd"]{flex-direction:column !important;align-items:flex-start !important;gap:6px !important}
[data-rx-inline="rx-inline-8f4b2e61e3"]{max-width:100% !important;white-space:normal !important}
[data-rx-inline="rx-inline-53bee5509f"]{color:var(--theme-muted) !important}
[data-rx-inline="rx-inline-c4fb2b5a8a"]{display:flex !important;justify-content:center !important;align-items:center !important;gap:.4rem !important;padding-top:1rem !important;flex-wrap:wrap !important}
[data-rx-inline="rx-inline-0747bfb742"]{color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-2239d6d55d"]{margin-top:1rem !important}
[data-rx-inline="rx-inline-248fd4434b"]{margin-bottom:.75rem !important}
[data-rx-inline="rx-inline-4cbebe5fa9"]{margin-top:.8rem !important;margin-bottom:0 !important}
[data-rx-inline="rx-inline-0281036453"]{display:block !important;font-size:1.7rem !important;margin-bottom:.4rem !important}
[data-rx-inline="rx-inline-51b330126c"]{direction:ltr !important;text-align:left !important}
[data-rx-inline="rx-inline-881c5b873c"]{color:var(--rx-muted) !important;font-weight:400 !important}
[data-rx-inline="rx-inline-c2405db565"]{margin-top:-.3rem !important}
[data-rx-inline="rx-inline-2f3f7d777c"]{max-width:280px !important}
[data-rx-inline="rx-inline-3ffdc92604"]{margin-bottom:1.25rem !important}
[data-rx-inline="rx-inline-cccfa4560d"]{display:inline !important}
[data-rx-inline="rx-inline-561f378bf0"]{margin-bottom:1.5rem !important}
[data-rx-inline="rx-inline-ef0b7a1148"]{margin-bottom:0 !important}
[data-rx-inline="rx-inline-b700c0fc47"]{margin-top:1.25rem !important}
[data-rx-inline="rx-inline-0486f781ae"]{align-items:flex-start !important}
[data-rx-inline="rx-inline-86436569a2"]{position:sticky !important;top:1.5rem !important}
[data-rx-inline="rx-inline-a88071cf58"]{padding:1.25rem !important}
[data-rx-inline="rx-inline-a2d7bc67e2"]{font-size:2rem !important;display:block !important;margin-bottom:.5rem !important;color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-02d1b48fd3"]{position:absolute !important;bottom:16px !important;left:16px !important;transition:left .2s,right .2s !important}
[data-rx-inline="rx-inline-79c75ec453"]{margin-top:1rem !important;padding:1rem !important;background:rgba(var(--rx-contrast-rgb), 0.04) !important;border-radius:12px !important;border:1px solid rgba(var(--rx-contrast-rgb), 0.07) !important}
[data-rx-inline="rx-inline-f8c2237425"]{color:var(--rx-ink-soft) !important;font-size:.82rem !important;line-height:1.6 !important;margin:0 !important}
[data-rx-inline="rx-inline-1d4aa3531f"]{color:var(--rx-accent) !important;margin-left:.35rem !important}
[data-rx-inline="rx-inline-9c757c8a1d"]{background:linear-gradient(135deg,rgba(var(--rx-accent-rgb), 0.15),rgba(var(--rx-accent-rgb), 0.05)) !important;border-bottom-color:rgba(var(--rx-accent-rgb), 0.15) !important}
[data-rx-inline="rx-inline-df9edfcae7"]{background:linear-gradient(135deg,var(--rx-brand),var(--rx-brand)) !important}
[data-rx-inline="rx-inline-c6fb6b1001"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;border-color:rgba(var(--rx-accent-rgb), 0.3) !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-7a2fb5ac8a"]{margin:.75rem 0 1rem !important;padding:.9rem 1rem !important;background:rgba(var(--rx-accent-rgb), 0.08) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.2) !important;border-radius:12px !important;direction:rtl !important}
[data-rx-inline="rx-inline-340a7e58d0"]{display:flex !important;gap:.75rem !important;align-items:flex-start !important;margin-bottom:.5rem !important}
[data-rx-inline="rx-inline-e2b3162045"]{color:var(--rx-accent) !important;font-size:.8rem !important;white-space:nowrap !important;font-weight:700 !important;min-width:80px !important}
[data-rx-inline="rx-inline-ba14abbcb9"]{font-size:.78rem !important;word-break:break-all !important;direction:ltr !important}
[data-rx-inline="rx-inline-3b3667e48f"]{display:flex !important;gap:.75rem !important;align-items:center !important}
[data-rx-inline="rx-inline-79c78fada9"]{font-size:.78rem !important;direction:ltr !important}
[data-rx-inline="rx-inline-0553d5bcba"]{margin-bottom:1.25rem !important;display:inline-flex !important}
[data-rx-inline="rx-inline-b310ca1dcf"]{margin-top:.5rem !important}
[data-rx-inline="rx-inline-425e12b118"]{background:linear-gradient(135deg,rgba(var(--rx-success-rgb), 0.15),rgba(var(--rx-success-rgb), 0.05)) !important;border-bottom-color:rgba(var(--rx-success-rgb), 0.15) !important}
[data-rx-inline="rx-inline-89e6bfaa99"]{background:linear-gradient(135deg,var(--rx-success-fill),var(--rx-success-fill)) !important}
[data-rx-inline="rx-inline-7c960eb063"]{background:rgba(var(--rx-success-rgb), 0.15) !important;border-color:rgba(var(--rx-success-rgb), 0.3) !important;color:var(--rx-success) !important}
[data-rx-inline="rx-inline-46eff93a26"]{margin:.75rem 0 1rem !important}
[data-rx-inline="rx-inline-068a8ddc17"]{grid-column:1/-1 !important}
[data-rx-inline="rx-inline-32f2105231"]{background:linear-gradient(135deg,rgba(var(--rx-warning-rgb), 0.15),rgba(var(--rx-warning-rgb), 0.05)) !important;border-bottom-color:rgba(var(--rx-warning-rgb), 0.15) !important}
[data-rx-inline="rx-inline-7bcd49fe1f"]{background:linear-gradient(135deg,var(--rx-warning-fill),var(--rx-warning-fill)) !important}
[data-rx-inline="rx-inline-7fd583b759"]{background:rgba(var(--rx-warning-rgb), 0.15) !important;border-color:rgba(var(--rx-warning-rgb), 0.3) !important;color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-a378516d5a"]{margin:.75rem 0 1.25rem !important}
[data-rx-inline="rx-inline-e9520ddd6e"]{margin-bottom:.5rem !important}
[data-rx-inline="rx-inline-b3a9d9d515"]{margin:0 0 1.25rem !important}
[data-rx-inline="rx-inline-1bbce3c856"]{padding:.9rem 1rem !important;background:rgba(var(--rx-warning-rgb), 0.08) !important;border:1px solid rgba(var(--rx-warning-rgb), 0.2) !important;border-radius:12px !important;direction:rtl !important}
[data-rx-inline="rx-inline-20cf770741"]{color:var(--rx-ink-soft) !important;font-size:.82rem !important;line-height:1.8 !important;margin:0 !important}
[data-rx-inline="rx-inline-bc0f085310"]{color:var(--rx-warning) !important;margin-left:.35rem !important}
[data-rx-inline="rx-inline-aa6b0ac9f7"]{color:#29a9eb !important}
[data-rx-inline="rx-inline-89137e7117"]{margin-left:.4rem !important;color:var(--rx-accent) !important}
[data-rx-inline="rx-inline-d7dfebfb00"]{padding:1.5rem 1.25rem !important}
[data-rx-inline="rx-inline-4a270024bb"]{width:100% !important;justify-content:center !important}
[data-rx-inline="rx-inline-6a6a237e2c"]{color:var(--rx-warning) !important}
[data-rx-inline="rx-inline-ba22006d24"]{width:100% !important;height:100% !important;object-fit:contain !important;padding:4px !important;box-sizing:border-box !important}
[data-rx-inline="rx-inline-6d1790115e"]{--c:var(--rx-info) !important}
[data-rx-inline="rx-inline-d0cef6d654"]{--c:var(--rx-success) !important}
[data-rx-inline="rx-inline-55d0a5c0c7"]{--c:var(--rx-accent) !important}
[data-rx-inline="rx-inline-a1e91b9443"]{--c:var(--rx-info) !important}
[data-rx-inline="rx-inline-61f5f15b80"]{--c:var(--rx-warning) !important}
[data-rx-inline="rx-inline-cf5ce78b42"]{--c:var(--rx-warning) !important}
[data-rx-inline="rx-inline-32e2b15d9a"]{--c:var(--rx-accent) !important}
[data-rx-inline="rx-inline-b6f3300748"]{--c:var(--rx-accent) !important}
[data-rx-inline="rx-inline-3b513bc584"]{background:var(--theme-hover) !important}
[data-rx-inline="rx-inline-4edeb9e71d"]{text-decoration:none !important}
[data-rx-inline="rx-inline-2852335e87"]{width:26px !important;height:26px !important;font-size:.68rem !important}
[data-rx-inline="rx-inline-1da9facb4d"]{margin:0 !important}
[data-rx-inline="rx-inline-d0567bb1ab"]{grid-column:1/-1 !important;align-self:center !important}
[data-rx-inline="rx-inline-21e4ea07b3"]{margin:auto !important}
[data-rx-inline="rx-inline-1e697dee60"]{display:none !important;flex-direction:column !important;min-height:0 !important;flex:1 !important}
[data-rx-inline="rx-inline-725297c13d"]{flex:1 !important;min-width:0 !important}
[data-rx-inline="rx-inline-0f0d4b009a"]{cursor:default !important;color:var(--text-3) !important}
[data-rx-inline="rx-inline-0b3aaee073"]{color:var(--ok) !important}
[data-rx-inline="rx-inline-81fa6ce477"]{color:var(--warn) !important}
[data-rx-inline="rx-inline-497726e8c9"]{color:var(--danger) !important}
[data-rx-inline="rx-inline-c300e1dc00"]{color:var(--text-3) !important;font-size:.8rem !important}
[data-rx-inline="rx-inline-4b7e326560"]{width:44px !important;height:44px !important;font-size:1rem !important}
[data-rx-inline="rx-inline-9e9f44ff1e"]{display:none !important;background:var(--surface-2) !important;border-color:var(--border-strong) !important}
[data-rx-inline="rx-inline-fdc6c70f15"]{margin-bottom:.7rem !important}
[data-rx-inline="rx-inline-56b5ac76f2"]{display:none !important;position:fixed !important;inset:0 !important;background:rgba(2,6,23,.72) !important;backdrop-filter:blur(4px) !important;align-items:center !important;justify-content:center !important;z-index:1100 !important;padding:1rem !important}
[data-rx-inline="rx-inline-1a472bbc10"]{width:100% !important;max-width:420px !important;max-height:80vh !important;background:var(--surface) !important;border:1px solid var(--border-strong) !important;border-radius:16px !important;display:flex !important;flex-direction:column !important;overflow:hidden !important}
[data-rx-inline="rx-inline-f5e0531efb"]{padding:.85rem 1rem !important;border-bottom:1px solid var(--border) !important;display:flex !important;align-items:center !important;justify-content:space-between !important}
[data-rx-inline="rx-inline-ca974442a1"]{color:var(--text) !important;font-size:.88rem !important}
[data-rx-inline="rx-inline-2b1a7b5a4c"]{flex:1 !important;overflow-y:auto !important;padding:.9rem !important}
[data-rx-inline="rx-inline-a8939b1b02"]{width:100% !important;max-width:640px !important;height:min(680px, 88vh) !important;border:1px solid var(--border-strong) !important;border-radius:18px !important;display:flex !important;flex-direction:column !important;overflow:hidden !important}
[data-rx-inline="rx-inline-63404e730e"]{flex:1 !important;overflow-y:auto !important;padding:1.1rem 1.3rem 1.4rem !important}
[data-rx-inline="rx-inline-fb1d0d1ae0"]{margin-bottom:.9rem !important}
[data-rx-inline="rx-inline-f849c0b62f"]{direction:rtl !important}
[data-rx-inline="rx-inline-f4ea0b84b7"]{background:linear-gradient(135deg, var(--rx-brand), var(--rx-brand)) !important;color:var(--rx-on-brand) !important}
[data-rx-inline="rx-inline-bb398a9ad8"]{background:linear-gradient(135deg, var(--rx-success-fill), var(--rx-success-fill)) !important;color:var(--rx-on-brand) !important}
[data-rx-inline="rx-inline-164c8dd480"]{background:linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)) !important;color:var(--rx-on-brand) !important}
[data-rx-inline="rx-inline-66d3dc42ab"]{background:rgba(var(--rx-accent-rgb), 0.15) !important;color:var(--rx-accent) !important;border:1px solid rgba(var(--rx-accent-rgb), 0.3) !important;padding:0.3rem 0.65rem !important;border-radius:8px !important;font-size:0.75rem !important;font-weight:600 !important}
[data-rx-inline="rx-inline-cb8a8ef79f"]{font-size:0.7rem !important}
[data-rx-inline="rx-inline-70977072bf"]{color:var(--rx-muted) !important}
[data-rx-inline="rx-inline-27b809b7e9"]{font-size:1.5rem !important;margin-left:0.5rem !important}
[data-rx-inline="rx-inline-a0f105aa49"]{animation-delay:0.1s !important}
[data-rx-inline="rx-inline-01454d0828"]{animation-delay:0.2s !important}
[data-rx-inline="rx-inline-b4f1ffc9ef"]{animation-delay:0.3s !important}
[data-rx-inline="rx-inline-afeead8bc6"]{font-size:2.5rem !important;display:block !important;margin-bottom:1rem !important}
[data-rx-inline="rx-inline-37ab1129de"]{text-align:center !important;padding:1rem !important;color:var(--rx-faint) !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-c18932b6b6"]{text-align:center !important;padding:1rem !important;color:var(--rx-danger) !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-033503bc75"]{text-align:center !important;padding:1rem !important;color:var(--rx-faint) !important;font-size:0.85rem !important}
[data-rx-inline="rx-inline-41228f4e7b"]{padding:1rem 1.5rem !important;border-top:1px solid rgba(var(--rx-contrast-rgb), 0.06) !important;text-align:center !important}
[data-rx-inline="rx-inline-a00775fccb"]{max-width:200px !important;margin:0 auto !important;padding:0.7rem 1.5rem !important;font-size:0.9rem !important}
[data-rx-inline="rx-inline-b5a0ed99e8"]{border-top:3px solid rgba(var(--rx-warning-rgb), 0.5) !important}
[data-rx-inline="rx-inline-2b19ceb4ba"]{background:linear-gradient(135deg, rgba(var(--rx-warning-rgb), 0.1), rgba(var(--rx-warning-rgb), 0.03)) !important}
[data-rx-inline="rx-inline-e46f8a4114"]{background:linear-gradient(135deg, rgba(var(--rx-warning-rgb), 0.25), rgba(var(--rx-warning-rgb), 0.15)) !important;border-color:rgba(var(--rx-warning-rgb), 0.4) !important;box-shadow:0 0 30px rgba(var(--rx-warning-rgb), 0.2) !important}
[data-rx-inline="rx-inline-344aa3c4ff"]{background:linear-gradient(135deg, var(--rx-warning-fill), var(--rx-warning-fill)) !important;-webkit-background-clip:text !important;-webkit-text-fill-color:transparent !important;background-clip:text !important}
[data-rx-inline="rx-inline-821506f745"]{color:var(--indigo-light) !important}
[data-rx-inline="rx-inline-034359d7a8"]{width:0% !important}
[data-rx-inline="rx-inline-a1d1fdc634"]{color:#ff79c6 !important}
[data-rx-inline="rx-inline-4488952ab3"]{color:#a5d6ff !important}
[data-rx-inline="rx-inline-b952edd7f6"]{color:var(--rx-ink) !important}
[data-rx-inline="rx-inline-7979de71db"]{margin-top:1rem !important;text-align:center !important}
[data-rx-inline="rx-inline-132348dcf3"]{font-size:0.82rem !important;color:var(--text-light) !important;text-align:center !important;margin-bottom:1.25rem !important}
[data-rx-inline="rx-inline-b52972c5fd"]{text-align:center !important;display:block !important;margin-bottom:0.75rem !important}
[data-rx-inline="rx-inline-a847778823"]{margin-top:1.25rem !important}
[data-rx-inline="rx-inline-e4c75535a2"]{margin-top:1.35rem !important}
[data-rx-inline="rx-inline-7b4fec4b4f"]{margin-bottom:.75rem !important;font-size:.85rem !important}

/* =====================================================================================
   RoxanAI identity layer — loaded last.
   ---------------------------------------------------------------------------------------
   Brings the older page styles (40-pages/) onto the shared look: paper canvas, ink text,
   one teal brand colour, flat surfaces, the same radii and controls everywhere.
   Every value comes from 10-tokens/tokens.css, so these rules work in both the light and
   dark theme. The !important flags exist only to beat legacy page rules; when a page is
   migrated to tokens/components, the matching override here should shrink, not grow.
   ===================================================================================== */

html, body {
    font-family: var(--rx-font);
    text-rendering: optimizeLegibility;
}

/* ---------- Admin panel: canvas and chrome ---------------------------------------- */

:root[data-admin-palette][data-theme] .admin-body,
:root[data-admin-palette][data-theme] .admin-content,
:root[data-admin-palette][data-theme] .content-wrapper,
:root[data-admin-palette][data-theme] .admin-content :is(.kb-wrapper, .dashboard-wrapper, .dashboard-page, .page-wrapper, .settings-page, .page-shell) {
    background: var(--rx-page) !important;
    background-image: none !important;
}

:root[data-admin-palette] .admin-content {
    color: var(--rx-ink);
}

/* No ambient glows or animated backdrops behind panel pages. */
:root[data-admin-palette] .admin-wrapper::before,
:root[data-admin-palette] .admin-wrapper::after,
:root[data-admin-palette] .admin-content :is(.kb-wrapper, .dashboard-wrapper, .dashboard-page, .page-wrapper, .simulator-wrapper, .policies-wrapper, .apikey-wrapper, .requests-wrapper)::before,
:root[data-admin-palette] .admin-content :is(.kb-wrapper, .dashboard-wrapper, .dashboard-page, .page-wrapper, .simulator-wrapper, .policies-wrapper, .apikey-wrapper, .requests-wrapper)::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

/* Top bar, primary sidebar, mobile sidebar and chatbot context sidebar share one surface. */
:root[data-admin-palette][data-theme] :is(.admin-navbar, .admin-sidebar-permanent, .admin-sidebar, .chatbot-context-sidebar) {
    background: var(--rx-surface) !important;
    color: var(--rx-ink) !important;
    border-color: var(--rx-line) !important;
}
:root[data-admin-palette][data-theme] .admin-navbar { box-shadow: 0 1px 0 var(--rx-line) !important; }
:root[data-admin-palette][data-theme] :is(.admin-sidebar-permanent, .chatbot-context-sidebar) { box-shadow: 1px 0 0 var(--rx-line) !important; }

:root[data-admin-palette][data-theme] .admin-navbar :is(a, button, i, .navbar-toggler-icon, .navbar-brand, .nav-link, .user-name, .user-role),
:root[data-admin-palette][data-theme] :is(.admin-sidebar-permanent, .admin-sidebar) :is(a, button, i, .sidebar-brand, .nav-link, .sidebar-label, .sidebar-heading),
:root[data-admin-palette][data-theme] .chatbot-context-sidebar :is(a, button, i, select, .sidebar-bot-context-label) {
    color: var(--rx-ink-soft) !important;
}

:root[data-admin-palette][data-theme] :is(.admin-sidebar-permanent, .admin-sidebar, .chatbot-context-sidebar) .nav-link.active {
    background: var(--rx-brand-soft) !important;
    color: var(--rx-brand-ink) !important;
    border-color: transparent !important;
}
:root[data-admin-palette][data-theme] :is(.admin-sidebar-permanent, .admin-sidebar, .chatbot-context-sidebar) .nav-link.active i {
    color: var(--rx-accent) !important;
}

/* ---------- Admin panel: content kit ---------------------------------------------- */

:root[data-admin-palette][data-theme] .admin-content :is(.card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], [class$="-tile"], [class*="-tile "]):not(.alert):not(.toast):not([class*="danger"]):not([class*="success"]):not([class*="warning"]) {
    background: var(--rx-surface) !important;
    border-color: var(--rx-line) !important;
    color: var(--rx-ink) !important;
    border-radius: var(--rx-radius-panel) !important;
    box-shadow: var(--rx-shadow-panel) !important;
    backdrop-filter: none !important;
}

:root[data-admin-palette][data-theme] .admin-content :is(.kb-toolbar, .filter-toolbar, .search-toolbar, .filter-section) {
    background: var(--rx-surface) !important;
    border-color: var(--rx-line) !important;
}

:root[data-admin-palette] .admin-content :is(h1, h2, h3, h4, h5, h6, .page-title, .section-title) {
    color: var(--rx-ink);
    letter-spacing: -.025em;
}

:root[data-admin-palette] .admin-content a:not(.btn):not(.nav-link) {
    color: var(--rx-accent);
}

/* Controls */
:root[data-admin-palette] .admin-content :is(.btn, button.btn, .form-control, .form-select, input, select, textarea) {
    border-radius: var(--rx-radius-control);
}

:root[data-admin-palette][data-theme] .admin-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea, .form-control, .form-select, .form-control-dark) {
    background-color: var(--rx-input) !important;
    border-color: var(--rx-line-input) !important;
    color: var(--rx-ink) !important;
}

:root[data-admin-palette][data-theme] .admin-content :is(input, select, textarea, .form-control, .form-select):focus {
    border-color: var(--rx-brand) !important;
    box-shadow: var(--rx-focus-ring) !important;
    outline: none;
}

:root[data-admin-palette][data-theme] .admin-content :is(.btn-primary, button.btn-primary, .btn-primary-glow, .btn-create, .btn-create-lg, .primary-button, .action-primary) {
    background: var(--rx-brand) !important;
    border-color: var(--rx-brand) !important;
    color: var(--rx-on-brand) !important;
    box-shadow: none !important;
}
:root[data-admin-palette][data-theme] .admin-content :is(.btn-primary, button.btn-primary, .btn-primary-glow, .btn-create, .btn-create-lg, .primary-button, .action-primary):hover {
    background: var(--rx-brand-hover) !important;
    border-color: var(--rx-brand-hover) !important;
}

/* Tables */
:root[data-admin-palette] .admin-content :is(thead, .table thead) {
    background: var(--rx-surface-3);
    color: var(--rx-ink-soft);
}
:root[data-admin-palette] .admin-content .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--rx-ink);
    --bs-table-border-color: var(--rx-line);
    --bs-table-hover-bg: var(--rx-hover);
    --bs-table-hover-color: var(--rx-ink);
}

/* Section icons */
:root[data-admin-palette][data-theme] .admin-content :is(.kb-summary-icon, .kb-icon) {
    background: var(--rx-brand-soft) !important;
    color: var(--rx-accent) !important;
}

/* ---------- Pages with their own layout that load this bundle (operator desk) ------------
   The public site and sign-in pages use roxan-site.css instead; /docs/* and /brand/preview keep their own palettes. */

body:not(.admin-body):not(.auth-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) {
    background-color: var(--rx-page) !important;
    color: var(--rx-ink);
}
body:not(.admin-body):not(.auth-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) .bg-gradient-animated { display: none !important; }

body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) :is(button, .btn, .form-control, .form-select, input, select, textarea) {
    border-radius: var(--rx-radius-control);
}
body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) :is(h1, h2, h3, h4, h5, h6) {
    letter-spacing: -.025em;
}
body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) :is(.card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]) {
    border-radius: var(--rx-radius-panel);
}
body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) .btn-primary {
    background-color: var(--rx-brand);
    border-color: var(--rx-brand);
    color: var(--rx-on-brand);
}
body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) .btn-primary:hover {
    background-color: var(--rx-brand-hover);
    border-color: var(--rx-brand-hover);
}

/* ---------- Small shared brand pieces --------------------------------------------- */

.profile-brand-identity {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 34px;
    padding: .25rem .35rem .75rem;
    color: var(--rx-muted);
}
.profile-brand-identity span {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--rx-brand);
    box-shadow: 0 0 0 4px var(--rx-brand-soft);
}
.roxan-footer-mark { width: 20px; height: 20px; }
/* Customer workspace, shared shell and cross-page component language.
   This layer is customer-only; admin and operator surfaces keep their own layout/theme. */
body.customer-panel.admin-body {
    min-height: 100vh;
    background: var(--rx-page) !important;
    background-image: none !important;
    color: var(--rx-ink);
    overflow-x: clip;
}

body.customer-panel .admin-wrapper::before,
body.customer-panel .admin-wrapper::after { content: none !important; display: none !important; }

/* admin-shell.css's blanket light-theme span-color override (`span:not(.badge):not(.status-badge)
   :not(.keyword-tag) { color: var(--rx-ink-soft) !important }`) only excludes the exact class name
   "badge", not any of the many badge-*/ch-badge/chip-style span classes the redesign and older pages
   use for semantic (success/warning/danger/info/brand) colored text across the whole customer panel.
   Rather than chase every individual class, cancel that rule wherever the span is classed at all —
   any span the markup intentionally gave a class is making a styling choice, so let page CSS win;
   plain unclassed spans (rare, usually inline text wrappers) keep the legacy ink-soft default. */
body.customer-panel span[class] { color: unset !important; }
body.customer-panel .rx-remaining-requests.is-positive { color: var(--rx-success) !important; }
body.customer-panel .rx-remaining-requests.is-negative { color: var(--rx-danger) !important; }

/* Across many KnowledgeBase pages (Content, Faqs, LiveChat, SlaSettings, Surveys, WidgetFeedback, …)
   the legacy graphite palette gives "active"/"current" chips, pills and pager numbers a SOLID
   var(--theme-accent-strong) (= var(--rx-brand), a dark teal) fill with near-black ink text on top —
   this unconditionally fires for customer-panel sessions too (see note on .kb-chip.is-current above)
   and is the repeated "dark green + black" complaint. Replace with the soft/tinted active treatment
   used everywhere else in the redesign. */
body.customer-panel .pager-num.is-current,
body.customer-panel .pager-links a.active,
body.customer-panel .hr-pager .current { background: var(--rx-brand-soft) !important; border-color: var(--rx-brand-ring) !important; color: var(--rx-brand-ink) !important; }
body.customer-panel .faq-badge.active,
body.customer-panel .kb-chip.active,
body.customer-panel .filter-chip.active,
body.customer-panel .tab-trigger.active { background: var(--rx-brand-soft) !important; border-color: var(--rx-brand-ring) !important; color: var(--rx-brand-ink) !important; box-shadow: none !important; }
body.customer-panel .admin-wrapper.customer-panel-wrapper {
    display: block;
    min-height: 100vh !important;
    padding-top: var(--rx-navbar-height);
    margin: 0;
    position: relative;
}

/* Fixed right rail with a full wordmark; one calm topbar for the rest of the workspace. */
body.customer-panel .admin-sidebar-permanent {
    position: fixed;
    inset: 0 0 0 auto;
    width: var(--cp-rail, 258px) !important;
    padding: 0 14px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--rx-surface) !important;
    border: 0 !important;
    border-inline-start: 1px solid var(--rx-line) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    z-index: 1040;
    transition: transform .24s ease;
}
body.customer-panel .customer-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    margin: 0 1px 10px;
    padding: 11px 7px;
    border-bottom: 1px solid var(--rx-line);
    color: var(--rx-ink);
    text-decoration: none;
}
body.customer-panel .customer-sidebar-brand img { display: block; flex: 0 0 42px; width: 42px; height: 42px; object-fit: contain; }
body.customer-panel .customer-sidebar-brand span { display: grid; gap: 2px; }
body.customer-panel .customer-sidebar-brand strong { font-size: .92rem; font-weight: 900; }
body.customer-panel .customer-sidebar-brand small { color: var(--rx-muted); font-size: .68rem; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav { padding: .2rem 0 .6rem; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav > ul { gap: 0; }

/* Each section (heading + its links) reads as one soft card, not a loose list. */
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item { padding: 0; margin: 0; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item:has(+ .nav-item.mt-3),
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item:last-child { margin-bottom: 2px; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 { padding: .75rem 0 0 !important; margin-top: .4rem !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3::before { display: none; }
body.customer-panel .admin-sidebar-permanent .sidebar-heading {
    display: block !important;
    padding: .2rem .55rem .35rem !important;
    margin: 0 !important;
    background: transparent !important;
    color: var(--rx-faint) !important;
    font-size: .63rem !important;
    font-weight: 850 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    border-radius: 0 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link {
    min-height: 38px;
    padding: .38rem .55rem !important;
    margin: 0 .15rem !important;
    gap: .62rem;
    border: 0 !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: var(--rx-ink-soft) !important;
    font-size: .76rem;
    font-weight: 660;
    line-height: 1.45;
    box-shadow: none !important;
    transform: none !important;
    transition: background .18s, color .18s !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link i {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    min-width: 27px;
    place-items: center;
    border-radius: 9px;
    background: var(--rx-surface-2);
    color: var(--rx-muted) !important;
    font-size: .84rem !important;
    opacity: 1 !important;
    filter: none !important;
    transition: background .18s, color .18s, transform .18s;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link:hover { background: var(--rx-surface-2) !important; color: var(--rx-ink) !important; transform: none !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link:hover i { background: var(--rx-brand-soft) !important; color: var(--rx-brand) !important; transform: rotate(-5deg); opacity: 1 !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active {
    background: var(--rx-brand-soft) !important; color: var(--rx-brand-ink) !important; font-weight: 820 !important;
    border-inline-end: 0 !important; box-shadow: none !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active i {
    background: var(--rx-brand) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 3px 8px -2px rgba(var(--rx-brand-rgb), .45);
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active::after { display: none; }
body.customer-panel .admin-sidebar-permanent .sidebar-label { flex: 1; text-align: right; }
body.customer-panel .admin-sidebar-permanent .nav-link:focus-visible { outline: 2px solid var(--rx-brand); outline-offset: 2px; }

/* The legacy graphite admin palette (KnowledgeBase/Index.css, gated on [data-admin-palette] which is
   set unconditionally for every panel, customer included) repaints these as a solid dark-teal fill.
   The blanket light-theme span-color override (admin-shell.css) separately flattens every chip's
   count badge to ink-soft. Both fights need a customer-panel-scoped override to win. */
body.customer-panel .kb-chip { background: rgba(var(--rx-contrast-rgb), 0.04) !important; border-color: rgba(var(--rx-contrast-rgb), 0.1) !important; color: var(--rx-ink-soft) !important; }
body.customer-panel .kb-chip.is-current { background: var(--rx-brand-soft) !important; border-color: var(--rx-brand-ring) !important; color: var(--rx-brand-ink) !important; }
body.customer-panel .kb-chip-count { background: rgba(var(--rx-contrast-rgb), 0.08) !important; color: inherit !important; }

body.customer-panel .admin-navbar {
    inset: 0 var(--cp-rail, 258px) auto 0;
    width: auto;
    height: var(--rx-navbar-height);
    min-height: var(--rx-navbar-height);
    padding: 0 24px;
    background: var(--rx-surface) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rx-line) !important;
    box-shadow: none !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1030;
}
body.customer-panel .admin-navbar > .container-fluid { height: 100%; padding: 0; justify-content: flex-start !important; }
body:is(.customer-panel, .customer-account) .admin-navbar > .container-fluid > .d-flex:last-child { margin-inline-start: auto; }
body.customer-panel .admin-navbar .navbar-brand { display: none !important; }
body.customer-panel .admin-navbar .navbar-collapse { display: none !important; }
body.customer-panel .admin-navbar .navbar-toggler { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 !important; padding: 0; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-surface); box-shadow: none; }
body.customer-panel .admin-navbar .navbar-toggler-icon { width: 1.1em; height: 1.1em; filter: invert(29%) sepia(17%) saturate(976%) hue-rotate(132deg) brightness(88%); }
body.customer-panel .admin-navbar .user-profile-dropdown { display: block !important; }
body.customer-panel .admin-navbar .user-profile-dropdown.d-none { display: block !important; }
/* Header trigger: a text identity chip, not a colored badge/button. */
body.customer-panel .admin-navbar .user-chip-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    height: 42px; max-width: 220px; padding: 0 .8rem 0 .65rem;
    border: 1px solid var(--rx-line); border-radius: 999px;
    background: var(--rx-surface); box-shadow: none;
    color: var(--rx-ink-soft); transition: border-color .18s, background .18s, color .18s;
}
body.customer-panel .admin-navbar .user-chip-btn:hover { border-color: var(--rx-brand-ring); background: var(--rx-brand-soft); color: var(--rx-brand-ink); }
body.customer-panel .admin-navbar .user-chip-icon { font-size: 1.2rem; color: var(--rx-brand) !important; flex: 0 0 auto; }
body.customer-panel .admin-navbar .user-chip-name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .78rem; font-weight: 700; direction: ltr; text-align: right;
    color: var(--rx-ink-soft) !important;
}
body.customer-panel .admin-navbar .user-chip-caret { font-size: .62rem; opacity: .6; transition: transform .18s; }
body.customer-panel .admin-navbar .user-chip-btn[aria-expanded="true"] .user-chip-caret { transform: rotate(180deg); }

/* Dropdown-header avatar: still a circular initial badge, just inside the open menu. */
body.customer-panel .user-profile-header .user-avatar {
    position: relative;
    width: 50px; height: 50px; border: 0; border-radius: 50%;
    background:
        radial-gradient(130% 150% at 20% 12%, rgba(255,255,255,.4), transparent 55%),
        linear-gradient(135deg, #2dd4bf 0%, var(--rx-brand) 100%) !important;
    background-image:
        radial-gradient(130% 150% at 20% 12%, rgba(255,255,255,.4), transparent 55%),
        linear-gradient(135deg, #2dd4bf 0%, var(--rx-brand) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -6px rgba(var(--rx-brand-rgb), .45), 0 0 0 3px var(--rx-surface-2), 0 0 0 4.5px rgba(var(--rx-brand-rgb), .25) !important;
    display: grid; place-items: center;
}
body.customer-panel .user-profile-header .user-avatar-initial { font-size: 1.15rem; font-weight: 850; line-height: 1; color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
body.customer-account .admin-navbar .user-avatar-btn { border: 1px solid var(--rx-line) !important; background: var(--rx-surface-2) !important; box-shadow: none !important; }
body.customer-account .admin-navbar .user-avatar-btn .user-avatar { border: 1px solid var(--rx-line) !important; background: var(--rx-surface-2) !important; background-image: none !important; color: var(--rx-ink-soft) !important; box-shadow: none !important; }
body.customer-account .admin-navbar .user-avatar-btn .user-avatar :is(i, .bi) { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
body.customer-panel .profile-brand-identity-picker { display: none !important; }
body.customer-panel .admin-navbar .user-profile-menu { top: calc(100% + 9px); left: 0; right: auto; width: min(310px, calc(100vw - 24px)); border: 1px solid var(--rx-line); border-radius: 16px; background: var(--rx-surface); box-shadow: var(--rx-shadow-pop); }
body.customer-panel .admin-navbar .user-profile-header { background: var(--rx-surface-2); border-bottom: 1px solid var(--rx-line); gap: 12px; }
body.customer-panel .profile-theme-picker { padding: 10px 14px 4px; }
body.customer-panel .profile-theme-picker .profile-theme-label { color: var(--rx-muted); font-size: .72rem; font-weight: 750; gap: 8px; }
body.customer-panel .profile-theme-options { display: flex; gap: 8px; margin-top: 8px; }
body.customer-panel .profile-theme-option {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; border: 1px solid var(--rx-line); border-radius: 11px;
    background: var(--rx-surface-2); color: var(--rx-ink-soft); font-size: .73rem; font-weight: 700;
    transition: background .18s, color .18s, border-color .18s;
}
body.customer-panel .profile-theme-option:hover { background: var(--rx-brand-soft); color: var(--rx-brand-ink); }
body.customer-panel .profile-theme-option[aria-pressed="true"] { background: var(--rx-brand-bright); border-color: var(--rx-brand-bright); color: #04221f !important; }
body.customer-panel .profile-theme-option[aria-pressed="true"] :is(i, span) { color: inherit !important; -webkit-text-fill-color: #04221f !important; }

body.customer-panel .primary-sidebar-toggle { display: none !important; }
body.customer-account .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) { text-shadow: none !important; -webkit-text-fill-color: currentColor !important; }
body.customer-account .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) :is(span, strong, small, i, .bi, svg) { color: inherit !important; -webkit-text-fill-color: currentColor !important; }
body.customer-account .report-actions .report-link:not(.ghost) { background: var(--rx-brand) !important; border-color: var(--rx-brand) !important; color: var(--rx-on-brand) !important; -webkit-text-fill-color: var(--rx-on-brand) !important; }
body.customer-account .report-tabs a.active { background: var(--rx-brand) !important; border-color: var(--rx-brand) !important; color: var(--rx-on-brand) !important; -webkit-text-fill-color: var(--rx-on-brand) !important; }
body.customer-account .report-filter .filter-buttons button[type="submit"] { background: var(--rx-brand) !important; border-color: var(--rx-brand) !important; color: var(--rx-on-brand) !important; -webkit-text-fill-color: var(--rx-on-brand) !important; }
body.customer-account .report-actions .report-link:not(.ghost) :is(i, .bi),
body.customer-account .report-tabs a.active :is(i, .bi),
body.customer-account .report-filter .filter-buttons button[type="submit"] :is(i, .bi) { color: var(--rx-on-brand) !important; -webkit-text-fill-color: var(--rx-on-brand) !important; }
body.customer-panel .customer-main-content,
body.customer-panel .admin-content {
    min-height: calc(100vh - var(--rx-navbar-height));
    margin: 0 var(--cp-rail, 258px) 0 0 !important;
    padding: 0;
    background: transparent !important;
    color: var(--rx-ink);
}
body.customer-panel .admin-content.with-chatbot-context { margin-right: calc(var(--cp-rail, 258px) + var(--cp-ctx, 280px)) !important; }
body.customer-panel .content-wrapper { width: 100%; max-width: 1580px; min-width: 0; margin: 0 auto; padding: 30px clamp(18px, 2.8vw, 42px) 48px; }
/* Pinned to the viewport bottom on every customer-panel page, regardless of content length or scroll. */
body.customer-panel .admin-footer {
    position: fixed; inset: auto var(--cp-rail, 258px) 0 0; z-index: 1025;
    margin: 0; padding: 10px 24px; min-height: 0;
    border-top: 1px solid var(--rx-line);
    background: var(--rx-surface) !important;
    backdrop-filter: none;
}
body.customer-panel .admin-footer small { color: var(--rx-muted) !important; font-size: .72rem; font-weight: 600; }
body.customer-panel .admin-footer .roxan-footer-mark { opacity: .72; }
/* Leave room so the fixed footer never overlaps the last bit of page content. */
body.customer-panel .customer-main-content,
body.customer-panel .admin-content { padding-bottom: 52px; }

/* Give page content the same framed workspace surface used by the knowledge-base screen. */
body.customer-panel .customer-main-content > .content-wrapper,
body.customer-panel .admin-content > .content-wrapper {
    box-sizing: border-box;
}
body.customer-panel .customer-main-content > .content-wrapper,
body.customer-panel .admin-content > .content-wrapper {
    width: calc(100% - 32px);
    max-width: 1580px;
    min-height: calc(100vh - var(--rx-navbar-height) - 42px);
    margin: 18px auto 30px;
    padding: clamp(16px, 2vw, 30px);
    border: 1px solid color-mix(in srgb, var(--rx-brand) 12%, var(--rx-line));
    border-radius: 24px;
    background: linear-gradient(145deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 15%, var(--rx-surface)));
    box-shadow: var(--rx-shadow-panel);
}

/* The per-bot navigation remains a real, persistent second rail on wide screens. */
body.customer-panel .chatbot-context-sidebar {
    position: fixed;
    inset: var(--rx-navbar-height) auto 0 0;
    right: var(--cp-rail, 258px);
    width: var(--cp-ctx, 280px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 10px 16px;
    background: var(--rx-surface) !important;
    border: 0 !important;
    border-inline-end: 1px solid var(--rx-line) !important;
    box-shadow: none !important;
    z-index: 1020;
}
body.customer-panel .chatbot-context-nav { padding: 0; }
body.customer-panel .chatbot-context-nav > ul { padding: 0; margin: 0; }
body.customer-panel .sidebar-bot-context { padding: 7px 7px 13px; border-bottom: 1px solid var(--rx-line); }
body.customer-panel .sidebar-bot-context-label { color: var(--rx-muted); font-size: .68rem; }
body.customer-panel .sidebar-bot-context-label i { color: var(--rx-brand); }
body.customer-panel .sidebar-bot-switcher select,
body.customer-panel .sidebar-bot-name { width: 100%; min-height: 39px; margin-top: 7px; padding: 7px 10px; border: 1px solid var(--rx-line-input); border-radius: 10px; background: var(--rx-surface-2); color: var(--rx-ink); font: 750 .73rem var(--rx-font); }
body.customer-panel .sidebar-bot-preview { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--rx-brand) !important; font-size: .68rem; font-weight: 800; }
body.customer-panel .sidebar-bot-overview,
body.customer-panel .sidebar-bot-group > summary { min-height: 39px; border-radius: 10px; color: var(--rx-ink-soft); font-size: .72rem; }
body.customer-panel .sidebar-bot-overview.active,
body.customer-panel .sidebar-bot-group > summary.active { background: var(--rx-brand-soft) !important; color: var(--rx-brand-ink) !important; }
body.customer-panel .sidebar-bot-group > summary i:first-child { color: var(--rx-brand); }
body.customer-panel .sidebar-bot-submenu a { min-height: 35px; border-radius: 9px; color: var(--rx-muted) !important; font-size: .68rem; }
body.customer-panel .sidebar-bot-submenu a:hover { background: var(--rx-surface-2) !important; color: var(--rx-ink) !important; }
body.customer-panel .sidebar-bot-submenu a.active { background: var(--rx-brand-soft) !important; color: var(--rx-brand-ink) !important; }

/* Shared page canvas, typography, cards, forms, tables and common action controls. */
body.customer-panel .admin-content :is(.kb-wrapper, .kb-container, .dashboard-wrapper, .dashboard-page, .page-wrapper, .settings-page, .page-shell, .requests-wrapper, .policies-wrapper, .apikey-wrapper, .simulator-wrapper) {
    max-width: 100%;
    color: var(--rx-ink);
}
body.customer-panel .admin-content :is(h1, h2, h3, h4, h5, h6, .page-title, .section-title) { color: var(--rx-ink); letter-spacing: -.025em; }
body.customer-panel .admin-content :is(.card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "], .glass-card, .summary-card, .stat-card, .analytics-panel, .analytics-kpi, .kb-summary-tile, .kb-chatbot-card, .request-card, .policy-card) {
    border: 1px solid var(--rx-line) !important;
    border-radius: 17px !important;
    background: var(--rx-surface) !important;
    color: var(--rx-ink);
    box-shadow: var(--rx-shadow-panel) !important;
    backdrop-filter: none !important;
}
body.customer-panel .admin-content :is(.glass-card, .analytics-panel, .analytics-kpi, .kb-chatbot-card, .request-card, .policy-card) { padding: 18px; }
body.customer-panel .admin-content :is(.page-header, .analytics-header, .kb-page-header, .content-header) { margin-bottom: 22px; }
body.customer-panel .admin-content :is(.page-header h1, .analytics-header h1, .kb-page-header h1, .content-header h1) { font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 900; line-height: 1.45; }
body.customer-panel .admin-content :is(.page-header p, .analytics-header p, .kb-page-header p, .content-header p) { color: var(--rx-muted); line-height: 1.9; }
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) {
    text-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
}
body.customer-panel .admin-content :is(.btn, button.btn, .btn-primary-glow, .btn-create, .btn-create-lg, .primary-button, .action-primary, .analytics-button, .table-detail, .btn-operator-glow, .sim-submit-btn) {
    min-height: 38px;
    border-radius: 11px !important;
    font-weight: 800;
    box-shadow: none !important;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) :is(span, strong, small, i, .bi, svg) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]):is([class*="primary"], [class*="submit"], [class*="create"], [class*="purchase"], [class*="analytics-button"], [class*="sim-submit"], [class*="btn-save"], [class*="-save"], [class*="-add"], [class*="-new"], [class~="save"], [class~="cta"], .btn-buy-chat:not(.silver-btn), [class*="wp-download"]) {
    border-color: var(--rx-brand) !important;
    background: var(--rx-brand) !important;
    background-image: none !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
    text-shadow: none !important;
}
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]):is([class*="primary"], [class*="submit"], [class*="create"], [class*="purchase"], [class*="analytics-button"], [class*="sim-submit"], [class*="btn-save"], [class*="-save"], [class*="-add"], [class*="-new"], [class~="save"], [class~="cta"], .btn-buy-chat:not(.silver-btn), [class*="wp-download"]):hover:not(:disabled) {
    border-color: var(--rx-brand-hover) !important;
    background: var(--rx-brand-hover) !important;
    background-image: none !important;
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]):is(.btn-secondary, .btn-ghost, .btn-back, .btn-cancel, .btn-soft, .btn-filter, .btn-copy, .btn-copy-sm, .btn-operator-glow, .table-detail, .btn-outline-light) {
    border-color: var(--rx-line-strong) !important;
    background: var(--rx-surface) !important;
    background-image: none !important;
    color: var(--rx-ink-soft) !important;
    -webkit-text-fill-color: var(--rx-ink-soft) !important;
}
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]):is(.btn-danger, [class*="danger"], .btn-delete, .kb-act-danger, .fp-delete, .faq-icon-btn.delete, .hr-icon-btn.delete) {
    border-color: rgba(var(--rx-danger-rgb), .28) !important;
    background: var(--rx-danger-soft) !important;
    background-image: none !important;
    color: var(--rx-danger) !important;
    -webkit-text-fill-color: var(--rx-danger) !important;
}
body.customer-panel .admin-content :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    min-height: 40px;
    border: 1px solid var(--rx-line-input) !important;
    border-radius: 10px !important;
    background-color: var(--rx-input) !important;
    color: var(--rx-ink) !important;
    box-shadow: none;
}
body.customer-panel .admin-content textarea.form-control { min-height: 108px; }
body.customer-panel .admin-content :is(.form-control, .form-select, input, select, textarea):focus { border-color: var(--rx-brand) !important; box-shadow: var(--rx-focus-ring) !important; outline: none; }
body.customer-panel .admin-content :is(label, .form-label) { color: var(--rx-ink-soft); font-weight: 750; }
body.customer-panel .admin-content :is(.form-text, .text-muted, small.text-muted, .text-secondary) { color: var(--rx-muted) !important; }
body.customer-panel .admin-content :is(.table, table) { --bs-table-bg: transparent; --bs-table-color: var(--rx-ink); --bs-table-border-color: var(--rx-line); --bs-table-hover-bg: var(--rx-surface-2); --bs-table-hover-color: var(--rx-ink); border-color: var(--rx-line); }
body.customer-panel .admin-content :is(.table thead, thead) { color: var(--rx-muted); background: var(--rx-surface-2); font-size: .75rem; }
body.customer-panel .admin-content :is(.table th, .table td, th, td) { padding: .78rem .8rem; border-color: var(--rx-line); vertical-align: middle; }
body.customer-panel .admin-content :is(.table tbody tr, tbody tr) { transition: background .15s; }
body.customer-panel .admin-content :is(.pagination .page-link, .page-link) { border-color: var(--rx-line); border-radius: 8px; color: var(--rx-brand); }
body.customer-panel .admin-content :is(.pagination .active .page-link, .page-item.active .page-link) { background: var(--rx-brand); border-color: var(--rx-brand); color: var(--rx-on-brand); }
body.customer-panel .admin-content :is(.alert, .validation-summary-errors) { border-radius: 12px; }
body.customer-panel .admin-content :is(.modal-content, .dropdown-menu, .popover) { border: 1px solid var(--rx-line); border-radius: 16px; background: var(--rx-surface); color: var(--rx-ink); box-shadow: var(--rx-shadow-pop); }
body.customer-panel .admin-content .badge { border-radius: 8px; font-weight: 800; }
body.customer-panel .admin-content :is(.empty-state, .empty-state-card, .no-data, .analytics-no-data) { border: 1px dashed var(--rx-line-strong); border-radius: 17px; background: var(--rx-surface-2); color: var(--rx-muted); }
body.customer-panel .admin-content :is(.empty-state > i, .empty-state-card > i, .no-data > i, .analytics-no-data > i) { color: var(--rx-brand); }
body.customer-panel .admin-content :is(.kb-summary-icon, .kb-icon, .metric-icon, .analytics-panel-icon) {
    border-radius: 12px;
    background-color: var(--rx-surface-2) !important;
    color: var(--rx-ink-soft) !important;
}

/* Customer dashboard and chatbot list */
body.customer-panel[data-style-page="/Dashboard"] .analytics-dashboard { max-width: 100%; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header {
    position: relative;
    min-height: 138px;
    display: flex;
    align-items: center;
    margin: 0 0 19px;
    padding: 24px 27px;
    overflow: hidden;
    border: 1px solid var(--rx-line);
    border-radius: 20px;
    background: var(--rx-surface-2);
}
body.customer-panel[data-style-page="/Dashboard"] .analytics-header > div:first-child { position: relative; z-index: 1; max-width: 72%; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header .analytics-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--rx-muted); font-size: .75rem; font-weight: 800; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header h1 { margin: 0; font-size: clamp(1.45rem, 2.2vw, 2rem); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header p { max-width: 490px; margin: 5px 0 0; font-size: .82rem; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header-meta { position: relative; z-index: 1; align-self: flex-start; margin-inline-start: auto; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header-meta > span { display: none; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi {
    position: relative; min-height: 128px; overflow: hidden; padding: 16px; border-radius: 18px;
    transition: box-shadow .2s, transform .2s;
}
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi:hover { box-shadow: 0 10px 24px rgba(var(--rx-contrast-rgb), 0.1); transform: translateY(-1px); }
/* One semantic accent per KPI, in markup order: today's chats (brand), 7-day trend (info),
   messages (brand-bright/accent), satisfaction (warning — it is a star rating). */
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi:nth-of-type(1) { --accent: var(--rx-brand); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi:nth-of-type(2) { --accent: var(--rx-info); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi:nth-of-type(3) { --accent: var(--rx-accent); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi:nth-of-type(4) { --accent: var(--rx-warning); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi .kpi-caption { color: var(--rx-muted); font-size: .73rem; font-weight: 750; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi .kpi-caption i {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: color-mix(in srgb, var(--accent, var(--rx-brand)) 15%, transparent);
    color: var(--accent, var(--rx-brand)); font-size: 1rem;
}
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi > strong { display: block; margin-top: 9px; color: var(--rx-ink); font-size: 1.62rem; font-weight: 900; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi > small { display: block; color: var(--rx-muted); font-size: .67rem; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-main-grid,
body.customer-panel[data-style-page="/Dashboard"] .analytics-bottom-grid { gap: 14px; margin-bottom: 14px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel { padding: 18px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel-heading h2 { font-size: .92rem; font-weight: 900; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel-heading p,
body.customer-panel[data-style-page="/Dashboard"] .chart-footnote { color: var(--rx-muted); font-size: .68rem; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-chart { border-radius: 12px; background-color: var(--rx-surface-2); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-table-scroll { border: 1px solid var(--rx-line); border-radius: 12px; }
/* Bottom panel icons get the same colour-tile treatment as the KPI row, one accent per panel. */
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel .panel-icon {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px;
    background: color-mix(in srgb, var(--accent, var(--rx-info)) 15%, transparent) !important;
    color: var(--accent, var(--rx-info)) !important; font-size: 1rem;
}
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel:has(#apiTrend) { --accent: var(--rx-info); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel.credit-panel { --accent: var(--rx-success); }
body.customer-panel .admin-content .analytics-table thead,
body.customer-panel .admin-content .analytics-table thead th {
    background: var(--rx-surface-2) !important;
    color: var(--rx-ink-soft) !important;
    border-color: var(--rx-line) !important;
}

body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container > .glass-card:first-child {
    padding: 22px;
    background: var(--rx-surface-2) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container > .glass-card:first-child .text-white { color: var(--rx-ink) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container > .glass-card:first-child .text-secondary { color: var(--rx-muted) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-row { gap: 11px; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile { min-height: 108px; padding: 13px; border-radius: 15px; transition: transform .18s, box-shadow .18s, border-color .18s; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-tile:hover { transform: translateY(-2px); border-color: var(--rx-brand) !important; box-shadow: var(--rx-shadow-panel) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-icon { width: 38px; height: 38px; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-surface-2) !important; color: var(--rx-ink-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-icon i { font-size: 1rem; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-num { color: var(--rx-ink); font-size: 1rem; font-weight: 900; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-label { color: var(--rx-ink-soft); font-size: .7rem; font-weight: 800; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-sub { color: var(--rx-muted); font-size: .63rem; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .filter-toolbar,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .search-toolbar { border: 1px solid var(--rx-line) !important; border-radius: 15px; background: var(--rx-surface) !important; }

@media (max-width: 1200px) {
    body.customer-panel .content-wrapper { padding-inline: 22px; }
    body.customer-panel .admin-content.with-chatbot-context { margin-right: calc(var(--cp-rail, 258px) + var(--cp-ctx, 280px)) !important; }
    body.customer-panel .chatbot-context-sidebar { width: var(--cp-ctx, 280px); }
    body.customer-panel[data-style-page="/Dashboard"] .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    body.customer-panel.customer-sidebar-open::before { content: ""; position: fixed; inset: 0; z-index: 1035; background: rgba(var(--rx-contrast-rgb),.34); backdrop-filter: blur(2px); }
    body.customer-panel .admin-sidebar-permanent { inset: 0 0 0 auto; width: min(290px, 86vw) !important; transform: translateX(105%); box-shadow: -16px 0 40px -30px rgba(var(--rx-contrast-rgb),.42) !important; }
    body.customer-panel .admin-sidebar-permanent.customer-mobile-open { transform: none; }
    body.customer-panel .admin-navbar { inset-inline: 0; padding-inline: 16px; }
    body.customer-panel .admin-content,
    body.customer-panel .admin-content.with-chatbot-context { margin: 0 !important; }
    body.customer-panel .chatbot-context-sidebar { display: none; }
    body.customer-panel .primary-sidebar-toggle { display: none !important; }
    body.customer-panel .admin-footer { inset-inline: 0; }
}
@media (max-width: 640px) {
    body.customer-panel .content-wrapper { padding: 20px 14px 34px; }
    body.customer-panel .admin-footer { padding: 10px 12px; }
    body.customer-panel .admin-content :is(.analytics-kpis, .kb-summary-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.customer-panel[data-style-page="/Dashboard"] .analytics-header { min-height: 126px; padding: 18px; }
    body.customer-panel[data-style-page="/Dashboard"] .analytics-header > div:first-child { max-width: 100%; }
    body.customer-panel[data-style-page="/Dashboard"] .analytics-header-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.customer-panel *, body.customer-panel *::before, body.customer-panel *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* On a chatbot workspace page the per-bot rail is open, so the main rail folds to an icon strip
   (labels move to the native tooltip) instead of two wide columns eating the page. Desktop only:
   below 992px the main menu is the off-canvas drawer and keeps its full width. */
@media (min-width: 992px) {
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) { --cp-rail: 76px; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-sidebar-permanent { padding-inline: 8px; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .customer-sidebar-brand { justify-content: center; padding-inline: 0; margin-inline: 0; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .customer-sidebar-brand > span:not(.customer-sidebar-mark) { display: none; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-sidebar-permanent .sidebar-heading,
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-sidebar-permanent .sidebar-label { display: none !important; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-sidebar-permanent .sidebar-nav .nav-link { justify-content: center; padding-inline: 0 !important; margin-inline: 0 !important; }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 { padding-top: .5rem !important; margin-top: .5rem !important; border-top: 1px solid var(--rx-line); }
}

/* The per-bot rail used to hug its content as a short card in a tall empty column; it now fills the
   column (above the fixed footer) and reads a little larger. */
body.customer-panel .chatbot-context-sidebar { display: flex; flex-direction: column; padding-bottom: 58px; }
body.customer-panel .chatbot-context-nav { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.customer-panel .chatbot-context-nav > ul { flex: 1 1 auto; display: flex; flex-direction: column; }
body.customer-panel .chatbot-context-nav > ul > .chatbot-sidebar-workspace { flex: 1 1 auto; overflow-y: auto; }
body.customer-panel .sidebar-bot-overview,
body.customer-panel .sidebar-bot-group > summary { min-height: 44px; font-size: .8rem; }
body.customer-panel .sidebar-bot-submenu a { min-height: 38px; font-size: .75rem; }
body.customer-panel .sidebar-bot-context-label { font-size: .74rem; }

body.customer-panel { --cp-ctx: 280px; }

/* The per-bot workspace is a separate rail on the left of the collapsed main icon rail. */
body.customer-panel .admin-wrapper.has-chatbot-context { --cp-rail: 96px; --cp-ctx: 280px; }
body.customer-panel .admin-wrapper.has-chatbot-context .admin-content.with-chatbot-context { margin-right: calc(var(--cp-rail) + var(--cp-ctx)) !important; }
body.customer-panel .admin-navbar #navbarNav { display: none !important; }
body.customer-panel .admin-wrapper:not(.has-chatbot-context) .customer-sidebar-context-divider { display: none; }
body.customer-panel .customer-sidebar-context-divider { list-style: none; height: 1px; margin: 10px 4px 8px; background: var(--rx-line); }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace { list-style: none; margin: 0; padding: 0 .15rem; }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-context { padding: 9px 10px 12px; margin: 0 0 8px; border: 1px solid var(--rx-line); border-radius: 14px; background: linear-gradient(145deg, var(--rx-surface), var(--rx-brand-soft)); }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-context-label { display: flex; align-items: center; gap: 7px; font-weight: 800; color: var(--rx-ink-soft); }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-navigation { display: grid; gap: 4px; }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-overview,
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-group > summary { min-height: 38px; padding: 7px 9px; border-radius: 10px; }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-submenu { padding-inline: 9px; }
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-submenu a,
body.customer-panel .admin-sidebar-permanent .chatbot-sidebar-workspace .sidebar-bot-submenu .plan-locked { min-height: 33px; }

/* Shared feedback, confirmation, modal, validation and component language for all customer pages. */
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content :is(.card, .glass-card, .panel-card, .stat-card, .content-card, .table-responsive) {
    border-radius: 18px;
}
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content :is(.card, .glass-card, .panel-card, .stat-card, .content-card) {
    border-color: var(--rx-line) !important;
    background: linear-gradient(145deg, var(--rx-surface) 4%, color-mix(in srgb, var(--rx-brand-soft) 34%, var(--rx-surface)) 100%);
    box-shadow: 0 14px 34px rgba(13, 45, 48, .055);
}
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    border-radius: 12px;
}
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content :is(.field-validation-error, .validation-summary-errors, .invalid-feedback) {
    display: block; margin-top: 6px; color: var(--rx-danger, #b42318); font-size: .78rem; font-weight: 700;
}
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content .input-validation-error,
body.customer-panel:not([data-style-page^="/Operator"]) .admin-content :is(input, select, textarea)[aria-invalid="true"] {
    border-color: color-mix(in srgb, var(--rx-danger, #b42318) 48%, var(--rx-line-input)) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rx-danger, #b42318) 10%, transparent) !important;
}
body.customer-panel:not([data-style-page^="/Operator"]) .rx-field-error { display: block; margin-top: 5px; color: var(--rx-danger, #b42318); font-size: .77rem; font-weight: 750; line-height: 1.6; }
body.customer-panel:not([data-style-page^="/Operator"]) .modal-backdrop.show { opacity: .54; backdrop-filter: blur(5px); }
body.customer-panel:not([data-style-page^="/Operator"]) .modal-content {
    overflow: hidden; border: 1px solid var(--rx-line) !important; border-radius: 22px !important;
    background: var(--rx-surface) !important; color: var(--rx-ink) !important; box-shadow: 0 28px 90px rgba(12, 35, 39, .22) !important;
}
body.customer-panel:not([data-style-page^="/Operator"]) .modal-header,
body.customer-panel:not([data-style-page^="/Operator"]) .modal-footer { border-color: var(--rx-line) !important; }

.rx-ui-layer { position: relative; z-index: 2100; }
.rx-toast-stack { position: fixed; z-index: 2110; inset: auto auto 18px 18px; display: grid; gap: 10px; width: min(390px, calc(100vw - 28px)); pointer-events: none; }
.rx-toast { display: grid; grid-template-columns: 28px 1fr 30px; align-items: start; gap: 10px; padding: 14px 13px; border: 1px solid var(--rx-line); border-radius: 16px; background: var(--rx-surface); color: var(--rx-ink); box-shadow: 0 16px 48px rgba(12, 35, 39, .16); pointer-events: auto; animation: rx-toast-enter .22s ease-out; }
.rx-toast > i { font-size: 1.15rem; margin-top: 2px; }
.rx-toast-copy { display: grid; gap: 3px; line-height: 1.65; }
.rx-toast-copy strong { font-size: .82rem; font-weight: 900; }
.rx-toast-copy span { color: var(--rx-ink-soft); font-size: .78rem; overflow-wrap: anywhere; }
.rx-toast-close { border: 0; background: transparent; color: var(--rx-muted); padding: 4px; }
.rx-toast-success { border-inline-start: 3px solid #198754; }.rx-toast-success > i { color: #198754; }
.rx-toast-error { border-inline-start: 3px solid #c2413a; }.rx-toast-error > i { color: #c2413a; }
.rx-toast-warning { border-inline-start: 3px solid #c17a18; }.rx-toast-warning > i { color: #c17a18; }
.rx-toast-info { border-inline-start: 3px solid var(--rx-brand); }.rx-toast-info > i { color: var(--rx-brand); }
.rx-toast.is-leaving { opacity: 0; transform: translateX(12px); transition: .2s ease; }
.rx-dialog-backdrop[hidden] { display: none !important; }
.rx-dialog-backdrop { position: fixed; z-index: 2120; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(9, 25, 29, .48); backdrop-filter: blur(6px); }
.rx-dialog { width: min(440px, 100%); padding: 25px; border: 1px solid var(--rx-line); border-radius: 24px; background: var(--rx-surface); color: var(--rx-ink); box-shadow: 0 28px 100px rgba(9, 25, 29, .28); text-align: center; animation: rx-dialog-enter .2s ease-out; }
.rx-dialog-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; background: var(--rx-brand-soft); color: var(--rx-brand); font-size: 1.35rem; }
.rx-dialog.is-danger .rx-dialog-icon { background: #fff0ee; color: #bd3429; }
.rx-dialog h2 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 900; }
.rx-dialog p { margin: 0; color: var(--rx-ink-soft); font-size: .86rem; line-height: 1.9; white-space: pre-line; }
.rx-dialog-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.rx-dialog-actions button { min-height: 42px; padding: 8px 16px; border: 1px solid var(--rx-line); border-radius: 12px; background: var(--rx-surface-2); color: var(--rx-ink-soft); font: 800 .82rem var(--rx-font); }
.rx-dialog-actions .rx-dialog-accept { border-color: var(--rx-brand); background: var(--rx-brand); color: var(--rx-on-brand); }
.rx-dialog.is-danger .rx-dialog-accept { border-color: #bd3429; background: #bd3429; color: #fff; }
body.rx-dialog-open { overflow: hidden; }
@keyframes rx-toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rx-dialog-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 991.98px) { body.customer-panel .admin-content.with-chatbot-context { margin: 0 !important; } }
@media (max-width: 520px) { .rx-toast-stack { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; } .rx-dialog { padding: 21px 17px; border-radius: 20px; } }

/* Fixed, branded customer identity: no legacy theme picker and no inherited dark preference. */
html.customer-panel-theme { color-scheme: light !important; }
html.customer-panel-theme[data-theme="dark"] { color-scheme: light !important; }
body.customer-panel {
    color-scheme: light !important;
}
body.customer-panel .admin-wrapper.customer-panel-wrapper { background: linear-gradient(135deg, var(--rx-surface) 0%, var(--rx-page-alt) 52%, var(--rx-surface-2) 100%) !important; }
body.customer-panel .admin-sidebar-permanent {
    background: linear-gradient(180deg, var(--rx-surface) 0%, var(--rx-surface-2) 100%) !important;
    border-inline-start: 1px solid var(--rx-line) !important;
    box-shadow: -14px 0 36px -35px rgba(14, 65, 57, .32) !important;
}
body.customer-panel .customer-sidebar-brand {
    min-height: 78px;
    margin: 0 0 12px;
    padding: 13px 10px;
    border-bottom-color: var(--rx-line);
}
body.customer-panel .customer-sidebar-brand img {
    width: 44px; height: 44px; flex-basis: 44px; padding: 7px;
    border: 1px solid var(--rx-brand-ring); border-radius: 15px;
    background: linear-gradient(145deg, var(--rx-brand-soft), var(--rx-surface));
    box-shadow: var(--rx-shadow-panel);
}
body.customer-panel .customer-sidebar-brand strong { color: var(--rx-ink); font-size: .95rem; }
body.customer-panel .customer-sidebar-brand small { color: var(--rx-muted); font-size: .72rem; }
body.customer-panel .admin-sidebar-permanent .sidebar-heading {
    position: relative; padding: .35rem .65rem .42rem !important;
    color: var(--rx-faint) !important; font-size: .66rem !important; font-weight: 850 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link {
    min-height: 42px; margin: 1px .1rem !important; padding: .42rem .6rem !important;
    border: 1px solid transparent !important; border-radius: 13px !important;
    color: var(--rx-ink-soft) !important; font-size: .79rem; font-weight: 720;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link i {
    width: 30px; height: 30px; flex-basis: 30px; min-width: 30px;
    border: 1px solid var(--rx-line); border-radius: 10px;
    background: linear-gradient(145deg, var(--rx-surface), var(--rx-brand-soft)) !important;
    color: var(--rx-brand) !important; font-size: .9rem;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link:hover {
    border-color: var(--rx-line-strong) !important; background: var(--rx-surface) !important;
    color: var(--rx-ink) !important; box-shadow: var(--rx-shadow-sm) !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active {
    border-color: var(--rx-brand-ring) !important;
    background: linear-gradient(100deg, var(--rx-brand-soft), var(--rx-surface-2)) !important;
    color: var(--rx-brand-ink) !important; box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active i {
    border-color: transparent; background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important; box-shadow: var(--rx-shadow-sm);
}
body.customer-panel .admin-navbar {
    background: var(--rx-surface) !important;
    border-bottom: 1px solid var(--rx-line) !important;
    box-shadow: var(--rx-shadow-sm) !important;
    backdrop-filter: blur(18px);
}
body.customer-panel .admin-navbar > .container-fluid > .d-flex:first-child { min-width: 0; gap: 10px; }
body.customer-panel .customer-header-context { display: flex; align-items: center; gap: 11px; min-width: 0; }
body.customer-panel .customer-header-context-mark {
    display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
    border: 1px solid var(--rx-brand-ring); border-radius: 13px;
    background: linear-gradient(145deg, var(--rx-brand-soft), var(--rx-surface)); color: var(--rx-brand);
}
body.customer-panel .customer-header-context-copy { display: grid; min-width: 0; line-height: 1.35; }
body.customer-panel .customer-header-context-copy small { color: var(--rx-muted); font-size: .65rem; font-weight: 700; }
body.customer-panel .customer-header-context-copy strong { overflow: hidden; color: var(--rx-ink); font-size: .83rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
body.customer-panel .admin-navbar .user-chip-btn {
    height: 44px; border-color: var(--rx-line); background: var(--rx-surface);
    color: var(--rx-ink-soft); box-shadow: var(--rx-shadow-sm);
}
body.customer-panel .admin-navbar .user-chip-icon { color: var(--rx-brand) !important; }
body.customer-panel .admin-content,
body.customer-panel .customer-main-content { background: transparent !important; color: var(--rx-ink) !important; }
body.customer-panel .content-wrapper { padding-top: 32px; }
body.customer-panel .admin-content :is(.analytics-header, .page-header, .dashboard-header) {
    border: 1px solid var(--rx-line) !important;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(var(--rx-brand-rgb), .12), transparent 32%),
        linear-gradient(135deg, var(--rx-surface) 0%, var(--rx-surface-2) 70%, var(--rx-brand-soft) 100%) !important;
    box-shadow: var(--rx-shadow-panel) !important;
    color: var(--rx-ink) !important;
}
body.customer-panel .admin-content :is(.analytics-header, .page-header, .dashboard-header) :is(h1, h2, h3, p, small, span) { color: inherit; }
body.customer-panel .admin-content :is(.analytics-header, .page-header, .dashboard-header) :is(p, small) { color: var(--rx-muted) !important; }
@media (max-width: 991.98px) {
    body.customer-panel .customer-header-context { gap: 7px; }
    body.customer-panel .customer-header-context-mark { flex-basis: 34px; width: 34px; height: 34px; border-radius: 11px; }
    body.customer-panel .customer-header-context-copy small { display: none; }
    body.customer-panel .customer-header-context-copy strong { max-width: 42vw; font-size: .76rem; }
}

/* The production shell follows the same contained topbar, floating navigation and footer card
   used in the approved organic kit. */
body.customer-panel .admin-wrapper.customer-panel-wrapper { padding-top: calc(var(--rx-navbar-height) + 12px); }
body.customer-panel .admin-navbar {
    inset: 12px calc(var(--cp-rail, 258px) + 18px) auto 18px;
    height: 62px; min-height: 62px; padding-inline: 18px;
    border: 1px solid var(--rx-line) !important; border-radius: 18px;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel .content-wrapper { padding-top: 22px; }
body.customer-panel .customer-header-context { gap: 10px; }
body.customer-panel .customer-header-context-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; }
body.customer-panel .customer-header-context-copy small { font-size: .68rem; }
body.customer-panel .customer-header-context-copy strong { font-size: .88rem; }
body.customer-panel .customer-header-help {
    display: inline-flex; align-items: center; gap: 7px; min-height: 38px;
    margin-inline-start: 14px; padding: 0 12px; border: 1px solid var(--rx-line);
    border-radius: 12px; background: var(--rx-surface); color: var(--rx-ink-soft);
    font-size: .76rem; font-weight: 800; transition: .18s ease;
}
body.customer-panel .customer-header-help:hover { border-color: var(--rx-brand-ring); background: var(--rx-brand-soft); color: var(--rx-brand-ink); }
body.customer-panel .customer-header-status {
    display: inline-flex; align-items: center; gap: 7px; min-height: 34px;
    padding: 0 11px; border: 1px solid var(--rx-line); border-radius: 999px;
    background: var(--rx-surface-2); color: var(--rx-ink-soft); font-size: .7rem; font-weight: 800;
}
body.customer-panel .customer-header-status i,
body.customer-panel .customer-footer-note > i {
    width: 8px; height: 8px; border-radius: 50%; background: var(--rx-success);
    box-shadow: 0 0 0 4px var(--rx-success-soft);
}
body.customer-panel .admin-sidebar-permanent { background: linear-gradient(180deg, var(--rx-surface), var(--rx-page-alt)) !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav > ul { gap: 3px; padding-bottom: 14px; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 { padding-top: .8rem !important; margin-top: .35rem !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-heading { padding-inline: .72rem !important; font-size: .68rem !important; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link { min-height: 43px; border-radius: 13px !important; }
body.customer-panel .admin-content :is(.analytics-kpi, .analytics-panel, .stat-card, .glass-card, .panel-card, .content-card) {
    background: linear-gradient(145deg, var(--rx-surface) 7%, color-mix(in srgb, var(--rx-brand-soft) 42%, var(--rx-surface)) 100%) !important;
    border-color: color-mix(in srgb, var(--rx-brand) 16%, var(--rx-line)) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel .admin-content .analytics-kpi {
    isolation: isolate;
    background: linear-gradient(145deg, var(--rx-surface) 0%, color-mix(in srgb, var(--accent, var(--rx-brand)) 8%, var(--rx-surface)) 100%) !important;
}
body.customer-panel .admin-content .analytics-kpi::after {
    content: ""; position: absolute; z-index: -1; left: -35px; top: -44px; width: 126px; height: 126px;
    border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--rx-brand)) 12%, transparent), transparent 70%);
    pointer-events: none;
}
body.customer-panel .admin-content .analytics-kpi > * { position: relative; z-index: 1; }
body.customer-panel .admin-content .analytics-kpi:hover { transform: translateY(-3px); box-shadow: var(--rx-shadow-pop) !important; }
body.customer-panel .admin-content .analytics-panel { background: linear-gradient(145deg, var(--rx-surface), var(--rx-surface-2)) !important; }
body.customer-panel .admin-content .analytics-chart { border: 1px solid var(--rx-line); background: linear-gradient(180deg, var(--rx-surface-2), var(--rx-surface)) !important; }
body.customer-panel .admin-content .analytics-button {
    background: linear-gradient(135deg, var(--rx-brand), var(--rx-brand-hover)) !important;
    border: 1px solid var(--rx-brand) !important; color: var(--rx-on-brand) !important;
    box-shadow: 0 10px 20px -14px rgba(var(--rx-brand-rgb), .7) !important;
}
body.customer-panel .admin-content .analytics-button:hover { transform: translateY(-2px); box-shadow: var(--rx-shadow-panel) !important; }
body.customer-panel .customer-kit-footer {
    position: fixed; z-index: 1025; inset: auto calc(var(--cp-rail, 258px) + 18px) 14px 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    min-height: 66px; padding: 10px 16px; border: 1px solid var(--rx-line) !important;
    border-radius: 18px; background: linear-gradient(110deg, var(--rx-surface), var(--rx-surface-2)) !important;
    box-shadow: var(--rx-shadow-panel); backdrop-filter: blur(12px);
}
body.customer-panel .customer-footer-brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; color: var(--rx-ink); text-decoration: none; }
body.customer-panel .customer-footer-mark { display: grid; place-items: center; width: 38px; height: 38px; padding: 6px; border: 1px solid var(--rx-brand-ring); border-radius: 13px; background: var(--rx-brand-soft); }
body.customer-panel .customer-footer-mark img { width: 100%; height: 100%; object-fit: contain; }
body.customer-panel .customer-footer-brand > span:last-child,
body.customer-panel .customer-footer-note > span { display: grid; gap: 2px; }
body.customer-panel .customer-footer-brand strong,
body.customer-panel .customer-footer-note strong { font-size: .76rem; font-weight: 900; }
body.customer-panel .customer-footer-brand small,
body.customer-panel .customer-footer-note small { color: var(--rx-muted); font-size: .64rem; }
body.customer-panel .customer-footer-links { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 2vw, 28px); }
body.customer-panel .customer-footer-links a { color: var(--rx-ink-soft); font-size: .7rem; font-weight: 800; text-decoration: none; }
body.customer-panel .customer-footer-links a:hover { color: var(--rx-brand); }
body.customer-panel .customer-footer-note { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
body.customer-panel .customer-kit-footer ~ * { position: relative; }
body.customer-panel .customer-main-content,
body.customer-panel .admin-content { padding-bottom: 92px; }
@media (max-width: 991.98px) {
    body.customer-panel .admin-navbar { inset: 10px 12px auto 12px; }
    body.customer-panel .customer-header-help { width: 38px; min-width: 38px; justify-content: center; margin-inline-start: 4px; padding: 0; }
    body.customer-panel .customer-header-help span,
    body.customer-panel .customer-header-status span { display: none; }
    body.customer-panel .customer-kit-footer { inset: auto 12px 12px 12px; }
}
@media (max-width: 620px) {
    body.customer-panel .customer-footer-links { display: none; }
    body.customer-panel .customer-footer-brand small { display: none; }
    body.customer-panel .customer-footer-note small { display: none; }
    body.customer-panel .customer-kit-footer { min-height: 58px; padding: 8px 12px; }
}
@media (max-width: 1200px) { body.customer-panel { --cp-ctx: 244px; } }

/* Shared readable type scale across every customer page, using the same locally hosted
   Vazirmatn face as the public site. Lift dense legacy labels and controls to a consistent floor. */
body.customer-panel .content-wrapper,
body.customer-panel .admin-content {
    font-family: var(--rx-font);
    font-size: 1rem;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link { font-size: .82rem; }
body.customer-panel .admin-sidebar-permanent .sidebar-heading { font-size: .7rem !important; }
body.customer-panel .admin-content :is(.page-header h1, .analytics-header h1, .kb-page-header h1, .content-header h1) {
    font-size: clamp(1.65rem, 2.3vw, 2.1rem);
    line-height: 1.5;
}
body.customer-panel .admin-content :is(h1, .page-title) { font-size: max(1.65rem, 1em); line-height: 1.5; }
body.customer-panel .admin-content h2 { font-size: max(1.2rem, 1em); line-height: 1.55; }
body.customer-panel .admin-content h3 { font-size: max(1rem, 1em); line-height: 1.55; }
body.customer-panel .admin-content :is(.page-header p, .analytics-header p, .kb-page-header p, .content-header p) { font-size: .95rem; }
body.customer-panel .admin-content :is(p, li, dd, dt, label, .form-label) {
    font-size: max(.875rem, 1em);
    line-height: 1.8;
}
body.customer-panel .admin-content :is(small, .form-text, .text-muted, .text-secondary) { font-size: max(.78rem, .9em); }
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) {
    font-size: max(.84rem, 1em);
    line-height: 1.55;
}
body.customer-panel .admin-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: max(.9rem, 1em);
    line-height: 1.6;
}
body.customer-panel .admin-content :is(.table th, .table td, th, td) { font-size: max(.82rem, 1em); }
body.customer-panel .admin-content :is(.badge, [class*="badge"], [class*="-pill"], [class*="-chip"], .status-badge) {
    font-size: max(.74rem, 1em);
    line-height: 1.5;
}
body.customer-panel .chatbot-context-sidebar :is(.sidebar-bot-context-label, .sidebar-bot-preview, .sidebar-bot-overview, .sidebar-bot-group > summary, .sidebar-bot-submenu a) {
    font-size: max(.78rem, 1em);
}

/* Organic kit shell finish: give the production chrome the same soft, tactile card language as
   the approved kit, rather than leaving the old flat admin rail and strip footer around new cards. */
body.customer-panel .admin-sidebar-permanent {
    inset: 10px 10px 10px auto;
    width: calc(var(--cp-rail, 258px) - 20px) !important;
    display: flex;
    flex-direction: column;
    padding: 12px 12px 10px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--rx-brand) 13%, var(--rx-line)) !important;
    border-radius: 23px;
    background:
        radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--rx-brand-soft) 86%, transparent), transparent 40%),
        linear-gradient(180deg, var(--rx-surface), color-mix(in srgb, var(--rx-page-alt) 76%, var(--rx-surface))) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel .customer-sidebar-brand {
    flex: 0 0 auto;
    min-height: 72px;
    margin: 0 0 10px;
    padding: 8px 5px 13px;
    border-bottom: 1px solid color-mix(in srgb, var(--rx-brand) 12%, var(--rx-line));
}
body.customer-panel .customer-sidebar-brand img {
    width: 46px; height: 46px; flex-basis: 46px; padding: 9px;
    border: 1px solid rgba(var(--rx-brand-rgb), .12); border-radius: 16px;
    background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
    box-shadow: 0 9px 18px -10px rgba(var(--rx-brand-rgb), .72);
}
body.customer-panel .customer-sidebar-brand strong { font-size: 1rem; letter-spacing: -.02em; }
body.customer-panel .customer-sidebar-brand small { font-size: .7rem; }
body.customer-panel .admin-sidebar-permanent .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    margin-inline: -2px;
    padding: 0 2px 8px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--rx-brand) 20%, transparent) transparent;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 {
    padding-top: .7rem !important;
    margin-top: .35rem !important;
    border-top: 0 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3:first-of-type { border-top: 0; }
body.customer-panel .admin-sidebar-permanent .sidebar-heading {
    padding: .15rem .68rem .42rem !important;
    color: var(--rx-muted) !important;
    font-size: .68rem !important;
    letter-spacing: .01em !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link {
    min-height: 40px;
    margin: 2px 0 !important;
    padding: .42rem .58rem !important;
    border-radius: 14px !important;
    font-size: .75rem;
    font-weight: 740;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link i {
    width: 31px; height: 31px; flex-basis: 31px; min-width: 31px;
    border-radius: 11px;
    background: linear-gradient(145deg, var(--rx-surface), var(--rx-brand-soft)) !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link.active {
    background: linear-gradient(105deg, color-mix(in srgb, var(--rx-brand-soft) 84%, white), var(--rx-surface)) !important;
    border-color: color-mix(in srgb, var(--rx-brand) 20%, var(--rx-line)) !important;
    box-shadow: 0 8px 20px -17px rgba(var(--rx-brand-rgb), .75), inset 0 1px rgba(255,255,255,.9) !important;
}
body.customer-panel .customer-sidebar-help {
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) 18px;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    margin-top: 8px;
    padding: 10px 9px;
    border: 1px solid color-mix(in srgb, var(--rx-brand) 15%, var(--rx-line));
    border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--rx-brand-soft) 76%, white), var(--rx-surface));
    color: var(--rx-ink);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
body.customer-panel .customer-sidebar-help:hover { transform: translateY(-2px); box-shadow: var(--rx-shadow-panel); color: var(--rx-brand-ink); }
body.customer-panel .customer-sidebar-help-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg,var(--rx-brand-hover),var(--rx-brand)); color: white; }
body.customer-panel .customer-sidebar-help > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
body.customer-panel .customer-sidebar-help strong { font-size: .72rem; font-weight: 900; }
body.customer-panel .customer-sidebar-help small { overflow: hidden; color: var(--rx-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
body.customer-panel .customer-sidebar-help-arrow { color: var(--rx-brand); font-size: .8rem; }

body.customer-panel .admin-navbar {
    background:
        radial-gradient(ellipse at 100% 50%, color-mix(in srgb, var(--rx-brand-soft) 68%, transparent), transparent 34%),
        linear-gradient(110deg, var(--rx-surface), color-mix(in srgb, var(--rx-page-alt) 55%, var(--rx-surface))) !important;
    border-color: color-mix(in srgb, var(--rx-brand) 14%, var(--rx-line)) !important;
    box-shadow: 0 12px 34px -26px rgba(var(--rx-contrast-rgb), .34), inset 0 1px rgba(255,255,255,.9) !important;
}
body.customer-panel .customer-header-context-mark {
    border: 0;
    background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
    color: #fff;
    box-shadow: 0 8px 18px -11px rgba(var(--rx-brand-rgb), .8);
}
body.customer-panel .customer-header-context-mark i { color: #fff !important; }
body.customer-panel .customer-header-status {
    border-color: color-mix(in srgb, var(--rx-success) 20%, var(--rx-line));
    background: linear-gradient(110deg, var(--rx-success-soft), var(--rx-surface));
    color: var(--rx-success);
}
body.customer-panel .admin-navbar .user-chip-btn {
    border-color: color-mix(in srgb, var(--rx-brand) 13%, var(--rx-line));
    background: linear-gradient(100deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 45%, var(--rx-surface)));
    box-shadow: 0 5px 15px -13px rgba(var(--rx-contrast-rgb), .4);
}
body.customer-panel .customer-header-help { border-radius: 13px; }
body.customer-panel .customer-header-help:hover { box-shadow: var(--rx-shadow-sm); }

body.customer-panel .admin-content :is(.analytics-kpi, .analytics-panel, .stat-card, .glass-card, .panel-card, .content-card) {
    background:
        radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--rx-brand-soft) 82%, transparent), transparent 47%),
        linear-gradient(145deg, var(--rx-surface), color-mix(in srgb, var(--rx-page-alt) 66%, var(--rx-surface))) !important;
    border-color: color-mix(in srgb, var(--rx-brand) 18%, var(--rx-line)) !important;
    box-shadow: 0 15px 36px -29px rgba(var(--rx-contrast-rgb), .32), inset 0 1px rgba(255,255,255,.88) !important;
}
body.customer-panel .admin-content .analytics-kpi {
    background:
        radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--accent, var(--rx-brand)) 17%, transparent), transparent 55%),
        linear-gradient(145deg, var(--rx-surface), color-mix(in srgb, var(--accent, var(--rx-brand)) 6%, var(--rx-page-alt))) !important;
}
body.customer-panel .customer-kit-footer {
    width: auto;
    min-height: 70px;
    padding: 11px 18px;
    border-color: color-mix(in srgb, var(--rx-brand) 16%, var(--rx-line)) !important;
    background:
        radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--rx-brand-soft) 72%, transparent), transparent 40%),
        linear-gradient(110deg, var(--rx-surface), color-mix(in srgb, var(--rx-page-alt) 66%, var(--rx-surface))) !important;
    box-shadow: 0 12px 30px -23px rgba(var(--rx-contrast-rgb), .3), inset 0 1px rgba(255,255,255,.9) !important;
}
body.customer-panel .customer-footer-mark { border: 0; background: linear-gradient(145deg,var(--rx-brand-hover),var(--rx-brand)); box-shadow: 0 7px 16px -10px rgba(var(--rx-brand-rgb), .7); }
body.customer-panel .customer-footer-mark img { filter: brightness(0) invert(1); }
body.customer-panel .customer-footer-note > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--rx-brand-soft); color: var(--rx-brand); box-shadow: none; }
body.customer-panel .customer-footer-links a { padding: 8px 11px; border-radius: 10px; transition: background .16s,color .16s; }
body.customer-panel .customer-footer-links a:hover { background: var(--rx-brand-soft); }
body.customer-panel .admin-content { padding-bottom: 100px; }
@media (max-width: 991.98px) {
    body.customer-panel .admin-sidebar-permanent { inset: 8px 8px 8px auto; width: min(290px, 86vw) !important; border-radius: 22px; }
    body.customer-panel .admin-navbar { inset: 10px 12px auto 12px; }
    body.customer-panel .customer-sidebar-help { margin-top: 10px; }
    body.customer-panel .customer-kit-footer { inset: auto 12px 12px 12px; }
}
@media (max-width: 620px) {
    body.customer-panel .customer-kit-footer { min-height: 58px; padding: 8px 12px; border-radius: 15px; }
    body.customer-panel .customer-footer-links { display: none; }
    body.customer-panel .customer-sidebar-brand { min-height: 66px; }
}

/* Latest shell corrections: customer pages have no footer, the topbar is fixed flush to the
   viewport edge, and chatbot workspaces restore the two-rail navigation layout. */
body.customer-panel .customer-kit-footer { display: none !important; }
body.customer-panel .admin-content { padding-bottom: 24px !important; }
body.customer-panel .admin-navbar {
    top: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 18px 18px;
}
body.customer-panel .admin-wrapper.customer-panel-wrapper { padding-top: calc(var(--rx-navbar-height) + 12px); }
body.customer-panel .admin-navbar { right: calc(var(--cp-rail, 258px) + 2px); left: clamp(18px, 3vw, 56px); }
body.customer-panel .admin-sidebar-permanent { inset-inline-end: 12px; }
body.customer-panel .admin-content :is(.page-header h1, .analytics-header h1, .kb-page-header h1, .content-header h1) {
    font-size: clamp(1.4rem, 1.65vw, 1.8rem) !important;
    line-height: 1.45;
}
body.customer-panel .admin-content :is(h1, .page-title) { font-size: max(1.4rem, 1em); }
body.customer-panel .admin-content h2 { font-size: max(1.08rem, 1em); }
body.customer-panel .admin-content h3 { font-size: max(.94rem, 1em); }
body.customer-panel .content-wrapper,
body.customer-panel .admin-content { font-size: .93rem; line-height: 1.8; }
body.customer-panel .admin-content :is(p, li, dd, dt, label, .form-label) { font-size: max(.82rem, 1em); }
body.customer-panel .admin-content :is(small, .form-text, .text-muted, .text-secondary) { font-size: max(.74rem, .92em); }
body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) { font-size: max(.78rem, 1em); }
body.customer-panel .admin-content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { font-size: max(.84rem, 1em); }
body.customer-panel .admin-content :is(.table th, .table td, th, td) { font-size: max(.76rem, 1em); }
body.customer-panel .admin-sidebar-permanent .sidebar-heading { font-size: .64rem !important; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header h1 { font-size: clamp(1.4rem, 1.65vw, 1.8rem) !important; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header { min-height: 162px; padding: 28px clamp(24px, 3vw, 46px); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi { padding: 17px 18px 14px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi > strong { font-size: 1.45rem; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel { padding: 16px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel-heading h2 { font-size: .88rem; }
@media (min-width: 992px) {
    body.customer-panel .admin-wrapper.has-chatbot-context { --cp-rail: 96px; --cp-ctx: 280px; }
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent { width: 76px !important; padding-inline: 8px; }
    body.customer-panel .admin-wrapper.has-chatbot-context .customer-sidebar-brand { justify-content: center; padding-inline: 0; margin-inline: 0; }
    body.customer-panel .admin-wrapper.has-chatbot-context .customer-sidebar-brand > span:not(.customer-sidebar-mark),
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent .sidebar-heading,
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent .sidebar-label,
    body.customer-panel .admin-wrapper.has-chatbot-context .customer-sidebar-help { display: none !important; }
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent .sidebar-nav .nav-link { justify-content: center; padding-inline: 0 !important; margin-inline: 0 !important; }
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 { padding-top: .5rem !important; margin-top: .5rem !important; }
    body.customer-panel .admin-wrapper.has-chatbot-context .chatbot-context-sidebar { display: flex !important; }
    body.customer-panel .admin-content.with-chatbot-context { margin-right: calc(var(--cp-rail) + var(--cp-ctx)) !important; }
    body.customer-panel .admin-wrapper.has-chatbot-context .admin-navbar { right: calc(var(--cp-rail) + var(--cp-ctx) + 18px); }
}
@media (max-width: 991.98px) {
    body.customer-panel .admin-navbar { top: 0 !important; right: 0 !important; left: 0 !important; border-radius: 0 0 15px 15px; }
    body.customer-panel .admin-sidebar-permanent { inset-inline-end: 0; }
    body.customer-panel .chatbot-context-sidebar { display: none !important; }
}

/* The chatbot rail is a sibling navigation panel, not a legacy nested sidebar card. */
@media (min-width: 992px) {
    body.customer-panel .chatbot-context-sidebar {
        inset: 0 auto 12px 0;
        right: var(--cp-rail, 96px);
        width: var(--cp-ctx, 280px);
        display: flex;
        flex-direction: column;
        padding: 11px;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--rx-brand) 15%, var(--rx-line)) !important;
        border-radius: 22px;
        background:
            radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--rx-brand-soft) 88%, transparent), transparent 42%),
            linear-gradient(180deg, var(--rx-surface), color-mix(in srgb, var(--rx-page-alt) 76%, var(--rx-surface))) !important;
        box-shadow: var(--rx-shadow-panel) !important;
        z-index: 1020;
    }
    body.customer-panel .chatbot-context-nav,
    body.customer-panel .chatbot-context-nav > ul { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
    body.customer-panel .chatbot-context-nav > ul > .chatbot-sidebar-workspace {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-context {
        flex: 0 0 auto;
        margin: 0 0 10px;
        padding: 11px;
        border: 1px solid color-mix(in srgb, var(--rx-brand) 14%, var(--rx-line));
        border-radius: 16px;
        background: linear-gradient(145deg, color-mix(in srgb, var(--rx-brand-soft) 78%, white), var(--rx-surface));
        box-shadow: 0 8px 22px -20px rgba(var(--rx-brand-rgb), .7);
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-context-label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: var(--rx-ink-soft);
        font-size: .67rem;
        font-weight: 850;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-context-label i {
        display: grid;
        flex: 0 0 27px;
        width: 27px;
        height: 27px;
        place-items: center;
        border-radius: 9px;
        background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
        color: #fff !important;
        box-shadow: 0 5px 12px -8px rgba(var(--rx-brand-rgb), .8);
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-switcher select,
    body.customer-panel .chatbot-context-nav .sidebar-bot-name {
        min-height: 40px;
        margin: 0;
        padding: 7px 10px;
        border: 1px solid var(--rx-line-input);
        border-radius: 12px;
        background: var(--rx-surface);
        color: var(--rx-ink);
        font: 750 .72rem var(--rx-font);
        box-shadow: inset 0 1px rgba(255,255,255,.8);
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-switcher select:focus { border-color: var(--rx-brand); box-shadow: 0 0 0 3px var(--rx-brand-ring); }
    body.customer-panel .chatbot-context-nav .sidebar-bot-preview {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 38px;
        margin: 7px 0 0;
        padding: 0 10px;
        border: 1px solid transparent;
        border-radius: 11px;
        color: var(--rx-brand-ink) !important;
        font-size: .7rem;
        font-weight: 800;
        text-decoration: none;
        transition: background .16s, border-color .16s, transform .16s;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-preview:hover { transform: translateY(-1px); border-color: var(--rx-brand-ring); background: var(--rx-surface); }
    body.customer-panel .chatbot-context-nav .sidebar-bot-navigation {
        display: grid;
        align-content: start;
        gap: 4px;
        min-height: 0;
        padding: 1px 0 3px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--rx-brand) 20%, transparent) transparent;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary {
        display: flex;
        align-items: center;
        gap: 9px;
        min-height: 40px;
        padding: 5px 8px;
        border: 1px solid transparent;
        border-radius: 13px;
        color: var(--rx-ink-soft) !important;
        font-size: .74rem;
        font-weight: 740;
        text-decoration: none;
        transition: background .16s, border-color .16s, color .16s, transform .16s;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview > i:first-child,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary > i:first-child {
        display: grid;
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
        place-items: center;
        border: 1px solid var(--rx-line);
        border-radius: 10px;
        background: linear-gradient(145deg, var(--rx-surface), var(--rx-brand-soft));
        color: var(--rx-brand) !important;
        font-size: .82rem;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview:hover,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary:hover { transform: translateX(-2px); background: var(--rx-surface); border-color: var(--rx-line); }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview.active,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary.active {
        border-color: var(--rx-brand-ring);
        background: linear-gradient(100deg, var(--rx-brand-soft), var(--rx-surface));
        color: var(--rx-brand-ink) !important;
        box-shadow: 0 7px 18px -16px rgba(var(--rx-brand-rgb), .8);
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview.active > i:first-child,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary.active > i:first-child {
        border-color: transparent;
        background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
        color: #fff !important;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-group { margin: 0; }
    body.customer-panel .chatbot-context-nav .sidebar-bot-group .group-chevron { margin-inline-start: auto; color: var(--rx-muted); font-size: .58rem; }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu {
        margin: 2px 15px 5px 0;
        padding: 3px 8px 3px 0;
        border-right: 1px solid color-mix(in srgb, var(--rx-brand) 18%, var(--rx-line));
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu .plan-locked {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 33px;
        margin: 1px 0;
        padding: 4px 8px;
        border: 1px solid transparent;
        border-radius: 10px;
        color: var(--rx-muted) !important;
        font-size: .68rem;
        text-decoration: none;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a i,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu .plan-locked > i:first-child { width: 16px; color: var(--rx-brand); text-align: center; }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a:hover { border-color: var(--rx-line); background: var(--rx-surface); color: var(--rx-ink) !important; }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a.active { border-color: var(--rx-brand-ring); background: var(--rx-brand-soft); color: var(--rx-brand-ink) !important; font-weight: 820; }
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu .plan-locked { opacity: .54; }
}
@media (max-width: 767.98px) {
    body.customer-panel .customer-main-content > .content-wrapper,
    body.customer-panel .admin-content > .content-wrapper {
        width: calc(100% - 12px);
        min-height: calc(100vh - var(--rx-navbar-height) - 18px);
        margin: 8px auto 18px;
        padding: 12px;
        border-radius: 18px;
    }
}

/* Final typography and contrast pass from the live Chats workspace screenshot. */
body.customer-panel .customer-sidebar-brand .customer-sidebar-mark {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 9px;
    border: 1px solid rgba(var(--rx-brand-rgb), .12);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
    box-shadow: 0 9px 18px -10px rgba(var(--rx-brand-rgb), .72);
}
body.customer-panel .customer-sidebar-brand .customer-sidebar-mark img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: brightness(0) invert(1);
    box-shadow: none;
}
body.customer-panel .admin-wrapper.has-chatbot-context .customer-sidebar-brand > span:not(.customer-sidebar-mark) { display: none !important; }

body.customer-panel .chatbot-context-sidebar .sidebar-bot-context-label { font-size: .66rem !important; }
body.customer-panel .chatbot-context-sidebar .sidebar-bot-overview,
body.customer-panel .chatbot-context-sidebar .sidebar-bot-group > summary { font-size: .71rem !important; }
body.customer-panel .chatbot-context-sidebar .sidebar-bot-submenu a,
body.customer-panel .chatbot-context-sidebar .sidebar-bot-submenu .plan-locked { font-size: .65rem !important; }
body.customer-panel .chatbot-context-sidebar .sidebar-bot-switcher select,
body.customer-panel .chatbot-context-sidebar .sidebar-bot-name { font-size: .68rem !important; }
body.customer-panel .chatbot-context-nav .sidebar-bot-preview {
    justify-content: flex-start;
    gap: 8px;
    min-height: 38px;
    margin-top: 7px;
    padding: 4px 7px;
    border: 1px solid var(--rx-brand-ring);
    border-radius: 12px;
    background: linear-gradient(110deg, var(--rx-brand-soft), var(--rx-surface));
    color: var(--rx-brand-ink) !important;
    font-size: .68rem !important;
    font-weight: 820;
    box-shadow: 0 6px 15px -14px rgba(var(--rx-brand-rgb), .8);
}
body.customer-panel .chatbot-context-nav .sidebar-bot-preview-icon {
    display: grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand));
    color: #fff !important;
    font-size: .76rem;
}
body.customer-panel .chatbot-context-nav .sidebar-bot-preview > span { flex: 1; }
body.customer-panel .chatbot-context-nav .sidebar-bot-preview-arrow { color: var(--rx-brand); font-size: .72rem; }
body.customer-panel .chatbot-context-nav .sidebar-bot-preview:hover { border-color: var(--rx-brand); background: var(--rx-brand-soft); transform: translateY(-1px); }

body.customer-panel .admin-content h1,
body.customer-panel .admin-content :is(.page-title, .content-title) { font-size: clamp(1.38rem, 1.55vw, 1.72rem) !important; line-height: 1.45; }
body.customer-panel .admin-content h2 { font-size: min(1.2rem, 1.2em) !important; line-height: 1.5; }
body.customer-panel .admin-content h3 { font-size: min(1.04rem, 1.12em) !important; line-height: 1.5; }
body.customer-panel .admin-content :is(h4, h5, h6) { font-size: min(.96rem, 1.08em) !important; line-height: 1.5; }
body.customer-panel .admin-content :is(p, li, dd, dt, label, .form-label, .form-check-label) { font-size: min(.9rem, 1em) !important; }
body.customer-panel .admin-content :is(small, .form-text, .text-muted, .text-secondary) { font-size: min(.78rem, 1em) !important; }
body.customer-panel .admin-content :is(button, [role="button"], input, select, textarea, a.btn, a[class*="-button"], a[class*="-btn"]) { font-size: min(.88rem, 1em) !important; }
body.customer-panel .admin-content :is(th, td, .table th, .table td) { font-size: min(.84rem, 1em) !important; }

body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .filter-actions {
    border-top-color: var(--rx-line) !important;
    background: linear-gradient(110deg, var(--rx-page-alt), color-mix(in srgb, var(--rx-brand-soft) 58%, var(--rx-surface))) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger {
    border-color: var(--rx-line-input) !important;
    background: var(--rx-surface) !important;
    color: var(--rx-ink-soft) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger:hover,
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .tag-filter-trigger[aria-expanded="true"] {
    border-color: var(--rx-brand-ring) !important;
    background: var(--rx-brand-soft) !important;
    color: var(--rx-brand-ink) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Chats"] .btn-clear { background: var(--rx-surface) !important; border-color: var(--rx-line) !important; color: var(--rx-ink-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .badge-credit,
body.customer-panel[data-style-page="/KnowledgeBase/Index"] .badge-credit :is(i, span) {
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}

/* Keep the two chatbot rails, the main canvas, and the fixed header in separate columns. */
@media (min-width: 992px) {
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-navbar {
        right: calc(var(--cp-rail, 96px) + var(--cp-ctx, 280px) + 24px) !important;
    }
    body.customer-panel .admin-content.with-chatbot-context {
        margin-right: calc(var(--cp-rail, 96px) + var(--cp-ctx, 280px) + 24px) !important;
    }
    body.customer-panel .chatbot-context-sidebar {
        right: calc(var(--cp-rail, 96px) + 8px) !important;
        box-sizing: border-box;
        min-width: 0;
        max-width: var(--cp-ctx, 280px);
        overflow-x: hidden !important;
    }
    body.customer-panel .chatbot-context-nav,
    body.customer-panel .chatbot-context-nav > ul,
    body.customer-panel .chatbot-context-nav > ul > .chatbot-sidebar-workspace,
    body.customer-panel .chatbot-context-nav .sidebar-bot-navigation,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-overview,
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu .plan-locked {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.customer-panel .chatbot-context-nav .sidebar-bot-group > summary > span,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu a > span,
    body.customer-panel .chatbot-context-nav .sidebar-bot-submenu .plan-locked > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Compact the primary customer rail so all navigation groups fit without airy gaps. */
body.customer-panel .admin-sidebar-permanent .sidebar-nav {
    padding: 0 1px 4px !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav > ul {
    gap: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item {
    margin: 0 !important;
    padding: 0 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-item.mt-3 {
    margin-top: .12rem !important;
    padding-top: .26rem !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-heading {
    margin: 0 !important;
    padding: .08rem .58rem .16rem !important;
    font-size: .61rem !important;
    line-height: 1.25 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link {
    min-height: 33px !important;
    margin: 0 !important;
    padding: .18rem .45rem !important;
    gap: .48rem;
    border-radius: 11px !important;
    font-size: .72rem !important;
    line-height: 1.3 !important;
}
body.customer-panel .admin-sidebar-permanent .sidebar-nav .nav-link i {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 8px;
    font-size: .77rem !important;
}
body.customer-panel .admin-sidebar-permanent .customer-sidebar-help {
    grid-template-columns: 30px minmax(0, 1fr) 15px;
    gap: 7px;
    margin-top: 5px;
    padding: 7px 8px;
    border-radius: 14px;
}
body.customer-panel .admin-sidebar-permanent .customer-sidebar-help-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}
body.customer-panel .admin-sidebar-permanent .customer-sidebar-help strong { font-size: .66rem; }
body.customer-panel .admin-sidebar-permanent .customer-sidebar-help small { font-size: .59rem; }
@media (max-width: 640px) {
    body.customer-panel .content-wrapper { font-size: .96rem; }
    body.customer-panel .admin-content :is(.page-header h1, .analytics-header h1, .kb-page-header h1, .content-header h1) { font-size: 1.55rem; }
    body.customer-panel .admin-content :is(button, [role="button"], input[type="button"], input[type="submit"], a.btn, a[class*="-button"], a[class*="-btn"]) { font-size: max(.82rem, 1em); }
}

/* Shared Persian calendar skin for every page using persian-datepicker. */
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-container { z-index: 1200; }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area {
    width: 264px;
    min-width: 264px;
    padding: 10px;
    overflow: visible;
    border: 1px solid var(--rx-line);
    border-radius: 16px;
    background: var(--rx-surface);
    color: var(--rx-ink);
    font: 500 .78rem/1.5 var(--rx-font);
    box-shadow: var(--rx-shadow-pop);
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area * { font-family: var(--rx-font); }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area * { color: var(--rx-ink-soft); }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 38px;
    margin: 0 0 8px;
    border-bottom: 1px solid var(--rx-line);
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator .pwt-btn-prev,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator .pwt-btn-next,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator .pwt-btn-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--rx-ink);
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator .pwt-btn-switch { flex: 1; font-size: .83rem; font-weight: 800; }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator :is(.pwt-btn-prev, .pwt-btn-next):hover,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-navigator .pwt-btn-switch:hover { background: var(--rx-brand-soft); color: var(--rx-brand-ink); }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days { width: 100%; border-spacing: 2px; }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days th {
    height: 28px;
    color: var(--rx-muted);
    font-size: .68rem;
    font-weight: 750;
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days td span,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-month-view .month-item,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-year-view .year-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--rx-ink-soft);
    font: 600 .74rem/1 var(--rx-font);
    text-shadow: none;
    transition: background .15s ease, color .15s ease;
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days td span:hover,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-month-view .month-item:hover,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-year-view .year-item:hover {
    background: var(--rx-brand-soft);
    color: var(--rx-brand-ink);
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days td.selected span,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-month-view .month-item.selected,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-year-view .year-item.selected {
    background: var(--rx-brand);
    color: var(--rx-on-brand);
    font-weight: 800;
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days td.today span {
    border: 1px solid var(--rx-brand-ring);
    background: var(--rx-brand-soft);
    color: var(--rx-brand-ink);
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-day-view .table-days td.disabled span,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-month-view .month-item-disable,
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .datepicker-year-view .year-item-disable {
    background: transparent;
    color: var(--rx-faint);
    opacity: .55;
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .toolbox { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rx-line); }
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .toolbox :is(.pwt-btn-today, .pwt-btn-submit, .pwt-btn-calendar) {
    border: 1px solid var(--rx-line);
    border-radius: 9px;
    background: var(--rx-surface-2);
    color: var(--rx-brand-ink);
    font: 700 .72rem var(--rx-font);
    padding: 6px 10px;
}
:root:is(.customer-panel-theme, .operator-kit-theme) .datepicker-plot-area .toolbox :is(.pwt-btn-today, .pwt-btn-submit, .pwt-btn-calendar):hover {
    border-color: var(--rx-brand-ring);
    background: var(--rx-brand-soft);
}

/* Customer pages must not inherit the admin palette's decorative rainbow canvas.
   These older wrappers appear across the account, knowledge base, policy, request,
   dashboard and simulator pages; the site kit uses a quiet paper canvas instead. */
body.customer-panel .admin-content :is(
    .kb-wrapper, .kb-container, .dashboard-wrapper, .dashboard-page, .page-wrapper,
    .settings-page, .page-shell, .requests-wrapper, .policies-wrapper, .apikey-wrapper,
    .simulator-wrapper, .create-wrapper, .edit-wrapper, .support-wrapper,
    .details-wrapper, .purchase-wrapper, .callback-wrapper
) {
    background: var(--rx-page) !important;
    background-image: none !important;
}
body.customer-panel .admin-content :is(
    .kb-wrapper, .kb-container, .dashboard-wrapper, .dashboard-page, .page-wrapper,
    .settings-page, .page-shell, .requests-wrapper, .policies-wrapper, .apikey-wrapper,
    .simulator-wrapper, .create-wrapper, .edit-wrapper, .support-wrapper,
    .details-wrapper, .purchase-wrapper, .callback-wrapper
)::before,
body.customer-panel .admin-content :is(
    .kb-wrapper, .kb-container, .dashboard-wrapper, .dashboard-page, .page-wrapper,
    .settings-page, .page-shell, .requests-wrapper, .policies-wrapper, .apikey-wrapper,
    .simulator-wrapper, .create-wrapper, .edit-wrapper, .support-wrapper,
    .details-wrapper, .purchase-wrapper, .callback-wrapper
)::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

/* Bring page heroes and shared cards onto the kit's soft mint surfaces. */
body.customer-panel .admin-content .page-header {
    margin-bottom: 20px !important;
    padding: 19px 22px !important;
    border: 1px solid var(--rx-line) !important;
    border-bottom: 1px solid var(--rx-line) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 48%, var(--rx-surface))) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel .admin-content .page-header :is(h1, h2, h3) { color: var(--rx-ink) !important; }
body.customer-panel .admin-content :is(
    .card, [class$="-card"], [class*="-card "], [class$="-panel"], [class*="-panel "]
):not(.alert):not(.toast):not([class*="danger"]):not([class*="success"]):not([class*="warning"]):not(.analytics-kpi):not(.analytics-panel) {
    border-color: var(--rx-line) !important;
    background: linear-gradient(145deg, var(--rx-surface) 20%, color-mix(in srgb, var(--rx-brand-soft) 28%, var(--rx-surface))) !important;
    color: var(--rx-ink);
    box-shadow: var(--rx-shadow-panel) !important;
}

/* Retheme custom knowledge-base components that predate the shared card and form kit. */
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .card-panel,
body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-row,
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule,
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom,
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row,
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item {
    border-color: var(--rx-line) !important;
    background: linear-gradient(145deg, var(--rx-surface), color-mix(in srgb, var(--rx-brand-soft) 26%, var(--rx-surface))) !important;
    color: var(--rx-ink) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-header { border-bottom: 1px solid var(--rx-line) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft,
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft :is(th, td) {
    color: var(--rx-ink-soft) !important;
    border-color: var(--rx-line) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft thead { background: var(--rx-surface-2) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .table-dark-soft tbody tr { background: transparent !important; }
body.customer-panel[data-style-page="/KnowledgeBase/Faqs"] .faq-row:hover,
body.customer-panel[data-style-page="/KnowledgeBase/HandoffRules"] .hr-row:hover { background: var(--rx-brand-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero {
    border-color: var(--rx-line) !important;
    background: linear-gradient(135deg, var(--rx-surface), var(--rx-brand-soft)) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero :is(h1, p) { color: var(--rx-ink) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert.success {
    border-color: color-mix(in srgb, var(--rx-success) 34%, var(--rx-line)) !important;
    background: var(--rx-success-soft) !important;
    color: var(--rx-success) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] :is(.install-icon, .tg-bot-avatar, .install-badge) {
    background: linear-gradient(145deg, var(--rx-brand-hover), var(--rx-brand)) !important;
    color: var(--rx-on-brand) !important;
}

/* Customer page finishing pass: consistent hierarchy and narrow-screen behavior. */
body.customer-panel .admin-content {
    min-width: 0;
}
body.customer-panel .admin-content :is(h1, .page-title) {
    color: var(--rx-ink) !important;
    font-size: clamp(1.25rem, 1.6vw, 1.65rem) !important;
    font-weight: 800;
    line-height: 1.55;
}
body.customer-panel .admin-content :is(h2, h3, h4) {
    color: var(--rx-ink) !important;
    line-height: 1.55;
}
body.customer-panel .admin-content :is(p, .text-muted, small) {
    line-height: 1.85;
}
body.customer-panel .admin-content :is(.table-responsive, .table-wrap, .data-table-wrap) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--rx-line);
    border-radius: 16px;
    background: var(--rx-surface);
}
body.customer-panel .admin-content table {
    min-width: 620px;
    margin-bottom: 0;
    color: var(--rx-ink-soft);
}
body.customer-panel .admin-content :is(input, select, textarea) {
    max-width: 100%;
}
body.customer-panel .admin-content :is(.btn, button) {
    min-height: 40px;
}
body.customer-panel .admin-content :is(.btn-group, .button-group, .actions, .toolbar) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
body.customer-panel .admin-content :is(.alert, .notice, .empty-state, .empty-state-card) {
    border-radius: 16px;
}
@media (max-width: 767.98px) {
    body.customer-panel .admin-content {
        padding-inline: 12px !important;
    }
    body.customer-panel .admin-content .page-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin: 12px 0 16px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }
    body.customer-panel .admin-content :is(.page-header .btn, .page-header a.btn) {
        width: 100%;
    }
    body.customer-panel .admin-content :is(.row, [class*="grid"]) {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    body.customer-panel .admin-content :is(.card, [class$="-card"], [class$="-panel"]) {
        min-width: 0;
        border-radius: 16px !important;
    }
    body.customer-panel .admin-content :is(.form-actions, .modal-footer, .page-actions) {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.customer-panel .admin-content :is(.form-actions .btn, .modal-footer .btn, .page-actions .btn) {
        flex: 1 1 140px;
    }
    body.customer-panel .admin-content :is(.table-responsive, .table-wrap, .data-table-wrap) {
        margin-inline: 0;
    }
}

/* Final alignment: place the bot rail beneath the topbar, level with primary navigation. */
@media (min-width: 992px) {
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) {
        --cp-rail: 96px;
        --cp-ctx: 280px;
    }
    body.customer-panel .chatbot-context-sidebar {
        inset-block: 10px !important;
        z-index: 1020 !important;
    }
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) .admin-navbar {
        left: clamp(18px, 3vw, 56px) !important;
        right: calc(var(--cp-rail) + var(--cp-ctx) + 32px) !important;
        width: auto !important;
    }
}
body.customer-panel .customer-header-help { display: none !important; }

/* Rebuilt prepared answers: compact header, clear category cards, balanced editor columns. */
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 16px !important;
    padding: 20px 22px !important;
    border: 1px solid var(--rx-line) !important;
    border-radius: 20px !important;
    background: linear-gradient(125deg, var(--rx-surface), var(--rx-brand-soft)) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-title { gap: 10px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-title h1 { margin: 0 !important; color: var(--rx-ink) !important; font-size: clamp(1.35rem, 2vw, 1.8rem) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero p { max-width: 760px; margin: 8px 0 0 !important; color: var(--rx-ink-soft) !important; font-size: .9rem !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-actions { align-items: center !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-btn { min-height: 42px; padding: 9px 16px !important; border: 1px solid var(--rx-line) !important; border-radius: 12px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-btn.save { background: var(--rx-brand) !important; color: var(--rx-on-brand) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] #fpForm { display: flex; flex-direction: column; gap: 14px; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar {
    margin: 0 !important; padding: 16px 18px !important; border: 1px solid var(--rx-line) !important;
    border-radius: 16px !important; background: var(--rx-surface) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar h2 { font-size: 1rem !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-toolbar p { margin-bottom: 0 !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-list { gap: 14px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule {
    border: 1px solid var(--rx-line) !important; border-radius: 18px !important;
    background: var(--rx-surface) !important; box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-head {
    gap: 12px !important; padding: 14px 18px !important; background: var(--rx-surface-2);
    border-bottom: 1px solid var(--rx-line) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-number { color: var(--rx-brand-ink) !important; background: var(--rx-brand-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name input,
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-answer,
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase {
    border: 1px solid var(--rx-line-input) !important; border-radius: 12px !important;
    background: var(--rx-surface) !important; color: var(--rx-ink) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-body {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 18px !important; padding: 18px !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-body > div { min-width: 0; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-label { color: var(--rx-ink-soft) !important; font-size: .78rem !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-answer { min-height: 132px !important; padding: 12px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-phrases { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase-row { min-width: 0; gap: 6px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-phrase { min-width: 0; min-height: 42px; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-remove { flex: 0 0 38px; border: 1px solid color-mix(in srgb,var(--rx-danger) 28%,var(--rx-line)) !important; border-radius: 10px !important; background: var(--rx-danger-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-add { min-height: 38px; margin-top: 8px !important; padding: 7px 10px; border: 1px dashed var(--rx-brand-ring); border-radius: 10px; color: var(--rx-brand-ink) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot {
    align-items: center; gap: 12px; padding: 12px 18px !important;
    border-top: 1px solid var(--rx-line) !important; background: var(--rx-surface-2);
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-new { border-color: var(--rx-brand-ring) !important; background: var(--rx-brand-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-bottom {
    margin: 0 !important; padding: 16px 18px !important; border: 1px solid var(--rx-line) !important;
    border-radius: 18px !important; background: linear-gradient(120deg,var(--rx-surface),var(--rx-brand-soft)) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-toggle-copy strong { color: var(--rx-ink) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-toggle-copy span { color: var(--rx-muted) !important; }
@media (max-width: 767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-hero { display: grid !important; padding: 16px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-actions { display: grid; grid-template-columns: 1fr 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-name { grid-template-columns: 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-body { grid-template-columns: 1fr !important; gap: 14px !important; padding: 14px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-phrases { grid-template-columns: 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/FastPath"] .fp-rule-foot { align-items: flex-start; flex-direction: column; }
}

/* External API connections: readable settings hierarchy and compact, scannable integration cards. */
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-page {
    width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; padding: 0 !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-header {
    min-height: 112px; margin: 0 0 16px !important; padding: 20px 24px !important;
    border: 1px solid var(--rx-line) !important; border-radius: 20px !important;
    background: linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)) !important;
    box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-title { font-size: clamp(1.35rem,2vw,1.8rem) !important; font-weight: 850; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-sub { margin-top: 7px !important; color: var(--rx-ink-soft) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert.success { display: none !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-alert.error { border-radius: 14px !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-card {
    display: flex; flex-direction: column; gap: 12px; margin: 0 !important; padding: 18px !important;
    border: 1px solid var(--rx-line) !important; border-radius: 20px !important;
    background: var(--rx-surface) !important; box-shadow: var(--rx-shadow-panel) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-master {
    align-items: center; margin: 0 !important; padding: 16px !important;
    border: 1px solid var(--rx-line) !important; border-radius: 16px;
    background: linear-gradient(110deg,var(--rx-brand-soft),var(--rx-surface-2));
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-master strong { display: block; color: var(--rx-ink); font-size: .95rem; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-master .hint { margin: 5px 0 0 !important; color: var(--rx-ink-soft); line-height: 1.7; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .sw {
    width: 48px !important; min-width: 48px; height: 28px !important; min-height: 28px !important;
    border: 1px solid var(--rx-line-strong) !important; border-radius: 999px !important;
    background: var(--rx-surface-3) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .sw[aria-checked="true"] { background: var(--rx-brand) !important; border-color: var(--rx-brand) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .sw .knob { top: 3px !important; right: 3px !important; width: 20px !important; height: 20px !important; background: var(--rx-surface) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .sw[aria-checked="true"] .knob { transform: translateX(-20px) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar {
    margin: 0 !important; padding: 12px 2px 14px !important; border-bottom: 1px solid var(--rx-line);
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-toolbar strong { color: var(--rx-ink); font-size: .95rem; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-btn.primary { background: var(--rx-brand) !important; border-color: var(--rx-brand) !important; color: var(--rx-on-brand) !important; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] #apiList { display: grid; gap: 10px; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 16px; align-items: center;
    padding: 16px !important; border: 1px solid var(--rx-line) !important; border-radius: 16px !important;
    background: linear-gradient(145deg,var(--rx-surface),color-mix(in srgb,var(--rx-brand-soft) 18%,var(--rx-surface))) !important;
    box-shadow: 0 5px 16px -14px var(--rx-shadow-color) !important;
}
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-head { min-width: 0; flex-wrap: wrap; gap: 8px; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-url { grid-column: 1/-1; direction: ltr; text-align: left; overflow-wrap: anywhere; padding: 9px 11px; border: 1px solid var(--rx-line); border-radius: 10px; background: var(--rx-surface); }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-meta { color: var(--rx-muted); }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions .sw { order: 3; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-empty { padding: 30px 16px; border: 1px dashed var(--rx-line-strong); border-radius: 16px; text-align: center; color: var(--rx-muted); }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .ax-overlay { z-index: 1100; }
body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal { width: min(820px,calc(100vw - 32px)) !important; border-radius: 22px !important; box-shadow: 0 24px 80px rgba(20,55,52,.22); }
@media(max-width:767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-header { min-height: 0; display: grid !important; gap: 12px; padding: 16px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-header .api-btn { width: 100%; justify-content: center; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-card { padding: 12px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-master { align-items: flex-start; padding: 13px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item { grid-template-columns: 1fr; padding: 13px !important; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions { grid-column: 1; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .api-item-actions .sw { order: 0; }
    body.customer-panel[data-style-page="/KnowledgeBase/ExternalApis"] .ax-modal { width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; }
}

/* Remaining chatbot configuration pages use a setup-first hierarchy. */
body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-page,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .widget-page,
body.customer-panel[data-style-page="/KnowledgeBase/Workspace"] .workspace-dashboard { max-width: 1440px; margin-inline: auto; padding: clamp(8px, 1.8vw, 24px); }
body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-head,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-header { padding: 18px 22px; border: 1px solid var(--rx-line); border-radius: 20px; background: linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow: var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-card,
body.customer-panel[data-style-page="/KnowledgeBase/Workspace"] .overview-panel { border: 1px solid var(--rx-line); border-radius: 20px; background: var(--rx-surface); box-shadow: var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/KnowledgeBase/Workspace"] .feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 12px; }
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .widget-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
@media(max-width:767.98px){
 body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-page,
 body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .widget-page,
 body.customer-panel[data-style-page="/KnowledgeBase/Workspace"] .workspace-dashboard{padding:6px}
 body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-head,
 body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-header{padding:14px}
 body.customer-panel[data-style-page="/KnowledgeBase/VisitorData"] .vd-actions{display:grid;grid-template-columns:1fr}
 body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .widget-settings-grid{grid-template-columns:1fr}
}
/* Correct route roots for the three legacy setup pages, whose markup shares .page-wrapper. */
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-wrapper { min-height:0; padding:clamp(8px,1.8vw,24px); background:transparent; }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-container,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-container { max-width:1440px; margin-inline:auto; }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper .page-header,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper .page-header,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-wrapper .page-header { padding:18px 22px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .tabs-nav-wrap { max-width:100%; overflow-x:auto; }
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .tabs { max-width:100%; overflow-x:auto; }
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-container > .glass-card,
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container > .glass-card,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-container > .glass-card { border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container .card-panel,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-container .card-panel,
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-container .card-panel { border:1px solid var(--rx-line); border-radius:18px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-container .row,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-container .row { --bs-gutter-x:1rem; --bs-gutter-y:1rem; }
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-container .field-row { padding:14px; border:1px solid var(--rx-line); border-radius:16px; background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-container .tabs { display:flex; gap:8px; }
@media(max-width:767.98px){body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper,body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper,body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-wrapper{padding:6px}body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-wrapper .page-header,body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .page-wrapper .page-header,body.customer-panel[data-style-page="/KnowledgeBase/Widget"] .page-wrapper .page-header{padding:14px}}

/* Focused page layouts for operator-facing customer settings and feedback. */
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .livechat-wrapper,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .sla-page,
body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .surveys-page,
body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-page { max-width: 1440px; margin-inline: auto; padding: clamp(8px, 1.8vw, 24px); }
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .page-header,
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .sla-header,
body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .surveys-top,
body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-top {
    padding: 18px 22px; border: 1px solid var(--rx-line); border-radius: 20px;
    background: linear-gradient(125deg, var(--rx-surface), var(--rx-brand-soft)); box-shadow: var(--rx-shadow-panel);
}
body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .sla-form,
body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 14px; }
body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .filter-bar,
body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-bar { padding: 14px; border: 1px solid var(--rx-line); border-radius: 18px; background: var(--rx-surface); }
body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .panel,
body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .panel { border: 1px solid var(--rx-line); border-radius: 20px; background: var(--rx-surface); box-shadow: var(--rx-shadow-panel); }
@media (max-width: 767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .livechat-wrapper,
    body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .sla-page,
    body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .surveys-page,
    body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .surveys-page { padding: 6px; }
    body.customer-panel[data-style-page="/KnowledgeBase/LiveChat"] .settings-grid,
    body.customer-panel[data-style-page="/KnowledgeBase/SlaSettings"] .sla-form { grid-template-columns: 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .kpi-row { grid-template-columns: 1fr 1fr; }
    body.customer-panel[data-style-page="/KnowledgeBase/Surveys"] .filter-bar,
    body.customer-panel[data-style-page="/KnowledgeBase/WidgetFeedback"] .filter-bar { overflow-x: auto; }
}

/* Credit purchase family: keep moderation credits, chatbot messages, and top-ups on one flow. */
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .purchase-wrapper { min-height:0; padding:clamp(14px,2vw,30px); background:transparent; }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .purchase-container { max-width:1200px; margin-inline:auto; }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .hero-section { margin-bottom:16px; padding:clamp(18px,2.5vw,30px); border:1px solid var(--rx-line); border-radius:22px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .glass-card { overflow:hidden; border:1px solid var(--rx-line); border-radius:22px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .card-header-main { padding:16px 20px; border-bottom:1px solid var(--rx-line); background:var(--rx-page-alt); }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.78fr); gap:16px 20px; align-items:start; }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > .form-group { grid-column:1; min-width:0; padding:16px; border:1px solid var(--rx-line); border-radius:16px; background:var(--rx-page-alt); }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > .price-display { grid-column:2; grid-row:1 / span 2; position:sticky; top:104px; padding:18px; border:1px solid var(--rx-line); border-radius:18px; background:linear-gradient(145deg,var(--rx-surface),var(--rx-brand-soft)); }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > .btn-purchase,
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > .info-box { grid-column:1 / -1; }
body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .quantity-control { max-width:100%; }
@media(max-width:767.98px){
    body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) .purchase-wrapper { padding:10px; }
    body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm { grid-template-columns:minmax(0,1fr); gap:12px; }
    body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > :is(.form-group,.price-display,.btn-purchase,.info-box) { grid-column:1; grid-row:auto; }
    body.customer-panel:is([data-style-page="/Account/PurchaseChat"], [data-style-page="/Account/PurchaseRequests"], [data-style-page="/Account/PurchaseContent"]) #purchaseForm > .price-display { position:static; }
}

/* Follow-up workspace is deliberately task-focused, while sharing the customer panel palette. */
body.customer-panel[data-style-page="/Operator/FollowUps"] .followups-app { --text:var(--rx-ink); --text-2:var(--rx-muted); --surface:var(--rx-surface); --surface-2:var(--rx-page-alt); --surface-hover:var(--rx-brand-soft); --border:var(--rx-line); --border-strong:var(--rx-line); --brand:var(--rx-brand); --brand-2:var(--rx-brand-ink); --brand-soft:var(--rx-brand-soft); --bg-2:var(--rx-page-alt); --ok:var(--rx-success); --ok-soft:rgba(var(--rx-success-rgb),.1); --warn:var(--rx-warning); --warn-soft:rgba(var(--rx-warning-rgb),.12); --danger:var(--rx-danger); max-width:1540px; padding:clamp(14px,2vw,30px); color:var(--rx-ink); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-header { padding:20px 22px; border:1px solid var(--rx-line); border-radius:20px; background:linear-gradient(125deg,var(--rx-surface),var(--rx-brand-soft)); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-back,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-header h1 span,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-bot-control,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary span,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-list-caption { color:var(--rx-muted); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary > div,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-list-panel,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-detail-panel { border-color:var(--rx-line); background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary > div { min-width:0; }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary i { color:var(--rx-brand); background:var(--rx-brand-soft); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary strong,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-empty h2 { color:var(--rx-ink); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-scopes { background:var(--rx-page-alt); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-scopes button { color:var(--rx-muted); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-scopes button[aria-pressed="true"] { color:var(--rx-on-brand); background:var(--rx-brand); box-shadow:none; }
body.customer-panel[data-style-page="/Operator/FollowUps"] .followups-app :is(input,select,textarea,.fu-search) { color:var(--rx-ink); background:var(--rx-surface); border-color:var(--rx-line); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .followups-app select option { color:var(--rx-ink); background:var(--rx-surface); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-icon-button,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-button.secondary { color:var(--rx-ink-soft); background:var(--rx-surface); border-color:var(--rx-line); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-button { color:var(--rx-on-brand); background:var(--rx-brand); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item { color:var(--rx-ink); background:var(--rx-page-alt); border-color:var(--rx-line); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item.selected { background:var(--rx-brand-soft); border-color:var(--rx-brand-ring); box-shadow:inset 3px 0 0 var(--rx-brand),0 6px 18px rgba(15,70,65,.08); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item-action,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item-number,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item-bottom,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-empty { color:var(--rx-muted); }
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item-bottom,
body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-pagination { border-color:var(--rx-line); }
@media(max-width:860px){body.customer-panel[data-style-page="/Operator/FollowUps"] .followups-app{padding:12px;}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-header{padding:16px;border-radius:18px;}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-list-panel,body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-detail-panel{padding:14px;background:var(--rx-surface);}}
@media(max-width:520px){body.customer-panel[data-style-page="/Operator/FollowUps"] .followups-app{padding:8px;}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-header{padding:14px;}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-summary > div{padding:11px;background:var(--rx-surface);}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-item{padding:13px;}body.customer-panel[data-style-page="/Operator/FollowUps"] .fu-detail-panel{position:static;max-height:none;}}

/* Shared breadcrumb for customer account pages (Subscription, Checkout, Purchase*). */
body.customer-panel .breadcrumb-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px;color:var(--rx-muted);font-size:.9rem;}
body.customer-panel .breadcrumb-nav a{display:inline-flex;align-items:center;gap:6px;color:var(--rx-muted);text-decoration:none;font-weight:600;}
body.customer-panel .breadcrumb-nav a:hover{color:var(--rx-ink);}
body.customer-panel .breadcrumb-nav a .bi{color:var(--rx-accent,#0f766e);}
body.customer-panel .breadcrumb-nav > .bi{font-size:.75rem;opacity:.6;}
body.customer-panel .breadcrumb-nav .current{color:var(--rx-ink);font-weight:800;}

/* Sidebar help tile: the compass must be white on the brand-green mark. */
body.customer-panel .customer-sidebar-help .customer-sidebar-help-mark,
body.customer-panel .customer-sidebar-help .customer-sidebar-help-mark .bi { color: #fff !important; }
/* Shared identity bridge for the remaining standalone documentation pages. */
html:has(body:is([data-style-page="/docs/chat-flowchart"], [data-style-page="/docs/handoff-decision-flow"], [data-style-page="/docs/developer-docs"])) {
    color-scheme: light;
}

/* Interactive conversation flowchart */
html:has(body[data-style-page="/docs/chat-flowchart"]) {
    --bg: var(--rx-page);
    --bg2: var(--rx-surface);
    --surface: var(--rx-surface);
    --surface2: var(--rx-brand-soft);
    --hover: var(--rx-surface-3);
    --line: var(--rx-line);
    --line2: var(--rx-line-strong);
    --ink: var(--rx-ink);
    --muted: var(--rx-ink-soft);
    --faint: var(--rx-muted);
    --accent: var(--rx-brand);
    --brand: var(--rx-brand);
    --canvas: var(--rx-page-alt);
}
body[data-style-page="/docs/chat-flowchart"] .topbar,
body[data-style-page="/docs/chat-flowchart"] .side,
body[data-style-page="/docs/chat-flowchart"] .panel { box-shadow: var(--rx-shadow-sm); }
body[data-style-page="/docs/chat-flowchart"] .topbar { background: var(--rx-surface); }
body[data-style-page="/docs/chat-flowchart"] .brand .logo { background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright)); color: var(--rx-on-brand); }
body[data-style-page="/docs/chat-flowchart"] .btn.primary,
body[data-style-page="/docs/chat-flowchart"] .btn.primary:hover,
body[data-style-page="/docs/chat-flowchart"] .row.active,
body[data-style-page="/docs/chat-flowchart"] .seg button.active { background: var(--rx-brand); color: var(--rx-on-brand); border-color: var(--rx-brand); }
body[data-style-page="/docs/chat-flowchart"] .side,
body[data-style-page="/docs/chat-flowchart"] .panel { background: var(--rx-surface); border-color: var(--rx-line); color: var(--rx-ink); }
body[data-style-page="/docs/chat-flowchart"] .canvas { background: var(--rx-page-alt); }
body[data-style-page="/docs/chat-flowchart"] .node,
body[data-style-page="/docs/chat-flowchart"] .chip,
body[data-style-page="/docs/chat-flowchart"] .pill { border-color: var(--rx-line); }
body[data-style-page="/docs/chat-flowchart"] :is(button, input):focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 2px; }
body[data-style-page="/docs/chat-flowchart"] .tabs { background: var(--rx-surface); border: 1px solid var(--rx-line); box-shadow: var(--rx-shadow-panel); }
body[data-style-page="/docs/chat-flowchart"] .tabs button { color: var(--rx-ink-soft); }
body[data-style-page="/docs/chat-flowchart"] .tabs button.on { background: var(--rx-brand); color: var(--rx-on-brand); }
body[data-style-page="/docs/chat-flowchart"] .panel .guide { background: var(--rx-brand); color: var(--rx-on-brand); border-color: var(--rx-brand); }
body[data-style-page="/docs/chat-flowchart"] .panel :is(button, select, input) { color: var(--rx-ink); }
body[data-style-page="/docs/chat-flowchart"] .panel :is(button, select, input):disabled { color: var(--rx-muted); opacity: .72; }
body[data-style-page="/docs/chat-flowchart"] .panel .guide:hover { background: var(--rx-brand-hover); color: var(--rx-on-brand); }

/* Handoff decision explainer */
html:has(body[data-style-page="/docs/handoff-decision-flow"]) {
    --bg: var(--rx-page);
    --bar: var(--rx-surface);
    --surface: var(--rx-surface);
    --line: var(--rx-line);
    --line2: var(--rx-line-strong);
    --ink: var(--rx-ink);
    --muted: var(--rx-ink-soft);
    --faint: var(--rx-muted);
    --accent: var(--rx-brand);
    --teal: var(--rx-brand);
    --green: var(--rx-success);
    --amber: var(--rx-warning);
    --red: var(--rx-danger);
}
body[data-style-page="/docs/handoff-decision-flow"] { background: var(--rx-page); color: var(--rx-ink); font-family: var(--rx-font); }
body[data-style-page="/docs/handoff-decision-flow"] .top { background: rgba(var(--rx-surface-rgb), .94); border-color: var(--rx-line); box-shadow: var(--rx-shadow-sm); }
body[data-style-page="/docs/handoff-decision-flow"] .brand { color: var(--rx-ink); }
body[data-style-page="/docs/handoff-decision-flow"] .brand i { background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright)); color: var(--rx-on-brand); }
body[data-style-page="/docs/handoff-decision-flow"] .hero,
body[data-style-page="/docs/handoff-decision-flow"] .step,
body[data-style-page="/docs/handoff-decision-flow"] .summary,
body[data-style-page="/docs/handoff-decision-flow"] .note,
body[data-style-page="/docs/handoff-decision-flow"] footer { border-color: var(--rx-line); box-shadow: var(--rx-shadow-sm); }
body[data-style-page="/docs/handoff-decision-flow"] .hero { background: linear-gradient(130deg, var(--rx-surface), var(--rx-brand-soft)); }
body[data-style-page="/docs/handoff-decision-flow"] .hero h1 { font-size: clamp(1.5rem, 2.7vw, 2rem); line-height: 1.45; }
body[data-style-page="/docs/handoff-decision-flow"] .hero p,
body[data-style-page="/docs/handoff-decision-flow"] .step p,
body[data-style-page="/docs/handoff-decision-flow"] .summary ol { color: var(--rx-ink-soft); }
body[data-style-page="/docs/handoff-decision-flow"] .outcome { background: var(--rx-brand-soft); color: var(--rx-ink); border-color: var(--rx-brand); }
body[data-style-page="/docs/handoff-decision-flow"] .outcome.green { background: var(--rx-success-soft); color: var(--rx-ink); border-color: var(--rx-success); }
body[data-style-page="/docs/handoff-decision-flow"] .outcome.amber { background: var(--rx-warning-soft); color: var(--rx-ink); border-color: var(--rx-warning); }
body[data-style-page="/docs/handoff-decision-flow"] .outcome.red { background: var(--rx-danger-soft); color: var(--rx-ink); border-color: var(--rx-danger); }
body[data-style-page="/docs/handoff-decision-flow"] .note { background: var(--rx-warning-soft); color: var(--rx-ink); border-color: var(--rx-warning); }
body[data-style-page="/docs/handoff-decision-flow"] .step,
body[data-style-page="/docs/handoff-decision-flow"] .summary { background: var(--rx-surface); }
body[data-style-page="/docs/handoff-decision-flow"] h1,
body[data-style-page="/docs/handoff-decision-flow"] h2,
body[data-style-page="/docs/handoff-decision-flow"] h3 { color: var(--rx-ink); }
body[data-style-page="/docs/handoff-decision-flow"] p,
body[data-style-page="/docs/handoff-decision-flow"] li { color: var(--rx-ink-soft); }
body[data-style-page="/docs/handoff-decision-flow"] .node { background: var(--rx-brand); color: var(--rx-on-brand); }
body[data-style-page="/docs/handoff-decision-flow"] a { color: var(--rx-brand-ink); }

/* English developer docs: preserve the API reference layout while using the site's font and palette. */
html:has(body[data-style-page="/docs/developer-docs"]) {
    --paper: var(--rx-page);
    --paper-raised: var(--rx-surface);
    --ink: var(--rx-ink);
    --ink-soft: var(--rx-ink-soft);
    --line: var(--rx-line);
    --line-soft: var(--rx-line);
    --accent: var(--rx-brand);
    --accent-ink: var(--rx-brand-ink);
    --accent-tint: var(--rx-brand-soft);
    --ok: var(--rx-success);
    --ok-tint: var(--rx-success-soft);
    --warn: var(--rx-warning);
    --warn-tint: var(--rx-warning-soft);
    --danger: var(--rx-danger);
    --danger-tint: var(--rx-danger-soft);
    --code-bg: var(--rx-page-alt);
    --code-ink: var(--rx-ink);
    --sidebar-bg: var(--rx-surface);
    --focus: var(--rx-brand);
}
body[data-style-page="/docs/developer-docs"] { font-family: var(--rx-font); color: var(--rx-ink); background: var(--rx-page); }
body[data-style-page="/docs/developer-docs"] :is(h1,h2,h3,h4,p,li,td,th,button,a,small,label) { font-family: var(--rx-font); }
body[data-style-page="/docs/developer-docs"] .topbar,
body[data-style-page="/docs/developer-docs"] .sidebar,
body[data-style-page="/docs/developer-docs"] .code-panel,
body[data-style-page="/docs/developer-docs"] .callout { border-color: var(--rx-line); box-shadow: var(--rx-shadow-sm); }
body[data-style-page="/docs/developer-docs"] .topbar,
body[data-style-page="/docs/developer-docs"] .sidebar,
body[data-style-page="/docs/developer-docs"] .code-panel { background-color: var(--rx-surface); }
body[data-style-page="/docs/developer-docs"] .brand-mark { background: linear-gradient(145deg, var(--rx-brand), var(--rx-brand-bright)); color: var(--rx-on-brand); }
body[data-style-page="/docs/developer-docs"] .copy-btn,
body[data-style-page="/docs/developer-docs"] .menu-btn { border-color: var(--rx-line); background: var(--rx-surface); color: var(--rx-ink-soft); }
body[data-style-page="/docs/developer-docs"] .copy-btn:hover,
body[data-style-page="/docs/developer-docs"] .menu-btn:hover { background: var(--rx-brand-soft); color: var(--rx-brand-ink); }
body[data-style-page="/docs/developer-docs"] :is(a,button,input):focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 2px; }
/* Customer dashboard: KPI overview, activity trend, operations status, then service details. */
body.customer-panel[data-style-page="/Dashboard"] .analytics-dashboard { max-width: 1480px; margin-inline: auto; padding: clamp(8px, 1.6vw, 22px); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-header { padding: 20px 22px; border: 1px solid var(--rx-line); border-radius: 22px; background: linear-gradient(125deg,var(--rx-surface),color-mix(in srgb,var(--rx-brand-soft) 44%,var(--rx-surface))); box-shadow: var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-block: 16px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-main-grid { grid-template-columns: minmax(0,1.6fr) minmax(300px,.9fr); gap: 14px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-bottom-grid { gap: 14px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-panel { border:1px solid var(--rx-line); border-radius:20px; background:var(--rx-surface); box-shadow:var(--rx-shadow-panel); }
body.customer-panel[data-style-page="/Dashboard"] .analytics-chart { min-width:0; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-table-scroll { max-width:100%; overflow-x:auto; border:1px solid var(--rx-line); border-radius:14px; }
body.customer-panel[data-style-page="/Dashboard"] .analytics-table { min-width:780px; }
@media(max-width:1000px){body.customer-panel[data-style-page="/Dashboard"] .analytics-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.customer-panel[data-style-page="/Dashboard"] .analytics-main-grid{grid-template-columns:1fr}}
@media(max-width:767.98px){body.customer-panel[data-style-page="/Dashboard"] .analytics-dashboard{padding:6px}body.customer-panel[data-style-page="/Dashboard"] .analytics-header{display:grid;gap:12px;padding:16px}body.customer-panel[data-style-page="/Dashboard"] .analytics-header-meta{display:grid;justify-items:start;gap:10px}body.customer-panel[data-style-page="/Dashboard"] .analytics-header-meta .analytics-button{width:100%;justify-content:center}body.customer-panel[data-style-page="/Dashboard"] .analytics-kpis{grid-template-columns:1fr 1fr;gap:9px}body.customer-panel[data-style-page="/Dashboard"] .analytics-kpi{min-width:0;padding:13px}body.customer-panel[data-style-page="/Dashboard"] .analytics-bottom-grid{grid-template-columns:1fr}}
/* Analytics workspace: shared report frame, with each report's subject-specific emphasis. */
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-page{max-width:1480px;margin-inline:auto;padding:clamp(8px,1.8vw,24px)}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-grid{gap:14px}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-panel{min-width:0;border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .kpi-grid{gap:12px;margin-block:14px}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .insight-list{display:grid;gap:8px;margin-block:12px}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .operator-table{max-width:100%;overflow-x:auto;border:1px solid var(--rx-line);border-radius:14px}
body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .operator-table table{min-width:760px}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics"] .report-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr)}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Bot"] .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Audience"] .report-page > .kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Topics"] .report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Sla"] .report-page > .kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Operator"] .operator-profile,
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Operator"] .operator-card{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Operator/Session"] .crumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;border:1px solid var(--rx-line);border-radius:14px;background:var(--rx-surface)}
body.customer-panel[data-style-page="/KnowledgeBase/Analytics/Operator/Session"] .report-page > .report-panel{max-width:100%}
body.customer-panel[data-style-page="/KnowledgeBase/SurveyReports"] .report-page .report-panel{border:1px solid var(--rx-line);border-radius:20px;background:var(--rx-surface);box-shadow:var(--rx-shadow-panel)}
@media(max-width:800px){body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-grid{grid-template-columns:1fr}body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .kpi-grid,body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-page > .kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-page{padding:6px}body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .kpi-grid,body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-page > .kpi-grid{grid-template-columns:1fr}body.customer-panel[data-style-page^="/KnowledgeBase/Analytics"] .report-panel{border-radius:16px}}
/* Solid action buttons must keep readable foregrounds even when a page stylesheet
   gives their inner label or icon its own legacy color. Backgrounds stay page-owned. */
:is(body.admin-body .admin-content, body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"])) :is(button, input[type="submit"], input[type="button"], a.btn, a[class*="-btn"], a[class*="-button"], [role="button"]):is(
    .btn-primary, .btn-success, .btn-submit, .btn-create, .btn-create-lg,
    .btn-save, .btn-save-modal, .btn-add, .btn-purchase, .btn-buy-chat,
    .btn-primary-glow, .primary-button, .action-primary, .analytics-button,
    .btn-operator-glow, .sim-submit-btn, .hr-btn-primary, .primary,
    [class*="-primary"], [class*="primary-"], [class*="-submit"], [class*="submit-"],
    [class*="-create"], [class*="create-"], [class*="-purchase"], [class*="purchase-"],
    [class*="-save"], [class*="save-"], [class*="-confirm"], [class*="confirm-"],
    [class*="-accept"], [class*="accept-"], [class*="-analyze"], [class*="analyze-"],
    [class*="-execute"], [class*="execute-"], [class*="-run"], [class*="run-"],
    [class*="-pay"], [class*="pay-"], [class*="-buy"], [class*="buy-"],
    [class*="-new"], [class*="new-"]
):not(.btn-danger):not([class*="danger"]):not([class*="delete"]) {
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}

:is(body.admin-body .admin-content, body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"])) :is(button, a.btn, a[class*="-btn"], a[class*="-button"], [role="button"]):is(
    .btn-primary, .btn-success, .btn-submit, .btn-create, .btn-create-lg,
    .btn-save, .btn-save-modal, .btn-add, .btn-purchase, .btn-buy-chat,
    .btn-primary-glow, .primary-button, .action-primary, .analytics-button,
    .btn-operator-glow, .sim-submit-btn, .hr-btn-primary, .primary,
    [class*="-primary"], [class*="primary-"], [class*="-submit"], [class*="submit-"],
    [class*="-create"], [class*="create-"], [class*="-purchase"], [class*="purchase-"],
    [class*="-save"], [class*="save-"], [class*="-confirm"], [class*="confirm-"],
    [class*="-accept"], [class*="accept-"], [class*="-analyze"], [class*="analyze-"],
    [class*="-execute"], [class*="execute-"], [class*="-run"], [class*="run-"],
    [class*="-pay"], [class*="pay-"], [class*="-buy"], [class*="buy-"],
    [class*="-new"], [class*="new-"]
):not(.btn-danger):not([class*="danger"]):not([class*="delete"]) :is(span, strong, small, i, .bi, svg, svg *) {
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
    fill: currentColor !important;
}

/* Loading and disabled states retain the same text/icon contrast as the active CTA. */
:is(body.admin-body .admin-content, body:not(.admin-body):not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"])) :is(button, input[type="submit"], input[type="button"], a.btn, a[class*="-btn"], a[class*="-button"], [role="button"]):is(
    .btn-primary, .btn-success, .btn-submit, .btn-create, .btn-create-lg,
    .btn-save, .btn-save-modal, .btn-add, .btn-purchase, .btn-buy-chat,
    .btn-primary-glow, .primary-button, .action-primary, .analytics-button,
    .btn-operator-glow, .sim-submit-btn, .hr-btn-primary, .primary,
    [class*="-primary"], [class*="primary-"], [class*="-submit"], [class*="submit-"],
    [class*="-create"], [class*="create-"], [class*="-purchase"], [class*="purchase-"],
    [class*="-save"], [class*="save-"], [class*="-confirm"], [class*="confirm-"],
    [class*="-accept"], [class*="accept-"], [class*="-analyze"], [class*="analyze-"],
    [class*="-execute"], [class*="execute-"], [class*="-run"], [class*="run-"],
    [class*="-pay"], [class*="pay-"], [class*="-buy"], [class*="buy-"],
    [class*="-new"], [class*="new-"]
):not(.btn-danger):not([class*="danger"]):not([class*="delete"]):is(:hover, :focus, :focus-visible, :disabled, [aria-disabled="true"]) {
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}
/* Legacy table styles can leave dark labels on a brand-colored heading row. */
body.customer-panel .admin-content :is(table, .table) thead,
body.customer-panel .admin-content :is(table, .table) thead tr,
body.customer-panel .admin-content :is(table, .table) thead :is(th, td),
body.customer-panel .admin-content :is(table, .table) > tr:first-child :is(th, td) {
    background: var(--rx-brand, #0f766e) !important;
    color: var(--rx-on-brand, #fff) !important;
    border-color: rgba(255, 255, 255, .2) !important;
}

body.customer-panel .admin-content :is(table, .table) thead :is(th, td) *,
body.customer-panel .admin-content :is(table, .table) > tr:first-child :is(th, td) * {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
    fill: currentColor !important;
}

/* The workspace already frames its content. When a page supplies its own root
   shell, keep that shell as the single page frame instead of nesting two cards. */
body.customer-panel .admin-content > .content-wrapper:has(> :is(
    .page-wrapper, .page-container, .kb-wrapper, .kb-container,
    .dashboard-wrapper, .dashboard-page, .settings-page, .page-shell,
    .requests-wrapper, .policies-wrapper, .apikey-wrapper, .simulator-wrapper
)) {
    min-height: 0 !important;
    padding: clamp(4px, .8vw, 14px) !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* Preserve both navigation rails while giving the page a usable width on laptops. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) {
        --cp-rail: 76px;
        --cp-ctx: clamp(208px, 21vw, 252px);
    }

    body.customer-panel .admin-wrapper.has-chatbot-context .admin-sidebar-permanent {
        width: var(--cp-rail) !important;
    }

    body.customer-panel .admin-content.with-chatbot-context {
        margin-right: calc(var(--cp-rail) + var(--cp-ctx) + 16px) !important;
        min-width: 0;
    }

    body.customer-panel .admin-wrapper.has-chatbot-context .admin-navbar {
        right: calc(var(--cp-rail) + var(--cp-ctx) + 24px) !important;
        left: 16px !important;
        width: auto !important;
    }

    body.customer-panel .chatbot-context-sidebar {
        right: calc(var(--cp-rail) + 6px) !important;
        width: var(--cp-ctx) !important;
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        .content-wrapper, .page-wrapper, .page-container, .kb-wrapper, .kb-container,
        .dashboard-wrapper, .dashboard-page, .settings-page, .page-shell,
        .requests-wrapper, .policies-wrapper, .apikey-wrapper, .simulator-wrapper
    ) {
        box-sizing: border-box;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        [class$="-grid"], [class*="-grid "], [class^="grid-"], [class*=" grid-"]
    ) {
        min-width: 0;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        .row, .d-flex, .form-actions, .page-actions, .toolbar, .filter-toolbar
    ) {
        min-width: 0;
        flex-wrap: wrap;
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        .table-responsive, .table-responsive-wrap, .table-wrap, .data-table-wrap
    ) {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }
}

@media (max-width: 991.98px) {
    html:has(body.customer-panel .admin-wrapper.has-chatbot-context),
    body.customer-panel:has(.admin-wrapper.has-chatbot-context) {
        width: 100vw;
        max-width: 100vw;
    }

    body.customer-panel .admin-wrapper.has-chatbot-context {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    body.customer-panel .admin-content.with-chatbot-context {
        display: flex;
        flex: 0 0 100vw !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-inline: 0 !important;
        min-width: 0 !important;
        box-sizing: border-box;
        position: relative !important;
        inset-inline: auto !important;
        transform: none !important;
    }

    body.customer-panel .admin-content.with-chatbot-context > .content-wrapper {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        min-width: 0 !important;
        margin: 8px 6px 18px !important;
        padding: 12px !important;
        box-sizing: border-box;
    }

    body.customer-panel .admin-content.with-chatbot-context > .content-wrapper > :is(
        .page-wrapper, .page-container, .kb-wrapper, .kb-container,
        .dashboard-wrapper, .dashboard-page, .settings-page, .page-shell,
        .requests-wrapper, .policies-wrapper, .apikey-wrapper, .simulator-wrapper
    ) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-inline: 0 !important;
        box-sizing: border-box;
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        .analytics-kpis, .kb-summary-row, .analytics-main-grid, .analytics-bottom-grid
    ) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.customer-panel .admin-content.with-chatbot-context :is(
        .analytics-kpi, .kb-summary-tile, .analytics-panel, .card-panel,
        .kb-card, .kb-action-group, .kb-toolbar, .content-card
    ) {
        min-width: 0 !important;
        max-width: 100%;
    }

    body.customer-panel .chatbot-context-sidebar {
        display: none !important;
    }
}

@media (max-width: 520px) {
    body.customer-panel .admin-content.with-chatbot-context :is(
        .analytics-main-grid, .analytics-bottom-grid
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* The chatbot portfolio has wide desktop action panels and fixed stat minimums. */
@media (max-width: 767.98px) {
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-wrapper,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-card,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-main,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-stats,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-block,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-group,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-toolbar-row {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-card {
        margin-inline: 0 !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-wrapper,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-container {
        position: relative;
        inset-inline: auto !important;
        transform: none !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-card {
        flex-direction: column !important;
        align-items: stretch;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-main {
        flex: 1 1 auto;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-stat {
        min-width: 0 !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-stat-label,
    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-group-head {
        white-space: normal;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-block {
        grid-template-columns: minmax(0, 1fr) !important;
        padding-inline: 0 !important;
        border-inline: 0 !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-action-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.customer-panel[data-style-page="/KnowledgeBase/Index"] .kb-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
/* Shared visual system for administrator pages. Customer workspace pages opt out. */
html[data-admin-palette] body.admin-body:not(.customer-panel) {
    --admin-ui-radius: 18px;
    --admin-ui-radius-sm: 12px;
    --admin-ui-space: clamp(16px, 2vw, 28px);
    background: var(--theme-page) !important;
    color: var(--theme-text) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar {
    min-height: var(--navbar-height);
    padding: 8px 18px;
    border: 1px solid var(--theme-border-soft) !important;
    border-top: 0;
    border-radius: 0 !important;
    background: var(--theme-surface) !important;
    background-image: none !important;
    box-shadow: 0 1px 0 var(--theme-border-soft) !important;
    backdrop-filter: none;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-sidebar-permanent {
    width: var(--sidebar-width);
    border: 1px solid var(--theme-border-soft) !important;
    border-top: 0;
    border-radius: 0 0 0 22px;
    background: var(--theme-surface) !important;
    background-image: none !important;
    box-shadow: -8px 8px 28px rgba(var(--theme-accent-rgb), .07) !important;
}

/* The admin header spans the viewport; the permanent right rail starts below it. */
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar {
    inset-inline: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    background: var(--theme-surface) !important;
    background-image: none !important;
    box-shadow: 0 1px 0 var(--theme-border-soft) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 5px 12px 5px 7px;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: 14px;
    background: var(--theme-surface-2) !important;
    color: var(--theme-text-2) !important;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: none !important;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-btn:hover,
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-btn[aria-expanded="true"] {
    border-color: rgba(var(--theme-accent-rgb), .34) !important;
    background: rgba(var(--theme-accent-rgb), .09) !important;
    color: var(--theme-accent-strong) !important;
    box-shadow: 0 4px 14px rgba(var(--theme-accent-rgb), .09) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--theme-accent-strong);
    color: var(--rx-on-brand, #fff) !important;
    font-size: 1.08rem;
    box-shadow: 0 4px 10px rgba(var(--theme-accent-rgb), .18);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-name {
    max-width: min(24vw, 190px);
    overflow: hidden;
    color: inherit !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-caret {
    color: var(--theme-muted) !important;
    font-size: .68rem;
    transition: transform .16s ease;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-btn[aria-expanded="true"] .user-chip-caret {
    transform: rotate(180deg);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar .user-chip-btn:focus-visible {
    outline: 3px solid rgba(var(--theme-accent-rgb), .24);
    outline-offset: 2px;
}

/* Keep the administrator canvas neutral, including areas around fixed navigation. */
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-wrapper {
    background: var(--theme-page) !important;
    background-image: none !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-wrapper::before,
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-wrapper::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

html.light-theme[data-admin-palette] body.admin-body:not(.customer-panel),
html[data-admin-palette] body.admin-body:not(.customer-panel) {
    background: var(--theme-page) !important;
    background-image: none !important;
}

html.light-theme[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content,
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content {
    background: transparent !important;
    background-image: none !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .page-wrapper, .kb-wrapper, .policies-wrapper, .sim-page, .requests-wrapper,
    .details-wrapper, .webhook-wrapper, .history-wrapper, .receipt-wrapper,
    .purchase-wrapper, .callback-wrapper, .apikey-wrapper
)::before {
    content: none !important;
    display: none !important;
    background: none !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .content-wrapper {
    background: var(--theme-page) !important;
    background-image: none !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content {
    min-width: 0;
    margin-right: var(--sidebar-width);
    background: transparent !important;
    color: var(--theme-text) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .content-wrapper {
    box-sizing: border-box;
    width: min(100% - 32px, 1640px);
    min-width: 0;
    margin: 18px auto 28px;
    padding: clamp(16px, 2.2vw, 32px);
    border: 1px solid var(--theme-border-soft);
    border-radius: 24px;
    background: var(--theme-surface) !important;
    background-image: none !important;
    box-shadow: var(--theme-shadow);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .page-wrapper, .page-container, .admin-page, .dashboard-page, .dashboard-wrapper,
    .analytics-page, .analytics-wrapper, .kb-wrapper, .policies-wrapper,
    .requests-wrapper, .details-wrapper, .form-wrapper, .edit-wrapper,
    .delete-wrapper, .create-wrapper, .transactions-wrapper, .settings-page
) {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    color: var(--theme-text);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .page-header, .dash-head, .header-content, .analytics-header, .content-header
) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin: 0 0 22px !important;
    padding: clamp(18px, 2.3vw, 30px) !important;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: 20px !important;
    background: linear-gradient(120deg, var(--theme-surface), color-mix(in srgb, var(--theme-accent) 9%, var(--theme-surface))) !important;
    box-shadow: var(--theme-shadow);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .page-header h1, .dash-head h1, .header-content h1, .analytics-header h1,
    .content-header h1, h1.page-title
) {
    margin: 0;
    color: var(--theme-text) !important;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 900;
    line-height: 1.55;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .page-header p, .dash-head p, .header-content p, .analytics-header p,
    .content-header p, .page-subtitle
) {
    margin: 5px 0 0;
    color: var(--theme-muted) !important;
    line-height: 1.9;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card, .glass-card, .panel, .section, .form-card, .settings-card,
    .content-card, .chart-card, .table-card, .purchase-card, .receipt-card,
    .api-card, .webhook-card, .document-card, .config-card, .model-card,
    .kb-card, .summary-card, .info-card, .metric-card, .stat-card,
    .analytics-panel, .detail-panel, .list-panel, .settings-panel,
    .table-panel, .content-panel, .workspace-panel, .section-panel,
    .active-target-card, .health-strip
):not(.alert):not(.alert-message):not(.alert-modern) {
    min-width: 0;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: var(--admin-ui-radius) !important;
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    box-shadow: var(--theme-shadow) !important;
    backdrop-filter: none !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card, .glass-card, .panel, .form-card, .settings-card, .content-card,
    .chart-card, .table-card, .purchase-card, .receipt-card, .api-card,
    .webhook-card, .document-card, .config-card, .model-card, .detail-panel,
    .list-panel, .settings-panel, .table-panel, .content-panel, .workspace-panel
) {
    padding: clamp(16px, 1.8vw, 24px);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card-head, .card-header-row, .card-header-modern, .card-header-custom,
    .panel-header, .section-header, .table-header, .card-header, .modal-header,
    .card-title-row
) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--theme-text) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card-title, .section-title, .panel-title, .card-head h2, .card-head h3,
    .card-header-row h2, .card-header-row h3
) {
    margin: 0;
    color: var(--theme-text) !important;
    font-weight: 850;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .kpis, .kpi-grid, .stats-grid, .metrics-grid, .summary-grid, .cards-grid,
    .analytics-kpis, .analytics-main-grid, .analytics-bottom-grid, .health-grid,
    .form-grid, .settings-grid, .dashboard-grid
) {
    min-width: 0;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .kpi, .kpi-card, .stat-card, .metric-card, .summary-card, .stat-mini,
    .analytics-kpi, .health-card
) {
    min-width: 0;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, var(--theme-surface), var(--theme-page-alt)) !important;
    box-shadow: var(--theme-shadow) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    h1, h2, h3, h4, h5, h6, legend, .card-title, .section-title,
    .page-title, .modal-title
) { color: var(--theme-text) !important; }

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    p, small, .muted, .text-muted, .form-text, .form-hint, .card-subtitle,
    .section-sub, .page-subtitle, .empty-state p
) { color: var(--theme-muted); }

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
    textarea, select, .form-control, .form-select, .form-control-dark,
    .input-group-text, .search-input
) {
    min-width: 0;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: 10px !important;
    background: var(--theme-input) !important;
    color: var(--theme-text) !important;
    box-shadow: none;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(input, textarea, select, .form-control, .form-select):focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), .14) !important;
    outline: 0;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(label, .form-label) {
    color: var(--theme-text-2) !important;
    font-weight: 750;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.form-group, .form-field, .mb-3, .mb-4) { min-width: 0; }

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(button, .btn, a.btn, [role="button"]) {
    min-height: 40px;
    border-radius: 10px;
    font-weight: 750;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .btn-primary, .btn-primary-glow, .btn-create, .btn-create-lg, .btn-save,
    .btn-submit, .primary-button, .action-primary, button[type="submit"]
):not(.btn-danger):not([class*="danger"]) {
    border-color: var(--theme-accent-strong) !important;
    background: var(--theme-accent-strong) !important;
    color: var(--rx-on-brand) !important;
    box-shadow: 0 6px 16px rgba(var(--theme-accent-rgb), .16);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .btn-danger, .btn-delete, [class*="danger"], [class*="delete"]
) {
    color: var(--rx-danger) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .btn-danger, .btn-delete, [class*="danger"], [class*="delete"]):hover {
    background: var(--rx-danger-fill) !important;
    border-color: var(--rx-danger-fill) !important;
    color: var(--rx-on-brand) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.table-responsive, .table-responsive-wrap, .table-wrap, .data-table-wrap, .table-scroll) {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--theme-border-soft);
    border-radius: 14px;
    background: var(--theme-surface);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) {
    width: 100%;
    margin: 0;
    border-color: var(--theme-border-soft) !important;
    color: var(--theme-text-2) !important;
    --bs-table-bg: transparent;
    --bs-table-color: var(--theme-text-2);
    --bs-table-border-color: var(--theme-border-soft);
    --bs-table-hover-bg: var(--theme-hover);
    --bs-table-hover-color: var(--theme-text);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) thead,
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) thead tr,
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) thead :is(th, td) {
    background: var(--theme-accent-strong) !important;
    color: var(--rx-on-brand) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    font-weight: 800;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) thead :is(th, td) * {
    color: var(--rx-on-brand) !important;
    -webkit-text-fill-color: var(--rx-on-brand) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(table, .table, .modern-table, .admin-table) :is(th, td) {
    padding: .78rem .85rem;
    border-color: var(--theme-border-soft) !important;
    vertical-align: middle;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content tbody tr:hover { background: var(--theme-hover) !important; }

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.pagination, .pager, .pagination-container) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.page-link, .pager a, .pager button) {
    border-radius: 9px;
    border-color: var(--theme-border-soft);
    background: var(--theme-surface);
    color: var(--theme-text-2);
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.page-item.active .page-link, .page-link.active, .pager .active) {
    border-color: var(--theme-accent-strong) !important;
    background: var(--theme-accent-strong) !important;
    color: var(--rx-on-brand) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.alert, .alert-message, .alert-modern, .validation-summary-errors) { border-radius: 14px; }

html[data-admin-palette] body.admin-body:not(.customer-panel) :is(.modal-content, .dropdown-menu, .popover) {
    border: 1px solid var(--theme-border-soft);
    border-radius: 18px;
    background: var(--theme-surface);
    color: var(--theme-text);
    box-shadow: var(--rx-shadow-pop);
}

@media (max-width: 991.98px) {
    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-navbar {
        inset-inline: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0 !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .content-wrapper {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        margin: 10px auto 22px;
        padding: 14px;
        border-radius: 18px;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .kpis, .kpi-grid, .stats-grid, .metrics-grid, .summary-grid, .cards-grid,
        .analytics-kpis, .analytics-main-grid, .analytics-bottom-grid, .health-grid,
        .form-grid, .settings-grid, .dashboard-grid, [class$="-grid"], [class^="grid-"]
    ) {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)) !important;
        min-width: 0;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .row, .d-flex, .form-actions, .page-actions, .toolbar, .filter-toolbar
    ) { min-width: 0; flex-wrap: wrap; }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-wrapper {
        display: block !important;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-sidebar-permanent {
        position: fixed !important;
        inset-block: 0 !important;
        inset-inline: 0 auto !important;
        width: min(300px, 88vw) !important;
        max-width: 88vw !important;
        padding: calc(var(--navbar-height) + 12px) 12px 18px !important;
        border-radius: 0 0 0 18px !important;
        background: var(--theme-surface) !important;
        background-image: none !important;
        transform: translateX(108%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        z-index: 1040 !important;
        transition: transform .24s ease, visibility .24s ease !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-sidebar-permanent.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel).admin-sidebar-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1039;
        background: rgba(24, 36, 42, .42);
        backdrop-filter: blur(2px);
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content {
        display: flex;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content > .content-wrapper {
        box-sizing: border-box;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        min-width: 0;
        overflow-x: clip;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .page-wrapper, .page-container, .admin-page, .dashboard-page, .dashboard-wrapper,
        .analytics-page, .analytics-wrapper, .kb-wrapper, .policies-wrapper,
        .requests-wrapper, .details-wrapper, .form-wrapper, .edit-wrapper,
        .delete-wrapper, .create-wrapper, .transactions-wrapper, .settings-page,
        .page-shell, .workspace-dashboard, .dash, .dash-inner
    ) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        margin-inline: auto;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .content-wrapper > *, .page-wrapper > *, .page-container > *, .admin-page > *,
        .row > *, [class*="-grid"] > *, [class^="grid-"] > *, .d-flex > *,
        .form-row > *, .form-grid > *, .filters > *, .filter-row > *
    ) {
        box-sizing: border-box;
        min-width: 0 !important;
        max-width: 100%;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .row, [class*="-grid"], [class^="grid-"], .d-flex, .form-row,
        .form-group, .form-field, .toolbar, .filters, .filter-row
    ) > * {
        box-sizing: border-box;
        min-width: 0 !important;
        max-width: 100%;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        input, select, textarea, .form-control, .form-select, .input-group,
        .input-group-text, .btn-group, .dropdown, .pagination, .pager
    ) { min-width: 0; max-width: 100%; }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(img, svg, video, canvas) {
        max-width: 100%;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(pre, code, .code-block, .json-viewer) {
        max-width: 100%;
        overflow-x: auto;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767.98px) {
    html[data-admin-palette] body.admin-body:not(.customer-panel) .content-wrapper {
        width: calc(100% - 12px);
        max-width: calc(100% - 12px);
        padding: 10px;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .page-header, .dash-head, .header-content, .analytics-header, .content-header
    ) {
        display: block;
        margin-bottom: 14px !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .page-header > *, .card-head > *, .card-header-row > *, .analytics-panel-heading > *
    ) { min-width: 0; max-width: 100%; }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .table-responsive, .table-responsive-wrap, .table-wrap, .data-table-wrap, .table-scroll
    ) { margin-inline: 0; }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(div, section, article):has(> table) {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .card, .glass-card, .panel, .form-card, .settings-card, .content-card,
        .table-card, .detail-panel, .list-panel, .analytics-panel
    ) { padding: 14px; }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(button, .btn, a.btn, [role="button"]) {
        min-height: 42px;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-sidebar-permanent {
        width: min(286px, 88vw) !important;
    }
}

/* Dark teal action fills always need a light foreground, including legacy controls. */
body:not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) :is(
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .fu-button:not(.secondary):not(:disabled),
    .faq-btn-primary, .fp-btn.save, .hr-btn-primary,
    .tab.sel .n, .page-link-soft.active, .pager-num.is-current,
    .pager-links a.active, .kb-chip.is-current, .kb-chip.active,
    .panel-controls button.active,
    .kb-act:not(.kb-act-danger):not(.kb-act-live):not(.kb-act-warn):hover
) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

body:not([data-style-page^="/docs/"]):not([data-style-page^="/brand/"]) :is(
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .fu-button:not(.secondary):not(:disabled)
) :is(span, strong, small, i, .bi, svg, svg *) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
    fill: currentColor !important;
}

body.customer-panel[data-style-page] .admin-content :is(
    .faq-btn-primary, .fp-btn.save, .hr-btn-primary, .kb-chip.is-current,
    .kb-chip.active, .page-link-soft.active, .pager-num.is-current,
    .pager-links a.active, .hr-pager .current, .pager .current, .pager span.current,
    .panel-controls button.active,
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .send-btn:not(:disabled), .profile-btn,
    .push-card button, .tab.sel .n, .fu-button:not(.secondary):not(:disabled),
    .fu-scopes button[aria-pressed="true"]
) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

body.customer-panel[data-style-page] .admin-content :is(
    .faq-btn-primary, .fp-btn.save, .hr-btn-primary,
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .send-btn:not(:disabled), .profile-btn,
    .push-card button, .fu-button:not(.secondary):not(:disabled),
    .fu-scopes button[aria-pressed="true"]
) :is(span, strong, small, i, .bi, svg, svg *) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
    fill: currentColor !important;
}

body.admin-body .primary-sidebar-toggle:hover {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

/* Legacy pages sometimes restate dark ink on the same filled teal controls. */
html[data-admin-palette][data-theme] body[data-style-page] .admin-content :is(
    .btn-primary-glow, .faq-btn-primary, .fp-btn.save, .hr-btn-primary,
    .kb-chip.is-current, .kb-chip.active,
    .page-link-soft.active, .pager-num.is-current, .pager-links a.active,
    .hr-pager .current, .pager .current, .pager span.current,
    .fu-scopes button[aria-pressed="true"], .fu-button:not(.secondary):not(:disabled),
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .send-btn:not(:disabled), .profile-btn,
    .push-card button, .tab.sel .n,
    .kb-act:not(.kb-act-danger):not(.kb-act-live):not(.kb-act-warn):hover
) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

html[data-admin-palette][data-theme] body[data-style-page] .admin-content :is(
    .btn-primary-glow, .faq-btn-primary, .fp-btn.save, .hr-btn-primary,
    .fu-scopes button[aria-pressed="true"], .fu-button:not(.secondary):not(:disabled),
    .reprocess-btn:not(:disabled), .btn-claim-next:not(:disabled),
    .btn-mini-ok:not(:disabled), .send-btn:not(:disabled), .profile-btn,
    .push-card button
) :is(span, strong, small, i, .bi, svg, svg *) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
    fill: currentColor !important;
}

html[data-admin-palette][data-theme] body[data-style-page] .admin-content :is(
    .pager-links a.active, .page-link-soft.active, .pager-num.is-current,
    .hr-pager .current, .pager .current, .pager span.current,
    .panel-controls button.active
) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

body.customer-panel[data-style-page] .admin-content :is(
    .filter-field select option:checked, .report-filter select option:checked
) {
    color: var(--rx-on-brand, #fff) !important;
    background-color: var(--theme-accent-strong) !important;
}

html[data-admin-palette][data-theme] body[data-style-page] .admin-content select option:checked {
    color: var(--rx-on-brand, #fff) !important;
    background-color: var(--theme-accent-strong) !important;
}

html[data-admin-palette][data-theme] body[data-style-page="/Pages/Operator/Index"] :is(
    .btn-claim-next:not(:disabled), .btn-mini-ok:not(:disabled),
    .send-btn:not(:disabled), .profile-btn, .push-card button, .tab.sel .n
) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
}

html[data-admin-palette][data-theme] body[data-style-page="/Pages/Operator/Index"] :is(
    .btn-claim-next:not(:disabled), .btn-mini-ok:not(:disabled),
    .send-btn:not(:disabled), .profile-btn, .push-card button
) :is(span, strong, small, i, .bi, svg, svg *) {
    color: var(--rx-on-brand, #fff) !important;
    -webkit-text-fill-color: var(--rx-on-brand, #fff) !important;
    fill: currentColor !important;
}

/* Keep card titles aligned to the card edge instead of nesting another padded card inside. */
html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card, .glass-card, .panel, .form-card, .settings-card, .content-card,
    .chart-card, .table-card, .purchase-card, .receipt-card, .api-card,
    .webhook-card, .document-card, .config-card, .model-card, .detail-panel,
    .list-panel, .settings-panel, .table-panel, .content-panel, .workspace-panel
):has(> :is(.card-head, .card-header-row, .card-header-modern, .card-header-custom, .panel-header, .section-header, .table-header, .card-header, .card-title-row)) {
    padding: 0 !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card-head, .card-header-row, .card-header-modern, .card-header-custom,
    .panel-header, .section-header, .table-header, .card-header, .card-title-row
) {
    min-height: 58px;
    padding: 12px 18px !important;
    border-bottom: 1px solid var(--theme-border-soft) !important;
    background: var(--theme-surface-2) !important;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card-head h2, .card-head h3, .card-header-row h2, .card-header-row h3,
    .card-header-modern h2, .card-header-modern h3, .card-header-custom h2,
    .card-header-custom h3, .panel-header h2, .panel-header h3,
    .section-header h2, .section-header h3, .table-header h2, .table-header h3,
    .card-title-row h2, .card-title-row h3
) {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: .98rem;
    line-height: 1.6;
}

html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
    .card-head h2 i, .card-head h3 i, .card-header-row h2 i, .card-header-row h3 i,
    .card-header-modern h2 i, .card-header-modern h3 i, .card-header-custom h2 i,
    .card-header-custom h3 i, .panel-header h2 i, .panel-header h3 i,
    .section-header h2 i, .section-header h3 i, .table-header h2 i, .table-header h3 i,
    .card-title-row h2 i, .card-title-row h3 i
) {
    display: inline-grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--theme-accent-soft);
    color: var(--theme-accent-strong) !important;
    font-size: .92rem;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash > .dash-inner > .section {
    margin: 0 0 clamp(20px, 2.4vw, 32px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    margin: 0 0 14px !important;
    padding: 11px 16px !important;
    border: 1px solid var(--theme-border-soft) !important;
    border-radius: 16px !important;
    background: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    font-size: 1.06rem;
    font-weight: 850;
    line-height: 1.6;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .section-title > i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 11px;
    background: var(--theme-accent-soft);
    color: var(--theme-accent-strong) !important;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .dash-section-note {
    margin: -8px 0 18px;
    color: #607c84;
    font-size: .92rem;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-ops-kpis {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-ops-kpis .kpi {
    min-width: 0;
    border-top: 3px solid #0f766e;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-ops-secondary {
    align-items: stretch;
    margin-top: 18px;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-ops-secondary > .card {
    min-width: 0;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-subheading {
    margin: 14px 0 10px;
    color: #174b51;
    font-size: .95rem;
    font-weight: 750;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-endpoint-row,
html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-queue-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #e0ebe8;
    color: #31535b;
    font-size: .88rem;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-endpoint-row .mono {
    overflow: hidden;
    direction: ltr;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-queue-row > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-queue-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-queue-row time {
    color: #657f86;
    white-space: nowrap;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-plan-card {
    margin-top: 18px;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-plan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 10px;
    padding: 18px;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-plan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #d8e8e4;
    border-radius: 14px;
    background: #f5fbf9;
    color: #31535b;
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-plan-item strong {
    color: #0f766e;
    font-size: 1.1rem;
}

@media (max-width: 700px) {
    html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-endpoint-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-endpoint-row > :last-child {
        grid-column: 2;
    }

    html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash-queue-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .card {
    padding: 0 !important;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .section-title {
        min-height: 52px;
        margin-bottom: 10px !important;
        padding: 9px 12px !important;
        font-size: .98rem;
    }

    html[data-admin-palette] body[data-style-page="/Admin/Dashboard"] .admin-content .dash .section-title > i {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(
        .card-head, .card-header-row, .card-header-modern, .card-header-custom,
        .panel-header, .section-header, .table-header, .card-header, .card-title-row
    ) {
        min-height: 52px;
        padding: 10px 12px !important;
    }
}

/* Tables that exceed the available phone width become labeled record cards. */
@media (max-width: 767.98px) {
    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
        background: transparent !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > thead {
        display: none !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody {
        display: grid !important;
        gap: 12px;
        width: 100%;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr {
        display: grid !important;
        width: 100%;
        padding: 8px 14px;
        border: 1px solid var(--theme-border-soft) !important;
        border-radius: 14px;
        background: var(--theme-surface) !important;
        box-shadow: 0 4px 14px rgba(24, 42, 46, .06);
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr > td {
        display: grid !important;
        grid-template-columns: minmax(84px, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        width: 100%;
        padding: 10px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--theme-border-soft) !important;
        overflow-wrap: anywhere;
        text-align: start;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr > td:last-child {
        border-bottom: 0 !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr > td:not([colspan])::before {
        content: attr(data-label);
        color: var(--theme-muted);
        font-size: .82em;
        font-weight: 800;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr > td[colspan] {
        display: block !important;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards > tbody > tr > td[colspan]::before {
        content: none;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content table.admin-mobile-cards :is(.btn-group, .actions, .table-actions) {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        max-width: 100%;
    }

    html[data-admin-palette] body.admin-body:not(.customer-panel) .admin-content :is(.table-responsive, .table-responsive-wrap, .table-wrap, .data-table-wrap, .table-scroll):has(> table.admin-mobile-cards) {
        overflow-x: hidden !important;
        padding: 8px;
    }
}
