:root {
  --bg: #0b0b0c; --paneel: #141415; --paneel-2: #0f0f10;
  --tekst: #ededed; --zacht: #cfcfcf; --gedempt: #8f8f8f; --lijn: rgba(255,255,255,.10);
  --ok: #7bd88f; --let-op: #f0c674; --fout: #ff8a80;
  --kop: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --tekstfont: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tekst); font-family: var(--tekstfont); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.scherm { min-height: 100dvh; }

/* merk */
.merk { display: flex; flex-direction: column; gap: 8px; }
.merk-naam { font-family: var(--kop); font-weight: 800; font-size: 20px; letter-spacing: .42em; }
.merk-sub { font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .32em; color: var(--gedempt); }

/* login */
#login { display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-box { width: min(360px, 100%); display: flex; flex-direction: column; gap: 32px; }
#login-form { display: flex; flex-direction: column; gap: 10px; }
#login-form label { font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .24em; color: var(--gedempt); text-transform: uppercase; margin-top: 6px; }
#login-form input, .typ input { background: #111112; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: var(--tekst); padding: 14px 16px; font-size: 16px; font-family: var(--tekstfont); outline: none; }
#login-form input:focus { border-color: rgba(255,255,255,.4); }
.knop-wit { margin-top: 14px; background: var(--tekst); color: var(--bg); border: 0; border-radius: 999px; padding: 14px; font-family: var(--kop); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 12px; cursor: pointer; min-height: 48px; }
.fout { color: var(--fout); font-size: 14px; min-height: 1em; margin: 6px 0 0; }

