/* FrutIQ – huisstijl. Geen externe lettertypes of CDN: werkt ook zonder internet.
   Weergave: data-theme op <html> is auto (volgt het toestel), light of dark (gekozen in het profiel).
   Alle kleuren staan hieronder als variabelen; de rest van het bestand gebruikt enkel die variabelen. */
:root {
  color-scheme: light;
  /* Huisstijl (licht) */
  --bg: #fefefe;            /* achtergrond */
  --surface: #f0f0f0;       /* vakken met informatie */
  --ink: #121212;           /* tekst */
  --accent: #d9a938;        /* accentkleur (goud) */

  /* Afgeleid */
  --raised: #ffffff;        /* menu's, panelen */
  --field: #ffffff;         /* invulvelden */
  --field-line: #c6c6c6;
  --thead: #e6e6e6;
  --hover: #e8e8e8;
  --ink-2: #3d3d3d;
  --ink-3: #686868;
  --line: #dadada;
  --line-2: #e5e5e5;
  --on-accent: #121212;     /* tekst op goud */
  --accent-hover: #c99a2c;
  --accent-ink: #876212;    /* goud als tekstkleur (leesbaar op licht) */
  --accent-soft: #f6ebd1;
  --accent-soft-ink: #6b4d0c;
  --ok: #1f7a3a;   --ok-soft: #e2f2e6;
  --err: #b3261e;  --err-soft: #fbe7e5;  --err-line: #eabfbb;
  --warn: #8a5a00; --warn-soft: #fcf1d8;
  --backdrop: rgba(18,18,18,.4);
  --focus: rgba(217,169,56,.40);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05);
  --shadow-pop: 0 8px 24px rgba(0,0,0,.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Donker: automatisch (toestel staat op donker en de gebruiker koos niet voor licht) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    /* Huisstijl (donker) */
    --bg: #121212;
    --surface: #252525;
    --ink: #fefefe;
    --accent: #d9a938;

    /* Afgeleid */
    --raised: #2c2c2c;
    --field: #1a1a1a;
    --field-line: #4a4a4a;
    --thead: #2e2e2e;
    --hover: #333333;
    --ink-2: #d2d2d2;
    --ink-3: #a3a3a3;
    --line: #383838;
    --line-2: #2f2f2f;
    --on-accent: #121212;
    --accent-hover: #e5b94f;
    --accent-ink: #e2b64c;
    --accent-soft: #3a3020;
    --accent-soft-ink: #f1d184;
    --ok: #7fd39a;   --ok-soft: #1c3324;
    --err: #ff8f86;  --err-soft: #3c1f1d;  --err-line: #6a2d29;
    --warn: #f1c46b; --warn-soft: #3a2e14;
    --backdrop: rgba(0,0,0,.6);
    --focus: rgba(217,169,56,.45);
    --shadow: none;
    --shadow-pop: 0 8px 24px rgba(0,0,0,.5);
  }
}
/* Donker: gekozen in het profiel */
:root[data-theme="dark"] {
  color-scheme: dark;
  /* Huisstijl (donker) */
  --bg: #121212;
  --surface: #252525;
  --ink: #fefefe;
  --accent: #d9a938;

  /* Afgeleid */
  --raised: #2c2c2c;
  --field: #1a1a1a;
  --field-line: #4a4a4a;
  --thead: #2e2e2e;
  --hover: #333333;
  --ink-2: #d2d2d2;
  --ink-3: #a3a3a3;
  --line: #383838;
  --line-2: #2f2f2f;
  --on-accent: #121212;
  --accent-hover: #e5b94f;
  --accent-ink: #e2b64c;
  --accent-soft: #3a3020;
  --accent-soft-ink: #f1d184;
  --ok: #7fd39a;   --ok-soft: #1c3324;
  --err: #ff8f86;  --err-soft: #3c1f1d;  --err-line: #6a2d29;
  --warn: #f1c46b; --warn-soft: #3a2e14;
  --backdrop: rgba(0,0,0,.6);
  --focus: rgba(217,169,56,.45);
  --shadow: none;
  --shadow-pop: 0 8px 24px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 650; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Logo: de juiste versie volgens de weergave */
.logo-wrap { display: inline-flex; }
.logo-wrap.large { display: flex; justify-content: center; }
.logo { display: block; height: 40px; width: auto; }
.logo-wrap.large .logo { height: 88px; }
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-for-light { display: none; }
  :root:not([data-theme="light"]) .logo-for-dark { display: block; }
}
.wordmark b { color: var(--accent-ink); font-weight: inherit; }

