/* Hetamah — "Modernist" look from the design: square corners, 2px navy rules, green actions. */
:root {
  --navy: #103a68;
  --bg: #f1f4f8;
  --rail: #e2e9f1;
  --rail-hover: #d1dbe6;
  --hover: #e7edf4;
  --computed: #e9eef4;
  --green: #176e51;
  --green-hover: #125b42;
  --green-accent: #1f8f6b;
  --green-text: #146b4f;
  --mint: #7fd8b8;
  --signed-bg: #dff0e8;
  --signed-cell: #f4f9f6;
  --red: #a01f06;
  --red-bg: #fbd5cd;
  --muted: #4a5b70;
  --line: rgba(16, 58, 104, 0.22);
  --line-soft: rgba(16, 58, 104, 0.18);
  --font: Heebo, Archivo, "Arial Hebrew", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--navy); font-family: var(--font); font-size: 16px; }
input, button, textarea, select { font-family: inherit; color: inherit; }
button { border-radius: 0; }
input[type="text"]:focus-visible, input[type="password"]:focus-visible, textarea:focus-visible,
select:focus-visible, button:focus-visible { outline: 2px solid var(--green-accent); outline-offset: 1px; }
::selection { background: #bfe3d5; }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--navy); background: none;
  color: var(--navy); padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--navy); color: var(--bg); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn.big { padding: 13px 28px; font-size: 16px; }