/* kop */
#hoofd { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom)); }
.kop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.tab { background: transparent; border: 0; border-radius: 999px; padding: 11px 20px; font-family: var(--kop); font-weight: 700; font-size: 11px; letter-spacing: .26em; color: #a8a8a8; cursor: pointer; min-height: 44px; }
.tab.actief { background: var(--tekst); color: var(--bg); }
.status { display: flex; align-items: center; gap: 8px; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .26em; color: #a8a8a8; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.link-knop { background: none; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 4px 10px; font-size: 10px; letter-spacing: .2em; color: var(--gedempt); cursor: pointer; margin-left: 6px; }

/* jarvis */
#tab-jarvis { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 12px; width: 100%; max-width: 760px; margin: 0 auto; }
.bol-wrap { position: relative; width: min(520px, 86vw, 52dvh); aspect-ratio: 1; flex: none; transition: width .5s ease; }
#tab-jarvis.met-gesprek .bol-wrap { width: min(240px, 50vw, 26dvh); }
#tab-jarvis.met-gesprek .hint { display: none; }
.ringen { position: absolute; inset: 0; width: 100%; height: 100%; }
.ringen text { fill: #6f6f6f; font-family: var(--kop); font-weight: 700; font-size: 11px; letter-spacing: .2em; }
.bol { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: transform .4s ease; }
.bol canvas { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 0 60px rgba(255,255,255,.08); }
.bol.praat { transform: translate(-50%, -50%) scale(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .draai { animation: draai 28s linear infinite; transform-origin: 280px 280px; }
  .draai-terug { animation: draai 40s linear infinite reverse; transform-origin: 280px 280px; }
}
@keyframes draai { to { transform: rotate(360deg); } }
.staat { display: flex; align-items: center; gap: 14px; font-family: var(--kop); font-weight: 800; font-size: 13px; letter-spacing: .4em; }
.staat .lijn { width: 44px; height: 1px; background: rgba(255,255,255,.25); }
.hint { margin: 0; color: var(--zacht); font-weight: 300; text-align: center; }
.gesprek { width: 100%; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; }
.gesprek:empty { display: none; }
.bericht { max-width: 86%; font-size: 15px; line-height: 1.6; }
.bericht.jij { align-self: flex-end; background: #1a1a1b; border: 1px solid var(--lijn); border-radius: 18px 18px 6px 18px; padding: 10px 14px; }
.bericht.jarvis { align-self: flex-start; color: #e2e2e2; font-weight: 300; }
.typ { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 6px 6px 20px; background: #111112; margin-top: auto; }
.typ input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; }
.verstuur { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: var(--tekst); color: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* team */
#tab-team { flex: 1; min-height: 0; overflow-y: auto; width: 100%; max-width: 1320px; margin: 0 auto; padding-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.team-kop { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
h1 { font-family: var(--kop); font-weight: 800; font-size: 26px; letter-spacing: .14em; margin: 0; }
.sub { margin: 8px 0 0; color: var(--gedempt); font-weight: 300; }
h2 { font-family: var(--kop); font-weight: 700; font-size: 12px; letter-spacing: .3em; color: #a8a8a8; margin: 0 0 14px; }
.teller { color: var(--let-op); margin-left: 6px; }
.pil-knop { background: transparent; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 10px 16px; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .24em; color: var(--zacht); cursor: pointer; min-height: 44px; }
.leeg { color: var(--gedempt); font-size: 14px; margin: 0; }

.inbox { display: flex; flex-direction: column; gap: 10px; }
.punt { background: var(--paneel); border: 1px solid var(--lijn); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; }
.punt.urgent { border-color: rgba(240,198,116,.45); }
.punt-kop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: var(--gedempt); }
.punt-kop .let-op { color: var(--let-op); }
.punt-titel { font-size: 15px; font-weight: 500; margin-top: 6px; }
.punt-uitleg { font-size: 13px; color: var(--zacht); font-weight: 300; line-height: 1.6; margin-top: 4px; }
.punt-knoppen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.knop { border: 1px solid rgba(255,255,255,.16); background: transparent; border-radius: 999px; padding: 8px 14px; min-height: 40px; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .18em; cursor: pointer; color: var(--zacht); }
.knop.ja { background: var(--tekst); color: var(--bg); border-color: var(--tekst); }
.knop:disabled { opacity: .4; cursor: default; }
@media (max-width: 640px) { .punt { grid-template-columns: 1fr; } .punt-knoppen { justify-content: flex-start; } }

.baas-kaart { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; background: var(--paneel); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 22px 24px; max-width: 760px; margin: 0 auto; }
.mini-bol { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.baas-tekst { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 6px; }
.pil { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .22em; color: var(--zacht); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 11px; background: var(--paneel-2); }
.pil .dot.wacht { background: var(--let-op); } .pil .dot.plan { background: var(--tekst); }
.naam-groot { font-family: var(--kop); font-weight: 800; font-size: 24px; letter-spacing: .18em; }
.rol { font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .22em; color: var(--gedempt); }
.uitleg { font-size: 14px; color: var(--zacht); font-weight: 300; line-height: 1.6; }
.baas-flows { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.chip { font-size: 13px; background: var(--paneel-2); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 7px 12px; }
.chip b { font-weight: 500; } .chip .rood { color: var(--fout); }
.lijnen { height: 28px; width: 1px; background: rgba(255,255,255,.25); margin: 0 auto; }
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.agent { background: var(--paneel); border: 1px solid var(--lijn); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.agent.opbouw { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.2); }
.agent-boven { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.icoon { width: 56px; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(145deg, #232324, #121213); display: flex; align-items: center; justify-content: center; }
.agent.opbouw .icoon { border-style: dashed; }
.agent .naam { font-family: var(--kop); font-weight: 800; font-size: 14px; letter-spacing: .12em; }
.agent .model { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--zacht); }
.agent .model span:first-child { font-family: var(--kop); font-weight: 700; font-size: 9px; letter-spacing: .22em; color: var(--gedempt); }
.aandacht { display: flex; flex-direction: column; gap: 8px; }
.aandacht .regel { display: flex; justify-content: space-between; gap: 12px; background: var(--paneel); border: 1px solid rgba(240,198,116,.3); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.aandacht .regel span:last-child { color: var(--gedempt); font-size: 13px; }

.schakel { align-self: flex-end; display: inline-flex; align-items: center; gap: 10px; font-family: var(--kop); font-weight: 700; font-size: 10px; letter-spacing: .22em; color: var(--gedempt); cursor: pointer; user-select: none; min-height: 32px; }
.schakel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.schuif { width: 34px; height: 20px; border-radius: 999px; background: #2a2a2a; position: relative; transition: background .2s; }
.schuif::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8f8f8f; transition: transform .2s, background .2s; }
.schakel input:checked + .schuif { background: #ededed; }
.schakel input:checked + .schuif::after { transform: translateX(14px); background: #0b0b0c; }
.schakel input:focus-visible + .schuif { outline: 2px solid #ededed; outline-offset: 2px; }
.gesprek:focus, .gesprek:focus-visible { outline: none; }
