/* Modern Sky Blue Highlight Gradient Theme */
:root, [data-bs-theme="light"] {
    /* Colors - Vivid Sky Blue Theme */
    --primary-color: #0ea5e9; /* Sky 500 - Main Brand Color */
    --primary-hover: #0284c7; /* Sky 600 - Darker shade for hover */
    --primary-active: #0369a1; /* Sky 700 - Active state */
    --primary-light: #e0f2fe; /* Sky 100 - Background tints */
    --primary-subtle: #bae6fd; /* Sky 200 - Borders/Subtle backgrounds */
    
    --secondary-color: #64748b; /* Slate 500 */
    --secondary-hover: #475569; /* Slate 600 */
    --secondary-light: rgba(100, 116, 139, 0.1);
    
    /* Functional Colors */
    --success-color: #10b981; /* Emerald 500 */
    --success-light: rgba(16, 185, 129, 0.1);
    --danger-color: #ef4444; /* Red 500 */
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning-color: #f59e0b; /* Amber 500 */
    --warning-light: rgba(245, 158, 11, 0.1);
    --info-color: #3b82f6; /* Blue 500 */
    --info-light: rgba(59, 130, 246, 0.1);
    --purple-color: #a855f7; /* Purple 500 */
    --grid-pattern-color: #e2e8f0;

    /* Backgrounds */
    --bg-body: #f8fafc; /* Slate 50 - Very clean light background */
    --bg-surface: #ffffff; /* White surface */
    --bg-sidebar: #0f172a; /* Slate 900 - Dark sidebar for contrast */
    --bg-sidebar-hover: rgba(255, 255, 255, 0.1);
    --bg-sidebar-active: #0ea5e9; /* Active item background in sidebar */
    
    --text-sidebar-primary: #f8fafc;
    --text-sidebar-secondary: rgba(255, 255, 255, 0.7);
    --text-sidebar-muted: rgba(255, 255, 255, 0.4);
    --border-sidebar: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #1e293b; /* Slate 800 */
    --text-secondary: #64748b; /* Slate 500 */
    --text-light: #f1f5f9; /* Slate 100 */
    --text-muted: #94a3b8; /* Slate 400 */

    /* Borders */
    --border-color: #e2e8f0; /* Slate 200 */
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-12: 12px;
    --radius-16: 16px;
    --radius-24: 24px;
    --border-radius: var(--radius-16);
    --border-radius-lg: var(--radius-24);
    --border-radius-sm: var(--radius-12);

    /* Shadows - Soft & Colored */
    --shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.05);
    --shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -2px rgba(14, 165, 233, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(14, 165, 233, 0.1), 0 4px 6px -4px rgba(14, 165, 233, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(14, 165, 233, 0.1), 0 8px 10px -6px rgba(14, 165, 233, 0.05);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.3); /* Glow effect for highlights */

    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-table-header: #f1f5f9; /* Slate 100 */
    --bg-input-focus: #1e293b; /* Slate 800 */
    --bg-btn-secondary: #1e293b; /* Slate 800 */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%); /* Vivid Sky to Blue */
    --gradient-surface: linear-gradient(to bottom right, #ffffff, #f0f9ff); /* Subtle white to sky tint */
    --gradient-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); /* Deep slate gradient */
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    --bg-hover: #f8fafc;
    /* --bg-table-header: #f1f5f9;  Removed duplicate */
    --bg-input-focus: #ffffff;
    --bg-btn-secondary: #ffffff;

    /* Transitions */
    --dur-200: 200ms;
    --dur-250: 250ms;
    --dur-300: 300ms;
    --ease-out: cubic-bezier(0.2, 0, 0, 1);
    --transition: all var(--dur-250) var(--ease-out);
    --transition-fast: all var(--dur-200) var(--ease-out);
    --transition-slow: all var(--dur-300) var(--ease-out);

    --font-family-sans: "PingFang SC", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.2;
    --line-height-base: 1.5;
    --line-height-loose: 1.6;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-wide: 0.02em;
    --fs-10: 10px;
    --fs-12: 12px;
    --fs-14: 14px;
    --fs-16: 16px;
    --fs-18: 18px;
    --fs-20: 20px;
    --fs-24: 24px;
    --fs-32: 32px;
    --fs-40: 40px;
    --fs-48: 48px;

    --glass-blur: 28px;
    --glass-bg: rgba(255, 255, 255, 0.86);
    --glass-bg-strong: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-strong: rgba(15, 23, 42, 0.12);
    --glass-glow: 0 0 4px rgba(14, 165, 233, 0.18);
    --focus-ring: 0 0 0 3px rgba(14, 165, 233, 0.28);

    --elev-0: none;
    --elev-1: 0 1px 2px rgba(2, 6, 23, 0.06);
    --elev-2: 0 2px 8px rgba(2, 6, 23, 0.08);
    --elev-3: 0 6px 16px rgba(2, 6, 23, 0.10);
    --elev-4: 0 10px 24px rgba(2, 6, 23, 0.12);
    --elev-5: 0 14px 32px rgba(2, 6, 23, 0.14);
    --elev-6: 0 18px 40px rgba(2, 6, 23, 0.16);
    --elev-7: 0 24px 56px rgba(2, 6, 23, 0.18);

    --shadow-sm: var(--elev-1);
    --shadow: var(--elev-2);
    --shadow-md: var(--elev-3);
    --shadow-lg: var(--elev-4);
    --m-action-gap: 8px;
    --m-action-min-size: 48px;
    --m-action-font-size: 15px;
    --m-action-primary-bg: var(--primary-active);
    --m-action-primary-fg: #ffffff;
    --m-action-danger-bg: #b91c1c;
    --m-action-danger-fg: #ffffff;

    /* Bootstrap token mapping (ensure consistent theme across all pages) */
    --bs-body-bg: var(--bg-body);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border-color);
    --bs-secondary-color: var(--text-secondary);
    --bs-tertiary-bg: var(--bg-surface);
    --bs-card-bg: var(--bg-surface);
}

