:root {
  color-scheme: dark;
  --bg: #080f0d;
  --panel: #101a16;
  --raised: #16231d;
  --line: #26382f;
  --text: #eaf3ed;
  --muted: #94a89c;
  --green: #75d8ab;
  --amber: #e9bb70;
  --red: #ed958d;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:hover,
.button:hover {
  border-color: var(--green);
  background: #20372c;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.primary {
  background: var(--green);
  color: #092216;
  font-weight: 650;
  border-color: var(--green);
}
.primary:hover {
  background: #96e6c0;
}
.danger {
  color: var(--red);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b1510;
  color: var(--text);
  padding: 11px;
  border-radius: 6px;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
label {
  display: grid;
  gap: 6px;
  color: #c3d1c8;
  font-size: 12px;
  letter-spacing: 0.02em;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-weight: 560;
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
p {
  color: var(--muted);
}
small,
.muted {
  color: var(--muted);
}
.brand {
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #527963;
  border-radius: 8px;
  color: var(--green);
  font-size: 17px;
}
.eyebrow {
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 650;
  margin-bottom: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  gap: 16px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 20px;
  color: var(--muted);
  white-space: nowrap;
}
.badge.complete,
.badge.working {
  color: var(--green);
  background: #183027;
}
.badge.failed,
.badge.failing,
.badge.suspect {
  color: var(--red);
  background: #321e1a;
}
.badge.running,
.badge.queued,
.badge.warning {
  color: var(--amber);
}
.empty {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h2 {
  color: var(--text);
  margin-bottom: 10px;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
td,
th {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  overflow-wrap: anywhere;
}
.table-scroll {
  overflow: auto;
}
code {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  color: #a6c8b5;
  overflow-wrap: anywhere;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #54482b;
  background: #211d12;
  border-radius: 8px;
  color: var(--amber);
  font-size: 12px;
}
.hidden,
[hidden] {
  display: none !important;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #0a120e;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav a,
.sidebar nav button {
  font-size: 12px;
  padding: 10px 12px;
  text-align: left;
  justify-content: flex-start;
  background: none;
  border-color: transparent;
  color: var(--muted);
}
.sidebar nav .active {
  color: var(--text);
  background: #1a2a21;
  border-color: var(--line);
}
.sidebar .bottom {
  margin-top: auto;
}
.main {
  padding: 32px 42px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 25px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.metric {
  font-size: 30px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -1px;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 10px;
}
.steps {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}
.stepnum {
  color: var(--green);
  margin-right: 5px;
}
.node-editor {
  display: flex;
  gap: 12px;
  align-items: stretch;
  overflow: auto;
  padding: 18px 0;
}
.node-edit {
  min-width: 195px;
  max-width: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0c1610;
  border-radius: 9px;
  display: grid;
  gap: 9px;
}
.node-edit label {
  font-size: 10px;
}
.node-edit input,
.node-edit select {
  padding: 7px;
  font-size: 12px;
}
.tiny {
  padding: 4px 8px;
  font-size: 11px;
}
.node-tools {
  display: flex;
  gap: 5px;
  justify-content: space-between;
}
.node-add {
  min-width: 120px;
  border: 1px dashed #456151;
  background: transparent;
  color: var(--muted);
}
.upload-zone {
  border: 1px dashed #40634e;
  background: #102017;
  border-radius: 9px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
}
.upload-zone strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.upload-zone p {
  font-size: 12px;
}
.evidence-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.5fr) repeat(4, minmax(90px, 1fr)) 40px;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.evidence-row select {
  font-size: 11px;
  padding: 7px;
}
.filename {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.flow-map {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: auto;
  padding: 28px 0;
}
.flow-node {
  min-width: 132px;
  flex: 1;
  border: 1px solid #355345;
  background: #12261b;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.flow-node.unknown {
  border-style: dashed;
  background: #111b15;
  color: var(--muted);
}
.flow-node.suspect {
  border-color: #986758;
  background: #302018;
}
.flow-node .icon {
  font-size: 23px;
  margin-bottom: 10px;
  color: var(--green);
}
.flow-node.suspect .icon {
  color: var(--red);
}
.flow-node h3 {
  font-size: 12px;
}
.flow-node small {
  font-size: 10px;
}
.connector {
  min-width: 35px;
  height: 1px;
  background: #527e64;
  position: relative;
}
.connector:after {
  content: "›";
  position: absolute;
  right: -1px;
  top: -13px;
  color: #75a58a;
}
.verdict {
  background: linear-gradient(115deg, #162f21, #101a16 70%);
  border-color: #355d44;
}
.verdict h2 {
  font-size: 25px;
  max-width: 900px;
  line-height: 1.4;
}
.confidence {
  border-left: 1px solid #41674d;
  padding-left: 25px;
  min-width: 150px;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs button {
  border: none;
  border-radius: 0;
  background: none;
  color: var(--muted);
  padding: 12px 15px;
  white-space: nowrap;
  font-size: 12px;
}
.tabs button.active {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}
.progress-track {
  height: 5px;
  background: #25372d;
  border-radius: 5px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: var(--green);
  transition: width 0.4s;
}
.fact {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.fact p {
  margin: 6px 0;
  color: #c6d7cc;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 460px;
  background: #254532;
  border: 1px solid #658975;
  border-radius: 10px;
  padding: 16px 22px;
  z-index: 100;
  box-shadow: 0 8px 40px #0008;
}
.auth {
  width: min(440px, 92vw);
  margin: 9vh auto;
}
.auth .card {
  padding: 32px;
}
.auth h1 {
  font-size: 27px;
}
.auth .brand {
  margin-bottom: 35px;
}
.error {
  color: var(--red);
  font-size: 12px;
}
.auth form {
  display: grid;
  gap: 18px;
}
.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.chart {
  display: flex;
  align-items: end;
  height: 100px;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}
.chart span {
  flex: 1;
  min-width: 2px;
  background: #4ba276;
  border-radius: 2px 2px 0 0;
}
.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  font-size: 12px;
}
.stat-row strong {
  color: var(--green);
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(750px, 94vw);
  max-height: 85vh;
}
dialog::backdrop {
  background: #000a;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
}
.check input {
  width: auto;
}
.long {
  word-break: break-word;
}
.landing {
  background:
    radial-gradient(ellipse at 65% 15%, #16362488, transparent 50%), var(--bg);
}
.landing nav,
.landing section,
.landing footer {
  max-width: 1200px;
  margin: auto;
  padding: 32px;
}
.landing nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero {
  padding-top: 90px !important;
  padding-bottom: 80px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.hero h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.07;
  letter-spacing: -2.8px;
  margin: 22px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.hero p {
  font-size: 16px;
  max-width: 500px;
  line-height: 1.8;
}
.hero .row {
  margin-top: 30px;
}
.hero-visual {
  padding: 32px;
  background: linear-gradient(140deg, #182a20dd, #0c150fcc);
  border: 1px solid #355341;
  border-radius: 16px;
  box-shadow: 0 30px 100px #0005;
}
.hero-visual .flow-map {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.hero-visual .flow-node {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  padding: 15px 20px;
  min-width: 0;
}
.hero-visual .icon {
  margin: 0;
}
.hero-visual .connector {
  height: 20px;
  width: 1px;
  min-width: 0;
  margin-left: 32px;
}
.hero-visual .connector:after {
  transform: rotate(90deg);
  top: 4px;
  right: -6px;
}
.section-intro {
  margin-bottom: 30px;
  max-width: 620px;
}
.section-intro h2 {
  font-size: 30px;
  margin-bottom: 12px;
}
.landing .card p {
  font-size: 13px;
  margin-top: 12px;
}
.price {
  font-size: 30px;
  margin: 15px 0;
}
.landing footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  margin-top: 70px;
}
.sample-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 25px;
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 175px 1fr;
  }
  .main {
    padding: 25px;
  }
  .evidence-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .hero {
    gap: 25px;
  }
  .three {
    grid-template-columns: 1fr;
  }
  .admin-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
    gap: 12px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
  }
  .sidebar nav a {
    white-space: nowrap;
  }
  .sidebar .bottom {
    display: none;
  }
  .main {
    padding: 20px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .two,
  .hero {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 35px !important;
  }
  .landing nav,
  .landing section {
    padding: 22px;
  }
  .landing nav .muted {
    display: none;
  }
  .evidence-row {
    grid-template-columns: 1fr 1fr;
  }
  .flow-map {
    flex-direction: column;
    align-items: stretch;
  }
  .connector {
    height: 20px;
    width: 1px;
    min-width: 0;
    margin: auto;
  }
  .connector:after {
    transform: rotate(90deg);
    top: 4px;
    right: -6px;
  }
  .flow-node {
    min-width: 0;
  }
  .confidence {
    border-left: 0;
    padding: 15px 0;
  }
  .card {
    padding: 20px;
  }
  .steps {
    gap: 10px;
    font-size: 10px;
  }
  h1 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
.verdict > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 25px;
}
.flow-map > .flow-node {
  display: flex;
  flex-direction: column;
}
.hero-visual .flow-map > .flow-node {
  flex-direction: row;
}
@media (max-width: 700px) {
  .verdict > .row {
    grid-template-columns: 1fr;
  }
  .confidence {
    padding-top: 0;
  }
}
/* V3: evidence-first workflow and restrained verdict hierarchy. */
.workflow-card {
  position: relative;
  display: block;
  min-height: 220px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.workflow-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.workflow-card h2 {
  margin-top: 28px;
}
.workflow-arrow {
  position: absolute;
  right: 28px;
  bottom: 22px;
  font-size: 28px;
  color: #9cdbb8;
}
.support-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #354039;
}
.support-strip small,
.support-strip strong {
  display: block;
}
.support-strip strong {
  margin-top: 8px;
  font-size: 21px;
  color: #a8dfbf;
}
.summary-intro {
  margin: 18px 0;
}
.comparison {
  padding: 18px;
  border-radius: 9px;
  background: #15281e;
}
.comparison.failing {
  background: #30271f;
}
.verdict h2 {
  max-width: 900px;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
main,
.main,
.card,
.grid > * {
  min-width: 0;
}
code,
.filename,
pre,
.fact {
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
}
.table-scroll {
  max-width: 100%;
  overflow: auto;
}
.tabs {
  max-width: 100%;
  overflow-x: auto;
}
:focus-visible {
  outline: 2px solid #a8dfbf;
  outline-offset: 4px;
}
@media (max-width: 700px) {
  .support-strip {
    gap: 22px;
  }
  .workflow-card {
    min-height: 190px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .landing nav .row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .landing nav {
    align-items: flex-start;
    gap: 12px;
  }
}
