:root {
    --blue-50:#EFF6FF; --blue-100:#DBEAFE; --blue-200:#BFDBFE; --blue-500:#3B82F6;
    --blue-600:#2563EB; --blue-700:#1E3A5F; --blue-800:#1E2A4A; --blue-900:#0F172A;
    --yellow-50:#FFFBEB; --yellow-100:#FEF3C7; --yellow-400:#FACC15;
    --yellow-500:#F5B800; --amber-100:#FEF3C7; --amber-500:#F59E0B; --amber-700:#B45309;
    --green-100:#DCFCE7; --green-500:#22C55E; --green-700:#15803D;
    --red-100:#FEE2E2; --red-500:#EF4444; --red-700:#B91C1C;
    --gray-50:#F8FAFC; --gray-100:#F1F5F9; --gray-200:#E2E8F0; --gray-300:#CBD5E1;
    --gray-400:#94A3B8; --gray-500:#64748B; --gray-600:#475569; --gray-700:#334155;
    --gray-800:#1E293B; --gray-900:#0F172A;
    --font-display:'Plus Jakarta Sans',sans-serif; --font-body:'Plus Jakarta Sans',sans-serif;
    --font-serif:'Fraunces',serif; --font-mono:'JetBrains Mono',monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: 14px; color: var(--gray-800); background: var(--gray-100); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Layout */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue-700); color: #fff; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-brand .mark { width: 36px; height: 36px; background: var(--yellow-500); color: var(--blue-700); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.sidebar-brand .name { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; }
