/* production.itlhealth.com - phone first. Inputs stay at 16px or iOS zooms in. No outside fonts. */
:root {
  --bg: #f4f6f8; --card: #fff; --ink: #1d2733; --muted: #5f6b7a; --line: #d8dee5;
  --ok: #1e7d3a; --ok-bg: #e5f4ea; --bad: #b3261e; --bad-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fff4dc;
  --brand: #20507a;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { background: var(--brand); color: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
header h1 { font-size: 18px; margin: 0; }
header .sub { opacity: .85; font-size: 14px; }
.demo { background: #ffd54f; color: #3a2a00; font-weight: 600; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
main { padding: 12px; max-width: 1100px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.card h2 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; }
button, select, input { font: inherit; font-size: 16px; }
button { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 12px 16px; min-height: 48px; cursor: pointer; }
button.secondary { background: #e3e8ee; color: var(--ink); }
select, input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; min-height: 48px; background: #fff; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { flex: 1; }
.hidden { display: none !important; }

/* materials list */
.mat { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.mat:first-child { border-top: 0; }
.mat .need { font-weight: 600; white-space: nowrap; }
.mat.done .need { color: var(--ok); }
.mat .code { font-weight: 600; }

/* scan result banner */
.result { border-radius: 10px; padding: 14px; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.result small { display: block; font-weight: 400; font-size: 14px; margin-top: 4px; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.bad { background: var(--bad-bg); color: var(--bad); }
.result.warn { background: var(--warn-bg); color: var(--warn); }

/* phone camera */
.cam { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #000; border-radius: 10px; overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; }
.cam .aim { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; border: 3px solid rgba(255,255,255,.85); border-radius: 8px; }
.pin { letter-spacing: 8px; text-align: center; font-size: 24px; }

/* room screen */
.screen-grid { display: grid; grid-template-columns: 320px 1fr; gap: 12px; }
@media (max-width: 760px) { .screen-grid { grid-template-columns: 1fr; } }
.qr img { width: 100%; max-width: 280px; display: block; margin: 0 auto; image-rendering: pixelated; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.feed li:first-child { border-top: 0; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #aaa; margin-right: 6px; }
.status-dot.on { background: var(--ok); }
.wide { width: 100%; }
.row > .shrink { flex: 0 0 auto; }