[data-bs-theme="dark"] {
    color-scheme: dark;
    /* Colors - Dark Mode */
    --primary-color: #38bdf8; /* Sky 400 - Brighter for dark mode */
    --primary-hover: #7dd3fc; /* Sky 300 */
    --primary-active: #0ea5e9; /* Sky 500 */
    --primary-light: rgba(14, 165, 233, 0.15); /* Transparent Sky */
    --primary-subtle: #075985; /* Sky 800 */

    --secondary-color: #94a3b8; /* Slate 400 */
    --secondary-hover: #cbd5e1; /* Slate 300 */
    --secondary-light: rgba(148, 163, 184, 0.15);
    
    --success-light: rgba(16, 185, 129, 0.15);
    --danger-light: rgba(239, 68, 68, 0.15);
    --warning-light: rgba(245, 158, 11, 0.15);
    --info-light: rgba(59, 130, 246, 0.15);
    --purple-color: #c084fc; /* Purple 400 */
    --grid-pattern-color: rgba(255, 255, 255, 0.1);

    /* Backgrounds */
    --bg-body: #0f172a; /* Slate 900 */
    --bg-surface: #1e293b; /* Slate 800 */
    --bg-sidebar: #020617; /* Slate 950 */
    --bg-sidebar-hover: rgba(255, 255, 255, 0.05);
    --bg-sidebar-active: #0ea5e9;

    --text-sidebar-primary: #f8fafc;
    --text-sidebar-secondary: rgba(255, 255, 255, 0.7);
    --text-sidebar-muted: rgba(255, 255, 255, 0.4);
    --border-sidebar: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #cbd5e1; /* Slate 300 */
    --text-light: #f1f5f9; /* Slate 100 */
    --text-muted: #64748b; /* Slate 500 */

    /* Borders */
    --border-color: #334155; /* Slate 700 */

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.2);

    --glass-blur: 24px;
    --glass-bg: rgba(15, 23, 42, 0.72);
    --glass-bg-strong: rgba(15, 23, 42, 0.78);
    --glass-border: rgba(248, 250, 252, 0.10);
    --glass-border-strong: rgba(248, 250, 252, 0.14);
    --glass-glow: 0 0 4px rgba(56, 189, 248, 0.12);
    --focus-ring: 0 0 0 3px rgba(56, 189, 248, 0.30);

    --elev-0: none;
    --elev-1: 0 1px 2px rgba(0, 0, 0, 0.35);
    --elev-2: 0 2px 10px rgba(0, 0, 0, 0.35);
    --elev-3: 0 6px 18px rgba(0, 0, 0, 0.40);
    --elev-4: 0 10px 26px rgba(0, 0, 0, 0.45);
    --elev-5: 0 14px 34px rgba(0, 0, 0, 0.50);
    --elev-6: 0 18px 42px rgba(0, 0, 0, 0.55);
    --elev-7: 0 24px 60px rgba(0, 0, 0, 0.60);

    --shadow-sm: var(--elev-1);
    --shadow: var(--elev-2);
    --shadow-md: var(--elev-3);
    --shadow-lg: var(--elev-4);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
    --gradient-surface: linear-gradient(to bottom right, #1e293b, #0f172a);
    --gradient-sidebar: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);

    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-table-header: #0f172a; /* Slate 900 */
    --bg-input-focus: #1e293b; /* Slate 800 */
    --bg-btn-secondary: #1e293b; /* Slate 800 */
    --m-action-primary-bg: var(--primary-subtle);

    /* Bootstrap token mapping (ensure consistent theme across all pages) */
    --bs-body-bg: var(--bg-body);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border-color);
    --bs-secondary-color: var(--text-secondary);
    --bs-tertiary-bg: var(--bg-surface);
    --bs-card-bg: var(--bg-surface);
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

html, body {
    font-family: var(--font-family-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    line-height: var(--line-height-base);
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-body) !important;
    color: var(--text-primary) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Common Layout Components */
.page-container {
    padding: 0.75rem;
    max-width: 430px;
    margin: 0 auto;
}

.card {
    background: var(--glass-bg-strong);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg), var(--glass-glow);
    border: 1px solid var(--glass-border-strong);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

/* Bootstrap Utility Overrides for Theme Consistency */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-light { color: var(--text-light) !important; }
.text-dark { color: var(--text-primary) !important; } /* Adaptive dark/light text */
.text-muted { color: var(--text-muted) !important; }

.bg-light { background-color: var(--bg-hover) !important; } /* Adaptive light/dark background */
.bg-dark { background-color: var(--bg-sidebar) !important; }
.bg-white { background-color: var(--bg-surface) !important; } /* Adaptive white/dark surface */
.bg-body { background-color: var(--bg-body) !important; }

.border { border-color: var(--border-color) !important; }
.border-top { border-top-color: var(--border-color) !important; }
.border-bottom { border-bottom-color: var(--border-color) !important; }
.border-start { border-start-color: var(--border-color) !important; }
.border-end { border-end-color: var(--border-color) !important; }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent !important;
}

.card-header h1, .card-header h2, .card-header h3, .card-title {
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-12);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    gap: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: var(--letter-spacing-wide);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: var(--elev-3), var(--glass-glow);
}

.btn-primary:disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary:active {
    transform: translateY(0);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: var(--glass-bg);
    color: var(--text-primary);
    border-color: var(--glass-border);
    box-shadow: var(--elev-1);
}