/* Layout */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); color: var(--ink-2); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand strong { font-size: 19px; letter-spacing: .2px; }
.brand span { display: block; font-size: 11px; color: var(--ink-3); }
.nav-group { margin: 14px 0 4px; padding: 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); }
.nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--hover); text-decoration: none; }
.nav a.active { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.nav a.soon { color: var(--ink-3); pointer-events: none; }
.nav a.soon em { margin-left: auto; font-style: normal; font-size: 10.5px; border: 1px solid var(--line); border-radius: 99px; padding: 0 6px; }
.nav svg { width: 17px; height: 17px; flex: none; opacity: .9; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 28px 48px; max-width: 1280px; width: 100%; }
.menu-toggle { display: none; background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--surface); border-radius: 99px; padding: 3px 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.grey { background: var(--ink-3); }
.dot.warn { background: var(--accent); }
.dot.bad { background: var(--err); }
.user-menu { position: relative; }
.user-menu button { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; color: var(--ink); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-soft-ink); display: grid; place-items: center; font-weight: 650; font-size: 12px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); min-width: 200px; padding: 6px; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--hover); text-decoration: none; }

/* Paginakop */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--ink-3); }
.breadcrumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Vakken */
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 18px 20px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack { display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; }
.stat .value { font-size: 26px; font-weight: 650; }
.stat .label { color: var(--ink-3); font-size: 12.5px; }

/* Formulieren */
.field label, .label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.input, select.input, textarea.input { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 8px; padding: 8px 10px; min-height: 38px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.input[readonly], .input:disabled { background: var(--line-2); color: var(--ink-2); }
textarea.input { min-height: 80px; resize: vertical; }
.input.big { font-size: 20px; letter-spacing: 4px; text-align: center; }
.error { color: var(--err); font-size: 12.5px; margin-top: 4px; }
.has-error .input { border-color: var(--err); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.hint { color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }

/* Knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; border-radius: 8px; padding: 8px 14px; min-height: 38px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--field); color: var(--ink); border-color: var(--field-line); }
.btn-secondary:hover { background: var(--hover); }
.btn-danger { background: var(--field); color: var(--err); border-color: var(--err-line); }
.btn-danger:hover { background: var(--err-soft); }
.btn-link { background: none; border: 0; color: var(--accent-ink); padding: 0; min-height: 0; font-weight: 600; cursor: pointer; }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Tabellen */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.toolbar .input { max-width: 320px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--field); color: var(--ink-2); font-weight: 500; cursor: pointer; font: inherit; }
.tab.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .4px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--thead); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { color: var(--ink); font-weight: 600; }
.empty { padding: 36px; text-align: center; color: var(--ink-3); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.red { background: var(--err-soft); color: var(--err); }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.badge.gold { background: var(--accent-soft); color: var(--accent-soft-ink); }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--line-2); border: 1px solid var(--line); display: block; }
.photo { width: 100%; max-width: 260px; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--line-2); }
.pagination { padding: 12px 16px; border-top: 1px solid var(--line); }
.pagination nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination .pages span, .pagination .pages button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--field); font: inherit; cursor: pointer; display: inline-grid; place-items: center; color: var(--ink-2); }
.pagination .pages .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.pagination .pages .disabled { opacity: .45; cursor: default; }

/* Meldingen */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-warning { background: var(--warn-soft); color: var(--warn); }

/* Paneel (bewerken) */
.panel-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 20; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--raised); color: var(--ink); z-index: 21; display: flex; flex-direction: column; box-shadow: var(--shadow-pop); }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.panel-body { padding: 20px 22px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { padding: 6px 10px; border-radius: 6px; color: var(--ink-2); }
.side-nav a:hover { background: var(--hover); text-decoration: none; }
.side-nav a.active { background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }
.side-nav .group { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-3); margin: 10px 10px 2px; }
.layout-split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }

/* Aanmelden */
.guest { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.guest-card { width: 100%; max-width: 400px; }
.guest-brand { text-align: center; margin-bottom: 18px; }
.guest-brand h1 { font-size: 26px; margin-top: 10px; }
.guest-brand p { margin: 2px 0 0; color: var(--ink-3); }
/* QR-code blijft altijd zwart op wit, ook in donkere modus: anders leest de camera hem niet. */
.qr { display: grid; place-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--field); border: 1px solid var(--line); padding: 14px 18px; border-radius: 8px; }

