/* OnsNest – stijl */
:root {
  --bg: #FBF6F2;
  --card: #FFFFFF;
  --ink: #2C2230;
  --muted: #8A7E86;
  --line: #EFE5DF;
  --accent: #E2586A;
  --accent-2: #F58A6E;
  --accent-soft: color-mix(in srgb, var(--accent) 14%, var(--card));
  --samen: #9B6BC4;
  --ok: #3E9B6F;
  --late: #D6453D;
  --shadow: 0 1px 2px rgba(60, 30, 40, .05), 0 6px 20px rgba(60, 30, 40, .06);
  --radius: 18px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  --accent-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  color-scheme: light;
}
/* Donker: vast gekozen, of automatisch als de telefoon/computer op donker staat */
:root[data-theme="dark"] {
  --bg: #17131A; --card: #241E26; --ink: #F4ECEF; --muted: #A99BA3; --line: #362D38;
  --shadow: 0 1px 2px rgba(0,0,0,.35); --accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17131A; --card: #241E26; --ink: #F4ECEF; --muted: #A99BA3; --line: #362D38;
    --shadow: 0 1px 2px rgba(0,0,0,.35); --accent-glow: color-mix(in srgb, var(--accent) 25%, transparent);
    color-scheme: dark;
  }
}
/* Tekstgrootte */
:root[data-size="groot"] #view, :root[data-size="groot"] .sheet > * { zoom: 1.1; }
:root[data-size="xgroot"] #view, :root[data-size="xgroot"] .sheet > * { zoom: 1.22; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; transition: background-color .25s; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); }
body { min-height: 100vh; overscroll-behavior-y: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--font-round); letter-spacing: -.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- inloggen ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 80% at 50% 0%, var(--accent-soft), var(--bg) 60%); }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-logo { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 10px 30px var(--accent-glow); }
.login h1 { font-size: 34px; margin-top: 16px; }
.login form { margin-top: 28px; text-align: left; display: grid; gap: 14px; }

/* ---------- formulieren ---------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=password], input:not([type]), input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 16px; font-weight: 400; color: var(--ink); outline: none; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A7E86' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.form-error { color: var(--late); font-size: 14px; min-height: 1em; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn { border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 600; cursor: pointer; background: var(--accent-soft); color: var(--accent); min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.danger { background: transparent; color: var(--late); }
.btn.wide { width: 100%; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; }

.segmented { display: flex; background: var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.segmented button { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 9px; font-weight: 600; color: var(--muted); cursor: pointer; display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 15px; }
.segmented button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

.switch-row { display: flex; align-items: center; justify-content: space-between; font-size: 16px; color: var(--ink); font-weight: 500; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 30px; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 24px; height: 24px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- app-kader ---------- */
.topbar { position: sticky; top: 0; z-index: 36; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.topbar-title { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 30px; height: 30px; border-radius: 9px; }
.topbar h1 { font-size: 24px; }
.icon-btn { border: 0; background: transparent; padding: 4px; cursor: pointer; border-radius: 50%; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: var(--accent); }
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }

main { padding: 4px 16px calc(var(--safe-b) + 110px); max-width: 760px; margin: 0 auto; }


.fab { position: fixed; right: 18px; bottom: calc(var(--safe-b) + 22px); z-index: 25; width: 58px; height: 58px; border-radius: 20px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px var(--accent-glow); }
.fab svg { width: 28px; height: 28px; stroke-width: 2.6; }
.fab:active { transform: scale(.94); }

