/* =============================================================================
   BLACK SIGNAL — css/legacy.css
   What remains of the pre-design-system stylesheets (19 files, ~580 KB) after
   tools/css-liveness.py removed every rule that changed nothing on any screen,
   modal or state at six viewport sizes (verified pixel for pixel with
   tools/css-shots.py). Each block keeps its original @layer legacy.* name; the
   layer order is declared in css/tokens.css, below every design-system layer.

   New styling goes in css/components/ or css/screens/, never here. When a
   screen moves onto the components, delete its rules from this file.
   ============================================================================= */

/* ── from css/01-base.css ── */
@layer legacy.l01 {
@keyframes courseScreenFlicker {

  0%,
  100% {
    opacity: 0.55;
  }

  8% {
    opacity: 0.5;
  }

  9% {
    opacity: 0.68;
  }

  10% {
    opacity: 0.48;
  }

  40% {
    opacity: 0.56;
  }

  41% {
    opacity: 0.7;
  }

  42% {
    opacity: 0.52;
  }

  76% {
    opacity: 0.6;
  }

  77% {
    opacity: 0.72;
  }

  78% {
    opacity: 0.5;
  }
}

@keyframes courseGlitchSweep {
  0% {
    transform: translateX(-12px);
    opacity: 0;
  }

  8% {
    opacity: 0.2;
  }

  10% {
    opacity: 0;
  }

  48% {
    transform: translateX(8px);
    opacity: 0;
  }

  50% {
    opacity: 0.24;
  }

  52% {
    opacity: 0;
  }

  100% {
    transform: translateX(14px);
    opacity: 0;
  }
}

@keyframes courseGlitchJitter {

  0%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(1px);
  }

  19% {
    transform: translateY(-1px);
  }

  20% {
    transform: translateY(0);
  }

  61% {
    transform: translateY(2px);
  }

  62% {
    transform: translateY(0);
  }
}

@keyframes courseCardRise {
  0% {
    opacity: 0;
    transform: translateY(72px) scaleY(0.88);
    filter: blur(8px);
    clip-path: inset(100% 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
    clip-path: polygon(10px 0%,
        100% 0%,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0% 100%,
        0% 10px);
  }
}

@keyframes courseProgressFill {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

@keyframes terminalFlicker {

  0%,
  100% {
    opacity: 0.2;
  }

  8% {
    opacity: 0.3;
  }

  9% {
    opacity: 0.14;
  }

  32% {
    opacity: 0.24;
  }

  33% {
    opacity: 0.34;
  }

  34% {
    opacity: 0.18;
  }

  68% {
    opacity: 0.22;
  }

  69% {
    opacity: 0.36;
  }

  70% {
    opacity: 0.16;
  }
}

@keyframes terminalJitter {

  0%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(1px);
  }

  19% {
    transform: translateY(-1px);
  }

  20% {
    transform: translateY(0);
  }

  61% {
    transform: translateY(2px);
  }

  62% {
    transform: translateY(0);
  }
}

@keyframes terminalSweep {
  0% {
    transform: translateX(-14px);
    opacity: 0;
  }

  10% {
    opacity: 0.12;
  }

  12% {
    opacity: 0;
  }

  48% {
    transform: translateX(10px);
    opacity: 0;
  }

  50% {
    opacity: 0.14;
  }

  52% {
    opacity: 0;
  }

  100% {
    transform: translateX(16px);
    opacity: 0;
  }
}

@keyframes feedReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes timerPulse {
  from {
    color: var(--orange);
  }

  to {
    color: var(--white);
  }
}

@keyframes wlcScan {
  0% {
    top: -2px;
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes wlcPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.12;
  }
}

@keyframes ghostSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ghostDrift {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.02) translateY(-4px);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0px);
    opacity: 0.88;
  }
}

@keyframes wlcGlitch {

  0%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  6% {
    clip-path: inset(42% 0 36% 0);
    transform: translate(-4px, 0);
  }

  6.4% {
    clip-path: inset(0 0 100% 0);
  }

  32% {
    clip-path: inset(65% 0 10% 0);
    transform: translate(3px, 0);
  }

  32.4% {
    clip-path: inset(0 0 100% 0);
  }

  70% {
    clip-path: inset(20% 0 62% 0);
    transform: translate(-2px, 0);
  }

  70.4% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }
}

@keyframes wlcTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes thfWipe {
  0% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes thfLivePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

@keyframes thfBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes thfShellIn {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@keyframes settingsIconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes sttLivePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

@keyframes sttConfirmPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes sttFooterScan {
  0% {
    left: -60%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes sttRadioPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}

@keyframes linuxCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes linuxRowIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

}

/* ── from css/02-kali-tokens.css ── */
@layer legacy.l02 {

@keyframes rcsTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 599px) {

  .wlc-btn-secondary {
    border: 2px solid rgba(var(--ink-rgb), 0.28);
  }

  .bs-settings-panel {
    width: 96vw;
  }

}

@keyframes rcs-mastery-pulse {
  0%   { opacity: 1; }
  42%  { opacity: 0.38; }
  100% { opacity: 1; }
}

@keyframes rcs-mastery-glow {
  0%   { box-shadow: none; }
  45%  { box-shadow: 0 0 20px color-mix(in srgb, var(--black) 45%, transparent); }
  100% { box-shadow: none; }
}

@keyframes rcs-mastery-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.022); }
  100% { transform: scale(1); }
}

@keyframes linuxTimerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@keyframes linuxAtmosphereDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(12px);
  }
}

.bsm-modal > .bsm-header,
.bsm-modal > .bsm-body,
.bsm-modal > .bsm-footer {
  background: var(--acc-surf-1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}html,
body {
  min-height: 100%;
  background: var(--black);
  color: var(--orange);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}button {
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
}.hidden {
  display: none;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;   /* anchor the screen-transition overlay (.bs-fx-ghost) */
}

/* Screen transition — Cascade Fade (app/01-core.js initScreenTransitions).
   The entering view's ground fades in over a still copy of the old screen, then
   its in-flow content elements fade in one after another. Pure opacity + a small
   rise — graceful and light. Decorative layers are left out of the stagger. */
/* The transition backdrop MUST be an overlay, never in flow. Several screen
   roots (.bs-welcome, .bs-course-screen, .bs-cc, …) set position/min-height on
   their OWN class, and because those sheets load after this one they overrode a
   plain `.bs-fx-ghost` and dropped the cloned screen back INTO flow — a whole
   extra viewport below the new screen that vanished when the ghost was removed
   ~340ms later, shifting the layout on nearly every transition. The `#app >`
   child selector outranks any screen-root class, so the backdrop stays a pinned,
   zero-footprint overlay. */
#app > .bs-fx-ghost {
  /* !important because the clone keeps the outgoing screen's own class
     (.bs-welcome, .bs-course-screen, …) whose later-loading sheet sets
     position/min-height at matching specificity — this overlay must always win
     so the backdrop never drops into flow and adds a phantom viewport. */
  position: absolute !important;
  inset: 0 !important;
  min-height: 0 !important;   /* never inherit the outgoing screen's 100vh */
  margin: 0 !important;
  z-index: 1;                 /* sits beneath the entering screen */
  pointer-events: none;
  overflow: hidden;           /* a taller old screen can't spill past the frame */
  contain: layout paint;      /* isolate it: never reflows or repaints the live screen */
}
.bs-fx-enter {
  position: relative;
  z-index: 2;
  will-change: opacity;
  animation: bsFxGround .28s cubic-bezier(.22, .61, .36, 1) both;
}
.bs-fx-item {
  will-change: opacity, transform;
  animation: bsFxItem .36s cubic-bezier(.22, .61, .36, 1) both;
  /* A brief, tight cascade: content starts almost immediately and the per-item
     step is small, so a screen reads as one smooth settle rather than a slow
     top-to-bottom trickle. The step is capped in JS (--fx-i maxes out) so long
     screens don't stagger for over a second. */
  animation-delay: calc(0.04s + var(--fx-i, 0) * 0.03s);
}
@keyframes bsFxGround { from { opacity: 0; } to { opacity: 1; } }
/* Pure opacity — content fades in without moving (no translate), so no page
   ever shifts/settles after a transition. */
@keyframes bsFxItem { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .bs-fx-ghost, .bs-fx-enter, .bs-fx-item { animation: none; }
}

.bs-shell {
  min-height: 100vh;

  border: none;
  display: flex;
  flex-direction: column;
}

.bs-course-screen {

  background: var(--acc-screen-bg);
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--white);
}

@keyframes courseScreenFlicker {

  0%,
  100% {
    opacity: 0.55;
  }

  8% {
    opacity: 0.5;
  }

  9% {
    opacity: 0.68;
  }

  10% {
    opacity: 0.48;
  }

  40% {
    opacity: 0.56;
  }

  41% {
    opacity: 0.7;
  }

  42% {
    opacity: 0.52;
  }

  76% {
    opacity: 0.6;
  }

  77% {
    opacity: 0.72;
  }

  78% {
    opacity: 0.5;
  }
}

@keyframes courseGlitchSweep {
  0% {
    transform: translateX(-12px);
    opacity: 0;
  }

  8% {
    opacity: 0.2;
  }

  10% {
    opacity: 0;
  }

  48% {
    transform: translateX(8px);
    opacity: 0;
  }

  50% {
    opacity: 0.24;
  }

  52% {
    opacity: 0;
  }

  100% {
    transform: translateX(14px);
    opacity: 0;
  }
}

@keyframes courseGlitchJitter {

  0%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(1px);
  }

  19% {
    transform: translateY(-1px);
  }

  20% {
    transform: translateY(0);
  }

  61% {
    transform: translateY(2px);
  }

  62% {
    transform: translateY(0);
  }
}.course-main {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 120px 110px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}.course-title-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 34px;
  text-align: center;
}.course-title {
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  font-family: var(--font-display);
}.course-card-num {
  width: 54px;
  height: 54px;
  border: 1px solid var(--acc-hair-2);
  background: color-mix(in srgb, var(--orange) 14%, var(--black-2));
  color: var(--orange);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 30px;
  transition:
    background var(--dur) cubic-bezier(0.16, 1, 0.3, 1),
    color var(--dur) cubic-bezier(0.16, 1, 0.3, 1),
    border-color var(--dur) cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes courseCardRise {
  0% {
    opacity: 0;
    transform: translateY(72px) scaleY(0.88);
    filter: blur(8px);
    clip-path: inset(100% 0 0 0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    filter: blur(0);
    clip-path: polygon(10px 0%,
        100% 0%,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0% 100%,
        0% 10px);
  }
}

@keyframes courseProgressFill {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

@keyframes terminalFlicker {

  0%,
  100% {
    opacity: 0.2;
  }

  8% {
    opacity: 0.3;
  }

  9% {
    opacity: 0.14;
  }

  32% {
    opacity: 0.24;
  }

  33% {
    opacity: 0.34;
  }

  34% {
    opacity: 0.18;
  }

  68% {
    opacity: 0.22;
  }

  69% {
    opacity: 0.36;
  }

  70% {
    opacity: 0.16;
  }
}

@keyframes terminalJitter {

  0%,
  100% {
    transform: translateY(0);
  }

  18% {
    transform: translateY(1px);
  }

  19% {
    transform: translateY(-1px);
  }

  20% {
    transform: translateY(0);
  }

  61% {
    transform: translateY(2px);
  }

  62% {
    transform: translateY(0);
  }
}

@keyframes terminalSweep {
  0% {
    transform: translateX(-14px);
    opacity: 0;
  }

  10% {
    opacity: 0.12;
  }

  12% {
    opacity: 0;
  }

  48% {
    transform: translateX(10px);
    opacity: 0;
  }

  50% {
    opacity: 0.14;
  }

  52% {
    opacity: 0;
  }

  100% {
    transform: translateX(16px);
    opacity: 0;
  }
}
}

/* ── from css/03-shell.css ── */
@layer legacy.l03 {

.bs-auth-screen {

  --ink-rgb: 244, 243, 240;
  background: var(--acc-screen-bg);
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
}.auth-top-bar {
  position: absolute;
  top: 18px;
  left: 78px;
  right: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.45);
}.auth-main {
  position: relative;
  z-index: 5;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 110px 100px;
}.auth-panel {
  width: min(560px, 100%);
  margin: 0 auto;
  border: 1px solid var(--acc-hair);
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.75),
              0 0 60px -30px var(--acc-glow);
  padding: 28px 28px 26px;
  backdrop-filter: blur(1.5px);
}.auth-panel-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.42);
  margin-bottom: 10px;
}.auth-input {
  width: 100%;
  height: 56px;
  border: 1px solid var(--acc-hair);
  background: color-mix(in srgb, var(--orange) 5%, var(--acc-tex-2));
  color: var(--white);
  padding: 0 16px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}.auth-input::placeholder {
  color: rgba(var(--ink-rgb), 0.35);
}.auth-input:focus {
  border-color: var(--orange);
  background: var(--acc-tex-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 12%, transparent);
}

@media (max-width: 820px) {.auth-top-bar {
    left: 22px;
    right: 22px;
  }
}.rail-brand {
  border-bottom: var(--border-2);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: var(--orange);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}.rail-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}.brand-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.32em;
  color: var(--accent-on-accent);
  text-transform: uppercase;
  user-select: none;
  position: relative;
}.rail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}.meta-block {
  padding: 14px 16px;
  border-bottom: var(--border-dim);
  flex-shrink: 0;
}.meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--orange);
}.rail-controls {
  padding: 20px 14px;
  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  justify-content: center;

  align-items: center;

  gap: 10px;

}

.ctrl-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: var(--border-dim);
  color: var(--orange);
  padding: 10px 16px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
  isolation: isolate;
}
.ctrl-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-dark);
  transform: scaleX(0);
  transform-origin: center;
  transition:
    transform var(--dur) var(--ease-sharp),
    background var(--dur-fast) var(--ease-standard);
  z-index: -1;
  opacity: 0.5;
}
.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  outline: none;
  color: var(--orange);
  border-color: var(--orange-dark);
}
.ctrl-btn.active::before {
  transform: scaleX(1);
  background: var(--orange);
  opacity: 1;
}

.main-panel {
  display: flex;
  flex-direction: column;
  background: var(--black);
  min-height: 100%;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 11px 24px;
  border-bottom: var(--border-2);
  background: var(--orange);
  flex-shrink: 0;
}.header-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--orange-dim);
  transition: width var(--dur) var(--ease-sharp);
}.progress-label {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-transform: uppercase;
  user-select: none;
}.q-kicker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--orange);
  text-transform: uppercase;
  user-select: none;
}.q-kicker-dot {
  width: 4px;
  height: 4px;
  background: var(--orange-dark);
  border-radius: 50%; /* round */
  flex-shrink: 0;
}

.choices-zone {
  display: flex;
  flex-direction: column;
  border-bottom: var(--border-dim);
}.choice-btn {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: var(--border-dim);
  color: var(--orange);
  text-align: left;
  padding: 0;
  transition:
    background var(--dur-fast) var(--ease-standard),
    opacity var(--dur-fast) var(--ease-standard);
  position: relative;
  overflow: hidden;
}.choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  transform: scaleY(0);
  transition: transform var(--dur-fast) var(--ease-sharp);
  transform-origin: center;
}
.choice-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-sharp);
  z-index: 0;
}
.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover,
.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible { outline: none; }
.choice-letter,
.choice-text {
  position: relative;
  z-index: 1;
}.choice-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 54px;
  border-right: var(--border-dim);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--orange);
  background: transparent;
  flex-shrink: 0;
  align-self: stretch;
  transition: background var(--dur-slow) var(--ease-standard), color var(--dur-slow) var(--ease-standard);
  user-select: none;
  letter-spacing: 0.05em;
}.choice-btn.incorrect::before {
  background: var(--orange-dark);
  transform: scaleY(1);
}.choice-btn.dimmed {
  opacity: 0.28;
}

.feedback-zone {
  border-bottom: var(--border-dim);
  animation: feedReveal var(--dur) var(--ease-sharp) both;
  max-height: 440px;
  overflow-y: auto;
}

@keyframes feedReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 24px;
  border-bottom: var(--border-dim);
}.feedback-header.fb-correct {
  background: var(--orange);
}.fb-status {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent-on-accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}.fb-correct-exp {
  padding: 18px 24px;
  border-bottom: var(--border-dim);
}.fb-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}.fb-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--white);
  font-weight: 400;
}.fb-incorrect-block {
  padding: 16px 24px;
}.inc-item {
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
  align-items: flex-start;
}.inc-item:last-child {
  margin-bottom: 0;
}.inc-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--orange);
  min-width: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  letter-spacing: 0.06em;
}.inc-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  font-weight: 400;
}

.panel-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 24px;
  border-top: var(--border-2);
  flex-shrink: 0;
  flex-wrap: wrap;
}.footer-left {
  flex: 1;
  min-width: 0;
}.footer-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--orange);
  text-transform: uppercase;
}.footer-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}.action-btn {
  background: var(--orange);
  border: 1px solid transparent;
  color: var(--accent-on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 10px 24px;
  text-transform: uppercase;
  transition:
    background var(--dur-fast) var(--ease-standard),
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}.action-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--acc-tex-2);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}.action-btn:hover,
.action-btn:focus-visible {
  outline: none;
}.action-btn:active {
  transform: translateY(1px);
}.action-btn.alt:hover,
.action-btn.alt:focus-visible { border-color: var(--orange); color: var(--orange); }.right-counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange);
  writing-mode: vertical-rl;
  user-select: none;
}.right-dividers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  flex: 1;
}.right-tick {
  width: 12px;
  height: 1px;
  background: var(--orange-dark);
  opacity: 0.4;
}

.complete-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 52px 28px;
  text-align: center;
  align-items: center;
  animation: fadeUp var(--dur) var(--ease-sharp) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}.complete-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--orange);
  text-transform: uppercase;
  margin-top: -6px;
}.complete-stats {
  display: flex;
  border: var(--border-dim);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  animation: fadeUp var(--dur) var(--ease-sharp) var(--dur-fast) both;
}.stat-block {
  padding: 16px 22px;
  border-right: var(--border-dim);
  text-align: left;
}

@keyframes timerPulse {
  from {
    color: var(--orange);
  }

  to {
    color: var(--white);
  }
}

.xp-cluster {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  user-select: none;
}.xp-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
}.xp-lvl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
}.xp-nums {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--white-dim);
  white-space: nowrap;
  line-height: 1;
}.xp-bar-wrap {
  width: 200px;
  height: 6px;
  background: var(--acc-tex-3);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  border-radius: var(--acc-r);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}.xp-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  opacity: 1;
  transition: width var(--dur) var(--ease-sharp);
}.xp-rank {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--white-dim);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

.theme-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}.theme-swatches {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height var(--dur) var(--ease-standard),
    opacity var(--dur) var(--ease-standard);
}.theme-swatch {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-sharp), opacity var(--dur-fast) var(--ease);
}.theme-swatch::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: var(--swatch-color);
}.theme-swatch:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 2px;
}
}

/* ── from css/04-responsive-home.css ── */
@layer legacy.l04 {

@media (max-width: 820px) {.left-rail {
    border-right: none;
    border-bottom: var(--border-2);
    flex-direction: row;
    flex-wrap: wrap;
  }.rail-meta {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
    overflow-y: visible;
  }.meta-block {
    width: 50%;
    border-bottom: none;
    border-right: var(--border-dim);
  }.xp-bar-wrap {
    width: 80px;
  }
}

@media (max-width: 600px) {.meta-block {
    width: 100%;
    border-right: none;
    border-bottom: var(--border-dim);
  }.complete-stats {
    flex-direction: column;
  }.xp-cluster {
    display: none;
  }
}.home-section {
  border-bottom: var(--border-dim);
  padding: 20px 24px;
}.home-section:last-child {
  border-bottom: none;
}.home-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bs-welcome {

  --ink-rgb: 244, 243, 240;
  background: var(--acc-screen-bg);
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
}

@keyframes wlcScan {
  0% {
    top: -2px;
    opacity: 0;
  }

  4% {
    opacity: 1;
  }

  96% {
    opacity: 1;
  }

  100% {
    top: 100%;
    opacity: 0;
  }
}
.wlc-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 10;
}.wlc-corner::before,
.wlc-corner::after {
  content: '';
  position: absolute;
  background: var(--orange);
}.wlc-corner::before {
  width: 100%;
  height: 2px;
  top: 0;
  left: 0;
}.wlc-corner::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 0;
}.wlc-corner-tl {
  top: 18px;
  left: 18px;
  opacity: 0.5;
}.wlc-corner-tr {
  top: 18px;
  right: 18px;
  transform: scaleX(-1);
  opacity: 0.5;
}.wlc-corner-bl {
  bottom: 18px;
  left: 18px;
  transform: scaleY(-1);
  opacity: 0.5;
}.wlc-corner-br {
  bottom: 18px;
  right: 18px;
  transform: scale(-1);
  opacity: 0.5;
}
.wlc-top-bar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 82px;
  flex-shrink: 0;
}

