:root {
  --color-bg: #0f172a;
  --color-card: #1e293b;
  --color-accent: #38bdf8;
  --color-muted: #94a3b8;
  --color-success: #4ade80;
  --color-warning: #facc15;
  --color-danger: #f87171;
  --color-text: #e2e8f0;
  --radius: 12px;
  --shadow: 0 12px 30px rgba(14, 23, 42, 0.4);
  --ui-scale: 1.2;
  --layout-page-width: min(1500px, 99vw);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
  color: var(--color-text);
  min-height: 100vh;
  zoom: var(--ui-scale);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 4000;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.48);
  transition: transform 0.14s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: none;
}

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

a:hover {
  text-decoration: underline;
}

.link {
  color: var(--color-accent);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
  background: rgba(56, 189, 248, 0.28);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.18);
}

.button.secondary:hover {
  background: rgba(148, 163, 184, 0.25);
}

.button.tertiary {
  border-color: transparent;
  background: rgba(148, 163, 184, 0.14);
  color: var(--color-muted);
}

.button.tertiary:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.24);
  color: var(--color-text);
}

.button.small {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0f172a;
}

.meta.warning {
  color: var(--color-warning);
}

.meta.small {
  font-size: 0.78rem;
  opacity: 0.85;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page {
  width: var(--layout-page-width);
  min-width: 0;
  max-width: none;
  margin-inline: auto;
  padding: 8px 10px 12px;
  box-sizing: border-box;
}

body.viewer-fullscreen .page {
  width: var(--layout-page-width);
  min-width: 0;
  max-width: none;
  margin-inline: auto;
  padding: 8px 10px 12px;
}

body.slide-viewer-page .page {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 12px 20px 20px;
}

body.slide-viewer-page.viewer-fullscreen .page {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 12px 20px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

@media (max-width: 840px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .header-actions {
    width: 100%;
    align-items: flex-start;
  }
}

header h1 {
  font-size: 2.4rem;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-muted);
  margin: 0 0 6px;
}

.hero {
  margin-bottom: 40px;
  padding: 36px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), rgba(76, 29, 149, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 30px 70px rgba(10, 14, 35, 0.65);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.hero-copy h1 {
  margin: 8px 0;
  font-size: 2.6rem;
}

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

.hero-copy h1 {
  max-width: 18ch;
}

.hero-copy p,
.hero-copy .meta,
.card p,
.card .meta,
.section > p {
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 24px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.form-grid input,
.form-grid textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: var(--color-text);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-grid textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  grid-column: 1 / -1;
}

.hero-figure {
  position: relative;
  min-height: 220px;
}

.hero-figure-ring,
.hero-figure-pulse,
.hero-figure-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}

.hero-figure-ring {
  width: 360px;
  height: 360px;
  border: 2px solid rgba(56, 189, 248, 0.4);
  animation: rotate 18s linear infinite;
}

.hero-figure-pulse {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-figure-core {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: none;
}

.hero-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(15, 23, 42, 0.6));
}

@media (max-width: 900px) {
  .hero-logo {
    width: 240px;
  }
  .hero-figure-core {
    width: 240px;
    height: 240px;
  }
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

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

.dataset-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dataset-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.6);
}

.dataset-card.active {
  border-color: var(--color-accent);
  box-shadow: 0 35px 60px rgba(14, 165, 233, 0.4);
}

.dataset-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dataset-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.dataset-card-count {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.dataset-card-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
  min-height: 48px;
}

.dataset-card-meta {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.dataset-card-meta > div {
  display: flex;
  flex-direction: column;
}

.dataset-card-stat {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.dataset-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.dataset-card-cta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--color-accent);
}

.run-legend {
  margin: 12px 0 18px;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  background: rgba(148, 163, 184, 0.25);
}

.legend-swatch.complete {
  background: rgba(74, 222, 128, 0.5);
}

.legend-swatch.pending {
  background: rgba(250, 204, 21, 0.5);
}

.legend-swatch.missing {
  background: rgba(248, 113, 113, 0.5);
}

.download-panel {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(6px, env(safe-area-inset-top, 0px)) clamp(4px, 0.8vh, 10px) max(6px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.download-panel[data-open="1"] {
  opacity: 1;
  pointer-events: auto;
}

.download-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(6px);
}

.download-panel-card {
  position: relative;
  width: min(1500px, 99vw);
  height: min(95dvh, calc(100dvh - 12px));
  max-height: min(95dvh, calc(100dvh - 12px));
  min-height: min(74dvh, 960px);
  margin-bottom: 0;
  border-radius: 30px 30px 18px 18px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.88));
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.8);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(42px);
  transition: transform 0.35s ease;
  overflow: hidden;
}

.download-panel.download-panel-expanded .download-panel-card {
  width: min(1700px, 99.5vw);
  height: min(99dvh, calc(100dvh - 4px));
  max-height: min(99dvh, calc(100dvh - 4px));
  min-height: min(86dvh, 1200px);
}

.download-panel.download-panel-sub-expanded .download-panel-card {
  width: min(1820px, 99.7vw);
  height: min(100dvh, calc(100dvh - 2px));
  max-height: min(100dvh, calc(100dvh - 2px));
  min-height: min(92dvh, 1320px);
}


.download-panel[data-open="1"] .download-panel-card {
  transform: translateY(0);
}

.download-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.download-panel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-end;
}

.download-panel-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.download-panel-control select {
  min-width: 260px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.download-panel-control select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.download-panel-status {
  flex: 1 1 200px;
  font-size: 0.85rem;
  color: var(--color-muted);
  min-height: 24px;
}

.download-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 12px;
  padding-bottom: 56px;
  scroll-padding-bottom: 56px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.download-panel-placeholder {
  text-align: center;
  padding: 48px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.5);
}

