.lab-library{max-width:1060px;margin:0 auto 2.5rem 0}
.lab-search{max-width:36rem}
.lab-search label{display:block;font-weight:700;margin-bottom:6px}
.lab-searchbar{display:flex;align-items:center;background:white;border:1px solid #87999a;border-radius:12px;min-height:48px}
.lab-searchbar:focus-within{outline:2px solid #007a85;outline-offset:2px}
.lab-searchbar input{flex:1;min-width:0;background:transparent;color:var(--ink);font:inherit;padding:12px 14px;border:0}
.lab-searchbar input:focus-visible{outline:0}
.lab-searchbar input::-webkit-search-cancel-button{display:none}
.lab-clear,#lab-close{font:400 25px/1 system-ui;width:44px;height:44px;color:#234447;background:transparent;border:0;cursor:pointer}
.lab-count{color:#486062;font-size:14px;margin:12px 0}
.lab-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;border-top:1px solid #d5dedd}
.lab-card{min-width:0;border-bottom:1px solid #d5dedd}
.lab-open{height:100%;display:grid;grid-template-columns:56px minmax(0,1fr) 16px;align-items:center;gap:14px;padding:15px 6px;color:inherit;text-decoration:none}
.lab-open:hover{background:#f4f8f7}
.lab-open img{width:56px;height:78px;object-fit:contain;background:white;border:1px solid #d3dbd9;box-shadow:0 2px 3px #16282612}
.pf-main .lab-card h2{margin:0;font:750 clamp(17px,2vw,21px)/1.2 Nunito,sans-serif;overflow-wrap:break-word}
.lab-card p,.lab-card small{font-size:14px;line-height:1.35;color:#41585a}
.lab-card p{margin:4px 0 3px}.lab-card small{display:block}.lab-card i{font:400 25px/1 system-ui;color:#006875}
.lab-empty p{margin:12px 0}.lab-empty button,.lab-jump button{min-height:44px}
.lab-jump{margin:22px 0 0}.lab-jump summary{cursor:pointer;min-height:44px;font-weight:700;color:#006875}
.lab-jump form>div{display:flex;gap:10px;margin-top:8px}.lab-jump input{width:90px;min-height:44px;font:inherit;border:1px solid #87999a;border-radius:8px;padding:0 10px}
.lab-lock{overflow:hidden}
#lab-reader{position:fixed;inset:0;margin:auto;padding:0;width:min(760px,94vw);height:min(900px,92dvh);max-width:100%;max-height:100dvh;border:0;border-radius:16px;background:white;color:#14272a}
#lab-reader::backdrop{background:#102225c9}
.lab-shell{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.lab-shell header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px}
.lab-shell header h2{margin:0;font:750 20px/1.18 Nunito,sans-serif}
.lab-shell header p{margin:4px 0 0;font-size:14px;line-height:1.3;color:#486062}
#lab-close{flex:none;border-radius:50%;background:#eef2f1}
.lab-sheet{overflow:auto;overscroll-behavior:contain;background:#e7eceb;min-height:0;padding:8px;display:grid;justify-items:center;align-items:center}
.lab-sheet img{display:block;width:100%;height:100%;min-height:0;max-width:none;object-fit:contain}
.lab-sheet.zoomed{display:block}.lab-sheet.zoomed img{width:auto;height:auto;max-width:none;max-height:none;object-fit:initial}
.lab-tools,.lab-shell footer{display:flex;justify-content:center;align-items:center;gap:16px}
.lab-tools{border-bottom:1px solid #d7dfdd}
.lab-tools a,.lab-tools button,.lab-shell footer button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:6px 12px;color:#006875;font:700 15px/1.25 Nunito,sans-serif;background:transparent;border:0;cursor:pointer}
.lab-tools button[aria-pressed=true]{text-decoration:underline}
.lab-shell footer{padding:7px 12px max(7px,env(safe-area-inset-bottom));gap:20px;font-variant-numeric:tabular-nums}
.lab-shell footer button{border:1px solid #b6c5c4;border-radius:50%;font-size:20px;width:44px}
.lab-shell footer button:disabled{opacity:.35;cursor:default}
#lab-reader [hidden]{display:none}
@media(max-width:680px){
  .lab-list{grid-template-columns:1fr}
  .lab-open{padding:13px 2px;gap:12px}
  #lab-reader{width:100%;max-width:100%;height:100dvh;border-radius:0}
  .lab-shell header{padding:max(10px,env(safe-area-inset-top)) 12px 10px}
}
@media(max-height:500px){.lab-shell header{padding:4px 12px}.lab-shell header p{display:none}.lab-shell footer{padding:0 8px}}

.lab-serial,.lab-date{white-space:nowrap}.lab-date{display:block;color:#52686a}

/* Restore document typography and spacing inside the common Gutenberg wrapper. */
.mis-service--protocols .lab-library,
.mis-service--protocols .lab-shell { line-height: 1.55; }
.mis-service--protocols .lab-count { margin: 12px 0; }
.mis-service--protocols .lab-card p { margin: 4px 0 3px; }
.mis-service--protocols .lab-empty p { margin: 12px 0; }
.mis-service--protocols .lab-shell header p { margin: 4px 0 0; }
