.recurring-checklist-dialog{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:var(--canvas);color:var(--ink);overflow:auto}.recurring-checklist-dialog>header{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:16px;min-height:68px;padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--divider)}.recurring-checklist-dialog h1{font-size:24px;margin:0}.recurring-checklist-dialog>header>div{margin-left:auto;display:flex;gap:12px}.checklist-content{width:min(960px,calc(100% - 40px));margin:24px auto 60px;display:grid;gap:22px}.checklist-content .card{padding:22px;margin:0}.checklist-content label{display:flex;flex-direction:column;gap:7px;font-size:14px}.checklist-content input:not([type=radio]),.checklist-content textarea{width:100%;min-height:44px;box-sizing:border-box}.checklist-content fieldset{border:0;margin:0 0 20px;padding:0}.checklist-content fieldset label{flex-direction:row;align-items:center;padding:12px 0;gap:12px}.checklist-content p{line-height:1.5}.checklist-section-heading{display:flex;gap:18px;align-items:center;border-bottom:1px solid var(--divider);padding-bottom:20px}.checklist-section-heading>label{flex:1}.checklist-section-heading>div{display:flex;gap:8px}.recurring-checklist-item{display:grid;grid-template-columns:24px 1fr;gap:12px;padding:22px 0;border-bottom:1px solid var(--divider);margin-bottom:18px}.checklist-item-number{padding-top:28px;color:var(--secondary)}.checklist-item-actions{grid-column:2;display:flex;gap:10px;flex-wrap:wrap}.checklist-item-actions button{min-height:36px}.recurring-checklist-item p{margin:8px 0 0;color:var(--secondary);font-size:13px}.checklist-review-table{max-height:300px;overflow:auto;margin:16px 0}.checklist-review table{width:100%;border-collapse:collapse}.checklist-review th,.checklist-review td{padding:12px 10px;text-align:left;border-bottom:1px solid var(--divider)}.checklist-review details{padding:18px 0}.checklist-review li{margin:12px 0}.checklist-error{color:#b42318}.checklist-draft-guard{position:fixed;z-index:5;top:25%;left:50%;transform:translateX(-50%);width:min(500px,90vw);padding:24px;background:var(--surface);color:var(--ink);border:1px solid var(--divider);box-shadow:0 0 0 100vmax #0008;border-radius:8px}.checklist-draft-guard button{margin:10px 10px 0 0}[data-theme=dark] .checklist-error{color:#ffb4ab}@media(max-width:700px){.checklist-section-heading{flex-direction:column;align-items:stretch}.recurring-checklist-dialog>header{gap:10px;padding:10px}.recurring-checklist-dialog>header>span{display:none}.recurring-checklist-dialog h1{font-size:18px}.checklist-content{width:calc(100% - 24px)}}

/* HCP checklist parent: item type and Required remain inline. */
.recurring-checklist-item{grid-template-columns:24px minmax(0,1fr) 104px;gap:14px;padding:24px 0}.checklist-drag{align-self:center;color:var(--secondary);font-size:23px;cursor:grab}.checklist-item-main{display:grid;gap:12px;min-width:0}.checklist-item-type-row{display:flex;gap:16px;align-items:center}.checklist-item-type-row>label:first-child{width:230px;max-width:65%}.checklist-item-type-row select{min-height:44px}.checklist-content .checklist-required{display:flex;flex-direction:row;align-items:center;gap:9px;white-space:nowrap}.checklist-content .checklist-required input{appearance:none;width:40px;height:24px;min-height:24px;border:0;border-radius:14px;background:var(--edge);position:relative;margin:0;cursor:pointer}.checklist-required input:before{content:'';position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff}.checklist-content .checklist-required input:checked{background:var(--primary)}.checklist-required input:checked:before{transform:translateX(16px)}.checklist-item-actions{grid-column:3;grid-row:1;align-self:center;display:flex;gap:4px}.checklist-item-actions button{width:32px;min-width:32px;min-height:32px;padding:3px;font-size:19px}.checklist-section-heading>div button{width:40px;min-width:40px;padding:4px;font-size:20px}.checklist-item-options{display:flex;align-items:center;gap:14px;color:var(--secondary);font-size:13px}.checklist-photo-category{max-width:300px}.recurring-checklist-item[draggable=true]:active .checklist-drag{cursor:grabbing}@media(max-width:700px){.recurring-checklist-item{grid-template-columns:18px minmax(0,1fr);gap:8px}.checklist-item-actions{grid-column:2;grid-row:2}.checklist-item-type-row{flex-wrap:wrap}.checklist-item-type-row>label:first-child{max-width:100%;width:100%}}

.checklist-error:empty{display:none}.checklist-error:not(:empty){padding:14px 18px;margin:0;border:1px solid currentColor;background:var(--surface);border-radius:6px}
.scratch-checklist-dialog{inset:0;margin:auto;box-sizing:border-box;width:min(688px,calc(100vw - 40px));height:calc(100dvh - 64px);max-height:900px;border-radius:4px;background:var(--surface);overflow:hidden}.scratch-checklist-dialog[open]{display:flex;flex-direction:column}.scratch-checklist-dialog>h1{font-size:26px;line-height:32px;font-weight:400;margin:0;padding:20px 24px}.scratch-checklist-dialog .checklist-content{flex:1;overflow:auto;width:auto;min-height:0;margin:0;padding:0 24px 24px;display:block}.scratch-checklist-name{margin-bottom:24px}.scratch-checklist-dialog .checklist-content input:not([type=checkbox]){min-height:54px;border-radius:6px}.scratch-checklist-dialog .checklist-section-heading{border:0;padding-bottom:0}.scratch-checklist-dialog .checklist-section-heading>div{gap:4px}.scratch-checklist-dialog .recurring-checklist-section{padding:0;border:0;background:transparent;box-shadow:none}.scratch-checklist-dialog .recurring-checklist-item{grid-template-columns:24px minmax(0,1fr) 32px;margin:24px 0;padding:24px 0;border-top:1px solid var(--divider)}.scratch-checklist-dialog .checklist-item-type-row>label:first-child{width:150px}.scratch-checklist-dialog .checklist-item-actions{flex-direction:column}.scratch-checklist-dialog .checklist-item-actions button{font-size:20px!important}.scratch-checklist-dialog .checklist-section-heading>div button{font-size:20px!important;border:0;background:transparent}.scratch-checklist-dialog .scratch-add-actions{display:flex;gap:8px;margin-bottom:24px}.scratch-add-actions button{border-radius:20px;min-height:36px}.scratch-checklist-dialog>footer{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 24px;background:var(--surface)}.scratch-checklist-dialog>footer>label{display:flex;align-items:center;gap:10px;font-size:14px}.scratch-checklist-dialog>footer input{width:18px;height:18px;accent-color:var(--primary)}.scratch-checklist-dialog>footer>div{display:flex;gap:8px}.scratch-checklist-dialog>footer button{border-radius:20px;min-height:36px;white-space:nowrap}.checklist-picker .picker-scratch{border:0!important;background:transparent!important;color:var(--primary);padding:0!important;font-weight:400!important;font-size:14px!important;min-height:28px}.checklist-picker footer small{display:block;font-size:12px}[data-theme=dark] .checklist-picker .picker-scratch{color:#efb47a}@media(max-width:700px){.scratch-checklist-dialog>footer{flex-wrap:wrap}.scratch-checklist-dialog>footer>div{margin-left:auto}.scratch-checklist-dialog .checklist-section-heading{flex-direction:row}.scratch-checklist-dialog .recurring-checklist-item{grid-template-columns:18px minmax(0,1fr) 30px}.scratch-checklist-dialog .checklist-item-actions{grid-column:3;grid-row:1}}

.scratch-checklist-dialog .checklist-content label.scratch-floating{position:relative;display:block;margin-top:4px}.scratch-checklist-dialog .scratch-floating-label{position:absolute;top:-7px;left:11px;padding:0 4px;background:var(--surface);font-size:12px!important;font-weight:400;color:var(--secondary);z-index:1}.scratch-checklist-dialog .scratch-floating:has(input:placeholder-shown:not(:focus))>.scratch-floating-label{visibility:hidden}.scratch-checklist-dialog .checklist-content .scratch-floating input,.scratch-checklist-dialog .checklist-content .scratch-floating select{font-size:16px!important;width:100%;margin:0;min-height:54px}.scratch-checklist-dialog .checklist-content label{font-weight:400}.scratch-checklist-dialog .scratch-checklist-name{margin-bottom:24px!important}.scratch-checklist-dialog .checklist-item-options{margin-left:auto}.scratch-checklist-dialog .checklist-item-options span{display:none}.scratch-checklist-dialog .checklist-item-options button{border:0;background:transparent;padding:4px;font-size:13px!important;color:var(--secondary)}.scratch-checklist-dialog .checklist-item-actions button:disabled{display:none}.scratch-checklist-dialog>footer>label{font-weight:400}.scratch-checklist-dialog .recurring-checklist-item{padding:24px 0}.scratch-checklist-dialog .checklist-item-main{gap:12px}.scratch-checklist-dialog .checklist-item-actions button{border:0;border-radius:50%;background:transparent}.scratch-checklist-dialog .checklist-drag{font-size:22px}.scratch-checklist-dialog .checklist-section-heading>div{flex:none}
.scratch-checklist-dialog .checklist-content label.scratch-floating{margin:4px 0 0!important}.scratch-checklist-dialog .checklist-content label.scratch-checklist-name{margin:4px 0 24px!important}

/* Global templates share the sectioned checklist workspace. */
.template-checklist-dialog .checklist-content{margin-top:0;gap:24px;width:min(960px,calc(100% - 40px))}
.template-checklist-dialog .checklist-content .card{padding:24px 18px}
.template-checklist-dialog .checklist-content h2{font-size:16px;margin:18px 0 14px}
.template-checklist-dialog .checklist-content label{font-weight:400}
.template-checklist-dialog .checklist-content input:not([type=checkbox]):not([type=radio]),.template-checklist-dialog select{font-size:16px;min-height:54px;border-radius:6px}
.template-checklist-dialog .template-settings-row{display:flex;align-items:center;gap:24px;margin:12px 0}
.template-checklist-dialog .template-settings-row>label:first-child{max-width:220px;flex:1}
.template-checklist-dialog .template-active,.template-checklist-dialog .template-choice-list label{display:flex;flex-direction:row;align-items:center;gap:10px}
.template-checklist-dialog .template-active input,.template-checklist-dialog .template-choice-list input{width:18px;height:18px;min-height:18px;flex:none;accent-color:var(--primary)}
.template-checklist-dialog .template-automations{margin:0 0 16px}
.template-checklist-dialog .template-automations label{margin:0;padding:10px 0}
.template-checklist-dialog .template-automations input{width:20px;height:20px;margin:0;accent-color:var(--primary)}
.template-checklist-dialog .template-condition{display:flex;align-items:center;gap:16px;margin:10px 0 18px}
.template-checklist-dialog .template-condition label{width:200px;margin:0}
.template-checklist-dialog .template-choice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px;overflow:auto;gap:12px;padding:12px;border:1px solid var(--divider);border-radius:6px}
.template-checklist-dialog .template-choice-list label{margin:0;min-width:0}
.template-checklist-dialog .template-choice-list label[hidden]{display:none}
.template-checklist-dialog .template-help{font-size:13px;color:var(--secondary);margin-bottom:0}
.template-checklist-dialog .checklist-section-heading>div button{background:transparent;border:0}
.template-checklist-dialog header>div button{border-radius:22px;min-width:76px}
.checklist-template-page{max-width:816px}
.checklist-template-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--divider);padding:20px 0}
.checklist-template-tools form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0;max-width:580px}
.checklist-template-tools input{max-width:280px;min-width:180px}
.checklist-template-tools select{width:auto;max-width:150px}
.checklist-template-tools button{white-space:nowrap;border-radius:24px}
.checklist-template-page table{width:100%;border-collapse:collapse}
.checklist-template-page th,.checklist-template-page td{padding:20px 18px;text-align:left;border-bottom:1px solid var(--divider)}
.checklist-template-page th{font-weight:500;color:var(--secondary)}
.checklist-template-page td:first-child{min-width:180px}
.checklist-template-page td small{display:block;color:var(--secondary);font-size:12px;margin-top:5px}
.checklist-template-actions{display:flex;gap:8px;align-items:center;min-height:84px;box-sizing:border-box}
.checklist-template-actions>button,.checklist-template-actions summary{font-size:22px;padding:4px;border:0;background:transparent;min-width:30px;list-style:none;cursor:pointer;color:var(--ink)}
.checklist-template-actions details{position:relative}
.checklist-template-actions details>div{position:absolute;right:0;top:32px;width:180px;z-index:5;padding:6px;background:var(--surface);border:1px solid var(--divider);box-shadow:0 4px 14px #0003;border-radius:5px}
.checklist-template-actions details button{display:block;width:100%;text-align:left;border:0;background:transparent}
.checklist-template-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 0;color:var(--secondary);font-size:13px}
.checklist-template-pagination button{border:0;background:transparent;font-size:22px;min-width:32px;padding:4px}
.checklist-template-empty{padding:36px;text-align:center;color:var(--secondary)}
@media(max-width:700px){.template-checklist-dialog .template-choice-list{grid-template-columns:1fr}.checklist-template-tools{align-items:stretch;flex-direction:column}.template-checklist-dialog .template-settings-row{flex-wrap:wrap}}
.template-checklist-dialog .checklist-content .card{border:1px solid var(--divider);box-shadow:0 2px 9px #0001}
.template-checklist-dialog .checklist-content label.template-floating{position:relative;display:block;margin:0!important}
.template-checklist-dialog .template-floating-label{position:absolute;top:8px;left:13px;font-size:12px!important;line-height:14px;color:var(--secondary);z-index:1}
.template-checklist-dialog .checklist-content .template-floating input,.template-checklist-dialog .checklist-content .template-floating select{font-size:16px!important;min-height:56px;margin:0;padding:22px 12px 7px!important}
.template-checklist-dialog .checklist-section-heading{padding-bottom:24px}
.template-checklist-dialog .checklist-section-heading>div button,.template-checklist-dialog .checklist-item-actions button{font-size:20px!important;background:transparent;border:0}
.template-checklist-dialog .checklist-item-options button{font-size:13px!important}
.template-checklist-dialog>header>button{background:transparent;border:0;font-size:24px!important;color:var(--secondary);padding:4px}
.template-checklist-dialog .checklist-content .checklist-item-type-row>label:first-child{width:220px}
.checklist-template-page .admin-scroll{overflow:visible}
.template-checklist-dialog .template-condition-picker{position:relative;margin:12px 0 16px}
.template-checklist-dialog .template-condition-picker summary{display:flex;justify-content:space-between;align-items:center;list-style:none;padding:14px 16px;min-height:54px;box-sizing:border-box;border:1px solid var(--edge);border-radius:6px;cursor:pointer;font-size:16px}
.template-condition-picker summary:after{content:'▾';font-size:14px;color:var(--secondary)}
.template-condition-popup{position:absolute;top:100%;left:0;right:0;z-index:4;padding:14px;background:var(--surface);border:1px solid var(--divider);border-radius:6px;box-shadow:0 5px 15px #0003}
.template-checklist-dialog .template-condition-popup>label{margin:0 0 8px}
.template-checklist-dialog .template-condition-popup .template-choice-list{border:0;padding:8px;grid-template-columns:1fr}
.template-selected{display:flex;gap:8px;flex-wrap:wrap}
.template-selected button{border:0;border-radius:18px;background:var(--canvas);color:var(--ink);font-size:13px!important;min-height:30px;padding:5px 12px}
.template-selected button span{margin-left:5px;font-size:18px}
.template-checklist-dialog .template-automations label{padding:8px 0!important;min-height:40px;box-sizing:border-box}
.template-checklist-dialog .template-automations input{min-height:20px!important}
.template-checklist-dialog .template-settings-row>label{margin:0!important}
.template-checklist-dialog>header h1{flex:1;text-align:left}
.template-choice-list [data-template-no-results]{padding:12px;color:var(--muted);margin:0}
.template-review-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.checklist-template-tools form{flex:1;min-width:0;max-width:none;flex-wrap:nowrap}
.checklist-template-tools input{flex:1;min-width:100px;width:auto;margin:0}
.checklist-template-tools select{flex:none;width:125px;margin:0}
.checklist-template-tools form button{flex:none}
.checklist-template-page th,.checklist-template-page td{padding:14px 16px;vertical-align:middle}
.checklist-template-page td.checklist-template-actions{display:table-cell;min-height:0;white-space:nowrap}
.checklist-template-actions details{display:inline-block;margin-left:8px}
.checklist-template-actions summary{display:inline-block}
.checklist-inline-choices{margin:0 0 4px 26px;display:grid;gap:10px;min-width:0}
.checklist-choice-row{display:grid;grid-template-columns:26px minmax(0,1fr) 30px;align-items:center;gap:12px}
.checklist-content .checklist-choice-row>label{position:relative;margin:0;gap:4px;font-size:12px;color:var(--secondary)}
.checklist-content .checklist-choice-row input{font-size:16px!important;min-height:54px;margin:0;border-radius:6px}
.checklist-content .checklist-choice-row>label>span{position:absolute;top:7px;left:13px;font-size:12px;line-height:14px;z-index:1}
.checklist-content .checklist-choice-row input{padding:22px 12px 7px!important;min-height:56px}
.recurring-checklist-item:has(.checklist-inline-choices)>.checklist-drag{align-self:start;margin-top:17px}
.recurring-checklist-item:has(.checklist-inline-choices)>.checklist-item-actions{align-self:start;margin-top:76px}
.recurring-checklist-dialog:not(.scratch-checklist-dialog):not(.template-checklist-dialog) .recurring-checklist-item:has(.checklist-inline-choices)>.checklist-item-actions{margin-top:148px}
.checklist-choice-row>button{border:0;background:transparent;color:var(--secondary);min-width:26px;min-height:32px;padding:2px;font-size:22px!important}
.checklist-choice-drag{cursor:grab}.checklist-choice-drag:active{cursor:grabbing}
.checklist-choice-add{justify-self:start;margin-left:38px;border:0;background:transparent;color:var(--primary);padding:4px;min-height:32px;font-size:14px!important}
.checklist-choice-error{font-size:13px;margin:0 0 0 38px!important;color:#b42318!important}
.checklist-choice-error:empty{display:none}
[data-theme=dark] .checklist-choice-error{color:#ffb4ab!important}
[data-theme=dark] .checklist-choice-add{color:#efb47a}
.scratch-checklist-dialog .checklist-inline-choices{margin-left:8px}
@media(max-width:700px){.checklist-inline-choices{margin-left:0}.checklist-choice-row{gap:8px;grid-template-columns:24px minmax(0,1fr) 28px}}

.checklist-content .record-checklist-scope{border:0;padding:0;margin:0 0 20px}.checklist-content .record-checklist-scope label{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:12px 0;padding:4px 0}.checklist-content .record-checklist-scope input[type=radio]{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;accent-color:var(--primary)}
