:root {
    --brand: #991b1b;
    --brand-dark: #7f1d1d;
    --brand-light: #fef2f2;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --input-border: #d1d5db;
    --radius: 16px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .04);
    --purple: #9333ea;
    --green: #16a34a;
    --blue: #2563eb;
    --amber: #f59e0b;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    position: sticky; top: 0; z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; }
.brand-logo .icon { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
    color: #fff; font-weight: 500; padding: 9px 16px; border-radius: 8px;
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; font: inherit; cursor: pointer;
}
.nav-link:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.nav-link.active { background: var(--brand-dark); font-weight: 600; }
.nav-logout { margin: 0; }
.role-badge { font-size: 13px; font-weight: 600; padding: 4px 10px; margin-right: 8px; border-radius: 999px; background: rgba(255, 255, 255, .15); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
    .nav.open { display: flex; }
    .nav-link { width: 100%; }
    .role-badge { align-self: flex-start; margin: 0 0 6px; }
}

/* ---------- Page ---------- */
.page { flex: 1; padding-top: 36px; padding-bottom: 48px; }
.page-title { text-align: center; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 32px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding-top: 16px; padding-bottom: 24px; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.stat {
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 32px 20px; text-align: center; color: var(--text); display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
a.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.stat .icon { width: 44px; height: 44px; margin-bottom: 14px; }
.stat-title { font-weight: 700; font-size: 19px; }
.stat-value { color: var(--muted); margin-top: 4px; }
.c-purple { color: var(--purple); } .c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-amber { color: var(--amber); } .c-brand { color: var(--brand); }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 24px; }
.panel.narrow { max-width: 920px; margin-left: auto; margin-right: auto; }
.panel.tiny { max-width: 440px; margin-left: auto; margin-right: auto; }
.panel-title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding-bottom: 18px;
    border-bottom: 1px solid var(--border); font-size: 26px; font-weight: 700; letter-spacing: -.02em;
}
.panel-title .icon { color: var(--brand); width: 26px; height: 26px; }
.panel-subtitle { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
@media (max-width: 600px) { .panel { padding: 20px 16px; } }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; margin-bottom: 6px; color: #374151; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.field .error { font-size: 13px; color: #b91c1c; margin-top: 4px; }
.input, select.input {
    width: 100%; padding: 13px 14px; font: inherit; color: var(--text);
    border: 1px solid var(--input-border); border-radius: 8px; background: #fff;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(153, 27, 27, .15); }
.input[readonly], .input:disabled { background: #f9fafb; color: var(--muted); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 8px; border: 1px solid transparent;
    font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-block { width: 100%; }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--input-border); }
.btn-secondary:hover { background: #f9fafb; }
.btn-sm { padding: 7px 12px; font-size: 14px; }

/* ---------- Tables ---------- */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .input { width: auto; flex: 1 1 180px; padding: 10px 12px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.table .name { font-weight: 600; }
.table .sub { font-size: 13px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }

.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.badge-brand { background: var(--brand-light); color: var(--brand); }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f3f4f6; color: var(--muted); }

.pagination { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 16px; font-size: 14px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: #e0f2fe; color: #075985; }

/* ---------- Detail list ---------- */
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0; }
.details dt { font-size: 13px; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 640px) { .details { grid-template-columns: 1fr; } }

/* ---------- Login ---------- */
.login-wrap { display: grid; place-items: center; padding-top: 32px; }
.login-wrap .panel { width: 100%; }

/* ---------- Checkbox lists ---------- */
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; border: 1px solid var(--input-border); border-radius: 8px; padding: 12px 14px; max-height: 260px; overflow-y: auto; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.check input { accent-color: var(--brand); width: 16px; height: 16px; }

.btn-danger { background: #fff; color: #b91c1c; border-color: #fca5a5; }
.btn-danger:hover { background: #fef2f2; }
.inline-form { display: inline; margin: 0; }
.table td.actions { white-space: nowrap; }
.table td.actions .btn { margin: 2px 0; }

/* ---------- Confirmation dialog ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: grid; place-items: center; padding: 16px; z-index: 100; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 24px; max-width: 460px; width: 100%; }
.modal p { margin: 0 0 20px; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.table .sub.address { max-width: 300px; white-space: normal; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--brand-light); }
.avatar-initials { display: inline-grid; place-items: center; color: var(--brand); font-weight: 700; letter-spacing: .02em; }
.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.avatar-xl { width: 112px; height: 112px; font-size: 36px; }
.person { display: inline-flex; align-items: center; gap: 10px; }
.photo-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.photo-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 4px; }
.photo-form .input { width: auto; max-width: 100%; padding: 8px; }

/* ---------- Gives / Asks / Matches ---------- */
.progress { height: 10px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.locked { text-align: center; }
.locked .panel-title { justify-content: center; }
.match-list { display: grid; gap: 14px; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.match .name { font-weight: 700; }
.match-owner { border-left: 1px solid var(--border); padding-left: 20px; }
.match-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) {
    .match { grid-template-columns: 1fr; }
    .match-owner { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 14px; }
}

/* ---------- Matchmaking rules ---------- */
.rule-badge { font-weight: 700; }
.rule-1 { background: #dcfce7; color: #166534; }
.rule-2 { background: #dbeafe; color: #1e40af; }
.rule-3 { background: #f3f4f6; color: #4b5563; }
.rule-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.industry-matches { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 14px; }
.industry-matches summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.industry-matches .match-list { margin-top: 14px; }

/* Clickable stat cards: show they are links, and which one is selected */
a.stat { cursor: pointer; border: 2px solid transparent; }
a.stat:hover { border-color: #fecaca; }
a.stat.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(153, 27, 27, .12); }
a.stat .stat-value::after { content: ' →'; opacity: 0; transition: opacity .15s ease; }
a.stat:hover .stat-value::after { opacity: 1; }

/* ---------- Telebridge ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tab { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.checklist-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.checklist-title { margin: 0 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.week-picker { display: flex; align-items: center; gap: 8px; margin: 0; }
.week-picker .input { width: auto; padding: 8px 10px; }
.section-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.section-chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; }
.section-chip:hover { background: #fafafa; text-decoration: none; }
.task-list { list-style: none; margin: 0; padding: 0; counter-reset: task; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); counter-increment: task; }
.task:last-child { border-bottom: 0; }
.task::before { content: counter(task) '.'; min-width: 26px; color: var(--muted); font-weight: 600; }
.task-text { flex: 1; min-width: 0; }
.status-toggle { display: inline-flex; flex-shrink: 0; border: 1px solid var(--input-border); border-radius: 8px; overflow: hidden; }
.status-opt { cursor: pointer; }
.status-opt input { position: absolute; opacity: 0; }
.status-opt span { display: block; padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.status-opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }
.status-pending input:checked + span { background: #f3f4f6; color: var(--text); }
.status-done input:checked + span { background: #16a34a; color: #fff; }
.status-na input:checked + span { background: #6b7280; color: #fff; }
@media (max-width: 760px) {
    .section-chips { grid-template-columns: 1fr; }
    .task { flex-wrap: wrap; }
    .task-text { flex-basis: calc(100% - 38px); }
    .task .status-toggle, .task > .badge { margin-left: 38px; }
}
.task .sub { font-size: 13px; color: var(--muted); }

/* Telebridge: Post-Meeting Call */
.event-log { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--border); font-size: 14px; }
.event-log li + li { margin-top: 8px; }
.event-comment { margin-top: 2px; color: var(--muted); }
.goal-table .input { min-width: 96px; max-width: 150px; }
.agenda-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.agenda-item:first-of-type { padding-top: 0; }
.agenda-item:last-of-type { border-bottom: 0; }
.agenda-item .hint { margin: -2px 0 8px; }
.agenda-answer { margin-top: 6px; overflow-wrap: anywhere; }

/* Roles & Access */
.access-table th:not(:first-child), .access-table td:not(:first-child) { text-align: center; width: 90px; }
.access-table td .sub { font-weight: 400; }

/* Supplies */
.supply-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.supply-row:last-child { border-bottom: 0; }
.supply-row label { font-weight: 500; }
.supply-row .sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.supply-row .input { width: 96px; flex: none; }
.table .table-section td { background: #f9fafb; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* VP Committee Report */
.vp-table .input { min-width: 96px; }
.vp-table select.input { min-width: 84px; }
.vp-wide .input { min-width: 130px; }
.vp-status { max-width: 120px; margin-bottom: 8px; }
.time-range { display: flex; align-items: center; gap: 8px; }
.add-line { margin-top: 12px; }

/* Traffic lights */
.lamp { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .25); }
.lamp-green { background: radial-gradient(circle at 50% 28%, #bbf7d0 0, #22c55e 42%, #15803d 100%); }
.lamp-red { background: radial-gradient(circle at 50% 28%, #fecaca 0, #dc2626 42%, #991b1b 100%); }
.lamp-none { background: #e5e7eb; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
.light-summary { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 10px; }
.light-table thead th { background: var(--brand); color: #fff; }
.light-cell { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.light-overall { text-align: center; }

/* FundSheet */
.num { text-align: right; white-space: nowrap; }
.fund-stats .stat { padding: 24px 16px; }
.fund-stats .sub { margin-top: 8px; }
.fund-table .input-money { width: 110px; text-align: right; }
.fund-table td, .fund-table th { vertical-align: top; }
.pay-fields { display: flex; gap: 6px; }
.pay-fields .input[type="date"] { width: 150px; }
.pay-fields .input[name$="[reference]"] { width: 110px; }
.row-flag td { background: #fef2f2; }
.row-total td { font-weight: 700; background: #f9fafb; }
.row-closing td { border-top: 2px solid var(--border); }
.negative { color: #b91c1c; }
.flag-list { margin: 0; padding-left: 20px; }
.flag-list li { margin: 6px 0; color: #991b1b; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-fields .input { width: 160px; }
.subtabs { margin-top: -8px; }

/* ---------- Admin dashboard ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.dash-head p { margin: 4px 0 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; color: var(--text); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid #2a78d6; }
.kpi:nth-child(2) { border-top-color: #0ca30c; }
.kpi:nth-child(3) { border-top-color: #eb6834; }
.kpi:nth-child(4) { border-top-color: #6250d6; }
.kpi-alert { border-top-color: var(--brand); }
.kpi:hover { text-decoration: none; transform: translateY(-2px); }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.kpi-value small { font-size: 18px; color: var(--muted); font-weight: 600; }
.kpi-sub { font-size: 13px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dash-grid .panel { margin: 0; }
.dash-wide { grid-column: 1 / -1; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.chart-sub { margin: -8px 0 16px; font-size: 13px; }
.chart-foot { margin: 14px 0 0; }

/* Needs attention */
.todo { list-style: none; margin: 0; padding: 0; }
.todo-item { display: grid; grid-template-columns: 36px 1fr auto auto; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.todo-item:last-child { border-bottom: 0; }
.todo-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.todo-title { font-weight: 600; color: var(--text); }
.todo-count { font-size: 20px; font-weight: 700; min-width: 32px; text-align: right; }
.sev-critical .todo-icon { background: #fde8e8; color: #d03b3b; }
.sev-critical .sev-badge { background: #fde8e8; color: #9b1c1c; }
.sev-warning .todo-icon { background: #fef3c7; color: #b45309; }
.sev-warning .sev-badge { background: #fef3c7; color: #92400e; }
.sev-info .todo-icon { background: #e0edfb; color: #1c5cab; }
.sev-info .sev-badge { background: #e0edfb; color: #1c5cab; }

/* Status bars */
.status-rows { display: flex; flex-direction: column; gap: 14px; }
.status-name { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.status-bar { display: flex; gap: 2px; height: 14px; }
.status-seg { flex-basis: 0; border-radius: 4px; cursor: default; }
.seg-good { background: #0ca30c; }
.seg-critical { background: #d03b3b; }
.seg-none { background: #e5e7eb; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend .key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 48px; align-items: center; gap: 10px; font-size: 14px; }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-label a { color: var(--text); }
.hbar-track { height: 14px; display: block; outline-offset: 2px; }
.hbar-fill { display: block; height: 100%; min-width: 2px; background: #2a78d6; border-radius: 0 4px 4px 0; }
.hbar-track:hover .hbar-fill, .hbar-track:focus .hbar-fill { background: #1c5cab; }
.hbar-value { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* Column charts */
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: #eceef1; stroke-width: 1; }
.chart-axis { stroke: #d1d5db; stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 11px; }
.chart-value { fill: var(--text); font-size: 12px; font-weight: 600; }
.chart-bar { fill: #2a78d6; }
.chart-hit { fill: transparent; }
.chart-col { outline: none; }
.chart-col:hover .chart-bar, .chart-col:focus .chart-bar { fill: #1c5cab; }
.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: #111827; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); white-space: nowrap; }

/* Chapter health */
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 2px 8px 2px 5px; border-radius: 999px; margin: 2px 4px 2px 0; }
.chip .icon { width: 13px; height: 13px; }
.chip-ok { background: #dcfce7; color: #166534; }
.chip-missing { background: #fde8e8; color: #9b1c1c; }
.health-table td { vertical-align: middle; }