.btn-secondary:active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-subtle);
}

.btn-danger {
    background-color: #fee2e2;
    color: var(--danger-color);
    border: 1px solid #fecaca;
}

.btn-danger:active {
    background-color: var(--danger-color);
    color: white;
    border-color: var(--danger-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: color-mix(in srgb, var(--primary-color) 55%, transparent 45%);
    background: transparent;
}

.btn-outline-primary:active {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: color-mix(in srgb, var(--danger-color) 55%, transparent 45%);
    background: transparent;
}

.btn-outline-danger:active {
    background-color: var(--danger-color);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-12);
    transition: var(--transition-fast);
}

.form-select {
    display: block;
    width: 100%;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 0.875rem;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--glass-bg);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-12);
    transition: var(--transition-fast);
    appearance: none;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: var(--focus-ring);
    background-color: var(--glass-bg-strong);
    color: var(--text-primary);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .form-control,
    .form-select,
    .btn-secondary {
        backdrop-filter: blur(calc(var(--glass-blur) * 0.6));
        -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 0.6));
    }
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Tables */
.table-container {
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.modern-table th {
    background-color: var(--bg-table-header);
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.modern-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

/* Sidebar Utilities */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-sidebar-secondary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    text-decoration: none;
    margin-bottom: 0.25rem;
}

/* Icon Management Category List */
.list-group-item.active-category {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color) !important;
}

.list-group-item.active-category small {
    color: var(--primary-color) !important;
}

.list-group-item.active-category .btn-link {
    color: var(--primary-color) !important;
}

.list-group-item:not(.active-category) {
    background-color: transparent;
    color: var(--text-primary);
    border-left: 4px solid transparent;
}

.icon-card.selected {
    border: 2px solid var(--primary-color) !important;
}

/* Global Table Theme Support */
.table {
    color: var(--text-primary);
    border-color: var(--border-color);
    --bs-table-color: var(--text-primary);
    --bs-table-bg: var(--bg-surface);
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: var(--bg-body);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-active-bg: var(--bg-hover);
    --bs-table-active-color: var(--text-primary);
    --bs-table-hover-bg: var(--bg-hover);
    --bs-table-hover-color: var(--text-primary);
}

.table > :not(caption) > * > * {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.table th, .table thead th {
    background-color: var(--bg-table-header) !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
    border-bottom-color: var(--border-color);
}

.table td {
    vertical-align: middle;
}

.sidebar-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

/* Utility Overrides for Bootstrap */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}

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

/* Alert Overrides */
.alert-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-subtle);
}

.alert-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
    border-color: var(--border-color);
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success-color);
    border-color: var(--success-light);
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
    border-color: var(--danger-light);
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
    border-color: var(--warning-light);
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info-color);
    border-color: var(--info-light);
}

/* Utilities */
.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--elev-2), var(--glass-glow);
}

