/* =========================================================================
   VCF Ninja — Design System (Broadcom-inspired)
   Palette: red #CC092F, dark blue #1B365D, purple #6B2C91, light bg #F5F7FA
   ========================================================================= */

:root {
    --color-red: #cc092f;
    --color-red-dark: #a80728;
    --color-red-light: #f8d7da;
    --color-blue: #1b365d;
    --color-blue-dark: #12253f;
    --color-blue-light: #e9edf5;
    --color-purple: #6b2c91;
    --color-purple-light: #ede1f4;
    --color-green: #20a05e;
    --color-green-light: #d4edda;
    --color-orange: #e8a100;
    --color-orange-light: #fff3cd;
    --color-banner: #192933;
    --color-banner-dark: #0f1c25;
    --color-banner-accent: #38bdf8;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f2f4f7;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d0d5dd;
    --color-gray-400: #98a2b3;
    --color-gray-500: #667085;
    --color-gray-600: #475467;
    --color-gray-700: #344054;
    --color-gray-800: #1d2939;

    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #1d2939;
    --text-muted: #667085;
    --border: #e5e7eb;

    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(16,24,40,.05);
    --shadow-md: 0 4px 8px rgba(16,24,40,.08);
    --shadow-lg: 0 8px 24px rgba(16,24,40,.12);
    --topbar-height: 56px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-red); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--color-blue); font-weight: 700; margin: 0 0 8px 0; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px 0; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 12px;
       background: var(--color-gray-100); padding: 1px 5px; border-radius: 3px; color: var(--color-blue); }

/* -------------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------------- */
.topbar {
    height: var(--topbar-height);
    background: var(--color-banner);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.2), var(--shadow-md);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand {
    display: flex; align-items: center; gap: 10px; color: #fff !important;
    text-decoration: none !important; font-weight: 600;
}
.brand-logo {
    width: 38px; height: 38px; display: block;
}
.brand-text {
    font-size: 15px; letter-spacing: 0.2px;
    color: #fff;
}
.brand-text b { font-weight: 700; }
.topbar-sep { color: rgba(255,255,255,0.35); font-size: 13px; }
.topbar-project { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.9); }
.topbar-badge {
    background: rgba(255,255,255,0.12); color: #fff; padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 600;
}
.topbar-badge-alt { background: var(--color-banner-accent); color: var(--color-banner-dark); font-weight: 700; }
.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
    color: rgba(255,255,255,0.75); text-decoration: none; padding: 6px 12px;
    border-radius: var(--radius-sm); font-size: 13px; transition: background 0.15s, color 0.15s;
}
.topbar-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.topbar-nav a.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }
.topbar-nav .logout { color: rgba(255,255,255,0.55); font-size: 12px; }
.topbar-nav .nav-sep {
    width: 1px; height: 20px; background: rgba(255,255,255,0.15); margin: 0 8px;
}

/* -------------------------------------------------------------------------
   Main layout
   ------------------------------------------------------------------------- */
.main { padding: 24px; }

