:root {
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #faf9f8;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --hover: #f3f2f1;
  --selected: #eff6fc;
  --border: #edebe9;
  --text: #323130;
  --text-2: #605e5c;
  --text-3: #8a8886;
  --accent: #2564cf;
  --accent-text: #2564cf;
  --danger: #a80000;
  --important: #2564cf;
  --shadow: 0 1.6px 3.6px rgba(0,0,0,.13), 0 .3px .9px rgba(0,0,0,.11);
  --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11);
  --radius: 4px;
  --list-bg: #faf9f8;
  --task-bg: #ffffff;
  --header-text: #2564cf;
  color-scheme: light;
}
:root.dark {
  --bg: #11100f;
  --sidebar: #1b1a19;
  --surface: #252423;
  --surface-2: #2b2a29;
  --hover: #323130;
  --selected: #2b3a4f;
  --border: #3b3a39;
  --text: #f3f2f1;
  --text-2: #c8c6c4;
  --text-3: #a19f9d;
  --accent: #6aa0ff;
  --accent-text: #8ab4ff;
  --danger: #f1707b;
  --task-bg: #252423;
  --shadow: 0 1.6px 3.6px rgba(0,0,0,.5);
  --shadow-lg: 0 6.4px 14.4px rgba(0,0,0,.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; flex-shrink: 0; }
.hidden { display: none !important; }
.boot { height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #2564cf 0%, #4a8bf5 100%); overflow: auto; height: 100vh; }
.auth-card { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg); padding: 36px 32px; width: 100%; max-width: 400px; }
.auth-card .logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; margin-bottom: 24px; }
.auth-card h2 { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); font-weight: 600; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.block { width: 100%; }
.auth-switch { margin-top: 16px; font-size: 13px; color: var(--text-2); text-align: center; }
.link { color: var(--accent-text); cursor: pointer; }
.link:hover { text-decoration: underline; }
.error { color: var(--danger); font-size: 13px; margin: 8px 0; min-height: 1em; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-rows: 48px 1fr; height: 100vh; height: 100dvh; }
.topbar { background: var(--accent); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 4px; }
:root.dark .topbar { background: #1f3a68; }
.topbar .brand { font-weight: 600; font-size: 16px; padding: 0 8px; white-space: nowrap; }
.topbar .icon-btn { color: #fff; }
.topbar .icon-btn:hover { background: rgba(255,255,255,.15); }
.search { flex: 1; max-width: 400px; margin: 0 auto; position: relative; }
.search input { width: 100%; height: 32px; border-radius: var(--radius); border: 0; padding: 0 32px 0 34px; background: rgba(255,255,255,.95); color: #323130; outline: none; }
:root.dark .search input { background: #323130; color: #fff; }
.search .s-icon { position: absolute; left: 9px; top: 8px; color: var(--accent); }
.search .s-clear { position: absolute; right: 4px; top: 4px; color: #605e5c; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #8764b8; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.topbar .avatar { cursor: pointer; border: 2px solid rgba(255,255,255,.6); }

.body { display: grid; grid-template-columns: 290px 1fr auto; min-height: 0; }
.body.sidebar-collapsed { grid-template-columns: 0 1fr auto; }
.body.sidebar-collapsed .sidebar { visibility: hidden; }

.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--radius); color: var(--text-2); flex-shrink: 0; }
.icon-btn:hover { background: var(--hover); }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--sidebar); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); overflow: hidden; }
.sidebar-top { padding: 8px 8px 0; }
.nav { flex: 1; overflow-y: auto; padding: 0 0 8px; }
.nav-item { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px 0 20px; cursor: pointer; position: relative; user-select: none; }
.nav-item:hover { background: var(--hover); }
.nav-item.active { background: var(--selected); font-weight: 600; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.nav-item .ico { width: 20px; display: grid; place-items: center; color: var(--text-2); font-size: 16px; }
.nav-item .ico.emoji { font-size: 16px; line-height: 1; }
.nav-item .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .count { font-size: 12px; color: var(--text-2); min-width: 18px; text-align: center; font-weight: 400; }
.nav-item .shared { color: var(--text-3); }
.nav-item.drop-target { background: var(--selected); outline: 2px dashed var(--accent); outline-offset: -2px; }
.nav-item.drop-before { box-shadow: inset 0 2px 0 var(--accent); }
.nav-item.drop-after { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-sep { height: 1px; background: var(--border); margin: 8px 16px; }
.nav-group > .nav-item .ico { color: var(--text-2); }
.nav-group .group-children { padding-left: 16px; }
.nav-group.collapsed .group-children { display: none; }
.nav-group .chev { transition: transform .15s; }
.nav-group.collapsed .chev { transform: rotate(-90deg); }
.group-empty { padding: 6px 20px 6px 54px; color: var(--text-3); font-size: 12px; }
.sidebar-bottom { display: flex; align-items: center; border-top: 1px solid var(--border); padding: 4px 4px 4px 8px; gap: 4px; }
.new-list { flex: 1; display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 12px; color: var(--accent-text); border-radius: var(--radius); cursor: text; }
.new-list:hover { background: var(--hover); }
.new-list input { flex: 1; border: 0; outline: none; background: transparent; color: var(--text); min-width: 0; }
.new-list input::placeholder { color: var(--accent-text); }

/* ---------- Main ---------- */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--list-bg); background-size: cover; background-position: center; }
.main-header { display: flex; align-items: flex-start; gap: 8px; padding: 28px 24px 8px; }
.main-header .titles { flex: 1; min-width: 0; }
.list-title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; color: var(--header-text); min-height: 36px; }
.list-title .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default; }
.list-title .t.editable { cursor: text; border-radius: 4px; padding: 0 4px; margin-left: -4px; }
.list-title .t.editable:hover { background: rgba(127,127,127,.12); }
.list-title input { font-size: 24px; font-weight: 600; color: var(--header-text); background: var(--surface); border: 1px solid var(--accent); border-radius: 4px; padding: 0 6px; outline: none; width: 100%; max-width: 420px; }
.list-title .emoji-btn { font-size: 24px; line-height: 1; cursor: pointer; border-radius: 4px; padding: 2px; }
.list-title .emoji-btn:hover { background: rgba(127,127,127,.12); }
.subtitle { color: var(--header-text); opacity: .85; font-size: 13px; margin-top: 2px; }
.header-actions { display: flex; gap: 2px; align-items: center; }
.header-actions .icon-btn, .header-actions .txt-btn { color: var(--header-text); }
.txt-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px; border-radius: var(--radius); font-size: 13px; }
.txt-btn:hover, .header-actions .icon-btn:hover { background: rgba(127,127,127,.15); }
.has-bg .list-title, .has-bg .subtitle, .has-bg .header-actions .icon-btn, .has-bg .header-actions .txt-btn, .has-bg .section-head, .has-bg .sort-chip { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.sort-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--header-text); margin: 0 24px 4px; padding: 2px 4px 2px 8px; border-radius: 12px; background: rgba(127,127,127,.12); align-self: flex-end; }
.sort-chip button { color: inherit; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.sort-chip button:hover { background: rgba(127,127,127,.2); }

.task-scroll { flex: 1; overflow-y: auto; padding: 0 24px 24px; }
.add-task { background: var(--task-bg); border-radius: var(--radius); box-shadow: var(--shadow); margin: 4px 0 8px; }
.add-task .row { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 52px; }
.add-task .row .plus { color: var(--accent-text); }
.add-task input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; }
.add-task input::placeholder { color: var(--accent-text); }
.add-task.focused input::placeholder { color: var(--text-3); }
.add-task .opts { display: none; align-items: center; gap: 2px; padding: 4px 10px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.add-task.focused .opts, .add-task.has-opts .opts { display: flex; }
.add-task .opts .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 8px; border-radius: 4px; color: var(--text-2); }
.add-task .opts .chip:hover { background: var(--hover); }
.add-task .opts .chip.set { color: var(--accent-text); }
.add-task .opts .spacer { flex: 1; }
.add-task .opts .btn { padding: 4px 10px; font-size: 12px; }

