/* REGAB – Dark/Light für „To-do Board wählen“ + Board-Switcher-Karten.
   Gleiches Muster wie users-rights / rights-modal: Variablen + html+body.theme-dark. */

.todo-picker-modal,
.todo-board-switcher {
  --tp-surface: #10151b;
  --tp-card: #ffffff;
  --tp-card-active: #eef5ff;
  --tp-text: #172437;
  --tp-muted: #687b90;
  --tp-line: #dfe8f1;
  --tp-line-active: #3977ed;
  --tp-accent: #3977ed;
  --tp-head: #ffffff;
  --tp-head-muted: #8b98a8;
  --tp-close-bg: #151c24;
  --tp-close-line: #2a3541;
  --tp-close-fg: #cbd5e1;
}

html.theme-dark .todo-picker-modal,
html.theme-dark .todo-board-switcher,
body.theme-dark .todo-picker-modal,
body.theme-dark .todo-board-switcher {
  --tp-surface: #10151b;
  --tp-card: #0d2137;
  --tp-card-active: #17385a;
  --tp-text: #edf6ff;
  --tp-muted: #a6b9cc;
  --tp-line: #244260;
  --tp-line-active: #60a5fa;
  --tp-accent: #60a5fa;
  --tp-head: #edf6ff;
  --tp-head-muted: #9fb5cc;
  --tp-close-bg: #10243a;
  --tp-close-line: #244260;
  --tp-close-fg: #dbeafe;
}

.todo-picker-modal.todo-modal {
  background: var(--tp-surface) !important;
  color: var(--tp-head) !important;
  border-color: var(--tp-line) !important;
}

.todo-picker-modal .todo-modal-head h2 {
  color: var(--tp-head) !important;
}

.todo-picker-modal .todo-modal-head p {
  color: var(--tp-head-muted) !important;
}

.todo-picker-modal .todo-modal-head > button {
  color: var(--tp-close-fg) !important;
  background: var(--tp-close-bg) !important;
  border-color: var(--tp-close-line) !important;
}

.todo-board-switcher {
  margin-bottom: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.todo-picker-modal .todo-board-switcher {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 12px;
  overflow: visible;
  padding: 0;
}

.todo-board-switcher button,
.todo-picker-modal .todo-board-switcher button {
  min-height: 96px;
  padding: 15px;
  display: grid;
  gap: 5px;
  align-content: start;
  text-align: left;
  color: var(--tp-text) !important;
  background: var(--tp-card) !important;
  border: 1px solid var(--tp-line) !important;
  border-radius: 17px;
  box-shadow: 0 14px 34px rgba(20, 37, 56, 0.06);
  cursor: pointer;
}

.todo-picker-modal .todo-board-switcher button {
  min-height: 116px;
}

.todo-board-switcher button.is-active,
.todo-picker-modal .todo-board-switcher button.is-active {
  color: var(--tp-text) !important;
  background: var(--tp-card-active) !important;
  border-color: var(--tp-line-active) !important;
  box-shadow: inset 4px 0 var(--tp-accent);
}

.todo-board-switcher button strong,
.todo-picker-modal .todo-board-switcher button strong,
.todo-board-switcher strong {
  color: var(--tp-text) !important;
  font-size: 13px;
}

.todo-board-switcher button span,
.todo-picker-modal .todo-board-switcher button span,
.todo-board-switcher span {
  color: var(--tp-muted) !important;
  font-size: 11px;
  line-height: 1.4;
}

/* Icon-Buttons im Todo-Header (Boards / Settings / Automation) */
.todo-icon-button {
  color: #2d6cdf;
  background: #eef5ff;
  border: 1px solid #cfe0fb;
}

html.theme-dark .todo-icon-button,
body.theme-dark .todo-icon-button {
  color: #dbeafe !important;
  background: #10243a !important;
  border-color: #244260 !important;
}

html.theme-dark .todo-icon-button:hover,
body.theme-dark .todo-icon-button:hover {
  background: #17385a !important;
  border-color: #4d89de !important;
}
