:root {
  --ink: #102822;
  --ink-soft: #40534d;
  --muted: #6d7974;
  --canvas: #f2efe6;
  --paper: #fbfaf5;
  --paper-strong: #ffffff;
  --line: #d8d5ca;
  --line-strong: #bbb9ae;
  --lime: #d9ff69;
  --lime-deep: #9ac414;
  --mint: #e0f3e9;
  --green: #0b7655;
  --avatrade-green: #00a878;
  --avatrade-green-dark: #08735a;
  --navy: #092b31;
  --orange: #d98b3d;
  --orange-soft: #fff0d8;
  --red: #a24035;
  --red-soft: #fce4df;
  --blue: #5276d8;
  --blue-soft: #e7ecff;
  --shadow: 0 24px 70px rgba(16, 40, 34, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 5%, rgba(217, 255, 105, 0.16), transparent 30rem),
    linear-gradient(90deg, rgba(16, 40, 34, 0.022) 1px, transparent 1px),
    var(--canvas);
  background-size: auto, 72px 72px, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.drop-zone:focus-within {
  outline: 3px solid rgba(82, 118, 216, 0.35);
  outline-offset: 2px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 600;
}

.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;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(16, 40, 34, 0.16);
}

.brand-lockup,
.header-actions,
.brand-name,
.pilot-chip,
.file-pill,
.source-file,
.section-heading > div,
.decision-header h2,
.feedback-confirmation {
  display: flex;
  align-items: center;
}

.brand-lockup {
  gap: 18px;
}

