.checklist-picker,.checklist-template-preview{box-sizing:border-box;background:var(--surface);color:var(--ink);border:0;border-radius:4px;padding:24px;width:min(688px,calc(100vw - 40px));max-width:none;height:calc(100dvh - 64px);max-height:900px;overflow:hidden}.checklist-picker[open]{display:flex;flex-direction:column;gap:16px}.checklist-picker h1{font-size:26px;line-height:32px;font-weight:400;margin:0 0 2px}.checklist-picker-search{display:flex;align-items:center;gap:10px;border:1px solid var(--edge);border-radius:7px;padding:0 12px;min-height:42px}.checklist-picker-search input{border:0;background:transparent;box-shadow:none;flex:1;width:0;min-height:40px;padding:0;font-size:16px}.checklist-picker-search>span{font-size:26px;color:var(--secondary)}.checklist-picker-search button{border:0;background:transparent;min-width:28px;min-height:32px;padding:0;font-size:24px;color:var(--secondary)}.checklist-picker-body{flex:1;overflow:auto;min-height:0}.picker-select-all{display:flex;align-items:center;gap:10px;margin:0 0 16px;font-size:16px}.checklist-picker input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary);margin:0;flex:none}.picker-rows{display:grid;gap:12px}.picker-template{display:flex;align-items:center;border:1px solid var(--divider);border-radius:8px;min-height:88px;padding:16px;gap:16px}.picker-template label{display:flex;align-items:center;gap:16px;flex:1;cursor:pointer;min-width:0}.picker-template strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}.picker-template small{display:block;margin-top:6px;font-size:14px;color:var(--secondary)}.picker-template button{border:0;background:transparent;min-width:40px;min-height:40px;padding:8px;color:var(--secondary)}.picker-template svg{width:24px;height:24px;stroke:currentColor;stroke-width:1.7;fill:none}.picker-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:20px 0;font-size:14px}.picker-pagination button,.checklist-preview-section button{border:0;background:transparent;font-size:24px;min-width:32px;padding:4px}.picker-empty{padding:40px 0;text-align:center;color:var(--secondary)}.checklist-picker footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}.checklist-picker footer>div{display:flex;gap:8px}.checklist-picker footer>span{color:var(--secondary)}.checklist-picker footer button,.checklist-template-preview header button{border-radius:22px;min-height:36px;font-size:14px;padding:7px 16px}.picker-error{border:1px solid currentColor;padding:12px;color:#b42318;border-radius:4px}.picker-discard{position:absolute;inset:30% 24px auto;padding:24px;background:var(--surface);box-shadow:0 0 0 100vmax #0007;border:1px solid var(--divider);z-index:2}.picker-discard button{margin-right:10px}.checklist-template-preview{width:min(600px,calc(100vw - 64px));height:auto;max-height:calc(100dvh - 96px);padding:0;overflow:auto}.checklist-preview-notice{padding:16px 24px;background:#fff4d1;color:#574409;font-size:14px;line-height:1.5}.checklist-template-preview header{display:flex;justify-content:space-between;padding:18px 24px;gap:16px}.checklist-template-preview h2{font-size:24px;font-weight:400;margin:0;padding:8px 24px 24px}.checklist-preview-section{display:flex;align-items:center;gap:12px;padding:16px 24px;background:var(--canvas);border-block:1px solid var(--divider)}.checklist-preview-section h3{margin:0;font-size:20px;font-weight:400;flex:1}.checklist-preview-section span{font-size:14px;color:var(--secondary)}.checklist-preview-fields{padding:0 24px}.checklist-preview-fields section{padding:20px 0;border-bottom:1px solid var(--divider)}.checklist-preview-fields h4{font-size:16px;font-weight:500;margin:0 0 16px}.checklist-preview-fields h4 span{color:#c12830}.checklist-preview-answer{display:flex;gap:8px;flex-wrap:wrap}.preview-pill{padding:8px 14px;border:1px solid var(--edge);border-radius:20px;font-size:14px}.preview-placeholder{border:1px solid var(--edge);border-radius:4px;display:block;padding:12px;width:100%;color:var(--secondary)}.record-checklist-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}.record-checklist-heading h2{margin:0}.record-checklist-heading button{border:0;background:transparent;color:var(--primary);font-size:24px;min-width:40px;padding:4px}.checklist-picker::backdrop,.checklist-template-preview::backdrop{background:#0007}[data-theme=dark] .picker-error{color:#ffb4ab}@media(max-width:700px){.checklist-picker{padding:18px}.checklist-picker footer{flex-wrap:wrap}.checklist-preview-section{gap:8px;padding:12px}.checklist-preview-section h3{font-size:17px}.checklist-picker footer>div{margin-left:auto}}

/* Exact HCP nested preview: notice/actions share one row; answers sit beside labels. */
.checklist-template-preview header.checklist-preview-notice{background:#fff2c6;color:#574409;display:flex;align-items:flex-start;gap:8px;padding:14px 16px;border:0}.checklist-preview-notice>span{font-size:21px}.checklist-preview-notice p{font-size:13px;line-height:20px;margin:0;flex:1}.checklist-template-preview header.checklist-preview-notice button{white-space:nowrap;background:transparent;color:#403a2a;border:1px solid #625936;padding:7px 14px;font-weight:400;font-size:13px}.checklist-template-preview h2{font-size:22px;padding:20px 24px 24px}.checklist-preview-section{background:transparent;border:0;padding:16px 24px 30px}.checklist-preview-section h3{font-size:18px;font-weight:500}.checklist-preview-fields section{display:grid;grid-template-columns:minmax(0,1fr) 225px 24px;gap:16px;align-items:center;padding:24px 0;min-height:88px;box-sizing:border-box;border-top:1px solid var(--divider);border-bottom:0}.checklist-preview-fields h4{font-size:16px;font-weight:400;line-height:1.5;margin:0}.preview-pill{color:var(--primary);border-color:var(--primary);padding:7px 13px;font-size:13px}.preview-pill>span{font-size:22px;line-height:12px;vertical-align:-2px}.preview-comment{font-size:22px;color:var(--secondary)}.checklist-preview-answer{align-items:center}.checklist-template-preview{height:calc(100dvh - 96px)}@media(max-width:650px){.checklist-template-preview header.checklist-preview-notice{flex-wrap:wrap}.checklist-preview-notice p{min-width:80%}.checklist-preview-fields section{grid-template-columns:1fr 1fr 20px;gap:10px}.checklist-preview-fields{padding:0 16px}}
.checklist-template-preview .checklist-preview-notice p{color:#574409!important}.checklist-template-preview .checklist-preview-section button,.checklist-picker .picker-pagination button{font-size:24px!important;font-weight:400!important}.checklist-picker .checklist-picker-search button{font-size:24px!important}.record-checklist-heading button[data-admin=add-checklists]{font-size:26px!important}[data-theme=dark] .checklist-template-preview .preview-pill{color:#efb47a;border-color:#efb47a}[data-theme=dark] .checklist-preview-fields h4 span{color:#ff8f97}
