:root {
  --midnight: #0b1020;
  --slate: #121a2b;
  --electric: #4f7cff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --gray: #94a3b8;
  --offwhite: #f8fafc;
  --border: rgba(148, 163, 184, 0.16);
  --panel: rgba(18, 26, 43, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.82);
  --text: #e2e8f0;
  --text-soft: #a8b5cc;
  --shadow: 0 30px 80px rgba(3, 8, 20, 0.4);
  --shadow-soft: 0 18px 36px rgba(7, 12, 28, 0.28);
  --font-display: "Segoe UI Variable Display", "Aptos Display", "Trebuchet MS", sans-serif;
  --font-body: "Segoe UI Variable Text", "Aptos", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.22), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.2), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(34, 211, 238, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1020 0%, #10182a 45%, #09111d 100%);
}

.site-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 24px auto 56px;
}

.hero,
.panel,
.feature-card,
.use-case-card,
.trust-band,
.cta-card {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 36px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.eyebrow,
.section-kicker,
.search-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-subtext,
.feature-card p,
.use-case-card p,
.cta-card p,
.subtle-text,
.details-note,
.answer-status {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-search-card,
.side-card,
.trace-card,
.match-card {
  background: linear-gradient(180deg, rgba(18, 26, 43, 0.82), rgba(11, 16, 32, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-soft);
  border-radius: 24px;
}

.hero-search-card {
  margin-top: 28px;
  padding: 18px;
}

.search-topline,
.panel-heading,
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mode-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

select,
textarea,
button {
  font: inherit;
}

select,
textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.82);
  color: var(--offwhite);
}

select {
  width: auto;
  padding: 10px 14px;
}

textarea {
  resize: vertical;
  min-height: 132px;
  margin-top: 14px;
  padding: 18px;
  line-height: 1.7;
}

textarea::placeholder {
  color: rgba(148, 163, 184, 0.78);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

#submitButton {
  padding: 13px 20px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(88, 132, 248, 0.94) 0%, rgba(108, 116, 245, 0.9) 52%, rgba(126, 103, 236, 0.88) 100%);
  border: 1px solid rgba(156, 184, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(64, 94, 184, 0.2);
}

.cta-button {
  padding: 13px 20px;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(88, 132, 248, 0.94) 0%, rgba(108, 116, 245, 0.9) 52%, rgba(126, 103, 236, 0.88) 100%);
  border: 1px solid rgba(156, 184, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(64, 94, 184, 0.2);
}

.ghost-button,
.sample-chip {
  padding: 12px 16px;
  color: var(--offwhite);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.attach-menu-shell {
  position: relative;
}

.attach-button {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--offwhite);
  box-shadow: 0 16px 30px rgba(3, 8, 20, 0.26);
}

.attach-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
}

.attach-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(9, 15, 29, 0.96);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 8px;
  z-index: 10;
}

.attach-menu[hidden],
.upload-overlay[hidden],
.upload-card[hidden],
.intelligence-overlay[hidden] {
  display: none;
}

.attach-option {
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  background: rgba(15, 23, 42, 0.74);
  color: var(--offwhite);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(5, 9, 20, 0.42), rgba(5, 9, 20, 0.58)),
    radial-gradient(circle at 20% 20%, rgba(79, 124, 255, 0.12), transparent 28%);
  backdrop-filter: blur(18px) saturate(120%);
}

.upload-card {
  width: min(505px, calc(100vw - 32px));
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(19, 28, 47, 0.84), rgba(10, 16, 30, 0.9));
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 16px;
}

.upload-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}

.upload-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.18);
  color: #d9e7ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.upload-card-copy {
  display: grid;
  gap: 6px;
}

.upload-card-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--offwhite);
}

.upload-card-name {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
  word-break: break-word;
}

.attachment-remove {
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--offwhite);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.upload-progress-percent {
  font-size: 1.05rem;
  font-weight: 700;
  color: #dbe9ff;
}

.progress-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(148, 163, 184, 0.04)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.16);
}

.progress-bar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.95), rgba(34, 211, 238, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(79, 124, 255, 0.2);
  transition: width 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 42%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.34), transparent);
  filter: blur(5px);
  opacity: 0.9;
  animation: shimmerMove 2.6s ease-in-out infinite;
}

