/* ── Logboek side panel (graphs.php) ───────────────────────────────────── */

/* Backdrop */
.lb-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1040;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lb-backdrop.open { opacity: 1; pointer-events: all; }

/* Panel */
.lb-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bs-body-bg, #fff);
  border-left: 1px solid rgba(0,0,0,.12);
  z-index: 1050;
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.lb-panel.open { transform: translateX(0); }

/* Panel header */
.lb-panel-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; flex-direction: column; gap: 10px;
  flex-shrink: 0;
}
.lb-panel-title-row {
  display: flex; align-items: center; gap: 8px;
}
.lb-panel-title {
  font-size: 1rem; font-weight: 700; margin: 0; flex: 1;
  color: var(--yuv-donkerblauw, #000644);
}
.lb-panel-count {
  font-size: .72rem; color: #6b7280;
  background: #f3f4f6; border-radius: 20px; padding: 2px 8px;
}
.lb-panel-actions { display: flex; gap: 8px; align-items: center; }
.lb-panel-new-btn {
  flex: 1; padding: 7px 12px; border-radius: 6px;
  background: var(--yuv-donkerblauw, #000644); color: #fff;
  border: none; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s;
}
.lb-panel-new-btn:hover { opacity: .85; }
.lb-panel-close {
  width: 30px; height: 30px; border-radius: 6px;
  background: #f3f4f6; border: none; cursor: pointer;
  font-size: .85rem; display: flex; align-items: center; justify-content: center;
}
.lb-panel-close:hover { background: #e5e7eb; }

/* Filters */
.lb-panel-filters {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.lb-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-pill {
  padding: 4px 12px; border-radius: 20px; font-size: .75rem; font-weight: 500;
  border: 1px solid rgba(0,0,0,.15); background: #fff; cursor: pointer;
  transition: all .15s;
}
.lb-pill.active {
  background: var(--yuv-donkerblauw, #000644); color: #fff; border-color: transparent;
}
.lb-panel-search {
  width: 100%; padding: 7px 10px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15); font-size: .82rem;
  background: #f9fafb; box-sizing: border-box;
}
.lb-panel-search:focus { outline: none; border-color: var(--yuv-donkerblauw, #000644); }

/* Feed */
.lb-feed {
  flex: 1; overflow-y: auto; padding: 10px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.lb-feed-loading, .lb-feed-empty {
  padding: 24px 12px; text-align: center; color: #9ca3af; font-size: .85rem;
}

/* Entry card */
.lb-entry {
  border: 1px solid rgba(0,0,0,.1); border-radius: 8px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  background: #fafafa;
}
.lb-entry-head { display: flex; align-items: center; gap: 7px; }
.lb-entry-vis { font-size: .9rem; }
.lb-entry-title { font-weight: 600; font-size: .88rem; flex: 1; }
.lb-entry-meta { font-size: .73rem; color: #6b7280; }
.lb-entry-preview { font-size: .82rem; color: #374151; }
.lb-entry-snap {
  font-size: .72rem; color: #6b7280;
  background: #f3f4f6; border-radius: 4px; padding: 3px 7px;
}
.lb-entry-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lb-entry-tag {
  font-size: .7rem; background: rgba(0,6,68,.08);
  color: var(--yuv-donkerblauw, #000644); border-radius: 4px; padding: 2px 6px;
}
.lb-entry-thumb-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-entry-thumb {
  width: 48px; height: 48px; object-fit: cover; border-radius: 5px;
  border: 1px solid rgba(0,0,0,.1);
}
.lb-entry-thumb-more {
  width: 48px; height: 48px; border-radius: 5px; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: #6b7280;
}
.lb-entry-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-entry-btn {
  padding: 4px 10px; border-radius: 5px; font-size: .75rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.lb-entry-btn--view {
  background: var(--yuv-donkerblauw, #000644); color: #fff;
}
.lb-entry-btn--view:hover { opacity: .85; }
.lb-entry-btn--edit {
  background: #f3f4f6; color: #374151; border-color: rgba(0,0,0,.1);
}
.lb-entry-btn--edit:hover { background: #e5e7eb; }
.lb-entry-btn--del {
  background: #fff0ef; color: var(--yuv-rood, #FF2F00); border-color: rgba(255,47,0,.2);
}
.lb-entry-btn--del:hover { background: #ffe4e1; }

/* Pagination */
.lb-panel-pagination {
  padding: 8px 14px; display: flex; gap: 4px; justify-content: center;
  border-top: 1px solid rgba(0,0,0,.06); flex-shrink: 0;
}
.lb-pag-btn {
  width: 30px; height: 30px; border-radius: 5px; border: 1px solid rgba(0,0,0,.12);
  background: #fff; font-size: .78rem; cursor: pointer; transition: all .15s;
}
.lb-pag-btn.active, .lb-pag-btn:hover {
  background: var(--yuv-donkerblauw, #000644); color: #fff; border-color: transparent;
}

/* Modal overlay */
.lb-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 1060; display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.lb-modal-overlay.open { opacity: 1; pointer-events: all; }

.lb-modal {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.lb-modal--wide { max-width: 640px; }

.lb-modal-head {
  padding: 16px 20px; border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.lb-modal-title { flex: 1; font-size: .95rem; font-weight: 700; margin: 0; }
.lb-modal-close {
  width: 28px; height: 28px; border-radius: 5px; border: none;
  background: #f3f4f6; cursor: pointer; font-size: .8rem;
}
.lb-modal-close:hover { background: #e5e7eb; }

.lb-modal-body {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 14px;
}

/* Form fields */
.lb-fg { display: flex; flex-direction: column; gap: 5px; }
.lb-lbl { font-size: .8rem; font-weight: 600; color: #374151; }
.lb-lbl-sub { font-weight: 400; color: #9ca3af; font-size: .75rem; }
.lb-inp {
  width: 100%; padding: 8px 10px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.15); font-size: .85rem; background: #fafafa;
  box-sizing: border-box;
}
.lb-inp:focus { outline: none; border-color: var(--yuv-donkerblauw, #000644); background: #fff; }
.lb-ta { resize: vertical; min-height: 80px; }

/* Visibility toggle */
.lb-vis-toggle { display: flex; gap: 8px; }
.lb-vis-opt {
  flex: 1; text-align: center; padding: 8px; border-radius: 7px;
  border: 1.5px solid rgba(0,0,0,.12); cursor: pointer; font-size: .82rem;
  transition: all .15s; user-select: none;
}
.lb-vis-opt input { display: none; }
.lb-vis-opt--selected-prive {
  border-color: var(--yuv-donkerblauw, #000644);
  background: rgba(0,6,68,.06); font-weight: 600;
}
.lb-vis-opt--selected-publiek {
  border-color: var(--yuv-lime, #A7FF00);
  background: rgba(167,255,0,.12); font-weight: 600;
}

/* Photo drop zone */
.lb-photo-drop {
  border: 1.5px dashed rgba(0,0,0,.2); border-radius: 7px;
  padding: 16px 12px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .8rem; color: #9ca3af; transition: all .15s;
}
.lb-photo-drop:hover, .lb-photo-drop.dragover {
  border-color: var(--yuv-donkerblauw, #000644); background: rgba(0,6,68,.03);
}
.lb-photo-previews { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.lb-photo-thumb { position: relative; width: 60px; height: 60px; }
.lb-photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.1);
}
.lb-photo-remove {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; border: none; cursor: pointer;
  font-size: .6rem; display: flex; align-items: center; justify-content: center;
}

/* Snapshot */
.lb-snap-selectors { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-sel { flex: 1; min-width: 140px; }
.lb-snap-range-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lb-snap-pill {
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 500;
  border: 1px solid rgba(0,0,0,.15); background: #fff; cursor: pointer;
  transition: all .15s;
}
.lb-snap-pill.active {
  background: var(--yuv-donkerblauw, #000644); color: #fff; border-color: transparent;
}
.lb-snap-custom { margin-top: 8px; }
.lb-snap-custom-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.lb-snap-dt-label { font-size: .75rem; color: #6b7280; white-space: nowrap; }
.lb-dt { flex: 1; min-width: 130px; font-size: .78rem; }
.lb-snap-apply-btn {
  padding: 6px 12px; border-radius: 5px; font-size: .78rem; font-weight: 600;
  background: var(--yuv-donkerblauw, #000644); color: #fff; border: none; cursor: pointer;
}
.lb-snap-lock-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 10px;
  background: #f9fafb; border-radius: 6px; border: 1px solid rgba(0,0,0,.07);
}
.lb-snap-hint { font-size: .73rem; color: #9ca3af; flex: 1; }
.lb-snap-lock-btn {
  padding: 4px 10px; font-size: .75rem; font-weight: 600;
  background: var(--yuv-donkerblauw, #000644); color: #fff;
  border: none; border-radius: 5px; cursor: pointer;
}
.lb-snap-locked-label { font-size: .72rem; color: #059669; }
.lb-snap-clear-btn {
  background: none; border: none; cursor: pointer; color: #9ca3af; font-size: .75rem;
}
.lb-snap-info {
  border: 1px solid rgba(0,0,0,.08); border-radius: 7px; padding: 10px 12px;
  background: #f9fafb; display: flex; flex-direction: column; gap: 5px;
}
.lb-snap-info-title { font-size: .8rem; font-weight: 600; }
.lb-snap-info-row { display: flex; gap: 8px; font-size: .78rem; }
.lb-snap-info-row span { color: #6b7280; min-width: 50px; }

/* Modal actions */
.lb-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px;
}
.lb-cancel-btn {
  padding: 8px 16px; border-radius: 6px; font-size: .85rem;
  background: #f3f4f6; border: 1px solid rgba(0,0,0,.1); cursor: pointer;
}
.lb-cancel-btn:hover { background: #e5e7eb; }
.lb-save-btn {
  padding: 8px 18px; border-radius: 6px; font-size: .85rem; font-weight: 600;
  background: var(--yuv-donkerblauw, #000644); color: #fff; border: none; cursor: pointer;
}
.lb-save-btn:hover { opacity: .85; }
.lb-save-btn:disabled { opacity: .5; cursor: not-allowed; }

/* View modal */
.lb-view-meta {
  font-size: .8rem; color: #6b7280; display: flex; align-items: center;
  flex-wrap: wrap; gap: 6px;
}
.lb-view-body { font-size: .88rem; line-height: 1.6; white-space: pre-wrap; }
.lb-view-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-view-photo {
  max-width: 200px; max-height: 160px; border-radius: 7px; object-fit: cover;
  border: 1px solid rgba(0,0,0,.1);
}
.lb-view-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* Toast */
.lb-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--yuv-donkerblauw, #000644); color: #fff;
  padding: 10px 20px; border-radius: 7px; font-size: .85rem; font-weight: 500;
  z-index: 1070; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.lb-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }
.lb-toast--error { background: var(--yuv-rood, #FF2F00); }
.lb-toast--success { background: #059669; }

/* Logbook trigger button */
.gr-logbook-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px; font-size: .82rem; font-weight: 600;
  background: var(--yuv-donkerblauw, #000644); color: #fff; border: none; cursor: pointer;
  transition: opacity .15s; white-space: nowrap;
}
.gr-logbook-btn:hover { opacity: .85; }
.gr-lb-badge {
  background: var(--yuv-lime, #A7FF00); color: var(--yuv-donkerblauw, #000644);
  border-radius: 10px; padding: 1px 6px; font-size: .7rem; font-weight: 700;
}

/* Dark mode */
body.dark .lb-panel {
  background: #1a1a2e; border-color: rgba(255,255,255,.1);
  color: #e5e7eb;
}
body.dark .lb-panel-head,
body.dark .lb-panel-filters,
body.dark .lb-panel-pagination { border-color: rgba(255,255,255,.08); }
body.dark .lb-panel-title { color: #e5e7eb; }
body.dark .lb-panel-count { background: rgba(255,255,255,.1); color: #9ca3af; }
body.dark .lb-panel-close { background: rgba(255,255,255,.1); color: #e5e7eb; }
body.dark .lb-pill { border-color: rgba(255,255,255,.15); background: transparent; color: #e5e7eb; }
body.dark .lb-panel-search { background: #0f0f1a; border-color: rgba(255,255,255,.12); color: #e5e7eb; }
body.dark .lb-entry { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
body.dark .lb-entry-title, body.dark .lb-entry-preview { color: #e5e7eb; }
body.dark .lb-pag-btn { background: #1a1a2e; border-color: rgba(255,255,255,.12); color: #e5e7eb; }
body.dark .lb-modal { background: #1a1a2e; color: #e5e7eb; }
body.dark .lb-modal-head { border-color: rgba(255,255,255,.08); }
body.dark .lb-modal-close { background: rgba(255,255,255,.1); color: #e5e7eb; }
body.dark .lb-inp { background: #0f0f1a; border-color: rgba(255,255,255,.12); color: #e5e7eb; }
body.dark .lb-vis-opt { border-color: rgba(255,255,255,.12); color: #e5e7eb; }
body.dark .lb-photo-drop { border-color: rgba(255,255,255,.15); }
body.dark .lb-snap-lock-row { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
body.dark .lb-snap-pill { background: transparent; border-color: rgba(255,255,255,.15); color: #e5e7eb; }
body.dark .lb-snap-info { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.06); }
body.dark .lb-cancel-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.1); color: #e5e7eb; }

/* ── "Open volledig" full-page link button ────────────────────── */
.lb-panel-fullpage-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all .15s ease;
}
.lb-panel-fullpage-btn:hover { background: #f3f4f6; border-color: #9ca3af; color: #000644; }
body.dark .lb-panel-fullpage-btn { border-color: rgba(255,255,255,.2); color: #e5e7eb; }
body.dark .lb-panel-fullpage-btn:hover { background: rgba(255,255,255,.05); color: #A7FF00; }

/* ── Topic filter chip ────────────────────────────────────────── */
.lb-panel-topic-chip {
  margin: 8px 16px 0;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(0,133,29,.08), rgba(0,133,29,.04));
  border: 1px solid rgba(0,133,29,.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #14532d;
}
body.dark .lb-panel-topic-chip { background: rgba(167,255,0,.08); border-color: rgba(167,255,0,.3); color: #A7FF00; }
.lb-panel-topic-chip-icon { font-size: 14px; flex-shrink: 0; }
.lb-panel-topic-chip strong { font-weight: 700; }
.lb-panel-topic-chip-clear {
  margin-left: auto;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .15s;
}
.lb-panel-topic-chip-clear:hover { background: rgba(0,0,0,.06); }
body.dark .lb-panel-topic-chip-clear:hover { background: rgba(255,255,255,.08); }

/* ── Entry type tabs in form modal ────────────────────────────── */
.lb-type-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 12px;
}
body.dark .lb-type-tabs { background: rgba(255,255,255,.05); }
.lb-type-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
}
body.dark .lb-type-tab { color: #9ca3af; }
.lb-type-tab:hover:not(.active) { background: rgba(0,0,0,.04); color: #1f2937; }
body.dark .lb-type-tab:hover:not(.active) { background: rgba(255,255,255,.05); color: #e5e7eb; }
.lb-type-tab.active {
  background: #000644;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
body.dark .lb-type-tab.active { background: #A7FF00; color: #000644; }

/* ── Taken list (form builder) ────────────────────────────────── */
.lb-taken-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  max-height: 220px;
  overflow-y: auto;
}
.lb-taken-empty {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  padding: 6px 4px;
}
.lb-taken-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
}
body.dark .lb-taken-item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.08); }
.lb-taken-item.done .lb-taken-text { text-decoration: line-through; color: #9ca3af; }
.lb-taken-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
  font-weight: 700;
  transition: all .15s;
}
body.dark .lb-taken-check { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.15); color: #A7FF00; }
.lb-taken-check:hover { border-color: #000644; }
.lb-taken-item.done .lb-taken-check { background: #16a34a; border-color: #16a34a; color: #fff; }
body.dark .lb-taken-item.done .lb-taken-check { background: #A7FF00; border-color: #A7FF00; color: #000644; }
.lb-taken-text {
  flex: 1;
  color: #1f2937;
  word-break: break-word;
}
body.dark .lb-taken-text { color: #e5e7eb; }
.lb-taken-remove {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.lb-taken-remove:hover { color: #dc2626; background: rgba(220,38,38,.08); }

.lb-taken-add {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.lb-taken-add .lb-inp { flex: 1; }
.lb-taken-add-btn {
  background: #000644;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.lb-taken-add-btn:hover { background: #1a1a4e; }
body.dark .lb-taken-add-btn { background: #A7FF00; color: #000644; }
body.dark .lb-taken-add-btn:hover { background: #c4ff4d; }

/* ── Multi-sensor checkbox list (in form) ─────────────────────── */
.lb-sensor-multi {
  margin-top: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
}
body.dark .lb-sensor-multi { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.lb-sensor-multi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.lb-sensor-multi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
}
body.dark .lb-sensor-multi-label { color: #9ca3af; }
.lb-sensor-multi-label small {
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
  color: #9ca3af;
  margin-left: 4px;
}
.lb-sensor-multi-actions { display: flex; gap: 6px; }
.lb-sensor-multi-action {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
body.dark .lb-sensor-multi-action { background: rgba(255,255,255,.05); color: #e5e7eb; border-color: rgba(255,255,255,.15); }
.lb-sensor-multi-action:hover { background: #f3f4f6; border-color: #9ca3af; }
body.dark .lb-sensor-multi-action:hover { background: rgba(255,255,255,.1); }
.lb-sensor-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.lb-sensor-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  color: #1f2937;
  user-select: none;
  transition: background .12s;
}
body.dark .lb-sensor-check { color: #e5e7eb; }
.lb-sensor-check:hover { background: #f3f4f6; }
body.dark .lb-sensor-check:hover { background: rgba(255,255,255,.05); }
.lb-sensor-check input[type="checkbox"] {
  width: 15px; height: 15px;
  cursor: pointer;
  accent-color: #000644;
  flex-shrink: 0;
}
body.dark .lb-sensor-check input[type="checkbox"] { accent-color: #A7FF00; }
.lb-sensor-check span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-sensor-empty {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  padding: 6px 4px;
  grid-column: 1 / -1;
}

/* ── Entry-feed: takenplan progress + deadline ────────────────── */
.lb-entry-task-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.lb-entry-task-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
body.dark .lb-entry-task-bar { background: rgba(255,255,255,.1); }
.lb-entry-task-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 3px;
  transition: width .3s ease;
}
.lb-entry-task-text {
  font-size: 11px;
  font-weight: 600;
  color: #16a34a;
  white-space: nowrap;
}
body.dark .lb-entry-task-text { color: #A7FF00; }

.lb-entry-deadline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 3px 8px;
  background: rgba(0,133,29,.1);
  color: #14532d;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}
.lb-entry-deadline.overdue { background: rgba(220,38,38,.1); color: #991b1b; }
body.dark .lb-entry-deadline { background: rgba(167,255,0,.1); color: #A7FF00; }
body.dark .lb-entry-deadline.overdue { background: rgba(248,113,113,.15); color: #fca5a5; }

@media (max-width: 480px) {
  .lb-panel { width: 100vw; }
}
