.hi-dashboard {
  --max: 1500px;
  --hi-blue: #5d8fd7;
  --hi-teal: #3aa6a1;
  --hi-green: #65a96b;
  --hi-red: #d96666;
  --hi-yellow: #d9ad48;
  padding-bottom: 54px;
  max-width: calc(100vw - 24px);
  overflow-x: hidden;
}

.hi-dashboard .dash-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: end;
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.hi-dashboard .dash-head h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

.hi-dashboard .dash-head .lead {
  max-width: 930px;
  margin-top: 18px;
}

.hi-dashboard .source-panel,
.hi-dashboard .chart-filter-panel,
.hi-card,
.hi-kpi,
.hi-dashboard .workflow-step,
.hi-profile-item,
.hi-coverage-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
}

.hi-dashboard .source-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.hi-dashboard .source-panel .logo {
  width: 58px;
  height: 58px;
}

.hi-dashboard .source-panel strong,
.hi-dashboard .source-panel span {
  display: block;
}

.hi-dashboard .source-panel strong,
.hi-dashboard a,
.hi-dashboard .hi-card-title span,
.hi-dashboard .hi-table-toolbar label,
.hi-dashboard .filter-grid label,
.hi-dashboard .hi-notes-panel h3,
.hi-coverage-item em {
  color: var(--orange);
}

.hi-dashboard .source-panel span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
  font-size: .94rem;
}

.hi-dashboard .source-panel .source-credit {
  margin-top: 8px;
}

.hi-dashboard .source-panel a,
.hi-dashboard .hi-card a {
  font-weight: 800;
}

.hi-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.hi-status-row .hi-status {
  margin: 0;
}

.hi-share-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
}

.hi-share-button:hover,
.hi-share-button:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}

.hi-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.hi-dashboard .workflow-step {
  min-width: 0;
  padding: 18px;
}

.hi-dashboard .workflow-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 999px;
  color: var(--orange);
  font-weight: 850;
}

.hi-dashboard .workflow-step h2 {
  margin: 14px 0 0;
  color: var(--orange);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hi-dashboard .workflow-step p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.hi-dashboard .dashboard-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 22px;
}

.hi-dashboard .dashboard-jump-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  color: var(--text);
  font-weight: 800;
}

.hi-dashboard .dashboard-jump-nav a:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.hi-status {
  margin: 18px 0 0;
  color: var(--orange);
  font-size: .98rem;
  font-weight: 850;
}

.hi-status[data-state="error"] {
  color: var(--hi-red);
}

.hi-note {
  margin: 14px 0 0;
  padding: 12px 0 12px 16px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
  line-height: 1.5;
}

.hi-note strong {
  color: var(--text);
}

.hi-dashboard .dashboard-section {
  scroll-margin-top: 126px;
}

.hi-dashboard .section-head {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  text-align: center;
  margin: 44px 0 16px;
}

.hi-dashboard .section-head .eyebrow {
  margin-bottom: 8px;
}

.hi-dashboard .section-head h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hi-dashboard .section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.hi-dashboard .chart-filter-panel {
  padding: 16px;
  margin: 18px 0 18px;
}

.hi-dashboard .filter-grid,
.hi-chart-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  align-items: end;
}

.hi-chart-controls {
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
}

.hi-dashboard .filter-grid label,
.hi-chart-controls label,
.hi-dashboard .hi-table-toolbar label {
  display: grid;
  min-width: 0;
  gap: 6px;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hi-dashboard .filter-grid select,
.hi-chart-controls select,
.hi-table-toolbar select,
.hi-table-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 750;
}

.hi-dashboard .filter-grid select:focus,
.hi-chart-controls select:focus,
.hi-table-toolbar select:focus,
.hi-table-toolbar input:focus {
  outline: 2px solid color-mix(in srgb, var(--orange) 60%, transparent);
  outline-offset: 2px;
}

.hi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hi-kpi {
  min-width: 0;
  padding: 18px;
}

.hi-kpi span {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hi-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(1.42rem, 3vw, 2.12rem);
  line-height: 1.05;
}

.hi-kpi em {
  display: block;
  margin-top: 6px;
  color: var(--orange);
  font-size: .86rem;
  font-style: normal;
  font-weight: 850;
}