@keyframes wlcPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.12;
  }
}
.wlc-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30vw;
  color: color-mix(in srgb, var(--orange) 5%, transparent);
  text-transform: uppercase;
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
  line-height: 1;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
}.wlc-ghost-img {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;

  width: min(82vw, 900px);
  height: auto;

  opacity: 0;

  animation: ghostSpin 30s linear infinite;

  pointer-events: none;
  z-index: -5;
}

@keyframes ghostSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes ghostDrift {
  0% {
    transform: scale(1) translateY(0px);
    opacity: 0.88;
  }

  50% {
    transform: scale(1.02) translateY(-4px);
    opacity: 1;
  }

  100% {
    transform: scale(1) translateY(0px);
    opacity: 0.88;
  }
}
.wlc-wordmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
  transition: opacity var(--dur) var(--ease);
}
.wlc-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 11vw, 120px);
  letter-spacing: -0.015em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--orange);
  text-shadow: 0 0 40px var(--acc-glow);
  text-align: center;
  user-select: none;
  position: relative;
}
.wlc-wordmark::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.12);
  clip-path: inset(0 0 100% 0);
  animation: wlcGlitch 12s steps(1) infinite;
}

@keyframes wlcGlitch {

  0%,
  100% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }

  6% {
    clip-path: inset(42% 0 36% 0);
    transform: translate(-4px, 0);
  }

  6.4% {
    clip-path: inset(0 0 100% 0);
  }

  32% {
    clip-path: inset(65% 0 10% 0);
    transform: translate(3px, 0);
  }

  32.4% {
    clip-path: inset(0 0 100% 0);
  }

  70% {
    clip-path: inset(20% 0 62% 0);
    transform: translate(-2px, 0);
  }

  70.4% {
    clip-path: inset(0 0 100% 0);
    transform: translate(0);
  }
}
.wlc-actions {
  display: flex;
  gap: 0;
  margin-top: 28px;
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 5;
}.wlc-btn-primary {
  flex: 1.4;
  height: 52px;
  background: var(--orange);
  color: var(--accent-on-accent);
  border: none;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--orange) 50%, transparent),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}.wlc-btn-primary:hover { color: var(--accent-on-accent); }.wlc-btn-secondary {
  flex: 1;
  height: 52px;
  background: transparent;
  color: rgba(var(--ink-rgb), 0.5);
  border: 1px solid var(--acc-hair);
  border-left: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}.wlc-btn-secondary:hover { border-color: color-mix(in srgb, var(--orange) 78%, #ffffff); color: var(--accent-on-accent); }
.wlc-ticker-wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 520px;
  height: 22px;
  overflow: hidden;
  border-top: 1px solid rgba(var(--ink-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.12);
  margin-top: 24px;
}.wlc-ticker-inner {
  display: flex;
  white-space: nowrap;
  animation: wlcTicker 26s linear infinite;
  height: 100%;
  align-items: center;
}.wlc-ticker-item {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb), 0.28);
  padding: 0 28px;
  border-right: 1px solid rgba(var(--ink-rgb), 0.1);
  flex-shrink: 0;
}

@keyframes wlcTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes thfWipe {
  0% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes thfLivePulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

@keyframes thfBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes thfShellIn {
  0% {
    opacity: 0.6;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {.thf-panel,
.thf-line,
.thf-overlay--wipe,
.thf-shell-staging,
.thf-shell-enter,
.wlc-wordmark::after {
    transition: none;
    animation: none;
    clip-path: none;
    opacity: 1;
  }
}

@keyframes settingsIconSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.bs-settings-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8600;
  background: rgba(5, 5, 5, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-standard);
  backdrop-filter: blur(1px);
}

.bs-settings-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8700;
  width: min(900px, 96vw);
  max-height: 90vh;

  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid var(--acc-hair-2);
  box-shadow: var(--acc-el-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;

  clip-path: var(--bs-module-clip);
  opacity: 0;

  transition:
    opacity var(--dur) var(--ease-standard),
    transform var(--dur) var(--ease-sharp);

  will-change: opacity, transform;
}

@keyframes sttLivePulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}

@keyframes sttConfirmPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes sttFooterScan {
  0% {
    left: -60%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

.bs-lab-root {
  display: grid;
  grid-template-rows: 48px 1fr 180px 40px;
  height: 100vh;
  border: var(--border-2);
  background: var(--acc-ground);
}.bs-linux-shell {
  min-height: 100vh;
  background: var(--sig-black);
  height: 100vh;
  overflow: hidden;
}.linux-category-screen,

:root {
  --text-scale: 1;
}

@keyframes sttRadioPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.3;
    transform: scale(0.6);
  }
}
}

/* ── from css/05-labs-terminal.css ── */
@layer legacy.l05 {

.bs-linux-shell {
  min-height: 100vh;
  overflow: hidden;
  background: var(--black);
}.bs-linux-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--orange);
  min-height: 100vh;
}

.linux-category-screen {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--acc-screen-bg);
  overflow: hidden;
}.linux-cat-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 36px;
  gap: 24px;
  background: transparent;
  color: var(--white);
  position: relative;
  z-index: 3;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.linux-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1100px;
  align-content: start;
}
.linux-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  color: var(--white);
  padding: 18px 16px 14px;
  text-align: left;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  animation: linuxCardIn var(--dur) var(--ease-sharp) forwards;
  animation-delay: var(--cat-delay, 0ms);
  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  transition:
    border-color var(--dur) var(--ease-standard),
    transform var(--dur) var(--ease-sharp),
    box-shadow var(--dur) var(--ease-standard);
}.linux-category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange-bg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-standard);
}.linux-category-card:hover { border-color: var(--orange); }.linux-category-card:hover .course-card-num,
.linux-category-card:focus-visible .course-card-num { color: var(--black); border-color: var(--orange); }
.linux-category-card:hover .linux-cat-card-label {
  color: var(--white);
}

@keyframes linuxCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}.linux-cat-card-label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  flex: 1;
  transition: color var(--dur-fast) var(--ease);
}

.linux-lab-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 900px;
  padding: 4px 0 16px;
}
.linux-lab-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r);
  box-shadow: var(--acc-el-1);
  color: var(--white);
  padding: 16px 18px;
  transition:
    border-color var(--acc-dur) var(--ease-standard),
    transform var(--acc-dur) var(--ease-sharp),
    box-shadow var(--acc-dur) var(--ease-standard);
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-6px);
  animation: linuxRowIn var(--dur) var(--ease-sharp) forwards;
  animation-delay: var(--lab-delay, 0ms);
  transition:
    border-color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);

}.linux-lab-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}.linux-lab-row:hover { border-color: var(--orange); }.linux-lab-row:hover .linux-lab-row-id {
  color: var(--orange);
}.linux-lab-row:hover .linux-lab-row-title {
  color: var(--white);
}.linux-lab-row:hover .linux-lab-xp {
  color: var(--white);
}.linux-lab-row:hover .linux-lab-new { border-color: var(--orange); color: var(--accent-on-accent); }

@keyframes linuxRowIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.linux-lab-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--acc-ground);
}
.linux-main {
  flex: 1;
  display: grid;
  grid-template-columns: 250px 1fr 60px;
  min-height: 0;
}
.linux-left-rail {
  border-right: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  display: flex;
  flex-direction: column;
  background: var(--acc-ground);
  overflow: hidden;
}.linux-left-rail .rail-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}.linux-left-rail .rail-meta::-webkit-scrollbar {
  width: 4px;
}.linux-left-rail .rail-meta::-webkit-scrollbar-track {
  background: transparent;
}.linux-left-rail .rail-meta::-webkit-scrollbar-thumb {
  background: var(--orange-dark);
}
.linux-terminal-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--orange-dark);
  min-height: 0;
  min-width: 0;
}.linux-terminal-output {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 20px;
  line-height: 1.6;
  min-height: 0;
  background: var(--black);
  scroll-behavior: smooth;
}.linux-terminal-output,
.tline,
.ttext {
  white-space: pre;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}

.tline {
  display: flex;
  gap: 10px;
  margin-bottom: 2px;
  word-break: break-all;
}.tprefix {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}.ttext {
  color: var(--white);
  word-break: break-word;
}.tline-sys .tprefix {
  color: var(--orange-dim);
}.tline-sys .ttext {
  color: var(--orange-dim);
  opacity: 0.75;
}.tline-reset .tprefix {
  color: #ff4040;
}.tline-reset .ttext {
  color: #ff4040;
  opacity: 0.9;
}

.linux-terminal-output {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding-bottom: 18px;
}.linux-input-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  padding: 0;
  background: transparent;
  border: none;
  flex-shrink: 0;
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: inherit;
  line-height: inherit;
}.linux-prompt-label {
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 600;
}.linux-command-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--white);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: inherit;
  line-height: inherit;
  font-weight: 500;
  caret-color: var(--orange);
  caret-shape: block;
}.linux-command-input::placeholder {
  color: transparent;
}.linux-command-input:focus {
  outline: none;
}

.linux-progress-count {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}.rpc-sep {
  color: var(--white);
}.linux-progress-track {
  height: 3px;
  background: var(--orange-dark);
  margin-bottom: 4px;
}.linux-progress-fill {
  height: 100%;
  background: var(--orange);
  transition: width var(--dur) var(--ease-sharp);
}.linux-progress-pct {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--orange);
  line-height: 1;
}.linux-right-utility {
  border-left: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--black);
  padding: 0;
  gap: 0;
}.linux-docs-btn {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  color: var(--orange);
  cursor: pointer;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}.linux-docs-btn:hover { color: var(--accent-on-accent); }.linux-docs-btn span {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}.linux-right-ticks {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}.linux-right-tick {
  width: 10px;
  height: 1px;
  background: var(--orange-dark);
  opacity: 0.4;
}

.linux-step-banner {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 16px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  background: var(--black-2);
  flex-shrink: 0;
  min-height: 100px;
}.rsb-label {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dim);
  white-space: nowrap;
  flex-shrink: 0;
}.rsb-text {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}

@keyframes rcsTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

html {
  font-size: 16px;
}body {
  line-height: 1.45;
}.meta-label,
.header-sub,
.progress-label,
.q-kicker,
.right-counter {
  font-size: clamp(16px, 0.78vw, 18px);
}.choice-text {
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--white);
  letter-spacing: 0.01em;
}.meta-label {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 7px;
}.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover .choice-text,
.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible .choice-text {
  color: #ffffff;
}.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover .choice-letter,
.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible .choice-letter {
  color: var(--orange);
}.tab-btn,
.ctrl-btn,
.action-btn,
.linux-category-card,
.linux-lab-row,
.wlc-btn-primary,
.wlc-btn-secondary {
  font-size: clamp(16px, 0.82vw, 18px);
}button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}input:focus-visible {
  border-left-color: var(--orange);
  border-bottom-color: var(--orange);
}.bs-docs-top {
  margin-bottom: 24px;
}.bs-docs-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dim);
  margin-bottom: 10px;
}.bs-docs-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
  margin-bottom: 12px;
  line-height: 1.1;
}.bs-docs-summary,
.bs-docs-paragraph,
.bs-docs-empty,
.bs-docs-callout-body,
.bs-docs-ref-description {
  font-size: 20px;
  line-height: 1.7;
}.bs-docs-summary {
  max-width: 1100px;
  margin-bottom: 18px;
}.bs-docs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}.bs-docs-tag {
  border: 1px solid var(--orange-dark);
  padding: 5px 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 5%, transparent);
}.bs-docs-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--acc-hair);
  scroll-margin-top: 18px;
}.bs-docs-section-alt {
  background: color-mix(in srgb, var(--orange) 2%, transparent);
  padding: 22px 18px 18px;
  border: 1px solid color-mix(in srgb, var(--orange) 8%, transparent);
}.bs-docs-section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  margin-bottom: 16px;
}.bs-docs-list {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}.bs-docs-list li {

  font-size: 20px;
  line-height: 1.7;
}.bs-docs-step {
  margin-bottom: 18px;
}.bs-docs-step-title {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 12px;
}.bs-docs-codeblock {
  border: var(--border);
  background: color-mix(in srgb, var(--orange) 3%, transparent);
  margin: 14px 0;
}.bs-docs-codeblock-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--acc-hair);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  background: var(--orange);
  text-transform: uppercase;
  color: var(--black);
}.bs-docs-code {
  background: var(--sig-black); border: 1px solid color-mix(in srgb, var(--orange) 26%, transparent);
  color: var(--white);
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  overflow-x: auto;
  font-size: 16px;
  line-height: 1.65;
}.bs-docs-callout {
  border: 1px solid var(--orange-dark);
  color: var(--black);
  background: var(--orange);
  padding: 12px 14px;
  margin-bottom: 14px;
}.bs-docs-callout-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}.bs-docs-reference-list {
  display: grid;
  gap: 12px;
}.bs-docs-ref-item {
  border: 1px solid var(--orange-dark);
  background: color-mix(in srgb, var(--orange) 3%, transparent);
  padding: 12px 14px;
}.bs-docs-ref-command {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--orange);
  margin-bottom: 8px;
  word-break: break-word;
}

@media (max-width: 980px) {.bs-docs-title {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {*,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

:root {
  --sai-top: env(safe-area-inset-top, 0px);
  --sai-right: env(safe-area-inset-right, 0px);
  --sai-bottom: env(safe-area-inset-bottom, 0px);
  --sai-left: env(safe-area-inset-left, 0px);

  --input-row-h: 52px;

  --mobile-header-h: 48px;

  --cmdbar-h: 40px;
}

@media (hover: none) and (pointer: coarse) {.tab-btn,
.choice-btn,
.action-btn,
.ctrl-btn,
.linux-category-card,
.linux-lab-row,
.bs-global-back,
.bs-settings-btn,
.rcs-btn-primary,
.rcs-btn-secondary,
.wlc-btn-primary,
.wlc-btn-secondary {
    min-height: 44px;
  }
  .choice-btn::after,
  .tab-btn::before,
  .linux-category-card::before {
    display: none;
  }.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):active {
    background: color-mix(in srgb, var(--orange) 8%, transparent);
  }.choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):active::before {
    transform: scaleY(1);
  }.action-btn:active {
    transform: translateY(2px);
    opacity: 0.88;
  }.linux-category-card:active {
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange) 10%, transparent);
  }
  button,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
  }
}

@media (max-width: 599px) {.header-left {
    flex: 1;
  }
}

@media (max-width: 599px) {
  .bs-shell {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
  }.left-rail::-webkit-scrollbar {
    display: none;
  }
  .rail-brand {
    min-height: 48px;
    height: 48px;
    padding: 0 14px;
    border-bottom: none;
    border-right: 1px solid var(--orange);
    width: auto;
    min-width: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
  }.brand-vertical {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
    letter-spacing: 0.28em;
    color: var(--black);
    display: none;

  }
  .rail-meta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: visible;
    flex: 1;
  }.meta-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 14px;
    border-bottom: none;
    border-right: 1px solid var(--orange-dark);
    width: auto;
    flex-shrink: 0;
    min-width: 72px;
  }.meta-block:last-child {
    border-right: none;
  }.meta-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin-bottom: 3px;
  }
  .feedback-header,
  .fb-correct-exp,
  .fb-incorrect-block {
    padding-left: 14px;
    padding-right: 14px;
  }.fb-text,
  .inc-text {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 1023px) {
  .tline,
  .course-card,
  .linux-category-card,
  .linux-lab-row,
  .bs-levelup-panel,
  .thf-panel {
    will-change: auto;
  }
  .wlc-ghost-img {
    animation-duration: 0s;
    opacity: 0.04;
  }
  .wlc-wordmark::after {
    animation-duration: 20s;
  }
}

.linux-docs-btn--locked {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes linuxTimerPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}.linux-objective-btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 10px;
  background: var(--acc-surf-2);
  border: 1px solid var(--acc-hair-2);
  border-radius: var(--acc-r);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  clip-path: polygon(10px 0%, 100% 0%, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0% 100%, 0% 10px);
}.linux-objective-btn:hover { border-color: var(--orange); color: var(--black); }

.bs-docs-action-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: var(--border-dim);
  color: var(--orange);
  margin-top: 20px;
  padding: 15px 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);

  isolation: isolate;
}
.bs-docs-action-btn:hover,
.bs-docs-action-btn:focus-visible { outline: none; color: var(--black); border-color: var(--orange); }
.bs-docs-action-btn:active {
  transform: translateY(1px);
}.linux-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}.linux-atmosphere-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}.linux-atmosphere-grid {
  z-index: 0;
  background-image:
    -webkit-repeating-linear-gradient(0deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px),
    -webkit-repeating-linear-gradient(90deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px);
  background-image:
    repeating-linear-gradient(0deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px);
  background-size: 48px 48px;
}

@keyframes linuxAtmosphereDrift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(12px);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}::-webkit-scrollbar-track {
  background: var(--black);
  border-left: 1px solid var(--orange-dark);
}::-webkit-scrollbar-corner {
  background: var(--black);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--orange) var(--black);
  scrollbar-width:auto;
}::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom,
      var(--orange) 0%,
      var(--orange-dim) 100%);
  border: 4px solid var(--black);
  box-shadow: 0 0 6px color-mix(in srgb, var(--orange) 60%, transparent);
}

.bsm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
  z-index: 10100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease-standard);
  backdrop-filter: blur(1px);
}.bsm-is-open {
  opacity: 1;
  pointer-events: all;
}
.bsm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(10px);
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  color: var(--white);
  border: 1px solid var(--acc-hair-2);
  box-shadow: var(--acc-el-3);
  padding: 4px;
  width: min(560px, 92vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition:
    clip-path var(--dur-slow) var(--thf-ease-wipe),
    transform var(--dur-slow) var(--ease-sharp),
    opacity var(--dur) var(--ease-standard);
  will-change: clip-path, transform, opacity;
  pointer-events: none;
}.bsm-is-open .bsm-modal {
  clip-path: var(--bs-module-clip);
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.bsm-modal--wide {
  width: min(860px, 94vw);
}
.bsm-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--acc-hair);
  flex-shrink: 0;
  background: transparent;
  gap: 10px;
}.bsm-header-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}.bsm-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.50;
  white-space: nowrap;
}.bsm-title {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0;
  line-height: 1;
}

.bsm-close {
  background: var(--acc-surf-2);
  border: 1px solid var(--acc-hair-2);
  border-radius: var(--acc-r);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 700;
  line-height: 1;
  width: 45px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);

  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 6px 100%, 0% calc(100% - 6px));
}.bsm-close:hover { color: var(--accent-on-accent); }.bsm-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.bsm-body {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding: 10px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bsm-body--docs {
  padding: 0;
  gap: 0;
}.bsm-docs-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 50px 18px;
}
.bsm-overlay-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px 18px 7px;
  border-bottom: 1px solid var(--orange);
  flex-shrink: 0;
}.bsm-overlay-sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}.bsm-overlay-sidebar-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.45;
}
.bsm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);

  gap: 12px;
}.bsm-section-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.50;
}.bsm-divider {
  height: 1px;
  background: var(--orange-dark);
  opacity: 0.30;
  flex-shrink: 0;
}
.bsm-nav-group {
  display: grid;

  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}.bsm-nav-btn:hover { color: var(--black); }.bsm-swatch:hover:not(.is-active) { color: var(--sw, var(--orange)); }.bsm-confirm-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(240, 240, 240, 0.45);
  line-height: 1.5;
  max-width: 340px;
}.bsm-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}.bsm-btn-danger {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(255, 26, 26, 0.15);
  border: 1px solid rgba(255, 26, 26, 0.6);
  color: rgba(255, 26, 26, 0.9);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}.bsm-btn-ghost {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--orange-dark);
  color: var(--orange-dim);
  opacity: 0.60;
  cursor: pointer;
  transition: opacity var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}.bsm-btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.bsm-reset-btn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 12px;
  background: transparent;
  border: 1px solid rgb(255, 26, 26);
  color: rgb(255, 26, 26);
  cursor: pointer;
  align-self: flex-start;
  transition: all var(--dur-fast) var(--ease);
}.bsm-reset-btn:hover { color: var(--black); }

.bsm-data-status {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  min-height: 1.4em;
}

.bsm-backup-age {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.45);
}
.bsm-backup-age.is-stale {
  color: var(--orange);
}

.auth-msg {
  min-height: 1.4em;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(255, 26, 26);
}

.auth-msg:empty { min-height: 0; margin-top: 0; }

