.checklist-editor{max-width:1100px;margin-inline:auto}
.checklist-editor label{display:block;margin:12px 0}
.checklist-editor label>input:not([type=checkbox]){display:block;width:100%;max-width:700px;padding:10px;margin-top:6px}
.checklist-editor #checklist-sections>.card{padding:20px;margin:18px 0;border:1px solid #b8cad9;border-radius:14px}
.checklist-editor .checklist-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(190px,1fr) auto auto auto;gap:7px;align-items:center;margin:7px 0}
.checklist-editor .checklist-row input{width:100%;min-width:0;padding:10px}
@media(max-width:700px){.checklist-editor .checklist-row{grid-template-columns:1fr 1fr auto}.checklist-editor .checklist-row input{grid-column:1 / -1}}
.checklist-library-head,.checklist-cockpit-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:18px 0}
.checklist-library-head h2,.checklist-cockpit-head h2{margin:0}
.checklist-repeat-status{margin:0 auto 16px;padding:9px 18px;width:fit-content;max-width:100%;border-radius:9px;background:#e8f2f8;color:#155d80;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.checklist-repeat-status[hidden]{display:none}
.checklist-manage-link{color:#526779;text-decoration:underline;text-underline-offset:3px;font-size:.91rem;white-space:nowrap}
.checklist-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
.checklist-launch{display:flex;flex-direction:column;gap:9px;padding:22px;border:1px solid #c5d9e1;border-radius:16px;background:#fff;color:#15354d;text-decoration:none;min-height:148px}
.checklist-launch:hover,.checklist-launch:focus-visible{border-color:#287a9c;box-shadow:0 5px 20px #15354d19}
.checklist-launch-title{font-size:1.2rem;font-weight:750}.checklist-launch-action{margin-top:auto;color:#14688c;font-weight:700}
.checklist-manage-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #d8e5ec;padding:12px 0}
.checklist-manage-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.checklist-manage-actions form{margin:0}
.checklist-cockpit{max-width:940px;margin-inline:auto}.checklist-run-controls,.checklist-run-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0;flex-wrap:wrap}
.checklist-section-select{max-width:100%;padding:11px;border:1px solid #b8cad9;border-radius:10px;font-size:1.05rem}
.checklist-run-point{display:flex;flex-direction:column;gap:5px;width:100%;margin:9px 0;padding:16px 20px;border:2px solid transparent;border-radius:14px;text-align:left;font:inherit;line-height:1.35;cursor:pointer;transition:background .15s,border-color .15s}
.checklist-run-point strong{font-size:1.1rem}.checklist-run-point span{font-size:1rem}
.checklist-run-point.is-pending{background:#eef3f6;color:#31495a}
.checklist-run-point.is-active{background:#155d80;border-color:#0b4969;color:white}
.checklist-run-point.is-done{background:#d8eddf;color:#24573b}
.checklist-run-point:focus-visible{outline:3px solid #e39d31;outline-offset:2px}
.checklist-run-emergency{background:#fff0ed;color:#7b2722;cursor:default}.checklist-emergency-button{background:#a82e31;color:white}.checklist-emergency-heading{color:#a82e31}
.checklist-run-emergency-choice{display:block;width:100%;padding:16px;margin:10px 0;border:1px solid #d58a83;border-radius:12px;background:#fff3f1;color:#742522;text-align:left;font-size:1.1rem;font-weight:700}
@media(max-width:700px){.checklist-library-head,.checklist-manage-row{align-items:flex-start}.checklist-manage-row{flex-direction:column}}
/* Fixed touch area for cockpit use; reserve room to centre first and last items. */
.checklist-run-scroll{height:min(61vh,680px);min-height:300px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.checklist-run-spacer{height:calc(min(61vh,680px) / 2 - 46px);min-height:100px}
.checklist-run-point{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);align-items:center;column-gap:18px;min-height:92px}
.checklist-run-point strong,.checklist-run-point span{overflow-wrap:anywhere}
.checklist-run-point span{text-align:right}
.checklist-run-point.is-active{background:#0d577b;border:3px solid #81d7ea;box-shadow:0 0 0 3px #0d577b29;color:#fff;font-weight:700}
.checklist-run-point.is-done{background:#e2ece5;color:#54715c;border-color:#d2e1d6}
.checklist-run-footer{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center}
.checklist-run-footer>.btn:first-child{justify-self:start}.checklist-reset-button{justify-self:center}
.checklist-reset-button.is-armed{background:#a72f37;color:white}
@media(max-width:700px){.checklist-run-point{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:10px;padding:13px}.checklist-run-point strong{font-size:1rem}.checklist-run-point span{font-size:.95rem}}

/* Consistent controls for checklist editing and template administration. */
.checklist-editor .checklist-section-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.checklist-editor .checklist-section-top h3{margin:0}
.checklist-editor .checklist-section-actions,.checklist-editor .checklist-row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.checklist-editor .checklist-section-actions .btn,.checklist-editor .checklist-row-actions .btn{min-width:42px;min-height:42px;padding:8px 11px}
.checklist-editor .checklist-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;margin:12px 0}
.checklist-editor .checklist-row-actions{white-space:nowrap}
.checklist-editor .checklist-editor-add,.checklist-editor .checklist-editor-save{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}
.checklist-editor .checklist-editor-save{padding-top:16px;border-top:1px solid #d8e5ec}
.checklist-editor .checklist-publish-form{margin-top:18px;padding-top:18px;border-top:1px solid #d8e5ec}
.checklist-editor .checklist-publish-form label{display:flex;align-items:center;gap:12px;max-width:100%;margin:0 0 16px;line-height:1.4;cursor:pointer}
.checklist-editor .checklist-publish-form input[type="checkbox"]{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:#176b9d;cursor:pointer}
.checklist-editor .checklist-publish-form .btn{max-width:100%;white-space:normal;text-align:center}
.checklist-manage-actions{justify-content:flex-end;margin-left:auto}
.checklist-manage-actions .btn{min-height:38px}
.checklist-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:11px 0;border-bottom:1px solid #d8e5ec}
.checklist-template-row:last-child{border-bottom:0}
.checklist-template-row>span{min-width:0;overflow-wrap:anywhere}
.checklist-template-row .btn{justify-self:end;min-width:94px;text-align:center}
@media(max-width:700px){.checklist-editor .checklist-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.checklist-editor .checklist-row input{grid-column:auto}.checklist-editor .checklist-row-actions{grid-column:1/-1}.checklist-editor .checklist-section-top{align-items:flex-start}.checklist-manage-actions{margin-left:0;justify-content:flex-start}.checklist-template-row{gap:9px}}
@media(max-width:390px){.checklist-editor .checklist-row{grid-template-columns:minmax(0,1fr)}.checklist-editor .checklist-row-actions{grid-column:1}}
