.rg-view-tabs { display:flex; gap:28px; border-bottom:1px solid var(--registry-rule); margin:0 0 32px; }
.rg-view-tabs button { font:inherit; font-size:13px; letter-spacing:.15em; text-transform:uppercase; background:none; color:var(--elion-muted); border:0; border-bottom:1px solid transparent; padding:12px 2px; cursor:pointer; margin-bottom:-1px; }
.rg-view-tabs button[aria-selected="true"] { color:var(--maison-ink); border-bottom:2px solid var(--maison-gold); }
.registry-graph { color:var(--maison-ink); }
.registry-graph button, .registry-graph input, .registry-graph select { font-family:inherit; color:inherit; }
.registry-graph button { cursor:pointer; }
.registry-graph button:focus-visible, .registry-graph input:focus-visible, .registry-graph select:focus-visible, .rg-view-tabs button:focus-visible, .registry-graph svg:focus-visible { outline:1px solid var(--elion-focus); outline-offset:4px; }
.rg-intro { margin-bottom:28px; }
.rg-intro p { font-family:'Savanna',serif; font-size:18px; letter-spacing:.04em; margin:0 0 7px; }
.rg-intro > span { color:var(--elion-muted); font-size:13px; line-height:1.8; }
.rg-filters { display:flex; flex-wrap:wrap; gap:18px 24px; align-items:flex-end; margin-bottom:26px; }
.rg-filters > div { min-width:85px; }
.rg-filters .rg-search { flex:1; min-width:210px; max-width:360px; }
.rg-filters label { display:block; text-transform:uppercase; color:var(--elion-muted); font-size:12px; letter-spacing:.13em; margin-bottom:7px; }
.rg-filters input, .rg-filters select { width:100%; background:none; border:0; border-bottom:1px solid var(--registry-field-rule); border-radius:0; padding:7px 0; font-size:13px; min-height:42px; }
.rg-filters input::placeholder { color:var(--elion-muted); }
.rg-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:24px; align-items:start; }
.rg-canvas { position:relative; height:620px; background:var(--maison-paper); border:1px solid var(--registry-rule); overflow:hidden; }
.rg-canvas svg { display:block; touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; }
.rg-canvas svg:active { cursor:grabbing; }
.rg-node { cursor:pointer; outline:none; }
.rg-node:focus-visible .rg-node-ring { stroke:var(--elion-focus); }
.rg-navigation { position:absolute; left:15px; bottom:15px; display:flex; align-items:center; gap:1px; background:color-mix(in srgb,var(--maison-paper) 94%,transparent); border:1px solid var(--registry-rule); }
.rg-navigation button { background:none; border:0; font-size:20px; line-height:1; width:42px; min-height:42px; padding:4px; }
.rg-navigation .rg-fit { width:auto; font-size:12px; letter-spacing:.06em; padding:6px 12px; border-left:1px solid var(--registry-rule); }
.rg-empty { position:absolute; top:43%; left:8%; right:8%; text-align:center; font-size:12px; line-height:1.8; pointer-events:none; color:var(--elion-muted); }
.rg-below { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:17px 0 11px; }
.rg-legend { display:flex; gap:10px 18px; flex-wrap:wrap; }
.rg-legend span, .rg-names { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--elion-muted); }
.rg-legend i, .rg-detail li i { display:inline-block; border-radius:50%; width:6px; height:6px; flex-shrink:0; }
.rg-names { cursor:pointer; }
.rg-names input { accent-color:var(--maison-ink); width:12px; height:12px; }
.rg-caption { display:flex; flex-wrap:wrap; justify-content:space-between; gap:7px 15px; color:var(--elion-muted); font-size:12px; line-height:1.7; }
.rg-detail { min-width:0; border-top:1px solid var(--registry-rule); padding-top:15px; }
.rg-detail-kicker { display:flex; align-items:center; justify-content:space-between; text-transform:uppercase; letter-spacing:.16em; font-size:12px; }
.rg-detail-kicker button { background:none; border:0; padding:0 4px; font-size:20px; color:var(--elion-muted); }
.rg-detail h2 { font-family:'Savanna',serif; font-size:20px; font-weight:400; margin:17px 0 12px; line-height:1.5; overflow-wrap:anywhere; }
.rg-detail .rg-code { font-size:12px; color:var(--elion-muted); overflow-wrap:anywhere; line-height:1.8; margin-bottom:20px; }
.rg-detail dl { margin:20px 0; }
.rg-detail dl > div { margin-bottom:13px; }
.rg-detail dt { text-transform:uppercase; letter-spacing:.12em; color:var(--elion-muted); font-size:11px; margin-bottom:4px; }
.rg-detail dd { font-size:13px; margin:0; line-height:1.6; overflow-wrap:anywhere; }
.rg-image { margin:23px 0; }
.rg-open, .rg-text-button { background:none; border:0; border-bottom:1px solid var(--registry-field-rule); padding:2px 0; font-size:12px; letter-spacing:.04em; }
.rg-open { color:var(--maison-ink); border-bottom-color:var(--maison-gold); margin-bottom:20px; }
.rg-isolate { display:block; margin:5px 0 27px; color:var(--elion-muted); line-height:1.8; text-align:left; }
.rg-detail h3 { font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--elion-muted); font-weight:400; padding-top:18px; border-top:1px solid var(--registry-rule); margin:0 0 12px; }
.rg-detail ul { list-style:none; padding:0; margin:0; max-height:310px; overflow:auto; }
.rg-detail li button { display:flex; width:100%; gap:9px; text-align:left; padding:11px 0; border:0; border-bottom:1px solid var(--registry-rule); background:none; font-size:13px; align-items:baseline; line-height:1.7; }
.rg-detail li small { display:block; font-size:11px; line-height:1.6; color:var(--elion-muted); overflow-wrap:anywhere; }
.rg-note, .rg-welcome p { font-size:13px; color:var(--elion-muted); line-height:1.9; margin:16px 0; }
.rg-welcome > span { font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--elion-muted); }
.rg-topline { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.rg-display-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; flex-shrink:0; }
.rg-display-controls button { border:1px solid var(--registry-field-rule); background:none; padding:9px 12px; min-height:42px; font-size:12px; letter-spacing:.04em; white-space:nowrap; }
.rg-display-controls button[aria-expanded="true"] { background:var(--registry-highlight); }
.rg-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.registry-graph.rg-fullscreen { position:fixed; inset:0; z-index:1000; width:100%; height:100vh; height:100dvh; display:flex; flex-direction:column; box-sizing:border-box; padding:18px 24px 12px; background:var(--maison-paper); overflow:hidden; }
.rg-fullscreen .rg-topline { align-items:center; flex-shrink:0; margin-bottom:14px; }
.rg-fullscreen .rg-intro { margin:0; }
.rg-fullscreen .rg-intro p { font-size:16px; margin:0; }
.rg-fullscreen .rg-intro > span { display:none; }
.rg-fullscreen .rg-filters { flex-shrink:0; margin-bottom:15px; }
.rg-fullscreen .rg-filters[hidden] { display:none; }
.rg-fullscreen .rg-layout { position:relative; display:block; flex:1; min-height:0; }
.rg-fullscreen .rg-stage { display:flex; flex-direction:column; height:100%; min-height:0; }
.rg-fullscreen .rg-canvas { flex:1; height:auto; min-height:90px; }
.rg-fullscreen .rg-below { flex-shrink:0; padding:10px 0 7px; }
.rg-fullscreen .rg-caption { flex-shrink:0; }
.rg-fullscreen .rg-detail { display:none; position:absolute; top:12px; right:12px; bottom:78px; width:260px; max-width:calc(100% - 24px); max-height:calc(100% - 90px); padding:18px; border:1px solid var(--registry-rule); background:color-mix(in srgb,var(--maison-paper) 98%,transparent); box-shadow:0 5px 24px color-mix(in srgb,var(--maison-ink) 5%,transparent); overflow:auto; }
.rg-fullscreen.rg-details-open .rg-detail { display:block; }
.rg-fullscreen .rg-detail ul { max-height:none; }
@media (max-width:850px) {
  .rg-layout { grid-template-columns:minmax(0,1fr); gap:30px; }
  .rg-detail { max-width:520px; }
  .rg-canvas { height:560px; }
  .rg-filters { gap:16px; }
  .rg-filters .rg-search { max-width:none; flex-basis:100%; }
  .rg-intro > span { display:block; }
  .rg-fullscreen .rg-intro > span { display:none; }
  .rg-topline { flex-wrap:wrap; }
  .rg-topline .rg-intro { flex:1; min-width:190px; }
  .rg-fullscreen .rg-topline .rg-intro { min-width:140px; }
}
@media (max-width:480px) {
  .rg-canvas { height:520px; }
  .rg-filters > div:not(.rg-search) { flex:1; min-width:75px; }
  .rg-legend { gap:10px; }
  .rg-intro p { font-size:17px; }
  .registry-graph.rg-fullscreen { padding:12px 12px 10px; }
  .rg-fullscreen .rg-topline { gap:9px; margin-bottom:10px; }
  .rg-fullscreen .rg-intro p { font-size:14px; }
  .rg-fullscreen .rg-display-controls { gap:6px; }
  .rg-fullscreen .rg-display-controls button { font-size:12px; padding:8px; }
  .rg-fullscreen .rg-detail { top:auto; bottom:75px; max-height:45%; right:9px; width:calc(100% - 18px); max-width:none; }
}

