/* skill-files-too-long.css — extracted from inline <style> blocks. Generated by scripts/h1-extract.mjs */
body {
        min-height: 100vh;
      }

      .article-wrap {
        position: relative;
        z-index: 1;
        max-width: 720px;
        margin: 0 auto;
        padding: 80px 24px 60px;
      }

      .article-meta {
        margin-bottom: 32px;
      }

      .article-meta .tag {
        display: inline-block;
        background: var(--green);
        color: #000;
        font-weight: 700;
        font-size: 11px;
        padding: 4px 14px;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 16px;
      }

      .article-meta time {
        display: block;
        font-size: 12px;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
      }

      .article-wrap h1 {
        font-size: 26px;
        line-height: 1.3;
        color: var(--green);
        margin-bottom: 32px;
      }

      .article-wrap h2 {
        font-size: 18px;
        color: var(--green);
        margin-top: 40px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border);
      }

      .article-wrap h3 {
        font-size: 15px;
        color: var(--green-dim);
        margin-top: 28px;
        margin-bottom: 12px;
      }

      .article-wrap p {
        font-size: 14px;
        color: var(--white);
        line-height: 1.8;
        margin-bottom: 16px;
      }

      .article-wrap ul,
      .article-wrap ol {
        font-size: 14px;
        color: var(--white);
        line-height: 1.8;
        margin-bottom: 16px;
        padding-left: 24px;
      }

      .article-wrap li {
        margin-bottom: 8px;
      }

      .article-wrap code {
        background: var(--bg-terminal);
        border: 1px solid var(--border);
        padding: 2px 6px;
        font-size: 13px;
        color: var(--green);
      }

      .article-wrap pre {
        background: var(--bg-terminal);
        border: 1px solid var(--border);
        padding: 20px;
        overflow-x: auto;
        margin-bottom: 20px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--green);
      }

      .article-wrap pre code {
        background: none;
        border: none;
        padding: 0;
      }

      .article-wrap strong {
        color: var(--green);
        font-weight: 600;
      }

      .cta-box {
        border: 2px solid var(--green);
        background: var(--bg-card);
        padding: 32px 28px;
        margin: 40px 0;
        text-align: center;
        box-shadow: 0 0 40px var(--green-glow);
      }

      .cta-box h3 {
        color: var(--green);
        margin-top: 0;
        margin-bottom: 12px;
      }

      .cta-box p {
        color: var(--text-dim);
        font-size: 13px;
        margin-bottom: 20px;
      }

      .cta-btn {
        display: inline-block;
        background: var(--green);
        color: #000;
        font-weight: 700;
        font-size: 13px;
        padding: 12px 28px;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 2px;
        transition: background 0.2s;
      }

      .cta-btn:hover {
        background: #00cc33;
      }

      .cta-btn-secondary {
        display: inline-block;
        color: var(--green-dim);
        font-size: 12px;
        text-decoration: none;
        margin-left: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .cta-btn-secondary:hover {
        color: var(--green);
      }

      .nav-links {
        margin-top: 48px;
        display: flex;
        justify-content: space-between;
        font-size: 12px;
      }

      .nav-links a {
        text-shadow: 0 0 8px var(--green-glow);
        color: var(--green);
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .nav-links a:hover {
        color: var(--green);
      }

      .tldr {
        border-left: 3px solid var(--green);
        background: var(--bg-terminal);
        padding: 16px 20px;
        margin-bottom: 32px;
        font-size: 13px;
        line-height: 1.6;
        color: var(--white);
      }

      .tldr .tldr-label {
        color: var(--green);
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 2px;
      }

      .info-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        font-size: 13px;
      }

      .info-table th,
      .info-table td {
        border: 1px solid var(--border);
        padding: 10px 14px;
        text-align: left;
      }

      .info-table th {
        background: var(--bg-terminal);
        color: var(--green);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: 1px;
      }

      .info-table td {
        color: var(--white);
      }

      .td-pass {
        color: var(--green);
      }

      .td-fail {
        color: #ff3333;
      }

      .td-warn {
        color: #ffaa00;
      }

      .key-point { border-left: 3px solid var(--green); padding: 12px 20px; margin: 16px 0; background: rgba(0, 255, 65, 0.03); }
      .key-point p { margin: 0; font-size: 13px; }

      .visual-flow { border: 1px solid var(--border); background: var(--bg-terminal); padding: 24px; margin: 24px 0; text-align: center; font-size: 14px; line-height: 2; }
      .visual-flow .arrow { color: var(--green); font-size: 18px; }

      .danger-zone { border: 1px solid #ff3333; background: rgba(255, 68, 68, 0.05); padding: 16px 20px; margin: 16px 0; font-size: 13px; }
      .danger-zone strong { color: #ff3333; }

      .fix-steps { counter-reset: step; list-style: none; padding: 0; }
      .fix-steps li { counter-increment: step; padding: 12px 16px 12px 52px; border: 1px solid var(--border); margin-bottom: 8px; position: relative; font-size: 13px; color: var(--white); }
      .fix-steps li::before { content: counter(step); position: absolute; left: 16px; top: 12px; background: var(--green); color: #000; font-weight: 700; font-size: 11px; width: 24px; height: 24px; line-height: 24px; text-align: center; }
    
/* AVL-LIB-START */
/* ============================================================
   ANIMATED VISUAL LIBRARY (.avl-*)
   Lifted from blog/the-orchestra-that-wasnt.html and namespaced.
   Every animation is wrapped in a prefers-reduced-motion override
   at the bottom of this file so users with reduced-motion enabled
   see a static representation.
   ============================================================ */

/* --- Scene wrapper --- */
.avl-scene { border: 1px solid var(--border); background: var(--bg-terminal); padding: 24px; margin: 32px 0; position: relative; overflow: hidden; }
.avl-scene::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(0,255,65,0.05), transparent 70%); pointer-events: none; }
.avl-scene svg { width: 100%; height: auto; display: block; position: relative; z-index: 1; }
.avl-caption { text-align: center; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; }
.avl-scene .avl-caption { margin-top: 14px; }
.avl-term-caption { margin: -12px 0 24px; }
.avl-scan-cap     { margin: -16px 0 24px; }

/* --- Keyframes --- */
@keyframes avlDashflow { to { stroke-dashoffset: -20; } }
@keyframes avlPulseNode { 0%, 100% { filter: drop-shadow(0 0 6px #00FF41); } 50% { filter: drop-shadow(0 0 14px #00FF41); } }
@keyframes avlPulseRed { 0%, 100% { filter: drop-shadow(0 0 6px #ff3333); } 50% { filter: drop-shadow(0 0 14px #ff3333); } }
@keyframes avlFadeBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes avlScan { 0% { transform: translateY(-10%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(110%); opacity: 0; } }
@keyframes avlCountFill { from { width: 0%; } to { width: var(--fill, 100%); } }
/* Static-first sweep: text is fully readable in stills (line is always 100% wide).
   The animation runs ONCE on load, sweeping a green highlight across the line. */
@keyframes avlTypeLine { from { background-position: -100% 0; } to { background-position: 200% 0; } }
@keyframes avlStamp { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 60% { transform: rotate(-12deg) scale(0.92); opacity: 1; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
@keyframes avlOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes avlOrbitRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes avlRingPulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.45); opacity: 0; } }
@keyframes avlOdoTick { 0% { transform: translateY(40px); opacity: 0; } 60% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes avlCursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- Pipeline / nodes --- */
.avl-flow-line { stroke: #00FF41; stroke-width: 2; stroke-dasharray: 6 4; animation: avlDashflow 1.2s linear infinite; fill: none; }
.avl-flow-line-dim { stroke: #00aa33; stroke-width: 1.5; stroke-dasharray: 4 6; animation: avlDashflow 2s linear infinite; fill: none; opacity: 0.55; }
.avl-flow-fail { stroke: #ff4444; stroke-width: 1.7; stroke-dasharray: 4 4; animation: avlDashflow 1.4s linear infinite; fill: none; opacity: 0.78; }
[class*="avl-seq"] { animation: avlPulseNode 2.4s ease-in-out infinite; }
.avl-seq2 { animation-delay: 0.35s; }
.avl-seq3 { animation-delay: 0.7s; }
.avl-seq4 { animation-delay: 1.05s; }
.avl-seq5 { animation-delay: 1.4s; }
.avl-seq6 { animation-delay: 1.75s; }
.avl-seq7 { animation-delay: 2.1s; }
.avl-seq8 { animation-delay: 2.45s; }
.avl-blink { animation: avlFadeBlink 1.8s ease-in-out infinite; }

/* --- Stamps --- */
.avl-fail-stamp { fill: none; stroke: #ff3333; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }
.avl-pass-stamp { fill: none; stroke: #00FF41; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }
.avl-warn-stamp { fill: none; stroke: #ffaa00; stroke-width: 3.2; font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 38px; letter-spacing: 4px; transform-origin: center; animation: avlStamp 1.4s cubic-bezier(.2,.8,.2,1) 0.5s backwards; }

/* --- Animated terminal panel (CSS-only typed lines) --- */
.avl-term { border: 1px solid var(--border); background: #000; margin: 28px 0; box-shadow: 0 0 30px rgba(0,255,65,0.08); }
.avl-term-bar { display: flex; align-items: center; gap: 6px; background: linear-gradient(180deg, rgba(0,255,65,0.18), rgba(0,255,65,0.04)); border-bottom: 1px solid var(--border); padding: 8px 12px; }
.avl-term-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #00FF41; box-shadow: 0 0 6px #00FF41; }
.avl-term-bar .dot.r { background: #ff5555; box-shadow: 0 0 6px #ff5555; }
.avl-term-bar .dot.y { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
.avl-term-bar .title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #c0ffc0; margin-left: 12px; letter-spacing: 1px; }
.avl-term-body { padding: 16px 18px 18px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.55; }
.avl-term-row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.avl-term-row .pmt { color: #00FF41; font-weight: 700; flex-shrink: 0; }
.avl-term-row .pmt.usr { color: #00FF41; }
.avl-term-row .pmt.sys { color: #888; }
.avl-term-row .pmt.err { color: #ff5555; }
.avl-term-row .pmt.ok  { color: #00FF41; }
.avl-term-row .ln { color: #c8ffd0; white-space: nowrap; overflow: hidden; border-right: 2px solid #00FF41; max-width: 100%; width: 100%; background-image: linear-gradient(90deg, transparent 0%, rgba(0,255,65,0) 30%, rgba(0,255,65,0.55) 50%, rgba(0,255,65,0) 70%, transparent 100%); background-size: 200% 100%; background-position: -100% 0; background-repeat: no-repeat; animation: avlTypeLine 1.4s ease-out; }
.avl-term-row .ln.muted { color: #7a9d7a; border-right-color: #7a9d7a; }
.avl-term-row .ln.err { color: #ff8c8c; border-right-color: #ff5555; }
.avl-term-row .ln.ok  { color: #b9ffc4; border-right-color: #00FF41; }
.avl-term-row.t1 .ln { animation-delay: 0.1s; }
.avl-term-row.t2 .ln { animation-delay: 1.7s; }
.avl-term-row.t3 .ln { animation-delay: 3.3s; }
.avl-term-row.t4 .ln { animation-delay: 4.9s; }
.avl-term-row.t5 .ln { animation-delay: 6.5s; }
.avl-term-row.t6 .ln { animation-delay: 8.1s; }
.avl-term-cursor { display: inline-block; width: 8px; height: 14px; background: #00FF41; vertical-align: middle; margin-left: 4px; animation: avlCursor 1s step-end infinite; }

/* --- Bar gauges (count-fill) --- */
.avl-gauge { border: 1px solid var(--border); background: var(--bg-card); padding: 24px; margin: 28px 0; }
.avl-gauge h4 { font-size: 12px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 16px; }
.avl-gauge-row { display: grid; grid-template-columns: 140px 1fr 80px; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; }
.avl-gauge-label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.avl-gauge-track { background: #0a0a0a; border: 1px solid var(--border); height: 22px; position: relative; overflow: hidden; }
.avl-gauge-bar { height: 100%; background: linear-gradient(90deg, #003311, #00FF41); position: relative; animation: avlCountFill 2.2s cubic-bezier(.2,.8,.2,1) forwards; box-shadow: inset 0 0 10px rgba(0,255,65,0.5); width: var(--fill, 50%); }
.avl-gauge-bar.bad { background: linear-gradient(90deg, #331111, #ff4444); box-shadow: inset 0 0 10px rgba(255,68,68,0.5); }
.avl-gauge-bar.warn { background: linear-gradient(90deg, #332200, #ffaa00); box-shadow: inset 0 0 10px rgba(255,170,0,0.5); }
.avl-gauge-bar.dim { background: linear-gradient(90deg, #0a1f0a, #2a8a3a); box-shadow: inset 0 0 8px rgba(0,255,65,0.25); opacity: 0.85; }
.avl-gauge-bar::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,0.22) 6px 7px); }
.avl-gauge-count { color: var(--green); font-weight: 700; text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.avl-gauge-count.bad { color: #ff5555; }
.avl-gauge-count.warn { color: #ffbb33; }

/* --- Constellation / orbit --- */
.avl-const-link { stroke: #00FF41; stroke-width: 1.2; fill: none; stroke-dasharray: 4 4; animation: avlDashflow 1.6s linear infinite; opacity: 0.7; }
.avl-orbit-ring { fill: none; stroke: #00FF41; stroke-width: 1; stroke-dasharray: 2 6; opacity: 0.32; }

/* --- Contrast cards (hover-reveal) --- */
.avl-contrast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.avl-contrast-card { border: 1px solid var(--border); background: var(--bg-terminal); padding: 0; overflow: hidden; position: relative; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.avl-contrast-card:hover { transform: translateY(-3px); box-shadow: 0 0 28px rgba(0,255,65,0.18); border-color: #00FF41; }
.avl-contrast-card.bad:hover { box-shadow: 0 0 28px rgba(255,51,51,0.18); border-color: #ff3333; }
.avl-contrast-card h5 { margin: 0; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.avl-contrast-card.bad h5 { color: #ff3333; background: rgba(255,51,51,0.08); }
.avl-contrast-card.good h5 { color: var(--green); background: rgba(0,255,65,0.08); }
.avl-contrast-card .body { padding: 14px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); min-height: 90px; }
.avl-contrast-card .reveal { padding: 0 14px; font-size: 11px; color: var(--green); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease; border-top: 1px dashed transparent; }
.avl-contrast-card.bad .reveal { color: #ffb0b0; }
.avl-contrast-card:hover .reveal { max-height: 160px; opacity: 1; padding: 12px 14px 14px; border-top-color: var(--border); }

/* --- Scan-line monitor --- */
.avl-scan-frame { position: relative; border: 1px solid var(--border); background: #000; padding: 18px; margin: 28px 0; overflow: hidden; }
.avl-scan-frame::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 32px; background: linear-gradient(180deg, rgba(0,255,65,0.55), rgba(0,255,65,0)); animation: avlScan 3.2s linear infinite; pointer-events: none; z-index: 2; }
.avl-scan-frame::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,255,65,0.04) 2px 3px); pointer-events: none; }
.avl-scan-frame pre { margin: 0; color: #c8ffd0; font-family: 'JetBrains Mono', monospace; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; position: relative; z-index: 1; }
.avl-scan-frame pre .lno { color: #356a35; user-select: none; padding-right: 10px; }
.avl-scan-frame pre .kw { color: #00ff41; }
.avl-scan-frame pre .str { color: #ffd07a; }
.avl-scan-frame pre .com { color: #6a8a6a; }
.avl-scan-frame .avl-scan-caption { font-size: 10px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.avl-scan-frame .avl-scan-caption .live::before { content: '\25CF'; color: #00FF41; margin-right: 6px; animation: avlFadeBlink 1.8s ease-in-out infinite; }

/* --- Sequence rings (pulsing concentric rings around a label) --- */
.avl-rings { position: relative; width: 240px; height: 240px; margin: 8px auto; }
.avl-rings .ring { position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; border: 1.5px solid #00FF41; opacity: 0; animation: avlRingPulse 3.3s ease-out infinite; }
.avl-rings .ring.r2 { animation-delay: 1.1s; border-color: #00ff41; }
.avl-rings .ring.r3 { animation-delay: 2.2s; border-color: #00aa33; }
.avl-rings .satellite { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #001a08; border: 1.4px solid #00FF41; box-shadow: 0 0 8px rgba(0,255,65,0.6); display: flex; align-items: center; justify-content: center; color: #00FF41; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; }
.avl-rings .core { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 2px solid #00FF41; background: radial-gradient(circle, rgba(0,255,65,0.22), rgba(0,0,0,0.7) 75%); display: flex; align-items: center; justify-content: center; flex-direction: column; color: #00FF41; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 8px; box-shadow: 0 0 28px rgba(0,255,65,0.18); }
.avl-rings .core .num { font-size: 26px; line-height: 1; }
.avl-rings .core .label { font-size: 9px; color: #b8ffc4; opacity: 0.85; margin-top: 4px; letter-spacing: 1.5px; }

/* --- Odometer counter --- */
.avl-odo { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 8px; font-family: 'JetBrains Mono', monospace; flex-wrap: wrap; }
.avl-odo .digit { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 84px; padding: 0 6px; border: 1px solid var(--border); background: linear-gradient(180deg, #001a08, #000); color: #00FF41; font-size: 50px; font-weight: 800; box-shadow: inset 0 0 24px rgba(0,255,65,0.18), 0 0 18px rgba(0,255,65,0.06); animation: avlOdoTick 1.2s cubic-bezier(.2,.8,.2,1) backwards; position: relative; overflow: hidden; }
.avl-odo .digit::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.5); }
.avl-odo .digit.d2 { animation-delay: 0.22s; }
.avl-odo .digit.d3 { animation-delay: 0.42s; }
.avl-odo .digit.d4 { animation-delay: 0.62s; }
.avl-odo .label { color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; margin-left: 12px; }

/* --- Reduced-motion override (mandatory accessibility gate) --- */
@media (prefers-reduced-motion: reduce) {
  .avl-flow-line, .avl-flow-line-dim, .avl-flow-fail, .avl-const-link,
  .avl-blink,
  [class*="avl-seq"],
  .avl-pass-stamp, .avl-fail-stamp, .avl-warn-stamp,
  .avl-rings .ring,
  .avl-term-row .ln,
  .avl-term-cursor,
  .avl-odo .digit { animation: none !important; }
  .avl-scan-frame::before { animation: none !important; opacity: 0 !important; }
  .avl-term-row .ln { width: 100% !important; border-right: 0 !important; background-image: none !important; }
  .avl-gauge-bar { animation: none !important; width: var(--fill, 50%) !important; }
  .avl-orbiter, .avl-orbiter-grp { animation: none !important; }
}

@media (max-width: 680px) {
  .avl-contrast-grid { grid-template-columns: 1fr; }
  .avl-gauge-row { grid-template-columns: 100px 1fr 60px; gap: 8px; }
  .avl-odo .digit { min-width: 38px; height: 60px; font-size: 34px; }
  .avl-rings { width: 200px; height: 200px; }
  .avl-rings .ring { width: 180px; height: 180px; margin: -90px 0 0 -90px; }
  .avl-term-body { font-size: 11px; padding: 12px 12px 14px; }
}
/* AVL-LIB-END */
/* ============================================================
   S200 — skill-files-too-long, post-specific animations
   Pure SVG + CSS + vanilla JS interactive paradigm.
   Namespaced .s200-*. No CSS variable redeclarations.
   Reduced-motion overrides at the bottom of this block.
   ============================================================ */
.s200-fig { border: 1px solid var(--border); background: var(--bg-card); padding: 18px 16px 14px; margin: 28px 0; position: relative; overflow: hidden; }
.s200-fig::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(0,255,65,0.05), transparent 70%); pointer-events: none; z-index: 0; }
.s200-fig > * { position: relative; z-index: 1; }
.s200-fig svg { display: block; width: 100%; height: auto; max-width: 100%; }
.s200-cap { text-align: center; font-size: 10px; color: var(--green); text-transform: uppercase; letter-spacing: 2px; margin: 12px 4px 2px; line-height: 1.5; }
.s200-fig-title { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s200-fig-title b { color: var(--green); }
.s200-fig-title .live::before { content: '\25CF'; color: #00FF41; margin-right: 6px; }
.s200-mono { font-family: 'JetBrains Mono', monospace; }

/* ---- Animation A: 200-line ruler ---- */
.s200-ruler-bar { cursor: pointer; transition: filter 0.18s ease; outline: none; }
.s200-ruler-bar:hover, .s200-ruler-bar:focus, .s200-ruler-bar.s200-active { filter: brightness(1.18); }
.s200-ruler-bar text.s200-name { fill: var(--green); font: 600 11px 'JetBrains Mono', monospace; }
.s200-ruler-bar text.s200-count { fill: #6a8a6a; font: 700 10px 'JetBrains Mono', monospace; }
.s200-ruler-bar.s200-fail text.s200-count { fill: #ff5555; }
.s200-ruler-bar.s200-warn text.s200-count { fill: #ffaa00; }
.s200-ruler-bar.s200-pass text.s200-count { fill: #00ff41; }
.s200-ruler-bar rect.s200-bar-bg { fill: #050a05; stroke: #1a3a1a; stroke-width: 1; }
.s200-ruler-bar rect.s200-bar-pass-zone { fill: rgba(0,255,65,0.18); }
.s200-ruler-bar rect.s200-bar-trunc-zone { fill: rgba(120,120,120,0.18); }
.s200-ruler-bar.s200-active rect.s200-bar-pass-zone { fill: rgba(0,255,65,0.32); }
.s200-ruler-bar text.s200-trunc-tag { fill: #777; font: 700 8px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.s200-ruler-bar .s200-pseudo line { stroke: #00ff41; opacity: 0.55; stroke-width: 1; }
.s200-ruler-bar .s200-pseudo line.t { stroke: #555; opacity: 0.32; stroke-dasharray: 1 2; }
.s200-ruler-line { stroke: #ffaa00; stroke-width: 2; stroke-dasharray: 5 4; }
.s200-ruler-handle-grp { cursor: ew-resize; outline: none; }
.s200-ruler-handle-grp rect.s200-handle { fill: #ffaa00; }
.s200-ruler-handle-grp:focus rect.s200-handle { stroke: #fff; stroke-width: 1.5; }
.s200-ruler-handle-grp text { fill: #000; font: 700 9px 'JetBrains Mono', monospace; }
.s200-ruler-handle-cap { fill: #ffaa00; font: 700 9px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.s200-ruler-detail { display: none; padding: 12px 14px; border: 1px solid var(--border); border-top: 1px solid var(--green-muted); background: var(--bg-terminal); font: 11.5px 'JetBrains Mono', monospace; color: var(--text-dim); line-height: 1.6; margin-top: 12px; }
.s200-ruler-detail.s200-show { display: block; }
.s200-ruler-detail b { color: var(--green); }
.s200-ruler-detail .s200-rule { display: block; padding: 1px 0; }
.s200-ruler-detail .s200-rule.s200-skip { color: #ff8c8c; opacity: 0.85; }
.s200-ruler-detail .s200-rule.s200-skip::before { content: '[ skipped @ '; color: #6a3a3a; }
.s200-ruler-detail .s200-rule.s200-skip::after { content: ' ]'; color: #6a3a3a; }
.s200-ruler-detail .s200-close { float: right; cursor: pointer; color: var(--green-dim); border: 1px solid var(--border); padding: 1px 8px; font-size: 10px; background: transparent; }
.s200-ruler-detail .s200-close:hover { color: var(--green); border-color: var(--green-dim); }

/* ---- Animation B: split-controller ---- */
.s200-split-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.s200-split-btn { background: var(--green); color: #000; font: 700 11px 'JetBrains Mono', monospace; letter-spacing: 2px; text-transform: uppercase; padding: 7px 16px; border: 0; cursor: pointer; }
.s200-split-btn:hover { background: #00cc33; }
.s200-split-btn:disabled { opacity: 0.45; cursor: default; }
.s200-split-btn.alt { background: transparent; color: var(--green); border: 1px solid var(--green-dim); }
.s200-split-btn.alt:hover { background: rgba(0,255,65,0.08); }
.s200-split-counter { margin-left: auto; font: 11px 'JetBrains Mono', monospace; color: var(--text-dim); }
.s200-split-counter b { color: var(--green); font-weight: 700; }
.s200-split-counter b.delta { color: #ffaa00; }
.s200-block { transition: transform 0.95s cubic-bezier(.6,.05,.36,1), opacity 0.5s ease; transform-box: fill-box; transform-origin: 50% 50%; }
.s200-pkg { transform-box: fill-box; transform-origin: 50% 50%; }
.s200-block rect.s200-bf { fill: var(--bg-terminal); stroke: #00aa33; stroke-width: 1.4; transition: stroke 0.4s ease; }
.s200-block.s200-mono-block rect.s200-bf { fill: rgba(255,68,68,0.06); stroke: #ff8c8c; stroke-width: 1.6; }
.s200-block.s200-shrunk rect.s200-bf { stroke: #00ff41; }
.s200-block text.s200-bn { fill: var(--green); font: 700 10px 'JetBrains Mono', monospace; }
.s200-block.s200-mono-block text.s200-bn { fill: #ff8c8c; }
.s200-block text.s200-bc { fill: var(--text-dim); font: 9.5px 'JetBrains Mono', monospace; }
.s200-block.s200-mono-block text.s200-bc { fill: #ff8c8c; }
.s200-block.s200-shrunk text.s200-bc { fill: #00ff41; }
.s200-block .s200-tick { opacity: 0; transition: opacity 0.4s ease 0.2s; }
.s200-block.s200-shrunk .s200-tick { opacity: 1; }
.s200-block .s200-redux-line { stroke: #ff8c8c; stroke-width: 1.4; opacity: 0; transition: opacity 0.4s ease; }
.s200-block.s200-redux-on .s200-redux-line { opacity: 0.8; }
.s200-arrow line { stroke: #00aa33; stroke-width: 1.4; fill: none; stroke-dasharray: 4 4; opacity: 0; transition: opacity 0.5s ease 0.6s; }
.s200-arrow polygon { fill: #00aa33; opacity: 0; transition: opacity 0.5s ease 0.6s; }
.s200-arrow.s200-show line { opacity: 0.85; animation: s200-dashflow 1.6s linear infinite; }
.s200-arrow.s200-show polygon { opacity: 0.9; }
.s200-arrow text { fill: var(--text-dim); font: 8px 'JetBrains Mono', monospace; opacity: 0; transition: opacity 0.4s ease 0.9s; }
.s200-arrow.s200-show text { opacity: 1; }
.s200-redux-tag { fill: #ff8c8c; font: 700 9px 'JetBrains Mono', monospace; opacity: 0; transition: opacity 0.5s ease 0.4s; }
.s200-redux-tag.s200-show { opacity: 1; }
@keyframes s200-dashflow { to { stroke-dashoffset: -32; } }

/* ---- Animation C: textbook chapter flip ---- */
.s200-books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.s200-book-card { border: 1px solid var(--border); background: var(--bg-terminal); padding: 12px 12px 8px; }
.s200-book-card.bad { border-color: rgba(255,140,140,0.4); }
.s200-book-card.good { border-color: rgba(0,255,65,0.4); }
.s200-book-card h5 { margin: 0 0 8px; font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 2px; }
.s200-book-card.bad h5 { color: #ff8c8c; }
.s200-book-card.good h5 { color: var(--green); }
.s200-book-card svg { display: block; width: 100%; height: auto; }
.s200-book-spine { fill: #002211; stroke: var(--green-muted); stroke-width: 1; }
.s200-book-page { fill: #050a05; stroke: var(--green-muted); stroke-width: 1; }
.s200-book .s200-line { stroke: #2d5a2d; stroke-width: 1.1; opacity: 0.55; }
.s200-book .s200-line.s200-line-read { stroke: #00ff41; opacity: 0.95; filter: drop-shadow(0 0 2.5px rgba(0,255,65,0.55)); }
.s200-book .s200-line.s200-line-skim { stroke: #2d5a2d; opacity: 0.4; }
.s200-book .s200-attention-band { fill: rgba(0,255,65,0.12); }
.s200-book .s200-toc-row { cursor: pointer; outline: none; }
.s200-book .s200-toc-row rect { fill: #050a05; stroke: #0f3a0f; stroke-width: 1; transition: stroke 0.18s ease, fill 0.18s ease; }
.s200-book .s200-toc-row:hover rect, .s200-book .s200-toc-row:focus rect { stroke: #00ff41; fill: rgba(0,255,65,0.06); }
.s200-book .s200-toc-row.s200-flipped rect { stroke: #00ff41; fill: rgba(0,255,65,0.14); }
.s200-book .s200-toc-row text { fill: var(--text-dim); font: 600 9.5px 'JetBrains Mono', monospace; pointer-events: none; transition: fill 0.18s ease; }
.s200-book .s200-toc-row.s200-flipped text { fill: var(--green); }
.s200-book .s200-toc-row .s200-toc-tick { opacity: 0; transition: opacity 0.25s ease; }
.s200-book .s200-toc-row.s200-flipped .s200-toc-tick { opacity: 1; }
.s200-book .s200-chapter-page { fill: #050a05; stroke: #0f3a0f; stroke-width: 1; transition: fill 0.45s ease, stroke 0.45s ease; }
.s200-book .s200-chapter-page.s200-on { fill: rgba(0,255,65,0.14); stroke: #00ff41; }
.s200-book .s200-chapter-content { stroke: #2d5a2d; opacity: 0.45; transition: stroke 0.45s ease, opacity 0.45s ease; }
.s200-book .s200-chapter-page.s200-on ~ .s200-chapter-content,
.s200-book .s200-chapter-page.s200-on + .s200-chapter-content { stroke: #00ff41; opacity: 0.95; }
.s200-book .s200-flip-mask { fill: #050a05; stroke: #00ff41; stroke-width: 1; opacity: 0; transform: scaleX(0); transform-origin: var(--ox, 0) var(--oy, 0); transition: transform 0.45s cubic-bezier(.6,.05,.36,1), opacity 0.3s ease; }
.s200-book .s200-flip-mask.s200-on { opacity: 0.95; transform: scaleX(1); }
.s200-book-counter { font: 11px 'JetBrains Mono', monospace; color: var(--text-dim); text-align: center; margin-top: 10px; letter-spacing: 1px; }
.s200-book-counter b.left { color: #ff8c8c; }
.s200-book-counter b.right { color: var(--green); }

/* ---- Animation D: enforcement gate ---- */
.s200-gate-wrap { position: relative; }
.s200-gate-wrap .s200-factory-body { fill: var(--bg-terminal); stroke: #00aa33; stroke-width: 1.5; }
.s200-gate-wrap .s200-factory-vent { fill: #001a08; stroke: #00aa33; stroke-width: 1; }
.s200-gate-wrap .s200-factory-label { fill: var(--green); font: 700 11px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.s200-gate-wrap .s200-factory-sub { fill: var(--text-dim); font: 8px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.s200-gate-wrap .s200-conveyor-deck { fill: #050a05; stroke: #1a3a1a; stroke-width: 1; }
.s200-gate-wrap .s200-conveyor-tick { stroke: #1a3a1a; stroke-width: 1; }
.s200-gate-wrap .s200-gate-bar { fill: #aa6f00; stroke: #ffaa00; stroke-width: 1.5; transition: transform 0.32s cubic-bezier(.6,.05,.36,1); transform-origin: 50% 100%; }
.s200-gate-wrap .s200-gate-bar.s200-bumped { transform: rotate(-8deg) translateY(-2px); }
.s200-gate-wrap .s200-gate-label { fill: #ffaa00; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: 1.5px; }
.s200-gate-wrap .s200-gate-label-sub { fill: #ffaa00; font: 600 8px 'JetBrains Mono', monospace; opacity: 0.85; }
.s200-gate-wrap .s200-counter-card { fill: #050a05; stroke: var(--green-muted); stroke-width: 1; }
.s200-gate-wrap .s200-counter-label { fill: var(--text-dim); font: 700 8px 'JetBrains Mono', monospace; letter-spacing: 1.5px; }
.s200-gate-wrap .s200-counter-num { fill: var(--green); font: 800 18px 'JetBrains Mono', monospace; }
.s200-gate-wrap .s200-counter-tag { fill: var(--text-dim); font: 600 8px 'JetBrains Mono', monospace; letter-spacing: 1px; }
.s200-gate-wrap .s200-pkg { transition: transform 0.6s cubic-bezier(.45,.05,.55,.95); }
.s200-gate-wrap .s200-pkg rect.s200-pkg-body { fill: #001a08; stroke: #00ff41; stroke-width: 1.5; transition: stroke 0.3s ease, fill 0.3s ease; }
.s200-gate-wrap .s200-pkg.s200-fail rect.s200-pkg-body { stroke: #ff5555; fill: #1a0808; }
.s200-gate-wrap .s200-pkg.s200-warn rect.s200-pkg-body { stroke: #ffaa00; }
.s200-gate-wrap .s200-pkg.s200-split rect.s200-pkg-body { stroke: #00ff41; fill: #001a08; }
.s200-gate-wrap .s200-pkg text.s200-pkg-num { fill: #00ff41; font: 800 11px 'JetBrains Mono', monospace; }
.s200-gate-wrap .s200-pkg.s200-fail text.s200-pkg-num { fill: #ff5555; }
.s200-gate-wrap .s200-pkg text.s200-pkg-tag { fill: var(--text-dim); font: 600 7.5px 'JetBrains Mono', monospace; letter-spacing: 0.5px; }
.s200-gate-wrap .s200-pkg.s200-fail text.s200-pkg-tag { fill: #ff8c8c; }
.s200-gate-wrap .s200-stamp { fill: none; stroke: #ff5555; stroke-width: 2; font: 800 12px 'JetBrains Mono', monospace; letter-spacing: 2px; opacity: 0; transform-origin: center; transition: opacity 0.25s ease, transform 0.25s ease; }
.s200-gate-wrap .s200-stamp.s200-on { opacity: 1; transform: rotate(-9deg) scale(1); }
.s200-gate-wrap .s200-stamp.s200-pass { stroke: #00ff41; }
.s200-gate-wrap .s200-flash { fill: rgba(255,85,85,0.18); opacity: 0; transition: opacity 0.18s ease; pointer-events: none; }
.s200-gate-wrap .s200-flash.s200-on { opacity: 1; }
.s200-gate-controls { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.s200-gate-status { font: 700 11px 'JetBrains Mono', monospace; color: var(--text-dim); margin-left: auto; letter-spacing: 1px; }
.s200-gate-status b { color: var(--green); }
.s200-gate-status b.fail { color: #ff5555; }

/* ---- Mobile (375px target) ---- */
@media (max-width: 680px) {
  .s200-fig { padding: 14px 8px 10px; margin: 22px 0; }
  .s200-fig-title { font-size: 10px; }
  .s200-books-grid { grid-template-columns: 1fr; gap: 14px; }
  .s200-split-counter { margin-left: 0; flex-basis: 100%; }
  .s200-gate-status { margin-left: 0; flex-basis: 100%; }
}

/* ---- Reduced motion: render end states, disable transitions ---- */
@media (prefers-reduced-motion: reduce) {
  .s200-block, .s200-block .s200-tick, .s200-block .s200-redux-line,
  .s200-arrow line, .s200-arrow polygon, .s200-arrow text,
  .s200-redux-tag, .s200-book .s200-toc-row rect, .s200-book .s200-toc-row text,
  .s200-book .s200-toc-row .s200-toc-tick, .s200-book .s200-chapter-page,
  .s200-book .s200-chapter-content, .s200-book .s200-flip-mask,
  .s200-gate-wrap .s200-pkg, .s200-gate-wrap .s200-pkg rect.s200-pkg-body,
  .s200-gate-wrap .s200-pkg text.s200-pkg-num, .s200-gate-wrap .s200-stamp,
  .s200-gate-wrap .s200-flash, .s200-gate-wrap .s200-gate-bar,
  .s200-ruler-bar { transition: none !important; }
  .s200-arrow.s200-show line { animation: none !important; }
}
