/* Monochrome presentation shell. Saturated color is reserved for small
   provenance badges and category marks; source footage and baked HUD stay intact. */
:root {
  --paper: #f5f5f3;
  --ink: #141414;
  --g1: #ededea;
  --g2: #dcdcd8;
  --g3: #a2a29e;
  --g4: #696966;
  --g5: #2b2b29;
  --hair-l: #0000001a;
  --shell-dark: #0c0c0d;
  --shell-line: #c6c6c2;
}

/* Neutral reading surfaces and navigation. Keep the original font system. */
body, .notes-section.chapter { background: var(--shell-dark); }
.routes-section.chapter, .motion-section.chapter { background: var(--paper); color: var(--ink); }
body[data-tone=light] .site-header { background: #f5f5f3f2; color: var(--ink); }
::selection { background: #d6d6d2; color: #111; }
:focus-visible { outline-color: currentColor; }
.skip-link { background: #f5f5f3; color: #111; }
.chapter-nav a:after { height: 1px; background: currentColor; }
.scroll-progress i { background: currentColor; }
.kicker-num { color: inherit; }
.ai-word { background: none; color: inherit; }
.hero-play:hover { background: none; color: #fff; opacity: .75; }
.hero-play:hover .play-disc i { border-left-color: #fff; }
.footer-top:hover { color: #d4d4d1; }
.route-link:hover { border-color: currentColor; }

/* The semantic chips remain deliberately saturated, like the supplied reference. */
.chip-author { background: var(--blue); color: #fff; }
.chip-ai { background: var(--yellow); color: #000; }
.chip-direct { background: var(--red); color: #fff; }
.roles i { width: 10px; height: 3px; }

/* Image wedges lift on a fine silver edge, without a colored perimeter. */
.pie-edge { stroke: var(--paper); }
.pie-slice.is-active .pie-edge { stroke: #bfc0bd; stroke-width: 1.5; }
.pie-slice.is-active .pie-art { filter: drop-shadow(0 14px 16px #00000026); }
.pie-guide { stroke: var(--shell-line); }
#routes[data-route-selected=motion] .pie-guide-motion,
#routes[data-route-selected=sequencer] .pie-guide-sequencer,
#routes[data-route-selected=interface] .pie-guide-interface { stroke: #858581; }
.pie-number::before { width: 12px; height: 3px; }
.pie-heading-hint, .pie-number, .pie-enter, .pie-status { color: var(--g4); }
.pie-footer { border-color: var(--g2); }
.pie-status i { background: #969693; }

/* Comparison controls stay neutral; the blue UE5 and yellow AI labels carry color. */
.stage:has(.split:focus-visible) .divider-handle,
.blend-gesture:focus-visible { outline-color: #fff; }
.blend-meter i { background: #f4f4f0; }
.reset { color: #fff; }

/* Motion / process views: short colored ticks, quiet rules and metadata. */
.step:before, .motion-flow li:before, .ui-process li:before {
  height: 1px;
  background: linear-gradient(90deg, var(--c) 0 18px, var(--g2) 18px 100%);
}
.motion-row-number, .motion-prompt-zh::before { color: var(--g4); }
.library-card { background: transparent; }
.library-draft { border-color: var(--g2); }
.library-draft::before { background: #e1e1dd; color: #434340; }
.ai-help b { box-shadow: inset 0 -.32em 0 #dededb; }
.ledger-mark.is-filled { background: #e6e6e1; border-color: #e6e6e1; }
.ledger-row:before { background: #a2a29e; }

/* UI inspection chrome: white/graphite selection, tiny provenance markers. */
.ui-versions button:before,
.ui-versions button[aria-pressed=true]:before {
  top: 50%; bottom: auto; width: 5px; height: 5px; transform: translateY(-50%);
}
.ui-analysis-nav button>span { color: #b9b9b5; }
.ui-analysis-nav button[aria-pressed=true] { background: #efefec; border-color: #efefec; color: #111; }
.ui-analysis-nav button[aria-pressed=true]>span { color: #585855; }
.ui-hotspot { background: #f5f5f3; color: #111; }
.ui-hotspot:hover { background: #dcdcd8; }
.ui-focus-box { border-color: #f5f5f3; border-width: 1px; }
.ui-focus-box>span { background: #f5f5f3; color: #111; }
.ui-inspector, .ui-reference-dialog { background: var(--paper); color: var(--ink); }
.ui-inspector:before { width: 1px; background: var(--shell-line); }
.ui-inspector-note { border-left: 1px solid #b2b2ae; }
.ui-loop-toggle:hover { background: #343432; }