.avatrade-logo {
  width: 136px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.powered-lockup {
  min-height: 44px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.powered-lockup > span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.endure-wordmark {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
}

.endure-wordmark i {
  color: var(--avatrade-green);
  font-size: 18px;
  font-style: normal;
}

.endure-wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.endure-wordmark em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-context {
  margin-left: auto;
  margin-right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header-context span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.15em;
}

.header-context strong {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 23px;
}

.brand-name {
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name span {
  color: var(--muted);
  font-weight: 400;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  gap: 16px;
}

.pilot-chip,
.live-chip,
.small-chip,
.quality-chip,
.ready-chip {
  width: fit-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pilot-chip {
  gap: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--avatrade-green);
  box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.12);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-frame {
  width: min(1440px, calc(100% - 64px));
  margin: 34px auto 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px 8px 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.progress-nav {
  min-height: 76px;
  padding: 0 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.44);
}

.progress-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 41px;
  right: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.progress-number {
  position: relative;
  z-index: 1;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #183c40;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.progress-item.active,
.progress-item.complete {
  color: #ffffff;
}

.progress-item.active .progress-number,
.progress-item.complete .progress-number {
  background: var(--avatrade-green);
  border-color: var(--avatrade-green);
  color: #ffffff;
  font-weight: 700;
}

.progress-item.complete:not(:last-child)::after {
  background: rgba(0, 168, 120, 0.58);
}

.workspace {
  padding: clamp(32px, 5vw, 72px);
}

.upload-workspace {
  padding-top: clamp(42px, 6vw, 80px);
}

.workspace-intro {
  max-width: 790px;
  margin-bottom: 38px;
}

.eyebrow,
.panel-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace h1,
.process-workspace h1,
.result-workspace h1 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.workspace-intro > p,
.workspace-heading-row > div > p,
.process-header > div > p,
.result-topbar > div > p {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
}

.upload-layout,
.extraction-grid,
.review-layout,
.evaluation-layout,
.result-grid {
  display: grid;
  gap: 24px;
}

.upload-layout {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.drop-zone {
  min-height: 430px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(23, 25, 21, 0.025) 12px, rgba(23, 25, 21, 0.025) 13px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.drop-zone.drag-active {
  border-color: var(--lime-deep);
  background: rgba(216, 255, 101, 0.09);
  transform: translateY(-2px);
}

.upload-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 19px;
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 12px 24px rgba(23, 25, 21, 0.16);
}

.upload-icon span {
  font-size: 30px;
  line-height: 1;
  transform: translateY(-2px);
}

.drop-zone h2 {
  font-family: Georgia, serif;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.drop-zone > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.upload-actions,
.form-actions,
.feedback-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.upload-actions {
  justify-content: center;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(23, 25, 21, 0.15);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(23, 25, 21, 0.2);
}

.primary-button span {
  margin-left: 10px;
  color: var(--lime);
}

.secondary-button {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.secondary-button:hover {
  background: rgba(23, 25, 21, 0.04);
}

.fine-print {
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
}

.trust-panel {
  padding: 30px;
  border-radius: 20px;
  background: var(--ink);
  color: #ffffff;
}

.trust-panel .panel-kicker {
  color: rgba(255, 255, 255, 0.48);
}

.agent-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.agent-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-list li > span {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 13px;
}

.agent-list strong {
  font-size: 14px;
}

.agent-list p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.5;
}

.security-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: 13px;
  background: rgba(216, 255, 101, 0.1);
  color: rgba(255, 255, 255, 0.82);
}

.security-note > span {
  color: var(--lime);
}

.security-note p {
  font-size: 12px;
}

.security-note strong {
  color: #ffffff;
}

.process-header,
.workspace-heading-row,
.result-topbar,
.decision-header,
.process-title-row,
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.process-header,
.workspace-heading-row,
.result-topbar {
  margin-bottom: 36px;
}

.process-workspace h1,
.review-workspace h1,
.result-workspace h1 {
  font-size: clamp(34px, 4.2vw, 55px);
}

.file-pill,
.source-file {
  gap: 12px;
}

.file-pill {
  max-width: 350px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
}

.file-pill > div,
.source-file > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.file-pill strong,
.source-file strong {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.file-pill div span,
.source-file div span {
  color: var(--muted);
  font-size: 10px;
}

.file-type {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.extraction-grid,
.evaluation-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: stretch;
}

.document-preview,
.network-stage {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #eeebe3;
  border: 1px solid var(--line);
}

.document-preview::before,
.network-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: radial-gradient(var(--line-strong) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.document-sheet {
  position: relative;
  z-index: 2;
  width: min(360px, 72%);
  min-height: 420px;
  padding: 34px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(23, 25, 21, 0.16);
  transform: rotate(-1.5deg);
  overflow: hidden;
}

.document-topline {
  width: 64px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime-deep);
}

.document-title-line {
  width: 62%;
  height: 16px;
  margin: 19px 0 31px;
  border-radius: 4px;
  background: var(--ink);
}

.document-row {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #ebe9e2;
}

.document-row > span {
  height: 6px;
  display: block;
  border-radius: 999px;
  background: #d9d7d0;
}

.document-row.detected > span {
  background: rgba(168, 211, 33, 0.65);
}

.document-row b {
  color: var(--green);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scan-line {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  height: 2px;
  top: 14%;
  background: var(--lime-deep);
  box-shadow: 0 0 18px 4px rgba(168, 211, 33, 0.35);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 15%; opacity: 0.55; }
  50% { top: 88%; opacity: 1; }
}

.extraction-orbit {
  position: absolute;
  z-index: 3;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  border: 1px solid rgba(168, 211, 33, 0.45);
  animation: orbit 10s linear infinite;
  pointer-events: none;
}

.extraction-orbit span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--lime);
}

.extraction-orbit span:nth-child(1) { top: 13%; left: 13%; }
.extraction-orbit span:nth-child(2) { top: 49%; right: -6px; }
.extraction-orbit span:nth-child(3) { bottom: 9%; left: 24%; }

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

.process-panel,
.result-panel {
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.process-title-row h2,
.panel-title h2,
.feedback-panel h2 {
  margin-top: 5px;
  font-family: Georgia, serif;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.percent {
  font-family: Georgia, serif;
  font-size: 30px;
}

.progress-track,
.confidence-track {
  height: 7px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e1;
}

.progress-track > span,
.confidence-track > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--lime-deep);
  transition: width 500ms ease;
}

.phase-list {
  margin-top: 32px;
}

.phase-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.phase-row:last-child {
  border-bottom: 0;
}

.phase-marker {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 10px;
}

.phase-row.active,
.phase-row.complete {
  color: var(--ink);
}

.phase-row.active .phase-marker,
.phase-row.complete .phase-marker {
  background: var(--lime);
  border-color: var(--lime-deep);
  font-weight: 800;
}

.privacy-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 24px;
  padding: 17px;
  border-radius: 14px;
  background: #f3f8e7;
  border: 1px solid #dce7bb;
}

.privacy-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.privacy-card strong {
  font-size: 13px;
}

.privacy-card p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.extraction-score {
  min-width: 150px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.extraction-score span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.extraction-score strong {
  display: block;
  margin-top: 2px;
  font-family: Georgia, serif;
  font-size: 32px;
}

.privacy-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #d7e7b2;
  border-radius: 15px;
  background: #f5f9e9;
}

.privacy-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 800;
}

.privacy-banner strong {
  font-size: 13px;
}

.privacy-banner p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 11px;
}

.small-chip {
  padding: 7px 10px;
  border: 1px solid #d2dfa9;
  background: rgba(255, 255, 255, 0.55);
  color: var(--green);
}

.review-layout {
  grid-template-columns: minmax(0, 1fr) 285px;
  align-items: start;
}

.profile-form {
  display: grid;
  gap: 16px;
}

.form-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-strong);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading > div {
  gap: 11px;
}

