/* ============================================================
   CT-DK8S-900 · Docker & Kubernetes — Production Expert
   deck.css — "Bright Rail" LIGHT design system
   ------------------------------------------------------------
   White canvas, navy ink, reactflow-pink (#ff0071) + blue accents.
   Tuned for maximum legibility: high contrast, generous type,
   solid weights.
   ============================================================ */

:root {
  /* --- surfaces (light) --- */
  --bg: #f4f6fb;         /* page background */
  --bg2: #eaeff8;
  --panel: #ffffff;      /* cards, sidebar, bars */
  --panel2: #f2f5fb;
  --line: #d8e0ee;
  --line2: #b9c7de;

  /* --- ink: BLACK, high contrast --- */
  --ink: #0a0e18;        /* primary text — near black */
  --ink2: #253048;       /* muted, still dark & readable */
  --ink3: #545f78;       /* faint, but never pale */

  /* --- BLACK · RED · BLUE only --- */
  --pink: #e01029;       /* RED — emphasis, current word, alerts */
  --pink2: #f2233c;
  --navy: #0a0e18;
  --brand: #1552d8;      /* BLUE — structure */
  --k8s: #1552d8;        /* BLUE */
  --docker: #1552d8;     /* BLUE */

  /* --- semantic mapped to the 3-colour scheme --- */
  --ok: #1552d8;         /* positive/structure = blue */
  --warn: #e01029;       /* red */
  --bad: #e01029;        /* red */
  --info: #1552d8;       /* blue */
  --mag: #e01029;        /* red */

  --r: 14px;
  --r2: 10px;
  --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, sans-serif;
  --emoji: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji";
  --shadow: 0 16px 44px -20px rgba(15, 31, 71, .28);
  --shadow-sm: 0 6px 18px -10px rgba(15, 31, 71, .22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

/* reactflow.dev-style dot grid across the whole page */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15, 31, 71, .08) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

a { color: var(--k8s); }

/* ambient: a faint drifting node lattice, very subtle over the dot grid */
#field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .38;
}

/* ============================================================
   PLAYER SHELL
   ============================================================ */
.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 336px 1fr;
  grid-template-rows: 54px 1fr auto;
  grid-template-areas: "toc top" "toc stage" "toc bar";
  height: 100vh; height: 100dvh;
  transition: grid-template-columns .32s cubic-bezier(.4, 0, .2, 1);
}
body.tocoff .shell { grid-template-columns: 0px 1fr; }

/* ---------- top bar ---------- */
.top {
  grid-area: top;
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}
.top .brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 12.5px; letter-spacing: .1em;
  color: var(--ink2); text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.top .brand svg { width: 20px; height: 20px; color: var(--pink); }
#modtitle {
  font-size: 14px; color: var(--ink3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#modtitle b { color: var(--ink); font-weight: 750; }
.top .sp { flex: 1; }
.pill {
  font: 700 10.5px/1 var(--mono); letter-spacing: .09em;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--line2); color: var(--ink2);
  text-transform: uppercase; white-space: nowrap; text-decoration: none;
}
.pill:hover { border-color: var(--pink); color: var(--pink); }

/* ---------- sidebar ---------- */
.toc {
  grid-area: toc; overflow: hidden;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column; min-width: 0;
}
body.tocoff .toc { border-right-color: transparent; }
.tochead {
  padding: 15px 14px 11px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.tochead .t { font-weight: 800; font-size: 13.5px; letter-spacing: .01em; color: var(--ink); }
.tochead .m { font: 700 9.5px/1.4 var(--mono); color: var(--ink3); letter-spacing: .08em; }
.tochead .x {
  margin-left: auto; cursor: pointer; color: var(--ink3);
  background: none; border: 0; padding: 4px; border-radius: 6px;
}
.tochead .x:hover { color: var(--ink); background: var(--bg2); }
.tocsearchwrap { padding: 10px 12px; border-bottom: 1px solid var(--line); }
#tocsearch {
  width: 100%; padding: 9px 11px; font: 500 12.5px var(--sans);
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px;
  color: var(--ink); outline: none;
}
#tocsearch:focus { border-color: var(--pink); background: #fff; }
#tocsearch::placeholder { color: var(--ink3); }
#toclist { flex: 1; overflow-y: auto; padding: 8px 8px 24px; scrollbar-width: thin; }
#toclist::-webkit-scrollbar { width: 8px; }
#toclist::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }

.tocmod { border-radius: var(--r2); margin-bottom: 3px; }
.tocmodhead {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  cursor: pointer; border-radius: var(--r2);
}
.tocmodhead:hover { background: var(--bg2); }
.tocmod.cur > .tocmodhead { background: linear-gradient(90deg, rgba(224, 16, 41, .1), transparent); }
.tocmod .num {
  width: 26px; height: 26px; flex: none; border-radius: 7px;
  display: grid; place-items: center;
  font: 800 11px var(--mono); color: var(--ink2);
  background: var(--panel2); border: 1px solid var(--line2);
}
.tocmod.cur .num { background: var(--pink); color: #fff; border-color: var(--pink); }
.tocmod.done .num { background: rgba(12, 166, 120, .12); color: var(--ok); border-color: rgba(12, 166, 120, .4); }
.tocmod .tt { min-width: 0; flex: 1; }
.tocmod .tt b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.tocmod .tt i {
  display: block; font: 600 11px/1.5 var(--mono); color: var(--ink3);
  font-style: normal; letter-spacing: .03em;
}
.tocmod .cv { width: 14px; height: 14px; color: var(--ink3); transition: transform .22s; flex: none; }
.tocmod.open .cv { transform: rotate(90deg); }
.tocchaps { display: none; padding: 2px 0 6px 20px; }
.tocmod.open .tocchaps { display: block; }
.tocchap {
  display: flex; align-items: center; gap: 8px; padding: 6px 9px;
  border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--ink2);
  border-left: 2px solid var(--line2);
}
.tocchap:hover { background: var(--bg2); color: var(--ink); }
.tocchap.on { color: var(--pink); border-left-color: var(--pink); background: rgba(224, 16, 41, .07); font-weight: 600; }
.tocchap.seen { color: var(--ink3); }
.tocchap .cdot { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); flex: none; }
.tocchap.on .cdot { background: var(--pink); box-shadow: 0 0 0 3px rgba(224, 16, 41, .18); }
.tocchap .ct { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tocchap .cd { font: 600 9.5px var(--mono); color: var(--ink3); }
.tocchap mark { background: rgba(224, 16, 41, .18); color: var(--pink); border-radius: 2px; }
.freetag {
  font: 800 8px var(--mono); letter-spacing: .1em; padding: 2px 5px;
  border-radius: 4px; background: rgba(12, 166, 120, .16); color: var(--ok);
  vertical-align: middle;
}
#tocempty { display: none; padding: 22px 14px; font-size: 12px; color: var(--ink3); text-align: center; }

/* ---------- stage ---------- */
.stagewrap {
  grid-area: stage; position: relative; overflow: hidden;
  display: grid; place-items: center; padding: 22px 26px 8px; min-height: 0;
}
#stage {
  position: relative; width: 100%; height: 100%;
  max-width: 1480px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(1200px 620px at 80% -12%, rgba(224, 16, 41, .06), transparent 60%),
    radial-gradient(920px 520px at 6% 110%, rgba(37, 99, 216, .07), transparent 58%),
    linear-gradient(168deg, #ffffff, #f2f6fd 66%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* faint dot-grid so the stage reads like a reactflow board */
#stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image: radial-gradient(rgba(37, 99, 216, .1) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 92% 86% at 50% 46%, #000 42%, transparent 100%);
}

.scene {
  position: absolute; inset: 0; padding: 40px 52px;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(11px) scale(.995);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.scene.live { opacity: 1; transform: none; }
.scene.out { opacity: 0; transform: translateY(-9px) scale(.994); }

/* staged reveals */
.rv { opacity: 0; transform: translateY(13px); transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- transport bar ---------- */
.bar {
  grid-area: bar; border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  padding: 8px 18px 12px;
}
#karaoke {
  min-height: 64px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0 7px; align-items: center; padding: 4px 6px 8px;
  font-size: 30px; line-height: 1.48; text-align: center; font-weight: 550;
}
body.nosub #karaoke { visibility: hidden; }
#karaoke .w { color: var(--ink2); transition: color .12s, text-shadow .12s; }
#karaoke .w.said { color: var(--ink2); }
#karaoke .w.now { color: var(--pink); font-weight: 750; text-shadow: 0 0 16px rgba(224, 16, 41, .3); }

.scrubrow { display: flex; align-items: center; gap: 13px; }
#scrub {
  position: relative; flex: 1; height: 22px; cursor: pointer;
  display: flex; align-items: center; touch-action: none;
}
#scrub .track { position: absolute; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line2); }
#played { position: absolute; left: 0; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--k8s)); width: 0; }
#knob {
  position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff;
  transform: translateX(-50%); left: 0; box-shadow: 0 0 0 4px rgba(224, 16, 41, .28), 0 1px 3px rgba(0, 0, 0, .2);
  border: 1.5px solid var(--pink);
}
#chapdots { position: absolute; left: 0; right: 0; height: 5px; }
#chapdots i { position: absolute; width: 2px; height: 9px; top: -2px; background: var(--ink3); opacity: .5; }
#tcode { font: 700 11.5px var(--mono); color: var(--ink2); white-space: nowrap; }