.task { display: flex; align-items: center; gap: 4px; background: var(--task-bg); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 8px; min-height: 52px; padding: 0 4px 0 6px; cursor: pointer; position: relative; user-select: none; animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-3px); } }
.task:hover { background: var(--hover); }
:root.dark .task:hover { background: #2f2e2d; }
.task.selected { background: var(--selected); }
.task.dragging { opacity: .4; }
.task.drop-before { box-shadow: var(--shadow), inset 0 3px 0 var(--accent); }
.task.drop-after { box-shadow: var(--shadow), inset 0 -3px 0 var(--accent); }
.task .body-t { flex: 1; min-width: 0; padding: 8px 6px; }
.task .title { word-break: break-word; line-height: 1.35; }
.task.done .title { text-decoration: line-through; color: var(--text-2); }
.task .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 12px; color: var(--text-2); margin-top: 2px; }
.task .meta > span { display: inline-flex; align-items: center; gap: 3px; }
.task .meta > span:not(:first-child)::before { content: "•"; margin: 0 6px; color: var(--text-3); }
.task .meta .overdue { color: var(--danger); }
.task .meta .today { color: var(--accent-text); }
.task .meta .cat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cat-chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 3px; font-size: 11px; line-height: 18px; }

.check { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; }
.check .circle { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-2); display: grid; place-items: center; transition: background .15s; }
.check .circle svg { opacity: 0; color: var(--accent); }
.check:hover .circle svg { opacity: 1; }
.check.checked .circle { background: var(--accent); border-color: var(--accent); }
.check.checked .circle svg { opacity: 1; color: #fff; }
.check.pop .circle { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }
.star { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); border-radius: 50%; flex-shrink: 0; }
.star:hover { color: var(--important); }
.star.on { color: var(--important); }

.section-head { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text); padding: 12px 4px 8px; cursor: pointer; user-select: none; }
.section-head .chev { transition: transform .15s; }
.section-head.collapsed .chev { transform: rotate(-90deg); }
.section-head .cnt { font-weight: 400; color: inherit; opacity: .8; }
.has-bg .section-head { }

.empty { text-align: center; padding: 60px 20px; color: var(--text-2); }
.empty .big { font-size: 56px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); font-weight: 600; }
.has-bg .empty, .has-bg .empty h3 { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* ---------- Detail ---------- */
.detail { width: 360px; background: var(--surface-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
:root:not(.dark) .detail { background: #faf9f8; }
.detail-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; }
.card .d-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 12px; cursor: pointer; color: var(--text-2); position: relative; }
.card .d-row:hover { background: var(--hover); }
.card .d-row.set { color: var(--accent-text); }
.card .d-row .lbl { flex: 1; min-width: 0; }
.card .d-row .lbl small { display: block; font-size: 12px; color: var(--text-2); }
.card .d-row .x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: var(--text-2); }
.card .d-row .x:hover { background: var(--surface-2); }
.card .d-row + .d-row { border-top: 1px solid var(--border); }
.d-title { display: flex; align-items: flex-start; gap: 4px; padding: 10px 4px 6px 4px; }
.d-title textarea { flex: 1; border: 0; outline: none; resize: none; background: transparent; font-size: 18px; font-weight: 600; padding: 4px; line-height: 1.35; border-radius: 4px; min-height: 32px; overflow: hidden; }
.d-title textarea:focus { background: var(--surface-2); }
.d-title.done textarea { text-decoration: line-through; color: var(--text-2); }
.step { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 8px; min-height: 40px; position: relative; }
.step:hover { background: var(--hover); }
.step .check { width: 28px; height: 28px; }
.step .check .circle { width: 16px; height: 16px; }
.step input { flex: 1; border: 0; outline: none; background: transparent; padding: 6px 4px; }
.step.done input { text-decoration: line-through; color: var(--text-2); }
.step .more { opacity: 0; }
.step:hover .more { opacity: 1; }
.add-step { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 14px; min-height: 40px; color: var(--accent-text); }
.add-step input { flex: 1; border: 0; outline: none; background: transparent; }
.add-step input::placeholder { color: var(--accent-text); }
.notes textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; padding: 12px; min-height: 110px; line-height: 1.45; }
.notes .updated { font-size: 11px; color: var(--text-3); padding: 0 12px 8px; }
.attachment { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--border); }
.attachment .fi { width: 36px; height: 36px; border-radius: 4px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; text-transform: uppercase; overflow: hidden; flex-shrink: 0; }
.attachment .fi img { width: 100%; height: 100%; object-fit: cover; }
.attachment .an { flex: 1; min-width: 0; }
.attachment .an a { color: var(--text); text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment .an a:hover { text-decoration: underline; }
.attachment .an small { color: var(--text-2); font-size: 11px; }
.cats { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 10px 44px; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--border); padding: 0 8px; height: 52px; color: var(--text-2); font-size: 12px; background: var(--surface); }
.detail-footer .mid { flex: 1; text-align: center; }

