.architecture-jump { display:inline-flex; align-items:center; gap:.5em; color:var(--aqua); text-underline-offset:.25em; }
#features .section-head { flex-wrap:wrap; gap:12px 24px; }
#architecture { padding-top:clamp(32px,6vw,80px); border-top:1px solid var(--line); }
.inside-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:24px; }
#architecture h2,#architecture h3,#architecture h4,#architecture p { margin:0; }
.inside-tabs { display:inline-flex; gap:3px; padding:3px; background:#0d171d; border:1px solid #33454f; border-radius:9px; }
.inside-tabs button { font:inherit; font-size:.91rem; font-weight:600; color:var(--muted); padding:8px 15px; min-height:40px; border:1px solid transparent; border-radius:6px; background:transparent; cursor:pointer; }
.inside-tabs button[aria-selected=true] { color:#e5f7fb; background:#233640; border-color:#44606c; }
#architecture [hidden] { display:none; }
.diagram-pair { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr); border:1px solid #32434f; border-radius:15px; overflow:hidden; background:#101a21; }
.parts-drawing { background:radial-gradient(ellipse at 38% 18%,#203541 0, #14222c 48%,#111e26 85%); display:grid; place-items:center; padding:clamp(8px,2vw,26px); }
#parts-map { width:100%; max-width:520px; display:block; overflow:visible; user-select:none; }
.map-target { fill:transparent; }
.map-part { cursor:pointer; }
#parts-map .map-part:focus-visible { outline:none; }
.part-object { pointer-events:none; transform-origin:34% 50%; }
.part-label { font:600 12.8px "Segoe UI",Arial,sans-serif; fill:#cddce2; }
.mini-type { fill:#dce8ee; font:600 6px "Segoe UI",Arial,sans-serif; }
.leader { fill:none; stroke:#5b7381; stroke-width:1; }
.map-part.is-chosen .leader,.map-part:hover .leader { stroke:#9ae7f8; stroke-width:1.7; }
.map-part.is-chosen .part-label,.map-part:hover .part-label { fill:#a4ecff; }
.map-part:focus-visible .map-target { stroke:#abeaff; stroke-width:1.5; rx:5px; }
.part-reader,.buffer-view { border-left:1px solid #30404a; padding:clamp(22px,3.6vw,52px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.part-reader .reader-icon { fill:none; stroke:#92e4ff; stroke-width:1.45; stroke-linecap:round; stroke-linejoin:round; width:32px; height:32px; margin-bottom:18px; }
#architecture .part-reader h3,#architecture .path-stages h3 { font-size:clamp(1.3rem,2.1vw,1.85rem); letter-spacing:-.035em; line-height:1.14; }
#architecture .part-reader p,#architecture .buffer-result p { margin-top:.65em; line-height:1.55; color:#bbc9d0; max-width:36ch; }
.parts-hint { text-align:center; font-size:.84rem; color:#b3c3cc; }
.path-stages { background:#13212a; padding:clamp(20px,3.3vw,48px); }
.film-path { display:grid; margin:25px 0 0; padding:0; list-style:none; }
.film-path li { position:relative; display:grid; grid-template-columns:36px minmax(0,1fr); gap:14px; padding-bottom:22px; color:#d8e5eb; }
.film-path li:last-child { padding-bottom:0; }
.film-path li:not(:last-child)::before { content:""; position:absolute; top:35px; bottom:0; width:1px; left:17px; background:#48616d; }
.stage-icon { display:grid; place-items:center; width:35px; height:35px; border:1px solid #5a7480; border-radius:9px; background:#192d37; }
.stage-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round; }
.film-path strong { display:block; line-height:1.25; font-size:1rem; }
#architecture .film-path p { font-size:.88rem; color:#b3c2cc; line-height:1.4; margin-top:4px; }
#path-diagram { --stage-accent:#efc17b; }
#path-diagram.ready { --stage-accent:#96e6c7; }
.pieces-stage .stage-icon,.ready .stage-icon { border-color:var(--stage-accent); color:var(--stage-accent); }
#path-diagram:not(.ready) .pieces-stage ~ li .stage-icon { border-style:dashed; color:#9cadb8; background:#14212b; }
.peer-choice { display:flex; flex-wrap:wrap; gap:6px; padding:0; border:0; margin:0; }
.peer-choice legend { color:var(--ink); font-size:1rem; font-weight:650; margin-bottom:12px; padding:0; }
.peer-choice label { cursor:pointer; position:relative; display:inline-flex; }
.peer-choice input { position:absolute; width:1px; height:1px; opacity:0; }
.peer-choice span { display:inline-flex; align-items:center; min-height:40px; padding:6px 12px; font-size:.84rem; border-radius:6px; border:1px solid #475963; color:#c3d1d9; }
.peer-choice input:checked + span { color:#eff9fa; border-color:#8db4c0; background:#243943; }
.inside-tabs button:focus-visible,.peer-choice input:focus-visible + span { outline:2px solid #a5e9ff; outline-offset:2px; }
.buffer-strip { display:grid; grid-template-columns:repeat(12,1fr); width:100%; max-width:285px; height:18px; gap:3px; margin:25px 0 14px; }
.buffer-strip i { border-radius:2px; border:1px dashed #69818e; background:#101e26; }
.buffer-strip i.filled,.ready .buffer-strip i { border:1px solid #75a5b6; background:#5e8a9b; }
.ready .buffer-strip i { background:#6bbfa3; border-color:#8ed2ba; }
.buffer-result h4 { font-size:1.15rem; line-height:1.2; color:var(--stage-accent); }
@media(max-width:720px) {
  .inside-head { align-items:flex-start; flex-direction:column; gap:16px; margin-bottom:16px; }
  .diagram-pair { grid-template-columns:minmax(0,1fr); }
  .parts-drawing { padding:6px 3px 12px; }
  .part-reader,.buffer-view { border-left:0; border-top:1px solid #30404a; padding:18px 20px 22px; }
  .part-reader { display:grid; grid-template-columns:24px 1fr; gap:0 10px; }
  .part-reader .reader-icon { width:23px; height:23px; margin:0; }
  #architecture .part-reader p { grid-column:2; margin-top:5px; }
  .path-stages { padding:20px; }
  .film-path { margin-top:20px; }
  .film-path li { padding-bottom:16px; }
  .buffer-strip { margin:18px 0 12px; }
}
@media(prefers-reduced-motion:no-preference) { .part-object { transition:transform .1s ease-out; } }
