/* ==========================================================================
   Wedding Planner – stylesheet
   Soft, romantic and calm: ivory paper, dusty rose, sage and a touch of gold.
   Sections: 1 tokens · 2 base · 3 layout · 4 components · 5 sections · 6 responsive
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  --ivory: #fbf8f4;
  --paper: #ffffff;
  --ink: #2f2a28;
  --ink-soft: #5b534f;
  --muted: #8a817c;
  --line: #eee6de;
  --rose: #c98b8b;
  --rose-dark: #a86767;
  --rose-soft: #f7ebe8;
  --sage: #8fa58a;
  --sage-dark: #5f7a5a;
  --sage-soft: #eaf0e7;
  --gold: #c2a36b;
  --gold-soft: #f6efe1;
  --danger: #c0504d;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(80, 50, 40, .04), 0 8px 24px rgba(80, 50, 40, .06);
  --shadow-lift: 0 2px 4px rgba(80, 50, 40, .06), 0 14px 34px rgba(80, 50, 40, .10);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 250px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, var(--rose-soft), transparent 60%),
    radial-gradient(900px 400px at -10% 110%, var(--sage-soft), transparent 60%),
    var(--ivory);
  background-attachment: fixed;
  min-height: 100vh;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .6em; }
a { color: var(--rose-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { background: var(--rose-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 700; color: var(--ink); }
.center { align-items: center; text-align: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 55%, transparent); outline-offset: 2px; }

/* 3. Layout --------------------------------------------------------------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 14px;
  z-index: 30; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-rings { font-size: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-names { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.brand-sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 12px; color: var(--ink-soft); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--rose-soft); color: var(--ink); text-decoration: none; }
.nav-link.active { background: var(--ink); color: #fff; }
.nav-icon { width: 22px; text-align: center; font-size: 1.05rem; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: var(--ink); }
.me:hover { background: var(--rose-soft); text-decoration: none; }
.me-text { display: flex; flex-direction: column; line-height: 1.2; }
.me-text small { color: var(--muted); font-size: .78rem; }
.version { font-size: .72rem; color: var(--muted); padding-left: 12px; margin: 0; }

.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 14px 32px;
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 248, 244, .8); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar-title { flex: 1; }
.menu-button { display: none; font-size: 1.4rem; background: none; border: 0; cursor: pointer; color: var(--ink); }
.countdown-chip {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .9rem; color: var(--ink-soft); box-shadow: var(--shadow);
}
.countdown-chip strong { color: var(--rose-dark); }
.partner-stack { display: flex; }
.partner-stack .avatar + .avatar { margin-left: -8px; }
.content { padding: 12px 32px 60px; max-width: 1240px; }
.backdrop { display: none; }

/* 4. Components ----------------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 22px; }
.page-header h1 { margin: 0; }
.page-icon { margin-right: 10px; font-size: .85em; }
.subtitle { color: var(--muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .92rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 6px 16px rgba(201, 139, 139, .35); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--rose); }
.btn-soft { background: var(--sage-soft); color: var(--sage-dark); }
.btn-soft:hover { background: #dde7d8; }
.btn-danger-ghost { background: none; border-color: #f0d4d3; color: var(--danger); }
.btn-danger-ghost:hover { background: #fbeceb; }
.btn-block { width: 100%; }
.btn-small { padding: 6px 12px; font-size: .82rem; }
.link-button { background: none; border: 0; padding: 4px 12px; cursor: pointer; font: inherit; color: var(--rose-dark); text-align: left; }
.link-button.muted { color: var(--muted); }
.link { font-weight: 700; font-size: .9rem; }
.inline-form { display: inline; margin: 0; }
.icon-button {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: none; border: 0; cursor: pointer; font-size: .95rem; list-style: none; color: var(--ink-soft);
}
.icon-button:hover { background: var(--rose-soft); text-decoration: none; }
.icon-button.danger:hover { background: #fbeceb; color: var(--danger); }
.icon-button.on { filter: none; }
.icon-button:not(.on) { filter: grayscale(.2); }
.icon-link { margin-left: auto; opacity: .6; }
.icon-link:hover { opacity: 1; text-decoration: none; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: #f4efea; color: var(--ink-soft); font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.pill-warn { background: #fbe3e1; color: var(--danger); }
.pill-soon { background: var(--gold-soft); color: #8a6d33; }
.pill-sage { background: var(--sage-soft); color: var(--sage-dark); }
.pill-rose { background: var(--rose-soft); color: var(--rose-dark); }
.pill-soft { background: var(--rose-soft); color: var(--rose-dark); margin-left: 4px; }

.avatar {
  display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid #fff; box-shadow: 0 0 0 2px var(--ring, var(--rose));
  color: #fff; font-weight: 700; font-family: var(--sans); background: var(--rose);
}
.avatar-both { background: linear-gradient(135deg, var(--rose), var(--sage)); --ring: #e8dcd4; }
.avatar-empty { background: var(--ivory); color: var(--muted); border: 2px dashed var(--line); box-shadow: none; }

.bar { display: block; height: 8px; border-radius: 99px; background: #f1ebe5; overflow: hidden; width: 100%; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rose), #dca6a0); transition: width .6s ease; }
.bar.sage > span { background: linear-gradient(90deg, var(--sage), #b5c7ae); }
.bar.gold > span { background: linear-gradient(90deg, var(--gold), #dcc697); }
.bar.over > span { background: var(--danger); }
.bar.big { height: 12px; }
.progress-row { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
.progress-row .bar { flex: 1; }

/* Forms */
input, select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: #fffdfb; border: 1px solid #e6dcd3; border-radius: var(--radius-sm);
  padding: 10px 12px; transition: border .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