[data-bs-theme="dark"] .bg-glass {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bg-glass {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.rounded-xl {
    border-radius: var(--border-radius-lg);
}

/* Dropdown Theme Support */
.dropdown-menu {
    background-color: var(--glass-bg-strong);
    border-color: var(--glass-border-strong);
    box-shadow: var(--elev-4), var(--glass-glow);
    color: var(--text-primary);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .dropdown-menu {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.dropdown-item {
    color: var(--text-primary);
}

.dropdown-item:focus {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}
.dropdown-item:active {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-divider {
    border-top-color: var(--border-color);
}

.shadow-soft {
    box-shadow: var(--shadow);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    left: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@media (min-width: 431px) {
    .toast-container {
        left: auto;
        right: 20px;
        width: 360px;
    }
}

.toast-message {
    pointer-events: auto;
    width: 100%;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-16);
    box-shadow: var(--elev-4), var(--glass-glow);
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 12px;
    transition: var(--transition-fast);
    opacity: 0;
    transform: translateX(12px);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .toast-message {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.toast-message.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-message.hide {
    opacity: 0;
    transform: translateX(12px);
}

.toast-message.success { border-left: 3px solid var(--success-color); }
.toast-message.error { border-left: 3px solid var(--danger-color); }
.toast-message.warning { border-left: 3px solid var(--warning-color); }
.toast-message.info { border-left: 3px solid var(--info-color); }

.toast-icon {
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    line-height: 1;
    margin-top: 2px;
    color: var(--text-secondary);
}

.toast-message.success .toast-icon { color: var(--success-color); }
.toast-message.error .toast-icon { color: var(--danger-color); }
.toast-message.warning .toast-icon { color: var(--warning-color); }
.toast-message.info .toast-icon { color: var(--info-color); }

.toast-content {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: var(--line-height-base);
    color: var(--text-primary);
    word-break: break-word;
}

.toast-close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -6px -6px 0 0;
}

.toast-close:active {
    background: color-mix(in srgb, var(--primary-light) 55%, transparent 45%);
}

.ds-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
    background: rgba(2, 6, 23, 0.55);
}

.ds-dialog-panel {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-24);
    box-shadow: var(--elev-6), var(--glass-glow);
    padding: 16px;
    color: var(--text-primary);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ds-dialog-panel {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.ds-dialog-title {
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-tight);
    font-size: 1rem;
}

.ds-dialog-body {
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: var(--line-height-base);
}

.ds-dialog-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Pagination Theme Support */
.page-link {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: var(--transition);
}

.page-link:active {
    background-color: var(--bg-hover);
    color: var(--primary-color);
    border-color: var(--border-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    background-color: var(--bg-body);
    border-color: var(--border-color);
    color: var(--text-muted);
}

/* Badge Theme Support */
.bg-theme-success {
    background-color: var(--success-color) !important;
    color: white !important;
}

.bg-theme-purple {
    background-color: var(--purple-color) !important;
    color: white !important;
}

.bg-theme-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bg-theme-warning {
    background-color: var(--warning-color) !important;
    color: white !important;
}

.bg-theme-danger {
    background-color: var(--danger-color) !important;
    color: white !important;
}

.bg-theme-info {
    background-color: var(--info-color) !important;
    color: white !important;
}

.badge-theme-success {
    background-color: var(--success-light);
    color: var(--success-color);
    border: 1px solid var(--success-light);
}

.badge-theme-danger {
    background-color: var(--danger-light);
    color: var(--danger-color);
    border: 1px solid var(--danger-light);
}

.badge-theme-warning {
    background-color: var(--warning-light);
    color: var(--warning-color);
    border: 1px solid var(--warning-light);
}

.badge-theme-info {
    background-color: var(--info-light);
    color: var(--info-color);
    border: 1px solid var(--info-light);
}

.badge-theme-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

.badge-theme-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
    border: 1px solid var(--secondary-light);
}

.badge-theme-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Theme Utilities for Backgrounds and Text */
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-success-light { background-color: var(--success-light) !important; }
.bg-warning-light { background-color: var(--warning-light) !important; }
.bg-info-light { background-color: var(--info-light) !important; }
.bg-danger-light { background-color: var(--danger-light) !important; }

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

.border-sidebar { border-color: var(--border-sidebar) !important; }
.bg-gradient-sidebar { background: var(--gradient-sidebar) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }

/* Nav Tabs Theme Support */
.nav-tabs {
    border-bottom-color: var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    border-color: transparent;
    transition: var(--transition);
    margin-bottom: -1px;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-surface);
    border-color: var(--border-color) var(--border-color) var(--bg-surface);
    font-weight: 600;
}

/* Modal Theme Support */
.modal-content {
    background-color: var(--glass-bg-strong);
    color: var(--text-primary);
    border: 1px solid var(--glass-border-strong);
    box-shadow: var(--elev-6), var(--glass-glow);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .modal-content {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.mud-dialog {
    background-color: var(--glass-bg-strong) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border-strong) !important;
    border-radius: var(--radius-16) !important;
    box-shadow: var(--elev-6), var(--glass-glow) !important;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mud-dialog {
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
    }
}

.mud-overlay-dark {
    background-color: rgba(2, 6, 23, 0.55) !important;
}

.mud-button-root:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 430px) {
    html {
        font-size: 16px;
    }

    .page-container {
        padding: 1rem;
    }

    .btn, .form-control, .form-select, .dropdown-item {
        min-height: 48px;
    }
}

.mobile-shell {
    --mobile-space: 0.75rem;
    --mobile-card-padding: 0.875rem;
    --mobile-card-radius: 16px;
    --mobile-control-radius: 0.5rem;
    --mobile-gap: 0.75rem;
    --mobile-text-title: 1rem;
    --mobile-text-body: 0.875rem;
    --mobile-text-caption: 0.75rem;
    --mobile-shadow: var(--shadow-sm);
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-body);
    color: var(--text-primary);
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    overflow: hidden;
}

.mobile-topbar {
    min-height: calc(52px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    padding-top: env(safe-area-inset-top);
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg-strong);
    box-shadow: var(--elev-2);
    flex: 0 0 auto;
    z-index: 20;
}

.mobile-topbar,
.mobile-tabbar,
.mobile-card {
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
}

.mobile-topbar-title {
    flex: 1;
    text-align: center;
    font-weight: var(--font-weight-bold);
    font-size: 1rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-12);
}

.mobile-icon-btn:active {
    background: color-mix(in srgb, var(--primary-light) 55%, transparent 45%);
}

.mobile-icon-btn:disabled {
    opacity: 0.35;
}

.mobile-icon-btn i {
    font-size: 1.15rem;
}

.mobile-icon-24 i {
    font-size: 24px;
}

.mobile-ripple {
    position: relative;
    overflow: hidden;
}

.mobile-ripple::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 62%);
    opacity: 0;
    transform: scale(0.75);
    transition: opacity var(--dur-200) var(--ease-out), transform var(--dur-200) var(--ease-out);
    pointer-events: none;
}

.mobile-ripple:active::after {
    opacity: 1;
    transform: scale(1.2);
}

.mobile-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--mobile-space);
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-shell.chat-reveal-mode .mobile-content {
    overflow: hidden;
}

.mobile-shell.chat-focus-mode .mobile-content {
    overflow: hidden;
}

.chat-reveal-root {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
}

.chat-reveal-under,
.chat-reveal-over {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.chat-reveal-under {
    pointer-events: none;
}

.chat-reveal-over {
    background: var(--bg-body);
    will-change: transform;
    transition: transform var(--dur-250) var(--ease-out);
    touch-action: pan-y;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.chat-reveal-over.dragging {
    transition: none;
}

.chat-reveal-mode .chat-reveal-over {
    box-shadow: -20px 0 40px rgba(2, 6, 23, 0.12);
}

.chat-reveal-mode .chat-reveal-under[aria-hidden="false"] {
    pointer-events: auto;
}

.mobile-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mobile-chat-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.mobile-chat-card {
    flex: 1 1 auto;
    min-height: 0;
}

.mobile-iframe-shell {
    flex: 1 1 auto;
    min-height: 0;
    margin: calc(-1 * var(--mobile-space));
    width: calc(100% + (var(--mobile-space) * 2));
}

.mobile-iframe-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--bg-body);
}

.mobile-transition-enter {
    animation: mobileFadeSlideIn 0.15s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes mobileFadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-tabbar {
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--glass-bg-strong);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -10px 24px rgba(2, 6, 23, 0.06);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 0 0 auto;
    z-index: 30;
}

