:root {
  --bg: #fff; --card: #fff; --ink: #0f0f0f; --muted: #606060; --line: #e5e5e5;
  --brand: #065fd4; --brand-ink: #fff; --brand-soft: #eef4fd;
  --bad: #cc0000; --bad-soft: #fdecea; --ok: #1a8f3a; --ok-soft: #e8f6ec; --warn: #b45309; --warn-soft: #fef3c7;
  --chip: #f2f2f2; --chip-hover: #e5e5e5; --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f; --card: #181818; --ink: #f1f1f1; --muted: #aaa; --line: #303030;
    --brand: #3ea6ff; --brand-ink: #0f0f0f; --brand-soft: #1d2a3a;
    --bad: #ff6b6b; --bad-soft: #2c1614; --ok: #4ade80; --ok-soft: #14291c; --warn: #fbbf24; --warn-soft: #2d230a;
    --chip: #272727; --chip-hover: #3f3f3f;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0f; --card: #181818; --ink: #f1f1f1; --muted: #aaa; --line: #303030;
  --brand: #3ea6ff; --brand-ink: #0f0f0f; --brand-soft: #1d2a3a;
  --bad: #ff6b6b; --bad-soft: #2c1614; --ok: #4ade80; --ok-soft: #14291c; --warn: #fbbf24; --warn-soft: #2d230a;
  --chip: #272727; --chip-hover: #3f3f3f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/20px Roboto, Arial, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom);
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.right { text-align: right; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }

/* layout */
.top { display: flex; align-items: center; gap: 12px; max-width: 1100px; width: 100%; margin: 0 auto; padding: 16px; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.brand h1 { font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand p { margin: 0; color: var(--muted); font-size: .85rem; }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 4px 16px 32px; }
main.narrow { max-width: 720px; }
footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 16px; }
footer a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card.center { text-align: center; padding: 28px 18px; }
.card.nopad { padding: 0; overflow: hidden; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; background: var(--brand); color: var(--brand-ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.block { display: flex; width: 100%; }
.btn.secondary { background: var(--chip); color: var(--ink); }
.btn.secondary:hover { background: var(--chip-hover); filter: none; }
.btn.danger { background: var(--bad); color: #fff; }
.btn.small { min-height: 32px; padding: 0 12px; font-size: .85rem; }
.link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 600; cursor: pointer; padding: 6px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* forms */
label { display: block; font-weight: 600; font-size: .9rem; }
label small, .hint { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; margin-top: 4px; }
label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; min-height: 36px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit;
}
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--brand); }
.form > label + label, .form > .grid2 + label, .form > label + .grid2, .form > .grid3 + label { margin-top: 14px; }
.error { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin-top: 12px; }
.notice { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.success { background: var(--ok-soft); color: var(--ok); padding: 10px 12px; border-radius: 10px; font-size: .9rem; }

/* chips, pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--chip); color: var(--ink); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.chip:hover { background: var(--chip-hover); }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.pill { display: inline-block; font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.off { background: var(--chip); color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; }
.dot.busy { background: var(--warn); }

/* printer picker */
.host { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.host + .host { margin-top: 10px; }
.host:hover { border-color: var(--brand); }
.host[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.host.busy { opacity: .75; }
.host .name { font-weight: 600; }

/* upload */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 30px 16px; border: 2px dashed var(--brand); border-radius: 14px; background: var(--brand-soft); color: var(--brand); cursor: pointer; }
.drop strong { font-size: 1.05rem; color: var(--ink); }
.drop.over { filter: brightness(.95); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* document card */
.doc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--card); }
.doc + .doc { margin-top: 12px; }
.doc .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--chip); color: var(--brand); font-size: 1.3rem; cursor: pointer; }
.stepper input { width: 56px; margin: 0; min-height: 44px; border: 0; border-radius: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: var(--card); color: var(--ink); padding: 0 16px; min-height: 44px; font: inherit; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; aspect-ratio: 3/4; }
.thumb canvas { width: 100%; height: 100%; display: block; object-fit: contain; }
.thumb[aria-pressed="true"] { border-color: var(--brand); }
.thumb[aria-pressed="false"] { opacity: .35; }
.thumb .n { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; border-radius: 6px; padding: 0 6px; }
.thumb .c { position: absolute; right: 4px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#e11d48, #f59e0b, #22c55e, #3b82f6, #e11d48); }

.total { display: flex; align-items: baseline; justify-content: space-between; font-size: 1.1rem; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 14px; }

/* order status */
.steps { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 20px 0 0; gap: 8px; }
.steps li { flex: 1; padding-top: 14px; position: relative; color: var(--muted); font-size: .8rem; text-align: center; }
.steps li::before { content: ""; position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--line); }
.steps li.done { color: var(--ink); }
.steps li.done::before { background: var(--ok); }
.steps li.now { color: var(--brand); font-weight: 700; }
.steps li.now::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal .card { width: 100%; max-width: 420px; }

