/* Palette comes from the bench: articulating-paper blue and red on porcelain white. */
:root {
  --paper: #eef2f4;
  --card: #ffffff;
  --ink: #15232d;
  --ink-2: #51626e;
  --line: #d3dce2;
  --blue: #1746c8;
  --blue-dark: #0f3396;
  --blue-wash: #e4ebfb;
  --red: #c8322b;
  --red-wash: #fbe9e7;
  --green: #12805c;
  --green-wash: #e0f3ec;
  --amber: #9a5b00;
  --amber-wash: #fcf0d9;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
[hidden] { display: none !important; }

/* ---------- shared pieces ---------- */
.tag {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px 12px 12px 3px;
  color: #fff; font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums;
}
.tag.sm { width: 30px; height: 30px; font-size: 14px; border-radius: 8px 8px 8px 2px; }
.tag.xl { width: 76px; height: 76px; font-size: 34px; border-radius: 20px 20px 20px 5px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-md);
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:active { background: var(--blue-dark); }
.btn:disabled { background: #b9c4cc; color: #f2f5f7; }
.btn.quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.quiet:active { background: var(--paper); }
.btn.danger { background: var(--red); }
.btn.green { background: var(--green); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 15px; border-radius: var(--r-sm); }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--card); box-shadow: inset 0 0 0 2px var(--line); color: var(--ink); font-weight: 800;
}

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  max-width: min(92vw, 460px); padding: 14px 20px; border-radius: var(--r-md);
  background: var(--ink); color: #fff; font-weight: 600; text-align: center; z-index: 60;
}
#toast.bad { background: var(--red); }

.veil {
  position: fixed; inset: 0; z-index: 50; background: rgba(21, 35, 45, .55);
  display: grid; place-items: end center; padding: 0;
}
.sheet {
  width: min(100%, 520px); background: var(--card); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 18px;
}
.sheet h2 { font-size: 22px; }
.sheet .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet .btn { min-height: 64px; font-size: 20px; }

/* =====================================================================
   Technician app
   ===================================================================== */