.sidebar-brand small { display: block; font-weight: 400; opacity: 0.7; font-size: 11px; }
.sidebar-section { padding: 18px 20px 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.5; }
.sidebar-item { display: block; padding: 9px 20px; font-size: 13px; opacity: 0.85; cursor: pointer; transition: all 0.1s; }
.sidebar-item:hover { background: rgba(255,255,255,0.05); opacity: 1; }
.sidebar-item.active { background: rgba(245,184,0,0.1); border-left: 3px solid var(--yellow-500); padding-left: 17px; opacity: 1; color: var(--yellow-500); }
.sidebar-item:link, .sidebar-item:visited { color: #fff; }
.sidebar-item.active:link, .sidebar-item.active:visited { color: var(--yellow-500); }
.sidebar-footer { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; font-size: 11px; opacity: 0.5; border-top: 1px solid rgba(255,255,255,0.1); }
.main { display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.topbar-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-right: 6px; color: var(--blue-700); align-items: center; border-radius: 8px; }
.nav-toggle:hover { background: var(--gray-100); }
.nav-backdrop { display: none; }
.term-pill { background: var(--blue-50); color: var(--blue-700); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gray-200); color: var(--gray-700); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.content { padding: 24px 28px; max-width: 100%; }
.content-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.content-header h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.content-header p { font-size: 13px; color: var(--gray-500); }

/* Cards */
.card { background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(15,23,42,0.05); border: 1px solid var(--gray-100); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.card-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.card-body { padding: 20px; }
.col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.col-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* Stat cards */
.stat-card { background: #fff; border-radius: 10px; padding: 18px; border: 1px solid var(--gray-100); }
.stat-card.success { background: linear-gradient(135deg, var(--green-100), #fff); border-color: var(--green-100); }
.stat-card.warning { background: linear-gradient(135deg, var(--amber-100), #fff); border-color: var(--amber-100); }
.stat-card.accent { background: linear-gradient(135deg, var(--blue-50), #fff); border-color: var(--blue-100); }
.stat-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 6px; }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--gray-900); line-height: 1.1; }
.stat-trend { font-size: 11px; color: var(--green-700); margin-top: 4px; }

/* Forms */
.field { margin-bottom: 14px; }
.label { display: block; font-size: 12px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; }
.input, .select, .textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200); border-radius: 7px; font-size: 13px; transition: border-color 0.1s; background: #fff; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.textarea { resize: vertical; min-height: 80px; }
.help { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: none; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.1s; text-decoration: none; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); }
.btn-yellow { background: var(--yellow-500); color: var(--blue-700); font-weight: 600; }
.btn-yellow:hover { background: var(--yellow-400); }
.btn-outline { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: var(--red-700); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th { background: var(--gray-50); padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); font-weight: 600; border-bottom: 1px solid var(--gray-200); }
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.table tbody tr:hover { background: var(--gray-50); }
.table-actions { white-space: nowrap; text-align: right; }
.icon-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--gray-500); cursor: pointer; }
.icon-btn:hover { background: var(--gray-100); color: var(--blue-600); }

/* Pills & badges */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; }
.pill-blue { background: var(--blue-50); color: var(--blue-700); }
.pill-green { background: var(--green-100); color: var(--green-700); }
.pill-yellow { background: var(--yellow-100); color: var(--amber-700); }
.pill-amber { background: var(--amber-100); color: var(--amber-700); }
.pill-red { background: var(--red-100); color: var(--red-700); }
.pill-gray { background: var(--gray-100); color: var(--gray-600); }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.status-dot.active { background: var(--green-500); }
.status-dot.inactive { background: var(--gray-400); }
.status-dot.pending { background: var(--amber-500); }

/* Action toolbar */
.action-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.action-bar .divider { width: 1px; height: 22px; background: var(--gray-200); margin: 0 4px; }
.action-bar .action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--gray-200); background: #fff; border-radius: 7px; font-size: 12px; color: var(--gray-700); cursor: pointer; font-weight: 500; }
.action-bar .action-btn:hover { border-color: var(--blue-600); color: var(--blue-600); background: var(--blue-50); }
.action-bar .action-btn.primary { background: var(--yellow-500); color: var(--blue-700); border-color: var(--yellow-500); font-weight: 600; }
.action-bar .action-btn.danger:hover { border-color: var(--red-500); color: var(--red-500); background: var(--red-100); }
.row-action-bar { display: inline-flex; gap: 2px; }
.row-action-bar .icon-btn-sm { width: 26px; height: 26px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 13px; cursor: pointer; background: transparent; border: 0; }
.row-action-bar .icon-btn-sm:hover { background: var(--gray-100); color: var(--blue-600); }
.row-action-bar .icon-btn-sm.danger:hover { color: var(--red-500); background: var(--red-100); }

/* Filters */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 180px; }

/* Alerts */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.alert-success { background: var(--green-100); color: var(--green-700); }
.alert-warning { background: var(--amber-100); color: var(--amber-700); }
.alert-danger { background: var(--red-100); color: var(--red-700); }

/* Auth pages */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { background: linear-gradient(135deg, var(--blue-700), var(--blue-900)); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.auth-logo .mark { width: 44px; height: 44px; background: var(--yellow-500); color: var(--blue-700); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; }
.auth-logo small { display: block; font-size: 11px; opacity: 0.7; font-weight: 400; }
.auth-side h2 { font-family: var(--font-serif); font-size: 36px; font-weight: 500; margin-bottom: 14px; line-height: 1.1; }
.auth-side h2 em { color: var(--yellow-500); font-style: italic; }
.auth-side .lead { font-size: 14px; opacity: 0.9; line-height: 1.6; }
.auth-features { list-style: none; margin-top: 24px; }
.auth-features li { padding: 6px 0; font-size: 13px; opacity: 0.85; }
.auth-features li::before { content: '✓ '; color: var(--yellow-500); margin-right: 8px; }
.auth-foot { font-size: 11px; opacity: 0.6; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 60px; background: #fff; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form h3 { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.auth-form .sub { font-size: 13px; color: var(--gray-500); margin-bottom: 24px; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--gray-200); margin-bottom: 18px; }
.tab { padding: 10px 18px; font-size: 13px; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; }
.tab.active { color: var(--blue-700); border-bottom-color: var(--blue-700); font-weight: 600; }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--gray-900); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(20px); transition: all 0.2s; pointer-events: none; z-index: 1000; }
.toast.show { opacity: 1; transform: translateY(0); }

