/* =========================================================
   Concept Labs (site/ccna/labs/): the hub and every lab page. Uses the tokens and
   parts in site.css. The rig (topology, inspector, console), tasks, scenarios,
   drills and the recall sheet are shared by every lab.
   ========================================================= */
code.c { font-family: var(--f-mono); font-size: .86em; background: var(--bg-2); color: var(--blue-ink); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
[data-dark] code.c { background: var(--navy-2); color: #fff; }
.btn-s { min-height: 44px; padding: 9px 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-s:active { box-shadow: 1px 1px 0 var(--ink); }
.lnk { background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.dim { color: var(--ink-3); }
@media (min-width: 1360px) { main > .band > .wrap { padding-right: max(var(--gutter), calc(200px - (calc(100 * var(--vw)) - var(--max)) / 2)); } main > .band > .wrap.wrap-lab { padding-right: max(var(--gutter), 170px); } }

/* ---------- lab header: what it is + your record ---------- */
.lab-head { display: grid; gap: 40px; }
@media (min-width: 1000px) { .lab-head { grid-template-columns: minmax(0, 6fr) minmax(340px, 4fr); gap: 64px; align-items: center; } }
@media (min-width: 1000px) { .lab-wrap { padding-top: clamp(36px, calc(6 * var(--svh)), 80px); padding-bottom: clamp(44px, calc(7 * var(--svh)), 88px); } }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.crumb a { color: var(--blue-ink); min-height: 32px; display: inline-flex; align-items: center; }
.lab-title { font-size: clamp(40px, min(calc(10 * var(--vw)), calc(7.6 * var(--svh))), 70px); line-height: 1.02; letter-spacing: -.035em; max-width: 11em; text-wrap: balance; }
.lab-title em { display: block; color: var(--blue); }
.lab-sub { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 34em; }
.lab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 420px) { .lab-actions .btn { flex: 1 1 100%; } }
.lab-obj { list-style: none; margin: 28px 0 0; padding: 0; display: grid; border-top: 2px solid var(--ink); max-width: 36em; }
.lab-obj li { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.lab-obj .mono { font-size: 11px; font-weight: 700; color: var(--blue-ink); padding-top: 3px; }
@media (min-width: 1000px) and (max-height: 820px) { .lab-obj { display: none; } }

.record { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.record-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--navy); color: #fff; }
.record-t { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.record-n { font-size: 12px; color: #C3CEEE; }
.record-n [data-mastery-pct] { color: var(--led); font-weight: 700; }
.ms-list { list-style: none; margin: 0; padding: 4px 16px; }
.ms a { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); min-height: 44px; }
.ms:last-child a { border-bottom: 0; }
.ms a:hover .ms-t { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.ms-t { font-family: var(--f-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.ms-n { font-size: 13px; font-weight: 700; }
.ms-m { grid-column: 1 / -1; display: flex; gap: 3px; }
.ms-m i { flex: 1; height: 8px; border-radius: 2px; background: var(--bg-2); }
.ms-m i.on { background: var(--led); }
.record-foot { padding: 12px 16px 14px; border-top: 2px solid var(--ink); background: var(--bg); font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 1000px) and (max-height: 760px) { .ms a { padding: 7px 0; } .record-foot { display: none; } }

/* ---------- the rig ---------- */
.wrap-lab { max-width: 1360px; }
.lab { border: 2px solid var(--ink); border-radius: var(--r-l); background: var(--card); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.lab-bar { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 8px 6px 16px; background: var(--navy); color: #fff; }
.lab-id { flex: 1; min-width: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #C3CEEE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsel { display: flex; align-items: center; gap: 4px; }
.vsel-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #C3CEEE; margin-right: 4px; }
.vsel button, .lab-reset { min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1.5px solid #3A4F99; background: var(--navy-2); color: #fff; font-size: 13px; font-weight: 700; }
.vsel button:hover, .lab-reset:hover { border-color: #9DB4FF; }
.vsel button[aria-checked="true"] { background: var(--led); border-color: var(--led); color: var(--ink); }
.lab-reset { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
@media (max-width: 480px) { .lab-id { display: none; } .vsel { flex: 1; } }

.lab-body { display: grid; }
.lab-stage { min-width: 0; border-bottom: 2px solid var(--ink); }
@media (min-width: 1000px) {
  .lab-body { grid-template-columns: minmax(0, 1.55fr) minmax(340px, 1fr); }
  .lab-stage { border-bottom: 0; border-right: 2px solid var(--ink); }
  /* the side panel takes the stage's height and scrolls inside */
  .lab-side { contain: size; }
}
.topo {
  position: relative; aspect-ratio: 4 / 5; container-type: inline-size; overflow: hidden;
  background-color: var(--blue-wash);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
}
@media (min-width: 560px) { .topo { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) { .topo { aspect-ratio: auto; height: clamp(380px, calc(100 * var(--svh)) - 300px, 560px); } }
.tp-dev[hidden], .tp-pm[hidden], .tp-chip[hidden] { display: none; }
.tp-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; will-change: transform; }
.tp-l line { stroke-linecap: round; fill: none; transition: stroke .3s, opacity .3s; }
.tp-case { stroke: var(--ink); stroke-width: 6; }
.tp-cab { stroke: var(--blue); stroke-width: 3; }
.tp-l.blk .tp-case { stroke: #8EA6F5; stroke-width: 5; }
.tp-l.blk .tp-cab { stroke: var(--card); stroke-width: 2.5; stroke-dasharray: 5 6; }
.tp-l.down .tp-case { stroke: #B7C3E3; stroke-width: 3; stroke-dasharray: 2 7; }
.tp-l.down .tp-cab { stroke: transparent; }
.tp-l.offv { opacity: .28; }
.tp-l.storm .tp-case { stroke: var(--miss); }
.tp-l.storm .tp-cab { stroke: #FFD9D4; stroke-dasharray: 10 8; }
@media (prefers-reduced-motion: no-preference) { .tp-l.storm .tp-cab { animation: storm .6s linear infinite; } @keyframes storm { to { stroke-dashoffset: -36; } } }
.tp-l.oneway .tp-cab { stroke-dasharray: 14 4 2 4; }
.tp-l.sel .tp-case { stroke: var(--led); stroke-width: 9; }
.tp-pk { position: absolute; inset: 0; pointer-events: none; }
.tp-pkt {
  position: absolute; left: 0; top: 0; height: 16px; box-sizing: border-box; display: grid; place-items: center;
  border: 1.4px solid var(--ink); border-radius: 4px; background: var(--navy); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; white-space: nowrap; will-change: transform, opacity;
}
.tp-pkt.storm { background: var(--miss); }

.tp-dev {
  --d: clamp(46px, 13cqw, 76px);
  position: absolute; z-index: 2; translate: -50% -50%;
  width: var(--d); height: calc(var(--d) * 1.05); padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--card); border: 2px solid var(--ink); border-radius: calc(var(--d) * .2); box-shadow: 3px 3px 0 var(--ink);
  transition: box-shadow .16s var(--ease-out), background-color .25s, opacity .25s, transform .16s var(--ease-spring);
}
@container (min-width: 700px) { .tp-dev { --d: clamp(64px, 10.5cqw, 84px); } }
.tp-dev:hover { box-shadow: 5px 5px 0 var(--ink); }
.tp-dev:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.tp-dev svg { width: 46%; height: auto; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* device icons: one silhouette and color per type (topo.js ICON), so a router never reads as a switch */
.tp-dev svg.ic { width: calc(var(--d) * .5); flex: none; stroke-width: 2.2; }
.ic .ic-blue { fill: var(--blue); stroke: var(--ink); }
.ic .ic-navy { fill: var(--navy); stroke: var(--ink); }
.ic .ic-card { fill: var(--card); stroke: var(--ink); }
.ic .ic-pale { fill: var(--blue-wash); stroke: var(--ink); }
.ic .ic-w { fill: none; stroke: #fff; stroke-width: 3.2; }
.ic .ic-thin { stroke-width: 2.6; }
.ic .ic-ink { fill: none; stroke: var(--ink); stroke-width: 2.8; }
.ic .ic-bluel { fill: none; stroke: var(--blue); stroke-width: 3.4; }
.ic .ic-led { fill: var(--led); stroke: var(--ink); stroke-width: 1.4; }
.ic .ic-dots { stroke-width: 4.6; }
.tp-dev[data-type="rt"] { width: calc(var(--d) * 1.12); height: calc(var(--d) * 1.12); border-radius: 50%; gap: 0; }
.tp-dev[data-type="rt"] svg.ic { width: calc(var(--d) * .5); }
.ic .ic-rt { stroke-width: 3.6; }
.tp-dev[data-type="rt"].sub-wide { border-radius: calc(var(--d) * .34); }
.tp-dev:is([data-type="sw"], [data-type="l3"], [data-type="wlc"], [data-type="hub"]) { width: calc(var(--d) * 1.26); height: calc(var(--d) * .92); border-radius: calc(var(--d) * .14); }
.tp-dev:is([data-type="sw"], [data-type="l3"], [data-type="wlc"], [data-type="hub"]) svg.ic { width: calc(var(--d) * .62); margin: calc(var(--d) * -.08) 0 calc(var(--d) * -.06); }
.tp-dev[data-type="srv"] { width: calc(var(--d) * .9); height: calc(var(--d) * 1.14); }
.tp-dev[data-type="cloud"] { border-radius: 99px; width: calc(var(--d) * 1.2); }
/* the device key under the network */
.legend .lg-dev { font-weight: 700; color: var(--ink); }
.lg-ic { display: inline-grid; place-items: center; width: 26px; height: 22px; font-style: normal; }
.lg-ic svg { width: 24px; height: 24px; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legend .lg-dev + li:not(.lg-dev) { margin-left: 12px; }
.tp-name { font-size: clamp(10px, calc(var(--d) * .17), 13px); font-weight: 700; letter-spacing: .03em; line-height: 1; }
.tp-sub { font-size: clamp(8.5px, calc(var(--d) * .135), 11px); color: var(--ink-3); line-height: 1.1; }
.tp-dev.is-root { background: var(--led-wash); }
.tp-dev.is-root::before { content: "ROOT"; position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 1px 6px; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--led); color: var(--ink); font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; }
.tp-dev.is-down { opacity: .55; border-style: dashed; box-shadow: none; }
.tp-dev.off-vlan { opacity: .4; }
.tp-pc { --d: clamp(44px, 12cqw, 60px); }
.tp-rogue { border-style: dashed; background: #FFF6E5; }
.tp-rogue .tp-sub { color: var(--ink-2); }
.tp-dev.sub-ip .tp-sub { font-size: clamp(7.5px, calc(var(--d) * .118), 10px); letter-spacing: -.03em; white-space: nowrap; }
.tp-dev.sel { outline: 3px solid var(--blue); outline-offset: 3px; }
.tp-dev.guess-root { background: var(--blue); color: #fff; }
.tp-dev.guess-root svg { stroke: #fff; }
.tp-dev.guess-root .tp-sub { color: #DCE5FF; }
.tp-dev.wrong { box-shadow: 3px 3px 0 var(--miss); border-color: var(--miss); }

.tp-pm {
  position: absolute; z-index: 3; translate: -50% -50%;
  min-width: 24px; height: 22px; padding: 0 4px; border-radius: 6px; border: 1.5px solid var(--ink);
  background: var(--card); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; transition: background-color .25s, color .25s, transform .16s var(--ease-spring);
}
.tp-pm::before { content: ""; position: absolute; inset: -9px; }
.tp-pm:hover { transform: scale(1.12); }
.tp-pm.s-fwd { background: var(--led); }
.tp-pm.s-blk { background: var(--card); color: var(--ink-2); border-style: dashed; }
.tp-pm.s-lrn { background: var(--blue-wash); color: var(--blue-ink); border-color: var(--blue); }
.tp-pm.s-bkn { background: var(--ink); color: #fff; }
.tp-pm.edge { box-shadow: inset 0 -3px 0 var(--blue); }
.tp-pm.err, .tp-pm.off { background: var(--bg-2); color: var(--ink); font-size: 13px; }
.tp-pm.err { background: var(--ink); color: #fff; }
.tp-pm.s-unset { border-style: dashed; color: var(--ink-3); }
.tp-pm.s-guess { background: var(--blue); color: #fff; }
.tp-pm.right { outline: 2px solid var(--led); outline-offset: 1px; }
.tp-pm.wrong { outline: 2.5px solid var(--miss); outline-offset: 1px; }
.tp-pm.sel { outline: 3px solid var(--blue); outline-offset: 2px; }
.tp-chip {
  position: absolute; z-index: 1; translate: -50% -50%; padding: 1px 5px; border-radius: 5px; border: 1.5px solid var(--ink);
  background: var(--card); color: var(--ink-2); font-size: 10px; font-weight: 700; line-height: 1.4;
}
.tp-chip::before { content: ""; position: absolute; inset: -12px -8px; }
.tp-chip:hover { color: var(--ink); border-color: var(--blue); }
/* small phones: the crossing cables' chips would sit on the port markers (speed is in the cable's panel) */
.topo[data-narrow] .tp-chip[data-link="L4"], .topo[data-narrow] .tp-chip[data-link="L5"] { display: none; }
.topo[data-narrow] .tp-chip.nn { display: none; }
.tp-chip.cut { border-style: dashed; color: var(--ink-3); }
.tp-chip.warn { background: var(--ink); color: #fff; }
.tp-chip.sel { outline: 3px solid var(--blue); outline-offset: 2px; }
.storm { position: absolute; z-index: 4; left: 10px; top: 10px; right: 10px; width: fit-content; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 6px; background: var(--card); border: 2px solid var(--miss); color: var(--miss); font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .storm:not([hidden]) { animation: alarm 1.2s steps(2) infinite; } @keyframes alarm { 50% { background: #FFF1EF; } } }

.lab-strip { min-height: 74px; padding: 10px 16px; border-top: 2px solid var(--ink); background: var(--bg); font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.lab-strip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.lab-strip li { display: flex; gap: 8px; }
.lab-strip li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; border-radius: 2px; background: var(--blue); }
.lab-strip li.big { color: var(--ink); font-weight: 700; }
.lab-strip li.big::before { background: var(--led); }
.lab-strip li.wait::before { background: var(--blue-wash); outline: 1.5px solid var(--blue); }
.lab-strip li.more::before { background: transparent; }
.lab-strip p { padding-top: 2px; }
.legend { list-style: none; margin: 0; padding: 10px 16px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; border-top: 1px solid var(--hair); font-size: 12.5px; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { min-width: 20px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 10px; font-weight: 700; font-style: normal; background: var(--card); }
.lg-fwd { background: var(--led); }
.lg-blk { border-style: dashed; color: var(--ink-2); }
.lg-lrn { background: var(--blue-wash); border-color: var(--blue); color: var(--blue-ink); }
.lg-bkn, .lg-err { background: var(--ink); color: #fff; }
.lg-edge { background: var(--led); box-shadow: inset 0 -3px 0 var(--blue); }

/* more device kinds, each sized for what it is */
.tp-phone, .tp-srv, .tp-ap, .tp-cloud { --d: clamp(44px, 12cqw, 62px); }
.tp-cloud { border-radius: 99px; background: var(--bg-2); }
.tp-dev.is-hot { background: var(--led-wash); }
.tp-dev.is-act::before, .tp-dev[data-tag]::before { content: attr(data-tag); position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 1px 6px; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--led); color: var(--ink); font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.tp-dev.tag-dim::before { background: var(--card); }
.tp-dev.tag-bad::before { background: var(--ink); color: #fff; }
.tp-dev.is-bad { border-color: var(--miss); box-shadow: 3px 3px 0 var(--miss); }
.tp-l.trunk .tp-cab { stroke-width: 4.5; }
.tp-l.trunk .tp-case { stroke-width: 8; }
.tp-l.hot .tp-cab { stroke: var(--led); }
.tp-l.bad .tp-case { stroke: var(--miss); }
.tp-l.bad .tp-cab { stroke: #FFD9D4; stroke-dasharray: 6 5; }
.tp-l.wifi .tp-case { stroke: transparent; }
.tp-l.wifi .tp-cab { stroke: var(--blue); stroke-dasharray: 2 6; stroke-width: 3; }
.tp-pm.s-up { background: var(--led); }
.tp-pm.s-down { background: var(--card); color: var(--ink-3); border-style: dashed; }
.tp-pm.s-warn { background: #FFF1D6; }
.tp-pm.s-bad { background: var(--card); color: var(--miss); border-color: var(--miss); }
.tp-pm.s-tag { background: var(--navy); color: #fff; }
.tp-pm.s-info { background: var(--blue-wash); color: var(--blue-ink); border-color: var(--blue); }
.tp-pkt.ok { background: #0B7A43; }
.tp-pkt.blue { background: var(--blue); }
.tp-pkt.bad { background: var(--miss); }
.tp-pkt.ghost { background: var(--card); color: var(--ink); }
.storm.ok { border-color: var(--led); color: var(--ink); background: var(--led-wash); animation: none !important; }
.lab-strip li.bad { color: var(--miss); font-weight: 700; }
.lab-strip li.bad::before { background: var(--miss); }
.lab-ctl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lab-ctl:empty { display: none; }
.lab-ctl .vsel-l { margin-left: 4px; }
.lab-ctl button { min-width: 44px; min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1.5px solid #3A4F99; background: var(--navy-2); color: #fff; font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.lab-ctl button:hover { border-color: #9DB4FF; }
.lab-ctl button[aria-checked="true"], .lab-ctl button[aria-pressed="true"] { background: var(--led); border-color: var(--led); color: var(--ink); }
@media (max-width: 480px) { .lab-ctl { flex: 1; } }
/* text fields in the inspector */
.in-field { display: grid; gap: 4px; padding: 4px 0; }
.in-field-r { display: flex; gap: 8px; }
.in-field input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--bg); font-size: 15px; }
.in-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.in-field .btn { box-shadow: 2px 2px 0 var(--ink); }
.in-out { margin: 8px 0 0; padding: 10px 12px; background: #050D2E; color: #D8E0F7; border-radius: 8px; font-size: 11.5px; line-height: 1.5; white-space: pre; overflow-x: auto; scrollbar-width: none; }
.in-out::-webkit-scrollbar { display: none; }
.in-res { margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; background: var(--bg); border-left: 4px solid var(--blue); }
.in-res.ok { background: var(--led-wash); border-left-color: var(--led); }
.in-res.no { border-left-color: var(--miss); }
.in-res b { font-family: var(--f-display); }
.in-res ol, .in-res ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 3px; font-size: 13.5px; }
.in-res .mono { font-size: 12.5px; }
.prow-s.s-up { background: var(--led); }
.prow-s.s-down { border-style: dashed; color: var(--ink-3); }
.prow-s.s-bad { color: var(--miss); border-color: var(--miss); }
.prow-s.s-tag { background: var(--navy); color: #fff; }
.chip-s.s-up { background: var(--led); }
.chip-s.s-bad { color: var(--miss); border-color: var(--miss); }
.chip-s.s-tag { background: var(--navy); color: #fff; }
.chip-s.s-info { background: var(--blue-wash); border-color: var(--blue); }
.dr-tabs[data-n="2"], .dr-tabs[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dr-tabs[data-n] { display: flex; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* reachability grid: one ping per cell */
.mxt { border-collapse: collapse; margin: 4px 0 2px; font-size: 12px; }
.mxt th { font-size: 10.5px; font-weight: 700; padding: 3px 4px; color: var(--ink-2); text-align: center; }
.mxt tbody th { text-align: left; padding-right: 8px; }
.mxt td { padding: 2px; text-align: center; }
.mx { width: 44px; height: 36px; border-radius: 7px; border: 1.5px solid var(--ink); font-family: var(--f-mono); font-weight: 700; font-size: 14px; background: var(--card); }
.mx.ok { background: var(--led); }
.mx.no { color: var(--miss); border-color: var(--miss); border-style: dashed; }
.mx:hover { transform: translateY(-1px); box-shadow: 2px 2px 0 var(--ink); }
@media (max-width: 380px) { .mx { width: 38px; } }
/* a device's VLAN database */
.vdb { list-style: none; margin: 0 0 8px; padding: 0; border-top: 2px solid var(--ink); }
.vdb li { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.vdb-n { font-weight: 700; color: var(--blue-ink); }
.vdb .lnk { min-height: 36px; font-size: 13px; }

.lg-tag { background: var(--navy); color: #fff; }
.lg-v { background: var(--led); font-size: 9px; }
.lg-bad { color: var(--miss); border-color: var(--miss); }
.bidbar.qtag { grid-template-columns: 4fr 2fr 2fr 5fr; }
.qtag .bb-e + .bb-e { background: var(--blue-ink); }

/* side panel: Inspect | Console */
.lab-side { display: flex; flex-direction: column; min-width: 0; }
.side-tabs { display: flex; border-bottom: 2px solid var(--ink); flex: none; }
.side-tab { flex: 1; min-height: 48px; border: 0; background: var(--bg); font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink-2); border-right: 2px solid var(--ink); }
.side-tab:last-child { border-right: 0; }
.side-tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 -4px 0 var(--blue); }
.side-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.side-pane[hidden] { display: none; }
.insp { padding: 16px; overflow: auto; flex: 1; min-height: 0; }
.in-head { display: grid; gap: 2px; margin-bottom: 12px; }
.in-back { justify-self: start; min-height: 32px; font-size: 13px; margin-bottom: 2px; }
.in-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); }
.in-t { font-size: 24px; letter-spacing: -.025em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.in-t .dim { font-weight: 500; }
.pill { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; border: 1.5px solid var(--ink); background: var(--bg-2); }
.pill-root { background: var(--led); }
.in-bid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13px; }
.in-bid span { padding: 2px 7px; border-radius: 5px; background: var(--bg-2); }
.in-tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.in-tab th, .in-tab td { text-align: left; padding: 7px 6px 7px 0; border-bottom: 1px solid var(--hair); }
.in-tab thead th { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; border-bottom: 2px solid var(--ink); }
.in-tab .lnk { min-height: 36px; font-family: var(--f-mono); font-weight: 700; font-size: 13px; }
.in-hint { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.in-why { font-size: 15px; color: var(--ink-2); margin: 8px 0 12px; }
.in-why b { color: var(--ink); }
.in-alert { display: inline-block; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.in-sub { margin: 16px 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.in-grid { display: grid; gap: 10px; margin: 6px 0 4px; }
.in-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.in-row .btn { flex: 1 1 130px; font-family: var(--f-mono); font-size: 13px; }
.in-acts { display: grid; gap: 6px; margin-top: 12px; }
.in-state { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-r, .chip-s { font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--card); }
.chip-r.r-root { background: var(--navy); color: #fff; }
.chip-r.r-desg { background: var(--blue); color: #fff; }
.chip-s.s-fwd { background: var(--led); }
.chip-s.s-blk { border-style: dashed; }
.chip-s.s-bkn { background: var(--ink); color: #fff; }
.chip-s.s-edge { box-shadow: inset 0 -3px 0 var(--blue); }
.in-dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 20px; margin: 0 0 6px; }
.in-dl div { display: grid; }
.in-dl dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.in-dl dd { margin: 0; font-size: 14px; font-weight: 700; }
/* the bridge ID, taken apart */
.bid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; margin: 4px 0 6px; }
.bid > span:not(.bid-op) { display: grid; padding: 6px 8px; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--card); }
.bid b { font-size: 15px; line-height: 1.1; }
.bid small { font-family: var(--f-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.bid-op { align-self: center; font-family: var(--f-mono); font-weight: 700; color: var(--ink-3); }
.bid > .bid-e { background: var(--blue-wash); }
.bid > .bid-t { background: var(--navy); color: #fff; border-color: var(--ink); }
.bid .bid-t small { color: #C3CEEE; }
.bid .bid-m { flex: 1 1 100%; }
/* switches and steppers */
.tg { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 10px; text-align: left; border: 1.5px solid var(--hair); border-radius: 10px; background: var(--card); }
.tg:hover { border-color: var(--ink); }
.tg-k { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; border: 1.5px solid var(--ink); background: var(--bg-2); transition: background-color .2s; }
.tg-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--ink); transition: transform .2s var(--ease-spring); }
.tg[aria-checked="true"] .tg-k { background: var(--led); }
.tg[aria-checked="true"] .tg-k::after { transform: translateX(16px); }
.tg-t { display: grid; font-family: var(--f-display); font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.tg-t small { font-family: var(--f-mono); font-weight: 500; font-size: 11px; color: var(--ink-3); }
.stp-n { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.stp-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.stp-ctl { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--card); }
.stp-ctl button { width: 44px; height: 44px; border: 0; background: var(--bg); font-size: 20px; font-weight: 700; }
.stp-ctl button:hover { background: var(--bg-2); }
.stp-ctl output { min-width: 96px; text-align: center; font-weight: 700; font-size: 15px; padding: 0 6px; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); line-height: 44px; white-space: nowrap; }
.prows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.prow { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; width: 100%; min-height: 44px; padding: 4px 10px; border: 1.5px solid var(--hair); border-radius: 9px; background: var(--card); text-align: left; font-size: 13px; }
.prow:hover { border-color: var(--ink); }
.prow-s { justify-self: start; padding: 2px 7px; border-radius: 5px; border: 1.5px solid var(--ink); font-size: 11.5px; font-weight: 700; }
.prow-s.s-fwd { background: var(--led); }
.prow-s.s-blk { border-style: dashed; }
.prow-s.s-bkn { background: var(--ink); color: #fff; }
.prow-s.s-none { border-color: var(--hair); color: var(--ink-3); }
.prow-c { color: var(--ink-3); }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; }
.seg-b { flex: 1; min-height: 44px; border: 0; border-right: 1.5px solid var(--ink); background: var(--card); font-size: 13px; font-weight: 700; padding: 4px 6px; }
.seg-b:last-child { border-right: 0; }
.seg-b[aria-checked="true"] { background: var(--navy); color: #fff; }
.seg-wrap .seg-b { font-family: var(--f-display); font-size: 13px; line-height: 1.2; }

/* console */
.con { display: flex; flex-direction: column; flex: 1; min-height: 0; background: #050D2E; }
.con-sws { display: flex; gap: 6px; padding: 8px 10px; background: var(--navy-2); flex: none; }
.con-sws button { flex: 1; min-height: 40px; border-radius: 8px; border: 1.5px solid #3A4F99; background: var(--navy); color: #C3CEEE; font-size: 13px; font-weight: 700; }
.con-sws button[aria-checked="true"] { background: var(--led); border-color: var(--led); color: var(--ink); }
.con-out { margin: 0; padding: 12px 14px; height: 320px; overflow: auto; font-size: 11.5px; line-height: 1.5; color: #D8E0F7; white-space: pre; scrollbar-width: none; flex: 1; min-height: 160px; }
.con-out::-webkit-scrollbar { display: none; }
.con-out:focus-visible { outline: 2px solid var(--led); outline-offset: -2px; border-radius: 0; }
.con-out .c-cmd { color: #fff; font-weight: 700; }
.con-out .c-rig { color: #9DB4FF; font-weight: 700; }
.con-out .c-err { color: #FFB4AA; }
.con-out .c-log { color: #8EF0BC; }
.con-out .c-dim { color: #8C9AC4; }
.con-out .c-log, .con-out .c-dim, .con-out .c-err { white-space: pre-wrap; }
@media (min-width: 1000px) { .con-out { height: auto; } }
@media (min-width: 1360px) { .con-out { font-size: 12px; } }
.con-in { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid #22356F; flex: none; }
.con-in label { color: var(--led); font-weight: 700; font-size: 14px; white-space: nowrap; }
.con-in input { flex: 1; min-width: 0; min-height: 44px; background: transparent; border: 0; color: #fff; font-size: 16px; caret-color: var(--led); }
.con-in input:focus { outline: none; }
.con-in input::placeholder { color: #5A6B9E; }
.con:focus-within .con-in { box-shadow: inset 0 0 0 2px var(--led); }
.con-try { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 12px 12px; font-size: 12px; color: #8C9AC4; flex: none; }
.con-try .try { min-height: 40px; font-size: 12px; padding: 4px 10px; }

/* the task banner on the rig */
.lab-task { padding: 14px 16px; border-bottom: 2px solid var(--ink); background: #FFF8E8; }
.lab-task.ok { background: var(--led-wash); }
.lt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.lt-head b { font-family: var(--f-display); font-size: 18px; letter-spacing: -.015em; }
.lt-head .lnk { margin-left: auto; min-height: 36px; }
.lt-k { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: var(--ink); color: #fff; }
.lt-goal { font-size: 15px; color: var(--ink-2); margin-top: 4px; max-width: 60em; }
.lt-checks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.lt-checks li { display: inline-flex; align-items: center; gap: 8px; }
.lt-checks i { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--card); transition: background-color .25s; }
.lt-checks li.on i { background: var(--led); }
.lt-done { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.lt-done pre { margin: 0; padding: 10px 12px; max-width: 100%; overflow-x: auto; background: var(--navy); color: #D8E0F7; border-radius: 8px; font-size: 12.5px; white-space: pre-wrap; }

/* ---------- tasks ---------- */
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.task { display: grid; grid-template-columns: 40px 1fr; gap: 8px 14px; padding: 16px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 4px 4px 0 var(--ink); }
.task.on { box-shadow: 4px 4px 0 var(--blue); }
.task.done { background: var(--bg); }
.task-n { font-size: 14px; font-weight: 700; color: var(--blue); padding-top: 3px; }
.task.done .task-n { color: var(--ink); }
.task-t { font-size: 20px; letter-spacing: -.02em; }
.task-b p { margin-top: 4px; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.task-f { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.task-s { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.task-s::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--hair); }
.task.done .task-s { color: var(--ink); }
.task.done .task-s::before { background: var(--led); }
.task.on .task-s::before { background: var(--blue); }
@media (min-width: 900px) {
  .task { grid-template-columns: 52px 1fr auto; align-items: center; padding: 18px 22px; }
  .task-f { grid-column: 3; flex-direction: column; align-items: flex-end; gap: 8px; }
}

/* ---------- scenarios (navy band) ---------- */
.scens { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .scens { grid-template-columns: 1fr 1fr; gap: 20px; } }
.scen { display: grid; gap: 12px; align-content: start; padding: 18px; background: var(--card); color: var(--ink); border: 2px solid #fff; border-radius: var(--r-m); box-shadow: 5px 5px 0 var(--blue); }
.scen.answered { box-shadow: 5px 5px 0 var(--led); }
.scen-top { display: flex; align-items: center; gap: 10px; }
.scen-n { font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: var(--navy); color: #fff; }
.scen-t { font-size: 19px; letter-spacing: -.02em; flex: 1; }
.scen-r { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; border: 1.5px solid var(--ink); }
.scen-r.ok { background: var(--led); }
.scen-r.no { color: var(--miss); border-color: var(--miss); }
.scen-q { font-size: 16px; }
.scen-opts { display: grid; gap: 8px; }
.scen-opts .opt { min-height: 48px; font-size: 15px; padding: 10px 12px; }
.scen-why { font-size: 15px; color: var(--ink-2); padding: 10px 12px; border-left: 4px solid var(--led); background: var(--bg); border-radius: 0 8px 8px 0; }
.scen-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* ---------- drills ---------- */
.drills { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-l); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.dr-top { display: grid; gap: 10px; padding: 12px; background: var(--navy); }
@media (min-width: 900px) { .dr-top { grid-template-columns: 1fr auto; align-items: center; padding: 12px 16px; } }
.dr-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 900px) { .dr-tabs { display: flex; } }
.dr-tab { display: grid; text-align: left; gap: 1px; min-height: 52px; padding: 7px 12px; border-radius: 10px; border: 1.5px solid #3A4F99; background: var(--navy-2); color: #fff; }
.dr-tab b { font-family: var(--f-display); font-size: 15px; letter-spacing: -.01em; }
.dr-tab small { font-family: var(--f-mono); font-size: 10.5px; color: #9DB4FF; }
.dr-tab[aria-checked="true"] { background: var(--led); border-color: var(--led); color: var(--ink); }
.dr-tab[aria-checked="true"] small { color: var(--ink-2); }
@media (max-width: 520px) { .dr-tab small { display: none; } .dr-tab { padding: 6px 8px; } .dr-tab b { font-size: 13.5px; } }
.dr-stats { display: flex; gap: 14px; font-size: 12px; color: #C3CEEE; }
.dr-stats b { color: var(--led); font-size: 14px; }
.dr-body { min-height: 380px; }
.dr-elect { display: grid; }
@media (min-width: 900px) { .dr-elect { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); } }
.dr-stage { border-bottom: 2px solid var(--ink); }
@media (min-width: 900px) { .dr-stage { border-bottom: 0; border-right: 2px solid var(--ink); } }
.topo-drill { aspect-ratio: 1 / 1; }
@media (min-width: 560px) { .topo-drill { aspect-ratio: 4 / 3; } }
@media (min-width: 900px) { .topo-drill { aspect-ratio: auto; height: clamp(340px, calc(100 * var(--svh)) - 380px, 480px); } }
.dr-side, .dr-card { padding: 18px; display: grid; gap: 14px; align-content: start; }
.dr-q { font-size: 16.5px; }
.dr-bids { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); font-size: 13px; }
.dr-bids li { display: grid; grid-template-columns: 52px 1fr 1.4fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--hair); }
.dr-bids li.h { font-family: var(--f-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.dr-fb { font-size: 15px; color: var(--ink-2); }
.dr-fb:empty { display: none; }
.dr-fb b { color: var(--ink); }
.dr-fb.ok { padding: 10px 12px; background: var(--led-wash); border-radius: 8px; }
.dr-fb.no { padding: 10px 12px; background: var(--bg); border-left: 4px solid var(--miss); border-radius: 0 8px 8px 0; }
.dr-fb ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.dr-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.dr-acts .btn { flex: 1 1 150px; }
.dr-qa { display: grid; }
@media (min-width: 900px) { .dr-qa.has-out { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); } }
.dr-qa:not(.has-out) .dr-card { max-width: 760px; padding: 22px; }
.dr-term { background: #050D2E; min-width: 0; }
.dr-term .term-bar { padding: 8px 14px; }
.dr-term pre { margin: 0; padding: 12px 14px; color: #D8E0F7; font-size: 11.5px; line-height: 1.5; overflow-x: auto; scrollbar-width: none; }
.dr-term pre::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .dr-term pre { font-size: 12.5px; } }
.dr-opts .opt { font-family: var(--f-body); }
.dr-num { display: flex; gap: 10px; flex-wrap: wrap; }
.dr-num input { flex: 1 1 140px; min-width: 0; min-height: 50px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--r-s); background: var(--bg); font-size: 18px; }
.dr-num input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.dr-num input.right { border-color: var(--led); background: var(--led-wash); }
.dr-num input.wrong { border-color: var(--miss); }

/* ---------- recall sheet ---------- */
.sheet { display: grid; gap: 16px; }
@media (min-width: 760px) { .sheet { grid-template-columns: 1fr 1fr; gap: 20px; } .sh-wide { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .sheet { grid-template-columns: repeat(3, 1fr); } .sh-wide { grid-column: span 3; } }
.sh { min-width: 0; padding: 18px; background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 4px 4px 0 var(--ink); display: grid; gap: 12px; align-content: start; }
.sh-t { font-size: 21px; letter-spacing: -.02em; }
.sh-list, .sh-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.sh-note { font-size: 14px; color: var(--ink-2); }
.bidbar { display: grid; grid-template-columns: 1fr 3fr 12fr; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; min-height: 64px; }
.bidbar > span { display: grid; align-content: center; padding: 6px 10px; min-width: 0; }
.bidbar b { font-family: var(--f-display); font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
.bidbar small { font-size: 10.5px; color: inherit; opacity: .8; }
.bb-p { background: var(--navy); color: #fff; }
.bb-e { background: var(--blue); color: #fff; border-left: 2px solid var(--ink); }
.bb-m { background: var(--bg-2); border-left: 2px solid var(--ink); }
@media (max-width: 560px) { .bidbar { grid-template-columns: 1fr 1.5fr 2fr; } }
.sh-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.sh-tab th, .sh-tab td { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.sh-tab thead th { font-family: var(--f-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.sh-tab tbody th { font-family: var(--f-display); font-weight: 700; }
.sh-merge { vertical-align: middle !important; font-weight: 700; background: var(--bg-2); text-align: center !important; padding-left: 8px !important; }
.sh-num td { font-weight: 700; }
.sh-scroll { overflow-x: auto; }
.sh-guards { min-width: 680px; }
.sh-dl { margin: 0; display: grid; gap: 8px; }
.sh-dl div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--hair); }
.sh-dl dt { font-weight: 700; color: var(--blue-ink); }
.sh-dl-w div { grid-template-columns: 104px 1fr; }
.sh-dl dd { margin: 0; font-size: 15px; }
.sh-cmds { display: grid; gap: 12px; }
@media (min-width: 900px) { .sh-cmds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sh-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 6px; }
.sh-cmds pre { margin: 0; padding: 12px 14px; background: var(--navy); color: #D8E0F7; border-radius: 10px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; scrollbar-width: none; }
.sh-pre { margin: 0 0 10px; padding: 12px 14px; background: var(--navy); color: #D8E0F7; border-radius: 10px; font-size: 12.5px; line-height: 1.6; white-space: pre; width: max-content; min-width: 100%; }

/* ---------- hub ---------- */
.hub-head { display: grid; gap: 36px; }
@media (min-width: 1000px) { .hub-head { grid-template-columns: minmax(0, 6fr) minmax(320px, 4fr); gap: 64px; align-items: center; } }
.how ol { list-style: none; margin: 0; padding: 0; counter-reset: how; }
.how { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-m); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.how-bar { margin: 0; letter-spacing: .06em; padding: 10px 16px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.how li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--hair); font-size: 15px; }
.how li:last-child { border-bottom: 0; }
.how li::before { counter-increment: how; content: counter(how, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--blue); padding-top: 2px; }
.how b { font-family: var(--f-display); }
.labdoms { display: grid; gap: 34px; }
.ld-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ld-n { font-size: 13px; font-weight: 700; background: var(--blue); color: #fff; padding: 4px 8px; border-radius: 6px; align-self: center; }
.ld-name { font-size: clamp(20px, calc(2.6 * var(--vw)), 24px); letter-spacing: -.02em; }
.ld-c { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.lcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.lcard { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.lcard.soon { background: var(--bg); box-shadow: none; border-style: dashed; border-color: var(--ink-3); }
a.lcard { transition: transform .16s var(--ease-spring), box-shadow .16s var(--ease-out); }
a.lcard:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
a.lcard:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.lc-top { display: flex; align-items: center; gap: 8px; }
.lc-n { white-space: nowrap; font-size: 12px; font-weight: 700; padding: 3px 7px; border-radius: 5px; background: var(--navy); color: #fff; }
.lcard.soon .lc-n { background: var(--ink-3); }
.lc-k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); }
.lc-st { margin-left: auto; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; border: 1.5px solid var(--ink); }
.lc-st.up { background: var(--led); }
.lcard.soon .lc-st { border-color: var(--ink-3); color: var(--ink-3); }
.lc-name { font-size: 21px; letter-spacing: -.02em; }
.lc-desc { font-size: 14.5px; color: var(--ink-2); flex: 1; }
.lc-obj { font-size: 11px; color: var(--ink-3); }
.lc-meter { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; }
.lc-meter span:first-child { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.lc-meter span:first-child i { display: block; height: 100%; width: calc(var(--m, 0) * 1%); background: var(--led); border-radius: 99px; }
.lcard.feature { border-width: 2px; background: var(--navy); color: #fff; box-shadow: 4px 4px 0 var(--blue); }
.lcard.feature .lc-desc { color: #C9D4F4; }
.lcard.feature .lc-k { color: var(--led); }
.lcard.feature .lc-n { background: #fff; color: var(--ink); }
.lcard.feature .lc-obj { color: #9DB4FF; }
.lcard.feature .lc-meter span:first-child { background: var(--navy-2); }
a.lcard.feature:hover { box-shadow: 6px 6px 0 var(--blue); }

/* =========================================================
   Flow labs (mklab.py flow=True; Nate, 2026-10-22: one clear path, everything laid out): a short header with the
   path (build, predict, drill, every step with its state), then the bench: the open step on the left, the live
   network and its console on the right. The drills take the network's place while a drill is open.
   ========================================================= */
@media (min-width: 1000px) { .fl-wrap { padding-top: clamp(26px, calc(4.5 * var(--svh)), 60px); padding-bottom: clamp(30px, calc(5 * var(--svh)), 64px); } }
.fl-head { display: grid; gap: 18px; align-items: end; margin-bottom: clamp(18px, calc(3 * var(--svh)), 30px); }
@media (min-width: 1000px) { .fl-head { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 48px; } }
.fl-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: clamp(36px, min(calc(6 * var(--vw)), calc(7 * var(--svh))), 58px); line-height: 1.02; letter-spacing: -.035em; }
.fl-no { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 7px; background: var(--blue); color: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.fl-sub { margin-top: 12px; font-size: 17.5px; color: var(--ink-2); max-width: 40em; }
.fl-obj { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); font-size: 12px; color: var(--ink-2); }
.fl-obj li { padding: 6px 0; border-bottom: 1px solid var(--hair); }
.fl-obj li span { display: inline-block; min-width: 48px; font-weight: 700; color: var(--blue-ink); }

.path { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-l); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.path-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 8px 16px; background: var(--navy); color: #fff; }
.path-h { font-size: 16px; letter-spacing: -.01em; color: #fff; }
.path-sum { font-size: 12px; color: #C3CEEE; }
.path-sum b { color: var(--led); }
.path-top .lnk { margin-left: auto; color: #fff; min-height: 36px; font-size: 13.5px; }
.path-cols { display: grid; }
@media (min-width: 900px) { .path-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcol { padding: 10px 10px 12px; border-top: 2px solid var(--ink); min-width: 0; }
@media (min-width: 900px) { .pcol { border-top: 0; } .pcol + .pcol { border-left: 2px solid var(--ink); } }
.pcol-h { display: flex; align-items: center; gap: 9px; padding: 2px 6px 8px; }
.pcol-n { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.pcol-h h3 { font-size: 16px; letter-spacing: -.015em; }
.pcol-c { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.pcol ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pcol-f { padding: 8px 6px 0; font-size: 12.5px; color: var(--ink-3); }
.ps { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; color: var(--ink); font-size: 14.5px; line-height: 1.2; transition: background-color .15s; }
.ps:hover { background: var(--bg); }
.ps:focus-visible { outline: 3px solid var(--blue); outline-offset: -1px; }
.ps.is-on { background: var(--blue-wash); box-shadow: inset 3px 0 0 var(--blue); }
.ps-led { width: 12px; height: 12px; flex: none; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--card); }
.ps-led.ok { background: var(--led); }
.ps-led.miss { border-color: var(--miss); box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 6px var(--miss); }
.ps-led.part { background: linear-gradient(90deg, var(--led) 50%, var(--card) 50%); }
.ps-n { flex: none; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.ps-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps.is-done .ps-t { color: var(--ink-2); }
.ps-s { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-ink); }
.ps.is-on .ps-s { color: var(--ink); }
.ps-m { display: flex; gap: 2px; flex: none; }
.ps-m i { width: 5px; height: 12px; border-radius: 1.5px; background: var(--bg-2); }
.ps-m i.on { background: var(--led); }
.ps-m.big i { width: auto; flex: 1; height: 10px; }

/* the bench */
@media (min-width: 1000px) { .bench-wrap { padding-top: clamp(22px, calc(3.5 * var(--svh)), 44px); padding-bottom: clamp(28px, calc(4.5 * var(--svh)), 56px); } }
.bench { scroll-margin-top: 8px; border: 2px solid var(--ink); border-radius: var(--r-l); background: var(--card); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
@media (max-width: 1359px) { .bench { scroll-margin-top: 44px; } }
.bench-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: 54px; padding: 7px 8px 7px 14px; background: var(--navy); color: #fff; }
.bh-k { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--led); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bh-t { flex: 1; min-width: 12em; font-family: var(--f-display); font-size: 19px; letter-spacing: -.02em; }
.bh-nav { display: flex; gap: 6px; margin-left: auto; }
.bh-b { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1.5px solid #3A4F99; background: var(--navy-2); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bh-b:hover:not(:disabled) { border-color: #9DB4FF; }
.bh-b:disabled { opacity: .4; }
.bh-next { background: #fff; border-color: #fff; color: var(--ink); }
.bh-next:hover:not(:disabled) { background: var(--led); border-color: var(--led); }
.bench-body { display: grid; }
.brief { padding: 16px 18px 18px; background: var(--bg); border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 12px; min-width: 0; overflow: auto; }
@media (min-width: 1100px) {
  .bench-body { grid-template-columns: clamp(270px, 24%, 350px) minmax(0, 1fr); }
  .brief { border-bottom: 0; border-right: 2px solid var(--ink); contain: size; min-height: 100%; }
  .bench[data-k="d"] .brief { contain: none; }
}
.bench-main { min-width: 0; container-type: inline-size; }
.bench .lab, .bench .fl-drills { border: 0; border-radius: 0; box-shadow: none; }
.bench .lab[hidden], .bench .fl-drills[hidden] { display: none; }
.bench .lab-body { grid-template-columns: minmax(0, 1fr); }
.bench .lab-stage { position: relative; border-right: 0; border-bottom: 2px solid var(--ink); }
.bench .lab-side { contain: none; }
.bench .lab-side .con-out { height: 260px; }
.bench .con-try { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; }
.bench .con-try .try { flex: none; min-height: 34px; padding: 3px 9px; font-size: 11.5px; }
.bench .con-in input { min-height: 40px; font-size: 15px; }
@container (min-width: 760px) {
  .bench .lab-body { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); }
  .bench .lab-stage { border-bottom: 0; border-right: 2px solid var(--ink); }
  .bench .lab-side { contain: size; }
  .bench .lab-side .con-out { height: auto; }
}
.bench .topo { aspect-ratio: auto; height: clamp(300px, calc(100 * var(--svh)) - 370px, 560px); }
@media (max-width: 559px) { .bench .topo { aspect-ratio: 4 / 5; height: auto; } }
.bench .lab-strip { min-height: 58px; padding: 8px 14px; }
.bench .legend { padding: 8px 14px 10px; }
.hold { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 84%, transparent); }
.hold[hidden] { display: none; }
.hold p { max-width: 22em; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--card); box-shadow: 4px 4px 0 var(--ink); font-size: 15px; color: var(--ink-2); text-align: center; }
.hold b { color: var(--ink); }
.fl-drills .dr-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 10px 14px; }
.dr-k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #C3CEEE; }
.fl-drills .dr-body { min-height: 420px; }

/* the brief: the open step */
.br-lede { font-size: 15.5px; color: var(--ink-2); }
.br-goal { font-size: 16px; line-height: 1.5; }
.br-how { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 10px; }
.br-how li { counter-increment: h; position: relative; padding-left: 34px; font-size: 14.5px; color: var(--ink-2); }
.br-how li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.br-how b { color: var(--ink); font-family: var(--f-display); }
.br-tip { font-size: 13.5px; color: var(--ink-3); }
.br-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.br-where > span { flex: 1 0 100%; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.br-dev { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.br-dev:hover { background: var(--blue); }
.br-sub { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: -4px; }
.br-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.br-checks li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; }
.br-checks i { width: 14px; height: 14px; margin-top: 3px; border-radius: 3px; border: 1.5px solid var(--ink); background: var(--card); transition: background-color .25s; }
.br-checks li.on i { background: var(--led); }
.br-checks li.on { color: var(--ink-2); }
.brief pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: #050D2E; color: #D8E0F7; font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.br-done { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--led-wash); }
.br-done p { font-size: 14px; }
.br-stamp { justify-self: start; padding: 3px 9px; border: 2px solid var(--ink); border-radius: 6px; background: var(--led); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-2deg); }
.brief .lnk { align-self: flex-start; min-height: 36px; }
.br-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.br-opts { display: grid; gap: 8px; }
.br-opts .opt { font-size: 14.5px; padding: 10px 12px; min-height: 44px; }
.br-res { justify-self: start; align-self: flex-start; padding: 3px 9px; border-radius: 6px; border: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.br-res.ok { background: var(--led); }
.br-res.no { color: var(--miss); border-color: var(--miss); background: var(--card); }
.br-why { font-size: 15px; line-height: 1.5; }
.br-why:focus { outline: none; }
.br-meter { display: grid; gap: 6px; font-size: 12px; color: var(--ink-2); }
.br-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.br-stats div { padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); }
.br-stats dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.br-stats dd { margin: 0; font-size: 20px; font-weight: 700; }

/* =========================================================
   Motion. Each section has its own entrance, new to these pages:
     lab header     the copy rises as one block on a short spring; the record's meters light left to right
     the rig        the frame slides in like a patch panel being racked; tiles drop onto the field, cables swell in
     tasks          task tickets slide out from the left edge with a slight tilt
     scenarios      cards turn in around their vertical edge
     drills         the tab strip hops in; the drill body zooms from just under full size
     recall sheet   cards feed up as if from a printer, one after another
     hub            lab cards slot in from below, row by row
     flow path      the three columns rise in turn and their step LEDs blink on top to bottom
     flow bench     the bench lowers in from above; its brief slides out from the left edge
   Pieces replay every time they scroll back into view (sections.js). Nothing moves under reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .fx-elect .lab-head.in .lab-copy { animation: spring .8s var(--ease-spring) backwards; }
  @keyframes spring { from { opacity: 0; transform: translateY(18px) scale(.985); } }
  .fx-elect .lab-head.in .record { animation: fadein .6s ease .15s backwards; }
  .fx-elect .lab-head.in .ms-m i.on { animation: lit .4s steps(1) backwards; animation-delay: .5s; }
  @keyframes lit { from { background: var(--bg-2); } }

  .fx-cable .lab.in { animation: racked .9s var(--ease-out) backwards; }
  /* transform and opacity only: a clip-path wipe repainted the whole network every frame */
  @keyframes racked { from { opacity: 0; transform: translateX(-28px); } }
  .fx-cable .lab.in .tp-dev { animation: thud .5s var(--ease-spring) backwards; animation-delay: .5s; }
  @keyframes thud { from { opacity: 0; translate: -50% -90%; } }
  .fx-cable .lab.in .tp-links { animation: swell .8s var(--ease-out) .6s backwards; }
  @keyframes swell { from { opacity: 0; } }
  .fx-cable .head-row.in .copy { animation: fadein .7s ease backwards; }

  .fx-ticket .tasks.in .task { animation: ticket .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * .07s); }
  @keyframes ticket { from { opacity: 0; transform: translateX(-40px) rotate(-1.2deg); } }
  .fx-ticket .head-row.in { animation: fadein .7s ease backwards; }

  .fx-turn .scens.in { perspective: 1400px; }
  .fx-turn .scens.in .scen { transform-origin: 0 50%; animation: turn .8s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * .08s); }
  @keyframes turn { from { opacity: 0; transform: rotateY(-38deg); } }
  .fx-turn .head-row.in .ex-title { animation: fadein .9s ease backwards; }

  .fx-shuffle .drills.in .dr-tab { animation: hop .5s var(--ease-spring) backwards; animation-delay: calc(var(--i, 0) * .08s + .1s); }
  @keyframes hop { 40% { transform: translateY(-6px); } from { opacity: 0; } }
  .fx-shuffle .drills.in { animation: zoomin .7s var(--ease-out) backwards; }
  @keyframes zoomin { from { opacity: 0; transform: scale(.96); } }

  .fx-feed .sheet.in .sh { animation: feed .7s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * .06s); }
  @keyframes feed { from { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(30px); } to { clip-path: inset(0 -12px -12px 0); } }

  /* the path is redrawn on every change, so its entrance runs only until it has settled (kit.js) */
  .fx-path .path.in:not(.settled) .pcol { animation: rise .6s var(--ease-out) backwards; }
  .fx-path .path.in:not(.settled) .pcol:nth-child(2) { animation-delay: .08s; }
  .fx-path .path.in:not(.settled) .pcol:nth-child(3) { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  .fx-path .path.in:not(.settled) .ps-led.ok { animation: blinkon .5s steps(2) .45s backwards; }
  @keyframes blinkon { from { opacity: 0; } }
  .fx-path .fl-head.in { animation: fadein .6s ease backwards; }
  .fx-bench .bench.in { animation: lower .7s var(--ease-out) backwards; }
  @keyframes lower { from { opacity: 0; transform: translateY(-24px); } }
  .fx-bench .bench.in .brief { animation: slidebrief .6s var(--ease-out) .25s backwards; }
  @keyframes slidebrief { from { opacity: 0; transform: translateX(-26px); } }
  .fx-slotin .labdoms.in .lcard { animation: slotin .55s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * .05s); }
  @keyframes slotin { from { opacity: 0; transform: translateY(16px); } }
  .fx-slotin .hub-head.in .how li { animation: fadein .5s ease backwards; animation-delay: calc(var(--i, 0) * .07s + .2s); }
}

/* ACL lab: an ACL as a numbered list with hit counts */
.acl-box { border: 1.5px solid var(--ink); border-radius: var(--r-m); padding: 8px 10px 4px; margin: 6px 0 10px; background: var(--card); }
.acl-h { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.acl-l { list-style: none; margin: 0; padding: 0; }
.acl-l li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; min-height: 40px; border-top: 1px solid var(--hair); font-size: 12px; }
.acl-l li:first-child { border-top: 0; }
.acl-seq, .acl-hit { color: var(--ink-3); font-size: 11px; }
.acl-txt { overflow-wrap: anywhere; line-height: 1.3; }
.acl-txt.deny { color: var(--ink); }
.acl-txt.permit { color: var(--blue-ink); }
.acl-imp .acl-txt { color: var(--ink-3); font-style: italic; }
.acl-l .lnk { min-height: 40px; padding: 0 4px; font-size: 12px; }
.acl-l.rt li { grid-template-columns: minmax(0, 1fr) auto auto; padding: 4px 0; }
.acl-l.rt .acl-hit { text-align: right; max-width: 11em; line-height: 1.25; }
.in-list { margin: 4px 0 8px; padding-left: 18px; font-size: 13.5px; }

/* Subnetting lab: an address in binary, network bits shaded */
.bv { margin: 6px 0 10px; }
.bv-r { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bv-o { display: grid; grid-template-columns: repeat(8, 1fr); border: 1.5px solid var(--ink); border-radius: 6px; overflow: hidden; }
.bv-o i { font-style: normal; text-align: center; font-size: 12px; line-height: 1; padding: 7px 0; background: var(--card); color: var(--ink-3); border-left: 1px solid var(--hair); transition: background-color .2s, color .2s; }
.bv-o i:first-child { border-left: 0; }
.bv-o i.n { background: var(--blue-wash); color: var(--blue-ink); font-weight: 700; }
.bv-o i.edge { box-shadow: inset -2px 0 0 var(--blue); }
@media (prefers-reduced-motion: reduce) { .bv-o i { transition: none; } }

/* ---------- IPv6 workbench ---------- */
.v6-steps { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 6px; counter-reset: v6; }
.v6-steps li { counter-increment: v6; display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; align-items: baseline; padding: 6px 10px 6px 6px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); }
.v6-steps li::before { content: counter(v6); grid-row: span 2; font-family: var(--f-mono); font-size: 11px; font-weight: 700; color: var(--blue-ink); text-align: center; }
.v6-steps .mono { font-size: 13.5px; overflow-wrap: anywhere; }
.v6-steps b { color: var(--blue-ink); background: var(--blue-wash); border-radius: 3px; padding: 0 1px; }
.v6-steps small { font-size: 12.5px; color: var(--ink-2); }
.v6-steps li:last-child { background: var(--led-wash); }
.in-out.wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.tp-dev.unk { border-style: dashed; box-shadow: none; background: var(--bg-2); color: var(--ink-3); }
.tp-dev.unk svg { opacity: .3; }
.ntp-clk { margin: 6px 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--navy); color: #D8E0F7; font-size: 14px; font-variant-numeric: tabular-nums; }

/* WLC lab: air links and the controller GUI (simulated) */
.tp-l.air .tp-case { stroke: transparent; }
.tp-l.air .tp-cab { stroke: #8EA6F5; stroke-width: 2.5; stroke-dasharray: 3 7; }
.tp-l.air.hot .tp-cab { stroke: var(--led); stroke-width: 3; }
@media (prefers-reduced-motion: no-preference) { .tp-l.air.hot .tp-cab { animation: air 1.4s linear infinite; } @keyframes air { to { stroke-dashoffset: -20; } } }
.wlc { margin-top: 4px; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--card); }
.wlc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 8px; background: var(--navy); }
.wlc-brand { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #9FB0DA; }
.wlc-nav { display: flex; gap: 2px; margin-left: auto; }
.wlc-tab { min-height: 44px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: #D8E0F7; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wlc-tab[aria-current="page"] { background: var(--card); color: var(--navy); }
.wlc-main { padding: 10px 12px 12px; }
.wlc-h { margin: 2px 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.wlc-list td, .wlc-list th { white-space: nowrap; padding-right: 10px; }
.wlc-crumb { font-size: 11px; color: var(--ink-3); margin-bottom: 6px; overflow-wrap: anywhere; }
.wlc-sub { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin: 0 -12px 10px; padding: 0 8px; }
.wlc-stab { min-height: 44px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; background: none; color: var(--ink-2); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.wlc-stab[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--blue); }
.wlc-body > * + * { margin-top: 8px; }
.wlc-apply { justify-content: flex-end; margin-top: 12px; }
.wlc-ap { padding: 8px 0 10px; border-bottom: 1px solid var(--hair); }
.wlc-ap p { margin: 0 0 6px; font-size: 13px; }
.wlc, .wlc-main, .wlc .sh-scroll { min-width: 0; max-width: 100%; }
.wlc .in-field { grid-template-columns: minmax(0, 1fr); }
.wlc .in-field input { width: 100%; }
.wlc .seg { flex-wrap: wrap; }
.wlc .seg-b { flex: 1 1 40%; border-bottom: 1.5px solid var(--ink); margin-bottom: -1.5px; }

/* MAC learning lab */
.mac-steps { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.mac-steps li { overflow-wrap: anywhere; }
.mac-tab td, .mac-tab th { white-space: nowrap; padding-right: 10px; }
.mac-tab small { font-family: var(--f-mono); font-size: 10.5px; color: var(--blue-ink); background: var(--blue-wash); border-radius: 3px; padding: 0 3px; }
.tp-dev.sub-wide { width: max-content; min-width: var(--d); padding: 0 5px; }
.tp-dev.sub-wide svg { width: calc(var(--d) * .46); }

/* QoS lab */
.qos-tab th small { display: block; font-family: var(--f-mono); font-size: 10px; font-weight: 400; color: var(--ink-3); }
.qos-tab td, .qos-tab th { white-space: nowrap; padding-right: 10px; }
.qos-bar { display: block; width: 64px; height: 6px; margin-bottom: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue) var(--p), var(--blue-wash) var(--p)); }
.qos-chart { margin: 8px 0 4px; padding: 8px 10px 6px; border: 2px solid var(--ink); border-radius: 10px; background: var(--navy); }
.qos-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.qos-chart polyline { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.qc-off { stroke: #8EA6F5; stroke-dasharray: 4 4; }
.qc-out { stroke: var(--led); }
.qc-cir { stroke: #FFFFFF; stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 2 4; }
.qos-chart figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 10.5px; color: #D8E0F7; letter-spacing: .04em; }
.qc-k::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 5px; vertical-align: middle; border-top: 2px solid var(--led); }
.qc-k.off::before { border-top: 2px dashed #8EA6F5; }
.qc-k.cir::before { border-top: 1px dashed rgba(255, 255, 255, .6); }
