[data-bs-theme="dark"] {
    color-scheme: dark;
    --lizdas-green: #29b56d;
    --lizdas-pine: #02403c;
    --bs-primary: var(--lizdas-green);
    --bs-primary-rgb: 41, 181, 109;
    --bs-primary-text-emphasis: #74d9a5;
    --bs-primary-bg-subtle: #102f22;
    --bs-primary-border-subtle: #267249;
    --bs-body-bg: #0f1513;
    --bs-body-bg-rgb: 15, 21, 19;
    --bs-body-color: #e2ece6;
    --bs-body-color-rgb: 226, 236, 230;
    --bs-secondary-color: #a1b9ac;
    --bs-secondary-bg: #192822;
    --bs-tertiary-bg: #151f1b;
    --bs-border-color: #30463b;
    --bs-link-color: #29b56d;
    --bs-link-color-rgb: 41, 181, 109;
    --bs-link-hover-color: #74d9a5;
    --bs-link-hover-color-rgb: 116, 217, 165;
    --bs-focus-ring-color: rgba(41, 181, 109, .3);
}

body { background-color: var(--bs-body-bg); }
main.container, header .container { max-width: 960px; }
header { background-color: #101e18; }
.brand, .brand:hover { color: var(--lizdas-green); }
.card { --bs-card-bg: #151f1b; }
.btn-sm { min-height: 32px; }

.btn-primary {
    --bs-btn-color: #071b12;
    --bs-btn-bg: #29b56d;
    --bs-btn-border-color: #29b56d;
    --bs-btn-hover-color: #071b12;
    --bs-btn-hover-bg: #48ca88;
    --bs-btn-hover-border-color: #48ca88;
    --bs-btn-active-color: #071b12;
    --bs-btn-active-bg: #21a560;
    --bs-btn-active-border-color: #21a560;
    --bs-btn-disabled-color: #071b12;
    --bs-btn-disabled-bg: #29b56d;
    --bs-btn-disabled-border-color: #29b56d;
    --bs-btn-focus-shadow-rgb: 41, 181, 109;
}

.btn-outline-primary {
    --bs-btn-color: #29b56d;
    --bs-btn-border-color: #29b56d;
    --bs-btn-hover-color: #071b12;
    --bs-btn-hover-bg: #29b56d;
    --bs-btn-hover-border-color: #29b56d;
    --bs-btn-active-color: #071b12;
    --bs-btn-active-bg: #21a560;
    --bs-btn-active-border-color: #21a560;
    --bs-btn-disabled-color: #29b56d;
    --bs-btn-disabled-border-color: #29b56d;
    --bs-btn-focus-shadow-rgb: 41, 181, 109;
}

.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #29b56d;
    box-shadow: 0 0 0 .2rem rgba(41, 181, 109, .25);
}
.form-check-input:checked { background-color: #29b56d; border-color: #29b56d; }
.progress { --bs-progress-bar-bg: #29b56d; }
.nav-pills { --bs-nav-pills-link-active-bg: #02403c; }
.pagination {
    --bs-pagination-active-bg: #29b56d;
    --bs-pagination-active-border-color: #29b56d;
    --bs-pagination-active-color: #071b12;
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(41, 181, 109, .25);
}

.drag-handle { cursor: grab; touch-action: none; }
.sortable-ghost { opacity: .35; }
.builder-preview { --bs-offcanvas-width: min(430px, 95vw); }
.builder-preview-frame { width: 390px; max-width: 100%; height: 100%; min-height: 400px; border: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.preview-text { white-space: pre-line; }

.sort-section h2, .sort-item strong { overflow-wrap: anywhere; }

[hidden] { display: none !important; }

[data-condition-group]:first-child .condition-or-label { display: none; }
#checklist_enabledConditions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.condition-rule .form-label { font-size: .8rem; margin-bottom: .2rem; }
.condition-rule .mb-3 { margin-bottom: .25rem !important; }

.media-card { max-width: 260px; }
.checklist-media { display: block; width: 100%; max-width: 260px; max-height: 200px; object-fit: contain; border-radius: .2rem; background: var(--bs-tertiary-bg); }

.operator-checked label strong { color: var(--bs-success); }

/* Operator flow: a single task, generous touch targets, minimal chrome. */
.operator-layout > header { display:none; }
.operator-app.container { max-width:560px; padding:16px 20px 110px; }
.operator-brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; font-size:12px; color:var(--bs-secondary-color); }
.operator-brand a { display:flex; align-items:center; gap:8px; text-decoration:none; color:var(--lizdas-green); margin-right:auto; }
.operator-tools { border:0; background:transparent; color:var(--bs-body-color); font-size:26px; line-height:1; width:44px; height:44px; border-radius:50%; }
.operator-tools:hover { background:var(--bs-tertiary-bg); }
.operator-heading { font-size:25px; font-weight:600; line-height:1.3; margin:0 0 12px; overflow-wrap:anywhere; }
.operator-intro { color:var(--bs-secondary-color); font-size:15px; line-height:1.6; margin-bottom:24px; }
.operator-eyebrow { color:var(--bs-secondary-color); font-size:12px; font-weight:500; margin:24px 0 12px; }
.operator-groups { display:grid; gap:10px; }
.operator-group { display:flex; align-items:center; justify-content:space-between; gap:16px; text-align:left; background:#18231e; border:1px solid #293c31; border-radius:14px; color:var(--bs-body-color); padding:18px; min-height:82px; width:100%; }
.operator-group strong { display:block; font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.operator-group small { display:block; color:var(--bs-secondary-color); font-size:13px; margin-top:6px; }
.operator-group > span:last-child { font-size:23px; color:var(--lizdas-green); }
.operator-group:hover { border-color:var(--lizdas-green); }
.operator-back { border:0; background:none; color:var(--bs-secondary-color); padding:10px 0; min-height:44px; font-size:14px; }
.operator-back:hover { color:var(--bs-body-color); }
.operator-back:disabled { opacity:.35; }
.operator-condition { margin:0 0 22px; }
.operator-condition legend { font-size:15px; font-weight:500; margin-bottom:10px; }
.operator-options { display:flex; flex-wrap:wrap; gap:8px; }
.operator-options label { flex:1; position:relative; min-width:88px; cursor:pointer; }
.operator-options input { position:absolute; opacity:0; width:100%; height:100%; }
.operator-options span { display:flex; align-items:center; justify-content:center; text-align:center; border:1px solid #35493e; border-radius:10px; padding:12px 10px; font-size:14px; min-height:48px; }
.operator-options input:checked + span { background:#173b29; border-color:var(--lizdas-green); color:#8be0b0; }
.operator-options input:focus-visible + span, .operator-switch input:focus-visible + span { outline:3px solid var(--bs-focus-ring-color); outline-offset:3px; }
.operator-primary { width:100%; min-height:50px; margin-top:12px; border-radius:12px; }
.operator-step-top { display:flex; align-items:center; justify-content:space-between; }
.operator-step-counter { color:var(--bs-secondary-color); font-size:13px; margin-bottom:24px; }
.operator-step-section, .operator-step { display:none; }
.operator-step-section.is-active, .operator-step.is-current { display:block; }
.operator-steps { list-style:none; padding:0; margin:0; }
.operator-task-heading { display:flex; align-items:flex-start; gap:18px; }
.operator-task-heading h1 { flex:1; min-width:0; }
.operator-switch { position:relative; flex:none; width:56px; padding:4px; cursor:pointer; text-align:center; }
.operator-switch input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.operator-switch-track { display:block; width:48px; height:28px; border:1px solid #496053; background:#23332b; border-radius:20px; position:relative; pointer-events:none; }
.operator-switch-track::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; background:#aac0b2; border-radius:50%; transition:transform .15s ease; }
.operator-switch input:checked + span { background:var(--lizdas-green); border-color:var(--lizdas-green); }
.operator-switch input:checked + span::after { transform:translateX(20px); background:#fff; }
.operator-switch input:disabled + span { opacity:.4; }
.operator-switch small { display:block; color:var(--bs-secondary-color); font-size:11px; margin-top:6px; pointer-events:none; }
.operator-instructions { font-size:16px; line-height:1.7; color:#bdcec3; margin:16px 0; overflow-wrap:anywhere; }
.operator-detail { display:inline-flex; align-items:center; gap:12px; border:0; background:none; color:var(--lizdas-green); padding:10px 0; min-height:44px; font-size:14px; }
.operator-deferred { color:#d5b978; font-size:13px; margin-top:16px; }
.operator-navigation { display:grid; grid-template-columns:auto 1fr 1.4fr; align-items:center; gap:14px; margin-top:40px; }
.operator-navigation .btn { min-height:50px; border-radius:12px; }
.operator-later { border:1px solid #3b5043; background:transparent; border-radius:12px; color:var(--bs-secondary-color); min-height:50px; font-size:14px; }
.operator-later:disabled { opacity:.4; }
.operator-progress { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:560px; padding:18px 20px calc(18px + env(safe-area-inset-bottom)); background:#0f1513f2; backdrop-filter:blur(12px); border-top:1px solid #293b31; z-index:100; }
.operator-progress > div:first-child { display:flex; justify-content:space-between; gap:12px; font-size:13px; margin-bottom:10px; }
.operator-progress [data-operator-target="skippedStatus"] { color:#d5b978; }
.operator-progress .progress { height:4px; }
[data-wizard-stage="groups"] .operator-progress, [data-wizard-stage="setup"] .operator-progress { display:none; }
.operator-modal .modal-content { background:#15221b; border:1px solid #30463b; border-radius:18px; }
.operator-modal .modal-header { align-items:flex-start; padding:20px; }
.operator-modal .modal-body { padding:20px; line-height:1.65; }
.operator-modal .media-card { width:100%; max-width:none; }
.operator-modal .checklist-media { width:100%; max-width:none; max-height:420px; border-radius:12px; }
.operator-modal .modal-body > [data-operator-target="message"]:empty { display:none; }
@media (min-width:600px) { .operator-app.container { padding-top:28px; } }
@media (prefers-reduced-motion:reduce) { .operator-switch-track::after { transition:none; } }

.operator-navigation { position:fixed; bottom:calc(76px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:calc(100% - 40px); max-width:520px; margin:0; padding:12px 0; background:var(--bs-body-bg); z-index:101; }
.operator-app.container { padding-bottom:calc(170px + env(safe-area-inset-bottom)); }

.builder-back { display:inline-block; margin-bottom:12px; font-size:13px; text-decoration:none; color:var(--bs-secondary-color); }
.builder-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:24px; }
.builder-checklist-title { display:block; background:none; border:0; color:var(--bs-body-color); font-size:23px; font-weight:600; padding:0; text-align:left; overflow-wrap:anywhere; }
.builder-icon, .builder-drag { background:none; border:0; color:var(--bs-secondary-color); border-radius:6px; width:34px; min-height:34px; padding:0; flex:none; }
.builder-icon { font-size:24px; }
.builder-drag { font-size:20px; opacity:.65; }
.builder-icon:hover, .builder-drag:hover { background:var(--bs-secondary-bg); color:var(--bs-body-color); }
.builder-group { border:1px solid #2b4034; border-radius:12px; margin-bottom:16px; overflow:visible; }
.builder-group-heading { display:flex; align-items:center; gap:8px; padding:8px 12px; background:#19261f; border-radius:12px 12px 0 0; }
.builder-group-name { border:0; background:none; color:var(--bs-body-color); font-size:16px; font-weight:600; padding:0; text-align:left; overflow-wrap:anywhere; }
.builder-items { list-style:none; margin:0; padding:0; }
.builder-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-top:1px solid #26382e; }
.builder-item-title { flex:1; min-width:0; text-align:left; color:var(--bs-body-color); background:none; border:0; padding:0; }
.builder-item-title strong { display:block; font-size:14px; font-weight:500; }
.builder-item-title small { display:block; font-size:12px; color:var(--bs-secondary-color); margin-top:2px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.builder-item-meta { display:flex; align-items:center; gap:12px; flex:none; font-size:11px; color:var(--bs-secondary-color); }
.builder-add { display:block; border:0; border-top:1px solid #26382e; width:100%; border-radius:0 0 12px 12px; text-align:left; background:none; color:var(--lizdas-green); padding:10px 56px; font-size:13px; }
.builder-add:hover, .builder-item:hover { background:#15251b; }
.builder-empty { padding:14px 56px; color:var(--bs-secondary-color); font-size:13px; }
.builder-bottom { display:flex; align-items:center; gap:16px; margin-top:8px; }
.builder-editor .modal-content { background:#15221b; border:1px solid #30463b; border-radius:14px; }
.builder-editor .modal-content > form:not([hidden]) { display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.builder-editor .modal-body { overflow-y:auto; }
.builder-editor .modal-header, .builder-editor .modal-body, .builder-editor .modal-footer { padding:16px 20px; }
.builder-editor .modal-footer { flex-shrink:0; }
.builder-editor-tabs { gap:6px; font-size:13px; }
.builder-editor-tabs .nav-link { padding:7px 12px; color:var(--bs-secondary-color); }
.builder-editor-tabs .nav-link.active { color:#a9e5c2; background:#1d3b2a; }
.builder-editor .form-label { font-size:13px; }
.builder-upload { background:#101b15; border:1px dashed #3b5745; border-radius:10px; padding:12px; }
.builder-upload .mb-3 { margin-bottom:8px !important; }
.builder-upload .form-text { font-size:11px; }
.builder-attachments { display:flex; flex-wrap:wrap; gap:12px; }
.builder-attachments > div { position:relative; max-width:140px; }
.builder-attachments .checklist-media { height:88px; max-width:140px; object-fit:cover; }
.builder-attachments figcaption { font-size:11px; }
.builder-remove-file { position:absolute; top:0; right:0; width:26px; height:26px; border:0; border-radius:50%; background:#0a1410; color:#fff; }
@media (max-width:575px) { .builder-toolbar { flex-wrap:wrap; } .builder-toolbar > div:first-child { width:100%; } .builder-item-meta { gap:6px; } .builder-bottom { align-items:flex-start; } .builder-editor .modal-header, .builder-editor .modal-body, .builder-editor .modal-footer { padding:12px; } }

.checklist-library-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.checklist-library-tabs { display:flex; gap:20px; margin-bottom:16px; border-bottom:1px solid #2b4034; }
.checklist-library-tabs a { color:var(--bs-secondary-color); font-size:13px; text-decoration:none; padding:8px 0 10px; border-bottom:2px solid transparent; }
.checklist-library-tabs a.active { color:var(--lizdas-green); border-bottom-color:var(--lizdas-green); }
.checklist-library-list { list-style:none; padding:0; margin:0; border:1px solid #2b4034; border-radius:12px; overflow:hidden; }
.checklist-library-row { display:flex; align-items:center; gap:12px; }
.checklist-library-row + .checklist-library-row { border-top:1px solid #26382e; }
.checklist-library-row:hover { background:#15251b; }
.checklist-library-entry { display:flex; align-items:center; gap:18px; flex:1; min-width:0; padding:16px 18px; color:var(--bs-body-color); text-decoration:none; }
.checklist-library-entry:hover { color:var(--bs-body-color); }
.checklist-library-name { flex:1; min-width:0; }
.checklist-library-name strong { display:block; font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.checklist-library-details { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; color:var(--bs-secondary-color); margin-top:4px; }
.checklist-library-status { flex:none; color:var(--bs-secondary-color); background:#19261f; border-radius:6px; padding:4px 8px; font-size:11px; }
.checklist-library-status.is-published { color:#a9e5c2; background:#1d3b2a; }
.checklist-library-arrow { color:var(--bs-secondary-color); font-size:14px; }
.checklist-library-row > form { margin-right:16px; flex:none; }
.checklist-library-empty { display:flex; flex-direction:column; align-items:center; gap:10px; padding:32px 16px; color:var(--bs-secondary-color); font-size:14px; }
@media (max-width:575px) { .checklist-library-heading { gap:10px; } .checklist-library-heading h1 { font-size:21px; } .checklist-library-entry { flex-wrap:wrap; gap:8px; padding:14px; } .checklist-library-name { flex-basis:100%; } .checklist-library-arrow { margin-left:auto; } .checklist-library-row > form { margin-right:12px; } }

.app-header { background:#101b16; border-bottom:1px solid #26382e; }
.app-navigation { display:flex; align-items:center; gap:32px; min-height:64px; }
.app-brand { display:inline-flex; align-items:center; gap:10px; flex:none; color:var(--bs-body-color); text-decoration:none; font-size:16px; letter-spacing:-.3px; }
.app-brand:hover { color:var(--bs-body-color); }
.app-brand strong { color:var(--lizdas-green); font-weight:600; }
.app-menu { flex:1; align-items:center; justify-content:space-between; gap:16px; }
.app-menu-links { display:flex; align-items:center; gap:4px; }
.app-menu-link { padding:9px 13px; border-radius:8px; color:var(--bs-secondary-color); text-decoration:none; font-size:13px; font-weight:500; }
.app-menu-link:hover { color:var(--bs-body-color); background:#19261f; }
.app-menu-link.active { color:#a9e5c2; background:#1d3b2a; }
.app-menu-toggle, .app-account-toggle { display:flex; align-items:center; justify-content:center; gap:8px; border:0; background:none; color:var(--bs-secondary-color); border-radius:8px; min-height:40px; padding:4px 8px; font-size:12px; }
.app-menu-toggle:hover, .app-account-toggle:hover { background:#19261f; color:var(--bs-body-color); }
.app-menu-toggle { display:none; margin-left:auto; width:40px; }
.app-avatar { display:grid; place-items:center; width:28px; height:28px; border:1px solid #345440; border-radius:50%; color:#a9e5c2; background:#1d3025; font-size:12px; font-weight:600; }
.app-account-menu { min-width:220px; border-radius:10px; padding:6px; background:#15221b; border-color:#30463b; }
.app-account-email { padding:8px 10px 12px; border-bottom:1px solid #30463b; margin-bottom:4px; font-size:12px; color:var(--bs-secondary-color); overflow-wrap:anywhere; }
.app-account-menu .dropdown-item { border-radius:6px; padding:8px 10px; font-size:13px; }
@media (min-width:768px) { .app-menu.collapse { display:flex; } }
@media (max-width:767px) { .app-navigation { flex-wrap:wrap; gap:0; min-height:58px; padding-top:8px; padding-bottom:8px; } .app-brand { font-size:15px; } .app-brand img { width:30px; height:30px; } .app-menu-toggle { display:flex; } .app-menu { flex-basis:100%; padding-top:10px; } .app-menu-links { flex-direction:column; align-items:stretch; gap:4px; } .app-menu-link { padding:11px 12px; } .app-account { margin-top:8px; padding-top:8px; border-top:1px solid #26382e; } .app-account-toggle { justify-content:flex-start; width:100%; } .app-account-caption { flex:1; text-align:left; } .app-account-menu { width:100%; } }

#checklist_import_format { display:flex; gap:20px; }
#checklist_import_source { font-family:ui-monospace, monospace; font-size:13px; tab-size:2; }

.user-library-avatar { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:10px; background:#1d3b2a; color:#a9e5c2; font-size:14px; font-weight:600; }
.user-library-self { margin-left:8px; color:var(--bs-secondary-color); font-size:11px; font-weight:400; }
.user-library .checklist-library-details { overflow-wrap:anywhere; }
.user-library-status.is-active { color:#a9e5c2; background:#1d3b2a; }
.user-library-status.is-pending { color:#e7cd95; background:#3a3020; }
.user-library-status.is-disabled { color:var(--bs-secondary-color); }
@media (max-width:575px) {
    .user-library .checklist-library-heading { align-items:flex-start; }
    .user-library .checklist-library-heading > a { white-space:nowrap; }
    .user-library-row { flex-wrap:wrap; gap:0; }
    .user-library-entry { flex-wrap:nowrap; gap:10px; flex-basis:100%; }
    .user-library-entry .checklist-library-name { flex-basis:auto; }
    .user-library-status { max-width:100px; text-align:center; }
    .user-library-row > form { margin:0 14px 12px 58px; }
}

.user-editor { max-width:680px; }
.user-editor .checklist-library-heading { overflow-wrap:anywhere; }
.user-editor .checklist-library-heading > div { min-width:0; }
.user-editor-panel { padding:16px; margin-bottom:14px; border:1px solid #2b4034; border-radius:12px; }
.user-editor-panel .mb-3 { margin-bottom:12px !important; }
.user-editor-panel .form-label { font-size:13px; }
.user-editor-action { display:flex; align-items:center; gap:16px; }
.user-editor-action + .user-editor-action { border-top:1px solid #26382e; margin-top:14px; padding-top:14px; }
.user-editor-action > div { flex:1; min-width:0; }
.user-editor-action strong { font-size:14px; font-weight:500; }
.user-editor-action p { font-size:12px; color:var(--bs-secondary-color); margin:4px 0 0; }
.user-editor-action form { flex:none; }
@media (max-width:575px) {
    .user-editor-action { flex-wrap:wrap; gap:10px; }
    .user-editor-action > div { flex-basis:100%; }
    .user-library-entry .checklist-library-arrow { margin-left:0; }
}
