/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}
@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}
/*
 * Eurolyzer S1 QR-decoder — field tool for reading an analyser's QR code in
 * a boiler room. Plain CSS on top of Tailwind's preflight; the markup uses
 * these semantic classes only (no utility classes), so web/style.css can be
 * rebuilt with the Tailwind CLI as described in the README.
 *
 * Palette: zinc page, graphite ink, gas-line yellow (the marking colour of
 * gas pipes) for the primary action and the fuel marker, flame blue for
 * "checks out" (a clean gas flame burns blue), alarm red for deviations.
 */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-semi-condensed-600.woff2") format("woff2");
}
/* Barlow has no Greek; λ comes from Fira Sans Condensed (single glyph). */
@font-face {
  font-family: "Lambda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/lambda-fira-sans-condensed-500.woff2") format("woff2");
  unicode-range: U+03BB;
}

:root {
  --paper: #e8ecee;
  --sheet: #fbfcfc;
  --ink: #161b1f;
  --steel: #56626b;
  --rule: #c9d1d6;
  --rule-strong: #8f9ba3;
  --gas: #f2c200;
  --gas-press: #dcb000;
  --on-gas: #161b1f;
  --flame: #1e58c8;
  --alarm: #b8321f;
  --caution: #8a5600;

  --sans: "Barlow", "Lambda", system-ui, sans-serif;
  --cond: "Barlow Semi Condensed", "Lambda", "Arial Narrow", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --digits: 44px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111518;
    --sheet: #191e22;
    --ink: #e6eaec;
    --steel: #9ba7af;
    --rule: #2b3339;
    --rule-strong: #55616a;
    --gas-press: #ffd633;
    --flame: #7ea6ff;
    --alarm: #ff7b68;
    --caution: #e5ab40;
    color-scheme: dark;
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; --digits: 56px; }
}

/* ---- Base ------------------------------------------------------------ */

html { background: var(--paper); }
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
  border-radius: 4px;
}
sub { font-size: 0.62em; bottom: -0.2em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.ico { width: 22px; height: 22px; flex: none; }

/* ---- Page layout ----------------------------------------------------- */

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
    align-items: start;
  }
  .intake { position: sticky; top: 32px; }
}

/* ---- Intake column --------------------------------------------------- */

.title { font-family: var(--cond); line-height: 1; }
.title-model {
  display: block;
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.01em;
}
.title-tool {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: 24px;
  color: var(--steel);
}
.lede {
  margin-top: 18px;
  max-width: 36ch;
  color: var(--ink);
}
.actions { margin-top: 24px; display: grid; gap: 12px; }
.actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 120ms, border-color 120ms, color 120ms;
}
.btn:disabled { cursor: progress; opacity: 0.55; }
.btn-xl {
  width: 100%;
  min-height: 64px;
  font-family: var(--cond);
  font-size: 24px;
}
.btn-xl .ico { width: 28px; height: 28px; }
.btn-gas { background: var(--gas); color: var(--on-gas); }
.btn-gas:hover:not(:disabled) { background: var(--gas-press); }
.btn-gas:active:not(:disabled) { background: var(--gas-press); }
.btn-line {
  border: 1.5px solid var(--rule-strong);
  color: var(--ink);
  background: transparent;
}
.btn-line:hover:not(:disabled) { border-color: var(--ink); }
.btn-line[aria-expanded="true"] { border-color: var(--ink); background: var(--sheet); }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover:not(:disabled) { background: var(--steel); }

.paste { margin-top: 16px; }
.paste label { display: block; font-weight: 600; font-size: 16px; }
.paste textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  min-height: 150px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--sheet);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.45;
}
.paste textarea:focus-visible { outline-offset: 0; border-color: var(--flame); }
.paste-foot { margin-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hint { font-size: 15px; color: var(--steel); }
kbd { font-family: var(--sans); font-weight: 600; font-size: 0.92em; }

.fine {
  margin-top: 20px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--steel);
}
.fine + .fine { margin-top: 8px; }
.only-pointer { display: none; }
@media (pointer: fine) { .only-pointer { display: block; } }

/* ---- Camera ---------------------------------------------------------- */

