/* CRM Knowledge Base — Design System v2 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #f4f6fb;
    --bg-subtle: #eef1f8;
    --bg-dark: #0c1222;
    --surface: #ffffff;
    --surface-hover: #f8fafc;
    --surface-raised: #ffffff;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --muted: #94a3b8;
    --primary: #5b5ef4;
    --primary-light: #ededfe;
    --primary-hover: #4845e8;
    --primary-subtle: rgba(91, 94, 244, 0.08);
    --accent: #06b6d4;
    --accent-light: #e0f7fa;
    --success: #10b981;
    --success-bg: #d1fae5;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;
    --border: #e2e8f0;
    --border-subtle: #f1f5f9;
    --sidebar-width: 272px;
    --sidebar-collapsed: 76px;
    --topbar-height: 64px;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.1);
    --shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.12);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --focus-ring: 0 0 0 3px rgba(91, 94, 244, 0.18);
    --sidebar-bg: #ffffff;
    --sidebar-border: #e8ecf4;
    --sidebar-text: #64748b;
    --sidebar-text-active: #0f172a;
    --sidebar-hover: #f4f6fb;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

/* ========== Landing Page ========== */
.landing {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: #fff;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-logo svg { width: 28px; height: 28px; }

.landing-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .landing-hero { grid-template-columns: 1fr; padding: 2rem 1.5rem 4rem; }
}

.landing-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.landing-hero p {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin: 0 0 2rem;
    line-height: 1.7;
}

.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (max-width: 768px) { .landing-features { grid-template-columns: 1fr; } }

.feature-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(8px);
}

.feature-card h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.feature-card p { margin: 0; color: #94a3b8; font-size: 0.875rem; }

.landing-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition), box-shadow var(--transition);
    display: block;
}

.portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    color: var(--text);
    text-decoration: none;
}

.portal-card h3 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.portal-card p { margin: 0 0 1rem; color: var(--text-secondary); font-size: 0.875rem; }
.portal-card .portal-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.portal-card.admin .portal-icon { background: var(--primary-light); color: var(--primary); }
.portal-card.employee .portal-icon { background: var(--success-bg); color: var(--success); }

/* ========== Auth Pages ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f4f8 0%, #e0e7ff 100%);
}

.auth-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 420px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-brand .logo-icon {
    width: 48px; height: 48px;
    background: var(--primary);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.auth-card h1 { margin: 0 0 0.35rem; font-size: 1.5rem; font-weight: 700; }
.subtitle { color: var(--text-secondary); margin: 0 0 1.75rem; font-size: 0.9rem; }
.hint { font-size: 0.8rem; color: var(--muted); margin-top: 1.5rem; text-align: center; }
.auth-links { display: flex; flex-direction: column; gap: 0.75rem; }
.auth-divider { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 1rem 0; }

.role-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.role-badge.admin { background: var(--primary-light); color: var(--primary); }
.role-badge.employee { background: var(--success-bg); color: #065f46; }

/* ========== App Layout (Sidebar) ========== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    border-right: 1px solid var(--sidebar-border);
    transition: transform var(--transition-slow), width var(--transition-slow);
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--topbar-height);
}

.sidebar-brand .logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(91, 94, 244, 0.3);
    flex-shrink: 0;
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0.85rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.nav-section {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    padding: 1.25rem 0.75rem 0.4rem;
}

.nav-section:first-child {
    padding-top: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    margin-bottom: 2px;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-active);
    text-decoration: none;
}

.nav-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
    border-color: rgba(91, 94, 244, 0.12);
    font-weight: 600;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity var(--transition);
}

.nav-link:hover svg,
.nav-link.active svg { opacity: 1; }

.sidebar-footer {
    padding: 0.85rem;
    border-top: 1px solid var(--sidebar-border);
    background: linear-gradient(180deg, transparent, rgba(244, 246, 251, 0.5));
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.25rem;
}

.sidebar-user .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 600; font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(91, 94, 244, 0.25);
}

.sidebar-user .avatar.avatar-img {
    object-fit: cover;
    background: none;
    box-shadow: 0 0 0 2px var(--surface), 0 2px 8px rgba(15, 23, 42, 0.1);
}

.sidebar-user .user-details { flex: 1; min-width: 0; }
.sidebar-user .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user .user-role {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: capitalize;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

.topbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 1.5rem;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.page-content {
    padding: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}

.mobile-menu-btn {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0.45rem;
    color: var(--text);
    transition: all var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--bg-subtle);
    border-color: var(--muted);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .page-content { padding: 1.25rem 1rem; }
    .topbar { padding: 0 1rem; }
    .topbar-actions .btn span.btn-label { display: none; }
}

@media (max-width: 600px) {
    .topbar h1 { font-size: 1.05rem; }
    .topbar-search { display: none; }
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(91, 94, 244, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #5b21b6 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 94, 244, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    box-shadow: var(--shadow);
}
.btn-secondary:hover {
    background: var(--bg-subtle);
    color: var(--text);
    border-color: var(--muted);
}

.btn-success { background: var(--success); color: #fff; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25); }
.btn-success:hover { background: #059669; color: #fff; transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25); }
.btn-danger:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg-subtle); color: var(--text); }

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8125rem; border-radius: var(--radius-xs); }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

/* ========== Forms ========== */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text);
}