.auth-link:hover, .auth-link:focus-visible { color: var(--orange); }

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--ink-rgb, 240, 240, 240), 0.4);
}
.auth-or::before, .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(var(--ink-rgb, 240, 240, 240), 0.15);
}

.wlc-btn-tertiary {
  background: none;
  border: none;
  padding: 8px 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.55);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.wlc-btn-tertiary:hover, .wlc-btn-tertiary:focus-visible { color: var(--orange); }

.bsm-sync-note {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(240, 240, 240, 0.55);
  max-width: 520px;
  margin-bottom: 8px;
}
.bsm-sync-state {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

}

/* ── from css/06-radio-modules.css ── */
@layer legacy.l06 {

.pomo-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  background:      var(--orange);
  border:          1px solid var(--orange);
  border-radius:   var(--acc-r);
  color:           var(--accent-on-accent);
  cursor:          pointer;
  flex-shrink:     0;
  padding:         0;
  clip-path: polygon(0% 0%, calc(100% - 6px) 0%, 100% 6px, 100% 100%, 6px 100%, 0% calc(100% - 6px));
}
/* The pomodoro timer wears the filled "hovered" look at all times — a solid
   accent key that never changes on hover (matches the Next-move CTA). */
.pomo-icon:focus-visible { outline: 2px solid var(--accent-on-accent); outline-offset: -4px; }

.pomo-icon-svg {
  width:  22px;
  height: 22px;
}

.pomo-icon-arc {
  transition: stroke-dashoffset 1s linear;
}
.pomo-icon-hand {
  transition: transform 1s linear;
}

.pomo-body {
  display:        flex;
  flex-direction: column;
  gap:            20px;
  padding:        20px 22px 24px;
  align-items:    center;
}

.pomo-display-wrap {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            6px;
  width:          100%;
}

.pomo-display {
  /* Use the app's display numerals (Barlow Condensed) so the timer digits —
     the zeros especially — match the big numbers everywhere else (card nums,
     readiness band). tabular-nums keeps every digit the same width so the
     countdown doesn't shuffle as the numbers change. */
  font-family:         var(--font-display);
  font-size:           clamp(52px, 14vw, 80px);
  font-weight:         900;
  letter-spacing:      0.02em;
  color:               var(--orange);
  line-height:         1;
  font-variant-numeric: tabular-nums;
  text-align:          center;
}

.pomo-phase-label {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.45;
  text-align:     center;
}

.pomo-mode-btn {
  font-family:    var(--font-display);
  font-size:      16px;
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding:        10px 6px;
  background:     transparent;
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  color:          var(--orange);
  cursor:         pointer;
  transition:     background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  white-space:    nowrap;
  clip-path: polygon(4px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 4px);
}
.pomo-mode-btn:hover,
.pomo-mode-btn.is-active { color: var(--black); }

.pomo-off-btn:hover { color: var(--white-dim); border-color: var(--orange-dark); }

:root {
  --bs-module-cut: 18px;
  --bs-module-border: 1px;
  --bs-module-clip: polygon(
    0% 0%,
    calc(100% - var(--bs-module-cut)) 0%,
    100% var(--bs-module-cut),
    100% 100%,
    var(--bs-module-cut) 100%,
    0% calc(100% - var(--bs-module-cut))
  );
}

.bsm-overlay {
  background: rgba(5, 5, 5, 0.76);
  transition: opacity var(--dur) var(--ease-standard);
}

.bsm-modal {
  border: none;
  background: color-mix(in srgb, var(--orange) 45%, transparent);
  padding: var(--bs-module-border);
  clip-path: inset(0 100% 0 0);
  transform: translate(-50%, -50%) translateY(10px);
  opacity: 0;
  transition:
    clip-path var(--dur-slow) var(--thf-ease-wipe),
    transform var(--dur-slow) var(--ease-sharp),
    opacity var(--dur) var(--ease-standard);
  will-change: clip-path, transform, opacity;
}

.bsm-modal > .bsm-header,
.bsm-modal > .bsm-body,
.bsm-modal > .bsm-footer {
  background: var(--acc-surf-1);
}

.bsm-is-open .bsm-modal {
  clip-path: var(--bs-module-clip);
  transform: translate(-50%, -50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 700px) {
  :root {
    --bs-module-cut: 12px;
  }
}

#quiz-area .right-rail.secplus-linux-rail-host {
  padding: 0;
  gap: 0;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

#quiz-area .right-rail.secplus-linux-rail-host > .right-counter,
#quiz-area .right-rail.secplus-linux-rail-host > .right-dividers {
  display: none;
}

#quiz-area .right-rail.secplus-linux-rail-host .theme-picker {
  margin-top: auto;
  align-self: center;
  margin-bottom: 12px;
  z-index: 10;
}

#quiz-area .right-rail.secplus-linux-rail-host .linux-docs-btn--locked:hover { color: var(--orange); }

.secplus-module-modal {
  max-width: 1180px;
}

.secplus-module-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.secplus-module-sidebar {
  border-right: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  background: rgba(0, 0, 0, 0.34);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.secplus-module-sidebar-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.secplus-module-sidebar-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.secplus-module-nav {
  display: grid;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

/* Side-nav links follow the app's one interaction — the sweep: an orange fill
   grows in from the left on hover / when active, and the label flips to ink. */
.secplus-module-nav-link {
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  background-color: transparent;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  color: var(--orange);
  padding: 10px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-size var(--dur) var(--ease-sharp),
    color var(--dur) var(--ease-sharp),
    border-color var(--dur) var(--ease-sharp);
}

@media (hover: hover) {
  .secplus-module-nav-link:hover {
    background-size: 100% 100%;
    color: var(--black);
    border-color: var(--orange);
  }
}

.secplus-module-nav-link.is-active {
  background-size: 100% 100%;
  color: var(--black);
  border-color: var(--orange);
}

.secplus-module-content {
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

@media (max-width: 900px) {
  .secplus-module-shell {
    grid-template-columns: 1fr;
  }

  .secplus-module-sidebar {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
    max-height: 220px;
  }

}

.sec-feedback-module-modal {
  max-width: 1180px;
  position: relative;
}

.sec-feedback-module-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.7fr;
  gap: 12px;
}

.sec-feedback-module-card,
.sec-feedback-module-section {
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  background: rgba(0, 0, 0, 0.42);
  padding: 14px;
}

.sec-feedback-module-card--primary {
  border-color: var(--orange);
}

.sec-feedback-module-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.sec-feedback-module-answer {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
}

.sec-feedback-module-answer span {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
}

.sec-feedback-module-answer strong {
  color: var(--white);
  font-size: 20px;
  line-height: 1.35;
}

.sec-feedback-module-result {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--orange);
}

.sec-feedback-module-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sec-feedback-module-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  padding: 14px 18px;
  background: var(--black);
}

.sec-feedback-module-actions--confidence {
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sfm-confidence-prompt {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

.sfm-confidence-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Continue button in the feedback modal. It carries bs-sweep, so the sweep
   component owns the fill + ink flip on hover/focus — no custom hover here (the
   old `color:var(--black)` with no background was the broken, invisible hover). */
.sec-feedback-module-btn {
  padding: 11px 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Pre-answer confidence prompt ─────────────────────────────────────── */
.sec-confidence-modal {
  max-width: 560px;
  width: calc(100% - 32px);
  margin: auto;
}
.sec-confidence-body { padding: 20px 22px 24px; }
.sec-confidence-sub {
  margin: 0 0 18px;
  color: var(--white-dim, #9a9a9a);
  font-size: 13.5px;
  line-height: 1.5;
}
.sec-confidence-overlay .sfm-confidence-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.sfm-conf-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--sig-rule, color-mix(in srgb, var(--orange) 30%, transparent));
}
.sfm-conf-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  opacity: 0.8;
}

.sec-feedback-module-overlay.is-correct .bsm-title::after {
  content: " // CONFIRMED";
}

.sec-feedback-module-overlay.is-wrong .bsm-title::after {
  content: " // REVIEW";
}

@media (max-width: 900px) {
  .sec-feedback-module-grid,
  .sec-feedback-module-diagnosis-grid {
    grid-template-columns: 1fr;
  }

  .sec-feedback-module-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sec-feedback-module-actions--confidence {
    align-items: flex-start;
  }

  .sfm-confidence-btns {
    width: 100%;
  }

  .sec-feedback-module-btn {
    width: 100%;
  }
}

.linux-mode-rail-btn--practice.is-active,
.linux-mode-rail-btn--exam.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--accent-on-accent);
}

.linux-mode-rail-btn--practice.is-active span,
.linux-mode-rail-btn--exam.is-active span {
  color: var(--black);
}

.linux-mode-rail-btn--practice.is-active:hover,
.linux-mode-rail-btn--exam.is-active:hover { border-color: var(--orange); color: var(--orange); }

.linux-mode-rail-btn--practice.is-active:hover span,
.linux-mode-rail-btn--exam.is-active:hover span {
  color: var(--orange);
}
}

/* ── from css/07-secplus.css ── */
@layer legacy.l07 {

.secplus-quiz-shell .bs-grid {
  grid-template-columns: 180px 1fr 52px;
  height: calc(100vh - 48px);
  min-height: 0;
  overflow: hidden;
}

.secplus-quiz-shell .left-rail {
  min-height: 0;
  overflow: hidden;
}

.secplus-quiz-shell .rail-meta {
  flex: 0 0 auto;
  overflow: visible;
}

.secplus-quiz-shell .main-panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.secplus-quiz-shell .panel-header,
.secplus-quiz-shell .progress-strip,
.secplus-quiz-shell .question-zone {
  flex: 0 0 auto;
}

.secplus-quiz-shell .choice-letter {
  min-width: 80px;
  min-height: 100%;
  align-self: stretch;
}

.secplus-quiz-shell .feedback-zone {
  display: none;
  height: 0;
  max-height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.secplus-quiz-shell .panel-footer {
  flex: 0 0 68px;
  margin-top: 0;
  min-height: 68px;
  padding: 0 65px;
  border-top: 0;
  border-bottom: 0;
  background: var(--black);
  display: flex;
  align-items: center;
}

.secplus-quiz-shell .footer-right {
  align-items: center;
}

.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover .choice-letter,
.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible .choice-letter,
.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover .choice-text,
.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible .choice-text {
  color: var(--black);
}

.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):hover .choice-letter,
.secplus-quiz-shell .choice-btn:not(:disabled):not(.correct):not(.incorrect):not(.dimmed):focus-visible .choice-letter {
  border-right-color: var(--black);
}

}

/* ── from css/08-responsive.css ── */
@layer legacy.l08 {

:root {

  --tablet-left-rail-w: 150px;
  --tablet-right-panel-w: 270px;

  --mob-header-h: 48px;
  --mob-stat-strip-h: 48px;
  --mob-tabs-h: 44px;
  --mob-footer-h: 60px;
  --mob-action-bar-h: 52px;
  --mob-cmdbar-h: 44px;
  --mob-input-row-h: 56px;

  --sai-bottom: env(safe-area-inset-bottom, 0px);
  --sai-top: env(safe-area-inset-top, 0px);
}

.bs-exam-timer-pill {
  display: none;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--orange);
  background: transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes bsPillPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

@media (min-width: 600px) and (max-width: 1023px) {

  .secplus-quiz-shell .rail-brand {
    min-height: 80px;
    padding: 12px 0;
  }

  .secplus-quiz-shell .bs-exam-timer-pill {
    display: flex;
  }

}

@media (max-width: 599px) {

  .secplus-quiz-shell .bs-exam-timer-pill {
    display: flex;
    border-color: var(--black);
    color: var(--black);
    background: rgba(0,0,0,0.12);
    height: 26px;
    font-size: 11px;
  }

  .secplus-quiz-shell .panel-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    flex: 0 0 auto;
    min-height: var(--mob-footer-h);
    padding: 0 12px;
    padding-bottom: max(8px, var(--sai-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--acc-surf-1);
    margin-top: 0;
  }

}

@media (min-width: 600px) and (max-width: 1023px) {

  .linux-lab-screen {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .linux-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr var(--tablet-right-panel-w);
    overflow: hidden;
  }

  .linux-terminal-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    border-right: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  }

  .linux-step-banner {
    flex-shrink: 0;
    padding: 8px 14px;
  }

  .linux-terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    contain: strict;
    font-size: 13px;
    line-height: 1.65;
    padding: 12px 14px;
  }

  .linux-input-row {
    position: sticky;
    bottom: 0;
    padding: 10px 14px;
    min-height: var(--mob-input-row-h);
    border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--black);
    flex-shrink: 0;
    z-index: 50;
  }
  .linux-prompt-label { font-size: 14px; white-space: nowrap; }

  .linux-left-rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-left: none;
    width: var(--tablet-right-panel-w);
    flex-shrink: 0;
  }

  .linux-left-rail .rail-meta {
    flex-direction: column;
    padding: 0;
    gap: 0;
    overflow-y: auto;
  }

  .linux-docs-btn {
    width: 100%;
    border-left: none;
    border-right: none;
    border-top: none;
  }

  .linux-right-utility { display: none; }

  .linux-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

}

@media (max-width: 599px) {

  .linux-lab-screen {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .linux-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;

  }

  .linux-left-rail {
    display: none;
    position: fixed;
    inset: var(--mob-header-h) 0 0 0;
    z-index: 800;
    background: var(--acc-surf-1);
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    width: 100%;
    max-height: 56vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    transform: translateY(-8px);
    transition: transform var(--dur) var(--ease-sharp), opacity var(--dur-fast) var(--ease);
    opacity: 0;
  }

  .linux-right-utility { display: none; }

  .linux-terminal-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: none;
  }

  .linux-step-banner {
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .rsb-label, .rsb-text { font-size: 20px; }

  .linux-terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    contain: strict;
    will-change: scroll-position;
    font-size: 13px;
    line-height: 1.65;
    padding: 10px 12px;
  }

  .linux-input-row {
    position: relative;
    z-index: 100;
    min-height: var(--mob-input-row-h);
    border-bottom: none;
    background: var(--black);
    padding-bottom: max(10px, var(--sai-bottom));
    flex-shrink: 0;
  }

  .linux-category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  @media (max-width: 380px) {
    .linux-category-grid {
      grid-template-columns: 1fr;
    }
  }

}
}

/* ── from css/09-responsive-v3.css ── */
@layer legacy.l09 {

:root {

  --r-header-h:    46px;
  --r-tabs-h:      42px;
  --r-strip-h:     44px;
  --r-input-h:     54px;
  --r-bar-h:       50px;
  --r-cmdbar-h:    40px;

  --r-fs-micro:    11px;
  --r-fs-small:    12px;
  --r-fs-base:     14px;
  --r-fs-md:       15px;
  --r-fs-lg:       18px;
  --r-fs-xl:       22px;

  --r-tablet-rail: 150px;
  --r-tablet-ctx:  260px;

  --sai-b: env(safe-area-inset-bottom, 0px);

  --vvh: 100dvh;
}

.bs-r-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 480;
  background: rgba(5, 5, 5, 0.75);
}