.mobile-tabbar--4 {
    grid-template-columns: repeat(4, 1fr);
}

.mobile-tab {
    text-decoration: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 0;
    min-height: 56px;
    font-size: 14px;
    line-height: 1.1;
    overflow: hidden;
}

.mobile-tab i {
    font-size: 24px;
    line-height: 1;
}

.mobile-tab-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.mobile-tab-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    border: 2px solid var(--bg-surface);
}

.mobile-tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-tab.active {
    color: var(--primary-color);
}

.mobile-section {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
    font-size: var(--mobile-text-body);
    line-height: 1.4;
}

.mobile-card {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-16);
    padding: var(--mobile-card-padding);
    box-shadow: var(--elev-3), var(--glass-glow);
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

.mobile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient-primary);
    pointer-events: none;
    opacity: 0.16;
    transition: opacity var(--dur-250) var(--ease-out);
    z-index: -1;
}

@supports ((-webkit-mask: none) or (mask: none)) {
    .mobile-card::before {
        z-index: 0;
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        mask-composite: exclude;
    }

    .mobile-card > * {
        position: relative;
        z-index: 1;
    }
}

.mobile-card:active::before,
.mobile-card:focus-within::before {
    opacity: 0.32;
}

.mobile-muted {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: var(--line-height-base);
}

:where(button, a, input, textarea, select, [tabindex]):focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

.mobile-card-actions {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--m-action-gap);
    align-items: stretch;
}

.mobile-card-actions > * {
    flex: 1 1 calc(33.333% - var(--m-action-gap));
    min-width: var(--m-action-min-size);
}

.mobile-card-actions > :first-child:nth-last-child(2),
.mobile-card-actions > :first-child:nth-last-child(2) ~ * {
    flex-basis: calc(50% - var(--m-action-gap));
}

.mobile-card-actions > :only-child {
    flex: 1 1 100%;
}

.mobile-card-actions > .btn,
.mobile-card-actions > button,
.mobile-card-actions > a {
    min-height: var(--m-action-min-size);
    min-width: var(--m-action-min-size);
    font-size: var(--m-action-font-size);
    line-height: 1;
    padding: 0 14px;
    touch-action: manipulation;
}

.mobile-card-actions > .btn-primary {
    background-color: var(--m-action-primary-bg);
    border-color: var(--m-action-primary-bg);
    color: var(--m-action-primary-fg);
}

.mobile-card-actions > .btn-outline-secondary,
.mobile-card-actions > .btn-outline-primary,
.mobile-card-actions > .btn-outline-success,
.mobile-card-actions > .btn-outline-info {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.mobile-card-actions > .btn-outline-danger,
.mobile-card-actions > .btn-danger {
    background-color: var(--m-action-danger-bg);
    border-color: var(--m-action-danger-bg);
    color: var(--m-action-danger-fg);
}

.mobile-card-actionbar {
    margin-top: auto;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--m-action-gap);
    align-items: stretch;
}

.mobile-card-actionbar > * {
    flex: 1 1 calc(33.333% - var(--m-action-gap));
    min-width: var(--m-action-min-size);
}

.mobile-card-actionbar > :first-child:nth-last-child(2),
.mobile-card-actionbar > :first-child:nth-last-child(2) ~ * {
    flex-basis: calc(50% - var(--m-action-gap));
}

.mobile-card-actionbar > :only-child {
    flex: 1 1 100%;
}

.mobile-card-actionbar > .btn,
.mobile-card-actionbar > button,
.mobile-card-actionbar > a {
    min-height: var(--m-action-min-size);
    min-width: var(--m-action-min-size);
    font-size: var(--m-action-font-size);
    line-height: 1;
    padding: 0 14px;
    touch-action: manipulation;
}

.mobile-card-actionbar > .btn-primary {
    background-color: var(--m-action-primary-bg);
    border-color: var(--m-action-primary-bg);
    color: var(--m-action-primary-fg);
}

.mobile-card-actionbar > .btn-primary:active {
    background-color: var(--m-action-primary-bg);
    border-color: var(--m-action-primary-bg);
}

.mobile-card-actionbar > .btn-outline-secondary,
.mobile-card-actionbar > .btn-outline-primary,
.mobile-card-actionbar > .btn-outline-success,
.mobile-card-actionbar > .btn-outline-info {
    background-color: var(--bg-surface);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.mobile-card-actionbar > .btn-outline-danger,
.mobile-card-actionbar > .btn-danger {
    background-color: var(--m-action-danger-bg);
    border-color: var(--m-action-danger-bg);
    color: var(--m-action-danger-fg);
}

.mobile-card-actionbar[data-debug="true"] > * {
    outline: 2px dashed rgba(239, 68, 68, 0.65);
    outline-offset: 2px;
}

.mobile-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3rem;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem 0.25rem;
    border-radius: var(--mobile-control-radius);
}

.mobile-row:active {
    background: var(--bg-hover);
}