.form-group .label-hint { font-weight: 400; color: var(--muted); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-group textarea { min-height: 200px; resize: vertical; line-height: 1.6; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    padding: 1.75rem;
}

/* ========== Alerts ========== */
.alert {
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-weight: 500;
    animation: alertSlideIn 0.35s var(--ease-out, ease) both;
}

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-light); color: #4338ca; border: 1px solid #c7d2fe; }

/* ========== Cards & Stats ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    opacity: 0;
    transition: opacity var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border);
}

.stat-card:hover::before { opacity: 1; }

.stat-card .stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.stat-card .stat-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}

.stat-card .stat-icon svg,
.stat-card .stat-icon i { font-size: 1.15rem; }

.stat-icon--primary { background: var(--primary-light); color: var(--primary); }
.stat-icon--success { background: var(--success-bg); color: var(--success); }
.stat-icon--warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon--pink { background: #fce7f3; color: #be185d; }
.stat-icon--blue { background: #dbeafe; color: #1d4ed8; }

.stat-card .value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-card .label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

.stat-card .label a { color: inherit; text-decoration: none; }
.stat-card .label a:hover { color: var(--primary); }

.stat-card .stat-change { font-size: 0.75rem; color: var(--success); font-weight: 600; }

.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-hover) 100%);
}

.card-header h2 { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
.card-body { padding: 1.35rem; }
.card-body--flush { padding: 0; }

/* ========== Tables ========== */
.table-wrap { overflow-x: auto; }

table.data-table {
    width: 100%;
    border-collapse: collapse;
}

table.data-table th,
table.data-table td {
    padding: 0.85rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

table.data-table th {
    background: var(--bg-subtle);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    position: sticky;
    top: 0;
    z-index: 1;
}

table.data-table tbody tr { transition: background var(--transition); }
table.data-table tbody tr:hover { background: var(--primary-subtle); }
table.data-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
    .table-wrap--responsive table.data-table thead { display: none; }
    .table-wrap--responsive table.data-table tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--surface);
        padding: 0.5rem 0;
    }
    .table-wrap--responsive table.data-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid var(--border-subtle);
        text-align: right;
    }
    .table-wrap--responsive table.data-table td:last-child { border-bottom: none; }
    .table-wrap--responsive table.data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--muted);
        text-align: left;
        flex-shrink: 0;
    }
}

/* ========== Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-draft { background: #f1f5f9; color: #475569; }
.badge-published { background: var(--success-bg); color: #065f46; }
.badge-synced { background: #dbeafe; color: #1e40af; }
.badge-unsynced { background: var(--warning-bg); color: #92400e; }
.badge-error { background: var(--danger-bg); color: #991b1b; }
.badge-active { background: var(--success-bg); color: #065f46; }
.badge-inactive { background: #f1f5f9; color: #64748b; }

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--bg);
    color: var(--text-secondary);
}

.category-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========== Workflow Steps ========== */
.workflow-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.75rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.workflow-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    position: relative;
}

.workflow-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 1rem;
}

.workflow-step.done:not(:last-child)::after { background: var(--success); }

.step-circle {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--muted);
    flex-shrink: 0;
}

.workflow-step.done .step-circle { background: var(--success); border-color: var(--success); color: #fff; }
.workflow-step.current .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }

.step-label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }
.workflow-step.current .step-label { color: var(--text); font-weight: 600; }

/* ========== Filters Bar ========== */
.filters-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: center;
}

