/* Samen — vormgeving. Warm papier in licht, diep inkt in donker; elke persoon een eigen kleur. */
:root {
  --bg: #F6F2EC; --surface: #FFFFFF; --surface2: #EFEAE2; --ink: #1B1A1F; --ink2: #6F6B78; --ink3: #A39FAB;
  --line: rgba(27, 26, 31, .08); --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 8px 24px rgba(40, 30, 20, .06);
  --shadow-lg: 0 2px 6px rgba(40, 30, 20, .08), 0 18px 48px rgba(40, 30, 20, .18);
  --glass: rgba(255, 255, 255, .78); --chatbg: #F1ECE4; --them: #FFFFFF;
  --b1: #FF8A3D; --b2: #F0558A; --b3: #7A5CFF; --brand: linear-gradient(135deg, var(--b1), var(--b2) 52%, var(--b3));
  --me: #3D7BFF; --ok: #12B886; --danger: #E5484D;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); --tab: 62px;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0F14; --surface: #191B23; --surface2: #242732; --ink: #F4F2EE; --ink2: #A19EAD; --ink3: #6C6A78;
    --line: rgba(255, 255, 255, .08); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .55);
    --glass: rgba(25, 27, 35, .78); --chatbg: #0B0C10; --them: #20232D; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0F14; --surface: #191B23; --surface2: #242732; --ink: #F4F2EE; --ink2: #A19EAD; --ink3: #6C6A78;
  --line: rgba(255, 255, 255, .08); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 18px 48px rgba(0, 0, 0, .55);
  --glass: rgba(25, 27, 35, .78); --chatbg: #0B0C10; --them: #20232D; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; background: var(--bg); overscroll-behavior: none; }
