/* Playtest Log: zelfde stijl als planbord en kennisbank (gerbenput.com): inktblauwe zijbalk, koele grijstinten,
   Archivo + IBM Plex Mono (zelf gehost), kleine hoeken, blokjesraster en panelen waar rechtsboven een trapje uit mist.
   Eigen accent: kobalt. Goud blijft voor ontwikkelaarsnotities. Licht en donker via data-mode op <html> (boot.js). */
@font-face { font-family: "Archivo"; src: url("/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/plex-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f3f4f7; --panel: #ffffff; --panel-2: #f7f8fa; --hover: #eaecf1; --field: #ffffff;
  --ink: #0b1020; --muted: #5f6880; --faint: #8a92a6; --line: rgba(11, 16, 32, .1); --line-2: rgba(11, 16, 32, .2);
  --accent: #3158f0; --accent-2: #2443c9; --accent-ink: #ffffff; --accent-text: #2443c9; --accent-soft: rgba(49, 88, 240, .09);
  --side: #0b0f1b; --side-ink: #eef1f8; --side-muted: #7d87a3; --side-hover: #141a2b; --side-on: #1b2236; --side-line: rgba(148, 163, 214, .13);
  --red: #c62839; --amber: #b35c00; --green: #2b8a3e; --blue: #3158f0; --purple: #7048e8; --gold: #8a6a00; --cyan: #0b7285; --yellow: #9a7000;
  --gold-soft: rgba(184, 134, 11, .08);
  --shadow-lg: 0 1px 2px rgba(11, 16, 32, .08), 0 24px 60px -20px rgba(11, 16, 32, .35);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='2' height='2' fill='%230b1020' fill-opacity='.09'/%3E%3C/svg%3E");
  --font: "Archivo", "Arial", system-ui, sans-serif;
  --mono: "Plex", ui-monospace, Consolas, monospace;
  --r: 3px;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --bg: #090c16; --panel: #121726; --panel-2: #0e1220; --hover: #1a2033; --field: #0c101c;
  --ink: #eef1f8; --muted: #8a94b0; --faint: #66708c; --line: rgba(148, 163, 214, .13); --line-2: rgba(148, 163, 214, .26);
  --accent: #4568f5; --accent-2: #5b7bff; --accent-ink: #ffffff; --accent-text: #8aa2ff; --accent-soft: rgba(69, 104, 245, .16);
  --side: #06080f; --side-hover: #10141f; --side-on: #171d2d; --side-line: rgba(148, 163, 214, .12);
  --red: #ff8a80; --amber: #f0b25a; --green: #69db7c; --blue: #8aa2ff; --purple: #c3aef0; --gold: #e0c069; --cyan: #8fd0f0; --yellow: #f0d88a;
  --gold-soft: rgba(224, 192, 105, .07);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, .35), 0 28px 70px -24px rgba(0, 0, 0, .85);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Crect width='2' height='2' fill='%2394a3d6' fill-opacity='.11'/%3E%3C/svg%3E");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; -webkit-text-size-adjust: 100%; }
body { font: 400 14.5px/1.55 var(--font); color: var(--ink); background: var(--pat) 13px 13px, var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
::placeholder { color: var(--faint); }

/* koppen breed en zwaar, labels in mono */
.title, .brand-name, .login-claim h1, .login-box h2 { font-family: var(--font); font-stretch: 118%; font-weight: 850; letter-spacing: -.02em; }
.title { font-size: 32px; line-height: 1.08; }
.brand-name { font-size: 16px; font-stretch: 115%; }
.eyebrow, .lbl, .tag, .pill, .facts dt, .eh-sub, .hint, .lb-count, .pager, .loot-qty, .chip, .side-head, .badge, .role, .person-mail, .login-foot, .count {
  font-family: var(--mono); letter-spacing: .02em;
}
.eyebrow, .lbl, .tag, .side-head, .role { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: 11px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex: none; }

/* iconen */
.i { display: inline-flex; width: 20px; height: 20px; flex: none; }
.i svg { width: 100%; height: 100%; }
.i.xs { width: 16px; height: 16px; }

/* ---------- indeling: zijbalk + inhoud */
.side { position: fixed; inset: 0 auto 0 0; width: 272px; background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line);
  display: flex; flex-direction: column; padding: 16px 12px 10px; z-index: 50; }
.content { margin-left: 272px; min-height: 100vh; display: flex; flex-direction: column; }
.content main { flex: 1; }
.brand-row { display: flex; align-items: center; gap: 10px; padding: 2px 6px 16px; color: var(--side-ink); }
.brand-row:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: 2px; flex: none; }
.logo .i { width: 22px; height: 22px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r); color: var(--side-ink); font-weight: 550; }
.nav-item:hover { background: var(--side-hover); text-decoration: none; }
.nav-item.on { background: var(--side-on); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.nav-item.on .i { color: var(--accent-2); }
.nav-item .i { color: var(--side-muted); }
.nav-item span:not(.i) { flex: 1; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 6px 6px 10px; color: var(--side-muted); }
.side-add { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; color: var(--side-muted); border-radius: var(--r); }
.side-add:hover { background: var(--side-hover); color: var(--side-ink); }
.side-projects { flex: 1; overflow: auto; margin: 0 -4px; padding: 0 4px 12px; scrollbar-width: thin; display: flex; flex-direction: column; gap: 1px; }
.side-project { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 8px 0 12px; border: 0; background: none; border-radius: var(--r); color: var(--side-ink); text-align: left; font-weight: 520; }
.side-project:hover { background: var(--side-hover); }
.side-project.on { background: var(--side-on); font-weight: 650; box-shadow: inset 2px 0 0 var(--accent); }
.side-project .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdot { width: 8px; height: 8px; flex: none; background: var(--side-muted); }
.pdot.celtic { background: #b58cf0; }
.badge { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 2px; font-size: 11px; display: inline-grid; place-items: center; background: var(--side-on); color: var(--side-muted); }
.badge.hot { background: var(--accent); color: #fff; }
.side-empty { color: var(--side-muted); font-size: 13px; padding: 4px 12px; }
.side-foot { border-top: 1px solid var(--side-line); padding-top: 8px; position: relative; }
.side-user { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; background: none; border-radius: var(--r); text-align: left; color: var(--side-ink); }
.side-user:hover { background: var(--side-hover); }
.side-user-name { flex: 1; display: flex; flex-direction: column; font-weight: 650; line-height: 1.25; min-width: 0; }
.side-user-name small { color: var(--side-muted); font-weight: 400; font-size: 12px; }
.side-user .more { color: var(--side-muted); letter-spacing: .1em; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); color: #fff; font-weight: 700; flex: none; font-size: 13px; user-select: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11.5px; }
.mobile-top { display: none; }
.side-backdrop { display: none; }

/* menu (gebruiker) */
.menu { position: absolute; left: 4px; right: 4px; bottom: calc(100% + 6px); z-index: 60; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; background: none; border-radius: var(--r); text-align: left; color: var(--ink); white-space: nowrap; }
.menu-item:hover { background: var(--hover); text-decoration: none; }
.menu-item span:not(.i) { flex: 1; }
.menu-item .i { color: var(--muted); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-row { display: flex; flex-direction: column; gap: 6px; padding: 6px 8px; color: var(--muted); font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.menu-row .seg { flex-wrap: nowrap; align-self: stretch; }
.menu-row .seg button { flex: 1; height: 28px; padding: 0 8px; font: 600 13px var(--font); text-transform: none; letter-spacing: 0; }

/* ---------- pagina */
.page-wrap { max-width: 1020px; margin: 0 auto; padding: 40px 40px 72px; width: 100%; }
.page-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.intro { margin: 10px 0 0; max-width: 62ch; }

/* knoppen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-weight: 700; font-stretch: 105%; white-space: nowrap; }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  clip-path: polygon(0 0, calc(100% - 12px) 0, calc(100% - 12px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 8px, calc(100% - 4px) 8px, calc(100% - 4px) 12px, 100% 12px, 100% 100%, 0 100%); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.big { height: 46px; font-size: 15px; width: 100%; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r); background: none; color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--red); border-color: var(--red); }
.icon-btn .i { width: 16px; height: 16px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-text); font-weight: 600; font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }

/* invoer */
select, input[type="text"], input[type="search"], input[type="email"], input[type="number"], textarea {
  height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--field); color: var(--ink); outline: none; min-width: 0; }
select { padding-right: 32px; appearance: none;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94b0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; }
textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; border: 1px solid var(--line-2); border-radius: var(--r); align-self: flex-start; background: var(--field); }
.seg button { height: 30px; padding: 0 13px; border: 0; border-radius: 2px; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--ink); color: var(--panel); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check span { display: flex; flex-direction: column; gap: 2px; }

/* filters */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; margin-left: auto; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--field); color: var(--faint); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input[type="search"] { border: 0; background: none; height: 100%; padding: 0; width: 210px; box-shadow: none; }

/* ---------- lijst met openklappende regels */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.entry { background: var(--panel); border: 1px solid var(--line); transition: border-color .15s; }
.entry:hover, .entry.open { border-color: var(--line-2); }
.entry-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; color: inherit; }
.entry-head .chev { color: var(--faint); transition: transform .15s; }
.entry.open .entry-head .chev { transform: rotate(180deg); }
.eh { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.eh-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.eh-title { font-weight: 600; overflow-wrap: anywhere; }
.eh-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.eh-pills { display: flex; gap: 6px; flex: none; }
.eh-items { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.tag { color: var(--purple); }
.cam { display: inline-flex; align-items: center; gap: 3px; color: var(--faint); }
.cat { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel-2); }
.cat .i { width: 18px; height: 18px; }
.cat-bug { color: var(--red); } .cat-visual { color: var(--cyan); } .cat-balance { color: var(--yellow); }
.cat-performance { color: var(--green); } .cat-idea { color: var(--amber); } .cat-other { color: var(--muted); } .cat-quest { color: var(--purple); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 2px; font-size: 11px; white-space: nowrap; border: 1px solid currentColor; }
.sev-low { color: var(--muted); } .sev-medium { color: var(--blue); } .sev-high { color: var(--amber); } .sev-blocker { color: var(--red); }
.st-open, .st-new { color: var(--ink); border-color: var(--line-2); } .st-progress { color: var(--gold); } .st-fixed, .st-processed { color: var(--green); }
.st-wontfix, .st-archived { color: var(--faint); }
.ik-reward { color: var(--green); } .ik-choice { color: var(--purple); } .ik-drop { color: var(--amber); }
.tag-celtic { color: var(--purple); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 3px; border-radius: var(--r); background: var(--panel-2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.chip.more { padding-left: 9px; color: var(--muted); }
.ic { width: 32px; height: 32px; flex: none; border-radius: 2px; object-fit: contain; background: #10141f; }
.ic.sm { width: 22px; height: 22px; }
.ic-empty { display: inline-grid; place-items: center; color: var(--faint); background: var(--panel-2); border: 1px solid var(--line); }
.ic-empty .i { width: 60%; height: 60%; }

/* opengeklapte regel */
.entry-body { padding: 0 16px 16px 64px; }
.eb { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.prose { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 72ch; }
.steps .prose { margin-top: 4px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0; }
.facts dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.shot { width: 168px; aspect-ratio: 16 / 10; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel-2); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.loot { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 560px; }
.loot li { display: flex; align-items: center; gap: 12px; }
.loot-name { flex: 1; min-width: 0; font-weight: 600; }
.loot-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.dev-note { padding: 10px 12px; border-left: 2px solid var(--gold); background: var(--gold-soft); }
.dev-note .lbl { color: var(--gold); }
.dev-note p { margin: 4px 0 0; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; }
.admin { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin textarea { width: 100%; }
.row-end { display: flex; justify-content: flex-end; }
.empty { color: var(--muted); padding: 36px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 13px; }

/* panelen en regels met het trapje rechtsboven */
.entry, .panel, .person {
  --cut: 12px; --c1: calc(var(--cut) / 3); --c2: calc(var(--cut) * 2 / 3);
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, calc(100% - var(--cut)) var(--c1), calc(100% - var(--c2)) var(--c1), calc(100% - var(--c2)) var(--c2), calc(100% - var(--c1)) var(--c2), calc(100% - var(--c1)) var(--cut), 100% var(--cut), 100% 100%, 0 100%);
}
.entry::after, .person::after {
  content: ""; position: absolute; top: -1px; right: -1px; z-index: 2; pointer-events: none;
  width: calc(var(--cut) + 1px); height: calc(var(--cut) + 1px); background: var(--line-2);
  clip-path: polygon(1px 0, 1px var(--c1), calc(var(--c1) + 1px) var(--c1), calc(var(--c1) + 1px) var(--c2), calc(var(--c2) + 1px) var(--c2), calc(var(--c2) + 1px) var(--cut), 100% var(--cut), 100% 100%, var(--c2) 100%, var(--c2) calc(var(--c2) + 1px), var(--c1) calc(var(--c2) + 1px), var(--c1) calc(var(--c1) + 1px), 0 calc(var(--c1) + 1px), 0 0);
}
/* het formulier niet afsnijden: daar klappen de naamsuggesties uit */
.panel { clip-path: none; }

/* ---------- formulier */
.form-slot:not(:empty) { margin-bottom: 28px; }
.panel { padding: 24px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); box-shadow: inset 2px 0 0 var(--accent); }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > input, .field > textarea, .field > select, .field .ac input { width: 100%; }
.field.narrow { max-width: 320px; }
.lbl { color: var(--muted); }
.req { color: var(--accent-text); }
.hint { color: var(--faint); font-size: 12px; min-height: 1em; }
.field.bad input, .field.bad textarea, .field.bad .item-rows input { border-color: var(--red); }
.field.bad > .lbl { color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 14px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.error { color: var(--red); margin: 0; font-size: 13.5px; }
.error:empty { display: none; }
.form-end { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.ac { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); box-shadow: var(--shadow-lg); }
.suggest li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 2px; cursor: pointer; }
.suggest li .i { color: var(--purple); }
.suggest li.on, .suggest li:hover { background: var(--accent-soft); }
.item-rows { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 80px 120px 38px; gap: 8px; align-items: center; }
.item-row .ac input { width: 100%; }
.row-ic { display: grid; place-items: center; }
.qty { width: 100%; }
.add-item { align-self: flex-start; }
.drop { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.drop > span:nth-child(2) { flex: 1; min-width: 180px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 112px; height: 72px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 2px; border: 0; background: rgba(6, 9, 18, .85); color: #fff; }
.thumb button .i { width: 13px; height: 13px; }

/* ---------- mensen */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); flex-wrap: wrap; }
.person-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.person-name { font-weight: 650; }
.person-mail { color: var(--muted); font-size: 12.5px; }
.role { height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); font-size: 10.5px; }
.role.admin { color: var(--accent-text); border-color: currentColor; }
.person-actions { display: flex; gap: 6px; }

/* melding onderin na opslaan */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r); background: #141a2b; color: #eef1f8; box-shadow: var(--shadow-lg); transition: opacity .4s; }
.toast .i { color: #69db7c; }
.toast.out { opacity: 0; }

/* lichtbak */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 48px; background: rgba(6, 9, 18, .92); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 96px); border-radius: 2px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 2px; border: 1px solid rgba(148, 163, 214, .26); background: rgba(14, 18, 32, .85); color: #eef1f8; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; } .lb-next { right: 16px; top: 50%; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #8a94b0; font-size: 13px; }

/* ---------- inloggen: links het landschap, rechts het formulier */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(9, 12, 22, .15) 0%, rgba(9, 12, 22, .35) 45%, rgba(9, 12, 22, .96) 100%), url(/art/glen-night.webp) center 35% / cover no-repeat, #090c16; }
.login-claim { position: relative; padding: 48px 56px; color: #eef1f8; width: 100%; }
.login-claim h1 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.02; }
.login-claim p { margin-top: 16px; color: rgba(238, 241, 248, .72); font-size: 16px; max-width: 460px; line-height: 1.55; }
.login-panel { position: relative; display: grid; place-items: center; padding: 32px 20px; }
.login-box { width: min(400px, 100%); }
.login-box .brand-row { color: var(--ink); padding: 0; }
.login-box h2 { font-size: 30px; margin: 30px 0 10px; }
.login-box > p { margin-bottom: 22px; color: var(--muted); line-height: 1.55; }
.login-form { display: grid; gap: 6px; }
.login-form input { width: 100%; height: 48px; font-size: 16px; }
.login-form .btn { margin-top: 12px; }
.login-form .link-btn { justify-self: center; margin-top: 14px; }
.login-form input.code { letter-spacing: .5em; font-size: 22px; text-align: center; font-weight: 700; font-family: var(--mono); }
.login-tools { position: absolute; top: 18px; right: 20px; display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border: 1px solid transparent; border-radius: var(--r); background: none; color: var(--muted); font: 500 12px var(--mono); }
.tool:hover { color: var(--ink); border-color: var(--line-2); }
.tool .i { width: 16px; height: 16px; }
.login-foot { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 11.5px; }

/* ---------- smal scherm */
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 40; }
  .content { margin-left: 0; }
  .mobile-top { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 10px; background: var(--side); color: var(--side-ink); position: sticky; top: 0; z-index: 30; }
  .mobile-top button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--side-ink); border-radius: var(--r); }
  .mobile-top button:hover { background: var(--side-hover); }
  .mobile-top .where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
  .page-wrap { padding: 24px 16px 60px; }
  .title { font-size: 27px; }
  .page-top { flex-direction: column; align-items: stretch; }
  .search { margin-left: 0; width: 100%; }
  .search input[type="search"] { width: 100%; }
  .entry-head { align-items: flex-start; padding: 12px; }
  .eh { flex-wrap: wrap; gap: 10px 12px; }
  .eh-text { flex-basis: calc(100% - 50px); }
  .eh-pills, .eh-items { margin-left: 48px; max-width: none; justify-content: flex-start; }
  .entry-body { padding: 0 12px 14px; }
  .row2 { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 > :last-child { grid-column: 1 / -1; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .item-row { grid-template-columns: 24px minmax(0, 1fr) 64px 38px; }
  .item-row select { grid-column: 2 / 4; }
  .panel { padding: 18px 14px; }
  .shot { width: calc(50% - 5px); }
  .lightbox { padding: 12px; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 250px; }
  .login-claim { padding: 26px 22px; }
  .login-panel { padding: 56px 20px 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
