:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #11151d;
  --panel-soft: #151a24;
  --border: #222937;
  --border-soft: rgba(255, 255, 255, 0.065);
  --text: #e8edf5;
  --muted: #8b95a7;
  --dim: #616b7d;
  --accent: #7c9cff;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #fb7185;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas,
    monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, black, transparent);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at 12% -8%, rgba(124, 156, 255, 0.16), transparent 65%),
    radial-gradient(600px 420px at 96% 2%, rgba(94, 234, 212, 0.09), transparent 65%),
    radial-gradient(900px 600px at 55% 108%, rgba(139, 92, 246, 0.08), transparent 70%);
}

svg {
  display: block;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

code {
  font-family: var(--mono);
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 17px 32px;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 15, 0.88),
    rgba(8, 10, 15, 0.62)
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #a9bbff;
  border: 1px solid rgba(124, 156, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(124, 156, 255, 0.18), rgba(94, 234, 212, 0.05)),
    #0d1119;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-text small {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 4px;
  padding: 6px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
}

.live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.7;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn.primary {
  color: #071018;
  background: linear-gradient(135deg, #b6c6ff, #7c9cff 48%, #5eead4);
  box-shadow:
    0 6px 24px rgba(124, 156, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #c5d1ff, #8faaff 48%, #74f0dc);
}

.btn.ghost {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.018);
}

.btn.ghost:hover {
  color: var(--text);
  border-color: #344054;
  background: rgba(255, 255, 255, 0.04);
}

.btn.icon-only {
  width: 37px;
  height: 37px;
  padding: 0;
}

.btn.icon-only svg {
  width: 17px;
  height: 17px;
}

.btn.small {
  padding: 7px 12px;
  font-size: 11px;
}

.btn.is-loading .refresh-icon {
  animation: spin 0.9s linear infinite;
}

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px 56px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.28);
  animation: pulse 2.6s ease-out infinite;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, #c7d2fe 0%, #7c9cff 48%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-shrink: 0;
  gap: 9px;
}

.meta-item {
  min-width: 96px;
  padding: 12px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
}

.meta-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-item strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.global-error,
.warning-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px 15px;
  border-radius: 13px;
  font-size: 12px;
  line-height: 1.55;
}

.global-error {
  color: #fecdd3;
  border: 1px solid rgba(251, 113, 133, 0.24);
  background: rgba(251, 113, 133, 0.075);
}

.global-error svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.warning-bar {
  flex-direction: column;
  gap: 5px;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background: rgba(251, 191, 36, 0.06);
}

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

.summary-card {
  position: relative;
  min-width: 0;
  min-height: 178px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  animation: fade-up 0.5s ease both;
}

.summary-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.summary-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 17px;
  border: 1px solid rgba(124, 156, 255, 0.16);
  border-radius: 10px;
  color: #a9bbff;
  background: rgba(124, 156, 255, 0.09);
}

.summary-icon svg {
  width: 17px;
  height: 17px;
}

.summary-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.summary-value {
  margin: 4px 0 9px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 650;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.summary-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.45;
}

.delta.up {
  color: var(--green);
}

.delta.down {
  color: #fda4af;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 13px;
  margin-bottom: 36px;
}

.panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.008)
  );
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-head .eyebrow {
  margin-bottom: 7px;
}

.panel h2,
.section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.panel-note {
  flex-shrink: 0;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  font-size: 10px;
  white-space: nowrap;
}

.trend {
  height: 224px;
  overflow: hidden;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  height: 100%;
  padding-top: 8px;
}

.trend-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  height: 100%;
  min-width: 0;
}

.trend-bar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.trend-bar {
  width: min(28px, 84%);
  min-height: 2px;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #aebfff, #5b7cfa);
  box-shadow: 0 0 18px rgba(91, 124, 250, 0.12);
  transition:
    height 0.5s ease,
    filter 0.18s ease;
}

.trend-col:hover .trend-bar {
  filter: brightness(1.28);
}

.trend-bar.is-empty {
  background: #202633;
  box-shadow: none;
}

.trend-label {
  height: 13px;
  color: var(--dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trend-label.is-hidden {
  visibility: hidden;
}

.split-rows {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding-top: 2px;
}

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

.split-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d2e0;
  font-size: 12px;
}

.split-name i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.split-value {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.split-value small {
  margin-left: 4px;
  color: var(--dim);
  font-size: 9.5px;
  font-weight: 400;
}

.meter {
  height: 8px;
  margin: 8px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #5eead4);
  transition: width 0.55s ease;
}

.meter.subtle {
  height: 6px;
}

.split-foot {
  color: var(--dim);
  font-size: 9.5px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 15px;
}

.section-head .eyebrow {
  margin-bottom: 7px;
}

.section-note {
  color: var(--dim);
  font-size: 10.5px;
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 36px;
}

.provider-card {
  --accent: #7c9cff;
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 17px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.008)
  );
  animation: fade-up 0.5s ease both;
}

.provider-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.provider-card::after {
  content: "";
  position: absolute;
  top: -104px;
  right: -104px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: 0.1;
  pointer-events: none;
}