.bs-r-drawer {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 500;
  background: var(--black-2, #0b0b0b);
  border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  max-height: 68vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transform: translateY(100%);
  transition: transform var(--dur) cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: max(12px, var(--sai-b));
}

.bs-r-drawer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--orange-dark, #7a2200);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: var(--black-2, #0b0b0b);
  z-index: 1;
}
.bs-r-drawer-title {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-micro);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange, #ff4a00);
}
.bs-r-drawer-close {
  background: transparent;
  border: 1px solid var(--orange-dark, #7a2200);
  color: var(--orange-dim, #cc3b00);
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 11px;
  min-height: 32px;
  cursor: pointer;
  border-radius: 0;
}
.bs-r-drawer-close:active {
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  border-color: var(--orange, #ff4a00);
  color: var(--orange, #ff4a00);
}

.bs-r-stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.bs-r-stats-cell {
  padding: 13px 14px;
  border-bottom: 1px solid var(--orange-dark, #7a2200);
  border-right: 1px solid var(--orange-dark, #7a2200);
}
.bs-r-stats-cell:nth-child(2n) { border-right: none; }
.bs-r-stats-cell-lbl {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-micro);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange-dim, #cc3b00);
  margin-bottom: 3px;
}
.bs-r-stats-cell-val {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-xl);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange, #ff4a00);
  line-height: 1;
}
.bs-r-timer-row {
  padding: 11px 14px;
  border-top: 1px solid var(--orange-dark, #7a2200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bs-r-timer-lbl {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-small);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-dim, #cc3b00);
}
.bs-r-timer-toggle {
  height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--orange-dark, #7a2200);
  color: var(--orange-dim, #cc3b00);
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: var(--r-fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  min-height: 34px;
}
.bs-r-timer-toggle.is-on,
.bs-r-timer-toggle:active {
  background: color-mix(in srgb, var(--orange) 18%, transparent);
  border-color: var(--orange, #ff4a00);
  color: var(--orange, #ff4a00);
}

@media (max-width: 599px) {

  @keyframes rPillPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.65; }
  }

  .secplus-quiz-shell .bs-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .secplus-quiz-shell .left-rail {
    width: 100%;
    height: var(--r-strip-h);
    min-height: var(--r-strip-h);
    flex-direction: row;
    align-items: stretch;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid var(--orange-dark, #7a2200);
  }.secplus-quiz-shell .left-rail::-webkit-scrollbar { display: none; }

  .secplus-quiz-shell .meta-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 10px;
  border-bottom: none;
  border-right: 1px solid var(--orange-dark, #7a2200);
  width: auto;
  flex-shrink: 0;
  min-width: 60px;
  height: var(--r-strip-h);
}
  .secplus-quiz-shell .rail-controls {
    display: flex;
    align-items: center;
    padding: 0 8px;
    border-bottom: none;
    border-top: none;
    border-left: 1px solid var(--orange-dark, #7a2200);
    flex-shrink: 0;
    width: auto;
    flex-direction: row;
    gap: 6px;
    height: var(--r-strip-h);
  }.secplus-quiz-shell .ctrl-btn {
  height: 30px;
  padding: 0 10px;
  font-size: var(--r-fs-micro);
  white-space: nowrap;
  letter-spacing: 0.1em;
}

  .secplus-quiz-shell .main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .secplus-quiz-shell .choice-btn {
  min-height: 56px;
  height: 100%;
  border-bottom: 1px solid var(--orange-dark, #7a2200);
  -webkit-tap-highlight-color: transparent;
}

  .secplus-quiz-shell .panel-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    flex-shrink: 0;
    min-height: 52px;
    padding: 6px 12px;
    padding-bottom: max(6px, var(--sai-b));
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--black, #050505);
    margin-top: 0;
  }.secplus-quiz-shell .footer-label { display: none; }.secplus-quiz-shell .footer-right {
  display: flex;
  gap: 8px;
  width: 100%;
}.secplus-quiz-shell .action-btn {
  flex: 1;
  justify-content: center;
  height: 40px;
  padding: 0 12px;
  font-size: var(--r-fs-small);
  letter-spacing: 0.12em;
}

}

@media (min-width: 600px) and (max-width: 1023px) {

  .secplus-quiz-shell .brand-vertical {
  font-size: 20px;
  letter-spacing: 0.28em;
}

  .secplus-quiz-shell .panel-footer {
    flex: 0 0 56px;
    min-height: 56px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black, #050505);
  }

}

@media (max-width: 599px) {

  .linux-lab-screen {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .linux-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    overflow: hidden;
  }

  .linux-left-rail {
    display: none;
    position: fixed;
    inset: var(--r-header-h) 0 0 0;
    z-index: 490;
    background: var(--black-2, #0b0b0b);
    border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    width: 100%;
    max-height: 58vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    pointer-events: auto;
  }.linux-left-rail .rail-meta {
  flex-direction: column;
  padding: 6px 12px;
  gap: 0;
  overflow-y: visible;
}.linux-left-rail .meta-block {
  padding: 8px 0;
  border-bottom: 1px solid var(--orange-dark, #7a2200);
  border-right: none;
  min-width: 0;
  flex-shrink: 0;
}
  .linux-left-rail .meta-label { font-size: var(--r-fs-micro); }
  .linux-left-rail .meta-value { font-size: var(--r-fs-lg); }

  .linux-right-utility { display: none; }

  .linux-terminal-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: none;
    overflow: visible;
  }

  .linux-step-banner { padding: 7px 12px; flex-shrink: 0; }
  .rsb-label { font-size: var(--r-fs-base); letter-spacing: 0.12em; }
  .rsb-text  { font-size: var(--r-fs-base); }

  .linux-terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    contain: strict;
    will-change: scroll-position;
    font-size: 13px;
    line-height: 1.65;
    padding: 8px 12px;
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .linux-terminal-output .tline,
  .linux-terminal-output .ttext {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .linux-input-row {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    min-height: var(--r-input-h);
    border-bottom: none;
    background: var(--black, #050505);
    padding-left: 0px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
  }.linux-prompt-label {
  font-size: var(--r-fs-base);
  white-space: nowrap;
}.linux-command-input {
  font-size: 16px;
  flex: 1;
  min-width: 0;
  pointer-events: auto;
}

  .linux-category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .bs-linux-shell, .bs-linux-view, .linux-category-screen {
    height: 100dvh; min-height: 0; overflow: visible;
  }
  .linux-category-screen { display: flex; flex-direction: column; }
  .linux-cat-body {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }

  .bs-settings-panel { width: 96vw; }

}

@media (min-width: 600px) and (max-width: 1023px) {

  .linux-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr var(--r-tablet-ctx);
    overflow: hidden;
  }

  .linux-terminal-panel {
    display: flex; flex-direction: column; min-height: 0; min-width: 0;
    border-right: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    overflow: visible;
  }
  .linux-terminal-output {
    flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain; contain: strict;
    font-size: 13px; line-height: 1.65; padding: 10px 12px;
    white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word;
  }
  .linux-input-row {
    position: sticky; bottom: 0; z-index: 50;
    min-height: var(--r-input-h); padding: 8px 12px;
    border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--black, #050505); flex-shrink: 0;
  }.linux-command-input {
  font-size: 16px;
  line-height: 1.4;
}

  .linux-left-rail {
    display: flex; flex-direction: column; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-right: none; width: var(--r-tablet-ctx); flex-shrink: 0;
  }

  .linux-left-rail .rail-meta { flex-direction: column; padding: 0; gap: 0; }.linux-left-rail .meta-block {
  padding: 9px 10px;
  border-bottom: 1px solid var(--orange-dark, #7a2200);
  border-right: none;
  min-width: 0;
  flex-shrink: 0;
}.linux-left-rail .meta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}.linux-left-rail .meta-value {
  font-size: 15px;
}

  .linux-right-utility { display: none; }

  .linux-step-banner { padding: 7px 12px; flex-shrink: 0; }.rsb-label, .rsb-text { font-size: 15px; }

  .bs-linux-shell, .bs-linux-view, .linux-category-screen {
    height: 100dvh; min-height: 0; overflow: visible;
  }
  .linux-category-screen { display: flex; flex-direction: column; }
}

@media (max-width: 1023px) {
  body { overflow-x: hidden; }

  .tline, .course-card, .linux-category-card,
  .linux-lab-row, .bs-levelup-panel, .thf-panel { will-change: auto; }

  .wlc-ghost-img { animation-duration: 0s; opacity: 0.04; }
  .wlc-wordmark::after { animation-duration: 20s; }

  .tab-btn, .action-btn, .ctrl-btn, .linux-lab-row,
  .bs-r-sec-btn, .bs-r-linux-btn,
  .bs-mobile-cmdbar-btn, .bs-r-drawer-close { min-height: 44px; }

  .secplus-quiz-shell, .linux-lab-screen,
  .linux-category-screen, .bs-shell { max-width: 100vw; overflow-x: hidden; }
}
}

/* ── from css/10-fixes.css ── */
@layer legacy.l10 {

.bs-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(1px);
  animation: bsConfirmFadeIn var(--dur-fast) var(--ease) forwards;
}

@keyframes bsConfirmFadeIn {
  from { background: rgba(5, 5, 5, 0); }
  to   { background: rgba(5, 5, 5, 0.82); }
}

.bs-confirm-panel {
  width: min(380px, calc(100vw - 32px));
  background: var(--black-2, #0b0b0b);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  animation: bsConfirmSlideUp var(--dur) cubic-bezier(0.16, 1, 0.3, 1) forwards;
  clip-path: polygon(
    10px 0%, 100% 0%,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0% 100%, 0% 10px
  );
}

@keyframes bsConfirmSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bs-confirm-msg {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white-dim, rgba(240, 240, 240, 0.55));
  line-height: 1.55;
  margin: 0;
}

.bs-confirm-input::placeholder {
  color: var(--orange-dark, #7a2200);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.bs-confirm-input:focus {
  border-color: var(--orange, #ff4a00);
}

.bs-confirm-btn {
  flex: 1;
  height: 44px;
  background: transparent;
  border: none;
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  border-radius: 0;
}

.bs-confirm-btn:hover,
.bs-confirm-btn:focus-visible { outline: none; }

.bs-confirm-btn--primary:hover,
.bs-confirm-btn--primary:focus-visible { color: var(--orange, #ff4a00); }

.bs-confirm-btn:active {
  background: color-mix(in srgb, var(--orange) 22%, transparent);
}

@keyframes bsBadgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.72; }
}

.mjg-modal {
  max-width: 1080px;
  width: min(1080px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.mjg-title {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.mjg-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}

.mjg-retry-btn:hover { border-color: var(--black); color: var(--orange); }

.mjg-clear-all-btn-wrap:hover { border-color: var(--orange); color: var(--accent-on-accent); }

.mjg-tally-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  flex-shrink: 0;
  background: color-mix(in srgb, var(--orange) 3%, transparent);
}

.mjg-tally-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 18px;
  border-right: 1px solid var(--orange-dark);
  flex: 1;
  min-width: 0;
}

.mjg-tally-item--total {
  border-right: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
}

.mjg-tally-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  line-height: 1;
}

.mjg-tally-item--total .mjg-tally-val {
  font-size: 28px;
}

.mjg-tally-lbl {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-dim);
  white-space: nowrap;
}

.mjg-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--acc-hair);
  flex-shrink: 0;
  flex-wrap: wrap;
  background: var(--black-2);
}

.mjg-filter-group,
.mjg-sort-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.mjg-filter-btn:hover,
.mjg-sort-btn:hover { border-color: var(--orange); color: var(--accent-on-accent); }

.mjg-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.mjg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 60px 32px;
  text-align: center;
  flex: 1;
}

.mjg-empty-icon {
  font-size: 32px;
  color: var(--orange-dark);
  opacity: 0.5;
}

.mjg-empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange-dim);
}

.mjg-empty-sub {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--white-dim);
  max-width: 340px;
  line-height: 1.6;
}

@media (max-width: 700px) {

  .mjg-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .mjg-tally-item {
    padding: 10px 10px;
  }

  .mjg-tally-item--total .mjg-tally-val {
    font-size: 20px;
  }

}

#quiz-area .right-rail.secplus-linux-rail-host .linux-mode-rail-btn--practice.is-locked {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;

  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    color-mix(in srgb, var(--orange) 4%, transparent) 3px,
    color-mix(in srgb, var(--orange) 4%, transparent) 6px
  );
}

#quiz-area .right-rail.secplus-linux-rail-host .linux-mode-rail-btn--practice.is-locked:hover { color: var(--orange-dark); }

.ed-body {
  overflow-y: auto;
  max-height: calc(88vh - 80px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ed-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--acc-hair);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ed-section--last {
  border-bottom: none;
}

.ed-section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.ed-urgency {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-dim);
  line-height: 1.2;
}

.ed-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-date-input {
  flex: 1;
  background: var(--black-2);
  border: 1px solid var(--orange-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  outline: none;

  color-scheme: dark;
}

.ed-date-input:focus {
  border-color: var(--orange);
}

.ed-set-btn {
  background: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.ed-set-btn:hover { border-color: var(--black); color: var(--orange); }

.ed-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--orange-dark);
}

.ed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-right: 1px solid var(--orange-dark);
}

.ed-stat:last-child {
  border-right: none;
}

.ed-stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  line-height: 1;
}

.ed-stat-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--orange-dark);
  text-align: center;
  line-height: 1.3;
}

.ed-graveyard-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
}

.ed-graveyard-btn:hover { border-color: var(--orange); color: var(--accent-on-accent); }

.ed-graveyard-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: inherit;
  padding: 2px 8px;
  border: 1px solid currentColor;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .ed-stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .ed-date-row {
    flex-direction: column;
    align-items: stretch;
  }

}

@keyframes bs-tut-flash {
  0%   { opacity: 1; }
  50%  { opacity: 0.2; }
  100% { opacity: 1; }
}

@keyframes bs-settings-in {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bs-lab-tut-in {
  from { opacity: 0; transform: translate(-50%, -47%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes bs-tut-wait-blink {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

}

/* ── from css/11-linux-responsive-v4.css ── */
@layer legacy.l11 {

:root {

  --sai-top:    env(safe-area-inset-top,    0px);
  --sai-right:  env(safe-area-inset-right,  0px);
  --sai-bottom: env(safe-area-inset-bottom, 0px);
  --sai-left:   env(safe-area-inset-left,   0px);
  --sai-b:      env(safe-area-inset-bottom, 0px);

  --r-header-h:    46px;
  --r-tab-header:  50px;
  --r-input-h:     54px;
  --r-bar-h:       50px;
  --r-tab-bar-h:   48px;
  --r-cmdbar-h:    40px;
  --r-strip-h:     44px;

  --r-fs-micro:    11px;
  --r-fs-small:    12px;
  --r-fs-base:     14px;
  --r-fs-md:       15px;
  --r-fs-lg:       18px;
  --r-fs-xl:       22px;

  --r-tablet-ctx:  256px;

  --vvh: 100dvh;
}

@media (hover: none) and (pointer: coarse) {

  .linux-category-card,
.linux-lab-row,
.linux-docs-btn,
.rcs-btn-primary,
.rcs-btn-secondary,
.linux-objective-btn,
.bs-r-linux-btn,
.bs-r-tab-linux-btn,
.bs-linux-settings-btn {
    min-height: 44px;
  }

  .linux-category-card::before {
    display: none;
  }

  .linux-category-card:active {
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange) 10%, transparent);
  }.linux-lab-row:active {
    border-color: var(--orange);
    background: color-mix(in srgb, var(--orange) 10%, transparent);
  }

  button,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

.bs-r-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 480;
  background: rgba(5, 5, 5, 0.72);
}

@media (max-width: 599px) {

  .bs-linux-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: none;
  }

  .bs-linux-view {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .linux-lab-screen {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .linux-lab-screen .linux-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;

    grid-template-columns: unset;
    overflow: hidden;
  }

  .linux-lab-screen .linux-right-utility {
    display: none;
  }

  .linux-lab-screen .linux-left-rail {

    display: none;
    position: fixed;
    top: var(--r-header-h);
    left: 0;
    right: 0;
    z-index: 490;
    background: var(--acc-surf-1);
    border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    width: 100%;

    max-height: 60dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    flex-direction: column;
    pointer-events: auto;
  }

  .linux-lab-screen .linux-left-rail .rail-meta {
    flex-direction: column;
    padding: 8px 14px;
    gap: 0;
    overflow-y: visible;
  }

  .linux-lab-screen .linux-left-rail .meta-block {
    padding: 10px 0;
    border-bottom: 1px solid var(--acc-hair);
    border-right: none;
    min-width: 0;
    flex-shrink: 0;
  }

  .linux-lab-screen .linux-left-rail .meta-block:last-child {
    border-bottom: none;
  }

  .linux-lab-screen .linux-left-rail .meta-label {
    font-size: var(--r-fs-micro);
    letter-spacing: 0.2em;
  }

  .linux-lab-screen .linux-left-rail .linux-objective-btn {
    width: 100%;
    min-height: 44px;
    font-size: 15px;
    margin-bottom: 8px;
  }

  .linux-lab-screen .linux-left-rail .linux-progress-count {
    font-size: 28px;
  }

  .linux-lab-screen .linux-terminal-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;

    border-right: none;

    overflow: visible;
  }

  .linux-lab-screen .linux-step-banner {
    padding: 7px 12px;
    flex-shrink: 0;

    white-space: normal;
  }

  .linux-lab-screen .linux-step-banner .rsb-label {
    font-size: var(--r-fs-small);
    letter-spacing: 0.16em;
    flex-shrink: 0;
  }

  .linux-lab-screen .linux-step-banner .rsb-text {
    font-size: 20px;
    line-height: 1.45;
  }

  .linux-lab-screen .linux-terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;

    contain: size;
    will-change: scroll-position;
    font-size: 13px;
    line-height: 1.65;
    padding: 8px 12px;

    overflow-x: hidden;
    word-break: break-all;
  }

  .linux-lab-screen .linux-terminal-output .tline {
    max-width: 100%;
    word-break: break-all;
    white-space: pre-wrap;
  }

  .linux-lab-screen .linux-input-row {

    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    min-height: var(--r-input-h);

    padding-bottom: max(8px, var(--sai-b));
    border-bottom: none;
    background: var(--black);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
  }

  .linux-lab-screen .linux-prompt-label {
    font-size: var(--r-fs-base);
    white-space: nowrap;
    flex-shrink: 0;
  }

  .linux-lab-screen .linux-command-input {

    font-size: 16px;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
    pointer-events: auto;

    autocomplete: off;
    autocorrect: off;
    autocapitalize: off;
    spellcheck: false;
  }

  @keyframes blink-warn {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .linux-category-screen {
    height: 100dvh;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .linux-cat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 12px 24px;
    gap: 14px;
  }

  .linux-cat-heading {
    flex-shrink: 0;
    width: 100%;
    justify-content: center;
  }

  .linux-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100%;
  }

  @media (min-width: 400px) {
    .linux-category-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }

  .linux-category-card {
    min-height: 80px;
    padding: 12px;
  }

  .bs-settings-panel {
    width: 96vw;
  }

  #bs-orient-overlay .bsm-modal,
  .bsm-modal {
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    max-width: min(480px, calc(100vw - 32px));
    width: calc(100vw - 32px);
  }

  .bs-docs-action-btn {
    width: 100%;
    min-height: 48px;
    font-size: 12px;
  }

}

@media (min-width: 600px) and (max-width: 1023px) {

  .bs-linux-shell {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  }

  .bs-linux-view {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }.linux-lab-screen {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

  .linux-lab-screen .linux-main {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: var(--r-tablet-ctx) 1fr 36px;
    grid-template-rows: 1fr;
    overflow: hidden;
  }

  .linux-lab-screen .linux-left-rail {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    border-right: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    border-bottom: none;
    border-left: none;
    background: var(--acc-surf-1);
    overflow-y: auto;
    flex-direction: column;
    order: 1;
    z-index: auto;
  }

  .linux-lab-screen .linux-right-utility {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36px;
    border-left: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--acc-surf-1);
    padding: 10px 0;
    gap: 8px;
    order: 3;
  }
  .linux-lab-screen .linux-right-utility .linux-docs-btn {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: auto;
    height: auto;
    min-height: 0;
    border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    border-radius: 0;
    background: transparent;
    color: var(--orange);
    font-size: var(--r-fs-micro);
    letter-spacing: 2px;
    padding: 10px 4px;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }

  .linux-lab-screen .linux-right-utility .linux-docs-btn:hover,
  .linux-lab-screen .linux-right-utility .linux-docs-btn.is-active { color: var(--accent-on-accent); border-color: var(--orange); }

  .linux-lab-screen .linux-right-utility .linux-docs-btn:hover span,
  .linux-lab-screen .linux-right-utility .linux-docs-btn.is-active span {
    color: var(--accent-on-accent);
  }

  .linux-lab-screen .linux-terminal-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;

    border-right: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    overflow: visible;
    order: 1;
  }

  .linux-lab-screen .linux-step-banner {
    padding: 8px 14px;
    flex-shrink: 0;
  }

  .linux-lab-screen .linux-step-banner .rsb-label {
    font-size: var(--r-fs-small);
  }

  .linux-lab-screen .linux-step-banner .rsb-text {
    font-size: var(--r-fs-base);
  }

  .linux-lab-screen .linux-terminal-output {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    contain: size;
    font-size: 13px;
    line-height: 1.65;
    padding: 10px 14px;
    overflow-x: hidden;
    word-break: break-all;
  }

  .linux-lab-screen .linux-terminal-output .tline {
    max-width: 100%;
    word-break: break-all;
    white-space: pre-wrap;
  }

  .linux-lab-screen .linux-input-row {
    position: sticky;
    bottom: 0;
    z-index: 50;
    min-height: var(--r-input-h);
    padding: 8px 14px;
    padding-bottom: max(8px, var(--sai-b));
    border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
    background: var(--black);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .linux-lab-screen .linux-command-input {

    font-size: 16px;
    line-height: 1.4;
  }

  .linux-lab-screen .linux-left-rail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    width: var(--r-tablet-ctx);
    flex-shrink: 0;
    order: 2;

    position: static;
  }

  .linux-lab-screen .linux-left-rail .rail-meta {
    flex-direction: column;
    padding: 0;
    gap: 0;
    flex: 1;
    overflow-y: auto;
  }

  .linux-lab-screen .linux-left-rail .meta-block {
    padding: 10px 12px;
    border-bottom: 1px solid var(--acc-hair);
    border-right: none;
    min-width: 0;
    flex-shrink: 0;
  }

  .linux-lab-screen .linux-left-rail .meta-label {
    font-size: var(--r-fs-micro);
    letter-spacing: 0.2em;
  }

  .linux-lab-screen .linux-left-rail .linux-objective-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    padding: 8px;
    margin-bottom: 6px;
  }

  .linux-lab-screen .linux-left-rail .linux-progress-count {
    font-size: 24px;
  }

  .linux-category-screen {
    height: 100dvh;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .linux-cat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 20px 20px 32px;
}.linux-category-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

  .linux-category-card {
    min-height: 80px;
  }

  .bs-settings-panel {
    width: 80vw;
    max-width: 480px;
  }

  .bsm-modal {
    max-width: min(520px, calc(100vw - 32px));
    max-height: 90dvh;
    overflow-y: auto;
  }

}