.section-heading > div > span {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
}

.section-heading h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.quality-chip {
  padding: 6px 9px;
  background: var(--mint);
  color: var(--green);
}

.quality-chip.medium {
  background: var(--orange-soft);
  color: #84501d;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
}

.input-with-unit input {
  min-height: 44px;
  border: 0;
  background: transparent;
}

.input-with-unit b {
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.toggle-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 19px;
}

.toggle-row label {
  position: relative;
  cursor: pointer;
}

.toggle-row input {
  position: absolute;
  opacity: 0;
}

.toggle-row span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.toggle-row input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.toggle-row input:focus-visible + span {
  outline: 3px solid rgba(82, 118, 216, 0.35);
  outline-offset: 2px;
}

.form-actions {
  justify-content: flex-end;
  padding-top: 8px;
}

.primary-button.wide {
  min-width: 230px;
}

.summary-sticky {
  position: sticky;
  top: 24px;
  padding: 25px;
  border-radius: 18px;
  background: var(--ink);
  color: #ffffff;
}

.summary-sticky .panel-kicker {
  color: rgba(255, 255, 255, 0.45);
}

.summary-metric {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 22px 0;
}

.summary-metric strong {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 46px;
}

.summary-metric span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.summary-bars > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}

.summary-bars span {
  color: rgba(255, 255, 255, 0.52);
}

.summary-bars b {
  color: #ffffff;
}

.source-file {
  margin-top: 25px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.source-file .file-type {
  width: 34px;
  height: 34px;
  font-size: 9px;
}

.source-file strong {
  color: #ffffff;
}

.source-file div span {
  color: rgba(255, 255, 255, 0.45);
}

.summary-note {
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1.55;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: var(--ink);
  color: #ffffff;
}

.live-chip > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(216, 255, 101, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(216, 255, 101, 0); }
}

.network-stage {
  min-height: 540px;
  background: var(--ink);
}

.network-stage::before {
  opacity: 0.12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 0.6px, transparent 0.6px);
}

.network-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(216, 255, 101, 0.2);
}

.ring-one {
  width: 330px;
  height: 330px;
}

.ring-two {
  width: 470px;
  height: 470px;
  border-color: rgba(255, 255, 255, 0.1);
}

.network-core {
  position: relative;
  z-index: 5;
  width: 134px;
  height: 134px;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 0 0 15px rgba(216, 255, 101, 0.07), 0 0 60px rgba(216, 255, 101, 0.18);
}

.network-core span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.network-core strong {
  font-family: Georgia, serif;
  font-size: 14px;
  line-height: 1.15;
}

.network-node,
.validator-node {
  position: absolute;
  z-index: 4;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #272a24;
  color: rgba(255, 255, 255, 0.43);
  font-size: 9px;
  font-weight: 800;
  transition: background 350ms ease, color 350ms ease, transform 350ms ease, box-shadow 350ms ease;
}

.network-node.active {
  background: var(--paper);
  color: var(--ink);
  transform: scale(1.08);
  box-shadow: 0 0 0 5px rgba(216, 255, 101, 0.12);
}

.node-0 { top: 10%; left: 48%; }
.node-1 { top: 17%; right: 23%; }
.node-2 { top: 31%; right: 10%; }
.node-3 { top: 51%; right: 7%; }
.node-4 { bottom: 22%; right: 16%; }
.node-5 { bottom: 8%; right: 37%; }
.node-6 { bottom: 9%; left: 34%; }
.node-7 { bottom: 22%; left: 14%; }
.node-8 { top: 50%; left: 7%; }
.node-9 { top: 28%; left: 11%; }
.node-10 { top: 15%; left: 25%; }
.node-11 { bottom: 8%; left: 48%; }

.validator-node {
  width: 39px;
  height: 39px;
  border-color: rgba(216, 255, 101, 0.55);
  color: var(--lime);
  background: rgba(216, 255, 101, 0.08);
}

.validator-one { top: 24%; left: 45%; }
.validator-two { bottom: 24%; right: 27%; }
.validator-three { bottom: 26%; left: 24%; }

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

.live-metrics > div {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  background: var(--canvas);
}

.live-metrics span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-metrics strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.phase-list.compact {
  margin-top: 21px;
}

.phase-list.compact .phase-row {
  min-height: 52px;
}

