/* Veilig Online — toegankelijke styling
   Doelgroep: minder digitaal vaardige gebruikers.
   Principes: grote tekst, hoog contrast, ruime knoppen, geen kleine icoontjes alleen. */

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #1a2332;
  --ink-soft: #495468;
  --primary: #1f5fb5;
  --primary-dark: #14437f;
  --good: #1a7a3c;
  --good-soft: #e6f5ec;
  --bad: #b3261e;
  --bad-soft: #fde8e7;
  --warn: #b46a00;
  --line: #d6dde6;
  --focus: #ffbf47;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20,30,50,.06), 0 4px 12px rgba(20,30,50,.06);

  /* Outlook-look tokens — hoisted zodat ook .example-outlook ze kan gebruiken. */
  --ol-blue: #0f6cbd;
  --ol-blue-dark: #115ea3;
  --ol-blue-light: #e8f1fa;
  --ol-bg: #faf9f8;
  --ol-border: #e1dfdd;
  --ol-hover: #f3f2f1;
  --ol-ink: #242424;
  --ol-muted: #616161;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: .75rem 1rem; z-index: 1000;
  border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
  padding: .75rem 1.25rem;
  border-bottom: 2px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { font-size: 1.6rem; }
.brand-title { font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); }

/* ---------- topbar tools (taal/doelgroep/apparaat + sluit-knop) ---------- */
.topbar-tools { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.sim-exit-btn {
  background: var(--bad); color: #fff;
  border: 1px solid var(--bad);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
}
.sim-exit-btn:hover { filter: brightness(.9); }
.sim-exit-btn[hidden] { display: none; }
.lang-switch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.lang-switch:hover { border-color: var(--primary); }

/* ---------- taalkeuzescherm (modal bij eerste bezoek) ---------- */
.lang-picker {
  position: fixed; inset: 0; z-index: 500;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; border: 0;
  background:
    radial-gradient(circle at 20% 20%, #e3f0fb 0%, transparent 45%),
    radial-gradient(circle at 80% 80%, #fde8e7 0%, transparent 45%),
    #f6f8fb;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.lang-picker:not([open]) { display: none; }
.lang-picker-inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20,30,50,.15);
  padding: 2rem 2.25rem;
  max-width: 640px;
  width: 100%;
  text-align: center;
}
.lang-picker-inner h1 {
  font-size: 1.3rem;
  margin: 0 0 .4rem;
  color: var(--primary-dark);
}
.lang-picker-sub { color: var(--ink-soft); margin: 0 0 1.5rem; font-size: .95rem; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.lang-card {
  display: flex; align-items: center; justify-content: flex-start; gap: .85rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s, transform .12s;
}
.lang-card:hover {
  border-color: var(--primary);
  background: #f2f7fd;
  transform: translateY(-1px);
}
.lang-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-flag { font-size: 1.8rem; line-height: 1; }
@media (max-width: 480px) {
  .lang-grid { grid-template-columns: 1fr; }
}

/* ---------- stepbar ---------- */
.stepbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .25rem 0;
  overflow-x: auto;
}
.stepbar ol {
  list-style: none; display: flex; gap: .25rem; padding: .35rem 1rem; margin: 0;
  justify-content: center; flex-wrap: wrap;
}
.stepbar li {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .9rem;
}
.stepbar li.active { background: var(--primary); color: #fff; }
.stepbar .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--bg); color: var(--ink); font-weight: 700;
}
.stepbar li.active .step-num { background: #fff; color: var(--primary-dark); }

/* ---------- main / pages ---------- */
main {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
  outline: none;
  transition: max-width .2s ease;
}

/* Simulatorpagina mag breder */
main:has(.page-wide.active) { max-width: 1320px; }

.page { display: none; }
.page.active { display: block; }
.page.page-wide.active { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

h1 { font-size: 1.55rem; line-height: 1.2; margin: 0 0 .5rem; color: var(--primary-dark); }
h2 { font-size: 1.15rem; margin: 0 0 .35rem; color: var(--ink); }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; }

.lead { font-size: 1rem; color: var(--ink-soft); margin: 0 0 .75rem; }
.big-text { font-size: 1.05rem; }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 0 0 .65rem;
}
.card.big { padding: 1.1rem 1.25rem; }
.card.highlight {
  background: #fff8e1;
  border-color: #f1c40f;
}
body.high-contrast .card.highlight { background: #2a2400; border-color: var(--focus); }

/* ---------- lists ---------- */
ul.check-list { padding-left: 0; list-style: none; margin: .15rem 0; }
ul.check-list li {
  position: relative; padding: .2rem 0 .2rem 1.75rem;
  font-size: .98rem;
}
ul.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: .25rem;
  width: 1.2rem; height: 1.2rem;
  background: var(--good-soft); color: var(--good);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
ol.check-list.numbered { padding-left: 0; counter-reset: step; list-style: none; }
ol.check-list.numbered li {
  position: relative; padding: .3rem 0 .3rem 2.1rem;
  counter-increment: step;
  font-size: .98rem;
}
ol.check-list.numbered li::before {
  content: counter(step);
  position: absolute; left: 0; top: .25rem;
  width: 1.6rem; height: 1.6rem;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}

/* ---------- learn list ---------- */
.learn-list { list-style: none; padding: 0; margin: 0; }
.learn-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: .5rem;
}
/* Nummer bovenin kolom 1; al het andere in kolom 2, ongeacht het element. */
.learn-list .learn-num { grid-column: 1; grid-row: 1; align-self: start; }
.learn-list li > *:not(.learn-num) { grid-column: 2; min-width: 0; }
.learn-list p { margin: 0; }
.learn-num {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- adres-uitleg (na de @) ---------- */
.addr-card {
  background: #fafbfd;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin: .75rem 0 .9rem;
}
body.high-contrast .addr-card { background: #111; }

.addr-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: .8rem;
  word-break: break-all;
  line-height: 1.5;
}
.addr-name   { background: var(--good-soft); color: var(--good); padding: .15rem .4rem; border-radius: 4px; font-weight: 700; }
.addr-at     { display: inline-block; padding: 0 .3rem; font-weight: 800; font-size: 1.4rem; }
.addr-domain { background: var(--bad-soft);  color: var(--bad);  padding: .15rem .4rem; border-radius: 4px; font-weight: 700; }

.addr-points p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: start;
  margin: .35rem 0;
  font-size: 1rem;
}
.addr-tag {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}
.addr-tag.good { background: var(--good-soft); color: var(--good); }
.addr-tag.bad  { background: var(--bad-soft);  color: var(--bad); }

.tip-line {
  background: #fff8e1;
  border-left: 4px solid #f1c40f;
  padding: .6rem .85rem;
  border-radius: 6px;
  margin-top: .5rem;
  font-size: 1rem;
}
body.high-contrast .tip-line { background: #2a2400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .6rem 1.1rem;
  font-size: .95rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 2.4rem;
}
.btn:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-good { background: var(--good); color: #fff; }
.btn-good:hover { filter: brightness(.95); }
.btn-bad  { background: var(--bad);  color: #fff; }
.btn-bad:hover { filter: brightness(.95); }
.big-btn { font-size: 1.02rem; padding: .75rem 1.25rem; min-height: 2.75rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.actions {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .85rem;
}

/* ---------- examples ---------- */
.example-grid { display: grid; gap: 1rem; }

.example-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: .6rem;
  margin-bottom: .8rem;
  display: grid; gap: .25rem;
}
.example-head .from, .example-head .subj { font-size: 1rem; color: var(--ink-soft); }
.badge {
  align-self: start;
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 700;
  background: #eef2f8; color: var(--primary-dark);
  margin-bottom: .35rem;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge.email    { background: #eef2f8; color: var(--primary-dark); }
.badge.sms      { background: #fdf3e7; color: #8a4a00; }
.badge.whatsapp { background: #e6f5ec; color: #075e54; }

.example-body {
  white-space: pre-wrap;
  font-size: 1.05rem;
  background: #fafbfd;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  line-height: 1.6;
}
body.high-contrast .example-body { background: #111; }

mark.phish-mark {
  background: var(--bad-soft);
  color: var(--bad);
  font-weight: 700;
  padding: 0 .15rem;
  border-bottom: 2px solid var(--bad);
}
mark.phish-mark .dot, .annotation-list .dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--bad); color: #fff;
  font-size: .8rem; font-weight: 700;
  margin-left: .25rem;
}

.annotation-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
}
.annotation-list li {
  padding: .45rem 0;
  border-bottom: 1px dotted var(--line);
  font-size: 1rem;
}
.annotation-list li:last-child { border-bottom: 0; }
.annotation-list .dot { margin-right: .4rem; vertical-align: middle; }

/* ---------- quiz ---------- */
.quiz-progress {
  text-align: center; font-weight: 700; color: var(--primary-dark);
  margin-bottom: .75rem;
}
.quiz-card { padding: 1.25rem 1.4rem; }
.quiz-choices {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem;
}
@media (max-width: 480px) {
  .quiz-choices { grid-template-columns: 1fr; }
}

.feedback {
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-top: 1rem;
  border-left: 6px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.feedback.good { border-left-color: var(--good); background: var(--good-soft); }
.feedback.bad  { border-left-color: var(--bad);  background: var(--bad-soft); }

.result-card { text-align: center; padding: 1.75rem; }
.result-card .actions { justify-content: center; }

/* ---------- misc ---------- */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.muted { color: var(--ink-soft); }
.error { color: var(--bad); font-weight: 600; }

.footer {
  text-align: center; color: var(--ink-soft);
  padding: 1.5rem 1rem 2rem;
  font-size: .95rem;
}
.footer-contact {
  margin-top: .4rem;
  font-size: .85rem;
}
.footer-contact a {
  color: var(--ink-soft);
}

/* ---------- cold-start banner (Render Free spin-up) ---------- */
.coldstart-bar {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  background: var(--primary-dark); color: #fff;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  font-size: 1.05rem; font-weight: 600;
  z-index: 100;
  max-width: calc(100% - 2rem);
  text-align: center;
}

/* ==================================================================
   VOORBEELDEN in Outlook-stijl (statisch, geannoteerd)
   ================================================================== */
.example-outlook {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #fff;
  color: var(--ol-ink);
  border: 1px solid var(--ol-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 0 0 1.25rem;
}
.example-outlook + .example-outlook { margin-top: 0; }
.example-outlook .ol-msg-subject { font-size: 1.2rem; }
.example-outlook .ol-msg-body { white-space: pre-wrap; }
.ol-example-addr {
  margin-top: .15rem;
  color: var(--ol-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  word-break: break-all;
}
.ol-sender-addr-inline {
  color: var(--ol-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem;
  font-weight: 400;
  margin-left: .35rem;
  word-break: break-all;
}

/* De annotatie-lijst onder een voorbeeld */
.example-outlook .annotation-list { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--ol-border); }

/* ==================================================================
   OUTLOOK-SIMULATOR — lijkt op Outlook Web zodat oefening herkenbaar is
   ================================================================== */

.sim-intro { margin-bottom: 1rem; }
.sim-progress { color: var(--ink-soft); font-weight: 600; margin: .35rem 0 0; }

.outlook {
  --ol-selected-bar: var(--ol-blue);

  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ol-ink);
  background: #fff;
  border: 1px solid var(--ol-border);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 640px;
  max-height: 82vh;
}

/* --- top blue bar --- */
.ol-topbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .35rem .75rem;
  background: #fff;
  border-bottom: 1px solid var(--ol-border);
}
.ol-brand {
  color: var(--ol-blue);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.ol-iconbtn {
  background: transparent; border: 0; cursor: pointer;
  width: 2rem; height: 2rem; border-radius: 4px;
  font-size: 1rem; color: var(--ol-ink);
}
.ol-iconbtn:hover { background: var(--ol-hover); }
.ol-search {
  position: relative;
  background: var(--ol-hover);
  border-radius: 4px;
  padding: .35rem .6rem .35rem 2rem;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.ol-search-icon { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--ol-muted); }
.ol-search input {
  width: 100%; background: transparent; border: 0; outline: none;
  font: inherit; color: var(--ol-ink);
}
.ol-topright { display: flex; align-items: center; gap: .5rem; }
.ol-avatar {
  background: var(--ol-blue); color: #fff;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}

/* --- ribbon --- */
.ol-ribbon {
  display: flex; align-items: center; gap: 1rem;
  padding: .25rem .75rem .25rem;
  background: #fff;
  border-bottom: 1px solid var(--ol-border);
  font-size: .95rem;
}
.ol-new-btn {
  background: var(--ol-blue); color: #fff;
  border: 0; border-radius: 4px;
  padding: .5rem .9rem;
  font-weight: 600;
  cursor: not-allowed;
  opacity: .9;
}
.ol-tab {
  padding: .6rem .35rem;
  color: var(--ol-ink);
  cursor: default;
  border-bottom: 2px solid transparent;
}
.ol-tab.active { color: var(--ol-blue); border-bottom-color: var(--ol-blue); font-weight: 600; }

/* --- hoofdgrid: iconbalk | mappen | lijst | lezer --- */
.ol-main {
  display: grid;
  grid-template-columns: 48px 220px 340px 1fr;
  min-height: 0;
  height: 100%;
}

.ol-iconnav {
  background: var(--ol-bg);
  border-right: 1px solid var(--ol-border);
  display: flex; flex-direction: column; align-items: center;
  gap: .25rem; padding-top: .5rem;
}
.ol-appicon {
  width: 2.3rem; height: 2.3rem; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: var(--ol-muted); cursor: default;
}
.ol-appicon.active { color: var(--ol-blue); background: #eaf2fb; }

.ol-folders {
  background: var(--ol-bg);
  border-right: 1px solid var(--ol-border);
  padding: .6rem .25rem;
  overflow-y: auto;
}
.ol-folder-group { margin-bottom: 1rem; }
.ol-folder-header {
  font-size: .82rem; text-transform: none;
  color: var(--ol-muted); padding: .25rem .6rem; font-weight: 600;
}
.ol-folders ul { list-style: none; padding: 0; margin: 0; }
.ol-folders li {
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem .75rem;
  border-radius: 4px;
  font-size: .92rem;
  color: var(--ol-ink);
  cursor: default;
}
.ol-folders li[data-folder] { cursor: pointer; }
.ol-folders li:hover { background: var(--ol-hover); }
.ol-folders li.active {
  background: var(--ol-blue-light); color: var(--ol-blue-dark); font-weight: 700;
  position: relative;
}
.ol-folders li.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--ol-selected-bar); border-radius: 2px;
}
.ol-count { color: var(--ol-blue); font-weight: 700; font-size: .85rem; }

/* --- berichtenlijst --- */
.ol-list {
  border-right: 1px solid var(--ol-border);
  display: flex; flex-direction: column; min-height: 0;
}
.ol-list-header {
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--ol-border);
  background: #fff;
}
.ol-list-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--ol-ink); }
.ol-hint { margin: .15rem 0 0; color: var(--ol-muted); font-size: .85rem; }
.ol-list ol { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; }

.ol-item {
  display: grid; grid-template-columns: 20px 1fr; gap: .5rem;
  padding: .55rem .75rem;
  border-bottom: 1px solid var(--ol-border);
  cursor: pointer;
  position: relative;
}
.ol-item:hover { background: var(--ol-hover); }
.ol-item.active { background: var(--ol-blue-light); }
.ol-item.active::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--ol-selected-bar); border-radius: 2px;
}
.ol-unread {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ol-blue); display: inline-block; margin-top: 8px;
  justify-self: center;
}
.ol-status {
  justify-self: center; margin-top: 4px;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
}
.ol-status.good { background: var(--good-soft); color: var(--good); }
.ol-status.bad  { background: var(--bad-soft);  color: var(--bad); }

.ol-item-main { min-width: 0; }
.ol-item-top { display: flex; justify-content: space-between; gap: .5rem; }
.ol-item-sender { font-weight: 700; color: var(--ol-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-item-time { color: var(--ol-muted); font-size: .8rem; white-space: nowrap; }
.ol-item-subject { color: var(--ol-ink); font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ol-item-preview { color: var(--ol-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ol-item.judged .ol-item-sender,
.ol-item.judged .ol-item-subject { color: var(--ol-muted); font-weight: 500; }

.ol-loading { padding: 1rem; color: var(--ol-muted); list-style: none; }

/* --- leesvenster --- */
.ol-reader {
  background: #fff;
  overflow-y: auto;
  min-height: 0;
}
.ol-reader-inner { padding: 1.25rem 1.5rem 2rem; max-width: 760px; margin: 0 auto; }
.ol-reader-empty {
  text-align: center; padding: 4rem 1rem; color: var(--ol-muted);
}
.ol-reader-empty-art { font-size: 3rem; margin-bottom: .5rem; }

.ol-msg-head { border-bottom: 1px solid var(--ol-border); padding-bottom: .75rem; margin-bottom: 1rem; }
.ol-msg-subject { font-size: 1.35rem; margin: 0 0 .75rem; color: var(--ol-ink); font-weight: 700; }
.ol-msg-sender-row { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; }
.ol-avatar-lg { width: 2.6rem; height: 2.6rem; font-size: 1rem; }
.ol-msg-sender-name { color: var(--ol-ink); font-size: 1rem; }
.ol-msg-sender-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ol-msg-time { color: var(--ol-muted); font-size: .85rem; margin-top: .25rem; }

.ol-msg-body {
  font-size: 1rem; line-height: 1.65; white-space: pre-wrap;
  color: var(--ol-ink);
  word-wrap: break-word;
}
.ol-msg-body br { display: block; content: ""; }
.ol-link {
  color: var(--ol-blue); text-decoration: underline;
  cursor: pointer;
}
.ol-link:hover { color: var(--ol-blue-dark); }
.ol-link-url {
  color: var(--ol-muted); font-size: .85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-left: .2rem;
}

.ol-msg-actions {
  margin-top: 1.75rem; padding-top: 1rem;
  border-top: 1px solid var(--ol-border);
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.ol-msg-actions.judged { color: var(--ol-muted); }
.ol-verdict-q { width: 100%; font-weight: 700; margin: 0; color: var(--ol-ink); }

/* --- Modal --- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: transparent; }
.modal:not([open]) { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,30,50,.5); }
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.1rem;
  width: min(780px, calc(100% - 1.5rem));
  max-height: 94vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  border-top: 6px solid var(--primary);
}
.modal-card.good { border-top-color: var(--good); }
.modal-card.bad  { border-top-color: var(--bad); }
.modal-card h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.modal-card p  { margin: .4rem 0; }
.modal-card ul.check-list { margin: .25rem 0 .5rem; }
.modal-card ul.check-list li { padding: .2rem 0 .2rem 1.75rem; font-size: 1rem; }
.modal-card ul.check-list li::before { width: 1.2rem; height: 1.2rem; top: .25rem; font-size: .85rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .9rem; }

.url-preview {
  background: #f5f5f5; border: 1px solid var(--ol-border);
  padding: .6rem .8rem; border-radius: 4px; word-break: break-all;
  font-size: 1rem;
}
.url-preview.bad { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }

/* --- Responsive: stack onder 1000px --- */
@media (max-width: 1000px) {
  .ol-main { grid-template-columns: 44px 1fr; grid-template-areas: "iconnav list" "iconnav reader"; }
  .ol-folders { display: none; }
  .ol-list { grid-area: list; border-right: 0; border-bottom: 1px solid var(--ol-border); max-height: 260px; }
  .ol-reader { grid-area: reader; }
}
@media (max-width: 640px) {
  .ol-main { grid-template-columns: 1fr; grid-template-areas: "list" "reader"; }
  .ol-iconnav { display: none; }
  .ol-search { display: none; }
  .ol-reader-inner { padding: 1rem; }
}

/* ---------- simulator fullscreen (volledig scherm) ----------
   De topbar blijft zichtbaar: daarin staan de taal/doelgroep/
   apparaat-wissel knoppen én de sluit-oefening-knop, net zoals
   gebruikers die elders verwachten. De stepbar en footer gaan
   weg om de simulator de breedte te geven. */
body.sim-fullscreen .stepbar,
body.sim-fullscreen .footer,
body.sim-fullscreen .coldstart-bar { display: none !important; }

body.sim-fullscreen {
  background: #fff;
  --topbar-h: 64px;
}
body.sim-fullscreen main {
  max-width: 100vw !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.sim-fullscreen #simulator { min-height: calc(100dvh - var(--topbar-h)); }
body.sim-fullscreen .outlook {
  min-height: calc(100dvh - var(--topbar-h));
  max-height: calc(100dvh - var(--topbar-h));
  border: 0;
  border-radius: 0;
}

/* ---------- simulator fases ---------- */
.sim-phase[hidden] { display: none !important; }
.sim-phase-center {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background: #fafafa;
}

/* Welkomsscherm */
.sim-welcome-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20,30,50,.08);
  padding: 2rem 2.25rem;
  max-width: 620px;
  width: 100%;
}
.sim-welcome-card h2 {
  font-size: 1.45rem;
  margin: 0 0 .5rem;
  color: var(--primary-dark);
}
.sim-welcome-card .lead { margin-bottom: 1rem; }
.sim-welcome-card .actions { justify-content: center; margin-top: 1.25rem; }

/* Doelgroep-picker hergebruikt de styling van de taal-picker; alleen
   het 2-kolomsraster is nieuw. */
.lang-grid-2 { grid-template-columns: 1fr 1fr; }
.lang-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) {
  .lang-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lang-grid-2 { grid-template-columns: 1fr; }
}

/* MFA-getal in de nagebootste Microsoft-login (alleen zakelijk). */
.ms-mfa { margin-top: .75rem; text-align: center; }
.ms-mfa-lead { margin: 0 0 .75rem; color: #333; }
.ms-mfa-number {
  font-size: 2.75rem; font-weight: 700; letter-spacing: .15em;
  color: #0067c0;
  background: #f3f3f3; border: 1px solid #d1d1d1; border-radius: 4px;
  padding: .4rem .75rem; display: inline-block; min-width: 5rem;
}
.ms-mfa-status { margin: .85rem 0 0; font-size: .9rem; color: #605e5c; }
.ms-mfa-status .ms-spinner { margin-right: .4rem; vertical-align: -2px; }

/* Persoonlijk- vs zakelijk-keuzevraag + knoppen voor de simulator. */
.sim-choice-q { margin-top: 1.25rem; margin-bottom: .5rem; font-weight: 600; }
.actions-choice { flex-direction: column; gap: .6rem; align-items: stretch; }
.actions-choice .big-btn { width: 100%; text-align: left; padding: .85rem 1rem; line-height: 1.4; }
.actions-choice .big-btn small { display: block; font-weight: 400; opacity: .85; font-size: .9em; }
@media (min-width: 640px) {
  .actions-choice { flex-direction: row; }
  .actions-choice .big-btn { flex: 1; }
}

/* Microsoft-login */
.ms-login {
  background:
    radial-gradient(circle at 20% 20%, #e3f0fb 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #e9f4e9 0%, transparent 40%),
    #f2f2f2;
  width: 100%;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.ms-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  padding: 2rem 2.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #1b1b1b;
}
.ms-logo {
  display: flex; align-items: center; gap: .35rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.ms-logo .ms-sq {
  display: inline-block; width: 10px; height: 10px;
}
.ms-logo .ms-sq-r { background: #f25022; }
.ms-logo .ms-sq-g { background: #7fba00; }
.ms-logo .ms-sq-b { background: #00a4ef; }
.ms-logo .ms-sq-y { background: #ffb900; }
.ms-logo .ms-wordmark { color: #5e5e5e; margin-left: .4rem; font-weight: 600; letter-spacing: -.02em; }

.ms-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 .75rem; color: #1b1b1b; }
.ms-subtitle { font-size: .95rem; margin: 0 0 1.25rem; color: #5e5e5e; }

.ms-field { margin-bottom: .75rem; }
.ms-input {
  display: flex; align-items: center;
  border: 0; border-bottom: 1px solid #666;
  padding: .55rem .1rem;
  font-size: 1rem; background: #fff;
}
.ms-input .ms-input-text { letter-spacing: .02em; color: #1b1b1b; }
.ms-input-pw .ms-input-text { letter-spacing: .35em; font-size: 1.1rem; line-height: 1; }
.ms-caret {
  display: inline-block; margin-left: 1px;
  animation: ms-blink 1s steps(1) infinite;
  color: #0067b8;
  font-weight: 300;
}
@keyframes ms-blink { 50% { opacity: 0; } }

.ms-link-row {
  font-size: .85rem;
  margin: .5rem 0 .25rem;
}
.ms-link-row a { color: #0067b8; text-decoration: none; }
.ms-link-row a:hover { text-decoration: underline; }

.ms-actions {
  display: flex; justify-content: flex-end; gap: .5rem;
  margin-top: 1.25rem;
}
.ms-btn {
  border: 0; padding: .55rem 1.2rem;
  font-family: inherit; font-size: .95rem;
  cursor: pointer; min-width: 108px;
  border-radius: 0;
}
.ms-btn-primary { background: #0067b8; color: #fff; }
.ms-btn-primary:hover { background: #005a9e; }
.ms-btn-ghost { background: #e9e9e9; color: #1b1b1b; }
.ms-btn-ghost:hover { background: #dddddd; }
.ms-btn-pressed { transform: translateY(1px); filter: brightness(.92); }

.ms-status {
  margin-top: 1rem; font-size: .95rem; color: #5e5e5e;
  display: flex; align-items: center; gap: .6rem;
}
.ms-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #cfcfcf; border-top-color: #0067b8;
  animation: ms-spin .9s linear infinite;
  display: inline-block;
}
@keyframes ms-spin { to { transform: rotate(360deg); } }

/* ---------- print: alleen tips meenemen ---------- */
@media print {
  .topbar, .stepbar, .footer, .actions, .page:not(#hulp) { display: none !important; }
  .page#hulp { display: block !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #aaa; page-break-inside: avoid; }
}

/* ========================================================
   Nagebootste Microsoft Teams / OneDrive deel-kaart.
   Wordt gerenderd binnen .ol-msg-body wanneer de seed-body
   HTML bevat (begint met een '<'-teken). Voor SharePoint-
   scenario's zodat het voelt als een echte share-uitnodiging.
   ======================================================== */
.ol-msg-body .ol-share-card,
.mob-reader-body .ol-share-card {
  max-width: 520px;
  margin: 1rem auto;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow: hidden;
}
.ol-share-head {
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}
.ol-share-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: #0067c0;
  margin-bottom: .6rem;
}
.ol-share-heading {
  font-size: 1.15rem; font-weight: 600; color: #201f1e;
  margin: 0; line-height: 1.4;
}
.ol-share-body {
  padding: 1.25rem 1.5rem;
  background: #faf9f8;
}
.ol-share-msg {
  margin: 0 0 1rem;
  padding: .6rem .8rem;
  background: #fff;
  border-left: 3px solid #0067c0;
  border-radius: 2px;
  color: #323130;
  font-style: italic;
}
.ol-share-intro {
  margin: 0 0 1rem;
  color: #323130;
}
.ol-share-file {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .9rem;
  background: #fff;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  margin: 0 0 1rem;
}
.ol-share-file-ico {
  font-size: 1.6rem; line-height: 1;
}
.ol-share-file-name {
  font-weight: 600; color: #201f1e;
}
.ol-share-protection {
  display: flex; align-items: center; gap: .4rem;
  font-size: .85rem; color: #605e5c;
  margin: 0 0 1.2rem;
}
.ol-share-actions {
  display: flex; flex-direction: column; align-items: stretch;
  gap: .45rem;
}
/* Binnen de share-kaart wordt de renderBody-link getoond als Teams-
   knop: een blauw label. De URL staat eronder in kleine grijze tekst
   zodat de gebruiker het domein nog steeds kan beoordelen. */
.ol-share-actions .ol-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ol-share-actions .ol-link-label {
  display: inline-block;
  padding: .55rem 1.4rem;
  background: #0067c0; color: #fff;
  border-radius: 2px;
  font-weight: 600;
  font-size: .95rem;
}
.ol-share-actions .ol-link:hover .ol-link-label { background: #004e8c; }
.ol-share-actions .ol-link-url {
  display: block;
  margin-top: .35rem;
  color: #605e5c;
  font-size: .78rem;
  font-weight: 400;
  word-break: break-all;
  text-align: left;
  opacity: 1;
}

/* ========================================================
   Mobiele simulators — apparaat-keuze en device-frame.
   ======================================================== */

/* Device-picker op de sim-intropagina: drie knoppen naast elkaar
   met een groot pictogram bovenaan en de label eronder. */
.sim-device-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin-top: .75rem;
}
.sim-device-btn {
  display: flex; flex-direction: column; align-items: center; gap: .25rem;
  padding: 1rem .5rem;
  font-size: .95rem;
}
.sim-device-btn .sim-device-ico {
  font-size: 1.9rem;
  line-height: 1;
}
@media (max-width: 480px) {
  .sim-device-grid { grid-template-columns: 1fr; }
}

/* Device-frame: wrapper die een fysieke telefoon nabootst. De
   specifieke chrome (notch/statusbar/navbar/home-indicator) wordt
   ingeschakeld door de .device-android of .device-iphone klasse op
   de <body>. */
#sim-phase-mobile {
  padding: 1.5rem 1rem;
  display: flex; align-items: flex-start; justify-content: center;
}
.device-frame {
  position: relative;
  width: 390px;
  height: min(780px, calc(100vh - 120px));
  background: #000;
  border-radius: 44px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 0 2px #222;
  padding: 12px;
  overflow: hidden;
}
.device-screen {
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.device-notch { display: none; }
.device-statusbar, .device-homebar { display: none; }

/* Wanneer er wel een skin actief is, moet mob-app de middenruimte
   pakken tussen statusbar en homebar. */
.device-screen > .mob-app { flex: 1; min-height: 0; }

/* (de oude .device-exit-btn is verhuisd naar de site-topbar als #sim-exit-btn) */

/* Op een echte telefoon (smal viewport) heeft een telefoon-in-telefoon
   geen zin: laat de mail-client gewoon het volledige scherm vullen.
   Het echte besturingssysteem levert al een statusbalk + home-indicator. */
/* Op een echte telefoon (smal viewport) heeft een telefoon-in-telefoon
   geen zin: laat de mail-client gewoon het volledige scherm vullen.
   Het echte besturingssysteem levert al een statusbalk + home-indicator. */
@media (max-width: 600px) {
  body.sim-fullscreen { --topbar-h: 52px; }
  #sim-phase-mobile {
    padding: 0;
    min-height: calc(100dvh - var(--topbar-h, 52px));
    background: transparent;
    align-items: stretch;
    justify-content: stretch;
  }
  /* sim-phase-center default heeft min-height:100vh — overrulen voor de
     ingewikkelde layout-keten op een echte telefoon. */
  .sim-phase-center#sim-phase-mobile { min-height: calc(100dvh - var(--topbar-h, 52px)); }
  .device-frame {
    width: 100% !important;
    max-width: none !important;
    height: calc(100dvh - var(--topbar-h, 52px)) !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .device-screen {
    inset: 0 !important;
    border-radius: 0 !important;
  }
  body.device-iphone .device-notch,
  body.device-iphone .device-statusbar,
  body.device-iphone .device-homebar,
  body.device-android .device-statusbar,
  body.device-android .device-homebar {
    display: none !important;
  }
  /* Topbar compacter op smal viewport zodat hij niet wraps. */
  .topbar { padding: .35rem .65rem; }
  .topbar-tools { gap: .25rem; }
  .lang-switch { padding: .25rem .5rem; font-size: .78rem; }
  .sim-exit-btn { padding: .25rem .55rem; font-size: .78rem; }
  .brand-title { font-size: 1rem; }
  .brand-mark { font-size: 1.2rem; }
}

/* ========================================================
   Android device chrome — wordt ingeschakeld door
   body.device-android. Statusbalk boven, home-indicator
   (gestures) onder. Geen fysieke notch.
   ======================================================== */
body.device-android .device-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 24px;
  padding: 0 12px;
  background: #fff;
  color: #202124;
  font-size: .72rem;
  font-weight: 500;
  flex-shrink: 0;
}
body.device-android .device-statusbar .device-status-right {
  display: inline-flex; gap: 4px; align-items: center;
}
body.device-android .device-statusbar .device-signal { letter-spacing: 1px; font-size: .7rem; }
body.device-android .device-homebar {
  display: block;
  height: 20px;
  background: #fff;
  border-top: 1px solid #eee;
  position: relative;
  flex-shrink: 0;
}
body.device-android .device-homebar::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 4px;
  background: #202124; border-radius: 999px;
}
body.device-android .device-frame { background: #000; border-radius: 32px; }
body.device-android .device-screen { border-radius: 24px; background: #fff; }

/* ========================================================
   Outlook Mobile skin (zakelijk).
   Eén-paneel layout: berichtenlijst OF reader, met terug-
   knop. Herkenbare Microsoft-blauwe topbar.
   ======================================================== */
.mob-app { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

.mob-outlook .mob-topbar {
  background: #0078d4;
  color: #fff;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  min-height: 54px;
}
.mob-outlook .mob-btn {
  background: transparent; border: 0; color: #fff;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.mob-outlook .mob-btn:active { opacity: .75; }
.mob-outlook .mob-title {
  flex: 1;
  font-size: 1.15rem; font-weight: 600; margin: 0;
  letter-spacing: .01em;
}
.mob-outlook .mob-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #0078d4;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}

/* Berichtenlijst */
.mob-outlook .mob-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; overflow-y: auto;
  background: #fff;
}
.mob-outlook .mob-item {
  display: flex; gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}
.mob-outlook .mob-item:active { background: #f3f2f1; }
.mob-outlook .mob-item.judged { opacity: .55; }
.mob-outlook .mob-item-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #cce4f7; color: #0078d4;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  flex-shrink: 0;
}
.mob-outlook .mob-item-body { flex: 1; min-width: 0; }
.mob-outlook .mob-item-top {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.mob-outlook .mob-item-sender {
  font-weight: 600; color: #201f1e; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-outlook .mob-item-time {
  font-size: .78rem; color: #605e5c; flex-shrink: 0;
}
.mob-outlook .mob-item-subject {
  font-size: .9rem; color: #201f1e; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.mob-outlook .mob-item-preview {
  font-size: .82rem; color: #605e5c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-outlook .mob-item-status {
  margin-left: 6px; font-size: .8rem;
}
.mob-outlook .mob-item-status.good { color: #0f7b0f; }
.mob-outlook .mob-item-status.bad { color: #d13438; }

/* Reader (overlay over de lijst) */
.mob-outlook .mob-reader {
  position: absolute; inset: 0;
  background: #fff;
  display: flex; flex-direction: column;
  z-index: 5;
}
.mob-outlook .mob-reader[hidden] { display: none; }
.mob-outlook .mob-reader-head {
  background: #0078d4; color: #fff;
  padding: 10px 8px;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  min-height: 54px;
}
.mob-outlook .mob-reader-content {
  flex: 1; overflow-y: auto;
  padding: 16px;
}
.mob-outlook .mob-reader-subject {
  font-size: 1.2rem; font-weight: 600; color: #201f1e;
  margin: 0 0 12px;
  line-height: 1.35;
}
.mob-outlook .mob-reader-sender {
  display: flex; gap: 10px; align-items: flex-start;
  padding-bottom: 12px; border-bottom: 1px solid #e1dfdd;
  margin-bottom: 14px;
}
.mob-outlook .mob-reader-sender .mob-avatar {
  width: 36px; height: 36px;
}
.mob-outlook .mob-reader-name { font-weight: 600; color: #201f1e; font-size: .95rem; }
.mob-outlook .mob-reader-addr { color: #605e5c; font-size: .82rem; word-break: break-all; }
.mob-outlook .mob-reader-to { color: #605e5c; font-size: .78rem; margin-top: 2px; }
.mob-outlook .mob-reader-body {
  color: #201f1e; font-size: .94rem; line-height: 1.55;
  word-wrap: break-word;
}
.mob-outlook .mob-reader-body p { margin: 0 0 .75em; }
.mob-outlook .mob-reader-body a.ol-link { color: #0078d4; text-decoration: underline; }

/* Verdict-knoppen onderaan reader */
.mob-outlook .mob-verdict {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  border-top: 1px solid #e1dfdd;
  background: #faf9f8;
  flex-shrink: 0;
}
.mob-outlook .mob-verdict-q {
  margin: 0 0 4px;
  font-size: .95rem; font-weight: 600; color: #201f1e;
  text-align: center;
}
.mob-outlook .mob-verdict button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 600;
  cursor: pointer;
}
.mob-outlook .mob-verdict .btn-good {
  background: #1a7a3c; color: #fff; border-color: #1a7a3c;
}
.mob-outlook .mob-verdict .btn-bad {
  background: #b3261e; color: #fff; border-color: #b3261e;
}
.mob-outlook .mob-verdict.judged { text-align: center; color: #605e5c; font-size: .85rem; padding: 14px; }

/* ========================================================
   iPhone device chrome — Dynamic Island, iOS statusbar,
   home-indicator. Ingeschakeld door body.device-iphone.
   ======================================================== */
body.device-iphone .device-frame {
  background: #0a0a0a;
  border-radius: 52px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.35),
    0 0 0 2px #1f1f1f,
    inset 0 0 0 1px #333;
}
body.device-iphone .device-screen {
  border-radius: 42px;
  background: #fff;
  inset: 12px;
}
body.device-iphone .device-notch {
  display: block;
  position: absolute;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  width: 120px; height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
}
body.device-iphone .device-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  height: 44px;
  padding: 14px 28px 0;
  background: transparent;
  color: #000;
  font-size: .78rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}
body.device-iphone .device-statusbar .device-time {
  font-variant-numeric: tabular-nums;
}
body.device-iphone .device-statusbar .device-status-right {
  display: inline-flex; gap: 5px; align-items: center;
  font-size: .7rem;
}
body.device-iphone .device-statusbar .device-signal { letter-spacing: 1px; font-size: .65rem; }
body.device-iphone .device-homebar {
  display: block;
  height: 22px;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
body.device-iphone .device-homebar::after {
  content: "";
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  background: #000; border-radius: 999px;
}

/* ========================================================
   Gmail Android skin (privé + Android).
   Materiaal-stijl: zoekbalk als topbar, ronde avatars,
   FAB rechtsonder, geen titelbalk.
   ======================================================== */
.mob-gmail .mob-topbar {
  background: #f6f8fc;
  padding: 8px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #e0e4ea;
  min-height: 58px;
  flex-shrink: 0;
}
.mob-gmail .mob-btn {
  background: transparent; border: 0;
  color: #5f6368;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.mob-gmail .mob-search {
  flex: 1;
  background: #ebeef3;
  border-radius: 999px;
  padding: 8px 14px;
  color: #5f6368;
  font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
}
.mob-gmail .mob-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #d93025; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
  flex-shrink: 0;
}

/* Lijst */
.mob-gmail .mob-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; overflow-y: auto;
  background: #fff;
}
.mob-gmail .mob-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px 14px 14px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.mob-gmail .mob-item:active { background: #eef2f9; }
.mob-gmail .mob-item.judged { opacity: .6; }
.mob-gmail .mob-item-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #1a73e8; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem;
  flex-shrink: 0;
}
/* Subtle color rotation so niet elke avatar hetzelfde blauw is. */
.mob-gmail .mob-item:nth-child(3n) .mob-item-avatar { background: #d93025; }
.mob-gmail .mob-item:nth-child(3n+1) .mob-item-avatar { background: #f9ab00; }
.mob-gmail .mob-item:nth-child(3n+2) .mob-item-avatar { background: #188038; }
.mob-gmail .mob-item-body { flex: 1; min-width: 0; }
.mob-gmail .mob-item-top {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
}
.mob-gmail .mob-item-sender {
  font-weight: 600; color: #202124; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-gmail .mob-item-time { font-size: .78rem; color: #5f6368; flex-shrink: 0; }
.mob-gmail .mob-item-subject {
  font-size: .88rem; color: #202124;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.mob-gmail .mob-item-preview {
  font-size: .82rem; color: #5f6368;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-gmail .mob-item-status { margin-left: 6px; font-size: .8rem; }
.mob-gmail .mob-item-status.good { color: #188038; }
.mob-gmail .mob-item-status.bad { color: #d93025; }

/* FAB — "Opstellen". Decoratief, niet klikbaar bedoeld. */
.mob-gmail .mob-fab {
  position: absolute; right: 22px; bottom: 44px;
  width: 56px; height: 56px; border-radius: 16px;
  background: #c2e7ff; color: #001d35;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 6px rgba(0,0,0,.2);
  z-index: 4;
  cursor: default;
}

/* Reader — Gmail stijl */
.mob-gmail .mob-reader {
  position: absolute; inset: 0;
  background: #fff;
  display: flex; flex-direction: column;
  z-index: 5;
}
.mob-gmail .mob-reader[hidden] { display: none; }
.mob-gmail .mob-reader-head {
  background: #f6f8fc;
  padding: 10px 4px;
  display: flex; align-items: center; gap: 0;
  flex-shrink: 0;
  border-bottom: 1px solid #e0e4ea;
  min-height: 54px;
}
.mob-gmail .mob-reader-head .mob-btn-back {
  color: #5f6368;
}
.mob-gmail .mob-reader-head-spacer { flex: 1; }
.mob-gmail .mob-reader-content { flex: 1; overflow-y: auto; padding: 16px; }
.mob-gmail .mob-reader-subject {
  font-size: 1.25rem; font-weight: 400; color: #202124;
  margin: 0 0 14px; line-height: 1.35;
}
.mob-gmail .mob-reader-sender {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 1px solid #e0e4ea;
  margin-bottom: 16px;
}
.mob-gmail .mob-reader-sender .mob-avatar {
  width: 40px; height: 40px; font-size: 1rem;
  background: #1a73e8;
}
.mob-gmail .mob-reader-name { font-weight: 600; color: #202124; font-size: .95rem; }
.mob-gmail .mob-reader-addr { color: #5f6368; font-size: .82rem; word-break: break-all; }
.mob-gmail .mob-reader-to { color: #5f6368; font-size: .78rem; margin-top: 2px; }
.mob-gmail .mob-reader-body {
  color: #202124; font-size: .94rem; line-height: 1.6;
  word-wrap: break-word;
}
.mob-gmail .mob-reader-body p { margin: 0 0 .75em; }
.mob-gmail .mob-reader-body a.ol-link { color: #1a73e8; }

/* Verdict onder reader */
.mob-gmail .mob-verdict {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px;
  border-top: 1px solid #e0e4ea;
  background: #f6f8fc;
  flex-shrink: 0;
}
.mob-gmail .mob-verdict-q {
  margin: 0 0 4px;
  font-size: .95rem; font-weight: 600; color: #202124;
  text-align: center;
}
.mob-gmail .mob-verdict button {
  width: 100%;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 600;
  cursor: pointer;
}
.mob-gmail .mob-verdict .btn-good {
  background: #e6f4ea; color: #0d652d;
  border-color: #81c995;
}
.mob-gmail .mob-verdict .btn-bad {
  background: #fce8e6; color: #a50e0e;
  border-color: #f28b82;
}
.mob-gmail .mob-verdict.judged { text-align: center; color: #5f6368; font-size: .85rem; padding: 14px; }

/* ========================================================
   Apple Mail iOS skin (privé + iPhone).
   Grote sf-achtige titel, zoekbalk eronder, blauwe link-
   kleuren, iOS-style verdict-knoppen.
   ======================================================== */
.mob-applemail {
  font-family: -apple-system, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
}
.mob-applemail .mob-topbar {
  background: #f6f6f6;
  padding: 8px 16px 10px;
  display: flex; flex-direction: column;
  border-bottom: 0.5px solid #c6c6c8;
  flex-shrink: 0;
}
.mob-applemail .mob-topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 32px;
}
.mob-applemail .mob-btn {
  background: transparent; border: 0;
  color: #007aff;
  font-size: .95rem; font-weight: 400;
  padding: 4px 0;
  cursor: pointer;
}
.mob-applemail .mob-btn-back {
  display: inline-flex; align-items: center; gap: 2px;
  color: #007aff; font-size: 1rem;
}
.mob-applemail .mob-title {
  font-size: 1.75rem; font-weight: 700; color: #000;
  margin: 4px 0 8px;
  letter-spacing: -.02em;
}
.mob-applemail .mob-search {
  background: #e3e3e8;
  border-radius: 10px;
  padding: 7px 12px;
  color: #8e8e93;
  font-size: .92rem;
  display: flex; align-items: center; gap: 6px;
}

/* Lijst — iOS stijl */
.mob-applemail .mob-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; overflow-y: auto;
  background: #fff;
}
.mob-applemail .mob-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px 12px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid #e5e5ea;
  position: relative;
}
.mob-applemail .mob-item::before {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #007aff;
}
.mob-applemail .mob-item.judged::before {
  background: transparent;
}
.mob-applemail .mob-item:active { background: #f2f2f7; }
.mob-applemail .mob-item.judged { opacity: .55; }
.mob-applemail .mob-item-avatar {
  display: none;
}
.mob-applemail .mob-item-body { flex: 1; min-width: 0; padding-left: 14px; }
.mob-applemail .mob-item-top {
  display: flex; justify-content: space-between; gap: 8px;
  margin-bottom: 2px;
  align-items: baseline;
}
.mob-applemail .mob-item-sender {
  font-weight: 700; color: #000; font-size: 1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-applemail .mob-item-time {
  font-size: .82rem; color: #8e8e93; flex-shrink: 0;
}
.mob-applemail .mob-item-subject {
  font-size: .92rem; color: #000;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 1px;
}
.mob-applemail .mob-item-preview {
  font-size: .88rem; color: #8e8e93;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mob-applemail .mob-item-status { margin-left: 6px; font-size: .8rem; }
.mob-applemail .mob-item-status.good { color: #34c759; }
.mob-applemail .mob-item-status.bad { color: #ff3b30; }

/* Reader — iOS style */
.mob-applemail .mob-reader {
  position: absolute; inset: 0;
  background: #fff;
  display: flex; flex-direction: column;
  z-index: 5;
}
.mob-applemail .mob-reader[hidden] { display: none; }
.mob-applemail .mob-reader-head {
  background: #f6f6f6;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  border-bottom: 0.5px solid #c6c6c8;
  min-height: 48px;
}
.mob-applemail .mob-reader-head .mob-btn-back {
  font-size: 1.05rem;
}
.mob-applemail .mob-reader-content { flex: 1; overflow-y: auto; padding: 16px; }
.mob-applemail .mob-reader-subject {
  font-size: 1.4rem; font-weight: 700; color: #000;
  margin: 0 0 14px; line-height: 1.3;
  letter-spacing: -.01em;
}
.mob-applemail .mob-reader-sender {
  display: flex; gap: 12px; align-items: flex-start;
  padding-bottom: 14px; border-bottom: 0.5px solid #e5e5ea;
  margin-bottom: 16px;
}
.mob-applemail .mob-reader-sender .mob-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #c7c7cc; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .95rem;
  flex-shrink: 0;
}
.mob-applemail .mob-reader-name { font-weight: 600; color: #000; font-size: .98rem; }
.mob-applemail .mob-reader-addr { color: #8e8e93; font-size: .82rem; word-break: break-all; }
.mob-applemail .mob-reader-to { color: #8e8e93; font-size: .78rem; margin-top: 2px; }
.mob-applemail .mob-reader-body {
  color: #000; font-size: .94rem; line-height: 1.6;
  word-wrap: break-word;
}
.mob-applemail .mob-reader-body p { margin: 0 0 .75em; }
.mob-applemail .mob-reader-body a.ol-link { color: #007aff; }

/* Verdict-knoppen iOS style */
.mob-applemail .mob-verdict {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px;
  border-top: 0.5px solid #c6c6c8;
  background: #f6f6f6;
  flex-shrink: 0;
}
.mob-applemail .mob-verdict-q {
  margin: 0 0 4px;
  font-size: .95rem; font-weight: 600; color: #000;
  text-align: center;
}
.mob-applemail .mob-verdict button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 0;
  font-size: 1rem; font-weight: 600;
  cursor: pointer;
}
.mob-applemail .mob-verdict .btn-good {
  background: #34c759; color: #fff;
}
.mob-applemail .mob-verdict .btn-bad {
  background: #ff3b30; color: #fff;
}
.mob-applemail .mob-verdict.judged { text-align: center; color: #8e8e93; font-size: .85rem; padding: 14px; }

/* ========================================================
   Mobile folder drawer — verschijnt als de gebruiker op de
   hamburger/Mailboxes-knop tikt. Toont Postvak IN + Ongewenste
   e-mail. Alle drie de skins krijgen dezelfde structuur; de
   header kleurt mee met de skin via override-selectoren.
   ======================================================== */
.mob-drawer {
  position: absolute; inset: 0;
  background: #fff;
  display: flex; flex-direction: column;
  z-index: 6;
}
.mob-drawer[hidden] { display: none; }
.mob-drawer-head {
  padding: 10px 8px;
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  min-height: 54px;
  border-bottom: 1px solid #e1dfdd;
}
.mob-drawer-title {
  font-size: 1.1rem; font-weight: 600; margin: 0;
  flex: 1;
}
.mob-drawer-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; overflow-y: auto;
}
.mob-drawer-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.mob-drawer-list li:active { background: #f3f2f1; }
.mob-drawer-ico { font-size: 1.3rem; line-height: 1; }
.mob-drawer-label { flex: 1; font-size: .95rem; font-weight: 500; }
.mob-drawer-count { font-size: .8rem; color: #605e5c; }

/* Skin-specifieke drawer-headers */
.mob-outlook .mob-drawer-head { background: #0078d4; color: #fff; }
.mob-outlook .mob-drawer-head .mob-btn { color: #fff; }
.mob-gmail .mob-drawer-head   { background: #f6f8fc; color: #202124; }
.mob-gmail .mob-drawer-head .mob-btn { color: #5f6368; }
.mob-applemail .mob-drawer-head {
  background: #f6f6f6; color: #000;
  border-bottom: 0.5px solid #c6c6c8;
}
.mob-applemail .mob-drawer-head .mob-btn { color: #007aff; }
.mob-applemail .mob-drawer-list li { border-bottom: 0.5px solid #e5e5ea; }

/* Junk-body — de Nigeriaanse prins leest lekker in een smallere
   kolom met iets grotere regelhoogte op telefoonformaat. */
.mob-reader-body.mob-junk-body p { margin-bottom: 1em; }
.mob-junk-note {
  padding: 14px;
  border-top: 1px solid #e1dfdd;
  background: #faf9f8;
  color: #605e5c;
  font-size: .85rem;
  line-height: 1.5;
  flex-shrink: 0;
}
.mob-applemail .mob-junk-note {
  background: #f6f6f6;
  border-top: 0.5px solid #c6c6c8;
  color: #636366;
}
.mob-gmail .mob-junk-note {
  background: #f6f8fc;
  border-top: 1px solid #e0e4ea;
  color: #5f6368;
}

/* ========================================================
   Print-versie van de training. Standaard verborgen; alleen
   zichtbaar tijdens window.print() via @media print.
   ======================================================== */
.print-view { display: none; }
.sim-print-or {
  margin: 1.25rem 0 .5rem;
  font-size: .9rem; color: var(--ink-soft);
  text-align: center;
}
.sim-print-btn { font-size: .95rem; }
.sim-print-btn[data-i18n-html] strong { font-weight: 700; }

@media print {
  /* Sla alles wat niet de print-view is over. */
  body > *:not(.print-view) { display: none !important; }
  .print-view { display: block !important; }
  body { background: #fff !important; color: #000; }

  .print-page {
    page-break-after: always;
    break-after: page;
    padding: 1.8cm 1.6cm;
    max-width: 100%;
    color: #000;
  }
  .print-page:last-child { page-break-after: auto; break-after: auto; }

  .print-cover h1 {
    font-size: 22pt; margin: 0 0 .5em;
  }
  .print-cover .print-meta {
    font-size: 11pt; color: #555; margin: 0 0 1.5em;
  }
  .print-cover .print-instructions {
    font-size: 11pt; line-height: 1.6;
  }

  .print-counter {
    font-size: 9pt; color: #777; text-transform: uppercase;
    letter-spacing: .08em; margin: 0 0 .8em;
  }

  .print-email-card {
    border: 1px solid #999;
    border-radius: 4px;
    padding: .9cm 1cm;
    background: #fff;
  }
  .print-email-meta {
    font-size: 10pt;
    border-bottom: 1px solid #ccc;
    padding-bottom: .5em;
    margin-bottom: .8em;
    color: #333;
  }
  .print-email-meta div { margin-bottom: 2pt; }
  .print-email-meta strong { display: inline-block; min-width: 60pt; }
  .print-email-subject {
    font-size: 14pt; font-weight: 700;
    margin: 0 0 .8em;
  }
  .print-email-body {
    font-size: 11pt; line-height: 1.5;
  }
  .print-email-body p { margin: 0 0 .7em; }
  .print-email-body a { color: #000; text-decoration: underline; }
  .print-email-body a::after {
    content: " [" attr(href) "]";
    font-size: 9pt; color: #555;
  }
  /* SharePoint-card vereenvoudigen voor print. */
  .print-email-body .ol-share-card {
    border: 1px solid #999;
    padding: .6cm;
    margin: .8em 0;
  }
  .print-email-body .ol-share-head { text-align: center; margin-bottom: .5em; }
  .print-email-body .ol-share-icon { font-size: 14pt; }
  .print-email-body .ol-share-heading { font-size: 12pt; margin: .3em 0 0; }
  .print-email-body .ol-share-msg {
    font-style: italic; padding: .4em .6em;
    border-left: 2pt solid #555; margin: 0 0 .8em;
  }
  .print-email-body .ol-share-file {
    border: 1px solid #ccc; padding: .4em .6em;
    margin: .8em 0; font-weight: 600;
  }
  .print-email-body .ol-share-file::before { content: "📄  "; }
  .print-email-body .ol-share-protection {
    font-size: 9pt; color: #555;
  }
  .print-email-body .ol-share-actions { display: none; }

  .print-question {
    margin-top: 1.2em;
    padding: .5cm;
    border: 2pt solid #000;
    font-size: 12pt; font-weight: 700;
    text-align: center;
  }

  .print-answer h2 {
    font-size: 16pt; margin: 0 0 .8em;
  }
  .print-answer .print-verdict {
    font-size: 14pt; font-weight: 700; margin: 0 0 .8em;
    padding: .35em .7em;
    border-radius: 4px;
    display: inline-block;
  }
  .print-answer .print-verdict.phish {
    background: #f7d4d4; color: #7a1313;
  }
  .print-answer .print-verdict.real {
    background: #d4f0dc; color: #0c4a1f;
  }
  .print-answer .print-explanation {
    font-size: 11pt; line-height: 1.55; margin: 0 0 1em;
  }
  .print-answer h3 {
    font-size: 12pt; margin: 1em 0 .4em;
  }
  .print-answer ul {
    margin: 0; padding-left: 1.2em;
    font-size: 10.5pt; line-height: 1.5;
  }
  .print-answer ul li { margin-bottom: .25em; }
  .print-answer .print-sender-note {
    margin-top: 1em;
    font-size: 10pt; color: #444;
    padding: .4em .6em;
    border-left: 2pt solid #888;
    background: #f5f5f5;
  }

  /* Gewoon zwart-wit, links altijd zichtbaar in URL-vorm. */
  a { color: #000; }
}