.btns { display: flex; align-items: center; gap: 5px; }
.btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid transparent;
  background: none; color: var(--ink2); cursor: pointer; display: grid; place-items: center;
  font: 800 11px var(--mono);
}
.btn:hover { background: var(--bg2); color: var(--ink); }
.btn.on { color: var(--pink); border-color: rgba(224, 16, 41, .35); background: rgba(224, 16, 41, .08); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.big { width: 44px; height: 44px; background: var(--pink); color: #fff; box-shadow: 0 6px 16px -6px rgba(224, 16, 41, .6); }
.btn.big:hover { background: var(--pink2); }
.btn.big svg { width: 20px; height: 20px; }

/* ---------- boot overlay ---------- */
#boot {
  position: absolute; inset: 0; z-index: 30; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .97), rgba(242, 246, 253, .99));
  backdrop-filter: blur(6px); transition: opacity .6s;
}
#boot.gone { opacity: 0; pointer-events: none; }
.bootcard { text-align: center; max-width: 680px; padding: 30px; }
#boothead { font: 800 11px var(--mono); letter-spacing: .22em; color: var(--pink); text-transform: uppercase; }
#boottitle { font-size: 46px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 12px; line-height: 1.12; color: var(--ink); }
#bootlede { font-size: 18px; color: var(--ink2); line-height: 1.65; margin-bottom: 26px; }
#bootmsg { font: 700 10px var(--mono); letter-spacing: .12em; color: var(--ink3); margin-top: 18px; }
#bootgo {
  padding: 14px 32px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--pink); color: #fff; font: 800 15px var(--sans);
  display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 10px 24px -10px rgba(224, 16, 41, .55);
}
#bootgo:hover { background: var(--pink2); }

#scrim { position: fixed; inset: 0; background: rgba(15, 31, 71, .3); z-index: 5; opacity: 0; pointer-events: none; transition: opacity .3s; }
#scrim.on { opacity: 1; pointer-events: auto; }

#toast {
  position: fixed; bottom: 108px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); border: 1px solid var(--ink); color: #fff;
  padding: 10px 17px; border-radius: 10px; font: 600 12.5px var(--sans);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 40; box-shadow: var(--shadow-sm);
}
#toast.on { opacity: 1; transform: translateX(-50%); }

/* ============================================================
   SCENE PRIMITIVES
   ============================================================ */
.s-kicker {
  font: 800 14.5px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 14px;
}
.s-h {
  font-size: clamp(38px, 4.5vw, 64px); font-weight: 850; letter-spacing: -.022em;
  line-height: 1.12; margin: 0 0 14px; color: var(--ink);
}
.s-h .hl { color: var(--pink); }
.s-h .hl2 { color: var(--k8s); }
.s-sub { font-size: clamp(22px, 2.1vw, 29px); color: var(--ink2); line-height: 1.55; max-width: 60ch; }

