:root {
  --bg: #f5f6f8; --card: #ffffff; --text: #1d2330; --muted: #6b7280; --border: #dfe3ea;
  --primary: #3f51b5; --primary-text: #ffffff; --danger: #c62828; --ok: #2e7d32;
  --free: rgba(46, 125, 50, 0.16); --window: #ff8f00;
  --soft: #eef0f5; --tile: #c5cae9; --tile-text: #1d2330; --head-font: Georgia, "Times New Roman", serif;
  --banner: repeating-linear-gradient(135deg, #c5cae9 0 22px, #e8eaf6 22px 44px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151c; --card: #1b2029; --text: #e6e9ef; --muted: #9aa3b2; --border: #2c3340;
    --primary: #7986cb; --primary-text: #0f1220; --danger: #ef5350; --ok: #66bb6a;
    --free: rgba(102, 187, 106, 0.18);
    --soft: #222836; --tile: #3949ab; --tile-text: #e6e9ef;
    --banner: repeating-linear-gradient(135deg, #283593 0 22px, #1b2029 22px 44px);
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
h3 { font-size: 1rem; margin: 1rem 0 .25rem; }
a { color: var(--primary); }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.topbar .brand { font-weight: 700; text-decoration: none; color: var(--text); font-family: var(--head-font); }
.topbar nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.topbar nav a { padding: .35rem .7rem; border-radius: 6px; text-decoration: none; color: var(--muted); }
.topbar nav a.active, .topbar nav a:hover { background: var(--bg); color: var(--text); }
.container { max-width: 960px; margin: 1.25rem auto; padding: 0 1rem; }
.narrow { max-width: 560px; margin: 2rem auto; padding: 0 1rem; }
.wide { padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
label { display: block; margin: .5rem 0; color: var(--muted); font-size: .9rem; }
label.check { display: flex; align-items: center; gap: .4rem; color: var(--text); }
input, select, textarea, button, .button {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; padding: .45rem .6rem;
}
label > input:not([type=checkbox]):not([type=radio]):not([type=range]), label > select, label > textarea { display: block; width: 100%; margin-top: .2rem; }
input[type=range] { width: 100%; padding: 0; }
button, .button { cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { border-color: var(--primary); }
.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.danger { color: var(--danger); }
button.link { border: 0; background: none; color: var(--primary); padding: 0 .3rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.error { color: var(--danger); }
.ok { color: var(--ok); }
.status { min-height: 1.2em; font-size: .9rem; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; }
.row > label { flex: 1 1 140px; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .75rem; }
.actions form { margin: 0; }
.actions input[type=text] { flex: 1 1 260px; }
.spacer { flex: 1; }

/* agenda */
.layout { display: grid; grid-template-columns: 290px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.panel section { margin-bottom: 1rem; }
.tabs { display: flex; gap: .25rem; margin-bottom: 1rem; }
.tab { flex: 1; }
.tab.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
#calendar { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .75rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .85rem; }
.legend i { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.windows { list-style: none; padding: 0; margin: .5rem 0; font-size: .9rem; }
.windows li { padding: .2rem 0; border-bottom: 1px dashed var(--border); }
#offerResult:not([hidden]) { display: grid; gap: .4rem; margin-top: .6rem; }
.stack { display: grid; gap: .4rem; margin-top: .5rem; }
.guest { border-top: 1px dashed var(--border); margin-top: .5rem; padding-top: .25rem; }
.copy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .6rem; }
button.whatsapp { background: #25d366; color: #0b2b18; border-color: #25d366; }
.fc .free-block { background: var(--free) !important; opacity: 1; }
.fc .other-person { opacity: .35; }
.offer-mode .fc .fc-event:not(.offer-window) { pointer-events: none; }
.fc .offer-window { background: var(--window) !important; border-color: var(--window) !important; cursor: pointer; }
.fc { --fc-border-color: var(--border); --fc-page-bg-color: var(--card); --fc-neutral-bg-color: var(--bg); --fc-today-bg-color: rgba(63, 81, 181, .07); }
.fc .fc-button-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.fc .fc-button-primary:not(:disabled).fc-button-active { filter: brightness(.85); }

dialog { border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); width: min(560px, 95vw); padding: 1.25rem; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }

/* links */
.offer-head { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; border: 1px solid var(--border); }
.badge.open { color: var(--ok); border-color: var(--ok); }
.badge.geboekt { color: var(--primary); border-color: var(--primary); }
.badge.aangevraagd { color: var(--danger); border-color: var(--danger); }
.nav-count { display: inline-block; min-width: 1.2em; padding: 0 .35em; margin-left: .25em; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; text-align: center; }
.card.offer.aangevraagd { border-color: var(--danger); }
.flash { padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1rem; }
.flash.error { border-color: var(--danger); }
.flash.ok { border-color: var(--ok); }
.fc-event.pending { opacity: .7; border-style: dashed !important; background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,.15) 6px 12px); }
.reject-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.reject-form input { flex: 1; min-width: 12rem; }
.offer.gesloten { opacity: .65; }

/* instellingen */
.days { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
table { border-collapse: collapse; width: 100%; }
table.roster th, table.roster td { text-align: left; padding: .25rem; font-size: .9rem; }
table.roster input, table.roster select { width: 100%; }
.status-table th, .status-table td { text-align: left; padding: .35rem .4rem; border-bottom: 1px solid var(--border); }

/* publieke pagina */
fieldset.day { border: 0; padding: 0; margin: 1rem 0; }
fieldset.day legend { font-weight: 600; margin-bottom: .4rem; }
.times { display: flex; flex-wrap: wrap; gap: .4rem; }
.time input { position: absolute; opacity: 0; }
.time span { display: inline-block; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); background: var(--bg); cursor: pointer; }
.time input:checked + span { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.time input:focus-visible + span { outline: 2px solid var(--primary); }
.time { margin: 0; position: relative; }

/* widgets */
.widget { margin-top: 1rem; }
.postit, .card-widget { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .75rem .85rem; }
.postit h3, .card-widget h3 { margin: 0; color: #b08800; }
.postit h4 { margin: .7rem 0 .2rem; font-size: .9rem; color: #b08800; }
@media (prefers-color-scheme: dark) {
  .postit h3, .postit h4, .card-widget h3 { color: #f6bf26; }
}
.rave-list, .plain-list { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.rave-list li { padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.plain-list li { padding: .25rem 0; }
.plain-list li.today { font-weight: 600; }
.rave-actions { display: flex; gap: .35rem; margin-top: .3rem; flex-wrap: wrap; }
button.small { font-size: .78rem; padding: .15rem .55rem; }
button.small.danger { color: var(--danger); }
.small { font-size: .8rem; }
.rave-form { border-top: 1px solid var(--border); margin-top: .6rem; padding-top: .4rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin: .4rem 0; }
.seg label { margin: 0; text-align: center; cursor: pointer; }
.seg input { display: none; }
.seg span { display: block; padding: .35rem .2rem; font-size: .82rem; color: var(--muted); }
.seg input:checked + span { background: var(--primary); color: var(--primary-text); }
.seg[hidden] { display: none; }
.field-title { color: var(--muted); font-size: .9rem; margin: .5rem 0 .2rem; }
.link-rows { display: grid; gap: .3rem; }
.link-row { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: .3rem; align-items: center; }
.link-row input, .link-row select { min-width: 0; width: 100%; box-sizing: border-box; }
.photo-field input[type=file] { width: 100%; font-size: .8rem; }
.photo-info { font-size: .85rem; margin-top: .2rem; }
.fc .recovery { background: var(--border) !important; border-color: var(--border) !important; color: var(--muted) !important; }
.widget > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.widget > summary::-webkit-details-marker { display: none; }
.widget > summary::after { content: "\25BE"; font-size: .9rem; }
.widget:not([open]) > summary::after { content: "\25B8"; }
.widget > summary h3 { margin: 0; }
.widget[open] > summary { margin-bottom: .4rem; }

.invite:not([hidden]) { display: grid; gap: .5rem; margin-top: .5rem; }
.invite .code { font-family: ui-monospace, monospace; font-size: 1.15rem; letter-spacing: .15em; font-weight: 600; }
.invite-text { width: 100%; box-sizing: border-box; font: inherit; }
.mail-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.mail-form input { flex: 1; min-width: 10rem; }
.button.whatsapp { background: #25d366; color: #0b2b18; border-color: #25d366; }
.rave-links { display: flex; gap: .6rem; font-size: .8rem; }
.rave-links a { color: inherit; text-decoration: underline; }
.guest-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.guest-form input { flex: 1 1 9rem; min-width: 0; }
.contact-results { list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .85rem; }
.contact-results li { padding: .15rem 0; border-bottom: 1px dashed var(--border); }
.contact-results button { text-align: left; }
.timefield[hidden] { display: none; }

/* --- startscherm --- */
.home { max-width: 1100px; margin: 0 auto 2rem; }
.home-banner { height: 170px; background: var(--banner); }
html[data-theme] .home-banner { height: 230px; }
.home-banner.photo { background-image: var(--banner-photo); background-size: cover; background-position: center; }
.home-inner { padding: 0 1.25rem; }
.home h1 { font-family: var(--head-font); font-weight: 600; font-size: 2rem; margin: 1rem 0 .75rem; }
.home h2 { font-family: var(--head-font); font-weight: 600; font-size: 1.05rem; color: var(--primary); margin: 0 0 .5rem; }
.motto { background: var(--soft); border-radius: 8px; padding: .6rem .9rem; font-style: italic; margin-bottom: 1.25rem; }
.home-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .home-grid { grid-template-columns: 1fr; } }
.block { background: var(--soft); border-radius: 8px; padding: .75rem .9rem; margin-bottom: 1.25rem; }
.block ul { list-style: none; padding: 0; margin: 0; }
.block li { padding: .2rem 0; }
.quicklinks a { color: var(--text); text-decoration: none; display: flex; gap: .5rem; align-items: center; padding: .25rem 0; }
.quicklinks a:hover { color: var(--primary); }
.clock { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem; }
.clock div { background: var(--tile); color: var(--tile-text); border-radius: 10px; text-align: center; padding: .6rem 0 .4rem; font-family: var(--head-font); }
.clock strong { display: block; font-size: 2.6rem; line-height: 1; font-weight: 600; }
.clock span { font-size: .8rem; }
.quick-actions a { display: block; padding: .3rem .5rem; margin-bottom: .35rem; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); text-decoration: none; font-size: .9rem; }
.quick-actions a:hover { border-color: var(--primary); }
.today-list .time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: .4rem; }
.note-area { width: 100%; min-height: 6rem; background: var(--card); }
.inline-add { display: grid; grid-template-columns: 1fr 4.5rem auto; gap: .4rem; margin-top: .5rem; }

/* --- boodschappen --- */
.shop { max-width: 640px; margin: 1rem auto 3rem; padding: 0 1rem; }
.shop h1 { font-family: var(--head-font); }
.shop-add { display: grid; grid-template-columns: 1fr 5rem; gap: .5rem; }
.shop-add .row2 { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto; gap: .5rem; }
.shop-add input, .shop-add select { width: 100%; min-width: 0; font-size: 1rem; padding: .6rem; }
.suggest { list-style: none; padding: 0; margin: .25rem 0 0; grid-column: 1 / -1; }
.suggest li button { width: 100%; text-align: left; border: 0; background: var(--soft); margin-bottom: 2px; }
.shop-store { font-family: var(--head-font); color: var(--primary); font-size: 1.15rem; margin: 1.25rem 0 .2rem; }
.shop-dept { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin: .6rem 0 .1rem; }
.shop-list { list-style: none; padding: 0; margin: 0; }
.shop-item { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; border-bottom: 1px dashed var(--border); font-size: 1.05rem; }
.shop-item input[type=checkbox] { width: 1.3rem; height: 1.3rem; flex: none; }
.shop-item .name { flex: 1; }
.shop-item .qty { color: var(--muted); }
.shop-item.done .name, .shop-item.done .qty { text-decoration: line-through; color: var(--muted); }
.shop-item .del { visibility: hidden; }
.shop-item:hover .del { visibility: visible; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.basket { background: var(--soft); border-radius: 8px; padding: .6rem .8rem; margin-top: 1.25rem; }
.basket summary { cursor: pointer; font-family: var(--head-font); color: var(--primary); font-size: 1.05rem; padding: .3rem 0; }
.basket .shop-item { cursor: default; }
.basket .shop-item .pill { flex: none; }
.basket > button { margin-top: .75rem; width: 100%; }
.nav-count.soft { background: var(--muted); }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .75rem; }
.card-actions .primary:only-child { margin-left: auto; }
.fc .travel { background: repeating-linear-gradient(45deg, var(--border) 0 6px, transparent 6px 12px) !important; border-color: var(--border) !important; color: var(--muted) !important; }
.roster input, .roster select { min-width: 0; width: 100%; }
.roster td { padding: .15rem .2rem; }
.rave-public { list-style: none; padding: 0; margin: 0; }
.rave-public li { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.rave-public .rave-main { flex: 1 1 14rem; }
.rave-public .badge { font-size: .75rem; }
.join summary { list-style: none; cursor: pointer; }
.join summary::-webkit-details-marker { display: none; }
.join[open] { flex-basis: 100%; }
.join form { margin-top: .5rem; }
.guest-row { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; font-size: .82rem; }
.guest-row .pending { font-style: italic; }
.suggest-box { margin: .5rem 0; }
.suggest-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.suggest-tabs button.active { background: var(--primary); color: var(--primary-text); border-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; font-size: .8rem; }
.chip { font-size: .78rem; padding: .15rem .5rem; border-radius: 999px; }
.time.short span { font-style: italic; }

table.roster td.center { text-align: center; }
table.roster input[readonly] { opacity: .45; }

/* Fotoboek */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.album-card { display: block; border-radius: 12px; overflow: hidden; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.album-card .cover { aspect-ratio: 4 / 3; background: var(--soft, #eee) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.album-card .meta { padding: 10px 12px; }
.album-card .meta strong { display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; position: relative; border-radius: 8px; overflow: hidden; background: var(--soft, #eee); aspect-ratio: 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-grid .video { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); }
.photo-grid form { position: absolute; top: 4px; right: 4px; opacity: 0; transition: opacity .15s; }
.photo-grid figure:hover form { opacity: 1; }
.photo-grid form button { background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.upload-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; }
.upload-drop.over { border-color: var(--accent); }
.kind-tag { font-size: .75rem; padding: 1px 8px; border-radius: 99px; background: var(--soft, #eee); color: var(--muted); }

/* categorie-iconen (Tabler, via mask zodat ze de tekstkleur volgen) */
.cat-icon { display: inline-block; width: 1em; height: 1em; margin-right: .3em; vertical-align: -.15em;
  background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.legend.icons { margin-top: .6rem; color: var(--muted); }
.wide-btn { width: 100%; margin-bottom: .5rem; }

/* pillen (kleine knoppen) */
.pills { display: inline-flex; flex-wrap: wrap; gap: .3rem; }
.pill { font-size: .78rem; padding: .15rem .6rem; border-radius: 99px; border: 1px solid var(--line); background: var(--card);
  color: inherit; text-decoration: none; cursor: pointer; line-height: 1.5; }
.pill:hover { border-color: var(--accent); }
.pill.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.pill.danger { color: #c62828; }
.widget summary .pills { margin-left: auto; }
.widget summary { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* Raves-pagina */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rave-card .rave-head { display: flex; justify-content: space-between; gap: 1rem; }
.rave-card .total { font-weight: 600; white-space: nowrap; }
.guests { display: flex; flex-wrap: wrap; gap: .3rem; margin: .5rem 0; }
.guest { font-size: .8rem; padding: .1rem .5rem; border-radius: 99px; background: var(--soft, #eee); }
.guest.aanvraag { outline: 1px dashed var(--accent); }
table.costs { width: 100%; font-size: .85rem; border-collapse: collapse; margin-top: .5rem; }
table.costs th { text-align: left; font-weight: 500; color: var(--muted); }
table.costs td, table.costs th { padding: .2rem .3rem; }
table.costs input[type=text] { width: 6rem; }
.extra-add { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; }
.extra-add input[name=label] { flex: 1; min-width: 10rem; }
.extra-add input[name=amount] { width: 6rem; }
.proposal { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.rv-invite { max-width: 26rem; }
.album-wrap { position: relative; }
.album-del { position: absolute; top: 6px; right: 6px; z-index: 2; opacity: 0; transition: opacity .15s; }
.album-wrap:hover .album-del { opacity: 1; }
.album-del button { background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 6px; padding: 2px 8px; cursor: pointer; }
@media (hover: none) { .album-del { opacity: 1; } }

/* Reizen */
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline-form input[type=text], .inline-form input[type=url] { flex: 1; min-width: 9rem; }
.trip-card { display: block; color: inherit; text-decoration: none; }
.trip-card:hover { border-color: var(--accent); }
.route { margin-top: .3rem; font-size: .9rem; }
.route small { color: var(--muted); }
.route i { color: var(--accent); font-style: normal; }
.trip-map { height: 360px; border-radius: 10px; overflow: hidden; }
.trip-map.empty { height: auto; padding: 1rem; }
.route-stop b { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: #d85a30; color: #fff; font-size: .8rem; border: 2px solid #fff; }
.route-arrow span { display: inline-block; color: #d85a30; font-size: 16px; line-height: 18px; }
.timeline { display: flex; gap: 2px; margin-top: .6rem; border-radius: 8px; overflow: hidden; font-size: .8rem; }
.timeline > div { background: color-mix(in srgb, var(--accent) 22%, var(--card)); padding: .35rem .5rem; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline > div:nth-child(even) { background: color-mix(in srgb, var(--accent) 40%, var(--card)); }
table.stops input[data-f=nights] { width: 4.5rem; }
.ideas { list-style: none; padding: 0; margin: .5rem 0 0; }
.idea { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .4rem 0; border-bottom: 1px dashed var(--line); }
.idea .title { flex: 1; min-width: 10rem; }
.idea.gedaan .title { text-decoration: line-through; color: var(--muted); }
.idea .score { min-width: 2rem; text-align: center; font-weight: 600; color: var(--muted); }
.idea .score.pos { color: #2e7d32; } .idea .score.neg { color: #c62828; }
.thumbs { display: inline-flex; gap: .6rem; font-size: .75rem; color: var(--muted); }
.thumb { border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 1px 5px; cursor: pointer; color: var(--muted); }
.thumb.on { color: #2e7d32; border-color: #2e7d32; }
.thumb.down.on { color: #c62828; border-color: #c62828; }
.thumb .cat-icon { margin: 0; }
.packing { list-style: none; padding: 0; columns: 2 16rem; }
.packing li { display: flex; align-items: center; gap: .4rem; break-inside: avoid; }
.packing li.done label { text-decoration: line-through; color: var(--muted); }
.packing .pack-person { font-size: .75rem; padding: 0 .2rem; width: auto; }
.year-head { margin-top: 1.2rem; }
.album-card .meta { display: block; color: inherit; text-decoration: none; }
.rave-card .head-right { display: flex; align-items: center; gap: .5rem; }

/* planlink: zelf kiezen in de agenda */
.visually-hidden { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.pick-cal { margin-top: .5rem; font-size: .8rem; }
.pick-cal .pick-free { background: rgba(46, 160, 67, .28); }
.pick-cal .fc-timegrid-slot { height: 1.4em; }
.pick-cal .pick-chosen-ev { background: var(--accent, #3f51b5); border-color: var(--accent, #3f51b5); }
.pick-cal .fc-timegrid-col:hover { cursor: pointer; }
.pick-chosen { font-weight: 600; margin: .4rem 0 0; }
.pick-chosen.ok { color: #2ea043; }
.pick-cal { overflow-x: auto; }
.pick-grid { display: grid; gap: 2px 3px; font-size: .78rem; }
.pg-head { font-weight: 600; text-align: center; padding: .2rem 0 .3rem; position: sticky; top: 0; }
.pg-time { color: var(--muted); text-align: right; padding-right: .3rem; line-height: 1.1rem; transform: translateY(-.45rem); }
.pg-cell { height: 1.1rem; border: 0; border-radius: 3px; background: rgba(127, 127, 127, .10); padding: 0; cursor: default; }
.pg-cell.free { background: rgba(46, 160, 67, .35); cursor: pointer; }
.pg-cell.tail { background: rgba(46, 160, 67, .14); }
.pg-cell.free:hover { background: rgba(46, 160, 67, .6); }
.pg-cell.chosen { background: var(--accent, #3f51b5) !important; }
details.custom-time { margin: .6rem 0 1rem; }
details.custom-time > summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }


/* ================= Thema's (Instellingen > Uiterlijk) =================
   Elk thema zet kleuren, lettertypes, kaartstijl, een achtergrond over de hele pagina,
   een sfeerplaat voor het startscherm en een klein plaatje bij lege lijsten. */
html[data-theme] body { font-family: var(--body-font, inherit); background: var(--bg) var(--page-pattern, none); }
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3, html[data-theme] .brand { font-family: var(--head-font); }
html[data-theme] .card, html[data-theme] .widget, html[data-theme] .block {
  border-radius: var(--card-radius, 10px); border: var(--card-border, 1px solid var(--border)); }
html[data-theme] .topbar { background: var(--topbar, var(--card)); }
.empty-illu::before { content: ""; display: block; width: 46px; height: 46px; margin: .2rem 0 .3rem;
  background: var(--primary); -webkit-mask: var(--empty-illu) center / contain no-repeat; mask: var(--empty-illu) center / contain no-repeat; opacity: .75; }
html:not([data-theme]) .empty-illu::before { display: none; }

html[data-theme="techno"] {
  --bg: #0b0b0b; --card: #151515; --text: #ededed; --muted: #9a9a9a; --border: #2a2a2a;
  --primary: #ff2a2a; --primary-text: #000; --danger: #ff5a5a; --ok: #3ddc84;
  --free: rgba(255, 42, 42, .12); --soft: #1d1d1d; --tile: #1d1d1d; --tile-text: #ff2a2a;
  --head-font: "Archivo Black", Impact, sans-serif; --body-font: "Rubik", system-ui, sans-serif;
  --card-radius: 0; --card-border: 1px solid #262626; --topbar: #000;
  --page-pattern: repeating-linear-gradient(90deg, transparent 0 59px, #141414 59px 60px);
  --banner: url("/static/banners/techno.svg") center / cover no-repeat;
  --empty-illu: url("/static/illu/techno.svg"); color-scheme: dark;
}
html[data-theme="techno"] .card, html[data-theme="techno"] .widget, html[data-theme="techno"] .block { border-left: 3px solid var(--primary); }
html[data-theme="techno"] h1, html[data-theme="techno"] h2, html[data-theme="techno"] .brand { text-transform: uppercase; letter-spacing: .04em; font-weight: 400; }
html[data-theme="techno"] .pill, html[data-theme="techno"] button { border-radius: 0; }

html[data-theme="reizen"] {
  --bg: #f6eedd; --card: #fffaf0; --text: #2b2a33; --muted: #776e62; --border: #e3d4b8;
  --primary: #2f6f8f; --primary-text: #fff; --danger: #c45a4c; --ok: #4f8a5a;
  --free: rgba(79, 138, 90, .14); --soft: #efe4cd; --tile: #7cc0d6; --tile-text: #14303d;
  --head-font: "DM Serif Display", Georgia, serif; --body-font: "Nunito", system-ui, sans-serif;
  --card-radius: 8px; --card-border: 1.5px dashed #c79a6b;
  --page-pattern: repeating-linear-gradient(0deg, transparent 0 27px, #ecdfc4 27px 28px);
  --banner: url("/static/banners/reizen.svg") center / cover no-repeat;
  --empty-illu: url("/static/illu/reizen.svg"); color-scheme: light;
}
html[data-theme="reizen-donker"] {
  --bg: #0f1b2d; --card: #16253b; --text: #e6ecf5; --muted: #9aa8bd; --border: #2a3b55;
  --primary: #f3c77a; --primary-text: #0f1b2d; --danger: #ef8a7a; --ok: #8fd19e;
  --free: rgba(243, 199, 122, .14); --soft: #1c2d46; --tile: #23395a; --tile-text: #f3c77a;
  --head-font: "DM Serif Display", Georgia, serif; --body-font: "Nunito", system-ui, sans-serif;
  --card-radius: 8px; --card-border: 1.5px dashed #3c5478;
  --page-pattern: repeating-linear-gradient(0deg, transparent 0 27px, #13223a 27px 28px);
  --banner: url("/static/banners/reizen-donker.svg") center / cover no-repeat;
  --empty-illu: url("/static/illu/reizen.svg"); color-scheme: dark;
}
html[data-theme^="reizen"] .motto, html[data-theme^="reizen"] .hand { font-family: "Caveat", cursive; font-size: 1.35rem; }

html[data-theme="minimal"] {
  --bg: #fafafa; --card: #fafafa; --text: #111; --muted: #6b6b6b; --border: #e5e5e5;
  --primary: #e8553b; --primary-text: #fff; --danger: #c62828; --ok: #2e7d32;
  --free: rgba(46, 125, 50, .12); --soft: #f0f0f0; --tile: #111; --tile-text: #fafafa;
  --head-font: "Inter", system-ui, sans-serif; --body-font: "Inter", system-ui, sans-serif;
  --card-radius: 0; --card-border: 0; --topbar: #fafafa;
  --banner: url("/static/banners/minimal.svg") center / cover no-repeat;
  --empty-illu: url("/static/illu/minimal.svg"); color-scheme: light;
}
html[data-theme="minimal-donker"] {
  --bg: #121212; --card: #121212; --text: #eaeaea; --muted: #8f8f8f; --border: #2a2a2a;
  --primary: #ff6b4f; --primary-text: #121212; --danger: #ef5350; --ok: #66bb6a;
  --free: rgba(102, 187, 106, .14); --soft: #1c1c1c; --tile: #eaeaea; --tile-text: #121212;
  --head-font: "Inter", system-ui, sans-serif; --body-font: "Inter", system-ui, sans-serif;
  --card-radius: 0; --card-border: 0; --topbar: #121212;
  --banner: url("/static/banners/minimal-donker.svg") center / cover no-repeat;
  --empty-illu: url("/static/illu/minimal.svg"); color-scheme: dark;
}
html[data-theme^="minimal"] .card, html[data-theme^="minimal"] .widget, html[data-theme^="minimal"] .block {
  border-top: 1px solid var(--text); padding-left: 0; padding-right: 0; }
html[data-theme^="minimal"] h1, html[data-theme^="minimal"] h2 { font-weight: 500; letter-spacing: -.02em; }
html[data-theme^="minimal"] .block, html[data-theme^="minimal"] .widget { background: transparent; }
.trips-home li { margin-bottom: .5rem; }

/* ===== mobiel (uit de gauntlet) ===== */
.bottombar { display: none; }
.home-grid, .layout { min-width: 0; }
.home-grid > *, .layout > * { min-width: 0; }
input, select, textarea { max-width: 100%; }
.inline-add > *, .shop-add * { min-width: 0; }
.clock { grid-template-columns: 1fr !important; }
.clock div > span { display: block; }
.rave-name { margin: 0; font-size: 1.1rem; }
.shop-item { min-height: 48px; cursor: pointer; }
.shop-item input[type=checkbox] { width: 24px; height: 24px; }
@media (pointer: coarse) {
  .pill, button.link { min-height: 36px; padding: .35rem .75rem; }
  .shop-item .del { visibility: visible; }
}
@media (max-width: 700px) {
  .topbar nav { display: none; }
  .topbar { justify-content: center; }
  body { padding-bottom: 72px; }
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--topbar, var(--card));
    border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottombar > a, .bottombar summary { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem;
    color: var(--muted); text-decoration: none; padding: 6px 0; list-style: none; cursor: pointer; position: relative; }
  .bottombar summary::-webkit-details-marker { display: none; }
  .bottombar .more { flex: 1; display: flex; }
  .bottombar .cat-icon { width: 22px; height: 22px; margin: 0; }
  .bottombar > a.active { color: var(--primary); }
  .bottombar .nav-count { position: absolute; top: 0; right: 18%; }
  .more-menu { position: absolute; bottom: 64px; right: 8px; background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; padding: .3rem; min-width: 11rem; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
  .more-menu a { display: block; padding: .7rem .9rem; color: var(--text); text-decoration: none; }
  .home .quicklinks { display: none; }
  /* agenda: eerst de keuzes, dan de agenda, dan pas het formulier en de widgets */
  .layout { display: flex; flex-direction: column; }
  .layout > aside.panel { display: contents; }
  #calendar { order: 5; }
  #offerPanel { order: 6; }
  #status { order: 7; }
  .layout .widget { order: 9; }
  table.stops, table.roster, table.costs { display: block; overflow-x: auto; max-width: 100%; }
}
@media (max-width: 700px) {
  #calendar { width: 100%; min-width: 0; }
  .fc .fc-toolbar { flex-wrap: wrap; gap: .4rem; }
  .fc .fc-toolbar-title { font-size: 1.05rem; }
  .fc .fc-button { padding: .3rem .5rem; font-size: .8rem; }
  .legend.icons { display: none; }
}
.clock strong span { display: inline !important; font-size: inherit; }
@media (max-width: 700px) {
  .home-grid { display: flex !important; flex-direction: column; }
  .home-grid > div { display: contents; }
  .home .clock { order: -2; }
  .home .today-list { order: -1; }
}
@media (max-width: 700px) {
  .home-grid { align-items: stretch !important; }
  .home .clock { width: 100%; }
  .rave-card .rave-head { flex-direction: column; gap: .4rem; }
}

/* Rave Wrapped */
.wr-hero { display: flex; flex-direction: column; margin: .5rem 0 1rem; }
.wr-kicker { text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.wr-year { font-family: var(--head-font); font-size: 4.5rem; line-height: 1; color: var(--primary); }
.wr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.wr-stats div { background: var(--tile); color: var(--tile-text); border-radius: var(--card-radius, 10px); padding: 1rem; }
.wr-stats strong { display: block; font-size: 2rem; font-family: var(--head-font); }
.wr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem; }
.more-raves > summary { margin: .5rem 0 1rem; display: inline-block; cursor: pointer; list-style: none; }
.block.memory { display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: .8rem 1rem;
  background-size: cover; background-position: center; color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.block.memory::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.65)); }
.block.memory > * { position: relative; }
.block.memory span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.block.memory strong { font-size: 1.15rem; }
.climates, .suggest-pack { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .6rem; }
.chip-toggle { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .15rem .6rem; border: 1px solid var(--border); border-radius: 99px; cursor: pointer; }
.chip-toggle:has(input:checked) { background: var(--primary); color: var(--primary-text, #fff); border-color: var(--primary); }
.chip-toggle input { display: none; }
.suggest-pack small { font-size: .7rem; }

/* inklapbare blokken (instellingen) */
details.card.fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.card.fold > summary::-webkit-details-marker { display: none; }
details.card.fold > summary h2 { margin: 0; }
details.card.fold > summary::after { content: "+"; font-size: 1.4rem; color: var(--muted); line-height: 1; }
details.card.fold[open] > summary::after { content: "\2212"; }
details.card.fold[open] > summary { margin-bottom: .75rem; }
.rave-dialog .rave-form { display: block; border-top: 0; margin-top: 0; padding-top: 0; }

/* link maken in stappen */
.step-head { margin: 0 0 .75rem; color: var(--muted); }
.step-head strong { color: var(--text); }
.step-nav { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
