  /* ---------- tokens ---------- */
  :root {
    --ground: #0e0b16;
    --ground-2: #120e1d;
    --surface: #171225;
    --line: #2a2140;
    --line-soft: #201936;
    --text: #e9e3f4;
    --muted: #9b8ec4;
    --dim: #6f639b;
    --rose: #f4a6c0;
    --rose-deep: #d4738f;
    --ember: #ffb27a;
    --mono: ui-monospace, "JetBrains Mono", "Fira Code", "Cascadia Code", "SF Mono", Menlo, monospace;
    --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
  }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    background: var(--ground);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
  }
  [x-cloak] { display: none !important; }
  ::selection { background: var(--rose-deep); color: #fff; }
  a { color: var(--rose); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  :focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 2px; }

  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

  .eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--rose);
  }
  .eyebrow::before { content: "# "; color: var(--dim); }

  h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.3rem);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
    margin-top: 0.5rem;
  }
  .section { padding: 96px 0; }
  .section + .section { border-top: 1px solid var(--line-soft); }
  .lede { color: var(--muted); max-width: 62ch; margin-top: 1rem; }
  .lede strong { color: var(--text); font-weight: 600; }

  /* ---------- nav ---------- */
  nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: color-mix(in srgb, var(--ground) 72%, transparent);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    height: 56px; display: flex; align-items: center; gap: 28px;
  }
  .wordmark {
    font-family: var(--mono); font-weight: 700; font-size: 1rem;
    color: var(--text); letter-spacing: 0.02em;
  }
  .wordmark:hover { text-decoration: none; }
  .wordmark .tld { color: var(--rose); }
  .nav-links { display: flex; margin-left: auto; align-items: center; }
  .nav-links a {
    font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  }
  .nav-links a:not(.nav-gh) { padding: 0 20px; line-height: 1.2; }
  .nav-links a:not(.nav-gh) + a:not(.nav-gh) { border-left: 1px solid var(--line); }
  .nav-links a:hover { color: var(--text); text-decoration: none; }
  .nav-gh {
    margin-left: 20px;
    border: 1px solid var(--line); border-radius: 6px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text) !important;
  }
  .nav-gh svg { width: 17px; height: 17px; fill: currentColor; display: block; }
  .nav-gh:hover { border-color: var(--rose-deep); color: var(--rose) !important; }
  .nav-burger {
    display: none; margin-left: auto; background: none; border: 1px solid var(--line);
    color: var(--text); border-radius: 6px; padding: 6px 10px; font-family: var(--mono);
    cursor: pointer;
  }
  .nav-mobile {
    display: none; flex-direction: column; gap: 4px; padding: 8px 24px 16px;
    border-top: 1px solid var(--line-soft);
  }
  .nav-mobile a { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); padding: 8px 0; }
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-burger { display: block; }
    .nav-mobile { display: flex; }
  }

  /* ---------- hero top ---------- */
  .hero-top {
    padding: 140px 24px 40px; text-align: center;
  }
  .hero-top h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
    text-wrap: balance;
  }
  .hero-top h1 em { font-style: normal; color: var(--rose); }
  .hero-sub {
    color: var(--muted); max-width: 58ch; margin: 16px auto 0; text-wrap: balance;
  }
  .hero-sub strong { color: var(--text); font-weight: 600; }
  .cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

  /* ---------- showcase slider ---------- */
  .showcase { padding: 24px 24px 72px; }
  .slider {
    max-width: 960px; margin: 0 auto;
  }
  .slider-frame {
    position: relative; aspect-ratio: 16 / 9;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
    background: #0a0812;
    box-shadow: 0 24px 80px -24px rgba(212, 115, 143, 0.25), 0 8px 40px rgba(0, 0, 0, 0.5);
  }
  .slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 700ms ease;
  }
  .slide.active { opacity: 1; }
  @media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
  .slide canvas { width: 100%; height: 100%; display: block; }
  .lock-overlay {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; pointer-events: none;
    background: radial-gradient(ellipse at 50% 46%, transparent 40%, rgba(9, 6, 16, 0.32) 100%);
  }
  .lock-clock {
    font-weight: 200; font-size: clamp(2.6rem, 7vw, 4.6rem);
    letter-spacing: 0.02em; line-height: 1;
    color: rgba(255, 252, 255, 0.95);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 32px rgba(20, 8, 30, 0.6);
  }
  .lock-date {
    font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em;
    color: rgba(244, 226, 240, 0.75); margin-top: 8px; text-transform: lowercase;
  }
  .slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid rgba(244, 166, 192, 0.35);
    background: rgba(14, 11, 22, 0.55); backdrop-filter: blur(6px);
    color: var(--text); font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
  }
  .slider-arrow:hover { border-color: var(--rose); color: var(--rose); }
  .slider-arrow.prev { left: 14px; }
  .slider-arrow.next { right: 14px; }
  .caption-bar {
    display: flex; align-items: baseline; gap: 12px;
    padding: 14px 6px 0;
  }
  .caption-bar b { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
  .caption-bar .desc { color: var(--dim); font-size: 0.85rem; }
  .caption-bar code {
    font-family: var(--mono); font-size: 0.72rem; color: var(--rose);
    background: rgba(244, 166, 192, 0.08); padding: 2px 8px; border-radius: 4px;
    white-space: nowrap;
  }
  .slider-dots { margin-left: auto; display: flex; gap: 8px; align-self: center; }
  .slider-dots button {
    width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--line); padding: 0;
  }
  .slider-dots button.active { background: var(--rose); }
  .showcase-note {
    max-width: 960px; margin: 18px auto 0;
    font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.04em;
  }
  .pill {
    margin-top: 26px;
    min-width: 220px; height: 44px; border-radius: 22px;
    background: rgba(20, 12, 28, 0.55);
    border: 1px solid rgba(244, 166, 192, 0.35);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 0 24px;
  }
  .pill .dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--rose);
    animation: dot-in 160ms ease-out;
  }
  .pill .placeholder {
    font-family: var(--mono); font-size: 0.78rem; color: rgba(233, 227, 244, 0.45);
    letter-spacing: 0.1em;
  }
  @keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
  .pill.shake { animation: shake 380ms ease-in-out; border-color: rgba(255, 120, 130, 0.7); }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); } 40% { transform: translateX(9px); }
    60% { transform: translateX(-6px); } 80% { transform: translateX(4px); }
  }
  .lock-hint {
    margin-top: 14px; font-family: var(--mono); font-size: 0.72rem;
    color: rgba(233, 227, 244, 0.4); letter-spacing: 0.08em;
  }
  @media (prefers-reduced-motion: reduce) {
    .pill .dot, .pill.shake { animation: none; }
  }

  .btn {
    font-family: var(--mono); font-size: 0.88rem; padding: 11px 22px; border-radius: 8px;
    border: 1px solid transparent; cursor: pointer;
  }
  .btn:hover { text-decoration: none; }
  .btn-primary { background: var(--rose); color: #241220; font-weight: 700; }
  .btn-primary:hover { background: #ffc2d5; }
  .btn-ghost { border-color: var(--line); color: var(--text); background: rgba(23, 18, 37, 0.6); }
  .btn-ghost:hover { border-color: var(--rose-deep); }

  /* ---------- layers section ---------- */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  @media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

  .codeblock {
    background: var(--ground-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 0.82rem;
    line-height: 1.7;
  }
  .codeblock pre { padding: 18px 22px; min-width: max-content; }
  .codeblock .file {
    display: block; padding: 8px 22px; border-bottom: 1px solid var(--line-soft);
    color: var(--dim); font-size: 0.75rem; letter-spacing: 0.08em;
  }
  .tk { color: #b8a8e8; }          /* toml key */
  .ts { color: var(--ember); }     /* string */
  .tn { color: var(--rose); }      /* number */
  .th { color: #7d6fa8; }          /* header/table */
  .tc { color: #5d5382; }          /* comment */
  .tp { color: #8fd0c0; }          /* shell prompt / cmd accent */

  .layer-note {
    display: flex; gap: 10px; align-items: baseline;
    font-family: var(--mono); font-size: 0.78rem; color: var(--dim);
    margin-top: 12px;
  }
  .layer-note b { color: var(--rose); font-weight: 400; }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
  @media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
  .feature {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px;
    padding: 24px;
  }
  .feature .tag {
    font-family: var(--mono); font-size: 0.72rem; color: var(--rose);
    letter-spacing: 0.1em;
  }
  .feature h3 { font-size: 1.06rem; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.01em; }
  .feature p { font-size: 0.92rem; color: var(--muted); }

  /* ---------- gallery ---------- */
  .gallery-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px;
  }
  @media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 580px) { .gallery-grid { grid-template-columns: 1fr; } }
  .scene {
    border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line-soft);
    background: var(--surface);
    transition: border-color 160ms ease, transform 160ms ease;
  }
  .scene:hover { border-color: var(--rose-deep); transform: translateY(-3px); }
  @media (prefers-reduced-motion: reduce) { .scene, .scene:hover { transition: none; transform: none; } }
  .scene canvas { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0a0812; }
  .scene-meta {
    display: flex; align-items: baseline; gap: 10px; padding: 12px 16px;
  }
  .scene-meta b { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }
  .scene-meta span { color: var(--dim); font-size: 0.82rem; }
  .scene-meta code {
    margin-left: auto; font-family: var(--mono); font-size: 0.7rem; color: var(--rose);
    background: rgba(244, 166, 192, 0.08); padding: 2px 8px; border-radius: 4px;
    white-space: nowrap;
  }
  .gallery-note {
    margin-top: 28px; font-family: var(--mono); font-size: 0.75rem; color: var(--dim);
    letter-spacing: 0.04em;
  }
  .gallery-note b { color: var(--muted); font-weight: 400; }

  /* ---------- config modal ---------- */
  .scene[role="button"] { cursor: pointer; position: relative; }
  .scenes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
  @media (max-width: 720px) { .scenes-grid { grid-template-columns: 1fr; } }
  .ingredients { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
  .ingredients span {
    font-family: var(--mono); font-size: 0.66rem; color: var(--dim);
    border: 1px solid var(--line-soft); border-radius: 999px; padding: 1px 8px;
  }
  .modes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 48px; }
  @media (max-width: 720px) { .modes-grid { grid-template-columns: 1fr; } }
  .mode-card { position: relative; }
  .mode-card:hover { transform: none; border-color: var(--line-soft); }
  .mode-badge {
    position: absolute; top: 10px; left: 10px;
    font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text); background: rgba(14, 11, 22, 0.72);
    border: 1px solid rgba(244, 166, 192, 0.4); border-radius: 5px; padding: 3px 9px;
  }
  .mode-desc { color: var(--muted); font-size: 0.9rem; padding: 0 16px 12px; margin: 0; }
  .modes-note { color: var(--dim); font-size: 0.9rem; margin-top: 26px; max-width: 60ch; }
  .cat-desc { color: var(--dim); letter-spacing: 0.02em; text-transform: none; }
  #plugins .gallery-grid { margin-top: 20px; margin-bottom: 40px; }
  .modal-body { overflow: auto; padding: 18px 22px; }
  .plugdesc { color: var(--muted); font-size: 0.9rem; max-width: 65ch; }
  .props { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.8rem; }
  .props th {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-align: left;
    color: var(--dim); padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line);
  }
  .props td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
  .props td:nth-child(1) code { font-family: var(--mono); color: var(--rose); font-size: 0.78rem; white-space: nowrap; }
  .props td:nth-child(2) { font-family: var(--mono); color: var(--dim); font-size: 0.72rem; white-space: nowrap; }
  .props td:nth-child(3) { font-family: var(--mono); color: var(--ember); font-size: 0.72rem; }
  .props td:nth-child(4) { color: var(--muted); }
  .pluglinks { margin-top: 16px; display: flex; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.76rem; }
  .plugnote {
    margin-top: 18px; font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
    letter-spacing: 0.04em;
  }
  .view-hint {
    position: absolute; top: 10px; right: 10px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
    color: var(--text); background: rgba(14, 11, 22, 0.72);
    border: 1px solid rgba(244, 166, 192, 0.4); border-radius: 5px;
    padding: 3px 9px; opacity: 0; transition: opacity 160ms ease;
    pointer-events: none;
  }
  .scene:hover .view-hint, .scene:focus-visible .view-hint { opacity: 1; }
  .modal-backdrop {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(9, 6, 16, 0.72); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 24px;
  }
  .modal {
    width: min(760px, 100%); max-height: 82vh;
    display: flex; flex-direction: column;
    background: var(--ground-2); border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  }
  .modal-head {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px; border-bottom: 1px solid var(--line-soft);
  }
  .modal-head code {
    font-family: var(--mono); font-size: 0.8rem; color: var(--rose);
    background: rgba(244, 166, 192, 0.08); padding: 2px 9px; border-radius: 4px;
  }
  .modal-head span { color: var(--dim); font-size: 0.78rem; }
  .modal-copy {
    margin-left: auto; font-family: var(--mono); font-size: 0.75rem;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--line); border-radius: 6px; padding: 5px 14px; cursor: pointer;
  }
  .modal-copy:hover { border-color: var(--rose-deep); color: var(--rose); }
  .modal-close {
    background: none; border: none; color: var(--dim);
    font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px;
  }
  .modal-close:hover { color: var(--text); }
  .modal-pre {
    overflow: auto; padding: 18px 22px;
    font-family: var(--mono); font-size: 0.76rem; line-height: 1.65;
    color: var(--muted); white-space: pre;
  }
  .modal-foot {
    display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
    padding: 12px 18px; border-top: 1px solid var(--line-soft);
    font-family: var(--mono); font-size: 0.74rem;
  }
  .modal-foot span { color: var(--dim); }

  /* ---------- plugin lineup ---------- */
  .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
  .chip {
    font-family: var(--mono); font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--text); background: var(--surface);
  }
  .chip.planned { border-style: dashed; color: var(--dim); background: transparent; }
  .chips-label {
    font-family: var(--mono); font-size: 0.72rem; color: var(--dim);
    letter-spacing: 0.1em; margin: 28px 0 -20px; width: 100%;
  }

  /* ---------- install ---------- */
  .tabs { display: flex; gap: 4px; margin-top: 40px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
  .tab {
    font-family: var(--mono); font-size: 0.84rem; padding: 10px 18px;
    background: none; border: none; color: var(--dim); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .tab svg { width: 15px; height: 15px; fill: currentColor; opacity: 0.75; flex: none; }
  .tab.active svg, .tab:hover svg { opacity: 1; }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--rose); border-bottom-color: var(--rose); }
  .tabpanel { margin-top: 24px; }
  .tabpanel p { color: var(--muted); font-size: 0.92rem; max-width: 65ch; }
  .tabpanel .codeblock { margin-top: 16px; }
  .then {
    margin-top: 48px; padding-top: 40px; border-top: 1px dashed var(--line);
  }
  .then h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
  .then p { color: var(--muted); font-size: 0.92rem; max-width: 65ch; }

  /* ---------- diy ---------- */
  .diy-links { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

  /* ---------- footer ---------- */
  footer {
    border-top: 1px solid var(--line-soft);
    padding: 40px 0 56px;
  }
  .foot-inner {
    max-width: 1080px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-direction: column; gap: 10px;
  }
  .foot-inner p { font-family: var(--mono); font-size: 0.75rem; color: var(--dim); letter-spacing: 0.03em; }
  .foot-inner a { color: var(--muted); }
  .mock-note { color: #4c4470 !important; }

  /* ---------- docs layout ---------- */
  .doc-shell {
    display: grid; grid-template-columns: 210px minmax(0, 1fr) 190px; gap: 48px;
    max-width: 1280px; margin: 0 auto; padding: 110px 24px 80px;
  }
  @media (max-width: 1100px) { .doc-shell { grid-template-columns: 210px minmax(0, 1fr); } .doc-toc { display: none; } }
  @media (max-width: 800px) { .doc-shell { grid-template-columns: 1fr; } .doc-side { position: static; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; } }
  .doc-side {
    position: sticky; top: 90px; align-self: start;
    display: flex; flex-direction: column; gap: 2px;
    font-family: var(--mono); font-size: 0.82rem;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .doc-side a { color: var(--muted); padding: 4px 10px; border-radius: 6px; }
  .doc-side a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
  .doc-side a.active { color: var(--rose); background: rgba(244, 166, 192, 0.07); }
  .side-group {
    font-size: 0.68rem; letter-spacing: 0.12em; color: var(--rose);
    margin: 18px 0 6px; padding: 0 10px;
  }
  .side-group:first-child { margin-top: 0; }
  .side-cat {
    font-size: 0.74rem; letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--muted); font-weight: 600;
    margin: 14px 0 3px; padding: 0 10px;
  }
  .doc-side a.side-sub { padding-left: 26px; }
  .doc-toc {
    position: sticky; top: 90px; align-self: start;
    display: flex; flex-direction: column; gap: 6px;
    font-family: var(--mono); font-size: 0.72rem;
    border-left: 1px solid var(--line-soft); padding-left: 16px;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .toc-label { letter-spacing: 0.12em; color: var(--dim); font-size: 0.66rem; margin-bottom: 4px; }
  .doc-toc a { color: var(--muted); }
  .doc-toc a:hover { color: var(--rose); text-decoration: none; }
  .doc-toc .toc-sub { padding-left: 14px; color: var(--dim); }
  article.doc { min-width: 0; }
  article.doc h1 {
    font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 750;
    letter-spacing: -0.02em; line-height: 1.15;
  }
  article.doc .doc-sub { color: var(--dim); font-weight: 400; font-size: 0.55em; margin-left: 10px; }
  article.doc .doc-meta {
    font-family: var(--mono); font-size: 0.8rem; color: var(--dim); margin-top: 10px;
  }
  article.doc .doc-meta code { color: var(--rose); background: rgba(244, 166, 192, 0.08); padding: 2px 8px; border-radius: 4px; }
  article.doc h2 { font-size: 1.35rem; margin-top: 44px; }
  article.doc h3 { font-size: 1.05rem; font-weight: 700; margin-top: 30px; letter-spacing: -0.01em; }
  article.doc p, article.doc li { color: var(--muted); font-size: 0.95rem; max-width: 72ch; }
  article.doc p { margin-top: 14px; }
  article.doc ul, article.doc ol { margin: 14px 0 0 22px; }
  article.doc li { margin-top: 6px; }
  article.doc li::marker { color: var(--dim); }
  article.doc strong { color: var(--text); }
  article.doc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rose-deep); }
  article.doc code {
    font-family: var(--mono); font-size: 0.85em; color: var(--ember);
    background: var(--ground-2); border: 1px solid var(--line-soft);
    padding: 1px 6px; border-radius: 4px;
  }
  article.doc pre {
    margin-top: 16px; padding: 16px 20px; border-radius: 10px;
    border: 1px solid var(--line); overflow-x: auto;
    font-size: 0.82rem; line-height: 1.65;
    background: var(--ground-2) !important;
  }
  article.doc pre code { background: none; border: none; padding: 0; color: inherit; font-size: 1em; }
  article.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.85rem; }
  article.doc table th {
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-align: left;
    color: var(--dim); padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line);
  }
  article.doc table td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--muted); }
  article.doc table td:first-child code { color: var(--rose); white-space: nowrap; }

  .doc-preview {
    margin-top: 24px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line);
  }
  .doc-preview canvas, .doc-preview img { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0a0812; object-fit: cover; }

  .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .scene img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #0a0812; }
  .doc-preview video { width: 100%; aspect-ratio: 16 / 9; display: block; background: #0a0812; object-fit: cover; }

  .scene-wide { grid-column: 1 / -1; }
  .scene-wide img { aspect-ratio: 32 / 9; }
  @media (max-width: 720px) { .scene-wide img { aspect-ratio: 16 / 9; object-position: left center; } }
  .scene-ghost {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; text-align: center; padding: 24px;
    border-style: dashed; color: var(--dim); background: transparent;
  }
  .scene-ghost:hover { text-decoration: none; color: var(--muted); }
  .scene-ghost .ghost-plus { font-size: 1.6rem; color: var(--rose); font-family: var(--mono); }
  .scene-ghost b { color: var(--text); font-size: 0.95rem; }
  .scene-ghost span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; max-width: 32ch; }