.hi-kpi small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.hi-card {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
}

.hi-chart-block {
  padding: 22px;
}

.hi-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hi-card-title h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.12rem;
  letter-spacing: 0;
}

.hi-card-title span {
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hi-card-title-secondary {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hi-card-subtitle {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.4;
}

.hi-chart {
  width: 100%;
  min-height: 360px;
}

.hi-chart-wide {
  min-height: 500px;
}

.hi-chart-credit {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}

.hi-chart-source {
  color: var(--muted);
}

.hi-chart-source a,
.hi-chart-note a {
  color: var(--orange);
  font-weight: 800;
}

.hi-chart-note {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
}

.hi-chart-note strong {
  color: var(--text);
}

.hi-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  padding: 18px;
}

.hi-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.hi-profile-item {
  min-width: 0;
  padding: 14px;
}

.hi-profile-item span,
.hi-profile-item strong,
.hi-profile-item small {
  display: block;
}

.hi-profile-item span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hi-profile-item strong {
  margin-top: 6px;
  color: var(--text);
  font-size: 1.12rem;
}

.hi-profile-item small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.hi-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  -webkit-overflow-scrolling: touch;
}

.hi-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: .9rem;
}

.hi-table th,
.hi-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
}

.hi-table th:first-child,
.hi-table td:first-child {
  text-align: left;
}

.hi-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel);
  color: var(--orange);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hi-table tr:last-child td {
  border-bottom: 0;
}

.hi-table td {
  color: var(--muted);
  line-height: 1.35;
}

.hi-table td strong {
  color: var(--text);
}

.hi-table-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  align-items: end;
  margin: 0 0 14px;
}

.hi-table-explorer {
  max-height: 640px;
}

.hi-notes-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hi-notes-panel h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hi-notes-panel h3 + ul,
.hi-notes-panel ul + h3 {
  margin-top: 18px;
}

.hi-notes-panel p,
.hi-notes-panel li {
  color: var(--muted);
  line-height: 1.55;
}

.hi-notes-panel ul {
  margin: 0;
  padding-left: 20px;
}

.hi-notes-panel li + li {
  margin-top: 9px;
}

.hi-notes-panel a,
.hi-source-links a {
  color: var(--orange);
  font-weight: 800;
}

.hi-source-links {
  margin: 12px 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.hi-source-links li {
  line-height: 1.52;
}

.hi-source-links li + li {
  margin-top: 8px;
}

.hi-coverage-list {
  display: grid;
  gap: 10px;
}

.hi-coverage-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hi-coverage-item {
  padding: 12px 14px;
}

.hi-coverage-item strong,
.hi-coverage-item span,
.hi-coverage-item em {
  display: block;
}

.hi-coverage-item strong {
  color: var(--text);
}

.hi-coverage-item span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
  font-size: .92rem;
}

.hi-coverage-item em {
  margin-top: 8px;
  font-style: normal;
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hi-dashboard .plotly .modebar {
  display: none !important;
}

@media (max-width: 1180px) {
  .hi-dashboard .filter-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .hi-kpi-grid,
  .hi-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hi-dashboard .dash-head,
  .hi-workflow,
  .hi-coverage-grid,
  .hi-notes-panel {
    grid-template-columns: 1fr;
  }

  .hi-dashboard .dashboard-section {
    scroll-margin-top: 214px;
  }
}

@media (max-width: 680px) {
  .hi-dashboard .dash-head {
    padding-top: 28px;
  }

  .hi-dashboard .filter-grid,
  .hi-kpi-grid,
  .hi-profile-grid,
  .hi-table-toolbar {
    grid-template-columns: 1fr;
  }

  .hi-dashboard .dashboard-jump-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .hi-dashboard .dashboard-jump-nav a {
    white-space: nowrap;
    min-height: 36px;
    padding: 0 11px;
  }

  .hi-card,
  .hi-chart-block,
  .hi-dashboard .chart-filter-panel {
    padding: 16px;
  }

  .hi-status-row {
    align-items: stretch;
  }

  .hi-share-button {
    width: 100%;
  }

  .hi-chart,
  .hi-chart-wide {
    min-height: 360px;
  }

  .hi-table {
    white-space: nowrap;
  }
}