input[type=checkbox], input[type=radio] { width: auto; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
label { font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.field-half { grid-column: span 1; }
.help { color: var(--muted); font-size: .8rem; }

/* Datumveld dd/mm/jjjj met kalenderknop (zie macros/forms.html → date_input) */
.date-input { position: relative; display: flex; align-items: center; min-width: 150px; }
.date-input input[type=text] { width: 100%; padding-right: 40px; font-variant-numeric: tabular-nums; }
.date-picker-button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; cursor: pointer; font-size: 1rem;
}
.date-picker-button:hover { background: var(--rose-soft); }
.date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.quick-add-form .date-input { flex: 1 1 160px; }
.quick-add-form .date-input input { width: 100%; }
.req { color: var(--rose); }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; padding: 6px 0; }
.check input { position: absolute; opacity: 0; }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #dccfc5; background: #fff; display: grid; place-items: center; flex: none; transition: .15s; }
.check input:checked + .check-box { background: var(--sage); border-color: var(--sage); }
.check input:checked + .check-box::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }
.check input:focus-visible + .check-box { box-shadow: 0 0 0 4px var(--rose-soft); }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 1.7rem; color: #e3d8cd; cursor: pointer; line-height: 1; }
.rating-input label:hover, .rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: var(--gold); }
.rating-input .rating-clear-label { font-size: .78rem; color: var(--muted); margin-left: 12px; order: -1; }
.rating-input input.rating-clear:checked ~ label { color: #e3d8cd; }
.form-page { max-width: 820px; }
.form-card { padding: 30px; }
.form-title { font-size: 1.9rem; }
.back { display: inline-block; margin: 6px 0 12px; font-weight: 700; color: var(--muted); }
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 0 0 18px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.filters select, .filters input { min-width: 150px; padding: 8px 12px; }
.filters input[type=search] { min-width: 240px; flex: 1; max-width: 360px; }

.quick-add { padding: 12px; margin-bottom: 18px; }
.quick-add-form { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-add-form select, .quick-add-form input { flex: 1 1 150px; width: auto; }
.quick-add-form .grow { flex: 3 1 280px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); font-weight: 600; font-size: .86rem; }
.chip:hover { border-color: var(--rose); text-decoration: none; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 40;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px;
}
.dropdown.up .dropdown-menu { top: auto; bottom: calc(100% + 6px); padding: 12px; }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; }
.dropdown-menu a:hover { background: var(--rose-soft); text-decoration: none; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 8px; }
.empty h3 { color: var(--ink); }
.empty-actions { margin-top: 16px; }
.error-page { padding-top: 80px; }

.helper-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; background: linear-gradient(135deg, #fff, var(--sage-soft)); }
.helper-card.column { flex-direction: column; align-items: stretch; }
.helper-card summary { cursor: pointer; list-style: none; }
.helper-card summary h3 { display: inline; }
.helper-card h3 { margin-bottom: 4px; }

.table-card { padding: 6px 0; overflow-x: auto; }
.table-card .card-head { padding: 14px 22px 0; }
.table { width: 100%; border-collapse: collapse; }
.table td.hide-sm .pill { white-space: normal; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid #f5efe9; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdf9f6; }
.table .num { text-align: right; white-space: nowrap; }
.row-actions { width: 1%; white-space: nowrap; text-align: right; }

.toasts { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lift); padding: 12px 14px; border-left: 5px solid var(--sage); animation: toast-in .3s ease; }
.toast > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.toast p { margin: 0; flex: 1; }
.toast-error { border-left-color: var(--danger); } .toast-error > span { background: var(--danger); }
.toast-info { border-left-color: var(--gold); } .toast-info > span { background: var(--gold); }
.toast-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); line-height: 1; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