.download-category {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-category-accordion {
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 30px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.download-category-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.download-category-summary::marker,
.download-category-summary::-webkit-details-marker {
  display: none;
}

.download-category-accordion[open] > .download-category-summary {
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.75);
}

.download-panel-body .download-category-accordion[open] {
  max-height: none;
  overflow: visible;
}

.download-panel-body .download-category-accordion[open] > .download-category-summary {
  position: sticky;
  top: 0;
  z-index: 2;
}

.download-category-chevron {
  color: rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.download-category-accordion[open] > .download-category-summary .download-category-chevron {
  transform: rotate(90deg);
}

.download-category-panel {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.download-category-accordion[open] > .download-category-panel {
  max-height: none;
  overflow: visible;
  padding-right: 10px;
  padding-bottom: 24px;
}

.download-category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
}

.download-category-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.download-category-header .category-aux-link {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.download-category-header .category-aux-link:hover {
  text-decoration: none;
}

.download-category-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(56, 189, 248, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.download-grid-secondary {
  margin-top: 12px;
}

.download-accordion {
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 10px 14px 16px;
  background: rgba(15, 23, 42, 0.55);
  min-height: 0;
}

.download-target-accordion {
  margin-top: 0;
}

.download-accordion-summary {
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  list-style: none;
}

.download-accordion-summary::marker,
.download-accordion-summary::-webkit-details-marker {
  display: none;
}

.download-accordion-summary::after {
  content: "▸";
  float: right;
  transition: transform 0.2s ease;
  color: var(--color-text);
}

.download-accordion[open] > .download-accordion-summary::after {
  transform: rotate(90deg);
}

.download-accordion[open] > .download-accordion-summary {
  margin-bottom: 12px;
  color: var(--color-text);
}

.download-category-panel .download-accordion[open] {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  padding-bottom: 0;
}

.download-category-panel .download-target-accordion[open] {
  max-height: none;
}

.download-category-panel .download-accordion[open] > :not(summary) {
  min-height: 0;
}

.download-category-panel .download-accordion[open] > .download-accordion-summary {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.92);
  padding-bottom: 8px;
}

.download-group {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.7);
  margin-top: 12px;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.55);
}

.download-target-accordion .download-card-slidemodel .download-card-head h4 {
  display: none;
}

.download-group-title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.download-subgrid {
  margin-top: 6px;
}

.download-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.78));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-card-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-card h4 {
  margin: 0;
  font-size: 1.02rem;
}

.download-card-summary {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
}

.download-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.download-card-meta span {
  word-break: break-all;
}

.download-card-remote {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.download-card-remote a {
  color: var(--color-accent);
  text-decoration: underline;
}

.download-card-remote .remote-icon {
  font-size: 0.9rem;
}

.download-card-remote .remote-note {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-left: 4px;
}

.download-remote-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.75);
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
}

.download-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.download-card-badges .badge {
  padding: 4px 10px;
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-accent);
}

.download-card-notes {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin: 0;
}

.download-card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-card-slidemodel {
  gap: 16px;
}

.slide-model-encoder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.slide-model-encoder-column {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-model-encoder-column h5 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.slide-model-splits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.slide-model-splits .button {
  flex: 1 1 130px;
  text-align: center;
}

.slide-model-splits .button.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.slide-model-actions {
  display: flex;
  justify-content: flex-end;
}

.download-card-inference {
  gap: 18px;
}

.inference-encoder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.inference-encoder-column {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inference-encoder-column h5 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.inference-variant-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inference-variant {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inference-variant-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-foreground);
}

.inference-variant-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.inference-variant-meta {
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.inference-variant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inference-variant-actions .button {
  flex: 1 1 140px;
}

.inference-note {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.inference-groups-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inference-group-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inference-group-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-foreground);
}

.inference-encoder-block {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.inference-encoder-block h4 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-accent);
}

.inference-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.inference-chart {
  min-height: 260px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  background: #ffffff;
  padding: 6px;
}

.inference-metrics-table table th,
.inference-metrics-table table td {
  font-size: 0.8rem;
}

.inference-metrics-table table th {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inference-metrics-table table td {
  text-align: center;
}

.inference-encoder-block .meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.plot-visibility-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 10px;
}

.plot-visibility-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
}

.plot-visibility-option select {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.85rem;
  padding: 2px 8px;
  color: #0f172a;
}

body.download-panel-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .dataset-card-meta {
    flex-direction: column;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .download-panel {
    align-items: stretch;
    padding: 0;
  }
  .download-panel-card {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin-bottom: 0;
    padding: 24px 20px 30px;
  }
  .download-panel-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .download-panel-control select {
    width: 100%;
  }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(16px);
}

.card-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.card-body[hidden] {
  display: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.6);
}

.launchpad-utility-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.launchpad-search-field {
  width: 100%;
  max-width: 520px;
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 16px 6px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.launchpad-search-field input[type='search'] {
  width: 100%;
  margin-top: 6px;
}

.launchpad-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.launchpad-run-column,
.launchpad-form-column {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.launchpad-campaigns-row {
  margin-top: 24px;
}

.launchpad-filters {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.launchpad-filter-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: var(--color-text);
  padding: 8px 14px;
}

.launchpad-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.launchpad-hint {
  margin: 0;
}

.launchpad-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.45);
}

.launchpad-filter input {
  accent-color: var(--color-accent);
}

.launchpad-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.launchpad-run-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-right: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  align-content: flex-start;
}

.launchpad-run-list[data-run-list-loaded='1'] {
  opacity: 1;
  transform: translateY(0);
}

.launchpad-run {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(12, 18, 34, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 86px;
  width: 100%;
  min-width: 0;
}

.launchpad-run input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--color-accent);
}

.launchpad-run.needs-tiling {
  opacity: 0.75;
}

.launchpad-run-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.launchpad-run-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.launchpad-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.launchpad-run-meta,
.launchpad-run-tags {
  display: none;
  opacity: 0;
  margin-top: 0;
  transition: opacity 0.2s ease;
}

.launchpad-run-tags {
  flex-wrap: wrap;
  gap: 8px;
}

.launchpad-run:hover,
.launchpad-run:focus-within {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 12px 24px rgba(8, 12, 24, 0.4);
}

.launchpad-run:hover .launchpad-run-meta,
.launchpad-run:focus-within .launchpad-run-meta {
  display: block;
  opacity: 1;
  margin-top: 6px;
}

.launchpad-run:hover .launchpad-run-tags,
.launchpad-run:focus-within .launchpad-run-tags {
  display: flex;
  opacity: 1;
  margin-top: 4px;
}

.launchpad-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
}

.launchpad-tag.success {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.12);
  color: var(--color-success);
}

.launchpad-tag.warning {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: var(--color-warning);
}

.launchpad-run-targets {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.launchpad-run-target {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.75rem;
}

.launchpad-run-target input {
  margin: 0;
}

.launchpad-run-target .launchpad-tag {
  font-size: 0.6rem;
  padding: 1px 6px;
}

.launchpad-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.launchpad-form select,
.launchpad-form input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.35);
  color: var(--color-text);
  padding: 10px 12px;
}

.launchpad-job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  margin-top: 12px;
}

.launchpad-job {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  padding: 14px;
  background: rgba(12, 18, 34, 0.6);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.05);
}

.launchpad-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.launchpad-job-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.launchpad-job-summary {
  margin-top: 4px;
}

