:root {
  /* v2 — zelfde terminal/SOC-identiteit, verfijnde waarden: minder neon, iets meer diepte en rust. */
  --bg: #07090d;
  --win: #0e1420;
  --bar: #141b27;
  --line: #233041;
  --text: #dbe5ef;
  --dim: #7489a0;
  --green: #3ecf8e;
  --cyan: #5bb4e6;
  --amber: #e0b25a;
  --red: #ef5a52;
  --magenta: #d97bb8;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;

  /* nieuw: gedeelde motion- en vormtaal voor de verfijningslaag onderin dit bestand */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --dur-fast: 140ms;
  --dur-base: 210ms;
  --dur-slow: 340ms;
  --radius-lg: 15px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 clamp(12px, 4vw, 48px) clamp(12px, 4vw, 48px);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(62, 207, 142, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgba(91, 180, 230, 0.08), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 28px 100%,
    var(--bg);
}

.dim { color: var(--dim); }

/* venster */
.window {
  width: min(880px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(62, 207, 142, 0.05),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 120px -40px rgba(62, 207, 142, 0.35);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 14px;
  background: var(--bar);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.dots i:nth-child(2) { background: var(--amber); }
.dots i:nth-child(3) { background: var(--green); }
.title { color: var(--dim); }
.bar-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.secure { color: var(--green); }
/* taalwissel: de vlag toont de taal waar je naartoe schakelt */
.lang { display: inline-flex; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: none; cursor: pointer; line-height: 0; overflow: hidden; opacity: 0.85; }
.lang:hover, .lang:focus-visible { opacity: 1; border-color: var(--cyan); outline: none; }
.flag { width: 21px; height: 14px; display: block; }
html:not([lang="en"]) .flag-nl, html[lang="en"] .flag-en { display: none; }
.secure::before { content: "● "; font-size: 9px; vertical-align: 1px; }

.window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: min(690px, calc(100vh - 110px));
  min-width: 320px;
  min-height: 300px;
  max-width: 100%;
  resize: both;
}
.bar, .siem-bar { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.dragging .bar, .dragging .siem-bar { cursor: grabbing; }
.screen {
  flex: 1;
  min-height: 0;
  padding: clamp(16px, 3.5vw, 28px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.window::after { /* subtiele scanlines */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.13) 3px 4px);
}

.motd { margin: 0 0 18px; font-size: 13px; }
.step { margin-bottom: 22px; }
.line { margin: 0; overflow-wrap: anywhere; }
.ps1 { color: var(--green); font-weight: 600; }
.path { color: var(--cyan); }
.cmd { color: var(--text); }
.out { margin-top: 10px; }

/* whoami-blok */
.fetch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
}
.photo { margin: 0; text-align: center; }
.photo img {
  display: block;
  width: clamp(140px, 24vw, 200px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  outline: 1px solid rgba(62, 207, 142, 0.35);
  outline-offset: 5px;
  box-shadow: 0 0 40px -8px rgba(62, 207, 142, 0.45);
}
.photo figcaption { margin-top: 14px; font-size: 11.5px; }

.name {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 28px rgba(62, 207, 142, 0.35);
}
.cursor-block {
  display: inline-block;
  width: 0.5em;
  height: 0.82em;
  margin-left: 0.12em;
  background: var(--green);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.role {
  margin: 6px 0 10px;
  font-size: clamp(15px, 2.6vw, 19px);
  color: var(--green);
}
.role::before { content: "> "; color: var(--dim); }

dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
dt { color: var(--cyan); }
dd { margin: 0; }
.led {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.swatches { display: flex; gap: 0; margin: 10px 0 0; }
.swatches i { width: 26px; height: 12px; background: var(--red); }
.swatches i:nth-child(2) { background: var(--amber); }
.swatches i:nth-child(3) { background: var(--green); }
.swatches i:nth-child(4) { background: var(--cyan); }
.swatches i:nth-child(5) { background: var(--magenta); }
.swatches i:nth-child(6) { background: var(--text); }

.tagline { margin: -2px 0 10px; color: #b9c8d8; max-width: 44ch; }

/* link */
.link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
/* de naam in de LinkedIn-regel houdt het grote formaat van vroeger, los van de compactere whoami-kaart */
.link .name { color: var(--cyan); font-weight: 600; font-size: clamp(38px, 8vw, 64px); }
.link .open {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 5px;
  color: var(--bg);
  background: var(--green);
  font-weight: 600;
  font-size: 13px;
}
.link:hover, .link:focus-visible {
  border-color: var(--green);
  background: rgba(62, 207, 142, 0.06);
  box-shadow: 0 0 30px -10px rgba(62, 207, 142, 0.6);
  outline: none;
}

/* interactieve prompt */
#history .entry { margin-bottom: 14px; }
#history pre { margin: 6px 0 0; font: inherit; white-space: pre-wrap; color: #b9c8d8; }
#history .err { color: var(--red); }
#history a { color: var(--cyan); }
.prompt { display: flex; gap: 0.6em; align-items: baseline; }
.prompt label { white-space: nowrap; }
.prompt input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  caret-color: var(--green);
}
.prompt input::placeholder { color: var(--dim); opacity: 0.7; }

.foot { font-size: 12px; text-align: center; }

/* interactief: met JS verschijnen de secties pas na een commando */
.js .screen > .step { display: none; }
html:not(.js) .js-only, html:not(.js) .prompt { display: none; }
.entry .out { animation: rise 0.3s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

.welcome { margin: 0; font-size: clamp(30px, 6vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: #fff; text-shadow: 0 0 28px rgba(62, 207, 142, 0.25); }
.w-role { margin: 6px 0 2px; font-size: clamp(16px, 2.6vw, 20px); color: var(--green); }
.w-role::before { content: "> "; color: var(--dim); }
.w-role { color: var(--green); }
.roles { margin: 0 0 14px; font-size: 13.5px; color: var(--cyan); }
.hint { margin: 0 0 16px; max-width: 70ch; color: #b9c8d8; }
/* acceptatie-omgeving: de build zet data-env="acc" op <html> */
html[data-env="acc"] body::before { content: "ACCEPTATIE"; position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 50; padding: 2px 14px; border-radius: 0 0 8px 8px; background: var(--amber); color: var(--bg); font: 700 11px var(--mono); letter-spacing: 0.12em; }
.hint b { color: var(--amber); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.chips button {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bar);
  color: var(--cyan);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.chips button::before { content: "$ "; color: var(--dim); }
.chips button.pickbtn { flex: 1 1 100%; justify-content: flex-start; padding: 10px 14px; }
.chips button.pickbtn::before { content: none; }
.chips button:hover, .chips button:focus-visible { border-color: var(--green); color: var(--green); box-shadow: 0 0 20px -8px var(--green); outline: none; }
.chips button.hot { color: var(--amber); }
.chips button.hot:hover, .chips button.hot:focus-visible { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 20px -8px var(--amber); }
.chips button.next { border-color: var(--green); color: var(--bg); background: var(--green); font-weight: 600; }
.chips button.next::before { color: rgba(0, 0, 0, 0.5); }
.chips .label { align-self: center; font-size: 12.5px; color: var(--dim); }

/* minigame */
.ps1.red { color: var(--red); }
.ps1.soc { color: var(--amber); }
#history pre.msf { color: var(--red); }
#history pre.good { color: var(--green); }
#history pre.info { color: var(--amber); }
.stage {
  margin: 4px 0 14px;
  padding: 8px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(224, 178, 90, 0.07);
  color: var(--text);
}
.stage b { color: var(--amber); }
.stage.ok { border-color: var(--green); background: rgba(62, 207, 142, 0.07); }
.stage.ok b { color: var(--green); }
.stage.insight { border-color: var(--cyan); background: rgba(91, 180, 230, 0.07); }
.stage.insight b { color: var(--cyan); }
.stage ul { margin: 8px 0 0; padding-left: 18px; }
.stage li { margin: 4px 0; }
/* scenariokeuze (chips krijgen een beschrijving mee) */
.pick { display: grid; grid-template-columns: 1.6em 1fr; gap: 0 2px; text-align: left; width: 100%; }
.pick .num { grid-row: span 2; color: var(--dim); }
.pick b { color: var(--cyan); }
.pick span { color: var(--dim); font-size: 12.5px; }

/* e-mailpopup (phishing) */
.mailbox {
  --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  position: relative;
  width: min(760px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}
.mailbox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.mailbox::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(3px); }
.mail-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.mail-guide { margin: 0; padding: 10px 16px; background: rgba(224, 178, 90, 0.1); border-bottom: 1px solid var(--line); color: var(--amber); font-size: 13px; }
.mail-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px 1fr; }
.mail-inbox { margin: 0; padding: 6px; list-style: none; overflow-y: auto; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); scrollbar-width: thin; }
.mail-inbox li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 10px; border-radius: 7px; cursor: default; }
.mail-inbox li b { font-size: 13px; }
.mail-inbox li span { grid-column: 1 / -1; font-size: 12px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-inbox li time { font-size: 11px; color: var(--dim); }
.mail-inbox li.sel { background: rgba(91, 180, 230, 0.12); outline: 1px solid rgba(91, 180, 230, 0.3); }
.mail-read { padding: 18px; overflow-y: auto; scrollbar-width: thin; }
.mail-read h3 { margin: 0 0 8px; font-size: 18px; }
.mail-meta { margin: 0; font-size: 12.5px; }
.mail-meta b { color: var(--text); }
.mail-warn { margin: 14px 0; padding: 8px 12px; border: 1px solid var(--amber); border-radius: 6px; background: rgba(224, 178, 90, 0.08); color: var(--amber); font-size: 12.5px; }
.mail-text { margin: 0 0 18px; color: #b9c8d8; font-size: 14px; line-height: 1.65; }
.mail-attach { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--cyan); border-radius: 8px; background: rgba(91, 180, 230, 0.1); color: var(--cyan); font: 600 13px var(--mono); cursor: pointer; animation: attach 1.8s ease-in-out infinite; }
.mail-attach::before { content: "📎"; }
@keyframes attach { 50% { box-shadow: 0 0 22px -4px var(--cyan); } }
.mail-attach .clip { font-family: var(--sans); }
.mail-attach:hover, .mail-attach:focus-visible { background: var(--cyan); color: var(--bg); outline: none; }
.mail-attach:hover .dim, .mail-attach:focus-visible .dim { color: var(--bg); }

/* geopend "document" (beveiligde weergave) */
.mail-doc { position: absolute; inset: 0; display: flex; flex-direction: column; background: #20242b; animation: rise 0.25s ease-out; }
.mail-doc[hidden] { display: none; }
.doc-ribbon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; background: #3a2e0c; border-bottom: 1px solid var(--amber); color: var(--amber); font-size: 12.5px; }
.doc-ribbon span { flex: 1; min-width: 180px; }
.doc-ribbon .btn { padding: 7px 16px; border: 0; border-radius: 6px; background: var(--amber); color: #1a1405; font: 700 13px var(--sans); cursor: pointer; }
.doc-ribbon .btn:hover, .doc-ribbon .btn:focus-visible { background: #fff; outline: none; }
.doc-page { flex: 1; overflow-y: auto; margin: 18px; padding: 28px; border-radius: 4px; background: #f4f1ea; color: #222; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.doc-title { margin: 0 0 4px; font: 700 26px Georgia, "Times New Roman", serif; letter-spacing: 0.04em; }
.doc-sub { margin: 0 0 20px; font-size: 13px; color: #555; }
.doc-blur { color: #888; font-size: 14px; line-height: 2; filter: blur(2px); user-select: none; }
.doc-back { align-self: flex-start; margin: 0 18px 14px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bar); color: var(--text); font: 13px var(--sans); cursor: pointer; }
.doc-back:hover, .doc-back:focus-visible { border-color: var(--cyan); outline: none; }
@media (max-width: 620px) {
  .mail-main { grid-template-columns: 1fr; }
  .mail-inbox { display: none; }
}

/* ransomware-venster (bestandsverkenner) */
.filebox, .loginbox { --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; }
.filebox {
  position: relative;
  width: min(680px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}
.filebox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.filebox::backdrop, .loginbox::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(3px); }
.fb-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fb-guide { margin: 0; padding: 10px 16px; background: rgba(224, 178, 90, 0.1); border-bottom: 1px solid var(--line); color: var(--amber); font-size: 13px; }
.fb-download { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(91, 180, 230, 0.05); font-size: 13px; }
.fb-download.done { opacity: 0.5; }
.fb-link { color: var(--cyan); font-family: var(--mono); font-size: 12.5px; }
.btn-sm { margin-left: auto; padding: 6px 14px; border: 1px solid var(--cyan); border-radius: 6px; background: transparent; color: var(--cyan); font: 600 13px var(--sans); cursor: pointer; }
.btn-sm:hover:not(:disabled), .btn-sm:focus-visible { background: var(--cyan); color: var(--bg); outline: none; }
.btn-sm:disabled { opacity: 0.5; cursor: default; }
.fb-item.fresh { animation: rise 0.35s ease-out; }
.fb-confirm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(3, 5, 8, 0.78); animation: pop 0.2s ease-out; }
.ss-card { width: min(380px, 100%); padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 10px; background: var(--win); }
.ss-title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.ss-text { margin: 0 0 16px; font-size: 13px; color: #b9c8d8; line-height: 1.5; }
.ss-actions { display: flex; justify-content: flex-end; gap: 8px; }
.filebox .btn.ghost, .loginbox .btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.filebox .btn.ghost:hover, .filebox .btn.ghost:focus-visible { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.fb-head, .fb-item { display: grid; grid-template-columns: 16px 1fr auto 96px; gap: 4px 14px; align-items: center; padding: 8px 16px; }
.fb-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); border-bottom: 1px solid var(--line); }
.fb-list { margin: 0; padding: 6px; list-style: none; overflow-y: auto; scrollbar-width: thin; }
.fb-item { border-radius: 7px; font-size: 13.5px; }
.fb-item .ico { width: 13px; height: 16px; border-radius: 2px; background: var(--cyan); opacity: 0.55; }
.fb-item .fn { overflow-wrap: anywhere; }
.fb-item .sz, .fb-item .ty { color: var(--dim); font-size: 12px; }
.fb-item.zip, .fb-item.exe { cursor: pointer; }
.fb-item.zip { outline: 1px solid rgba(91, 180, 230, 0.4); background: rgba(91, 180, 230, 0.07); }
.fb-item.zip .ico { background: var(--cyan); opacity: 1; }
.fb-item.zip:hover, .fb-item.zip:focus-visible { background: rgba(91, 180, 230, 0.16); outline-color: var(--cyan); outline-offset: -1px; }
.fb-item.exe { outline: 1px solid rgba(239, 90, 82, 0.4); background: rgba(239, 90, 82, 0.08); }
.fb-item.exe .ico { background: var(--red); opacity: 1; }
.fb-item.exe .ty { color: var(--red); }
.fb-item.exe:hover, .fb-item.exe:focus-visible { background: rgba(239, 90, 82, 0.16); outline-color: var(--red); outline-offset: -1px; }
.fb-item.done { opacity: 0.5; cursor: default; outline: none; background: none; }
.fb-item.done .ico { background: var(--dim); }
.fb-item.locked { color: var(--dim); }
.fb-item.locked .ico { background: var(--red); opacity: 0.8; }
.fb-item.locked .ty { color: var(--red); }
.fb-progress { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); }
.fb-track { flex: 1; height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.fb-fill { height: 100%; width: 0; background: var(--red); transition: width 0.2s; }
.ransom-note, .login-note { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px; background: #1a0808; color: #ffd7d5; animation: rise 0.25s ease-out; }
/* De UA verbergt [hidden], maar de display-regels hierboven overschrijven dat; expliciet terugzetten. */
.ransom-note[hidden], .login-note[hidden], .fb-confirm[hidden], .fb-progress[hidden] { display: none; }
.ransom-note h2 { margin: 0; font: 700 clamp(22px, 5vw, 34px)/1.1 var(--mono); letter-spacing: 0.06em; color: var(--red); text-shadow: 0 0 28px var(--red); }
.ransom-note p, .login-note p { margin: 0; max-width: 46ch; font-size: 13.5px; }
.ransom-demand .mono, .login-note .mono { font-family: var(--mono); color: #fff; }
.filebox .btn, .loginbox .btn { margin-top: 8px; padding: 9px 18px; border: 0; border-radius: 7px; background: var(--green); color: var(--bg); font: 700 14px var(--sans); cursor: pointer; }
.filebox .btn:hover, .loginbox .btn:hover, .filebox .btn:focus-visible, .loginbox .btn:focus-visible { background: #fff; outline: none; }

/* credential-phishing venster (nep-inlogpagina) */
.loginbox {
  position: relative;
  width: min(440px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}
.loginbox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.lg-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--bar); border-bottom: 1px solid var(--line); font: 12px var(--mono); }
.lg-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.lg-https { color: var(--green); }
.lg-guide { margin: 0; padding: 10px 16px; background: rgba(224, 178, 90, 0.1); border-bottom: 1px solid var(--line); color: var(--amber); font-size: 13px; }
.lg-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; overflow-y: auto; }
.lg-logo { font: 700 22px var(--sans); text-align: center; letter-spacing: -0.02em; }
.lg-logo span { color: var(--green); }
.lg-card h2 { margin: 0 0 4px; text-align: center; font-size: 16px; font-weight: 600; }
.lg-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--dim); }
.lg-card input { padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font: 14px var(--sans); outline: none; }
.lg-card input:focus { border-color: var(--cyan); }
.lg-card input[readonly] { color: var(--dim); }
.lg-submit { padding: 10px; border: 0; border-radius: 7px; background: var(--cyan); color: var(--bg); font: 700 14px var(--sans); cursor: pointer; }
.lg-submit:hover:not(:disabled), .lg-submit:focus-visible { background: #fff; outline: none; }
.lg-submit:disabled { opacity: 0.5; cursor: default; }
.lg-foot { text-align: center; font-size: 11.5px; margin: 0; }
.login-note b { font-size: 18px; color: var(--red); }

/* terugblik na het open onderzoek */
.replaybox { width: min(640px, calc(100vw - 24px)); max-height: min(620px, calc(100vh - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--win); color: var(--text); font: inherit; overflow: hidden; }
.replaybox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.replaybox::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(3px); }
.replaybox { --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; width: min(760px, calc(100vw - 24px)); }
.rp-desk { position: relative; height: min(340px, 52vh); margin: 14px 14px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #0f1a2a, #0a1018 70%); font: 12px var(--sans); }
.rp-win { position: absolute; border: 1px solid var(--line); border-radius: 6px; background: #f3f5f8; color: #1c2430; box-shadow: 0 10px 30px -10px #000; overflow: hidden; transition: opacity 0.3s, transform 0.3s; }
.rp-bar { padding: 4px 8px; background: #dfe4ea; font: 600 11px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-left { left: 4%; top: 8%; width: 40%; }
.rp-left ul { margin: 0; padding: 4px 0; list-style: none; }
.rp-left li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: 11.5px; }
.rp-left li span { color: #6b7684; }
.rp-left li.sel { background: #cfe3ff; }
.rp-left li.used { opacity: 0.45; }
.rp-zip { left: 14%; top: 50%; width: 34%; padding-bottom: 8px; opacity: 0; transform: translateY(8px); }
.rp-zip.on { opacity: 1; transform: none; }
.rp-zip p, .rp-up { margin: 6px 8px 4px; font-size: 11.5px; }
.rp-desk .fb-track { margin: 0 8px; height: 6px; background: #c9d1db; }
.rp-desk .fb-fill { background: #2b7de9; transition: width 1.4s linear; }
.rp-right { right: 4%; top: 14%; width: 42%; padding-bottom: 8px; }
.rp-drop { margin: 8px; padding: 22px 8px; border: 2px dashed #a9b4c2; border-radius: 6px; text-align: center; color: #6b7684; transition: border-color 0.2s, background 0.2s; }
.rp-drop.over { border-color: #2b7de9; background: #e3efff; color: #1c2430; }
.rp-up { min-height: 1.3em; color: #1c2430; }
.rp-file { position: absolute; left: 20%; top: 58%; z-index: 3; padding: 5px 10px; border-radius: 5px; background: #ffd66b; color: #3a2c00; font: 600 11.5px var(--mono); box-shadow: 0 8px 20px -6px #000; opacity: 0; transition: left 1.7s ease-in-out, top 1.7s ease-in-out, opacity 0.3s; }
.rp-file.on { opacity: 1; }
.rp-file.move { left: 63%; top: 34%; }
.rp-file.gone { opacity: 0; }
.rp-file i { position: absolute; right: -9px; bottom: -11px; width: 0; height: 0; border: 7px solid transparent; border-left-color: #fff; border-top-color: #fff; filter: drop-shadow(0 1px 1px #000); transform: rotate(8deg); }
.rp-toast { position: absolute; right: 4%; bottom: 14%; z-index: 4; padding: 8px 12px; border-radius: 6px; background: var(--red); color: #1a0605; font: 700 12px var(--sans); opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; }
.rp-toast.on { opacity: 1; transform: none; }
.rp-stop { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; background: rgba(7, 10, 15, 0.82); color: var(--green); font: 700 15px var(--mono); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.rp-stop.on { opacity: 1; }
.rp-task { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 3px 10px; background: rgba(0, 0, 0, 0.55); color: #c9d4e0; font: 11px var(--mono); }
.rp-cap { margin: 0; padding: 10px 16px 0; min-height: 3.2em; font-size: 13.5px; color: #b9c8d8; }
.rp-cap time { margin-right: 10px; font: 12px var(--mono); color: var(--dim); }
.replay-foot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); min-height: 50px; }

/* webshop-venster (SQL-injectie) */
.shopbox {
  --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  width: min(680px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}
.shopbox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.shopbox::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(3px); }
.sh-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--bar); border-bottom: 1px solid var(--line); font: 12px var(--mono); }
.sh-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.sh-param { color: var(--amber); }
.sh-page { flex: 1; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.sh-head { display: flex; align-items: baseline; gap: 10px; }
.sh-logo { font: 700 20px var(--sans); }
.sh-logo span { color: var(--cyan); }
.sh-inject { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sh-inject label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; font-size: 12.5px; color: var(--dim); }
.sh-inject input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: 13px var(--mono); outline: none; }
.sh-inject input:focus { border-color: var(--amber); }
.shopbox .btn { padding: 9px 16px; border: 0; border-radius: 6px; background: var(--cyan); color: var(--bg); font: 700 13px var(--sans); cursor: pointer; }
.shopbox .btn:hover, .shopbox .btn:focus-visible { background: #fff; outline: none; }
.sh-hints { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-hints button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bar); color: var(--cyan); font: 12px var(--mono); cursor: pointer; }
.sh-hints button:hover, .sh-hints button:focus-visible { border-color: var(--cyan); outline: none; }
.sh-hints .lbl { align-self: center; font: 12px var(--sans); color: var(--dim); }
.sh-result { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sh-result:empty { display: none; }
.sh-note { margin: 0; padding: 8px 12px; font-size: 12.5px; }
.sh-note.warn { color: var(--amber); background: rgba(224, 178, 90, 0.08); }
.sh-note.leak { color: var(--red); background: rgba(239, 90, 82, 0.1); }
.sh-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sh-table th { padding: 6px 12px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); border-bottom: 1px solid var(--line); }
.sh-table td { padding: 6px 12px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); font-family: var(--mono); }
.sh-table tr:last-child td { border-bottom: 0; }
.sh-table.leak td { color: #ffb3b0; }
.sh-prod { padding: 10px 12px; font-size: 13px; }
.sh-prod b { color: var(--text); }
.pulse { animation: pulse 1.2s ease-in-out infinite; }
/* live versleuteling in de SIEM (ransomware) */
.encwatch { border-color: var(--red); background: rgba(239, 90, 82, 0.06); }
.encwatch[hidden] { display: none; }
.encwatch { overflow-anchor: none; }
#siem-hashrow[hidden], .siem.inc #siem-hashrow, #siem-verdict[hidden] { display: none; }
#siem-hashrow code { font: 12.5px var(--mono); color: var(--amber); }
/* acties in Hosts & accounts: duidelijk een knop, niet te verwarren met het rode statuslabel */
.siem .btn.act { border-color: var(--cyan); color: var(--cyan); background: rgba(91, 180, 230, 0.08); }
.siem .btn.act:hover:not(:disabled), .siem .btn.act:focus-visible { background: var(--cyan); color: var(--bg); }
.grid td.hact { white-space: normal; }
.grid td.hact .btn { margin: 2px 6px 2px 0; }
.grid [data-host] td:first-child { white-space: nowrap; }
.procs .proc .btn { flex: none; }
/* een stap in het plan aanklikken brengt je naar de juiste knop, die kort oplicht */
.steps li.go { cursor: pointer; }
.steps li.go:hover, .steps li.go:focus-visible { border-color: var(--cyan); outline: none; }
.siem .btn.flash { animation: stepflash 0.55s ease-in-out 4; }
@keyframes stepflash { 50% { background: var(--amber); border-color: var(--amber); color: var(--bg); box-shadow: 0 0 22px -2px var(--amber); } }
.procs td { padding: 8px 12px 10px 24px; background: rgba(0, 0, 0, 0.25); }
.procs .proc .note { margin-left: auto; font-size: 12px; color: var(--dim); }
.grid .note { font-size: 12px; color: var(--dim); }
/* stappenplan in de alert */
.steps { flex: 1 1 100%; margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: stap; }
.steps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--win); counter-increment: stap; }
.steps li::before { content: counter(stap); display: inline-block; width: 18px; height: 18px; border: 1px solid var(--dim); border-radius: 50%; font: 11px/17px var(--mono); text-align: center; color: var(--dim); }
.steps li.done { color: var(--dim); border-color: rgba(62, 207, 142, 0.35); }
.steps li.done::before { content: "✓"; border-color: var(--green); background: var(--green); color: var(--bg); }
.steps li em { margin-left: auto; font: 11.5px var(--mono); font-style: normal; color: var(--cyan); }
.steps li.done em { color: var(--dim); }
.steps li.wait { display: block; border-style: dashed; color: var(--dim); }
.steps li.wait::before { content: none; }
#acct-panel[hidden] { display: none; }
.encwatch h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.enc-state { margin-left: auto; font: 700 11px var(--mono); letter-spacing: 0.06em; color: var(--red); animation: pulse 1.2s ease-in-out infinite; }
.enc-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; font-size: 13px; }
.enc-top b { font: 700 26px var(--mono); color: var(--red); font-variant-numeric: tabular-nums; }
.enc-left { margin-left: auto; font: 12px var(--mono); color: var(--amber); }
.enc-fill { height: 100%; width: 0; background: var(--red); transition: width 0.24s linear; }
.enc-files { margin-top: 8px; height: 7.5em; overflow: hidden; overflow-anchor: none; display: flex; flex-direction: column; justify-content: flex-end; font: 11.5px/1.5 var(--mono); color: var(--dim); }
.enc-files div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise 0.2s ease-out; }
.enc-files b { color: var(--red); }
.encwatch.saved { border-color: var(--green); background: rgba(62, 207, 142, 0.05); }
.encwatch.saved .enc-state, .encwatch.saved .enc-left { color: var(--green); animation: none; }
.encwatch.saved .enc-top b, .encwatch.lost .enc-top b { color: var(--text); }
.encwatch.saved .enc-fill { background: var(--dim); }
.encwatch.lost .enc-state { animation: none; }
.encwatch.lost .enc-left { color: var(--red); }
.ransom-count { font: 700 15px var(--mono); color: #fff; min-height: 1.4em; }

/* eindspel: één doorlopend incident in de SIEM */
.siem:not(.inc) .inc-only { display: none; }
.siem.inc .std-only, .siem.inc #siem-conn, .siem.inc #siem-intel, .siem.inc #siem-response { display: none; }
.siem-bar nav b:empty { display: none; }
.foe { border-color: rgba(239, 90, 82, 0.5); }
.foe[hidden] { display: none; }
.foe-term { max-height: 21em; display: flex; flex-direction: column; justify-content: flex-end; font: 11.5px/1.5 var(--mono); color: #ffb3b0; overflow: hidden; }
.foe-term div { white-space: pre-wrap; overflow-wrap: anywhere; }
.foe-term .cmd { color: var(--text); margin-top: 4px; }
.queue .eg-q.fresh { animation: alertflash 0.6s ease-in-out 3; }
.queue .eg-q.sel { outline: 1px solid var(--amber); outline-offset: -1px; }
.queue .hot.eg-q.seen { cursor: pointer; }
.foe-pop { position: absolute; right: 18px; bottom: 18px; z-index: 6; width: min(430px, calc(100% - 36px)); border: 1px solid var(--red); border-radius: 8px; background: #05070a; box-shadow: 0 20px 60px -10px #000, 0 0 40px -12px var(--red); font: 12.5px/1.55 var(--mono); animation: rise 0.25s ease-out; pointer-events: none; }
.foe-pop[hidden] { display: none; }
.foe-pop-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid rgba(239, 90, 82, 0.4); color: var(--red); font-weight: 700; letter-spacing: 0.06em; }
.foe-pop-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1s ease-in-out infinite; }
.foe-pop-bar em { margin-left: auto; font: 10.5px var(--sans); font-style: normal; letter-spacing: 0; color: var(--dim); }
.foe-pop-body { min-height: 7.75em; padding: 10px 12px; color: #9fe8b5; }
.foe-pop-body div { white-space: pre-wrap; min-height: 1.55em; }
.foe-pop-body .cmd { color: #fff; }
.foe-pop-body .fail { color: var(--red); }
#inc-close { width: 100%; margin-top: 10px; }
#inc-stats { margin: 0; font-size: 12.5px; }
.grid td.acts { white-space: nowrap; }
.grid td.acts .btn { margin-right: 6px; }
.proc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; }
.proc code { font: 12px var(--mono); overflow-wrap: anywhere; }
.mail-list { margin: 0; padding: 0; list-style: none; }
.mail-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 8px 10px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); cursor: pointer; font-size: 13px; }
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover, .mail-row:focus-visible, .mail-row.on { background: rgba(91, 180, 230, 0.08); outline: none; }
.mail-row time { font: 12px var(--mono); color: var(--dim); }
.mail-row .from, .mail-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .from { color: var(--dim); }
.mail-row.gone b { text-decoration: line-through; color: var(--dim); }
.mail-meta { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0 0 10px; font-size: 13px; }
.mail-meta dt { color: var(--dim); }
.mail-meta dd { margin: 0; font: 12.5px var(--mono); overflow-wrap: anywhere; }
.mail-text { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--win); font: 13px/1.55 var(--sans); white-space: pre-wrap; color: #b9c8d8; }
.sandbox { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--win); font: 12.5px/1.7 var(--mono); }
.sandbox div { overflow-wrap: anywhere; }
.sandbox .k { display: inline-block; min-width: 96px; color: var(--dim); }
.ioc { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bar); color: var(--cyan); font: 12px var(--mono); cursor: pointer; }
.ioc:hover, .ioc:focus-visible { border-color: var(--cyan); outline: none; }
.ioc.blocked { color: var(--dim); text-decoration: line-through; }
.intel-known { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; font-size: 12.5px; }
.intel-card { margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--win); }
.intel-card.bad { border-color: var(--red); background: rgba(239, 90, 82, 0.07); }
.intel-card .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.intel-card code { font: 700 14px var(--mono); }
.intel-card p { margin: 8px 0 10px; }
.inc-timeline { margin: 0; padding: 0; list-style: none; }
.inc-timeline li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 2px 12px; padding: 7px 0 7px 12px; border-left: 2px solid var(--red); font-size: 13px; }
.inc-timeline li.actie { border-left-color: var(--green); }
.inc-timeline li.dim { display: block; border-left: 0; padding-left: 0; }
.inc-timeline time { font: 12px var(--mono); color: var(--dim); }
.inc-timeline em { grid-column: 2; font: 11.5px var(--mono); font-style: normal; color: var(--dim); }
.inc-report { position: absolute; inset: 0; z-index: 7; overflow-y: auto; padding: 22px clamp(14px, 4vw, 40px); background: var(--win); animation: rise 0.3s ease-out; }
.inc-report[hidden] { display: none; }
.inc-report h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.inc-report h4 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.rep-head { margin: 0 0 14px; font-weight: 700; }
.rep-head.top { color: var(--green); } .rep-head.mid { color: var(--amber); } .rep-head.fail { color: var(--red); }
.rep-score { display: inline-flex; flex-direction: column; margin: 0 28px 10px 0; vertical-align: top; }
.rep-score b { font: 800 64px/1 var(--mono); }
.rep-score.top b { color: var(--green); } .rep-score.mid b { color: var(--amber); } .rep-score.fail b { color: var(--red); }
.rep-score span { font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.rep-stats { display: inline-grid; grid-template-columns: repeat(4, auto); gap: 2px 26px; margin: 0; vertical-align: top; }
.rep-stats dt { grid-row: 2; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.rep-stats dd { grid-row: 1; margin: 0; font: 700 26px var(--mono); }
.rep-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0 0; font-size: 13px; }
.rep-facts dt { color: var(--dim); }
.rep-facts dd { margin: 0; font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.rep-chain { margin: 0; padding: 0; list-style: none; }
.rep-chain li { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 2px 12px; padding: 5px 0 5px 12px; border-left: 2px solid var(--green); font-size: 13px; }
.rep-chain li.miss { border-left-color: var(--line); color: var(--dim); }
.rep-chain time, .rep-chain em { font: 11.5px var(--mono); font-style: normal; color: var(--dim); }
.rep-chain li.miss em { color: var(--amber); }
.rep-tips { margin: 0 0 18px; padding-left: 18px; font-size: 13px; color: #b9c8d8; }
.rep-tips li { margin: 4px 0; }
@media (max-width: 700px) {
  .rep-chain li { grid-template-columns: 70px minmax(0, 1fr); }
  .rep-chain em { grid-column: 2; }
  .rep-stats { grid-template-columns: repeat(2, auto); }
  .rep-stats dt { grid-row: auto; } .rep-stats dd { grid-row: auto; }
  .mail-row { grid-template-columns: 64px minmax(0, 1fr); }
  .mail-row b { grid-column: 2; }
}

/* brute-force-venster (SSH) */
.brutebox {
  --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  width: min(860px, calc(100vw - 24px));
  height: min(600px, calc(100vh - 24px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  overflow: hidden;
}
.brutebox[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.brutebox::backdrop { background: rgba(3, 5, 8, 0.72); backdrop-filter: blur(3px); }
.brutebox.hit { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 0 40px rgba(239, 90, 82, 0.25); }
.bf-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.bf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bf-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.bf-stat b { font: 700 22px var(--mono); color: var(--amber); font-variant-numeric: tabular-nums; }
.bf-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--dim); }
.bf-stat.good b { color: var(--dim); }
.brutebox.hit .bf-stat.good { border-color: var(--red); background: rgba(239, 90, 82, 0.1); }
.brutebox.hit .bf-stat.good b { color: var(--red); }
.bf-progress { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--dim); }
.bf-progress span { min-width: 76px; text-align: right; font-variant-numeric: tabular-nums; }
.bf-fill { height: 100%; width: 0; background: var(--amber); transition: width 0.12s linear; }
.brutebox.hit .bf-fill { background: var(--red); }
.bf-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bf-users { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-user { display: inline-flex; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bar); font: 12px var(--mono); color: var(--dim); }
.bf-user b { color: var(--text); font-variant-numeric: tabular-nums; }
.bf-threads { display: flex; gap: 4px; }
.bf-threads i { width: 7px; height: 14px; border-radius: 2px; background: var(--line); transition: background 0.08s; }
.bf-threads i.on { background: var(--amber); }
.bf-panes { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-panes section { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.bf-panes h3 { margin: 0; padding: 6px 10px; font: 600 11px var(--mono); color: var(--dim); background: var(--bar); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-log { flex: 1; min-height: 0; overflow: hidden; padding: 6px 10px; font: 11.5px/1.55 var(--mono); color: var(--dim); }
.bf-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-log div:last-child { color: var(--text); }
.bf-log div.hit { color: var(--red); font-weight: 700; background: rgba(239, 90, 82, 0.12); }
.bf-status { margin: 0; font-size: 12.5px; color: var(--dim); }
.brutebox.hit .bf-status { color: var(--red); font-weight: 600; }
@media (max-width: 700px) {
  .bf-stats { grid-template-columns: repeat(2, 1fr); }
  .bf-stat b { font-size: 18px; }
  .bf-panes { grid-template-columns: 1fr; }
  .bf-threads { display: none; }
}

@keyframes pulse { 50% { opacity: 0.4; } }

.alertbox {
  width: min(460px, calc(100vw - 32px));
  padding: 26px 24px 24px;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: #1a0808;
  color: var(--text);
  font-family: var(--mono);
  text-align: center;
}
.alertbox[open] { animation: pop 0.2s ease-out, alertflash 0.6s steps(1) 0.2s infinite, alarm 0.9s ease-in-out 0.2s infinite; }
.alertbox::backdrop { background: rgba(60, 4, 4, 0.55); backdrop-filter: blur(2px); animation: backflash 0.6s steps(1) infinite; }
@keyframes alertflash { 50% { background: #3a0d0c; } }
@keyframes backflash { 50% { background: rgba(110, 8, 8, 0.6); } }
.alertbox p { margin: 0; }
.alert-icon { font-size: 44px; line-height: 1; color: var(--red); text-shadow: 0 0 30px var(--red); }
.alertbox h2 { margin: 8px 0 6px; font-size: clamp(30px, 9vw, 46px); line-height: 1.1; letter-spacing: 0.08em; color: var(--red); text-shadow: 0 0 28px var(--red); }
.alert-sev { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #ffb3b0; }
.alert-text { margin-top: 14px !important; color: #ffd7d5; }
.alert-text b { color: #fff; }
.alertbox button {
  margin-top: 20px;
  padding: 9px 22px;
  border: 0;
  border-radius: 7px;
  background: var(--red);
  color: #1a0605;
  font: 700 15px var(--mono);
  cursor: pointer;
}
.alertbox button:hover, .alertbox button:focus-visible { background: #fff; outline: none; }
.window.alarm { border-color: var(--red); animation: alarm 0.9s ease-in-out infinite; }
@keyframes alarm {
  0%, 100% { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 120px -30px rgba(239, 90, 82, 0.5); }
  50% { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 160px -10px rgba(239, 90, 82, 0.95); }
}
/* SIEM-popup */
.siem {
  --sans: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  width: min(1180px, calc(100vw - 24px));
  height: min(820px, calc(100vh - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--win);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  overflow: hidden;
  box-shadow: 0 40px 120px -20px #000, 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.siem { position: fixed; inset: 0; margin: auto; z-index: 2; min-width: 340px; min-height: 260px; max-width: none; resize: both; }
.siem[open] { display: flex; flex-direction: column; animation: pop 0.25s ease-out; }
.siem::backdrop { background: rgba(3, 5, 8, 0.78); backdrop-filter: blur(3px); }
.siem.incident { border-color: var(--red); }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } }

.siem-bar { display: flex; align-items: center; gap: 18px; padding: 10px 14px; background: var(--bar); border-bottom: 1px solid var(--line); }
.siem-logo { font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.siem-logo i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--green); box-shadow: 0 0 12px var(--green); }
.siem.incident .siem-logo i { background: var(--red); box-shadow: 0 0 12px var(--red); }
.siem-bar nav { display: flex; gap: 4px; flex: 1; }
.siem-bar nav button { padding: 4px 11px; border: 0; border-radius: 5px; background: none; color: var(--dim); font: 500 13.5px var(--sans); cursor: pointer; }
.siem-bar nav button:hover, .siem-bar nav button:focus-visible { color: var(--text); outline: none; }
.siem-bar nav .on { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.siem-bar nav b { display: inline-block; min-width: 17px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #1a0605; font-size: 11px; text-align: center; }
.siem-bar nav b.zero { background: var(--line); color: var(--dim); }
.siem-user { font-size: 12.5px; color: var(--dim); }
.siem-clock { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.siem-x { border: 0; background: none; color: var(--dim); font-size: 15px; cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.siem-x:hover, .siem-x:focus-visible { color: var(--text); background: rgba(255, 255, 255, 0.08); outline: none; }

.siem { container: siem / inline-size; }
.siem-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 270px; }
.siem-views, .siem-side { padding: 14px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.siem-side { border-left: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); display: grid; gap: 12px; align-content: start; }
.view { display: grid; gap: 12px; }
.view[hidden] { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi, .panel { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.kpi { padding: 10px 14px; }
.kpi b { display: block; font-family: var(--mono); font-size: 24px; line-height: 1.2; color: #fff; }
.kpi span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi.crit { border-color: var(--red); background: rgba(239, 90, 82, 0.08); }
.kpi.crit b { color: var(--red); }
.kpi.good b { color: var(--green); }

.panel { padding: 12px 14px; }
.panel h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.panel h3 .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.bars i { flex: 1; min-width: 2px; background: var(--cyan); opacity: 0.55; border-radius: 1px 1px 0 0; }
.bars i.spike { background: var(--red); opacity: 1; box-shadow: 0 0 10px var(--red); }

.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th { padding: 4px 10px; text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); border-bottom: 1px solid var(--line); }
.grid td { padding: 7px 10px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); }
.queue td:first-child, .events td:first-child { font-family: var(--mono); white-space: nowrap; }
.grid tr:last-child td { border-bottom: 0; }
.queue .old { color: var(--dim); }
.queue .hot { cursor: pointer; background: rgba(239, 90, 82, 0.16); }
.queue .hot:hover, .queue .hot:focus-visible { outline: 1px solid var(--red); outline-offset: -1px; }
.queue .hot.seen { background: rgba(239, 90, 82, 0.07); cursor: default; }
.queue .hot.closed { background: none; color: var(--dim); }
.sev { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.sev.high { color: #1a0605; background: var(--red); }
.sev.med { color: var(--amber); border: 1px solid currentColor; }
.sev.low { color: var(--dim); border: 1px solid currentColor; }
.sev.ok { color: var(--green); border: 1px solid currentColor; }
.sev.iso { color: var(--amber); border: 1px solid currentColor; }

.detail { animation: rise 0.3s ease-out; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 0; padding: 0; border: 0; font-size: 13px; align-content: start; }
.detail dd { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.tree { margin: 0; padding: 10px 12px; border-radius: 6px; background: var(--win); border: 1px solid var(--line); font: 12.5px/1.55 var(--mono); white-space: pre; overflow-x: auto; color: #b9c8d8; }
.tree b { color: var(--red); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.actions > span { color: var(--dim); min-width: 86px; }
.siem .btn {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bar);
  color: var(--text);
  font: 600 13px var(--sans);
  cursor: pointer;
}
.siem .btn:hover:not(:disabled), .siem .btn:focus-visible { border-color: var(--cyan); outline: none; }
.siem .btn:disabled { opacity: 0.45; cursor: default; }
.siem .btn.picked { border-color: var(--green); color: var(--green); opacity: 1; }
.siem .btn.danger { border-color: var(--red); background: var(--red); color: #1a0605; }
.siem .btn.danger:hover:not(:disabled) { box-shadow: 0 0 24px -6px var(--red); border-color: var(--red); }
.siem .btn.primary { border-color: var(--green); background: var(--green); color: var(--bg); }
.siem-msg { margin: 10px 0 0; min-height: 1.5em; }
.siem-msg.err { color: var(--red); }
.siem-msg.good { color: var(--green); }
.siem-log { margin: 6px 0 0; padding: 0; list-style: none; font: 12.5px/1.7 var(--mono); color: var(--green); }
.siem-log:empty, .siem-msg:empty { display: none; }

.siem .btn.small { padding: 1px 8px; font-size: 11.5px; margin-left: 6px; }
.siem .btn.on { border-color: var(--cyan); color: var(--cyan); }
.detail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.detail-head h3 { margin: 0; flex: 1; }
.owner { font-size: 12.5px; color: var(--dim); }
.owner b { color: var(--text); }
.conn { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--red); border-radius: 6px; background: rgba(239, 90, 82, 0.08); font-size: 13px; }
.conn b { font-family: var(--mono); color: #fff; }
.conn-state { font-weight: 700; letter-spacing: 0.06em; color: var(--red); }
.conn-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: auto; }
.conn-wave i { width: 3px; background: var(--red); animation: wave 0.7s ease-in-out infinite alternate; }
.conn-wave i:nth-child(2) { animation-delay: 0.15s; } .conn-wave i:nth-child(3) { animation-delay: 0.3s; }
.conn-wave i:nth-child(4) { animation-delay: 0.45s; } .conn-wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes wave { from { height: 3px; } to { height: 16px; } }
.conn.dead { border-color: var(--line); background: none; }
.conn.dead .conn-state { color: var(--green); }
.conn.dead .conn-wave { display: none; }
.intel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--win); font-size: 13px; animation: rise 0.3s ease-out; }
.intel[hidden] { display: none; }

.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--win); color: var(--text); font: 13px var(--mono); outline: none; }
.search input:focus { border-color: var(--cyan); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.filters .btn.small { margin-left: 0; }
.filters .dim { margin-left: auto; font-size: 12px; }
.events td { font-size: 12.5px; vertical-align: top; }
.events tr.row { cursor: pointer; }
.events tr.row:hover td { background: rgba(255, 255, 255, 0.03); }
.events tr.bad td:last-child { color: #ffb3b0; }
.events tr.bad td:first-child { box-shadow: inset 3px 0 var(--red); }
.events tr.raw td { padding-top: 0; }
.events pre { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--win); border: 1px solid var(--line); font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #b9c8d8; }

.playbook { margin: 0; padding: 0; list-style: none; counter-reset: pb; display: grid; gap: 8px; }
.playbook li { position: relative; padding-left: 28px; color: var(--dim); counter-increment: pb; font-size: 13px; }
.playbook li::before { content: counter(pb); position: absolute; left: 0; top: 0; width: 19px; height: 19px; border: 1px solid var(--line); border-radius: 50%; font: 11px/18px var(--mono); text-align: center; }
.playbook li.now { color: var(--text); }
.playbook li.now::before { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 10px -2px var(--amber); }
.playbook li.done { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(107, 127, 147, 0.5); }
.playbook li.done::before { content: "✓"; border-color: var(--green); background: var(--green); color: var(--bg); }
.feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font: 11.5px/1.4 var(--mono); }
.feed li { padding-left: 8px; border-left: 2px solid var(--line); color: var(--dim); animation: rise 0.3s ease-out; overflow-wrap: anywhere; }
.feed li.bad { border-color: var(--red); color: #ffb3b0; }
.feed li.good { border-color: var(--green); color: var(--green); }
.feed time { display: block; opacity: 0.7; }

@container siem (max-width: 760px) {
  .siem-main { display: block; overflow-y: auto; }
  .siem-views, .siem-side { overflow: visible; }
  .siem-side { border-left: 0; border-top: 1px solid var(--line); }
  .siem-user { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .siem-main { display: block; overflow-y: auto; }
  .siem-views, .siem-side { overflow: visible; }
  .siem-side { border-left: 0; border-top: 1px solid var(--line); }
  .siem-user { display: none; }
}
@media (max-width: 640px) {
  .siem-bar { gap: 8px; flex-wrap: wrap; }
  .siem-bar nav { flex: 1 0 100%; flex-wrap: wrap; }
  .siem-bar nav button { padding: 5px 9px; }
  .siem-logo .dim, .siem-clock { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  [data-view="alerts"] .grid th:nth-child(4), [data-view="alerts"] .grid td:nth-child(4) { display: none; }
  /* Hosts, Accounts en Firewall: elke rij wordt een blokje, zodat de actieknoppen in beeld blijven. */
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid thead { display: none; }
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 9px 2px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); }
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid tr:last-child { border-bottom: 0; }
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid td { padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid td:first-child { flex: 1 0 100%; font-weight: 600; }
  .view:not([data-view="alerts"]):not([data-view="events"]) .grid td:last-child { flex: 1 0 100%; }
}

@media (max-width: 700px) {
  .window { resize: none; height: auto; min-height: calc(100vh - 90px); }
  .siem { resize: none; }
  .bar, .siem-bar { cursor: default; touch-action: auto; }
}
@media (max-width: 600px) {
  body { font-size: 13.5px; justify-content: flex-start; }
  .fetch { grid-template-columns: 1fr; justify-items: start; }
  .photo { text-align: left; }
  .title { display: none; }
  .bar { grid-template-columns: 1fr 1fr; }
  .link .perm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-block, .alertbox[open], .alertbox::backdrop, .window.alarm, .conn-wave i, .mail-attach { animation: none; }
  .rp-file, .rp-desk .fb-fill, .rp-win, .rp-toast, .rp-stop { transition: none; }
  .bf-fill, .bf-threads i, .enc-fill { transition: none; }
  .enc-state, .enc-files div { animation: none; }
  .queue .eg-q.fresh, .foe-pop, .foe-pop-bar i, .inc-report { animation: none; }
}

/* lage schermen: de startpagina moet zonder scrollen in het venster passen */
@media (max-height: 800px) and (min-width: 701px) {
  .window { height: calc(100vh - 70px); }
  .swatches, .motd { display: none; }
  .name { font-size: 30px; }
}

/* ---------- homepage: hero en secties onder de terminal ---------- */
main { width: 100%; display: flex; flex-direction: column; align-items: center; }
.hero { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: clamp(12px, 4vw, 48px) 0 40px; }
.scroll-hint { color: var(--dim); text-decoration: none; font-size: 18px; line-height: 1; padding: 4px 12px; border-radius: 6px; animation: nudge 2s ease-in-out infinite; }
.scroll-hint:hover, .scroll-hint:focus-visible { color: var(--green); outline: none; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.cta-btn { display: inline-block; padding: 9px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--bar); color: var(--text); font: 600 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.cta-btn::before { content: "$ "; color: var(--dim); }
.cta-btn:hover, .cta-btn:focus-visible { border-color: var(--cyan); color: var(--cyan); outline: none; }
.cta-btn.primary { border-color: var(--green); background: var(--green); color: var(--bg); }
.cta-btn.primary::before { color: rgba(0, 0, 0, 0.45); }
.cta-btn.primary:hover, .cta-btn.primary:focus-visible { background: #fff; border-color: #fff; color: var(--bg); }
.page { width: min(980px, 100%); display: grid; gap: clamp(56px, 9vw, 96px); padding: clamp(24px, 6vw, 64px) 0; }
.sec { scroll-margin-top: 24px; }
.sec-cmd { margin: 0 0 6px; font-size: 13px; }
.sec-cmd .cmd { color: var(--text); }
.sec h2 { margin: 0; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.15; letter-spacing: -0.01em; color: #fff; }
.sec .sub { margin: 6px 0 0; color: var(--green); }
.sec-body { margin-top: 22px; }
.sec-body.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.sec-body p { margin: 0 0 12px; color: #b9c8d8; }
.sec-body .lead { font-size: clamp(18px, 2.8vw, 23px); line-height: 1.4; color: #fff; padding-left: 16px; border-left: 2px solid var(--green); }
.sec-body p.dim { color: var(--dim); }
.sec .cta-btn { margin-top: 8px; }
.soc .sec-body.two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.soc-peek { border: 1px solid var(--line); border-radius: 10px; background: var(--win); overflow: hidden; font-family: -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; box-shadow: 0 24px 60px -24px #000, 0 0 60px -30px var(--red); }
.peek-bar { padding: 9px 12px; background: var(--bar); border-bottom: 1px solid var(--line); font-weight: 700; letter-spacing: 0.04em; }
.peek-bar i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 3px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.peek-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(35, 48, 65, 0.6); }
.peek-row.hot { background: rgba(239, 90, 82, 0.12); }
.peek-row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.peek-foot { padding: 8px 12px; font-size: 12px; }
.soc-peek .sev { display: inline-block; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-align: center; }
.skills { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.skill { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13, 18, 25, 0.7); }
.skill h3 { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }
.skill ul { margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: #b9c8d8; }
.skill li { padding: 2px 0; }
.skill li::before { content: "› "; color: var(--dim); }
.cards { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13, 18, 25, 0.7); }
.card h3 { margin: 0 0 8px; font-size: 15px; color: var(--green); }
.card h3 .dim { font-weight: 400; font-size: 12.5px; }
.card p { margin: 0 0 6px; font-size: 13.5px; color: #b9c8d8; }
.card .k { display: inline-block; min-width: 10ch; color: var(--cyan); }
@media (max-width: 860px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-body.two, .soc .sec-body.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards, .skills { grid-template-columns: 1fr; }
  .peek-row { grid-template-columns: 62px minmax(0, 1fr); }
  .peek-row span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-hint { animation: none; } }

/* ---------- de minigame draait in een eigen terminalvenster ---------- */
.game-dim { position: fixed; inset: 0; z-index: 1; background: rgba(3, 5, 8, 0.78); backdrop-filter: blur(3px); }
.game-dim[hidden] { display: none; }
.gamewin { position: fixed; inset: 0; margin: auto; z-index: 2; width: min(880px, calc(100vw - 24px)); height: min(690px, calc(100vh - 48px)); max-width: none; max-height: none; padding: 0; color: var(--text); font: inherit; }
.gamewin[open] { display: flex; animation: pop 0.25s ease-out; }
.gamewin:not([open]) { display: none; }
.gamewin #ghistory .entry { margin-bottom: 14px; }
.gamewin #ghistory pre { margin: 6px 0 0; font: inherit; white-space: pre-wrap; color: #b9c8d8; }
.gamewin #ghistory .err { color: var(--red); }
/* gele bolletjes: op dit tabblad staat nog een stap open */
.siem-bar nav button.todo::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .siem-bar nav button.todo::after, .gamewin[open] { animation: none; } }

/* ---------- rood bolletje = sluiten, op elk venster ---------- */
.dots { display: flex; align-items: center; gap: 7px; flex: none; }
.dot-x { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--red); cursor: pointer; position: relative; }
.dot-x::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--mono); color: #4a0b09; opacity: 0; }
.dots:hover .dot-x::after, .dot-x:focus-visible::after { opacity: 1; }
.dot-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dots i:nth-child(2) { background: var(--amber); }
.dots i:nth-child(3) { background: var(--green); }
.mail-bar, .fb-bar, .lg-bar, .sh-bar { justify-content: flex-start; gap: 12px; }

/* ---------- homepage deel twee ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.think { margin: 22px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.think::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; background: linear-gradient(90deg, var(--line), var(--green), var(--line)); }
.think li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 14px 0 0; }
.think .no { align-self: flex-start; padding: 6px 10px; border: 1px solid var(--green); border-radius: 6px; background: var(--bg); font: 700 13px var(--mono); color: var(--green); }
.think b { margin-top: 6px; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.think li > span:last-child { font-size: 13.5px; color: #b9c8d8; }
.career { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-left: 1px solid var(--line); }
.career li { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 0 14px; padding: 0 0 18px 20px; }
.career li:last-child { padding-bottom: 0; }
.career li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.career li.now::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.career time { font: 700 14px var(--mono); color: var(--cyan); }
.career b { color: #fff; }
.career span { grid-column: 2; font-size: 13.5px; color: #b9c8d8; }
.sec-body.narrow { max-width: 68ch; }
.contact { text-align: left; padding-top: clamp(24px, 5vw, 48px); border-top: 1px dashed var(--line); }
.contact .roles { margin: 6px 0 16px; }
.contact .bye { margin-top: 18px; }
@media (max-width: 860px) {
  .think { grid-template-columns: 1fr; gap: 14px; }
  .think::before { left: 17px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--line), var(--green), var(--line)); }
  .think li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 0 12px; padding: 0; }
  .think .no { grid-row: 1 / span 2; align-self: start; }
  .think b { margin-top: 4px; }
}

/* de titel van het incidentvenster is de naam van het scenario en blijft altijd zichtbaar */
.gamewin .bar { grid-template-columns: auto 1fr auto; gap: 14px; }
.gamewin .title { display: block; color: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gamewin .title::before { content: "incident · "; color: var(--dim); font-weight: 400; }

/* ---------- compacte homepage: profiel, building things, loopbaan als strook ---------- */
.welcome .w-role { margin: 0; font-size: inherit; color: var(--green); }
.welcome .w-role::before { content: none; }
.welcome { font-size: clamp(24px, 4.6vw, 38px); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; padding: 0; border: 0; font-size: 14px; }
.facts dt { color: var(--cyan); }
.facts dd { margin: 0; color: #b9c8d8; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.four .card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); }
.card .proj { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--dim); }
.card .proj .k { min-width: 0; margin-right: 8px; color: var(--green); }
/* Titel, beschrijving en projectregel delen de rijen van de kaarten ernaast, zodat de stippellijnen op één hoogte staan. */
.cards.four .card { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; }
.career.strip { margin: 18px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); gap: 0 14px; }
.career.strip li { display: flex; flex-direction: column; gap: 0; padding: 14px 0 0; }
.career.strip li::before { left: 0; top: -5px; }
.career.strip span { font-size: 12.5px; }
.contact .sub { margin-bottom: 0; }
@media (max-width: 860px) {
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border-top: 0; }
  .career.strip li { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .cards.four { grid-template-columns: 1fr; } }

/* ---------- SOC: duidelijke eerste stap en zichtbare reactie op acties ---------- */
.start-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 10px 14px; border: 1px solid var(--amber); border-radius: 8px; background: rgba(224, 178, 90, 0.08); }
.start-hint[hidden] { display: none; }
.start-hint b { font: 700 13px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
.start-hint .btn { margin-left: auto; }
.act-pop { position: absolute; left: 18px; bottom: 18px; z-index: 6; width: min(400px, calc(100% - 36px)); border: 1px solid var(--green); border-radius: 8px; background: #05070a; box-shadow: 0 20px 60px -10px #000, 0 0 40px -14px var(--green); font: 12.5px/1.55 var(--mono); animation: rise 0.25s ease-out; pointer-events: none; }
.act-pop[hidden] { display: none; }
.act-pop-bar { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid rgba(62, 207, 142, 0.35); color: var(--green); font-weight: 700; letter-spacing: 0.06em; }
.act-pop-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.act-pop-body { min-height: 4.7em; padding: 10px 12px; color: #b9c8d8; }
.act-pop-body .ok { color: var(--green); font-weight: 700; }
@media (max-width: 700px) { .act-pop, .foe-pop { left: 10px; right: 10px; width: auto; } .foe-pop { bottom: 130px; } }
@media (prefers-reduced-motion: reduce) { .act-pop { animation: none; } }

/* =====================================================================
   v2 — verfijningslaag (craft pass)
   Alles hierboven is functioneel en structureel ongewijzigd: zelfde
   selectors, zelfde ids/classes/data-attributen, zelfde gedrag. Deze
   laag verfijnt alleen waarden — kleur, timing, diepte — zonder
   een enkele regel hierboven te verwijderen of structuur te wijzigen.
   ===================================================================== */

/* iets opener venster-chrome en een zachtere, gelaagde gloed i.p.v. felle neon */
.window {
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(62, 207, 142, 0.06),
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 140px -50px rgba(62, 207, 142, 0.28);
}
.bar { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.window::after { background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.09) 3px 4px); }

.siem, .gamewin { border-radius: var(--radius-lg); box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5); }
.mailbox, .filebox, .loginbox, .replaybox, .shopbox, .brutebox {
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 110px -24px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.brutebox.hit { box-shadow: 0 0 0 1px rgba(239, 90, 82, 0.5), 0 0 56px rgba(239, 90, 82, 0.22), 0 40px 110px -24px rgba(0, 0, 0, 0.88); }

/* rustiger, preciezer dialoog-entree */
@keyframes pop {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
}
.mailbox[open], .filebox[open], .loginbox[open], .shopbox[open], .brutebox[open], .siem[open], .gamewin[open], .replaybox[open] {
  animation: pop var(--dur-slow) var(--ease-out);
}

/* knoppen en klikbare chips voelen aan alsof ze luisteren — alleen transform, geen layout-impact */
:where(
  .cta-btn, .chips button, .link, .scroll-hint, .siem .btn, .btn-sm,
  .filebox .btn, .loginbox .btn, .shopbox .btn, .brutebox .btn,
  .mail-attach, .doc-ribbon .btn, .doc-back, .dot-x, .ioc,
  .siem-bar nav button, .lg-submit
) {
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
:where(
  .cta-btn, .chips button, .link, .siem .btn, .btn-sm,
  .filebox .btn, .loginbox .btn, .shopbox .btn, .brutebox .btn,
  .mail-attach, .doc-ribbon .btn, .doc-back, .dot-x, .ioc, .lg-submit
):active:not(:disabled) {
  transform: scale(0.97);
}

/* fijnere typografische ritmiek op de belangrijkste koppen */
.name { letter-spacing: -0.035em; }
.welcome { letter-spacing: -0.025em; }
.sec h2 { letter-spacing: -0.015em; }
.hint, .tagline, .sec-body .lead { text-wrap: pretty; }

/* verfijnde scrollbars binnen de terminal-vensters (Firefox staat al via scrollbar-width/-color) */
.screen::-webkit-scrollbar, .siem-views::-webkit-scrollbar, .siem-side::-webkit-scrollbar,
.mail-inbox::-webkit-scrollbar, .mail-read::-webkit-scrollbar, .fb-list::-webkit-scrollbar {
  width: 9px;
}
.screen::-webkit-scrollbar-thumb, .siem-views::-webkit-scrollbar-thumb, .siem-side::-webkit-scrollbar-thumb,
.mail-inbox::-webkit-scrollbar-thumb, .mail-read::-webkit-scrollbar-thumb, .fb-list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.screen::-webkit-scrollbar-track, .siem-views::-webkit-scrollbar-track, .siem-side::-webkit-scrollbar-track,
.mail-inbox::-webkit-scrollbar-track, .mail-read::-webkit-scrollbar-track, .fb-list::-webkit-scrollbar-track {
  background: transparent;
}

/* mobiele dialoogbalken: ruimte voor de notch/home-indicator, zonder iets aan het gedrag te veranderen */
@media (max-width: 700px) {
  .bar, .siem-bar, .mail-bar, .fb-bar, .lg-bar, .sh-bar {
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    padding-right: max(14px, env(safe-area-inset-right, 0px));
  }
}

/* reduced motion: dekt alleen de transform-gebaseerde toevoegingen hierboven af; kleurovergangen blijven staan */
@media (prefers-reduced-motion: reduce) {
  :where(
    .cta-btn, .chips button, .link, .siem .btn, .btn-sm,
    .filebox .btn, .loginbox .btn, .shopbox .btn, .brutebox .btn,
    .mail-attach, .doc-ribbon .btn, .doc-back, .dot-x, .ioc, .lg-submit
  ) {
    transition: border-color var(--dur-base) ease, background var(--dur-base) ease, color var(--dur-base) ease;
  }
  :where(
    .cta-btn, .chips button, .link, .siem .btn, .btn-sm,
    .filebox .btn, .loginbox .btn, .shopbox .btn, .brutebox .btn,
    .mail-attach, .doc-ribbon .btn, .doc-back, .dot-x, .ioc, .lg-submit
  ):active:not(:disabled) {
    transform: none;
  }
  .mailbox[open], .filebox[open], .loginbox[open], .shopbox[open], .brutebox[open], .siem[open], .gamewin[open], .replaybox[open] {
    animation: none;
  }
}