@media (max-width: 1023px) {

  body {
    overflow-x: hidden;
  }

  .bs-linux-shell,
  .bs-linux-view,
  .linux-lab-screen,
  .linux-category-screen,
  .linux-completion-screen {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .tline,
  .linux-category-card,
  .linux-lab-row,
  .bs-levelup-panel,
  .thf-panel {
    will-change: auto;
  }

  .wlc-ghost-img {
    animation-duration: 0s;
    opacity: 0.04;
  }

  .wlc-wordmark::after {
    animation-duration: 20s;
  }

  .linux-lab-row,
  .linux-category-card,
  .bs-r-linux-btn,
  .bs-r-tab-linux-btn,
  .bs-r-drawer-close {
    min-height: 44px;
  }
}

@media (max-width: 599px) {

  .bsm-overlay {

    align-items: flex-start;
    padding-top: max(20px, var(--sai-top));
    overflow-y: auto;
  }

  .bsm-modal {
    max-height: calc(100dvh - 40px - var(--sai-top) - var(--sai-b));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bsm-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

}

@media (max-width: 599px) {

  .auth-top-bar {
    left: 16px;
    right: 16px;
  }

  .wlc-wordmark  {
    font-size: clamp(70px, 11vw, 120px);
  }

  .auth-input {
  height: 52px;
  font-size: 16px;
}

  .wlc-top-bar {
    padding-left: 18px;
    padding-right: 18px;
  }.wlc-actions {
    flex-direction: column;
    gap: 8px;
  }.wlc-btn-primary,
  .wlc-btn-secondary {
    height: 52px;
    clip-path: none;
  }

}

}

/* ── from css/12-additions.css ── */
@layer legacy.l12 {

@media (max-width: 599px) {

  .bs-course-screen .course-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 72px 12px 12px;
    display: flex;
    flex-direction: column;

  }

}

@media (max-width: 599px) {.wlc-ghost-img {
    animation: ghostSpin 30s linear infinite;
    animation-duration: 30s;
    opacity: 0.08;
    width: min(140vw, 600px);
  }
}

@media (max-width: 599px) {

  .bs-docs-summary, .bs-docs-paragraph, .bs-docs-empty, .bs-docs-callout-body, .bs-docs-ref-description {
    font-size: 15px;
  }

  #app,
  .bs-shell,
  .bs-linux-shell,
  .bs-linux-view {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .linux-category-screen {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .linux-cat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .bs-cc {
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }.linux-atmosphere,
.linux-atmosphere-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    pointer-events: none;
    z-index: 0;
  }.linux-cat-body {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 599px) {
  html,
  body {
    overscroll-behavior: none;
    overflow-x: hidden;
  }
}

@media (max-width: 599px) {
  .linux-category-screen {
    background-image:
      repeating-linear-gradient(0deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px),
      repeating-linear-gradient(90deg, var(--acc-tex-1) 0px, var(--acc-tex-1) 1px, transparent 1px, transparent 48px);
    background-size: 48px 48px;
    background-attachment: local;
  }

  .linux-category-screen .linux-atmosphere,
  .linux-completion-screen .linux-atmosphere {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
}

.wlc-ghost > .wlc-ghost-img {
  display: none;
}

.wlc-ghost::after {
  content: '';

  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  width: min(82vw, 900px);
  height: min(54.67vw, 600px);
  background-color: var(--orange);
  -webkit-mask: url('../kunda-glyph.png') center / contain no-repeat;
  mask: url('../kunda-glyph.png') center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: -5;
  will-change: transform;
  animation: ghostSpin 30s linear infinite;
}

@media (max-width: 900px) {
  .wlc-ghost::after {
    width: min(80vmin, 500px);
    height: min(53.3vmin, 334px);
  }
}

@media (max-width: 599px) {
  .wlc-ghost::after {
    width: min(140vw, 600px);
    height: min(93.3vw, 400px);
    opacity: 0.08;
  }
}

.linux-lab-screen .linux-terminal-panel {
  border-right: none;
  background: linear-gradient(180deg, var(--acc-surf-1), var(--acc-ground));
}

.linux-lab-screen .linux-step-banner {
  background: transparent;
  border-bottom: 1px solid var(--acc-hair);
  padding: 18px 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.linux-lab-screen .rsb-label {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 14%, transparent);
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r);
  padding: 4px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.linux-lab-screen .rsb-text {
  font-size: 25px;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.linux-lab-screen .linux-terminal-output {
  background: transparent;
  padding: 20px 22px;
  font-size: 16px;
  line-height: 1.75;
}

.linux-lab-screen .linux-input-row {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.75;
}
.linux-lab-screen .linux-prompt-label {
  font-size: 14px;
  opacity: 1;
  color: var(--orange);
}
.linux-lab-screen .linux-command-input {
  font-size: 16px;
  line-height: 1.75;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--white);
}

.linux-lab-screen .linux-right-utility {
  border-left: 1px solid var(--acc-hair);
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.linux-lab-screen .linux-right-utility .linux-docs-btn {
  border: none;
  border-bottom: 1px solid var(--acc-hair);
  border-radius: 0;
  background: transparent;
  padding: 26px 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  box-shadow: none;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.linux-lab-screen .linux-left-rail {
  border-right: none;
  background: transparent;
}

.linux-lab-screen .meta-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-faint);
  text-transform: uppercase;
}
.linux-lab-screen .linux-progress-track {
  background: var(--acc-tex-3);
  height: 3px;
  border-radius: 0;
  overflow: hidden;
}
.linux-lab-screen .linux-progress-fill {
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  border-radius: 0;
}
.linux-lab-screen .linux-progress-count {
  font-size: 26px;
  color: var(--white);
}
.linux-lab-screen .linux-progress-pct {
  color: var(--white-dim);
  font-size: 12px;
}

.wlc-ghost {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.linux-lab-screen .linux-right-utility .linux-docs-btn:hover,
.linux-lab-screen .linux-right-utility .linux-docs-btn.is-active,
.linux-lab-screen .linux-right-utility .linux-mode-rail-btn--exam.is-active,
.linux-lab-screen .linux-right-utility .linux-mode-rail-btn--practice.is-active { color: var(--accent-on-accent); border-color: var(--orange); }

.linux-lab-screen .linux-right-utility .linux-docs-btn:hover span,
.linux-lab-screen .linux-right-utility .linux-docs-btn.is-active span,
.linux-lab-screen .linux-right-utility .linux-mode-rail-btn--exam.is-active span,
.linux-lab-screen .linux-right-utility .linux-mode-rail-btn--practice.is-active span {
  color: var(--accent-on-accent);
}

:root {
  --t-micro: 11px;  --ls-micro: 0.14em;
  --t-label: 13px;  --ls-label: 0.08em;
  --t-body:  15px;  --ls-body:  0.01em;
  --t-lead:  18px;  --ls-lead:  0;
  --t-head:  25px;  --ls-head:  -0.005em;
  --t-disp:  38px;  --ls-disp:  -0.015em;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
}

.course-title,
.rcs-title {
  font-size: clamp(26px, 4vw, var(--t-disp));
  font-weight: 700;
  letter-spacing: var(--ls-disp);
}

.cc-stat-key,
.meta-label,
.rcs-stat-label,
.rcs-kicker {
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
}

.linux-cat-card-label,
.linux-lab-row-title,
.cc-review-title {
  font-size: var(--t-lead);
  font-weight: 600;
  letter-spacing: var(--ls-lead);
}

.cc-stat-detail,
.linux-lab-row-meta {
  font-size: var(--t-label);
  font-weight: 400;
  letter-spacing: var(--ls-body);
}

.cc-stat-val,
.rcs-stat-val,
.linux-progress-count,
.xp-nums,
.linux-topbar-clock,
.cc-clock {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.rcs-btn-primary,
.rcs-btn-secondary,
.linux-docs-btn,
.bs-r-linux-btn {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--ls-label);
}

.linux-cat-card-label,
.linux-lab-row-title {
  line-height: 1.35;
}

.linux-category-card{ padding: var(--s4); gap: var(--s2); }

.linux-category-grid{ gap: var(--s3); }

.ed-course {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--acc-surf-1);
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r);
}
.ed-course:last-child { margin-bottom: 0; }

.ed-course--primary {
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
  border-left: 2px solid var(--orange);
}

.ed-course-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.ed-course-name {
  font-family: var(--font-display);
  font-size: var(--t-lead);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}
.ed-course--primary .ed-course-name { color: var(--orange); }
.ed-course-tag {
  font-family: var(--font-body);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: var(--ls-micro);
  text-transform: uppercase;
  color: var(--white-faint);
}
.ed-course--primary .ed-course-tag { color: var(--orange); }

.ed-course-bar {
  height: 4px;
  border-radius: 0;
  background: var(--acc-tex-3);
  overflow: hidden;
  margin-bottom: 10px;
}
.ed-course-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
}

.ed-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-variant-numeric: tabular-nums;
  color: var(--white-dim);
}
.ed-course-note {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: var(--t-micro);
  line-height: 1.5;
  color: var(--white-faint);
}

.cc-clock,
.linux-topbar-clock,
#linux-wall-clock,
#cc-clock {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.linux-topbar-clock,
.cc-clock,
#linux-wall-clock,
#cc-clock {
  min-width: 8.5ch;
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hidden,
[hidden] {
  display: none;
}

.bs-course-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.bs-course-screen .course-main {
  flex: 1 1 auto;
  min-height: 0;
}

.bsm-sync-state.is-free { color: rgba(240, 240, 240, 0.6); }

.bs-plan-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}
.bs-plan-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px 26px 22px;
  background: var(--black, #050505);
  border: 1px solid var(--orange);
  clip-path: polygon(14px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 14px);
  outline: none;
}

.bs-plan-kicker {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.3em; color: var(--orange); margin-bottom: 6px;
}
.bs-plan-title {
  font-family: var(--font-display); font-size: clamp(22px, 5vw, 30px); font-weight: 700;
  letter-spacing: 0.02em; line-height: 1.15; color: #f0f0f0; margin: 0 0 14px;
}
.bs-plan-note, .bs-plan-fine {
  font-family: var(--font-body); font-size: 14px; line-height: 1.55;
  color: rgba(240, 240, 240, 0.72); margin: 0 0 12px;
}
.bs-plan-fine { font-size: 12px; color: rgba(240, 240, 240, 0.5); margin-top: 10px; }
.bs-plan-features { list-style: none; padding: 0; margin: 0 0 18px; }
.bs-plan-features li {
  font-family: var(--font-body); font-size: 14px; color: rgba(240, 240, 240, 0.85);
  padding: 5px 0 5px 22px; position: relative;
}
.bs-plan-features li::before { content: '◆'; position: absolute; left: 0; color: var(--orange); font-size: 10px; top: 9px; }
.bs-plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bs-plan-toggle button {
  text-align: left; padding: 12px 14px; cursor: pointer; background: transparent;
  border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); color: #f0f0f0;
  font-family: var(--font-display);
}
.bs-plan-toggle button.is-on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, transparent); }
.bs-plan-toggle button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.bs-plan-price { display: block; font-size: 26px; font-weight: 700; color: var(--orange); }
.bs-plan-price small { font-size: 13px; color: rgba(240, 240, 240, 0.6); font-weight: 600; margin-left: 2px; }
.bs-plan-sub { display: block; font-size: 12px; letter-spacing: 0.06em; color: rgba(240, 240, 240, 0.6); margin-top: 2px; }

.bs-plan-msg {
  min-height: 1.2em; margin: 6px 0; font-family: var(--font-display); font-size: 12px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgb(255, 26, 26);
}
.bs-plan-msg:empty { min-height: 0; margin: 0; }

.bs-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }

.bs-plan-link {
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(240, 240, 240, 0.7); text-decoration: underline; text-underline-offset: 3px;
}
.bs-plan-link:hover, .bs-plan-link:focus-visible { color: var(--orange); }

@media (max-width: 640px) {
  .bs-plan-panel { padding: 24px 18px 18px; }
  .bs-plan-toggle { grid-template-columns: 1fr; }

}

.bs-plan-panel .wlc-btn {
  width: auto;
  min-width: 0;
  flex: 0 1 auto;
  padding: 12px 20px;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .bs-plan-panel .wlc-btn { letter-spacing: 0.1em; padding: 11px 14px; font-size: 14px; }
}

.bs-pbq-list { display: grid; gap: 10px; margin-top: 6px; }
.bs-pbq-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  padding: 14px 16px; background: transparent; color: #f0f0f0;
  border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent);
  font-family: var(--font-body); font-size: 14px; line-height: 1.45;
}
.bs-pbq-card:hover, .bs-pbq-card:focus-visible { border-color: var(--orange); }
.bs-pbq-dom, .bs-pbq-status { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.18em; color: var(--orange); }
.bs-pbq-status { color: rgba(240, 240, 240, 0.6); }
.bs-pbq-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.bs-pbq-item { padding: 12px 14px; border: 1px solid rgba(240, 240, 240, 0.12); }

.bs-pbq-log {
  display: flex; gap: 10px; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 13px; line-height: 1.5; color: rgba(240, 240, 240, 0.9); margin-bottom: 8px;
}
.bs-pbq-log span { color: var(--orange); font-weight: 700; }
.bs-pbq-select { height: 46px; font-size: 14px; }
.bs-pbq-feedback { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: rgba(240, 240, 240, 0.75); margin-top: 8px; }
.bs-pbq-feedback:empty { display: none; }

.bs-pbq-domhead {
  margin: 14px 0 0; font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; color: rgba(240, 240, 240, 0.72);
}
.bs-pbq-domhead:first-child { margin-top: 0; }
.bs-pbq-sum { color: rgba(240, 240, 240, 0.72); font-size: 13px; }

.bs-pbq-row { margin: 0; min-width: 0; }
.bs-pbq-row legend { padding: 0; float: left; width: 100%; }
.bs-pbq-cells { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.bs-pbq-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.bs-pbq-select { min-width: 0; width: 100%; }

.bs-legal-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: 12px; letter-spacing: .08em; }
.bs-legal-links a { color: inherit; opacity: .7; text-decoration: underline; text-underline-offset: 2px; }
.bs-legal-links span { opacity: .4; }
.wlc-legal { margin-top: 18px; color: #a39d95; position: relative; z-index: 2; }
.bsm-legal { margin: 18px 0 6px; color: #8a847c; }
.bs-plan-legal { margin-top: 8px; justify-content: flex-start; color: #8a847c; }

.auth-consent a { color: inherit; text-decoration: underline; }

@media (max-width: 599px) {
  .wlc-actions .wlc-btn-primary,
  .wlc-actions .wlc-btn-secondary { flex: 0 0 auto; height: 52px; min-height: 52px; width: 100%; }

}

.obj-entry { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 0 0 18px; }
.obj-entry-btn {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 14px;
  padding: 10px 18px; background: transparent; color: var(--orange, #ff5a1f);
  border: 1px solid var(--orange, #ff5a1f); cursor: pointer;
}
.obj-entry-btn:hover { color: var(--accent-on-accent, #000); }
.obj-entry-note { font-size: 13px; color: rgba(var(--ink-rgb, 244, 243, 240), 0.72); }
.obj-modal { max-width: 920px; }
.obj-body { overflow-y: auto; }
.obj-intro { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: rgba(var(--ink-rgb, 244, 243, 240), 0.82); }
.obj-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.obj-stat { border: 1px solid rgba(var(--ink-rgb, 244, 243, 240), 0.18); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.obj-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; color: var(--orange, #ff5a1f); }
.obj-stat-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(var(--ink-rgb, 244, 243, 240), 0.72); }
.obj-h { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 18px 0 8px; color: rgba(var(--ink-rgb, 244, 243, 240), 0.95); display: flex; justify-content: space-between; gap: 10px; }
.obj-dpct { color: var(--orange, #ff5a1f); }
.obj-list { list-style: none; margin: 0; padding: 0; }
.obj-row { display: grid; grid-template-columns: 1fr 120px 52px 96px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(var(--ink-rgb, 244, 243, 240), 0.08); }
.obj-row--weak { grid-template-columns: 1fr 52px 96px; }
.obj-name { font-size: 14px; line-height: 1.35; color: rgba(var(--ink-rgb, 244, 243, 240), 0.92); }
.obj-bar { height: 6px; background: rgba(var(--ink-rgb, 244, 243, 240), 0.12); position: relative; display: block; }
.obj-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--orange, #ff5a1f); }
.obj-count { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; color: rgba(var(--ink-rgb, 244, 243, 240), 0.78); }
.obj-go {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: .1em; font-size: 12px;
  padding: 6px 8px; background: transparent; color: var(--orange, #ff5a1f); border: 1px solid var(--orange, #ff5a1f); cursor: pointer;
}
.obj-go:hover { color: var(--accent-on-accent, #000); }
@media (max-width: 600px) {
  .obj-row { grid-template-columns: 1fr 52px 88px; }
  .obj-row .obj-bar { grid-column: 1 / -1; order: 3; }
  .obj-summary { grid-template-columns: 1fr 1fr 1fr; }
  .obj-stat-num { font-size: 20px; }
}

.sr-overall { display: flex; gap: 18px; align-items: center; margin: 10px 0 6px; flex-wrap: wrap; }
.sr-overall-ring {
  --pct: 0; flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; /* round */
  position: relative;
  display: grid; place-items: center;
  background: conic-gradient(var(--orange) calc(var(--pct) * 1%), rgba(240,240,240,0.14) 0);
}
.sr-overall-ring::before { content: ""; position: absolute; top: 13px; left: 13px; width: 78px; height: 78px; border-radius: 50%; /* round */             background: var(--bs-panel, #121212); }
.sr-overall-num { position: relative; font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #f0f0f0; line-height: 1; }
.sr-overall-num small { font-size: 14px; color: rgba(240,240,240,0.65); }
.sr-overall-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sr-practice { align-self: flex-start; }
.sr-domains { display: grid; gap: 12px; margin-top: 10px; }
.sr-domain { border: 1px solid rgba(240,240,240,0.14); padding: 14px 16px; }
.sr-domain-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sr-domain-name { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: #f0f0f0; }
.sr-domain-weight { font-family: var(--font-display); font-size: 11px; letter-spacing: 0.16em; color: var(--orange); white-space: nowrap; }
.sr-metric { display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; margin: 5px 0; }

.sr-metric-val { font-size: 12px; color: rgba(240,240,240,0.7); white-space: nowrap; }
.sr-bar { height: 8px; background: rgba(240,240,240,0.12); min-width: 0; }
.sr-bar-fill { height: 100%; background: var(--orange); }

.sr-obj-list { margin-top: 10px; border-top: 1px solid rgba(240,240,240,0.1); }
.sr-obj { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(240,240,240,0.07); }
.sr-obj-code { font-family: var(--font-display); font-size: 12px; color: var(--orange); font-weight: 700; }
.sr-obj-title { font-size: 13px; color: rgba(240,240,240,0.85); line-height: 1.4; min-width: 0; }
.sr-obj-pbq { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em; color: rgba(240,240,240,0.7); white-space: nowrap; border: 1px solid rgba(240,240,240,0.18); padding: 2px 6px; }

.sr-obj-pbq--none { border-color: transparent; color: rgba(240,240,240,0.35); }
.sr-domain-pbq { margin-top: 8px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em; color: rgba(240,240,240,0.6); }
@media (max-width: 520px) {
  .sr-metric { grid-template-columns: 64px 1fr; }
  .sr-metric-val { grid-column: 2; text-align: right; }
  .sr-obj { grid-template-columns: 34px 1fr; }
  .sr-obj-pbq { grid-column: 2; justify-self: start; }
}
}

/* ── from css/14-premium.css ── */
@layer legacy.l14 {

.linux-category-grid .linux-category-card {
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  padding: 16px 16px 15px;
  min-height: 112px;

}

.linux-category-grid .linux-category-card .course-card-num {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  font-size: 19px;
  letter-spacing: 0.02em;
  border-color: var(--acc-hair-2);
}

.linux-category-grid .linux-category-card .linux-cat-card-label {
  flex: 0 0 auto;
  font-size: 19px;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.linux-category-grid .linux-category-card:not(.is-locked)::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--acc-hair), transparent 85%);
  opacity: 0.6;
  transition: background var(--acc-dur) var(--ease);
}

.linux-category-grid .linux-category-card:not(.is-locked)::before {
  content: '▸';
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  color: var(--orange-dark);
  opacity: 0;
  background: none;
  transition: color var(--acc-dur-fast) var(--ease),
              transform var(--acc-dur-fast) var(--ease),
              opacity var(--acc-dur-fast) var(--ease);
  transform: translateX(-3px);
}

.linux-category-grid .linux-category-card:not(.is-locked):hover::before,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible::before { color: var(--orange); }

.course-card-v2 .cc2-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.course-card-v2 .course-card-status {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  border: 1px solid var(--acc-hair);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  white-space: nowrap;
}

.course-card-v2:hover .course-card-tag,
.course-card-v2:focus-visible .course-card-tag {
  color: color-mix(in srgb, var(--white) 70%, var(--orange));
}

.linux-category-grid .linux-category-card.is-locked:hover { border-color: rgba(var(--ink-rgb), 0.22); }

.wlc-ticker-wrap {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

@media (max-width: 599px) {

  .linux-category-grid .linux-category-card {
    min-height: 104px;
    padding: 14px 14px 13px;
    gap: 8px;
  }
  .linux-category-grid .linux-category-card .course-card-num {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .linux-category-grid .linux-category-card .linux-cat-card-label {
    font-size: 18px;
  }

}

.bs-vm-entry {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange);
  background: var(--black); border: 1px solid var(--acc-hair-2); cursor: pointer;
  padding: 10px 16px;
  clip-path: polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);
  transition: background .12s, color .12s;
}
.bs-vm-entry:hover { color: var(--black); }
.bs-vm-entry .bs-vm-entry-beta {
  font-size: 10px; letter-spacing: 0.16em; opacity: 0.8;
  border: 1px solid currentColor; padding: 1px 5px;
}

.bsr-overlay {
  position: fixed; inset: 0; z-index: 9600;
  display: flex; flex-direction: column;
  background: #050505;
}
.bsr-btn {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange);
  background: var(--black); border: 1px solid var(--acc-hair-2); cursor: pointer;
  padding: 8px 13px;
  clip-path: polygon(6px 0,100% 0,100% calc(100% - 6px),calc(100% - 6px) 100%,0 100%,0 6px);
  transition: background .12s, color .12s;
}
.bsr-btn:hover { color: var(--black); }

.bsr-scroll { flex: 1; overflow: auto; padding: 28px 18px 60px; display: flex; justify-content: center; }

.bsr-sheet {
  width: 100%; max-width: 860px; align-self: flex-start;
  background: linear-gradient(180deg, var(--acc-surf-1), #0a0a0a);
  border: 1px solid var(--acc-hair-2);
  box-shadow: var(--acc-el-2, 0 20px 40px -20px rgba(0,0,0,.7));
  padding: 30px 34px 26px;
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
}
.bsr-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border-bottom: 1px solid var(--acc-hair); padding-bottom: 18px;
}
.bsr-kicker {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 8px;
}

.bsr-head-right { text-align: right; flex-shrink: 0; }
.bsr-id {
  font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--orange);
  border: 1px solid var(--acc-hair-2); padding: 4px 9px; display: inline-block;
  clip-path: polygon(5px 0,100% 0,100% calc(100% - 5px),calc(100% - 5px) 100%,0 100%,0 5px);
}

.bsr-stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--acc-hair); border: 1px solid var(--acc-hair);
  margin: 22px 0 6px;
}

.bsr-stat-lbl {
  font-family: var(--font-display); font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white-dim); margin-top: 7px; line-height: 1.2;
}
@media (max-width: 620px) { .bsr-stats { grid-template-columns: repeat(3, 1fr); } }

.bsr-section-label {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white-dim); margin: 24px 0 10px;
  border-bottom: 1px dashed var(--acc-hair); padding-bottom: 6px;
}
.bsr-course-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 2px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.08);
}
.bsr-course-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.04em; color: var(--white); text-transform: uppercase; }

.bsr-course-detail { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--white-dim); text-align: right; }

.bsr-skills { list-style: none; margin: 0; padding: 0; }
.bsr-skill { display: flex; justify-content: space-between; gap: 14px; padding: 7px 2px; align-items: baseline; }
.bsr-skill-area { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.03em; color: var(--white); }
.bsr-skill-detail { font-family: var(--font-mono, monospace); font-size: 11.5px; color: var(--orange); text-align: right; }

.qh-action:hover, .qh-action:focus-visible { border-color: var(--orange); }

.qh-action-sub { font-family: var(--font-mono, monospace); font-size: 11px; color: var(--white-dim); line-height: 1.4; }

.linux-terminal-output { overflow-x: hidden; }
.linux-terminal-output .ttext {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}
.linux-terminal-output .tline { min-width: 0; max-width: 100%; }

@media (min-width: 600px) and (max-width: 1023px) {

  .linux-lab-screen .linux-main {
    grid-template-columns: 1fr 36px;
  }
  .linux-lab-screen .linux-left-rail      { display: none; }
  .linux-lab-screen .linux-terminal-panel { order: 1; }
  .linux-lab-screen .linux-right-utility  { order: 2; }

  .linux-lab-screen .linux-terminal-panel { border-left: none; }

}

html .linux-command-input,
html .linux-command-input:focus,
html .linux-command-input:focus-visible { outline: none; outline-offset: 0; border: none; caret-color: var(--orange); caret-shape: block; }

.bs-cc { background: var(--acc-ground); }
.bs-welcome, .bs-course-screen, .linux-category-screen, .bs-linux-view {
  background: var(--acc-ground);
}

.wlc-ghost { display: none; }
.wlc-wordmark { text-shadow: none; }

.course-title-wrap,
.linux-cat-heading,
.qh-head {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 11px 24px;
  background: var(--orange);
  text-align: left;
}

.course-title-wrap .course-title,
.linux-cat-heading .course-title,
.qh-head .qh-head-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent-on-accent);
  margin: 0;
}

.linux-category-grid .linux-category-card,
.qh-action,
.bs-vm-card,
.bs-vm-rail {
  background: var(--black-2);
  border: 1px solid var(--acc-hair-2);
  box-shadow: none;
}
.linux-category-grid .linux-category-card:hover,
.linux-category-grid .linux-category-card:focus-visible,
.qh-action:hover,
.qh-action:focus-visible { border-color: var(--orange); }

.linux-lab-row:hover,
.linux-lab-row:focus-visible { border-color: var(--orange); }

.obj-entry {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
}

.bs-cc { grid-template-rows: 60px 1fr; }

.linux-lab-screen .linux-terminal-panel { background: var(--acc-ground); }

.wlc-ticker-item,
.cc-stat-detail {
  color: rgba(var(--ink-rgb, 240,240,240), 0.56);
}

.linux-category-grid .linux-category-card,
.linux-lab-row,
.qh-action:not(.qh-action--primary) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--dur-fast, 160ms) var(--ease-standard, ease),
    color var(--dur-fast, 160ms) var(--ease-standard, ease);
}

.linux-category-grid .linux-category-card::after,
.linux-lab-row::after,
.qh-action:not(.qh-action--primary)::after {
  content: '';
  position: absolute;
  inset: 0;
  left: 0; right: 0; top: 0; bottom: 0;
  height: auto;
  width: auto;
  background: var(--orange);
  opacity: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur, 240ms) var(--ease-sharp, cubic-bezier(0.16,1,0.3,1));
  z-index: 0;
  pointer-events: none;
}

