/* Cantemus — design prototype
   Colours come from the logo: deep blue, steel blue and the pale blues of the dots. */

:root {
  --ink: #0f2233;
  --ink-soft: #3d5468;
  --muted: #6b7f91;
  --paper: #fbfaf7;
  --paper-2: #f2f0ea;
  --line: #e2ded4;

  --blue: #04628f;        /* logo, dark half */
  --blue-deep: #08304a;
  --steel: #8aacca;       /* logo, light half */
  --sky: #bfd0e0;
  --mist: #dce3ee;

  --warm: #d9893d;        /* stage-light amber, used sparingly */
  --ok: #2f7d5b;
  --no: #b5473a;
  --maybe: #b98a1f;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgb(15 34 51 / 6%), 0 8px 24px rgb(15 34 51 / 7%);
  --wrap: 1120px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 500; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-light { background: #fff; color: var(--blue-deep); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(251 250 247 / 92%); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: auto; }
.brand b { font: 600 1.35rem/1 var(--serif); display: block; color: var(--blue); }
.brand small { font-size: .78rem; color: var(--muted); display: block; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 8px; color: #fff; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav .btn { margin: 14px 0 0; border-radius: 999px; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(88vh, 760px);
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(6 26 40 / 78%) 0%, rgb(6 26 40 / 45%) 45%, rgb(6 26 40 / 0%) 75%),
    linear-gradient(180deg, rgb(8 48 74 / 10%) 0%, rgb(8 48 74 / 25%) 45%, rgb(6 26 40 / 90%) 100%);
}
.hero .wrap { padding: 120px 0 64px; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: italic; color: var(--sky); }
.hero p { font-size: 1.2rem; max-width: 38ch; color: rgb(255 255 255 / 88%); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 22%); font-size: .95rem; color: rgb(255 255 255 / 80%);
}
.hero-facts strong { color: #fff; font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--blue-deep); color: #fff; }
.section-dark .eyebrow { color: var(--sky); }
.section-dark .lead, .section-dark p { color: rgb(255 255 255 / 82%); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) {
  section { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* next concert */
.concert {
  display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center;
}
.concert .poster { border-radius: var(--radius); box-shadow: 0 24px 60px rgb(0 0 0 / 35%); transform: rotate(-1.5deg); }
.concert h2 { margin-bottom: .2em; }
.concert .sub { font: italic 400 1.3rem/1.3 var(--serif); color: var(--sky); margin-bottom: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: 22px 40px; justify-content: start; margin: 0 0 30px; }
.facts dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: 1.08rem; }
@media (max-width: 860px) {
  .concert { grid-template-columns: 1fr; gap: 32px; }
  .concert .poster { max-width: 240px; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* join */
.join-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px; display: grid; gap: 18px;
}
.join-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.join-row .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mist); color: var(--blue);
}
.join-row b { display: block; }
.join-row span { color: var(--muted); font-size: .95rem; }
.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-stack .badge {
  position: absolute; left: -14px; bottom: -18px; background: var(--warm); color: #fff;
  border-radius: 999px; padding: 12px 20px; font: 600 1rem/1.2 var(--serif); box-shadow: var(--shadow);
}

/* about */
.styles { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.styles li { background: var(--mist); color: var(--blue-deep); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 500; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.timeline div { padding: 22px 20px 0 0; }
.timeline b { font: 500 2rem/1 var(--serif); color: var(--blue); display: block; margin-bottom: 8px; }
.timeline span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; } }

/* conductor */
.conductor { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: center; }
.conductor img { border-radius: var(--radius); filter: contrast(1.05); }
.conductor .pull {
  margin: 0 0 24px; font: italic 400 1.45rem/1.4 var(--serif); color: var(--blue-deep);
  border-left: 3px solid var(--steel); padding-left: 20px;
}
@media (max-width: 860px) { .conductor { grid-template-columns: 1fr; gap: 28px; } .conductor img { max-width: 300px; } }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; margin-top: 36px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .wide { grid-column: span 2; }
}

