@font-face { font-family: Archivo; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../assets/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(../assets/fonts/plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(../assets/fonts/plex-mono-500.woff2) format("woff2"); }
:root {
  --navy: #15191b; --navy-2: #2a3033; --orange: #3355ff; --orange-ink: #1f36b3; --crimson: #c21f32; --slate: #3d4543;
  --green: #0c6b47; --line: #d4d9d5; --tint: #f1f3f0; --warm: #e8edff; --ink: #15191b; --muted: #66706c; --white: #fff;
  --pass-bg: #dff1e7; --fail-bg: #fbe3e5; --na-bg: #e8ebe8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--tint); line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
a { color: var(--green); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 16px; font-weight: 600; background: var(--navy); color: #fff; text-decoration: none; min-height: 44px; }
.btn.orange { background: var(--orange); color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn.small { padding: 8px 12px; min-height: 36px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.pass { background: var(--pass-bg); color: var(--green); }
.pill.fail { background: var(--fail-bg); color: var(--crimson); }
.pill.na { background: var(--na-bg); color: var(--slate); }
.pill.due { background: var(--warm); color: var(--orange-ink); }
.pill.none { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.pill.hand { background: #fff; color: var(--orange-ink); border: 1px dashed var(--orange); }
.bar { height: 8px; background: #e3e7e3; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar.met > i { background: var(--green); }
.warn { background: var(--warm); border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.demo-tag { background: var(--crimson); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.muted { color: var(--muted); }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan svg { display: block; width: 100%; height: auto; }
.pin { cursor: pointer; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(21, 25, 27, 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 16px; } }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 12px; padding: 16px 6px; font-weight: 700; font-size: 16px; }
.choice.pass.on { background: var(--pass-bg); border-color: var(--green); color: var(--green); }
.choice.fail.on { background: var(--fail-bg); border-color: var(--crimson); color: var(--crimson); }
.choice.na.on { background: var(--na-bg); border-color: var(--slate); color: var(--slate); }
.lbl { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--slate); }
.lbl textarea, .lbl input, .lbl select { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sheet-actions .btn { flex: 1; }
.hist { font-size: 12.5px; color: var(--slate); display: grid; gap: 3px; border-top: 1px solid var(--line); padding-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--slate); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; border: 1px solid var(--navy); vertical-align: -1px; }
.plan-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.plan.editing { outline: 2.5px dashed var(--orange); }
.plan.editing svg { touch-action: none; cursor: grab; }
.plan.editing .pin { cursor: grab; }
.rename { display: flex; gap: 6px; }
.rename input { flex: 1; min-width: 0; text-transform: uppercase; }
.ewis { display: grid; gap: 10px; }
.ewis .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ewis .chip { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--slate); }
.ewis .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ewis-zone { display: grid; gap: 2px; }
.ewis-h { font-size: 14px; margin-top: 6px; }
.ewis .area { cursor: pointer; }
.ewis .plan { max-width: 520px; }
.ewis .list { display: grid; gap: 6px; }
.erow { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(21, 25, 27, 0.08); font-size: 13.5px; font-weight: 500; }
.erow small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.ebtns { display: flex; gap: 4px; flex-shrink: 0; }
.mini { border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 9px; font-size: 12px; font-weight: 600; color: var(--slate); }
.mini.pass.on { background: var(--pass-bg); border-color: var(--green); color: var(--green); }
.mini.fail.on { background: var(--fail-bg); border-color: var(--crimson); color: var(--crimson); }
.mini.na.on { background: var(--na-bg); border-color: var(--slate); }
.ewis .feed { background: #fff; border-radius: 14px; padding: 14px; display: grid; gap: 8px; box-shadow: 0 1px 2px rgba(21, 25, 27, 0.08); }
.ewis .feed .row { display: flex; justify-content: space-between; align-items: center; }
.ewis .pl { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; background: #15191b; color: #8b9590; padding: 7px 9px; border-radius: 6px; }
.ewis .pl.new { color: #b9c6ff; outline: 1.5px solid var(--orange); }
.ewis .dev { display: grid; grid-template-columns: 58px 1fr auto; gap: 8px; align-items: center; text-align: left; background: #fff; border: 0; border-radius: 12px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(21, 25, 27, 0.08); }
.ewis .da { font-weight: 700; color: var(--navy); font-size: 13px; }
.ewis .dd { font-size: 13px; font-weight: 500; }
.ewis .dd small { display: block; color: var(--muted); font-weight: 400; font-size: 11.5px; }
.lock { background: var(--navy); color: #fff; border-radius: 14px; padding: 20px 18px; display: grid; gap: 6px; text-align: center; font-size: 14px; }
.lock strong { font-size: 19px; }
.lock-i { font-size: 34px; line-height: 1; }
.card.locked { border: 2px dashed var(--crimson); }
.regp { border-left: 4px solid var(--crimson); }
.guide { display: grid; gap: 8px; font-size: 14px; }
.guide-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.guide h4 { margin: 8px 0 0; font-size: 14px; color: var(--navy); }
.guide ol, .guide ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.gunk { background: var(--tint); border-radius: 8px; padding: 8px 10px; color: var(--slate); }
.guide-link { font-size: 13px; font-weight: 600; }
details summary { cursor: pointer; padding: 6px 0; }
details[open] summary { margin-bottom: 8px; }
select[data-ptype] { font-size: 15px; }
.sheet { gap: 14px; padding-top: 10px; }
.sheet-grip { width: 40px; height: 4px; border-radius: 99px; background: #d4d9d5; margin: 0 auto 2px; }
.sheet-addr { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.sheet-desc { font-size: 15px; font-weight: 500; margin-top: 3px; }
.sheet-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.sheet-x { border: 0; background: var(--tint); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--slate); flex-shrink: 0; }
.choice { padding: 20px 6px; font-size: 17px; border-radius: 14px; }
.sheet-save { width: 100%; font-size: 16px; padding: 15px; border-radius: 14px; }
.sheet-warn { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--slate); background: var(--warm); border-radius: 10px; padding: 9px 11px; }
.sheet-warn strong { color: var(--orange-ink); }
.sheet-more { border-top: 1px solid var(--line); padding-top: 10px; }
.sheet-more summary { font-size: 14px; font-weight: 600; color: var(--navy); padding: 2px 0; }
.sheet-more .hist { border-top: 0; padding-top: 4px; }
.link-btn { background: none; border: 0; padding: 6px 0 0; color: var(--crimson); font-weight: 600; font-size: 13px; text-align: left; }
@media (min-width: 700px) { .sheet-grip { display: none; } }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; align-items: center; }
.ph { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; background: var(--tint); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-add { height: 68px; padding: 0 16px; border-radius: 12px; border: 1.5px dashed #c2c9c4; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; background: #fff; }
.ph-add svg { width: 22px; height: 22px; }
.ph-add:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.ph-err { flex-basis: 100%; color: var(--crimson); font-weight: 500; font-size: 12.5px; }
.ph-view { position: fixed; inset: 0; z-index: 70; background: rgba(21, 25, 27, 0.94); display: grid; grid-template-rows: 1fr auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
.ph-view img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.ph-bar { display: flex; gap: 10px; justify-content: center; }
.ph-del { color: var(--crimson) !important; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.two input { font-size: 20px; font-weight: 600; height: 52px; }
.choices.two-up { grid-template-columns: 1fr 1fr; }
.choices.need .choice { border-color: var(--crimson); }
.sheet-hint { margin: 0; font-size: 13px; font-weight: 500; color: var(--crimson); background: var(--fail-bg); border-radius: 10px; padding: 9px 11px; }
.sheet-fine { margin: 0; font-size: 12.5px; color: var(--muted); }
.spin { cursor: pointer; }
.sure { background: var(--fail-bg); border-radius: 12px; padding: 12px; display: grid; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.sure > div { display: flex; gap: 8px; }
.sure .btn { flex: 1; min-height: 44px; font-size: 14px; }
.btn.danger { background: var(--crimson); color: #fff; }
.ph-bar { flex-wrap: wrap; }
.ph-bar .sure { flex: 1 1 100%; max-width: 420px; margin: 0 auto; }
[hidden] { display: none !important; }
.tick { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tick input { width: 22px; height: 22px; accent-color: var(--navy); }
.recs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recs .lbl { align-content: end; }
.chg { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; }
.chg + .chg { margin-top: 10px; }
.chg.done { background: var(--tint); border-color: transparent; }
.chg-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chg-top strong { color: var(--navy); font-size: 15px; }
.chg-what .was { text-decoration: line-through; color: var(--muted); }
.chg-what b { color: var(--navy); }
.chg-todo { color: var(--slate); font-size: 13px; }
.chg-meta { color: var(--muted); font-size: 12.5px; }
.chg .btn.small { justify-self: start; margin-top: 2px; }
.chg-none { margin: 0; color: var(--muted); font-size: 13.5px; }
.sheet-hint.flag { color: var(--orange-ink); background: var(--warm); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.vrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; text-align: left; background: #fff; border: 0; width: 100%; padding: 12px 14px; }
.vrow .dd strong { display: block; color: var(--navy); }
.vlink { text-decoration: none; color: inherit; }
.sched .list > * + * { border-top: 1px solid #eef1ee; }
.sched-set { display: grid; gap: 10px; }
table.mx { font-size: 12px; } table.mx th { white-space: normal; min-width: 84px; } table.mx td { white-space: nowrap; }
table.mx tr.cur td { background: var(--warm); }
.mxc { font-weight: 600; color: var(--slate); } .mxc.pass { color: var(--green); background: var(--pass-bg); } .mxc.fail { color: var(--crimson); background: var(--fail-bg); }
.causes { display: flex; flex-wrap: wrap; gap: 6px; }
.causes button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 7px 12px; font-weight: 600; font-size: 13px; color: var(--slate); min-height: 36px; text-align: left; }
.causes button i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 2px; }
.causes button.on { background: var(--navy); border-color: var(--navy); color: #fff; } .causes button.on i { color: #c2c9c4; }
.erow.wrapr { flex-wrap: wrap; } .erow.wrapr > span:first-child { flex: 1 1 100%; font-size: 14.5px; }
.erow.wrapr .want { display: inline-block; background: var(--navy); color: #fff; font-size: 11.5px; letter-spacing: 0.4px; padding: 2px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.erow.wrapr small:empty { display: none; }
.mxedit { display: grid; gap: 12px; }
.mxedit select { border: 1.5px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; font-weight: 600; font-size: 14px; min-height: 40px; }
.mxedit .rename input { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; font-weight: 400; }
.bval { font-weight: 700; color: var(--navy); font-size: 14px; white-space: nowrap; align-self: center; margin-right: 4px; }
.nc { color: var(--crimson); font-weight: 600; }
.sure .prop { font-weight: 500; font-size: 13.5px; } .sure .prop .was { text-decoration: line-through; color: var(--muted); }
.erow.wrapr .ebtns:has(.bval) { width: 100%; justify-content: space-between; align-items: center; }
.erow.wrapr .bval { white-space: normal; font-size: 15px; }
.erow:has(.sure) { flex-wrap: wrap; }
.erow:has(.sure) > span:first-child { flex: 1 1 100%; }
.erow:has(.sure) .ebtns { width: 100%; flex-wrap: wrap; }
.ebtns .sure { flex: 1 1 100%; width: 100%; white-space: normal; }
.sure > span { white-space: normal; overflow-wrap: anywhere; }
.casecard { display: grid; gap: 3px; background: var(--navy); color: #d4d9d5; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; }
.casecard strong { color: #fff; font-size: 14px; } .casecard b { color: var(--orange); }

/* arriving at a panel: QR label, location, protocol */
.astep { background: #fff; border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 10px; }
.astep.off { opacity: 0.5; }
.astep header { display: flex; align-items: center; gap: 10px; }
.astep h3 { margin: 0; font-size: 16px; color: var(--navy); }
.astep p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.astep p.sub { font-size: 13px; color: var(--muted); }
.astep p.bad { color: var(--crimson); }
.astep .btn small { font-weight: 500; opacity: 0.7; font-size: 12px; }
.st-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #eceef5; color: var(--navy); flex-shrink: 0; }
.st-n.ok { background: var(--green); color: #fff; } .st-n.bad { background: var(--crimson); color: #fff; }
.arow { display: flex; gap: 8px; flex-wrap: wrap; }
.linkb { background: none; border: 0; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-align: left; justify-self: start; }
.demo-gps { display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.demo-gps > span { font-size: 12.5px; color: var(--muted); }
.demo-gps .seg { display: flex; width: 100%; } .demo-gps .seg button { flex: 1; font-size: 13px; padding: 8px 4px; }
.arrive .cta { width: 100%; margin-top: 4px; }
.qrcard { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.qrlabel { width: 190px; border: 1.5px solid var(--navy); border-radius: 10px; padding: 10px; display: grid; gap: 2px; text-align: center; background: #fff; }
.qrlabel .qr { width: 100%; height: auto; display: block; }
.qrlabel strong { font-size: 17px; letter-spacing: 0.04em; color: var(--navy); } .qrlabel span { font-size: 12px; color: var(--muted); }
.qrfacts { margin: 0; display: grid; gap: 9px; flex: 1; min-width: 240px; }
.qrfacts dt { font-size: 12px; color: var(--muted); } .qrfacts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.askbox { display: grid; gap: 10px; margin-bottom: 14px; }
.reglabel { display: grid; gap: 6px; background: var(--tint); border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px 14px; }
.reglabel strong { color: var(--navy); font-size: 15px; } .reglabel span { font-size: 13.5px; line-height: 1.45; } .reglabel .btn { justify-self: start; margin-top: 4px; } .reglabel .btn small { font-weight: 500; opacity: 0.7; }
.reglabel.done { border-style: solid; border-color: var(--green); background: var(--pass-bg); } .reglabel.need { border-color: var(--crimson); }
.pill.seen { background: var(--warm); color: var(--orange-ink); }
.spot { display: grid; gap: 8px; } .spotplan { cursor: crosshair; touch-action: manipulation; } .spotplan svg { pointer-events: none; }
.spotpin { position: absolute; width: 22px; height: 22px; margin: -22px 0 0 -11px; background: var(--crimson); border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); pointer-events: none; }
.spot .loop-pick { display: flex; gap: 6px; flex-wrap: wrap; } .spot .loop-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--slate); } .spot .loop-pick button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.erow input[type="date"] { border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; background: #fff; color: var(--navy); min-height: 40px; }
.arrive .btn.ghost.cta { margin-top: 8px; }

/* ---- TestHut brand ---- */
.th-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-stretch: 112%; font-size: 20px; letter-spacing: -0.4px; color: inherit; text-decoration: none; line-height: 1; }
.th-logo i { width: 24px; height: 24px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 11 12 2.5 21.5 11v10.5h-19z' fill='%233355ff' stroke='%233355ff' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M7.6 14.6l3 3 5.6-6.4' stroke='%23fff' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn { border-radius: 6px; } .btn.small { border-radius: 5px; }
.pill { border-radius: 4px; }
.bar > i { background: var(--ink); }
.demo-tag { background: var(--ink); color: #fff; border-radius: 4px; }
