@import url("fonts.css");
/* basis (vroeger door het artifact-skelet gezet) */
:root { box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden]:not([hidden=until-found i]) { display: none !important; }
/* Layout: phone-first werf tool. Lot tiles -> lot sheet grouped by floor (V0 V1 V2), sticky action bar at the bottom. */
:root {
  --bg: #F2EEE8;
  --surface: #FBF9F6;
  --sunk: #E9E4DB;
  --line: #DCD5CA;
  --ink: #0B2A4A;
  --text: #1D2733;
  --muted: #646B72;
  --open: #B05A22;
  --open-bg: #F6E6DA;
  --done: #5F6B4C;
  --done-bg: #E3E7DA;
  --danger: #A3322A;
  --on-ink: #FFFFFF;
  /* fases: to do / urgent / te laat / klaar */
  --ft-todo: #FBF3C8; --ft-todo-line: #E6D68A;
  --ft-urg: #FBE0C2; --ft-urg-line: #E9B07A;
  --ft-laat: #F6D2CD; --ft-laat-line: #D98C82;
  --ft-klaar: #DCEACF; --ft-klaar-line: #9FBF88;
  /* reminder: punt gaat mee in de volgende conceptmail */
  --rem-bg: #DDEBF8; --rem-line: #8DB4DE; --rem-ink: #1F5A93;
  --shadow: 0 1px 2px rgba(11, 42, 74, .08), 0 4px 14px rgba(11, 42, 74, .06);
  --f-display: "Josefin Sans", "Avenir Next", "Futura", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1621; --surface: #142131; --sunk: #0A121B; --line: #263649;
    --ink: #E9E4DA; --text: #E3E0DA; --muted: #9AA4AF;
    --open: #E89B63; --open-bg: #3A2617; --done: #B3BF9D; --done-bg: #222C1E;
    --danger: #F08A80; --on-ink: #0D1621;
    --ft-todo: #353016; --ft-todo-line: #6B5F2A; --ft-urg: #3D2814; --ft-urg-line: #8A5A2E;
    --ft-laat: #421F1C; --ft-laat-line: #8E4038; --ft-klaar: #1F3120; --ft-klaar-line: #4C7343;
    --rem-bg: #14293F; --rem-line: #2F5F8F; --rem-ink: #9CC4EE;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1621; --surface: #142131; --sunk: #0A121B; --line: #263649;
  --ink: #E9E4DA; --text: #E3E0DA; --muted: #9AA4AF;
  --open: #E89B63; --open-bg: #3A2617; --done: #B3BF9D; --done-bg: #222C1E;
  --danger: #F08A80; --on-ink: #0D1621;
  --ft-todo: #353016; --ft-todo-line: #6B5F2A; --ft-urg: #3D2814; --ft-urg-line: #8A5A2E;
  --ft-laat: #421F1C; --ft-laat-line: #8E4038; --ft-klaar: #1F3120; --ft-klaar-line: #4C7343;
  --rem-bg: #14293F; --rem-line: #2F5F8F; --rem-ink: #9CC4EE;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--f-body); -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 16px; padding-block: 0 120px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 760px; margin: 0 auto; padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.title { font: 700 22px/1.1 var(--f-display); color: var(--ink); margin: 4px 0 0; letter-spacing: .01em; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.sync.ok i { background: var(--done); }
.sync.err i { background: var(--danger); }
.seg { display: flex; background: var(--sunk); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* summary */
.summary { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 12px; color: var(--muted); font-size: 14px; }
.summary b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* lot tiles */
.fase { margin-top: 18px; }
.planbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 14px 0 8px; }
.planbar .zoom { display: flex; gap: 6px; }
.planbar .zoom button { width: 40px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font-size: 18px; font-weight: 600; color: var(--ink); }
.planwrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-height: 72vh; -webkit-overflow-scrolling: touch; }
.planinner { position: relative; }
.planinner img { display: block; width: 100%; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; }
.pin { position: absolute; transform: translate(-50%, -50%); border: 2px solid #9AA0A6; border-radius: 6px; padding: 0 5px; min-width: 26px; height: 21px; font: 700 12px/17px var(--f-body); color: #0B2A4A; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; font-variant-numeric: tabular-nums; }
.pin.none { opacity: .75; }
.pin.open { border-color: #D9480F; }
.pin.ok { border-color: #4F7A3A; }
.pin.focus { outline: 3px solid #0B2A4A; outline-offset: 2px; z-index: 2; }
.pin .cnt { position: absolute; top: -13px; right: -9px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 999px; border: 2px solid #FFFFFF; font: 800 11px/15px var(--f-body); color: #FFFFFF; background: #D9480F; box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.pin .cnt.ok { background: #4F7A3A; font-size: 10px; }
.legend .tag { display: inline-block; border: 2px solid #9AA0A6; border-radius: 5px; padding: 0 4px; font: 700 11px/14px var(--f-body); color: #0B2A4A; background: #fff; margin-right: 5px; position: relative; }
.legend .tag b { position: absolute; top: -8px; right: -9px; min-width: 15px; height: 15px; border-radius: 999px; border: 1.5px solid #fff; font: 800 9px/12px var(--f-body); color: #fff; background: #D9480F; text-align: center; padding: 0 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.adres { display: block; font: 500 14px/1.3 var(--f-body); color: var(--muted); margin-top: 6px; letter-spacing: 0; text-transform: none; }
.adres a { color: var(--ink); }
.fase h3 { font: 700 13px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.fase h3 span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.tile { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; min-height: 92px; }
.tile .lbl { font: 600 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .num { font: 700 30px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.tile .num.word { font-size: 19px; padding-top: 6px; }
.tile .st { margin-top: auto; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.tile .st.open { color: var(--open); }
.tile .st.clear { color: var(--muted); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tile.has-open { border-color: color-mix(in srgb, var(--open) 45%, var(--line)); }
.tile.quiet { background: transparent; }

/* section heads */
.backrow { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; }
.back { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 10px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.pagehead h2 { font: 700 34px/1 var(--f-display); color: var(--ink); margin: 0; letter-spacing: .01em; }
.pagehead h2 small { display: block; font: 600 11px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.counts { font-size: 14px; color: var(--muted); }
.counts b { color: var(--open); font-weight: 600; }
/* opleverdatum rechtsboven op een lot */
.headside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; text-align: right; }
.oplev { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; text-align: right; color: var(--text); }
button.oplev:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.oplev .lbl { font: 600 10px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.oplev .dt { font: 700 20px/1.1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.oplev .dt.none { font: 500 14px/1.3 var(--f-body); color: var(--muted); }
.oplev .rel { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oplev .rel.soon { color: var(--open); font-weight: 600; }
.oplev.editing { align-items: stretch; text-align: left; gap: 8px; width: min(100%, 300px); }
.oplev.editing input[type=date] { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 9px 10px; font-size: 16px; }
.oplev.editing .actions { justify-content: flex-start; }
.oplev .bron { font-size: 12px; color: var(--muted); }

/* tabbladen binnen een lot + fases */
.lottabs { margin: 0 0 12px; max-width: 320px; }
.flegend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.flegend span { display: inline-flex; align-items: center; gap: 6px; }
.flegend i { width: 12px; height: 12px; border-radius: 4px; border: 1px solid; display: inline-block; }
.flegend b { color: var(--text); font-variant-numeric: tabular-nums; }
.flist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.frow { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; border: 1px solid; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.frow.todo { background: var(--ft-todo); border-color: var(--ft-todo-line); }
.frow.urgent { background: var(--ft-urg); border-color: var(--ft-urg-line); }
.frow.laat { background: var(--ft-laat); border-color: var(--ft-laat-line); }
.frow.klaar { background: var(--ft-klaar); border-color: var(--ft-klaar-line); }
.fchk { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 45%, transparent); background: var(--surface); color: var(--on-ink); font: 800 17px/1 var(--f-body); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.frow.klaar .fchk { background: var(--done); border-color: var(--done); }
.fchk:disabled { cursor: default; }
.fhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; min-width: 0; }
.fnaam { font-weight: 600; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.frow.klaar .fnaam { color: color-mix(in srgb, var(--text) 75%, transparent); }
.fstat { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.frow.laat .fstat { color: var(--danger); }
.frow.urgent .fstat { color: var(--open); }
.frow.klaar .fstat { color: var(--done); }
.fctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.fctl select, .fctl input[type=date], .fadd input, .fadd select { border: 1px solid color-mix(in srgb, var(--ink) 20%, var(--line)); border-radius: 8px; background: var(--surface); padding: 6px 8px; font-size: 15px; min-width: 0; max-width: 100%; }
.fctl select { flex: 1 1 160px; }
.fctl input[type=date] { flex: 0 1 160px; }
.fdel { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 6px; }
.fdel:hover { color: var(--danger); }
.fconfirm { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; }
.fadd { margin-top: 14px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fadd .row { display: flex; flex-wrap: wrap; gap: 8px; }
.fadd input[type=text] { flex: 1 1 220px; }
.fadd select { flex: 1 1 160px; }
.fadd input[type=date] { flex: 0 1 160px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.jump a { font-size: 13px; color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }

.floor { margin-top: 18px; }
.floor h3 { display: flex; align-items: baseline; gap: 10px; font: 700 15px/1.2 var(--f-display); color: var(--ink); margin: 0 0 8px; letter-spacing: .04em; text-transform: uppercase; }
.floor h3 span { font: 400 13px/1 var(--f-body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.list { display: flex; flex-direction: column; gap: 10px; }

/* point card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); min-width: 0; }
.card.done { box-shadow: none; background: transparent; }
.card.remind { background: var(--rem-bg); border-color: var(--rem-line); }
.remtag { font-weight: 600; color: var(--rem-ink); border: 1px solid var(--rem-line); border-radius: 6px; padding: 1px 7px; background: var(--surface); }
.btn.bell { color: var(--rem-ink); }
.btn.bell[aria-pressed="true"] { background: var(--rem-ink); border-color: var(--rem-ink); color: var(--surface); }
.card.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.card .row1 { display: flex; gap: 10px; align-items: flex-start; }
.card .txt { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.flr { flex: none; font: 700 12px/1 var(--f-display); letter-spacing: .06em; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 5px 6px 3px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 13px; color: var(--muted); }
.who { font-weight: 600; color: var(--text); background: var(--sunk); border-radius: 6px; padding: 2px 8px; }
.who.self { background: var(--ink); color: var(--on-ink); }
.lotref { font-weight: 600; color: var(--ink); }
.donetag { color: var(--done); font-weight: 600; }
.comm { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--line); padding: 2px 0 2px 10px; font-size: 13px; color: var(--muted); }
.comm summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.comm summary::-webkit-details-marker { display: none; }
.comm .ln b { color: var(--text); font-weight: 600; }
.comm .ln.in b { color: var(--done); }
.suggest { border: 1px solid color-mix(in srgb, var(--done) 55%, var(--line)); background: var(--done-bg); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.suggest b { color: var(--done); }
.summary a { color: var(--done); font-weight: 600; }
.late { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--danger); color: #FFFFFF; font: 800 15px/24px var(--f-body); text-align: center; }
.dl { font-weight: 600; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.dl.over { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.bel { font-weight: 600; color: var(--text); border: 1px dashed color-mix(in srgb, var(--ink) 35%, var(--line)); border-radius: 6px; padding: 1px 7px; }
.bel.over { color: var(--open); background: var(--open-bg); border-style: solid; border-color: color-mix(in srgb, var(--open) 55%, var(--line)); }
.tile .lateflag { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #FFFFFF; font: 800 13px/20px var(--f-body); text-align: center; }
.tile { position: relative; }
.field input[type=date] { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 11px 12px; font-size: 16px; }
.dlrow { display: flex; gap: 8px; align-items: center; }
.dlrow input { flex: 1; min-width: 0; }
.nomail { font-weight: 600; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, var(--line)); border-radius: 6px; padding: 1px 7px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.thumbs button { flex: none; border: 0; padding: 0; background: var(--sunk); border-radius: 8px; width: 92px; height: 92px; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 14px; color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.btn.ok { background: var(--done-bg); border-color: transparent; color: var(--done); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn:disabled { opacity: .5; cursor: default; }
/* foto's per fase: bewijs dat de fase gedaan is */
.ffotos { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.ffotos .ph, .ffotos .addph { width: 64px; height: 64px; }
.ffotos .ph > button.open { position: static; width: 100%; height: 100%; border-radius: 0; background: transparent; padding: 0; }
.ffotos .addph { font-size: 12px; text-align: center; }
.ffotos .bezig { font-size: 13px; color: var(--muted); }

/* contractor list */
.alist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.alist button { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 14px; text-align: left; }
.alist button:last-child { border-bottom: 0; }
.alist .n { font-weight: 600; }
.alist .c { font-size: 14px; color: var(--open); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.alist .c.zero { color: var(--muted); font-weight: 400; }
.lotgroup { margin-top: 18px; }
.lotgroup h3 { font: 700 18px/1 var(--f-display); color: var(--ink); margin: 0 0 8px; }
.copybox { margin-top: 10px; }
.copybox textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 10px; font-size: 13px; }

/* bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.bar-in { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.bar .btn { flex: 1; padding: 14px; font-size: 16px; }

/* sheet (form) */
.sheet { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow-y: auto; }
.sheet-in { max-width: 640px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(110px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 18px; }
.sheet h2 { font: 700 24px/1.1 var(--f-display); color: var(--ink); margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .lab { font-weight: 600; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { padding: 9px 14px; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.ph { position: relative; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--sunk); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 28px; }
.addph { width: 96px; height: 96px; border: 1.5px dashed var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface); position: relative; }
.addph input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.formerr { color: var(--danger); font-size: 14px; font-weight: 500; }
.confirm { border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 16, .94); display: flex; flex-direction: column; }
.lb img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; color: #fff; font-size: 14px; }
.lb-bar button, .lb-nav button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 10px; padding: 10px 16px; font-weight: 600; }
.lb-bar { flex-wrap: wrap; }
.lb-acties { display: flex; gap: 8px; flex-shrink: 0; margin-left: auto; }
.lb-acties button[hidden] { display: none; }
.lb-nav { display: flex; justify-content: space-between; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }

/* toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 70; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 10px 14px; display: flex; gap: 14px; align-items: center; font-size: 14px; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast button { border: 0; background: transparent; color: var(--on-ink); font-weight: 700; text-decoration: underline; padding: 0; }

.empty { border: 1.5px dashed var(--line); border-radius: 12px; padding: 22px 16px; color: var(--muted); text-align: center; }
.note { font-size: 13px; color: var(--muted); margin-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .card, .tile { transition: background-color .15s, border-color .15s; }
}

/* login, MFA en werfkeuze */
.login { max-width: 420px; margin: 8vh auto 0; padding-inline: 16px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font: 700 26px/1.1 var(--f-display); color: var(--ink); margin: 0; }
.login input { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 12px; font-size: 16px; }
.login .qr { background: #fff; padding: 12px; border-radius: 12px; align-self: center; }
.login .qr img { width: 200px; height: 200px; display: block; }
.login code { font-size: 13px; word-break: break-all; }
.werfkeuze { display: grid; gap: 10px; }
#afmelden { padding: 6px 10px; font-size: 13px; }
