:root {
  color-scheme: light;
  --background: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f5f7fb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --purple: #5b3fd6;
  --purple-soft: #ede9fe;
  --blue: #2563eb;
  --indigo: #2563eb;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --cyan: #0891b2;
  --cyan-soft: #cffafe;
  --slate: #475569;
  --slate-soft: #e2e8f0;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.04);
}

.logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: white;
  color: var(--purple);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 30px;
  font-weight: 900;
}

.nav-icons {
  display: grid;
  gap: 16px;
}

.nav-item {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 52px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #475569;
  text-decoration: none;
  font-size: 22px;
  gap: 3px;
}

.nav-item span {
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  background: var(--purple-soft);
  color: var(--purple);
}

.network-pill {
  position: relative;
  margin-top: auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e9edf5;
  color: #111827;
  font-weight: 800;
}

.network-pill span {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.dashboard {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 26px 28px;
}

.page-root {
  display: grid;
  gap: 18px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.range-control,
.icon-button,
.ghost-button,
.reset-button,
.logout-button {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.range-control {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 12px;
}

.range-control select {
  width: 150px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.icon-button {
  width: 48px;
  font-size: 24px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
}

.icon-button.is-refreshing {
  color: var(--purple);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 900;
}

.metric-icon.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.metric-icon.green {
  background: var(--green-soft);
  color: var(--green);
}

.metric-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.metric-icon.blue {
  background: #dbeafe;
  color: var(--indigo);
}

.metric-icon.amber {
  background: var(--amber-soft);
  color: #b45309;
}

.metric-card p {
  margin: 2px 0 8px;
  color: #475569;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 1.7vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
}

.metric-card strong span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--indigo);
}

.metric-card strong.purple {
  color: var(--purple);
}

.metric-card strong.green {
  color: var(--green);
}

.metric-card strong.red {
  color: #b91c1c;
}

.metric-card strong.blue {
  color: var(--indigo);
}

.metric-card strong.amber {
  color: #b45309;
}

.metric-card small {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.table-card,
.charts-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.dashboard-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.table-card {
  margin-bottom: 18px;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-title h2,
.charts-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
}

.card-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.card-icon {
  color: #334155;
  font-size: 25px;
}

.ghost-button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  background: #fbfcff;
  border-bottom: 1px solid var(--border);
}

.filter-bar.compact {
  grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(180px, 1fr) auto;
}

.filter-bar label,
.search-control {
  min-width: 0;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: white;
  color: var(--text);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(91, 63, 214, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 63, 214, 0.12);
}

.reset-button {
  height: 42px;
  padding: 0 14px;
  color: var(--purple);
  font-weight: 700;
}

.table-wrap {
  overflow-x: hidden;
}

table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
}

th {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fafbff;
}

.align-right {
  text-align: right;
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #161b28;
  color: white;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.12);
}

.hash-cell,
.mono {
  overflow-wrap: anywhere;
}

.type-pill.bid {
  background: var(--green);
}

.type-pill.lease {
  background: var(--indigo);
}

.type-pill.escrow {
  background: #b45309;
}

.type-pill.deployment {
  background: var(--purple);
}

.type-pill.certificate {
  background: var(--cyan);
}

.type-pill.bank {
  background: var(--red);
}

.type-pill.provider {
  background: var(--slate);
}

.type-pill.market {
  background: var(--slate);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.green {
  background: var(--green-soft);
  color: #047857;
}

.status-badge.red {
  background: var(--red-soft);
  color: #b91c1c;
}

.status-badge.amber {
  background: #fef3c7;
  color: #a16207;
}

.diagnostic-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.4fr);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.diagnostic-hero h2 {
  margin: 8px 0 10px;
  font-size: 26px;
}

.diagnostic-hero p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.eyebrow {
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagnostic-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.timeline-list {
  display: grid;
  gap: 12px;
  padding: 18px 28px 28px;
}

.timeline-event {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  background: #fbfcff;
}

.timeline-event.warning {
  border-left-color: #f59e0b;
}

.timeline-event small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.timeline-event p {
  margin: 0;
  color: #475569;
  overflow-wrap: anywhere;
}

.result-success,
.result-failed {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.result-success {
  color: #047857;
}

.result-success span,
.result-failed span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
}

.result-failed {
  color: var(--red);
}

.fee {
  color: #4b5563;
}

.charts-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  padding: 16px 20px;
}

.charts-card article {
  padding: 0 26px 0 0;
}

.charts-card article + article {
  border-left: 1px solid var(--border);
  padding: 0 0 0 34px;
}

.chart-row,
.activity-layout {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  min-height: 112px;
}

.donut {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: white;
}

.legend {
  display: grid;
  gap: 14px;
}

.legend-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #475569;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-row i.green {
  background: var(--green);
}

.legend-row i.red {
  background: var(--red);
}

.legend-row i.blue {
  background: var(--indigo);
}

.legend-row i.amber {
  background: var(--amber);
}

.legend-row i.purple {
  background: var(--purple);
}

.legend-row i.cyan {
  background: var(--cyan);
}

.legend-row i.slate {
  background: var(--slate);
}

.activity-layout {
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1fr);
}

.activity-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 80px;
}

.activity-bar {
  display: block;
  width: 9px;
  min-height: 24px;
  border-radius: 3px;
  box-shadow: 0 8px 14px rgba(15, 23, 42, 0.08);
}

.activity-bar:nth-child(odd) {
  height: 56px;
}

.activity-bar:nth-child(even) {
  height: 34px;
}

.activity-bar.green {
  background: #18b96c;
}

.activity-bar.red {
  background: var(--red);
}