.btn.block { width: 100%; justify-content: flex-start; }
.btn.link { border: 0; padding: 6px 4px; }
.btn.link:hover { background: none; text-decoration: underline; color: var(--navy); }
.btn.danger { color: var(--red); }
.btn.danger:hover { color: var(--red); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:disabled:hover { background: none; color: var(--navy); }
.btn.primary:disabled:hover { background: var(--green); color: #fff; }
.btn svg { flex: none; }

.hdr-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 2px solid rgba(255,255,255,0.38);
  color: var(--bg); padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.hdr-btn:hover { border-color: var(--mint); color: var(--mint); }

/* ---------- app shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.topbar { background: var(--navy); color: var(--bg); padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; justify-content: space-between; border-bottom: 2px solid var(--green-accent);
  position: sticky; top: 0; z-index: 20; }
.topbar .brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.topbar .title { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--bg); text-decoration: none; }
.topbar .code { font-size: 13px; font-weight: 500; opacity: 0.62; letter-spacing: 0.04em; white-space: nowrap; }
.topbar .product { font-size: 15px; font-weight: 700; color: var(--mint); }
.topbar .batchno { font-size: 14px; opacity: 0.8; }
.topbar .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar .saved { font-size: 12px; opacity: 0.65; }
.topbar .who { font-size: 13px; opacity: 0.85; text-align: start; line-height: 1.25; }
.topbar .who b { display: block; font-size: 14px; opacity: 1; }
.status-pill { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; padding: 3px 8px; background: var(--mint); color: var(--navy); }
.status-pill.closed { background: #fff; color: var(--navy); }

.workspace { display: grid; grid-template-columns: 268px 1fr; min-height: 0; }
.rail { background: var(--rail); border-left: 2px solid var(--navy); overflow: auto; }
.rail button { width: 100%; text-align: right; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline;
  padding: 13px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--navy); cursor: pointer; }
.rail button:hover { background: var(--rail-hover); }
.rail button.on { background: var(--navy); color: var(--bg); }
.rail .num { font-size: 13px; font-weight: 800; opacity: 0.55; }
.rail .t { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.rail .s { display: block; font-size: 12px; opacity: 0.6; margin-top: 2px; }
.rail .mark { font-size: 12px; font-weight: 800; color: var(--green-text); align-self: center; }
.rail button.on .mark { color: var(--mint); }

main.page { padding: 28px 32px 40px; overflow: auto; max-width: 1180px; width: 100%; }
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-bottom: 2px solid var(--navy);
  padding-bottom: 12px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.page-head .sub { font-size: 14px; font-weight: 700; color: var(--green-text); }
.intro { margin: 0 0 18px; font-size: 16px; max-width: 76ch; line-height: 1.55; text-wrap: pretty; }
.spacer { height: 30px; }

.banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; margin-bottom: 20px; font-size: 14px; font-weight: 700;
  border: 2px solid var(--navy); background: #fff; }
.banner.lock { background: var(--computed); }
.banner.closed { background: var(--signed-bg); border-color: var(--green); color: var(--green-text); }

.pager { position: sticky; bottom: 0; margin-top: 40px; padding: 16px 0; display: flex; gap: 12px; justify-content: space-between;
  background: linear-gradient(to top, var(--bg) 70%, rgba(241,244,248,0)); }

/* ---------- fields ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.field { display: block; }
.field > span.lbl { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field .wrap { position: relative; display: block; }
.input { width: 100%; background: #fff; border: 2px solid var(--navy); padding: 11px 12px; font-size: 17px; font-weight: 500; border-radius: 0; }
.input[readonly] { background: var(--computed); }
.input.req-missing { border-color: var(--red); }
textarea.input { resize: vertical; font-size: 16px; }
.picker-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center;
  justify-content: center; width: 30px; height: 30px; background: #fff; border: 1px solid rgba(16,58,104,0.3); cursor: pointer; padding: 0; }
.picker-btn:hover { background: var(--hover); }
.input.has-picker { padding-right: 44px; text-align: right; } /* button sits on the right in this RTL app */

/* ---------- checklists ---------- */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; border-top: 2px solid var(--navy); }
.checklist.single { grid-template-columns: 1fr; }
.check { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: center; text-align: right; background: none; border: 0;
  border-bottom: 1px solid var(--line); padding: 14px 2px; cursor: pointer; font-size: 17px; font-weight: 500; }
.checklist.single .check { align-items: start; padding: 16px 2px; font-size: 16px; line-height: 1.5; }
.check:hover:not(:disabled) { background: var(--hover); }
.check:disabled { cursor: default; }
.box { width: 28px; height: 28px; border: 2px solid var(--navy); background: #fff; color: #fff; font-size: 18px; font-weight: 800;
  line-height: 24px; text-align: center; display: block; }
.box.on { background: var(--green-accent); }

/* ---------- signature cards ---------- */
.sigs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sigcard { background: #fff; border: 2px solid var(--navy); padding: 16px; display: grid; gap: 10px; align-content: start; }
.sigcard .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sigcard .label { font-size: 14px; font-weight: 800; line-height: 1.3; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 7px; white-space: nowrap; background: var(--hover); color: var(--navy); }
.badge.ok { background: var(--signed-bg); color: var(--green-text); }
.sigcard .body { border-top: 1px solid var(--line-soft); padding-top: 10px; display: grid; gap: 3px; }
.sigcard .name { font-size: 19px; font-weight: 800; }
.sigcard .meta { font-size: 13px; font-weight: 600; opacity: 0.75; }
.sigcard .stamp { font-size: 13px; font-weight: 700; color: var(--green-text); }
.sigcard .rid { font-size: 11px; font-weight: 600; opacity: 0.55; }
.sigcard .roles { font-size: 12px; opacity: 0.6; }

/* ---------- data tables (CSS grid, horizontally scrollable) ---------- */
.dt { overflow: auto; border: 2px solid var(--navy); background: #fff; }
.dt .row { display: grid; border-bottom: 1px solid var(--line); }
.dt .row.head { background: var(--navy); color: var(--bg); border-bottom: 0; }
.dt .row.head > div { padding: 10px 8px; font-size: 13px; font-weight: 700; border-left: 1px solid rgba(255,255,255,0.28); }
.dt .row.total { border-top: 2px solid var(--navy); border-bottom: 0; }
.dt .row.total > div { padding: 11px 8px; font-size: 16px; font-weight: 800; background: var(--computed); border-left: 1px solid var(--line-soft); }
.dt .row.total > div.sum { background: var(--signed-bg); direction: ltr; text-align: right; }
.dt .row.locked { background: var(--signed-cell); }
.dt .cell { position: relative; display: block; border-left: 1px solid var(--line-soft); min-width: 0; }
.dt .cell input, .dt .cell select { width: 100%; border: 0; background: #fff; padding: 11px 8px; font-size: 16px; font-weight: 500; border-radius: 0; min-width: 0; }
.dt .cell input[readonly] { background: var(--computed); }
.dt .cell input.with-picker { padding-right: 30px; }
.dt .cell input.num { direction: ltr; text-align: right; }
.dt .cell input.bad { background: var(--red-bg); color: var(--red); font-weight: 800; }
.dt .cell input.name { font-weight: 700; }
.dt .cell select { appearance: none; cursor: pointer; color: var(--navy); }
.dt .cell select:disabled { cursor: default; background: var(--computed); }
.dt .cell .picker-btn { width: 22px; height: 22px; right: 4px; }
.dt .tick { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: none; border: 0; padding: 8px 4px; cursor: pointer; }
.dt .tick:hover:not(:disabled) { background: var(--hover); }
.dt .tick .box { width: 24px; height: 24px; font-size: 16px; line-height: 20px; }
.dt .choices { display: grid; gap: 4px; padding: 8px; }
.dt .choice { display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 2px 0; cursor: pointer; text-align: start; font-size: 14px; }
.dt .choice:disabled { cursor: default; }
.dt .choice .ring { width: 16px; height: 16px; border: 2px solid var(--navy); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.dt .choice .dot { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dt .choice.on { font-weight: 800; }
.dt .choice.on.ok .dot { background: var(--green); }
.dt .choice.on.bad .dot { background: var(--red); }
.dt .draw { display: flex; align-items: center; gap: 6px; width: 100%; height: 100%; background: #fff; border: 0; padding: 11px 8px;
  font-size: 13px; font-weight: 700; cursor: pointer; text-align: start; }
.dt .draw:hover:not(:disabled) { background: var(--hover); }
.dt .draw:disabled { cursor: default; }
.dt .draw img { display: block; width: 100%; height: 42px; object-fit: contain; }
.dt .draw.done { padding: 4px 6px; }
.dt .esign { display: flex; align-items: center; gap: 7px; width: 100%; height: 100%; background: #fff; border: 0; color: var(--green);
  padding: 11px 8px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: start; }
.dt .esign:hover { background: var(--hover); }
.dt .esigned { padding: 9px 8px; display: grid; gap: 1px; background: var(--signed-cell); width: 100%; border: 0; text-align: start; cursor: pointer; }
.dt .esigned .n { font-size: 14px; font-weight: 800; }
.dt .esigned .r { font-size: 12px; font-weight: 600; opacity: 0.7; }
.dt .esigned .st { font-size: 12px; font-weight: 700; color: var(--green-text); }
/* Compact tables: tighter cells so wide forms fit tablet widths without sideways scrolling. */
.dt .row.head.groups > div { padding: 8px 6px 2px; font-size: 13px; font-weight: 800; text-align: center;
  border-left: 1px solid rgba(255,255,255,0.28); border-bottom: 1px solid rgba(255,255,255,0.28); }
.dt .row.head.groups > div.blank { border-bottom: 0; }
.dt.compact .row.head:not(.groups) > div { padding: 6px 5px 8px; font-size: 12px; text-align: center; }
.dt.compact .cell input { padding: 10px 5px; font-size: 15px; }
.dt.compact .cell input.with-picker { padding-right: 28px; }
.dt.compact .cell .picker-btn { right: 3px; }
.dt.compact .cell input:not(.with-picker) { text-align: center; }
.dt.compact .cell input::placeholder { font-size: 13px; }
.dt.compact .draw { padding: 10px 5px; font-size: 12px; justify-content: center; }
.table-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.subhead { margin: 0 0 10px; font-size: 19px; font-weight: 800; border-bottom: 2px solid var(--navy); padding-bottom: 8px; }

/* ---------- balance ---------- */
.balance-foot { margin-top: 18px; display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.balance-foot .rules { font-size: 14px; line-height: 1.7; }
.balance-foot .formula { margin-top: 12px; font-size: 13px; opacity: 0.7; }
.balance-box { border: 2px solid var(--navy); background: #fff; padding: 18px; }
.balance-box .k { font-size: 13px; font-weight: 700; opacity: 0.75; }
.balance-box .v { font-size: 28px; font-weight: 800; margin-top: 4px; }
.balance-box.ok { background: var(--green); border-color: var(--green); color: #fff; }
.balance-box.bad { background: var(--red); border-color: var(--red); color: #fff; }
.balance-box .rows { font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ---------- approvals list ---------- */
ol.approvals { margin: 0 0 26px; padding: 0 22px 0 0; display: grid; gap: 14px; font-size: 16px; max-width: 78ch; line-height: 1.5; }

/* ---------- photos ---------- */
.idstrip { border: 2px solid var(--navy); background: #fff; display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 22px; }
.idstrip > div { padding: 12px 14px; border-left: 1px solid var(--line-soft); }
.idstrip > div:last-child { border-left: 0; }
.idstrip .k { font-size: 12px; font-weight: 700; color: var(--green-text); margin-bottom: 3px; }
.idstrip .v { font-size: 19px; font-weight: 800; }
.empty { border: 2px dashed rgba(16,58,104,0.35); background: var(--hover); padding: 34px 24px; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.pset { border: 2px solid var(--navy); background: #f8fafc; padding: 16px; margin-bottom: 20px; display: grid; gap: 14px; }
.pset .top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pset .top .l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pset .title { font-size: 17px; font-weight: 800; }
.pset .count { font-size: 13px; font-weight: 600; opacity: 0.7; }
.upload { position: relative; justify-self: start; overflow: hidden; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.photo { background: #fff; border: 2px solid var(--navy); display: grid; align-content: start; }
.photo img { display: block; width: 100%; height: 220px; object-fit: cover; background: #e2e9f1; }
.photo .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 11px 5px; border-top: 2px solid var(--navy); }
.photo .meta b { font-size: 13px; }
.photo .meta span { font-size: 12px; font-weight: 600; opacity: 0.7; }
.photo input { width: 100%; border: 0; border-top: 1px solid var(--line-soft); background: #fff; padding: 9px 11px; font-size: 15px; }
.photo input[readonly] { background: #fff; }
.photo .rm { background: none; border: 0; border-top: 1px solid var(--line-soft); color: var(--red); padding: 8px 11px; font-size: 13px; font-weight: 700; cursor: pointer; text-align: start; }
.setsig { background: #fff; border: 2px solid var(--navy); padding: 14px; max-width: 520px; display: grid; gap: 9px; }
.setsig .lbl { font-size: 14px; font-weight: 800; }
.setsig .done { display: block; width: 100%; background: var(--signed-cell); border: 0; padding: 6px; cursor: pointer; text-align: start; }
.setsig .done img { display: block; width: 100%; height: 54px; object-fit: contain; }
.setsig .done span { display: block; font-size: 12px; font-weight: 700; color: var(--green-text); margin-top: 3px; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: #0b2b4f; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16,58,104,0.55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { background: #fff; border: 2px solid var(--navy); width: 520px; max-width: 100%; max-height: calc(100vh - 48px); overflow: auto;
  padding: 26px 28px 24px; display: grid; gap: 16px; }
.dialog.wide { width: 640px; }
.dialog .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--green-text); }
.dialog h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
.dialog .meaning { font-size: 14px; font-weight: 600; opacity: 0.75; }
.dialog .section { border-top: 1px solid var(--line-soft); padding-top: 16px; display: grid; gap: 14px; }
.dialog .fine { font-size: 12px; font-weight: 600; opacity: 0.65; line-height: 1.5; }
.dialog .buttons { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 16px; flex-wrap: wrap; }
.dialog .buttons .end { margin-inline-start: auto; }
.error { background: var(--red-bg); color: var(--red); font-size: 14px; font-weight: 700; padding: 10px 12px; }
.pad { width: 100%; height: 190px; display: block; background: #f8fafc; border: 1px dashed rgba(16,58,104,0.4); border-bottom: 2px solid var(--green);
  touch-action: none; cursor: crosshair; }

.pop-catch { position: fixed; inset: 0; z-index: 60; }
.pop { position: absolute; width: 300px; background: #fff; border: 2px solid var(--navy); box-shadow: 0 10px 30px rgba(16,58,104,0.28); padding: 12px; }
.pop .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pop .head b { font-size: 15px; font-weight: 800; }
.pop .nav { width: 30px; height: 30px; background: #fff; border: 1px solid rgba(16,58,104,0.3); cursor: pointer; font-size: 16px; font-weight: 800; padding: 0; }
.pop .nav:hover { background: var(--hover); }
.pop .grid7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.pop .grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.pop .dow { text-align: center; font-size: 11px; font-weight: 700; opacity: 0.6; padding: 3px 0; }
.pop .day, .pop .hm { height: 34px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; cursor: pointer; padding: 0; color: var(--navy); }
.pop .hm { height: 30px; font-size: 13px; }
.pop .day:hover:not(:disabled), .pop .hm:hover { border-color: var(--green); }
.pop .day.today { border-color: var(--green-text); font-weight: 800; }
.pop .day.sel, .pop .hm.sel { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; }
.pop .day:disabled { color: #aab4c0; cursor: not-allowed; }
.pop .day.blank { border-color: transparent; background: transparent; }
.pop .foot { display: flex; gap: 8px; margin-top: 10px; border-top: 1px solid var(--line-soft); padding-top: 10px; align-items: center; }
.pop .foot button { background: none; border: 0; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 2px; color: var(--green-text); }
.pop .foot .end { margin-inline-start: auto; }
.pop .foot .clear { color: var(--red); }
.pop .mini { font-size: 11px; font-weight: 700; opacity: 0.6; margin: 10px 0 4px; }
.pop .clockval { font-size: 18px; font-weight: 800; color: var(--green-text); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--navy); color: #fff;
  padding: 12px 18px; font-size: 14px; font-weight: 700; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(16,58,104,0.28); }
.toast.err { background: var(--red); }

/* ---------- list / admin pages ---------- */
.solo { max-width: 1180px; margin: 0 auto; padding: 28px 32px 60px; width: 100%; }
.ltable { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--navy); }
.ltable th { background: var(--navy); color: var(--bg); text-align: right; padding: 10px 10px; font-size: 13px; font-weight: 700; }
.ltable td { padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.ltable tr.click { cursor: pointer; }
.ltable tr.click:hover td { background: var(--hover); }
.ltable td.mono { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.ltable .muted { opacity: 0.6; }
.tablewrap { overflow: auto; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .grow { flex: 1; }
.card { background: #fff; border: 2px solid var(--navy); padding: 20px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .box2 { width: 440px; max-width: 100%; background: #fff; border: 2px solid var(--navy); }
.login .band { background: var(--navy); color: var(--bg); padding: 22px 26px; border-bottom: 2px solid var(--green-accent); }
.login .band h1 { margin: 0; font-size: 26px; font-weight: 800; }
.login .band div { font-size: 13px; opacity: 0.65; margin-top: 4px; }
.login form { padding: 24px 26px 26px; display: grid; gap: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .topbar { position: static; }
  .workspace { grid-template-columns: 1fr; }
  .rail { display: flex; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--navy); }
  .rail button { width: auto; min-width: 170px; border-bottom: 0; border-left: 1px solid var(--line-soft); }
  main.page, .solo { padding: 20px 16px 32px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .balance-foot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid3, .grid2, .sigs, .checklist { grid-template-columns: 1fr; }
  .idstrip { grid-template-columns: 1fr; }
  .idstrip > div { border-left: 0; border-bottom: 1px solid var(--line-soft); }
  .topbar { padding: 12px 16px; }
  .page-head h1 { font-size: 24px; }
}