.s-bullets { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 15px; }
.s-bullets li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1.5; color: var(--ink);
}
.s-bullets .bx {
  flex: none; width: 29px; height: 29px; border-radius: 7px; margin-top: 2px;
  display: grid; place-items: center; font: 800 13px var(--mono);
  background: rgba(224, 16, 41, .1); color: var(--pink); border: 1px solid rgba(224, 16, 41, .3);
}
.s-bullets b { color: var(--ink); font-weight: 750; }
.s-bullets em { font-style: normal; color: var(--ink3); }

.grid { display: grid; gap: 16px; margin-top: 8px; }
.card {
  background: linear-gradient(160deg, #ffffff, #f6f9fe);
  border: 1px solid var(--line2); border-radius: var(--r); padding: 19px 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3.5px;
  background: var(--c, var(--pink));
}
.card h4 {
  margin: 0 0 10px; font: 800 14px var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--c, var(--pink));
}
.card p { margin: 0; font-size: 19.5px; line-height: 1.55; color: var(--ink2); }
.card p b { color: var(--ink); font-weight: 700; }
.card .big { font: 800 38px/1 var(--sans); color: var(--ink); letter-spacing: -.02em; display: block; margin-bottom: 6px; }

/* VS / comparison */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin-top: 10px; }
.vs .mid {
  display: grid; place-items: center; font: 800 15px var(--mono);
  color: var(--ink3); letter-spacing: .1em;
}
.vs ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.vs li { font-size: 19px; line-height: 1.45; color: var(--ink2); padding-left: 18px; position: relative; }
.vs li b { color: var(--ink); }
.vs li::before { content: '▸'; position: absolute; left: 0; color: var(--c, var(--pink)); }

