/* PixlWall CRM — centrale designvariabelen. Pas de accentkleur hier aan. */
:root {
  --accent: #3b5bdb;
  --accent-hover: #2f4ac0;
  --accent-soft: #edf1ff;
  --accent-text: #ffffff;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-muted: #f9fafb;
  --border: #e2e5ea;
  --border-strong: #cfd4dc;
  --text: #1c2330;
  --text-muted: #5f6b7a;
  --focus: #1d4ed8;

  --success: #15803d;
  --success-soft: #e8f6ed;
  --warning: #a15c00;
  --warning-soft: #fff4e0;
  --danger: #c02626;
  --danger-soft: #fdecec;
  --info: #1d4ed8;
  --info-soft: #eaf1ff;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .16);
  --sidebar-width: 236px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.5rem; font-weight: 650; }
h2 { font-size: 1.05rem; font-weight: 650; }
h3 { font-size: .95rem; font-weight: 600; }
p { margin: 0 0 .75rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.icon { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width); flex: none; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 700; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-size: .9rem; }
.brand small { display: block; font-weight: 500; color: var(--text-muted); font-size: .75rem; }
.nav { list-style: none; margin: 0; padding: 6px 10px; flex: 1; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
.nav a:hover { background: var(--surface-muted); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.sidebar-footer { border-top: 1px solid var(--border); padding: 12px 14px; font-size: .85rem; }
.sidebar-footer form { margin-top: 6px; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
main { padding: 26px 30px 60px; max-width: 1400px; width: 100%; }
.sidebar-backdrop { display: none; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 40; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .topbar-title { font-weight: 600; }
  main { padding: 18px 16px 50px; }
}

/* ---------- Page header ---------- */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-header .subtitle { color: var(--text-muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 550;
  cursor: pointer; line-height: 1.2; min-height: 38px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-muted); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { color: var(--danger); border-color: #efc2c2; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(.95); background: var(--success); }
.btn-sm { padding: 5px 10px; min-height: 30px; font-size: .85rem; }
.btn-link { background: none; border: none; color: var(--accent); padding: 0; min-height: 0; font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn[disabled], .btn.is-busy { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text); }
.inline-form { display: inline; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 18px 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 1000px) { .grid-2, .grid-halves { grid-template-columns: 1fr; } }

.stat { display: block; padding: 16px 18px; color: var(--text); }
.stat:hover { text-decoration: none; border-color: var(--accent); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: .85rem; font-weight: 550; }
.stat-value { font-size: 1.7rem; font-weight: 700; margin-top: 6px; }
.stat-sub { color: var(--text-muted); font-size: .85rem; }
.stat.is-alert .stat-value { color: var(--danger); }

/* ---------- Details ---------- */
.details { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--text-muted); font-size: .9rem; }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } .details dt { margin-top: 6px; } }
.prose { white-space: normal; overflow-wrap: anywhere; }

/* ---------- Lists ---------- */
.item-list { list-style: none; margin: 0; padding: 0; }
.item-list > li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 11px 20px; border-top: 1px solid var(--border); }
.item-list > li:first-child { border-top: none; }
.item-title { font-weight: 550; }
.item-meta { color: var(--text-muted); font-size: .85rem; }
.item-main { min-width: 0; flex: 1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); font-weight: 600; background: var(--surface-muted); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-muted); }
.table .num { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .table-responsive thead { display: none; }
  .table-responsive tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .table-responsive td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 5px 14px; }
  .table-responsive td::before { content: attr(data-label); color: var(--text-muted); font-size: .85rem; }
  .table-responsive .num { text-align: right; }
}

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-muted); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: currentColor; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c4c4; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: #f5d9a8; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: #bfe3cb; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #c7d7fb; }
.badge-muted { color: var(--text-muted); }
.prio-high { color: var(--danger); }
.prio-low { color: var(--text-muted); }

