/* Meinert Cybersecurity whitelisting portal.
   Design tokens, fonts and header pattern match learn.meinertcybersecurity.com (engine.css). */

@font-face{font-family:"Manrope";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/manrope-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/manrope-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/manrope-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/manrope-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/manrope-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}

:root {
  --bg:#F2F7FD; --surface:#FFFFFF; --surface-2:#E7F0FB; --line:#D6E2F6;
  --ink:#011635; --ink-2:#2D425F; --muted:#56708F;
  --teal:#089AB6; --teal-ink:#05768C; --teal-soft:#D3F0F5; --cyan:#08BACE;
  --gold:#FFC532; --gold-ink:#7A5600; --gold-soft:#FFF1C7;
  --red:#D93636; --red-soft:#FDE3E3;
  --sand:#E0AE72; --sand-lt:#F3D7B2;
  --code-bg:#011635; --code-head:#0B2650; --code-ink:#E6EEFB;
  --shadow:0 1px 2px rgba(1,22,53,.06),0 8px 24px rgba(1,22,53,.07);
  --shadow-lift:0 2px 4px rgba(1,22,53,.08),0 14px 34px rgba(1,22,53,.12);
  --f-body:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --r:14px; --r-sm:12px;
  --tick-teal:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23089AB6' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E");
  --tick-white:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#011635; --surface:#0A2447; --surface-2:#11305A; --line:#1F3F69;
  --ink:#EAF2FD; --ink-2:#C4D4EA; --muted:#93AACB;
  --teal:#17B3CF; --teal-ink:#5AD3E8; --teal-soft:#0B3A55; --cyan:#2CCBDD;
  --gold:#FFC532; --gold-ink:#FFD666; --gold-soft:#3A3315;
  --red:#FF6B6B; --red-soft:#3D1A26;
  --code-bg:#06193A; --code-head:#11305A; --code-ink:#EAF2FD;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 24px rgba(0,0,0,.25);
  --shadow-lift:0 2px 4px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.35);
  color-scheme:dark}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--f-body);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, kbd, pre { font-family: var(--f-mono); font-size: .9em; }
:not(pre) > code { background: var(--surface-2); color: var(--ink); padding: .1em .4em; border-radius: 6px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .35em; background: var(--surface); }
small { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow-container { max-width: 720px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 10px; }
.lead, .lede { color: var(--ink-2); font-size: 1.06rem; max-width: 62ch; }

/* ------------------------------------------------------------ header (HUD, as on learn.) */
.hud {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.hud-in { max-width: 1080px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.logo-wrap { flex: none; display: block; border-radius: 8px; line-height: 0; }
.logo { height: 34px; width: auto; display: block; }
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .logo-wrap{background:#fff;padding:4px 8px}}
.brand-div { width: 1px; height: 30px; background: var(--line); flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-txt b { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-txt span { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-ink); font-size: .82rem; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.hud-chip.complete { background: var(--gold-soft); color: var(--gold-ink); }
.hud-progress { height: 6px; background: var(--surface-2); position: relative; overflow: hidden; }
.hud-progress i {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan)); border-radius: 0 6px 6px 0;
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

.mode-switch { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border-radius: 999px; }
.mode-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; transition: background .2s, color .2s;
}
.mode-switch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(1,22,53,.12); }
.mode-switch button:hover:not([aria-selected="true"]) { color: var(--ink); }

/* ------------------------------------------------------------ intro */
.intro { max-width: 1080px; margin: 0 auto; padding: 32px 16px 8px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.intro-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.intro-copy h1, .intro-copy p { margin: 0; }
.outcomes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.outcomes li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.outcomes li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--teal-soft) var(--tick-teal) center / 13px no-repeat; }
.meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

.progress-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; display: flex; align-items: center; gap: 20px; }
.ring-box { position: relative; width: 116px; height: 116px; flex: none; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1), stroke .4s; }
.progress-card.complete .ring-fg { stroke: var(--gold); }
.ring-pct { font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-text { display: grid; gap: 4px; }
.ring-text strong { font-size: 1rem; }
.ring-text span { color: var(--muted); font-size: .88rem; }

/* ------------------------------------------------------------ stages & panels */
.stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 26px; margin: 22px 0 0; animation: rise .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.stage-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.stage-head h2 { margin: 0; }
.stage-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .95rem; background: var(--teal-soft); color: var(--teal-ink); }

