:root {
  color: #e8edf4;
  background:
    radial-gradient(circle at top left, rgba(103, 156, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(245, 140, 110, 0.14), transparent 28%),
    linear-gradient(180deg, #0d1117 0%, #111722 100%);
  font-family: "Manrope", "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.sidebar {
  padding: 28px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 15, 0.65);
  backdrop-filter: blur(14px);
}

.brand-lockup h1,
.topbar h2,
.page-header h3,
.detail-card h4 {
  margin: 0;
  line-height: 1.05;
}

.brand-lockup h1 {
  margin-top: 10px;
  font-size: 2rem;
}

.brand-lockup p,
.topbar-copy,
.page-header p,
.stat-card p,
.detail-card p,
.provider-list span {
  color: #a9b4c3;
}

.warning-copy {
  color: #ffcf8a;
}

.brand-kicker,
.section-kicker,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(138, 173, 255, 0.24);
  border-radius: 999px;
  background: rgba(115, 145, 255, 0.1);
  color: #9db9ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.nav-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: #cfd7e2;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  transform: translateX(2px);
  border-color: rgba(138, 173, 255, 0.35);
  background: rgba(138, 173, 255, 0.08);
}

.nav-item--active {
  border-color: rgba(138, 173, 255, 0.45);
  background: rgba(138, 173, 255, 0.14);
  color: #ffffff;
}

.main-panel {
  padding: 28px;
}

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

.topbar h2 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 2vw, 2.4rem);
}

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

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

.page-header h3 {
  margin-top: 10px;
  font-size: clamp(1.4rem, 1.8vw, 2rem);
}

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

.stat-card,
.panel,
.detail-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(8, 12, 18, 0.7);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.28);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
}

.stat-card p {
  margin-bottom: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 0.9rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.provider-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.provider-list li {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .page-header,
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.integrity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: help;
  white-space: nowrap;
}

.integrity-badge__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.integrity-badge--verified {
  color: #0f5132;
  background: rgba(25, 135, 84, 0.12);
  border-color: rgba(25, 135, 84, 0.35);
}

.integrity-badge--partial {
  color: #664d03;
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
}

.integrity-badge--unverified {
  color: #842029;
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.4);
}

/* Assistant tier -------------------------------------------------------- */

.assistant-card {
  cursor: pointer;
  background: inherit;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.assistant-card--active {
  border-color: rgba(103, 156, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(103, 156, 255, 0.45);
}

.assistant-chart {
  display: grid;
  gap: 10px;
}

.assistant-chart__row {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  align-items: center;
  gap: 12px;
}

.assistant-chart__label {
  font-weight: 600;
  color: #cbd5ec;
}

.assistant-chart__track {
  position: relative;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.assistant-chart__fill {
  height: 100%;
  background: linear-gradient(90deg, #679cff 0%, #a5c5ff 100%);
  transition: width 220ms ease;
}

.assistant-chart__error-bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.assistant-chart__value {
  font-variant-numeric: tabular-nums;
  color: #d5def0;
}

.assistant-chart__ci {
  color: #8ea0bf;
  font-size: 0.85em;
}

.assistant-chart__na {
  padding-left: 10px;
  color: #8ea0bf;
  font-style: italic;
  line-height: 22px;
}

.assistant-rubric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(103, 156, 255, 0.08);
  border: 1px solid rgba(103, 156, 255, 0.25);
}

.assistant-rubric-pill code {
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 0.85em;
}

.assistant-spot-check {
  overflow-x: auto;
}

.assistant-spot-check__table {
  width: 100%;
  border-collapse: collapse;
}

.assistant-spot-check__table th,
.assistant-spot-check__table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.assistant-spot-check__task {
  font-weight: 600;
}

.assistant-spot-check__focus {
  display: block;
  font-size: 0.8em;
  color: #8ea0bf;
}

.assistant-spot-check__notes {
  color: #cbd5ec;
  font-size: 0.9em;
}

.assistant-spot-check__empty,
.assistant-spot-check__footnote {
  color: #8ea0bf;
  font-size: 0.9em;
}

.assistant-spot-check__footnote code {
  color: #cbd5ec;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .assistant-chart__row {
    grid-template-columns: 1fr;
  }
}