/* tables */
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .88rem; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; }

/* admin shell */
.shell { display: flex; flex: 1; min-height: 0; }
.nav { width: 220px; flex: none; border-right: 1px solid var(--line); padding: 12px; position: sticky; top: 0; align-self: flex-start; min-height: 100dvh; }
.nav .brandrow { display: flex; align-items: center; gap: 10px; padding: 8px 8px 16px; font-weight: 700; }
.nav button.tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.nav button.tab:hover { background: var(--chip); }
.nav button.tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.content { flex: 1; min-width: 0; padding: 20px 20px 40px; max-width: 980px; }
.content h1 { font-size: 1.3rem; margin-bottom: 16px; }
.stat { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat .v { font-size: 1.5rem; font-weight: 700; }
.stat .k { color: var(--muted); font-size: .8rem; }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .nav { width: 100%; min-height: 0; position: static; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; gap: 4px; }
  .nav .brandrow { display: none; }
  .nav button.tab { width: auto; flex: none; padding: 0 14px; }
  .content { padding: 14px 14px 40px; }
}
.lvl { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: end; margin-top: 10px; }
.lvl > span { align-self: center; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 99; max-width: 90vw; }
.qrbox { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qrbox svg { width: 240px; height: 240px; display: block; }
.legal { max-width: 640px; margin: 0 auto; padding: 24px 16px; line-height: 1.6; }
@media print {
  body * { visibility: hidden; }
  #posterArea, #posterArea * { visibility: visible; }
  #posterArea { position: absolute; left: 0; top: 0; width: 100%; text-align: center; }
}

/* utilities (no inline styles: the CSP forbids them) */
.mt6{margin-top:6px}.mt12{margin-top:12px}.mt18{margin-top:18px}.blk{display:block}.tleft{text-align:left}.bad-text{color:var(--bad)}.ok-text{color:var(--ok)}.w100{width:100%}.nowrap{white-space:nowrap}
.keybox { display: block; padding: 14px; border-radius: 10px; background: var(--chip); font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .04em; word-break: break-all; user-select: all; }
#docs{margin-top:14px}
.cardtext{padding:12px 18px 0;margin:0}code{background:var(--chip);padding:1px 6px;border-radius:6px}

/* orbit printer picker */
.orbit { max-width: 440px; margin: 8px auto 0; aspect-ratio: 1; }
.orbit-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.orbit-caption { min-height: 40px; margin: 6px 0 0; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 7; }
.orbit-link { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 5; opacity: .7; }
.orbit-hub { fill: var(--brand); }
.orbit-you { fill: var(--brand-ink); font-weight: 700; font-size: 14px; text-anchor: middle; }
.orbit-pulse { fill: var(--brand); opacity: .25; transform-box: fill-box; transform-origin: center; animation: orbit-pulse 2.6s ease-out infinite; }
.orbit-pulse.p2 { animation-delay: 1.3s; }
@keyframes orbit-pulse { from { transform: scale(1); opacity: .3; } to { transform: scale(2.6); opacity: 0; } }
.onode { cursor: pointer; outline: none; }
.o-halo { fill: none; stroke: transparent; stroke-width: 3; }
.o-body { fill: var(--card); stroke: var(--line); stroke-width: 2; }
.o-ico { fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.o-dot { fill: var(--ok); stroke: var(--card); stroke-width: 2; }
.onode.busy .o-dot { fill: var(--warn); }
.o-label { fill: var(--ink); font-size: 12px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.onode:hover .o-body, .onode:focus-visible .o-body { stroke: var(--brand); }
.onode:focus-visible .o-halo { stroke: var(--brand); }
.onode.sel .o-body { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 3; }
.onode.sel .o-halo { stroke: var(--brand); opacity: .35; }
.orbit.empty .orbit-ring { opacity: .6; }
@media (prefers-reduced-motion: reduce) { .orbit-pulse { animation: none; } }

/* ---- customer website: separate pages, modelled on the reference print site ---- */
.center { text-align: center; }
.link.center { display: block; margin: 6px auto 0; }
.testbanner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .85rem; padding: 6px 12px; font-weight: 600; }
body.site .top.bar { position: sticky; top: 0; z-index: 20; max-width: none; margin: 0; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); gap: 10px; }
body.site .top.bar .logo { text-decoration: none; width: 36px; height: 36px; border-radius: 50%; }
body.site .brand h1 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; }
body.site .brand p { display: none; }
.pill.live { background: var(--chip); color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: .85rem; }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; }
.pill.live.none::before { background: var(--muted); }
@media (max-width: 480px) { #themeBtn { display: none; } }

.stepnav { max-width: 720px; margin: 0 auto; padding: 14px 16px 0; }
.stepnav ol { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.stepnav li { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .82rem; padding-bottom: 10px; border-bottom: 3px solid var(--line); }
.stepnav li b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--chip); font-size: .72rem; }
.stepnav li.done { color: var(--ink); border-color: var(--ok); }
.stepnav li.done b { background: var(--ok); color: #fff; }
.stepnav li.now { color: var(--brand); font-weight: 700; border-color: var(--brand); }
.stepnav li.now b { background: var(--brand); color: var(--brand-ink); }

.page { max-width: 720px; margin: 0 auto; }
.page.wide { max-width: 1000px; }
.view { animation: pageIn .22s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
.hero { text-align: center; padding: 22px 0 10px; }
.hero h1 { font-size: 1.7rem; letter-spacing: -.02em; outline: none; }
.hero p { margin: 8px auto 0; max-width: 460px; }
.page-title { font-size: 1.4rem; margin: 6px 0 14px; outline: none; letter-spacing: -.01em; }
.back { display: inline-block; padding-left: 0; text-decoration: none; }

.printerchip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.printerchip .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.card.plain { border: 0; padding: 0; background: transparent; }
body.site .drop { border: 0; background: var(--chip); color: var(--ink); border-radius: 14px; padding: 52px 16px; transition: background .12s; }
body.site .drop:hover, body.site .drop.over { background: var(--chip-hover); filter: none; }
.drop:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.dropicon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--card); color: var(--brand); margin-bottom: 8px; }
.dropsub { color: var(--muted); }
.pickbtn { display: inline-block; margin-top: 10px; padding: 10px 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.drop small { color: var(--muted); margin-top: 12px; max-width: 420px; }
.how { display: flex; justify-content: space-between; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); font-size: .85rem; }
.how li { display: flex; align-items: center; white-space: nowrap; }
.how b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .75rem; margin-right: 6px; }
.working { margin-top: 14px; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; margin-top: 14px; }
.vgrid:empty { display: none; }
.vgrid .doc, .vgrid .doc + .doc { margin: 0; }
.addmore { display: flex; width: 100%; margin-top: 14px; min-height: 48px; border: 2px dashed var(--brand); border-radius: 14px; background: transparent; color: var(--brand); }
.paybar.sticky { position: sticky; bottom: 0; margin: 18px -16px 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); z-index: 5; }
.paybar.sticky > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sum strong { font-size: 1.5rem; }
.breakdown { margin-top: 12px; }
.breakdown summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
.breakdown > div { margin-top: 8px; display: grid; gap: 4px; }