.choice-grid { display: grid; gap: 14px; }
.choice-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice {
  position: relative; text-align: left; cursor: pointer; font: inherit; color: inherit;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 20px; display: grid; gap: 6px; align-content: start;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.choice:hover { border-color: var(--teal); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.choice strong { font-size: 1.05rem; }
.choice span:not(.choice-icon):not(.choice-tag) { color: var(--muted); font-size: .92rem; }
.choice.selected { border-color: var(--teal); background: var(--teal-soft); }
.choice.selected::after { content: ""; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal) var(--tick-white) center / 14px no-repeat; }
.choice-tag { position: absolute; top: -11px; left: 16px; background: var(--gold); color: #3D2B00; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }

/* icons via masks so they take currentColor */
.choice-icon, .i-clock, .chip-icon, .chev { display: inline-block; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.choice-icon { width: 38px; height: 38px; color: var(--teal); margin-bottom: 6px; }
.choice-icon.small { width: 22px; height: 22px; margin: 0 8px -5px 0; }
.i-mail { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3Cpath d='m15.5 15.5 2 2 3.5-4' stroke-width='2'/%3E%3C/svg%3E"); }
.i-inbox { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13h5l1.5 3h5L16 13h5'/%3E%3Cpath d='M5 5h14l2 8v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5z'/%3E%3Cpath d='M12 2v7m-3-3 3 3 3-3'/%3E%3C/svg%3E"); }
.i-m365 { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8.2' height='8.2' rx='1'/%3E%3Crect x='12.8' y='3' width='8.2' height='8.2' rx='1'/%3E%3Crect x='3' y='12.8' width='8.2' height='8.2' rx='1'/%3E%3Crect x='12.8' y='12.8' width='8.2' height='8.2' rx='1'/%3E%3C/svg%3E"); }
.i-google { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M20.5 12.2c0 4.8-3.4 8.3-8.4 8.3a8.5 8.5 0 1 1 5.7-14.8'/%3E%3Cpath d='M12.3 12.2h8.2'/%3E%3C/svg%3E"); }
.i-other { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.7 8 11 4.6-1.3 8-6 8-11V5l-8-3Z'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E"); }
.i-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); width: 15px; height: 15px; margin: 0 6px -2px 0; }
.chip-icon { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1'/%3E%3C/svg%3E"); width: 14px; height: 14px; flex: none; }
.chev { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }

/* ------------------------------------------------------------ guide meta */
.guide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -4px 0 14px; font-size: .86rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--gold-soft); color: var(--gold-ink); }
.badge-info { background: var(--teal-soft); color: var(--teal-ink); }
.roles { font-size: .92rem; background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 14px; color: var(--ink-2); }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 8px; }
.segmented button { font: inherit; color: inherit; cursor: pointer; text-align: left; border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 2px; transition: border-color .2s, background .2s; }
.segmented button span { font-size: .85rem; color: var(--muted); }
.segmented button:hover { border-color: var(--teal); }
.segmented button[aria-selected="true"] { border-color: var(--teal); background: var(--teal-soft); }

/* ------------------------------------------------------------ stepper */
.stepper { list-style: none; padding: 0; margin: 20px 0 8px; }
.step + .step { margin-top: 10px; }
.step-head { width: 100%; display: flex; align-items: center; gap: 14px; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; font: inherit; color: inherit; text-align: left; transition: border-color .2s, background .2s; }
.step-head:hover { border-color: var(--teal); }
.step-title { flex: 1; font-weight: 700; }
.step-dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-weight: 800; font-size: .88rem; transition: background .25s, color .25s; position: relative; }
.tag { font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 9px; }
.step.next .step-head { border-color: var(--gold); background: var(--gold-soft); }
.step.next .step-dot { background: var(--gold); color: #3D2B00; }
.step.done .step-dot { background: var(--teal); color: transparent; }
.step.done .step-dot::after { content: ""; position: absolute; inset: 0; background: var(--tick-white) center / 15px no-repeat; }
.step.done .step-title { color: var(--muted); }
.step.open .step-head { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.step.open .chev { transform: rotate(180deg); }
.step-body { display: none; border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-sm) var(--r-sm); padding: 8px 20px 20px 60px; color: var(--ink-2); }
.step.next.open .step-body { border-color: var(--gold); }
.step.open .step-body { display: block; animation: rise .3s ease both; }
.step-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose p:last-child, .prose ul:last-child, .prose ol:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ copy chips */
.copy-block { margin: 16px 0; }
.copy-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font: inherit; background: var(--surface-2); border: 1.5px solid transparent; color: var(--ink); border-radius: 10px; padding: 6px 10px; transition: border-color .15s, background .15s, transform .1s; }
.chip code { background: none; padding: 0; font-size: .88rem; word-break: break-all; text-align: left; color: inherit; }
.chip .chip-icon { color: var(--muted); }
.chip:hover { border-color: var(--teal); background: var(--teal-soft); }
.chip:hover .chip-icon { color: var(--teal-ink); }
.chip:active { transform: scale(.97); }
.chip.copied { border-color: var(--teal); background: var(--teal-soft); }
.chip.copied .chip-icon { color: var(--teal-ink); --icon: var(--tick-teal); }

.code { margin: 16px 0; border-radius: var(--r-sm); overflow: hidden; background: var(--code-bg); border: 1px solid var(--line); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--code-head); color: #9fb3d1; font-size: .78rem; font-weight: 700; }
.code-head .link-btn { color: var(--cyan); }
.code pre { margin: 0; padding: 14px 16px; color: var(--code-ink); overflow-x: auto; line-height: 1.55; font-size: .85rem; }

/* ------------------------------------------------------------ notes */
.note-box { border-radius: var(--r-sm); padding: 12px 16px; margin: 14px 0 0; font-size: .93rem; border-left: 4px solid; }
.note-box > strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 2px; }
.note-box p { margin: 0; }
.note-box.tip { background: var(--teal-soft); border-color: var(--teal); }
.note-box.tip > strong { color: var(--teal-ink); }
.note-box.warn { background: var(--gold-soft); border-color: var(--gold); }
.note-box.warn > strong { color: var(--gold-ink); }
.note { font-size: .9rem; color: var(--muted); }
.alert { background: var(--red-soft); color: var(--red); border-radius: var(--r-sm); padding: 10px 14px; font-weight: 700; }
.sources { margin-top: 18px; font-size: .86rem; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 700; }
.sources ul { margin: 8px 0 0; padding-left: 1.2em; }

/* ------------------------------------------------------------ direct delivery */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 10px 0 20px; }
.h-ok { color: var(--teal-ink); } .h-warn { color: var(--gold-ink); }
.ticks, .dots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.ticks li, .dots li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-soft) var(--tick-teal) center / 12px no-repeat; }
.dots li::before { content: ""; position: absolute; left: 7px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dmi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.numbered { padding-left: 1.3em; margin: 0 0 12px; color: var(--ink-2); }
.numbered li { margin: .4em 0; }
.callout { background: var(--surface-2); border-radius: var(--r); padding: 22px; margin-bottom: 16px; }

/* ------------------------------------------------------------ finish */
.finish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.finish-grid .card p { color: var(--ink-2); }
.done-msg { color: var(--teal-ink); font-weight: 700; margin: 10px 0 0; }
.link-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; font-weight: 700; }