.result-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: start;
}

.decision-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.decision-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.decision-header > div > span,
.confidence-block > div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.decision-header h2 {
  gap: 13px;
  margin-top: 10px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.decision-header h2 i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
}

.decision-card.reject .decision-header h2 i {
  background: var(--red-soft);
  color: var(--red);
}

.decision-card.insufficient .decision-header h2 i {
  background: var(--orange-soft);
  color: #84501d;
}

.ready-chip {
  padding: 8px 11px;
  background: var(--mint);
  color: var(--green);
}

.confidence-block {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.confidence-block > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.confidence-block strong {
  font-family: Georgia, serif;
  font-size: 30px;
}

.confidence-block .confidence-track {
  margin-top: 12px;
}

.decision-section {
  padding-top: 26px;
}

.decision-section h3 {
  font-family: Georgia, serif;
  font-size: 18px;
}

.reason-list {
  list-style: none;
  display: grid;
  gap: 13px;
  margin: 16px 0 0;
  padding: 0;
}

.reason-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}

.reason-list li > span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.reason-list p {
  color: var(--ink-soft);
  font-size: 13px;
}

.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.metric-chips span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--canvas);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.follow-up {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  margin-top: 30px;
  padding: 17px;
  border-radius: 14px;
  background: var(--ink);
  color: #ffffff;
}

.follow-up > span {
  color: var(--lime);
}

.follow-up strong {
  font-size: 12px;
}

.follow-up p {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.result-sidebar {
  display: grid;
  gap: 14px;
}

.total-evaluations {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 14px;
}

.vote-list {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.vote-list > div > p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}

.vote-list > div > div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9e1;
}

.vote-list > div > div > span {
  height: 100%;
  display: block;
  border-radius: inherit;
}

.approve-bar { background: var(--lime-deep); }
.reject-bar { background: var(--red); }
.info-bar { background: var(--orange); }

.panel-footnote,
.feedback-panel > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.history-stats > div {
  padding: 15px;
  border-radius: 12px;
  background: var(--canvas);
}

.history-stats strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 25px;
}

.history-stats span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.precedent-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.precedent-row > div {
  display: flex;
  gap: 6px;
}

.precedent-row b {
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 9px;
}

.feedback-panel h2 {
  margin-top: 5px;
}

.feedback-actions {
  margin-top: 18px;
}

.feedback-actions button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.feedback-actions button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.feedback-confirmation {
  gap: 8px;
  margin-top: 13px;
  padding: 10px;
  border-radius: 9px;
  background: var(--mint);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.site-footer {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 2px 4px 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 980px) {
  .upload-layout,
  .extraction-grid,
  .review-layout,
  .evaluation-layout,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .trust-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .trust-panel .panel-kicker,
  .security-note {
    grid-column: 1 / -1;
  }

  .agent-list {
    margin-top: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .summary-sticky {
    position: static;
  }

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

  .feedback-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header,
  .product-frame,
  .site-footer {
    width: min(100% - 24px, 1380px);
  }

  .site-header {
    min-height: 70px;
  }

  .pilot-chip {
    display: none;
  }

  .product-frame {
    margin-top: 12px;
    border-radius: 18px;
  }

  .progress-nav {
    min-height: 60px;
    padding: 0 14px;
  }

  .progress-item {
    gap: 6px;
    font-size: 10px;
  }

  .progress-item:not(:last-child)::after {
    left: 29px;
    right: 8px;
  }

  .progress-number {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .workspace {
    padding: 28px 20px 34px;
  }

  .upload-workspace {
    padding-top: 38px;
  }

  .drop-zone {
    min-height: 380px;
    padding: 28px 18px;
  }

  .upload-actions,
  .form-actions {
    width: 100%;
    flex-direction: column;
  }

  .upload-actions button,
  .form-actions button {
    width: 100%;
  }

  .trust-panel,
  .agent-list,
  .result-sidebar {
    grid-template-columns: 1fr;
  }

  .trust-panel .panel-kicker,
  .security-note,
  .feedback-panel {
    grid-column: auto;
  }

  .process-header,
  .workspace-heading-row,
  .result-topbar,
  .decision-header,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-pill {
    max-width: 100%;
  }

  .document-preview,
  .network-stage {
    min-height: 430px;
  }

  .document-sheet {
    width: 76%;
    min-height: 350px;
    padding: 24px;
  }

  .extraction-orbit {
    width: 360px;
    height: 360px;
  }

  .privacy-banner {
    grid-template-columns: auto 1fr;
  }

  .privacy-banner .small-chip {
    grid-column: 1 / -1;
  }

  .form-grid,
  .live-metrics {
    grid-template-columns: 1fr;
  }

  .live-metrics > div {
    min-height: 68px;
  }

  .network-stage {
    transform: none;
  }

  .ring-two {
    width: 390px;
    height: 390px;
  }

  .ring-one {
    width: 270px;
    height: 270px;
  }

  .network-core {
    width: 112px;
    height: 112px;
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
  }
}

/* AvaTrade + Endure final brand system */
:root {
  --ink: #102822;
  --ink-soft: #42554f;
  --muted: #6f7d77;
  --canvas: #f1eee5;
  --paper: #f8f5ed;
  --paper-strong: #ffffff;
  --line: #d7d4ca;
  --line-strong: #bdbbb1;
  --lime: #d9ff69;
  --mint: #e3f3eb;
  --green: #087759;
  --avatrade-green: #00a878;
  --avatrade-green-dark: #08735a;
  --navy: #092b31;
}

body {
  color: var(--ink);
  background-color: var(--canvas);
  background-image: radial-gradient(circle at 8% 0%, rgba(0, 168, 120, 0.09), transparent 30%), linear-gradient(rgba(16, 40, 34, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 40, 34, 0.028) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  font-family: Inter, Helvetica, Arial, sans-serif;
}

.site-shell { padding: 22px; }

.site-header {
  width: min(1440px, 100%);
  min-height: 96px;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid rgba(16, 40, 34, 0.14);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: rgba(248, 245, 237, 0.96);
  color: var(--ink);
  box-shadow: 0 16px 44px rgba(9, 43, 49, 0.08);
}

.brand-lockup { min-width: 260px; gap: 17px; }
.avatrade-logo { display: block; width: 132px; height: auto; }
.powered-lockup { padding-left: 17px; border-left: 1px solid var(--line-strong); }
.powered-lockup > span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.endure-wordmark { display: flex; align-items: center; gap: 5px; margin-top: 3px; line-height: 1; }
.endure-wordmark i { color: var(--green); font-size: 15px; font-style: normal; }
.endure-wordmark strong { color: var(--ink); font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.endure-wordmark em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.header-context { display: grid; gap: 4px; padding-left: 24px; border-left: 1px solid var(--line); }
.header-context span { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: 0.16em; }
.header-context strong { font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.pilot-chip { border: 1px solid rgba(8, 119, 89, 0.24); border-radius: 999px; background: var(--mint); color: var(--green); }
.status-dot { background: var(--avatrade-green); box-shadow: 0 0 0 4px rgba(0, 168, 120, 0.13); }
.text-button { color: var(--ink); }

.product-frame {
  width: min(1440px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(16, 40, 34, 0.14);
  border-radius: 0 0 18px 18px;
  background: var(--paper);
  box-shadow: 0 24px 60px rgba(9, 43, 49, 0.13);
  overflow: hidden;
}

.progress-nav { border-bottom: 0; background: var(--navy); }
.progress-item { color: rgba(255, 255, 255, 0.58); }
.progress-item::after { background: rgba(255, 255, 255, 0.14); }
.progress-item.active { background: rgba(255, 255, 255, 0.055); color: #fff; }
.progress-item.active::after, .progress-item.complete::after { background: var(--avatrade-green); }
.progress-number { border-color: rgba(255, 255, 255, 0.34); color: #fff; }
.progress-item.active .progress-number, .progress-item.complete .progress-number { border-color: var(--avatrade-green); background: var(--avatrade-green); color: #fff; }

.workspace, .process-workspace, .result-workspace {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(16, 40, 34, 0.075) 0.7px, transparent 0.7px);
  background-size: 20px 20px;
}
.workspace h1, .process-workspace h1, .result-workspace h1 { max-width: 900px; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.2vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; }
.eyebrow, .panel-kicker { color: var(--green); font-weight: 800; letter-spacing: 0.16em; }
.workspace-intro p, .process-header p, .result-header p { color: var(--ink-soft); }

.drop-zone { border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 9px 9px 0 var(--mint); }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--avatrade-green); background: #0b363d; }
.drop-zone h2, .drop-zone p { color: #fff; }
.drop-zone p { opacity: 0.68; }
.upload-icon { background: var(--avatrade-green); color: #fff; }
.primary-button, .run-button { border-color: var(--avatrade-green); border-radius: 9px; background: var(--avatrade-green); color: #fff; box-shadow: none; }
.primary-button:hover, .run-button:hover { background: var(--avatrade-green-dark); transform: translateY(-1px); }

.trust-panel, .data-card, .result-panel, .case-summary, .analyst-card, .consensus-stage { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 14px 34px rgba(9, 43, 49, 0.07); }
.trust-panel { box-shadow: inset 5px 0 0 var(--lime), 0 14px 34px rgba(9, 43, 49, 0.07); }
.security-note { border-radius: 10px; background: var(--navy); color: #fff; }
.security-note p, .security-note strong { color: #fff; }
.privacy-banner, .privacy-panel { border-color: rgba(8, 119, 89, 0.24); border-radius: 12px; background: var(--mint); color: var(--ink); }
.privacy-icon { background: var(--green); color: #fff; }

input, select, textarea { border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--avatrade-green); box-shadow: 0 0 0 3px rgba(0, 168, 120, 0.12); }
.case-summary { border-color: rgba(8, 119, 89, 0.28); background: var(--mint); box-shadow: 7px 7px 0 rgba(8, 119, 89, 0.15); }
.case-summary .summary-status, .live-chip { border-color: rgba(8, 119, 89, 0.24); background: #fff; color: var(--green); }
.consensus-stage { background: linear-gradient(145deg, #fff 0%, #eef7f2 100%); }
.analyst-card.running, .analyst-card.complete { border-color: rgba(0, 168, 120, 0.42); }
.analyst-card.complete .analyst-status, .consensus-metric strong { color: var(--green); }

.decision-card { border: 0; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 10px 10px 0 var(--avatrade-green); }
.decision-card h2, .decision-card p, .decision-card .panel-kicker { color: #fff; }
.decision-card .confidence-value { color: var(--lime); }
.decision-card .follow-up { border-color: var(--lime); border-radius: 10px; background: var(--lime); color: var(--ink); }
.feedback-actions button { border-color: var(--navy); border-radius: 8px; }
.feedback-actions button.selected { border-color: var(--green); background: var(--green); color: #fff; }

.site-footer { width: min(1440px, 100%); margin: 18px auto 4px; color: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .header-context { display: none; }
  .site-shell { padding: 12px; }
}

@media (max-width: 680px) {
  .site-header { min-height: 82px; padding: 13px 15px; }
  .brand-lockup { min-width: 0; gap: 10px; }
  .avatrade-logo { width: 105px; }
  .powered-lockup { padding-left: 10px; }
  .endure-wordmark em, .pilot-chip { display: none; }
  .product-frame { box-shadow: 0 18px 45px rgba(9, 43, 49, 0.14); }
  .drop-zone { box-shadow: 5px 5px 0 var(--mint); }
  .decision-card { box-shadow: 5px 5px 0 var(--avatrade-green); }
}

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

/* Contrast pass: all body copy and controls meet a readable light/dark pairing. */
:root {
  --muted: #566862;
}

.drop-zone > p {
  color: #d6e5e1;
  opacity: 1;
}

.drop-zone .fine-print {
  color: #b8ccc7;
}

.drop-zone .secondary-button {
  border-color: #c6d8d4;
  background: transparent;
  color: #ffffff;
}

.drop-zone .secondary-button:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.primary-button,
.run-button {
  border-color: var(--avatrade-green-dark);
  background: var(--avatrade-green-dark);
  color: #ffffff;
}

.upload-icon {
  background: var(--avatrade-green-dark);
  color: #ffffff;
}

.trust-panel {
  color: var(--ink);
}

.trust-panel .panel-kicker {
  color: var(--green);
}

.agent-list li {
  border-bottom-color: var(--line);
}

.agent-list li > span {
  color: var(--green);
  font-weight: 800;
}

.agent-list strong {
  color: var(--ink);
}

.agent-list p {
  color: var(--ink-soft);
}

.security-note,
.security-note p,
.security-note strong {
  color: #ffffff;
}

.security-note > span {
  color: var(--lime);
}

.decision-card .panel-kicker,
.decision-card h2,
.decision-card p,
.decision-card li,
.decision-card span {
  color: #ffffff;
}

.decision-card .confidence-value,
.decision-card .reason-list li > span {
  color: var(--lime);
}

.decision-card .follow-up,
.decision-card .follow-up p,
.decision-card .follow-up span {
  color: var(--ink);
}

/* Official partner lockup */
.brand-lockup {
  min-width: 170px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.avatrade-logo {
  width: 138px;
  height: 32px;
}

.powered-lockup {
  min-height: 0;
  padding: 0;
  border: 0;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

.powered-lockup > span:first-child {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
}

.endure-logo-badge {
  width: 74px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--navy);
}

.endure-logo-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Secondary and dark-surface readability */
.summary-sticky .panel-kicker,
.summary-metric span,
.summary-bars span,
.source-file div span,
.summary-note {
  color: #c4d5d0;
}

.network-node {
  color: #bed0cb;
}

.decision-card .ready-chip {
  background: var(--mint);
  color: var(--green);
}

.decision-card .reason-list li > span {
  background: var(--lime);
  color: var(--ink);
}

.decision-card .metric-chips span {
  color: #ffffff;
}

.decision-card .confidence-block > div > span,
.decision-card .decision-header > div > span {
  color: #d4e1de;
}

.quality-chip,
.small-chip,
.feedback-confirmation {
  color: var(--green);
}

@media (max-width: 680px) {
  .brand-lockup { gap: 3px; }
  .avatrade-logo { width: 112px; height: 27px; }
  .endure-logo-badge { width: 64px; height: 22px; }
}

/* Retained legacy theme reference. Disabled in favor of the partner brand system above. */
@media (max-width: 0px) {
/* Bold Endure editorial system */
:root {
  --ink: #11120f;
  --ink-soft: #3f403a;
  --muted: #69685f;
  --canvas: #11120f;
  --paper: #f2ede3;
  --paper-strong: #fffdf8;
  --line: #c9c2b5;
  --line-strong: #11120f;
  --lime: #d8ff65;
  --lime-deep: #9fc322;
  --shadow: none;
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
}

.site-header {
  min-height: 88px;
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.brand-symbol {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(216, 255, 101, 0.13);
}

.brand-name {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-name span,
.brand-subtitle,
.site-footer {
  color: rgba(255, 255, 255, 0.55);
}

.pilot-chip {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-button {
  color: rgba(255, 255, 255, 0.72);
}

.product-frame {
  margin-top: 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 11px 11px 0 rgba(216, 255, 101, 0.2);
}

.progress-nav {
  min-height: 76px;
  border-bottom: 2px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.progress-item {
  font-size: 11px;
}

.progress-number {
  border-radius: 3px;
  background: #23241f;
}

.progress-item.active .progress-number,
.progress-item.complete .progress-number {
  border-color: var(--lime);
  background: var(--lime);
}

.workspace {
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 18, 15, 0.12) 0.7px, transparent 0.8px),
    var(--paper);
  background-size: 23px 23px;
}

.upload-workspace {
  padding-top: clamp(52px, 7vw, 96px);
}

.workspace-intro {
  max-width: 980px;
  margin-bottom: 48px;
}

.workspace h1,
.process-workspace h1,
.result-workspace h1 {
  max-width: 980px;
  font-size: clamp(45px, 6.3vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.process-workspace h1,
.review-workspace h1,
.result-workspace h1 {
  font-size: clamp(40px, 5.3vw, 70px);
}

.eyebrow,
.panel-kicker {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.upload-layout,
.extraction-grid,
.review-layout,
.evaluation-layout,
.result-grid {
  gap: 18px;
}

.drop-zone {
  min-height: 470px;
  border: 0;
  border-radius: 10px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 0.7px, transparent 0.8px),
    var(--ink);
  background-size: 22px 22px;
  color: #ffffff;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.drop-zone.drag-active {
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 18, 15, 0.16) 0.7px, transparent 0.8px),
    var(--lime);
  background-size: 22px 22px;
  color: var(--ink);
}

.upload-icon {
  width: 82px;
  height: 82px;
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 8px 8px 0 rgba(216, 255, 101, 0.16);
}

.drop-zone h2 {
  font-size: clamp(29px, 3.7vw, 45px);
}

.drop-zone > p,
.drop-zone .fine-print {
  color: rgba(255, 255, 255, 0.56);
}

.drop-zone.drag-active > p,
.drop-zone.drag-active .fine-print {
  color: rgba(17, 18, 15, 0.66);
}

.drop-zone .primary-button {
  background: var(--lime);
  color: var(--ink);
  box-shadow: none;
}

.drop-zone .secondary-button {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.drop-zone.drag-active .secondary-button {
  border-color: var(--ink);
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 50px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.primary-button {
  background: var(--ink);
  box-shadow: 5px 5px 0 rgba(17, 18, 15, 0.14);
}

.trust-panel {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
}

.trust-panel .panel-kicker,
.agent-list li > span,
.agent-list p {
  color: rgba(17, 18, 15, 0.64);
}

.agent-list li {
  border-bottom-color: rgba(17, 18, 15, 0.18);
}

.agent-list li > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.security-note {
  border-radius: 4px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.security-note strong {
  color: var(--lime);
}

.file-pill,
.process-panel,
.result-panel,
.form-section,
.decision-card {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(17, 18, 15, 0.09);
}

.file-pill,
.source-file {
  border-radius: 4px;
}

.file-type {
  border-radius: 2px;
  background: var(--ink);
  color: var(--lime);
}

.document-preview {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #dcd5c8;
}

.document-sheet {
  border: 1px solid var(--ink);
  box-shadow: 10px 12px 0 rgba(17, 18, 15, 0.16);
}

.document-row b {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.privacy-card,
.privacy-banner {
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  background: var(--lime);
}

.privacy-icon,
.privacy-check {
  border-radius: 2px;
  background: var(--ink);
  color: var(--lime);
}

.small-chip,
.quality-chip,
.ready-chip {
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-grid input,
.form-grid select,
.input-with-unit {
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: #f7f2e8;
}

.toggle-row span {
  border-color: var(--ink);
  border-radius: 3px;
}

.summary-sticky {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--lime);
}

.summary-metric strong {
  font-size: 56px;
}

.live-chip {
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--lime);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-chip > span {
  background: var(--ink);
}

.consensus-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: stretch;
  overflow: hidden;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 1px 1px, rgba(17, 18, 15, 0.17) 0.7px, transparent 0.8px),
    #ece5d9;
  background-size: 23px 23px;
}

.consensus-stage::before {
  display: none;
}

.canvas-topline,
.canvas-legend {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.canvas-topline {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 18, 15, 0.28);
}

.canvas-topline span:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.canvas-topline i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(159, 195, 34, 0.18);
  animation: pulse 1.4s ease-in-out infinite;
}

#consensus-canvas {
  width: 100%;
  height: 450px;
  display: block;
}

.canvas-legend {
  justify-content: flex-start;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 18, 15, 0.28);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.canvas-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.canvas-legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border: 1px solid var(--ink);
}

.canvas-legend .source-key {
  background: var(--ink);
}

.canvas-legend .validator-key {
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.canvas-legend .consensus-key {
  border-radius: 50%;
  background: var(--lime);
}

.evaluation-panel {
  box-shadow: 6px 6px 0 var(--lime);
}

.phase-marker {
  border-radius: 2px;
  border-color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.phase-row.active .phase-marker,
.phase-row.complete .phase-marker {
  border-color: var(--ink);
  background: var(--lime);
}

.progress-track,
.confidence-track,
.vote-list > div > div {
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: #d8d1c5;
}

.progress-track > span,
.confidence-track > span {
  border-radius: 0;
  background: var(--ink);
}

.live-metrics > div,
.history-stats > div {
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--lime);
}

.decision-card {
  border: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 0.7px, transparent 0.8px),
    var(--ink);
  background-size: 23px 23px;
  color: #ffffff;
  box-shadow: 8px 8px 0 var(--lime);
}

.decision-card .decision-header,
.decision-card .confidence-block {
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.decision-card .decision-header > div > span,
.decision-card .confidence-block > div > span {
  color: rgba(255, 255, 255, 0.5);
}

.decision-card .decision-header h2 i {
  border-radius: 3px;
}

.decision-card .ready-chip {
  border-color: var(--lime);
  color: var(--lime);
}

.decision-card .confidence-track {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.decision-card .confidence-track > span {
  background: var(--lime);
}

.decision-card .reason-list p {
  color: rgba(255, 255, 255, 0.75);
}

.decision-card .reason-list li > span {
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
}

.decision-card .metric-chips span {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.decision-card .follow-up {
  border: 1px solid var(--lime);
  border-radius: 4px;
  background: var(--lime);
  color: var(--ink);
}

.decision-card .follow-up > span,
.decision-card .follow-up p {
  color: var(--ink);
}

.result-panel {
  box-shadow: 5px 5px 0 rgba(17, 18, 15, 0.09);
}

.total-evaluations,
.precedent-row b,
.feedback-actions button,
.feedback-confirmation {
  border-radius: 3px;
}

.feedback-actions button {
  border: 1.5px solid var(--ink);
}

.feedback-actions button.selected {
  background: var(--lime);
  color: var(--ink);
}

@media (max-width: 680px) {
  .product-frame {
    box-shadow: 6px 6px 0 rgba(216, 255, 101, 0.2);
  }

  .workspace h1,
  .process-workspace h1,
  .result-workspace h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .drop-zone {
    min-height: 430px;
  }

  .consensus-stage {
    min-height: 470px;
    padding: 14px;
  }

  #consensus-canvas {
    height: 370px;
  }

  .canvas-topline,
  .canvas-legend {
    font-size: 7px;
  }

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