@charset "UTF-8";
:root {
  --ink: #1c2430;
  --ink-2: #4a5462;
  --muted: #5d6673;
  --bg: #f3f4f1;
  --paper: #fbfbf9;
  --line: rgba(28, 36, 48, 0.14);
  --blue: #3d5a80;
  --blue-dark: #2c4463;
  --blue-soft: #e7edf5;
  --amber: #8a5c24;
  --amber-soft: #f6eddf;
  --green: #2f6b45;
  --green-soft: #e4f1e8;
  --red: #9b2f2f;
  --red-soft: #f8e6e6;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 40px 40px;
  line-height: 1.55;
  font-size: 17px;
  min-height: 100vh;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #f0b54a; outline-offset: 2px; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 12px 28px; background: rgba(28, 36, 48, 0.96); color: #f3f4f1;
}
.brand { display: flex; align-items: center; gap: 12px; color: #f3f4f1; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; }
.brand:hover { color: #fff; }
.brand small { display: block; font-weight: 400; font-size: 0.78rem; color: #c3cad4; letter-spacing: 0.04em; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
.topbar nav a, .topbar nav button {
  color: #e6e9ee; text-decoration: none; font: 500 0.92rem var(--sans); background: transparent;
  border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.topbar nav a:hover, .topbar nav button:hover { border-color: rgba(243, 244, 241, 0.4); color: #fff; }
.topbar nav a[aria-current="page"] { border-color: rgba(243, 244, 241, 0.6); }
.whoami { font-size: 0.88rem; color: #c3cad4; }

/* ── Layout ── */
main { max-width: 1160px; margin: 0 auto; padding: 36px 28px 80px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.kicker.amber { color: var(--amber); }
.rule { width: 72px; height: 2px; background: var(--blue); opacity: 0.4; margin: 0 0 18px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ── Forms and buttons ── */
label { display: block; font-weight: 500; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #b9c0ca; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 16px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.98rem var(--sans); border-radius: var(--radius); padding: 11px 20px; cursor: pointer;
  border: 2px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--blue); }
.btn.secondary:hover { background: var(--blue-soft); color: var(--blue-dark); }
.btn.small { padding: 6px 12px; font-size: 0.86rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.notice { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 18px; }
.notice.amber { border-color: var(--amber); background: var(--amber-soft); }
.notice.green { border-color: var(--green); background: var(--green-soft); }
.notice.red { border-color: var(--red); background: var(--red-soft); }
.error { color: var(--red); font-weight: 500; }
.copybox { display: flex; gap: 8px; }
.copybox input { margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; }

/* ── Dashboard cards ── */
.tcard { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tcard h3 { margin: 0; }
.tcard .meta { font-size: 0.88rem; color: var(--muted); }
.tcard .actions { margin-top: auto; padding-top: 8px; }
.bar { height: 6px; background: rgba(28, 36, 48, 0.08); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--blue); }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); }
.badge.pass { background: var(--green-soft); color: var(--green); }
.badge.fail { background: var(--red-soft); color: var(--red); }
.badge.late { background: var(--amber-soft); color: var(--amber); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); background: rgba(28, 36, 48, 0.03); white-space: nowrap; }
.checklist label { display: flex; gap: 10px; align-items: center; font-weight: 400; margin-bottom: 8px; }

/* ── Training player ── */
.player { max-width: 1100px; margin: 0 auto; }
.player-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.player-head .t { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slide {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 560px; padding: 56px 64px 48px; overflow: hidden;
}
.slide::before {
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 90, 128, 0.06), transparent 62%); pointer-events: none;
}
.slide > * { position: relative; }
.slide h2 { font-size: 2.2rem; max-width: 900px; }
.slide .lead { font-size: 1.15rem; max-width: 880px; }
.slide p { max-width: 880px; font-size: 1.06rem; }
.slide.title-slide { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.slide.title-slide h1 { font-size: 2.9rem; max-width: 900px; margin-top: 28px; }
.slide.title-slide .sub { font-size: 1.25rem; color: var(--ink-2); }
.slide.title-slide .line { font-weight: 600; color: var(--blue); font-size: 1.1rem; max-width: 760px; }
.slide.title-slide .tag { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.emblem { width: 92px; height: 92px; border: 2px solid var(--ink); border-radius: 12px; transform: rotate(45deg); display: grid; place-items: center; }
.emblem::after { content: ''; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); }
.items { display: grid; gap: 18px; margin-top: 22px; }
.items.cols-2 { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); column-gap: 40px; }
.item { display: flex; gap: 18px; align-items: flex-start; }
.num { flex: 0 0 auto; width: 44px; height: 44px; border: 2px solid var(--blue); border-radius: 7px; display: grid; place-items: center; font: 600 1rem var(--serif); color: var(--blue); }
.item .t { font-size: 1.12rem; font-weight: 500; }
.item .d { color: var(--muted); font-size: 0.98rem; margin-top: 2px; }
.item .ref { display: inline-block; margin-top: 4px; font-size: 0.8rem; color: var(--blue-dark); background: var(--blue-soft); padding: 1px 8px; border-radius: 999px; }
.amber .num { border-color: var(--amber); color: var(--amber); }
.cards { display: grid; gap: 18px; margin-top: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(255, 255, 255, 0.6); }
.card .big { font: 600 1.3rem var(--serif); color: var(--blue); margin-bottom: 8px; }
.card .tag { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.slide .note { margin-top: 24px; font-weight: 600; color: var(--blue); max-width: 880px; }
.slide .note.amber { color: var(--amber); }
.lawbox { margin-top: 22px; border: 1px dashed rgba(61, 90, 128, 0.5); border-radius: var(--radius); padding: 14px 18px; background: rgba(231, 237, 245, 0.55); font-size: 0.95rem; max-width: 900px; }
.lawbox b { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px; }
.quote-wrap { display: flex; gap: 36px; align-items: stretch; margin-top: 24px; }
.quote-bar { width: 6px; background: var(--blue); border-radius: 3px; flex: 0 0 auto; }
.quote-wrap.amber .quote-bar { background: var(--amber); }
.quote-text { font: 600 1.9rem/1.35 var(--serif); max-width: 900px; }

/* clickable checks */
.checks { display: grid; gap: 14px; margin-top: 22px; }
.check {
  display: flex; gap: 18px; align-items: flex-start; text-align: left; width: 100%; cursor: pointer;
  background: #fff; border: 2px solid rgba(61, 90, 128, 0.35); border-radius: var(--radius); padding: 14px 18px;
  font: inherit; color: inherit;
}
.check:hover { border-color: var(--blue); }
.check .box { flex: 0 0 auto; width: 32px; height: 32px; border: 2px solid var(--blue); border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.check[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); }
.check[aria-checked="true"] .box { background: var(--blue); }
.check .t { font-weight: 500; font-size: 1.06rem; }
.check .d { color: var(--muted); font-size: 0.95rem; }
.hint { margin-top: 18px; font-size: 0.92rem; color: var(--amber); font-weight: 500; }

/* scenario */
.story { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 16px 20px; max-width: 900px; margin: 16px 0; }
.options { display: grid; gap: 10px; max-width: 900px; }
.option { text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid #c6ccd5; border-radius: var(--radius); padding: 12px 16px; cursor: pointer; }
.option:hover { border-color: var(--blue); }
.option.chosen-ok { border-color: var(--green); background: var(--green-soft); }
.option.chosen-bad { border-color: var(--red); background: var(--red-soft); }
.feedback { margin-top: 14px; max-width: 900px; }

/* timeline */
.timeline { display: grid; gap: 0; margin-top: 24px; max-width: 920px; }
.tl { display: grid; grid-template-columns: 150px 24px 1fr; gap: 16px; }
.tl .when { font: 600 1.05rem var(--serif); color: var(--blue); text-align: right; padding-top: 2px; }
.tl .dot { position: relative; }
.tl .dot::before { content: ''; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: rgba(61, 90, 128, 0.3); }
.tl .dot::after { content: ''; position: absolute; left: 5px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.tl .body { padding-bottom: 20px; }
.tl .body .t { font-weight: 600; }

.player-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.arrow { width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem; padding: 0; }
.progress-dots { flex: 1; }
.progress-dots .bar { height: 8px; }
.progress-dots .lbl { text-align: center; font-size: 0.86rem; color: var(--muted); margin-top: 6px; }

/* quiz */
.q { border-top: 1px solid var(--line); padding: 22px 0; }
.q:first-of-type { border-top: 0; }
.q legend { font-weight: 600; font-size: 1.08rem; margin-bottom: 12px; }
.q fieldset { border: 0; padding: 0; margin: 0; }
.q label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 8px; cursor: pointer; }
.q input[type=radio] { margin-top: 5px; }
.score { font: 600 3.4rem var(--serif); }
.score.pass { color: var(--green); }
.score.fail { color: var(--red); }

/* certificate */
.cert-page { background: #fff; max-width: 1050px; margin: 0 auto; aspect-ratio: 297 / 210; border: 1px solid var(--line); padding: 56px 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; }
.cert-page::before { content: ''; position: absolute; inset: 18px; border: 2px solid var(--blue); border-radius: 4px; pointer-events: none; }
.cert-page .who { font: 600 2.4rem var(--serif); margin: 10px 0 6px; }
.cert-page .what { font: 600 1.5rem var(--serif); color: var(--blue); max-width: 760px; }
.cert-page .meta { display: flex; gap: 48px; margin-top: 34px; font-size: 0.95rem; color: var(--ink-2); }
.cert-page .meta b { display: block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 760px) {
  main { padding: 20px 14px 60px; }
  .slide { padding: 32px 22px; min-height: 0; }
  .slide h2 { font-size: 1.6rem; }
  .slide.title-slide h1 { font-size: 2rem; }
  .quote-text { font-size: 1.4rem; }
  .tl { grid-template-columns: 90px 24px 1fr; }
  .items.cols-2 { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .topbar, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  .cert-page { border: 0; width: 297mm; height: 210mm; max-width: none; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .slide { animation: fadein 0.35s ease-out; }
  @keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
.grid > .panel + .panel { margin-top: 0; }
#fT { max-width: 420px; }

/* ── Branding (logo) ── */
.brand-badge { display: grid; place-items: center; width: 44px; height: 44px; background: #fff; border-radius: 10px; }
.brand-badge img { display: block; width: 34px; height: auto; }
.login-panel { text-align: left; }
.login-logo { display: block; width: 168px; height: auto; margin: 0 0 18px; }
.cert-logo { width: 150px; height: auto; }

/* ── Dashboard intro ── */
.intro { margin: 8px 0 26px; }
.intro-points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.intro-points > div { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }

/* ── Slide icons and scenario pictures ── */
.slide-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.slide-ico svg { width: 28px; height: 28px; }
.slide-ico.amber { background: var(--amber-soft); color: var(--amber); }
.scenario-slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 40px; align-items: start; }
.scenario-slide > * { grid-column: 1; }
.scenario-slide > .scene { grid-column: 2; grid-row: 1 / span 12; margin: 0; align-self: start; position: sticky; top: 90px; }
.scene img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(28, 36, 48, 0.12); }
@media (max-width: 960px) {
  .scenario-slide { grid-template-columns: 1fr; }
  .scenario-slide > .scene { grid-column: 1; grid-row: auto; position: static; max-width: 420px; margin: 8px 0 16px; }
}

/* ═════════ Modern theme (overrides) ═════════ */
:root {
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(28, 36, 48, 0.06), 0 2px 8px rgba(28, 36, 48, 0.05);
  --shadow-md: 0 4px 12px rgba(28, 36, 48, 0.06), 0 16px 40px rgba(28, 36, 48, 0.08);
  --grad: linear-gradient(135deg, #2c4463 0%, #3d5a80 55%, #5878a3 100%);
}
body {
  background: #f4f6f9;
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(61, 90, 128, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(61, 90, 128, 0.10), transparent 60%);
  background-attachment: fixed;
}
h1 { letter-spacing: -0.01em; }

/* header: light glass bar */
.topbar {
  background: rgba(255, 255, 255, 0.72); color: var(--ink);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(28, 36, 48, 0.08); padding: 10px 32px;
}
.brand { color: var(--ink); gap: 12px; }
.brand:hover { color: var(--ink); }
.brand small { color: var(--muted); }
.brand-badge { background: transparent; width: 40px; height: 40px; border-radius: 0; }
.brand-badge img { width: 40px; }
.topbar nav a, .topbar nav button { color: var(--ink-2); border-radius: 10px; padding: 8px 14px; }
.topbar nav a:hover, .topbar nav button:hover { background: rgba(61, 90, 128, 0.08); border-color: transparent; color: var(--ink); }
.topbar nav a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.whoami { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; border-left: 1px solid rgba(28, 36, 48, 0.12); }
body.signed-out .topbar { display: none; }
body.signed-out main { max-width: none; padding: 0; }

/* surfaces */
.panel, .tcard, .slide, .cert-page { border: 1px solid rgba(28, 36, 48, 0.07); border-radius: 20px; box-shadow: var(--shadow-sm); background: #fff; }
.tcard { transition: transform 0.18s ease, box-shadow 0.18s ease; padding: 26px; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.slide { box-shadow: var(--shadow-md); }
.slide::before { background: radial-gradient(circle, rgba(61, 90, 128, 0.07), transparent 62%); }
.badge { border-radius: 8px; }
.bar { height: 8px; border-radius: 99px; background: rgba(28, 36, 48, 0.07); }
.bar > span { background: var(--grad); border-radius: 99px; }

/* buttons and inputs */
.btn { border-radius: 12px; border: 0; background: var(--grad); box-shadow: 0 6px 18px rgba(61, 90, 128, 0.28); transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s; }
.btn:hover { background: var(--grad); filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(61, 90, 128, 0.32); }
.btn.secondary { background: #fff; color: var(--blue-dark); box-shadow: inset 0 0 0 1.5px rgba(61, 90, 128, 0.35); }
.btn.secondary:hover { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); transform: none; }
.btn[disabled] { filter: grayscale(0.6); box-shadow: none; transform: none; }
.btn-block { width: 100%; padding: 14px 20px; font-size: 1.02rem; }
.arrow { border-radius: 50%; }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  border-radius: 12px; border: 1.5px solid #d5dbe4; padding: 12px 14px; background: #fbfcfd; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.15); background: #fff; }

/* login */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 48px 20px;
  background:
    radial-gradient(700px 500px at 15% 20%, rgba(88, 120, 163, 0.35), transparent 60%),
    radial-gradient(600px 500px at 85% 80%, rgba(44, 68, 99, 0.35), transparent 60%),
    radial-gradient(500px 400px at 80% 10%, rgba(201, 138, 58, 0.14), transparent 60%),
    linear-gradient(160deg, #eef2f7 0%, #e3e9f1 100%);
  position: relative; overflow: hidden;
}
.auth::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(28, 36, 48, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(28, 36, 48, 0.05) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-card {
  position: relative; width: 100%; max-width: 440px; text-align: center; padding: 44px 40px 32px;
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 28px; box-shadow: 0 30px 80px rgba(28, 36, 48, 0.18);
}
.auth-logo { display: block; width: 150px; height: auto; margin: 0 auto 22px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-sub { color: var(--muted); margin-bottom: 26px; }
.auth-card form { text-align: left; }
.auth-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(28, 36, 48, 0.08); font-size: 0.82rem; color: var(--muted); }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust svg { width: 16px; height: 16px; color: var(--blue); }

/* dashboard */
.intro { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.intro::after { content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.intro .lead { color: #fff; font-size: 1.2rem; font-weight: 500; }
.intro-points > div { color: rgba(255, 255, 255, 0.92); }
.intro .ico { background: rgba(255, 255, 255, 0.16); color: #fff; }
.slide-ico, .ico { border-radius: 12px; }
.player-head .t { color: var(--blue-dark); }
.check { border-radius: 14px; }
.option { border-radius: 14px; }
.story { border-radius: 14px; }
table th { background: #f6f8fb; }
.auth-card h1, .slide h2, .slide.title-slide h1 { text-wrap: balance; }
.auth-card { max-width: 460px; }

/* ── Organizations and admin areas ── */
.whoami > span { display: flex; flex-direction: column; line-height: 1.2; }
.whoami small { font-size: 0.75rem; color: var(--muted); }
.org-card { color: inherit; text-decoration: none; }
.org-card:hover { color: inherit; }
.seats { min-width: 220px; }
.seats-num { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 6px; }
.seats .bar.full > span { background: linear-gradient(135deg, #8a5c24, #c98a3a); }
.org-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; margin: 12px 0 18px; }
.org-head h1 { margin: 0 0 6px; }
.org-head .seats { background: #fff; border: 1px solid rgba(28, 36, 48, 0.07); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: #fff; border: 1px solid rgba(28, 36, 48, 0.07); border-radius: 14px; width: fit-content; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.tabs a { text-decoration: none; color: var(--ink-2); font-weight: 500; padding: 8px 16px; border-radius: 10px; }
.tabs a:hover { background: var(--blue-soft); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.stats { margin-bottom: 22px; }
.stat { font: 600 2.4rem var(--serif); }
.stat.pass { color: var(--green); } .stat.late { color: var(--amber); }
.org-grid { grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .org-grid { grid-template-columns: 1fr; } }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; background: var(--blue-soft); color: var(--blue-dark); border-radius: 8px; padding: 3px 4px 3px 10px; margin: 0 6px 6px 0; }
.chip .x { border: 0; background: transparent; color: var(--blue-dark); font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.chip .x:hover { background: rgba(61, 90, 128, 0.15); }
.link-btn { border: 0; background: none; color: var(--blue); font: 500 0.85rem var(--sans); padding: 2px 0; cursor: pointer; text-decoration: underline; }
select.mini, input.mini { margin: 0; width: auto; font-size: 0.85rem; padding: 6px 10px; }
.btn.danger { color: var(--red); box-shadow: inset 0 0 0 1.5px rgba(155, 47, 47, 0.4); }
.btn.danger:hover { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px var(--red); }
.row-disabled td { opacity: 0.55; }
.so-panel { border: 1.5px dashed rgba(61, 90, 128, 0.35); }
.checklist { border: 0; padding: 0; margin: 4px 0 14px; }
.checklist legend { font-weight: 500; margin-bottom: 8px; }
input[type=number] { width: 100%; font: 400 1rem var(--sans); border-radius: 12px; border: 1.5px solid #d5dbe4; padding: 12px 14px; background: #fbfcfd; margin-bottom: 16px; }
fieldset[disabled] { opacity: 0.55; }
.inv-row { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 0 16px; }
@media (max-width: 800px) { .inv-row { grid-template-columns: 1fr; } }
.checklist.inline label { display: inline-flex; margin-right: 22px; }
table.users td:first-child { min-width: 200px; }
table.users td:last-child { white-space: nowrap; }
.email-lock::after { content: ''; display: inline-block; width: 11px; height: 11px; margin-left: 5px; vertical-align: -1px; opacity: 0.6;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6673' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 0 1 8 0v3.5'/%3E%3C/svg%3E"); }

/* ───────── language switch (МК / SQ) ───────── */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(28, 36, 48, 0.06); border: 1px solid rgba(28, 36, 48, 0.08); }
.topbar nav .lang-switch button, .lang-switch button {
  min-width: 40px; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 999px; background: transparent;
  font: 600 0.78rem/1 var(--sans, inherit); letter-spacing: 0.06em; color: var(--ink-2); cursor: pointer;
}
.topbar nav .lang-switch button:hover, .lang-switch button:hover { background: rgba(61, 90, 128, 0.1); color: var(--ink); }
.topbar nav .lang-switch button[aria-pressed="true"], .lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.topbar nav .lang-switch { margin-right: 6px; }
.auth-lang { position: absolute; top: 16px; right: 16px; }
.panel .auth-lang { position: static; display: flex; justify-content: flex-end; margin-bottom: 8px; }

/* ───────── slide page colors (small palette) ───────── */
.slide.tint-blue { background: #eef3f9; }
.slide.tint-sand { background: #f8f2e7; }
.slide.tint-sage { background: #eef5f0; }
.slide.tint-blue .slide-ico { background: #fff; }
.slide.tint-sand .slide-ico { background: #fff; color: var(--amber); }
.slide.tint-sand .kicker:not(.amber) { color: var(--amber); }
.slide.tint-sage .slide-ico { background: #fff; color: var(--green); }
.slide.tint-sage .kicker:not(.amber) { color: var(--green); }
.slide[class*="tint-"] .card, .slide[class*="tint-"] .rect, .slide[class*="tint-"] .check, .slide[class*="tint-"] .story { background: #fff; }

/* ───────── scenario: picture centered beside the text, alternating sides ───────── */
.scenario-slide { align-items: center; }
.scenario-slide > .scene { position: static; align-self: center; grid-row: 1 / span 12; }
.scenario-slide.pic-left { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.scenario-slide.pic-left > * { grid-column: 2; }
.scenario-slide.pic-left > .scene { grid-column: 1; }
.scene img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ───────── rectangles in columns ───────── */
.rects { display: grid; gap: 16px; margin-top: 24px; }
.rects.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rects.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rects.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rect { position: relative; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; padding: 18px 18px 20px; }
.slide.tint-sand .rect { border-top-color: var(--amber); }
.slide.tint-sage .rect { border-top-color: var(--green); }
.rect-n { display: inline-block; font: 600 0.82rem var(--sans); letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.rect .t { font-weight: 600; font-size: 1.04rem; line-height: 1.35; }
.rect .d { color: var(--ink-2); font-size: 0.95rem; margin-top: 6px; }
.rect .ref, .flip .ref, .orbit-detail .ref { display: inline-block; margin-top: 8px; font-size: 0.78rem; color: var(--blue-dark); background: var(--blue-soft); padding: 1px 8px; border-radius: 999px; }

/* ───────── flip cards ───────── */
.flips { display: grid; gap: 16px; margin-top: 24px; perspective: 1400px; }
.flips.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flips.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flip { font: inherit; color: inherit; text-align: left; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; }
.flip-inner { display: grid; min-height: 170px; transition: transform 0.55s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d; border-radius: 14px; }
.flip.on .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.front { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.face.front .rect-n { color: rgba(255, 255, 255, 0.75); margin: 0; }
.face.front .t { font: 600 1.12rem/1.3 var(--serif); }
.flip-cta { margin-top: auto; font-size: 0.82rem; opacity: 0.85; }
.flip-cta::after { content: ' ↻'; }
.flip.seen .face.front { background: linear-gradient(135deg, #2f6b45, #3f8a5c); }
.face.back { background: #fff; border: 2px solid var(--blue); transform: rotateY(180deg); }
.face.back .t { font-weight: 600; font-size: 0.98rem; color: var(--blue-dark); }
.face.back .d { font-size: 0.95rem; color: var(--ink-2); }
.flip:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }

/* ───────── circle, click to reveal ───────── */
.orbit { position: relative; height: 470px; margin: 18px auto 0; max-width: 980px; }
.orbit-ring { position: absolute; left: 10%; right: 10%; top: 12%; bottom: 12%; border: 2px dashed rgba(61, 90, 128, 0.3); border-radius: 50%; }
.orbit-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px; box-shadow: var(--shadow-md); }
.orbit-hub span { font: 600 1.05rem/1.25 var(--serif); }
.orbit-hub small { margin-top: 6px; opacity: 0.8; font-size: 0.8rem; letter-spacing: 0.06em; }
.node { position: absolute; transform: translate(-50%, -50%); width: 220px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; color: var(--ink); text-align: center; background: none; border: 0; padding: 4px; cursor: pointer; border-radius: 12px; }
.node-n { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--blue); color: var(--blue); font: 600 1rem var(--serif); box-shadow: var(--shadow-sm); transition: transform 0.15s; }
.node-t { font-size: 0.9rem; font-weight: 500; line-height: 1.3; background: rgba(255, 255, 255, 0.85); border-radius: 8px; padding: 2px 6px; }
.node:hover .node-n { transform: scale(1.08); }
.node.seen .node-n { background: var(--green); border-color: var(--green); color: #fff; }
.node.on .node-n { background: var(--ink); border-color: var(--ink); color: #fff; transform: scale(1.12); }
.node:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.orbit-detail { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; min-height: 84px; }
.orbit-detail .rect-n { font: 600 1.3rem var(--serif); color: var(--blue); margin: 0; }
.orbit-detail .t { font-weight: 600; font-size: 1.05rem; }
.orbit-detail .d { color: var(--ink-2); margin-top: 4px; }

/* ───────── checkbox slides with right and wrong answers ───────── */
.checks.pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check[disabled] { cursor: default; }
.slide .check.res-ok { border-color: var(--green); background: var(--green-soft); }
.check.res-ok .box { background: var(--green); border-color: var(--green); }
.slide .check.res-bad { border-color: var(--red); background: var(--red-soft); }
.check.res-bad .box { background: var(--red); border-color: var(--red); }
.slide .check.res-miss { border-color: var(--amber); background: var(--amber-soft); }
.check.res-miss .box { border-color: var(--amber); }
.check-actions { margin-top: 18px; }
#chkMsg .notice { margin: 14px 0 0; max-width: 900px; }

@media (max-width: 900px) {
  .rects.cols-3, .rects.cols-4, .flips.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks.pick { grid-template-columns: 1fr; }
  .scenario-slide.pic-left, .scenario-slide.pic-right { grid-template-columns: 1fr; }
  .scenario-slide.pic-left > *, .scenario-slide.pic-left > .scene { grid-column: 1; }
}
@media (max-width: 760px) {
  .rects.cols-2, .rects.cols-3, .rects.cols-4, .flips.cols-2, .flips.cols-3 { grid-template-columns: 1fr; }
  .orbit { height: auto; display: grid; gap: 8px; }
  .orbit-ring, .orbit-hub { display: none; }
  .node { position: static; transform: none; width: auto; flex-direction: row; text-align: left; }
}
.slide .check[aria-checked="true"]:not(.res-ok):not(.res-bad) { background: var(--blue-soft); }

/* certificate: diagonal corporate design */
.cert-page { overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert-decor { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cert-page > :not(.cert-decor) { position: relative; z-index: 1; }

/* ───────── accordion ───────── */
.acc { margin-top: 22px; display: grid; gap: 10px; max-width: 920px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow 0.15s; }
.acc-item.open { box-shadow: var(--shadow-sm); border-color: rgba(61, 90, 128, 0.35); }
.acc-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.acc-row .t { flex: 1; font-weight: 600; font-size: 1.04rem; }
.acc-n { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font: 600 0.85rem var(--sans); }
.acc-item.seen .acc-n { background: var(--green); color: #fff; }
.acc-chev { font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.acc-item.open .acc-chev { transform: rotate(45deg); }
.acc-body { padding: 0 18px 16px 66px; color: var(--ink-2); }
.acc-row:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

/* ───────── step-by-step carousel ───────── */
.car { margin-top: 22px; max-width: 860px; }
.car-card { position: relative; min-height: 210px; padding: 30px 34px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.car-count { font: 600 2.4rem/1 var(--serif); opacity: 0.95; margin-bottom: 14px; }
.car-count span { font-size: 1.1rem; opacity: 0.6; }
.car-t { font: 600 1.45rem/1.3 var(--serif); margin-bottom: 10px; }
.car-d { font-size: 1.06rem; opacity: 0.92; max-width: 700px; }
.car-card .ref { background: rgba(255, 255, 255, 0.18); color: #fff; margin-top: 12px; }
.car-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.car-dots { display: flex; gap: 8px; }
.car-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid var(--blue); background: #fff; cursor: pointer; }
.car-dot.seen { background: var(--blue-soft); }
.car-dot.on { background: var(--blue); transform: scale(1.2); }

/* ───────── bento icon tiles ───────── */
.bento { display: grid; gap: 14px; margin-top: 24px; grid-auto-rows: minmax(120px, auto); }
.bento.n3, .bento.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bento.n5, .bento.n6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento .tile.feature { grid-column: span 2; grid-row: span 2; }
.bento.n4 .tile:nth-child(4) { grid-column: span 3; }
.bento.n6 .tile:nth-child(6) { grid-column: span 4; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.tile .t { font-weight: 600; line-height: 1.35; }
.tile .d { color: var(--ink-2); font-size: 0.94rem; }
.tile-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 4px; }
.tile-ico svg { width: 22px; height: 22px; }
.tile.feature { background: var(--grad); color: #fff; border: 0; justify-content: flex-end; padding: 26px; }
.tile.feature .tile-ico { width: 54px; height: 54px; background: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: auto; }
.tile.feature .tile-ico svg { width: 30px; height: 30px; }
.tile.feature .t { font: 600 1.4rem/1.3 var(--serif); }
.tile.feature .d { color: rgba(255, 255, 255, 0.9); font-size: 1.02rem; }
.tile.feature .ref { background: rgba(255, 255, 255, 0.18); color: #fff; }
.slide.tint-sage .tile-ico { background: var(--green-soft); color: var(--green); }
.slide.tint-sand .tile-ico { background: var(--amber-soft); color: var(--amber); }

/* ───────── phishing e-mail with hotspots ───────── */
.hotspot { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.mailwin { background: #fff; border: 1px solid #d5dae1; border-radius: 12px; box-shadow: 0 18px 50px rgba(28, 36, 48, 0.16); overflow: hidden; font-size: 0.92rem; }
.mail-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #eef1f5; border-bottom: 1px solid #dde2e8; color: #5d6673; font-size: 0.8rem; }
.mail-bar .dots { display: flex; gap: 6px; }
.mail-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #d9534f; }
.mail-bar .dots i:nth-child(2) { background: #e6b23a; }
.mail-bar .dots i:nth-child(3) { background: #5cb85c; }
.mail-tools { display: flex; gap: 18px; padding: 8px 18px; border-bottom: 1px solid #eef0f3; color: #4a5462; font-size: 0.8rem; }
.mail-tools .flag { margin-left: auto; color: #9b2f2f; }
.mail-head { padding: 14px 18px 12px; border-bottom: 1px solid #eef0f3; }
.mail-subj { display: block; font: 600 1.12rem/1.35 var(--sans); color: #1c2430; margin-bottom: 10px; }
.mail-from { display: flex; align-items: flex-start; gap: 12px; }
.avatar { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #7a5af5; color: #fff; font-weight: 600; font-size: 0.85rem; }
.mail-from .who { flex: 1; min-width: 0; }
.from-name { font-weight: 600; color: #1c2430; }
.from-addr { color: #5d6673; }
.mail-from .to { color: #5d6673; font-size: 0.82rem; margin-top: 2px; }
.mail-time { color: #5d6673; font-size: 0.8rem; white-space: nowrap; }
.mail-body { background: #f4f5f7; padding: 18px; }
.mail-card { background: #fff; border: 1px solid #e3e6ea; border-radius: 6px; padding: 0 22px 18px; color: #2a313b; }
.mail-card p { font-size: 0.92rem; margin: 10px 0; }
.mail-brand { display: block; margin: 0 -22px 14px; padding: 12px 22px; background: #0f6cbd; color: #fff; font-weight: 600; font-size: 0.85rem; border-radius: 6px 6px 0 0; }
.mail-btn-wrap { margin: 16px 0; }
.mail-btn { display: inline-block; background: #0f6cbd; color: #fff; font-weight: 600; padding: 10px 22px; border-radius: 4px; }
.mail-sign { white-space: normal; }
.mail-foot { font-size: 0.75rem; color: #8a929c; text-align: center; margin: 12px 0 0; }
.hs { position: relative; cursor: pointer; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.12s, background 0.12s; }
.hs:hover { outline-color: rgba(61, 90, 128, 0.35); }
.hs:focus-visible { outline-color: var(--blue); }
.hs.found { outline: 2px solid #c0392b; background-color: rgba(192, 57, 43, 0.07); }
.mail-btn.hs.found, .mail-brand.hs.found { background-color: #0f6cbd; }
.hs-badge { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #c0392b; color: #fff; font: 700 0.75rem var(--sans); }
.hs > .hs-badge { position: absolute; top: -11px; right: -11px; box-shadow: 0 0 0 2px #fff; }
.hs-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 8px; }
.hs-count { font-size: 0.95rem; color: var(--muted); margin-bottom: 10px; }
.hs-count strong { font: 600 1.6rem var(--serif); color: var(--blue); }
.hs-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-panel li { display: flex; gap: 10px; align-items: flex-start; }
.hs-panel li:not(.found) .hs-badge { background: #c6ccd5; }
.hs-panel .t { font-weight: 600; font-size: 0.95rem; }
.hs-panel .d { font-size: 0.86rem; color: var(--ink-2); }
.hs-msg { font-size: 0.86rem; color: var(--amber); min-height: 1.2em; }

/* ───────── safe or risky? ───────── */
.sort { margin-top: 20px; display: grid; gap: 12px; }
.sort-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.sort-q { display: flex; gap: 12px; align-items: center; font-size: 1.02rem; }
.sort-btns { display: flex; gap: 8px; }
.sb { font: 600 0.9rem var(--sans); padding: 9px 14px; border-radius: 999px; border: 2px solid; background: #fff; cursor: pointer; }
.sb.safe { border-color: var(--green); color: var(--green); }
.sb.risky { border-color: var(--red); color: var(--red); }
.sb.safe:hover:not([disabled]), .sb.safe.on { background: var(--green); color: #fff; }
.sb.risky:hover:not([disabled]), .sb.risky.on { background: var(--red); color: #fff; }
.sb[disabled]:not(.on) { opacity: 0.35; cursor: default; }
.sb[disabled] { cursor: default; }
.sort-res { grid-column: 1 / -1; font-size: 0.93rem; padding: 8px 12px; border-radius: 8px; }
.sort-res.ok { background: var(--green-soft); }
.sort-res.bad { background: var(--red-soft); }

/* ───────── do / don't ───────── */
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.dd-col { border-radius: 16px; padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.dd-col.good { background: var(--green-soft); border: 1px solid rgba(47, 107, 69, 0.25); }
.dd-col.bad { background: var(--red-soft); border: 1px solid rgba(155, 47, 47, 0.22); }
.dd-head { display: flex; align-items: center; gap: 10px; font: 600 1.15rem var(--serif); }
.dd-col.good .dd-head { color: var(--green); }
.dd-col.bad .dd-head { color: var(--red); }
.dd-mark { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 1rem var(--sans); }
.dd-col.good .dd-mark { background: var(--green); }
.dd-col.bad .dd-mark { background: var(--red); }
.dd-item { background: #fff; border-radius: 10px; padding: 12px 14px; }
.dd-item .t { font-weight: 600; }
.dd-item .d { color: var(--ink-2); font-size: 0.93rem; margin-top: 2px; }

@media (max-width: 900px) {
  .hotspot, .dodont { grid-template-columns: 1fr; }
  .bento.n5, .bento.n6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento.n6 .tile:nth-child(6), .bento.n4 .tile:nth-child(4) { grid-column: auto; }
  .sort-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .bento, .bento.n3, .bento.n4 { grid-template-columns: 1fr; }
  .bento .tile.feature { grid-column: auto; grid-row: auto; }
}
.car-dot.seen { background: #9fb3cf; }
.car-dot.on { background: var(--blue); }
.hs.from { display: inline-block; }
.hs-panel li > .hs-badge { flex: 0 0 22px; }
/* link preview, like a browser status bar, when hovering the button in the sample e-mail */
.mailwin { position: relative; }
.mail-status { position: absolute; left: 0; bottom: 0; max-width: 92%; padding: 5px 10px; background: #f1f3f5; border: 1px solid #c9cfd6; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; font: 0.78rem/1.3 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #2a313b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; pointer-events: none; }
.mailwin:has(.mail-btn:hover) .mail-status, .mailwin:has(.mail-btn:focus-visible) .mail-status, .mailwin:has(.mail-btn.found) .mail-status { opacity: 1; transform: none; }
.mailwin .mail-body { padding-bottom: 34px; }
/* carousel with a photo inside the blue card */
.car.with-pic { max-width: 980px; }
.car.with-pic .car-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 28px; align-items: center; padding: 22px 22px 22px 34px; }
.car-pic { margin: 0; order: 2; }
.car-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25); }
@media (max-width: 760px) { .car.with-pic .car-card { grid-template-columns: 1fr; padding: 22px; } .car-pic { order: 0; } }
/* photo inside the featured tile */
.tile.feature.with-pic { justify-content: flex-start; padding: 14px 14px 22px; gap: 8px; }
.tile.feature.with-pic .t, .tile.feature.with-pic .d { padding: 0 10px; }
.tile-pic { margin: 0 0 10px; }
.tile-pic img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; border-radius: 10px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25); }
/* e-mail extras: field labels, attachment chip; neutral sorting buttons */
.muted-lbl { color: #5d6673; margin-right: 2px; }
.mail-from .to .hs { display: inline-block; }
.mail-attach { margin-top: 14px; }
.attach-chip { display: inline-block; padding: 8px 12px; border: 1px solid #d5dae1; border-radius: 8px; background: #f7f8fa; font-size: 0.85rem; color: #2a313b; }
.sort.neutral .sb { border-color: var(--blue); color: var(--blue); }
.sort.neutral .sb:hover:not([disabled]), .sort.neutral .sb.on { background: var(--blue); color: #fff; }

/* ───────── public landing page ───────── */
body.signed-out main:has(.landing) { padding: 0; }
.landing { max-width: 1120px; margin: 0 auto; padding: 0 28px 40px; }
.lp-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; background: rgba(243, 244, 241, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lp-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-brand small { display: block; font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.lp-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lp-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.lp-nav > a:not(.btn):hover { color: var(--ink); }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 40px; }
.lp-hero h1 { font-size: 2.7rem; line-height: 1.15; margin: 8px 0 16px; }
.lp-hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 620px; margin-bottom: 26px; }
.lp-hero-art { display: grid; place-items: center; aspect-ratio: 1; max-width: 340px; justify-self: center; width: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff, #dfe7f1 60%, #c9d6e6); box-shadow: var(--shadow-md); }
.lp-hero-art .emblem-lock { width: 58%; height: auto; }
.lp-sec { padding: 40px 0 10px; scroll-margin-top: 80px; }
.lp-sec h2 { font-size: 1.9rem; margin-bottom: 20px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.lp-card h3, .lp-steps h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.lp-card p, .lp-steps p { color: var(--ink-2); margin: 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.lp-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; }
.lp-step-n { position: absolute; top: 18px; right: 20px; font: 600 2rem/1 var(--serif); color: rgba(61, 90, 128, 0.25); }
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; }
.lp-plans.single { grid-template-columns: minmax(0, 440px); }
.lp-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-sm); }
.lp-plan.featured { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-md); }
.lp-plan-name { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; opacity: 0.85; }
.lp-price { font: 600 2.6rem/1.1 var(--serif); margin: 10px 0 4px; }
.lp-per { font-size: 0.92rem; opacity: 0.8; margin-bottom: 18px; }
.lp-inc { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; margin-bottom: 8px; }
.lp-plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.lp-faq { display: grid; gap: 10px; max-width: 900px; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.lp-faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 16px; color: var(--ink-2); }
.lp-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.auth-back { position: absolute; top: 18px; left: 20px; font-size: 0.88rem; color: var(--ink-2); text-decoration: none; }
.auth-back:hover { color: var(--ink); }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; padding-top: 30px; }
  .lp-hero-art { display: none; }
  .lp-cards, .lp-steps, .lp-plans { grid-template-columns: 1fr; }
  .lp-nav > a:not(.btn) { display: none; }
}
.lp-head { box-shadow: 0 0 0 100vmax rgba(243, 244, 241, 0.86); clip-path: inset(0 -100vmax); }
@media (max-width: 600px) {
  .landing { padding: 0 18px 30px; }
  .lp-brand small { display: none; }
  .lp-head { padding: 10px 0; }
  .lp-nav { gap: 8px; flex-wrap: nowrap; }
  .lp-hero h1 { font-size: 2.1rem; }
}
/* phones: results filter row and settings forms stay inside the screen */
@media (max-width: 600px) {
  #fT { max-width: 100%; min-width: 0; flex: 1 1 160px; }
  .panel .row { flex-wrap: wrap; }
  .org-grid { grid-template-columns: minmax(0, 1fr); }
  .org-grid > form { min-width: 0; }
  .org-grid input, .org-grid select { max-width: 100%; }
}
@media (max-width: 600px) {
  .panel .row > .row { flex: 1 1 100%; min-width: 0; }
  .panel .row > .row > * { min-width: 0; }
}

/* ───────── landing v2: dark hero with network background and real product shots ───────── */
.lp-top { position: relative; margin: 0 calc(50% - 50vw); background: radial-gradient(1200px 600px at 75% 35%, #24406a 0%, transparent 60%), linear-gradient(160deg, #0b1626 0%, #13233b 55%, #1a2f4d 100%); color: #fff; overflow: hidden; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lp-bg .hot { fill: #4cd37e; filter: drop-shadow(0 0 6px rgba(76, 211, 126, 0.9)); }
.lp-top-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 28px 70px; }
.lp-top .lp-head { position: relative; background: transparent; box-shadow: none; clip-path: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 18px 0; }
.lp-top .lp-brand { color: #fff; }
.lp-top .lp-brand small { color: rgba(255, 255, 255, 0.6); }
.lp-top .lp-nav > a:not(.btn) { color: rgba(255, 255, 255, 0.78); }
.lp-top .lp-nav > a:not(.btn):hover { color: #fff; }
.lp-top .lang-switch { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
.lp-top .lang-switch button { color: rgba(255, 255, 255, 0.75); }
.lp-top .lang-switch button[aria-pressed="true"] { background: #fff; color: #13233b; }
.lp-top .lp-login { background: #fff; color: #13233b; box-shadow: none; }
.lp-top .lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); padding: 50px 0 10px; gap: 48px; }
.lp-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #8ee0ad; border: 1px solid rgba(142, 224, 173, 0.35); border-radius: 999px; padding: 5px 12px; }
.lp-top .lp-hero h1 { color: #fff; font-size: 2.9rem; }
.lp-top .lp-hero .lead { color: rgba(255, 255, 255, 0.78); }
.lp-top .lp-cta { background: #3f9a6e; box-shadow: 0 10px 30px rgba(63, 154, 110, 0.35); }
.lp-top .lp-cta:hover { background: #358660; }
.lp-top .lp-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.lp-shots { position: relative; min-height: 430px; perspective: 1600px; }
.lp-shot-mail { position: absolute; right: 0; top: 0; width: 88%; border-radius: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: rotateY(-10deg) rotateX(3deg); transform-origin: right center; }
.lp-shot-cert { position: absolute; left: 0; bottom: -20px; width: 52%; border-radius: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); transform: rotate(-4deg); }
.lp-hero-art { display: none; }
/* value cards: typography instead of icons */
.lp-card { border-top: 4px solid var(--blue); }
.lp-cards .lp-card:nth-child(2) { border-top-color: #3f9a6e; }
.lp-cards .lp-card:nth-child(3) { border-top-color: var(--amber); }
.lp-big { font: 600 2.1rem/1.1 var(--serif); color: var(--ink); margin-bottom: 10px; }
.lp-big span { font-size: 1.25rem; color: var(--ink-2); }
/* steps: a connected timeline instead of icon tiles */
.lp-steps { gap: 0; }
.lp-steps li { background: transparent; border: 0; padding: 0 22px 0 0; }
.lp-steps li::before { content: ''; position: absolute; top: 22px; left: 46px; right: 0; height: 2px; background: linear-gradient(90deg, #c6d2e2, #c6d2e2 60%, transparent); }
.lp-steps li:last-child::before { display: none; }
.lp-steps .lp-step-n { position: relative; top: auto; right: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #13233b; color: #fff; font: 600 1.1rem var(--serif); margin-bottom: 14px; box-shadow: 0 0 0 6px #e7edf5; }
.lp-steps li:last-child .lp-step-n { background: #3f9a6e; }
@media (max-width: 900px) {
  .lp-top .lp-hero { grid-template-columns: 1fr; }
  .lp-shots { min-height: 0; margin-top: 10px; }
  .lp-shot-mail { position: relative; width: 100%; transform: none; }
  .lp-shot-cert { display: none; }
  .lp-steps { gap: 22px; }
  .lp-steps li::before { display: none; }
}
@media (max-width: 600px) { .lp-top-in { padding: 0 18px 40px; } .lp-top .lp-hero h1 { font-size: 2.1rem; } }
.lp-top .lp-brand img { background: #fff; border-radius: 10px; padding: 5px 4px; width: 44px; height: auto; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.lp-top-in { padding-bottom: 96px; }
.lp-shots { min-height: 470px; }
.lp-top .lp-brand img.lp-lockup { background: none; border-radius: 0; padding: 0; width: auto; height: 46px; box-shadow: none; display: block; }
@media (max-width: 600px) { .lp-top .lp-brand img.lp-lockup { height: 36px; } }
.lp-top .lp-brand-v3 { gap: 12px; }
.lp-top .lp-brand-v3 img.lp-mark { background: none; border-radius: 0; padding: 0; box-shadow: none; width: auto; height: 40px; display: block; }
.lp-wordmark { font-family: 'Space Grotesk', var(--sans); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em; color: #fff; line-height: 1; }
@media (max-width: 600px) { .lp-top .lp-brand-v3 img.lp-mark { height: 32px; } .lp-wordmark { font-size: 1.2rem; } }
/* Official white horizontal logo on the dark landing header */
.lp-top .lp-brand-v4 img.lp-logo { background: none; border-radius: 0; padding: 0; box-shadow: none; width: auto; height: 42px; display: block; }
@media (max-width: 600px) { .lp-top .lp-brand-v4 img.lp-logo { height: 32px; } }

/* ───────── v6: explanations, contacts, badges, overview, campaigns, bulk invite ───────── */
.explain { text-align: left; margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.explain h2 { font-size: 1.3rem; }
.ex-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }
.ex-q { font-weight: 600; margin-bottom: 8px; }
.ex-a { margin-bottom: 6px; }
.ex-why { color: var(--ink-2); margin: 0; }

.org-contact { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--blue-soft); border: 1px solid rgba(61, 90, 128, 0.22); max-width: 640px; }
.org-contact + .org-contact { margin-top: 10px; }
.oc-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.oc-ico svg { width: 20px; height: 20px; }
.oc-k { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); }
.oc-n { font-weight: 600; margin-top: 2px; }
.oc-d { font-size: 0.95rem; overflow-wrap: anywhere; }

.my-status { margin: 22px 0 0; }
.my-status .stat { font-size: 1.9rem; }
.my-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 24px; align-items: start; }
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cert-list li:last-child { border-bottom: 0; }
.cert-list li > div { display: flex; flex-direction: column; min-width: 0; }

.bdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bdg { display: flex; gap: 12px; align-items: center; }
.bdg-ico { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #9aa2ad; background: #f0f1f3; border: 2px dashed #c9ced6; }
.bdg.on .bdg-ico { color: #fff; background: linear-gradient(135deg, #2c4463, #3f9a6e); border: 2px solid #fff; box-shadow: 0 0 0 2px #3f9a6e; }
.bdg-ico svg { width: 24px; height: 24px; }
.bdg-n { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: #fff; font: 600 0.72rem/20px var(--sans); text-align: center; }
.bdg-t { display: flex; flex-direction: column; font-size: 0.92rem; line-height: 1.35; }
.bdg-t span { color: var(--muted); }
.bdg-t em { font-style: normal; font-size: 0.8rem; color: #8a929d; }
.bdg.sm .bdg-ico { width: 34px; height: 34px; }
.bdg.sm .bdg-ico svg { width: 17px; height: 17px; }
.bdg.sm .bdg-n { min-width: 16px; height: 16px; font-size: 0.65rem; line-height: 16px; right: -5px; top: -5px; }
.bdg-row { display: flex; gap: 8px; }

.stats-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stats-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats-5 .stat, .stats-4 .stat { font-size: 2rem; }
.ov-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-bottom: 24px; align-items: start; }
.ov-grid + .panel, .stats + .ov-grid { margin-top: 0; }
.trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 190px; padding-top: 8px; }
.tr-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.tr-bars { flex: 1; width: 100%; max-width: 44px; position: relative; display: flex; align-items: flex-end; }
.tr-bars span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; min-height: 2px; }
.tr-all { background: #d5dde8; }
.tr-pass { background: var(--green); left: 8px !important; right: 8px !important; }
.tr-v { font-weight: 600; font-size: 0.9rem; margin-top: 6px; }
.tr-m { font-size: 0.8rem; color: var(--muted); }
.tr-legend { display: flex; gap: 18px; margin-top: 10px; }
.tr-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-pass { background: var(--green); } .lg-all { background: #d5dde8; }
.missed { margin: 0; padding-left: 1.3em; }
.missed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.missed li:last-child { border-bottom: 0; }
.ms-q span { display: block; }
.ms-v { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.ms-v .bar { flex: 0 1 240px; }
.ms-v .bar span { background: var(--amber); }

.badge.auto { background: #e9e4f5; color: #4b3a7a; }
.rem-log { padding-left: 1.1em; }
.rem-log li { margin-bottom: 6px; }
.auto-rules ul { margin: 0 0 10px; padding-left: 1.2em; }
.auto-rules li { margin-bottom: 4px; }

.inline-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.inline-check input { margin-top: 5px; }
.contact-set { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px 4px; margin: 0 0 12px; }
.contact-set legend { font-weight: 600; padding: 0 6px; }
.contact-set .grid-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.nowrap { white-space: nowrap; }
.danger-text { color: var(--red); }
.bulk-panel { margin-top: 22px; }
.file-btn { cursor: pointer; }
input[type="file"].sr-only:focus + span, .file-btn:focus-within { outline: 2px solid var(--blue); }
@media (max-width: 600px) {
  .trend { gap: 4px; height: 160px; }
  .cert-list li { flex-wrap: wrap; }
  .nowrap { white-space: normal; }
  .stats-5 .stat, .stats-4 .stat { font-size: 1.6rem; }
}
.row:has(#bF:focus-visible) .file-btn { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .stats-5, .stats-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats-5 .panel, .stats-4 .panel, .my-status .panel { padding: 16px; }
  .stats-5 .kicker, .stats-4 .kicker { font-size: 0.7rem; letter-spacing: 0.08em; }
}
/* Hero: e-mail screenshot only */
.lp-shots { min-height: 0; }
.lp-shot-mail { position: relative; display: block; width: 88%; margin-left: auto; }
@media (max-width: 900px) { .lp-shot-mail { width: 100%; } }