.launchpad-divider {
  width: 100%;
  height: 1px;
  margin: 18px 0;
  background: rgba(148, 163, 184, 0.2);
}

.launchpad-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.launchpad-campaign-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 16px;
  background: rgba(9, 13, 26, 0.7);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.04);
}

.launchpad-campaign-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}

.launchpad-campaign-header h4 {
  margin: 0;
  font-size: 1rem;
}

.launchpad-campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.launchpad-progress-meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
  margin-top: 10px;
}

.launchpad-progress-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.launchpad-campaign-runs {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.launchpad-campaign-remove {
  margin-left: auto;
}

.launchpad-job-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.launchpad-job-card.status-failed {
  border-color: rgba(248, 113, 113, 0.4);
}

.launchpad-job-card.status-running {
  border-color: rgba(56, 189, 248, 0.6);
}

.launchpad-job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.launchpad-job-card-title {
  font-weight: 600;
}

.launchpad-status-pill {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.launchpad-job-card-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.launchpad-job-card-details {
  font-size: 0.85rem;
  line-height: 1.4;
}

.launchpad-job-card-links {
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-muted);
}

.launchpad-job-card-progress {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.launchpad-job-card-progress .meta {
  margin: 0;
}

.launchpad-job-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1280px) {
  .launchpad-run-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 1024px) {
  .launchpad-body {
    grid-template-columns: 1fr;
  }
  .launchpad-run-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 720px) {
  .launchpad-run-list {
    grid-template-columns: 1fr;
  }
}

.resource-links {
  margin: 72px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resource-links-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.resource-link-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.resource-accordion-list {
  display: grid;
  gap: 12px;
}

.resource-accordion {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.48);
  overflow: hidden;
}

.resource-accordion-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  background: linear-gradient(140deg, rgba(18, 28, 52, 0.84), rgba(10, 16, 30, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  font-weight: 600;
}

.resource-accordion-summary::marker,
.resource-accordion-summary::-webkit-details-marker {
  display: none;
}

.resource-accordion[open] .resource-accordion-summary {
  border-bottom-color: rgba(56, 189, 248, 0.34);
}

.resource-accordion-panel {
  padding: 14px 16px 16px;
}

.resource-accordion-panel .resource-link-grid {
  margin-top: 0;
}

.resource-accordion-panel pre {
  margin: 12px 0 0;
  max-height: 280px;
  overflow: auto;
}

.resource-accordion-panel pre code {
  white-space: pre;
}

.citation-list {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}

.citation-item {
  color: rgba(226, 232, 240, 0.96);
  line-height: 1.6;
}

.citation-item a {
  word-break: break-word;
}

.citation-download {
  margin-top: 14px;
}

.about-card {
  margin: 48px 0;
}

.about-grid {
  display: block !important;
  margin-top: 24px;
}

.about-grid article {
  margin-bottom: 28px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(10, 14, 35, 0.45);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.about-grid article:last-of-type {
  margin-bottom: 0;
}

.about-grid h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.about-grid ul,
.about-grid ol {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}

.about-grid code,
.about-grid pre,
.about-grid p {
  line-height: 1.6;
  word-break: break-word;
}

.about-grid pre {
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.about-abbrev {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.about-abbrev dt {
  font-weight: 600;
}

.about-abbrev dd {
  margin: 0 0 8px;
  color: var(--color-muted);
}

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

.about-table th,
.about-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  vertical-align: top;
}

.about-table th {
  font-weight: 600;
  color: var(--color-foreground);
}

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

.accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accordion-controls {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}

.accordion-controls .button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.55);
  box-shadow: 0 6px 18px rgba(8, 12, 24, 0.35);
}

.accordion-controls .button:hover {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.15);
}

.accordion-item {
  --accordion-accent: #38bdf8;
  --accordion-accent-soft: rgba(56, 189, 248, 0.18);
  --accordion-accent-strong: rgba(56, 189, 248, 0.6);
  --accordion-accent-shadow: rgba(56, 189, 248, 0.28);
  --accordion-text-muted: rgba(226, 232, 240, 0.72);
}

.accordion-item.accent-stage {
  --accordion-accent: #38bdf8;
  --accordion-accent-soft: rgba(56, 189, 248, 0.18);
  --accordion-accent-strong: rgba(56, 189, 248, 0.6);
  --accordion-accent-shadow: rgba(56, 189, 248, 0.28);
}

.accordion-item.accent-default {
  --accordion-accent: #38bdf8;
  --accordion-accent-soft: rgba(56, 189, 248, 0.18);
  --accordion-accent-strong: rgba(56, 189, 248, 0.6);
  --accordion-accent-shadow: rgba(56, 189, 248, 0.28);
}

.accordion-item.accent-jobs {
  --accordion-accent: #f97316;
  --accordion-accent-soft: rgba(249, 115, 22, 0.2);
  --accordion-accent-strong: rgba(249, 115, 22, 0.62);
  --accordion-accent-shadow: rgba(249, 115, 22, 0.3);
}

.accordion-item.accent-case {
  --accordion-accent: #22c55e;
  --accordion-accent-soft: rgba(34, 197, 94, 0.22);
  --accordion-accent-strong: rgba(34, 197, 94, 0.6);
  --accordion-accent-shadow: rgba(34, 197, 94, 0.3);
}

.accordion-item.accent-cases {
  --accordion-accent: #a855f7;
  --accordion-accent-soft: rgba(168, 85, 247, 0.22);
  --accordion-accent-strong: rgba(168, 85, 247, 0.58);
  --accordion-accent-shadow: rgba(168, 85, 247, 0.3);
}

.accordion-item.accent-manifest {
  --accordion-accent: #f59e0b;
  --accordion-accent-soft: rgba(245, 158, 11, 0.22);
  --accordion-accent-strong: rgba(245, 158, 11, 0.62);
  --accordion-accent-shadow: rgba(245, 158, 11, 0.28);
}

.accordion-item.accent-cv {
  --accordion-accent: #6366f1;
  --accordion-accent-soft: rgba(99, 102, 241, 0.24);
  --accordion-accent-strong: rgba(99, 102, 241, 0.6);
  --accordion-accent-shadow: rgba(99, 102, 241, 0.32);
}

.accordion-item.accent-training {
  --accordion-accent: #ec4899;
  --accordion-accent-soft: rgba(236, 72, 153, 0.24);
  --accordion-accent-strong: rgba(236, 72, 153, 0.6);
  --accordion-accent-shadow: rgba(236, 72, 153, 0.32);
}

.accordion-item.accent-runs {
  --accordion-accent: #0ea5e9;
  --accordion-accent-soft: rgba(14, 165, 233, 0.24);
  --accordion-accent-strong: rgba(14, 165, 233, 0.6);
  --accordion-accent-shadow: rgba(14, 165, 233, 0.32);
}

.accordion-item.accent-inference {
  --accordion-accent: #14b8a6;
  --accordion-accent-soft: rgba(20, 184, 166, 0.24);
  --accordion-accent-strong: rgba(20, 184, 166, 0.6);
  --accordion-accent-shadow: rgba(20, 184, 166, 0.32);
}

.accordion-item .card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(10, 14, 26, 0.65);
  box-shadow: 0 16px 36px rgba(6, 9, 18, 0.55);
}

