/* Blauw Wit volunteer app — phone-first redesign layer.
   Load after style.css; intentionally additive for the next semantic markup pass. */
:root {
  --bw-navy: #003d71;
  --bw-blue: #0878b5;
  --bw-sky: #e8f3fa;
  --bw-ice: #f4f8fb;
  --bw-paper: #fffefa;
  --bw-ink: #193247;
  --bw-muted: #5c7181;
  --bw-line: #d7e3eb;
  --bw-green: #23674f;
  --bw-green-bg: #e6f2ec;
  --bw-amber: #895100;
  --bw-amber-bg: #fff1d9;
  --bw-danger: #9a3434;
  --bw-danger-bg: #f9eaea;
  --bw-radius: 16px;
  --bw-shadow: 0 8px 24px rgba(0, 48, 86, .075);
}

html {
  background: var(--bw-ice);
  color-scheme: light;
  scroll-padding-top: 1rem;
}

body {
  min-width: 0;
  background:
    linear-gradient(180deg, #eaf3f8 0, var(--bw-ice) 20rem, var(--bw-paper) 44rem);
  color: var(--bw-ink);
  font-family: Barlow, sans-serif;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; }
button, input, select, textarea { font: inherit; touch-action: manipulation; }

a { color: var(--bw-blue); text-underline-offset: .18em; }
a:hover { color: var(--bw-navy); }
:focus-visible { outline: 3px solid #e3a637; outline-offset: 3px; }

.wrap { width: min(100%, 1000px); margin-inline: auto; padding-inline: 16px; }
.topbar { background: var(--bw-navy); }
.topbar .tb {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  color: #eef7fc;
  font-size: 12px;
  letter-spacing: .045em;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a.pill {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: #fff;
  color: var(--bw-navy);
  font-weight: 700;
}
.topbar a.pill:hover { background: var(--bw-sky); color: var(--bw-navy); }

header.site {
  background: rgba(255,254,250,.97);
  border-bottom: 1px solid var(--bw-line);
}
header.site .sr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding-block: 10px;
}
header.site img { display: block; width: 112px; height: auto; }
header.site .logotxt { color: var(--bw-navy); }
header.site nav, .site-nav {
  display: flex;
  flex: 1 1 100%;
  gap: 6px;
  flex-wrap: wrap;
  padding-block: 2px 4px;
}
header.site nav a, .site-nav a {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 11px;
  color: var(--bw-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
header.site nav a:hover, .site-nav a:hover { background: var(--bw-sky); color: var(--bw-navy); }
header.site nav a[aria-current=page], .site-nav a[aria-current=page] {
  background: var(--bw-navy);
  color: #fff;
}

.pagehead { padding-block: 24px 12px; }
.pagehead h1 {
  margin: 0 0 8px;
  color: var(--bw-navy);
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
}
.pagehead p { max-width: 42rem; margin: 0; color: var(--bw-muted); font-size: 16px; }
#app { padding-top: 12px; padding-bottom: 32px; }
.foot {
  margin-top: 14px;
  padding-top: 18px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--bw-line);
  color: var(--bw-muted);
  font-size: 13px;
}

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.chips, .tabs, .admin-tabs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 2px 1px 7px; }
.chip {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid #c7d8e4;
  border-radius: 999px;
  background: var(--bw-paper);
  color: var(--bw-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { border-color: var(--bw-blue); background: var(--bw-sky); }
.chip[aria-pressed=true] { border-color: var(--bw-navy); background: var(--bw-navy); color: #fff; }
.summary {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid #d7e8f1;
  border-left: 4px solid var(--bw-blue);
  border-radius: 4px 13px 13px 4px;
  background: var(--bw-sky);
  color: var(--bw-ink);
  font-size: 15px;
}
.summary b { color: var(--bw-navy); }

.card {
  margin: 0 0 16px;
  overflow: visible;
  border: 1px solid var(--bw-line);
  border-radius: var(--bw-radius);
  background: var(--bw-paper);
  box-shadow: var(--bw-shadow);
}
.card.arch { opacity: .72; }
.chead { padding: 17px 16px 10px; }
.card h2 { margin: 5px 0 0; color: var(--bw-navy); font-size: 22px; line-height: 1.2; }
.tag {
  display: inline-flex;
  margin: 0 5px 4px 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bw-sky);
  color: var(--bw-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag.warn { background: var(--bw-amber-bg); color: var(--bw-amber); }
.meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 8px; color: var(--bw-muted); font-size: 13px; }
.meta span { min-width: 0; }
.intro { margin: 0; padding: 0 16px 13px; color: #365267; white-space: pre-line; }
.prog { padding: 0 16px 14px; }
.pbar { display: flex; height: 9px; overflow: hidden; border-radius: 999px; background: #e4edf3; }
.pbar i { display: block; height: 100%; }
.pbar .c { background: var(--bw-navy); }
.pbar .p { background: repeating-linear-gradient(45deg, var(--bw-blue), var(--bw-blue) 4px, #a7d1e7 4px, #a7d1e7 8px); }
.plabel { margin-top: 6px; color: var(--bw-muted); font-size: 12px; }

.project-summary { padding: 14px 16px; }
.project-summary > :first-child { margin-top: 0; }
.project-details { border-top: 1px solid var(--bw-line); background: #f8fbfd; }
.project-edit-shortcut {
  display: flex;
  justify-content: flex-start;
  padding: 0 16px 14px;
}
.project-edit-shortcut .btn { width: 100%; }
.project-main-actions { flex-wrap: wrap; gap: 8px; }
.project-mail-reason { flex-basis: 100%; margin: 0; }
.project-main-actions .btn:disabled { cursor: not-allowed; }
@media (min-width: 641px) { .project-main-actions .btn { width: auto; } }
.project-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid var(--bw-line);
  background: var(--bw-sky);
  color: var(--bw-navy);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.project-toggle:hover { background: #dcecf5; }
.project-toggle::after { content: "Details bekijken"; color: var(--bw-blue); font-size: 12px; }
.project-toggle[aria-expanded=true]::after { content: "Details verbergen"; }
.project-details[hidden] { display: none; }
.tasks { border-top: 1px solid var(--bw-line); background: #f8fbfd; }
.task { padding: 13px 16px; border-bottom: 1px solid var(--bw-line); }
.task:last-child { border-bottom: 0; }
.task h3 { margin: 0 0 3px; color: var(--bw-blue); font-size: 15px; }
.task-date { margin: 0 0 8px; color: var(--bw-muted); font-size: 14px; overflow-wrap: anywhere; }
.row > .task-date-field { grid-column: 1 / -1; min-width: 0; }
.task .d { margin: 0 0 8px; color: var(--bw-muted); font-size: 13px; }
.task-explanation { margin: 0 0 6px; }
.task-explanation > summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; padding: 5px 2px; color: var(--bw-muted); font-size: 13px; cursor: pointer; list-style: none; border-radius: 4px; }
.task-explanation > summary::-webkit-details-marker { display: none; }
.task-explanation > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; }
.task-explanation[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.task-explanation > summary:focus-visible { outline: 3px solid #e3a637; outline-offset: 3px; }
.task-explanation .d { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.task-explanation-missing { margin: 0 0 6px; }
.task-explanation-missing .link { font-size: inherit; }
.row > .task-description-field { grid-column: 1 / -1; min-width: 0; }
.taskbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.row > .task-visibility { grid-column: 1 / -1; min-width: 0; }
.taskbar h3 { flex: 1 1 100%; }
.slot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 6px 10px;
  padding: 10px 0;
  border-top: 1px dashed #cbdbe5;
}
.slot:first-of-type { border-top: 0; }
.box {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-top: 0;
  padding: 0;
  border: 2px solid var(--bw-blue);
  border-radius: 12px;
  background: var(--bw-paper);
  color: var(--bw-navy);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.box:hover { background: var(--bw-sky); }
.box.pending { border-style: dashed; background: var(--bw-amber-bg); color: var(--bw-amber); }
.box.confirmed { border-color: var(--bw-green); background: var(--bw-green); color: #fff; }
.box:disabled { border-color: #c9d5dc; background: #edf1f3; color: #71818b; cursor: not-allowed; }
.slot .what { grid-column: 2; align-self: center; font-weight: 700; }
.slot .count { grid-column: 2; color: var(--bw-muted); font-size: 13px; white-space: normal; }
.slot .count b { color: var(--bw-ink); }
.slot .who, .slot .note { grid-column: 2; min-width: 0; }
.who { display: flex; flex-wrap: wrap; gap: 5px; }
.who span { padding: 3px 9px; border: 1px solid var(--bw-navy); border-radius: 999px; background: var(--bw-navy); color: #fff; font-size: 12px; }
.who span.p { border-style: dashed; border-color: var(--bw-blue); background: var(--bw-sky); color: var(--bw-navy); }
.slot .note { color: var(--bw-blue); font-size: 12px; }
.slot .assign-action { grid-column: 2 / 4; justify-self: start; }
.need-l { display: flex; grid-column: 2; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; color: var(--bw-muted); }
input.need { width: 72px; min-height: 42px; }
.slot input.lbl { width: 100%; max-width: 320px; min-height: 42px; }
.slot:has(> .lbl), .slot:has(> input.lbl) { grid-template-columns: 44px minmax(0, 1fr); }
.cfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 0 0 var(--bw-radius) var(--bw-radius);
  background: var(--bw-sky);
  color: var(--bw-muted);
  font-size: 13px;
}
.cfoot > span { max-width: 100%; }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--bw-navy);
  border-radius: 11px;
  background: var(--bw-navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--bw-blue); background: var(--bw-blue); color: #fff; }
.btn.sec { border-color: #9bb9cc; background: #fff; color: var(--bw-navy); }
.btn.sec:hover { border-color: var(--bw-blue); background: var(--bw-sky); color: var(--bw-navy); }
.btn.sm { min-height: 38px; padding: 7px 11px; font-size: 13px; }
.btn.no { border-color: #d9aaaa; background: var(--bw-danger-bg); color: var(--bw-danger); }
.btn.no:hover { border-color: var(--bw-danger); background: var(--bw-danger); color: #fff; }
.btn:disabled { opacity: .58; cursor: wait; }
.signup-action { width: 100%; min-height: 48px; border-radius: 13px; font-size: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 7px; white-space: normal; }
.taskbar .acts, .cfoot .acts { width: 100%; }

.panel {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--bw-line);
  border-top: 4px solid var(--bw-blue);
  border-radius: 13px;
  background: var(--bw-paper);
  box-shadow: 0 5px 18px rgba(0,48,86,.045);
}
.panel h2 { margin: 0 0 5px; color: var(--bw-navy); font-size: 19px; }
.panel .sub { margin: 0 0 12px; color: var(--bw-muted); font-size: 13px; }
.empty { padding: 12px 14px; border-radius: 12px; background: var(--bw-sky); color: var(--bw-muted); }
label { display: block; margin: 12px 0 4px; color: var(--bw-navy); font-size: 13px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #a9c0d0;
  border-radius: 9px;
  background: #fff;
  color: var(--bw-ink);
}
input:focus, textarea:focus, select:focus { border-color: var(--bw-blue); outline: 3px solid rgba(8,120,181,.16); }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin-bottom: 9px; padding: 10px; border: 1px solid var(--bw-line); border-radius: 10px; }
.two { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
.hint { margin-top: 4px; color: var(--bw-muted); font-size: 12px; }
.chk, .opt { display: flex; min-height: 44px; align-items: flex-start; gap: 9px; margin: 10px 0 0; color: var(--bw-ink); font-weight: 500; }
.chk input, .opt input { width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--bw-navy); }
.opt small { color: var(--bw-muted); }
.optg { margin: 12px 0 0; color: var(--bw-blue); font-size: 13px; font-weight: 700; }
.link { min-height: 38px; padding: 5px 2px; border: 0; background: none; color: var(--bw-blue); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.badge { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.25; }
.badge.c { background: var(--bw-green-bg); color: var(--bw-green); }
.badge.p { border: 1px dashed #c79137; background: var(--bw-amber-bg); color: var(--bw-amber); }
.mine-item { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 14px; border: 1px solid var(--bw-line); border-radius: 13px; background: var(--bw-paper); box-shadow: 0 3px 12px rgba(0,48,86,.04); }
.mine-item > div:first-child { min-width: 0; flex: 1 1 100%; }
.mine-item h3 { margin: 0; color: var(--bw-navy); font-size: 16px; }
.mine-item p { margin: 4px 0 0; color: var(--bw-muted); font-size: 13px; }
.mine-item .acts { width: 100%; }

.admin-tabs { width: 100%; margin: 0 0 12px; }
.tabs .chip, .admin-tabs .chip { flex: 0 0 auto; }
.admin-account { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; color: var(--bw-muted); font-size: 13px; overflow-wrap: anywhere; }
.admin-record { margin: 0 0 10px; padding: 13px; border: 1px solid var(--bw-line); border-radius: 11px; background: var(--bw-paper); }
.admin-record > *:last-child { margin-bottom: 0; }
.admin-menu { display: flex; flex-wrap: wrap; gap: 8px; }

table { display: block; width: 100%; border-collapse: collapse; font-size: 14px; }
table tbody { display: block; width: 100%; }
table tr { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; margin: 0 0 10px; overflow-wrap: anywhere; border: 1px solid var(--bw-line); border-radius: 10px; background: var(--bw-paper); }
table tr:has(th) { display: none; }
th { padding: 8px 10px; background: var(--bw-navy); color: #fff; text-align: left; }
td { display: grid; grid-template-columns: minmax(82px, 29%) minmax(0,1fr); gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--bw-line); vertical-align: middle; }
td:last-child { border-bottom: 0; }
td::before { color: var(--bw-navy); font-weight: 700; }
table td:nth-child(1)::before { content: "Wie"; }
table td:nth-child(2)::before { content: "Project en moment"; }
table td:nth-child(3)::before { content: "Opmerking"; }
table td:nth-child(4)::before { content: "Acties"; }
#settings table td:nth-child(1)::before { content: "E-mail"; }
#settings table td:nth-child(2)::before { content: "Naam"; }
#settings table td:nth-child(3)::before { content: "Acties"; }
td.acts { display: grid; white-space: normal; }
.mrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bw-line); font-size: 14px; }
.mrow small { color: var(--bw-muted); overflow-wrap: anywhere; }
.mail { padding: 13px; border: 1px solid var(--bw-line); border-radius: 10px; background: #f8fbfd; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cedit, .slotedit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
input.contact { width: min(100%, 260px); }

.ov {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
  background: rgba(0, 35, 63, .58);
}
.dlg, .dlg.wide {
  width: 100%;
  max-width: 600px;
  max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
  overflow: auto;
  padding: 20px 17px;
  border: 1px solid #d4e1e9;
  border-radius: 20px 20px 14px 14px;
  background: var(--bw-paper);
  box-shadow: 0 16px 48px rgba(0, 30, 55, .22);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.dlg h3 { margin: 0 0 6px; color: var(--bw-navy); font-size: 20px; }
.dlg-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--bw-line);
  border-radius: 50%;
  background: var(--bw-ice);
  color: var(--bw-navy);
}
.dialog-close { position: sticky; top: 0; float: right; z-index: 1; }
.dlg .actions { position: sticky; bottom: -20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin: 16px -17px -20px; padding: 12px 17px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--bw-line); background: var(--bw-paper); }
.dlg .actions .btn { flex: 1 1 auto; min-height: 46px; }
.toast {
  position: fixed;
  z-index: 120;
  right: 14px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 14px;
  width: fit-content;
  max-width: min(540px, calc(100vw - 28px));
  margin-inline: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: var(--bw-navy);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 35, 63, .2);
  overflow-wrap: anywhere;
  transform: none;
}
.toast.err { background: var(--bw-danger); }
.toast.toast-in-dialog { bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px)); }

@media (min-width: 641px) {
  .wrap { padding-inline: 24px; }
  .topbar .tb { justify-content: flex-end; gap: 20px; padding-inline: 24px; font-size: 13px; }
  header.site .sr { flex-wrap: nowrap; min-height: 80px; padding-block: 12px; }
  header.site img { width: 148px; }
  header.site nav, .site-nav { flex: 0 1 auto; justify-content: flex-end; gap: 7px; overflow: visible; padding: 0; }
  header.site nav a, .site-nav a { flex: 0 0 auto; padding-inline: 15px; font-size: 14px; }
  .pagehead { padding-block: 34px 14px; }
  .pagehead h1 { font-size: 38px; }
  .pagehead p { font-size: 17px; }
  #app { padding-top: 14px; padding-bottom: 44px; }
  .top { gap: 18px; margin-block: 10px 18px; }
  .chips, .tabs, .admin-tabs { flex-wrap: wrap; overflow: visible; }
  .card { margin-bottom: 20px; }
  .chead { padding: 22px 24px 12px; }
  .card h2 { font-size: 26px; }
  .intro, .project-edit-shortcut { padding-inline: 24px; }
  .prog { padding: 0 24px 18px; }
  .project-summary { padding: 18px 24px; }
  .task { padding: 15px 24px; }
  .taskbar h3 { flex: 1 1 auto; }
  .slot { grid-template-columns: 34px minmax(0,1fr) auto; gap: 5px 12px; padding: 11px 0; }
  .box { width: 30px; height: 30px; border-radius: 8px; }
  .slot .what { grid-column: 2; }
  .slot .count { grid-column: 3; align-self: center; white-space: nowrap; }
  .slot .who, .slot .note { grid-column: 2 / 4; }
  .need-l { grid-column: 3; }
  .slot:has(> .lbl), .slot:has(> input.lbl) { grid-template-columns: 34px minmax(0,1fr) auto; }
  .cfoot { align-items: center; padding: 15px 24px; }
  .taskbar .acts, .cfoot .acts { width: auto; }
  .signup-action { width: auto; min-width: 190px; }
  .panel { padding: 20px 22px; }
  .row { grid-template-columns: 2fr 2fr 1fr auto; align-items: end; }
  .two { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mine-item { flex-wrap: nowrap; align-items: center; padding: 16px 18px; }
  .mine-item > div:first-child { flex: 1 1 auto; }
  .mine-item .acts { width: auto; flex: 0 0 auto; }
  table { display: table; }
  table tbody { display: table-row-group; }
  table tr { display: table-row; margin: 0; border: 0; border-radius: 0; }
  table tr:has(th) { display: table-row; }
  th, td { display: table-cell; padding: 9px 10px; }
  td::before { content: none !important; }
  tr:nth-child(even) td { background: #f0f6fa; }
  .ov { place-items: center; padding: 20px; }
  .dlg, .dlg.wide { width: min(100%, 600px); padding: 24px; border-radius: 18px; }
  .dlg .actions { bottom: -24px; margin: 18px -24px -24px; padding-inline: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .project-toggle, header.site nav a { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
}

/* Markup-specific adjustments for the functional mobile redesign. */
.project-details { border-top: 0; background: transparent; }
.project-toggle { align-items: stretch; border-top: 0; border-radius: var(--bw-radius); }
.project-toggle::after { content: none; }
.project-toggle::-webkit-details-marker { display: none; }
.project-toggle::marker { content: ""; }
.project-toggle { list-style: none; }
.project-summary { min-width: 0; flex: 1 1 auto; padding: 0; }
.project-summary h2 { overflow-wrap: anywhere; }
.project-summary .project-kicker { display: flex; flex-wrap: wrap; gap: 4px; }
.project-availability { margin: 8px 0 0; color: var(--bw-muted); font-size: 13px; }
.project-availability b { color: var(--bw-navy); }
.project-card { position: relative; }
.project-card .project-toggle { padding-right: 194px; }
.project-moments-switch {
  position: absolute;
  top: 18px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: calc(100% - 24px);
  padding: 6px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bw-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.project-moments-switch:hover { background: #dcecf5; }
.project-moments-switch:focus-visible { outline: 3px solid #e3a637; outline-offset: 3px; }
.project-switch-track {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  padding: 3px;
  border: 1px solid var(--bw-muted);
  border-radius: 999px;
  background: #e4edf3;
}
.project-switch-track::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bw-muted);
}
.project-moments-switch[aria-checked=true] .project-switch-track { border-color: var(--bw-navy); background: var(--bw-navy); }
.project-moments-switch[aria-checked=true] .project-switch-track::before { transform: translateX(18px); background: #fff; }
@media (max-width: 640px) {
  .project-card .project-toggle { padding-top: 66px; padding-right: 12px; }
  .project-moments-switch { top: 10px; right: 12px; }
}
@media (forced-colors: active) {
  .project-switch-track { border-color: ButtonText; }
  .project-switch-track::before { background: ButtonText; }
  .project-moments-switch[aria-checked=true] .project-switch-track { background: Highlight; }
  .project-moments-switch[aria-checked=true] .project-switch-track::before { background: HighlightText; }
}
.project-details[open] .project-toggle { border-radius: var(--bw-radius) var(--bw-radius) 0 0; }
.project-content { min-width: 0; }
.project-details > .cfoot { border-radius: 0 0 var(--bw-radius) var(--bw-radius); }
.public-slot { grid-template-columns: minmax(0, 1fr); }
.public-slot > * { min-width: 0; }
.public-slot > .who, .public-slot > .note { grid-column: 1 / -1; }
.public-slot .what, .public-slot .count { line-height: 1.35; }
.public-slot .count { white-space: normal; }
.public-slot .slot-meter {
  width: 100%;
  max-width: 12rem;
  height: 5px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bw-sky);
}
.public-slot .slot-meter > span { display: block; height: 100%; background: var(--bw-navy); }
.public-slot .signup-action {
  width: 100%;
  min-height: 48px;
  height: auto;
  padding: 8px 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .public-project-card .meta { gap: 2px 10px; line-height: 1.35; }
  .public-project-card .task-date { margin-bottom: 2px; }
  .public-slot { row-gap: 4px; padding-block: 7px; }
}

/* Openbare projectkeuze: één actie per rij, zonder taakbediening. */
.public-projects, .public-project-card { --public-card-inset: clamp(16px, 3vw, 24px); }
.public-projects > h2 { margin: 0 0 12px; color: var(--bw-navy); font-size: clamp(22px, 4vw, 26px); line-height: 1.2; }
.public-projects .empty, .project-load-error { margin-block: 0; }
.project-load-error { background: var(--bw-danger-bg); color: var(--bw-danger); font-style: normal; }
.project-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin-bottom: 16px;
}
.project-search { flex: 0 1 22rem; min-width: 0; }
.project-search label { margin-top: 0; }
.project-search input { font-size: 1rem; }
.project-choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.project-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 12px var(--public-card-inset);
  box-shadow: none;
}
/* Reserve a readable text column before sharing a row with the action.
   Flex wrapping gives phones the full width without measuring title text. */
.project-choice > div { flex: 1 1 22rem; min-width: 0; }
.project-choice .project-view { flex: 0 0 auto; }
.project-choice .project-choice-title { margin: 0; color: var(--bw-navy); font-size: 1.25rem; line-height: 1.2; }
.project-choice .meta { margin-top: 4px; font-size: .875rem; line-height: 1.4; }
.project-choice-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0 0; color: var(--bw-navy); font-size: .875rem; }
.project-choice-status .tag { margin: 0; }
.project-choices .project-view, .project-more { min-height: 44px; max-width: 100%; }
.project-more { margin-top: 14px; }
.public-back { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 8px; font-weight: 700; }
.public-project-card > .project-summary { padding: 14px var(--public-card-inset); }
.public-project-card .intro, .public-project-card .cfoot { padding-inline: var(--public-card-inset); }
.public-project-card .public-project-contact {
  min-width: 0;
  color: var(--bw-navy);
  font-size: 1.0625rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.public-project-card .tasks { padding: 12px var(--public-card-inset) 16px; }
.public-project-card .activities-heading { margin: 0 0 10px; font-size: 1.125rem; }
.public-project-card .public-activity {
  margin: 0 0 6px;
  padding: 0;
  border: 1px solid var(--bw-line);
  border-radius: 10px;
  background: var(--bw-paper);
}
.public-activity .activity-heading { margin: 0; color: var(--bw-navy); font-size: 1rem; }
.activity-toggle, .activity-heading[tabindex] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 10px;
  min-height: 48px;
  padding: 8px 12px;
}
.activity-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%) .5rem;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  text-align: start;
  cursor: pointer;
}
.activity-toggle:hover, .activity-toggle[aria-expanded="true"] { background: var(--bw-sky); }
.activity-toggle[aria-expanded="true"] { border-radius: 9px 9px 0 0; }
.activity-toggle::after {
  content: "";
  width: .5rem;
  height: .5rem;
  margin-bottom: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.activity-toggle[aria-expanded="true"]::after { margin-bottom: -4px; transform: rotate(225deg); }
.activity-status { margin-inline-start: auto; color: var(--bw-muted); font-size: .875em; }
.activity-toggle .activity-status { text-align: end; }
/* Natural word boundaries first; keep emergency wrapping for user input.
   Do not use break-all, ellipsis, or automatic hyphenation for these titles. */
.project-choice-title, .project-choice .meta, .project-summary,
.activity-heading, .slot-info, .taskbar h3, .admin-slot-info,
.dashboard-project-head h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
}
@media (max-width: 640px) {
  .activity-toggle { grid-template-columns: minmax(0, 1fr) .5rem; }
  .activity-toggle > :first-child { grid-column: 1 / -1; }
  .activity-toggle .activity-status { margin-inline-start: 0; text-align: start; }
  .activity-heading[tabindex] > :first-child,
  .dashboard-project-head h3 { flex-basis: 100%; }
}
.activity-panel { padding: 8px 12px 4px; border-top: 1px solid var(--bw-line); }
.activity-description { margin: 0 0 6px; white-space: pre-wrap; }
.public-project-card .cfoot .link { min-height: 44px; }
@media (min-width: 641px) {
  .public-project-card > .project-summary { padding: 18px 24px; }
}

.who .whobtn { min-height: 36px; padding: 3px 9px; border: 1px solid var(--bw-navy); border-radius: 999px; background: var(--bw-navy); color: #fff; font: inherit; font-size: 12px; }
.who .whobtn.p { border-style: dashed; border-color: var(--bw-blue); background: var(--bw-sky); color: var(--bw-navy); }
.admin-menu { display: block; min-width: 0; }
.admin-menu > summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid #9bb9cc;
  border-radius: 10px;
  background: #fff;
  color: var(--bw-navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-menu > summary::after { content: " +"; color: var(--bw-blue); }
.admin-menu[open] > summary::after { content: " −"; }
.admin-menu-items { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 8px; }
.project-actions { width: 100%; }
.admin-record { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; overflow-wrap: anywhere; }
.admin-record > div > b { display: inline-block; margin-bottom: 2px; color: var(--bw-navy); font-size: 12px; letter-spacing: .025em; }
.admin-record small { color: var(--bw-muted); }
.admin-record-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.admin-tabs { max-width: 100%; }
.admin-tabs .chip[aria-selected="true"] { border-color: var(--bw-navy); background: var(--bw-navy); color: #fff; }
.dashboard-project {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--bw-line);
  border-radius: 13px;
  background: var(--bw-ice);
}
.dashboard-project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}
.dashboard-project-head h3 { min-width: 0; margin: 0; color: var(--bw-navy); font-size: 1.05em; }
.dashboard-project-total { background: var(--bw-sky); color: var(--bw-navy); }
.dashboard-moments { margin: 0; padding: 0; list-style: none; }
.dashboard-moments li + li { margin-top: 8px; }
.dashboard-moment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 14px;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--bw-line);
  border-radius: 11px;
  background: var(--bw-paper);
  color: var(--bw-navy);
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.dashboard-moment:hover { border-color: var(--bw-blue); background: var(--bw-sky); }
.dashboard-moment > :first-child { grid-column: 1 / -1; }
.dashboard-task, .dashboard-date { display: block; }
.dashboard-task { color: var(--bw-ink); }
.dashboard-task .tag { margin-bottom: 0; }
.dashboard-date { color: var(--bw-muted); font-size: .875em; }
.dashboard-moment .badge { justify-self: start; }
.dashboard-arrow { font-size: 1.5em; line-height: 1; }
.dashboard-count {
  display: inline-block;
  min-width: 1.8em;
  padding: .1em .42em;
  border-radius: 999px;
  background: var(--bw-sky);
  text-align: center;
  font-size: .9em;
}
.admin-slot:focus { outline: 3px solid #a86900; outline-offset: 3px; border-radius: 6px; }
@media (min-width: 641px) {
  .dashboard-moment { grid-template-columns: minmax(0, 1fr) auto auto; }
  .dashboard-moment > :first-child { grid-column: 1; }
}
.assign-context { margin: 8px 0 14px; color: var(--bw-muted); font-size: 14px; }
.assign-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.assign-switch .btn { flex: 1 1 190px; }
.assign-switch .btn[aria-pressed="true"] { border-color: var(--bw-navy); background: var(--bw-navy); color: #fff; }
.assign-results { display: grid; gap: 7px; margin-top: 8px; }
.assign-person { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--bw-line); border-radius: 10px; background: #fff; color: var(--bw-ink); font-weight: 500; overflow-wrap: anywhere; }
.assign-person:has(input:checked) { border-color: var(--bw-blue); background: var(--bw-sky); }
.assign-person input { flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--bw-navy); }
.assign-person span { min-width: 0; }
.assign-error { color: var(--bw-danger); }
.admin-tabs .chip { white-space: nowrap; }
.admin-account { max-width: 100%; }
.admin-account .link { min-height: 44px; }
.form-section { min-width: 0; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--bw-line); }
.form-section h4 { margin: 0; color: var(--bw-blue); font-size: 15px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--bw-line); border-radius: 50%; background: var(--bw-ice); color: var(--bw-navy); font-size: 23px; font-weight: 700; cursor: pointer; }
.dlg > h3 { clear: both; padding-top: 4px; }

.signup-dialog {
  --signup-secondary-text: #415667;
  --signup-control-border: #59758a;
}
.signup-dialog .signup-context { margin: 0; }
.signup-dialog :is(.signup-context, .hint) { color: var(--signup-secondary-text); }
.signup-dialog :is(input, textarea, .btn.sec, .dialog-close) { border-color: var(--signup-control-border); }
.signup-dialog :is(input, textarea)::placeholder { color: var(--signup-secondary-text); opacity: 1; }
.signup-dialog .btn:hover { filter: none; }
.signup-dialog .btn:not(.sec):is(:hover, :disabled, [aria-disabled="true"]) { background: #07588e; border-color: #07588e; }
.signup-dialog .btn:disabled { opacity: 1; }
/* Keep the outline separated from the control by the light dialog surface. */
.signup-dialog :is(input, textarea, button, summary):focus {
  outline: 3px solid #935600;
  outline-offset: 2px;
}
/* The question receives screen-reader focus, but is not an interactive control.
   Override the global :focus-visible outline only for this heading. */
.signup-dialog h4:focus { outline: none; }

.mine-item .acts .btn { min-width: 0; flex: 1 1 9rem; }
body.dialog-open { overflow: hidden; }

.ov.signup-overlay {
  top: var(--signup-viewport-top, 0px);
  bottom: auto;
  height: 100dvh;
  height: var(--signup-viewport-height, 100dvh);
}
.signup-overlay .dlg {
  max-width: 480px;
  max-height: 100%;
  min-height: 0;
  scroll-padding-block: 8px;
  overflow-wrap: anywhere;
}
.signup-overlay .dialog-close { position: static; }
.signup-overlay h3 { clear: none; padding: 0; }
.signup-overlay h4 { margin: 12px 0 0; color: var(--bw-navy); font-size: 1em; }
.signup-overlay .signup-context { margin-right: 52px; }
.signup-overlay form p { margin: 6px 0 0; font-size: .9em; }
.signup-overlay label { margin-top: 8px; font-size: .9em; }
.signup-overlay textarea { min-height: 70px; }
.signup-overlay details { margin-top: 4px; }
.signup-overlay summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 10px;
  color: var(--bw-navy);
  font-size: .9em;
  font-weight: 700;
  cursor: pointer;
}
.signup-overlay .signup-error { color: var(--bw-danger); }
.signup-overlay [aria-invalid="true"] { border-color: var(--bw-danger); }
.signup-overlay [aria-disabled="true"] { cursor: wait; }
/* A footer in the scroll flow cannot cover fields on very short screens. */
.signup-overlay .dlg .actions {
  position: static;
  margin: 10px 0 0;
  padding: 10px 0 0;
}
.signup-overlay .actions .btn { min-width: 0; max-width: 100%; }
.signup-overlay [hidden] { display: none; }

@media (max-width: 640px) {
  .slot .assign-action { grid-column: 2; justify-self: stretch; }
  .wrap { padding-inline: 12px; }
  .topbar .tb { gap: 8px; padding-inline: 12px; font-size: 11px; }
  .topbar a.pill { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: 10px; }
  header.site .sr { gap: 8px 12px; padding-inline: 12px; }
  header.site img { width: 112px; }
  header.site nav, .site-nav { flex: 1 1 100%; }
  .pagehead { padding-top: 20px; }
  .pagehead p { font-size: 15px; }
  .chip, .btn, .link { min-height: 44px; }
  .btn.sm { min-height: 44px; }
  .project-toggle { padding: 13px 12px; gap: 8px; }
  .project-summary h2 { font-size: 21px; }
  .card { overflow: visible; }
  .chead { padding-inline: 12px; }
  .intro, .prog, .project-edit-shortcut { padding-inline: 12px; }
  .task { padding-inline: 12px; }
  .cfoot { padding-inline: 12px; }
  .admin-menu-items { display: grid; grid-template-columns: minmax(0,1fr); }
  .admin-menu-items > * { width: 100%; }
  .admin-tabs .chip { flex: 0 0 auto; }
  .admin-record-actions > * { min-height: 44px; }
  .dlg, .dlg.wide {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: max(16px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
  }
  .ov { display: block; padding: 0; }
  .dlg .actions {
    bottom: calc(-1 * max(20px, env(safe-area-inset-bottom)));
    margin: 16px -16px calc(-1 * max(20px, env(safe-area-inset-bottom)));
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  }
  .dlg .actions .btn { min-height: 48px; }
  .dlg input, .dlg textarea, .dlg select { font-size: 16px; }
  .dlg-close, .dialog-close { min-width: 44px; min-height: 44px; }
  .signup-overlay .dlg { max-width: none; height: 100%; }
  .row { grid-template-columns: minmax(0,1fr); }
  .row .btn { min-height: 44px; }
  .slot input.need { min-height: 44px; }
  .mine-item .acts .btn { flex-basis: 100%; }
}

@media (max-width: 380px) {
  .project-toggle { flex-wrap: wrap; }
  .project-summary { flex: 1 1 100%; }
}

@media (min-width: 641px) {
  .project-toggle { align-items: center; }
  .project-summary { padding: 0; }
  .activity-panel > .public-slot {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 40%);
    align-items: center;
  }
  .public-slot .signup-action { width: auto; min-width: 190px; max-width: 100%; justify-self: start; }
  .admin-record { grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1fr) auto; align-items: center; }
  .project-actions { width: auto; }
}

.volunteer-record { align-items: start; }
.volunteer-record h3 { margin: 0 0 4px; overflow-wrap: anywhere; }
.volunteer-record .admin-record-actions { flex-direction: column; align-items: flex-start; }
.volunteer-signups { grid-column: 1 / -1; min-width: 0; }
.volunteer-signups > b { display: block; color: var(--bw-navy); margin-bottom: 5px; }
.volunteer-signup { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,135px) auto; gap: 8px 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--bw-line); font-size: 14px; overflow-wrap: anywhere; }
.volunteer-signup .badge { justify-self: start; }
.volunteer-signup small { color: var(--bw-muted); }
.volunteer-record a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .volunteer-signup { grid-template-columns: minmax(0,1fr); gap: 4px; }
  .volunteer-cancel { justify-self: start; min-height: 44px; }
}

.help-entry { margin-bottom: clamp(20px, 4vw, 32px); }
.project-help { padding: 0 var(--public-card-inset) 16px; background: #f8fbfd; }
.help-action { min-height: 44px; max-width: 100%; }
.public-slot:focus, .signup-result:focus, .signup-overlay .signup-error:focus { outline: 3px solid #935600; outline-offset: 2px; }
.signup-overlay fieldset { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
.signup-overlay legend { padding: 0; color: var(--signup-secondary-text); }
.signup-option { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--signup-control-border); border-radius: 9px; cursor: pointer; }
.signup-option:has(input:checked) { background: var(--bw-sky); border-color: var(--bw-navy); }
.signup-option input, .signup-remember input { flex: 0 0 auto; }
.signup-option > span { min-width: 0; }
.signup-option span span, .signup-option strong { display: block; }
.signup-task-description { white-space: pre-wrap; }
.signup-overlay :is(#signup-project, #signup-context) { margin: 8px 0; }
.signup-overlay #signup-project { font-weight: 700; }
.signup-profile-actions { display: flex; flex-wrap: wrap; gap: 0 12px; }
.signup-profile-actions .link { color: var(--bw-navy); }
.signup-overlay .signup-remember { min-height: 0; cursor: pointer; }
@media (min-width: 641px) { .project-help { padding-inline: 24px; } }

/* Beheermomenten hebben hun eigen indeling, los van openbare momenten. */
.slot.admin-slot {
  display: block;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--bw-line);
  border-radius: 12px;
  background: #fff;
}
.admin-slot-header { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 24px; }
.admin-slot-info { flex: 1 1 240px; min-width: 0; }
.admin-slot-info h4 { margin: 0; color: var(--bw-navy); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.admin-slot-info .slot-time { margin: 4px 0 0; color: var(--bw-ink); }
.admin-slot .count { margin: 8px 0 0; white-space: normal; font-size: 14px; }
.admin-slot .count strong { color: var(--bw-navy); }
.admin-slot-actions { display: flex; flex: 0 1 225px; flex-direction: column; gap: 8px; min-width: 0; max-width: 100%; }
.admin-slot-actions .btn, .moment-menu > summary, .admin-slot .whobtn {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.admin-slot .assign-action { align-self: stretch; }
.moment-menu { min-width: 0; }
.moment-menu > summary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; color: var(--bw-muted);
  font-size: 14px; cursor: pointer; list-style: none;
}
.moment-menu > summary::-webkit-details-marker { display: none; }
.moment-menu > summary::after { content: "⌄"; }
.moment-menu[open] > summary::after { content: "⌃"; }
.moment-menu > summary:hover { background: var(--bw-ice); color: var(--bw-navy); }
.moment-menu-items { padding-top: 4px; }
.moment-menu-items .btn { width: 100%; }
.admin-slot-volunteers { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bw-line); }
.admin-slot-volunteers > p { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--bw-muted); }
.admin-slot .who { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-slot .whobtn {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 8px 12px; border: 1px solid var(--bw-navy); border-radius: 9px;
  background: var(--bw-navy); color: #fff; font: inherit; font-size: 15px; text-align: left;
}
.admin-slot .whobtn small { display: block; font-size: 12px; font-weight: 400; }
.admin-slot .whobtn.p { border: 1px dashed var(--bw-amber); background: var(--bw-amber-bg); color: var(--bw-amber); }
.admin-slot-empty { margin: 14px 0 0; font-size: 14px; color: var(--bw-muted); }
.moment-overlay { top: var(--moment-top, 0px); bottom: auto; height: var(--moment-height, 100dvh); }
.moment-dialog { max-height: 100%; scroll-padding-block: 16px; }
.moment-dialog input, .moment-dialog select, .moment-dialog .btn { min-width: 44px; min-height: 44px; }
.moment-dialog .actions { position: static; }
.moment-dialog .dialog-close { position: static; float: none; margin: 0 0 8px auto; }
.moment-dialog .moment-error { color: var(--bw-danger); padding: 10px; border: 1px solid currentColor; border-radius: 8px; }
.moment-dialog .moment-error[hidden] { display: none; }
.moment-dialog .slot-time-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .slot.admin-slot { padding: 12px; }
  .admin-slot-header { flex-direction: column; gap: 12px; }
  .admin-slot-info, .admin-slot-actions { flex: none; width: 100%; }
  .moment-dialog { height: 100%; max-height: 100%; }
}