.stars { color: #e3d8cd; letter-spacing: 1px; }
.stars .on { color: var(--gold); }

.prose { line-height: 1.7; }
.prose h1, .prose h2, .prose h3 { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 3px solid var(--rose); margin: 0; padding-left: 14px; color: var(--ink-soft); font-style: italic; }
.prose img { border-radius: 12px; }
.clamp { max-height: 7.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spacer { flex: 1; }

/* 5. Sections ------------------------------------------------------------- */
/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px; }
.auth-card.wide { max-width: 620px; }
.auth-hero { text-align: center; margin-bottom: 22px; }
.auth-rings { font-size: 3rem; margin-bottom: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-foot { margin-top: 20px; font-size: .8rem; color: var(--muted); text-align: center; }

/* Dashboard */
.hero { display: flex; align-items: center; gap: 36px; padding: 32px; margin-bottom: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, #fff 0%, var(--rose-soft) 60%, var(--gold-soft) 100%); }
.hero-couple { display: flex; align-items: center; gap: 16px; }
.hero-person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink); }
.hero-person small { color: var(--muted); }
.hero-invite:hover { text-decoration: none; }
.hero-heart { color: var(--rose); font-size: 1.7rem; animation: beat 2.4s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } }
.hero-info { flex: 1; min-width: 260px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--rose-dark); font-weight: 700; margin: 0; }
.hero-count { font-size: 3.4rem; margin: 2px 0 6px; }
.hero-count span { font-size: 1.4rem; font-style: italic; color: var(--ink-soft); font-weight: 500; }
.hero-motto { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--ink-soft); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stats.mini { grid-template-columns: repeat(6, 1fr); }
.stat { display: flex; flex-direction: column; gap: 6px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat-icon { font-size: 1.3rem; }
.stat-value { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-value small { font-size: 1rem; color: var(--muted); }
.stat-label { font-size: .84rem; color: var(--muted); }
.stats.mini .stat { padding: 16px; }
.stat-sage .stat-value { color: var(--sage-dark); }
.stat-gold .stat-value { color: #a4843f; }
.stat-rose .stat-value { color: var(--rose-dark); }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: start; }
.suggestions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.suggestion { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #faf6f2; }
.suggestion p { margin: 0 0 2px; }
.suggestion-warn { background: #fdf0ee; }
.suggestion-tip { background: var(--sage-soft); font-style: italic; }
.suggestion-icon { font-size: 1.3rem; }
.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.activity li { display: flex; gap: 10px; align-items: center; }
.activity p { margin: 0; font-size: .92rem; }
.pinned { display: grid; gap: 10px; }
.pinned-note { display: block; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); }
.pinned-note:hover { text-decoration: none; background: #f2e7d2; }

/* Tasks */
.task-group { margin-bottom: 22px; }
.group-title { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 800; margin: 0 0 10px 4px; display: flex; align-items: center; gap: 8px; }
.group-warn { color: var(--danger); }
.group-soon { color: #a4843f; }
.count { background: #f1ebe5; border-radius: 999px; padding: 1px 9px; font-size: .75rem; color: var(--ink-soft); letter-spacing: 0; }
.done-group summary { cursor: pointer; list-style: none; }
.task-list { list-style: none; margin: 0; padding: 4px 0; }
.task-list.card { padding: 4px 6px; }
.task { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.task + .task { border-top: 1px solid #f5efe9; }
.task:hover { background: #fdf9f6; }
.task-main { flex: 1; min-width: 0; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.task-main:hover { text-decoration: none; }
.task-title { font-weight: 600; }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-list.compact .task { padding: 8px 4px; }
.flag { margin-right: 4px; }
.tick {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d8cabe; background: #fff;
  cursor: pointer; flex: none; display: grid; place-items: center; transition: .15s; padding: 0;
}
.tick:hover { border-color: var(--sage); background: var(--sage-soft); }
.tick:hover::after { content: "✓"; color: var(--sage); font-weight: 800; font-size: 13px; }
.tick.ticked { background: var(--sage); border-color: var(--sage); }
.tick.ticked::after { content: "✓"; color: #fff; font-weight: 800; font-size: 13px; }

/* Decisions timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--rose), var(--sage)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-dot { position: absolute; left: -24px; top: 24px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--rose); }
.decision header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.decision-what { font-size: 1.05rem; }
.decision-why { background: var(--sage-soft); padding: 10px 14px; border-radius: 12px; color: var(--ink-soft); }
.decision footer { display: flex; align-items: center; gap: 6px; }

/* Notes */
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.note { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.note.pinned { background: linear-gradient(180deg, var(--gold-soft), #fff 40%); }
.note header { display: flex; justify-content: space-between; align-items: center; }
.note-body { color: var(--ink); flex: 1; }
.note-body:hover { text-decoration: none; }
.note footer { display: flex; align-items: center; gap: 6px; }
.note-full { padding: 32px; }
.note-full-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.note-full-head h1 { margin: 8px 0 4px; }
.note-full-head p { display: flex; align-items: center; gap: 6px; }

/* Links */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.link-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.link-preview { display: block; aspect-ratio: 16 / 9; background: var(--rose-soft); overflow: hidden; }
.link-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font: 700 3rem var(--serif); color: #fff; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.link-body { padding: 14px 16px 6px; flex: 1; }
.link-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.link-body h3 a { color: var(--ink); }
.link-site { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--rose-dark); font-weight: 700; margin: 0 0 4px; }
.link-comment { background: var(--gold-soft); padding: 8px 10px; border-radius: 10px; font-size: .9rem; }
.link-foot { display: flex; align-items: center; gap: 4px; padding: 8px 12px 12px; }

/* Lists */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.list-card { color: var(--ink); display: flex; flex-direction: column; gap: 4px; transition: transform .15s; }
.list-card:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-lift); }
.list-icon { font-size: 1.8rem; }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 8px; }
.template-grid form { margin: 0; }
.template-button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 14px; border: 1px dashed #d9cbbf; background: rgba(255,255,255,.7); cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.template-button:hover { border-style: solid; border-color: var(--sage); background: #fff; }
.check-list { list-style: none; margin: 0 0 18px; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid #f5efe9; }
.check-list li.done input { text-decoration: line-through; color: var(--muted); }
.item-edit { flex: 1; margin: 0; }
.item-edit input { border-color: transparent; background: transparent; padding: 6px 8px; }
.item-edit input:hover { border-color: var(--line); }
.item-edit input:focus { background: #fff; }
.item-actions { display: flex; opacity: .35; transition: opacity .15s; }
.check-list li:hover .item-actions, .check-list li:focus-within .item-actions { opacity: 1; }
.add-items { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: end; }
.add-items label { grid-column: 1 / -1; }

/* Guests */
.rsvp { padding: 6px 30px 6px 10px; border-radius: 999px; font-weight: 700; font-size: .84rem; width: auto; min-width: 130px; }
.rsvp-yes { background-color: var(--sage-soft); color: var(--sage-dark); border-color: #d3e0cd; }
.rsvp-no { background-color: #fbe9e8; color: var(--danger); border-color: #f2d0ce; }
.rsvp-maybe, .rsvp-pending { background-color: var(--gold-soft); color: #8a6d33; border-color: #eadcbf; }

/* Budget */
.budget-summary { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
.budget-ring {
  --p: 0; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), #f1ebe5 0);
}
.budget-ring[data-over="yes"] { background: conic-gradient(var(--danger) 100%, #f1ebe5 0); }
.budget-ring > div { width: 114px; height: 114px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.budget-ring strong { font: 700 1.9rem var(--serif); line-height: 1; }
.budget-ring small { color: var(--muted); font-size: .78rem; }
.budget-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; flex: 1; margin: 0; }
.budget-numbers dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.budget-numbers dd { margin: 2px 0 0; font: 700 1.45rem var(--serif); }
.budget-numbers .neg { color: var(--danger); }
.budget-numbers .pos { color: var(--sage-dark); }
.budget-group { margin-bottom: 18px; }
.budget-group .table { table-layout: fixed; }
.budget-group .table th:first-child { width: 38%; }
.budget-group .table th:last-child { width: 56px; }

/* Vendors */
.vendor-section { margin-bottom: 24px; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.vendor { display: flex; flex-direction: column; gap: 6px; border-top: 4px solid #e8ddd3; }
.vendor header { display: flex; justify-content: space-between; align-items: center; }
.vendor h3 { margin: 4px 0 0; }
.vendor h3 a { color: var(--ink); }
.vendor-quote { font: 700 1.3rem var(--serif); color: var(--rose-dark); margin: 0; }
.vendor-contact { list-style: none; padding: 0; margin: 4px 0; font-size: .9rem; display: flex; flex-direction: column; gap: 3px; }
.status-badge { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; background: #f4efea; color: var(--ink-soft); }
.status-booked { border-top-color: var(--sage); }
.status-booked .status-badge { background: var(--sage); color: #fff; }
.status-quoted { border-top-color: var(--gold); }
.status-quoted .status-badge { background: var(--gold-soft); color: #8a6d33; }
.status-contacted { border-top-color: var(--rose); }
.status-contacted .status-badge { background: var(--rose-soft); color: var(--rose-dark); }
.status-rejected { opacity: .6; }

/* Files */
.dropzone { position: relative; display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; border: 2px dashed #e0d2c6; background: rgba(255, 255, 255, .7); }
.dropzone.drag { border-color: var(--rose); background: var(--rose-soft); }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-label { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; cursor: pointer; text-align: center; }
.dropzone-icon { font-size: 2.2rem; }
.dropzone-options { display: flex; gap: 10px; flex-wrap: wrap; }
.dropzone-options select { flex: 1 1 160px; width: auto; }
.dropzone-options input { flex: 3 1 220px; width: auto; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.file-card { padding: 0; overflow: visible; display: flex; flex-direction: column; }
.file-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--rose-soft), var(--gold-soft)); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-ext { font: 700 1.6rem var(--serif); color: var(--rose-dark); text-transform: uppercase; }
.file-body { padding: 12px 14px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.file-name { word-break: break-word; }

/* Profile & settings */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-grid .span-2 { grid-column: span 1; }
.profile-grid > #password { grid-column: 2; }
.profile-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.profile-bio { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.file-button { cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch input { position: absolute; opacity: 0; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); cursor: pointer; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .12s; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--c); transform: scale(1.08); }
.swatch input:focus-visible + span { outline: 3px solid var(--ink); }
.partner-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.partner-list li { display: flex; align-items: center; gap: 12px; }
.partner-list div { display: flex; flex-direction: column; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }

/* 5b. Sinds 1.4.0: gasten-tabbladen, RSVP, menu, tafelschikking, import, etiketten,
       draaiboek en akkoorden ---------------------------------------------------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.padded { padding: 0 22px 14px; }
.plain-list { margin: 0; padding-left: 1.2em; }
.form-errors { background: #fdf0ee; border-radius: 12px; padding: 10px 14px; color: var(--danger); }
.form-errors p { margin: 0; }
.empty.compact { padding: 16px 0; text-align: left; }

/* Navigatie: badge met aantal items die op jouw akkoord wachten */
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rose); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.nav-link.active .nav-badge { background: #fff; color: var(--ink); }

/* Tabbladen van de gastenpagina's */
.tabs { display: flex; gap: 4px; margin: -6px 0 20px; padding: 4px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 8px 14px; border-radius: 10px; color: var(--ink-soft); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.tab:hover { background: var(--rose-soft); text-decoration: none; }
.tab.active { background: var(--ink); color: #fff; }
.stat.selected { outline: 2px solid var(--rose); }

/* Kopieerbare link + QR */
.copy-field { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.copy-field input { flex: 1; min-width: 0; font-size: .85rem; background: #faf6f2; }
.rsvp-box { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--rose-soft); }
.rsvp-box h3 { margin-bottom: 4px; }
/* Gastenlijst: gezinnen als blok. De gezinsregel heeft dezelfde kolommen als een
   losse gast, zodat beide rustig naast elkaar staan; alleen een dun groen streepje
   links en de ingesprongen gezinsleden verraden het gezin. */
.family-row td:first-child, .family-member td:first-child { box-shadow: inset 3px 0 0 var(--sage-soft, #dfe8dc); }
.family-group:not(.is-collapsed) .family-row td:first-child,
.family-group:not(.is-collapsed) .family-member td:first-child { box-shadow: inset 3px 0 0 var(--sage, #9bb08f); }
.family-member td { background: #fcfaf7; }
.family-member td:first-child { padding-left: 38px; }
.family-member.is-child td:first-child { padding-left: 52px; }
.family-toggle {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 0; border: 0;
  background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.family-toggle:hover .strong { text-decoration: underline; }
.family-chevron { display: inline-block; width: 1em; color: var(--muted); transition: transform .15s ease; }
.family-toggle[aria-expanded="true"] .family-chevron { transform: rotate(90deg); }
.family-sub { margin: 2px 0 0 1.4em; }
/* Gastenlijst: meer ruimte voor de naam, zodat gezinsnamen op één regel passen. */
@media (min-width: 641px) {
  #guest-table th:first-child { width: 30%; }
  #guest-table th:nth-child(2) { width: 12%; }
  #guest-table th:nth-child(4) { width: 17%; }
  #guest-table th, #guest-table td { padding-left: 10px; padding-right: 10px; }
  #guest-table .family-member td:first-child { padding-left: 34px; }
  #guest-table .family-member.is-child td:first-child { padding-left: 48px; }
}
#guest-table .family-actions-cell .icon-button { width: 28px; height: 28px; }
.family-actions-cell { white-space: nowrap; }
.family-actions-cell form { display: inline; }
.rsvp-partial { background-color: var(--gold-soft); color: #8a6d33; }
.family-all { margin-left: 6px; text-transform: none; letter-spacing: 0; font-weight: 600; }
/* Zonder JavaScript blijft alles open; met JavaScript is een gezin standaard dichtgeklapt. */
.js .family-group.is-collapsed:not(.is-searching) .family-member { display: none; }
.family-group:not(.is-collapsed) .family-names, .family-group.is-searching .family-names { display: none; }
html:not(.js) .family-names, html:not(.js) .family-chevron { display: none; }
.family-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.family-box { margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--sage-soft, #eef3ec); }
.family-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.family-head h3 { margin: 0; }
.family-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.family-list li { display: flex; gap: 6px; align-items: center; }
.rsvp-box .qr { background: #fff; border-radius: 10px; padding: 6px; flex: none; }
.rsvp-note { font-style: italic; }
.link-actions { white-space: nowrap; }
.qr-dialog { width: min(380px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lift); text-align: center; color: var(--ink); }
.qr-dialog::backdrop { background: rgba(47, 42, 40, .45); }
.qr-dialog h2 { margin: 0 32px 4px; }
.qr-dialog img { display: block; width: 240px; max-width: 100%; height: auto; margin: 12px auto; background: #fff; border-radius: 12px; }
.qr-dialog-close { position: absolute; top: 10px; right: 10px; }
.qr-dialog-actions { justify-content: center; margin: 10px 0 6px; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: #f4efea; color: var(--ink-soft); }
.status-yes { background: var(--sage-soft); color: var(--sage-dark); }
.status-no { background: #fbe9e8; color: var(--danger); }
.status-partial { background: var(--gold-soft); color: #8a6d33; }
.rsvp-layout, .menu-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.messages p { margin: 0; font-style: italic; }

/* Openbare pagina's (gasten, gedeeld draaiboek) */
.public-wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
.public-hero { text-align: center; margin-bottom: 22px; }
.public-hero h1 { font-size: 2.8rem; margin: 4px 0; }
.public-date { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.public-card { padding: 28px; }
.public-foot { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 28px; }
.rsvp-intro { font-size: 1.05rem; }
.rsvp-deadline { font-weight: 700; color: var(--rose-dark); }
.rsvp-person { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin: 0; }
.rsvp-person legend { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; padding: 0 6px; }
.rsvp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; color: var(--ink-soft); transition: .15s; }
.choice input:checked + span { border-color: var(--sage); background: var(--sage-soft); color: var(--sage-dark); }
.choice-no input:checked + span { border-color: var(--rose); background: var(--rose-soft); color: var(--rose-dark); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--rose-soft); }
.rsvp-details { display: flex; flex-direction: column; gap: 12px; }
.rsvp-plus-one { background: #faf6f2; border-radius: 12px; padding: 12px 14px; }
.rsvp-thanks { text-align: center; }
.rsvp-summary { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.rsvp-closed { background: #faf6f2; border-radius: 12px; padding: 14px; }

/* Menu & telling */
.count-table tfoot td { font-weight: 800; border-top: 2px solid var(--line); }
.row-warn td { color: var(--danger); }
.per-table { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.per-table li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.per-table li > span { display: flex; flex-wrap: wrap; gap: 4px; }
.option-list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.option-list li { display: flex; gap: 6px; align-items: flex-start; padding-bottom: 10px; border-bottom: 1px solid #f5efe9; }
.option-form { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.option-form input[name=name], .option-form input[name=description] { grid-column: 1 / -1; }
.option-form input[name=description] { font-size: .85rem; }
.option-form .check { grid-column: 1; padding: 0; }
.check.small { font-size: .85rem; }
.check.small .check-box { width: 18px; height: 18px; }
.add-option { border-top: 1px dashed var(--line); padding-top: 14px; }

/* Tafelschikking */
.seating-summary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 14px 20px; margin-bottom: 18px; }
.seating-summary .dropdown { margin-left: auto; }
.add-tables { width: min(420px, 90vw); padding: 16px; }
.seating-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.unseated-panel { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.drop-zone { list-style: none; margin: 0; padding: 6px; min-height: 48px; border-radius: 12px; border: 2px dashed transparent; display: flex; flex-direction: column; gap: 6px; transition: .15s; }
.drop-zone.over { border-color: var(--sage); background: var(--sage-soft); }
.seat-table .drop-zone { border-color: #f1ebe5; }
.guest-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); cursor: grab; font-size: .9rem; }
.guest-chip:hover { border-color: var(--rose); }
.guest-chip.dragging { opacity: .45; }
.guest-chip.is-pending { background: #fdfaf5; }
.family-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--sage-soft); border: 1px solid #d6e2d1; cursor: grab; font-size: .86rem; }
.family-chip:not(:first-child) { margin-top: 6px; }
.family-chip:hover { border-color: var(--sage); }
.family-chip.dragging { opacity: .45; }
.family-chip .chip-name { font-weight: 700; color: var(--sage-dark); }
.chip-grip { color: #cdbfb4; letter-spacing: -2px; }
.chip-name { flex: 1 1 140px; font-weight: 600; min-width: 0; }
.chip-move { margin-left: auto; }
.chip-icon { font-size: .8rem; }
.chip-move select { padding: 3px 26px 3px 8px; font-size: .78rem; width: auto; max-width: 150px; background-position: calc(100% - 13px) 55%, calc(100% - 9px) 55%; }
.seat-table.over .table-top span { color: var(--danger); }
.seat-table.over { border-color: #f2c9c7; }
.table-visual { position: relative; height: 150px; display: grid; place-items: center; margin-bottom: 10px; }
.table-top { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--gold-soft); border: 2px solid #eadcbf; padding: 6px; }
.table-top strong { font-family: var(--serif); font-size: 1.1rem; line-height: 1.1; }
.table-top span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.shape-round .table-top { width: 96px; height: 96px; border-radius: 50%; }
.shape-round .seat { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid #dccfc5;
  transform: rotate(calc(360deg * var(--i) / var(--n))) translateY(-66px); }
.shape-long { height: auto; min-height: 120px; grid-template-columns: repeat(var(--cols), 1fr); gap: 6px; justify-items: center; align-content: center; }
.shape-long .table-top { width: 100%; min-height: 60px; border-radius: 10px; grid-column: 1 / -1; grid-row: 2; }
.shape-long .seat { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #dccfc5; }
.shape-long .seat:nth-child(odd) { grid-row: 1; }
.shape-long .seat:nth-child(even) { grid-row: 3; }
.seat.taken { background: var(--sage); border-color: var(--sage); }
.seat-table.over .seat.taken { background: var(--danger); border-color: var(--danger); }
.table-edit { margin-top: 8px; }
.table-edit summary { cursor: pointer; list-style: none; }
.table-edit form { margin-top: 10px; }

/* Importeren & etiketten */
.import-layout, .labels-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.steps { padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.mapping-table select { min-width: 220px; }
.mapping-table tr.is-ignored td:first-child { color: var(--muted); }
.import-confirm { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.label-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.label-sample { border: 1px dashed #d9cbbf; border-radius: 6px; padding: 10px; font-size: .8rem; line-height: 1.35; background: #fff; }

/* Draaiboek */
.share-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; background: linear-gradient(135deg, #fff, var(--gold-soft)); }
.share-card > div:first-child { flex: 1; min-width: 260px; }
.schedule-day { margin-bottom: 26px; }
.schedule-day-title { font-size: 1.3rem; margin-bottom: 12px; }
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule-item { display: grid; grid-template-columns: 64px 18px 1fr; gap: 12px; position: relative; padding-bottom: 12px; }
.schedule-item::before { content: ""; position: absolute; left: 72px; top: 18px; bottom: -4px; width: 2px; background: linear-gradient(var(--rose), var(--sage)); opacity: .45; }
.schedule-item:last-child::before { display: none; }
.schedule-time { text-align: right; padding-top: 14px; line-height: 1.1; }
.schedule-time strong { display: block; font-family: var(--serif); font-size: 1.3rem; }
.schedule-time span { font-size: .8rem; color: var(--muted); }
.schedule-dot { width: 14px; height: 14px; margin-top: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--rose); position: relative; z-index: 1; }
.schedule-card { padding: 14px 18px; }
.schedule-card header { display: flex; align-items: center; gap: 10px; }
.schedule-card h3 { margin: 0; }
.schedule-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 0; font-size: .9rem; color: var(--ink-soft); }
.schedule-notes { margin: 8px 0 0; white-space: pre-line; font-size: .92rem; }

/* Akkoorden */
.approval { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.approval-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.approval-badge { font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a6d33; }
.approval-approved .approval-badge { background: var(--sage-soft); color: var(--sage-dark); }
.approval-discuss .approval-badge { background: #fbe9e8; color: var(--danger); }
.approval-votes { display: flex; gap: 8px; }
.approval-vote { position: relative; display: inline-flex; }
.vote-mark { position: absolute; right: -6px; bottom: -4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; font-size: .65rem; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--line); font-weight: 800; }
.vote-yes .vote-mark { background: var(--sage); color: #fff; }
.vote-none .avatar { opacity: .45; }
.approval-comment { margin: 0; font-size: .88rem; background: #faf6f2; border-radius: 10px; padding: 6px 10px; }
.approval-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.approval-actions .dropdown-menu { width: 260px; padding: 12px; }
.approvals-card { border-color: #eadcbf; background: linear-gradient(135deg, #fff, var(--gold-soft)); }
.waiting-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.waiting-list a { color: var(--ink); }
.avatar-guest { background: var(--gold-soft); --ring: #eadcbf; }

/* 5c. Sinds 1.5.0: weer, verlanglijst, cadeaus en bedankjes ------------------- */
.weather-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; align-items: start; }
.weather-now { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.weather-now p { margin: 0; }
.weather-icon { font-size: 2.6rem; line-height: 1; }
.weather-now.big .weather-icon { font-size: 4rem; }
.weather-temp { font: 700 2.2rem var(--serif); }
.weather-now.big .weather-temp { font-size: 3.2rem; }
.weather-climate { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.weather-climate span { flex: 1 1 90px; background: #faf6f2; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.weather-climate strong { font: 700 1.3rem var(--serif); }
.weather-climate small { color: var(--muted); font-size: .75rem; }
.weather-advice { background: var(--sage-soft); border-radius: 12px; padding: 10px 14px; margin: 8px 0 0; }
.weather-hero { background: linear-gradient(135deg, #fff, #eef3f8); }
.weather-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.weather-hour { flex: none; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: #faf6f2; }
.weather-hour span { font-size: 1.4rem; }
.weather-hour.wet { background: #e8eff6; }
.weather-hour .rain { font-size: .7rem; color: var(--muted); }

.wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.wish { display: flex; flex-direction: column; gap: 6px; }
.wish header { display: flex; align-items: center; gap: 8px; }
.wish h3 { margin: 4px 0 0; }
.wish.is-complete { opacity: .75; }
.wish-price { font: 700 1.2rem var(--serif); color: var(--rose-dark); margin: 0; }
.reservations { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.reservations ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.reservations li { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.share-settings { margin-top: 8px; }
.share-settings summary { cursor: pointer; list-style: none; }
.share-settings form { margin-top: 10px; }
.reserve { margin-top: auto; }
.reserve summary { list-style: none; display: inline-flex; }
.reserve form { margin-top: 10px; }
.my-reservation { display: flex; align-items: center; gap: 6px; }
.registry-intro { white-space: pre-line; }
.registry-teaser { display: flex; align-items: center; gap: 14px; margin-top: 16px; color: var(--ink); }
.registry-teaser:hover { text-decoration: none; box-shadow: var(--shadow-lift); }
.registry-teaser .empty-icon { font-size: 2rem; margin: 0; }

.thanks-progress { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.thanks-progress .bar { flex: 1; min-width: 200px; }
.thanks-count { font: 700 1.8rem var(--serif); margin-right: 6px; }
.thanks-list { display: flex; flex-direction: column; gap: 10px; }
.thanks-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.thanks-row h3 { margin: 0 0 2px; }
.thanks-row p { margin: 0; }
.thanks-row.is-sent { background: linear-gradient(90deg, #fff, var(--sage-soft)); }
.thanks-gifts { list-style: none; margin: 6px 0 0; padding: 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.thanks-toggle { display: flex; align-items: center; gap: 8px; }

/* 6. Responsive ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .stats.mini { grid-template-columns: repeat(3, 1fr); }
  .rsvp-layout, .menu-layout, .import-layout, .labels-layout, .weather-layout { grid-template-columns: 1fr; }
  .seating-layout { grid-template-columns: 1fr; }
  .unseated-panel { position: static; max-height: none; }
  .profile-grid, .settings-layout { grid-template-columns: 1fr; }
  .profile-grid > #password { grid-column: auto; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lift); background: #fff; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(47, 42, 40, .35); z-index: 25; }
  .main { margin-left: 0; }
  .menu-button { display: block; }
  .topbar { padding: 12px 16px; }
  .content { padding: 8px 16px 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .partner-stack { display: none; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  .public-hero h1 { font-size: 2.2rem; }
  .public-card { padding: 18px; }
  .rsvp-choice { grid-template-columns: 1fr; }
  .rsvp-box { flex-direction: column; }
  .schedule-item { grid-template-columns: 52px 14px 1fr; gap: 8px; }
  .schedule-item::before { left: 58px; }
  .seating-summary .dropdown { margin-left: 0; }
  .hero { padding: 22px; gap: 20px; }
  .hero-count { font-size: 2.6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field-half { grid-column: span 2; }
  .stats.mini { grid-template-columns: repeat(2, 1fr); }
  .countdown-chip { font-size: .8rem; padding: 4px 10px; }
  .hide-sm { display: none; }
  .table thead { display: none; }
  .table tr { display: block; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .table td { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border: 0; }
  .table td::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .table td.row-actions { justify-content: flex-end; width: auto; }
  .table td.row-actions::before { content: none; }
  .table .num { text-align: left; }
  .table, .table tbody { display: block; width: 100%; }
  .family-row { box-shadow: inset 3px 0 0 var(--sage, #9bb08f); }
  .family-row td:first-child, .family-member td:first-child { box-shadow: none; }
  .family-member { padding-left: 28px !important; background: #fcfaf7; box-shadow: inset 3px 0 0 var(--sage-soft, #dfe8dc); }
  .family-member td { background: none; }
  .family-member td:first-child, .family-member.is-child td:first-child { padding-left: 0; }
  .family-sub { margin-left: 0; text-align: right; }
  .filters input[type=search] { max-width: none; }
  .form-card, .note-full { padding: 20px; }
  .budget-summary { justify-content: center; }
}
@media print {
  .sidebar, .topbar, .page-actions, .quick-add, .filters, .helper-card, .tabs, .share-card,
  .toasts, [data-print] { display: none !important; }
  .public-page { background: #fff; }
  .schedule-item { break-inside: avoid; }
  .main { margin: 0; }
  .card { box-shadow: none; }
}

/* =========================================================================
   5d. Site-instellingen (back-ups, agenda-koppeling, info) – sinds 1.9.0
   ========================================================================= */
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.site-grid .card h2, .howto-grid h3 { margin-top: 0; }
.stat-value.small-value { font-size: 1.35rem; }
.code-block { background: #2f2a28; color: #f7efe8; padding: 12px 14px; border-radius: 10px; font-size: .85rem; overflow-x: auto; white-space: pre; }
.notice { background: var(--gold-soft); border-radius: 10px; padding: 10px 14px; margin-top: 14px; }
.howto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.howto-grid h3 { font-size: 1rem; font-family: inherit; }
.upload-backup { margin-top: 10px; }
.upload-backup form { margin-top: 10px; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0 0 14px; }
.info-list dt { font-weight: 700; color: var(--ink-soft); }
.info-list dd { margin: 0; word-break: break-all; }
@media (max-width: 640px) {
  .info-list { grid-template-columns: 1fr; gap: 2px; }
  .info-list dd { margin-bottom: 10px; }
}
