/* FLEX — module layers (DOM-rendered specimens) */
.mod-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  color: var(--chalk);
  font-family: var(--sans);
}
.mod-meta,
.mod-foot {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.38);
  white-space: nowrap;
  overflow: hidden;
}
.mod-meta { top: 14px; }
.mod-foot { bottom: 12px; }
.mod-foot span:last-child { text-align: right; }
.mod-layer em { font-family: var(--serif); font-style: italic; }

.card__plate .mod-meta {
  top: 7px;
  left: 9px;
  right: 9px;
  font-size: 5px;
  letter-spacing: 0.07em;
}
.card__plate .mod-foot {
  bottom: 6px;
  left: 9px;
  right: 9px;
  font-size: 5px;
  letter-spacing: 0.07em;
}

/* ── 041 variable wave ───────────────────────────── */
.type-wave {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 26px 30px;
}
.type-wave__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  min-height: 0;
}
.type-wave__word {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--chalk);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  white-space: nowrap;
  will-change: transform;
}
.type-wave__word span {
  display: inline-block;
  font-variation-settings: "wght" 600;
  transition: font-variation-settings 0.04s linear;
  will-change: transform;
  padding-right: 0.02em;
}
.type-wave__aside {
  display: flex;
  align-items: center;
  gap: 0.4em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  color: var(--signal);
  font-family: var(--serif);
  line-height: 1;
  margin-bottom: 0.15em;
  flex: 0 0 auto;
}
.type-wave__aside em { font-size: 1.5em; }

/* ── 042 split-flap (canvas) ─────────────────────── */

/* ── 043 scramble (canvas) ───────────────────────── */

/* ── 044 magnetic paragraph ──────────────────────── */
.magnetic-field {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 6% 38px;
}
.magnetic-field__wrap {
  position: relative;
  z-index: 2;
  width: min(88%, 880px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.magnetic-field__text {
  color: var(--chalk);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.16;
  text-align: center;
  margin: 0;
  font-size: 28px;
}
.mf-word {
  display: inline-block;
  white-space: nowrap;
}
.mf-letter {
  display: inline-block;
  will-change: transform;
  transition: color 0.25s var(--ease);
}
.mf-letter.is-hot { color: var(--signal); }
.magnetic-field__halo {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 201, 183, 0.14), rgba(33, 201, 183, 0.02) 45%, transparent 68%);
  opacity: 0.3;
  pointer-events: none;
  will-change: transform, opacity;
}
.card__plate .magnetic-field { padding: 26px 9% 26px; }
.card__plate .magnetic-field__text { line-height: 1.2; }

/* ── 045 letter physics (canvas) ────────────────── */

/* ── 046 ascii lens (canvas) ────────────────────── */

/* ── 049 type roller ─────────────────────────────── */
.type-roller__stage {
  position: absolute;
  inset: 12% 0 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}