/* ---------- Alerts ---------- */
.flash-stack { margin-bottom: 16px; display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid; }
.alert p { margin: 0; }
.alert-success { background: var(--success-soft); border-color: #bfe3cb; color: #14532d; }
.alert-error { background: var(--danger-soft); border-color: #f3c4c4; color: #7f1d1d; }
.alert-warning { background: var(--warning-soft); border-color: #f5d9a8; color: #6b3d00; }
.alert-info { background: var(--info-soft); border-color: #c7d7fb; color: #1e3a8a; }
.alert .alert-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; padding: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-section + .form-section { margin-top: 22px; }
.form-section h2 { margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-weight: 550; font-size: .9rem; }
.field .req { color: var(--danger); }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url], .field input[type=password],
.field input[type=date], .field input[type=time], .field input[type=number], .field input[type=search], .field input[type=color], .field select, .field textarea,
.control {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text);
  font: inherit; min-height: 38px;
}
.field input[type=color] { padding: 3px; height: 38px; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus, .control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 91, 219, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .85rem; margin: 0; font-weight: 500; }
.field-help { color: var(--text-muted); font-size: .82rem; margin: 0; }
.field-check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.field-check input { width: 18px; height: 18px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { min-width: 160px; }
.filters .grow { flex: 1; min-width: 200px; }
.error-summary { margin-bottom: 16px; }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs a { padding: 8px 12px; border-bottom: 2px solid transparent; color: var(--text-muted); font-weight: 550; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.tabs .count { font-size: .75rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.segmented { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; background: var(--surface); }
.segmented a { padding: 7px 12px; color: var(--text); display: inline-flex; gap: 6px; align-items: center; font-weight: 500; }
.segmented a + a { border-left: 1px solid var(--border-strong); }
.segmented a:hover { background: var(--surface-muted); text-decoration: none; }
.segmented a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 34px 20px; color: var(--text-muted); }
.empty .icon { width: 30px; height: 30px; margin-bottom: 8px; color: var(--border-strong); }
.empty h3 { color: var(--text); margin-bottom: 4px; }
.empty .btn { margin-top: 10px; }
.empty-inline { padding: 14px 20px; color: var(--text-muted); margin: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- Kanban ---------- */
.board { position: relative; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.board-col { flex: 0 0 272px; background: #eef0f3; border-radius: var(--radius); display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.board-col-head { padding: 11px 12px 8px; display: flex; flex-direction: column; gap: 2px; border-top: 4px solid var(--stage-color, var(--border-strong)); border-radius: var(--radius) var(--radius) 0 0; }
.board-col-title { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: .92rem; }
.board-col-sum { font-size: .8rem; color: var(--text-muted); }
.board-list { list-style: none; margin: 0; padding: 4px 8px 10px; min-height: 60px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 var(--radius) var(--radius); }
.board-list.is-over { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -4px; }
.board-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 11px; box-shadow: var(--shadow); cursor: grab; }
.board-card.is-dragging { opacity: .5; }
.board-card.is-saving { opacity: .7; }
.board-card-title { font-weight: 600; display: block; color: var(--text); margin-bottom: 2px; overflow-wrap: anywhere; }
.board-card-meta { font-size: .82rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.board-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; }
.board-card select { font-size: .8rem; padding: 3px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); max-width: 150px; font-family: inherit; }
.board-empty { font-size: .82rem; color: var(--text-muted); text-align: center; padding: 10px; }
.card-overdue { border-left: 4px solid var(--danger); }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-heading { font-size: 1.1rem; font-weight: 650; margin: 0 6px; }
.cal-layers { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.cal-layers label { display: flex; gap: 6px; align-items: center; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.month-grid .dow { padding: 8px; font-size: .78rem; font-weight: 650; text-transform: uppercase; color: var(--text-muted); background: var(--surface-muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.month-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); min-width: 0; }
.month-day.is-other { background: var(--surface-muted); }
.month-day.is-other .day-num { color: var(--text-muted); }
.day-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-size: .85rem; font-weight: 600; color: var(--text); }
.day-num:hover { background: var(--accent-soft); text-decoration: none; }
.is-today .day-num { background: var(--accent); color: var(--accent-text); }
.day-head { display: flex; justify-content: space-between; align-items: center; }
.day-add { opacity: 0; font-size: .8rem; color: var(--text-muted); }
.month-day:hover .day-add, .day-add:focus { opacity: 1; }
.cal-items { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cal-item { display: flex; gap: 5px; align-items: baseline; font-size: .8rem; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--text); overflow: hidden; border-left: 3px solid var(--accent); }
.cal-item:hover { text-decoration: none; filter: brightness(.97); }
.cal-item .t { color: var(--text-muted); white-space: nowrap; flex: none; }
.cal-item .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.type-design_review { background: #f1ecff; border-color: #7c3aed; }
.cal-item.type-execution { background: #e6f6f3; border-color: #0d9488; }
.cal-item.type-other { background: #f1f3f5; border-color: #6b7280; }
.cal-item.type-task { background: #fff6e5; border-color: #d97706; }
.cal-item.type-project { background: #fdecec; border-color: #dc2626; }
.cal-item.is-done .n { text-decoration: line-through; color: var(--text-muted); }
.cal-item .kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); flex: none; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.week-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-height: 220px; padding: 8px; min-width: 0; }
.week-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.week-day-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .85rem; font-weight: 600; }
.week-day .cal-item { white-space: normal; flex-wrap: wrap; }
.week-day .cal-item .n { white-space: normal; }
@media (max-width: 1000px) {
  .week-grid { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .month-grid .dow { font-size: .7rem; padding: 4px; }
  .month-day { min-height: 70px; padding: 3px; }
  .cal-item .t { display: none; }
}
@media (max-width: 600px) {
  .month-day .cal-items { display: none; }
  .month-day.has-items .day-num { box-shadow: inset 0 -3px 0 var(--accent); }
}
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: .8rem; color: var(--text-muted); }
.legend span { display: inline-flex; gap: 5px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border-left: 3px solid; }
.day-list-date { padding: 10px 20px; background: var(--surface-muted); font-weight: 650; border-top: 1px solid var(--border); font-size: .9rem; }
.day-list-date:first-child { border-top: none; border-radius: var(--radius) var(--radius) 0 0; }

/* ---------- Notes & history ---------- */
.note { padding: 12px 20px; border-top: 1px solid var(--border); }
.note-meta { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--text-muted); margin-bottom: 4px; }
.timeline { list-style: none; margin: 0; padding: 8px 20px 14px; }
.timeline li { position: relative; padding: 6px 0 6px 18px; font-size: .88rem; border-left: 2px solid var(--border); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }

/* ---------- Auth / install ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.wide { max-width: 760px; }
.auth-card .brand { padding: 0 0 16px; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.checks li:first-child { border-top: none; }
.checks .label { font-weight: 600; min-width: 170px; }
@media (max-width: 560px) { .checks li { flex-direction: column; gap: 2px; } }
.code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface-muted); border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: .85rem; overflow-wrap: anywhere; }

/* ---------- Dialog ---------- */
dialog.modal { border: none; border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-lg); width: min(440px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(15, 23, 42, .4); }
.modal-body { padding: 20px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-muted); }

/* ---------- Stage settings ---------- */
.stage-row { display: grid; grid-template-columns: 1fr 70px 150px auto; gap: 10px; align-items: end; }
.stage-row .actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 800px) { .stage-row { grid-template-columns: 1fr 1fr; } .stage-row .actions { grid-column: 1 / -1; } }
.stage-delete { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

@media print { .sidebar, .topbar, .page-actions, .form-actions { display: none !important; } main { padding: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Kanban: toestand volgt de fase-soort (ook na slepen) ---------- */
.board-card:not([data-kind="won"]) .when-won { display: none; }
.board-card[data-overdue="1"][data-kind="active"] { border-left: 4px solid var(--danger); }
.board-card:not([data-kind="active"]) .overdue-flag { display: none; }
#toast-region { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
#toast-region .alert { box-shadow: var(--shadow-lg); }