.cam { margin-top: 24px; }
.viewfinder {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
  aspect-ratio: 3 / 4;
  max-height: 70vh;
}
.viewfinder video { width: 100%; height: 100%; object-fit: cover; display: block; }
.target {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 0.42);
  pointer-events: none;
  /* four corner marks in gas yellow */
  background:
    linear-gradient(var(--gas), var(--gas)) top left / 34px 4px,
    linear-gradient(var(--gas), var(--gas)) top left / 4px 34px,
    linear-gradient(var(--gas), var(--gas)) top right / 34px 4px,
    linear-gradient(var(--gas), var(--gas)) top right / 4px 34px,
    linear-gradient(var(--gas), var(--gas)) bottom left / 34px 4px,
    linear-gradient(var(--gas), var(--gas)) bottom left / 4px 34px,
    linear-gradient(var(--gas), var(--gas)) bottom right / 34px 4px,
    linear-gradient(var(--gas), var(--gas)) bottom right / 4px 34px;
  background-repeat: no-repeat;
}
.vf-caption {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
  pointer-events: none;
}
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.is-on { animation: shutter 260ms ease-out; }
@keyframes shutter { from { opacity: 0.85; } to { opacity: 0; } }
.cam-controls { margin-top: 12px; display: grid; gap: 12px; }
.cam-controls select {
  min-height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--sheet);
  font-size: 16px;
  min-width: 0;
}
.cam-status { font-size: 15px; color: var(--alarm); }
.cam-status:empty { display: none; }

/* ---- Status / errors ------------------------------------------------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.notice .ico { margin-top: 2px; }
.notice-title { font-weight: 600; }
.notice-text { color: var(--ink); }
.notice-error { color: var(--alarm); }
.notice-error .notice-title { color: var(--alarm); }

/* ---- Readout --------------------------------------------------------- */

.results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.readout {
  background: var(--sheet);
  margin: 0 calc(var(--gutter) * -1);
  padding: 20px var(--gutter) 24px;
  border-block: 1px solid var(--rule);
}
@media (min-width: 720px) {
  .readout {
    margin: 0;
    padding: 28px 32px 32px;
    border: 1px solid var(--rule);
    border-radius: 12px;
  }
}

.rd-head { display: grid; gap: 14px; }
.rd-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-family: var(--cond);
  font-weight: 500;
}
/* The fuel, set as a pipe-marking label: yellow band with a flow arrow. */
.pipe {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 34px 6px 14px;
  background: var(--gas);
  color: var(--on-gas);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
}
.is-empty .pipe { background: var(--rule); color: var(--steel); }
.is-reading .rd-source { color: var(--ink); font-weight: 600; }
.rd-when {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rd-source { font-size: 15px; color: var(--steel); }
.rd-source strong { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rd-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .rd-actions { grid-template-columns: 1fr 1fr; } }
.verdict { display: flex; gap: 10px; align-items: flex-start; }
.verdict .ico { margin-top: 2px; }
.verdict-main { font-weight: 600; }
.verdict-sub { display: block; font-size: 15px; color: var(--steel); }
.verdict.is-ok .ico { color: var(--flame); }
.verdict.is-bad .ico, .verdict.is-bad .verdict-main { color: var(--alarm); }
.verdict.is-caution .ico, .verdict.is-caution .verdict-main { color: var(--caution); }

@media (min-width: 720px) {
  .rd-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    align-items: center;
  }
  .rd-source, .verdict { grid-column: 1 / -1; }
  .rd-actions { grid-column: 2; grid-row: 1; display: flex; }
}

/* Rows follow the analyser's own screen grammar: value right-aligned,
   symbol and unit stacked beside it, a hairline between readings. All rows
   share one column grid (subgrid) so values line up across both groups. */
.rd-body {
  margin-top: 24px;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 14px;
}
.rd-group, .rd-list, .rd-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
}
.rd-group + .rd-group { margin-top: 28px; }
.rd-group-title {
  grid-column: 1 / -1;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.2;
}
.rd-group-title span { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--steel); margin-left: 8px; }
.rd-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.rd-value {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  font-family: var(--cond);
  font-weight: 500;
  font-size: var(--digits);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 3ch;
}
.rd-label { grid-column: 2; grid-row: 1; line-height: 1.15; }
.rd-sym { display: block; font-family: var(--cond); font-weight: 600; font-size: 21px; }
.rd-unit { display: block; font-size: 15px; color: var(--steel); }
.rd-aside { display: block; font-size: 14px; color: var(--steel); margin-top: 2px; }
.rd-checks {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 8px;
}
.is-empty .rd-value { color: var(--rule-strong); }
.rd-row.is-bad .rd-value { color: var(--alarm); }
.rd-loose { grid-column: 1 / -1; padding-top: 10px; }

@media (min-width: 720px) {
  .rd-body { grid-template-columns: max-content 9.5rem minmax(0, 1fr); column-gap: 18px; }
  .rd-checks { grid-column: 3; grid-row: 1; margin-top: 0; }
}