.tech .screen {
  min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.topbar { display: flex; align-items: center; gap: 12px; }
.topbar .name { flex: 1; min-width: 0; font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .lab { flex: 1; font-size: 15px; color: var(--ink-2); font-weight: 600; }

/* pick a person */
.ask { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 10px 0 4px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.person {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left;
  padding: 16px; min-height: 128px; background: var(--card); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 2px var(--line); font-size: 20px; font-weight: 700; line-height: 1.2;
  overflow-wrap: anywhere;
}
.person:active { box-shadow: inset 0 0 0 3px var(--blue); }
.empty { background: var(--card); border-radius: var(--r-lg); padding: 24px; font-size: 19px; display: grid; gap: 14px; }
.foot-link { margin-top: auto; text-align: center; padding: 12px; color: var(--ink-2); font-size: 15px; }

/* PIN */
.pin-who { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; font-size: 24px; font-weight: 800; text-align: center; }
.dots { display: flex; justify-content: center; gap: 18px; margin: 10px 0; }
.dots i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--ink); }
.dots i.on { background: var(--ink); }
.dots.shake { animation: shake .35s; }
.dots.shake i { box-shadow: inset 0 0 0 3px var(--red); background: var(--red-wash); }
@keyframes shake { 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.msg { min-height: 28px; text-align: center; font-weight: 700; color: var(--red); font-size: 18px; }

.hint { text-align: center; color: var(--ink-2); font-size: 16px; }
.lang-ask { margin: 6vh 0 2vh; display: grid; justify-items: center; gap: 4px; font-size: 26px; font-weight: 800; color: var(--ink); }
.lang-ask svg { color: var(--blue); margin-bottom: 8px; }
.lang-list, .dept-list { display: grid; gap: 14px; }
.dept-list .btn { justify-content: flex-start; text-align: left; padding: 12px 20px; overflow-wrap: anywhere; }
.btn.lang { width: 100%; min-height: 84px; font-size: 30px; }
.sheet .btn.lang { min-height: 72px; font-size: 26px; }
input.readout.name-in { text-transform: none; font-size: 32px; letter-spacing: 0; min-height: 92px; }

/* keypad */
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.key {
  height: 68px; border-radius: var(--r-md); background: var(--card); box-shadow: inset 0 0 0 2px var(--line);
  font-size: 30px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums;
  touch-action: manipulation; user-select: none;
}
.key:active { background: var(--blue-wash); box-shadow: inset 0 0 0 2px var(--blue); }
.key.soft { background: transparent; box-shadow: none; color: var(--ink-2); }
.key.go { background: var(--blue); color: #fff; box-shadow: none; }
.key.go:active { background: var(--blue-dark); }
.key.go:disabled { background: #b9c4cc; }
.key.send-key { background: var(--green); }
.key.send-key:active { background: #0c6447; }
.key.send-key:disabled { background: #b9c4cc; }
.key.blank { visibility: hidden; }

/* the three steps */
.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.step {
  height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #dfe6ea; color: #8496a2;
}
.step.now { background: var(--ink); color: #fff; }
.step.ok { background: var(--green-wash); color: var(--green); }

.what { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; line-height: 1.15; margin-top: 4px; }
.what svg { flex: none; color: var(--blue); }

.readout {
  background: var(--card); border-radius: var(--r-lg); min-height: 104px; padding: 8px 16px;
  display: grid; place-items: center; box-shadow: inset 0 0 0 3px var(--ink);
  font-size: 58px; font-weight: 800; letter-spacing: 2px; font-variant-numeric: tabular-nums;
  overflow: hidden; white-space: nowrap;
}
.readout.long { font-size: 40px; }
.readout.none { color: #b9c4cc; box-shadow: inset 0 0 0 3px var(--line); }
input.readout { width: 100%; text-align: center; border: 0; text-transform: uppercase; }
input.readout::placeholder { color: #b9c4cc; }

.shot {
  flex: 1; min-height: 300px; border-radius: var(--r-lg); background: var(--card);
  border: 4px dashed var(--blue); color: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 26px; font-weight: 800;
}
.shot:active { background: var(--blue-wash); }
.preview { flex: 1; min-height: 240px; border-radius: var(--r-lg); background: var(--ink); overflow: hidden; display: grid; place-items: center; }
.preview img { max-width: 100%; max-height: 56vh; display: block; }
.two { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.big { min-height: 72px; font-size: 24px; border-radius: var(--r-lg); }
.send { min-height: 84px; font-size: 28px; border-radius: var(--r-lg); background: var(--green); margin-top: auto; }
.send:active { background: #0c6447; }

.count { display: grid; grid-template-columns: 76px 1fr 76px; gap: 12px; align-items: stretch; }
.count .readout { min-height: 96px; }
.count .key { height: auto; font-size: 40px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick .key { height: 62px; font-size: 26px; }
.quick .key.sel { background: var(--ink); color: #fff; box-shadow: none; }
.recap { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r-md); padding: 8px 14px 8px 8px; font-size: 22px; font-weight: 800; }
.recap img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--paper); }

.today {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--card); border-radius: var(--r-md); padding: 10px 14px; font-size: 16px; color: var(--ink-2);
}
.today b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.today .grow { flex: 1; font-weight: 700; color: var(--ink); }
.today svg { color: var(--ink-2); }

.log { display: grid; gap: 10px; }
.log-row { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r-md); padding: 8px; }
.log-row img, .log-row .ph { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--paper); flex: none; }
.log-row .o { flex: 1; min-width: 0; font-size: 22px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.log-row .o small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.log-row .u { font-size: 26px; font-weight: 800; min-width: 44px; text-align: right; }
.log-row .ok { color: var(--green); width: 48px; display: grid; place-items: center; }
.log-row .icon-btn { color: var(--red); }

.log-row .ok.bad { color: var(--red); }
.log-row .ok.half { color: #9fb0bb; }
.log-row .why { color: var(--red); font-size: 16px; font-weight: 700; }
button.log-row { width: 100%; text-align: left; }
.came-back {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 64px; padding: 10px 14px;
  background: var(--red-wash); color: #86201b; border-radius: var(--r-md); box-shadow: inset 0 0 0 2px var(--red);
  font-size: 20px; font-weight: 800;
}
.came-back .grow { flex: 1; }
.came-back b { font-size: 28px; }
.back-card { background: var(--card); border-radius: var(--r-md); padding: 8px; display: grid; gap: 8px; }
.back-card .log-row { padding: 0; }
.back-card .btn { width: 100%; }
.qc-count { display: flex; align-items: center; gap: 14px; font-size: 22px; font-weight: 800; line-height: 1.15; }
.qc-count b { font-size: 68px; line-height: 1; }
.qc-count span { flex: 1; }
.qc-units { font-size: 18px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.qc-units b { font-size: 30px; color: var(--ink); }
.recap small { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.qc-photo { display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--ink); cursor: zoom-in; }
.qc-photo img { display: block; width: 100%; height: auto; }
.qc-actions { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0 calc(4px + env(safe-area-inset-bottom)); margin-top: auto; grid-template-columns: 1fr 1fr; }

.done {
  position: fixed; inset: 0; z-index: 70; background: var(--green); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font-size: 34px; font-weight: 800; text-align: center; padding: 24px;
}
.done .ring { width: 150px; height: 150px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; animation: pop .3s ease-out; }
.done .sub { font-size: 24px; font-weight: 700; color: #fff; opacity: .92; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.busy { position: fixed; inset: 0; z-index: 65; background: rgba(238, 242, 244, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; font-size: 24px; font-weight: 800; }
.spin { width: 64px; height: 64px; border-radius: 50%; border: 7px solid var(--line); border-top-color: var(--blue); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   Manager
   ===================================================================== */
.mgr { font-size: 15.5px; }
.mgr .wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 96px; }
.mgr header.bar {
  position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff;
}
.mgr header.bar .in { max-width: 1120px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { font-weight: 800; font-size: 17px; white-space: nowrap; }
.brand span { font-weight: 500; opacity: .7; margin-left: 8px; }
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { color: #c3ced6; font-weight: 700; padding: 0 14px; min-height: 56px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tab.on { color: #fff; border-bottom-color: #7fa0ff; }
.tab .n { background: var(--red); color: #fff; border-radius: 20px; padding: 1px 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.out { color: #c3ced6; font-weight: 600; font-size: 14px; white-space: nowrap; }

.mgr h1 { font-size: 26px; line-height: 1.15; margin: 26px 0 4px; }
.mgr h2 { font-size: 18px; margin: 28px 0 10px; }
.sub { color: var(--ink-2); }
.card { background: var(--card); border-radius: var(--r-md); padding: 18px; }
.stack { display: grid; gap: 14px; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.spread { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.warn { background: var(--amber-wash); color: #5c3700; border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; }
.warn.red { background: var(--red-wash); color: #86201b; }
.fine { background: var(--green-wash); color: #0b5a40; border-radius: var(--r-sm); padding: 10px 14px; font-weight: 600; }

label.f { display: grid; gap: 5px; font-weight: 700; font-size: 14px; }
label.f small { font-weight: 500; color: var(--ink-2); }
label.f .in-t { font-weight: 500; }
.in-t, select.in-t, textarea.in-t {
  min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; width: 100%;
}
textarea.in-t { min-height: 220px; line-height: 1.5; resize: vertical; }
textarea.in-t.short { min-height: 130px; }
.in-t:focus { border-color: var(--blue); outline: none; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }

/* login */
.gate { max-width: 400px; margin: 12vh auto 0; padding: 0 16px; }
.gate h1 { margin-bottom: 6px; }

/* check slips */
.slip { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 16px; }
.viewer { position: sticky; top: 72px; background: var(--ink); border-radius: var(--r-md); overflow: hidden; }
.viewer .frame { max-height: calc(100vh - 150px); min-height: 160px; overflow: auto; }
.viewer img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.modal .viewer { position: static; }
.viewer .tools { display: flex; gap: 8px; padding: 8px; background: #0e1a22; }
.viewer .tools .btn { background: #26363f; box-shadow: none; color: #fff; }
.nophoto { color: #9fb0bb; padding: 40px 20px; text-align: center; }
.meta { display: flex; align-items: center; gap: 12px; }
.meta .who { font-weight: 800; font-size: 18px; line-height: 1.2; }
.meta .when { color: var(--ink-2); font-size: 14px; }
.claim { margin-left: auto; text-align: right; line-height: 1.1; }
.claim b { display: block; font-size: 34px; font-variant-numeric: tabular-nums; }
.claim small { color: var(--ink-2); font-weight: 600; }
.lines { display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 84px 40px; gap: 8px; align-items: center; }
.line .pick {
  min-height: 46px; text-align: left; padding: 6px 12px; border-radius: var(--r-sm); border: 2px solid var(--line);
  background: #fff; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.line .pick.blank { color: var(--red); font-weight: 600; }
.line.on .pick { border-color: var(--blue); background: var(--blue-wash); }
.line input { text-align: center; font-size: 20px; font-weight: 800; padding: 6px; }
.line .x { width: 40px; height: 40px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 600; font-size: 14.5px; }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; }
.total b { font-size: 24px; font-variant-numeric: tabular-nums; }
.total.same { background: var(--green-wash); color: #0b5a40; }
.total.diff { background: var(--red-wash); color: #86201b; }
.linkish { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.linkish.red { color: var(--red); }
.actions { position: sticky; bottom: 0; background: var(--card); padding: 12px 0; margin: 0 0 -12px; border-top: 1px solid var(--line); }
.caught { text-align: center; padding: 56px 20px; }
.caught .ring { width: 84px; height: 84px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; }

/* report */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 16px; }
.fact { background: var(--card); padding: 14px 16px; }
.fact b { display: block; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.scroll { overflow-x: auto; background: var(--card); border-radius: var(--r-md); }
table.t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.t th, .t td { padding: 10px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.t th { font-size: 13px; color: var(--ink-2); font-weight: 700; vertical-align: bottom; background: #f7f9fa; }
.t th:first-child, .t td:first-child { text-align: left; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tfoot td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.t td.main { font-weight: 800; font-size: 18px; }
.t .person-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.t .person-cell small { display: block; color: var(--ink-2); font-size: 12.5px; }
.t tr.go { cursor: pointer; }
.t tr.go:hover td { background: #f7f9fa; }
.bar-cell { min-width: 140px; }
.bar-track { height: 10px; border-radius: 5px; background: var(--paper); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--blue); }
.neg { color: var(--red); font-weight: 700; }
.pos { color: var(--amber); font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.pill.wait { background: var(--amber-wash); color: #5c3700; }
.pill.ok { background: var(--green-wash); color: #0b5a40; }
.pill.off { background: var(--red-wash); color: #86201b; }
.pill.qc { background: var(--blue-wash); color: var(--blue-dark); }
.daybars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 14px 14px 0; }
.daybars .d { flex: 1; min-width: 6px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.daybars .d i { width: 100%; max-width: 34px; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.daybars .d em { font-style: normal; font-size: 11px; color: var(--ink-2); font-weight: 700; }
.daylabels { display: flex; gap: 4px; padding: 4px 14px 12px; }
.daylabels span { flex: 1; min-width: 6px; text-align: center; font-size: 11px; color: var(--ink-2); overflow: hidden; }

/* entries */
.thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--paper); display: block; }
.t td.left, .t th.left { text-align: left; }
.t td.wrap-ok { white-space: normal; min-width: 160px; }

/* team */
.team-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row .nm { flex: 1; min-width: 140px; font-weight: 700; }
.team-row .nm small { display: block; font-weight: 500; color: var(--ink-2); }
.team-row.off .nm, .team-row.off .tag { opacity: .45; }
.grid-form { display: grid; grid-template-columns: 2fr 1.4fr 1fr auto; gap: 12px; align-items: end; }

.mgr .veil { place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(100%, 1040px); background: var(--paper); border-radius: var(--r-md); padding: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.narrow { width: min(100%, 440px); background: var(--card); padding: 22px; }
.modal .slip { margin-top: 0; }
.zoom { position: fixed; inset: 0; z-index: 80; background: #0b141a; overflow: auto; cursor: zoom-out; }
.zoom img { display: block; margin: auto; max-width: none; min-width: min(100vw, 900px); }

@media (max-width: 820px) {
  .slip { grid-template-columns: 1fr; }
  .viewer { position: static; }
  .viewer .frame { max-height: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .mgr header.bar .in { flex-wrap: wrap; gap: 0 12px; justify-content: space-between; }
  .brand { min-height: 44px; display: flex; align-items: center; }
  .out { min-height: 44px; }
  .tabs { order: 3; flex-basis: 100%; margin: 0 -16px; padding: 0 6px; }
  .tab { padding: 0 10px; min-height: 44px; }
}
@media (max-height: 720px) {
  .key { height: 58px; }
  .readout { min-height: 84px; font-size: 48px; }
  .tech .screen { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
