:root{
  --bg:#eceeeb; --surface:#ffffff; --sunk:#e1e5e1; --line:#cdd3ce; --fg:#18201c; --muted:#59645e;
  --ink:#1d4a40; --ink-fg:#ffffff; --ink-soft:#d7e6e1;
  --water:#1f6fd1; --elec:#b97c00; --drain:#7b5e45; --gas:#cc3434; --ac:#0d8a81;
  --ok:#2e7d32; --warn:#a85f00; --danger:#b3261e; --overlay:rgba(12,18,16,.55);
  --f-display:"Secular One","IBM Plex Sans Hebrew",system-ui,sans-serif;
  --f-body:"IBM Plex Sans Hebrew",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  --f-num:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --r:12px; color-scheme:light;
}
@media (prefers-color-scheme: dark){:root{
  --bg:#111513; --surface:#191e1b; --sunk:#222825; --line:#323a36; --fg:#e6ebe8; --muted:#97a19c;
  --ink:#7cc4b2; --ink-fg:#0c1210; --ink-soft:#21362f;
  --water:#62a6f2; --elec:#e6b23c; --drain:#bf9d80; --gas:#f07070; --ac:#43c9bd;
  --ok:#6cc070; --warn:#e3a24a; --danger:#f2867e; --overlay:rgba(0,0,0,.7); color-scheme:dark}}

*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.5;padding-top:env(safe-area-inset-top,0px)}
img{max-width:100%}
[hidden]{display:none!important}
button{font:inherit;color:inherit;cursor:pointer}
a{color:var(--ink)}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.num{font-family:var(--f-num);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.app{max-width:480px;margin-inline:auto;padding-inline:16px;padding-block:10px 120px;display:flex;flex-direction:column;gap:16px}
.loading{padding:40px 0;text-align:center;color:var(--muted)}

.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-block:6px}
.brand{font-family:var(--f-display);font-size:22px;line-height:1;display:flex;align-items:center;gap:8px}
.brand svg{flex:none}

h1,h2,h3{margin:0;text-wrap:balance}
h1{font-family:var(--f-display);font-weight:400;font-size:26px;line-height:1.15}
h2{font-size:17px;font-weight:700}
h3{font-size:15px;font-weight:600}
p{margin:0}
.sub{color:var(--muted);font-size:14px}
.eyebrow{font-size:12px;font-weight:600;letter-spacing:.04em;color:var(--muted)}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.list{display:flex;flex-direction:column;gap:10px}
.row{display:flex;align-items:center;gap:10px;min-width:0}
.grow{flex:1;min-width:0}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;background:var(--sunk);white-space:nowrap}
.pill.live{background:var(--ink-soft);color:var(--ink)}
.pill.done{color:var(--muted)}
.pill.warn{border:0;background:color-mix(in srgb,var(--warn) 18%,transparent);color:var(--warn);cursor:pointer}
.thumbs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.thumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;display:block}
.savebar{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom,0px));background:var(--bg);padding-block:8px 4px}
.upload{flex-direction:column;gap:2px}
.upload .sub{font-weight:400;font-size:12px}
.mic{flex:none;width:44px;height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}
.mic.rec{background:var(--danger);color:#fff;border-color:var(--danger);animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.6}}
.trade{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}
.trade i{width:10px;height:10px;border-radius:3px;background:var(--c)}
.btn{border:0;border-radius:10px;padding:12px 16px;font-weight:600;background:var(--ink);color:var(--ink-fg);display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.btn.ghost{background:var(--sunk);color:var(--fg)}
.btn.danger{background:var(--danger);color:#fff}
.btn.block{width:100%}
.btn.sm{padding:8px 12px;font-size:14px}
.btn:disabled{opacity:.45;cursor:default}
.linkbtn{border:0;background:none;color:var(--ink);font-weight:600;padding:4px 0}
.iconbtn{border:0;background:none;color:var(--muted);padding:6px;border-radius:8px;display:grid;place-items:center}

.proj{display:flex;flex-direction:column;gap:10px;text-align:start;width:100%}
.stats{display:flex;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.stats b{color:var(--fg);font-family:var(--f-num);font-weight:500}

.back{border:0;background:var(--sunk);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs button{border:0;background:none;padding:10px 12px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--fg);border-color:var(--ink)}

.rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.roomtile{border:2px solid var(--line);background:var(--surface);border-radius:10px;padding:10px 12px;text-align:start;display:flex;flex-direction:column;gap:4px;min-height:74px}
.roomtile.sel{border-color:var(--ink);background:var(--ink-soft)}
.roomtile.empty{border-style:dashed;background:transparent}
.roomtile .cnt{font-size:12px;color:var(--muted)}
.dots{display:flex;gap:4px}
.dots i{width:9px;height:9px;border-radius:2px;background:var(--c)}
.roomtile.add{align-items:center;justify-content:center;color:var(--ink);font-weight:600;border-style:dashed;background:transparent}
.legend{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted)}

.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.shot{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden;padding:0;text-align:start;display:flex;flex-direction:column}
.shot img,.shot .ph{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--sunk)}
.frame{position:relative}
.frame .marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.shot .meta{padding:8px 10px;display:flex;flex-direction:column;gap:3px}
.shot .meas{font-size:12px;color:var(--muted)}
.empty-room{border:1px dashed var(--line);border-radius:10px;padding:16px;color:var(--muted);font-size:14px}

.item{display:flex;flex-direction:column;gap:6px}
.bar{height:6px;border-radius:3px;background:var(--sunk);overflow:hidden}
.bar span{display:block;height:100%;background:var(--ink)}
.kv{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);flex-wrap:wrap}

.check{display:flex;gap:10px;align-items:flex-start}
.check .mk{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:13px;font-weight:700;color:var(--surface)}
.check .mk.ok{background:var(--ok)}
.check .mk.no{background:var(--warn)}

.field{display:flex;flex-direction:column;gap:6px}
.field label,.flabel{font-size:13px;font-weight:600;color:var(--muted)}
input[type=text],input[type=email],input[type=tel],input[type=url],input[type=number],input[type=date],select,textarea{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%;min-width:0}
input[type=email],input[type=tel],input[type=url]{direction:ltr;text-align:right}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 12px;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:6px}
.chip[aria-pressed="true"]{border-color:var(--ink);background:var(--ink-soft);color:var(--ink)}
.chip i{width:10px;height:10px;border-radius:3px;background:var(--c)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.err{color:var(--danger);font-size:14px}

.fab{position:fixed;inset-inline:0;bottom:0;padding:12px 16px calc(14px + env(safe-area-inset-bottom,0px));background:linear-gradient(to top,var(--bg) 60%,transparent);display:flex;justify-content:center;z-index:5}
.fab .btn{max-width:448px;width:100%;padding:15px;font-size:16px;box-shadow:0 6px 20px rgba(0,0,0,.18)}

.modal{position:fixed;inset:0;background:var(--overlay);z-index:20;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:480px;max-height:94%;overflow:auto;border-radius:18px 18px 0 0;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:14px}
.grab{width:40px;height:4px;border-radius:2px;background:var(--line);margin-inline:auto}
.preview{position:relative;border-radius:10px;overflow:hidden;background:var(--sunk)}
.preview img{display:block;width:100%;max-height:60vh;object-fit:contain;background:#000}
.preview .ph{aspect-ratio:4/3;display:grid;place-items:center;color:var(--muted)}
.stamp{position:absolute;inset-inline-start:8px;bottom:8px;background:rgba(10,14,12,.72);color:#fff;font-size:12px;padding:4px 8px;border-radius:6px;display:flex;flex-direction:column;gap:1px}
.timer{font-family:var(--f-num);font-size:13px;color:var(--muted)}
.upload{position:relative;border:1px dashed var(--line);border-radius:10px;padding:14px;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--surface);font-weight:600;cursor:pointer}
.upload input{position:absolute;opacity:0;width:1px;height:1px}

.drill ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.drill li{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}

.hero-client{background:var(--ink);color:var(--ink-fg);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:6px}
.hero-client .sub,.hero-client .eyebrow{color:inherit;opacity:.8}
.contractor{display:flex;gap:12px;align-items:center}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--ink-soft);color:var(--ink);display:grid;place-items:center;font-family:var(--f-display);font-size:18px;flex:none}
.copyrow{display:flex;gap:8px;align-items:center}
.copyrow code{flex:1;min-width:0;overflow-wrap:anywhere;background:var(--sunk);border-radius:8px;padding:8px 10px;font-family:var(--f-num);font-size:12px;direction:ltr;text-align:left}
.confirm{display:flex;flex-direction:column;gap:10px;background:var(--sunk);border-radius:10px;padding:12px}
.login-hero{display:flex;flex-direction:column;gap:10px;padding-top:24px}
.login-hero h1{font-size:32px}
.feat{display:flex;flex-direction:column;gap:8px;padding:0;margin:0;list-style:none}
.feat li{display:flex;gap:10px;align-items:baseline}
.feat li::before{content:"";width:8px;height:8px;border-radius:2px;background:var(--c,var(--ink));flex:none;transform:translateY(-1px)}

