/* Development indicators dashboard — Midnight theme */
.dash-page { background: var(--mn-bg); color: var(--mn-body); }
.dash-wrap { max-width: 1280px; margin: 0 auto; padding: 128px 24px 72px; }
.dash-head { max-width: 760px; margin-bottom: 32px; }
.dash-head .eyebrow { color: var(--mn-accent); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.dash-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; }
.dash-head .lead { font-size: 1.125rem; line-height: 1.6; margin: 0; }

.dash-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.dash-controls { flex: 1 1 300px; max-width: 360px; background: var(--mn-surface); border: 1px solid var(--mn-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.dash-results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.ctl label, .ctl-label { display: block; color: var(--mn-ink); font-weight: 600; font-size: 0.9rem; margin: 0 0 8px; }
.ctl select, .ctl input[type="search"] { width: 100%; box-sizing: border-box; background: var(--mn-bg); color: var(--mn-ink); border: 1px solid var(--mn-line); border-radius: 10px; padding: 10px 12px; font: inherit; min-height: 44px; }
.ctl select:focus, .ctl input:focus { border-color: var(--mn-accent); outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.25); }
.ctl-years { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.muted { color: var(--mn-muted); font-weight: 400; }
.small { font-size: 0.875rem; }

.dash-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-chip { background: transparent; color: var(--mn-body); border: 1px solid var(--mn-line); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 0.85rem; cursor: pointer; min-height: 36px; }
.dash-chip:hover { border-color: var(--mn-accent); color: #fff; }

.country-list { margin-top: 10px; max-height: 300px; overflow-y: auto; border: 1px solid var(--mn-line); border-radius: 10px; padding: 8px 10px; background: var(--mn-bg); }
.country-group-title { margin: 8px 0 4px; color: var(--mn-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.country { display: flex; align-items: center; gap: 8px; padding: 6px 2px; cursor: pointer; color: var(--mn-body); min-height: 32px; }
.country input { width: 18px; height: 18px; accent-color: var(--mn-accent); }
.country[hidden] { display: none; }

.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-btn { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--mn-ink); border: 1px solid var(--mn-body); border-radius: 999px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.dash-btn:hover { border-color: var(--mn-accent); color: var(--mn-accent); }
.dash-btn-accent { background: var(--mn-accent); color: var(--mn-on-accent); border-color: var(--mn-accent); }
.dash-btn-accent:hover { background: var(--mn-accent-hover); color: var(--mn-on-accent); }
.dash-flash { margin: 0; padding: 10px 12px; background: var(--mn-surface-2); border-radius: 10px; color: var(--mn-ink); font-size: 0.9rem; }

.dash-status { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--mn-surface-2); color: var(--mn-ink); }
.dash-status.error { background: #3B1D1D; border: 1px solid #7F1D1D; }
.dash-status[hidden] { display: none; }

.panel { background: var(--mn-surface); border: 1px solid var(--mn-line); border-radius: 18px; padding: 20px 20px 16px; }
.panel h2 { color: var(--mn-ink); font-size: 1.05rem; margin: 0 0 12px; line-height: 1.35; }
.chart-box { position: relative; height: 380px; }
.chart-box-short { height: 300px; }
details.panel summary { cursor: pointer; color: var(--mn-ink); font-weight: 600; min-height: 32px; }
.table-box { overflow-x: auto; margin-top: 12px; max-height: 420px; overflow-y: auto; }
.table-box table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.table-box th, .table-box td { padding: 8px 10px; border-bottom: 1px solid var(--mn-line); text-align: right; white-space: nowrap; }
.table-box th:first-child, .table-box td:first-child { text-align: left; }
.table-box thead th { color: var(--mn-ink); position: sticky; top: 0; background: var(--mn-surface); }
.table-box tbody th { color: var(--mn-ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#dash-source a { color: var(--mn-body); }
#dash-source a:hover { color: var(--mn-accent); }

.dash-about { max-width: 760px; margin-top: 56px; }
.dash-about h2 { color: var(--mn-ink); font-size: 1.25rem; }
.dash-about p { line-height: 1.65; }
.dash-about a { color: var(--mn-accent); }

@media (max-width: 760px) {
  .dash-controls { max-width: none; }
  .chart-box { height: 300px; }
  .dash-wrap { padding-top: 104px; }
}

#country-search::placeholder { color: var(--mn-muted); }