.accordion-header {
  display: block;
  padding: 0;
  position: relative;
}

.accordion-trigger {
  all: unset;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 24px;
  border-radius: calc(var(--radius) - 6px);
  cursor: pointer;
  color: var(--color-text);
  letter-spacing: 0.03em;
  line-height: 1.4;
  background: linear-gradient(140deg, rgba(18, 28, 52, 0.88), rgba(12, 18, 34, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12), 0 10px 24px rgba(8, 12, 24, 0.45);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.35s ease;
  font: inherit;
}

.accordion-trigger:hover {
  transform: translateY(-3px);
  border-color: var(--accordion-accent-strong);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.55), inset 0 0 0 1px var(--accordion-accent-soft);
}

.accordion-trigger:focus-visible {
  outline: 3px solid var(--accordion-accent-strong);
  outline-offset: 4px;
}

.accordion-item.is-open .accordion-trigger {
  background: linear-gradient(150deg, rgba(7, 11, 20, 0.95), rgba(7, 12, 22, 0.78));
  border-color: var(--accordion-accent-strong);
  box-shadow: 0 18px 34px rgba(13, 26, 45, 0.65), inset 0 0 0 1px var(--accordion-accent-soft);
}

.accordion-title {
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-word;
}

.accordion-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accordion-text-muted);
  text-transform: uppercase;
}

.accordion-leading {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.accordion-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--accordion-accent), rgba(15, 23, 42, 0.9));
  box-shadow: 0 12px 24px rgba(6, 10, 24, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 0 12px 0 var(--accordion-accent-shadow);
  color: #0f172a;
  position: relative;
}

.accordion-icon-letter {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  color: #f8fafc;
  text-transform: uppercase;
}

.accordion-icon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8fafc;
  opacity: 0.85;
}

.accordion-item.is-open .accordion-icon {
  background: linear-gradient(145deg, var(--accordion-accent), rgba(8, 12, 24, 0.85));
  box-shadow: 0 18px 32px rgba(7, 12, 24, 0.65), inset 0 0 16px 0 var(--accordion-accent-shadow);
}

.accordion-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accordion-accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accordion-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
  margin-left: auto;
}

.accordion-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 16, 30, 0.7);
  box-shadow: inset 0 0 14px rgba(6, 11, 24, 0.6);
  color: var(--accordion-accent);
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.is-open .accordion-chevron {
  border-color: var(--accordion-accent-strong);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: inset 0 0 16px var(--accordion-accent-shadow);
}

