:root {
  color-scheme: light;
  background: #f3f6fa;
  color: #1f2933;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f6fa;
  color: #1f2933;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

table {
  border-collapse: collapse;
}

.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }
.max-w-xl { max-width: 36rem; }
.w-full { width: 100%; }
.h-9 { height: 2.25rem; }
.w-9 { width: 2.25rem; }
.h-10 { height: 2.5rem; }
.min-h-20 { min-height: 5rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.place-items-center { place-items: center; }
.self-center { align-self: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.divide-y > * + * { border-top: 1px solid #d8dee8; }
.overflow-x-auto { overflow-x: auto; }
.overflow-hidden { overflow: hidden; }
.break-all { word-break: break-all; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.rounded-sm { border-radius: .125rem; }
.rounded-md { border-radius: .375rem; }
.border { border: 1px solid #d8dee8; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top: 1px solid #d8dee8; }
.border-b { border-bottom: 1px solid #d8dee8; }
.border-current { border-color: currentColor; }
.border-line { border-color: #d8dee8; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-teal-700 { border-color: #0f766e; }
.border-amber-200 { border-color: #fde68a; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-red-200 { border-color: #fecaca; }
.border-sky-200 { border-color: #bae6fd; }
.bg-white { background: #fff; }
.bg-panel { background: #f7f9fc; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-teal-700 { background: #0f766e; }
.bg-teal-800 { background: #115e59; }
.bg-amber-50 { background: #fffbeb; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-red-50 { background: #fef2f2; }
.bg-sky-50 { background: #f0f9ff; }
.text-white { color: #fff; }
.text-ink { color: #1f2933; }
.text-muted { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-amber-800 { color: #92400e; }
.text-amber-900 { color: #78350f; }
.text-emerald-700 { color: #047857; }
.text-red-700 { color: #b91c1c; }
.text-sky-700 { color: #0369a1; }
.text-teal-700 { color: #0f766e; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.align-top { vertical-align: top; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.leading-7 { line-height: 1.75rem; }
.leading-relaxed { line-height: 1.625; }
.shadow-table { box-shadow: 0 1px 2px rgba(15, 23, 42, .06); }
.outline-none { outline: none; }
.opacity-60 { opacity: .6; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.table-cell-tight {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hover\:bg-slate-50:hover { background: #f8fafc; }
.hover\:bg-slate-100:hover { background: #f1f5f9; }
.hover\:bg-teal-800:hover { background: #115e59; }
.focus\:border-accent:focus { border-color: #0f766e; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #ccfbf1; }
.focus\:ring-teal-100:focus { box-shadow: 0 0 0 2px #ccfbf1; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
.disabled\:opacity-60:disabled { opacity: .6; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #d8dee8;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: .5rem;
  background: #183153;
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .16);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.25rem;
  border-radius: .5rem;
  padding: .5rem .75rem;
  color: #475569;
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.nav-link:hover {
  background: #f1f5f9;
  color: #1f2933;
}

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

.page-eyebrow {
  margin-bottom: .35rem;
  color: #64748b;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  color: #172033;
  font-size: 1.625rem;
  line-height: 2rem;
  font-weight: 700;
}

.page-description {
  margin: .35rem 0 0;
  max-width: 48rem;
  color: #64748b;
  font-size: .875rem;
  line-height: 1.5rem;
}

.page-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  border-bottom: 1px solid #d8dee8;
  padding: .75rem 1rem;
}

.panel-title {
  color: #172033;
  font-size: .95rem;
  line-height: 1.35rem;
  font-weight: 700;
}

.panel-meta {
  margin-top: .125rem;
  color: #64748b;
  font-size: .75rem;
  line-height: 1rem;
}

.alert {
  border: 1px solid;
  border-radius: .5rem;
  padding: .75rem 1rem;
  font-size: .875rem;
  line-height: 1.35rem;
}

.alert-slate { border-color: #d8dee8; background: #fff; color: #334155; }
.alert-green { border-color: #a7f3d0; background: #ecfdf5; color: #047857; }
.alert-amber { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.alert-red { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.alert-blue { border-color: #bae6fd; background: #f0f9ff; color: #0369a1; }

.empty-state {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 2rem;
  text-align: center;
}

.empty-state-mark {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .75rem;
  border: 1px solid #cbd5e1;
  border-radius: .75rem;
  background:
    linear-gradient(90deg, transparent 47%, #cbd5e1 47%, #cbd5e1 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, #cbd5e1 47%, #cbd5e1 53%, transparent 53%),
    #f8fafc;
}

.metric-card {
  position: relative;
  min-height: 7.25rem;
  padding: 1rem;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: .25rem;
  background: #94a3b8;
}

.metric-label {
  color: #64748b;
  font-size: .8125rem;
  line-height: 1.1rem;
  font-weight: 700;
}

.metric-value {
  margin-top: .5rem;
  color: #172033;
  font-size: 2rem;
  line-height: 2.25rem;
  font-weight: 750;
}

.metric-hint {
  margin-top: .45rem;
  color: #64748b;
  font-size: .75rem;
  line-height: 1.1rem;
}

.metric-green::after { background: #059669; }
.metric-amber::after { background: #d97706; }
.metric-red::after { background: #dc2626; }
.metric-blue::after { background: #0284c7; }
.metric-slate::after { background: #64748b; }

.progress-track {
  width: 100%;
  height: .45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: #64748b;
  transition: width .2s ease;
}

.progress-green { background: #059669; }
.progress-amber { background: #d97706; }
.progress-red { background: #dc2626; }
.progress-blue { background: #0284c7; }
.progress-slate { background: #64748b; }

.skeleton {
  min-height: 5rem;
  border-radius: .5rem;
  background: linear-gradient(90deg, #edf2f7 0%, #f8fafc 45%, #edf2f7 90%);
  background-size: 220% 100%;
  animation: skeleton-pulse 1.2s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: .75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f8fafc;
  padding: .25rem .65rem;
  color: #475569;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 600;
}

.selected-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .9rem;
  border: 1px solid #bae6fd;
  border-radius: .5rem;
  background: #f0f9ff;
  padding: .65rem .8rem;
  color: #0369a1;
  font-size: .875rem;
}

.table-modern th {
  white-space: nowrap;
  border-bottom: 1px solid #d8dee8;
  color: #475569;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 700;
}

.table-modern td {
  border-top: 1px solid #edf1f7;
}

.table-modern tbody tr:hover {
  background: #f8fafc;
}

.score-cell {
  min-width: 6.75rem;
}

.score-number {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}

.score-number strong {
  color: #172033;
  font-size: 1rem;
}

.quote-text {
  color: #172033;
  font-weight: 650;
  line-height: 1.55;
}

.quote-source-link {
  display: inline-block;
  text-decoration: none;
}

.quote-source-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.quote-link-meta {
  margin-top: .35rem;
  color: #6f809a;
  font-size: .76rem;
  line-height: 1rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: #64748b;
  font-size: .75rem;
  line-height: 1rem;
}

.quick-actions {
  display: grid;
  gap: .75rem;
}

.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid #d8dee8;
  border-radius: .5rem;
  background: #fff;
  padding: .8rem .9rem;
}

.quick-action:hover {
  background: #f8fafc;
}

.run-card {
  display: block;
  border: 1px solid #d8dee8;
  border-radius: .5rem;
  padding: .9rem;
}

.quote-detail {
  border-left: .25rem solid #183153;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_360px\] { grid-template-columns: minmax(0, 1fr) 360px; }
  .lg\:grid-cols-\[minmax\(0\,1fr\)_minmax\(420px\,0\.9fr\)\] { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); }
}

@media (max-width: 720px) {
  .page-header,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .page-actions,
  .panel-actions {
    justify-content: flex-start;
  }

  .nav-link {
    padding: .45rem .55rem;
  }
}

/* Workbench shell inspired by the reference image */
:root {
  --accent: #4169f6;
  --accent-strong: #2850ef;
  --sidebar: #08213d;
  --sidebar-deep: #061a31;
  --surface: #ffffff;
  --page: #f6f8fc;
  --line: #e3e9f3;
  --muted: #71819a;
}

body {
  background:
    radial-gradient(circle at 80% 0%, rgba(65, 105, 246, .08), transparent 34rem),
    var(--page);
}

.app-shell {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  min-height: 100vh;
  background: var(--page);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(18, 53, 96, .72), transparent 18rem),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  color: #d9e6fa;
  padding: 1.4rem 1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .25rem .25rem 1.7rem;
}

.sidebar-logo {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: .75rem;
  background: linear-gradient(145deg, #5b83ff, #3159f5);
  color: #fff;
  box-shadow: 0 .9rem 1.6rem rgba(49, 89, 245, .26);
}

.sidebar-title {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.35rem;
  font-weight: 760;
}

.sidebar-subtitle {
  display: block;
  margin-top: .18rem;
  color: #8fa3c4;
  font-size: .76rem;
  line-height: 1.1rem;
}

.sidebar-nav {
  display: grid;
  gap: .45rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 3rem;
  border-radius: .68rem;
  color: #b7c7df;
  padding: 0 .9rem;
  font-size: .96rem;
  line-height: 1.2rem;
  font-weight: 650;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.sidebar-link-active {
  background: linear-gradient(135deg, #5e84ff, #3962f5);
  color: #fff;
  box-shadow: 0 .8rem 1.4rem rgba(44, 87, 245, .26);
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.8rem .6rem .7rem;
  color: #8fa3c4;
  font-size: .78rem;
  line-height: 1rem;
}

.sidebar-section-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .12);
}

.sidebar-nav-compact .sidebar-link {
  min-height: 2.75rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1rem .4rem .2rem;
}

.sidebar-avatar,
.person-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 750;
}

.sidebar-avatar {
  width: 2.65rem;
  height: 2.65rem;
  background: #fff;
  color: #244070;
}

.sidebar-user-name {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.sidebar-user-role {
  margin-top: .15rem;
  color: #8fa3c4;
  font-size: .76rem;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 5.25rem;
  background: rgba(246, 248, 252, .88);
  border-bottom: 1px solid rgba(227, 233, 243, .8);
  backdrop-filter: blur(18px);
  padding: 0 1.75rem;
}

.global-search {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: min(25rem, 42vw);
  min-height: 3rem;
  border: 1px solid #d9e2ef;
  border-radius: .85rem;
  background: rgba(255, 255, 255, .86);
  color: #8aa0bd;
  padding: 0 .85rem;
  box-shadow: 0 .6rem 1.8rem rgba(15, 35, 65, .04);
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: .92rem;
}

.global-search span {
  color: #7b8da8;
  font-size: .78rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid #d9e2ef;
  border-radius: .8rem;
  background: #fff;
  color: #60718c;
}

.topbar-primary,
.btn-primary {
  background: linear-gradient(135deg, #4e75ff, #3159f5);
  border-color: #3159f5;
  color: #fff;
  box-shadow: 0 .75rem 1.35rem rgba(49, 89, 245, .2);
}

.topbar-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: .8rem;
  padding: 0 1rem;
  font-size: .92rem;
  font-weight: 750;
}

.content-shell {
  max-width: 104rem;
  margin: 0 auto;
  padding: 1.35rem 1.75rem 1.5rem;
}

.panel-surface {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1rem 2.4rem rgba(19, 42, 75, .055);
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.5rem;
  border: 1px solid;
  border-radius: .68rem;
  padding: 0 .85rem;
  font-size: .875rem;
  line-height: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn-secondary {
  border-color: #d7e0ed;
  background: #fff;
  color: #233554;
}

.btn-secondary:hover,
.icon-button:hover {
  background: #f7f9fd;
}

.btn:disabled,
.topbar-primary:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.form-control {
  width: 100%;
  min-height: 2.65rem;
  border: 1px solid #d7e0ed;
  border-radius: .7rem;
  background: #fff;
  color: #172033;
  padding: 0 .8rem;
  font-size: .9rem;
  outline: none;
}

.form-textarea {
  min-height: 6rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(65, 105, 246, .14);
}

.page-title {
  color: #0e1b33;
  font-size: 2rem;
  line-height: 2.35rem;
}

.page-description {
  color: #71819a;
  font-size: .98rem;
}

.page-eyebrow {
  color: #51637f;
  text-transform: none;
  font-size: .92rem;
}

.metric-card {
  min-height: 7rem;
  border-radius: 1rem;
}

.metric-card::after {
  display: none;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #dfe6f1;
  padding-bottom: 1rem;
}

.dashboard-greeting {
  margin: .65rem 0 .2rem;
  color: #16233c;
  font-size: 1.04rem;
  font-weight: 760;
}

.dashboard-note {
  color: #7a8ba6;
  font-size: .92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 8.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: 1.2rem;
  box-shadow: 0 .8rem 2rem rgba(19, 42, 75, .055);
}

.stat-icon {
  display: grid;
  width: 3.45rem;
  height: 3.45rem;
  place-items: center;
  border-radius: .85rem;
  color: #fff;
  flex: 0 0 auto;
}

.stat-blue { background: linear-gradient(145deg, #5d82ff, #3159f5); }
.stat-orange { background: linear-gradient(145deg, #ffb02e, #ff8a00); }
.stat-green { background: linear-gradient(145deg, #42d681, #21b964); }
.stat-red { background: linear-gradient(145deg, #ff6d5f, #f0372e); }
.stat-purple { background: linear-gradient(145deg, #b66cff, #8e4ee6); }

.stat-label {
  color: #5f708b;
  font-size: .86rem;
  font-weight: 750;
}

.stat-value {
  margin-top: .25rem;
  color: #0f1c34;
  font-size: 1.75rem;
  line-height: 2rem;
  font-weight: 820;
}

.stat-delta {
  margin-top: .45rem;
  color: #7b8da8;
  font-size: .78rem;
}

.delta-green { color: #16b76b; }
.delta-red { color: #ef5147; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24.5rem;
  gap: 1.25rem;
}

.dashboard-main {
  display: grid;
  gap: 1.25rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
}

.chart-panel {
  min-height: 18rem;
}

.line-chart {
  width: 100%;
  height: 13.8rem;
  display: block;
}

.chart-axis {
  stroke: #e6edf6;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: #4169f6;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-area {
  fill: rgba(65, 105, 246, .11);
}

.chart-point {
  fill: #4169f6;
  stroke: #fff;
  stroke-width: 3;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 13.8rem;
  padding: 1rem;
}

.donut {
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 999px;
  background: conic-gradient(var(--donut-stops, #4169f6 0deg 360deg));
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 2.9rem;
  border-radius: inherit;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf2f8;
}

.coverage-list {
  display: grid;
  gap: .75rem;
}

.coverage-item {
  display: grid;
  grid-template-columns: .7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .6rem;
  color: #60718c;
  font-size: .86rem;
}

.coverage-swatch {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
}

.dashboard-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.task-list,
.ranking-list {
  display: grid;
  gap: .35rem;
  padding: .75rem 1rem 1rem;
}

.task-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  border-bottom: 1px solid #edf2f8;
  padding: .6rem 0;
}

.task-item:last-child,
.quote-table tbody tr:last-child td {
  border-bottom: 0;
}

.person-avatar {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(145deg, #edf3ff, #dbe7ff);
  color: #3159f5;
  font-size: .78rem;
}

.task-title {
  color: #22334f;
  font-size: .88rem;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-meta {
  margin-top: .15rem;
  color: #7a8ba6;
  font-size: .76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-score {
  color: #263957;
  font-size: 1rem;
  font-weight: 780;
}

.quote-table-wrap {
  padding: 0 1rem 1rem;
}

.quote-table {
  width: 100%;
  border: 1px solid #edf2f8;
  border-radius: .85rem;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.quote-table th {
  background: #f8faff;
  color: #6f809a;
  font-size: .78rem;
  font-weight: 760;
  padding: .85rem 1rem;
  text-align: left;
}

.quote-table td {
  border-bottom: 1px solid #edf2f8;
  color: #40516c;
  font-size: .86rem;
  padding: .78rem 1rem;
}

.score-pill,
.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.45rem;
  border-radius: .45rem;
  background: #eafbf2;
  color: #13a964;
  font-size: .78rem;
  font-weight: 790;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: .45rem;
  padding: .25rem .55rem;
  background: #fff4df;
  color: #f09a13;
  font-size: .76rem;
  font-weight: 760;
  white-space: nowrap;
}

.ranking-item {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 3rem;
  gap: .75rem;
  align-items: center;
  padding: .45rem 0;
}

.rank-index {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: .42rem;
  background: #eef3fb;
  color: #6d7f99;
  font-size: .76rem;
  font-weight: 800;
}

.rank-index-top {
  background: linear-gradient(145deg, #ffb02e, #ff8a00);
  color: #fff;
}

.rank-name {
  color: #33445f;
  font-size: .88rem;
  font-weight: 750;
}

.rank-bar {
  margin-top: .35rem;
  height: .28rem;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}

.rank-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4169f6, #7d9bff);
}

.rank-value {
  color: #40516c;
  font-size: .88rem;
  font-weight: 760;
  text-align: right;
}

.section-link {
  color: #4169f6;
  font-size: .82rem;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .stat-grid,
  .dashboard-grid,
  .chart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .topbar {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
    padding: 1rem;
  }

  .global-search {
    width: 100%;
  }

  .content-shell {
    padding: 1rem;
  }

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