/* latest concert (variant B) */
.latest { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.latest .poster { border-radius: var(--radius); box-shadow: 0 20px 50px rgb(15 34 51 / 22%); transform: rotate(1.5deg); }
.latest .sub { font: italic 400 1.2rem/1.35 var(--serif); color: var(--blue); margin-bottom: 18px; }
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.photo-slots div {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 2px dashed var(--line);
  background: #fff; display: grid; place-items: center; color: var(--muted); font-size: .88rem; font-weight: 600;
}
@media (max-width: 860px) {
  .latest { grid-template-columns: 1fr; gap: 32px; }
  .latest .poster { max-width: 240px; }
}

/* past concerts */
.past { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.past article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.past time { font-size: .85rem; color: var(--muted); }
.past h3 { margin: 6px 0 8px; }
.past p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 860px) { .past { grid-template-columns: 1fr; } }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font: 500 1.15rem/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 1.6rem/1 var(--sans); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; }

/* contact */
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(4 98 143 / 14%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 500; background: #fff; }
.chips input:checked + span { border-color: var(--blue); background: var(--mist); color: var(--blue-deep); }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgb(4 98 143 / 20%); }
.address { font-style: normal; display: grid; gap: 18px; }
.address b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }

/* footer */
.site-footer { background: var(--ink); color: rgb(255 255 255 / 70%); padding: 56px 0 40px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.site-footer .brand b { color: #fff; }
.site-footer .brand small { color: rgb(255 255 255 / 60%); }
.legal { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / 12%); padding-top: 20px; font-size: .85rem; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   Members area (ledenzone)
   ========================================================= */
.app { background: var(--paper-2); min-height: 100vh; padding-bottom: 96px; }
.app-header { background: var(--blue-deep); color: #fff; padding: 18px 0 64px; }
.app-header .top { display: flex; align-items: center; gap: 12px; }
.app-header .brand b { color: #fff; font-size: 1.15rem; }
.app-header .brand small { color: rgb(255 255 255 / 60%); }
.app-header .brand img { width: 34px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--steel); color: var(--blue-deep); flex: none;
  display: grid; place-items: center; font: 700 1rem/1 var(--sans); text-decoration: none;
}
button.avatar { border: 0; cursor: pointer; }
button.avatar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.avatar.sm { width: 36px; height: 36px; font-size: .9rem; }

/* profile switcher (couples sharing one email address) */
.profile-switch { margin-left: auto; position: relative; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; width: 270px;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / 22%); padding: 8px;
}
.pm-current { display: flex; gap: 12px; align-items: center; padding: 10px; }
.pm-current b { display: block; }
.pm-current small, .pm-item small { display: block; color: var(--muted); font-size: .85rem; }
.pm-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.pm-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pm-item:hover, .pm-link:hover { background: var(--paper-2); }
.pm-links { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.pm-link { display: block; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }

/* profile chooser page */
.profiles { display: grid; gap: 10px; margin: 22px 0 18px; text-align: left; }
.profile {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: .15s;
}
.profile:hover, .profile:focus-visible { border-color: var(--blue); background: var(--mist); outline: none; }
.profile .avatar { width: 48px; height: 48px; font-size: 1.15rem; }
.profile .who { flex: 1; }
.profile .who b { display: block; font-size: 1.1rem; }
.profile .who small { color: var(--muted); font-size: .95rem; }
.profile svg { color: var(--muted); flex: none; }
.remember { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: .95rem; color: var(--ink-soft); cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--blue); }

/* my details */
.me { display: grid; gap: 8px; margin: 14px 0 0; font-size: .95rem; }
.me div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.me dt { color: var(--muted); }
.me dd { margin: 0; overflow-wrap: anywhere; }
.shared { display: inline-block; font-size: .78rem; background: var(--mist); color: var(--blue-deep); border-radius: 6px; padding: 2px 7px; margin-left: 2px; }
.privacy-todo { display: flex; gap: 12px; align-items: flex-start; background: #fbf5e8; border-radius: 10px; padding: 12px 14px; color: #6b3a0e; font-size: .95rem; }
.privacy-todo a { color: inherit; font-weight: 700; }
.toast {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .95rem;
}
.app-header h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 28px 0 4px; }
.app-header p { margin: 0; color: rgb(255 255 255 / 75%); }
.app-main { margin-top: -44px; display: grid; gap: 18px; grid-template-columns: 1.25fr 1fr; align-items: start; }
.col { display: grid; gap: 18px; }
@media (max-width: 900px) {
  .app-main { grid-template-columns: 1fr; }
  /* On a phone: this week first, then "can you make it?", then the rest */
  .col { display: contents; }
  #deze-week { order: 1; } #agenda { order: 2; } #partituren { order: 3; }
  #aanwezigheid { order: 4; } #brieven { order: 5; } #profiel { order: 6; }
}

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head h2 { font-size: 1.35rem; margin: 0; font-weight: 600; }
.card-head a { margin-left: auto; font-size: .9rem; font-weight: 600; text-decoration: none; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--mist); color: var(--blue-deep); }
.tag-warm { background: #fbe9d6; color: #8a4b12; }

.rehearsal .when { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.datebox { width: 64px; flex: none; text-align: center; border-radius: 12px; background: var(--blue); color: #fff; padding: 8px 0 10px; }
.datebox small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.datebox b { display: block; font: 600 1.7rem/1.1 var(--serif); }
.when h3 { margin: 0 0 2px; font-size: 1.2rem; }
.when span { color: var(--muted); font-size: .95rem; }
.note { background: #fbf5e8; border-left: 3px solid var(--warm); border-radius: 8px; padding: 10px 14px; font-size: .95rem; margin-bottom: 16px; }
/* timetable / checklist switch */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper-2); border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.seg button {
  min-height: 42px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: 600 .95rem/1 var(--sans); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.seg button[aria-selected="true"] { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 3px rgb(15 34 51 / 12%); }
.seg-count { font-size: .76rem; background: var(--mist); color: var(--blue-deep); border-radius: 999px; padding: 3px 8px; }
.seg-count.done { background: var(--ok); color: #fff; }

.badge { display: inline-block; vertical-align: 2px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 5px; padding: 3px 6px; margin-right: 4px; }
.badge-new { background: #fbe9d6; color: #8a4b12; }
.badge-apart { background: var(--mist); color: var(--blue-deep); }

/* rehearsal timetable */
.plan { list-style: none; margin: 0; padding: 0; }
.plan li { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.plan li:first-child { border-top: 0; }
.plan time { font: 600 .95rem/1.5 var(--sans); font-variant-numeric: tabular-nums; color: var(--blue); }
.plan .t { min-width: 0; }
.plan .t b { font-weight: 600; margin-right: 6px; }
.plan .work { margin: 3px 0 0; font-size: .92rem; color: var(--ink-soft); }
.plan .if-time { margin: 2px 0 0; font-size: .86rem; color: var(--muted); font-style: italic; }
.plan .icon-btn, .checklist .icon-btn { width: 38px; height: 38px; }
.plan .is-quiet b { color: var(--ink-soft); font-weight: 500; }
.plan .is-break { background: #fbf5e8; border-radius: 10px; border-top: 0; margin: 4px -10px; padding: 10px; grid-template-columns: 50px 1fr; }
.plan .is-break + li { border-top: 0; }
.plan .is-break b { color: #8a4b12; }
.plan .is-extra { display: block; border-top: 0; padding: 0 0 12px 62px; }
.extra { border: 1.5px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.extra b { display: block; margin-bottom: 4px; }
.extra p { margin: 3px 0 0; color: var(--ink-soft); }
.voices { display: inline-block; min-width: 30px; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: var(--mist); color: var(--blue-deep); border-radius: 5px; padding: 2px 6px; margin-right: 8px; }

/* "Alles mee?" checklist */
.az-intro { color: var(--ink-soft); font-size: .95rem; margin: 10px 0; }
.progress { height: 6px; background: var(--mist); border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ok); transition: width .2s; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist label { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.checklist input { position: absolute; opacity: 0; }
.checklist .box { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.checklist input:checked + .box { background: var(--ok); border-color: var(--ok); }
.checklist input:checked + .box::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.checklist input:focus-visible + .box { box-shadow: 0 0 0 4px rgb(4 98 143 / 20%); }
.checklist .name { font-weight: 600; }
.checklist input:checked ~ .name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--blue);
  display: grid; place-items: center; text-decoration: none; flex: none;
}
.icon-btn:hover { border-color: var(--blue); background: var(--mist); }

.event { padding: 16px 0; border-top: 1px solid var(--line); }
.event:first-of-type { border-top: 0; padding-top: 4px; }
.event h3 { font-size: 1.08rem; margin: 6px 0 2px; font-family: var(--sans); font-weight: 600; }
.event .meta { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.rsvp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp button {
  min-height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 600 .95rem/1 var(--sans);
  color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.rsvp button[aria-pressed="true"][data-v="ja"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.rsvp button[aria-pressed="true"][data-v="nee"] { background: var(--no); border-color: var(--no); color: #fff; }
.rsvp button[aria-pressed="true"][data-v="misschien"] { background: var(--maybe); border-color: var(--maybe); color: #fff; }
.count { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: .82rem; color: var(--muted); }
.count span { background: var(--paper-2); border-radius: 6px; padding: 3px 8px; }

.search { position: relative; margin-bottom: 10px; }
.search input { width: 100%; font: inherit; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px 11px 40px; min-height: 46px; }
.search input:focus { outline: none; border-color: var(--blue); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.filters button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font: 600 .85rem/1 var(--sans); color: var(--ink-soft); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.scores { list-style: none; margin: 0; padding: 0; }
.scores li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.scores .t { flex: 1; min-width: 0; }
.scores .t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scores .t span { color: var(--muted); font-size: .85rem; }
.empty { color: var(--muted); padding: 14px 0; display: none; }

.stat { display: flex; align-items: center; gap: 18px; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), var(--mist) 0); }
.ring b { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 600 1.1rem/1 var(--serif); }
.dots { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.dots i.off { background: var(--sky); opacity: .55; }

.links { list-style: none; margin: 0; padding: 0; }
.links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.links li:first-child a { border-top: 0; }
.links a span { margin-left: auto; color: var(--muted); font-size: .85rem; }

.privacy-ok { display: flex; gap: 12px; align-items: flex-start; background: #eaf4ef; border-radius: 10px; padding: 12px 14px; color: #1f5a40; font-size: .95rem; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: none; grid-template-columns: repeat(4, 1fr); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.tabbar a { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 4px 0; }
.tabbar a.on { color: var(--blue); }
@media (max-width: 900px) { .tabbar { display: grid; } }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, rgb(138 172 202 / 35%), transparent), var(--paper); }
.login-card { width: min(420px, 100%); background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 36px 30px; text-align: center; }
.login-card img { width: 84px; margin: 0 auto 18px; }
.login-card h1 { font-size: 1.9rem; }
.login-card p { color: var(--ink-soft); }
.login-card .form { text-align: left; margin-top: 22px; }
.login-card .btn { width: 100%; }
.login-card .small { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.sent { display: none; }
.login-card.is-sent .ask { display: none; }
.login-card.is-sent .sent { display: block; }
.mailicon { width: 64px; height: 64px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }

/* prototype label */
.proto { position: fixed; right: 12px; bottom: 12px; z-index: 50; background: var(--warm); color: #fff; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; opacity: .9; }
@media (max-width: 900px) { .app ~ .proto { bottom: 76px; } }