.linux-category-grid .linux-category-card > *,
.linux-lab-row > *,
.qh-action:not(.qh-action--primary) > * {
  position: relative;
  z-index: 1;
}
.linux-category-grid .linux-category-card:not(.is-locked)::before { z-index: 2; }

.linux-category-grid .linux-category-card:not(.is-locked):hover,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible,
.linux-lab-row:not(.is-locked):hover,
.linux-lab-row:not(.is-locked):focus-visible,
.qh-action:not(.qh-action--primary):hover,
.qh-action:not(.qh-action--primary):focus-visible { border-color: var(--orange); color: var(--black); }

.linux-category-grid .linux-category-card:not(.is-locked):hover *,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible *,
.linux-lab-row:not(.is-locked):hover *,
.linux-lab-row:not(.is-locked):focus-visible *,
.qh-action:not(.qh-action--primary):hover *,
.qh-action:not(.qh-action--primary):focus-visible * {
  color: var(--black);
  border-color: var(--black);
}
.linux-category-grid .linux-category-card:not(.is-locked):hover::before,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible::before {
  color: var(--black);
}

.linux-category-grid .linux-category-card:not(.is-locked):hover .course-card-status,
.linux-category-grid .linux-category-card:not(.is-locked):hover .bs-pro-badge,
.linux-lab-row:not(.is-locked):hover .linux-lab-new,
.linux-lab-row:not(.is-locked):hover .bs-pro-badge,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible .course-card-status,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible .bs-pro-badge,
.linux-lab-row:not(.is-locked):focus-visible .linux-lab-new,
.linux-lab-row:not(.is-locked):focus-visible .bs-pro-badge { color: var(--orange); border-color: var(--black); }
.linux-category-grid .linux-category-card:not(.is-locked):hover .course-card-num,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible .course-card-num { color: var(--orange); border-color: var(--black); }

.qh-action--primary:hover, .qh-action--primary:focus-visible { border-color: var(--orange); }
.qh-action--primary:hover .qh-action-name, .qh-action--primary:focus-visible .qh-action-name,
.qh-action--primary:hover .qh-action-sub,  .qh-action--primary:focus-visible .qh-action-sub {
  color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .linux-category-grid .linux-category-card::after,
  .linux-lab-row::after,
  .qh-action::after { transition: none; }
}
}

/* ── from css/15-signature.css ── */
@layer legacy.l15 {

.sig-hero,
.course-title-wrap.sig-hero,
.linux-cat-heading.sig-hero,
.qh-head.sig-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  padding: 26px 28px 24px;
  margin: 0 0 1px;
  background: var(--orange);
  color: var(--accent-on-accent);
  text-align: left;
  position: relative;
}

.sig-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: none;
  pointer-events: none;
}
.sig-hero > * { position: relative; }
.sig-hero-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.sig-eyebrow,
.sig-hero .qh-head-exam {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-on-accent);
  opacity: 0.72;
  margin: 0;
  line-height: 1;
}
.sig-sep { opacity: 0.55; }

.sig-hero .course-title,
.sig-hero .qh-head-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--accent-on-accent);
  margin: 0;
  overflow-wrap: anywhere;
}

.sig-hero-meta {
  display: flex; align-items: flex-end; gap: 28px;
  padding-bottom: 2px;
}
.sig-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sig-meta-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--accent-on-accent);
  font-variant-numeric: tabular-nums;
}
.sig-meta-lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-on-accent);
  opacity: 0.72;
}

.qh-section-label.sig-section {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 36px 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--sig-rule);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: left;
}
.sig-section-right {
  font-family: var(--sig-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sig-ink-mute);
}

.bs-course-screen .linux-category-grid,
.linux-category-screen .linux-category-grid {
  display: grid;
  gap: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--sig-rule);
  border-left: 1px solid var(--sig-rule);
  padding: 0;
  align-content: start;
}
.bs-course-screen .linux-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(188px, 1fr);
  flex: 1 1 auto;
  max-height: 600px;
}

.linux-category-screen .linux-category-grid                  { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.linux-category-grid .linux-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  min-height: 188px;
  padding: 18px 20px 16px;
  margin: 0;
  background: var(--sig-cell);
  border: 0;
  border-right: 1px solid var(--sig-rule);
  border-bottom: 1px solid var(--sig-rule);
  border-radius: 0;
  clip-path: none;
  box-shadow: none;
  text-align: left;
  color: var(--sig-ink);
  overflow: hidden;
  isolation: isolate;
}
.linux-category-screen .linux-category-grid:not(.qh-grid) .linux-category-card { min-height: 148px; }

.linux-category-grid .linux-category-card .course-card-num {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.linux-category-screen .linux-category-grid:not(.qh-grid) .linux-category-card .course-card-num { font-size: 34px; }

.linux-category-grid .linux-category-card .linux-cat-card-label {
  flex: 0 0 auto;
  margin: auto 0 0;
  padding-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--sig-ink);
  overflow-wrap: anywhere;
}
.linux-category-screen .linux-category-grid:not(.qh-grid) .linux-category-card .linux-cat-card-label {
  font-size: 20px; letter-spacing: 0.01em;
}

.linux-category-grid .linux-category-card:not(.is-locked)::before {
  content: '→';
  position: absolute;
  top: auto;
  left: auto;
  right: 18px;
  bottom: 14px;
  width: auto;
  height: auto;
  inset: auto 18px 14px auto;
  font-family: var(--sig-mono);
  font-size: 15px;
  line-height: 1;
  color: var(--black);
  background: none;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms var(--sig-ease), transform 220ms var(--sig-ease);
  z-index: 2;
}

.linux-category-grid .linux-category-card:not(.is-locked):hover .course-card-num,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible .course-card-num { color: var(--black); }
.linux-category-grid .linux-category-card:not(.is-locked):hover .course-card-status,
.linux-category-grid .linux-category-card:not(.is-locked):focus-visible .course-card-status { color: var(--orange); border-color: var(--black); }

.linux-category-screen .obj-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 12px 20px;
  background: var(--sig-cell);
  border: 1px solid var(--sig-rule);
  border-top: none;
  justify-content: start;
}
.linux-category-screen .obj-entry + .linux-category-grid { margin-top: 28px; }
.obj-entry-btn, .bs-vm-entry {
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--sig-rule-strong);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: none;
  transition: background 160ms var(--sig-ease), color 160ms var(--sig-ease), border-color 160ms var(--sig-ease);
}
.obj-entry-btn:hover, .bs-vm-entry:hover, .obj-entry-btn:focus-visible, .bs-vm-entry:focus-visible { color: var(--black); border-color: var(--orange); }
.bs-vm-entry .bs-vm-entry-beta { border-color: currentColor; color: inherit; }
.obj-entry-note {
  font-family: var(--sig-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--sig-ink-dim);
  line-height: 1.5;
}

.bs-welcome .wlc-top-bar {
  max-width: calc(var(--sig-col) + var(--sig-gutter) * 2);
  width: 100%;
  margin: 0 auto;
  padding: 16px var(--sig-gutter);
  border-bottom: 1px solid var(--sig-rule);
}

.bs-welcome .wlc-top-bar .cc-clock {
  font-family: var(--sig-mono); font-weight: 500; font-size: 14px;
  letter-spacing: 0.06em; font-variant-numeric: tabular-nums; color: var(--sig-ink);
}

.bs-welcome .wlc-wordmark-wrap { grid-area: word; align-items: flex-start; width: 100%; align-self: end; }

.bs-welcome .wlc-actions   { grid-area: actions; align-self: start; }
.bs-welcome .wlc-ticker-wrap { grid-area: ticker; }
.bs-welcome .wlc-legal     { grid-area: legal; }
.bs-welcome .wlc-wordmark {
  font-weight: 900;
  font-size: clamp(76px, 12.5vw, 176px);
  line-height: 0.84;
  letter-spacing: -0.028em;
  text-align: left;
  text-shadow: none;
  max-width: 6.3ch;
  margin-left: -0.04em;
}

.bs-welcome .wlc-actions {
  max-width: none;
  margin-top: 0;
  align-items: stretch;
  flex-wrap: wrap;
  row-gap: 14px;
}
.bs-welcome .wlc-btn-primary,
.bs-welcome .wlc-btn-secondary {
  height: 54px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  box-shadow: none;
  border-radius: 0;
}
.bs-welcome .wlc-btn-primary { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.bs-welcome .wlc-btn-secondary {
  color: var(--orange);
  border: 1px solid var(--sig-rule-strong);
  border-left: none;
}
.bs-welcome .wlc-btn-secondary:hover, .bs-welcome .wlc-btn-secondary:focus-visible { color: var(--black); border-color: var(--orange); }
.bs-welcome .wlc-btn-tertiary {
  font-family: var(--sig-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sig-ink-dim);
  border: none;
  padding: 0 0 0 20px;
  text-decoration: none;
  background: none;
}
.bs-welcome .wlc-btn-tertiary::after { content: ' →'; color: var(--orange); }
.bs-welcome .wlc-btn-tertiary:hover { color: var(--sig-ink); }
.bs-welcome .wlc-ticker-wrap {
  max-width: none;
  width: 100%;
  height: 36px;
  margin-top: 64px;
  border-top: 1px solid var(--sig-rule);
  border-bottom: 1px solid var(--sig-rule);
  -webkit-mask-image: none; mask-image: none;
}
.bs-welcome .wlc-ticker-inner { align-items: center; height: 100%; }
.bs-welcome .wlc-ticker-item {
  font-family: var(--sig-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sig-ink-dim);
}
.bs-welcome .wlc-legal { align-self: flex-start; justify-self: start; text-align: left; margin-top: 18px; }

/* Opacity-only: entrances fade in place, never shift geometry (polish:
   no post-transition page movement). The staggered animation-delay below
   still reads as a cascade, purely through opacity. */
@keyframes sigRise {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.sig-hero { animation: sigRise 520ms var(--sig-ease) both; }
.linux-category-grid .linux-category-card,
.linux-lab-row,
.qh-action,
.linux-category-screen .obj-entry {
  animation: sigRise 460ms var(--sig-ease) both;
  animation-delay: calc(120ms + var(--cat-delay, var(--lab-delay, 0ms)) * 0.6);
}
.qh-action:nth-child(1) { --cat-delay: 60ms; }
.qh-action:nth-child(2) { --cat-delay: 120ms; }
.qh-action:nth-child(3) { --cat-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  .sig-hero, .linux-category-grid .linux-category-card, .linux-lab-row, .qh-action, .linux-category-screen .obj-entry {
    animation: none;
  }
}

@media (max-width: 1023px) {
  :root { --sig-gutter: 20px; }
  .bs-course-screen .linux-category-grid              { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; flex: 0 0 auto; max-height: none; }
  .linux-category-screen .linux-category-grid         { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .sig-hero, .course-title-wrap.sig-hero, .linux-cat-heading.sig-hero, .qh-head.sig-hero { padding: 22px 22px 20px; gap: 18px 28px; }
  .linux-category-grid .linux-category-card { min-height: 168px; }
  .linux-category-grid .linux-category-card .linux-cat-card-label { font-size: 24px; }

  .bs-welcome .wlc-actions { max-width: 560px; }

  .bs-welcome .wlc-ticker-wrap { margin-top: 44px; }
}

@media (max-width: 599px) {
  :root { --sig-gutter: 16px; }

  .sig-hero, .course-title-wrap.sig-hero, .linux-cat-heading.sig-hero, .qh-head.sig-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px 18px 18px;
  }
  .sig-hero .course-title, .sig-hero .qh-head-title { font-size: 34px; }
  .sig-hero-meta { justify-content: flex-start; gap: 22px; }
  .sig-meta { align-items: flex-start; }
  .sig-meta-num { font-size: 24px; }

  .linux-category-screen .linux-category-grid         { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .linux-category-grid .linux-category-card { min-height: 150px; padding: 14px 14px 12px; }
  .linux-category-grid .linux-category-card .course-card-num { font-size: 36px; }
  .linux-category-grid .linux-category-card .linux-cat-card-label { font-size: 22px; }

  .qh-section-label.sig-section { margin: 28px 0 10px; }
  .sig-section-right { display: none; }

  .linux-category-screen .obj-entry { grid-template-columns: 1fr; gap: 8px; padding: 12px 14px; }

  .bs-welcome .wlc-top-bar { padding: 12px var(--sig-gutter); }

  .bs-welcome .wlc-wordmark { font-size: clamp(64px, 19vw, 96px); }
  .bs-welcome .wlc-actions { flex-wrap: wrap; max-width: none; }
  .bs-welcome .wlc-btn-primary, .bs-welcome .wlc-btn-secondary { height: 50px; }
  .bs-welcome .wlc-btn-tertiary { width: 100%; padding: 14px 0 0; }
  .bs-welcome .wlc-ticker-wrap { margin-top: 36px; }
}

.secplus-quiz-shell .rail-brand { min-height: 148px; }

.secplus-quiz-shell .ctrl-btn.active, .secplus-quiz-shell .ctrl-btn:hover { color: var(--black); border-color: var(--orange); }

.secplus-quiz-shell .header-label {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 0.94; letter-spacing: -0.01em;
  color: var(--accent-on-accent); white-space: normal; overflow: visible;
}

@media (min-width: 600px) and (max-width: 1023px) {

  .secplus-quiz-shell .rail-brand { min-height: 96px; }

}

.linux-lab-screen .linux-left-rail { background: var(--sig-ground); }
.linux-lab-screen .linux-left-rail .meta-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sig-ink-dim);
}
.linux-lab-screen .linux-progress-count {
  font-family: var(--font-display); font-weight: 900;
  font-size: 40px; line-height: 0.9; letter-spacing: -0.015em; color: var(--orange);
}
.linux-lab-screen .linux-progress-pct { font-family: var(--sig-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--sig-ink-dim); }
.linux-lab-screen .linux-objective-btn {
  height: 44px; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: 0.18em;
  background: transparent; color: var(--orange); border: 1px solid var(--sig-rule-strong);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.linux-lab-screen .linux-objective-btn:hover { color: var(--black); border-color: var(--orange); }

.linux-lab-screen .linux-step-banner { padding: 18px 22px; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--sig-rule); }
.linux-lab-screen .rsb-label {
  font-family: var(--sig-mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em;
  color: var(--orange); background: transparent; border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent);
  padding: 5px 9px; clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}
.linux-lab-screen .rsb-text {
  font-family: var(--font-body, 'Barlow', sans-serif); font-weight: 500;
  font-size: 18px; line-height: 1.45; letter-spacing: 0; color: var(--sig-ink);
}

.linux-lab-screen .linux-right-utility .linux-docs-btn { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.2em; }

.linux-terminal-output { font-family: var(--sig-mono); font-size: 15px; line-height: 1.7; }
.linux-command-input, .linux-prompt-label, .tline, .ttext, .tprefix, .tprompt { font-family: var(--sig-mono); }

.bsm-modal, .bs-plan-panel, .auth-panel, .bs-confirm-panel, .bs-lvl-overlay-panel {
  background: var(--sig-cell);
  border: 1px solid var(--sig-rule-strong);
  border-radius: 0;
  box-shadow: none;
}
.bsm-header {
  background: var(--orange); color: var(--black);
  padding: 20px 24px 18px; border-bottom: 0;
  position: relative; overflow: hidden;
}
.bsm-header::before { content: ''; position: absolute; inset: 0; background: none; pointer-events: none; }
.bsm-header > * { position: relative; }
.bsm-header-left { display: flex; flex-direction: column; gap: 8px; }
.bsm-kicker { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--black); opacity: 0.72; }
.bsm-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 0.92; letter-spacing: -0.012em; text-transform: uppercase; color: var(--black); }
.bsm-close { background: var(--black); color: var(--orange); border: 1px solid var(--black); border-radius: 0; width: 40px; height: 40px; }
.bsm-section-label { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); opacity: 1; border-bottom: 1px solid var(--sig-rule); padding-bottom: 8px; }

.bsm-nav-btn:hover { color: var(--black); }

.bs-plan-panel { border-top: 4px solid var(--orange); }
.bs-plan-kicker { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); }
.bs-plan-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 3vw, 36px); line-height: 0.94; letter-spacing: -0.012em; text-transform: uppercase;
  color: var(--sig-ink); border: 0; padding: 0; background: transparent;
}

.sr-domain-head, .bs-pbq-domhead { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; text-transform: none; }
.sr-metric-label, .bs-pbq-cell-label { font-family: var(--sig-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--sig-ink-dim); }

.bs-pbq-card:hover { border-color: var(--orange); }

.auth-form input:focus { border-color: var(--orange); }

.obj-stat-num { font-family: var(--font-display); font-weight: 900; font-size: 36px; line-height: 0.9; color: var(--orange); }
.obj-stat-label, .obj-h { font-family: var(--font-display); font-weight: 600; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sig-ink-dim); }
.obj-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.obj-count, .obj-dpct, .obj-domain { font-family: var(--sig-mono); font-size: 11.5px; }

