.endo-main .criterion { grid-template-columns: minmax(5.8rem,23%) minmax(0,1fr); }
.endo-main .criterion dt { overflow-wrap: anywhere; }
.endo-main .lookup { position: static; }
#endo-lookup label { margin-top: 10px; }
#endo-lookup label[hidden] { display:none; }
#endo-lookup input { display:block; min-width:0; width:100%; border:1px solid var(--line); color:var(--ink); background:var(--paper); border-radius:5px; padding:9px 6px; margin-top:5px; font:inherit; }
#endo-stage { font-size: 26px; }
#endo-stage sub { font-size:.55em; }
#endo-detail,.endo-scope { font-size:13px; line-height:1.5; color:var(--secondary); }
.endo-main .endo-note { margin: 10px 0; line-height: 1.6; }
.endo-wall { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-top:12px; }
.endo-wall > div { background:var(--paper); border:1px solid var(--line); border-radius:5px; overflow:hidden; }
.endo-wall img,.endo-node-map { display:block; width:100%; height:auto; }
.endo-wall span { display:block; padding:6px 7px; font-size:13px; line-height:1.35; font-weight:650; }
.endo-node-map { max-width:570px; border-radius:5px; margin:12px auto; }
.endo-key { display:flex; flex-wrap:wrap; gap:6px 12px; }
.endo-key span { display:inline-flex; align-items:center; gap:5px; font-size:13px; }
.endo-key i { width:11px; height:11px; border:1px solid var(--secondary); border-radius:50%; }
.endo-key .pelvic { background:#68a79b; } .endo-key .aortic { background:#d5a558; } .endo-key .distant { background:#b291be; }
.endo-sources { font-size:14px; line-height:1.7; }
.endo-sources a { color:var(--accent); }
@media(max-width:640px) { .endo-wall { grid-template-columns: repeat(2,minmax(0,1fr)); } }