/* Steps */
.steps { display: flex; gap: 0; align-items: center; margin: 20px 0; padding: 14px; background: #fff; border-radius: 10px; border: 1px solid var(--gray-100); }
.step { display: flex; align-items: center; gap: 10px; flex: 1; padding: 0 12px; opacity: 0.5; }
.step.active { opacity: 1; }
.step.done { opacity: 1; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-600); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.step.active .step-num { background: var(--blue-700); color: #fff; }
.step.done .step-num { background: var(--green-500); color: #fff; }
.step-label { font-size: 13px; font-weight: 600; }
.step-desc { font-size: 11px; color: var(--gray-500); }

/* Grades */
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; text-align: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--gray-500, #64748b); }
/* single-letter classes (grade-A) */
.grade-A { background: var(--green-500); }
.grade-B { background: var(--blue-500); }
.grade-C { background: var(--amber-500); }
.grade-D { background: var(--amber-700); }
.grade-E { background: var(--red-500); }
.grade-F { background: var(--red-700); }
/* WAEC two-char grades (grade-A1, grade-B2, ... grade-F9) so colours apply and text stays visible */
.grade-A1, .grade-A2 { background: var(--green-500); }
.grade-B2, .grade-B3 { background: var(--blue-500); }
.grade-C4, .grade-C5, .grade-C6 { background: var(--amber-500); }
.grade-D7 { background: var(--amber-700); }
.grade-E8 { background: var(--red-500); }
.grade-F9 { background: var(--red-700); }

/* Form footer */
.form-footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--gray-100); }

/* Channel badges */
.channel-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 500; }
.channel-whatsapp { background: #DCFCE7; color: #15803D; }
.channel-sms { background: var(--blue-50); color: var(--blue-700); }
.channel-icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.channel-icon.whatsapp { background: #25D366; }
.channel-icon.sms { background: var(--blue-600); }

/* Stars */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--yellow-500); font-size: 18px; cursor: pointer; }
.star.empty { color: var(--gray-300); }

/* Public banner */
.public-banner { background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); color: #fff; padding: 12px 24px; text-align: center; font-size: 12px; }

/* Permission grid */
.perm-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 0; border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; font-size: 12px; }
.perm-grid > div { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); border-right: 1px solid var(--gray-100); }
.perm-grid > div:nth-child(6n) { border-right: none; }
.perm-grid .perm-head { background: var(--gray-50); font-weight: 600; font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-600); text-align: center; }
.perm-grid .perm-row-label { font-weight: 500; background: var(--gray-50); }
.perm-grid .perm-cell { text-align: center; color: var(--gray-400); }
.perm-grid .perm-cell.allowed { color: var(--green-700); }

/* Dropzone */
.dropzone { border: 2px dashed var(--gray-300); border-radius: 10px; padding: 40px; text-align: center; background: var(--gray-50); }
.dropzone .icon { font-size: 32px; margin-bottom: 8px; color: var(--gray-400); }
.dropzone .title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.dropzone .sub { font-size: 12px; color: var(--gray-500); }

/* Text */
.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--gray-500); }

@media (max-width: 768px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; top: 0; left: 0; width: 260px; height: 100vh; z-index: 200; transform: translateX(-100%); transition: transform .25s ease; }
    body.nav-open .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.4); }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 150; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
    body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-toggle { display: inline-flex; }
    .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { padding: 40px 30px; }
    .auth-form-wrap { padding: 40px 30px; }
}

/* ════════════════════════════════════════════════════════════════
   Pager + Listing improvements (added in batch 1)
   ════════════════════════════════════════════════════════════════ */