.bsr-btn {
  height: 36px; padding: 0 14px;
  background: transparent; color: var(--orange); border: 1px solid var(--sig-rule-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.18em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.bsr-btn:hover, .bsr-btn:focus-visible { color: var(--black); border-color: var(--orange); }

.bsr-sheet {
  max-width: var(--sig-col);
  background: var(--sig-cell);
  border: 1px solid var(--sig-rule); border-top: 4px solid var(--orange);
  box-shadow: none; clip-path: none;
  padding: 32px 40px 32px;
}
.bsr-head { border-bottom: 1px solid var(--sig-rule); padding-bottom: 24px; align-items: flex-end; }
.bsr-kicker { font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.22em; color: var(--orange); margin-bottom: 10px; }
.bsr-name { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 4vw, 56px); line-height: 0.9; letter-spacing: -0.012em; text-transform: uppercase; color: var(--sig-ink); }
.bsr-sub, .bsr-date, .bsr-course-detail, .bsr-skill-detail, .bsr-empty, .bsr-disclaimer { font-family: var(--sig-mono); }

.bsr-id {
  font-family: var(--sig-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
  color: var(--orange); border: 1px solid var(--sig-rule-strong); padding: 7px 12px; clip-path: none;
}
.bsr-date { font-size: 11.5px; color: var(--sig-ink-dim); margin-top: 10px; }

.bsr-stats { gap: 0; background: transparent; border: 0; border-top: 1px solid var(--sig-rule); border-left: 1px solid var(--sig-rule); margin: 28px 0 0; }
.bsr-stat {
  background: transparent; text-align: left; padding: 18px 18px 16px;
  border-right: 1px solid var(--sig-rule); border-bottom: 1px solid var(--sig-rule);
  display: flex; flex-direction: column; gap: 10px;
}
.bsr-stat-val { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 0.9; letter-spacing: -0.01em; color: var(--orange); order: 2; }
.bsr-stat-lbl { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; letter-spacing: 0.22em; color: var(--sig-ink-dim); margin: 0; order: 1; }
.bsr-section-label {
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px; letter-spacing: 0.22em;
  color: var(--orange); border-bottom: 1px solid var(--sig-rule); padding-bottom: 10px; margin: 36px 0 0;
}
.bsr-course-row { padding: 16px 0; border-bottom: 1px solid var(--sig-rule); }
.bsr-course-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0; color: var(--sig-ink); }
.bsr-course-cert { font-family: var(--sig-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--orange); margin-left: 10px; }
.bsr-course-detail { font-size: 12px; color: var(--sig-ink-dim); }

.bsr-skill { padding: 12px 0; border-bottom: 1px solid var(--sig-rule); }
.bsr-skill-area { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; }

.bsr-foot { margin-top: 36px; border-top: 1px solid var(--sig-rule); padding-top: 18px; }

@media (max-width: 620px) {
  .bsr-sheet { padding: 24px 20px; }
  .bsr-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .bsr-head-right { text-align: left; }
  .bsr-stat-val { font-size: 32px; }
}

html .bsm-header .bsm-kicker { color: var(--black); opacity: 0.72; white-space: normal; }

.bsm-modal, .bs-settings-panel { --bs-module-clip: inset(0 0 0 0); }

.bs-settings-panel { background: var(--sig-cell); border: 1px solid var(--sig-rule-strong); box-shadow: none; }

.bsm-footer span, .bsm-footer { font-family: var(--sig-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--sig-ink-dim); }

.bs-pbq-list { gap: 0; margin-top: 10px; border-top: 1px solid var(--sig-rule); }

.bs-pbq-card:hover { border-color: var(--sig-rule); }

@media (max-width: 599px) {

  .bsr-btn { padding: 0 10px; font-size: 10.5px; letter-spacing: 0.12em; white-space: nowrap; flex: 1 1 auto; }

}
}

/* ── from c_labs.css ── */
@layer legacy.clabs {

.bs-c-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* The C lab panel inherits the Linux lab's grid layout, in which `flex:1` on
   .bsc-editor-wrap does nothing and the Monaco host collapses to a few pixels
   (the "blank editor" bug). Force the C editor panel to be a real flex column
   so the editor area grows to fill the height and Monaco mounts full-size.
   Specificity 0-2-0 to win over single-class responsive overrides. */
.linux-terminal-panel.bsc-terminal-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
}

.bsc-editor-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 240px;
  border-bottom: 1px solid var(--orange-dark);
}

.bsc-editor-monaco-host {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bsc-editor-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--black-2);
  border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  border-bottom: 1px solid var(--orange-dark);
  flex-shrink: 0;
}

.bsc-ctrl-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  background: transparent;
  color: var(--orange-dark);
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.bsc-ctrl-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.bsc-ctrl-btn--run:hover:not(:disabled) { color: var(--white); border-color: var(--orange-dark); }

.bsc-ctrl-btn--submit.is-ready:hover:not(:disabled) { color: var(--accent-on-accent); border-color: var(--orange); }

@keyframes bsc-finish-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 170, 90, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(58, 170, 90, 0.25); }
}

.bsc-output-area {
  height: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--orange-dark);
  background: var(--black);
}

.bsc-output-tabs {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--orange-dark);
}

.bsc-output-tab:hover:not(.is-active) {
  color: var(--white-dim);
}

.bsc-output-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.bsc-output-pane.is-active { display: block; }

.bsc-output-idle  { color: var(--orange-dark); font-size: 12px; letter-spacing: 0.04em; font-family: var(--font-display); }

.bsc-tests-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-dark);
  padding: 6px 0 8px;
  text-transform: uppercase;
}

.bsc-test-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--orange-dark);
}

.bsc-test-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.bsc-test-body { flex: 1; min-width: 0; }

.bsc-test-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.3;
}

.bsc-test-desc {
  font-size: 14px;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.bsc-test-status {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
  color: var(--orange-dark);
}

@media (max-width: 640px) {

  .bsc-output-area { height: 160px; }

}

.bsc-mp-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  background: var(--black);
  padding: 0;
}

.bsc-mp-section {
  padding: 16px 22px;
  border-bottom: 1px solid var(--orange-dark);
  flex-shrink: 0;
}

.bsc-mp-section:last-child {
  border-bottom: none;
  flex: 1;
}

.bsc-mp-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.bsc-mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bsc-mp-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.bsc-mp-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
}

.bsc-mp-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white-dim);
  line-height: 1.4;
}

.bs-docs-paragraph {
  font-family: var(--font-body, 'Barlow', sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.75;
  margin: 0 0 14px 0;
  letter-spacing: 0.01em;
}

}

/* ── from levelup.css ── */
@layer legacy.levelup {

.bs-levelup-overlay.is-visible {
  pointer-events: all;
  animation: lu-overlay-in var(--dur) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lu-overlay-in {
  from { background: rgba(5, 5, 5, 0); }
  to   { background: rgba(5, 5, 5, 0.82); }
}

@keyframes lu-overlay-out {
  from { background: rgba(5, 5, 5, 0.82); }
  to   { background: rgba(5, 5, 5, 0); }
}

.bs-levelup-overlay.is-visible .bs-levelup-panel {
  animation: lu-panel-in var(--dur) var(--dur-fast) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lu-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lu-panel-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.bs-levelup-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--orange) 6%, transparent) 50%,
    transparent 100%
  );
  transform: translateY(-100%);
  pointer-events: none;
  z-index: 10;
  animation: lu-scan var(--dur-slow) var(--dur) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lu-scan {
  from { transform: translateY(-100%); opacity: 1; }
  to   { transform: translateY(200%);  opacity: 0; }
}

.bs-levelup-close:hover { border-color: var(--orange); color: var(--orange); }

.bs-levelup-level-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);

  clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
  background: color-mix(in srgb, var(--orange) 3%, transparent);
  position: relative;
  overflow: hidden;
}

.bs-levelup-level-row::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--orange);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  animation: lu-signal-lock var(--dur-slow) var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lu-signal-lock {
  0%   { opacity: 0.6; transform: scaleX(0);   }
  70%  { opacity: 0.4; transform: scaleX(1.04); }
  100% { opacity: 0;   transform: scaleX(1);   }
}

.bs-levelup-num--to {
  color: var(--orange);
  animation: lu-num-resolve var(--dur-slow) var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lu-num-glitch {
  0%   { opacity: 1; }
  20%  { opacity: 0.2; }
  22%  { opacity: 0.8; }
  40%  { opacity: 0.3; }
  42%  { opacity: 1;   }
  60%  { opacity: 0.5; }
  62%  { opacity: 0.7; }
  80%  { opacity: 0.4; }
  100% { opacity: 0.38; }
}

@keyframes lu-num-resolve {
  0%   { opacity: 0; transform: translateY(4px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.bs-levelup-arrow {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--orange-dim);
  opacity: 0;
  animation: lu-arrow-in var(--dur) var(--dur) var(--ease) forwards;
}

@keyframes lu-arrow-in {
  from { opacity: 0; transform: scaleX(0.4); }
  to   { opacity: 1; transform: scaleX(1); }
}

.bs-levelup-xp {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: lu-fade-up var(--dur) var(--dur-slow) var(--ease) forwards;
}

.bs-levelup-xp-val {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--orange, #ff4a00);
}

.bs-levelup-xp-label {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange-dim, #cc3b00);
  padding-top: 2px;
}

.bs-levelup-msg {
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white-dim, rgba(240,240,240,0.55));
  opacity: 0;
  animation: lu-fade-up var(--dur) var(--dur-slow) var(--ease) forwards;
}

.bs-levelup-msg::before {
  content: '// ';
  color: var(--orange-dark, #7a2200);
}

@keyframes lu-fade-up {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bs-levelup-dismiss {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--orange-dim, #cc3b00);
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 11px 16px;
  cursor: pointer;
  text-align: center;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  opacity: 0;
  animation: lu-fade-up var(--dur) var(--dur-slow) var(--ease) forwards;
}

.bs-levelup-dismiss:hover { color: var(--orange, #ff4a00); }

}

/* ── from python_labs.css ── */
@layer legacy.pylabs {

.bs-python-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bspy-terminal-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

/* Same flex-column fix as the C panel: the Linux grid layout otherwise
   collapses the Monaco host to a few pixels. */
.linux-terminal-panel.bspy-terminal-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
}

.bspy-editor-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 240px;
  border-bottom: 1px solid var(--orange-dark);
}

.bspy-editor-monaco-host {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bspy-editor-inner {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.bspy-line-nums {
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  background: var(--black-2);
  border-right: 1px solid var(--orange-dark);
  overflow: hidden;
  user-select: none;
  min-width: 36px;
  align-items: flex-end;
  flex-shrink: 0;
}

.bspy-lnum {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--orange-dark);
  display: block;
}

.bspy-editor-textarea {
  flex: 1;
  resize: none;
  border: none;
  outline: none;
  background: var(--black);
  color: var(--white);
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 14px;
  tab-size: 4;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  overflow-y: auto;
  caret-color: var(--orange);
}

.bspy-editor-textarea::selection {
  background: color-mix(in srgb, var(--orange) 25%, transparent);
}

.bspy-editor-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--black-2);
  border-top: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  border-bottom: 1px solid var(--orange-dark);
  flex-shrink: 0;
}

.bspy-ctrl-btn {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  background: transparent;
  color: var(--orange-dark);
  cursor: pointer;
  clip-path: polygon(6px 0%, 100% 0%, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0% 100%, 0% 6px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  flex-shrink: 0;
}

.bspy-ctrl-btn:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange);
}

.bspy-ctrl-btn--run:hover:not(:disabled) { color: var(--white); border-color: var(--orange-dark); }

@keyframes bspy-finish-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 170, 90, 0); }
  50%       { box-shadow: 0 0 0 4px rgba(58, 170, 90, 0.25); }
}

.bspy-output-area {
  height: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--orange-dark);
  background: var(--black);
}

.bspy-output-tabs {
  display: flex;
  height: 32px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--orange-dark);
}

.bspy-output-tab:hover:not(.is-active) { color: var(--white-dim); }

.bspy-output-pane {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.bspy-output-pane.is-active { display: block; }

.bspy-tests-score {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--orange-dark);
  padding: 6px 0 8px;
  text-transform: uppercase;
}

.bspy-test-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--orange-dark);
}

.bspy-test-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.bspy-test-body { flex: 1; min-width: 0; }

.bspy-test-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.3;
}

.bspy-test-desc {
  font-size: 14px;
  color: var(--white-dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.bspy-test-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.bspy-test-detail--error { color: var(--orange); font-size: 12px; }

.bspy-test-status {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  min-width: 40px;
  text-align: right;
  color: var(--orange-dark);
}

.bspy-test-status--fail { color: var(--orange); }

.bspy-terminal {
  height: 100%;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 640px) {

  .bspy-output-area { height: 160px; }

}

}

/* ── from command_center.css ── */
@layer legacy.cc {

:root {
  --cc-fg: var(--white);
  --cc-ink-rgb: 244, 243, 240;

  --cc-surf-0: var(--acc-ground);
  --cc-surf-1: var(--acc-surf-1);
  --cc-surf-2: var(--acc-surf-2);
  --cc-hair: var(--acc-hair);
  --cc-hair-strong: var(--acc-hair-2);
}

.bs-cc {

  --cc-fg: var(--white);
  --cc-ink-rgb: 244, 243, 240;

  --cc-surf-0: var(--acc-ground);
  --cc-surf-1: var(--acc-surf-1);
  --cc-surf-2: var(--acc-surf-2);
  --cc-hair: var(--acc-hair);
  --cc-hair-strong: var(--acc-hair-2);

  display: grid;

  grid-template-rows: 48px 1fr;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-display);
  background:
    radial-gradient(ellipse 900px 600px at 18% -5%, color-mix(in srgb, var(--orange) 26%, transparent), transparent 62%),
    radial-gradient(ellipse 700px 500px at 90% 100%, color-mix(in srgb, var(--orange) 14%, transparent), transparent 68%),
    var(--cc-surf-0);
  color: var(--cc-fg);
}

@keyframes cc-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.15; } }

.cc-clock         { font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; margin: 0 auto; }

.theme-picker   { position: relative; display: flex; align-items: center; gap: 5px; }
.theme-swatches { display: flex; gap: 4px; overflow: hidden; max-width: 0; transition: max-width var(--dur) var(--ease); }

.theme-swatch   { width: 10px; height: 10px; background: var(--swatch-color); cursor: pointer; flex-shrink: 0; opacity: 0; transform: scale(0.6); transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }

.theme-swatch:hover { border-color: var(--cc-fg); }

.bs-cc {
  opacity: 0;
  transition: opacity var(--dur-slow) cubic-bezier(0.22, 1, 0.36, 1);
}

.bs-cc.cc-is-booted {
  opacity: 1;
}

@keyframes cc-donut-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bs-cc,
.cc-stat {
    opacity: 1;
    transform: none;
    transition: none;
    stroke-dashoffset: 0;
  }

}

.cc-review-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px;
  overflow: hidden;
}

.cc-review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.cc-review-summary-item {
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r);
  box-shadow: var(--acc-el-1);
  padding: 14px 14px 12px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;

}

.cc-review-summary-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--cc-fg);
  font-variant-numeric: tabular-nums;
}

.cc-review-summary-label {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(var(--cc-ink-rgb),0.44);
}

.cc-review-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cc-review-list::-webkit-scrollbar {
  display: none;
}

.cc-review-row {
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r);
  box-shadow: var(--acc-el-1);
  transition:
    border-color var(--acc-dur) var(--ease-standard),
    transform var(--acc-dur) var(--ease-sharp),
    box-shadow var(--acc-dur) var(--ease-standard);
  padding: 12px 14px 11px;
  flex-shrink: 0;

}

.cc-review-row--clickable {
  cursor: pointer;
}

.cc-review-row--clickable:hover,
.cc-review-row--clickable:focus-visible { border-color: var(--orange); color: var(--white); }

.cc-review-row--clickable:hover *,
.cc-review-row--clickable:focus-visible .cc-review-title {
  color: var(--white);

}

.cc-review-row-main {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}

.cc-review-id,
.cc-review-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cc-fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-review-id {
  color: var(--cc-fg);
  font-variant-numeric: tabular-nums;
}

.cc-review-meta {
  margin-top: 5px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cc-fg);
}

.cc-review-bar {
  margin-top: 10px;
  height: 5px;
  background: rgba(var(--cc-ink-rgb),0.14);
  overflow: hidden;
}

.cc-review-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dim), var(--orange));
  transition: width var(--dur-slow) var(--ease-sharp, var(--ease));
}

.cc-review-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(var(--cc-ink-rgb),0.42);
}

.rdm-stats-row {
  display:     flex;
  gap:         36px;
  flex-shrink: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
}

.rdm-legend-row {
  display:     flex;
  gap:         20px;
  flex-shrink: 0;
}

.rdm-legend-item {
  font-family:    var(--font-display);
  font-size:      13px;
  font-weight:    700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--orange);
}

.rdm-legend-item--done {
  color: var(--orange);
}

.rdm-list {
  display:        flex;
  flex-direction: column;
  gap:            8px;
  flex:           1;
}

.rdm-row {
  display:        flex;
  flex-direction: column;
  gap:            5px;
  padding:        10px 14px;
  border:         1px solid color-mix(in srgb, var(--orange) 30%, transparent);
  transition:     border-color var(--dur-fast) var(--ease);
}
/* The breakdown rows are buttons: select one to practice that lab. Reset the
   native button look, then layer the readiness state onto the border so the
   list reads at a glance — dim (not started) → medium → bright (ready). */
button.rdm-row {
  width:      100%;
  text-align: left;
  background: transparent;
  color:      inherit;
  font:       inherit;
  cursor:     pointer;
  align-items: stretch;
}
.rdm-row--progress { border-color: color-mix(in srgb, var(--orange) 58%, transparent); }
.rdm-row--done     { border-color: var(--orange); }
.rdm-row:hover,
.rdm-row:focus-visible { border-color: var(--orange); }
/* "PRACTICE ›" affordance: a transparent label that keeps its space (no layout
   shift), coloured in only on hover/focus so the list stays calm at rest. */
.rdm-row-go {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.12em;
  color:          transparent;
  white-space:    nowrap;
  transition:     color var(--dur-fast) var(--ease);
}
.rdm-row:hover .rdm-row-go,
.rdm-row:focus-visible .rdm-row-go { color: var(--orange); }
@media (prefers-reduced-motion: reduce) { .rdm-row, .rdm-row-go { transition: none; } }

.rdm-row-title {
  font-family:    var(--font-display);
  font-size:      14px;
  font-weight:    700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color:          var(--orange);
  white-space:    nowrap;
  overflow:       hidden;
  text-overflow:  ellipsis;
}

.rdm-row-track-wrap {
  display:     flex;
  align-items: center;
  gap:         10px;
}

.rdm-row-track {
  flex:       1;
  height:     6px;
  background: color-mix(in srgb, var(--orange) 25%, transparent);
  position:   relative;
}

.rdm-row-fill {
  position:   absolute;
  inset:      0 auto 0 0;
  background: var(--orange);
  transition: width var(--dur-slow) var(--ease);
}

.rdm-row-tick {
  position:   absolute;
  top:        0;
  bottom:     0;
  width:      1px;
  background: color-mix(in srgb, var(--orange) 35%, transparent);
  transform:  translateX(-50%);
}

.rdm-row-score {
  font-family:          var(--font-display);
  font-size:            13px;
  font-weight:          700;
  letter-spacing:       0.12em;
  color:                var(--orange);
  white-space:          nowrap;
  width:                40px;
  text-align:           right;
  font-variant-numeric: tabular-nums;
}

.rdm-footer {
  font-family:    var(--font-display);
  font-size:      13px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--orange);
  border-top: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  padding-top:    12px;
  line-height:    1.6;
}

.shm-overlay {
  position:        fixed;
  inset:           0;
  background:      rgba(0, 0, 0, 0.60);
  display:         flex;
  align-items:     center;
  justify-content: center;
  z-index:         9000;
  opacity:         0;
  transition:      opacity var(--dur) var(--ease);
  pointer-events:  none;
}
.shm-is-open {
  opacity:        1;
  pointer-events: all;
}

.shm-modal {
  background:      var(--acc-surf-1);
  color:           var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  width:           min(820px, 94vw);
  max-height:      88vh;
  display:         flex;
  flex-direction:  column;
  overflow:        hidden;
  isolation:       isolate;

  clip-path: polygon(
    0% 0%,
    calc(100% - 18px) 0%,
    100% 18px,
    100% 100%,
    18px 100%,
    0% calc(100% - 18px)
  );
  transform:       translateY(12px) translateZ(0);
  transition:      transform var(--dur) var(--ease);

  will-change:     transform;
  backface-visibility: hidden;
}
.shm-is-open .shm-modal {
  transform: translateY(0) translateZ(0);
}