.rg-labels { cursor:pointer; }
.rg-labels text { font-family:'Anonymous Pro',monospace; }
.rg-node:focus-visible .rg-node-ring { stroke-width:3px; }
.rg-fullscreen .rg-detail { width:290px; padding:20px; }
.rg-detail dd { font-size:14px; }
.rg-detail li button { font-size:14px; min-height:44px; }
.rg-display-controls button { min-height:42px; }
@media(max-width:600px) { .rg-filters input,.rg-filters select { font-size:16px; } .rg-fullscreen .rg-detail { width:calc(100% - 18px); } }
.rg-view-options { display:flex; flex-wrap:wrap; gap:10px 18px; }
.rg-thumbnail { display:block; position:relative; width:44px; height:44px; flex:0 0 44px; overflow:hidden; background:var(--registry-surface); line-height:0; }
.rg-thumbnail-fragment .progressive-image-content { filter:grayscale(100%); }
.rg-thumbnail-watermark { position:absolute; left:0; right:0; bottom:0; padding:3px 0; background:color-mix(in srgb,var(--maison-paper) 85%,transparent); color:var(--maison-ink); text-align:center; font:5px/1.2 'Anonymous Pro',monospace; letter-spacing:.03em; pointer-events:none; }
.rg-node-thumbnail .rg-thumbnail { width:100%; height:100%; }
.rg-node:focus-visible .rg-thumbnail-frame { stroke:var(--elion-focus); stroke-width:3px; }
.rg-detail li button { align-items:center; gap:12px; }
.rg-related-text { min-width:0; overflow-wrap:anywhere; }
.rg-fullscreen .rg-detail { top:12px;bottom:auto;height:calc(var(--rg-canvas-height,600px) - 24px);max-height:calc(var(--rg-canvas-height,600px) - 24px); }
@media(max-width:600px) { .rg-fullscreen .rg-detail { top:auto;bottom:calc(100% - var(--rg-canvas-height,500px) + 12px);height:auto;max-height:calc(var(--rg-canvas-height,500px) * .46); } }
.rg-propagation { pointer-events:none; }
.rg-propagation-line { opacity:0;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:rg-propagation-trace 560ms cubic-bezier(.2,.6,.3,1) both; }
.rg-propagation-origin,.rg-propagation-arrival { opacity:0;transform-box:fill-box;transform-origin:center; }
.rg-propagation-origin { animation:rg-propagation-source 540ms ease-out both; }
.rg-propagation-arrival { animation:rg-propagation-arrival 340ms ease-out both; }
@keyframes rg-propagation-trace { 0%{opacity:0;stroke-dashoffset:1} 12%{opacity:1} 72%{opacity:1;stroke-dashoffset:0} 100%{opacity:0;stroke-dashoffset:0} }
@keyframes rg-propagation-source { 0%{opacity:0;scale:.7} 20%{opacity:.65} 100%{opacity:0;scale:1.7} }
@keyframes rg-propagation-arrival { 0%{opacity:0;scale:.8} 25%{opacity:.7} 100%{opacity:0;scale:1.3} }
@media(prefers-reduced-motion:reduce) { .rg-propagation { display:none; } }