.accordion-chevron svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s ease;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accordion-item.is-open .accordion-chevron svg {
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 28px 28px;
  background: rgba(7, 11, 20, 0.78);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.accordion-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.card .meta {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge.complete {
  background: rgba(74, 222, 128, 0.18);
  color: var(--color-success);
}

.badge.pending {
  background: rgba(250, 204, 21, 0.18);
  color: var(--color-warning);
}

.badge.missing {
  background: rgba(248, 113, 113, 0.18);
  color: var(--color-danger);
}

.badge.queued {
  background: rgba(148, 163, 184, 0.18);
  color: rgba(148, 163, 184, 0.9);
}

.badge.running {
  background: rgba(56, 189, 248, 0.2);
  color: rgba(56, 189, 248, 0.95);
}

.badge.failed {
  background: rgba(248, 113, 113, 0.22);
  color: var(--color-danger);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lineage-cell {
  white-space: nowrap;
}

.lineage-cell-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-picker {
  margin: 18px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-picker-field select {
  width: 100%;
  margin-top: 6px;
}

.catalog-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge.lineage-badge {
  text-transform: none;
  font-size: 0.8rem;
}

.badge.lineage-canonical {
  background: rgba(74, 222, 128, 0.18);
  color: var(--color-success);
}

.badge.lineage-swaraj {
  background: rgba(56, 189, 248, 0.2);
  color: rgba(56, 189, 248, 0.95);
}

.badge.lineage-upload {
  background: rgba(148, 163, 184, 0.2);
  color: rgba(148, 163, 184, 0.9);
}

.stage-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.stage-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.95rem;
}

.stage-list li:last-child {
  border-bottom: none;
}

.stage-list span.summary {
  color: var(--color-muted);
  margin-left: 16px;
}

.stage-summary-item-features .summary {
  flex: 1 1 auto;
}

.stage-summary-with-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stage-summary-toggle {
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-text);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stage-summary-toggle:hover {
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(56, 189, 248, 0.24);
}

.stage-summary-extra {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.stage-summary-extra.is-hidden {
  display: none;
}

.section {
  margin-bottom: 32px;
}

.section h2 {
  margin-bottom: 12px;
}

.table-scroll {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.inference-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.inference-meta span {
  background: rgba(148, 163, 184, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.inference-meta .inference-path {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: var(--color-text);
}

.inference-meta .inference-path code {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  padding: 2px 6px;
}

.inference-metrics-table {
  margin-bottom: 16px;
}

.inference-metrics-table table th,
.inference-metrics-table table td {
  white-space: nowrap;
}

tr.overall-metric {
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.85);
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.9rem;
}

th {
  font-weight: 600;
  background: rgba(148, 163, 184, 0.1);
}

tr:hover td {
  background: rgba(148, 163, 184, 0.08);
}

.run-table-wrapper {
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.run-table th,
.run-table td {
  font-size: 0.95rem;
}

.compact-table th,
.compact-table td {
  padding: 10px 12px;
  vertical-align: top;
}

.artifact-pill-group,
.validation-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: nowrap;
}

.stat-pill strong {
  font-weight: 600;
}

.stat-pill-status {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.18);
  color: #0f766e;
}

.stat-pill-status.is-failed {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
}

.stat-pill-status.is-running {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}

.stat-pill-hint {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: transparent;
  cursor: pointer;
  text-decoration: underline dotted;
}

.sort-trigger {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

th[data-sort] .sort-trigger::after {
  content: "↕";
  font-size: 0.75rem;
  opacity: 0.4;
}

th[data-sort].is-sorted[data-direction="asc"] .sort-trigger::after {
  content: "▲";
  opacity: 0.85;
}

th[data-sort].is-sorted[data-direction="desc"] .sort-trigger::after {
  content: "▼";
  opacity: 0.85;
}

.run-table tbody tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.8);
}

.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.project-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1.05rem;
}

.project-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.swaraj-group-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swaraj-group-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swaraj-group-row select {
  flex: 1;
}

.text-muted {
  color: rgba(148, 163, 184, 0.75);
}

.meta.small {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.progress-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.progress-bar-bg {
  position: relative;
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.progress-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
  transition: width 0.3s ease;
}

.progress-bar-fill.complete {
  background: rgba(74, 222, 128, 0.8);
}

.progress-bar-fill.pending {
  background: rgba(250, 204, 21, 0.8);
}

.progress-bar-fill.missing {
  background: rgba(248, 113, 113, 0.8);
}

.progress-label {
  font-size: 0.8rem;
  color: var(--color-muted);
  min-width: 36px;
}

.empty-state {
  margin-top: 24px;
  padding: 32px;
  text-align: center;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow);
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.job-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.job-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 0.85rem;
}

.job-form label span {
  margin-bottom: 6px;
  color: var(--color-muted);
}

.job-form select,
.job-form input {
  margin-top: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
}

.job-form button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  background: var(--color-accent);
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
}

.job-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.job-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.job-form-row-stages {
  align-items: stretch;
}

.job-form-field {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.job-stage-selector {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 240px;
}

.job-stage-selector > .meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.job-stage-pill {
  flex: 1 1 220px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.job-stage-pill:hover:not(:disabled) {
  border-color: var(--color-accent);
}

.job-stage-pill.is-active {
  border-color: var(--color-accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.job-stage-pill[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.job-stage-pill-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.job-stage-pill-summary {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.job-stage-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-option-group h3 {
  margin: 0;
  font-size: 1rem;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.option-checkbox,
.option-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.option-checkbox input,
.option-radio input {
  accent-color: var(--color-accent);
}

.job-summary {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.job-progress-entry {
  padding: 12px 0 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.job-progress-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.job-progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  margin: 10px 0 12px;
  overflow: hidden;
}

.job-progress-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  transition: width 0.3s ease;
}

.job-progress-bar-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.65);
}

.encoder-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 16px 0 8px;
}

.encoder-controls span {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.encoder-controls select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
}

.encoder-summary-table table {
  margin-top: 8px;
}

.encoder-summary-table th {
  white-space: nowrap;
}

.encoder-remove {
  margin-left: 6px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.encoder-remove:hover {
  color: var(--color-accent);
}

.dataset-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.dataset-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.85rem;
}

.dataset-filter input {
  accent-color: var(--color-accent);
}

.filter-empty {
  margin-top: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  body {
    zoom: 1;
  }

  .page {
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 6px 6px 10px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .accordion-controls {
    justify-content: flex-start;
  }

  .accordion-trigger {
    padding: 18px;
    font-size: 1.05rem;
  }

  .accordion-leading {
    gap: 12px;
  }

  .accordion-text {
    gap: 4px;
  }

  .accordion-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .accordion-icon {
    width: 40px;
    height: 40px;
  }

  .accordion-badge {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .accordion-chevron {
    width: 34px;
    height: 34px;
  }

  .accordion-panel {
    padding: 0 18px 18px;
  }

  .cv-aggregator-block {
    padding: 16px;
    gap: 16px;
  }

  .cv-aggregator-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .cv-aggregator-note {
    align-self: flex-start;
  }
  .cv-aggregator-badges {
    width: 100%;
    justify-content: flex-start;
  }

  .cv-filter-actions {
    justify-content: flex-start;
  }

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

.slide-viewer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slide-viewer-body {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.slide-thumbnail-grid {
  flex: 1 1 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.slide-thumb-card {
  flex: 1 1 420px;
  max-width: 620px;
  background: rgba(15, 23, 42, 0.35);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slide-thumb-card figcaption {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.slide-thumb-img {
  background: rgba(148, 163, 184, 0.08);
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-thumb-img img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.slide-thumb-card.placeholder .slide-thumb-img {
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 40px 20px;
  text-align: center;
}

.slide-metadata {
  flex: 1;
  min-width: 240px;
}

.slide-feature-summary h2 {
  margin: 0 0 12px;
}

.slide-annotator {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

body.slide-viewer-page .page {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.slide-annotator:fullscreen {
  width: 100%;
  height: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  overflow: auto;
}

.slide-annotator-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.slide-annotator-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.viewer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.meta-value {
  font-size: 0.92rem;
  word-break: break-word;
}

.slide-annotator-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}

body.slide-viewer-page .slide-annotator-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.slide-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.viewer-fullscreen:not(.slide-viewer-page) .slide-annotator-grid {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 240px);
  gap: 16px;
}

body.viewer-fullscreen:not(.slide-viewer-page) .slide-annotator-side {
  min-width: 220px;
  max-width: 240px;
}

.slide-annotator-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slide-annotator-side {
  display: block;
}

.slide-side-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.slide-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

body.slide-viewer-page .slide-side-grid,
body.slide-viewer-page.viewer-fullscreen .slide-side-grid {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
}

@media (max-width: 1400px) {
  .slide-side-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .slide-side-col-results {
    grid-column: 1 / -1;
  }
  .slide-archive-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .slide-side-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.slide-toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}

.slide-toast {
  background: rgba(15, 23, 42, 0.92);
  color: #F8FAFC;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.slide-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.slide-toast-warn {
  border-color: rgba(248, 113, 113, 0.55);
  color: #FECACA;
}

.slide-results-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-results-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slide-results-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.slide-results-controls:empty {
  display: none;
}

.attention-results-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.attention-inline {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.attention-inline-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.attention-inline-row {
  display: grid;
  grid-template-columns: auto minmax(140px, 1.5fr) minmax(200px, 2fr) minmax(160px, 1fr);
  gap: 10px;
  align-items: center;
}

.attention-inline-label {
  font-size: 0.85rem;
  color: var(--color-text);
}

.attention-inline-score {
  font-size: 0.8rem;
  color: var(--color-muted);
}

@media (max-width: 1200px) {
  .attention-inline-row {
    grid-template-columns: auto 1fr;
  }
  .attention-inline-row .attention-epoch-toggle,
  .attention-inline-row .attention-inline-score {
    grid-column: 1 / -1;
  }
}

.attention-results-panel .attention-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.attention-option {
  margin-top: 0;
}

.attention-option-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.attention-option-meta {
  color: var(--color-muted);
  font-size: 0.72rem;
}

.attention-option-score {
  color: var(--color-text);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.attention-encoder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.attention-encoder-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.8);
  flex: 0 0 auto;
}

.attention-option-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.attention-epoch-toggle {
  display: inline-flex;
  gap: 6px;
}

.attention-epoch-toggle .button {
  font-size: 0.7rem;
}

.attention-option-auc {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.slide-results-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: auto;
}

.slide-results-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr) 80px 72px 70px 60px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.78rem;
  min-width: 420px;
}

.slide-results-row-header {
  background: transparent;
  border-style: dashed;
}

.slide-results-row-header .slide-results-cell {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.slide-results-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-results-encoder {
  font-weight: 600;
}

.slide-results-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.slide-results-auc {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.slide-results-attn {
  display: inline-flex;
  justify-content: center;
}

.slide-results-attn input {
  accent-color: var(--color-accent);
}

.slide-results-empty {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  padding: 8px 0;
}

.slide-panel-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-accordion {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 10px 12px 12px;
  background: rgba(15, 23, 42, 0.55);
}

.panel-accordion-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.panel-accordion-summary::marker,
.panel-accordion-summary::-webkit-details-marker {
  display: none;
}

.panel-accordion[open] > .panel-accordion-summary {
  margin-bottom: 12px;
  color: var(--color-text);
}

.viewer-toolbar {
  padding: 16px;
}

body.viewer-fullscreen .viewer-toolbar {
  padding: 12px;
}

.viewer-tool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.viewer-tool-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-button {
  border-color: rgba(56, 189, 248, 0.4);
}

.viewer-tool-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 12px;
}

.viewer-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.viewer-fullscreen .viewer-tool-actions .button {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.viewer-frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
  padding: 12px;
}

.viewer-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b1120;
}

#openseadragon {
  width: 100%;
  height: clamp(420px, 70vh, 780px);
  background: #0b1120;
}

body.viewer-fullscreen #openseadragon {
  height: clamp(520px, 82vh, 980px);
}

#annotationOverlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#overlayWebgl {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#annotationOverlay.canvas-active {
  pointer-events: auto;
  cursor: crosshair;
}

#annotationOverlay.canvas-editing {
  cursor: move;
}

.viewer-alert {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  z-index: 5;
}

.viewer-status {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

body.viewer-fullscreen .viewer-status {
  padding: 10px 14px;
}

.status-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-accent);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.viewer-hint summary {
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  margin: 0;
}

.viewer-hint summary::marker,
.viewer-hint summary::-webkit-details-marker {
  display: none;
}

.viewer-hint[open] summary {
  margin-bottom: 8px;
}

.viewer-hint ul {
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.panel {
  padding: 16px;
}

body.viewer-fullscreen .panel {
  padding: 12px;
}

.manifest-panel {
  margin-top: 0;
}

.target-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.target-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-text);
  font-size: 0.82rem;
}

.target-chip strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--color-accent);
}

.target-chip.muted {
  background: rgba(148, 163, 184, 0.16);
}

.manifest-details {
  margin-top: 12px;
}

.manifest-details summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.manifest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
  max-height: 240px;
  overflow: auto;
  padding-right: 6px;
}

.manifest-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.label-palette {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 44px 46px;
  gap: 8px;
  align-items: center;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.label-swatch {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}

.label-name {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.9rem;
}

.label-color {
  width: 42px;
  height: 32px;
  background: transparent;
  border: none;
  padding: 0;
}

.label-delete {
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 4px 10px;
  cursor: pointer;
}

.annotation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}

.annotation-panel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.85);
}

.status-actions .viewer-toggle {
  margin-left: 8px;
}

.results-overlay-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.results-overlay-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.8);
  white-space: nowrap;
}

