:root {
  --bg: #f3f1ec;
  --card: #ffffff;
  --ink: #1c2127;
  --ink-2: #3d4550;
  --muted: #6d737b;
  --line: #e3dfd6;
  --line-2: #cfc9bd;
  --accent: #e8590c;
  --accent-ink: #ffffff;
  --accent-soft: #fde8db;
  --top: #1c2127;
  --ok: #2f7d4f;
  --ok-soft: #e3f3e8;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --err: #b42318;
  --err-soft: #fde7e4;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 33, 39, .06), 0 2px 8px rgba(28, 33, 39, .05);
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b; --card: #1d2227; --ink: #eef0f2; --ink-2: #c8ccd1; --muted: #949aa2;
    --line: #2c333a; --line-2: #3b434c; --accent: #ff7a2e; --accent-soft: #3a2416;
    --top: #0d0f12; --ok-soft: #173123; --warn-soft: #33290f; --err-soft: #3a1a17; --ok: #5cc48a; --warn: #e5b445; --err: #ff8a7a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--sans); padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; }
h1, h2 { margin: 0; line-height: 1.2; }
h1 { font-size: 1.45rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; }
code { font-family: var(--mono); font-size: .85em; background: var(--bg); padding: .05em .35em; border-radius: 4px; word-break: break-all; }
pre.code { font-family: var(--mono); font-size: .8rem; background: var(--bg); padding: 1rem; overflow: auto; border-radius: 8px; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.req { color: var(--accent); }
.pre { white-space: pre-wrap; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: var(--top); color: #fff; padding: .55rem max(1rem, env(safe-area-inset-left)) .55rem 1rem; padding-top: max(.55rem, env(safe-area-inset-top)); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; min-width: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand strong { font-size: 1rem; }
.brand em { font-style: normal; font-size: .75rem; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: .15rem; }
.topnav a { display: flex; align-items: center; gap: .35rem; padding: .5rem .65rem; border-radius: 8px; text-decoration: none; color: rgba(255,255,255,.78); font-size: .9rem; }
.topnav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.topnav a.on { background: rgba(255,255,255,.12); color: #fff; }
.only-narrow { display: none; }
@media (max-width: 720px) {
  .topnav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--top); justify-content: space-around;
    padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.08); }
  .topnav a { flex-direction: column; gap: .1rem; font-size: .7rem; padding: .35rem .5rem; flex: 1; }
  .topnav a .ic { width: 1.4rem; height: 1.4rem; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
  .page-login { padding-bottom: 0; }
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.wrap.narrow, .narrow { max-width: 560px; margin-inline: auto; width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.stack { display: flex; flex-direction: column; gap: .85rem; }
.row { display: flex; gap: .5rem; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.row-end { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.row-between { display: flex; gap: .5rem; justify-content: space-between; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 9px;
  padding: .7rem .75rem; min-height: 46px; width: 100%; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--accent); }
.help { color: var(--muted); font-size: .8rem; }
.check { display: flex; align-items: center; gap: .55rem; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .45rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .88rem; user-select: none; }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
.field-check { justify-content: center; }
.switch { display: flex; align-items: center; gap: .65rem; cursor: pointer; font-weight: 600; font-size: .9rem; min-height: 46px; }
.switch input[type=checkbox] { position: absolute; opacity: 0; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; border-radius: 10px; padding: .6rem 1rem; min-height: 44px; cursor: pointer; text-decoration: none;
  background: var(--card); color: var(--ink); -webkit-tap-highlight-color: transparent; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:active { filter: brightness(.92); }
.btn-ghost { border-color: var(--line-2); background: transparent; }
.btn-ghost:active { background: var(--bg); }
.btn-danger { background: var(--err); color: #fff; }
.btn-lg { min-height: 54px; font-size: 1.02rem; padding: .75rem 1.2rem; }
.btn-sm { min-height: 34px; padding: .3rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { background: none; border: 1px solid var(--line-2); border-radius: 8px; min-width: 34px; height: 34px; cursor: pointer; color: var(--ink); font-size: .9rem; }
.btn-icon:disabled { opacity: .3; }
.link { color: var(--accent); text-decoration: none; display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; font-weight: 600; }
.count { display: inline-flex; min-width: 1.4em; height: 1.4em; padding: 0 .35em; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.inline { display: inline-flex; gap: .2rem; }

.flash { padding: .7rem .9rem; border-radius: 10px; font-size: .92rem; border: 1px solid transparent; }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-error { background: var(--err-soft); color: var(--err); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; font-size: .88rem; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--err); font-weight: 700; }

.badge { display: inline-block; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.st-intake { background: #e6eefc; color: #1d4ed8; }
.st-uitvoering { background: var(--warn-soft); color: var(--warn); }
.st-opgeleverd { background: var(--ok-soft); color: var(--ok); }
@media (prefers-color-scheme: dark) { .st-intake { background: #1b2a48; color: #8fb2ff; } }
.plate { font-family: var(--mono); font-weight: 700; font-size: .8rem; padding: .08rem .4rem; border: 1.5px solid #b3261e; color: #b3261e; border-radius: 4px; background: #fff; }
.tag { font-size: .78rem; background: var(--bg); border: 1px solid var(--line); padding: .05rem .45rem; border-radius: 6px; }

/* Login */
.login-card { max-width: 400px; width: 100%; margin: 8vh auto 0; }

/* Search & list */
.searchbar { display: flex; flex-direction: column; gap: .55rem; }
.search-input { position: relative; }
.search-input .ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input input { padding-left: 2.5rem; min-height: 50px; font-size: 1rem; border-radius: 12px; }
.search-row { display: flex; gap: .5rem; }
.search-row select { flex: 1; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .85rem; }
.list-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .9rem; padding: 0 .2rem; }
.dossier-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: .6rem; }
@media (max-width: 400px) { .dossier-list { grid-template-columns: 1fr; } }
.dossier-card { display: flex; gap: .8rem; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); height: 100%; }
.dossier-card:active { background: var(--bg); }
.dossier-card .thumb { width: 88px; height: 88px; border-radius: 9px; overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: none; color: var(--line-2); }
.dossier-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dossier-card .thumb .ic { width: 2rem; height: 2rem; }
.dossier-card .meta { min-width: 0; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.line1 { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.wb { font-size: 1.05rem; }
.vin { font-size: .82rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line3 { display: flex; flex-wrap: wrap; gap: .3rem .45rem; align-items: center; font-size: .85rem; }
.empty { text-align: center; padding: 2rem 1rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; color: var(--muted); }
.fab { position: fixed; right: 1.1rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(232, 89, 12, .4); z-index: 15; }
.fab .ic { width: 1.8rem; height: 1.8rem; stroke-width: 2.4; }
@media (max-width: 720px) { .fab { bottom: calc(5rem + env(safe-area-inset-bottom)); } }

/* New dossier */
.step { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; font-size: .82rem; margin-right: .35rem; vertical-align: 1px; }
.camera-btn .ic { width: 1.5rem; height: 1.5rem; }
.vin-stage { display: flex; flex-direction: column; gap: .5rem; }
.vin-canvas-wrap { position: relative; border-radius: 10px; overflow: hidden; background: #000; touch-action: none; user-select: none;
  width: fit-content; max-width: 100%; margin: 0 auto; line-height: 0; cursor: crosshair; }
.vin-canvas-wrap canvas { display: block; max-width: 100%; max-height: 55vh; width: auto; height: auto; }
.vin-sel { position: absolute; border: 2px solid var(--accent); background: rgba(232, 89, 12, .15); box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.vin-status { font-size: .92rem; min-height: 1.3em; }
.vin-status .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: .35rem; }
.vin-status .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.candidates { display: flex; flex-direction: column; gap: .4rem; }
.cand { display: flex; justify-content: space-between; align-items: center; gap: .5rem; width: 100%; text-align: left; font-family: var(--mono); font-size: 1rem; letter-spacing: .06em;
  padding: .65rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; }
.cand small { font-family: var(--sans); letter-spacing: 0; font-size: .74rem; color: var(--muted); }
.cand.sel { border-color: var(--accent); background: var(--accent-soft); }
.vin-input { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.vin-ok { color: var(--ok); } .vin-warn { color: var(--warn); } .vin-bad { color: var(--err); }
.sticky-actions { position: sticky; bottom: 0; padding: .6rem 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
@media (max-width: 720px) { .sticky-actions { bottom: calc(3.9rem + env(safe-area-inset-bottom)); } }

/* Dossier */
.dossier-head { display: flex; flex-direction: column; gap: .55rem; }
.head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.wb-title { font-size: 1.7rem; }
.vin-line { display: flex; align-items: center; gap: .5rem; }
.vin-big { font-size: 1.12rem; font-weight: 600; word-break: break-all; }
.phase-tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; position: sticky; top: 52px; z-index: 10; background: var(--bg); padding-block: .4rem; }
.phase-tabs::-webkit-scrollbar { display: none; }
.phase-tabs a { flex: 1 0 auto; text-align: center; text-decoration: none; padding: .6rem .85rem; border-radius: 10px; font-weight: 600; font-size: .9rem;
  background: var(--card); border: 1px solid var(--line); white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; justify-content: center; }
.phase-tabs a .count { background: var(--line-2); color: var(--ink); }
.phase-tabs a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.phase-tabs a.on .count { background: var(--accent); color: #fff; }
.upload-card { display: flex; flex-direction: column; gap: .65rem; }
.upload-buttons { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; }
.upload-buttons .btn { cursor: pointer; }
.caption-input { min-height: 42px; font-size: .92rem; }
.queue { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.queue li { display: grid; grid-template-columns: 44px 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; background: var(--bg); border-radius: 8px; padding: .35rem; }
.queue img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.queue .prog { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: .25rem; }
.queue .prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.queue .err { color: var(--err); }
.queue .done { color: var(--ok); }
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
@media (max-width: 480px) { .grid-photos { grid-template-columns: repeat(3, 1fr); gap: .3rem; } }
.ph { margin: 0; position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .4rem .3rem; font-size: .72rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph.new { animation: pop .35s ease-out; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.empty-phase { padding: 1.5rem 0; }
.data-list { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: .45rem 1rem; margin: 0; font-size: .93rem; }
.data-list dt { color: var(--muted); }
.data-list dd { margin: 0; }
@media (max-width: 480px) { .data-list { grid-template-columns: 1fr; gap: .1rem; } .data-list dd { margin-bottom: .5rem; } }
details.card summary { cursor: pointer; font-weight: 600; }
.activity { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--line)); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(8, 10, 12, .96); display: flex; flex-direction: column; color: #fff; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; padding-top: max(.6rem, env(safe-area-inset-top)); gap: .5rem; font-size: .85rem; }
.lb-top .meta { opacity: .8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-img { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; touch-action: pan-y pinch-zoom; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 44px; height: 64px; border-radius: 10px; cursor: pointer; }
.lb-nav.prev { left: .4rem; } .lb-nav.next { right: .4rem; }
.lb-bottom { padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .5rem; background: rgba(255,255,255,.04); }
.lb-bottom input { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); }
.lb-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.lb-actions .btn { background: rgba(255,255,255,.1); color: #fff; min-height: 40px; font-size: .85rem; }
.lb-actions select { width: auto; min-height: 40px; padding: .3rem .5rem; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); font-size: .85rem; }
.lb-actions .btn-danger { background: var(--err); }
.lb-close { background: rgba(255,255,255,.12); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.table td { padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr.inactive td { opacity: .5; }
.nowrap { white-space: nowrap; }
@media (max-width: 560px) { .hide-sm { display: none; } }
.roles-help { margin-top: 1rem; } .roles-help p { margin: .3rem 0; }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(150%); background: var(--ink); color: var(--bg);
  padding: .7rem 1.1rem; border-radius: 10px; font-size: .92rem; z-index: 60; transition: transform .2s, opacity .2s; opacity: 0; pointer-events: none; max-width: calc(100% - 2rem); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.err { background: var(--err); color: #fff; }
@media (max-width: 720px) { .toast { bottom: calc(5rem + env(safe-area-inset-bottom)); } }

/* Barcode scannen */
.input-btn { display: flex; gap: .4rem; }
.input-btn input { flex: 1; min-width: 0; }
.btn-scan { min-width: 48px; padding: 0 .7rem; flex: none; }
.btn-scan .ic { width: 1.4rem; height: 1.4rem; }
.search-input .btn-scan { position: absolute; right: 4px; top: 4px; bottom: 4px; min-height: 0; border: 0; color: var(--ink-2); }
.search-input .btn-scan .ic { position: static; transform: none; color: inherit; }
.search-input input { padding-right: 3.4rem; }
.scanner { position: fixed; inset: 0; z-index: 70; background: #000; color: #fff; display: flex; flex-direction: column; }
.scanner-top { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; padding-top: max(.6rem, env(safe-area-inset-top)); }
.scanner-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; left: 8%; right: 8%; top: 50%; height: 34%; transform: translateY(-50%); border: 3px solid rgba(255,255,255,.9);
  border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); pointer-events: none; }
.scanner-frame i { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: scanline 1.8s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-40px); } 50% { transform: translateY(40px); } }
.scanner-bottom { padding: .8rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .6rem; }
.scanner-msg { margin: 0; font-size: .92rem; opacity: .9; min-height: 2.6em; }
.scanner-bottom .btn { background: rgba(255,255,255,.14); color: #fff; flex: 1; cursor: pointer; }
