:root { --bg:#0b111b; --panel:#111a28; --panel2:#172334; --line:#243247; --text:#dbe4f0; --muted:#8b98ab; --accent:#5aa9ff; --ok:#3ecf8e; --warn:#f5b041; --bad:#ff6b6b; }
* { box-sizing:border-box; }
html,body,#root { height:100%; margin:0; }
body { background:var(--bg); color:var(--text); font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
a { color:var(--accent); cursor:pointer; }
code { background:#0d1420; padding:1px 5px; border-radius:4px; font-size:12px; word-break:break-all; }
h1,h2,h3,h4 { margin:.4em 0; } h4 { margin-top:1.1em; color:#b9c6d8; }
.muted { color:var(--muted); } .small { font-size:12px; } .pad { padding:12px; } .spacer { flex:1; }
.row { display:flex; gap:8px; align-items:center; } .row.wrap { flex-wrap:wrap; margin:8px 0; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; } .grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
label { display:block; margin:8px 0; color:#b9c6d8; font-size:12px; } .lbl { color:#b9c6d8; font-size:12px; }
label.check { display:flex; gap:6px; align-items:center; font-size:13px; color:var(--text); }
input,select,textarea { width:100%; margin-top:4px; background:#0d1420; color:var(--text); border:1px solid var(--line); border-radius:6px; padding:7px 9px; font:inherit; }
input[type=checkbox],input[type=radio] { width:auto; margin:0; }
input:focus,select:focus,textarea:focus,button:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.btn { background:var(--panel2); color:var(--text); border:1px solid var(--line); border-radius:6px; padding:7px 12px; cursor:pointer; font:inherit; white-space:nowrap; }
.btn:hover { border-color:var(--accent); } .btn:disabled { opacity:.5; cursor:default; }
.btn.primary { background:#1d5fb0; border-color:#2f7bd6; color:#fff; } .btn.danger { border-color:#8a3a3a; color:#ff9a9a; } .btn.big { padding:10px 16px; font-weight:600; font-size:15px; }
.icon { background:none; border:0; color:var(--text); font-size:18px; cursor:pointer; padding:4px 8px; }
.pill { border:1px solid; border-radius:999px; padding:1px 9px; font-size:12px; white-space:nowrap; }
.badge { background:var(--bad); color:#fff; border-radius:999px; padding:0 6px; font-size:11px; margin-left:5px; }
.error { background:#3a1620; border:1px solid #7a2c3b; color:#ffb3b3; padding:8px 10px; border-radius:6px; margin:8px 0; white-space:pre-wrap; }
.warn { background:#3a2c12; border:1px solid #7a5b1c; color:#ffd58a; padding:8px 10px; border-radius:6px; margin:8px 0; }
.note { background:#12301f; border:1px solid #1f6b43; color:#a8ecc8; padding:8px 10px; border-radius:6px; margin:8px 0; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:14px; margin-bottom:14px; }
.content { background:#0d1420; border:1px solid var(--line); border-radius:6px; padding:10px; white-space:pre-wrap; word-break:break-word; max-height:340px; overflow:auto; font-size:12px; }
.content.diff { max-height:480px; }

.app { display:grid; grid-template-columns:330px 1fr; grid-template-rows:auto auto 1fr; height:100%; }
.app.log-closed { grid-template-columns:0 1fr; }
header { grid-column:1/3; display:flex; gap:10px; align-items:center; padding:8px 12px; background:var(--panel); border-bottom:1px solid var(--line); }
header nav { display:flex; gap:4px; } header nav button { background:none; border:0; color:var(--muted); padding:8px 12px; border-radius:6px; cursor:pointer; font:inherit; }
header nav button.active { background:var(--panel2); color:var(--text); }
.brand { font-size:15px; margin-right:8px; }
.stale { grid-column:1/3; background:#3a2c12; color:#ffd58a; padding:6px 12px; text-align:center; }
main { grid-column:2; grid-row:3; overflow:auto; position:relative; min-width:0; }
.page { padding:16px; max-width:1200px; } .page.two { display:grid; grid-template-columns:minmax(300px,420px) 1fr; gap:16px; max-width:none; align-items:start; }
.list .item { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin-bottom:8px; cursor:pointer; }
.list .item:hover,.item.sel { border-color:var(--accent); } .item.static { cursor:default; background:var(--panel2); border:1px solid var(--line); border-radius:8px; padding:10px 12px; margin-bottom:8px; }
.tbl { width:100%; border-collapse:collapse; font-size:13px; } .tbl th,.tbl td { text-align:left; padding:6px 8px; border-bottom:1px solid var(--line); vertical-align:top; } .tbl th { color:var(--muted); font-weight:500; }
.kv td { padding:4px 8px 4px 0; vertical-align:top; } .kv td:first-child { color:var(--muted); white-space:nowrap; }
.step { padding:3px 0; font-size:13px; } .step.ok b { color:var(--ok); } .step.fail b { color:var(--bad); } .step.warn b { color:var(--warn); } .step.skip b { color:var(--muted); }
.verdict { margin-top:6px; padding:6px 10px; border-radius:6px; } .verdict.ok { background:#12301f; color:#a8ecc8; } .verdict.fail { background:#3a1620; color:#ffb3b3; }
.effective { background:#0d1420; border:1px dashed var(--line); border-radius:6px; padding:8px 10px; font-size:12px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0; } .chip { border:1px solid var(--line); background:var(--panel2); color:var(--text); border-radius:999px; padding:4px 11px; cursor:pointer; font-size:12px; display:flex; gap:5px; align-items:center; margin:0; }
.chip.on { border-color:var(--accent); background:#173659; } .chip input { display:none; }
.health { border-radius:6px; padding:3px 8px; font-size:12px; border:1px solid var(--line); } .health.ok { color:var(--ok); } .health.fail { color:var(--bad); } .health.warn { color:var(--warn); }
details { margin:8px 0; } summary { cursor:pointer; color:var(--accent); }

/* logpaneel */
.log { grid-column:1; grid-row:3; background:var(--panel); border-right:1px solid var(--line); display:flex; flex-direction:column; min-height:0; overflow:hidden; }
.log-head { display:flex; align-items:center; gap:6px; padding:8px 10px; border-bottom:1px solid var(--line); } .log-head strong { flex:1; }
.log-filters { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:8px 10px; border-bottom:1px solid var(--line); } .log-filters * { margin:0; font-size:12px; padding:5px 6px; }
.log-rows { overflow:auto; flex:1; }
.log-row { padding:7px 10px; border-bottom:1px solid #1a2535; cursor:pointer; font-size:12px; } .log-row:hover { background:var(--panel2); }
.log-row.msg { border-left:3px solid var(--accent); } .log-row.bad { border-left:3px solid var(--bad); } .log-row.sel { background:#173659; }
.log-meta { display:flex; gap:6px; color:var(--muted); align-items:center; } .tag { background:#0d1420; border-radius:4px; padding:0 5px; } .marks { color:var(--ok); }
.log-who { font-weight:600; } .log-text { color:#c5d0df; overflow:hidden; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; word-break:break-word; } .log-src { color:#5f6c80; font-size:10px; }
.only-mobile { display:none; }

/* kantoor */
.office { height:100%; position:relative; background:radial-gradient(ellipse at 50% 30%,#13203a 0%,#0b111b 70%); }
.office svg { width:100%; height:100%; touch-action:none; cursor:grab; user-select:none; }
.office-tools { position:absolute; top:12px; left:12px; display:flex; gap:8px; align-items:center; z-index:2; flex-wrap:wrap; }
.empty-hint { position:absolute; bottom:18px; left:50%; transform:translateX(-50%); background:var(--panel); border:1px solid var(--line); padding:10px 14px; border-radius:8px; max-width:90%; }
.desk { cursor:pointer; } .desk:hover .desk-name { fill:#fff; }
.desk-name { fill:#dbe4f0; font-size:13px; font-weight:600; } .desk-spec { fill:#8b98ab; font-size:11px; } .desk-status { font-size:11px; }
.avatar-text { fill:#fff; font-size:12px; font-weight:700; pointer-events:none; } .mini-text { fill:#fff; font-size:8px; font-weight:700; }
.bubble { cursor:pointer; } .bubble-head { font-size:11px; font-weight:700; fill:#15233a; } .bubble-text { font-size:11px; fill:#2a3a52; } .bubble-marks { font-size:9px; fill:#2f8f62; }
.pulse { animation:pulse 1.2s ease-out 2; } @keyframes pulse { from { r:18; opacity:1; } to { r:34; opacity:0; } }
.screen-on { animation:blink 2.4s ease-in-out infinite; } @keyframes blink { 50% { opacity:.55; } }
.bubble > g { animation:pop .25s ease-out; } @keyframes pop { from { opacity:0; } to { opacity:1; } }
.reduced .pulse,.reduced .screen-on,.reduced .bubble > g { animation:none; }
@media (prefers-reduced-motion: reduce) { .pulse,.screen-on,.bubble > g { animation:none; } }

/* overlay met desktop */
.overlay { position:fixed; inset:0; background:var(--bg); z-index:20; display:flex; flex-direction:column; }
.overlay-head { display:flex; gap:10px; align-items:center; padding:8px 12px; background:var(--panel); border-bottom:1px solid var(--line); flex-wrap:wrap; } .overlay-head select { width:auto; margin:0; }
.overlay-body { flex:1; display:flex; min-height:0; }
.desktop { flex:1; display:flex; flex-direction:column; background:#000; min-width:0; overflow:hidden; } .desktop iframe { flex:1; border:0; width:100%; background:#000; }
.desktop-note { background:var(--panel); color:var(--muted); font-size:11px; padding:5px 10px; border-top:1px solid var(--line); }
.desktop-off { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px; color:var(--muted); text-align:center; }
.steps { display:flex; gap:10px; margin-bottom:14px; } .steps span { border:1px solid var(--line); border-radius:999px; padding:4px 12px; } .steps .done { border-color:var(--ok); color:var(--ok); } .steps .now { border-color:var(--warn); color:var(--warn); }
.detail { width:440px; max-width:100%; background:var(--panel); border-left:1px solid var(--line); overflow:auto; }
.tabs { display:flex; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--panel); } .tabs button { flex:1; background:none; border:0; color:var(--muted); padding:10px 4px; cursor:pointer; font:inherit; text-transform:capitalize; }
.tabs button.active { color:var(--text); border-bottom:2px solid var(--accent); }
.modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:40; display:flex; align-items:flex-start; justify-content:center; padding:5vh 12px; overflow:auto; }
.modal { background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:16px; width:560px; max-width:100%; } .modal.wide { width:760px; }
.login { height:100%; display:flex; align-items:center; justify-content:center; padding:16px; } .login .card { width:380px; max-width:100%; }

@media (max-width: 900px) {
  .app,.app.log-closed { grid-template-columns:1fr; grid-template-rows:auto auto 1fr auto; }
  header { grid-column:1; flex-wrap:wrap; } header nav { order:5; width:100%; overflow-x:auto; } .stale { grid-column:1; }
  main { grid-column:1; }
  .log { position:fixed; inset:0 15% 0 0; z-index:30; transform:translateX(-100%); transition:transform .2s; grid-row:auto; } .log.open { transform:none; box-shadow:0 0 0 100vmax rgba(0,0,0,.5); }
  .app.log-closed .log { transform:translateX(-100%); } .only-mobile { display:inline; }
  .page.two { grid-template-columns:1fr; } .grid2,.grid3 { grid-template-columns:1fr; }
  .overlay-body { flex-direction:column; } .detail { width:100%; border-left:0; border-top:1px solid var(--line); flex:1; } .desktop { min-height:45vh; }
}

/* ---------- vernieuwd kantoor ---------- */
:root { --bg:#0e1522; --panel:#141d2c; --panel2:#1b2639; --line:#2a3850; --accent:#5aa9ff; }
header { background:linear-gradient(90deg,#141d2c,#18253a); }
.brand { font-size:16px; letter-spacing:.3px; } .brand::before { content:"🏢 "; }
.office { background:radial-gradient(ellipse at 50% 35%,#24344f 0%,#111a29 62%,#0b111b 100%); }
.office svg { cursor:grab; } .office svg:active { cursor:grabbing; }
.office-tools { background:rgba(15,23,38,.72); padding:6px 8px; border-radius:10px; border:1px solid var(--line); backdrop-filter:blur(4px); }
.team-strip { position:absolute; top:12px; right:12px; z-index:2; display:flex; flex-direction:column; gap:6px; width:230px; max-height:calc(100% - 24px); overflow:auto; }
.team-chip { display:flex; align-items:center; gap:9px; text-align:left; background:rgba(15,23,38,.82); color:var(--text); border:1px solid var(--line); border-radius:12px; padding:7px 10px; cursor:pointer; font:inherit; backdrop-filter:blur(4px); transition:border-color .15s, transform .15s; }
.team-chip:hover,.team-chip:focus-visible { border-color:var(--accent); transform:translateX(-3px); }
.team-chip .dot { width:10px; height:10px; border-radius:50%; flex:none; box-shadow:0 0 0 3px rgba(255,255,255,.06); }
.team-chip .who { display:flex; flex-direction:column; flex:1; min-width:0; } .team-chip .who small { color:var(--muted); font-size:11px; }
.team-chip .st { font-size:11px; color:#b9c6d8; white-space:nowrap; }
.seat { cursor:pointer; outline:none; }
.seat .person { transition:transform .18s ease; transform-box:fill-box; transform-origin:50% 100%; }
.seat:hover .person,.seat:focus-visible .person,.seat.hot .person { transform:scale(1.08); filter:drop-shadow(0 0 7px rgba(90,169,255,.85)); }
.seat:hover .plate,.seat:focus-visible .plate,.seat.hot .plate { stroke:var(--accent); stroke-width:2; }
.plate { fill:#fdfaf3; stroke:#b8a37f; stroke-width:1; }
.plate-name { font-size:12px; font-weight:700; fill:#1d2330; } .plate-role { font-size:9.5px; fill:#5b6576; }
.status-text { font-size:10.5px; font-weight:600; } .alert-text { fill:#fff; font-size:12px; font-weight:800; }
.board-title { font-size:12px; font-weight:800; fill:#1d2330; } .board-line { font-size:10px; fill:#2f6fd1; font-weight:600; }
.wall-sign { font-size:17px; font-weight:800; fill:#6d5a3f; letter-spacing:3px; }
.door-sign { font-size:9px; font-weight:800; fill:#2e2410; letter-spacing:.8px; }
.table-label { font-size:11px; fill:#f4ead9; font-weight:600; }
.bubble-head { font-size:11px; font-weight:700; fill:#15233a; } .bubble-text { font-size:11px; fill:#2a3a52; } .bubble-marks { font-size:9px; fill:#2f8f62; }
.typing .arm-l { animation:typeL .5s ease-in-out infinite; } .typing .arm-r { animation:typeR .5s ease-in-out infinite; }
@keyframes typeL { 50% { transform:translateY(-2.2px); } } @keyframes typeR { 0%,100% { transform:translateY(-2.2px); } 50% { transform:none; } }
.screen-glow { animation:glow 2.2s ease-in-out infinite; } @keyframes glow { 50% { opacity:.12; } }
.blinking { animation:blinkdot 1.2s ease-in-out infinite; } @keyframes blinkdot { 50% { opacity:.35; } }
.reduced .typing .arm-l,.reduced .typing .arm-r,.reduced .screen-glow,.reduced .blinking { animation:none; }
@media (prefers-reduced-motion: reduce) { .typing .arm-l,.typing .arm-r,.screen-glow,.blinking { animation:none; } }
.role-tag { background:#21314b; color:#cfe1ff; border-radius:6px; padding:1px 8px; font-size:12px; }
.pill.good { color:#3ecf8e; border-color:#3ecf8e; } .pill.badp { color:#ff8a8a; border-color:#ff8a8a; }
.peer,.archive { margin-top:8px; padding:8px 10px; border-radius:8px; background:var(--panel2); border:1px solid var(--line); }
@media (max-width: 900px) {
  .team-strip { top:auto; bottom:10px; right:10px; left:10px; width:auto; flex-direction:row; overflow-x:auto; max-height:none; }
  .team-chip { flex:none; } .team-chip .st { display:none; }
}

/* beveiliging en aanmelden */
.linkish { background: none; border: 0; color: var(--muted, #9aa3b2); text-decoration: underline; cursor: pointer; padding: 4px 0; font: inherit; }
code.secret { font-size: 1.05em; letter-spacing: 0.06em; user-select: all; word-break: break-all; }
.steps-list li { margin: 4px 0; }
.notice { margin: 12px 16px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-color: #2f6f4f; }
a.btn { text-decoration: none; display: inline-block; }

/* analyse, antwoord en duo bij een taak: platte tekst met behoud van regeleinden */
.plain { white-space:pre-wrap; word-break:break-word; }
.lbl.sub { margin-top:8px; }
ul.tight { margin:4px 0; padding-left:20px; } ul.tight li { margin:2px 0; }
.content.answer { font-size:13px; max-height:480px; margin-top:6px; }
.content.excerpt { max-height:120px; margin:6px 0; }