.results-overlay-legend-swatch {
  flex: none;
}

.slide-results-target-summary {
  margin-left: 10px;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.7);
}

.annotation-item {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  cursor: pointer;
}

.annotation-item.selected {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.annotation-item-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.annotation-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.annotation-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
}

.annotation-meta,
.annotation-notes {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.annotation-select {
  width: 100%;
  margin-top: 6px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: var(--color-text);
  padding: 6px 8px;
}

.annotation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.draft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.draft-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.draft-notes textarea {
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: var(--color-text);
  padding: 8px 10px;
  font-family: inherit;
}

.overlay-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-entry {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.35);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-title-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.overlay-toggle {
  accent-color: var(--color-accent);
}

.overlay-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.overlay-count {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

.overlay-opacity input[type='range'] {
  width: 100%;
}

.attention-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attention-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.attention-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.attention-toggle input {
  accent-color: var(--color-accent);
}

.attention-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attention-selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.attention-selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.72rem;
  color: var(--color-text);
}

.attention-selection-chip .chip-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.8);
}

.overlay-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--color-text);
  font-size: 0.72rem;
  max-width: 320px;
  backdrop-filter: blur(6px);
}

.overlay-legend-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  color: var(--color-muted);
}

.overlay-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.slide-results-attn-swatch {
  display: inline-flex;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(15, 23, 42, 0.5);
}

.attention-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: var(--color-text);
  padding: 6px 8px;
}

.attention-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attention-pills .button {
  border-radius: 999px;
}

.attention-panel .meta.small {
  margin: 0;
}

.attention-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.attention-legend-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #22c55e, #facc15, #ef4444);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.attention-legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.slide-thumbnail-grid.compact {
  flex: 1 1 auto;
  gap: 16px;
}

.slide-thumbnail-grid.compact .slide-thumb-card {
  flex: 1 1 100%;
  max-width: 100%;
  padding: 10px;
}

.slide-thumbnail-grid.compact .slide-thumb-img {
  min-height: 160px;
}

.slide-viewer-readonly .button,
.slide-viewer-readonly .label-delete {
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .slide-annotator-grid {
    grid-template-columns: 1fr;
  }
  .slide-annotator-meta {
    max-width: none;
  }
  #openseadragon {
    height: 60vh;
  }
}

.case-encoder-controls {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-encoder-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-encoder-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.15);
  font-size: 0.85rem;
}