.activity-bar.blue {
  background: var(--indigo);
}

.activity-bar.amber {
  background: var(--amber);
}

.activity-bar.purple {
  background: var(--purple);
}

.activity-bar.cyan {
  background: var(--cyan);
}

.activity-bar.slate {
  background: var(--slate);
}

.activity-copy p {
  margin: 9px 0;
  color: #475569;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.visual-panel {
  min-height: 340px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-panel.wide {
  grid-column: span 2;
}

.vbar-chart {
  height: 260px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 22px 22px 18px;
  overflow-x: auto;
}

.vbar-item {
  min-width: 34px;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  text-align: center;
}

.vbar-item span {
  display: block;
  width: 100%;
  min-height: 5px;
  border-radius: 7px 7px 3px 3px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.vbar-item span.blue {
  background: linear-gradient(180deg, #60a5fa, var(--blue));
}

.vbar-item span.green {
  background: linear-gradient(180deg, #86efac, var(--green));
}

.vbar-item small {
  min-height: 28px;
  color: var(--muted);
  font-size: 11px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hbar-list {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.hbar-row {
  display: grid;
  grid-template-columns: minmax(95px, 0.8fr) minmax(120px, 1.6fr) minmax(72px, auto);
  gap: 12px;
  align-items: center;
}

.hbar-row span,
.hbar-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hbar-row span {
  color: #334155;
  font-weight: 700;
}

.hbar-row strong {
  color: #111827;
  text-align: right;
}

.hbar-track {
  height: 12px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
}

.hbar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.hbar-track i.green {
  background: var(--green);
}

.hbar-track i.red {
  background: var(--red);
}

.hbar-track i.blue {
  background: var(--blue);
}

.hbar-track i.amber {
  background: var(--amber);
}

.hbar-track i.purple {
  background: var(--purple);
}

.hbar-track i.cyan {
  background: var(--cyan);
}

.hbar-track i.slate {
  background: var(--slate);
}

.gauge-grid {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.gauge-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcff;
}

.gauge-ring {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--pct), #e5e7eb 0);
  position: relative;
}

.gauge-ring.blue {
  background: conic-gradient(var(--blue) var(--pct), #e5e7eb 0);
}

.gauge-ring.purple {
  background: conic-gradient(var(--purple) var(--pct), #e5e7eb 0);
}

.gauge-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: white;
}

.gauge-ring span {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.gauge-card strong,
.gauge-card small {
  display: block;
}

.gauge-card small {
  margin-top: 5px;
  color: var(--muted);
}

.resource-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-monitor-grid > .table-card,
.resource-monitor-grid > .visual-panel {
  min-width: 0;
  min-height: 382px;
}

.resource-stack-grid {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.resource-stack {
  display: grid;
  gap: 10px;
}

.resource-stack-head,
.stack-legend {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.resource-stack-head strong {
  font-size: 15px;
}

.resource-stack-head span,
.stack-legend {
  color: var(--muted);
  font-size: 12px;
}

.stack-track {
  display: flex;
  width: 100%;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.stack-track i {
  display: block;
  min-width: 2px;
  height: 100%;
}

.stack-track i.green {
  background: var(--green);
}

.stack-track i.blue {
  background: var(--blue);
}

.stack-track i.purple {
  background: var(--purple);
}

.stack-track i.cyan {
  background: var(--cyan);
}

.stack-track i.amber {
  background: var(--amber);
}

.stack-track i.slate {
  background: #cbd5e1;
}

.state-block {
  padding: 30px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px 20px;
}

.mini-metric {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}

.mini-metric span,
.mini-metric small {
  display: block;
  color: var(--muted);
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.events-list {
  display: grid;
  gap: 10px;
  padding: 14px 20px 20px;
}

.event {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
}

.event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.event p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tx-table th:nth-child(1),
.tx-table td:nth-child(1) {
  width: 32%;
}

.tx-table th:nth-child(2),
.tx-table td:nth-child(2) {
  width: 13%;
}

.tx-table th:nth-child(3),
.tx-table td:nth-child(3) {
  width: 13%;
}

.tx-table th:nth-child(4),
.tx-table td:nth-child(4),
.tx-table th:nth-child(5),
.tx-table td:nth-child(5) {
  width: 12%;
}

.tx-table th:nth-child(6),
.tx-table td:nth-child(6),
.tx-table th:nth-child(7),
.tx-table td:nth-child(7) {
  width: 9%;
}

.lease-table th:nth-child(1),
.lease-table td:nth-child(1) {
  width: 12%;
}

.lease-table th:nth-child(2),
.lease-table td:nth-child(2) {
  width: 21%;
}

.lease-table th:nth-child(3),
.lease-table td:nth-child(3) {
  width: 16%;
}

.pod-table th:nth-child(2),
.pod-table td:nth-child(2) {
  width: 34%;
}

.resource-table th:nth-child(2),
.resource-table td:nth-child(2) {
  width: 18%;
}

.resource-table th:nth-child(4),
.resource-table td:nth-child(4),
.resource-table th:nth-child(5),
.resource-table td:nth-child(5) {
  width: 12%;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}

.coverage-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 16px 20px 0;
}

.coverage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coverage-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcff;
}

.coverage-grid code {
  color: var(--indigo);
  overflow-wrap: anywhere;
}

.coverage-grid p {
  margin: 0;
  color: var(--muted);
}

.updated-at {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.state-block.error {
  color: var(--red);
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1420px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .nav-icons {
    display: flex;
  }

  .network-pill {
    margin-top: 0;
  }

  .dashboard {
    padding: 24px;
  }

  .dashboard-header,
  .card-header {
    display: grid;
  }

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

  .filter-bar.compact,
  .dashboard-grid.two,
  .diagnostic-hero,
  .visual-grid {
    grid-template-columns: 1fr;
  }

  .visual-panel.wide {
    grid-column: auto;
  }

  .charts-card {
    grid-template-columns: 1fr;
  }

  .charts-card article + article {
    margin-top: 24px;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .metrics-grid,
  .metrics-grid.four,
  .filter-bar,
  .filter-bar.compact,
  .chart-row,
  .activity-layout,
  .hbar-row,
  .gauge-card,
  .detail-grid,
  .diagnostic-facts {
    grid-template-columns: 1fr;
  }

  .hbar-row strong {
    text-align: left;
  }

  .metric-card {
    min-height: auto;
  }

  .header-actions {
    width: 100%;
  }

  .range-control {
    flex: 1;
    justify-content: center;
  }

  .ghost-button {
    display: none;
  }
}

/* Dense operations UI refresh */
:root {
  --background: #eef2f6;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: #f7f9fc;
  --border: #d9e0ea;
  --text: #0d1321;
  --muted: #667085;
  --purple: #7047eb;
  --purple-soft: #eee9ff;
  --blue: #1677ff;
  --indigo: #3157d5;
  --green: #079455;
  --green-soft: #dcfae6;
  --red: #d92d20;
  --red-soft: #fee4e2;
  --amber: #dc8a00;
  --amber-soft: #fff1cc;
  --cyan: #088ab2;
  --cyan-soft: #d5f3fb;
  --slate: #344054;
  --slate-soft: #e4e7ec;
  --shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.05);
  --radius: 8px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 240px),
    var(--background);
  font-size: 14px;
}

.app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  gap: 16px;
  padding: 12px 8px;
  background: rgba(13, 19, 33, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 8px 0 28px rgba(13, 19, 33, 0.14);
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #d7ecff);
  color: #111827;
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 23px;
}

.nav-icons {
  gap: 8px;
}

.nav-item {
  width: 52px;
  min-height: 46px;
  border-radius: var(--radius);
  color: #b8c0cc;
  font-size: 18px;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-item span {
  font-size: 9px;
  font-weight: 700;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 #61d394;
}

.network-pill {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: var(--radius);
}

.network-pill span {
  right: 7px;
  bottom: 7px;
  width: 8px;
  height: 8px;
}

.dashboard {
  width: min(100%, 1760px);
  padding: 18px 20px;
}

.page-root {
  gap: 12px;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 5;
  align-items: center;
  gap: 14px;
  margin: -18px -20px 14px;
  padding: 14px 20px 12px;
  background: rgba(238, 242, 246, 0.86);
  border-bottom: 1px solid rgba(217, 224, 234, 0.78);
  backdrop-filter: blur(14px);
}

.dashboard-header h1 {
  font-size: 24px;
  letter-spacing: 0;
}

.dashboard-header p {
  max-width: 820px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.header-actions {
  gap: 8px;
}

.range-control,
.icon-button,
.ghost-button,
.reset-button,
.logout-button {
  height: 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.range-control {
  gap: 8px;
  padding: 0 10px;
}

.range-control select {
  width: 132px;
  font-size: 13px;
}

.icon-button {
  width: 38px;
  font-size: 19px;
}

.updated-at {
  min-width: 120px;
  font-size: 12px;
  text-align: right;
}

.metrics-grid,
.metrics-grid.four {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card {
  min-height: 92px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  font-size: 16px;
}

.metric-card p {
  margin: 0 0 5px;
  color: #566174;
  font-size: 12px;
  font-weight: 750;
}

.metric-card strong {
  font-size: 22px;
  line-height: 1;
}

.metric-card strong span {
  display: inline;
  margin-left: 4px;
  font-size: 11px;
}

.metric-card small {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.3;
}

.table-card,
.charts-card,
.visual-panel,
.diagnostic-hero {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.table-card {
  margin-bottom: 12px;
}

.card-header {
  min-height: 50px;
  padding: 10px 14px;
}

.card-title {
  gap: 8px;
}

.card-title h2,
.charts-card h2 {
  font-size: 15px;
  font-weight: 820;
}

.card-title small {
  margin-top: 2px;
  font-size: 12px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #eef2f7;
  color: #475467;
  font-size: 15px;
}

.filter-bar {
  grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(128px, 1fr)) auto;
  gap: 8px;
  padding: 10px 14px;
  background: #f7f9fc;
}

.filter-bar.compact {
  grid-template-columns: minmax(260px, 2fr) minmax(140px, 0.7fr) minmax(180px, 1fr) auto;
}

.filter-bar input,
.filter-bar select,
.reset-button {
  height: 34px;
  border-radius: 7px;
  font-size: 13px;
}

.filter-bar input,
.filter-bar select {
  padding: 0 10px;
}

.reset-button {
  padding: 0 12px;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  font-size: 13px;
}

th,
td {
  padding: 9px 14px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 249, 252, 0.96);
  font-size: 11px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f4f8ff;
}

.type-pill,
.status-badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
  border-radius: 7px;
}

.result-success,
.result-failed {
  gap: 6px;
}

.result-success span,
.result-failed span {
  width: 15px;
  height: 15px;
  font-size: 10px;
}

.charts-card {
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  padding: 12px 14px;
}

.charts-card article {
  padding-right: 18px;
}

.charts-card article + article {
  padding-left: 22px;
}

.chart-row,
.activity-layout {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  min-height: 92px;
}

.donut {
  width: 76px;
  height: 76px;
}

.donut::after {
  inset: 20px;
}

.legend,
.hbar-list,
.gauge-grid {
  gap: 10px;
}

.legend-row {
  gap: 12px;
  font-size: 12px;
}

.activity-bars {
  gap: 6px;
  min-height: 64px;
}

.activity-bar {
  width: 7px;
  border-radius: 3px;
}

.activity-copy p {
  margin: 5px 0;
  font-size: 12px;
}

.visual-grid {
  gap: 12px;
}

.resource-monitor-grid {
  gap: 12px;
}

.resource-stack-grid {
  gap: 10px;
  padding: 14px;
}

.stack-track {
  height: 14px;
}

.visual-panel {
  min-height: 284px;
}

.vbar-chart {
  height: 214px;
  gap: 7px;
  padding: 14px 14px 12px;
}

.vbar-item {
  min-width: 28px;
  gap: 8px;
}

.vbar-item small {
  font-size: 10px;
}

.hbar-list {
  padding: 14px;
}

.hbar-row {
  grid-template-columns: minmax(84px, 0.8fr) minmax(110px, 1.6fr) minmax(58px, auto);
  gap: 10px;
  font-size: 12px;
}

.hbar-track {
  height: 9px;
}

.gauge-grid {
  padding: 14px;
}

.gauge-card {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
}

.gauge-ring {
  width: 54px;
  height: 54px;
}

.gauge-ring::after {
  inset: 10px;
}

.gauge-ring span {
  font-size: 12px;
}

.detail-grid {
  gap: 10px;
  padding: 12px 14px 14px;
}

.mini-metric {
  padding: 11px 12px;
  border-radius: var(--radius);
}

.mini-metric strong {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.25;
}

.mini-metric span,
.mini-metric small {
  font-size: 12px;
}

.events-list {
  gap: 8px;
  padding: 10px 14px 14px;
}

.event,
.timeline-event {
  gap: 5px;
  padding: 10px 12px;
  border-radius: var(--radius);
}

.diagnostic-hero {
  gap: 14px;
  padding: 16px;
  background: var(--panel);
}

.diagnostic-hero h2 {
  margin: 5px 0 8px;
  font-size: 19px;
}

.diagnostic-hero p {
  line-height: 1.45;
}

.diagnostic-facts {
  gap: 10px;
}

.timeline-list,
.coverage-grid {
  gap: 10px;
  padding: 12px 14px 14px;
}

.coverage-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.coverage-config {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 12px 14px 0;
}

.coverage-grid article {
  padding: 11px 12px;
  border-radius: var(--radius);
}

.state-block {
  padding: 18px;
}

@media (max-width: 1180px) {
  .dashboard-header {
    position: static;
    margin: 0 0 14px;
    padding: 0 0 12px;
    background: transparent;
    backdrop-filter: none;
  }

  .filter-bar,
  .filter-bar.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    overflow-x: auto;
  }

  .nav-icons {
    display: flex;
    gap: 6px;
  }

  .nav-item {
    width: 48px;
  }

  .network-pill {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .dashboard {
    padding: 14px;
  }

  .dashboard-header {
    display: grid;
  }

  .dashboard-grid.two,
  .visual-grid,
  .resource-monitor-grid,
  .charts-card,
  .diagnostic-hero {
    grid-template-columns: 1fr;
  }

  .visual-panel.wide {
    grid-column: auto;
  }

  .charts-card article + article {
    margin-top: 14px;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .dashboard-header h1 {
    font-size: 21px;
  }

  .dashboard-header p {
    font-size: 12px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .updated-at {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .metrics-grid,
  .metrics-grid.four,
  .filter-bar,
  .filter-bar.compact,
  .chart-row,
  .activity-layout,
  .hbar-row,
  .gauge-card,
  .resource-stack-head,
  .stack-legend,
  .detail-grid,
  .diagnostic-facts {
    grid-template-columns: 1fr;
  }

  .resource-stack-head,
  .stack-legend {
    display: grid;
    gap: 4px;
  }

  .metric-card {
    min-height: 0;
  }

  .hbar-row strong {
    text-align: left;
  }

  .graph-stat-grid,
  .outcome-donut-wrap {
    grid-template-columns: 1fr;
  }

  .outcome-donut {
    margin: 0 auto;
  }
}

/* DarkDasher-inspired operations skin */
:root {
  color-scheme: dark;
  --background: #080c14;
  --panel: #111827;
  --panel-soft: #172033;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #96a3b8;
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.17);
  --blue: #38bdf8;
  --indigo: #60a5fa;
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.16);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.15);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.16);
  --slate: #94a3b8;
  --slate-soft: rgba(148, 163, 184, 0.14);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.22);
  --radius: 8px;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(139, 92, 246, 0.12), transparent 26%),
    linear-gradient(180deg, #0c1220 0%, #080c14 46%, #070a10 100%);
  color: var(--text);
}

.app-shell {
  grid-template-columns: 86px minmax(0, 1fr);
}

.sidebar {
  background: rgba(10, 15, 25, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 10px 0 34px rgba(0, 0, 0, 0.34);
}

.logo {
  background: linear-gradient(145deg, #1d283a, #0f172a);
  color: #e2f4ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.32);
}

.nav-item {
  color: #7f8da3;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.14));
  color: #f8fafc;
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--green), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.network-pill {
  background: #111827;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.network-pill span {
  background: var(--green);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.75);
}

.dashboard {
  width: min(100%, 1820px);
}

.dashboard-header {
  background: rgba(8, 12, 20, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-header h1 {
  color: #ffffff;
}

.dashboard-header p,
.updated-at,
.card-title small,
.metric-card p,
.metric-card small,
.activity-copy p,
.coverage-grid p,
.mini-metric span,
.mini-metric small {
  color: var(--muted);
}

.range-control,
.icon-button,
.ghost-button,
.reset-button,
.logout-button,
.filter-bar input,
.filter-bar select {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.range-control select {
  color: var(--text);
}

.range-control select option,
.filter-bar select option {
  background: #111827;
  color: var(--text);
}

.icon-button.is-refreshing,
.reset-button,
.logout-button:hover {
  color: var(--cyan);
}

.metric-card,
.table-card,
.charts-card,
.visual-panel,
.diagnostic-hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.overview-main {
  grid-template-columns: minmax(720px, 1.55fr) minmax(360px, 0.85fr);
}

.latest-transactions-card {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    #101827;
}

.latest-transactions-card .card-header {
  padding: 14px 16px;
}

.latest-transactions-card .table-wrap {
  overflow-x: auto;
}

.latest-transactions-card .tx-table {
  min-width: 820px;
  table-layout: auto;
}

.transaction-dashboard-card .tx-table {
  min-width: 980px;
}

.latest-transactions-card .tx-table th,
.latest-transactions-card .tx-table td {
  padding: 12px 16px;
}

.tx-table th:nth-child(1),
.tx-table td:nth-child(1) {
  width: 28%;
}

.tx-table th:nth-child(2),
.tx-table td:nth-child(2) {
  width: 15%;
}

.tx-table th:nth-child(3),
.tx-table td:nth-child(3) {
  width: 13%;
}

.tx-table th:nth-child(4),
.tx-table td:nth-child(4) {
  width: 13%;
}

.tx-table th:nth-child(5),
.tx-table td:nth-child(5) {
  width: 12%;
}

.tx-table th:nth-child(6),
.tx-table td:nth-child(6) {
  width: 9%;
}

.tx-table th:nth-child(7),
.tx-table td:nth-child(7) {
  width: 112px;
}

.tx-table td:nth-child(4),
.tx-table td:nth-child(5),
.tx-table td:nth-child(6),
.tx-table td:nth-child(7) {
  white-space: nowrap;
}

.tx-time {
  display: inline-block;
  min-width: 104px;
  white-space: nowrap;
  color: #e6edf7;
  font-variant-numeric: tabular-nums;
}

.tx-table .hash-cell {
  display: inline-flex;
  max-width: 100%;
  color: #dce7f7;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.latest-transactions-card .type-pill {
  min-height: 24px;
  max-width: 116px;
  justify-content: flex-start;
  padding: 0 9px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.latest-transactions-card tbody tr {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 28%);
}

.latest-transactions-card tbody tr:hover {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(34, 197, 94, 0.035));
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.55), rgba(34, 197, 94, 0.48), transparent);
  opacity: 0.72;
}

.metric-icon {
  background: #0b1220;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.metric-icon.purple {
  background: var(--purple-soft);
  color: #c4b5fd;
}

.metric-icon.green {
  background: var(--green-soft);
  color: #86efac;
}

.metric-icon.red {
  background: var(--red-soft);
  color: #fda4af;
}

.metric-icon.blue {
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}

.metric-icon.amber {
  background: var(--amber-soft);
  color: #fcd34d;
}

.metric-card strong,
.metric-card strong.purple,
.metric-card strong.green,
.metric-card strong.red,
.metric-card strong.blue,
.metric-card strong.amber {
  color: #ffffff;
}

.metric-card strong span {
  color: var(--cyan);
}

.card-header {
  background: rgba(15, 23, 42, 0.48);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.card-title h2,
.charts-card h2 {
  color: #f8fafc;
}

.card-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
}

.filter-bar {
  background: rgba(8, 13, 23, 0.54);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

th {
  background: rgba(12, 18, 30, 0.96);
  color: #7f8da3;
}

td {
  color: #dbe5f4;
}

th,
td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

tbody tr:hover {
  background: rgba(56, 189, 248, 0.055);
}

.fee {
  color: #aab7cb;
}

.type-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 16px rgba(0, 0, 0, 0.18);
}

.status-badge {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.status-badge.green {
  background: var(--green-soft);
  color: #86efac;
}

.status-badge.red {
  background: var(--red-soft);
  color: #fda4af;
}

.status-badge.amber {
  background: var(--amber-soft);
  color: #fcd34d;
}

.result-success {
  color: #86efac;
}

.result-failed {
  color: #fda4af;
}

.charts-card {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.055), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    #111827;
}

.charts-card article + article {
  border-left-color: rgba(255, 255, 255, 0.08);
}

.donut {
  width: 96px;
  height: 96px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.donut::after {
  inset: 22px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.donut::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
}

.legend-row {
  color: #cbd5e1;
}

.legend-row strong,
.hbar-row strong {
  color: #f8fafc;
}

.activity-bars,
.vbar-chart {
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 25%, 40px 100%;
  border-radius: var(--radius);
}

.activity-bar,
.vbar-item span,
.hbar-track i,
.stack-track i {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.activity-bar.green,
.hbar-track i.green,
.stack-track i.green {
  background: linear-gradient(180deg, #86efac, #22c55e);
}

.activity-bar.blue,
.hbar-track i.blue,
.stack-track i.blue,
.vbar-item span.blue {
  background: linear-gradient(180deg, #67e8f9, #2563eb);
}

.activity-bar.purple,
.hbar-track i.purple,
.stack-track i.purple,
.vbar-item span.purple {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
}

.activity-bar.amber,
.hbar-track i.amber,
.stack-track i.amber {
  background: linear-gradient(180deg, #fde68a, #f59e0b);
}

.activity-bar.red,
.hbar-track i.red,
.stack-track i.red {
  background: linear-gradient(180deg, #fda4af, #e11d48);
}

.activity-bar.cyan,
.hbar-track i.cyan,
.stack-track i.cyan {
  background: linear-gradient(180deg, #a5f3fc, #06b6d4);
}

.activity-bar.slate,
.hbar-track i.slate,
.stack-track i.slate {
  background: linear-gradient(180deg, #cbd5e1, #64748b);
}

.visual-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%),
    #111827;
}

.vbar-item small,
.hbar-row span,
.resource-stack-head span,
.stack-legend {
  color: var(--muted);
}

.hbar-track,
.stack-track {
  background: rgba(255, 255, 255, 0.08);
}

.gauge-card,
.mini-metric,
.event,
.timeline-event,
.coverage-grid article {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(255, 255, 255, 0.08);
}

.gauge-ring {
  background: conic-gradient(var(--green) var(--pct), rgba(255, 255, 255, 0.08) 0);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.24);
}

.gauge-ring.blue {
  background: conic-gradient(var(--blue) var(--pct), rgba(255, 255, 255, 0.08) 0);
}

.gauge-ring.purple {
  background: conic-gradient(var(--purple) var(--pct), rgba(255, 255, 255, 0.08) 0);
}

.gauge-ring.red {
  background: conic-gradient(var(--red) var(--pct), rgba(255, 255, 255, 0.08) 0);
}

.gauge-ring.cyan {
  background: conic-gradient(var(--cyan) var(--pct), rgba(255, 255, 255, 0.08) 0);
}

.gauge-ring::after {
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.gauge-ring span {
  color: #f8fafc;
}

.gauge-card strong,
.mini-metric strong,
.event strong,
.resource-stack-head strong {
  color: #f8fafc;
}

.diagnostic-hero {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.1), transparent 35%),
    #111827;
}

.diagnostic-hero p,
.timeline-event p {
  color: #cbd5e1;
}

.eyebrow,
.coverage-grid code {
  color: var(--cyan);
}

.state-block {
  color: var(--muted);
}

.state-block.error {
  color: #fda4af;
}

.muted {
  background: transparent;
  color: var(--muted);
}

.provider-graph-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(620px, 1.4fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%),
    #101827;
  box-shadow: var(--shadow-soft);
}

.provider-graph-hero h2 {
  margin: 6px 0 8px;
  color: #ffffff;
  font-size: 24px;
}

.provider-graph-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.graph-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.graph-stat {
  position: relative;
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 52%),
    rgba(18, 26, 43, 0.96);
  overflow: hidden;
}

.graph-stat button {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.graph-stat-icon {
  grid-row: span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #a78bfa;
}

.graph-stat-icon.green {
  color: var(--green);
}

.graph-stat-icon.blue {
  color: var(--blue);
}

.graph-stat-icon.amber {
  color: var(--amber);
}

.graph-stat-icon.red {
  color: var(--red);
}

.graph-stat span,
.graph-stat small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.graph-stat span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-stat strong {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 25px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.graph-stat.green {
  box-shadow: inset 0 -2px 0 rgba(34, 197, 94, 0.7);
}

.graph-stat.blue {
  box-shadow: inset 0 -2px 0 rgba(56, 189, 248, 0.7);
}

.graph-stat.amber {
  box-shadow: inset 0 -2px 0 rgba(245, 158, 11, 0.75);
}

.graph-stat.red {
  box-shadow: inset 0 -2px 0 rgba(251, 113, 133, 0.75);
}

.provider-graph-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.graph-panel {
  min-height: 320px;
}

.graph-panel.xl {
  grid-column: span 2;
}

.capacity-bars {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.capacity-bars article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.capacity-head strong {
  color: #f8fafc;
}

.capacity-head span,
.capacity-bars small {
  color: var(--muted);
  font-size: 12px;
}

.capacity-track {
  display: flex;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.capacity-track i,
.capacity-track b {
  display: block;
  min-width: 2px;
  height: 100%;
}

.capacity-track b {
  background: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.9), rgba(245, 158, 11, 0.9) 5px, rgba(245, 158, 11, 0.45) 5px, rgba(245, 158, 11, 0.45) 10px);
}

.capacity-track i.green {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.capacity-track i.blue {
  background: linear-gradient(90deg, #2563eb, #67e8f9);
}

.capacity-track i.purple {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}

.capacity-track i.cyan {
  background: linear-gradient(90deg, #06b6d4, #a5f3fc);
}

.dasher-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 0;
}

.dasher-chart-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.dasher-chart-head strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.chart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(30, 41, 69, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.chart-toggle i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.chart-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(30, 41, 69, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.chart-legend i.blue {
  background: linear-gradient(180deg, #67e8f9, #2563eb);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.42);
}

.chart-legend i.green {
  background: linear-gradient(180deg, #86efac, #22c55e);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.42);
}

.settlement-flow {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: minmax(54px, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 22px 28px 26px 18px;
  overflow-x: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: calc(100% - 100px) 25%, 70px 100%;
  background-position: 84px 26px, 84px 0;
}

.chart-axis {
  grid-row: 1;
  display: grid;
  align-content: space-between;
  padding: 10px 0 44px;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.settlement-flow article {
  min-width: 54px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: end;
  text-align: center;
}

.flow-bars {
  position: relative;
  height: 280px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  padding-bottom: 2px;
}

.flow-bars::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -78px;
  width: 54px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.34), rgba(139, 92, 246, 0.1), transparent);
  filter: blur(8px);
  opacity: 0.72;
  transform: translateX(-50%) perspective(80px) rotateX(58deg);
}

.flow-bars i {
  position: relative;
  z-index: 1;
  width: 15px;
  min-height: 5px;
  border-radius: 999px 999px 8px 8px;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28), 0 0 18px rgba(34, 211, 238, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.flow-bars i.blue {
  background: linear-gradient(180deg, #67e8f9, #2563eb);
}

.flow-bars i.green {
  background: linear-gradient(180deg, #86efac, #22c55e);
}

.settlement-flow small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.arc-gauge-grid {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.arc-gauge-card {
  min-height: 178px;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 14px;
}

.arc-gauge {
  position: relative;
  width: 168px;
  height: 86px;
  overflow: hidden;
}

.arc-gauge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 168px 168px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, var(--cyan) var(--pct), #020617 0 180deg, transparent 0);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.22);
}

.arc-gauge::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -2px;
  height: 62px;
  border-radius: 120px 120px 0 0;
  background: #111827;
}

.arc-gauge.purple::before {
  background: conic-gradient(from 270deg at 50% 100%, var(--purple) var(--pct), #020617 0 180deg, transparent 0);
}

.arc-gauge.red::before {
  background: conic-gradient(from 270deg at 50% 100%, var(--red) var(--pct), #020617 0 180deg, transparent 0);
}

.arc-gauge strong {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  text-align: center;
}

.arc-gauge strong small {
  color: #ffffff;
  font-size: 14px;
}

.arc-scale {
  width: 168px;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.arc-gauge-card p {
  margin: 16px 0 4px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.arc-gauge-card > small {
  color: var(--muted);
}

.stacked-pulse-chart {
  min-height: 250px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 18px;
  align-items: end;
  padding: 24px 20px 18px;
}

.stacked-pulse-chart article {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.pulse-stack {
  height: 152px;
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 10px;
}

.pulse-stack i {
  display: block;
  height: 8px;
  min-width: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.26);
}

.pulse-stack i.green {
  background: linear-gradient(90deg, #22d3ee, #22c55e);
}

.pulse-stack i.blue {
  background: linear-gradient(90deg, #22d3ee, #60a5fa);
}

.pulse-stack i.amber {
  background: linear-gradient(90deg, #f59e0b, #8b5cf6);
}

.pulse-stack i.red {
  background: linear-gradient(90deg, #fb7185, #8b5cf6);
}

.pulse-stack i.slate {
  background: linear-gradient(90deg, #64748b, #60a5fa);
}

.stacked-pulse-chart small {
  max-width: 88px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.insight-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
}

.insight-row span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: #dbe5f4;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.insight-row span i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.insight-row span i.green {
  background: var(--green);
}

.insight-row span i.blue {
  background: var(--blue);
}

.insight-row span i.amber {
  background: var(--amber);
}

.insight-row span i.red {
  background: var(--red);
}

.insight-row span i.slate {
  background: var(--slate);
}

.insight-row strong {
  color: #ffffff;
  font-size: 18px;
  white-space: nowrap;
}

.insight-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.outcome-donut-wrap {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.outcome-donut {
  position: relative;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.outcome-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.outcome-donut span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.outcome-legend {
  display: grid;
  gap: 8px;
}

.finance-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(680px, 1.45fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%),
    #101827;
  box-shadow: var(--shadow-soft);
}

.finance-hero h2 {
  margin: 6px 0 8px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
}

.finance-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-panel {
  min-height: 330px;
}

.finance-panel.xl {
  grid-column: span 2;
}

.finance-safety {
  display: grid;
  gap: 14px;
  padding: 22px 20px 8px;
}

.safety-meter {
  position: relative;
  height: 30px;
  overflow: visible;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.24), rgba(245, 158, 11, 0.2), rgba(34, 197, 94, 0.16));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.safety-meter i {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.28);
}

.safety-meter i.green {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.safety-meter i.amber {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.safety-meter i.red {
  background: linear-gradient(90deg, #fb7185, #fda4af);
}

.safety-meter b {
  position: absolute;
  top: -7px;
  width: 2px;
  height: 44px;
  border-radius: 999px;
  transform: translateX(-1px);
}

.safety-meter b.halt {
  background: var(--red);
}

.safety-meter b.warn {
  background: var(--amber);
}

.safety-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.safety-scale strong {
  color: #ffffff;
  font-size: 28px;
}

.liquidity-split {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.liquidity-track {
  display: flex;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.liquidity-track i {
  display: block;
  min-width: 3px;
  height: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.liquidity-track i.blue {
  background: linear-gradient(90deg, #2563eb, #67e8f9);
}

.liquidity-track i.purple {
  background: linear-gradient(90deg, #7c3aed, #c4b5fd);
}

.liquidity-track i.green {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.liquidity-track i.amber {
  background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.liquidity-legend {
  display: grid;
  gap: 10px;
}

.insight-list.compact {
  padding-top: 8px;
}

@media (max-width: 1180px) {
  .dashboard-header {
    background: transparent;
  }

  .overview-main {
    grid-template-columns: 1fr;
  }

  .provider-graph-hero,
  .provider-graph-grid,
  .finance-hero,
  .finance-grid {
    grid-template-columns: 1fr;
  }

  .graph-panel.xl,
  .finance-panel.xl {
    grid-column: auto;
  }

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

  .settlement-flow {
    grid-auto-columns: minmax(48px, 72px);
  }
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 20% 12%, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.16), transparent 26%),
    #070a10;
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
}

.login-shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
}

.login-brand,
.login-card {
  display: grid;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 45%),
    #111827;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.login-brand {
  min-height: 430px;
  align-content: end;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(34, 211, 238, 0.2), transparent 30%),
    linear-gradient(145deg, rgba(34, 197, 94, 0.12), transparent 46%),
    #101827;
}

.login-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-size: 24px;
}

.login-brand span {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.login-brand h1 {
  max-width: 520px;
  margin: 0;
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
}

.login-brand p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.login-card {
  align-content: center;
  gap: 15px;
}

.login-card-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.login-card-head strong {
  color: #ffffff;
  font-size: 24px;
}

.login-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-card p {
  margin: -6px 0 8px;
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  color: #dbe5f4;
  font-size: 13px;
  font-weight: 800;
}

.login-card input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0b1220;
  color: #ffffff;
  outline: 0;
}

.login-card input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.login-card button {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  color: #ffffff;
  font-weight: 900;
}

.login-error {
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.34);
  border-radius: 8px;
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  font-size: 13px;
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
}

.settings-panel.wide {
  grid-column: 1 / -1;
}

.settings-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.settings-form label {
  display: grid;
  gap: 7px;
  color: #dbe5f4;
  font-size: 13px;
  font-weight: 800;
}

.settings-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #0b1220;
  color: #ffffff;
  outline: 0;
}

.settings-form input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.settings-form button {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #2563eb, #22d3ee);
  color: #ffffff;
  font-weight: 900;
}

.settings-message {
  margin: 14px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
}

.settings-message.error {
  border-color: rgba(251, 113, 133, 0.34);
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
}

.mobile-record-list {
  display: none;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 260px;
  }

  .login-brand h1 {
    font-size: 32px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    min-height: 100svh;
  }

  .app-shell {
    display: block;
    min-height: 100svh;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    height: calc(72px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.34);
    -webkit-overflow-scrolling: touch;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .logo,
  .network-pill {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .nav-icons {
    display: flex;
    gap: 8px;
    min-width: max-content;
  }

  .nav-item {
    flex: 0 0 58px;
    width: 58px;
    min-height: 52px;
    padding: 6px 4px;
    font-size: 17px;
  }

  .nav-item span {
    max-width: 52px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-item.active {
    box-shadow: inset 0 4px 0 var(--green), 0 10px 22px rgba(0, 0, 0, 0.24);
  }

  .dashboard {
    width: 100%;
    max-width: none;
    padding: 14px 12px calc(92px + env(safe-area-inset-bottom));
  }

  .dashboard-header {
    position: static;
    display: grid;
    gap: 14px;
    margin: -14px -12px 14px;
    padding: 16px 12px 14px;
  }

  .dashboard-header h1 {
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.08;
  }

  .dashboard-header p {
    max-width: none;
    font-size: 14px;
    line-height: 1.45;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px auto;
    width: 100%;
    gap: 8px;
    align-items: center;
  }

  .range-control {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .range-control select {
    width: 100%;
  }

  .updated-at {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
    order: 4;
  }

  .icon-button {
    width: 42px;
  }

  .logout-button {
    padding: 0 12px;
  }

  .metrics-grid,
  .metrics-grid.four,
  .dashboard-grid.two,
  .overview-main,
  .visual-grid,
  .resource-monitor-grid,
  .finance-grid,
  .settings-grid,
  .activity-layout,
  .diagnostic-hero,
  .diagnostic-facts,
  .detail-grid,
  .chart-row,
  .hbar-row,
  .gauge-card {
    grid-template-columns: 1fr !important;
  }

  .metric-card {
    min-height: 96px;
  }

  .card-header {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .card-title {
    align-items: flex-start;
  }

  .card-title h2 {
    font-size: 18px;
  }

  .card-title small {
    font-size: 13px;
    line-height: 1.35;
  }

  .filter-bar,
  .filter-bar.compact {
    grid-template-columns: 1fr !important;
    padding: 12px;
  }

  .filter-bar input,
  .filter-bar select,
  .reset-button,
  .settings-form input,
  .settings-form button {
    height: 44px;
    font-size: 16px;
  }

  .table-card {
    max-width: 100%;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    width: max-content;
    min-width: 760px;
    table-layout: auto;
  }

  th,
  td {
    padding: 12px 14px;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  td small {
    white-space: normal;
  }

  .latest-transactions-card .tx-table,
  .transaction-dashboard-card .tx-table {
    min-width: 940px;
  }

  .lease-table {
    min-width: 1060px;
  }

  .tx-table .hash-cell,
  .tx-time,
  .latest-transactions-card .type-pill {
    white-space: nowrap;
  }

  .type-pill,
  .status-badge {
    min-height: 28px;
  }

  .visual-panel,
  .table-card,
  .metric-card,
  .finance-hero {
    border-radius: 8px;
  }

  .latest-transactions-card .table-wrap,
  .lease-ledger-card .table-wrap {
    display: none;
  }

  .mobile-record-list {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .mobile-record {
    display: grid;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .mobile-record-top,
  .mobile-record-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-record-top .mono {
    min-width: 0;
    overflow: hidden;
    color: #dce7f7;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-record-main strong {
    color: #ffffff;
    font-size: 16px;
    line-height: 1.2;
    text-align: right;
  }

  .mobile-record-main > span:not(.type-pill) {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-record dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
  }

  .mobile-record dl div {
    min-width: 0;
  }

  .mobile-record dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .mobile-record dd {
    margin: 3px 0 0;
    color: #e6edf7;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .dashboard {
    padding-left: 10px;
    padding-right: 10px;
  }

  .dashboard-header {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-actions {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .logout-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .metric-card strong {
    font-size: 24px;
  }
}