.mobile-avatar {
    width: 44px;
    height: 44px;
    border-radius: calc(var(--mobile-control-radius) + 2px);
    background: var(--gradient-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-avatar i {
    font-size: 1.2rem;
}

.mobile-btn {
    min-height: 3rem;
    min-width: 3rem;
    border-radius: var(--mobile-control-radius);
}

.mobile-section .form-control,
.mobile-section .form-select {
    min-height: 3rem;
    padding: 0 1rem;
    border-radius: 0.25rem;
    font-size: var(--mobile-text-body);
}

.mobile-section .form-control::placeholder {
    font-size: var(--mobile-text-body);
}

.mobile-list {
    --ptr: 0px;
    border-radius: var(--mobile-card-radius);
    overflow: visible;
    background: transparent;
    position: relative;
    touch-action: pan-y;
}

@media (hover: hover) and (pointer: fine) {
    a:hover {
        color: var(--primary-hover);
        text-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
    }

    .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-3px);
        border-color: var(--primary-subtle);
    }

    .card:hover::before {
        opacity: 1;
    }

    .btn-primary:hover {
        box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.5);
        transform: translateY(-1px);
        color: white;
        filter: brightness(1.1);
    }

    .btn-secondary:hover {
        background-color: var(--primary-light);
        color: var(--primary-color);
        border-color: var(--primary-subtle);
    }

    .btn-danger:hover {
        background-color: var(--danger-color);
        color: white;
        border-color: var(--danger-color);
        box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
    }

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        color: white;
    }

    .btn-outline-danger:hover {
        background-color: var(--danger-color);
        color: white;
    }

    .modern-table tr:hover td {
        background-color: var(--bg-hover);
    }

    .sidebar-link:hover {
        background-color: var(--bg-sidebar-hover);
        color: var(--text-sidebar-primary);
    }

    .dropdown-item:hover {
        background-color: var(--bg-hover);
        color: var(--text-primary);
    }

    .nav-tabs .nav-link:hover {
        color: var(--primary-color);
        border-color: transparent;
        background-color: var(--bg-hover);
    }

    .table-hover > tbody > tr:hover > * {
        background-color: var(--bg-hover) !important;
        color: var(--text-primary) !important;
        box-shadow: inset 0 0 0 9999px var(--bg-hover);
    }

    .page-link:hover {
        background-color: var(--bg-hover);
        color: var(--primary-color);
        border-color: var(--border-color);
    }
}

.ptr-indicator {
    height: var(--ptr);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.12s ease-out;
}

.mobile-list-body {
    display: flex;
    flex-direction: column;
    gap: var(--mobile-gap);
}

.loadmore-indicator {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    padding: 0.5rem 0;
}

.loadmore-sentinel {
    height: 1px;
}

.mobile-muted {
    color: var(--text-secondary) !important;
    font-size: var(--mobile-text-caption);
}

.mobile-title {
    font-size: var(--mobile-text-title);
    font-weight: 700;
    line-height: 1.25;
}

.m-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--mobile-card-radius);
    box-shadow: var(--mobile-shadow);
    overflow: hidden;
}

.m-card__body {
    padding: var(--mobile-card-padding);
}

.m-card__actions {
    border-top: 1px solid var(--border-color);
    padding: 0.75rem var(--mobile-card-padding);
    display: flex;
    flex-wrap: wrap;
    gap: var(--m-action-gap);
    align-items: stretch;
}

.m-card__actions > * {
    flex: 1 1 calc(33.333% - var(--m-action-gap));
    min-width: var(--m-action-min-size);
}

.m-card__actions > :first-child:nth-last-child(2),
.m-card__actions > :first-child:nth-last-child(2) ~ * {
    flex-basis: calc(50% - var(--m-action-gap));
}

.m-card__actions > :only-child {
    flex: 1 1 100%;
}

.m-card__actions .btn,
.m-card__actions button,
.m-card__actions a {
    min-height: var(--m-action-min-size);
    min-width: var(--m-action-min-size);
    font-size: var(--m-action-font-size);
    line-height: 1;
    padding: 0 14px;
}

.m-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1200;
}

.m-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1210;
    background: var(--bg-surface);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    touch-action: pan-y;
}

.m-sheet__handle {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: #e5e5e5;
    margin: 10px auto 6px;
    flex-shrink: 0;
}