.ck { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.35; color: var(--steel); }
.ck + .ck { margin-top: 4px; }
.ck .ico { width: 18px; height: 18px; margin-top: 0; }
.ck-expr { color: var(--ink); }
.ck-expr sub { font-size: 0.7em; }
.ck-note { white-space: nowrap; }
.ck.is-ok .ico { color: var(--flame); }
.ck.is-bad, .ck.is-bad .ck-expr { color: var(--alarm); }
.ck.is-caution .ico, .ck-flag { color: var(--caution); }
.ck.is-bad .ck-flag { color: var(--alarm); font-weight: 600; }
.ck-flag { font-weight: 600; }

/* Single values are buttons: tap to copy the raw value. The copy icon
   reserves its space so values never shift when it appears. */
.vcopy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: 6px;
  text-align: inherit;
  cursor: copy;
  transition: background-color 120ms, color 120ms;
}
.vc-ico { width: 18px; height: 18px; color: var(--steel); opacity: 0; transition: opacity 120ms; }
.vc-done { display: none; }
@media (hover: hover) {
  .vcopy:hover { background: var(--paper); }
  .vcopy:hover .vc-idle { opacity: 1; }
}
.vcopy:focus-visible .vc-idle { opacity: 1; }
.vcopy.is-copied { color: var(--flame); }
.vcopy.is-copied .vc-idle { display: none; }
.vcopy.is-copied .vc-done { display: block; opacity: 1; color: var(--flame); }
/* On the device plate the icon hangs in the column gap so names don't wrap. */
.plate .vcopy { position: relative; }
.plate .vc-ico { position: absolute; left: 100%; top: 50%; margin: -9px 0 0 2px; }

/* Device plate + reference sections */
.rd-device { margin-top: 32px; }
.rd-device h3, .rd-more summary {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 21px;
}
.plate {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
}
@media (min-width: 720px) { .plate { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plate dt { font-size: 14px; color: var(--steel); }
.plate dd { font-family: var(--cond); font-weight: 500; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.plate dd small { display: block; font-family: var(--sans); font-size: 14px; color: var(--steel); }

.rd-more { margin-top: 20px; border-top: 1px solid var(--rule); padding-top: 14px; }
.rd-more summary { cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.rd-more summary::-webkit-details-marker { display: none; }
.rd-more summary::before {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 150ms;
  margin-right: 4px;
}
.rd-more[open] summary::before { transform: rotate(45deg); }
.rd-more summary span { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--steel); }

.fields-wrap { margin-top: 12px; overflow-x: auto; }
.fields { width: 100%; min-width: 34rem; font-size: 15px; line-height: 1.35; }
.fields caption { text-align: left; font-size: 14px; color: var(--steel); padding-bottom: 8px; }
.fields th { text-align: left; font-weight: 600; font-size: 14px; color: var(--steel); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule-strong); }
.fields td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.fields .num { font-variant-numeric: tabular-nums; }
.fields .code { color: var(--steel); }
.fields .val { font-weight: 600; }
.mk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mk::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}
.mk-bevestigd::before { background: currentColor; }
.mk-afgeleid::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }

.report {
  margin-top: 12px;
  max-height: 28rem;
  overflow: auto;
  padding: 14px 16px;
  border-radius: 8px;
  background: var(--paper);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---- Footer, toast, drop overlay ------------------------------------- */

.notes {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel);
}
.notes p { max-width: 72ch; }
.notes p + p { margin-top: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 50;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--sheet);
  font-weight: 600;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
}
.toast.is-on { opacity: 1; }

.drop-overlay {
  position: fixed;
  inset: 12px;
  z-index: 40;
  display: grid;
  place-items: center;
  border: 3px dashed var(--gas);
  border-radius: 14px;
  background: rgb(17 21 24 / 0.72);
  color: #fff;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 32px;
  pointer-events: none;
}

/* ---- Reading sweep: the one orchestrated motion ---------------------- */
/* A yellow scan line passes down the readout while the QR is being read,
   and once more as the values come in. */

.rd-body { position: relative; }
.rd-body::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--gas);
  box-shadow: 0 0 12px 2px rgb(242 194 0 / 0.55);
  opacity: 0;
  pointer-events: none;
}
.is-reading .rd-body::after { animation: sweep 1.1s cubic-bezier(.45, 0, .55, 1) infinite; }
.is-fresh .rd-body::after { animation: sweep 700ms cubic-bezier(.3, 0, .2, 1) 1 both; }
.is-fresh .rd-value { animation: reveal 1ms steps(1) both; animation-delay: calc(var(--i, 0) * 48ms + 60ms); }
@keyframes sweep {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes reveal { from { visibility: hidden; } to { visibility: visible; } }

@media (prefers-reduced-motion: reduce) {
  .is-reading .rd-body::after, .is-fresh .rd-body::after, .is-fresh .rd-value, .flash.is-on { animation: none; }
  .btn, .toast, .rd-more summary::before, .vcopy, .vc-ico { transition: none; }
}