.provider-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.provider-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.provider-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.provider-title h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip {
  flex: none;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 5px;
  color: color-mix(in srgb, var(--accent) 85%, white);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.provider-source {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-period {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.provider-period strong {
  color: var(--text);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-ok {
  border-color: rgba(74, 222, 128, 0.18);
  color: var(--green);
  background: rgba(74, 222, 128, 0.065);
}

.status-partial {
  border-color: rgba(251, 191, 36, 0.18);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.065);
}

.status-error {
  border-color: rgba(251, 113, 133, 0.2);
  color: var(--red);
  background: rgba(251, 113, 133, 0.065);
}

.status-unconfigured {
  border-color: rgba(148, 163, 184, 0.18);
  color: #98a4b8;
  background: rgba(148, 163, 184, 0.06);
}

.window-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.window-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #c9d2e0;
  font-size: 11.5px;
}

.window-top strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.window .meter {
  height: 8px;
  margin: 8px 0 6px;
  background: rgba(255, 255, 255, 0.065);
}

.window .meter i {
  background: linear-gradient(
    90deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 45%, white)
  );
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.window-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  color: var(--dim);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.balance-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 13px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.balance-label {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.balance-label small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
}

.balance-row strong {
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.balance-detail {
  width: 100%;
  color: var(--dim);
  font-size: 9.5px;
}

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

.metric {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--border-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
}

.metric span {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--dim);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  display: block;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.local-strip {
  display: flex;
  gap: 20px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px dashed var(--border);
}

.local-strip span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.local-strip i {
  color: var(--dim);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.local-strip strong {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.local-strip small {
  color: var(--dim);
  font-size: 8px;
}

.provider-notes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.provider-notes li {
  position: relative;
  padding-left: 11px;
  color: var(--dim);
  font-size: 9.8px;
  line-height: 1.55;
}

.provider-notes li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

.provider-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 11px;
  border: 1px solid rgba(251, 113, 133, 0.16);
  border-radius: 10px;
  color: #fda4af;
  background: rgba(251, 113, 133, 0.055);
  font-size: 10px;
  line-height: 1.5;
}

.provider-error svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.provider-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border-soft);
  color: var(--dim);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 11px;
  color: var(--dim);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.models-panel {
  margin-bottom: 36px;
}

.models-panel .panel-head {
  margin-bottom: 14px;
}

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

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th {
  padding: 0 11px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #c9d2e0;
  font-size: 11.5px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-provider {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.table-provider i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.model-name {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  color: #dbe4f2;
  background: rgba(255, 255, 255, 0.035);
  font-size: 10.5px;
}

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

.models-panel .btn.small {
  margin-top: 13px;
}

.footer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 2px 0;
  border-top: 1px solid var(--border-soft);
  color: var(--dim);
  font-size: 9.5px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.footer-item span {
  color: var(--dim);
}

.footer-item code {
  overflow: hidden;
  max-width: 360px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-spacer {
  flex: 1;
}

.footer-brand {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-link {
  color: var(--muted);
  font-size: 9.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.footer-link:hover {
  color: var(--text);
  border-color: var(--accent);
}

.token-dialog {
  width: calc(100% - 32px);
  max-width: 430px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
}

.token-dialog::backdrop {
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #11151d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.dialog-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 15px;
  border: 1px solid rgba(124, 156, 255, 0.2);
  border-radius: 11px;
  color: #a9bbff;
  background: rgba(124, 156, 255, 0.09);
}

.dialog-icon svg {
  width: 19px;
  height: 19px;
}

.dialog-card h2 {
  margin: 0 0 9px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.dialog-card p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.68;
}

.dialog-card p code {
  color: #a9bbff;
  font-size: 10.5px;
}

.field {
  display: block;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #0b0e14;
  font-size: 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus {
  border-color: #5b7cfa;
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.15);
}

.dialog-hint {
  min-height: 16px;
  margin: 7px 0 0 !important;
  color: var(--amber);
  font-size: 10px !important;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 50;
  max-width: min(90vw, 440px);
  padding: 10px 16px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(17, 24, 22, 0.92);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.4);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  backdrop-filter: blur(14px);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  border-color: rgba(251, 113, 133, 0.24);
  color: #fecdd3;
  background: rgba(26, 15, 19, 0.94);
}

.skeleton-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(34, 41, 55, 0.75);
  background: #0e1219;
}

.skeleton-card::after,
.skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(255, 255, 255, 0.045) 45%,
    transparent 70%
  );
  animation: shimmer 1.7s infinite;
}

.skeleton-block {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-radius: 11px;
  background: #0d1118;
}

tbody .skeleton-block {
  height: 90px;
}

.is-busy {
  cursor: progress;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.7);
  }
  70% {
    opacity: 0;
    transform: scale(1.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes fade-up {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 26px;
    padding-top: 38px;
  }
}

@media (max-width: 860px) {
  .topbar,
  main {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .live-pill {
    display: none;
  }

  .hero-meta {
    width: 100%;
  }

  .meta-item {
    flex: 1;
    min-width: 0;
  }

  .footer {
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .footer-spacer {
    display: none;
  }

  .footer-item code {
    max-width: 60vw;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .brand-text small {
    display: none;
  }

  .btn.primary span {
    display: none;
  }

  .btn.primary {
    width: 37px;
    height: 37px;
    padding: 0;
  }

  main {
    padding-bottom: 36px;
  }

  .hero {
    padding-top: 27px;
    padding-bottom: 24px;
  }

  h1 {
    font-size: 36px;
  }

  .lede {
    font-size: 12.5px;
  }

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

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

  .summary-icon {
    margin-bottom: 13px;
  }

  .provider-card,
  .panel {
    padding: 18px;
  }

  .panel-head {
    margin-bottom: 16px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .trend {
    height: 190px;
  }

  .trend-bars {
    gap: 3px;
  }

  .trend-col .trend-label {
    visibility: hidden;
  }

  .trend-col:nth-child(1) .trend-label,
  .trend-col:nth-child(5) .trend-label,
  .trend-col:nth-child(9) .trend-label,
  .trend-col:nth-child(14) .trend-label {
    visibility: visible;
  }

  .trend-col:last-child .trend-label {
    align-self: flex-end;
  }

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

  .local-strip {
    gap: 14px;
  }

  .dialog-card {
    padding: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