/* ---------- kaarten & lijsten ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.card h2 a { font-size: 14px; font-weight: 600; text-decoration: none; font-family: var(--font); }
.hello { margin: 6px 2px 16px; }
.hello h2 { font-size: 28px; }
.hello p { margin: 2px 0 0; color: var(--muted); }
.empty { color: var(--muted); font-size: 15px; padding: 6px 0; }
.empty-big { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty-big svg { width: 48px; height: 48px; stroke-width: 1.4; opacity: .5; margin-bottom: 8px; }

.item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item .bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.item .time { width: 50px; flex: none; font-weight: 700; font-size: 14px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.item .time small { display: block; font-weight: 500; color: var(--muted); }
.item .main { flex: 1; min-width: 0; }
.item .title { font-weight: 600; word-break: break-word; }
.item .meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--line); color: var(--ink); }
.bell { display: inline-flex; align-items: center; gap: 3px; }
.bell svg { width: 13px; height: 13px; }

.banner { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }
.banner p { margin: 0; flex: 1; font-size: 14px; }
.banner strong { display: block; font-size: 15px; }

/* ---------- agenda ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.cal-head h2 { font-size: 21px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 12px; height: 38px; min-width: 38px; cursor: pointer; display: grid; place-items: center; font-weight: 600; padding: 0 10px; font-size: 14px; }
.cal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 8px 8px; margin-bottom: 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 0 6px; text-transform: uppercase; }
.cal-day { border: 0; background: transparent; cursor: pointer; aspect-ratio: 1 / 1.05; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 6px; gap: 3px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cal-day.other { color: var(--muted); opacity: .45; }
.cal-day.today span.n { background: var(--accent); color: #fff; }
.cal-day.sel { background: var(--accent-soft); }
.cal-day span.n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-dots { display: flex; gap: 2px; height: 6px; }
.cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
.legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); padding-top: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- taken ---------- */
.quick-add { display: flex; gap: 8px; margin-bottom: 12px; }
.quick-add input { flex: 1; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { border: 1.5px solid var(--line); background: var(--card); border-radius: 20px; padding: 7px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.filters button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); flex: none; display: grid; place-items: center; cursor: pointer; background: transparent; padding: 0; margin-top: 0; }
.check svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 3; opacity: 0; }
.task.done .check { background: var(--ok); border-color: var(--ok); }
.task.done .check svg { opacity: 1; }
.task.done .title { text-decoration: line-through; color: var(--muted); }
.late { color: var(--late) !important; font-weight: 600; }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 4px 6px; }
.section-label:first-child { margin-top: 4px; }

