.wh-admin-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; }

/* ---------- Login gate ---------- */
.wh-login-wrap { max-width: 420px; margin: 60px auto; }
.wh-login-card { padding: 36px 34px; text-align: center; }
.wh-login-card .wh-icon-badge { margin: 0 auto 16px; width: 52px; height: 52px; }
.wh-login-card .wh-icon-badge svg { width: 24px; height: 24px; }
.wh-login-card h1 { font-size: 21px; margin: 0 0 8px; color: var(--wh-green-900); }
.wh-login-card p { margin: 0 0 22px; color: var(--wh-ink-500); font-size: 13.5px; }
.wh-login-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--wh-radius-md);
  border: 1.5px solid var(--wh-border);
  font-size: 14.5px;
  margin-bottom: 14px;
  font-family: inherit;
}
.wh-login-card .wh-btn { width: 100%; justify-content: center; padding: 12px; }
.wh-login-error { color: var(--wh-red-500); font-size: 13px; margin-top: 10px; display: none; font-weight: 600; }

/* ---------- Dashboard top bar ---------- */
.wh-dash-bar {
  background: var(--wh-green-900);
  color: var(--wh-cream-100);
  border-radius: var(--wh-radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.wh-dash-bar-left { display: flex; align-items: center; gap: 14px; }
.wh-dash-bar-left .wh-icon-badge { background: rgba(255,255,255,0.12); color: var(--wh-cream-100); }
.wh-dash-bar-title { font-weight: 700; font-size: 14px; letter-spacing: 0.6px; }
.wh-dash-bar-sub { font-size: 12.5px; color: #cfd6c5; margin-top: 2px; }
.wh-dash-bar-actions { display: flex; align-items: center; gap: 10px; }
.wh-pill-select {
  background: var(--wh-cream-000);
  color: var(--wh-ink-900);
  border: none;
  border-radius: var(--wh-radius-pill);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Stat tiles ---------- */
.wh-stat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 900px) { .wh-stat-row { grid-template-columns: repeat(2, 1fr); } }
.wh-stat-tile { padding: 18px 16px; text-align: center; }
.wh-stat-tile .wh-icon-badge { margin: 0 auto 10px; }
.wh-stat-tile .value { font-size: 26px; font-weight: 700; color: var(--wh-green-900); line-height: 1; }
.wh-stat-tile .label { font-size: 12px; color: var(--wh-ink-500); margin-top: 6px; line-height: 1.35; }
.wh-stat-tile .sub { font-size: 11px; color: var(--wh-ink-300); margin-top: 4px; }
.wh-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--wh-radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.wh-badge.iterate { background: var(--wh-tan-300); color: var(--wh-green-900); }
.wh-badge.strong { background: var(--wh-green-800); color: #fff; }
.wh-badge.needswork { background: #f1d9d4; color: var(--wh-red-500); }

/* ---------- Two-column grid: chart + quota summary ---------- */
.wh-grid-2 { display: grid; grid-template-columns: 2.1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .wh-grid-2 { grid-template-columns: 1fr; } }
.wh-panel { padding: 20px 22px; }
.wh-panel h3 { margin: 0 0 14px; font-size: 15px; color: var(--wh-green-900); }
.wh-chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--wh-ink-500); margin-bottom: 10px; }
.wh-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wh-legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.wh-panel-sub { font-size: 12.5px; color: var(--wh-ink-500); margin: -6px 0 0; line-height: 1.5; }

.wh-quota-seg { margin-top: 12px; }
.wh-quota-seg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--wh-ink-700); margin-bottom: 5px; }
.wh-quota-seg-head .count { font-weight: 700; color: var(--wh-green-800); white-space: nowrap; }
.wh-quota-sub-head {
  margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--wh-ink-300);
}

.wh-quota-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.wh-quota-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: var(--wh-ink-700); }
.wh-quota-list li svg { width: 15px; height: 15px; flex-shrink: 0; }
.wh-quota-list li.ok svg { color: var(--wh-green-700); }
.wh-quota-list li.pending svg { color: var(--wh-tan-500); }
.wh-quota-list li .gap { margin-left: auto; font-size: 11.5px; color: var(--wh-ink-500); white-space: nowrap; }

.wh-quota-note {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--wh-border-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.wh-quota-note strong { font-size: 12.5px; color: var(--wh-green-900); }
.wh-quota-note span { font-size: 11.5px; color: var(--wh-ink-300); }

/* ---------- Key validation metrics row ---------- */
.wh-metric-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .wh-metric-row { grid-template-columns: repeat(2, 1fr); } }
.wh-metric-tile { padding: 16px; display: flex; align-items: center; gap: 12px; }
.wh-metric-tile .value { font-size: 19px; font-weight: 700; color: var(--wh-green-900); }
.wh-metric-tile .label { font-size: 11.5px; color: var(--wh-ink-500); line-height: 1.3; }

/* ---------- Bar lists (top features / barriers) ---------- */
.wh-barlist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .wh-barlist-row { grid-template-columns: 1fr; } }
.wh-barlist-item { margin-bottom: 12px; }
.wh-barlist-item:last-child { margin-bottom: 0; }
.wh-barlist-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--wh-ink-700); margin-bottom: 5px; }
.wh-barlist-label .pct { font-weight: 700; color: var(--wh-green-800); }
.wh-barlist-track { height: 9px; background: var(--wh-cream-300); border-radius: var(--wh-radius-pill); overflow: hidden; }
.wh-barlist-fill { height: 100%; background: var(--wh-green-700); border-radius: var(--wh-radius-pill); }

/* ---------- Open text panel ---------- */
.wh-quote-list { max-height: 340px; overflow-y: auto; }
.wh-quote {
  border-left: 3px solid var(--wh-green-700);
  padding: 6px 0 6px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--wh-ink-700);
  line-height: 1.5;
}
.wh-quote .meta { font-size: 11px; color: var(--wh-ink-300); margin-top: 4px; }
.wh-empty-note { color: var(--wh-ink-300); font-size: 13px; padding: 20px 0; text-align: center; }

/* ---------- Raw data table ---------- */
.wh-table-wrap { overflow-x: auto; }
table.wh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.wh-table th, table.wh-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--wh-border-soft); white-space: nowrap;
}
table.wh-table th { color: var(--wh-ink-500); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
table.wh-table tr:hover td { background: var(--wh-cream-100); }

.wh-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.wh-loading { text-align: center; padding: 60px 0; color: var(--wh-ink-500); }
.wh-error-box { background: #fbeceA; border: 1px solid var(--wh-red-500); color: var(--wh-red-500); padding: 14px 18px; border-radius: 12px; font-size: 13.5px; margin-bottom: 16px; }