.shm-header {
  display:         flex;
  align-items:     flex-start;
  justify-content: space-between;
  padding:         18px 22px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  flex-shrink:     0;
  background:      var(--acc-surf-1);
}

.shm-kicker {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.50;
  margin-bottom:  5px;
}

.shm-title {
  font-family:    var(--font-display);
  font-size:      24px;
  font-weight:    700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--orange);
  margin:         0;
  line-height:    1;
}

/* Secondary line under a modal title (e.g. the exam-style "On a real system"
   VM header): the title stays on its own line; this sits beneath it, dimmed. */
.shm-subtitle {
  font-family:    var(--font-body);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--white-dim);
  opacity:        0.6;
  margin-top:     8px;
  line-height:    1.2;
}

.shm-close {
  background:      var(--acc-surf-1);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  color:           var(--orange);
  font-family:     var(--font-display);
  font-size:       45px;
  font-weight:     700;
  line-height:     1;
  width:           45px;
  height:          50px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  flex-shrink:     0;
  transition:      background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 8px 100%, 0% calc(100% - 8px));
}
.shm-close:hover { color: var(--black); }
.shm-close:focus-visible {
  outline:        2px solid var(--orange);
  outline-offset: 2px;
}

.shm-body {
  overflow-y:     auto;
  overflow-x:     hidden;
  flex:           1;
  min-height:     0;
  padding:        18px 22px 22px;
  display:        flex;
  flex-direction: column;
  gap:            16px;

  contain:        paint;
}

.shm-stats-row {
  display:   flex;
  gap:       36px;
  flex-shrink: 0;
}

.shm-stat-val {
  font-family:         var(--font-display);
  font-size:           32px;
  font-weight:         700;
  letter-spacing:      0.04em;
  color:               var(--orange);
  line-height:         1;
  font-variant-numeric: tabular-nums;
}

.shm-stat-key {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.50;
  margin-top:     4px;
}

.shm-stat-sub {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.30;
  margin-top:     2px;
}

.shm-grid-wrap {
  display:     flex;
  align-items: flex-start;
  gap:         6px;
  flex-shrink: 0;
  overflow:    hidden;
}

.shm-dow-svg { flex-shrink: 0; overflow: visible; }

.shm-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  display:    flex;
  flex-direction: column;
}

:root {
  --shm-cell-0: color-mix(in srgb, var(--orange) 8%, transparent);
  --shm-cell-1: color-mix(in srgb, var(--orange) 28%, transparent);
  --shm-cell-2: color-mix(in srgb, var(--orange) 52%, transparent);
  --shm-cell-3: color-mix(in srgb, var(--orange) 78%, transparent);
  --shm-cell-4: var(--orange);
  --shm-cell-fut: color-mix(in srgb, var(--orange) 4%, transparent);
  --shm-cell-stroke: color-mix(in srgb, var(--orange) 22%, transparent);
}

.shm-cell       { stroke: var(--shm-cell-stroke); stroke-width: 0.6; }
.shm-lv0        { fill: var(--shm-cell-0); }
.shm-lv1        { fill: var(--shm-cell-1); }
.shm-lv2        { fill: var(--shm-cell-2); }
.shm-lv3        { fill: var(--shm-cell-3); }
.shm-lv4        { fill: var(--shm-cell-4); }
.shm-fut        { fill: var(--shm-cell-fut); stroke: var(--shm-cell-stroke); stroke-width: 0.3; }

.shm-footer {
  display:        flex;
  flex-direction: column;
  gap:            10px;
  flex-shrink:    0;
  border-top: 1px solid color-mix(in srgb, var(--orange) 22%, transparent);
  padding-top:    14px;
}

.shm-legend-row {
  display:     flex;
  align-items: center;
  gap:         12px;
  flex-wrap:   wrap;
}

.shm-legend-title {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.50;
  white-space:    nowrap;
}

.shm-legend-item {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-family:    var(--font-display);
  font-size:      12px;
  font-weight:    600;
  letter-spacing: 0.10em;
  color:          var(--orange);
  opacity:        0.70;
  white-space:    nowrap;
}

.shm-note {
  font-family:    var(--font-display);
  font-size:      11px;
  font-weight:    500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color:          var(--orange);
  opacity:        0.35;
  margin:         0;
}

@media (max-width: 600px) {

  .bs-cc {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

}

.cc-review-row--clickable:hover { border-color: var(--orange); }

}

/* ── from bs_tour.css ── */
@layer legacy.tour {

body.bsh-open { overflow: hidden; }

.bsh-overlay {
  position: fixed; inset: 0; z-index: 10400;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  animation: bshFade var(--dur) var(--ease);
}
/* Never cover the global navigation bar: an onboarding scrim that spanned the
   whole viewport sat over the MENU / Settings button and swallowed the click,
   so the button read as broken. Start the scrim below the bar; the bar (and
   its MENU key) stays reachable. !important clears the .bsm-overlay inset. */
body.bs-has-chrome .bsh-overlay { top: var(--bs-topbar-h) !important; }
@keyframes bshFade { from { opacity: 0 } to { opacity: 1 } }

.bsh-invite {
  width: min(520px, 94vw);
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  border-radius: var(--acc-r-lg);
  box-shadow: var(--acc-el-3);
  padding: 32px;
  text-align: left;
}
.bsh-invite-kicker {
  font-family: var(--font-body);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}

.bsh-side-head { padding: 24px 20px 16px; border-bottom: 1px solid var(--acc-hair); }
.bsh-side-kicker {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--orange);
}
.bsh-side-title {
  font-family: var(--font-display); font-size: var(--t-lead);
  font-weight: 700; color: var(--white); margin-top: 4px;
}
.bsh-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.bsh-nav-item {
  width: 100%; display: flex; gap: 12px; align-items: baseline;
  padding: 10px 20px; background: transparent; border: none;
  border-left: 2px solid transparent;
  text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.bsh-nav-n {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); color: var(--white-faint); flex-shrink: 0;
}

.bsh-nav-t {
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 500;
  line-height: 1.4; color: var(--white-dim);
}
.bsh-nav-item.is-active .bsh-nav-t { color: var(--white); font-weight: 600; }

.bsh-close:hover { color: var(--accent-on-accent); }

.bsh-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 32px 32px; }

.bsh-lede {
  font-family: var(--font-body); font-size: var(--t-lead);
  font-weight: 400; line-height: 1.55; color: var(--white-dim);
  margin: 0 0 24px; max-width: 62ch;
}
.bsh-p {
  font-family: var(--font-body); font-size: var(--t-body);
  line-height: 1.7; color: var(--white); opacity: 0.86;
  margin: 0 0 16px; max-width: 68ch;
}
.bsh-h4 {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--orange); margin: 26px 0 12px;
}

.bsh-list { margin: 0 0 18px; padding: 0; list-style: none; max-width: 68ch; }
.bsh-list li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  font-family: var(--font-body); font-size: var(--t-body);
  line-height: 1.6; color: var(--white); opacity: 0.86;
}
.bsh-list li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; /* round */
  background: color-mix(in srgb, var(--orange) 70%, transparent);
}

.bsh-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 20px 0; padding: 14px 16px;
  background: color-mix(in srgb, var(--orange) 7%, transparent);
  border-left: 2px solid var(--orange);
  border-radius: 0;
  font-family: var(--font-body); font-size: var(--t-label);
  line-height: 1.6; color: var(--white); opacity: 0.9; max-width: 66ch;
}
.bsh-note-mark {
  flex-shrink: 0; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--orange);
  padding-top: 1px;
}

.bsh-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-top: 1px solid var(--acc-hair);
}
.bsh-count {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase; color: var(--white-faint);
}
.bsh-foot-actions { display: flex; gap: 10px; }

.bsh-btn-ghost:hover:not(:disabled) { color: var(--accent-on-accent); }

.bsh-btn-primary:hover { color: var(--orange); }

@media (max-width: 760px) {

  .bsh-head, .bsh-scroll, .bsh-foot { padding-left: 20px; padding-right: 20px; }

}

.bsh-hint {
  font-family: var(--font-body); font-size: var(--t-micro);
  color: var(--white-faint); letter-spacing: 0.04em;
}
@media (max-width: 900px) { .bsh-hint { display: none; } }

#bs-handbook-root :focus-visible,
#bs-handbook-invite :focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: var(--acc-r);
}
.bsh-title:focus,
.bsh-title:focus-visible,
.bsh-spot-title:focus,
.bsh-spot-title:focus-visible {

  outline: none;
}

.bsh-spot { position: fixed; inset: 0; z-index: 10300; pointer-events: none; }
.bsh-spot-ring {
  z-index: 9650;
  position: fixed;
  border: 2px solid var(--orange);
  border-radius: var(--acc-r);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.66),
              0 0 26px -4px color-mix(in srgb, var(--orange) 60%, transparent);
  transition: top var(--dur) var(--ease), left var(--dur) var(--ease), width var(--dur) var(--ease), height var(--dur) var(--ease);
  pointer-events: none;
}
.bsh-spot-card {

  z-index: 9700;
  position: fixed; width: min(360px, 92vw);
  background: linear-gradient(180deg, var(--acc-surf-2), var(--acc-surf-1));
  border: 1px solid color-mix(in srgb, var(--orange) 45%, transparent);
  border-radius: var(--acc-r-lg);
  box-shadow: var(--acc-el-3);
  padding: 18px 20px;
  pointer-events: auto;
}
.bsh-spot-kicker {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: var(--ls-micro); text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
.bsh-spot-title {
  font-family: var(--font-display); font-size: var(--t-lead); font-weight: 700;
  color: var(--white); margin: 0 0 6px; outline: none;
}
.bsh-spot-text {
  font-family: var(--font-body); font-size: var(--t-label); line-height: 1.6;
  color: var(--white); opacity: 0.88; margin: 0 0 16px;
}
.bsh-spot-actions { display: flex; gap: 8px; justify-content: flex-end; }

.bsh-spot-target { z-index: 9601; }

@media (prefers-reduced-motion: reduce) {
  .bsh-overlay { animation: none; }
  .bsh-spot-ring { transition: none; }
  .bsh-btn, .bsh-show, .bsh-nav-item, .bsh-close { transition: none; }
}

.bsh-spot-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.bsh-spot-dot {
  width: 6px; height: 6px; border-radius: 50%; /* round */

  background: color-mix(in srgb, var(--orange) 28%, transparent);
}

.bsh-spot-dot.is-active { background: var(--orange); }

@media (max-width: 620px) {
  .bsh-spot-card {
    left: 12px; right: 12px;
    width: auto;
    top: auto; bottom: 12px;
  }
  .bsh-spot-card.bsh-card-top {
    top: 12px; bottom: auto;
  }
  .bsh-spot-actions { flex-wrap: wrap; }
}

.bsh-ring-live {
  animation: bshPulse 1.9s var(--ease) infinite;
}
@keyframes bshPulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(0,0,0,0.62),
                          0 0 18px -4px color-mix(in srgb, var(--orange) 50%, transparent); }
  50%      { box-shadow: 0 0 0 9999px rgba(0,0,0,0.62),
                          0 0 34px 0 color-mix(in srgb, var(--orange) 78%, transparent); }
}
.bsh-spot-cue {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; padding: 9px 12px;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  border-left: 2px solid var(--orange);
  border-radius: 0;
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  color: var(--orange);
}

.bsh-guided ~ * .bsh-spot-target,
.bsh-spot-target { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  .bsh-ring-live { animation: none; }
}

.bsh-tour-btn:hover { color: var(--orange); border-color: var(--orange); }
.bsh-tour-i { font-size: 10px; line-height: 1; }
/* The guided-tour button sits between the handbook title and its note; give it
   30px of breathing room above and below so it is not cramped against the text. */
/* !important to beat .bs-key's own `margin: 0`, which sits in the later-declared
   @layer components and so outranks this legacy layer by layer order, not
   specificity (same pattern the codebase uses for .bs-key--filled). */
.bsh-side-head .bsh-tour-btn { margin-top: 30px !important; margin-bottom: 30px !important; }
.bsh-tour-note {
  margin: 0;   /* the button's 30px bottom margin already sets the gap above this */
  font-family: var(--font-body); font-size: var(--t-micro);
  line-height: 1.5; color: var(--white-faint);
}

.bsm-close,
.shm-close,
.bs-lvl-overlay-close,
.bsh-close {

  width: 45px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--acc-surf-2);
  border: 1px solid color-mix(in srgb, var(--orange) 40%, transparent);
  border-radius: var(--acc-r);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.bsm-close:hover,
.shm-close:hover,
.bs-lvl-overlay-close:hover,
.bsh-close:hover { color: var(--accent-on-accent); border-color: var(--orange); }

.bsh-spot-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.bsh-spot-frame {
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.bsh-spot-frame.is-in { opacity: 1; }

.bsh-spot-ring {
  transition: top var(--dur) cubic-bezier(.16,1,.3,1),
              left var(--dur) cubic-bezier(.16,1,.3,1),
              width var(--dur) cubic-bezier(.16,1,.3,1),
              height var(--dur) cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .bsh-spot-scrim, .bsh-spot-frame, .bsh-spot-ring { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bsh-page { transition: none; }

}

/* ═══════════════════════════════════════════════════════════════════════════
   HANDBOOK CONTENT BLOCKS — diagrams, numbered steps, term lists, "show me".
   These classes are emitted by bs_tour.js renderBlock(); without styling they
   collapse to black boxes and run-together text. Everything here uses theme
   tokens so it recolours with the twelve accent themes.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Diagrams (inline SVG) ──────────────────────────────────────────────── */
.bsh-fig { margin: 6px 0 24px; }
.bsh-svg {
  display: block; width: 100%; height: auto; max-height: 260px;
  background: color-mix(in srgb, var(--orange) 4%, var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  border-radius: var(--acc-r-lg);
  padding: 12px;
}
.bsh-figcap {
  margin-top: 10px;
  font-family: var(--font-body); font-size: var(--t-micro);
  letter-spacing: 0.02em; line-height: 1.5;
  color: var(--white-faint); text-align: center;
}
/* SVG primitives — fill/stroke, not color, so the theme repaints them. Order
   matters: the base .bsh-svg-t sets white, and -dim / -accent override it. */
.bsh-svg-bar    { fill: color-mix(in srgb, var(--orange) 16%, var(--acc-surf-2)); }
.bsh-svg-panel  { fill: var(--acc-surf-1); stroke: var(--acc-hair); stroke-width: 1; }
.bsh-svg-row    { fill: color-mix(in srgb, var(--orange) 8%, var(--acc-surf-2)); stroke: var(--acc-hair); stroke-width: 1; }
.bsh-svg-track  { fill: color-mix(in srgb, var(--white) 12%, transparent); }
.bsh-svg-fill   { fill: var(--orange); }
.bsh-svg-active { fill: color-mix(in srgb, var(--orange) 24%, transparent); stroke: var(--orange); stroke-width: 1.5; }
.bsh-svg-node   { fill: var(--orange); stroke: var(--acc-surf-1); stroke-width: 2; }
.bsh-svg-line   { fill: none; stroke: color-mix(in srgb, var(--white) 26%, transparent); stroke-width: 2; }
.bsh-svg-arc    { fill: none; stroke: color-mix(in srgb, var(--orange) 55%, transparent); stroke-width: 1.5; stroke-dasharray: 5 5; }
.bsh-svg-t      { fill: var(--white); font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.bsh-svg-sm     { font-size: 11px; }
.bsh-svg-dim    { fill: var(--white-faint); font-weight: 500; }
.bsh-svg-accent { fill: var(--orange); }

/* ── Numbered steps ─────────────────────────────────────────────────────── */
.bsh-steps { list-style: none; margin: 6px 0 22px; padding: 0; max-width: 68ch; display: grid; gap: 14px; }
.bsh-step { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.bsh-step-n {
  display: grid; place-items: center; width: 30px; height: 30px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; line-height: 1;
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 42%, transparent);
  border-radius: var(--acc-r);
}
.bsh-step-body { display: block; padding-top: 3px; }
.bsh-step-h { display: block; font-family: var(--font-body); font-weight: 700; font-size: var(--t-body); color: var(--white); margin-bottom: 3px; }
.bsh-step-t { display: block; font-family: var(--font-body); font-size: var(--t-label); line-height: 1.6; color: var(--white); opacity: 0.82; }

/* ── Term / definition lists ────────────────────────────────────────────── */
.bsh-defs { margin: 6px 0 22px; max-width: 72ch; display: grid; gap: 10px; }
.bsh-def {
  display: grid; grid-template-columns: 136px 1fr; gap: 16px; align-items: baseline;
  padding: 13px 16px;
  background: color-mix(in srgb, var(--orange) 4%, var(--acc-surf-1));
  border: 1px solid var(--acc-hair);
  border-left: 2px solid color-mix(in srgb, var(--orange) 60%, transparent);
  border-radius: var(--acc-r);
}
.bsh-def dt {
  font-family: var(--font-body); font-size: var(--t-micro); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange);
}
.bsh-def dd {
  margin: 0; font-family: var(--font-body); font-size: var(--t-label);
  line-height: 1.6; color: var(--white); opacity: 0.86;
}
@media (max-width: 620px) {
  .bsh-def { grid-template-columns: 1fr; gap: 5px; }
}

/* ── "Show me" live-jump button ─────────────────────────────────────────────
   Layout only; the bs-sweep bs-sweep--primary classes on the button own the
   border, label colour and the fill-on-hover (the sanctioned hover pattern). */
.bsh-show {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 4px 0 20px; padding: 11px 18px;
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.02em;
}
.bsh-show-i { font-size: 15px; line-height: 1; }
}

/* ── Lab difficulty chips + hint/solution assist panel (Python + C) ── */
@layer legacy.labassist {

.bs-diff-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  line-height: 1;
  align-self: center;
  white-space: nowrap;
}
.bs-diff-chip--beginner     { color: #3aaa5a; background: rgba(58, 170, 90, 0.10); }
.bs-diff-chip--intermediate { color: #e0a33a; background: rgba(224, 163, 58, 0.10); }
.bs-diff-chip--advanced     { color: var(--orange); background: rgba(255, 74, 0, 0.10); }

/* compact variant for lab-list rows */
.bs-diff-chip--sm {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 2px 6px;
}

.bsa-section {
  padding: 16px 22px;
  border-bottom: 1px solid var(--orange-dark);
}
.bsa-section:last-child { border-bottom: none; }

.bsa-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.bsa-intro {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--white-dim);
  margin: 0 0 12px 0;
}

.bsa-hint-list {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bsa-hint {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--ink-rgb, 240,240,240), 0.14);
  border-left: 3px solid var(--orange);
  background: rgba(var(--ink-rgb, 240,240,240), 0.03);
}
.bsa-hint-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1.2;
}
.bsa-hint-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--white);
}

.bsa-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--orange);
  color: var(--white);
  background: transparent;
}
.bsa-reveal-btn:hover { color: var(--accent-on-accent, #fff); }
.bsa-reveal-btn--danger { border-color: #e0a33a; }

.bsa-done {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #3aaa5a;
}

.bsa-solution {
  margin: 0 0 12px 0;
  padding: 14px 16px;
  background: #0d0f11;
  border: 1px solid rgba(var(--ink-rgb, 240,240,240), 0.16);
  overflow: auto;
  max-height: 360px;
}
.bsa-solution code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #cdd6e0;
  white-space: pre;
  tab-size: 4;
}

}

/* ═══════════════════════════════════════════════════════════════════════
   TERMINAL LAB — design upgrade (step stepper, framed input, filled pane)
   Shared across Linux / SQL / Git / Net via the one lab engine.
   ═══════════════════════════════════════════════════════════════════════ */
@layer legacy.termupgrade {

/* The terminal-lab design upgrade (step stepper, framed input bar, bottom-
   anchored pane) lives in css/screens/labs.css @layer screens, which loads
   after this file and so wins the cascade. Only the header-band difficulty
   chip override stays here, since nothing in a later layer competes for it. */

/* Difficulty chip on the orange header band: a solid dark plate so the
   green/amber tiers stay legible against saturated orange. */
.bs-band-meta .bs-diff-chip {
  background: var(--black);
  border-color: currentColor;
  align-self: center;
}
.bs-band-meta .bs-diff-chip--beginner { color: #4cd37a; }
.bs-band-meta .bs-diff-chip--intermediate { color: #f0b84a; }
.bs-band-meta .bs-diff-chip--advanced { color: #ff6a2b; }

}