/* code / yaml block */
.code {
  font: 500 17px/1.65 var(--mono); background: #fbfcfe;
  border: 1px solid var(--line2); border-radius: var(--r2);
  padding: 16px 18px; overflow: auto; color: #263354; margin-top: 12px; box-shadow: var(--shadow-sm);
}
.code .k { color: #1971c2; font-weight: 600; }
.code .s { color: #0ca678; }
.code .n { color: #e8850c; }
.code .c { color: #8393b0; font-style: italic; }
.code .d { color: var(--pink); }

/* callout */
.note {
  margin-top: 16px; border-left: 3px solid var(--c, var(--warn));
  background: color-mix(in srgb, var(--c, var(--warn)) 8%, #fff);
  padding: 13px 17px; border-radius: 0 var(--r2) var(--r2) 0;
  font-size: 18.5px; line-height: 1.55; color: var(--ink2);
}
.note b { color: var(--c, var(--warn)); }

/* stat row */
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.stat {
  flex: 1 1 150px; background: #fff; border: 1px solid var(--line2);
  border-radius: var(--r2); padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font: 800 32px/1 var(--sans); color: var(--c, var(--pink)); letter-spacing: -.02em; }
.stat i { display: block; font: 700 11.5px/1.5 var(--mono); font-style: normal; color: var(--ink3); letter-spacing: .07em; text-transform: uppercase; margin-top: 6px; }

/* canvas film host */
.filmwrap { position: absolute; inset: 0; }
.filmwrap canvas { width: 100%; height: 100%; display: block; }

/* ============================================================
   TERMINAL — replays REAL captured session output (light console)
   ============================================================ */
.term {
  background: #fbfcfe; border: 1px solid var(--line2); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); min-height: 0;
}
.term .tbar {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: linear-gradient(180deg, #f1f5fb, #e9eff8); border-bottom: 1px solid var(--line);
  flex: none;
}
.term .dot { width: 11px; height: 11px; border-radius: 50%; }
.term .tt {
  margin-left: 8px; font: 700 12.5px var(--mono); color: var(--ink3);
  letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.term .real {
  margin-left: auto; font: 800 10px var(--mono); letter-spacing: .11em;
  color: var(--ok); border: 1px solid rgba(12, 166, 120, .4);
  background: rgba(12, 166, 120, .1); padding: 3px 8px; border-radius: 5px; flex: none;
}
.term .body {
  flex: 1; overflow: auto; padding: 14px 16px;
  font: 500 17.5px/1.62 var(--mono); color: #1a2338; white-space: pre-wrap; word-break: break-word;
  scrollbar-width: thin;
}
.term .body::-webkit-scrollbar { width: 8px; }
.term .body::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 4px; }
.term .ps1 { color: var(--ok); font-weight: 700; }
.term .cmd { color: var(--ink); font-weight: 700; }
.term .out { color: #29344e; }
.term .hi { color: #c26a00; }
.term .err { color: var(--bad); }
.term .ok { color: var(--ok); }
.term .dim { color: var(--ink3); }
.term .cur {
  display: inline-block; width: 8px; height: 16px; vertical-align: -3px;
  background: var(--pink); animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* split layout: terminal + explanation */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; height: 100%; min-height: 0; }
.split .term { min-height: 0; }
.split .why { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.split .why h3 { color: var(--ink); }
.split.wide { grid-template-columns: 1fr; }

/* ============================================================
   HUB / LAB / ASSESSMENT pages
   ============================================================ */
.page { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 34px 26px 90px; }
.page h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 12px; line-height: 1.1; color: var(--ink); }
.page h2 { font-size: 24px; font-weight: 800; margin: 46px 0 16px; letter-spacing: -.015em; color: var(--ink); }
.page p.lede { font-size: 19px; color: var(--ink2); line-height: 1.66; max-width: 72ch; }
.page p.lede code, .page code { font: 500 14px var(--mono); color: var(--k8s); background: rgba(37, 99, 216, .08); padding: 2px 6px; border-radius: 5px; }

.hubhead { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; padding-top: 6px; }
.hubhead .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .09em; font-size: 13px; text-transform: uppercase; color: var(--ink2); text-decoration: none; }
.hubhead .brand svg { width: 23px; height: 23px; color: var(--pink); }
.hubhead .sp { flex: 1; }

.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-top: 20px; }
.modcard {
  background: #fff;
  border: 1px solid var(--line2); border-radius: var(--r); padding: 20px 21px;
  text-decoration: none; color: inherit; display: block; position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm);
}
.modcard:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: 0 16px 40px -20px rgba(224, 16, 41, .4); }
.modcard .n { font: 800 10.5px var(--mono); letter-spacing: .16em; color: var(--pink); }
.modcard h3 { margin: 9px 0 8px; font-size: 20px; font-weight: 750; line-height: 1.28; letter-spacing: -.012em; color: var(--ink); }
.modcard p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.55; color: var(--ink2); }
.modcard .meta { display: flex; gap: 8px; flex-wrap: wrap; font: 700 9.5px var(--mono); letter-spacing: .06em; color: var(--ink3); text-transform: uppercase; }
.modcard .meta span { border: 1px solid var(--line2); padding: 4px 8px; border-radius: 5px; }
.modcard .prog { position: absolute; left: 0; bottom: 0; height: 3.5px; background: linear-gradient(90deg, var(--pink), var(--k8s)); border-radius: 0 0 0 var(--r); }

table.t { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 17.5px; }
table.t th, table.t td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
table.t th { font: 800 11.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink3); }
table.t td code { font: 500 13px var(--mono); color: var(--k8s); }
table.t td b { color: var(--ink); }
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tblwrap table.t { margin-top: 0; }
.tblwrap th, .tblwrap td { padding-left: 16px; padding-right: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 0 1fr; }
  .toc { position: fixed; left: 0; top: 0; bottom: 0; width: 320px; z-index: 20; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow); }
  body:not(.tocoff) .toc { transform: none; }
  .stagewrap { padding: 12px 12px 4px; }
  .scene { padding: 24px 26px; }
  .split { grid-template-columns: 1fr; grid-template-rows: 1.3fr .7fr; }
}
@media (max-width: 720px) {
  .scene { padding: 18px; }
  .s-h { font-size: 31px; }
  .grid { grid-template-columns: 1fr !important; }
  .vs { grid-template-columns: 1fr; }
  .vs .mid { display: none; }
  #karaoke { font-size: 20px; min-height: 50px; }
  .term .body { font-size: 14px; }
  .btn { width: 31px; height: 31px; }
}
