/* CertAce labs, the "guided split" design: reading column on the left (scenario, topology, requirement cards), console on the right.
   Dark chocolate workspace with praline text, gold and cognac accents, glass panels, a little grain. Desktop: one screen, no page scroll while working. */
body.lab-app {
  --paper: #140E0C; --ink: #F3E8DC; --muted: #B3A194; --line: #6A5648; --line-soft: #3A2B24; --surface: #20150F; --surface-hover: #2A1C14; --code: #2A1C14;
  --correct: #86D19A; --wrong: #F08A6B; --track: #3A2B24; --body: #DCCFC2; --backdrop: rgba(10, 6, 5, .7);
  --gold: #F2B22E; --cognac: #C26A2E; --praline: #E3B58A; --glass: rgba(255, 236, 214, .055); --glass-line: rgba(255, 225, 190, .13); --faint: #7F6E62;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark; background: var(--paper); color: var(--ink);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 8px; font-size: 11px; line-height: 16px; letter-spacing: .13em; text-transform: uppercase; color: var(--praline); font-weight: 700; }
.eyebrow .hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 8px; }
.eyebrow.pad { padding-left: 4px; }

.app { position: relative; isolation: isolate; display: flex; flex-direction: column; height: calc(100dvh - var(--cookie-h, 0px)); min-height: 560px; overflow: hidden;
  background: radial-gradient(1100px 580px at 88% -12%, rgba(194, 106, 46, .30), transparent 62%), radial-gradient(900px 520px at -8% 112%, rgba(242, 178, 46, .12), transparent 60%), #140E0C; }
.app::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }
.bar { flex: none; height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 20px; background: rgba(20, 14, 12, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-line); }
.bar-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; }
.bar-labs { font-size: 14px; color: var(--muted); }
.bar-title { flex: 1; min-width: 0; margin: 0; font-size: 16px; line-height: 24px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-free { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 999px; background: rgba(242, 178, 46, .16); color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.bar-ts { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 999px; background: rgba(240, 138, 107, .16); color: #F4A58C; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 44px; height: 44px; transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 3.5; }
.ring-bg { stroke: rgba(255, 225, 190, .14); } .ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset .5s cubic-bezier(.3, 1.2, .5, 1); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 12px/1 var(--mono); }
.bar-actions { display: flex; gap: 8px; }
.btn-gold, .btn-ghost { min-height: 38px; padding: 0 16px; border-radius: 10px; font: 700 14px/1 inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-gold { background: linear-gradient(180deg, #F7C25A, #E9A21C); color: #2A1A08; border: 0; box-shadow: 0 6px 18px rgba(242, 178, 46, .22); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 225, 190, .22); } .btn-ghost:hover { background: var(--glass); }
.btn-gold:focus-visible, .btn-ghost:focus-visible, .lab-go:focus-visible, .lab-quick button:focus-visible, .lab-tabs button:focus-visible, .hb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.phone-note { display: none; }

body.lab-app .ws { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(400px, 40%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 16px; padding: 16px 20px; }
.read { min-height: 0; display: flex; flex-direction: column; }
.read-scroll { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(227, 181, 138, .55) rgba(255, 236, 214, .06); }
.read-scroll::-webkit-scrollbar { width: 8px; } .read-scroll::-webkit-scrollbar-thumb { background: rgba(227, 181, 138, .5); border-radius: 8px; } .read-scroll::-webkit-scrollbar-track { background: rgba(255, 236, 214, .06); border-radius: 8px; }
.read .glass, .glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; padding: 12px 16px; flex: none; }
.brief-text { margin: 0; font-size: 14.5px; line-height: 22px; color: var(--body); }
.exam-note { margin: 6px 0 0; padding-left: 10px; border-left: 2px solid rgba(242, 178, 46, .5); font-size: 12.5px; line-height: 18px; color: var(--muted); }
.drawer { margin-top: 8px; } .drawer summary { cursor: pointer; font-size: 13px; font-weight: 650; color: var(--praline); }
.pre-block { margin: 8px 0 0; padding: 10px 12px; background: #000; border: 1px solid var(--glass-line); border-radius: 10px; font: 12.5px/19px var(--mono); color: #BDB0A4; white-space: pre-wrap; }
.map-c { padding-bottom: 8px; } #lab-map svg { display: block; width: 100%; height: auto; }
.m-body { fill: #2B1C14; stroke: #E3B58A; stroke-width: 1.4; } .m-screen { fill: #0F0A08; stroke: #6A5648; stroke-width: 1; }
.m-arrows { fill: none; stroke: #F2B22E; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-label { fill: #F3E8DC; font-weight: 650; } .m-sub { fill: #B3A194; font-family: var(--mono); }
.m-pill rect { fill: #1A120F; stroke: rgba(255, 225, 190, .22); stroke-width: 1; } .m-pill text { fill: #E3B58A; font-family: var(--mono); }
.m-click { cursor: pointer; } .m-click:hover .m-body { stroke: #F2B22E; } .m-halo { fill: rgba(242, 178, 46, .12); stroke: rgba(242, 178, 46, .5); } .m-remote { opacity: .8; }
.m-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); } .m-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }

.lab-reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: req; }
.lab-reqs li { counter-increment: req; display: grid; grid-template-columns: 28px 1fr auto; gap: 2px 10px; align-items: start; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid var(--glass-line); font-size: 14.5px; line-height: 21px; color: var(--body); transition: border-color .3s, background .3s; }
.lab-reqs li.ok { background: rgba(134, 209, 154, .08); border-color: rgba(134, 209, 154, .5); color: var(--ink); }
.lab-reqs li.no { border-color: rgba(240, 138, 107, .5); background: rgba(240, 138, 107, .07); }
.lab-reqs .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1.5px solid rgba(255, 225, 190, .22); color: var(--muted); }
.lab-reqs li:not(.ok):not(.no) .mark, .lab-reqs li.no .mark { font-size: 0; }
.lab-reqs li:not(.ok) .mark::after { content: counter(req); font: 600 12px/1 var(--mono); }
.lab-reqs li.no .mark { border-color: var(--wrong); } .lab-reqs li.no .mark::after { color: var(--wrong); }
.lab-reqs li.ok .mark { background: var(--correct); border-color: var(--correct); color: #0E2A18; }
.lab-reqs small { grid-column: 2 / 4; display: none; font-size: 13px; line-height: 19px; color: var(--muted); }
.lab-reqs li.open small.hint, .lab-reqs li.no small.hint, .lab-reqs li.ok.open small.why { display: block; } .lab-reqs li.ok small.why { color: #A9DDB7; }
.lab-reqs li.foldable { cursor: pointer; } .lab-reqs li.foldable:hover { border-color: rgba(134, 209, 154, .8); }
.hb { border: 0; background: transparent; color: var(--praline); font-size: 12.5px; font-weight: 650; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.noaffil { flex: none; margin: 8px 4px 0; font-size: 12px; line-height: 17px; color: var(--faint); }

.rcol { display: flex; flex-direction: column; min-height: 0; min-width: 0; padding: 12px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px; }
.rcol-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; }
.rcol-title { margin: 0; font: 700 13px/1 var(--mono); color: var(--gold); padding: 7px 12px; border-radius: 8px; background: rgba(242, 178, 46, .14); border: 1px solid rgba(242, 178, 46, .45); }
.rcol-keys { margin-left: auto; color: var(--muted); font-size: 13px; }
.lab-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-tabs [role=tab] { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--glass-line); background: transparent; color: var(--muted); font: 700 13px/1 var(--mono); cursor: pointer; }
.lab-tabs [role=tab][aria-selected=true] { background: rgba(242, 178, 46, .14); color: var(--gold); border-color: rgba(242, 178, 46, .5); }
.lab-out { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; background: #0C0807; color: #E6E1DA; font: 14px/21.5px var(--mono); white-space: pre-wrap; word-break: break-word; border-radius: 12px 12px 0 0; scrollbar-width: thin; }
.lab-out .dim { color: #7B6E64; } .lab-out .caret { color: #F27A63; }
.c-host { color: #F2B22E; font-weight: 600; } .c-mode { color: #D88A4B; }
.k-kw { color: #79C7E3; } .k-iface { color: #C9A6F0; } .k-vlan, .k-list, .k-int { color: #B7E08A; } .k-name, .k-host { color: #F0C987; } .k-ip, .k-mask, .k-wild { color: #8FB4FF; }
.c-ok { color: #6FD08C; } .c-bad { color: #F27A63; } .c-if { color: #C9A6F0; } .c-ip { color: #8FB4FF; } .c-vlan { color: #B7E08A; } .c-err { color: #F27A63; } .c-warn { color: #F2B22E; } .h-d { color: #A39689; }
.lab-quick { flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 2px 2px; }
.lab-quick::-webkit-scrollbar { display: none; }
.lab-quick button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--glass-line); background: rgba(255, 236, 214, .04); color: var(--praline); font: 12.5px/1 var(--mono); cursor: pointer; white-space: nowrap; }
.lab-quick button:hover { border-color: var(--gold); color: var(--gold); }
.chip-hint { flex: none; align-self: center; padding: 0 6px; font: 12.5px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.lab-form { flex: none; display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 4px 4px 4px 14px; background: #0C0807; border: 1px solid var(--glass-line); border-radius: 12px; }
.lab-form:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 178, 46, .15); }
.lab-prompt { color: var(--gold); font: 13.5px/20px var(--mono); white-space: nowrap; }
.in-wrap { position: relative; flex: 1; min-width: 0; height: 42px; }
.ghost, .lab-in { position: absolute; inset: 0; margin: 0; padding: 0; border: 0; font: 16px/42px var(--mono); white-space: pre; }   /* 16px: no zoom on iPhone */
.ghost { pointer-events: none; overflow: hidden; } .ghost span:first-child { color: transparent; } .ghost span:last-child { color: rgba(243, 232, 220, .33); }
.lab-in, .lab-in:focus { width: 100%; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; border-radius: 0; color: #FFF6EA; caret-color: var(--gold); }
.lab-go { min-height: 42px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--gold); color: #2A1A08; font-weight: 800; cursor: pointer; }

.result { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; background: rgba(10, 6, 5, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s both; }
.result[hidden] { display: none; }
.result-card { position: relative; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px; border-radius: 20px; background: rgba(32, 21, 15, .95); border: 1px solid rgba(255, 225, 190, .22); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: rise .4s cubic-bezier(.2, 1, .3, 1) both; }
.result-card .big { font: 800 50px/1 var(--mono); color: var(--gold); letter-spacing: -.04em; margin: 8px 0 6px; } #lab-verdict { margin: 6px 0 0; color: var(--body); font-size: 15px; line-height: 23px; }
.vlist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; max-height: 34vh; overflow: auto; }
.vlist li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .25); font-size: 14px; line-height: 20px; }
.vlist li.ok { border-color: rgba(134, 209, 154, .45); } .vlist li.no { border-color: rgba(240, 138, 107, .45); }
.vlist b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; } .vlist li.ok b { background: var(--correct); color: #0E2A18; } .vlist li.no b { background: var(--wrong); color: #3A150B; }
.vlist small { display: block; color: var(--muted); font-size: 13px; line-height: 19px; margin-top: 2px; }
.cta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--glass-line); } .cta h3 { margin: 0; font-size: 17px; line-height: 23px; } .cta p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.cta .row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .result-link { color: var(--praline); font-size: 14px; }
.result-x { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } } @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.below { padding-top: 56px; padding-bottom: 24px; color: var(--body); } .below h2 { font-size: 24px; line-height: 30px; margin: 32px 0 12px; } .below .lead { max-width: 64ch; }
.below .faq details { border-top: 1px solid var(--line-soft); padding: 12px 0; } .below .faq summary { cursor: pointer; font-weight: 650; } .below .faq p { margin: 8px 0 0; color: var(--muted); max-width: 64ch; }
.below .p-note, .below .p-fine { color: var(--muted); font-size: 14px; } .lab-locked { padding: 80px 0; }
/* the cookie notice sits under the workspace instead of over it: app.js reserves its height in --cookie-h */
body.lab-app #cookieBanner { position: fixed !important; left: 0; right: 0; bottom: 0; z-index: 60; }

@media (min-width: 1100px) and (max-height: 960px) {
  #lab-map svg { max-height: 148px; } .map-c { padding-bottom: 6px; } .brief-text { font-size: 14px; line-height: 20px; } .brief { padding: 10px 16px; }
  .read-scroll { gap: 10px; } .lab-reqs { gap: 5px; } .lab-reqs li { padding: 5px 12px; font-size: 14px; line-height: 19.5px; } .lab-reqs .mark { width: 26px; height: 26px; }
}
@media (min-width: 1100px) and (max-height: 780px) { #lab-map svg { max-height: 118px; } .m-legend { display: none; } }
@media (max-width: 1099px) {
  .app { display: block; height: auto; min-height: 0; overflow-x: clip; overflow-y: visible; }
  .rcol-head { flex-wrap: wrap; }
  .bar { position: sticky; top: 0; z-index: 30; padding: 0 12px; } .bar-labs, .ring, .bar-actions .btn-ghost { display: none; } .bar-free { display: none; }
  .phone-note { display: block; margin: 0; padding: 8px 14px; font-size: 13px; line-height: 19px; color: var(--muted); background: rgba(242, 178, 46, .08); border-bottom: 1px solid var(--glass-line); } .phone-note a { color: var(--praline); }
  body.lab-app .ws { display: block; padding: 12px; } .read { margin-bottom: 12px; } .read-scroll { overflow: visible; }
  .rcol { height: 72vh; min-height: 380px; } .rcol-keys { display: none; }
  .noaffil { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ring-fg, .lab-reqs li { transition: none; } .result, .result-card { animation: none; } }

/* ---- 21.11 audit: the phone note, button contrast, locked page ---- */
.phone-note[hidden] { display: none !important; }
@media (max-width: 1099px) {
  .phone-note { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 8px 5px 16px; font-size: 12.5px; line-height: 18px; color: var(--muted); background: transparent; border-bottom: 1px solid var(--glass-line); }
  .phone-note button { flex: none; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
}
.btn-gold, .btn-gold:hover, a.btn-gold { color: #2A1A08; }

/* ---- the locked lab page (light, with the site header): same for CCNA and PBQ ---- */
.btn-primary, a.btn-primary { color: #1B1E22; }
.lab-locked .lock-paths { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 6px; }
@media (max-width: 600px) { .lab-locked .lock-paths { flex-direction: column; } .lab-locked .lock-paths .btn { width: 100%; } }

/* ---- phase 2: the locked lab, the real lab blurred behind a lock ---- */
.lockpage { padding: 0; }
.lockwrap { position: relative; background: #140E0C; min-height: 640px; overflow: hidden; }
.lockbg { position: absolute; inset: 0; filter: blur(3.5px) saturate(.9); opacity: .5; pointer-events: none; user-select: none; color: #DCCFC2; }
.lab-bg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; padding: 18px; }
.glass-bg { background: rgba(255, 236, 214, .055); border: 1px solid rgba(255, 225, 190, .13); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; font-size: 14.5px; line-height: 22px; }
.glass-bg p { margin: 0; } .lockbg .eb { margin: 0 0 6px; font-size: 11px; line-height: 16px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: #E3B58A; } .lockbg .eb.pad { padding-left: 4px; }
.chips-bg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; } .chips-bg span { padding: 1px 9px; border: 1px solid rgba(255, 225, 190, .24); border-radius: 999px; font: 600 11.5px/18px ui-monospace, Menlo, monospace; color: #E3B58A; }
.bgart { width: 100%; height: auto; max-height: 130px; display: block; }
.rq-bg { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; } .rq-bg li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 14px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 225, 190, .13); font-size: 14.5px; }
.rq-bg .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 225, 190, .28); display: grid; place-items: center; font: 600 11px ui-monospace, Menlo, monospace; color: #8C7B6E; }
.cons-bg { background: #0C0807; border-radius: 12px; padding: 14px; font: 13px/20px ui-monospace, "JetBrains Mono", Menlo, monospace; color: #E6E1DA; min-height: 280px; } .cons-bg p { margin: 0 0 4px; } .cons-bg .pr { color: #F2B22E; }
.lockcard { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, calc(100% - 28px)); background: rgba(20, 14, 12, .95); border: 1px solid rgba(255, 225, 190, .28); border-radius: 20px; padding: 26px 26px 22px; color: #F3E8DC; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lockico { width: 44px; height: 44px; border-radius: 12px; background: rgba(242, 178, 46, .14); border: 1px solid rgba(242, 178, 46, .5); color: #F2B22E; display: grid; place-items: center; margin-bottom: 12px; }
.lockcard .lock-kind { margin: 0 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: #E3B58A; }
.lockcard h1 { margin: 0 0 8px; font-size: 26px; line-height: 32px; letter-spacing: -.02em; color: #F3E8DC; }
.lockcard .lock-sum { margin: 0 0 10px; color: #DCCFC2; font-size: 15.5px; line-height: 23px; } .lockcard .lock-why { margin: 0 0 12px; color: #DCCFC2; font-size: 15px; line-height: 22px; }
.lockcard .lock-paths { margin: 4px 0 0; } .lockcard .btn { min-height: 44px; }
.lockcard .btn-primary { background: linear-gradient(180deg, #F7C25A, #E9A21B); color: #2A1A08; border: 1px solid #FFD98A; }
.lockcard .btn-secondary { background: transparent; color: #F3E8DC; border: 1px solid rgba(255, 225, 190, .4); }
.lockcard .lock-more { margin: 12px 0 0; font-size: 14px; } .lockcard .lock-more a { color: #E3B58A; }
@media (max-width: 760px) { .lab-bg { grid-template-columns: minmax(0, 1fr); } .lockwrap { min-height: 760px; } .lockcard { top: 24px; transform: translateX(-50%); padding: 20px 18px; } .lockcard h1 { font-size: 22px; line-height: 28px; } }
@media (prefers-reduced-motion: reduce) { .lockbg { filter: blur(3.5px); } }
.lock-paths { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .lock-paths { flex-direction: column; } .lock-paths .btn { width: 100%; } }

/* ---- phase 2: the CLI lab on a phone: three tabs (Scenario, Network, Console), the console docked at the bottom, the requirements in a pill ---- */
.m-tabs, .req-pill { display: none; }
@media (max-width: 1099px) {
  body.lab-app:not(.pbq-app) .app { display: flex; flex-direction: column; height: calc(100dvh - var(--cookie-h, 0px)); min-height: 0; overflow: hidden; }
  body.lab-app:not(.pbq-app) .ws { flex: 1 1 0; min-height: 0; position: relative; display: flex !important; flex-direction: column; padding: 0 !important; overflow: hidden; }
  /* Scenario and Network: the content takes what it needs (and scrolls when it is long), the console below it takes ALL the rest, never less than 250 px (prompt, buttons, 3+ lines of output): no empty gap between them */
  body.lab-app:not(.pbq-app) .read { flex: 0 1 auto; min-height: 0; margin: 0; display: flex; flex-direction: column; }
  body.lab-app:not(.pbq-app) .read-scroll { flex: 0 1 auto; min-height: 0; overflow-y: auto !important; padding: 10px 12px 12px; }
  body.lab-app:not(.pbq-app) .rcol { flex: 1 1 auto; height: auto !important; min-height: 250px !important; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 8px 10px; }
  body.lab-app:not(.pbq-app) .app[data-tab="console"] .read { display: none; }
  body.lab-app:not(.pbq-app) .app[data-tab="console"] .rcol { flex: 1 1 0; height: auto !important; }
  body.lab-app:not(.pbq-app) .app[data-tab="scenario"] .map-c { display: none; }
  body.lab-app:not(.pbq-app) .app[data-tab="network"] .brief { display: none; }
  body.lab-app:not(.pbq-app) .app[data-tab="network"] .brief + .map-c, body.lab-app:not(.pbq-app) .app[data-tab="network"] .map-c { display: block; }
  body.lab-app:not(.pbq-app) .noaffil { display: none; }
  .m-tabs { display: flex; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--glass-line); background: rgba(20, 14, 12, .9); }
  .m-tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--faint); font: 700 14px/1 inherit; cursor: pointer; }
  .m-tabs button[aria-selected="true"] { background: rgba(242, 178, 46, .14); color: var(--gold); }
  .req-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(242, 178, 46, .55); background: rgba(242, 178, 46, .1); color: var(--gold); font: 700 14px/1 var(--mono); cursor: pointer; flex: none; }
  .req-pill svg { transition: transform .25s; } .req-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
  .req-sec { position: absolute; left: 0; right: 0; top: 0; z-index: 20; background: rgba(20, 14, 12, .98); border-bottom: 1px solid rgba(255, 225, 190, .25); padding: 12px; max-height: 70%; overflow-y: auto; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); transform: translateY(-105%); transition: transform .28s; visibility: hidden; }
  .app.sheet-open .req-sec { transform: none; visibility: visible; }
  .read-scroll .req-sec { display: block; }
  .app.kb .rcol { flex: none; }
}
@media (max-width: 1099px) and (prefers-reduced-motion: reduce) { .req-sec { transition: none; } }

.bar-fb { background: rgba(242, 178, 46, .16); color: var(--gold); }

/* "Email me the link" card (Nov 2026): phones (< 900 px), in-app browsers and the CertAce app; never on a desktop */
.lab-email { display: none; position: relative; margin: 0; padding: 10px 44px 10px 14px; background: rgba(242, 178, 46, .1); border-bottom: 1px solid rgba(242, 178, 46, .35); }
.lab-email .le-t { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--ink); }
.le-f { display: flex; gap: 8px; } .le-in { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--glass-line); background: #0C0807; color: #FFF6EA; font: 16px/1 var(--sans, system-ui, sans-serif); }
.le-in:focus { outline: 2px solid var(--gold); outline-offset: 1px; } .le-go { flex: none; min-height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--gold); color: #2A1A08; font-weight: 800; cursor: pointer; } .le-go[disabled] { opacity: .6; }
.le-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } .le-m { margin: 6px 0 0; min-height: 0; font-size: 13px; line-height: 18px; color: var(--muted); } .le-m:empty { display: none; } .le-m.ok { color: var(--correct); font-weight: 700; } .le-m.bad { color: var(--wrong); }
.le-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
@media (max-width: 899px) { .lab-email:not([hidden]) { display: block; } .lab-email:not([hidden]) ~ .phone-note { display: none !important; } }
.lab-email.force:not([hidden]) { display: block; } .lab-email.force:not([hidden]) ~ .phone-note { display: none !important; }
@media (max-width: 380px) { .le-f { flex-direction: column; } .le-go { width: 100%; } }

/* classic network icons: the thin ring of the router disc, the LED of the server */
.m-ring { fill: none; stroke: rgba(227, 181, 138, .4); stroke-width: 1; } .m-led { fill: #F2B22E; }
/* Desktop (1024 px and up): larger text (Nov 2026): body ~17.5 px, requirements 17, console 15.5. Phones keep the sizes above. */
@media (min-width: 1024px) {
  .eyebrow { font-size: 12.5px; line-height: 18px; } .bar-title { font-size: 18px; line-height: 26px; } .bar-labs { font-size: 15px; } .bar-free, .bar-ts { font-size: 12.5px; }
  .brief-text { font-size: 17.5px; line-height: 27px; } .exam-note { font-size: 15px; line-height: 22px; } .drawer summary { font-size: 15px; } .pre-block { font: 14.5px/22px var(--mono); }
  .m-legend { font-size: 14px; gap: 4px 16px; } .hint { font-size: 14px; }
  .lab-reqs li { font-size: 17px; line-height: 25px; grid-template-columns: 32px 1fr auto; gap: 3px 12px; padding: 10px 14px; } .lab-reqs .mark { width: 32px; height: 32px; font-size: 15px; } .lab-reqs li:not(.ok) .mark::after { font-size: 14px; }
  .lab-reqs small { font-size: 15.5px; line-height: 23px; } .hb { font-size: 15px; padding: 5px 9px; } .noaffil { font-size: 13.5px; line-height: 20px; }
  .rcol-title { font-size: 15px; padding: 8px 14px; } .rcol-keys { font-size: 14.5px; } .lab-tabs [role=tab] { font-size: 15px; min-height: 36px; }
  .lab-out { font-size: 15.5px; line-height: 24px; } .lab-prompt { font-size: 15.5px; } .ghost, .lab-in { font-size: 16.5px; }
  .lab-quick button { font-size: 14.5px; min-height: 38px; padding: 0 14px; } .chip-hint { font-size: 14px; } .lab-go { font-size: 15px; }
  .btn-gold, .btn-ghost { font-size: 15px; min-height: 40px; } .ring span { font-size: 13px; }
}
/* the diagram keeps a readable size on a desktop, also on a screen that is not tall (the compact rules above capped it at 148 px) */
@media (min-width: 1024px) { #lab-map svg { max-height: 250px; } .map-c { padding-bottom: 10px; } .brief { padding: 12px 18px; } }
@media (min-width: 1100px) and (max-height: 780px) { #lab-map svg { max-height: 175px; } }
/* "Review us on Trustpilot": a quiet link in the result card of a finished lab (web only) */
.tp-row { margin: 14px 0 0; text-align: center; } .tp-row[hidden], .tp-link[hidden] { display: none; }
.tp-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--glass-line); border-radius: 999px; color: var(--praline); font-size: 14.5px; font-weight: 650; text-decoration: none; background: transparent; }
.tp-link svg { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; } .tp-link:hover { border-color: var(--gold); color: var(--ink); } .tp-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Desktop: a requirement cut by the bottom of the scrolling column no longer runs into the footer line: the column fades out above a thin rule, and its end has room (Nov 2026) */
@media (min-width: 1100px) {
  .read-scroll { padding-bottom: 26px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); }
  .noaffil { margin: 0 4px; padding-top: 9px; border-top: 1px solid var(--glass-line); }
}