/* ------------------------------------------------------------ test stage */
.test-track { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: t; }
.test-track li { counter-increment: t; display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 700; color: var(--muted); padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.test-track li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); font-size: .75rem; }
.test-track li span::before { content: counter(t); }
.test-track li.current { background: var(--gold-soft); color: var(--gold-ink); }
.test-track li.current span { background: var(--gold); color: #3D2B00; }
.test-track li.done { background: var(--teal-soft); color: var(--teal-ink); }
.test-track li.done span { background: var(--teal) var(--tick-white) center / 12px no-repeat; }
.test-track li.done span::before { content: ""; }
.test-request { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 16px 0 8px; }
.test-request .field { flex: 1; min-width: 240px; }
.sent-card { background: var(--teal-soft); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; }
.sent-card .kv { margin-bottom: 8px; }
.sent-card .note { margin: 0; }
.test-state h3 { margin-top: 18px; }
.result-q { margin-top: 24px !important; }
.result-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
#result-box { margin-bottom: 12px; }
.close-session { text-align: center; margin: 26px 0 0; }
.session-chip { background: var(--surface-2); color: var(--muted); }
.session-chip.warn { background: var(--gold-soft); color: var(--gold-ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------ admin: actions, flash, contacts */
.flash { background: var(--teal-soft); color: var(--teal-ink); border-radius: var(--r-sm); padding: 12px 16px; font-weight: 700; margin-bottom: 18px; }
.setup-warn { background: var(--gold-soft); color: var(--gold-ink); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.setup-warn form { display: inline; }
.action-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.action-list li { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-sm); background: var(--gold-soft); }
.action-list li.escalated { background: var(--red-soft); }
.action-list .act-text { display: grid; gap: 2px; }
.action-list .act-text small { color: var(--ink-2); }
.action-list form { margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.contact-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.contact-list .btns { display: flex; gap: 8px; }
.contact-list form { margin: 0; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.access-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.access-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.access-table td { padding: 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 700; color: var(--ink-2); }

/* ------------------------------------------------------------ cards, buttons, forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.stage .card { box-shadow: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: 12px; padding: 12px 20px; border: 1.5px solid transparent; transition: transform .12s, background .2s, opacity .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-secondary:hover { border-color: var(--teal); color: var(--ink); }
.btn-gold { background: var(--gold); color: #3D2B00; }
.btn-danger { background: transparent; color: var(--red); border-color: var(--red-soft); }
.btn-danger:hover { background: var(--red-soft); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .85rem; color: var(--teal-ink); }
.link-btn:hover { text-decoration: underline; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .form select, .inline-form input { font: inherit; font-weight: 500; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field input:focus, .field textarea:focus, .form select:focus, .inline-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.finish .field { margin: 6px 0 12px; }

/* ------------------------------------------------------------ values view */
.values-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 8px; }
.values-head p { color: var(--ink-2); }
.value-group { border-top: 1px solid var(--line); padding: 20px 0 6px; }
.value-group summary { cursor: pointer; list-style: none; }
.value-group summary::-webkit-details-marker { display: none; }
.value-group summary h3 { display: inline; }
.value-group summary::before { content: "▸ "; color: var(--teal); }
.value-group[open] summary::before { content: "▾ "; }
.req, .opt { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.req { background: var(--gold-soft); color: var(--gold-ink); }
.opt { background: var(--surface-2); color: var(--muted); }
.table-wrap { overflow-x: auto; }
.values-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.values-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.values-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.inline-actions { display: flex; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.values-foot { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }

/* ------------------------------------------------------------ centered pages */
.page-center main { display: grid; place-items: center; padding: 48px 16px; }
.narrow { max-width: 520px; }
.center-card { text-align: center; padding: 40px 32px; }
.center-card p { color: var(--ink-2); }
.center-card .form { text-align: left; margin-top: 10px; }
.shield { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--teal-soft); display: grid; place-items: center; }
.shield svg { width: 34px; height: 34px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shield .tick { stroke: var(--gold-ink); stroke-width: 2.4; }
.shield.muted { background: var(--surface-2); }
.shield.muted svg { stroke: var(--muted); }

/* ------------------------------------------------------------ admin */
.admin main { padding: 28px 0 48px; }
.admin .card { margin-bottom: 20px; }
.admin-nav { display: flex; align-items: center; gap: 18px; }
.admin-nav a { color: var(--ink-2); font-weight: 700; text-decoration: none; font-size: .9rem; }
.admin-nav form { margin: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin-bottom: 4px; }
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 10px 14px; min-width: 96px; display: grid; border-top: 3px solid var(--line); }
.stat strong { font-size: 1.4rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .75rem; color: var(--muted); font-weight: 700; }
.grid-form { grid-template-columns: 1.3fr 1fr 150px; align-items: end; }
.grid-form .wide { grid-column: 1 / 3; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--bg); }
.pill { display: inline-block; font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill-ok { background: var(--teal-soft); color: var(--teal-ink); }
.pill-muted { background: var(--surface-2); color: var(--muted); }
.pill-gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.status-in_progress { background: var(--teal-soft); color: var(--teal-ink); }
.pill.status-test_requested { background: var(--gold-soft); color: var(--gold-ink); }
.pill.status-done { background: var(--surface-2); color: var(--ink); }
.pill.status-verified { background: var(--teal); color: #fff; }
.stat.status-in_progress, .stat.status-done { border-top-color: var(--teal); }
.stat.status-test_requested { border-top-color: var(--gold); }
.stat.status-verified { border-top-color: var(--cyan); }
.empty { color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.admin-grid .card { margin: 0; }
.admin-grid .wide { grid-column: 1 / -1; }
.admin-grid h2 { font-size: 1.1rem; margin-top: 4px; }
.admin-grid h2:not(:first-child) { margin-top: 22px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: .92rem; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.check-list li { padding-left: 24px; position: relative; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line); }
.check-list li.is-done { color: var(--ink); }
.check-list li.is-done::before { background: var(--teal); border-color: var(--teal); }
.inline-form { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 10px; }
.inline-form input[type="number"] { max-width: 100px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.timeline li { display: grid; grid-template-columns: 140px 220px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline span { color: var(--ink-2); }
.timeline .ev-test_requested strong, .timeline .ev-completed strong { color: var(--teal-ink); }
.danger-zone h2 { color: var(--red); }
.reload-form { text-align: center; }
.link-box { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1.5px dashed var(--teal); border-radius: var(--r-sm); padding: 12px; margin: 16px 0 10px; }
.link-box code { flex: 1; background: none; word-break: break-all; font-size: .9rem; }
.email-draft { margin: 24px 0; }
.draft { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--r-sm); padding: 16px; font-family: inherit; font-size: .92rem; margin: 0 0 12px; color: var(--ink-2); }

/* ------------------------------------------------------------ footer: dunes, as on learn. */
.dunes { width: 100%; max-width: 1080px; margin: 40px auto 0; padding: 0 16px; line-height: 0; pointer-events: none; }
.dunes svg { width: 100%; height: auto; display: block; }
.footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 18px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer strong { color: var(--ink); }
.footer a { color: var(--teal-ink); }
.footer-contact { display: flex; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--bg); font-weight: 700; font-size: .92rem; padding: 11px 18px; border-radius: 999px; box-shadow: var(--shadow-lift); transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #fff; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; gap: 20px; }
  .choice-grid.three, .finish-grid, .admin-grid { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .grid-form .wide { grid-column: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hud-in { gap: 10px; }
  .logo { height: 28px; }
  .brand-div, .brand-txt { display: none; }
  .hud-chip { display: none; }
  .hud-chip.session-chip { display: inline-flex; }
  .test-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-switch button { padding: 5px 10px; font-size: .78rem; }
  .intro { padding-top: 22px; }
  .stage { padding: 20px 16px; }
  .choice-grid.two, .pros-cons, .dmi-grid, .segmented { grid-template-columns: 1fr; }
  .step-body { padding: 8px 14px 16px; }
  .values-head { flex-direction: column; }
  .link-box { flex-direction: column; align-items: stretch; }
  .progress-card { padding: 16px; }
  .ring-box { width: 92px; height: 92px; }
  .ring-pct { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.reload-form form { display: inline; }