body { font: calc(16px * var(--fs, 1))/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
svg:not(.leaflet-zoom-animated) { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }
::-webkit-scrollbar { display: none; }

#app { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; overflow: hidden; background: var(--bg); user-select: none; -webkit-user-select: none; }
@media (min-width: 600px) { body { background: color-mix(in srgb, var(--bg) 80%, #000); } #app { box-shadow: var(--shadow-lg); } }

/* ── beeldmerk: drie cirkels, drie mensen ── */
.mark { position: relative; width: 54px; height: 50px; display: block; }
.mark i { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: multiply; }
.mark i:nth-child(1) { left: 20%; top: 0; background: #3D7BFF; }
.mark i:nth-child(2) { left: 0; bottom: 0; background: #F0558A; }
.mark i:nth-child(3) { right: 0; bottom: 0; background: #12B886; }
.mark.big { width: 108px; height: 100px; }
:root[data-theme="dark"] .mark i { mix-blend-mode: screen; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark i { mix-blend-mode: screen; } }
#splash { position: absolute; inset: 0; display: grid; place-items: center; }
#splash .mark { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }

/* ── koppelen ── */
.pair { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--st) + 24px) 28px calc(var(--sb) + 24px); text-align: center; overflow: hidden; }
.pair-glow { position: absolute; width: 520px; height: 520px; top: -180px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--b2) 26%, transparent), transparent), radial-gradient(closest-side at 30% 60%, color-mix(in srgb, var(--b3) 20%, transparent), transparent); filter: blur(10px); pointer-events: none; }
.pair h1 { font: 800 calc(44px * var(--fs, 1))/1 var(--round); letter-spacing: -.02em; margin-top: 22px; }
.pair .lead { color: var(--ink2); margin: 10px 0 30px; font-size: calc(17px * var(--fs, 1)); }
.pair form { width: 100%; max-width: 330px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.pair label { font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; }
.pair input { height: 64px; border-radius: 20px; border: 2px solid var(--line); background: var(--surface); text-align: center; font: 700 calc(26px * var(--fs, 1))/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .14em; outline: none; user-select: text; -webkit-user-select: text; transition: border-color .2s; }
.pair input:focus { border-color: var(--b2); }
.pair .err { color: var(--danger); font-size: calc(14px * var(--fs, 1)); min-height: 20px; }
.pair .hint { color: var(--ink3); font-size: calc(13.5px * var(--fs, 1)); max-width: 300px; margin-top: 22px; }

/* ── knoppen en formulieren ── */
.btn { height: 54px; border-radius: 18px; font-weight: 650; font-size: calc(17px * var(--fs, 1)); display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--b2) 35%, transparent); }
.btn.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.btn.ghost { color: var(--ink2); font-size: calc(15px * var(--fs, 1)); margin-top: 18px; height: 44px; }
.btn:disabled { opacity: .5; }
.btn svg { width: 20px; height: 20px; }
.mini { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface2); font-size: calc(14px * var(--fs, 1)); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mini.primary { background: var(--ink); color: var(--bg); }
.mini svg { width: 16px; height: 16px; }
.rbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); background: var(--surface2); flex: none; }
.rbtn svg { width: 18px; height: 18px; }
.rbtn:disabled { opacity: .3; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.form input:not([type=checkbox]):not([type=range]), .form select { height: 50px; border-radius: 15px; border: 0; background: var(--surface2); padding: 0 15px; outline: none; width: 100%; min-width: 0; user-select: text; -webkit-user-select: text; -webkit-appearance: none; appearance: none; }
.form input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--b3) 60%, transparent); }
.form label { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--ink2); display: flex; flex-direction: column; gap: 5px; }
.form label input, .form label select { font-size: calc(16px * var(--fs, 1)); font-weight: 400; color: var(--ink); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.form .check { flex-direction: row; align-items: center; gap: 10px; height: 50px; font-size: calc(15px * var(--fs, 1)); color: var(--ink); font-weight: 500; }
.form .check input { width: 22px; height: 22px; accent-color: var(--b3); }
.form .rowlabel { flex-direction: row; align-items: center; justify-content: space-between; font-size: calc(15px * var(--fs, 1)); color: var(--ink); font-weight: 500; }
.form .rowlabel select { width: auto; min-width: 190px; }
.flabel { font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--ink2); display: block; margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--surface2); font-size: calc(15px * var(--fs, 1)); font-weight: 550; display: inline-flex; align-items: center; gap: 7px; transition: background .15s, color .15s; }
.chip.on { background: var(--c, var(--ink)); color: #fff; }
.chip.on:not([style]) { color: var(--bg); }
#iconchips .chip { width: 44px; padding: 0; justify-content: center; font-size: calc(21px * var(--fs, 1)); }
#iconchips .chip.on { background: color-mix(in srgb, var(--b3) 22%, var(--surface2)); box-shadow: inset 0 0 0 2px var(--b3); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface2); padding: 3px; border-radius: 14px; }
.seg button { height: 36px; border-radius: 11px; font-size: calc(14.5px * var(--fs, 1)); font-weight: 600; color: var(--ink2); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.is-rem .evonly { display: none !important; }
.sheet-wrap:not(.is-rem) .remonly { display: none; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--surface2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .22s cubic-bezier(.3, 1.3, .5, 1); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(20px); }

/* ── avatars ── */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: inline-grid; place-items: center; position: relative; background: linear-gradient(140deg, color-mix(in srgb, var(--c) 62%, #fff), var(--c) 70%); color: #fff; font: 700 calc(var(--s) * .44)/1 var(--round); }
.av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av.on::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26%; height: 26%; min-width: 9px; min-height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px var(--surface); }
.av.ring { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px color-mix(in srgb, var(--c) 30%, transparent); }
.av.ring.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--c); }
.stack { position: relative; width: 54px; height: 54px; display: block; flex: none; }
.stack .av { position: absolute; box-shadow: 0 0 0 2.5px var(--surface); }
.stack .av:nth-child(1) { left: 11px; top: 0; }
.stack .av:nth-child(2) { left: 0; bottom: 0; }
.stack .av:nth-child(3) { right: 0; bottom: 0; }
.stack.sm, .stack.xs { width: auto; height: auto; display: inline-flex; }
.stack.sm .av, .stack.xs .av { position: relative; inset: auto; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.stack.sm .av:first-child, .stack.xs .av:first-child { margin-left: 0; }

/* ── schermen en tabbalk ── */
#views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; display: none; flex-direction: column; }
.view.active { display: flex; animation: fadein .22s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px calc(var(--tab) + var(--sb) + 34px); }
.endpad { height: 20px; }
#tabs { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 10px); z-index: 10; display: flex; gap: 2px; padding: 5px; border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
#tabs a { position: relative; width: 74px; height: 52px; border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink3); font-size: calc(10.5px * var(--fs, 1)); font-weight: 650; transition: color .2s, background .2s; }
#tabs a svg { width: 23px; height: 23px; }
#tabs a.active { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
#tabs .dot { position: absolute; top: 4px; left: 42px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--b2); color: #fff; font-size: calc(11px * var(--fs, 1)); font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }

.home-head, .page-head { display: flex; align-items: flex-end; justify-content: space-between; padding: calc(var(--st) + 18px) 20px 12px; flex: none; }
.home-head small, .page-head small { color: var(--ink2); font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; display: block; }
.home-head small::first-letter, .page-head small::first-letter { text-transform: uppercase; }
.home-head h1, .page-head h1 { font: 800 calc(30px * var(--fs, 1))/1.1 var(--round); letter-spacing: -.02em; margin-top: 2px; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); display: block; }
.section { font-size: calc(13px * var(--fs, 1)); font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .07em; margin: 24px 8px 9px; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 6px 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; padding: 0 4px; }
.person b { margin-top: 9px; font: 700 calc(15px * var(--fs, 1)) var(--round); }
.person small { color: var(--ink2); font-size: calc(12px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.next { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; margin-top: 12px; position: relative; overflow: hidden; }
.next::before { content: ""; position: absolute; inset: 0; background: var(--brand); opacity: .09; }
.next .when { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding-right: 14px; border-right: 1px solid var(--line); position: relative; }
.next .when b { font: 800 calc(19px * var(--fs, 1)) var(--round); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next .when small { font-size: calc(11.5px * var(--fs, 1)); color: var(--ink2); font-weight: 600; }
.next .what { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.next .what small { font-size: calc(11.5px * var(--fs, 1)); color: var(--ink2); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; }
.next .what b { font-size: calc(16.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next .what em { font-style: normal; font-size: calc(13px * var(--fs, 1)); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--ink3); display: grid; position: relative; }
.chev svg { width: 18px; height: 18px; }

.chatlist { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.chatrow { display: flex; align-items: center; gap: 13px; padding: 12px 16px 12px 14px; position: relative; }
.chatrow + .chatrow::before { content: ""; position: absolute; top: 0; left: 81px; right: 0; height: 1px; background: var(--line); }
.chatrow:active { background: var(--surface2); }
.chatrow .face { width: 54px; height: 54px; display: grid; place-items: center; flex: none; }
.chatrow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chatrow .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chatrow .top b { font: 700 calc(17px * var(--fs, 1)) var(--round); }
.chatrow time { font-size: calc(12.5px * var(--fs, 1)); color: var(--ink3); flex: none; }
.chatrow .sub { display: flex; align-items: center; gap: 8px; }
.chatrow .txt { flex: 1; min-width: 0; color: var(--ink2); font-size: calc(14.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatrow.unread .txt { color: var(--ink); font-weight: 600; }
.chatrow.unread time { color: var(--b2); font-weight: 700; }
.badge { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; background: var(--brand); color: #fff; font: 700 calc(12px * var(--fs, 1))/21px var(--round); font-style: normal; text-align: center; flex: none; }
.muted { color: var(--ink3); }
.typing-txt { color: var(--b2) !important; font-weight: 600; }

/* ── gesprek ── */
#chat { position: absolute; inset: 0; z-index: 20; background: var(--chatbg); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .34s cubic-bezier(.22, .9, .25, 1); visibility: hidden; }
#chat.open { transform: none; visibility: visible; box-shadow: -20px 0 60px rgba(0, 0, 0, .18); }
.chat-head { flex: none; display: flex; align-items: center; gap: 6px; padding: calc(var(--st) + 8px) 10px 9px 6px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border-bottom: 1px solid var(--line); z-index: 3; }
.backbtn, .hbtn { width: 42px; height: 42px; display: grid; place-items: center; color: var(--me); border-radius: 50%; flex: none; }
.backbtn svg { width: 27px; height: 27px; }
.chat-head .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; }
.chat-head .who > div { min-width: 0; display: flex; flex-direction: column; }
.chat-head .who b { font: 700 calc(17px * var(--fs, 1))/1.2 var(--round); }
.chat-head .who small { color: var(--ink2); font-size: calc(12.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 10px 6px; }
#msglist { display: flex; flex-direction: column; min-height: 100%; justify-content: flex-end; }
.loadmore, .empty { text-align: center; color: var(--ink3); font-size: calc(13px * var(--fs, 1)); padding: 14px; }
.empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; }
.daysep { text-align: center; margin: 16px 0 8px; }
.daysep span { font-size: calc(12px * var(--fs, 1)); font-weight: 650; color: var(--ink2); background: color-mix(in srgb, var(--surface) 75%, transparent); padding: 4px 11px; border-radius: 12px; }
.row { display: flex; align-items: flex-end; gap: 7px; margin-top: 2px; }
.row.first { margin-top: 10px; }
.row.me { justify-content: flex-end; }
.row .col { max-width: 80%; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.row.me .col { align-items: flex-end; }
.rav { width: 28px; height: 28px; flex: none; visibility: hidden; margin-bottom: 1px; }
.row.last .rav { visibility: visible; }
.row .name { font: 700 calc(12.5px * var(--fs, 1)) var(--round); color: var(--c); margin: 0 0 3px 13px; }
.bubble { position: relative; padding: 8px 13px; border-radius: 21px; background: var(--them); font-size: calc(16.5px * var(--fs, 1)); line-height: 1.34; overflow-wrap: anywhere; box-shadow: 0 1px 1.5px rgba(0, 0, 0, .07); transition: transform .18s; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.row.them .bubble { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.row.them.first .bubble { border-top-left-radius: 21px; }
.row.them.last .bubble { border-bottom-left-radius: 5px; }
.row.me .bubble { background: linear-gradient(150deg, color-mix(in srgb, var(--me) 80%, #fff), var(--me) 60%); color: #fff; border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.row.me.first .bubble { border-top-right-radius: 21px; }
.row.me.last .bubble { border-bottom-right-radius: 5px; }
.bubble .txt { white-space: pre-wrap; }
.bubble a { text-decoration: underline; }
.bubble .t { float: right; font-size: calc(11px * var(--fs, 1)); opacity: .58; margin: 7px -2px -3px 12px; font-variant-numeric: tabular-nums; }
.bubble.media { padding: 4px; }
.frame { position: relative; display: block; width: min(66vw, 290px); max-height: 380px; min-height: 120px; border-radius: 18px; overflow: hidden; background: var(--surface2); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.frame:not([style*="aspect"]) { height: 220px; }
.frame .t, .frame .dur { position: absolute; float: none; margin: 0; right: 7px; bottom: 7px; background: rgba(0, 0, 0, .5); color: #fff; opacity: 1; padding: 2px 8px; border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: calc(11px * var(--fs, 1)); z-index: 500; }
.frame .dur { right: auto; left: 7px; }
.playbtn, .progress { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; place-items: center; color: #fff; }
.playbtn svg { width: 26px; height: 26px; margin-left: 3px; }
.progress svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.progress circle { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 3; }
.progress .bar { stroke: #fff; stroke-linecap: round; transition: stroke-dasharray .2s; }
.row.pending .frame img, .row.pending .frame video { filter: saturate(.7) brightness(.85); }
.bubble.media .cap { padding: 6px 9px 0; white-space: pre-wrap; }
.bubble.media .cap + .t { margin: 2px 7px 3px 12px; }
.bubble.loc { cursor: pointer; }
.frame.locmap { height: 150px; min-height: 0; width: min(66vw, 270px); pointer-events: none; }
.loccap { display: flex; flex-direction: column; padding: 7px 9px 5px; }
.loccap b { font-size: calc(15px * var(--fs, 1)); }
.loccap small { font-size: calc(12px * var(--fs, 1)); opacity: .65; }
.bubble.jumbo { background: none !important; box-shadow: none; padding: 0 4px; font-size: calc(50px * var(--fs, 1)); line-height: 1.15; }
.bubble.jumbo .t { display: none; }
.reacts { display: flex; gap: 4px; margin: -7px 8px 0; position: relative; z-index: 2; }
.reacts:empty { display: none; }
.react { height: 26px; padding: 0 8px; border-radius: 13px; background: var(--surface); box-shadow: 0 0 0 2px var(--chatbg), 0 1px 3px rgba(0, 0, 0, .12); font-size: calc(14px * var(--fs, 1)); display: inline-flex; align-items: center; gap: 3px; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }
.react i { font-style: normal; font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--ink2); }
.react.mine { background: color-mix(in srgb, var(--me) 20%, var(--surface)); }
.row.pop, .sysrow.pop { animation: rise .32s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.sysrow { display: flex; justify-content: center; margin: 12px 0 6px; }
.sys { display: inline-flex; align-items: center; gap: 7px; font-size: calc(13px * var(--fs, 1)); font-weight: 550; color: var(--ink2); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 5px 12px 5px 6px; border-radius: 15px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.sys time { color: var(--ink3); font-weight: 400; font-size: calc(11.5px * var(--fs, 1)); }
.evcard { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 20px; padding: 10px 16px 10px 10px; box-shadow: var(--shadow); max-width: 86%; text-align: left; }
.evcard > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.evcard small { font-size: calc(11.5px * var(--fs, 1)); color: var(--ink2); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.evcard b { font-size: calc(15.5px * var(--fs, 1)); }
.evcard em { font-style: normal; font-size: calc(13px * var(--fs, 1)); color: var(--ink2); }
.evicon { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(140deg, #9B7BFF, #7A5CFF); color: #fff; display: grid; place-items: center; flex: none; }
.evicon.rem { background: linear-gradient(140deg, #FFB03D, #FF8A3D); }
.evicon svg { width: 22px; height: 22px; }
.seen { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: calc(11.5px * var(--fs, 1)); color: var(--ink3); padding: 3px 6px 0; min-height: 18px; }
.bubble.dots { display: flex; gap: 4px; padding: 14px 15px; }
.bubble.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); animation: bounce 1.1s infinite; }
.bubble.dots i:nth-child(2) { animation-delay: .15s; } .bubble.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.newpill { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 72px); z-index: 4; background: var(--surface); box-shadow: var(--shadow-lg); padding: 8px 15px; border-radius: 18px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 650; color: var(--me); }
.composer { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(var(--sb) + 8px); background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border-top: 1px solid var(--line); }
.cbtn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface2); color: var(--ink2); display: grid; place-items: center; flex: none; }
.composer .field { flex: 1; min-width: 0; background: var(--surface); border-radius: 21px; box-shadow: inset 0 0 0 1px var(--line); display: flex; }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: none; padding: 9px 15px; font-size: calc(16.5px * var(--fs, 1)); line-height: 1.34; max-height: 132px; user-select: text; -webkit-user-select: text; }
.send { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(150deg, color-mix(in srgb, var(--me) 75%, #fff), var(--me)); color: #fff; display: grid; place-items: center; flex: none; transition: transform .15s, opacity .2s, filter .2s; }
.send:disabled { filter: grayscale(1); opacity: .35; }
.send:not(:disabled):active { transform: scale(.88); }
.send svg { width: 21px; height: 21px; }
#picker { position: absolute; z-index: 30; display: flex; flex-direction: column; align-items: flex-start; gap: var(--gap, 8px); pointer-events: none; }
#picker.right { align-items: flex-end; }
#picker > * { pointer-events: auto; }
#picker .emojis { display: flex; gap: 2px; padding: 5px; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 50% 100%; }
#picker .pmenu { min-width: 190px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 50% 0; }
#picker .pmenu button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 16px; font-size: calc(16.5px * var(--fs, 1)); text-align: left; }
#picker .pmenu button + button { border-top: 1px solid var(--line); }
#picker .pmenu button:active { background: var(--surface2); }
#picker .pmenu span { opacity: .55; font-size: calc(18px * var(--fs, 1)); }
.quote { display: flex; gap: 8px; align-items: stretch; width: 100%; min-width: 120px; margin: 0 0 5px; padding: 5px 9px; border-radius: 12px; border-left: 3.5px solid var(--qc); background: rgba(0, 0, 0, .07); text-align: left; font-size: calc(14px * var(--fs, 1)); line-height: 1.28; color: inherit; overflow: hidden; }
.row.me .quote { background: rgba(255, 255, 255, .2); border-left-color: #fff; }
.quote img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; flex: none; }
.quote span { display: flex; flex-direction: column; min-width: 0; }
.quote b { font-weight: 700; color: var(--qc); } .row.me .quote b { color: #fff; }
.quote em { font-style: normal; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bubble.hasquote { padding: 6px 7px 7px; } .bubble.hasquote .txt { padding: 0 6px; } .bubble.hasquote .t { margin-right: 5px; }
.bubble.media .quote { margin: 5px 5px 5px; width: auto; }
.row.flash .bubble { animation: flash 1.1s ease-out; }
@keyframes flash { 0%, 35% { filter: brightness(1.35); transform: scale(1.04); } 100% { filter: none; transform: none; } }
.replybar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); border-top: 1px solid var(--line); }
.replybar[hidden] { display: none; }
.replybar > span { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-left: 10px; border-left: 3.5px solid var(--qc); font-size: calc(14px * var(--fs, 1)); line-height: 1.3; }
.replybar b { color: var(--qc); } .replybar em { font-style: normal; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replybar button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); flex: none; } .replybar button svg { width: 16px; height: 16px; }
#picker .emojis button { width: 42px; height: 42px; border-radius: 50%; font-size: calc(26px * var(--fs, 1)); display: grid; place-items: center; transition: transform .12s; }
#picker .emojis button:active { transform: scale(1.3); }
#picker .emojis button.mine { background: var(--surface2); }
.row.lifted .bubble { transform: scale(1.03); }
.lightbox { position: absolute; inset: 0; z-index: 90; background: rgba(0, 0, 0, .94); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close { position: absolute; top: calc(var(--st) + 12px); right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; z-index: 2; }

/* ── bladen, meldingen ── */
.sheet-wrap { position: absolute; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgba(10, 8, 14, .45); opacity: 0; transition: opacity .28s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 90%; overflow-y: auto; background: var(--surface); border-radius: 30px 30px 0 0; padding: 8px 20px calc(var(--sb) + 22px); transform: translateY(102%); transition: transform .34s cubic-bezier(.22, .9, .25, 1); box-shadow: var(--shadow-lg); }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.sheet h3 { font: 800 calc(22px * var(--fs, 1))/1.2 var(--round); letter-spacing: -.01em; }
.sub { color: var(--ink2); font-size: calc(14.5px * var(--fs, 1)); margin-top: 7px; line-height: 1.45; }
.sub.small { font-size: calc(12.5px * var(--fs, 1)); text-align: center; margin-top: 12px; }
.sub code, .howto code { font-size: calc(12px * var(--fs, 1)); word-break: break-all; }
.warnline { color: #B26A00; }
.sheet .btn { margin-top: 18px; }
.sheet .form .btn { margin-top: 6px; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; }
.actions button { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: var(--ink2); padding: 4px 0; }
.actions span { width: 60px; height: 60px; border-radius: 21px; display: grid; place-items: center; color: #fff; }
.actions span svg { width: 27px; height: 27px; }
.a1 { background: linear-gradient(140deg, #5C9BFF, #3D7BFF); } .a2 { background: linear-gradient(140deg, #6B6A78, #33323C); }
.a3 { background: linear-gradient(140deg, #3DD6A5, #12B886); } .a4 { background: linear-gradient(140deg, #FFB03D, #FF8A3D); }
.howto { margin: 14px 0 0; padding-left: 22px; color: var(--ink); font-size: calc(14.5px * var(--fs, 1)); line-height: 1.5; display: flex; flex-direction: column; gap: 7px; }
#banner { position: absolute; z-index: 80; top: calc(var(--st) + 8px); left: 10px; right: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 24px; background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); transform: translateY(-150%); transition: transform .42s cubic-bezier(.2, 1.1, .3, 1); cursor: pointer; }
#banner.show { transform: none; }
#banner > div { min-width: 0; flex: 1; }
#banner b { font: 700 calc(15px * var(--fs, 1)) var(--round); display: block; }
#banner p { font-size: calc(14px * var(--fs, 1)); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#banner .glyph { width: 38px; height: 38px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
#banner .glyph svg { width: 21px; height: 21px; }
#toast { position: absolute; z-index: 95; left: 50%; bottom: calc(var(--sb) + var(--tab) + 28px); transform: translate(-50%, 20px); background: color-mix(in srgb, var(--ink) 92%, transparent); color: var(--bg); padding: 11px 18px; border-radius: 22px; font-size: calc(14.5px * var(--fs, 1)); font-weight: 550; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 86%; text-align: center; box-shadow: var(--shadow-lg); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#offline { position: absolute; z-index: 70; top: calc(var(--st) + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; padding: 6px 14px; border-radius: 14px; }

/* ── kaart ── */
#mapbox { position: absolute; inset: 0; background: var(--surface2); z-index: 0; }
.leaflet-container { font: inherit; background: var(--surface2); }
.leaflet-control-attribution { font-size: calc(9.5px * var(--fs, 1)) !important; background: var(--glass) !important; color: var(--ink3) !important; border-radius: 8px 0 0 0; padding: 1px 6px !important; }
.leaflet-control-attribution a { color: inherit !important; }
.leaflet-tooltip { border: 0; border-radius: 12px; padding: 6px 11px; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; box-shadow: var(--shadow-lg); background: var(--surface); color: var(--ink); }
.leaflet-tooltip::before { display: none; }
.map-top { position: absolute; z-index: 5; top: calc(var(--st) + 12px); left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.map-top h1 { font: 800 calc(22px * var(--fs, 1)) var(--round); background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); padding: 9px 18px; border-radius: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.fab { pointer-events: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--ink); flex: none; }
.page-head .fab { background: var(--brand); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--b2) 35%, transparent); }
.mapsheet { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: calc(var(--sb) + var(--tab) + 22px); max-height: 44%; overflow-y: auto; background: var(--glass); -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8); border-radius: 28px; box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); padding: 8px 14px 12px; }
.mapsheet.is-person { max-height: 56%; }
.mapsheet .grab { margin-bottom: 8px; }
.ms-title { padding: 2px 6px 8px; display: flex; flex-direction: column; }
.ms-title b { font: 800 calc(19px * var(--fs, 1)) var(--round); }
.ms-title small { color: var(--ink2); font-size: calc(13px * var(--fs, 1)); }
.prow, .ms-person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; text-align: left; border-radius: 18px; }
.prow:active { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pmain b { font: 700 calc(16.5px * var(--fs, 1)) var(--round); }
.pmain small { color: var(--ink2); font-size: calc(13px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pside { display: flex; align-items: center; gap: 5px; color: var(--ink2); flex: none; }
.pside small { font-size: calc(12px * var(--fs, 1)); font-variant-numeric: tabular-nums; }
.pside em { font-style: normal; font-size: calc(12.5px * var(--fs, 1)); font-weight: 650; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); padding: 3px 9px; border-radius: 10px; margin-left: 6px; }
.batt { width: 23px; height: 11.5px; border-radius: 3.5px; box-shadow: inset 0 0 0 1.2px var(--ink3); padding: 2px; display: block; position: relative; }
.batt::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 4.5px; border-radius: 0 1px 1px 0; background: var(--ink3); }
.batt i { display: block; height: 100%; border-radius: 1.5px; background: var(--ok); }
.batt.low i { background: var(--danger); }
.linkbtn { display: flex; align-items: center; gap: 8px; font-size: calc(14px * var(--fs, 1)); font-weight: 600; color: var(--ink2); padding: 10px 8px 2px; }
.linkbtn svg { width: 17px; height: 17px; }
.daynav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); border-radius: 20px; padding: 4px; }
.daynav b { font: 700 calc(15.5px * var(--fs, 1)) var(--round); }
.daynav .rbtn { background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { background: color-mix(in srgb, var(--c) 11%, transparent); border-radius: 16px; padding: 9px 4px; text-align: center; display: flex; flex-direction: column; }
.stats b { font: 800 calc(17px * var(--fs, 1)) var(--round); }
.stats small { font-size: calc(11.5px * var(--fs, 1)); color: var(--ink2); font-weight: 600; }
.scrubber { display: flex; align-items: center; gap: 11px; margin-top: 12px; }
.playb { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 5px 14px color-mix(in srgb, var(--c) 45%, transparent); }
.playb svg { width: 19px; height: 19px; }
.scrubber input { flex: 1; min-width: 0; accent-color: var(--c); height: 28px; }
.scrubber time { font: 800 calc(16px * var(--fs, 1)) var(--round); font-variant-numeric: tabular-nums; min-width: 48px; text-align: right; }
.scrubinfo { font-size: calc(12.5px * var(--fs, 1)); color: var(--ink2); margin: 0 0 4px 51px; font-weight: 550; }
.timeline { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 16px; top: 16px; bottom: 16px; width: 2px; background: var(--line); border-radius: 1px; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 6px 0; position: relative; cursor: pointer; }
.timeline .node { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-size: calc(16px * var(--fs, 1)); flex: none; color: var(--ink2); }
.timeline .node svg { width: 17px; height: 17px; }
.timeline .trip .node { background: none; box-shadow: none; }
.timeline .trip .node svg { background: var(--surface); border-radius: 50%; }
.timeline div { display: flex; flex-direction: column; min-width: 0; }
.timeline b { font-size: calc(15px * var(--fs, 1)); font-weight: 650; }
.timeline .trip b { font-weight: 500; color: var(--ink2); font-size: calc(14px * var(--fs, 1)); }
.timeline small { color: var(--ink2); font-size: calc(12.5px * var(--fs, 1)); }
.tl-empty { text-align: center; color: var(--ink3); padding: 22px 0 12px; font-size: calc(14px * var(--fs, 1)); }
.tl-empty svg { width: 30px; height: 30px; margin-bottom: 6px; }
.mk { position: relative; width: 48px; height: 58px; display: flex; flex-direction: column; align-items: center; transition: transform .25s, opacity .25s; transform-origin: 50% 100%; filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .28)); }
.mk .av { box-shadow: 0 0 0 3.5px #fff; z-index: 1; margin-top: 4px; }
.mk i { width: 14px; height: 14px; background: #fff; transform: rotate(45deg); margin-top: -9px; border-radius: 0 0 4px 0; }
.mk.fresh::before { content: ""; position: absolute; left: 50%; top: 24px; width: 48px; height: 48px; margin: -24px; border-radius: 50%; background: var(--c); opacity: .35; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.8); opacity: .45; } to { transform: scale(1.9); opacity: 0; } }
.mk.dim { transform: scale(.78); opacity: .6; }
.placetag { position: absolute; transform: translate(-50%, 10px); white-space: nowrap; font-size: calc(11.5px * var(--fs, 1)); font-weight: 700; color: var(--ink2); background: var(--glass); padding: 2px 8px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.stopdot { width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 3px 8px rgba(0, 0, 0, .3); display: grid; place-items: center; font: 800 calc(12px * var(--fs, 1)) var(--round); color: #333; }
.scrubdot { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px #fff, 0 0 0 12px color-mix(in srgb, var(--c) 30%, transparent), 0 4px 12px rgba(0, 0, 0, .4); }
.dotpin { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3.5px #fff, 0 0 0 10px color-mix(in srgb, var(--c) 28%, transparent), 0 3px 8px rgba(0, 0, 0, .35); }

/* ── agenda ── */
.strip { display: flex; gap: 7px; overflow-x: auto; padding: 2px 16px 12px; flex: none; scroll-snap-type: x proximity; }
.sd { flex: none; width: 48px; height: 70px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; scroll-snap-align: center; }
.sd small { font-size: calc(11.5px * var(--fs, 1)); font-weight: 650; color: var(--ink2); text-transform: lowercase; }
.sd b { font: 800 calc(18px * var(--fs, 1)) var(--round); }
.sd i { display: flex; gap: 3px; height: 5px; }
.sd u { width: 5px; height: 5px; border-radius: 50%; }
.sd.today b { color: var(--b2); }
.sd.sel { background: var(--ink); }
.sd.sel b, .sd.sel small { color: var(--bg); }
.dayblock { margin-top: 18px; scroll-margin-top: 6px; }
.dayblock:first-child { margin-top: 4px; }
.dayblock h2 { font: 800 calc(20px * var(--fs, 1)) var(--round); margin: 0 6px 9px; display: flex; align-items: baseline; gap: 9px; }
.dayblock h2 small { font: 500 calc(13.5px * var(--fs, 1)) -apple-system, sans-serif; color: var(--ink2); }
.ev { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 12px 14px 12px 18px; margin-bottom: 8px; position: relative; overflow: hidden; }
.ev::before { content: ""; position: absolute; left: 7px; top: 11px; bottom: 11px; width: 4px; border-radius: 2px; background: var(--c); }
.ev.past { opacity: .5; }
.evtime { width: calc(50px * var(--fs, 1)); display: flex; flex-direction: column; flex: none; }
.evtime b { font: 800 calc(16px * var(--fs, 1)) var(--round); font-variant-numeric: tabular-nums; }
.evtime small { font-size: calc(12.5px * var(--fs, 1)); color: var(--ink3); font-variant-numeric: tabular-nums; }
.evbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.evbody b { font-size: calc(16px * var(--fs, 1)); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evbody small { font-size: calc(13px * var(--fs, 1)); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evbody small:empty { display: none; }
.evside { display: flex; align-items: center; gap: 8px; flex: none; }
.bellmini { color: var(--ink3); display: grid; }
.bellmini svg { width: 16px; height: 16px; }
.nothing { color: var(--ink3); font-size: calc(14.5px * var(--fs, 1)); padding: 6px; }
.hintcard { display: flex; align-items: center; gap: 13px; padding: 13px 14px; margin: 2px 0 6px; }
.hintcard > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.hintcard small { color: var(--ink2); font-size: calc(13px * var(--fs, 1)); line-height: 1.35; }
.evdetail { display: flex; gap: 14px; align-items: stretch; }
.evdetail .bar { width: 5px; border-radius: 3px; background: var(--c); }
.evdetail small { font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 13px; }
.facts li { display: flex; gap: 13px; align-items: center; font-size: calc(15.5px * var(--fs, 1)); }
.facts svg { width: 21px; height: 21px; color: var(--ink2); }

/* ── wij ── */
.profile { display: flex; align-items: center; gap: 18px; padding: 20px; position: relative; overflow: hidden; }
.profile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.profile > * { position: relative; }
.profile h2 { font: 800 calc(25px * var(--fs, 1)) var(--round); }
.profile p { color: var(--ink2); font-size: calc(14px * var(--fs, 1)); }
.avbtn { position: relative; }
.avbtn i { position: absolute; right: -3px; bottom: -3px; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink2); }
.avbtn i svg { width: 16px; height: 16px; }
.steps, .list { padding: 6px 16px; }
.step, .li, .steplink { display: flex; align-items: center; gap: 13px; padding: 12px 0; width: 100%; text-align: left; }
.step + .step, .steplink, .li + .li { border-top: 1px solid var(--line); }
.list > :first-child { border-top: 0; }
.step > div, .li > div, .steplink > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.step b, .li b, .steplink b { font-size: calc(15.5px * var(--fs, 1)); font-weight: 650; }
.step small, .li small, .steplink small { color: var(--ink2); font-size: calc(13px * var(--fs, 1)); line-height: 1.35; }
.step small svg { width: 14px; height: 14px; vertical-align: -2px; }
.step small i { font-style: normal; font-weight: 650; color: var(--ink); }
.tick { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.step.ok .tick { background: var(--ok); box-shadow: none; }
.tick svg { width: 16px; height: 16px; }
.steplink > svg:first-child { width: 28px; height: 28px; padding: 4px; color: var(--b3); }
.steplink > svg:last-child { width: 18px; height: 18px; color: var(--ink3); }
.swatch { width: 14px; height: 14px; border-radius: 5px; margin: 0 7px; flex: none; }
.emoji { width: 28px; text-align: center; font-size: calc(21px * var(--fs, 1)); flex: none; }
.warn { padding: 14px 16px; background: color-mix(in srgb, #FFB03D 16%, var(--surface)); margin-bottom: 10px; }
.warn b { font-size: calc(15px * var(--fs, 1)); }
.warn p { font-size: calc(13.5px * var(--fs, 1)); color: var(--ink2); margin-top: 3px; line-height: 1.4; }
.warn u { text-decoration: none; font-weight: 600; color: var(--ink); word-break: break-all; }
.pairgrid { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 14px; scroll-snap-type: x mandatory; }
.paircard { flex: none; width: 222px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 11px; scroll-snap-align: center; }
.pc-head { display: flex; align-items: center; gap: 10px; align-self: stretch; }
.pc-head div { display: flex; flex-direction: column; }
.pc-head b { font: 700 calc(16px * var(--fs, 1)) var(--round); }
.pc-head small { font-size: calc(12px * var(--fs, 1)); color: var(--ink2); }
.qr { width: 164px; height: 164px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.qr svg { width: 100%; height: 100%; display: block; }
.paircard code { font: 700 calc(19px * var(--fs, 1)) ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .12em; user-select: all; -webkit-user-select: all; }
.foot { text-align: center; color: var(--ink3); font-size: calc(12.5px * var(--fs, 1)); margin-top: 10px; line-height: 1.5; }
.view .card > .seg { margin: 10px; }

/* zichtbare tik, alleen in de demo-opname */
.tapdot { position: fixed; z-index: 999; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: rgba(120, 120, 135, .38); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); pointer-events: none; animation: tap .65s ease-out forwards; }
@keyframes tap { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.locmap.dark .leaflet-tile-pane, #mapbox.dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
.locmap:not(.dark) .leaflet-tile-pane { filter: saturate(.85); }
.maplibregl-canvas { outline: none; }

.leaflet-top.leaflet-right { top: calc(var(--st) + 66px); }
.leaflet-control-attribution { border-radius: 8px 0 0 8px !important; }

/* Piepen */
.beepbtn { display: block; width: 100%; height: 44px; margin: 2px 0 10px; border-radius: 22px; background: var(--c); color: #fff; font-weight: 700; font-size: calc(15px * var(--fs, 1)); white-space: nowrap; }
.beepbtn:active { transform: scale(.95); }
.beephead { font-size: calc(21px * var(--fs, 1)); }
#beepscreen { position: absolute; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 85%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000)); opacity: 0; transition: opacity .25s; }
#beepscreen.show { opacity: 1; animation: beepflash 1.25s steps(1) infinite; }
#beepscreen h2 { font: 800 calc(34px * var(--fs, 1))/1.1 ui-rounded, -apple-system, sans-serif; margin: 18px 0 0; }
#beepscreen p { margin: 0; font-size: calc(17px * var(--fs, 1)); opacity: .9; }
#beepscreen .beepring { border-radius: 50%; padding: 8px; background: rgba(255, 255, 255, .25); animation: beepring 1.25s ease-out infinite; }
#beepstop { margin-top: 28px; height: 64px; padding: 0 44px; border-radius: 32px; background: #fff; color: #111; font: 800 calc(21px * var(--fs, 1)) ui-rounded, -apple-system, sans-serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
@keyframes beepring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 46px rgba(255, 255, 255, 0); } }
@keyframes beepflash { 0%, 100% { filter: none; } 50% { filter: brightness(1.25); } }

/* Tekstgrootte */
.fsrow { display: flex; align-items: center; gap: 14px; padding: 6px 6px 2px; }
.fsrow input { flex: 1; min-width: 0; height: 34px; accent-color: var(--me); }
.fsdemo { margin: 8px 6px 0; font-size: calc(16.5px * var(--fs, 1)); line-height: 1.3; }
#tabs a span { font-size: calc(11px * min(var(--fs, 1), 1.3)); }

.otstatus { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, #F5A623 18%, var(--surface)); font-size: calc(14.5px * var(--fs, 1)); line-height: 1.35; }
.otstatus.ok { background: color-mix(in srgb, #12B886 16%, var(--surface)); }