.upload-status-text {
  font-size: 0.94rem;
  color: #d7dfec;
  letter-spacing: 0.01em;
}

.upload-card-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.upload-card-actions button {
  flex: 0 1 auto;
  min-width: 136px;
  max-width: 154px;
  padding: 9px 15px;
  font-size: 0.98rem;
  line-height: 1.1;
  border-radius: 16px;
}

.upload-card-actions #uploadStartButton {
  color: #eef5ff;
  background: linear-gradient(180deg, rgba(37, 51, 84, 0.78), rgba(20, 29, 50, 0.68));
  border-color: rgba(139, 177, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 10px 18px rgba(18, 30, 58, 0.16),
    0 0 0 1px rgba(122, 156, 255, 0.06);
}

.upload-card-actions .ghost-button {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 14px rgba(10, 16, 30, 0.08);
}

.upload-card.complete .progress-fill,
.progress-bar.complete .progress-fill {
  background: linear-gradient(90deg, rgba(79, 124, 255, 1), rgba(139, 92, 246, 0.94), rgba(34, 211, 238, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 0 16px rgba(79, 124, 255, 0.28),
    0 0 24px rgba(34, 211, 238, 0.22);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

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

.stat-card {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(11, 16, 32, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.stat-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-matches {
  margin-top: 24px;
  padding: 20px;
}

.side-card {
  padding: 20px;
}

.answer-badge,
.mini-pill,
.pill,
.token-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.answer-badge {
  padding: 8px 12px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-size: 0.86rem;
}

.mini-citation {
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.mini-citation:first-child {
  border-top: none;
  padding-top: 0;
}

.mini-citation p {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.mini-pill {
  padding: 7px 10px;
  background: rgba(79, 124, 255, 0.14);
  color: #bdd0ff;
  font-size: 0.78rem;
}

.answer-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 14px;
}

.answer-output {
  min-height: 210px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(17, 24, 39, 0.78)),
    linear-gradient(135deg, rgba(79, 124, 255, 0.08), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(148, 163, 184, 0.12);
  line-height: 1.75;
  white-space: pre-wrap;
}

.accuracy-review {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.review-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.review-help {
  margin: 10px 0 0;
}

.review-percent {
  min-width: 72px;
  justify-content: center;
}

.accuracy-slider {
  width: 100%;
  margin-top: 18px;
  height: 6px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(63, 90, 171, 0.48), rgba(34, 211, 238, 0.26));
  box-shadow: inset 0 1px 2px rgba(4, 8, 18, 0.28);
}

.accuracy-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(146, 205, 255, 0.96), rgba(101, 180, 255, 0.94));
  border: 1px solid rgba(219, 239, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(79, 124, 255, 0.12),
    0 0 14px rgba(104, 160, 255, 0.12),
    0 6px 12px rgba(12, 18, 34, 0.16);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.accuracy-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(63, 90, 171, 0.48), rgba(34, 211, 238, 0.26));
  box-shadow: inset 0 1px 2px rgba(4, 8, 18, 0.28);
}

.accuracy-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(146, 205, 255, 0.96), rgba(101, 180, 255, 0.94));
  border: 1px solid rgba(219, 239, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(79, 124, 255, 0.12),
    0 0 14px rgba(104, 160, 255, 0.12),
    0 6px 12px rgba(12, 18, 34, 0.16);
  cursor: pointer;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.review-presets,
.review-actions,
.accuracy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.review-presets,
.accuracy-summary {
  margin-top: 18px;
}

.score-preset,
.review-save-button,
.retry-button,
#uploadStartButton {
  padding: 11px 14px;
  border-radius: 999px;
}

.score-preset {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: var(--offwhite);
}

.score-preset.is-active {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.12);
  color: #baf4fb;
}

.review-actions {
  margin-top: 20px;
}

.review-save-button,
#uploadStartButton {
  color: #e7efff;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(25, 35, 60, 0.66), rgba(14, 21, 38, 0.58));
  border: 1px solid rgba(121, 155, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 16px rgba(12, 18, 34, 0.12);
  backdrop-filter: blur(12px) saturate(120%);
}

.retry-button {
  color: var(--offwhite);
  font-weight: 700;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.summary-card {
  min-width: 168px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.review-save-button:disabled,
.retry-button:disabled,
.score-preset:disabled,
.ghost-button:disabled,
#uploadStartButton:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.page-content {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 20px;
}

body.overlay-open {
  overflow: hidden;
}

.intelligence-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 28px;
  background: rgba(5, 9, 20, 0.72);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
}

.intelligence-modal {
  width: min(1180px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.intelligence-modal-heading {
  align-items: center;
}

.intelligence-modal-copy {
  margin: 0 0 20px;
}

.intelligence-grid {
  align-items: start;
}

.intelligence-decision-panel,
.trace-panel {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.batch-panel {
  display: grid;
  gap: 18px;
}

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

.batch-panel-copy {
  margin: 0;
}

.batch-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.batch-status-card,
.batch-jobs-card,
.batch-results-card {
  display: grid;
  gap: 14px;
}

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

.batch-downloads,
.batch-warning-list,
.batch-jobs-list {
  display: grid;
  gap: 10px;
}

.download-link,
.job-row-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 16, 32, 0.7);
  color: var(--offwhite);
  text-decoration: none;
}

.job-row-button {
  cursor: pointer;
  text-align: left;
}

.job-row-button.is-active {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.job-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-row-title {
  font-weight: 700;
}

.batch-warning-item,
.batch-empty {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(11, 16, 32, 0.7);
  color: var(--text-soft);
}

.batch-warning-item {
  border-color: rgba(244, 114, 182, 0.22);
  color: #ffd7e8;
}

.batch-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.batch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  background: rgba(11, 16, 32, 0.7);
}

.batch-table th,
.batch-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  vertical-align: top;
  text-align: left;
}

.batch-table th {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.96);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.batch-table td {
  line-height: 1.6;
}

.batch-question-cell,
.batch-answer-cell {
  max-width: 420px;
}

.batch-answer-cell {
  color: var(--text-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(148, 163, 184, 0.12);
  color: var(--offwhite);
}

.status-pill.is-answered,
.status-pill.is-completed {
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.status-pill.is-needs-review,
.status-pill.is-completed-with-warnings {
  background: rgba(250, 204, 21, 0.16);
  color: #fde68a;
}

.status-pill.is-failed {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.status-pill.is-queued,
.status-pill.is-extracting,
.status-pill.is-answering,
.status-pill.is-assembling-output {
  background: rgba(79, 124, 255, 0.16);
  color: #c7d6ff;
}

.batch-empty-state {
  color: var(--text-soft);
}

.panel {
  padding: 24px;
  border-radius: 28px;
}

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

.trace-card {
  padding: 18px;
}

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

.token-chip {
  padding: 7px 10px;
  background: rgba(34, 211, 238, 0.1);
  color: #baf4fb;
  font-size: 0.82rem;
}

.decision-list,
.score-breakdown,
.matches-list {
  display: grid;
  gap: 12px;
}

.decision-list {
  margin: 0;
}

.decision-list div,
.score-row,
.match-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 16, 32, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.decision-list dt {
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
}

.decision-list dd,
.score-value {
  margin: 0;
  font-weight: 700;
}

.score-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.score-label {
  color: var(--text-soft);
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  padding: 7px 10px;
  font-size: 0.8rem;
}

.pill.match-score {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.pill.neutral {
  background: rgba(148, 163, 184, 0.1);
  color: #d2dceb;
}

.match-question {
  margin: 0 0 10px;
  font-weight: 700;
}

.match-answer {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

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

@keyframes shimmerMove {
  100% {
    left: 150%;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .workspace-grid,
  .trace-grid,
  .batch-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1280px);
  }

  .hero,
  .panel,
  .trust-band,
  .cta-card {
    padding: 20px;
    border-radius: 24px;
  }

  .panel-heading,
  .card-header,
  .search-topline,
  .review-topline,
  .upload-card-topline,
  .upload-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions,
  .review-actions {
    flex-direction: column;
  }

  .attach-menu-shell {
    width: 100%;
  }

  .attach-button {
    width: 100%;
    border-radius: 999px;
  }

  .upload-card {
    text-align: left;
  }

  .upload-card-actions {
    flex-direction: column;
  }

  .batch-decision-list {
    grid-template-columns: 1fr;
  }

  button,
  .cta-button {
    width: 100%;
  }
}
