:root {
    --bg: #f6f7f9; --card: #ffffff; --text: #1b1f24; --muted: #5b6573;
    --line: #e3e6ea; --accent: #1f6feb; --accent-ink: #ffffff; --chip: #eef3fd;
    --win: #0078d4; --key-bg: #ffffff; --key-edge: #c9ced6; --ok: #1a7f37;
    --shot-bg: #e9edf2;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0f1216; --card: #171b21; --text: #e6e9ed; --muted: #9aa4b2;
      --line: #262c35; --accent: #4c8dff; --accent-ink: #0b0d10; --chip: #1c2533;
      --win: #4cc2ff; --key-bg: #232933; --key-edge: #3a4250; --ok: #3fb950;
      --shot-bg: #0b0e12;
    }
  }
  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  main { max-width: 780px; margin: 0 auto; padding: 40px 16px 56px; }
  .eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .02em; margin: 0 0 6px; }
  h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
  .lede { color: var(--muted); margin: 0 0 22px; }
  .lede strong { color: var(--text); }
  section {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 22px; margin-bottom: 18px;
  }
  .sec-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
  .sec-head img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
  .sec-head h2 { margin: 0; }
  .sec-head .sub { margin: 2px 0 0; }
  h2 { font-size: 19px; margin: 0 0 4px; }
  h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 26px 0 12px; }
  h3 img { width: 24px; height: 24px; border-radius: 5px; }
  .sub { color: var(--muted); margin: 0 0 16px; font-size: 15px; }
  a { color: var(--accent); }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
    text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 8px;
  }
  .btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .primary {
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    padding: 16px; border-radius: 10px; background: var(--chip); margin-bottom: 16px;
  }
  .primary p { margin: 0; flex: 1 1 260px; font-size: 15px; color: var(--muted); }
  ul.files { list-style: none; margin: 0; padding: 0; }
  ul.files li {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 10px 0; border-top: 1px solid var(--line);
  }
  ul.files a { font-weight: 500; word-break: break-all; }
  .meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
  ol.plain { margin: 0; padding-left: 20px; }
  ol.plain li { margin: 6px 0; }
  code {
    font: 14px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace;
    background: var(--chip); padding: 2px 6px; border-radius: 5px;
  }
  .nowrap { white-space: nowrap; }
  footer { color: var(--muted); font-size: 14px; text-align: center; margin-top: 26px; }

  /* keys & icons */
  .winlogo { width: 1em; height: 1em; vertical-align: -0.12em; color: var(--win); }
  .ico { width: 1.25em; height: 1.25em; vertical-align: -0.28em; border-radius: 3px; }
  kbd {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 14px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--key-bg); color: var(--text);
    border: 1px solid var(--key-edge); border-bottom-width: 3px; border-radius: 6px;
    padding: 5px 9px; white-space: nowrap;
  }
  .ok { color: var(--ok); font-weight: 600; }

  /* steps */
  .howto { display: grid; gap: 14px; }
  .step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
  .num {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--chip); color: var(--accent); font-weight: 700; font-size: 15px;
  }
  .step p { margin: 3px 0 0; }
  .tip { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

  /* "what you'll see" illustrations */
  figure { margin: 12px 0 4px; }
  figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }
  figcaption::before { content: "Illustration · "; font-weight: 600; }
  .shot {
    background: var(--shot-bg); border: 1px solid var(--line); border-radius: 10px;
    padding: 14px; overflow: hidden;
  }
  /* Windows Start search (always Windows dark look, like most installs) */
  .start {
    background: #202020; color: #fff; border-radius: 8px; max-width: 520px;
    font: 14px/1.4 "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.35);
  }
  .start .bar { display: flex; align-items: center; gap: 10px; margin: 12px; padding: 8px 14px;
    background: #2b2b2b; border-radius: 999px; border-bottom: 2px solid #4cc2ff; }
  .start .bar svg { color: #ccc; }
  .start .body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
  .start .label { color: #bbb; font-size: 12px; margin: 2px 0 6px; }
  .start .hit { display: flex; gap: 10px; align-items: center; background: #3a3a3a; border-radius: 6px; padding: 10px; }
  .start .hit img { width: 32px; height: 32px; }
  .start .hit small { display: block; color: #bbb; }
  .start .detail { background: #2b2b2b; border-radius: 6px; padding: 12px; text-align: center; }
  .start .detail img { width: 48px; height: 48px; display: block; margin: 4px auto 6px; }
  .start .open { margin-top: 10px; text-align: left; border-top: 1px solid #3a3a3a; padding-top: 8px; color: #4cc2ff; }
  @media (max-width: 520px) { .start .body { grid-template-columns: 1fr; } .start .detail { display: none; } }

  /* SmartScreen */
  .smart { background: #0063b1; color: #fff; max-width: 520px; padding: 22px 24px 18px;
    font: 14px/1.5 "Segoe UI", system-ui, sans-serif; position: relative; }
  .smart .x { position: absolute; top: 8px; right: 14px; opacity: .85; }
  .smart h4 { font: 300 26px/1.2 "Segoe UI Light", "Segoe UI", system-ui, sans-serif; margin: 0 0 12px; }
  .smart p { margin: 0 0 10px; }
  .smart u { font-weight: 600; text-decoration-thickness: 2px; outline: 2px dashed #ffd400; outline-offset: 3px; }
  .smart .meta2 { margin: 8px 0 14px; }
  .smart .btns { display: flex; justify-content: flex-end; gap: 8px; }
  .smart .btns span { border: 2px solid #fff; padding: 4px 16px; }
  .smart .btns .hl { background: #fff; color: #0063b1; font-weight: 600; outline: 2px dashed #ffd400; outline-offset: 3px; }
  .arrow { text-align: center; color: var(--muted); font-size: 22px; line-height: 1; margin: 8px 0; }

  /* terminal window */
  .term { background: #0c0c0c; color: #cccccc; border-radius: 8px; max-width: 640px; overflow: hidden;
    font: 13px/1.45 "Cascadia Mono", Consolas, ui-monospace, monospace; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
  .term .tabs { display: flex; align-items: center; gap: 8px; background: #2b2b2b; color: #fff; padding: 6px 10px;
    font: 12px "Segoe UI", system-ui, sans-serif; }
  .term .tabs img { width: 16px; height: 16px; }
  .term .tabs .tab { background: #0c0c0c; padding: 4px 12px; border-radius: 6px 6px 0 0; }
  .term pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
  .term .ps { color: #cccccc; } .term .cmd { color: #f9f1a5; } .term .cy { color: #61d6d6; }
  .term .gr { color: #16c60c; } .term .ye { color: #f9f1a5; } .term .dim { color: #767676; }

  /* Docker Desktop footer + tray */
  .dd { background: #ffffff; color: #1d1d1f; border-radius: 8px; max-width: 520px; overflow: hidden;
    font: 13px/1.4 "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .dd .top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1d63ed; color: #fff; font-weight: 600; }
  .dd .top img { width: 20px; height: 20px; background: #fff; border-radius: 50%; }
  .dd .mid { height: 70px; background: repeating-linear-gradient(90deg,#f3f5f8 0 120px,#eceff3 120px 121px); }
  .dd .foot { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid #e1e4e8; background: #f8f9fb; }
  .dd .pill { display: inline-flex; align-items: center; gap: 6px; background: #e6f4ea; color: #137333;
    border-radius: 6px; padding: 3px 10px; font-weight: 600; outline: 2px dashed #f0b400; outline-offset: 2px; }
  .dd .dot { width: 9px; height: 9px; border-radius: 50%; background: #1e8e3e; }
  .tray { display: flex; align-items: center; justify-content: flex-end; gap: 14px; background: #1c1c1c; color: #fff;
    max-width: 520px; padding: 8px 14px; border-radius: 8px; margin-top: 12px; font: 12px "Segoe UI", system-ui, sans-serif; }
  .tray img { width: 18px; height: 18px; border-radius: 50%; outline: 2px dashed #f0b400; outline-offset: 3px; }
  .tray .caret { font-size: 14px; opacity: .9; }
  .tray .clock { text-align: right; line-height: 1.25; }
  /* "don't sign in" warning */
  :root { --warn-bg: #fff4f2; --warn-line: #f4b4a8; --warn-ink: #b42318; }
  @media (prefers-color-scheme: dark) { :root { --warn-bg: #2a1512; --warn-line: #6e2a20; --warn-ink: #ff9d8a; } }
  .warn {
    display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 4px;
    background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 5px solid var(--warn-ink);
    border-radius: 10px; padding: 14px 16px;
  }
  .warn .stop {
    flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--warn-ink);
    color: var(--warn-bg); display: grid; place-items: center; font-weight: 800; font-size: 18px; line-height: 1;
  }
  .warn p { margin: 0; }
  .warn strong.big { color: var(--warn-ink); display: block; font-size: 17px; margin-bottom: 2px; }
  /* Docker sign-in screen mock */
  .signin { background: #ffffff; color: #1d1d1f; border-radius: 8px; max-width: 520px; overflow: hidden;
    font: 14px/1.45 "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; }
  .signin .top { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #1d63ed; color: #fff; font-weight: 600; text-align: left; }
  .signin .top img { width: 20px; height: 20px; background: #fff; border-radius: 50%; }
  .signin .inner { padding: 22px 20px 20px; }
  .signin .inner > img { width: 52px; height: 52px; }
  .signin h5 { font-size: 18px; margin: 8px 0 14px; }
  .signin .b { display: block; max-width: 260px; margin: 8px auto; padding: 8px; border-radius: 6px; font-weight: 600; }
  .signin .no { background: #1d63ed; color: #fff; position: relative; opacity: .55; }
  .signin .no::after { content: "✕ don't"; position: absolute; right: -78px; top: 50%; transform: translateY(-50%);
    color: #b42318; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .signin .alt { border: 1px solid #c9ced6; color: #1d1d1f; opacity: .55; }
  .signin .skip { color: #1d63ed; text-decoration: underline; outline: 2px dashed #f0b400; outline-offset: 3px; display: inline-block; margin-top: 10px; font-weight: 600; }
  @media (max-width: 520px) { .signin .no::after { display: none; } }
  /* McAfee */
  .pointer { display: flex; gap: 10px; align-items: center; margin: -4px 0 18px; font-size: 15px; }
  .pointer img { width: 22px; height: 22px; flex: none; }
  .mc { background: #ffffff; color: #1d1d1f; border-radius: 8px; max-width: 520px; overflow: hidden;
    font: 14px/1.45 "Segoe UI", system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
  .mc .top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #c01818; color: #fff; font-weight: 600; }
  .mc .top img { width: 18px; height: 18px; background: #fff; border-radius: 4px; padding: 2px; }
  .mc .row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-top: 1px solid #eceef1; }
  .mc .row small { display: block; color: #6b7280; }
  .mc .on { color: #137333; font-weight: 600; }
  .mc .btnx { border: 1px solid #c01818; color: #c01818; border-radius: 6px; padding: 4px 12px; font-weight: 600;
    white-space: nowrap; outline: 2px dashed #f0b400; outline-offset: 3px; }
  .mc .dim { opacity: .5; }
  .mc .dlg { padding: 16px 16px 14px; }
  .mc .dlg b { display: block; font-size: 15px; margin-bottom: 10px; }
  .mc select, .mc .sel { display: block; width: 100%; max-width: 280px; border: 1px solid #c9ced6; border-radius: 6px;
    padding: 6px 10px; background: #fff; color: #1d1d1f; font: inherit; outline: 2px dashed #f0b400; outline-offset: 3px; }
  .mc .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
  .mc .acts span { border-radius: 6px; padding: 5px 14px; font-weight: 600; }
  .mc .acts .pri { background: #c01818; color: #fff; outline: 2px dashed #f0b400; outline-offset: 3px; }
  .mc .acts .sec { border: 1px solid #c9ced6; }
  .safe { background: var(--chip); border-radius: 10px; padding: 12px 14px; margin-top: 16px; font-size: 15px; }
  .safe p { margin: 0; }
  /* registration form */
  .reg label.f { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
  .reg .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
  .reg input[type=text], .reg input[type=email] {
    width: 100%; font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid var(--key-edge); border-radius: 8px; padding: 10px 12px;
  }
  .reg input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
  .reg fieldset { border: 0; padding: 0; margin: 16px 0 0; }
  .reg legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }
  .squad { font-size: 13px; color: var(--muted); margin: 10px 0 6px; font-weight: 600; letter-spacing: .03em; }
  .teams { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  @media (max-width: 560px) { .teams { grid-template-columns: repeat(3, 1fr); } }
  .team { position: relative; }
  .team input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .team span {
    display: block; text-align: center; border: 1px solid var(--key-edge); border-radius: 8px;
    padding: 9px 4px 7px; background: var(--bg); line-height: 1.2;
  }
  .team b { display: block; font-size: 15px; }
  .team small { color: var(--muted); font-size: 12px; }
  .team input:checked + span { border: 2px solid var(--accent); background: var(--chip); padding: 8px 3px 6px; }
  .team input:checked + span small { color: var(--accent); }
  .team input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
  .team input:disabled + span { opacity: .45; text-decoration: line-through; }
  .team input:disabled { cursor: not-allowed; }
  .reg .actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
  .reg button { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
  .reg button:disabled { opacity: .6; cursor: progress; }
  .msg { margin: 0; font-weight: 600; }
  .msg.good { color: var(--ok); } .msg.bad { color: var(--warn-ink); }
  .privacy { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* ---------- site chrome: top menu + breadcrumbs ---------- */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .in { margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; flex: none; }
.brand svg { color: var(--accent); }
.helpbtn, .toplink { margin-left: auto; }
.helpbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.helpbtn:hover { filter: brightness(1.08); }
.helpbtn[aria-current="page"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.toplink { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.toplink:hover { color: var(--accent); }
.navtoggle { display: none; flex: none; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text);
  background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; cursor: pointer; }
.navtoggle:hover { background: var(--chip); }
/* side menu (learner pages) */
.sitenav { position: fixed; top: 59px; left: 0; bottom: 0; width: 250px; overflow-y: auto; z-index: 9;
  background: var(--card); border-right: 1px solid var(--line); padding: 14px 12px 24px; scrollbar-width: thin; }
.sitenav .grp { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  margin: 22px 12px 6px; opacity: .85; }
.sitenav .grp:first-child { margin-top: 6px; }
.sitenav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin: 1px 0; border-radius: 10px;
  color: var(--text); opacity: .82; text-decoration: none; font-weight: 500; font-size: 15px; line-height: 1.3;
  transition: background-color .15s ease, opacity .15s ease, color .15s ease; }
.sitenav a span { flex: 1; min-width: 0; }
.sitenav a:hover { background: var(--chip); opacity: 1; }
.sitenav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; opacity: 1; }
.sitenav a[aria-current="page"] { background: var(--chip); background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent); opacity: 1; font-weight: 650; }
.sitenav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); }
.sitenav .ic { width: 18px; height: 18px; flex: none; opacity: .9; }
.sitenav a[aria-current="page"] .ic { opacity: 1; }
.ic.aws { color: #ff9900; } .ic.gcp { color: #4285f4; } .ic.azure { color: #0089d6; }
@media (prefers-color-scheme: dark) { .ic.azure { color: #3ba7f5; } .ic.gcp { color: #6ea0ff; } }
.sitenav .snfoot { font-size: 12px; color: var(--muted); margin: 24px 12px 0; padding-top: 14px; border-top: 1px solid var(--line); }
@media (min-width: 1100px) {
  .sitenav ~ main { margin-left: calc(250px + max(0px, (100vw - 250px - 780px) / 2)); margin-right: auto; }
}
/* narrower screens: the side menu becomes a drawer opened by ☰ Menu */
@media (max-width: 1099px) {
  .navtoggle { display: inline-flex; }
  .sitenav { transform: translateX(calc(-100% - 40px)); transition: transform .2s ease; }
  body.navopen .sitenav { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
}
@media (prefers-reduced-motion: reduce) { .sitenav { transition: none; } }
@media (max-width: 560px) { .brand span { display: none; } }
.crumbs { margin: 0 0 14px; font-size: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
main { padding-top: 22px; }
.next { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.next a { font-weight: 600; text-decoration: none; }

/* ---------- home cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; color: var(--text); text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; }
.card img { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.card b { display: block; font-size: 16px; margin-bottom: 2px; }
.card span { color: var(--muted); font-size: 14px; }

/* ---------- progress grid (sea of green) ---------- */
:root { --c0: #ebedf0; --c3: #30a14e; --c4: #216e39; --c-edge: rgba(27,31,36,.06); }
@media (prefers-color-scheme: dark) { :root { --c0: #1f252d; --c3: #26a641; --c4: #39d353; --c-edge: rgba(255,255,255,.05); } }
.stats { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stats .big { font-size: 40px; font-weight: 800; line-height: 1; }
.stats .of { color: var(--muted); font-size: 18px; }
.bar { height: 10px; background: var(--c0); border-radius: 999px; overflow: hidden; margin: 6px 0 18px; }
.bar i { display: block; height: 100%; width: 0; background: var(--c3); border-radius: 999px; transition: width .4s ease; }
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
@media (max-width: 600px) { .groups { grid-template-columns: 1fr; } }
.gtitle { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .03em; margin: 0 0 6px; }
.trow { display: grid; grid-template-columns: 74px repeat(5, 1fr) 40px; gap: 6px; align-items: center; margin-bottom: 6px; }
.trow .tn { font-weight: 600; font-size: 14px; }
.trow .tc { font-size: 12px; color: var(--muted); text-align: right; }
.cell { aspect-ratio: 1; border-radius: 6px; background: var(--c0); box-shadow: inset 0 0 0 1px var(--c-edge);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; min-width: 0; overflow: hidden; }
.cell.on { background: var(--c3); }
.trow.full .cell.on { background: var(--c4); }
.trow.full .tc { color: var(--ok); font-weight: 700; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c0); box-shadow: inset 0 0 0 1px var(--c-edge); }
.legend i.l3 { background: var(--c3); } .legend i.l4 { background: var(--c4); }
.updated { color: var(--muted); font-size: 13px; margin: 10px 0 0; }

/* ---------- "this is fine, keep going" box ---------- */
.okbox { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 4px;
  background: color-mix(in srgb, var(--ok) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--ok) 40%, var(--line));
  border-left: 5px solid var(--ok); border-radius: 10px; padding: 14px 16px; }
.okbox .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.okbox p { margin: 0; }
.okbox strong.big { display: block; color: var(--ok); font-size: 17px; margin-bottom: 4px; }

/* ---------- checklist ---------- */
.whoform { display: flex; gap: 10px; flex-wrap: wrap; }
.whoform input { flex: 1 1 240px; }
.checks { display: grid; gap: 8px; }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); cursor: pointer; }
.chk input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ok); flex: none; cursor: pointer; }
.chk:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 55%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--bg)); }
.trouble .chk input { accent-color: #d97706; }
.trouble .chk:has(input:checked) { border-color: #d97706; background: color-mix(in srgb, #d97706 9%, var(--bg)); }
.chk input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mybar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mybar .bar { flex: 1; margin: 0; }
.mybar span { color: var(--muted); font-size: 14px; white-space: nowrap; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--key-edge);
  border-radius: 8px; padding: 10px 12px; resize: vertical; }
.savebar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.reg input[type=email], .whoform input { font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--key-edge); border-radius: 8px; padding: 10px 12px; }

/* ---------- laptop support ---------- */
.level { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--chip); color: var(--accent); font-size: 22px; font-weight: 800; }
.level.l2 { background: color-mix(in srgb, #d97706 15%, var(--card)); color: #d97706; }
.pill2 { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px; margin: 2px 4px 0 0; }
.uac { background: #ffffff; color: #1b1b1b; max-width: 420px; font: 14px/1.45 "Segoe UI", system-ui, sans-serif;
  border: 1px solid #c8c8c8; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.uac-top { background: #f0f0f0; padding: 8px 14px; font-size: 13px; }
.uac-body { padding: 14px 16px 16px; }
.uac-q { font-size: 17px; margin: 0 0 14px; }
.uac-app { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0 0 4px; }
.uac-app img { width: 28px; height: 28px; }
.uac-pub { color: #555; font-size: 13px; margin: 0 0 16px; }
.uac-btns { display: flex; gap: 8px; justify-content: flex-end; }
.uac-btns span { min-width: 90px; text-align: center; padding: 6px 12px; border: 1px solid #c8c8c8; background: #fdfdfd; }
.uac-btns .yes { background: #0067c0; color: #fff; border-color: #0067c0; outline: 2px dashed #f0b400; outline-offset: 3px; }

/* shell tags + "which shell am I in" (shared by every page that uses a terminal) */
.shtag { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 6px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; }
p.shtag { display: flex; width: fit-content; }
.shtag.ps { background: #012456; color: #fff; }
.shtag.cmdp { background: #0c0c0c; color: #f2f2f2; border: 1px solid #555; }
.shtag.ubu { background: #e95420; color: #fff; }
.shtag.both { background: var(--chip); color: var(--text); }
.shtag.sm { margin: 0 4px 0 0; padding: 1px 8px; font-size: 13px; }
.whichsh { background: var(--chip); border-radius: 12px; padding: 14px 16px; margin: 10px 0; }
.whichsh p { margin: 0 0 8px; } .whichsh p:last-child { margin: 8px 0 0; }
.shpair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shpair > div { display: grid; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.shpair .shtag { margin: 0; width: fit-content; }
.shpair small { color: var(--muted); }
@media (max-width: 640px) { .shpair { grid-template-columns: 1fr; } }
/* a button on the screen (not a key on the keyboard) */
.uibtn { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; background: #2b2b2b; color: #fff;
  font: 600 14px/1.4 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }

/* "what each command does" tables */
.cmdwrap { margin: 10px 0 18px; overflow-x: auto; }
.cmdtbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmdtbl th, .cmdtbl td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--line); }
.cmdtbl th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-top: 0; }

/* draw.io diagrams in lessons */
figure.diagram { margin: 20px 0; max-width: none; }
figure.diagram img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
figure.diagram a:has(img):hover img { border-color: var(--accent, #1d4ed8); }
figure.diagram figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* diagram viewer (nav.js) */
figure.diagram img { cursor: zoom-in; }
.dgv { position: fixed; inset: 0; z-index: 100; display: none; flex-direction: column; background: rgba(8, 12, 20, .92); }
.dgv.on { display: flex; }
.dgv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #111827; color: #fff; }
.dgv-t { flex: 1; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgv-bar button, .dgv-o { font: 700 16px/1 system-ui, sans-serif; min-width: 40px; height: 36px; padding: 0 12px; border: 1px solid #374151; border-radius: 8px;
  background: #1f2937; color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.dgv-bar button:hover, .dgv-o:hover { background: #374151; }
.dgv-bar button:focus-visible, .dgv-o:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.dgv-l { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; color: #cbd5e1; }
.dgv-stage { position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none; }
.dgv-stage.grab { cursor: grabbing; }
.dgv-stage img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; background: #fff; border-radius: 6px; user-select: none; }
@media (max-width: 640px) { .dgv-t { display: none; } .dgv-o { display: none; } }

/* row numbers added by nav.js */
th.idx, td.idx { width: 2.4em; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; padding-right: 12px; white-space: nowrap; }

/* Fastest Fingers (/ff/) */
.ff-card { text-align: center; padding: 28px 20px; }
.ff-who { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.ff-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 14px; }
.ff-badge { padding: 4px 12px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; }
.ff-badge.on { background: #dcfce7; color: #166534; } .ff-badge.off { background: #fee2e2; color: #991b1b; }
.ff-q { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 6px auto 22px; max-width: 32ch; }
.ff-buzz { width: 220px; height: 220px; border-radius: 50%; border: 0; cursor: pointer; font: 900 40px/1 system-ui, sans-serif; letter-spacing: .06em; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #dc2626 60%, #991b1b); box-shadow: 0 10px 0 #7f1d1d, 0 18px 30px rgba(0,0,0,.25); transition: transform .06s, box-shadow .06s; }
.ff-buzz:active, .ff-buzz.pressed { transform: translateY(8px); box-shadow: 0 2px 0 #7f1d1d, 0 6px 12px rgba(0,0,0,.25); }
.ff-buzz:disabled { cursor: default; filter: saturate(.6); }
.ff-buzz:focus-visible { outline: 4px solid #60a5fa; outline-offset: 6px; }
.ff-hint { color: var(--muted); font-size: 14px; margin-top: 14px; }
.ff-ans { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.ff-ans input { flex: 1; font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--text); }
.ff-send { font: 800 18px/1 system-ui, sans-serif; padding: 0 22px; border: 0; border-radius: 12px; background: #1d4ed8; color: #fff; cursor: pointer; }
.ff-pos { font-size: 20px; margin: 16px 0 0; }
.ff-up { display: inline-block; margin-top: 16px; padding: 14px 26px; border-radius: 16px; background: #16a34a; color: #fff; font-size: 30px; font-weight: 900; animation: ffpulse 1s ease-in-out infinite; }
@keyframes ffpulse { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .ff-up { animation: none; } }
.ff-queue { list-style: none; margin: 0; padding: 0; }
.ff-queue li { display: grid; grid-template-columns: 3em 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.ff-queue li.mine { background: var(--chip); border-radius: 10px; }
.ff-queue li.st-called { background: #dcfce7; border-radius: 10px; }
.ff-queue li.st-wrong, .ff-queue li.st-passed { opacity: .55; }
.ff-n { font-weight: 800; font-variant-numeric: tabular-nums; } .ff-t { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.ff-a { font-family: var(--mono, monospace); font-size: 14px; } .ff-s { font-size: 14px; font-weight: 700; }
.ff-empty { display: block !important; color: var(--muted); }
@media (max-width: 640px) { .ff-queue li { grid-template-columns: 2.5em 1fr auto; } .ff-a, .ff-s { grid-column: 2 / -1; } .ff-buzz { width: 180px; height: 180px; } }

/* Pop Quiz & Polls (/poll/) */
.pq-hint { color: var(--muted); font-size: 15px; margin: -10px 0 16px; min-height: 1.4em; }
.pq-opts { display: grid; gap: 10px; max-width: 640px; margin: 0 auto 16px; text-align: left; }
.pq-opt { position: relative; display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 17px; text-align: left; cursor: pointer; overflow: hidden; }
.pq-opt:hover:not([disabled]) { border-color: #1d4ed8; }
.pq-opt[disabled] { cursor: default; }
.pq-opt.sel { border-color: #1d4ed8; background: rgba(29,78,216,.08); }
.pq-opt.ok { border-color: #16a34a; background: rgba(22,163,74,.10); }
.pq-opt.bad { border-color: #dc2626; background: rgba(220,38,38,.08); }
.pq-l { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--chip); font-weight: 800; }
.pq-opt.sel .pq-l { background: #1d4ed8; color: #fff; } .pq-opt.ok .pq-l { background: #16a34a; color: #fff; }
.pq-t { font-weight: 600; }
.pq-bar { grid-column: 2 / 3; height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.pq-bar i { display: block; height: 100%; background: #64748b; } .pq-opt.ok .pq-bar i { background: #16a34a; }
.pq-pct { grid-column: 3; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pq-mark { position: absolute; right: 12px; top: 10px; color: #16a34a; font-weight: 900; font-size: 20px; }
.pq-you { grid-column: 2 / -1; font-size: 13px; font-weight: 700; color: #1d4ed8; }
.pq-send { padding: 14px 26px; font-size: 18px; } .pq-send:disabled { opacity: .5; cursor: default; }
.pq-right { color: #16a34a; } .pq-wrong { color: #dc2626; }

/* security deep dive: long commands wrap inside tables */
#sec .tbl code { white-space: normal; overflow-wrap: anywhere; }
#sec .tbl td { vertical-align: top; }