/* Keuze weergave (profiel) */
.theme-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-option { display: grid; gap: 8px; justify-items: center; text-align: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--field); cursor: pointer; font-weight: 500; font-size: 13px; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option.selected, .theme-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--focus); }
.theme-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-swatch { width: 56px; height: 36px; border-radius: 6px; border: 1px solid var(--field-line); }
.theme-swatch.light { background: linear-gradient(135deg, #fefefe 50%, #f0f0f0 50%); }
.theme-swatch.dark { background: linear-gradient(135deg, #121212 50%, #252525 50%); }
.theme-swatch.auto { background: linear-gradient(135deg, #fefefe 50%, #121212 50%); }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 248px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .menu-toggle { display: inline-block; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .stats, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .layout-split { grid-template-columns: 1fr; }
  .topbar .status { display: none; }
}

/* Sorteerhal: grote knoppen voor een tablet aan de lijn */
.hall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hall-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; align-items: center; }
.hall-pos { font-size: 34px; font-weight: 700; text-align: center; color: var(--accent-ink); }
.hall-info { display: grid; gap: 2px; min-width: 0; }
.hall-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.hall-actions .btn { min-height: 48px; font-size: 16px; }
.hall-actions .input { min-height: 48px; text-align: center; }

/* Afdrukken (sorteerverslag) */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* --- Cloudkopie (alleen lezen) en meldingen ------------------------------ */
.readonly-bar { display: flex; gap: 10px; align-items: flex-start; padding: 9px 20px; background: var(--warn-soft); color: var(--warn); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.readonly-bar svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.readonly-bar a { color: inherit; font-weight: 600; }
.toasts { position: fixed; z-index: 100; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: var(--radius); background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); border: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.toast-fout { background: var(--err-soft); color: var(--err); border-color: var(--err-line); }
.toast-ok { background: var(--ok-soft); color: var(--ok); }
.form-row-4 { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .form-row-4 { grid-template-columns: 1fr; } }

/* --- Scannen (camera en handscanner) ---------------------------------------- */
.scan-field { display: flex; gap: 6px; align-items: stretch; }
.scan-field > .input { flex: 1; min-width: 0; }
.scan-btn { display: none; flex: none; width: 44px; border: 1px solid var(--field-line); border-radius: var(--radius); background: var(--field); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.can-scan .scan-btn { display: inline-flex; }
.scan-btn svg { width: 22px; height: 22px; }
.scan-btn:hover { background: var(--hover); }
.scan-overlay { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; }
.scan-overlay video { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
.scan-frame { position: absolute; left: 8%; right: 8%; top: 32%; height: 22%; border: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); pointer-events: none; }
.scan-msg { position: absolute; left: 0; right: 0; top: 14%; text-align: center; color: #fff; font-size: 16px; padding: 0 16px; text-shadow: 0 1px 3px #000; margin: 0; }
.scan-bar { display: flex; gap: 10px; justify-content: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: #000; }
.scan-bar .btn { min-height: 48px; min-width: 120px; font-size: 16px; }

/* --- Mobiele scanapp --------------------------------------------------------- */
.m-app { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.m-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: var(--raised); border-bottom: 1px solid var(--line); }
.m-top .logo-img { width: 26px; height: auto; }
.m-top strong { font-size: 17px; }
.m-top .spacer { flex: 1; }
.m-top a, .m-top button { color: var(--ink); }
.m-body { flex: 1; padding: 14px 14px calc(24px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.m-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 14px; }
.m-mode { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; font: inherit; cursor: pointer; min-height: 84px; }
.m-mode strong { font-size: 16px; }
.m-mode span { font-size: 13px; color: var(--ink-3); }
.m-mode.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-soft-ink); }
.m-mode.active span { color: var(--accent-soft-ink); }
.m-scan { display: flex; gap: 8px; }
.m-scan .input { flex: 1; min-width: 0; min-height: 56px; font-size: 22px; letter-spacing: .5px; }
.m-scan .scan-btn { width: 64px; border-radius: 12px; }
.m-scan .scan-btn svg { width: 30px; height: 30px; }
.m-scan .btn { min-height: 56px; }
.m-target { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); }
.m-target strong { font-size: 16px; }
.m-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); overflow: hidden; }
.m-card-head { padding: 12px 14px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.m-card-head .mono { font-size: 18px; font-weight: 700; }
.m-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 12px 14px; font-size: 15px; }
.m-facts dt { color: var(--ink-3); }
.m-facts dd { margin: 0; font-weight: 600; }
.m-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px 14px; }
.m-actions .btn, .m-big { min-height: 52px; font-size: 16px; justify-content: center; }
.m-choice { display: grid; gap: 8px; margin-top: 10px; }
.m-choice button { min-height: 52px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; cursor: pointer; }
.m-choice button small { display: block; color: var(--ink-3); font-size: 13px; }
.m-weigh { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 0 14px 14px; }
.m-weigh .input { min-height: 56px; font-size: 26px; text-align: right; }
.m-log { margin-top: 16px; display: grid; gap: 6px; }
.m-log div { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; background: var(--surface); font-size: 14px; }
.m-log .ok { border-left: 4px solid var(--ok); }
.m-log .fout { border-left: 4px solid var(--err); background: var(--err-soft); color: var(--err); }
.m-log .mono { font-weight: 600; }
.m-msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.m-msg.ok { background: var(--ok-soft); color: var(--ok); }
.m-msg.fout { background: var(--err-soft); color: var(--err); }
.m-h { font-size: 17px; margin: 6px 2px 0; }
.m-top .logo { height: 30px; width: auto; }
.steps { padding-left: 20px; display: grid; gap: 14px; margin: 8px 0; }
.steps li { line-height: 1.5; }