.case-encoder-pill button {
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.case-encoder-pill button:hover {
  color: #dc2626;
}

.case-encoder-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.case-encoder-add select {
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  background: #fff;
  color: inherit;
}

.case-target-controls {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-target-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.case-target-filter select {
  padding: 4px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  background: #fff;
  color: inherit;
}

.case-target-sort {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.case-target-sort:hover {
  text-decoration: underline;
}


.inference-view-toggle {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 16px;
}

.inference-toggle-button {
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--color-text);
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inference-toggle-button:hover {
  border-color: rgba(148, 163, 184, 0.35);
}

.inference-toggle-button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0b1222;
}

.inference-views {
  margin-top: 12px;
}

.inference-view {
  display: none;
}

.inference-view.is-active {
  display: block;
}

.chart-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 20px;
}

.chart-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.chart-card h3 {
  margin: 0;
  font-size: 1rem;
}

.chart-plot {
  width: 100%;
  height: 220px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid rgba(15, 23, 42, 0.4);
  display: inline-block;
}

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

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-chart-row.is-overall .bar-chart-fill {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.bar-chart-label {
  flex: 0 0 140px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.bar-chart-track {
  position: relative;
  flex: 1;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  height: 18px;
}

.bar-chart-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.bar-chart-value {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--color-text);
}

.table-expand-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.table-expand-button {
  cursor: pointer;
}

.table-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: none;
}

.table-modal.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.table-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.table-modal-dialog {
  position: relative;
  background: rgba(11, 17, 29, 0.96);
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.2);
  width: min(960px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 12px;
  box-shadow: var(--shadow);
}

.table-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-modal-title {
  margin: 0;
  font-size: 1.1rem;
}

.table-modal-close {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.table-modal-close:hover {
  color: var(--color-text);
}

.table-modal-body {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.table-modal-body table {
  width: 100%;
  min-width: 100%;
}


.plotly-targets {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plotly-target-section {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plotly-target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.plotly-target-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text);
}

.plotly-target-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cv-aggregator-block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px 22px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(12, 18, 32, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 16px 28px rgba(8, 12, 24, 0.45);
}

.cv-aggregator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cv-aggregator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-aggregator-header h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.cv-aggregator-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-aggregator-charts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plotly-chart {
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
  overflow: hidden;
}

.cv-plot-controls {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.6);
}

.cv-group-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.55);
}

.cv-group-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.cv-group-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-group-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.7);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.cv-group-option input {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.cv-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.cv-filter-options {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.cv-target-accordion {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 10px 14px 14px;
  background: rgba(15, 23, 42, 0.58);
}

.cv-target-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.92rem;
  font-weight: 700;
}

.cv-target-summary::marker,
.cv-target-summary::-webkit-details-marker {
  display: none;
}

.cv-target-summary::after {
  content: "▸";
  transition: transform 0.2s ease;
  color: rgba(226, 232, 240, 0.9);
}

.cv-target-accordion[open] > .cv-target-summary::after {
  transform: rotate(90deg);
}

.cv-target-title {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  word-break: break-word;
}

.cv-target-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.cv-target-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cv-filter-group {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cv-filter-group legend {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-muted);
}

.cv-filter-target {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cv-filter-encoder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--color-accent);
  font-size: 0.75rem;
}

.cv-filter-option {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cv-filter-option:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.08);
}

.cv-filter-option input {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
}

.cv-filter-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  word-break: break-word;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.checkbox-inline input {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.path-clip {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(226, 232, 240, 0.9);
}

.aggregator-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.16);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

.aggregator-pill.muted {
  opacity: 0.65;
}

.is-hidden-archived {
  display: none !important;
}

.cv-filter-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cv-empty {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-style: italic;
}

.plotly-chart[data-plot-type="auc"] {
  min-height: 360px;
}



/* Chart expand modal */
.chart-modal { position: fixed; inset: 0; z-index: 901; display: none; }
.chart-modal.is-visible { display: flex; align-items: center; justify-content: center; padding: 24px; }
.chart-modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.88); }
.chart-modal-dialog { position: relative; background: rgba(11,17,29,0.98); border-radius: var(--radius); border: 1px solid rgba(148,163,184,0.2); width: min(1100px, 96vw); max-height: 94vh; display: flex; flex-direction: column; padding: 16px; gap: 8px; box-shadow: var(--shadow); }
.chart-modal-titlebar { display: flex; align-items: center; justify-content: space-between; }
.chart-modal-title { margin: 0; font-size: 1.05rem; }
.chart-modal-close { background: none; border: none; color: var(--color-muted); font-size: 1.5rem; cursor: pointer; }
.chart-modal-body { overflow: auto; }
.chart-modal-body .plotly-chart { min-height: 640px; cursor: default; }
.resource-links-spacer {
  width: 100%;
  height: 32px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.job-board-card {
  margin-bottom: 32px;
}

.job-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.job-board-entry {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-board-entry h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.job-board-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.job-board-jobs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-board-job {
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.job-board-job:first-child {
  border-top: none;
  padding-top: 0;
}

.job-board-job-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.job-board-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.job-board-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-quick-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-quick-hint {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.job-quick-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 950;
}

.job-quick-modal[hidden] {
  display: none;
}

.job-quick-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, 0.82);
  backdrop-filter: blur(4px);
}

.job-quick-card {
  position: relative;
  width: min(460px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(6, 9, 22, 0.65);
}

.job-quick-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.job-quick-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.job-quick-input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.job-quick-input-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-quick-form input,
.job-quick-form select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(10, 16, 28, 0.5);
  color: var(--color-text);
  padding: 10px 12px;
  font-size: 0.95rem;
  width: 100%;
}

.job-quick-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-quick-checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  font-size: 0.85rem;
}

.job-quick-checkbox-grid input {
  pointer-events: none;
}

.job-quick-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

body.modal-open {
  overflow: hidden;
}

body.tour-open {
  overflow: hidden;
}

.custom-encoder-panel {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 18px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-encoder-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: flex-end;
}

.custom-encoder-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.custom-encoder-form select {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(9, 14, 28, 0.6);
  color: var(--color-text);
  padding: 10px;
}

.custom-encoder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-encoder-list {
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-encoder-pill {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(8, 13, 26, 0.6);
}

.custom-encoder-pill strong {
  display: block;
  font-size: 0.95rem;
}

.custom-encoder-pill button {
  flex-shrink: 0;
}

.custom-encoder-swaraj {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.duplicate-modal .job-quick-card {
  max-width: min(720px, 96vw);
}

.job-duplicate-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.job-duplicate-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.duplicate-section {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(10, 16, 28, 0.45);
}

.duplicate-plan-summary {
  font-weight: 600;
}

.duplicate-plan-commands ul {
  margin: 8px 0;
  padding-left: 18px;
}

.duplicate-related-table .table-scroll {
  max-height: 220px;
  overflow: auto;
}

.duplicate-links {
  margin-top: 8px;
}

.job-duplicate-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.duplicate-modal .meta.warning {
  margin-bottom: 8px;
}

/* Guided tour overlay */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  pointer-events: none;
}

.tour-overlay.is-visible {
  display: block;
}

.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 28, 0.2);
  backdrop-filter: none;
}