.filters-bar input,
.filters-bar select {
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--surface);
}

.filters-bar input { min-width: 220px; }
.filters-bar select { min-width: 150px; }

/* ========== Employee Portal ========== */
.emp-layout {
    --primary: #0d9488;
    --primary-light: #ccfbf1;
    --primary-hover: #0f766e;
    --primary-subtle: rgba(13, 148, 136, 0.08);
}

.emp-layout .sidebar-brand .logo-icon {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.emp-layout .nav-link.active {
    background: var(--primary-subtle);
    color: var(--primary);
    border-color: rgba(13, 148, 136, 0.15);
}

.emp-layout .sidebar-user .avatar {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.hero-banner {
    background: linear-gradient(135deg, #0d9488, #134e4a);
    color: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.75rem;
}

.hero-banner h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.hero-banner p { margin: 0; opacity: 0.85; font-size: 0.95rem; }

.category-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.category-pill {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
    text-decoration: none;
}

.category-pill:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.category-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.tag-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
}

.tag-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.tag-pill.active {
    background: #eef2ff;
    border-color: var(--primary);
    color: var(--primary);
}

.tag-pill-sm {
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
}

.tag-pill-clear {
    background: transparent;
    border-style: dashed;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.5rem 0;
}

.article-view-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.content-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: var(--text);
}

.article-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.article-view-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: -0.5rem 0 1rem;
}

.bookmark-btn.is-bookmarked {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.role-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.role-checkboxes .checkbox-label {
    margin: 0;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-archived { background: #f3f4f6; color: #4b5563; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.attachment-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.attachment-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.attachment-link {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.attachment-link:hover {
    background: var(--bg);
    text-decoration: none;
}

.attachment-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.attachment-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    margin-right: 0.5rem;
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-muted);
}

.attachment-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-media-gallery {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.article-media-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.article-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.article-media-item {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}

.article-media-image-link {
    display: block;
}

.article-media-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #111;
}

.article-media-video {
    display: block;
    width: 100%;
    max-height: 360px;
    background: #111;
}