.toast{position:fixed;inset-inline:16px;bottom:calc(90px + env(safe-area-inset-bottom,0px));margin-inline:auto;max-width:448px;background:var(--fg);color:var(--bg);padding:12px 14px;border-radius:10px;font-weight:600;z-index:40;text-align:center}
.anno{position:fixed;inset:0;z-index:30;background:#0d1110;color:#f1f4f2;display:flex;flex-direction:column;gap:10px;padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(12px + env(safe-area-inset-bottom,0px))}
.anno .chip{background:#1b211e;border-color:#39433e;color:#f1f4f2}
.anno .chip[aria-pressed="true"]{background:#f1f4f2;color:#0d1110;border-color:#f1f4f2}
.anno .btn.ghost{background:#252c29;color:#f1f4f2}
.anno-bar{display:flex;flex-direction:column;gap:8px;max-width:720px;width:100%;margin-inline:auto}
.seg{display:flex;background:#252c29;border-radius:999px;padding:3px}
.seg button{border:0;background:transparent;color:#aab4ae;padding:6px 12px;border-radius:999px;font-size:14px;font-weight:600}
.seg button[aria-pressed="true"]{background:#f1f4f2;color:#0d1110}
.anno-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
.anno-frame{position:relative;display:inline-block;max-width:100%;max-height:100%}
.anno-frame img{display:block;max-width:100%;max-height:calc(100dvh - 230px);user-select:none;-webkit-user-drag:none}
.anno-frame canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}
.anno-hint{text-align:center;font-size:13px;color:#aab4ae}
.anno-foot{display:grid;grid-template-columns:2fr 1fr;gap:10px;max-width:720px;width:100%;margin-inline:auto}
.cmp{position:relative;width:100%;aspect-ratio:var(--ar,4/3);max-height:62vh;overflow:hidden;border-radius:10px;background:#000;touch-action:pan-y}
.cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cmp-before{position:absolute;inset:0;clip-path:inset(0 0 0 calc(100% - var(--pos)))}
.cmp-before .marks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.cmp-line{position:absolute;top:0;bottom:0;left:calc(100% - var(--pos));width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 6px rgba(0,0,0,.5);pointer-events:none}
.cmp-line span{position:absolute;top:50%;left:50%;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.cmp-line span::before{content:"‹ ›";position:absolute;inset:0;display:grid;place-items:center;color:#1d4a40;font-weight:700;font-size:15px}
.cmp-tag{position:absolute;top:8px;background:rgba(10,14,12,.72);color:#fff;font-size:12px;padding:3px 8px;border-radius:6px;pointer-events:none}
.cmp-tag.b{right:8px}.cmp-tag.a{left:8px}
.cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}
textarea{font:inherit;color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 12px;width:100%;min-width:0;resize:vertical}
.req p{white-space:pre-wrap;overflow-wrap:anywhere}
.req.handled{opacity:.75}
.req-photo{display:block;width:100%;max-height:260px;object-fit:cover;border-radius:10px}
.filt{margin-block:2px}
.hero-logo{height:44px;max-width:170px;object-fit:contain;background:#fff;border-radius:8px;padding:4px 6px;align-self:flex-start}
img.avatar.logo{object-fit:contain;background:#fff;border:1px solid var(--line);padding:3px}
.logo-prev{width:72px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#fff;flex:none}
.logo-prev.ph{display:grid;place-items:center;font-size:12px;color:#59645e}
label.linkbtn{cursor:pointer}
.demo-card{border-style:dashed;background:transparent}
.crew-note{background:var(--ink-soft);border-color:transparent;color:var(--ink);font-weight:600;font-size:14px}
.foot{text-align:center;color:var(--muted);font-size:12px;padding-top:8px}
@media (prefers-reduced-motion:no-preference){
  .modal.fresh .sheet{animation:up .22s ease-out}
  @keyframes up{from{transform:translateY(24px);opacity:.6}to{transform:none;opacity:1}}
}

#printdoc{display:none}

/* dashboard */
.dash{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:10px 12px;display:flex;flex-direction:column;gap:2px;min-width:0}
.kpi b{font-size:18px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kpi span{font-size:12px;color:var(--muted)}
.kpi.hot{border-color:var(--warn)} .kpi.hot b{color:var(--warn)}
.lead{border-top:1px solid var(--line);padding-top:10px}
/* floor plan */
.plan{position:relative;aspect-ratio:var(--ar);background:var(--sunk);border-radius:8px;overflow:hidden;touch-action:manipulation}
.plan img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.plan.pick{cursor:crosshair;outline:2px dashed var(--ink);outline-offset:-2px}
.pin{position:absolute;width:22px;height:22px;margin:-11px 0 0 -11px;border-radius:50%;background:var(--c);border:3px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.45);padding:0}
.plan.pick .pin{pointer-events:none}
.planadd{display:flex;flex-direction:column;gap:2px;cursor:pointer;border-style:dashed}
.planbox summary{list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer}
.planbox summary::-webkit-details-marker{display:none}
.planbox summary::after{content:"▾";color:var(--muted)} .planbox[open] summary::after{content:"▴"}
/* handover */
.sigpad{position:relative;height:160px;border:1.5px dashed var(--line);border-radius:10px;background:#fff}
.sigpad canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;border-radius:10px}
.sig-hint{position:absolute;inset:auto 0 12px;text-align:center;color:#9aa39e;pointer-events:none;font-size:14px}
.sigpad.signed .sig-hint{display:none}
.sig-clear{position:absolute;top:6px;left:8px;font-size:13px}
.sig-box{display:flex;flex-direction:column;gap:4px}
.sig-box img{max-height:90px;width:auto;align-self:flex-start;background:#fff;border-radius:6px;padding:4px;border:1px solid var(--line)}
.check-inline{display:flex;gap:8px;align-items:flex-start;font-size:14px}
.check-inline input{margin-top:3px;width:18px;height:18px;flex:none}
.defects{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.defects li{display:flex;align-items:center;gap:8px}
.defects li input{width:20px;height:20px;flex:none}
.defects li.done .grow{text-decoration:line-through;color:var(--muted)}
.defects .mk{flex:none}
/* quotes */
.qline{display:grid;grid-template-columns:1fr 56px 84px auto;gap:6px;align-items:center;margin-bottom:6px}
.qline input{min-width:0}
.qsum{display:flex;flex-direction:column;gap:4px}
.quote-row{border:1px solid var(--line);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:4px}
.qtable{width:100%;border-collapse:collapse;font-size:14px}
.qtable th,.qtable td{text-align:right;padding:6px 4px;border-bottom:1px solid var(--line)}
.qtable th{font-size:12px;color:var(--muted);font-weight:600}
.kv.total{font-size:17px;border-top:2px solid var(--fg);padding-top:6px}
/* photo proof */
.proof code{font-family:var(--f-num);font-size:12px}
.verify{font-weight:600;font-size:14px}.verify.ok{color:var(--ok)}.verify.bad{color:var(--danger)}
.legal{gap:14px;font-size:13px}

/* project files */
.files{gap:0;padding-block:4px}
.file{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.file:last-child{border-bottom:0}
.fmeta{min-width:0}.fmeta a{font-weight:600;color:var(--fg);text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fbadge{flex:none;width:42px;height:42px;border-radius:8px;display:grid;place-items:center;font:600 11px var(--f-num);color:#fff;background:var(--muted)}
.fbadge.pdf{background:var(--gas)}.fbadge.doc{background:var(--water)}.fbadge.xls{background:var(--ok)}.fbadge.cad{background:var(--drain)}.fbadge.img{background:var(--ac)}
.pdfpages{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:60vh;overflow:auto}
.pdfpage{border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:4px;display:flex;flex-direction:column;gap:4px;align-items:center}
.pdfpage img,.pdfpage .ph{width:100%;aspect-ratio:3/4;object-fit:contain;background:#fff;border-radius:4px;display:grid;place-items:center;font-size:12px;color:var(--muted)}
.views{font-size:14px}.views b{font-size:16px}.views.none{color:var(--muted)}
.push-card{border-color:var(--ink);background:var(--ink-soft)}
.seg.capmode{background:var(--sunk)}.seg.capmode button{color:var(--muted);flex:1}.seg.capmode button[aria-pressed="true"]{background:var(--surface);color:var(--fg);box-shadow:0 1px 2px rgba(0,0,0,.12)}
.thumbs{max-height:180px;overflow-y:auto}
.thumbs img.cur{outline:3px solid var(--ink);outline-offset:-3px}
.plantabs{margin-bottom:2px}.plantabs .num{opacity:.7;font-size:12px}
.pdfpage[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink);background:var(--ink-soft)}
.embed .app{padding-block:8px 24px}.embed .foot{display:none}
.cobrand{font-family:var(--f-body);font-size:11px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:2px 6px;margin-inline-start:4px;align-self:center}
.roomtile .cnt.ok{color:var(--ok)}.roomtile .cnt.miss{color:var(--warn)}
.close-soon{font-size:12px;font-weight:700;color:#fff;background:var(--warn);border-radius:6px;padding:1px 6px;align-self:flex-start}
.checklist .chip.need{cursor:default;border-style:dashed}.checklist .chip.need.ok{border-style:solid;background:var(--ink-soft)}
.checklist .chip.need b{margin-inline-start:2px}
.expgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.expf{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:600}
.expf span{display:flex;align-items:center;gap:6px}.expf span i{width:10px;height:10px;border-radius:3px;background:var(--c)}
.pending-plan{border-color:var(--warn)}
.closing{border-color:var(--warn)}.closing .lead{width:100%;background:none;border:0;border-top:1px solid var(--line);padding:10px 0 0;text-align:inherit;font:inherit;color:inherit}
@media print{
  @page{margin:14mm}
  body{background:#fff;color:#000;padding:0}
  #app,#modal,#toast,#anno,.fab{display:none!important}
  #printdoc{display:block;font-family:var(--f-body);font-size:11pt;color:#000}
  #printdoc .sub{color:#444}
  .pd-head{border-bottom:2px solid #1d4a40;padding-bottom:8px;margin-bottom:12px}
  .pd-logo{height:16mm;max-width:50mm;object-fit:contain}
  .pd-head h1{font-family:var(--f-display);font-weight:400;font-size:22pt;margin:6px 0 2px}
  .pd-room h2{font-size:14pt;margin:14px 0 6px;color:#1d4a40;break-after:avoid}
  .pd-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .pd-grid figure{margin:0;break-inside:avoid;border:1px solid #ccc;border-radius:6px;overflow:hidden}
  .pd-grid img{display:block;width:100%;max-height:70mm;object-fit:contain;background:#eee}
  .pd-grid figcaption{padding:6px 8px;font-size:9.5pt;line-height:1.4}
  #printdoc table{width:100%;border-collapse:collapse;font-size:10pt}
  #printdoc th,#printdoc td{border-bottom:1px solid #ccc;padding:4px 6px;text-align:right}
  #printdoc .frame .marks{position:absolute;inset:0;width:100%;height:100%}
  .pd-sig img{max-height:30mm;display:block}
  .pd-protocol p{margin:4px 0}
  #printdoc .plan{max-height:120mm;break-inside:avoid}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