.tour-highlight {
  position: absolute;
  border-radius: 16px;
  border: 2px solid rgba(56, 189, 248, 0.95);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25), 0 20px 40px rgba(6, 9, 22, 0.55);
  pointer-events: none;
  transition: all 0.2s ease;
}

.tour-card {
  position: fixed;
  width: min(560px, 94vw);
  background: rgba(15, 23, 42, 0.98);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  z-index: 3001;
  display: none;
  pointer-events: auto;
  max-height: calc(100vh - 20px);
  overflow: hidden;
  touch-action: manipulation;
}

.tour-card.is-visible {
  display: flex;
  flex-direction: column;
}

.tour-step-count {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

.tour-title {
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 1.1;
}

.tour-body {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 1.55rem;
  line-height: 1.28;
  overflow: auto;
  max-height: 48vh;
  -webkit-overflow-scrolling: touch;
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.tour-actions .button {
  font-size: 1.08rem;
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  touch-action: manipulation;
}

.tour-paused-dock {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translate(130%, -50%);
  z-index: 3002;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.46);
  transition: transform 0.24s ease, opacity 0.24s ease;
  opacity: 0;
}

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

.tour-paused-logo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.45);
  animation: tour-logo-bop 1.8s ease-in-out infinite;
}

.tour-paused-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.tour-paused-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.tour-paused-copy span {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.tour-suggestion {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 3002;
  max-width: min(680px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 2px solid rgba(251, 191, 36, 0.7);
  background: linear-gradient(145deg, rgba(124, 45, 18, 0.96), rgba(30, 41, 59, 0.98));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.58);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tour-suggestion.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tour-suggestion-logo {
  width: 110px;
  height: 110px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.52);
  animation: tour-logo-bop 1.8s ease-in-out infinite;
}

.tour-suggestion-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tour-suggestion-copy strong {
  font-family: "Bangers", "Inter", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  color: #fde68a;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.tour-suggestion-copy span {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.95);
}

.tour-suggestion .button {
  min-height: 40px;
  font-size: 0.95rem;
  touch-action: manipulation;
}

@keyframes tour-logo-bop {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-4deg);
  }
}

@media (max-width: 860px) {
  body.tour-open {
    overflow: auto;
  }

  .tour-card {
    width: min(95vw, 95vw);
    padding: 18px 18px;
    max-height: calc(100vh - 12px);
  }

  .tour-title {
    font-size: 1.7rem;
  }

  .tour-body {
    font-size: 1.25rem;
    max-height: 45vh;
  }

  .tour-paused-dock {
    right: 10px;
    left: 10px;
    top: auto;
    bottom: 12px;
    transform: translateY(120%);
    justify-content: center;
  }

  .tour-paused-dock.is-visible {
    transform: translateY(0);
  }

  .tour-suggestion {
    right: 10px;
    left: 10px;
    bottom: 10px;
    flex-wrap: wrap;
  }

  .tour-suggestion-logo {
    width: 82px;
    height: 82px;
  }
}

.job-detail-heading {
  font-weight: 600;
  font-size: 0.95rem;
}

.job-detail-meta {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 2px;
}

.job-detail-notes {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.job-detail-notes li {
  margin: 2px 0;
}

.job-detail-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* Landing page for first-time visitors */
body.landing-page {
  font-family: "Public Sans", "Inter", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(56, 189, 248, 0.32), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(14, 165, 233, 0.2), transparent 42%),
    linear-gradient(160deg, #020617 0%, #0f172a 55%, #172554 100%);
}

body.landing-page .page {
  width: min(1240px, 100vw);
  padding: 24px;
}

.landing-shell {
  display: grid;
  gap: 22px;
}

.landing-hero-panel {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 30px;
  padding: clamp(20px, 3vw, 42px);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.72));
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.62);
}

.landing-brand {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
}

.landing-logo {
  width: clamp(88px, 9vw, 128px);
  height: clamp(88px, 9vw, 128px);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.42);
}

.landing-brand h1 {
  margin: 4px 0 4px;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.landing-subtitle {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-family: "Public Sans", "Inter", sans-serif;
}

.landing-lead {
  margin: 10px 0 0;
  max-width: 68ch;
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.58;
  font-size: clamp(0.98rem, 1.2vw, 1.14rem);
}

.landing-tour-callout {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(125, 211, 252, 0.52);
  border-radius: 14px;
  background: rgba(8, 47, 73, 0.35);
  max-width: 72ch;
}

.landing-tour-callout strong {
  display: block;
  font-family: "Sora", "Inter", sans-serif;
  color: #bae6fd;
  font-size: 0.98rem;
}

.landing-tour-callout p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-quicklist {
  margin: 14px 0 0;
  padding-left: 18px;
  color: rgba(203, 213, 225, 0.94);
  display: grid;
  gap: 5px;
  max-width: 70ch;
}

.landing-quicklist li {
  line-height: 1.5;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.landing-primary {
  background: rgba(34, 211, 238, 0.28);
  border-color: rgba(125, 211, 252, 0.9);
}

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

.landing-stat {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.45);
  padding: 12px 14px;
}

.landing-stat span {
  display: block;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  font-weight: 700;
  color: #bae6fd;
}

.landing-stat p {
  margin: 4px 0 0;
  color: rgba(203, 213, 225, 0.92);
  font-size: 0.85rem;
}

.landing-use-cases {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 20px;
  padding: clamp(16px, 2vw, 24px);
  background: linear-gradient(145deg, rgba(2, 6, 23, 0.72), rgba(15, 23, 42, 0.86));
  min-height: 155px;
}

.landing-card h2 {
  margin: 0 0 8px;
  font-family: "Sora", "Inter", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.36rem);
}

.landing-card p {
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.45;
  font-size: 0.93rem;
}

@media (max-width: 980px) {
  body.landing-page .page {
    padding: 14px;
  }

  .landing-stats {
    grid-template-columns: 1fr;
  }

  .landing-use-cases {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-hero-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .landing-brand {
    align-items: flex-start;
  }

  .landing-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-actions .button {
    justify-content: center;
    width: 100%;
  }
}