.page-header { margin-bottom: 24px; }
.page-subtitle { color: var(--text-muted); font-size: 14px; margin: 4px 0 0; }
.page-header-with-actions {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.page-header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.page-header-actions .btn span { font-size: 15px; line-height: 1; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 16px; }
.section-count { color: var(--text-muted); font-size: 13px; }

/* Collapsible create/import cards on Home */
.collapsible-form {
    margin-top: 20px;
    animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-x {
    background: none; border: none; font-size: 22px; line-height: 1;
    cursor: pointer; color: var(--text-muted); padding: 0 6px;
    margin-left: auto; font-family: inherit; font-weight: 400;
}
.close-x:hover { color: var(--color-red); }

/* Creator pill in projects table */
.creator-pill {
    display: inline-block; font-size: 11px; font-weight: 600;
    background: var(--color-gray-100); color: var(--color-gray-700);
    padding: 2px 8px; border-radius: 10px;
    font-variant-numeric: tabular-nums;
}
.tnum-th { text-align: right; }
.projects-table td.tnum { text-align: right; padding-right: 20px; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(16,24,40,0.55);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px;
    max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    animation: modalIn 0.2s ease-out;
}
.modal-card-wide { max-width: 780px; }
.modal-card-detail {
    max-width: 960px;
    max-height: 92vh;
}
.modal-card-detail .modal-body {
    padding: 0;
    background: #f8fafc;
}
/* Compact detail-wrap inside the modal (no extra top padding) */
.modal-card-detail .detail-wrap { padding: 16px 20px; }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    padding: 14px 20px; border-bottom: 2px solid var(--color-gray-100);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-footer {
    padding: 14px 0 0; margin-top: 8px;
    border-top: 1px solid var(--color-gray-100);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* Shortcut cheat sheet */
.shortcuts-body { padding: 20px 24px; }
.shortcut-columns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .shortcut-columns { grid-template-columns: 1fr; } }
.shortcut-section h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--color-blue); margin: 18px 0 6px;
    padding-bottom: 4px; border-bottom: 1px solid var(--color-gray-100);
}
.shortcut-section h3:first-child { margin-top: 0; }
.shortcut-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.shortcut-table td { padding: 5px 6px; vertical-align: middle; }
.shortcut-table td:first-child {
    width: 90px; white-space: nowrap;
}
kbd {
    display: inline-block;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-300);
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px; font-weight: 600;
    color: var(--color-gray-800);
    line-height: 1.4;
    min-width: 20px;
    text-align: center;
}
.mini-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
    background: var(--color-green); color: #fff;
    border-radius: 4px; font-weight: 700; font-size: 11px;
}
.shortcut-note {
    font-size: 11px; color: var(--text-muted); font-style: italic;
    margin: 6px 0 0;
}
.shortcut-footer {
    margin-top: 20px; padding: 10px 12px;
    background: var(--color-gray-50); border-radius: 4px;
    font-size: 12px; color: var(--color-gray-700);
}
.shortcut-btn {
    background: #fff; color: var(--color-blue);
    border: 1px solid var(--color-gray-300);
    font-size: 12px;
}
.shortcut-btn:hover {
    background: var(--color-blue-light);
    border-color: var(--color-blue);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.grid-2 > .card { margin-bottom: 0; height: 100%; display: flex; flex-direction: column; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .row-2 { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.card:last-child { margin-bottom: 0; }
.card-title {
    font-size: 15px; font-weight: 700; color: var(--color-blue);
    margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
    padding-bottom: 8px; border-bottom: 2px solid var(--color-gray-100);
}
.card-title > .close-x { margin-left: auto; }
.card-desc { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 6px; font-weight: 700; font-size: 16px;
}
.card-icon-red { background: var(--color-red-light); color: var(--color-red); }
.card-icon-purple { background: var(--color-purple-light); color: var(--color-purple); }
.card-icon-orange { background: var(--color-orange-light); color: var(--color-orange); }
.card-action:hover { box-shadow: var(--shadow-md); }

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.form-grid label > span { font-weight: 600; color: var(--color-gray-700); }
.form-grid label > small { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; }

input[type="text"], input[type="password"], input[type="email"],
input[type="file"], textarea, select {
    width: 100%; padding: 8px 10px;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    font-size: 13px; font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(27,54,93,0.08);
}
textarea { resize: vertical; min-height: 60px; }
.file-upload input[type="file"] {
    background: var(--color-gray-50); padding: 8px 12px; cursor: pointer;
}

.radio-group {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 14px; background: var(--color-gray-50);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: 4px;
}
.radio-group label {
    flex-direction: row !important; align-items: center; gap: 8px !important;
    font-size: 13px; cursor: pointer; font-weight: 500 !important;
    color: var(--color-gray-700) !important;
}
.radio-group input[type="radio"] {
    width: auto; margin: 0; cursor: pointer;
}
.radio-group label small {
    display: block; margin-top: 2px; font-size: 11px !important;
    color: var(--text-muted); font-weight: 400 !important;
}

.checkbox-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 16px;
    max-height: 400px; overflow-y: auto; padding: 8px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--color-gray-50);
}
.check-line { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; font-size: 12px; }
.check-line input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

/* Optimized component-exclusion UI (configurator) */
.exclusion-toolbar {
    display: flex; gap: 6px; align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: var(--color-gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.component-search {
    flex: 1; padding: 5px 8px; font-size: 12px;
    border: 1px solid var(--color-gray-300); border-radius: 4px;
    background: #fff;
}
.exclusion-toolbar .link-btn { white-space: nowrap; margin: 0 4px; }

.component-exclusion-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 12px;
    max-height: 400px; overflow-y: auto;
    padding: 8px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: #fff;
}
@media (max-width: 900px) {
    .component-exclusion-list { grid-template-columns: 1fr; }
}
.component-exclusion-line {
    display: grid;
    grid-template-columns: 16px 1fr auto;
    gap: 8px; align-items: center;
    padding: 4px 6px; font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.1s;
}
.component-exclusion-line:hover { background: var(--color-gray-50); }
.component-exclusion-line input[type="checkbox"] { margin: 0; cursor: pointer; }
.component-exclusion-line:has(input:checked) {
    background: var(--color-orange-light);
}
.component-exclusion-line .cel-name {
    font-weight: 500; color: var(--color-gray-800);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.component-exclusion-line .cel-count {
    color: var(--text-muted); font-size: 10px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.component-exclusion-line:has(input:checked) .cel-name {
    text-decoration: line-through;
    text-decoration-color: rgba(0,0,0,0.35);
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-sm); font-size: 13px;
    font-weight: 600; border: 1px solid transparent; cursor: pointer;
    transition: all 0.15s; text-decoration: none !important; font-family: inherit;
    line-height: 1.2;
}
.btn:hover { text-decoration: none !important; }
.btn-primary { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.btn-primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); color: #fff; }
.btn-secondary { background: var(--color-blue); color: #fff; border-color: var(--color-blue); }
.btn-secondary:hover { background: var(--color-blue-dark); color: #fff; }
.btn-danger { background: #fff; color: var(--color-red); border-color: var(--color-red-light); }
.btn-danger:hover { background: var(--color-red-light); color: var(--color-red-dark); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn, .btn:focus { outline: none; }

.link-btn {
    background: none; border: none; color: var(--color-blue); cursor: pointer;
    font-size: 12px; padding: 2px 4px; text-decoration: underline; margin-right: 6px;
    font-family: inherit;
}
.link-btn:hover { color: var(--color-red); }

/* -------------------------------------------------------------------------
   Flash messages
   ------------------------------------------------------------------------- */
.flash-container { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash {
    padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-left: 4px solid;
}
.flash-success { background: var(--color-green-light); border-color: var(--color-green); color: #155724; }
.flash-error { background: var(--color-red-light); border-color: var(--color-red); color: #7a0a1e; }
.flash-warning { background: var(--color-orange-light); border-color: var(--color-orange); color: #856404; }
.flash-close {
    background: none; border: none; font-size: 20px; cursor: pointer; color: inherit;
    padding: 0 4px; line-height: 1;
}

/* -------------------------------------------------------------------------
   Login page
   ------------------------------------------------------------------------- */
.login-body {
    background: linear-gradient(135deg, var(--color-banner) 0%, var(--color-banner-dark) 100%);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: #fff; padding: 32px; border-radius: 12px; box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 24px; }
.brand-logo-big { width: 64px; height: 64px; margin: 0 auto 8px; display: block; }
.login-header h1 { font-size: 24px; margin-bottom: 6px; }
.login-sub { color: var(--text-muted); font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.login-form label span { font-weight: 600; color: var(--color-gray-700); }
.login-hint {
    margin-top: 16px; padding: 10px; background: var(--color-blue-light);
    border-radius: var(--radius-sm); font-size: 12px; color: var(--color-blue);
    text-align: center;
}

/* -------------------------------------------------------------------------
   Projects table (home)
   ------------------------------------------------------------------------- */
.projects-table-wrap {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
}
.projects-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.projects-table th {
    background: var(--color-gray-50); text-align: left; padding: 10px 14px;
    font-weight: 700; color: var(--color-gray-700); border-bottom: 1px solid var(--border);
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px;
}
.projects-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-gray-100); }
.projects-table tr:last-child td { border-bottom: none; }
.projects-table tr:hover td { background: var(--color-gray-50); }
.project-link { font-weight: 700; color: var(--color-blue); }
.text-muted { color: var(--text-muted); }
.tnum { font-variant-numeric: tabular-nums; }
.row-actions { text-align: right; display: flex; gap: 6px; justify-content: flex-end; }

.badge {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 700; background: var(--color-blue-light); color: var(--color-blue);
}
.badge-alt { background: var(--color-purple-light); color: var(--color-purple); }
.badge-warning { background: var(--color-orange-light); color: #856404; }

.empty-state {
    background: var(--bg-card); border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 40px; text-align: center; color: var(--text-muted);
}

/* -------------------------------------------------------------------------
   Dashboard KPIs
   ------------------------------------------------------------------------- */
.kpi-row {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
@media (max-width: 900px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 20px; box-shadow: var(--shadow); border-top: 3px solid var(--color-gray-300);
}
.kpi-primary { border-top-color: var(--color-red); }
.kpi-warning { border-top-color: var(--color-orange); }
.kpi-danger { border-top-color: var(--color-red); }
.kpi-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); font-weight: 700; margin-bottom: 6px;
}
.kpi-value { font-size: 32px; font-weight: 700; color: var(--color-blue); line-height: 1; }
.kpi-sub { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

.progress-bar {
    height: 8px; background: var(--color-gray-100); border-radius: 4px; overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--color-red), var(--color-purple));
    border-radius: 4px; transition: width 0.3s;
}

.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li {
    display: flex; align-items: center; padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-100); font-size: 13px;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list .stat-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px;
    flex-shrink: 0;
}
.stat-list .stat-icon { width: 20px; margin-right: 8px; text-align: center; font-size: 14px; }
.stat-list .stat-name { flex: 1; color: var(--color-gray-700); }
.stat-list .stat-value { font-weight: 700; color: var(--color-blue); }
.stat-list-info li { padding: 6px 0; }

/* Dashboard layout */
.dashboard-project-card {
    padding: 14px 20px;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.dashboard-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px 24px;
}
.dashboard-project-item {}
.dashboard-project-label {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-muted); font-weight: 700; margin-bottom: 2px;
}
.dashboard-project-value {
    font-size: 14px; font-weight: 600; color: var(--color-banner);
    line-height: 1.3;
}

/* Pie chart */
.pie-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: center;
}
@media (max-width: 640px) {
    .pie-wrap { grid-template-columns: 1fr; justify-items: center; }
}
.pie-svg { width: 200px; height: 200px; display: block; }
.pie-svg path { transition: opacity 0.15s; cursor: help; }
.pie-svg path:hover { opacity: 0.82; }
.pie-center-total {
    font-size: 24px; font-weight: 700; fill: var(--color-banner);
    font-family: -apple-system, sans-serif;
}
.pie-center-label {
    font-size: 10px; font-weight: 600; fill: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    font-family: -apple-system, sans-serif;
}
.pie-legend {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.pie-legend li {
    display: grid;
    grid-template-columns: 14px 1fr auto auto;
    gap: 8px; align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid var(--color-gray-100);
}
.pie-legend li:last-child { border-bottom: none; }
.pie-legend-dot {
    width: 14px; height: 14px; border-radius: 3px;
}
.pie-legend-label { color: var(--color-gray-700); font-weight: 500; }
.pie-legend-count {
    font-weight: 700; color: var(--color-banner);
    font-variant-numeric: tabular-nums;
    min-width: 40px; text-align: right;
}
.pie-legend-pct {
    color: var(--text-muted); font-size: 11px;
    font-variant-numeric: tabular-nums;
    min-width: 40px; text-align: right;
}

.component-progress-list {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 8px 16px; box-shadow: var(--shadow);
}

/* Grid of component progress rows — 2 columns on wide screens */
.component-progress-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 32px;
}
@media (max-width: 900px) {
    .component-progress-grid { grid-template-columns: 1fr; }
}
.component-progress {
    display: flex; align-items: center; gap: 14px;
    padding: 5px 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 12px;
    line-height: 1.2;
}
.component-progress:last-child { border-bottom: none; }
.component-progress .component-name {
    font-weight: 600; color: var(--color-gray-700);
    min-width: 220px; max-width: 280px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex-shrink: 0;
}
.component-progress .component-name em {
    color: var(--text-muted); font-weight: 400; font-style: italic;
}
.component-progress.component-excluded .component-name { color: var(--text-muted); }
.component-progress.component-excluded .progress-fill {
    background: var(--color-gray-300);
}
.component-progress .progress-bar {
    flex: 1; height: 6px; margin: 0;
}
.component-progress .component-pct {
    color: var(--text-muted); font-size: 11px;
    min-width: 100px; text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Decisions view — layout with side panel
   ------------------------------------------------------------------------- */
.decisions-layout {
    display: grid; grid-template-columns: 280px 1fr; gap: 20px;
    height: calc(100vh - var(--topbar-height) - 48px);
    max-width: none; margin: -12px 0 -24px;
}
.decisions-layout.side-collapsed { grid-template-columns: 40px 1fr; }
.decisions-side {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 14px; box-shadow: var(--shadow); overflow-y: auto;
    height: 100%; scrollbar-width: thin;
}
.decisions-layout.side-collapsed .decisions-side > *:not(.side-header) { display: none; }
.decisions-layout.side-collapsed .side-header { padding: 0; }
.decisions-layout.side-collapsed .side-header > span { display: none; }
.decisions-layout.side-collapsed .side-collapse-btn { transform: rotate(180deg); }

.side-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 8px; border-bottom: 2px solid var(--color-gray-100);
    margin-bottom: 12px; font-weight: 700; color: var(--color-blue); font-size: 13px;
}
.side-collapse-btn {
    background: var(--color-gray-100); border: none; width: 24px; height: 24px;
    border-radius: 4px; cursor: pointer; color: var(--color-blue); font-weight: 700;
    transition: transform 0.2s;
}
.side-collapse-btn:hover { background: var(--color-blue-light); }
.side-section { margin-bottom: 14px; }
.side-label {
    display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); font-weight: 700; margin-bottom: 6px;
}
.side-input {
    width: 100%; padding: 6px 8px; font-size: 12px;
    border: 1px solid var(--color-gray-300); border-radius: 4px;
}
.side-check, .side-check-list label {
    display: flex; align-items: center; gap: 6px; font-size: 12px;
    padding: 3px 0; cursor: pointer;
}
.side-check input[type="checkbox"] { margin: 0; }
.side-note { font-size: 11px; color: var(--text-muted); margin: 0 0 6px; }
.excluded-list { padding-left: 16px; margin: 4px 0; font-size: 11px; }
.excluded-list li { color: var(--color-gray-700); }
.side-link { display: inline-block; font-size: 11px; margin-top: 4px; }
.side-check-list {
    max-height: 220px; overflow-y: auto; padding-right: 4px;
    scrollbar-width: thin;
}

/* Decisions main area */
.decisions-main {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0; box-shadow: var(--shadow); overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
}
.decisions-toolbar {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    background: var(--color-gray-50);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; }
.toolbar-sep { width: 1px; height: 20px; background: var(--border); }
.toolbar-hint {
    font-size: 11px; color: var(--text-muted); font-style: italic;
    padding: 4px 6px; cursor: help;
}
.counter { color: var(--text-muted); font-size: 12px; }

.bulk-panel {
    display: flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 4px 8px; font-size: 12px;
}
.bulk-panel.disabled { opacity: 0.5; pointer-events: none; }
.bulk-info { font-weight: 600; color: var(--color-blue); }
.bulk-panel select { padding: 3px 6px; font-size: 12px; }

.decisions-table-container { flex: 1; overflow: auto; scrollbar-width: thin; }

/* Detail modal (popup from list) */
.detail-modal-overlay {
    /* Reuses .modal-overlay base */
    padding: 30px;
}
.modal-card-detail {
    max-width: 1100px;
    width: 92vw;
    max-height: 90vh;
    display: flex; flex-direction: column;
}
.detail-modal-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-gray-100);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.detail-modal-nav {
    display: flex; align-items: center; gap: 14px;
    flex: 1;
}
.detail-modal-nav .btn { min-width: 90px; }
.detail-modal-nav .btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.detail-modal-nav .detail-position {
    flex: 1;
    text-align: center;
    font-size: 14px; color: var(--color-gray-700);
}
.detail-modal-body { padding: 20px 24px; overflow-y: auto; }
.detail-position strong { font-size: 18px; color: var(--color-banner); }
.detail-position-hint {
    display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px;
}

/* Excluded component flag in sidebar filter list */
.side-check-list .is-excluded {
    color: var(--text-muted);
}
.side-check-list .is-excluded .fc-count { opacity: 0.6; }
.excluded-flag {
    display: inline-block; margin-left: 4px;
    color: var(--color-orange); font-weight: 700; font-size: 10px;
    text-decoration: none;
}
.excluded-flag-inline {
    color: var(--color-orange); font-weight: 700; font-size: 10px;
}
.side-note-small {
    font-size: 10px; color: var(--text-muted); margin: 2px 0 4px;
    line-height: 1.35;
}
.side-check-list label {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    align-items: center; gap: 6px;
    font-size: 12px; padding: 3px 0; cursor: pointer;
}
.side-check-list label input[type="checkbox"] { margin: 0; }
.side-check-list .fc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-check-list .fc-count { color: var(--color-gray-400); font-size: 11px; font-variant-numeric: tabular-nums; }

.detail-header {
    padding: 16px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
}
.detail-header-left {
    display: flex; align-items: center; gap: 10px;
}
.detail-header-left .type-badge {
    padding: 3px 10px; font-size: 11px;
}
.detail-id {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 15px; font-weight: 700;
    color: var(--color-banner);
}
.detail-header-right { font-size: 12px; }
.detail-breadcrumb { color: var(--color-gray-700); }
.detail-crumb-label { color: var(--text-muted); }
.detail-crumb-sep { margin: 0 6px; color: var(--color-gray-400); }

.detail-body { padding: 20px; }
.detail-section { margin-bottom: 20px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section h3 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px;
    color: var(--color-banner); margin: 0 0 8px;
    padding-bottom: 4px; border-bottom: 1px solid var(--color-gray-100);
    display: flex; align-items: center; gap: 8px;
}
.section-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-blue-light); color: var(--color-blue);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.section-icon-purple { background: var(--color-purple-light); color: var(--color-purple); }
.detail-decision-text {
    font-size: 15px; line-height: 1.5; color: var(--color-gray-800); margin: 0;
    font-weight: 500;
}
.detail-body-text {
    font-size: 13px; line-height: 1.55; color: var(--color-gray-700); margin: 0;
    white-space: pre-wrap;
}
.detail-section-justif h3 span:not(.section-icon) { color: var(--color-blue); }
.detail-section-implic h3 span:not(.section-icon) { color: var(--color-purple); }

.detail-row-inputs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
    margin-top: 24px;
}
@media (max-width: 800px) {
    .detail-row-inputs { grid-template-columns: 1fr; }
}
.detail-status-group, .detail-task-group {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.quick-status-btn, .quick-task-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    background: #fff; color: var(--color-gray-600);
    border: 1.5px solid var(--color-gray-300); border-radius: 6px;
    cursor: pointer; transition: all 0.15s;
    font-family: inherit;
}
.quick-status-btn:hover, .quick-task-btn:hover {
    background: var(--color-gray-50); border-color: var(--color-gray-500);
}
.quick-status-btn.active { color: #fff; }
.quick-status-btn.active.status-compliant { background: var(--color-green); border-color: var(--color-green); }
.quick-status-btn.active.status-non-compliant { background: var(--color-red); border-color: var(--color-red); }
.quick-status-btn.active.status-excluded { background: var(--color-gray-500); border-color: var(--color-gray-500); }
.quick-status-btn.active.status-requires-correction { background: var(--color-orange); border-color: var(--color-orange); }
.quick-status-btn.active:not([class*="status-"]) {
    background: var(--color-gray-200); color: var(--color-gray-800); border-color: var(--color-gray-400);
}
.quick-status-btn.active kbd, .quick-task-btn.active kbd {
    background: rgba(255,255,255,0.25); color: #fff; border-color: rgba(255,255,255,0.4);
}
.quick-task-btn.active.task-warning-active { background: var(--color-orange); color: #fff; border-color: var(--color-orange); }
.quick-task-btn.active.task-favorite-active { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.quick-task-btn.active:not([class*="task-"]) {
    background: var(--color-gray-200); color: var(--color-gray-800); border-color: var(--color-gray-400);
}

.detail-notes-input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--color-gray-300); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 13px; resize: vertical;
    min-height: 80px;
}

/* Grouped decisions table */
.dec-group-component {
    background: var(--color-banner); color: #fff; padding: 8px 12px;
    font-weight: 700; font-size: 13px; position: sticky; top: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
}
.dec-group-component:hover { background: var(--color-banner-dark); }
.dec-group-component .expand-toggle { font-size: 10px; margin-right: 6px; }
.dec-group-component .comp-count { font-weight: 400; opacity: 0.75; font-size: 12px; }

.dec-group-category {
    background: var(--color-banner); color: #fff;
    padding: 6px 12px 6px 32px; font-weight: 500; font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    opacity: 0.92;
}
.dec-group-category:hover { background: #24333d; opacity: 1; }
.dec-group-category .expand-toggle { font-size: 9px; margin-right: 4px; opacity: 0.85; }
.dec-group-category .comp-count { font-weight: 400; opacity: 0.75; font-size: 11px; }

.group-right {
    display: inline-flex; align-items: center; gap: 10px;
}

/* Group ✓ button */
.quick-compliant-group {
    width: 22px; height: 22px;
    padding: 0; margin: 0;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; line-height: 1;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.05s;
    font-family: inherit;
    border: 1.5px solid;
}
.quick-compliant-group:active { transform: scale(0.9); }
/* Component header (dark blue bg) */
.quick-compliant-group-comp {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.4);
}
.quick-compliant-group-comp:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: #fff;
}
.quick-compliant-group-comp[data-active="true"] {
    background: var(--color-green);
    border-color: var(--color-green);
    color: #fff;
}
.quick-compliant-group-comp[data-active="true"]:hover {
    background: #1a8a4f; border-color: #1a8a4f;
}
/* Category header (dark slate bg) — treat similar to component */
.quick-compliant-group-cat {
    background: transparent;
    color: rgba(255,255,255,0.75);
    border-color: rgba(255,255,255,0.35);
}
.quick-compliant-group-cat:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}
.quick-compliant-group-cat[data-active="true"] {
    background: var(--color-green);
    border-color: var(--color-green);
    color: #fff;
}
.quick-compliant-group-cat[data-active="true"]:hover {
    background: #1a8a4f; border-color: #1a8a4f;
}

.dec-row {
    display: grid;
    grid-template-columns: 26px 30px 210px 1fr 178px 286px;
    gap: 0;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 12px;
    transition: background 0.1s;
}
.dec-row:hover { background: var(--color-gray-50); }
.dec-row.selected { background: rgba(27,54,93,0.06); }
.dec-row.focused {
    box-shadow: inset 3px 0 0 var(--color-blue);
    background: #f5f8fd;
}
.dec-row.focused.selected {
    box-shadow: inset 3px 0 0 var(--color-red);
    background: rgba(27,54,93,0.08);
}
.dec-row > div { padding: 5px 8px; }
.dec-row .cell-select { text-align: center; padding: 5px 4px; }
.dec-row .cell-status-icon {
    text-align: center; font-size: 14px; padding: 5px 4px; cursor: pointer;
    user-select: none;
}
.task-icon { display: inline-block; }
.task-warning { color: var(--color-orange); }
.task-favorite { color: var(--color-red); }
.dec-row .cell-id {
    font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px;
    color: var(--color-blue); font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}
.dec-row .cell-id .id-text {
    display: inline;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-blue);
}
.dec-row .cell-id .id-text:hover {
    text-decoration: underline;
    color: var(--color-red);
}
.dec-row .cell-decision {
    line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}

.type-badge {
    display: inline-block;
    padding: 1px 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 3px;
    line-height: 1.4;
    text-transform: uppercase;
    flex-shrink: 0;
    font-family: -apple-system, sans-serif;
}
.type-rcmd { background: #dbeafe; color: #1e40af; }
.type-reqd { background: var(--color-purple-light); color: var(--color-purple); }
.type-misc { background: var(--color-gray-200); color: var(--color-gray-600); }
.dec-row .cell-decision { line-height: 1.4; }
.dec-row .cell-decision .dec-text { color: var(--color-gray-800); }
.dec-row .cell-decision .dec-text-clickable {
    cursor: pointer;
    transition: color 0.12s;
    border-radius: 2px;
    padding: 1px 3px;
    margin: -1px -3px;
}
.dec-row .cell-decision .dec-text-clickable:hover {
    color: var(--color-banner);
    background: rgba(56,189,248,0.10);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.dec-row .cell-decision .info-icons {
    display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: middle;
}
.info-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%; font-size: 10px; font-weight: 700;
    background: var(--color-blue-light); color: var(--color-blue);
    cursor: help; position: relative;
}
.info-icon-implication { background: var(--color-purple-light); color: var(--color-purple); }
.info-icon:hover .info-tooltip { display: block; }
.info-tooltip {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 4px;
    background: #1d2939; color: #fff; padding: 10px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 400; width: 340px; z-index: 100;
    box-shadow: var(--shadow-lg); white-space: pre-wrap; line-height: 1.5;
    text-align: left;
}
.info-tooltip strong { color: #fef3c7; }

.dec-row select.status-select {
    padding: 3px 6px; font-size: 11px; border-radius: 4px;
    border: 1px solid var(--color-gray-300);
    flex: 1; min-width: 0;
}
.dec-row .cell-status-wrap {
    display: flex; align-items: center; gap: 6px;
}
.dec-row .quick-compliant {
    width: 24px; height: 24px;
    padding: 0; margin: 0;
    border: 1.5px solid var(--color-gray-300);
    background: #fff;
    color: var(--color-gray-400);
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; line-height: 1;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.05s;
    font-family: inherit;
}
.dec-row .quick-compliant:hover {
    border-color: var(--color-green);
    color: var(--color-green);
    background: #e7f5ec;
}
.dec-row .quick-compliant:active { transform: scale(0.92); }
.dec-row .quick-compliant[data-active="true"] {
    background: #e7f5ec;
    border-color: #b7e0c8;
    color: #16794a;
    box-shadow: none;
}
.dec-row .quick-compliant[data-active="true"]:hover {
    background: #d4edda; border-color: #a3d3b6;
}
.dec-row .quick-compliant:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 1px;
}
.dec-row textarea.notes-input {
    width: 100%; min-height: 24px; max-height: 100px;
    padding: 3px 6px; font-size: 11px; resize: vertical;
    border: 1px solid var(--color-gray-300); border-radius: 4px;
    font-family: inherit;
}

/* Status pills */
.status-pill {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 10px; font-weight: 700; text-transform: none;
}
.status-compliant { background: var(--color-green-light); color: #0f5d33; }
.status-non-compliant { background: var(--color-red-light); color: #7a0a1e; }
.status-excluded { background: var(--color-gray-200); color: var(--color-gray-700); }
.status-requires-correction { background: var(--color-orange-light); color: #856404; }
.status-empty { background: #fff; color: var(--text-muted); border: 1px dashed var(--color-gray-300); }

.dec-row select.status-select.status-compliant { background: var(--color-green-light); color: #0f5d33; font-weight: 700; }
.dec-row select.status-select.status-non-compliant { background: var(--color-red-light); color: #7a0a1e; font-weight: 700; }
.dec-row select.status-select.status-excluded { background: var(--color-gray-200); color: var(--color-gray-700); }
.dec-row select.status-select.status-requires-correction { background: var(--color-orange-light); color: #856404; font-weight: 700; }

/* Requires-correction table on configurator */
.req-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.req-table th {
    background: var(--color-gray-50); text-align: left; padding: 8px 12px;
    font-weight: 700; color: var(--color-gray-700); border-bottom: 1px solid var(--border);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px;
}
.req-table td { padding: 8px 12px; border-bottom: 1px solid var(--color-gray-100); }
.req-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* -------------------------------------------------------------------------
   Export actions
   ------------------------------------------------------------------------- */
.export-actions { display: flex; flex-direction: column; gap: 8px; }

/* -------------------------------------------------------------------------
   Docs
   ------------------------------------------------------------------------- */
.doc-content {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px; box-shadow: var(--shadow); max-width: 900px; margin: 0 auto;
    line-height: 1.65;
}
.markdown-body h1 { font-size: 28px; margin-top: 0; }
.markdown-body h2 { font-size: 22px; margin-top: 32px; padding-bottom: 6px; border-bottom: 2px solid var(--color-gray-100); }
.markdown-body h3 { font-size: 17px; margin-top: 24px; }
.markdown-body code { background: var(--color-gray-100); padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.markdown-body pre {
    background: var(--color-gray-800); color: #f1f5f9; padding: 12px 16px;
    border-radius: 6px; overflow-x: auto; font-size: 12px;
}
.markdown-body pre code { background: none; color: inherit; padding: 0; }
.markdown-body table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.markdown-body th, .markdown-body td {
    border: 1px solid var(--border); padding: 6px 10px; text-align: left; font-size: 13px;
}
.markdown-body th { background: var(--color-gray-50); font-weight: 700; }
.markdown-body blockquote {
    border-left: 3px solid var(--color-red); padding: 4px 12px;
    background: var(--color-gray-50); margin: 10px 0; color: var(--color-gray-700);
}
.markdown-body ul, .markdown-body ol { padding-left: 24px; }
.markdown-body li { margin-bottom: 4px; }

/* -------------------------------------------------------------------------
   Error page
   ------------------------------------------------------------------------- */
.error-page {
    text-align: center; padding: 60px 20px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    margin: 60px auto; max-width: 500px; box-shadow: var(--shadow);
}
.error-code { font-size: 72px; font-weight: 700; color: var(--color-red); line-height: 1; }
.error-msg { font-size: 18px; color: var(--color-gray-700); margin: 12px 0 24px; }

/* User list */
.user-list { list-style: none; padding: 0; margin: 0; }
.user-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid var(--color-gray-100); font-size: 13px;
}
.user-list li:last-child { border-bottom: none; }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }
