:root {
  --ink: #eef5ed;
  --muted: #95a497;
  --muted-2: #69766c;
  --surface: #0e1511;
  --surface-2: #121c16;
  --surface-3: #17231c;
  --line: rgba(192, 218, 195, 0.14);
  --line-strong: rgba(192, 218, 195, 0.25);
  --acid: #c8ff47;
  --acid-soft: rgba(200, 255, 71, 0.1);
  --green: #73e6a0;
  --amber: #ffbe55;
  --red: #ff6f66;
  --blue: #76b9ff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% -10%, rgba(133, 194, 82, 0.12), transparent 31rem),
    linear-gradient(180deg, #080d0a 0%, #0a100c 45%, #080d0a 100%);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

button,
input {
  font: inherit;
}

button,
label,
input[type="file"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled),
label[for] {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

:focus-visible {
  outline: 3px solid rgba(200, 255, 71, 0.65);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 15px;
  color: #081009;
  background: var(--acid);
  border-radius: 8px;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 6px 5px;
  border: 1px solid rgba(200, 255, 71, 0.35);
  border-radius: 8px;
  background: var(--acid-soft);
  transform: skew(-7deg);
}

.brand-mark span {
  width: 4px;
  background: var(--acid);
  border-radius: 1px;
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 13px; }

.brand-name,
.brand-product {
  display: block;
  line-height: 1;
}

.brand-name {
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.brand-product {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.system-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.status-chip {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 13%, transparent);
}

.status-chip.is-online {
  color: var(--green);
  border-color: rgba(115, 230, 160, 0.22);
  background: rgba(115, 230, 160, 0.07);
}

.status-chip.is-running {
  color: var(--blue);
  border-color: rgba(118, 185, 255, 0.22);
  background: rgba(118, 185, 255, 0.07);
}

.status-chip.is-warning {
  color: var(--amber);
  border-color: rgba(255, 190, 85, 0.22);
  background: rgba(255, 190, 85, 0.07);
}

.status-chip.is-error,
.status-chip.is-offline {
  color: var(--red);
  border-color: rgba(255, 111, 102, 0.2);
  background: rgba(255, 111, 102, 0.06);
}

.status-chip.is-neutral {
  color: #879289;
}

.status-chip.is-running .status-dot {
  animation: pulse 1.3s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.75); }
}

.hero {
  min-height: 490px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
  padding: clamp(64px, 9vw, 115px) 0 70px;
}

.eyebrow,
.section-index,
.job-kicker {
  margin: 0 0 16px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--acid);
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  font-weight: 520;
  line-height: 0.95;
  letter-spacing: -0.064em;
}

h1 em {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 675px;
  margin: 27px 0 0;
  color: #aab6ac;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.privacy-note {
  max-width: 665px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 29px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 255, 71, 0.17);
  border-radius: 12px;
  color: #a9b5ab;
  background: linear-gradient(90deg, rgba(200, 255, 71, 0.07), transparent);
  font-size: 0.85rem;
}

.privacy-note p { margin: 0; }
.privacy-note strong { color: var(--ink); }

.privacy-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10170f;
  background: var(--acid);
  font-weight: 900;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.scan-panel {
  width: min(100%, 410px);
  aspect-ratio: 4 / 4.35;
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(200, 255, 71, 0.22);
  border-radius: 26px;
  background:
    radial-gradient(circle at 60% 45%, rgba(200, 255, 71, 0.16), transparent 34%),
    linear-gradient(145deg, #18221a, #0c120e 68%);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.28);
  transform: perspective(900px) rotateY(-5deg) rotateX(2deg);
}

.scan-panel::before,
.scan-panel::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.scan-panel::before {
  inset: 53px 18px 47px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(230, 238, 224, 0.21), transparent 33%),
    linear-gradient(115deg, transparent 42%, rgba(209, 218, 205, 0.06) 42% 58%, transparent 58%),
    linear-gradient(10deg, rgba(0, 0, 0, 0.45), transparent 40%);
  filter: contrast(1.15);
}

.scan-panel::after {
  inset: 0;
  opacity: 0.3;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.022) 3px 4px);
}

.scan-label {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scan-grid {
  position: absolute;
  z-index: 1;
  inset: 53px 18px 47px;
  background-image:
    linear-gradient(rgba(200, 255, 71, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 71, 0.22) 1px, transparent 1px);
  background-size: 25% 33.333%;
  border: 1px solid rgba(200, 255, 71, 0.28);
}

.scan-reticle {
  position: absolute;
  z-index: 3;
  top: 36%;
  left: 49%;
  width: 26%;
  height: 21%;
  border: 1px solid var(--amber);
  box-shadow: 0 0 16px rgba(255, 190, 85, 0.2);
}

.scan-reticle i {
  position: absolute;
  top: -20px;
  left: -1px;
  padding: 3px 6px;
  color: #11150f;
  background: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-style: normal;
}

.scan-reticle i::after { content: "T_r2c4"; }

.scan-reticle b {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.scan-line {
  position: absolute;
  z-index: 4;
  right: 18px;
  left: 18px;
  top: 25%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  box-shadow: 0 0 18px var(--acid);
  animation: scanning 5s ease-in-out infinite;
}

@keyframes scanning {
  50% { transform: translateY(265px); opacity: 0.5; }
}

.scan-panel > p {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 15px;
  margin: 0;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.stepper {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(185px, 1fr) minmax(25px, 90px) minmax(185px, 1fr) minmax(25px, 90px) minmax(185px, 1fr);
  align-items: center;
  padding: 12px clamp(14px, 3vw, 28px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(12, 18, 14, 0.91);
  box-shadow: 0 13px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 0;
  color: var(--muted-2);
  background: transparent;
  text-align: left;
}

.step-number {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.step strong,
.step small {
  display: block;
}

.step strong {
  color: inherit;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
}

.step small {
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.step.is-active,
.step.is-complete {
  color: var(--ink);
  opacity: 1;
}

.step.is-active .step-number {
  color: #10170f;
  border-color: var(--acid);
  background: var(--acid);
}

.step.is-complete .step-number {
  color: var(--acid);
  border-color: rgba(200, 255, 71, 0.45);
  background: var(--acid-soft);
}

.step-rule {
  height: 1px;
  background: var(--line-strong);
}

.step-rule.is-complete {
  background: linear-gradient(90deg, var(--acid), rgba(200, 255, 71, 0.35));
}

.notice {
  margin: 22px 0 -12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 190, 85, 0.28);
  border-radius: var(--radius-sm);
  color: #ffd695;
  background: rgba(255, 190, 85, 0.07);
  font-size: 0.86rem;
}

.notice.is-error {
  border-color: rgba(255, 111, 102, 0.28);
  color: #ffaba5;
  background: rgba(255, 111, 102, 0.07);
}

.workflow-panel {
  margin: 34px 0 72px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(21, 31, 24, 0.94), rgba(11, 17, 13, 0.97));
  box-shadow: var(--shadow);
}

.workflow-panel[hidden],
.is-hidden {
  display: none !important;
}

.section-heading,
.results-heading,
.report-heading,
.job-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 25px;
}

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

.section-heading h2,
.results-heading h3,
.report-heading h4 {
  margin: 0;
  letter-spacing: -0.035em;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-weight: 620;
}

.section-heading p:not(.section-index) {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-index {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.65rem;
}

.panel-sigil {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 255, 71, 0.24);
  border-radius: 50%;
  color: var(--acid);
  background: var(--acid-soft);
  font-size: 1.25rem;
}

.connection-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
  margin-top: 31px;
}

.form-field label,
.settings-card label {
  display: block;
  color: #cdd7cf;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field > small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.input-shell {
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(5, 9, 6, 0.55);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within {
  border-color: rgba(200, 255, 71, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 255, 71, 0.08);
}

.input-shell > span {
  color: var(--acid);
  font-size: 1.2rem;
}

.input-shell input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.input-shell input::placeholder,
.settings-card input::placeholder {
  color: #566159;
}

.icon-button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 750;
}

.icon-button:hover {
  color: var(--ink);
  border-color: rgba(200, 255, 71, 0.35);
}

.connection-actions,
.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 17px;
  padding-top: 2px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.015em;
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}

.button:not(:disabled):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.button-primary {
  color: #10150e;
  border-color: var(--acid);
  background: var(--acid);
  box-shadow: 0 8px 25px rgba(200, 255, 71, 0.08);
}

.button-quiet {
  color: #cbd7cd;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-small {
  min-height: 39px;
  gap: 12px;
  padding: 8px 13px;
  font-size: 0.7rem;
}

.button.is-loading {
  pointer-events: none;
}

.button.is-loading span:first-child::after {
  display: inline-block;
  width: 1.1em;
  content: "…";
  text-align: left;
  animation: loadingDots 1s steps(3, end) infinite;
  overflow: hidden;
  vertical-align: bottom;
}

@keyframes loadingDots {
  0% { width: 0; }
  100% { width: 1.1em; }
}

.inline-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.inline-message.is-error { color: var(--red); }
.inline-message.is-success { color: var(--green); }

.connection-readout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 30px;
  border: 1px solid rgba(115, 230, 160, 0.17);
  border-radius: 13px;
  background: rgba(115, 230, 160, 0.045);
}

.connection-readout > div {
  min-width: 0;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}

.connection-readout > div:last-child { border-right: 0; }
.connection-readout span,
.connection-readout strong { display: block; }

.connection-readout span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.connection-readout strong {
  margin-top: 4px;
  overflow: hidden;
  color: #dce8de;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  gap: 24px;
  margin-top: 30px;
}

.drop-zone {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px dashed rgba(200, 255, 71, 0.32);
  border-radius: 17px;
  background:
    linear-gradient(rgba(200, 255, 71, 0.025), rgba(200, 255, 71, 0.01)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 8px, transparent 8px 16px);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: rgba(200, 255, 71, 0.75);
  background-color: rgba(200, 255, 71, 0.04);
  transform: translateY(-1px);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 255, 71, 0.25);
  border-radius: 50%;
  color: var(--acid);
  background: var(--acid-soft);
  font-size: 1.35rem;
}

.drop-zone strong {
  color: #dce8de;
  font-size: 1rem;
}

.drop-zone > span:not(.drop-icon) {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.drop-zone small {
  margin-top: 18px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.63rem;
}

.drop-zone small b {
  color: var(--acid);
  font-weight: 700;
}

.file-card {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(130px, 42%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(200, 255, 71, 0.24);
  border-radius: 17px;
  background: rgba(200, 255, 71, 0.035);
}

.file-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: #030503;
}

.file-card p,
.file-card strong,
.file-card span { display: block; }
.file-card p { margin: 0 0 5px; color: var(--acid); font-family: var(--font-mono); font-size: 0.61rem; letter-spacing: 0.08em; text-transform: uppercase; }
.file-card strong { overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.file-card span { margin-top: 4px; color: var(--muted); font-size: 0.7rem; }

.settings-card {
  min-width: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.018);
}

.settings-card legend {
  padding: 0 8px;
  color: #d7e3d9;
  font-size: 0.83rem;
  font-weight: 750;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 14px;
}

.setting-grid-three {
  grid-template-columns: 1fr 1fr;
}

.setting-grid-three label:last-child { grid-column: 1 / -1; }

.settings-card input {
  width: 100%;
  min-height: 45px;
  display: block;
  margin-top: 7px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: 0;
  color: var(--ink);
  background: rgba(4, 8, 5, 0.56);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.settings-card input:focus {
  border-color: rgba(200, 255, 71, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 255, 71, 0.08);
}

.input-unit {
  position: relative;
  display: block;
}

.input-unit input { padding-right: 45px; }

.input-unit b {
  position: absolute;
  right: 10px;
  bottom: 13px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
}

.settings-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 24px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.7rem;
}

.settings-hint span {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.form-submit-row {
  justify-content: space-between;
  margin-top: 22px;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
}

.form-submit-row p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.72rem;
}

.form-submit-row strong {
  color: #c8d4ca;
  font-family: var(--font-mono);
}

.job-card {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid rgba(118, 185, 255, 0.2);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, rgba(118, 185, 255, 0.055), transparent 65%);
}

.job-kicker {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.6rem;
}

.job-kicker code {
  color: #c8d9eb;
  font-family: var(--font-mono);
  text-transform: none;
}

.job-card h3 {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 670;
}

.progress-track {
  height: 8px;
  margin-top: 23px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--acid));
  box-shadow: 0 0 18px rgba(200, 255, 71, 0.2);
  transition: width 350ms ease;
}

.progress-track[data-level="0"] span { width: 0%; }
.progress-track[data-level="5"] span { width: 5%; }
.progress-track[data-level="10"] span { width: 10%; }
.progress-track[data-level="15"] span { width: 15%; }
.progress-track[data-level="20"] span { width: 20%; }
.progress-track[data-level="25"] span { width: 25%; }
.progress-track[data-level="30"] span { width: 30%; }
.progress-track[data-level="35"] span { width: 35%; }
.progress-track[data-level="40"] span { width: 40%; }
.progress-track[data-level="45"] span { width: 45%; }
.progress-track[data-level="50"] span { width: 50%; }
.progress-track[data-level="55"] span { width: 55%; }
.progress-track[data-level="60"] span { width: 60%; }
.progress-track[data-level="65"] span { width: 65%; }
.progress-track[data-level="70"] span { width: 70%; }
.progress-track[data-level="75"] span { width: 75%; }
.progress-track[data-level="80"] span { width: 80%; }
.progress-track[data-level="85"] span { width: 85%; }
.progress-track[data-level="90"] span { width: 90%; }
.progress-track[data-level="95"] span { width: 95%; }
.progress-track[data-level="100"] span { width: 100%; }

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
}

.progress-meta strong {
  color: #c8d8ca;
  font-family: var(--font-mono);
}

.results-section {
  margin-top: 38px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}

.results-heading {
  align-items: center;
}

.results-heading h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

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

.baseline-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 25px;
}

.baseline-map {
  min-height: 350px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 8), 1fr);
  grid-template-rows: repeat(var(--rows, 6), 1fr);
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(200, 255, 71, 0.17);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(200, 255, 71, 0.09), transparent 43%),
    #090e0b;
  aspect-ratio: 16 / 10;
}

.baseline-map.rows-1 { --rows: 1; }
.baseline-map.rows-2 { --rows: 2; }
.baseline-map.rows-3 { --rows: 3; }
.baseline-map.rows-4 { --rows: 4; }
.baseline-map.rows-5 { --rows: 5; }
.baseline-map.rows-6 { --rows: 6; }
.baseline-map.cols-1 { --cols: 1; }
.baseline-map.cols-2 { --cols: 2; }
.baseline-map.cols-3 { --cols: 3; }
.baseline-map.cols-4 { --cols: 4; }
.baseline-map.cols-5 { --cols: 5; }
.baseline-map.cols-6 { --cols: 6; }
.baseline-map.cols-7 { --cols: 7; }
.baseline-map.cols-8 { --cols: 8; }

.map-tile {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 2px;
  border: 1px solid rgba(200, 255, 71, 0.17);
  border-radius: 3px;
  color: #7f917f;
  background: rgba(200, 255, 71, 0.025);
  font-family: var(--font-mono);
  font-size: clamp(0.42rem, 0.8vw, 0.58rem);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.map-tile:hover,
.map-tile:focus-visible,
.map-tile.is-selected {
  color: #11160f;
  border-color: var(--acid);
  background: var(--acid);
}

.tile-list {
  max-height: 350px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-color: #3d4d40 transparent;
}

.baseline-tile {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 13px;
  align-items: start;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.baseline-tile:last-child { border-bottom: 0; }
.baseline-tile.is-selected { background: var(--acid-soft); }

.baseline-tile code {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.baseline-tile p {
  margin: 0;
  color: #b4c0b6;
  font-size: 0.73rem;
}

.baseline-tile span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  white-space: nowrap;
}

.next-step-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 17px 18px;
  border: 1px solid rgba(200, 255, 71, 0.21);
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(200, 255, 71, 0.075), transparent);
}

.next-step-callout > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.next-step-callout > div > span {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #10170f;
  background: var(--acid);
  font-weight: 900;
}

.next-step-callout p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.next-step-callout strong { color: var(--ink); }

.analysis-results-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.summary-grid article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.summary-grid span,
.summary-grid strong,
.summary-grid small { display: block; }

.summary-grid span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-grid strong {
  margin-top: 10px;
  overflow: hidden;
  color: #dce8de;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
  text-overflow: ellipsis;
}

.summary-grid strong.is-normal { color: var(--green); }
.summary-grid strong.is-deviation { color: var(--red); }
.summary-grid strong.is-uncertain { color: var(--amber); }

.summary-grid small {
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-block {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.report-heading {
  align-items: center;
}

.report-heading h4 {
  font-size: 1.2rem;
}

.legend,
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.legend span {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.59rem;
}

.legend span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translateY(-50%);
}

.legend .legend-deviation::before { background: var(--red); }
.legend .legend-uncertain::before { background: var(--amber); }

.timeline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 26px;
  padding: 8px 8px 24px;
  overflow-x: auto;
}

.timeline::before {
  position: absolute;
  top: 18px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.timeline-point {
  min-width: 58px;
  position: relative;
  flex: 1 0 58px;
  padding: 0;
  border: 0;
  color: var(--green);
  background: transparent;
  text-align: center;
}

.timeline-point::before {
  width: 13px;
  height: 13px;
  display: block;
  margin: 4px auto 9px;
  border: 3px solid #0d140f;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 1px currentColor;
  content: "";
}

.timeline-point.is-deviation { color: var(--red); }
.timeline-point.is-uncertain { color: var(--amber); }
.timeline-point:hover::before,
.timeline-point.is-selected::before { box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent), 0 0 0 1px currentColor; }

.timeline-point span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.56rem;
}

.frame-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.frame-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.frame-card.is-highlighted { border-color: rgba(200, 255, 71, 0.42); }

.frame-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(200, 255, 71, 0.035), rgba(0, 0, 0, 0.2)),
    repeating-linear-gradient(135deg, #111a14 0 8px, #0e1611 8px 16px);
}

.frame-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-card-media span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.6rem;
}

.frame-card-body { padding: 13px; }

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

.frame-card-topline code { color: #d6e0d8; font-family: var(--font-mono); font-size: 0.65rem; }

.verdict-pill {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 99px;
  color: var(--green);
  background: rgba(115, 230, 160, 0.09);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.verdict-pill.is-deviation { color: var(--red); background: rgba(255, 111, 102, 0.09); }
.verdict-pill.is-uncertain { color: var(--amber); background: rgba(255, 190, 85, 0.09); }

.frame-card-body p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.filter-group {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.filter-group button {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  color: var(--muted-2);
  background: transparent;
  font-size: 0.62rem;
  font-weight: 700;
}

.filter-group button.is-selected {
  color: #dfe9e1;
  background: var(--surface-3);
}

.verdict-list {
  display: grid;
  gap: 9px;
  margin-top: 19px;
}

.verdict-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.015);
}

.verdict-item summary {
  display: grid;
  grid-template-columns: 90px 105px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  list-style: none;
  cursor: pointer;
}

.verdict-item summary::-webkit-details-marker { display: none; }

.verdict-item summary::after {
  color: var(--muted-2);
  content: "+";
  font-size: 1rem;
}

.verdict-item[open] summary::after { content: "−"; }

.verdict-item summary code { color: var(--acid); font-family: var(--font-mono); font-size: 0.66rem; }

.verdict-summary {
  overflow: hidden;
  color: #aebbb0;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verdict-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 15px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.verdict-body > div:last-child { grid-column: 1 / -1; }

.verdict-body span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verdict-body p {
  margin: 0;
  color: #b5c1b7;
  font-size: 0.72rem;
}

.empty-state {
  padding: 30px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.76rem;
}

.report-callout { border-color: var(--line); background: rgba(255, 255, 255, 0.02); }

footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.68rem;
}

.footer-brand { transform: scale(0.88); transform-origin: left center; }
footer p { margin: 0; text-align: center; }
footer > span { font-family: var(--font-mono); }

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(370px, calc(100% - 40px));
  display: grid;
  gap: 8px;
}

.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: #cfdbd1;
  background: rgba(18, 28, 21, 0.97);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  animation: toastIn 180ms ease both;
}

.toast.is-error { border-color: rgba(255, 111, 102, 0.35); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-visual { display: none; }
  .stepper { grid-template-columns: 1fr 25px 1fr 25px 1fr; }
  .step small { display: none; }
  .connection-form,
  .upload-layout,
  .baseline-layout { grid-template-columns: 1fr; }
  .connection-readout { grid-template-columns: 1fr 1fr; }
  .connection-readout > div:nth-child(2) { border-right: 0; }
  .connection-readout > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .frame-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  .system-strip .status-chip:not(:first-child) { display: none; }
  .hero { min-height: 420px; padding: 58px 2px 50px; }
  h1 { font-size: clamp(2.85rem, 16vw, 4.3rem); }
  .hero-lede { font-size: 0.95rem; }
  .privacy-note { align-items: flex-start; }
  .stepper { top: 8px; min-height: 70px; padding: 8px; border-radius: 13px; }
  .step { justify-content: center; gap: 6px; padding: 4px; }
  .step > span:last-child { display: none; }
  .step-number { width: 33px; height: 33px; }
  .workflow-panel { margin: 22px 0 45px; padding: 21px 16px; border-radius: 19px; }
  .panel-sigil { display: none; }
  .section-heading h2 { font-size: 1.7rem; }
  .connection-form { gap: 18px; }
  .connection-actions,
  .form-submit-row,
  .results-heading,
  .report-heading,
  .next-step-callout { align-items: stretch; flex-direction: column; }
  .connection-actions .button,
  .form-submit-row .button,
  .next-step-callout .button { width: 100%; }
  .connection-readout { grid-template-columns: 1fr; }
  .connection-readout > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .connection-readout > div:last-child { border-bottom: 0; }
  .drop-zone,
  .file-card { min-height: 240px; }
  .file-card { grid-template-columns: 1fr; align-items: start; }
  .file-card video { max-height: 155px; }
  .setting-grid,
  .setting-grid-three { grid-template-columns: 1fr; }
  .setting-grid-three label:last-child { grid-column: auto; }
  .results-actions { align-items: stretch; flex-direction: column; }
  .baseline-map { min-height: 250px; }
  .baseline-tile { grid-template-columns: 66px 1fr; }
  .baseline-tile > span { display: none; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid article { padding: 14px; }
  .frame-cards { grid-template-columns: 1fr; }
  .verdict-item summary { grid-template-columns: 68px 85px minmax(0, 1fr) auto; gap: 8px; padding: 11px; }
  .verdict-body { grid-template-columns: 1fr; }
  .verdict-body > div:last-child { grid-column: auto; }
  footer { min-height: 165px; grid-template-columns: 1fr; justify-items: center; gap: 8px; padding: 25px 0; }
  .footer-brand { transform-origin: center; }
}

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