.article-media-gallery-primary {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.attachment-canvas-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 360px;
    padding: 1.5rem;
    background: var(--surface-2, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.attachment-canvas-viewer[hidden] {
    display: none !important;
}

.attachment-canvas-item {
    margin: 0;
    width: 100%;
    text-align: center;
}

.attachment-canvas-image,
.attachment-canvas-video {
    display: block;
    width: 100%;
    max-height: 70vh;
    margin: 0 auto;
    object-fit: contain;
    background: #111;
    border-radius: 8px;
}

.attachment-canvas-caption {
    margin-top: 0.75rem;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
}

.article-media-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-chart-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
}

.bar-chart-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bar-chart-bar-wrap {
    background: var(--bg);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.bar-chart-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    min-width: 2px;
}

.bar-chart-value {
    font-size: 0.75rem;
    text-align: right;
    color: var(--text-secondary);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 1.35rem;
    display: block;
    color: inherit;
    transition: all var(--transition);
    text-decoration: none;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    border-color: var(--primary);
}

.article-card h3 { margin: 0 0 0.5rem; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.article-card .excerpt { color: var(--text-secondary); font-size: 0.85rem; margin: 0 0 0.75rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .meta { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

/* Article viewer */
.article-view {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

.article-view-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-view-header h1 { margin: 0 0 0.75rem; font-size: 1.75rem; font-weight: 700; line-height: 1.3; }

.article-view-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.article-view-body { padding: 2rem; }
.article-content { line-height: 1.8; font-size: 0.95rem; }
.article-content p { margin: 0 0 1rem; }
.article-content h2, .article-content h3 { margin: 1.5rem 0 0.75rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.article-content a { color: var(--primary); text-decoration: underline; }

.article-sidebar-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.article-view-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

@media (max-width: 900px) { .article-view-layout { grid-template-columns: 1fr; } }

/* ========== Misc ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h2 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.page-header .breadcrumb { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.actions-cell { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.empty-state .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    opacity: 0.7;
}

.empty-state h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    max-width: 320px;
    margin-inline: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.search-bar { margin-bottom: 1.25rem; }
.search-bar input {
    width: 100%;
    max-width: 400px;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background: var(--success); }
.status-dot.offline { background: var(--muted); }

.integration-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.integration-status.connected { background: var(--success-bg); color: #065f46; }
.integration-status.disconnected { background: var(--warning-bg); color: #92400e; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
}
.timeline li:last-child { border-bottom: none; }
.timeline .time { color: var(--muted); font-size: 0.75rem; white-space: nowrap; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }

.text-muted { color: var(--muted); }
.text-sm { font-size: 0.8rem; }
.mt-1 { margin-top: 0.5rem; }
.mb-0 { margin-bottom: 0; }

/* TinyMCE override */
.tox-tinymce { border-radius: var(--radius-sm) !important; border-color: var(--border) !important; }
.tox .tox-toolbar__primary { flex-wrap: wrap !important; }
.article-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.article-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-content th,
.article-content td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.article-content th { background: var(--surface); }
.article-content blockquote { border-left: 3px solid var(--border); margin: 1rem 0; padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }

/* Site branding */
.site-logo {
    height: 36px;
    max-width: 140px;
    object-fit: contain;
    border-radius: 4px;
}

.auth-logo {
    max-height: 56px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.landing-logo-img {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
}

.settings-brand-preview {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.logo-preview {
    height: 48px;
    max-width: 160px;
    object-fit: contain;
}

.logo-preview-placeholder {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.profile-picture-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-picture-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-picture-preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.setup-guide {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.setup-guide summary {
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.setup-guide summary::-webkit-details-marker {
    display: none;
}

.setup-guide summary::before {
    content: '▸ ';
    display: inline-block;
    transition: transform 0.15s;
}

.setup-guide[open] summary::before {
    transform: rotate(90deg);
}

.setup-guide-body {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    border-top: 1px solid var(--border);
}

.setup-guide-body h4 {
    margin: 1rem 0 0.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.setup-guide-body h4:first-child {
    margin-top: 0.75rem;
}

.setup-guide-body ol,
.setup-guide-body ul {
    margin: 0.25rem 0 0.5rem;
    padding-left: 1.25rem;
}

.setup-guide-body li {
    margin-bottom: 0.35rem;
}

.setup-guide-body a {
    color: var(--primary);
}

.setup-code {
    margin: 0.5rem 0;
    padding: 0.6rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.78rem;
    word-break: break-all;
    white-space: pre-wrap;
}

.sidebar-brand .site-logo {
    flex-shrink: 0;
}

.sidebar-brand span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search */
.search-hero-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 30;
}

.search-hero-input {
    flex: 1;
    min-width: 220px;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}

.search-hero-form select {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.topbar-search input {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    width: 200px;
    font-family: inherit;
}

.search-results {
    display: flex;
    flex-direction: column;
}

.search-result-item {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
    transition: background var(--transition);
}

.search-result-item:hover {
    background: var(--surface-hover);
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.search-result-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.search-result-snippet {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--muted);
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.search-result-item mark,
.article-card mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.1em;
    border-radius: 2px;
}

.search-autocomplete-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.topbar-search .search-autocomplete-wrap {
    width: 200px;
}

.topbar-search .search-autocomplete-wrap input {
    width: 100%;
}

.search-hero-form .search-autocomplete-wrap {
    flex: 1;
    min-width: 220px;
}

.filters-bar .search-autocomplete-wrap {
    flex: 1;
    max-width: 360px;
}

.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
}

.search-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

.search-autocomplete-item:last-child {
    border-bottom: none;
}

.search-autocomplete-item:hover,
.search-autocomplete-item.is-active {
    background: var(--surface-hover);
}

.search-autocomplete-icon {
    flex-shrink: 0;
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.search-autocomplete-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.search-autocomplete-label {
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-label mark {
    background: #fef08a;
    color: inherit;
    padding: 0;
}

.search-autocomplete-meta {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-autocomplete-meta-link {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
    text-underline-offset: 2px;
}

.search-autocomplete-meta-link:hover {
    color: var(--primary);
    text-decoration-color: currentColor;
}

.search-autocomplete-type {
    flex-shrink: 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    background: var(--bg);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.search-autocomplete-empty,
.search-autocomplete-loading {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

/* Google sign-in button */
.btn-google {
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    gap: 0.65rem;
}

.btn-google:hover {
    background: #f8f9fa;
    color: #3c4043;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Google embed (Docs, Sheets, Slides) */
.google-embed-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
}

.google-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.google-embed-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.google-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 62%;
    height: 0;
    background: #fff;
}

.google-embed-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.crm-content-fallback {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.crm-content-fallback summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

