/* AES Modelling Schedule Generator — shares look & feel with the Site Builder. */
:root {
  --bg: #f2f2f2;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e0e0e0;
  --border-light: #eeeeee;
  --accent: #009B8D;
  --accent-light: #e0f5f3;
  --accent-hover: #007a6e;
  --brand-green: #8DC63F;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #c0392b;
  --red-bg: #fee2e2;
  --blue: #0077B6;
  --blue-bg: #e0f0fb;
  --pass: #16a34a;
  --pass-bg: #dcfce7;
  --radius: 8px;
  --radius-sm: 5px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; }

.topbar {
  background: #fff;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
  border-bottom: 3px solid var(--brand-green);
}
.topbar .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.topbar .brand img { height: 40px; width: auto; display: block; }
.topbar .tagline {
  font-size: 12px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-left: 4px;
}
.topbar .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.status-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--border-light);
  color: var(--muted);
}
.status-pill.ready { background: var(--accent-light); color: var(--accent); }
.status-pill.busy { background: var(--amber-bg); color: var(--amber); }
.status-pill.error { background: var(--red-bg); color: var(--red); }
.status-pill.build-pill {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0;
  cursor: help;
  background: transparent;
  color: #999;
  border: 1px solid var(--border);
}

main { padding: 24px; max-width: 1200px; margin: 0 auto; }
h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  border-top: 3px solid var(--brand-green);
}

.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > * { flex: 1; min-width: 200px; }