/* ---- scan-style processing card (like the reference site) ---- */
.docimg { width: 44px; height: 58px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #fff; flex: none; }
.scancard { display: flex; gap: 14px; align-items: flex-start; }
.vthumb { position: relative; flex: none; width: 92px; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--chip); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; background: #fff; }
.vthumb .ext { font-weight: 700; font-size: .9rem; color: var(--muted); letter-spacing: .04em; }
.vthumb .beam { position: absolute; left: 0; right: 0; top: 0; height: 26px; opacity: 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 45%, transparent)); border-bottom: 2px solid var(--brand); }
.vthumb.scanning .beam { opacity: 1; animation: vscan 1.4s ease-in-out infinite alternate; }
@keyframes vscan { from { top: 0; } to { top: calc(100% - 26px); } }
.vthumb .c { position: absolute; width: 12px; height: 12px; border: 0 solid var(--brand); opacity: 0; }
.vthumb.scanning .c { opacity: 1; }
.vthumb .tl { left: 5px; top: 5px; border-top-width: 2px; border-left-width: 2px; }
.vthumb .tr { right: 5px; top: 5px; border-top-width: 2px; border-right-width: 2px; }
.vthumb .bl { left: 5px; bottom: 5px; border-bottom-width: 2px; border-left-width: 2px; }
.vthumb .br { right: 5px; bottom: 5px; border-bottom-width: 2px; border-right-width: 2px; }
.scanbody { min-width: 0; }
.scanbody .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scanbody p { margin: 2px 0 8px; }
.scansteps { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.scansteps li { display: flex; gap: 10px; align-items: center; }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); display: inline-grid; place-items: center; font-size: 11px; line-height: 1; flex: none; }
.scansteps li.on { color: var(--ink); font-weight: 600; }
.scansteps li.on .tick { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.scansteps li.ok { color: var(--ink); }
.scansteps li.ok .tick { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.scansteps li.ok .tick::after { content: "✓"; }
.scancard progress { width: 100%; height: 6px; display: block; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); }
.scancard progress::-webkit-progress-bar { background: var(--line); }
.scancard progress::-webkit-progress-value { background: var(--brand); border-radius: 99px; transition: width .2s; }
.scancard progress::-moz-progress-bar { background: var(--brand); }
.scancard button.link { padding-left: 0; margin-top: 6px; }
.link.danger { color: var(--bad); }
@media (prefers-reduced-motion: reduce) { .vthumb.scanning .beam, .scansteps li.on .tick { animation: none; } }