.pager {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; border-top: 1px solid var(--gray-100);
    background: var(--gray-50); font-size: 12px;
}
.pager-info { color: var(--gray-600); }
.pager-info strong { color: var(--blue-700); }
.pager-controls { display: flex; align-items: center; gap: 4px; }
.pager-nav { display: inline-flex; align-items: center; gap: 4px; }
.pager-page { padding: 4px 12px; color: var(--gray-600); font-weight: 500; }
.pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid var(--gray-200); background: white;
    color: var(--blue-700); text-decoration: none; font-weight: 600;
    transition: all .15s ease;
}
.pager-btn:hover { background: var(--blue-50); border-color: var(--blue-600); }
.pager-btn.disabled { color: var(--gray-300); border-color: var(--gray-100); cursor: not-allowed; pointer-events: none; }

/* Checkbox rows */
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.checkbox-row input[type=checkbox] { margin-top: 3px; cursor: pointer; }
.checkbox-row label { cursor: pointer; flex: 1; }
.checkbox-row label strong { display: block; font-weight: 500; font-size: 13px; }
.checkbox-row label .help { display: block; font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* Toast close button */
.alert { position: relative; }
.alert-close {
    position: absolute; top: 10px; right: 12px; background: none; border: none;
    font-size: 18px; cursor: pointer; color: inherit; opacity: .6; padding: 0;
}
.alert-close:hover { opacity: 1; }

@@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Listing scroll container — vertical AND horizontal scroll, sticky header */
.listing-scroll {
    max-height: calc(100vh - 320px);
    overflow: auto;            /* both axes */
    scroll-behavior: smooth;
    border-radius: 6px;
}
.listing-scroll table { min-width: 100%; }
.listing-scroll table thead {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.listing-scroll table thead th { background: #fff; }   /* override striping under sticky header */

/* Bulk action bar (when multi-select rows are checked) */
.bulk-bar { animation: bulkSlide 0.18s ease; }
@keyframes bulkSlide { from { transform: translateY(-6px); opacity: 0.7; } to { transform: translateY(0); opacity: 1; } }

/* Back button placement — header rows already use flex */
.back-btn { white-space: nowrap; }

/* Save & Close button styling — same as primary but muted */
.btn.save-close { background: #fff; color: var(--blue-700); border: 1px solid var(--blue-700); }
.btn.save-close:hover { background: var(--blue-50); }

/* Per-row export/print buttons */
.row-action-bar { display: inline-flex; gap: 4px; }
.icon-btn-sm {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 4px;
    border: 1px solid var(--gray-200); background: white; color: var(--gray-700);
    cursor: pointer; font-size: 13px; text-decoration: none;
    transition: all .15s ease;
}
.icon-btn-sm:hover { background: var(--blue-50); border-color: var(--blue-600); color: var(--blue-700); }

/* ── Modal overlay & dialog ──────────────────────────────────────
   Used by Add/Edit modals across config screens (grading bands,
   categories, school types, levels, clubs, etc). The overlay must
   be position:fixed with high z-index so it floats above the
   sidebar / topbar / sticky toasts. JS sets display:flex to show
   the modal; default state is display:none from inline style. */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: modalIn .15s ease;
}
@keyframes modalIn {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
}
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-body   { padding: 18px 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--gray-200); }

/* PHASE F3 s6n - inline SVG icon helpers (replace emojis) */
.sidebar-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; margin-right: 4px; }
.sidebar-item { display: flex; align-items: center; }
.sidebar-item.active .sidebar-ico { color: var(--yellow-500); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.13em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-pill { display: inline-flex; align-items: center; gap: 5px; }
.method-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #41617a; }
.method-tag .icon { color: #6f93a9; font-size: 14px; }

/* ─────────────────────────────────────────────────────────────
   Results + bulk-upload redesign (round sB1). Additive, namespaced.
   ───────────────────────────────────────────────────────────── */
.action-btn.navy { background:#1e3a5f; color:#fff; border-color:#1e3a5f; }
.action-btn.navy:hover { background:#17304d; border-color:#17304d; }

.bulk-tabs { display:inline-flex; background:var(--gray-100); border:1px solid var(--gray-200); border-radius:8px; padding:3px; gap:2px; margin-bottom:16px; flex-wrap:wrap; }
.bulk-tabs a { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:6px; font-size:12px; font-weight:600; color:var(--gray-600); text-decoration:none; white-space:nowrap; transition:.12s; }
.bulk-tabs a:hover { color:var(--blue-700); }
.bulk-tabs a.on { background:#1e3a5f; color:#fff; box-shadow:0 1px 2px rgba(15,23,42,.14); }
.bulk-tabs svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:1.8; }

.step-head { display:flex; align-items:center; gap:11px; }
.step-badge { width:26px; height:26px; border-radius:50%; background:var(--yellow-500); color:var(--blue-900); display:grid; place-items:center; font-weight:700; font-size:13px; flex:none; }
.step-head .st { font-family:var(--font-display); font-weight:600; font-size:14px; }
.step-head .st small { display:block; font-weight:500; font-size:11.5px; color:var(--gray-500); margin-top:1px; }

.btn-navy { background:#1e3a5f; color:#fff; }
.btn-navy:hover { background:#17304d; }

.dz-ic { width:40px; height:40px; margin:0 auto 8px; border-radius:10px; background:#fff; border:1px solid var(--gray-200); display:grid; place-items:center; color:var(--blue-600); }
.dz-ic svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; }

.filepick { display:flex; flex-direction:column; align-items:center; gap:7px; margin-top:12px; }
.filepick-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border:1px solid var(--gray-300); border-radius:7px; background:#fff; color:var(--gray-700); font-size:12.5px; font-weight:600; cursor:pointer; transition:.12s; }
.filepick-btn:hover { border-color:var(--blue-600); color:var(--blue-600); }
.filepick .filename { font-size:12px; color:var(--gray-500); }
.btn svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.9; }

/* == Results/bulk redesign — unified tabs + balanced steps (round s82) == */
.bulk-tabs button { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border:none; background:transparent; cursor:pointer; font-family:inherit; border-radius:6px; font-size:12px; font-weight:600; color:var(--gray-600); white-space:nowrap; transition:.12s; }
.bulk-tabs button:hover { color:var(--blue-700); }
.bulk-tabs button.on { background:#1e3a5f; color:#fff; box-shadow:0 1px 2px rgba(15,23,42,.14); }
.bulk-tabpane { display:none; }
.bulk-tabpane.on { display:block; }
.bulk-step { display:flex; flex-direction:column; }
.bulk-step .card-body { flex:1; display:flex; flex-direction:column; }
.bulk-step .card-body > form { flex:1; display:flex; flex-direction:column; }
.bulk-step .btn-block { margin-top:auto; }
.bulk-step .dropzone { padding:18px 16px; }
.bulk-step .dropzone .dz-ic { width:34px; height:34px; margin-bottom:6px; }
.bulk-step .dropzone .dz-ic svg { width:17px; height:17px; }
.bulk-step .dropzone .title { font-size:13px; }

/* == s83: move bulk-upload tabs to the right == */
.bulk-tabs { display:flex; width:fit-content; margin-left:auto; margin-right:0; }

/* == s84: breadcrumb + tabs on one row == */
.bulk-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.bulk-head > p { margin:0; }
.bulk-head .bulk-tabs { margin:0; }

/* == s87: comment presets == */
.preset { padding:10px 14px; border-bottom:1px solid var(--gray-100); cursor:pointer; font-size:13px; color:var(--gray-700); transition:.1s; }
.preset:hover { background:var(--blue-50); color:var(--blue-700); }
.preset em { font-style:italic; }