/* ---------- foto's ---------- */
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar input { flex: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 14px; overflow: hidden; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo-grid button { border: 0; padding: 0; aspect-ratio: 1; background: var(--line); cursor: pointer; overflow: hidden; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.photo-strip img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; cursor: pointer; background: var(--line); }

.lightbox { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; color: #fff; }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--safe-t)) 12px 10px; gap: 8px; }
.lb-bottom { padding: 10px 12px calc(14px + var(--safe-b)); flex-direction: column; align-items: stretch; }
.lb-img { flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox .icon-btn { color: #fff; background: rgba(255,255,255,.12); width: 42px; height: 42px; display: grid; place-items: center; }
.lb-meta { font-size: 13px; opacity: .7; text-align: center; }
.lb-caption { background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 12px; padding: 10px 12px; width: 100%; font-size: 15px; }
.lb-actions { display: flex; gap: 8px; justify-content: center; }

/* ---------- bestanden ---------- */
.file-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 11px; font-weight: 800; color: #fff; text-transform: uppercase; }
.file-icon.thumb { background-size: cover; background-position: center; }

/* ---------- onderblad ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(30, 15, 25, .4); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--bg); border-radius: 24px 24px 0 0; max-height: 92vh; overflow-y: auto;
  padding: 8px 18px calc(20px + var(--safe-b)); animation: up .25s cubic-bezier(.2,.8,.2,1); max-width: 640px; margin: 0 auto; box-shadow: 0 -10px 40px rgba(0,0,0,.15); }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: var(--line); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-size: 21px; }
.sheet form { display: grid; gap: 14px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 4px; }
.sheet .actions .btn { flex: 1; }
.detail-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; }
.detail-row svg { color: var(--muted); flex: none; margin-top: 1px; }
.detail-row .txt { white-space: pre-wrap; word-break: break-word; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 700px) {
  .sheet { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: 24px; animation: fade .2s; max-height: 86vh; }
}

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 96px); z-index: 70;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }

.settings-list .item { cursor: default; align-items: center; }
.color-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.color-pick button { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; }
.color-pick button.on { border-color: var(--ink); }
.steps { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.steps li { margin: 3px 0; }

/* ---------- instellingen ---------- */
.set-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.set-head .avatar { width: 52px; height: 52px; font-size: 22px; }
.set-head b { display: block; font-size: 18px; font-family: var(--font-round); }
.set-head span { color: var(--muted); font-size: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.set-row .lbl { flex: 1; min-width: 0; font-weight: 500; }
.set-row .lbl small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 1px; }
.set-row select { width: auto; min-width: 0; max-width: 62%; flex: none; min-height: 40px; padding: 8px 32px 8px 12px; font-size: 14px; }
.set-row input[type=time] { width: 96px; min-height: 40px; padding: 8px 8px; font-size: 15px; text-align: center; }
.set-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-block:last-child { border-bottom: 0; padding-bottom: 2px; }
.set-block > .lbl { font-weight: 500; margin-bottom: 10px; }
.set-block > .lbl small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-pick button { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 8px 8px 10px; cursor: pointer; display: grid; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }
.theme-pick button.on { border-color: var(--accent); color: var(--accent); }
.theme-prev { height: 58px; border-radius: 10px; display: grid; gap: 5px; padding: 8px; align-content: start; overflow: hidden; }
.theme-prev i { display: block; height: 7px; border-radius: 4px; }
.theme-prev.licht { background: #FBF6F2; border: 1px solid #EFE5DF; }
.theme-prev.licht i { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.theme-prev.donker { background: #17131A; border: 1px solid #362D38; }
.theme-prev.donker i { background: #241E26; }
.theme-prev.auto { background: linear-gradient(135deg, #FBF6F2 50%, #17131A 50%); border: 1px solid var(--line); }
.theme-prev.auto i { background: color-mix(in srgb, #fff 55%, #241E26); }
.theme-prev i:first-child { background: var(--accent); width: 45%; }
.accent-pick { display: flex; gap: 9px; padding: 3px; flex-wrap: wrap; }
.accent-pick button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 0 var(--card); }
.accent-pick button.on { box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.accent-pick svg { width: 18px; height: 18px; stroke-width: 3; opacity: 0; }
.accent-pick button.on svg { opacity: 1; }
.size-pick button { font-weight: 700; }
.size-pick button:nth-child(1) { font-size: 14px; } .size-pick button:nth-child(2) { font-size: 16px; } .size-pick button:nth-child(3) { font-size: 19px; }
.quiet-times { display: flex; gap: 10px; align-items: center; justify-content: flex-end; color: var(--muted); font-size: 14px; }
.devices { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.cal-grid.wk { grid-template-columns: 22px repeat(7, 1fr); }
.cal-wk { font-size: 10px; font-weight: 700; color: var(--muted); opacity: .7; display: grid; place-items: start center; padding-top: 12px; }
details.card > summary { list-style: none; cursor: pointer; font-family: var(--font-round); font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '›'; font-size: 22px; color: var(--muted); transition: transform .2s; }
details.card[open] > summary::after { transform: rotate(90deg); }
details.card[open] > summary { margin-bottom: 12px; }

/* ---------- menu linksboven ---------- */
.menu-btn { width: 42px; height: 42px; border-radius: 13px; border: 0; cursor: pointer; background: var(--card); box-shadow: var(--shadow);
  display: grid; place-content: center; gap: 4.5px; padding: 0; color: var(--ink); transition: background .2s; }
.menu-btn span { display: block; width: 18px; height: 2.2px; border-radius: 2px; background: currentColor; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s, width .28s; }
.menu-btn span:nth-child(2) { width: 13px; }
.menu-open .menu-btn { background: var(--accent); color: #fff; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; width: 18px; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }
.menu-backdrop { position: fixed; inset: 0; z-index: 34; background: rgba(30, 15, 25, .28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.menu-open .menu-backdrop { opacity: 1; pointer-events: auto; }
.menu { position: fixed; z-index: 35; left: 10px; right: 10px; top: calc(var(--safe-t) + 62px); max-width: 520px; margin: 0;
  background: var(--card); border-radius: 22px; box-shadow: 0 18px 50px rgba(20, 10, 20, .22); padding: 12px;
  transform-origin: 26px -10px; transform: translateY(-12px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.2,.9,.25,1.05), opacity .2s; max-height: calc(100vh - var(--safe-t) - 80px); overflow-y: auto; }
.menu-open .menu { transform: none; opacity: 1; pointer-events: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-grid a { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 4px 11px; border-radius: 16px; text-decoration: none; color: var(--ink);
  font-size: 13px; font-weight: 600; text-align: center; background: color-mix(in srgb, var(--line) 45%, transparent);
  opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s, background .15s; }
.menu-open .menu-grid a { opacity: 1; transform: none; }
.menu-grid a:active { transform: scale(.96); }
.menu-grid a.on { background: var(--accent-soft); color: var(--accent); }
.menu-grid .mi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; }
.menu-grid .mi svg { width: 22px; height: 22px; }
.menu-grid .badge { position: absolute; top: 7px; right: 9px; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 4px 6px 0; font-size: 13px; color: var(--muted); }
.menu-foot a { color: var(--muted); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.menu-foot svg { width: 17px; height: 17px; }
@media (min-width: 560px) { .menu { left: 16px; right: auto; width: 460px; } .menu-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- boodschappen ---------- */
.shop-add { display: flex; gap: 8px; margin-bottom: 10px; position: sticky; top: calc(var(--safe-t) + 62px); z-index: 5; }
.shop-add input { flex: 1; box-shadow: var(--shadow); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1.5px dashed var(--line); background: transparent; border-radius: 20px; padding: 6px 12px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chips button:active { background: var(--accent-soft); color: var(--accent); }
.shop-cat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 2px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.shop-item:last-child { border-bottom: 0; }
.shop-item .name { flex: 1; min-width: 0; font-weight: 600; word-break: break-word; }
.shop-item .name small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.shop-item .who { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.shop-item.done .name { text-decoration: line-through; color: var(--muted); }
.shop-item.done .check { background: var(--ok); border-color: var(--ok); }
.shop-item.done .check svg { opacity: 1; }
.shop-item .more { border: 0; background: transparent; color: var(--muted); padding: 4px; cursor: pointer; border-radius: 8px; }
.shop-item .more svg { width: 18px; height: 18px; }
.shop-empty { text-align: center; padding: 34px 10px 20px; color: var(--muted); }
.shop-empty b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.cat-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cat-pick button { border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px 4px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink); }
.cat-pick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

/* ---------- prikbord ---------- */
.board { columns: 2; column-gap: 10px; }
@media (min-width: 600px) { .board { columns: 3; } }
.note { break-inside: avoid; margin: 0 0 10px; border-radius: 16px; padding: 14px 14px 12px; cursor: pointer; box-shadow: var(--shadow); position: relative; color: #2C2230; }
.note h3 { font-size: 16px; margin: 0 0 4px; padding-right: 16px; word-break: break-word; }
.note p { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.note ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 14px; }
.note li { display: flex; gap: 6px; align-items: flex-start; margin: 3px 0; }
.note li.d { text-decoration: line-through; opacity: .55; }
.note .pin { position: absolute; top: 9px; right: 10px; font-size: 13px; }
.note .foot { font-size: 11.5px; opacity: .6; margin-top: 8px; }
.n-geel { background: #FFF1B8; } .n-roze { background: #FFD9E0; } .n-blauw { background: #D6E8FF; }
.n-groen { background: #D4F2DD; } .n-paars { background: #E7DCFA; } .n-oranje { background: #FFE0C7; }
:root[data-theme="dark"] .note { filter: saturate(.85) brightness(.92); }
.note-colors { display: flex; gap: 10px; }
.note-colors button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0,0,0,.08); cursor: pointer; }
.note-colors button.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.checklist { display: grid; gap: 6px; }
.checklist .ci { display: flex; gap: 8px; align-items: center; }
.checklist .ci input[type=text] { min-height: 40px; padding: 8px 10px; }
.checklist .ci .check { width: 24px; height: 24px; }
.checklist .ci.d .check { background: var(--ok); border-color: var(--ok); }
.checklist .ci.d .check svg { opacity: 1; }
.checklist .ci.d input { text-decoration: line-through; color: var(--muted); }

/* ---------- verjaardagen & vervaldatums ---------- */
.big-emoji { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--accent-soft); }
.when-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--line); color: var(--ink); align-self: center; }
.when-pill.today { background: var(--accent); color: #fff; }
.when-pill.soon { background: color-mix(in srgb, #E8A21B 22%, var(--card)); color: #A86B00; }
.when-pill.late { background: color-mix(in srgb, var(--late) 18%, var(--card)); color: var(--late); }
.when-pill.okay { background: color-mix(in srgb, var(--ok) 16%, var(--card)); color: var(--ok); }
:root[data-theme="dark"] .when-pill.soon { color: #F2C14E; }
.item.center { align-items: center; }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }

/* ---------- jaar geleden ---------- */
.memory { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); cursor: pointer; aspect-ratio: 16 / 10; background: var(--line); }
.memory img { width: 100%; height: 100%; object-fit: cover; display: block; }
.memory .cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.memory .cap b { display: block; font-family: var(--font-round); font-size: 20px; }
.memory .cap span { font-size: 13px; opacity: .9; }
.memory .more-n { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

.repeat-tag { display: inline-flex; align-items: center; gap: 3px; }
.repeat-tag svg { width: 13px; height: 13px; }
.quick-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 14px; }
.quick { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; text-decoration: none; color: var(--ink); display: flex; gap: 10px; align-items: center; }
.quick b { display: block; font-size: 15px; }
.quick span { font-size: 12.5px; color: var(--muted); }
.quick .qi { font-size: 22px; }
.invisible { visibility: hidden; }
