#checklists { scroll-margin-top: 75px; }
#checklists * { box-sizing: border-box; }
#checklists h2 { margin-bottom: 8px; }
.cl-intro, .cl-help { color: #526573; font-size: .9rem; }
.cl-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
#checklists button { font: inherit; margin: 0; min-height: 42px; }
.cl-category { background: #eef5fa; color: #24455e; border: 1px solid #d2e2ed; text-align: left; padding: 14px 10px; }
.cl-category[aria-pressed="true"] { background: #245a7c; color: white; border-color: #245a7c; }
.cl-category strong, .cl-category small { display: block; }
.cl-category small { margin-top: 5px; font-size: .75rem; }
.cl-picker { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 16px 0; }
.cl-picker label { flex: 1; min-width: 170px; font-size: .85rem; font-weight: bold; }
.cl-picker select { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid #b8cbd8; border-radius: 5px; font: inherit; background: white; color: #243c4d; }
.cl-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
#checklists .cl-secondary { background: #edf3f7; color: #245a7c; border: 1px solid #cadce8; padding: 8px 12px; }
#checklists .cl-danger { color: #a02929; }
#checklists button:disabled { opacity: .4; cursor: default; }
#checklists :focus-visible { outline: 3px solid #d88123; outline-offset: 3px; }
.cl-progress { width: 100%; height: 10px; accent-color: #20865e; }
.cl-count { margin: 4px 0 12px; font-weight: 600; color: #245a7c; }
#checklists .cl-items { padding: 0; margin: 15px 0; }
#checklists .cl-items li { display: flex; flex-wrap: wrap; padding: 0; cursor: default; border: 1px solid #dce6ec; border-radius: 6px; margin: 7px 0; background: white; }
#checklists .cl-items li:before { content: none; }
.cl-item-label { display: flex; align-items: center; gap: 12px; padding: 13px; flex: 1; cursor: pointer; min-width: 0; touch-action: pan-y; overflow-wrap: anywhere; }
#checklists input[type="checkbox"] { width: 23px; height: 23px; margin: 0; flex-shrink: 0; accent-color: #20865e; }
.cl-items .cl-complete { background: #f1f8f4 !important; }
.cl-complete .cl-item-text { text-decoration: line-through; color: #61766c; }
.cl-item-actions { display: flex; gap: 4px; padding: 4px 8px; align-items: center; }
#checklists .cl-item-actions button { padding: 6px 10px; font-size: .85rem; }
.cl-form { background: #f3f7fa; padding: 14px; border-radius: 7px; margin: 14px 0; }
.cl-form label { display: block; font-weight: 600; }
.cl-form-row { display: flex; align-items: center; gap: 8px; }
.cl-form-row input { flex: 1; min-width: 0; font: inherit; background: white; }
.cl-form-row button { flex-shrink: 0; }
#cl-status { min-height: 24px; color: #245a7c; font-size: .9rem; }
.cl-warning { background: #fff4d8; padding: 10px; border-radius: 5px; }
.cl-source { margin-top: 20px; font-size: .8rem; color: #61717d; }
.cl-source a { color: #245a7c; }
.cl-hidden-count { font-size: .85rem; color: #637481; }
#checklists [hidden] { display: none !important; }
@media (max-width: 550px) {
  .cl-categories { grid-template-columns: repeat(2, 1fr); }
  #checklists { padding: 16px; }
  .cl-item-actions { width: 100%; padding-left: 48px; }
  .cl-form-row { flex-wrap: wrap; }
  .cl-form-row input { flex-basis: 100%; }
}
@media print {
  body.cl-print nav, body.cl-print header, body.cl-print footer, body.cl-print #backToTop,
  body.cl-print .container > :not(#checklists), body.cl-print .cl-categories,
  body.cl-print .cl-picker, body.cl-print .cl-toolbar, body.cl-print .cl-form,
  body.cl-print .cl-item-actions, body.cl-print .cl-help, body.cl-print #cl-status,
  body.cl-print .cl-intro, body.cl-print .cl-source, body.cl-print #cl-storage-warning { display: none !important; }
  body.cl-print, body.cl-print .container { background: white; padding: 0; max-width: none; }
  body.cl-print #checklists { box-shadow: none; margin: 0; padding: 0; }
  body.cl-print .cl-items li { break-inside: avoid; }
}
