/* ─────────────────────────────────────────────────────────────────────
   The convert flow: upload, hard stop, and the report screen that doubles
   as the wizard.
   ───────────────────────────────────────────────────────────────────── */

.app main { padding-block: 48px 80px; }
.state h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 14px; }

/* ── upload ─────────────────────────────────────────────────────────── */

.dropzone {
  border: 1.5px dashed #c9ccd4;
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 46px 24px;
  text-align: center;
  cursor: pointer;
  margin: 28px 0 24px;
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone:focus-visible,
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dropzone.is-over { border-style: solid; }

.dz-icon {
  width: 34px; height: 34px; margin: 0 auto 14px;
  border-radius: 6px; border: 2px solid var(--accent); position: relative; opacity: .85;
}
.dz-icon::after {
  content: ""; position: absolute; inset: auto 6px 6px 6px;
  height: 2px; background: var(--accent); box-shadow: 0 -5px 0 var(--accent);
}
.dz-main { margin: 0; font-size: 16.5px; font-weight: 560; }
.dz-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.field { margin: 0 0 20px; }
.field label { display: block; font-weight: 560; font-size: 14.5px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input {
  width: 100%; font: inherit; font-size: 15px;
  padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: var(--panel); color: var(--ink);
}
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-help { margin: 7px 0 0; font-size: 13.5px; color: var(--muted); }

.nudge { font-size: 14.5px; color: var(--ink-soft); }

.demo-note {
  margin-top: 34px; padding: 15px 18px;
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--r-md); font-size: 14px; color: var(--ink-soft);
}
.demo-links { display: block; margin-top: 8px; }
.linkbtn {
  font: inherit; font-size: 14px; background: none; border: 0; padding: 0;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.linkbtn + .linkbtn { margin-left: 16px; }
.demo-note pre {
  margin: 10px 0 0; padding: 12px; overflow-x: auto;
  background: var(--console-bg); color: var(--console-ink);
  border-radius: var(--r-sm); font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
}

/* ── progress ───────────────────────────────────────────────────────── */

.bar { height: 5px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; margin: 24px 0 14px; }
.bar-fill { height: 100%; width: 35%; background: var(--accent); border-radius: 999px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar-fill { animation: none; width: 100%; } }

/* ── hard stop ──────────────────────────────────────────────────────── */

.eyebrow-warn { color: var(--warn); }
#stateHardstop p { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 14px; }
.hardstop-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.btn-quiet { background: none; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-quiet:hover { background: var(--bg); }

/* ── report head ────────────────────────────────────────────────────── */

.rpt-head { margin-bottom: 30px; }
.field-title { max-width: 560px; margin-top: 10px; }
.field-title input { font-size: 19px; font-weight: 560; padding: 11px 14px; }
.rpt-source { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.rpt-source code { font-size: 12.5px; }

.rpt-grid { display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
@media (max-width: 940px) { .rpt-grid { grid-template-columns: 1fr; } }

/* ── tally ──────────────────────────────────────────────────────────── */

.tally {
  padding: 18px 20px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--panel); margin-bottom: 18px;
}
.tally-main { font-size: 17px; }
.tally-main strong { font-size: 21px; font-weight: 660; }
.tally-main.is-thin strong { color: var(--warn); }
.tally-legend { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 11px 0 0; padding: 0; font-size: 13.5px; color: var(--muted); }
.tally-legend li { display: flex; align-items: center; gap: 7px; }
.tally-thin { margin: 12px 0 0; font-size: 14px; color: var(--warn); max-width: var(--measure); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-err { background: var(--err); }

/* ── warnings ───────────────────────────────────────────────────────── */

.warnings { display: grid; gap: 9px; margin-bottom: 22px; }
.warning {
  display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start;
  padding: 13px 16px; border-radius: var(--r-md);
  background: var(--warn-soft); border: 1px solid #f0dcbb;
}
.warning p { margin: 0; font-size: 14.5px; color: #7c3d06; }
.warning-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); margin-top: 6px; }
.warning-info { background: var(--bg); border-color: var(--line); }
.warning-info p { color: var(--ink-soft); }
.warning-info .warning-dot { background: var(--muted); }

/* ── activities ─────────────────────────────────────────────────────── */

.sec { margin-bottom: 26px; }
.sec-h {
  font-size: 11.5px; font-weight: 640; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 9px;
}
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.act {
  display: grid; grid-template-columns: auto 1fr; gap: 13px;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--panel);
  border-left-width: 3px;
}
.act-convert { border-left-color: var(--ok); }
.act-degrade { border-left-color: var(--warn); }
.act-skip    { border-left-color: var(--err); background: var(--bg); }
.act.is-out  { opacity: .55; }

.act-check { padding-top: 2px; }
.act-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.act-x { display: block; width: 16px; height: 16px; position: relative; }
.act-x::before, .act-x::after {
  content: ""; position: absolute; top: 7px; left: 2px; width: 12px; height: 1.5px;
  background: var(--err); opacity: .55;
}
.act-x::before { transform: rotate(45deg); } .act-x::after { transform: rotate(-45deg); }

.act-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.act-title { font-weight: 560; font-size: 15.5px; cursor: pointer; }
.act-skip .act-title { cursor: default; }
.act-kind {
  font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 999px; background: var(--bg-sunk); color: var(--muted);
}
.act-status { margin-left: auto; font-size: 12.5px; font-weight: 560; }
.act-status-convert { color: var(--ok); }
.act-status-degrade { color: var(--warn); }
.act-status-skip    { color: var(--err); }

.act-detail { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); }
.act-detail strong { color: var(--ink); }
.act-reason { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); max-width: 62ch; }

/* ── side ───────────────────────────────────────────────────────────── */

.rpt-side { position: sticky; top: 86px; }
@media (max-width: 940px) { .rpt-side { position: static; } }

.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); padding: 22px; }
.side-card h2 { margin: 0 0 18px; font-size: 17px; font-weight: 640; }

.side-block { border: 0; padding: 0; margin: 0 0 24px; }
.side-block legend { padding: 0; font-weight: 560; font-size: 14.5px; margin-bottom: 5px; }
.side-help { margin: 0 0 11px; font-size: 13px; color: var(--muted); }
.side-help-empty { font-style: italic; }
.side-warn {
  margin: 11px 0 0; padding: 10px 12px; font-size: 13px;
  background: var(--warn-soft); border-radius: var(--r-sm); color: #7c3d06;
}

.credit-opt {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; margin-bottom: 7px;
}
.credit-opt:hover { border-color: var(--accent); }
.credit-opt input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.credit-title { display: block; font-size: 14.5px; font-weight: 540; }
.credit-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.swatch {
  display: grid; gap: 5px; justify-items: center;
  padding: 9px 4px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--panel); cursor: pointer; font: inherit;
}
.swatch:hover { border-color: var(--muted); }
.swatch.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch-chip { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.swatch-name { font-size: 11.5px; color: var(--muted); }
.swatch.is-on .swatch-name { color: var(--ink); }

.side-cta { border-top: 1px solid var(--line); padding-top: 18px; }
.side-cta .btn { width: 100%; text-align: center; }
.side-cta .micro { margin: 10px 0 0; text-align: center; }