label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
input[type="text"], input[type="number"], select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: var(--text);
}
input:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 16px;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btn-secondary:hover:not(:disabled) { background: var(--accent-light); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-lg { font-size: 14px; padding: 11px 22px; }
.btn-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.drop-zone.active {
  border-color: var(--accent);
  background: var(--accent-light);
}
.drop-zone-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.drop-zone-sub { font-size: 13px; color: var(--muted); }

.uploaded-files {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uploaded-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.uploaded-file .name { flex: 1; font-family: 'IBM Plex Mono', monospace; }
.uploaded-file .meta { color: var(--muted); }
.uploaded-file .pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}
.stat .num { font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-top: 6px; }

/* EPC band horizontal stacked bar — sits below the summary tiles. */
.epc-bar-wrap {
  grid-column: 1 / -1;   /* span full width of the summary grid */
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.epc-bar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.epc-bar {
  display: flex;
  width: 100%;
  height: 28px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.epc-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  gap: 4px;
}
.epc-seg .epc-count {
  font-weight: 500;
  font-size: 11px;
  opacity: 0.85;
}
.epc-seg.epc-unknown {
  background: repeating-linear-gradient(45deg, #ddd, #ddd 6px, #eee 6px, #eee 12px);
  color: #555;
}

.msg {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 12px;
}
.msg.info { background: var(--blue-bg); color: var(--blue); }
.msg.warn { background: var(--amber-bg); color: var(--amber); }
.msg.error { background: var(--red-bg); color: var(--red); }
.msg.ok { background: var(--pass-bg); color: var(--pass); }

.warnings-list {
  margin-top: 8px;
  font-size: 12px;
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  max-height: 180px;
  overflow-y: auto;
}
.warnings-list div { padding: 2px 0; }

.progress {
  font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  font-size: 11px;
  background: #1a1a1a;
  color: #e5e5e5;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  margin-top: 12px;
}

.hidden { display: none !important; }
.small-muted { font-size: 11px; color: var(--muted); }
.spacer { flex: 1; }

/* ============================================================================
   AUDIT-TOOL-SPECIFIC ADDITIONS (preserves base from Modelling Schedule Generator)
============================================================================ */

/* Pre-flight question blocks */
.q-block { margin-bottom: 14px; }
.q-block .question { font-size: 14px; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.choice-group { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-group input[type="radio"] { display: none; }
.choice-group label.chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  margin: 0;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  transition: all 0.15s;
}
.choice-group input[type="radio"]:checked + label.chip {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.choice-group label.chip:hover { border-color: var(--accent); }

/* Site upload context tags */
.upload-context {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.ctx-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Findings — severity bar + finding cards */
.summary-bar { display: flex; gap: 12px; margin: 16px 0; }
.summary-pill {
  flex: 1;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
}
.summary-pill .count { display: block; font-size: 22px; font-weight: 700; margin-bottom: 2px; letter-spacing: 0; }
.summary-pill.block { color: var(--red); }
.summary-pill.warn { color: var(--amber); }
.summary-pill.info { color: var(--blue); }
.summary-pill.manual { color: #6c3483; }

.findings-section { margin-top: 8px; }
.finding {
  border-left: 3px solid var(--border);
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.finding.severity-block { border-left-color: var(--red); background: var(--red-bg); }
.finding.severity-warn { border-left-color: var(--amber); background: var(--amber-bg); }
.finding.severity-info { border-left-color: var(--blue); background: var(--blue-bg); }
.finding.severity-manual { border-left-color: #6c3483; background: #f3eafa; }

.finding-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.severity-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.severity-tag.block { background: var(--red); color: #fff; }
.severity-tag.warn { background: var(--amber); color: #fff; }
.severity-tag.info { background: var(--blue); color: #fff; }
.severity-tag.manual { background: #6c3483; color: #fff; }
.rule-id { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted); }
.plot-tag { font-size: 11px; color: var(--muted); font-weight: 500; }
.finding-msg { font-size: 13px; color: var(--text); }
.finding-source { font-size: 10px; color: var(--muted); margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }
.cat-tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  font-size: 9px; padding: 1px 6px; border-radius: 8px; margin-left: 6px;
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.empty-state { text-align: center; color: var(--muted); padding: 24px; font-style: italic; }

/* Verdict UI */
.verdict-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(0,0,0,0.1);
}
.verdict-label { font-size: 11px; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.verdict-btn {
  font-size: 12px; padding: 4px 12px;
  border: 1px solid #888; background: #fff; color: var(--text);
  border-radius: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.verdict-btn:hover { background: #e8e8e8; border-color: #555; }
.verdict-btn.active-true_positive  { background: var(--pass); border-color: var(--pass); color: #fff; }
.verdict-btn.active-false_positive { background: var(--red); border-color: var(--red); color: #fff; }
.verdict-btn.active-parked         { background: var(--amber); border-color: var(--amber); color: #fff; }
.verdict-note {
  flex: 1; min-width: 180px; font-size: 12px; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit;
}
.verdict-expand {
  font-size: 11px; color: var(--muted); background: transparent; border: none;
  cursor: pointer; text-decoration: underline; padding: 0 4px;
}
.per-plot-overrides { margin-top: 8px; padding: 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.03); }
.per-plot-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.per-plot-row .plot-label { min-width: 70px; font-weight: 600; }

/* Outcome controls block */
.outcome-block {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 16px;
}
.outcome-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead-email-row {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12px;
}
.lead-email-row label { display: inline; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }
.lead-email-row input { padding: 6px 10px; margin-left: 8px; min-width: 240px; display: inline-block; width: auto; }
.saved-note { font-size: 11px; color: var(--pass); font-weight: 600; }

/* Email body textarea */
textarea#emailBody {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff; line-height: 1.5;
  resize: vertical; min-height: 380px; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
}
textarea#emailBody:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-light); }

/* Footer */
footer {
  max-width: 1200px; margin: 32px auto 24px; padding: 16px 24px 0;
  border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); text-align: center;
}

/* ---------- Planning tool: HT table + class chips ---------- */
.ht-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ht-table th, .ht-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ht-table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--muted); background: var(--bg);
}
.ht-row.ignored { opacity: 0.4; }
.ht-row.error td { color: var(--red); }
.error-msg { font-family: 'IBM Plex Mono', monospace; font-size: 11px; }
.pdfname { font-family: 'IBM Plex Mono', monospace; font-size: 12px; word-break: break-all; }
.badge {
  display: inline-block; font-size: 9px; padding: 1px 6px; border-radius: 8px;
  background: var(--accent-light); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
  margin-left: 4px; vertical-align: middle;
}
.class-chip {
  display: inline-block; padding: 4px 10px; margin-right: 4px;
  border: 1px solid var(--border); border-radius: 14px;
  background: #fff; font-size: 11px; cursor: pointer; color: var(--text);
  font-family: inherit; font-weight: 500;
  transition: all 0.15s;
}
.class-chip:hover  { border-color: var(--accent); }
.class-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mult-input {
  width: 60px; padding: 4px 6px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-align: center; font-family: inherit;
}
.btn-sm { font-size: 11px; padding: 4px 10px; }


.class-badge {
  display: inline-block; padding: 3px 10px; border-radius: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.class-badge.class-gas     { background: #fff3cd; color: #856404; }
.class-badge.class-hp      { background: #d4edda; color: #155724; }
.class-badge.class-elec_hp { background: #d1ecf1; color: #0c5460; }


.totals-section { margin-bottom: 14px; }
.totals-section h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
}
.stat.highlight {
  background: var(--accent);
}
.stat.highlight .num { color: #fff; }
.stat.highlight .lbl { color: rgba(255,255,255,0.85); }


/* Planning tool: wider main + no-wrap niceties + table footer */
body.planning-tool main { max-width: 1320px; }
.ht-table .class-badge { white-space: nowrap; }
.ht-table .pdfname { word-break: keep-all; white-space: nowrap; }
.ht-table { table-layout: auto; }
.ht-table th, .ht-table td { padding: 8px 8px; }
.ht-total-row td {
  border-top: 2px solid var(--border);
  border-bottom: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
  padding-top: 12px;
}
.ht-total-row td strong { color: var(--text); font-size: 14px; }

.progress-wrap { margin-top: 14px; }
.progress-wrap progress {
  width: 100%; height: 14px;
  border: 1px solid var(--border); border-radius: 7px; overflow: hidden;
}
.progress-wrap progress::-webkit-progress-bar { background: var(--bg); }
.progress-wrap progress::-webkit-progress-value { background: var(--accent); }
.progress-wrap progress::-moz-progress-bar      { background: var(--accent); }
#progressLabel { margin-top: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; }


.ht-table th.sortable {
  cursor: pointer; user-select: none;
}
.ht-table th.sortable:hover { color: var(--accent); }
.sort-arrow {
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.4;
}
.sort-arrow.active { opacity: 1; color: var(--accent); }


/* ===== Compact in-card subtotal strip (low prominence) ===== */
.card-subtotal {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--muted);
}
.card-subtotal-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 10px;
  color: var(--accent);
}
.card-subtotal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  flex: 1;
}
.card-subtotal-stats .stat-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.card-subtotal-stats .stat-inline-num {
  font-weight: 600;
  color: #1a1a1a;
  font-family: 'IBM Plex Mono', monospace;
}
.card-subtotal-stats .stat-inline-lbl {
  color: var(--muted);
}

/* ===== Combined total — small unit-count chips next to title ===== */
.combined-counts {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 8px;
}
.combined-counts .count-chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 9px;
  margin-left: 6px;
  font-family: 'IBM Plex Mono', monospace;
}
.combined-counts .count-chip strong { color: var(--accent); font-weight: 600; }

.methodology-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--muted);
}
.methodology-note strong { color: #1a1a1a; }
.methodology-note em { font-style: normal; font-weight: 600; color: var(--accent); }

/* Small drop zone variant (for BRUKL upload inside non-resi card) */
.drop-zone.drop-zone-sm {
  padding: 18px 16px;
  font-size: 12px;
}
.drop-zone-sm .drop-zone-title { font-size: 13px; margin-bottom: 2px; }
.drop-zone-sm .drop-zone-sub   { font-size: 11px; }


/* ===== Instructions side panel ===== */
.topbar-btn {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.15s ease;
}
.topbar-btn:hover { background: var(--accent-light); }

.help-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.help-scrim:not([hidden]) { opacity: 1; }

.help-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 92vw);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.help-panel:not([hidden]) { transform: translateX(0); }

.help-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--accent);
  color: #fff;
}
.help-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.help-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  opacity: 0.9;
}
.help-close:hover { opacity: 1; }

.help-body {
  padding: 18px 22px 32px;
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.help-body h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.help-body h3:first-child { margin-top: 0; }
.help-body p, .help-body ul, .help-body ol { margin: 0 0 10px 0; }
.help-body ul, .help-body ol { padding-left: 20px; }
.help-body li { margin-bottom: 6px; }
.help-body code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.help-body em { font-style: normal; font-weight: 600; color: var(--accent); }
.help-callout {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 4px;
  margin: 8px 0 12px 0 !important;
}


.help-tip {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  padding: 8px 12px;
  background: #fff8e1;
  border-left: 3px solid #f5a623;
  border-radius: 4px;
  font-size: 12px;
  color: #664400;
}
.help-tip em { color: inherit; font-weight: 600; font-style: italic; }


/* ===== Charts ===== */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 14px;
}
.chart-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.chart-card h4 {
  margin: 0 0 10px 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.chart-card canvas {
  flex: 1;
  max-height: 220px;
}