.type-roller__ring {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.type-roller__panel {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  background: rgba(10, 13, 15, 0.66);
  color: rgba(244, 240, 230, 0.9);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  backface-visibility: hidden;
  will-change: transform;
}
.type-roller__panel b {
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.type-roller__panel .n {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: var(--signal);
}
.type-roller__panel:nth-child(3n) b { color: var(--signal); }
.type-roller__floor {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 13%;
  height: 16%;
  border-radius: 50%;
  border: 1px solid rgba(244, 240, 230, 0.12);
  background: radial-gradient(ellipse at center, rgba(33, 201, 183, 0.08), transparent 65%);
  filter: blur(0.4px);
}
.card__plate .type-roller__stage { inset: 18% 0 20%; }
.card__plate .type-roller__panel { gap: 2px; border-color: rgba(244, 240, 230, 0.14); }
.card__plate .type-roller__panel b { font-size: 0.9em; }

/* ── 050 weight grid ─────────────────────────────── */
.weight-grid {
  display: flex;
  flex-direction: column;
  padding: 34px 22px 30px;
}
.weight-grid__grid {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 1px;
  background: rgba(244, 240, 230, 0.12);
  border: 1px solid rgba(244, 240, 230, 0.12);
  margin: 8px 0;
  min-height: 0;
}
.weight-grid__cell {
  background: #0a0c0e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.3s;
}
.weight-grid__cell span {
  display: inline-block;
  line-height: 1;
  color: rgba(244, 240, 230, 0.78);
  font-weight: 500;
  letter-spacing: -0.04em;
  will-change: transform;
  transition: color 0.2s;
}
.card__plate .weight-grid { padding: 22px 10px 20px; }
.card__plate .weight-grid__cell span { font-size: 18px !important; }

/* ── 051 terminal (canvas) ──────────────────────── */

/* ── 052 text mask ───────────────────────────────── */
.mask-type {
  display: flex;
  align-items: center;
  justify-content: center;
}
.mask-type__stage {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mask-type__word,
.mask-type__ghost {
  display: block;
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  white-space: nowrap;
}
.mask-type__word {
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(110deg, #f4f0e6, #e33f1b 40%, #21c9b7 70%, #f4f0e6);
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 100% 100%;
  position: relative;
  z-index: 2;
}
.mask-type__ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translate(12px, 10px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 240, 230, 0.18);
  z-index: 1;
}
.mask-type__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.32;
  z-index: 0;
  pointer-events: none;
}
.card__plate .mask-type__ghost { transform: translate(-50%, -50%) translate(5px, 4px); }

/* ── 053 warp headline ───────────────────────────── */
.warp-type {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070809;
}
.warp-type::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 240, 230, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.7;
}
.warp-type__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.warp-type__main {
  fill: #f4f0e6;
  font-family: var(--sans);
  font-size: 186px;
  font-weight: 600;
  letter-spacing: -0.075em;
}
.warp-type__ghost {
  fill: none;
  stroke: #e33f1b;
  stroke-width: 1.5;
  opacity: 0.55;
  font-family: var(--sans);
  font-size: 186px;
  font-weight: 600;
  letter-spacing: -0.075em;
}
.card__plate .warp-type__main,
.card__plate .warp-type__ghost { font-size: 210px; }

/* ── 054 stacked outline (canvas) ───────────────── */

/* ── 055 kinetic split ───────────────────────────── */
.kinetic-split__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.8;
  color: var(--chalk);
  padding-top: 10px;
}
.kinetic-split__letter {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0 0.005em;
}
.kinetic-split__layer {
  grid-area: 1 / 1;
  display: block;
  will-change: transform;
}
.kinetic-split__layer.r {
  color: #e33f1b;
  mix-blend-mode: screen;
  opacity: 0.78;
}
.kinetic-split__layer.c {
  color: #21c9b7;
  mix-blend-mode: screen;
  opacity: 0.72;
}
.kinetic-split__layer.base {
  position: relative;
  z-index: 2;
  color: var(--chalk);
}

/* ── 074 spring cards ────────────────────────────── */
.spring-cards { display: flex; }
.spring-cards__stage { position: absolute; inset: 0; }
.spring-cards__card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.9em;
  border: 1px solid rgba(244, 240, 230, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  color: var(--chalk);
  transform: translate(-50%, -50%);
  will-change: transform;
  background: #0b0d10;
}
.spring-cards__card b {
  position: relative;
  z-index: 2;
  font-size: 1.3em;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}