/* ---------- Menus, dialogen ---------- */
.menu { position: fixed; z-index: 1000; background: var(--surface); box-shadow: var(--shadow-lg); border-radius: var(--radius); padding: 4px 0; min-width: 220px; max-width: 320px; max-height: 80vh; overflow-y: auto; border: 1px solid var(--border); animation: fadeIn .1s ease; }
.menu .mi { display: flex; align-items: center; gap: 12px; padding: 0 14px; height: 36px; cursor: pointer; white-space: nowrap; width: 100%; text-align: left; }
.menu .mi:hover, .menu .mi.focus { background: var(--hover); }
.menu .mi .ico { width: 18px; color: var(--text-2); display: grid; place-items: center; }
.menu .mi .ext { margin-left: auto; color: var(--text-3); font-size: 12px; padding-left: 16px; }
.menu .mi.danger { color: var(--danger); }
.menu .mi.danger .ico { color: var(--danger); }
.menu .mi.checked .ext { color: var(--accent-text); }
.menu .ms { height: 1px; background: var(--border); margin: 4px 0; }
.menu .mh { padding: 8px 14px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.menu .picker { padding: 8px 14px; display: flex; flex-direction: column; gap: 8px; }
.menu .picker .btn { padding: 6px 12px; }

.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 900; display: grid; place-items: center; padding: 16px; animation: fadeIn .15s; }
.modal { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; max-height: 90vh; display: flex; flex-direction: column; }
.modal.wide { max-width: 560px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; font-size: 18px; font-weight: 600; }
.modal-b { padding: 8px 20px 16px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; }
.modal p { margin: 0 0 12px; color: var(--text-2); line-height: 1.45; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.setting:last-child { border-bottom: 0; }
.setting-h { font-weight: 600; margin: 18px 0 4px; font-size: 13px; color: var(--accent-text); text-transform: uppercase; letter-spacing: .03em; }
.toggle { position: relative; width: 40px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle span { position: absolute; inset: 0; border: 1px solid var(--text-2); border-radius: 10px; cursor: pointer; transition: .15s; }
.toggle span::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); top: 3px; left: 4px; transition: .15s; }
.toggle input:checked + span { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + span::after { background: #fff; left: 22px; }
.seg { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.seg button { padding: 6px 12px; font-size: 13px; }
.seg button.on { background: var(--accent); color: #fff; }

.themes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 8px 14px; }
.theme-sw { width: 34px; height: 34px; border-radius: 4px; cursor: pointer; border: 2px solid transparent; background-size: cover; background-position: center; }
.theme-sw.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; width: 300px; }
.emoji-grid button { font-size: 20px; height: 34px; border-radius: 4px; }
.emoji-grid button:hover { background: var(--hover); }

.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.member .mn { flex: 1; min-width: 0; }
.member .mn small { display: block; color: var(--text-2); font-size: 12px; }
.share-link { display: flex; gap: 6px; margin: 8px 0 12px; }
.share-link input { flex: 1; }

.suggest { position: absolute; right: 0; top: 0; bottom: 0; width: 360px; background: var(--surface-2); border-left: 1px solid var(--border); z-index: 20; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.suggest .sh { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 18px; font-weight: 600; }
.suggest .sb { flex: 1; overflow-y: auto; padding: 0 16px 16px; }
.suggest .sg-h { font-weight: 600; margin: 12px 0 8px; font-size: 13px; }
.suggest .task { cursor: default; }
.suggest .add-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-text); }
.suggest .add-btn:hover { background: var(--hover); }

#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #323130; color: #fff; padding: 10px 14px; border-radius: 6px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 16px; pointer-events: auto; animation: fadeIn .15s; max-width: 92vw; }
.toast button { color: #8ab4ff; font-weight: 600; }

.date-input { width: 100%; }

/* ---------- Mobiel ---------- */
.mobile-only { display: none !important; }
@media (max-width: 1100px) {
  .detail { position: fixed; right: 0; top: 48px; bottom: 0; z-index: 50; box-shadow: var(--shadow-lg); }
}
@media (max-width: 760px) {
  .mobile-only { display: inline-grid !important; }
  .desktop-only { display: none !important; }
  .body { grid-template-columns: 1fr !important; }
  .sidebar { visibility: visible !important; border-right: 0; }
  .body .main { display: none; }
  .body.view-list .sidebar, .body.view-detail .sidebar { display: none; }
  .body.view-list .main, .body.view-detail .main { display: flex; }
  .detail { width: 100%; top: 0; z-index: 60; border-left: 0; }
  .main-header { padding: 16px 12px 8px 4px; }
  .task-scroll { padding: 0 12px 90px; }
  .list-title, .list-title input { font-size: 22px; }
  .suggest { width: 100%; }
  .topbar .brand { display: none; }
  .add-task.mobile-fixed { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; margin: 0; box-shadow: var(--shadow-lg); }
  .nav-item { height: 46px; }
}

/* ---------- Print ---------- */
@media print {
  body { overflow: visible; background: #fff; }
  .topbar, .sidebar, .detail, .add-task, .header-actions, .star, .sort-chip, #toasts, .suggest { display: none !important; }
  .app, .body { display: block; height: auto; }
  .main { background: #fff !important; }
  .task-scroll { overflow: visible; }
  .task { box-shadow: none; border-bottom: 1px solid #ddd; border-radius: 0; break-inside: avoid; }
  .has-bg .list-title, .has-bg .section-head { color: #000; text-shadow: none; }
}

/* =========================================================
   Aanvullingen: account, delen, 2FA, instellingen
   ========================================================= */
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.notice { background: var(--selected); color: var(--text); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 4px; font-size: 13px; margin-bottom: 14px; line-height: 1.45; }
.muted, .hint { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.hint { margin: 6px 0 10px; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.acct-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.acct-card small, .acct-big small, .setting small { display: block; color: var(--text-2); font-size: 12px; font-weight: 400; margin-top: 2px; }
.acct-big { display: flex; align-items: center; gap: 14px; margin: 8px 0 16px; }
.acct-big .avatar { width: 56px; height: 56px; font-size: 20px; }
.inline { display: flex; gap: 8px; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger-text { color: var(--danger); }
.btn-row, .share-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: -4px 0 8px; overflow-x: auto; }
.tabs button { padding: 10px 12px; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--accent-text); border-bottom-color: var(--accent); font-weight: 600; }
kbd { font-family: inherit; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 2px 8px; }
.sec-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: 8px; margin: 8px 0 14px; }
.sec-card .sec-ico { color: var(--text-3); }
.sec-card.on .sec-ico { color: #107c10; }
.tf-steps { padding-left: 20px; margin: 0; line-height: 1.5; }
.tf-steps li { margin-bottom: 14px; }
.qr { background: #fff; display: inline-block; padding: 6px; border-radius: 8px; border: 1px solid var(--border); margin: 10px 0 6px; }
.secret { display: inline-block; margin-top: 4px; font-size: 15px; letter-spacing: .08em; background: var(--surface-2); padding: 4px 8px; border-radius: 4px; user-select: all; }
.backup-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.backup-codes code { background: var(--surface-2); padding: 8px; border-radius: 4px; text-align: center; font-size: 15px; letter-spacing: .06em; }
.share-hero { display: flex; align-items: center; gap: 12px; padding: 4px 0 4px; color: var(--accent-text); }
.share-hero .se { font-size: 28px; }
.share-hero b { color: var(--text); display: block; font-size: 16px; }
.share-hero small { color: var(--text-2); }
.invite-form { display: flex; gap: 8px; }
.invite-form .input { flex: 1; }
.member .role { font-size: 12px; color: var(--text-2); }
.member.pending .mn { color: var(--text-2); }
.join-card { text-align: center; }
.join-card .big { font-size: 48px; margin-bottom: 8px; }
.repeat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.weekdays { display: flex; gap: 6px; flex-wrap: wrap; }
.weekdays .wd { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); font-size: 12px; text-transform: capitalize; }
.weekdays .wd.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cat-chip button { display: inline-grid; place-items: center; color: inherit; opacity: .7; }
.cat-chip button:hover { opacity: 1; }
.cats .cat-chip { font-size: 12px; line-height: 22px; padding: 0 8px; }

/* Zijbalk/hoofd extra's */
.title-ico { display: grid; place-items: center; }
.member-stack { display: inline-flex; vertical-align: middle; margin-right: 6px; }
.member-stack .avatar { border: 2px solid var(--list-bg); margin-left: -6px; }
.member-stack .avatar:first-child { margin-left: 0; }
.subtitle { display: flex; align-items: center; }
.assignee { margin-right: 2px; }
.all-done { display: flex; align-items: center; gap: 8px; color: var(--header-text); padding: 10px 4px; font-weight: 600; }
.circle-ph { display: none; }
.nav-head { display: none; }
.d-row.overdue { color: var(--danger) !important; }
.d-back { margin: -6px 0 6px -6px; }
.detail.file-over { outline: 2px dashed var(--accent); outline-offset: -6px; }
.suggest .task .add-btn + .star { display: none; }

/* =========================================================
   Animaties (zoals Microsoft To Do)
   ========================================================= */
.check .circle svg { transform: scale(.6); transition: opacity .15s, transform .15s; }
.check:hover .circle svg, .check.checked .circle svg { transform: scale(1); }
.check.pop .circle { animation: checkPop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes checkPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.check.pop.checked .circle::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 0 var(--accent); animation: ring .5s ease-out; }
.check .circle { position: relative; }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } to { box-shadow: 0 0 0 10px transparent; } }
.task .title { transition: color .2s; }
.task.leaving { animation: taskLeave .28s ease-in forwards; pointer-events: none; }
@keyframes taskLeave { to { opacity: 0; transform: translateX(16px); max-height: 0; min-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; } }
.task.entering { animation: taskEnter .3s cubic-bezier(.1,.9,.2,1); }
@keyframes taskEnter { from { opacity: 0; transform: translateY(-12px) scale(.98); } }
.star.pop svg { animation: starPop .4s cubic-bezier(.2,.9,.3,1.5); }
@keyframes starPop { 0% { transform: scale(1) rotate(0); } 45% { transform: scale(1.45) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
.detail.opening { animation: paneIn .26s cubic-bezier(.1,.9,.2,1); }
.detail.closing { animation: paneOut .18s ease-in forwards; }
@keyframes paneIn { from { transform: translateX(40px); opacity: 0; } }
@keyframes paneOut { to { transform: translateX(40px); opacity: 0; } }
.suggest { animation: paneIn .26s cubic-bezier(.1,.9,.2,1); }
.menu { transform-origin: top left; animation: menuIn .14s cubic-bezier(.1,.9,.2,1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.modal-back .modal { animation: modalIn .22s cubic-bezier(.1,.9,.2,1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal-back.out { animation: fadeOut .15s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.toast { animation: toastIn .25s cubic-bezier(.1,.9,.2,1); }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
.section-head .chev { transition: transform .2s ease; }
.section-body { animation: fadeIn .2s ease; }
.nav-item { transition: background .1s; }
.nav-item.active::before { animation: barIn .2s ease; }
@keyframes barIn { from { transform: scaleY(0); } }
.main { transition: background .3s ease; }
.body { transition: grid-template-columns .2s ease; }
.list-title .t { animation: fadeIn .2s ease; }
.task:active { transform: scale(.995); }
.add-task .opts { animation: fadeIn .15s ease; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
  .nav-head { display: flex; padding: 16px 20px 8px; }
  .acct-mini { display: flex; align-items: center; gap: 10px; }
  .body.view-detail .detail { animation: sheetIn .28s cubic-bezier(.1,.9,.2,1); }
  @keyframes sheetIn { from { transform: translateX(100%); } }
  .backup-codes { grid-template-columns: 1fr; }
  .modal { max-height: 92vh; }
}

/* Correcties na test */
#detail-slot { display: contents; }
.new-list { min-width: 0; }
.new-list input { width: 100%; }
.sidebar-bottom { min-width: 0; }
.list-title .icon-btn, .main-header .back-btn { color: var(--header-text); }
.has-bg .list-title .icon-btn, .has-bg .back-btn { color: #fff; }
.list-title .icon-btn:hover { background: rgba(127,127,127,.15); }
.qr { display: block; width: fit-content; }
@media (max-width: 760px) { .main-header { align-items: center; } .list-title { gap: 6px; } }

/* =========================================================
   Telefoon: aanraakvriendelijk + animaties
   ========================================================= */
#task-area, .section-body { position: relative; }
.swipe-bg { position: absolute; left: 0; right: 0; border-radius: var(--radius); display: flex; align-items: center; padding: 0 20px; color: #fff; font-weight: 600; font-size: 13px; transition: background .15s, opacity .25s; z-index: 0; }
.swipe-bg span { display: flex; align-items: center; gap: 8px; }
.swipe-bg.right { background: #8aa6d6; justify-content: flex-start; }
.swipe-bg.right.armed { background: #2564cf; }
.swipe-bg.left { background: #d9a0a0; justify-content: flex-end; }
.swipe-bg.left.armed { background: #c50f1f; }
.swipe-bg.armed span svg { animation: starPop .3s ease; }
.task { position: relative; z-index: 1; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.task.swiping { box-shadow: var(--shadow-lg); }
.task.pressed { transform: scale(.97); transition: transform .15s; }
button, .nav-item { -webkit-tap-highlight-color: transparent; }

@media (max-width: 760px) {
  html, body { overscroll-behavior: none; }
  .topbar { padding-top: env(safe-area-inset-top); height: auto; min-height: 48px; }
  .app { grid-template-rows: auto 1fr; }
  .input, .add-task input, .search input, .new-list input, .step input, .add-step input, .d-title textarea, .notes textarea, .list-title input { font-size: 16px; } /* geen inzoomen op iOS */
  .task { min-height: 56px; }
  .check { width: 40px; height: 40px; }
  .star { width: 40px; height: 40px; }
  .nav-item:active, .task:active { background: var(--hover); }

  /* Schermovergangen */
  .body.nav-fwd .main { animation: pushIn .32s cubic-bezier(.1,.9,.2,1); }
  .body.nav-back .sidebar { animation: popIn .32s cubic-bezier(.1,.9,.2,1); }
  @keyframes pushIn { from { transform: translateX(40%); opacity: 0; } }
  @keyframes popIn { from { transform: translateX(-25%); opacity: .3; } }
  .detail { animation: sheetIn .3s cubic-bezier(.1,.9,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .detail.closing { animation: sheetOut .2s ease-in forwards; }
  @keyframes sheetOut { to { transform: translateX(100%); } }

  /* Invoerbalk onderin, zoals de To Do-app */
  .add-task.mobile-fixed { bottom: calc(12px + env(safe-area-inset-bottom)); border-radius: 10px; animation: barUp .35s cubic-bezier(.1,.9,.2,1); }
  .add-task.mobile-fixed .opts { border-radius: 0 0 10px 10px; }
  .add-task.mobile-fixed.focused { box-shadow: 0 -4px 24px rgba(0,0,0,.2); }
  @keyframes barUp { from { transform: translateY(120%); } }
  .task-scroll { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }

  /* Menu's als bottom-sheet */
  html:not(.android) .menu { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-width: none; min-width: 0; max-height: 75vh; border-radius: 14px 14px 0 0; border: 0;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); animation: sheetUp .28s cubic-bezier(.1,.9,.2,1); }
  html:not(.android) .menu::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 8px; }
  .menu .mi { height: 48px; font-size: 15px; }
  .menu .themes { grid-template-columns: repeat(6, 1fr); }
  .menu .theme-sw { width: 100%; height: 44px; }
  .emoji-grid { width: 100%; }
  @keyframes sheetUp { from { transform: translateY(100%); } }

  /* Dialogen als bottom-sheet */
  html:not(.android) .modal-back { place-items: end center; padding: 0; }
  html:not(.android) .modal-back .modal { max-width: none; border-radius: 14px 14px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheetUp .3s cubic-bezier(.1,.9,.2,1); }
  .modal-f .btn { flex: 1; padding: 12px; }
  .invite-form { flex-direction: column; }
}
@media (hover: none) { .nav-item:not(.active):hover { background: inherit; } .task:not(.selected):hover { background: var(--task-bg); } .step .more { opacity: 1; } }

/* =========================================================
   Web-app (PWA)
   ========================================================= */
.pwa-banner { display: flex; align-items: center; gap: 10px; margin: 8px; padding: 10px 6px 10px 12px; border-radius: 8px; background: var(--selected); animation: fadeIn .3s ease; }
.pwa-banner .pb-ico { color: var(--accent-text); }
.pwa-banner div { flex: 1; min-width: 0; font-size: 13px; }
.pwa-banner small { display: block; color: var(--text-2); font-size: 12px; }
.pwa-banner .icon-btn { width: 24px; height: 24px; }
.hint.warn { color: #a4262c; }
.ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 4px; vertical-align: middle; }
/* Geïnstalleerde app: rekening houden met notch/statusbalk, geen tekstselectie op knoppen */
@media (display-mode: standalone) {
  .topbar { padding-top: env(safe-area-inset-top); height: auto; min-height: calc(48px + env(safe-area-inset-top)); }
  .app { grid-template-rows: auto 1fr; }
  .sidebar-bottom { padding-bottom: calc(4px + env(safe-area-inset-bottom)); }
  .nav-item, .btn, .icon-btn, .txt-btn, .section-head, .task .meta { -webkit-user-select: none; user-select: none; }
  body { -webkit-touch-callout: none; }
  .search input { -webkit-user-select: text; user-select: text; }
}
.sec-card > div, .setting > span:first-child { flex: 1; min-width: 0; }
.modal-b { overflow-x: hidden; }
.setting small, .sec-card small { overflow-wrap: anywhere; }

/* Dialogen nooit breder dan het scherm (de tabbalk rekte het venster op) */
.modal { min-width: 0; width: 100%; }
.modal-b, .modal-h, .modal-f { min-width: 0; }
.tabs { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.setting { min-width: 0; }
.setting .seg, .setting .toggle, .setting kbd { flex-shrink: 0; }
@media (max-width: 760px) {
  html:not(.android) .modal-back .modal { width: 100vw; }
  .modal-h { padding: 18px 16px 6px; }
  .modal-b { padding: 6px 16px 16px; }
  .modal-f { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 12px; }
  .tabs button { padding: 10px 10px; font-size: 14px; }
  .setting { gap: 10px; padding: 12px 0; }
  .setting > span:first-child { font-size: 15px; }
  .seg button { padding: 6px 10px; }
  .acct-big .avatar { width: 48px; height: 48px; }
  .inline { flex-direction: column; }
  .inline .btn { align-self: flex-start; }
}

/* ⋯-knop bij mappen en lijsten in de zijbalk */
.nav-more { width: 28px; height: 28px; display: none; place-items: center; border-radius: 4px; color: var(--text-2); margin-right: -8px; }
.nav-more:hover { background: var(--surface-2); color: var(--text); }
.nav-item:hover .nav-more, .nav-item:focus-within .nav-more { display: grid; }
.nav-item:hover .count { display: none; }
.nav-item.pressed { transform: scale(.98); background: var(--hover); transition: transform .15s; }
@media (hover: none) { .nav-item .nav-more { display: grid; opacity: .55; } .nav-item:hover .count { display: inline; } }
.nav-item { -webkit-touch-callout: none; user-select: none; }
.menu .mh:first-child { font-size: 13px; color: var(--text); padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lijniconen i.p.v. emoji */
.icon-grid { display: grid; grid-template-columns: repeat(8, 36px); gap: 4px; padding: 4px 12px 12px; }
.icon-grid button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; color: var(--text-2); transition: background .1s, color .1s, transform .1s; }
.icon-grid button:hover { background: var(--hover); color: var(--accent-text); }
.icon-grid button:active { transform: scale(.92); }
.icon-grid button.on { background: var(--selected); color: var(--accent-text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.title-ico.emoji-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 6px; color: inherit; padding: 0; font-size: inherit; }
.title-ico.emoji-btn:hover { background: rgba(127,127,127,.15); }
.task .meta > span svg { flex-shrink: 0; }
.empty .big { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 0;
  background: color-mix(in srgb, var(--header-text) 14%, transparent); color: var(--header-text); }
.has-bg .empty .big { background: rgba(255,255,255,.18); color: #fff; }
.join-card .big { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--selected); color: var(--accent-text); font-size: 0; }
.share-hero .se { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--selected); color: var(--accent-text); font-size: 0; }
.nav-item .ico svg { color: var(--text-2); }
.nav-item.active .ico svg { color: var(--accent-text); }
.menu .mi .ico svg { color: var(--text-2); }
@media (max-width: 760px) { .icon-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); padding: 4px 14px 14px; } .icon-grid button { width: 100%; height: 44px; } }
@media (min-width: 761px) { .icon-grid { grid-template-columns: repeat(8, 34px); gap: 2px; } .icon-grid button { width: 34px; height: 34px; } }

/* =========================================================
   Gekleurde iconen in de zijbalk
   ========================================================= */
.nav-item[style*="--ico"] .ico svg, .nav-item.active[style*="--ico"] .ico svg { color: var(--ico); }
.nav-item .name { flex: 0 1 auto; }
.nav-item .shared { margin-left: -6px; }
.nav-item .count { margin-left: auto; }
.avatar.photo { background: var(--surface-2); overflow: hidden; padding: 0; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 48px; height: 48px; font-size: 17px; }
.avatar.xl { width: 96px; height: 96px; font-size: 34px; }

/* =========================================================
   Beginscherm op de telefoon (zoals de To Do-app)
   ========================================================= */
.home-head { display: none; }
@media (max-width: 760px) {
  .topbar { display: none !important; }
  .app { grid-template-rows: 1fr !important; }
  .sidebar { background: var(--bg); }
  :root.dark .sidebar, :root.dark .body .main:not(.has-bg) { background: #000; }
  :root.dark { --task-bg: #1c1c1e; }
  .home-head { display: flex !important; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top) + 14px) 12px 10px 16px; }
  .hh-acct { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; padding: 4px 0; border-radius: 12px; }
  .hh-acct:active { opacity: .7; }
  .hh-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .hh-txt b { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hh-txt small { font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 7px; white-space: nowrap; }
  .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
  .dot.ok { background: #3fb950; } .dot.warn { background: #f0a020; }
  .hh-search { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text); }
  .hh-search:active { background: var(--hover); }
  .nav { padding-top: 2px; }
  .nav-item { height: 52px; padding: 0 18px 0 18px; gap: 20px; font-size: 17px; }
  .nav-item .ico { width: 26px; }
  .nav-item .ico svg { width: 25px; height: 25px; }
  .nav-item .count { font-size: 16px; color: var(--text-2); }
  .nav-item.active { background: transparent; font-weight: 400; }
  .nav-item.active::before { display: none; }
  .nav-item .shared svg { width: 20px; height: 20px; }
  .nav-sep { margin: 10px 18px; }
  .nav-group .group-head .ico svg { color: var(--text-2); }
  .group-children { padding-left: 8px !important; }
  .sidebar-bottom { border-top: 0; padding: 6px 8px calc(10px + env(safe-area-inset-bottom)) 10px; }
  .new-list { color: var(--text-2); font-size: 17px; gap: 20px; height: 52px; }
  .new-list svg { width: 24px; height: 24px; }
  .new-list input { font-size: 17px; }
  .new-list input::placeholder { color: var(--text-2); }
  #new-group { color: var(--text-2); width: 44px; height: 44px; }
  #new-group svg { width: 24px; height: 24px; }
  .pwa-banner { margin: 6px 12px; }
  /* lijstweergave en zoeken */
  .main-header { padding-top: calc(env(safe-area-inset-top) + 12px); }
  .detail-scroll { padding-top: calc(env(safe-area-inset-top) + 10px); }
  .m-search-bar { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 12px) 12px 10px; }
  .m-search { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--surface-2); color: var(--text-2); }
  :root.dark .m-search { background: #1c1c1e; }
  .m-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 17px; min-width: 0; color: var(--text); }
  .m-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
  .m-search-cancel { color: var(--accent-text); font-size: 17px; padding: 6px 4px; }
}

/* =========================================================
   Instellingen in iOS-stijl
   ========================================================= */
.ios-back { place-items: center; }
.ios-sheet { --ios-bg: #f2f2f7; --ios-card: #fff; --ios-sep: #e3e3e8; width: 100%; max-width: 560px; height: min(88vh, 900px); background: var(--ios-bg); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-lg); animation: modalIn .25s cubic-bezier(.1,.9,.2,1); }
:root.dark .ios-sheet { --ios-bg: #111; --ios-card: #1f1f21; --ios-sep: #333336; }
.ios-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 16px; background: var(--ios-card); border-bottom: 1px solid var(--ios-sep); flex-shrink: 0; }
.ios-head b { font-size: 17px; font-weight: 600; }
.ios-done { justify-self: end; color: var(--accent-text); font-size: 17px; font-weight: 600; padding: 8px 4px; }
.ios-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ios-profile { display: flex; flex-direction: column; align-items: center; padding: 22px 16px 18px; background: var(--ios-card); border-bottom: 1px solid var(--ios-sep); }
.ios-avatar { position: relative; border-radius: 50%; }
.ios-avatar:active { transform: scale(.97); }
.ios-cam { position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 3px solid var(--ios-card); }
.ios-name { font-size: 26px; font-weight: 400; margin-top: 12px; text-align: center; }
.ios-mail { color: var(--text-2); font-size: 15px; margin-top: 2px; text-align: center; }
.ios-title { padding: 26px 20px 8px; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); }
.ios-gap { height: 26px; }
.ios-foot { padding: 8px 20px 0; font-size: 13px; color: var(--text-2); text-align: center; line-height: 1.5; }
.ios-group { background: var(--ios-card); border-top: 1px solid var(--ios-sep); border-bottom: 1px solid var(--ios-sep); }
.ios-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 8px 16px; text-align: left; position: relative; cursor: pointer; font-size: 16px; color: var(--text); }
.ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--ios-sep); }
.ios-row:active { background: var(--hover); }
.ios-ico { width: 26px; display: grid; place-items: center; flex-shrink: 0; }
.ios-lbl { flex: 1; min-width: 0; line-height: 1.3; }
.ios-lbl small { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.ios-val { color: var(--text-2); font-size: 15px; text-align: right; flex-shrink: 0; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ios-chev { color: var(--text-3); flex-shrink: 0; margin-right: -4px; }
.ios-center { justify-content: center; text-align: center; }
.ios-row.link, .ios-row.link .ios-lbl { color: var(--accent-text); }
.ios-row.danger { color: #e0353f; }
:root.dark .ios-row.danger { color: #ff6961; }
.ios-pill { font-size: 13px; padding: 3px 10px; border-radius: 12px; background: var(--surface-2); color: var(--text-2); }
.ios-pill.on { background: color-mix(in srgb, #3fb950 20%, transparent); color: #2ea043; }
.ios-time { border: 0; background: var(--surface-2); color: var(--text); font-size: 15px; padding: 6px 8px; border-radius: 8px; font-family: inherit; }
.ios-toggle { width: 51px; height: 31px; }
.ios-toggle span { border: 0; background: #787880; opacity: 1; border-radius: 16px; }
:root:not(.dark) .ios-toggle span { background: #e3e3e8; }
.ios-toggle span::after { width: 27px; height: 27px; top: 2px; left: 2px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ios-toggle input:checked + span { background: var(--accent); }
.ios-toggle input:checked + span::after { left: 22px; background: #fff; }
.ios-toggle span::after, .ios-toggle span { transition: all .2s cubic-bezier(.2,.8,.2,1); }
@media (max-width: 760px) {
  .ios-back { place-items: end center; padding: 0; }
  .ios-sheet { max-width: none; height: calc(100% - env(safe-area-inset-top) - 14px); border-radius: 14px 14px 0 0; animation: sheetUp .32s cubic-bezier(.1,.9,.2,1); }
  .ios-row { font-size: 17px; }
  .ios-scroll { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 760px) {
  .nav-item .nav-more { display: none !important; } /* op de telefoon: lang indrukken */
  .m-search { min-width: 0; }
  .m-search-cancel { flex-shrink: 0; }
}
:root.dark .ios-toggle input:checked + span { background: #3478f6; }
:root:not(.dark) .ios-toggle input:checked + span { background: #2564cf; }

/* =========================================================
   Eigen achtergrondfoto
   ========================================================= */
.theme-sw.photo-add { display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1.5px dashed var(--text-3); }
.theme-sw.photo-add:hover { color: var(--accent-text); border-color: var(--accent); }
.main.has-bg { background-attachment: local; }
.has-bg .task-scroll .task { backdrop-filter: none; }

/* =========================================================
   Android (Material) – alleen op Android-toestellen
   ========================================================= */
.android-more { display: none !important; }
.ios-back-btn { visibility: hidden; pointer-events: none; }
html.android .ios-back-btn { visibility: visible; pointer-events: auto; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .14; transform: scale(0); pointer-events: none; animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
html.android {
  --font: Roboto, "Google Sans", "Segoe UI", system-ui, sans-serif;
}
html.android .nav-item, html.android .task, html.android .ios-row, html.android .menu .mi, html.android .card .d-row,
html.android .btn, html.android .icon-btn, html.android .txt-btn, html.android .new-list, html.android .hh-acct, html.android .hh-search, html.android .add-task .row { position: relative; overflow: hidden; }
html.android .task:active, html.android .nav-item:active { transform: none; }
html.android .toast { border-radius: 4px; }
html.android .btn { border-radius: 4px; letter-spacing: .02em; }

@media (max-width: 760px) {
  /* Lijstkop: terugpijl en ⋮ bovenin, grote titel eronder (zoals de Android-app) */
  html.android .main-header { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "back . actions" "title title title"; align-items: center; row-gap: 6px; padding: calc(env(safe-area-inset-top) + 6px) 8px 10px 4px; }
  html.android .main-header .back-btn { grid-area: back; width: 48px; height: 48px; }
  html.android .main-header .titles { grid-area: title; padding-left: 14px; }
  html.android .main-header .header-actions { grid-area: actions; }
  html.android .android-more { display: inline-grid !important; width: 48px; height: 48px; }
  html.android .android-more svg { transform: rotate(90deg); }
  html.android #list-more { display: none; }
  html.android .header-actions .txt-btn { width: 48px; height: 48px; justify-content: center; padding: 0; }
  html.android .list-title, html.android .list-title input { font-size: 30px; font-weight: 500; }
  html.android .list-title .title-ico { display: none; }
  html.android .subtitle { font-size: 16px; }
  /* Taken als aaneengesloten kaarten */
  html.android .task-scroll { padding: 0 8px 100px; }
  html.android .task { border-radius: 3px; margin-bottom: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.18); min-height: 58px; }
  html.android .task .title { font-size: 16px; }
  html.android .task .meta { font-size: 13px; }
  html.android .add-task.mobile-fixed { border-radius: 4px; left: 8px; right: 8px; }
  html.android .section-head { padding-left: 10px; }

  /* Menu's als Material-uitklapmenu */
  html.android .menu { border-radius: 4px; padding: 8px 0; min-width: 200px; max-width: calc(100vw - 16px); box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12); border: 0; transform-origin: top right; animation: mdMenu .16s cubic-bezier(.2,0,0,1); }
  html.android .menu .mi { height: 48px; font-size: 16px; padding: 0 16px; }
  @keyframes mdMenu { from { opacity: 0; transform: scale(.85); } }

  /* Dialogen in het midden */
  html.android .modal-back { place-items: center; padding: 24px; }
  html.android .modal-back .modal { border-radius: 8px; animation: mdDialog .2s cubic-bezier(.2,0,0,1); }
  html.android .modal-f { padding: 8px 8px 8px; gap: 4px; }
  html.android .modal-f .btn { flex: 0 0 auto; background: none; border: 0; color: var(--accent-text); text-transform: uppercase; font-weight: 500; padding: 10px 12px; }
  html.android .modal-f .btn.danger { color: var(--danger); }
  @keyframes mdDialog { from { opacity: 0; transform: scale(.9); } }

  /* Instellingen: volledig scherm met terugpijl */
  html.android .ios-back { padding: 0; place-items: stretch; background: transparent; }
  html.android .ios-sheet { --ios-bg: var(--bg); --ios-card: var(--bg); --ios-sep: var(--border); height: 100%; max-width: none; border-radius: 0; box-shadow: none; animation: mdPage .28s cubic-bezier(.2,0,0,1); }
  :root.dark.android .ios-sheet { --ios-bg: #000; --ios-card: #000; --ios-sep: #2a2a2a; }
  html.android .ios-back.out .ios-sheet { animation: mdPageOut .2s ease-in forwards; }
  @keyframes mdPage { from { transform: translateX(30%); opacity: 0; } }
  @keyframes mdPageOut { to { transform: translateX(30%); opacity: 0; } }
  html.android .ios-head { grid-template-columns: auto 1fr; height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 4px; border-bottom: 0; }
  html.android .ios-head b { font-size: 20px; font-weight: 500; padding-left: 8px; }
  html.android .ios-back-btn { display: grid !important; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
  html.android .ios-done { display: none; }
  html.android .ios-profile { border-bottom: 0; }
  html.android .ios-group { border: 0; }
  html.android .ios-title { text-transform: none; color: var(--accent-text); font-weight: 500; font-size: 14px; letter-spacing: 0; padding: 22px 20px 4px; }
  html.android .ios-row + .ios-row::before { display: none; }
  html.android .ios-row { min-height: 56px; padding: 10px 20px; font-size: 16px; }
  html.android .ios-chev { display: none; }
  html.android .ios-center { justify-content: flex-start; }
  html.android .ios-gap { height: 8px; border-top: 1px solid var(--ios-sep); margin-top: 8px; }
  html.android .ios-foot { text-align: left; }

  /* Material-schakelaar */
  html.android .ios-toggle, html.android .toggle { width: 36px; height: 20px; margin-right: 4px; }
  html.android .ios-toggle span, html.android .toggle span { top: 3px; bottom: 3px; border: 0; border-radius: 7px; background: rgba(127,127,127,.45) !important; }
  html.android .ios-toggle span::after, html.android .toggle span::after { width: 20px; height: 20px; top: -3px; left: -2px; background: #ececec; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
  html.android .ios-toggle input:checked + span, html.android .toggle input:checked + span { background: color-mix(in srgb, var(--accent) 55%, transparent) !important; }
  html.android .ios-toggle input:checked + span::after, html.android .toggle input:checked + span::after { left: 18px; background: var(--accent); }

  /* Detailscherm */
  html.android .detail .card { border-radius: 4px; }
}
.verify-ico { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--selected); color: var(--accent-text); }

/* Herkende datum in de invoerbalk */
.parse-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-right: auto; animation: fadeIn .15s ease; }
.parse-chips .pc-lbl { font-size: 12px; color: var(--text-2); }
.parse-chips .pc { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 12px; background: var(--selected); color: var(--accent-text); }
.parse-chips .pc-x { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.parse-chips .pc-x:hover { background: var(--hover); }
.add-task .opts:has(.parse-chips) .spacer { display: none; }

/* Correcties computerweergave */
.nav-more { order: 10; margin-left: auto; }
.nav-item:hover .nav-more ~ .count, .nav-item:hover .count { display: none; }
.main.suggest-open .main-header, .main.suggest-open .task-scroll, .main.suggest-open .sort-chip { margin-right: 360px; }
@media (max-width: 1100px) { .main.suggest-open .main-header, .main.suggest-open .task-scroll, .main.suggest-open .sort-chip { margin-right: 0; } }
.sync-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.18); color: #fff; white-space: nowrap; }
.sync-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #f0a020; }
.ios-head b { text-align: center; }
.srv { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.srv .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #3fb950; } .dot.off { background: #e0353f; }

/* Toetsenbord open op de telefoon: invoerbalk direct erboven */
@media (max-width: 760px) {
  html.kb-open .task-scroll { padding-bottom: calc(120px + var(--kb, 0px)); }
  html.kb-open #toasts { bottom: calc(80px + var(--kb, 0px)); }
  html, body { background-color: var(--bg); }
}

/* =========================================================
   Telefoon: app en vensters altijd tot de onderkant van het scherm
   (iOS herstelt na het sluiten van het toetsenbord de hoogte niet altijd)
   ========================================================= */
@media (max-width: 760px) {
  /* Opbouw zoals het werkte: app = zichtbare schermhoogte (dvh); geen trucs met extra hoogte */
  :root.dark, :root.dark body { background-color: #000; }
  .app { height: 100vh; height: 100dvh; }
  .modal-back, .ios-back { position: fixed; inset: 0; height: auto; }
  .add-task.mobile-fixed { bottom: calc(12px + env(safe-area-inset-bottom)); }
  html:not(.android) .menu { bottom: 0 !important; padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
}
/* Verwijder-dialoog als nette actiesheet onderaan (iPhone) */
@media (max-width: 760px) {
  html:not(.android) .modal-back .modal { padding-bottom: env(safe-area-inset-bottom); }
  html:not(.android) .modal-f { padding-bottom: 18px; }
  html:not(.android) .modal-back .modal .modal-b p:last-child { margin-bottom: 4px; }
}

/* Importeren uit Microsoft To Do */
.msi-ico { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; background: var(--selected); color: var(--accent-text); }
.msi-ico.ok { color: #2ea043; background: color-mix(in srgb, #2ea043 15%, transparent); }
.msi-code { font-size: 34px; font-weight: 700; letter-spacing: .14em; text-align: center; padding: 14px; margin: 10px 0 14px; border-radius: 10px; background: var(--surface-2); user-select: all; font-variant-numeric: tabular-nums; }
.btn-row.center { justify-content: center; }
.msi-status { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px 0 6px; color: var(--text-2); }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.msi-wait { display: grid; place-items: center; padding: 30px; }
.msi-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 12px 0 8px; }
.msi-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s ease; }
.msi-count { margin-top: 8px; }
.msi-code + .btn-row a.btn { text-decoration: none; }

/* Verzendknop in de invoerbalk (telefoon) */
.add-task form.row { margin: 0; }
.add-send { display: none; width: 32px; height: 32px; border-radius: 50%; place-items: center; background: var(--accent); color: #fff; flex-shrink: 0; animation: fadeIn .15s ease; }
@media (max-width: 760px) {
  .add-task.has-text .add-send { display: grid; }
  .add-task .opts .btn#add-btn { display: none; }
}

/* iOS: scherm na toetsenbord te klein gebleven -> app tot de echte onderkant laten doorlopen */
@media (max-width: 760px) {
  html.vp-stuck .app { height: var(--vh-full) !important; }
  html.vp-stuck .modal-back, html.vp-stuck .ios-back { bottom: calc(0px - var(--gap, 0px)); }
  html.vp-stuck .add-task.mobile-fixed { bottom: calc(12px + env(safe-area-inset-bottom) - var(--gap, 0px)); }
  html.vp-stuck:not(.android) .menu { bottom: calc(0px - var(--gap, 0px)) !important; }
  html.vp-stuck #toasts { bottom: calc(84px + env(safe-area-inset-bottom) - var(--gap, 0px)); }
}

/* Invoerbalk schuift soepel mee met het toetsenbord (zelfde tempo als iOS/Android) */
@media (max-width: 760px) {
  .add-task.mobile-fixed { transition: transform .34s cubic-bezier(.25,.8,.25,1), box-shadow .2s; will-change: transform; }
  html.android .add-task.mobile-fixed { transition: transform .28s cubic-bezier(.2,0,0,1), box-shadow .2s; }
}

/* "Niet meer vragen" in bevestigingsvensters */
.dont-ask { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-size: 14px; color: var(--text-2, var(--text)); cursor: pointer; user-select: none; -webkit-user-select: none; }
.dont-ask input { position: absolute; opacity: 0; pointer-events: none; }
.dont-ask-box { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong, #8a8886); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.dont-ask-box::after { content: ''; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s cubic-bezier(.2,.9,.3,1.4); }
.dont-ask input:checked + .dont-ask-box { background: var(--accent); border-color: var(--accent); }
.dont-ask input:checked + .dont-ask-box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
html.android .dont-ask-box { border-radius: 3px; }
@media (max-width: 760px) { html:not(.android) .modal-back .modal .dont-ask { justify-content: center; margin: 12px 0 6px; } }

/* Profielfoto bijsnijden */
.crop-modal { width: min(420px, 100vw); }
.crop-wrap { display: grid; justify-items: center; gap: 14px; padding-top: 4px; }
.crop-stage { position: relative; width: min(300px, 76vw); aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-stage.dragging { cursor: grabbing; }
.crop-img { position: absolute; left: 50%; top: 50%; max-width: none; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.55); outline: 2px solid rgba(255,255,255,.9); outline-offset: -1px; pointer-events: none; transition: box-shadow .2s; }
.crop-stage.dragging .crop-ring { box-shadow: 0 0 0 999px rgba(0,0,0,.4); }
.crop-zoom { display: flex; align-items: center; gap: 10px; width: min(300px, 76vw); color: var(--text-2, var(--text)); }
.crop-range { flex: 1; accent-color: var(--accent); }
.crop-hint { margin: 0; font-size: 12px; color: var(--text-3, var(--text)); text-align: center; }

/* Menu boven het toetsenbord: afgeronde hoeken rondom, zwevend blad */
@media (max-width: 760px) {
  html:not(.android) .menu.above-kb { border-radius: 14px; left: 8px !important; right: 8px; width: auto; margin-bottom: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
}

/* Opnieuw opbouwen van dezelfde lijst: niets laten invliegen of vervagen (geen flitsen) */
.main.calm .task:not(.entering):not(.leaving), .main.calm .section-body, .main.calm .list-title .t,
.main.calm .add-task, .main.calm .add-task .opts, .main.calm .suggest, .main.calm .empty, .main.calm .empty * { animation: none !important; }

/* Kruisje in menubladen (iPhone) */
.menu-x { display: none; }
@media (max-width: 760px) {
  html:not(.android) .menu.has-x { padding-top: 10px; }
  html:not(.android) .menu.has-x::before { margin-bottom: 16px; }
  html:not(.android) .menu .menu-x { display: grid; place-items: center; position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0;
    background: var(--hover, rgba(127,127,127,.16)); color: var(--text-2, var(--text)); cursor: pointer; z-index: 2; }
  html:not(.android) .menu .menu-x:active { opacity: .6; }
}

/* Touchscreens: geen "blijvende" hover-markering na een tik (iOS onthoudt de laatste aanraakplek) */
@media (hover: none) {
  .new-list:hover, .icon-btn:hover, .txt-btn:hover, .hh-acct:hover, .hh-search:hover { background: transparent; }
}

/* =========================================================
   Brede telefoons en vouwtelefoons (iPhone Duo binnenscherm, iPad mini staand):
   taak openen = details ernaast in plaats van over de hele lijst.
   ========================================================= */
@media (min-width: 600px) and (max-width: 760px) {
  :root { --dw: min(46%, 380px); }
  .detail { width: var(--dw); left: auto; right: 0; border-left: 1px solid var(--border); box-shadow: -8px 0 24px rgba(0,0,0,.08); }
  .main { transition: margin-right .28s cubic-bezier(.1,.9,.2,1); }
  .body:has(.detail:not(.closing)) .main { margin-right: var(--dw); }
  .body:has(.detail:not(.closing)) .add-task.mobile-fixed { right: calc(var(--dw) + 12px); }
  .task-scroll { padding-left: 16px; padding-right: 16px; }
}
/* Schermranden (camera/statusbalk aan de zijkant, vouw-iPhone, liggend) */
@media (max-width: 760px) {
  .sidebar, .main { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
  .add-task.mobile-fixed { left: calc(12px + env(safe-area-inset-left)); right: calc(12px + env(safe-area-inset-right)); }
  .detail { padding-right: env(safe-area-inset-right); }
}
@media (min-width: 761px) {
  .app { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* Voorstel tweestapsverificatie */
.tf-suggest { text-align: center; }
.tf-suggest-ico { width: 68px; height: 68px; border-radius: 50%; margin: 4px auto 14px; display: grid; place-items: center; background: var(--selected, #eff4fc); color: var(--accent); }
.tf-suggest p { line-height: 1.5; margin: 0 0 10px; }