.m-sheet__header {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.m-sheet__title {
    font-size: var(--mobile-text-title);
    font-weight: 700;
    flex: 1 1 auto;
    min-width: 0;
}

.m-sheet__body {
    padding: 0.75rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.m-sheet__footer {
    border-top: 1px solid #e5e5e5;
    padding: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.m-icon-btn {
    min-height: 3rem;
    min-width: 3rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem 0;
}

.mobile-empty-icon {
    font-size: 2.25rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.5rem;
}

.mobile-skeleton {
    position: relative;
    overflow: hidden;
    background: color-mix(in srgb, var(--bg-body) 70%, var(--border-color) 30%);
    border-radius: 10px;
}

.mobile-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: mobileShimmer 1.1s ease-in-out infinite;
}

[data-bs-theme="dark"] .mobile-skeleton::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

@keyframes mobileShimmer {
    100% { transform: translateX(100%); }
}

.mobile-skeleton-line {
    height: 12px;
    width: 100%;
    margin-top: 0.5rem;
}

.mobile-skeleton-line.sm {
    height: 10px;
}

.mobile-skeleton-line.xs {
    height: 8px;
}

.mobile-skeleton-circle {
    width: 44px;
    height: 44px;
    border-radius: calc(var(--mobile-control-radius) + 2px);
}

@media (max-width: 767.98px) {
    .modal-fullscreen-sm-down .modal-header {
        padding-top: calc(1rem + env(safe-area-inset-top));
    }

    .modal-fullscreen-sm-down .modal-body {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .modal-fullscreen-sm-down .modal-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

.template-management-root {
    height: auto;
}

@media (min-width: 768px) {
    .template-management-root {
        height: calc(100vh - 120px);
    }

    .factory-model-root {
        height: calc(100vh - 120px);
    }

    .h-md-100 {
        height: 100% !important;
    }

    .overflow-md-hidden {
        overflow: hidden !important;
    }
}

.factory-model-root {
    height: auto;
}

.chat-thread {
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.chat-thread:hover {
    scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.chat-thread::-webkit-scrollbar {
    width: 1px;
    height: 1px;
}

.chat-thread::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
}

.chat-thread:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
}

.chat-line {
    width: 100%;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.chat-line--user {
    text-align: left;
}

.chat-line--assistant {
    text-align: left;
}

.chat-text {
    width: 100%;
    max-width: 100%;
    font: inherit;
    color: inherit;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-plain {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
}

.chat-thread .mud-markdown,
.chat-thread .mud-markdown * {
    font: inherit;
    color: inherit;
    background: transparent !important;
    box-shadow: none !important;
}

.chat-thread .mud-markdown strong,
.chat-thread .mud-markdown b {
    font-weight: 400;
}

.chat-thread .mud-markdown em,
.chat-thread .mud-markdown i {
    font-style: normal;
}

.chat-thread .mud-markdown p,
.chat-thread .mud-markdown ul,
.chat-thread .mud-markdown ol,
.chat-thread .mud-markdown pre,
.chat-thread .mud-markdown blockquote,
.chat-thread .mud-markdown h1,
.chat-thread .mud-markdown h2,
.chat-thread .mud-markdown h3,
.chat-thread .mud-markdown h4,
.chat-thread .mud-markdown h5,
.chat-thread .mud-markdown h6 {
    margin: 0 0 8px 0;
    padding: 0;
    border: 0;
    font-weight: 400;
    font-size: inherit;
}

.chat-thread .mud-markdown h1 { font-size: 1.15rem !important; line-height: 1.35; }
.chat-thread .mud-markdown h2 { font-size: 1.08rem !important; line-height: 1.35; }
.chat-thread .mud-markdown h3 { font-size: 1.02rem !important; line-height: 1.35; }
.chat-thread .mud-markdown h4 { font-size: 0.98rem !important; line-height: 1.35; }
.chat-thread .mud-markdown h5 { font-size: 0.94rem !important; line-height: 1.35; }
.chat-thread .mud-markdown h6 { font-size: 0.90rem !important; line-height: 1.35; }

.chat-thread .mud-typography-h1,
.chat-thread .mud-typography-h2,
.chat-thread .mud-typography-h3,
.chat-thread .mud-typography-h4,
.chat-thread .mud-typography-h5,
.chat-thread .mud-typography-h6 {
    margin: 0 0 8px 0;
    font-weight: 400;
    line-height: 1.35;
}

.chat-thread .mud-typography-h1 { font-size: 1.15rem !important; }
.chat-thread .mud-typography-h2 { font-size: 1.08rem !important; }
.chat-thread .mud-typography-h3 { font-size: 1.02rem !important; }
.chat-thread .mud-typography-h4 { font-size: 0.98rem !important; }
.chat-thread .mud-typography-h5 { font-size: 0.94rem !important; }
.chat-thread .mud-typography-h6 { font-size: 0.90rem !important; }

.chat-thread .mud-markdown p:last-child {
    margin-bottom: 0;
}

.chat-thread .mud-markdown a {
    color: inherit;
    text-decoration: none;
}

.chat-thread .mud-markdown ul,
.chat-thread .mud-markdown ol {
    padding-left: 0;
    margin-left: 0;
    list-style-position: inside;
}

.chat-thread .mud-markdown code,
.chat-thread .mud-markdown pre {
    font-family: inherit;
}

.chat-session-item {
    cursor: pointer;
}

.chat-msg {
    width: 100%;
    padding: 0.25rem 0.75rem;
    box-sizing: border-box;
}

.chat-bubble {
    width: 100%;
    max-width: 100%;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    background: transparent;
}

.chat-bubble--user {
    background: rgba(14, 165, 233, 0.14);
}

.chat-bubble--peer {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.chat-footer {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.chat-time {
    font-size: 0.75rem;
    line-height: 1;
    color: rgba(17, 24, 39, 0.55);
    white-space: nowrap;
}

.chat-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-action-btn {
    min-width: 2.25rem;
    min-height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    color: rgba(17, 24, 39, 0.78);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    touch-action: manipulation;
}

.chat-action-btn--danger {
    color: rgba(220, 38, 38, 0.9);
}

.chat-action-btn:disabled,
.chat-action-btn[disabled] {
    opacity: 0.45;
}

.chat-action-btn:active:not(:disabled) {
    transform: translateY(0.5px);
}

.chat-action-btn:focus-visible {
    outline: 2px solid rgba(14, 165, 233, 0.35);
    outline-offset: 2px;
}

.chat-composer {
    padding: 0 0.25rem;
}

.chat-composer-row {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-composer-box {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0.35rem 0.4rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: visible;
}

.chat-composer-box:focus-within {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.12);
}

.chat-composer-input {
    flex: 1;
    min-height: 2.4rem;
    max-height: 8.5rem;
    resize: none;
    border-radius: 0;
    padding: 0.55rem 0.35rem;
    border: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.25;
    outline: none;
    overflow-y: hidden;
}

.chat-composer-input:focus {
    border: 0;
    box-shadow: none;
}

.chat-composer-iconbtn {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(17, 24, 39, 0.78);
}

.chat-composer-iconbtn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.chat-composer-iconbtn:disabled {
    opacity: 0.45;
}

.chat-composer-sendbtn {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(14, 165, 233, 0.35);
    background: rgba(14, 165, 233, 0.92);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.chat-composer-sendbtn:disabled {
    opacity: 0.45;
}

.chat-composer-sendbtn--hidden {
    opacity: 0;
    pointer-events: none;
}

.chat-composer-sendbtn--danger {
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(220, 38, 38, 0.92);
}

.chat-composer-wx {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-composer-wx-input {
    width: 100%;
    min-height: 3.25rem;
    max-height: 3.25rem;
    resize: none;
    border-radius: 1.25rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.25;
    outline: none;
    overflow-y: auto;
}

.chat-composer-wx-input:focus {
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.12);
}

.chat-composer-wx-hint {
    padding: 0 0.25rem;
    font-size: 0.85rem;
    color: rgba(71, 85, 105, 0.9);
}

.chat-composer-wx-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.chat-composer-wx-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(17, 24, 39, 0.78);
}

.chat-composer-wx-btn:disabled {
    opacity: 0.45;
}

.chat-composer-wx-send {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
}

.chat-composer-wx-spacer {
    flex: 1 1 auto;
}

.chat-composer-more {
    position: relative;
    display: inline-flex;
}

.chat-composer-popover {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.5rem);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 0.85rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
    padding: 0.4rem;
    min-width: 10rem;
    z-index: 1041;
}

.chat-composer-popover-item {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.6rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(17, 24, 39, 0.82);
    font-size: 0.95rem;
}

.chat-composer-popover-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.chat-composer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: transparent;
}

.composer-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.composer-action {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.composer-action-icon {
    font-size: 1.4rem;
    color: rgba(17, 24, 39, 0.78);
}

.composer-action-text {
    font-size: 0.85rem;
    color: rgba(17, 24, 39, 0.78);
}

@media (max-width: 430px) {
    .chat-msg {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .chat-action-btn {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .chat-action-btn:hover:not(:disabled) {
        filter: brightness(0.98);
    }
}

:root {
    --m-action-primary-min: 2.75rem;
    --m-action-secondary-min: 2.25rem;
    --m-action-gap: 0.5rem;
    --m-action-group-gap: 1rem;
    --m-action-radius: 0.5rem;
    --m-action-divider: #e5e5e5;
    --m-action-focus: rgba(14, 165, 233, 0.35);
}

.m-actionbar {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--m-action-divider);
    display: flex;
    align-items: center;
    gap: var(--m-action-group-gap);
}

.m-actionbar__main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--m-action-gap);
    min-width: 0;
    flex-wrap: wrap;
}

.m-actionbar__danger {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: var(--m-action-gap);
}

.m-action-btn {
    min-height: var(--m-action-secondary-min);
    min-width: var(--m-action-secondary-min);
    border-radius: var(--m-action-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0 0.75rem;
    line-height: 1;
    touch-action: manipulation;
}

.m-action-btn--primary {
    min-height: var(--m-action-primary-min);
    min-width: var(--m-action-primary-min);
}

.m-action-btn:disabled,
.m-action-btn[disabled] {
    opacity: 0.5;
}

.m-action-btn:focus-visible {
    outline: 2px solid var(--m-action-focus);
    outline-offset: 2px;
}

.m-action-btn:active {
    transform: translateY(0.5px);
}

@media (hover: hover) and (pointer: fine) {
    .m-action-btn:hover {
        filter: brightness(0.98);
    }
}

.menu-nav {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100svh;
}

@media (max-width: 767.98px) {
    .menu-nav {
        height: auto;
        min-height: calc(100vh - 90px);
    }
}

.menu-nav__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-body);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.menu-nav__breadcrumb {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    align-items: center;
    min-height: 2.25rem;
}

.menu-nav__crumb {
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    touch-action: manipulation;
}

.menu-nav__crumb:active {
    background: var(--primary-light);
    color: var(--primary-active);
}

.menu-nav__sep {
    color: var(--text-muted);
    padding: 0 0.125rem;
}

.menu-nav__body {
    flex: 1 1 auto;
    overflow: hidden;
}

.menu-nav__panel {
    height: 100%;
    overflow: auto;
    padding: 0.75rem 0.75rem calc(74px + env(safe-area-inset-bottom));
}

.menu-nav__panel.slide-in-left {
    animation: menuSlideInLeft 220ms cubic-bezier(0.2, 0, 0.2, 1);
}

.menu-nav__panel.slide-in-right {
    animation: menuSlideInRight 220ms cubic-bezier(0.2, 0, 0.2, 1);
}

@keyframes menuSlideInLeft {
    from { transform: translateX(14px); opacity: 0.7; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes menuSlideInRight {
    from { transform: translateX(-14px); opacity: 0.7; }
    to { transform: translateX(0); opacity: 1; }
}

.menu-nav__list {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.menu-nav__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
}

.menu-nav__item:last-child {
    border-bottom: none;
}

.menu-nav__item:active {
    background: color-mix(in srgb, var(--primary-light) 70%, transparent 30%);
}

.menu-nav__icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.menu-nav__text {
    min-width: 0;
    flex: 1 1 auto;
}

.menu-nav__title {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-nav__subtitle {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.125rem;
}

.menu-nav__meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.menu-nav__more {
    min-width: 44px;
    min-height: 44px;
    border: none;
    background: transparent;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.menu-nav__more:active {
    background: var(--primary-light);
    color: var(--primary-active);
}

.menu-nav__chev {
    color: var(--text-muted);
    padding-left: 0.25rem;
}

.menu-nav__actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .menu-nav__actionbar {
        left: var(--bs-offcanvas-width, 0);
    }
}

.menu-nav__actionbar-inner {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.menu-nav__actionbtn {
    min-height: 44px;
    border-radius: 0.75rem;
    touch-action: manipulation;
    line-height: 1;
}

.menu-nav__menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1049;
    background: rgba(0,0,0,0.0);
}

.menu-nav__menu {
    position: fixed;
    z-index: 1050;
    min-width: 200px;
    border-radius: 0.75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 0.25rem;
}

.menu-nav__menu-btn {
    width: 100%;
    min-height: 44px;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    text-align: left;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    touch-action: manipulation;
}

.menu-nav__menu-btn:active {
    background: var(--primary-light);
}

.menu-nav__menu-btn.danger {
    color: var(--danger-color);
}

.loading-progress,
.loading-progress-text {
    display: none !important;
}