.sc-num {
  position: absolute;
  top: 9%;
  left: 9%;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.5);
}
.sc-line {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 24%;
  height: 1px;
  background: rgba(244, 240, 230, 0.16);
}
.spring-cards__card i {
  position: absolute;
  left: 50%;
  top: 34%;
  width: 48%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.7;
}
.sc-0 { background: linear-gradient(155deg, #2a1410, #080a0c 70%); }
.sc-0 i { background: radial-gradient(circle at 40% 35%, #ffd09a, #e33f1b 45%, transparent 72%); }
.sc-1 { background: linear-gradient(155deg, #0d1c1d, #080a0c 70%); }
.sc-1 i { background: repeating-radial-gradient(circle, transparent 0 6px, rgba(33, 201, 183, 0.5) 6px 7px); }
.sc-2 { background: #e9e3d7; color: #131311; }
.sc-2 .sc-num, .sc-2 .sc-line { color: rgba(19, 19, 17, 0.4); background-color: rgba(19, 19, 17, 0.16); }
.sc-2 .sc-num { background: none; }
.sc-2 i { background: conic-gradient(from 30deg, #131311, transparent 30%, #e33f1b 55%, transparent 80%); opacity: 0.25; }
.sc-3 { background: linear-gradient(155deg, #1c160a, #080a0c 70%); }
.sc-3 i { background: radial-gradient(circle at 60% 40%, rgba(242, 165, 31, 0.85), transparent 62%); }
.sc-4 { background: linear-gradient(155deg, #120c1a, #080a0c 70%); }
.sc-4 i { background: repeating-linear-gradient(45deg, rgba(242, 107, 140, 0.4) 0 1px, transparent 1px 9px); }
.sc-5 { background: linear-gradient(155deg, #10160c, #080a0c 70%); }
.sc-5 i { background: radial-gradient(circle at 45% 40%, rgba(168, 214, 44, 0.7), transparent 60%); }
.card__plate .spring-cards__card { border-color: rgba(244, 240, 230, 0.16); }

/* ── 085 magnetic dock ───────────────────────────── */
.mod-layer--interactive { pointer-events: auto; }
.magnetic-dock { background: radial-gradient(ellipse at 50% 62%, rgba(33, 201, 183, 0.07), transparent 60%), #080a0b; }
.magnetic-dock__ghost {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: rgba(244, 240, 230, 0.06);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.magnetic-dock__dock {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  width: 84%;
  max-width: 760px;
  z-index: 1;
}
.magnetic-dock__dock::before {
  content: "";
  position: absolute;
  inset: -80% -18% -35%;
  background: radial-gradient(ellipse at 50% 65%, rgba(227, 63, 27, 0.08), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.magnetic-dock__bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.55%;
  padding: 10px 12px;
  background: rgba(244, 240, 230, 0.07);
  border: 1px solid rgba(244, 240, 230, 0.18);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.magnetic-dock__item {
  position: relative;
  width: 9.2%;
  max-width: 58px;
  min-width: 22px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 240, 230, 0.25);
  border-radius: 9px;
  background: linear-gradient(155deg, #21272a, #0b0e10);
  color: rgba(244, 240, 230, 0.82);
  transform-origin: bottom center;
  will-change: transform;
  transition: border-color 0.2s, color 0.2s;
}
.magnetic-dock__item span {
  font-size: clamp(14px, 1.7vw, 25px);
  line-height: 1;
}
.magnetic-dock__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 50%);
  pointer-events: none;
}
.magnetic-dock__item.is-near {
  border-color: rgba(227, 63, 27, 0.75);
  color: #fff4dc;
  box-shadow: 0 0 22px rgba(227, 63, 27, 0.22);
}
.md-0 { background: linear-gradient(150deg, #41160c, #0b0e10 70%); }
.md-1 { background: linear-gradient(150deg, #0e3333, #0b0e10 70%); }
.md-2 { background: linear-gradient(150deg, #22252a, #0b0e10 70%); }
.md-3 { background: linear-gradient(150deg, #2e2412, #0b0e10 70%); }
.md-4 { background: linear-gradient(150deg, #0b2a2a, #0b0e10 70%); }
.md-5 { background: linear-gradient(150deg, #2b1022, #0b0e10 70%); }
.md-6 { background: linear-gradient(150deg, #17251a, #0b0e10 70%); }
.md-7 { background: linear-gradient(150deg, #101a32, #0b0e10 70%); }
.magnetic-dock__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  padding: 4px 8px;
  background: rgba(7, 8, 9, 0.9);
  border: 1px solid rgba(244, 240, 230, 0.2);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.8);
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.magnetic-dock__floor {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -12px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(5px);
}
.card__plate .magnetic-dock__dock { width: 90%; bottom: 14%; }
.card__plate .magnetic-dock__bar { padding: 5px 6px; gap: 2px; }
.card__plate .magnetic-dock__item { border-radius: 5px; }

/* ── 086 elastic slider ──────────────────────────── */
.elastic-slider {
  position: absolute;
  inset: 0;
  padding: 8% 9% 9%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.elastic-slider__read {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 3%;
}
.es-label {
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 230, 0.4);
}
.es-value {
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 84px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--chalk);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.es-value b { font-weight: 400; font-variant-numeric: tabular-nums; }
.es-value i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.18em;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.elastic-slider__orb {
  position: absolute;
  right: 11%;
  top: 26%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.65;
  transition: background 0.2s;
  pointer-events: none;
}
.elastic-slider__track {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 31%;
  height: 34px;
  border: 1px solid rgba(244, 240, 230, 0.22);
  background: rgba(244, 240, 230, 0.04);
  z-index: 2;
}
.es-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(33, 201, 183, 0.35), rgba(227, 63, 27, 0.65));
  pointer-events: none;
}
.es-ticks {
  position: absolute;
  inset: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.es-ticks span {
  width: 1px;
  background: rgba(244, 240, 230, 0.2);
  align-self: flex-end;
}
.es-ticks span.is-on { background: rgba(244, 240, 230, 0.75); }
.es-handle {
  position: absolute;
  top: 50%;
  width: 15px;
  height: 48px;
  margin-left: -7.5px;
  transform: translateY(-50%);
  background: var(--chalk);
  border: 1px solid rgba(7, 8, 9, 0.4);
  box-shadow: 0 0 20px rgba(244, 240, 230, 0.25);
  z-index: 3;
  pointer-events: none;
}
.es-handle i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 12px;
  margin: -6px 0 0 -1.5px;
  background: rgba(7, 8, 9, 0.5);
}
.elastic-slider__scale {
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 23%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 230, 0.3);
}
.card__plate .es-value { font-size: 28px; }
.card__plate .elastic-slider__track { bottom: 30%; height: 24px; }
.card__plate .es-handle { height: 34px; width: 10px; margin-left: -5px; }
.card__plate .elastic-slider__scale { bottom: 21%; }

/* ── 090 command menu ────────────────────────────── */
.command-demo { background: radial-gradient(circle at 50% 45%, rgba(33, 201, 183, 0.05), transparent 58%), #080a0b; }
.command-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 240, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.45;
  pointer-events: none;
}
.command-demo::after {
  content: "⌘K";
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(180px, 28vw, 460px);
  line-height: 1;
  color: rgba(244, 240, 230, 0.032);
  letter-spacing: -0.06em;
  pointer-events: none;
  z-index: 0;
}
.command-demo__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(88%, 560px);
  background: #f2eee5;
  color: #141311;
  border: 1px solid #141311;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  z-index: 3;
}
.command-demo__titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #cfc7b8;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #746e61;
}
.command-demo__titlebar span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.command-demo__titlebar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
}
.command-demo__esc {
  border: 1px solid #cfc7b8;
  padding: 2px 5px;
}
.command-demo__input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #cfc7b8;
  cursor: text;
}
.command-demo__input span {
  color: #746e61;
  font-size: 15px;
}
.command-demo__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #141311;
}
.command-demo__input input::placeholder { color: #8c8678; }
.command-demo__results {
  max-height: 190px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.command-demo__item {
  display: grid;
  grid-template-columns: 26px 1fr auto 20px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px 14px;
  border-bottom: 1px solid #ddd5c6;
  text-align: left;
  color: #141311;
  transition: background 0.15s, color 0.15s;
}
.command-demo__item:last-child { border-bottom: 0; }
.command-demo__item .ci {
  font-size: 12px;
  color: var(--signal);
}
.command-demo__item .cn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-demo__item .cm {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c8678;
}
.command-demo__item .cg {
  font-family: var(--mono);
  font-size: 9px;
  color: #8c8678;
  justify-self: end;
}
.command-demo__item.is-active,
.command-demo__item:hover {
  background: #141311;
  color: #f2eee5;
}
.command-demo__item.is-active .cm,
.command-demo__item:hover .cm,
.command-demo__item.is-active .cg,
.command-demo__item:hover .cg,
.command-demo__item.is-active .ci,
.command-demo__item:hover .ci { color: #d9a58f; }
.command-demo__empty {
  padding: 24px 14px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c8678;
}
.command-demo__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #cfc7b8;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c8678;
}
.command-demo__footer kbd {
  border-color: #b6ad9b;
  color: #746e61;
  height: 14px;
  min-width: 14px;
  font-size: 7px;
}
.command-demo__status {
  color: #746e61;
  transition: color 0.2s;
}
.command-demo__status.is-live { color: var(--signal); }
.card__plate .command-demo__panel { width: 92%; }
.card__plate .command-demo__results { max-height: 90px; }
.card__plate .command-demo__item { padding: 5px 8px; }
.card__plate .command-demo__input { height: 34px; }
.card__plate .command-demo__input input { font-size: 12px; }
.card__plate .command-demo__titlebar { padding: 5px 8px; font-size: 5px; }
.card__plate .command-demo__footer { padding: 5px 8px; font-size: 5px; }
.card__plate .command-demo__item .cn { font-size: 9px; }
.card__plate .command-demo__item .cm,
.card__plate .command-demo__item .cg { display: none; }

/* ── 091 toggle lab ──────────────────────────────── */
.toggle-lab { background: radial-gradient(circle at 50% 48%, rgba(227, 63, 27, 0.045), transparent 58%), #080a0b; }
.toggle-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(244, 240, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 230, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.4;
  pointer-events: none;
}
.toggle-lab::after {
  content: "SYS";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(150px, 24vw, 380px);
  line-height: 1;
  color: rgba(244, 240, 230, 0.028);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
}
.toggle-lab__panel {
  z-index: 2;
}
.toggle-lab__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(86%, 560px);
  border: 1px solid rgba(244, 240, 230, 0.2);
  background: rgba(10, 13, 15, 0.92);
  padding: 12px 14px;
}
.toggle-lab__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(244, 240, 230, 0.14);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.45);
}
.toggle-lab__head span:nth-child(2) { flex: 1; }
.tl-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(33, 201, 183, 0.7);
}
#tlCount { color: var(--signal); }
#tlCount.is-zero { color: rgba(244, 240, 230, 0.35); }
.tl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 240, 230, 0.08);
}
.tl-row > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tl-row b {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(244, 240, 230, 0.85);
}
.tl-row > div span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.04em;
  color: rgba(244, 240, 230, 0.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 25px;
  border: 1px solid rgba(244, 240, 230, 0.25);
  background: rgba(244, 240, 230, 0.05);
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.tl-switch i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 17px;
  height: 17px;
  background: rgba(244, 240, 230, 0.5);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.tl-switch .tl-on,
.tl-switch .tl-off {
  position: absolute;
  top: 8px;
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.06em;
  color: rgba(244, 240, 230, 0.35);
}
.tl-switch .tl-on { left: 6px; opacity: 0; }
.tl-switch .tl-off { right: 5px; }
.tl-switch.is-on {
  background: rgba(227, 63, 27, 0.2);
  border-color: rgba(227, 63, 27, 0.7);
}
.tl-switch.is-on i {
  transform: translateX(23px);
  background: var(--signal);
  box-shadow: 0 0 10px rgba(227, 63, 27, 0.5);
}
.tl-switch.is-on .tl-on { opacity: 1; }
.tl-switch.is-on .tl-off { opacity: 0; }
.toggle-lab__mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.1em;
  color: rgba(244, 240, 230, 0.35);
}
.tl-seg {
  display: flex;
  border: 1px solid rgba(244, 240, 230, 0.2);
}
.tl-seg button {
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: rgba(244, 240, 230, 0.4);
  transition: background 0.2s, color 0.2s;
}
.tl-seg button + button { border-left: 1px solid rgba(244, 240, 230, 0.15); }
.tl-seg button.is-on { background: rgba(244, 240, 230, 0.9); color: #0a0c0e; }
.card__plate .toggle-lab__panel { width: 92%; padding: 7px 8px; }
.card__plate .tl-row { padding: 3px 0; }
.card__plate .tl-switch { width: 36px; height: 20px; }
.card__plate .tl-switch i { width: 13px; height: 13px; }
.card__plate .tl-switch.is-on i { transform: translateX(15px); }
.card__plate .tl-switch .tl-on,
.card__plate .tl-switch .tl-off { display: none; }
.card__plate .tl-row b { font-size: 8px; }
.card__plate .tl-row > div span { display: none; }
.card__plate .toggle-lab__mode { padding-top: 5px; }
.card__plate .tl-seg button { padding: 3px 5px; font-size: 5px; }



@media (max-width: 760px) {
  .mod-meta, .mod-foot { font-size: 6px; left: 12px; right: 12px; }
  .mod-meta { top: 10px; }
  .mod-foot { bottom: 9px; }
  .type-wave { padding: 28px 14px 24px; }
  .magnetic-field { padding: 36px 5% 32px; }
  .weight-grid { padding: 28px 12px 24px; }
  .type-roller__stage { inset: 16% 0 18%; }
  .warp-type__main, .warp-type__ghost { font-size: 200px; }
}
