.hra-reference{box-sizing:border-box;width:min(1050px,96vw);max-height:94vh;padding:22px;border:1px solid #9b9b9b;border-radius:14px;background:#f7f7f4;color:#242424;overflow:auto}.hra-reference::backdrop{background:#051018aa}.hra-reference header{display:flex;align-items:center;justify-content:space-between;background:none;color:inherit;border:0;padding:0;gap:16px}.hra-reference h2{margin:4px 0}.hra-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}.hra-controls label{display:flex;align-items:center;gap:6px}.hra-controls select{max-width:min(330px,75vw)}.hra-stage{position:relative;height: min(55vh,520px);min-height:280px;background:radial-gradient(ellipse,#d9dee1,#bec9d0);border-radius:8px;overflow:hidden}.hra-stage canvas{display:block;width:100%;height:100%;touch-action:none}.hra-stage [data-status]{position:absolute;z-index:1;left:18px;top:8px;background:#ffffffdd;color:#222;padding:8px}.hra-reference output{display:block;padding:12px 0;font-weight:600;min-height:25px}.hra-reference footer{display:grid;gap:8px}.hra-reference footer small{font-size:11px;line-height:1.5}.hra-reference button,.hra-reference select{padding:8px 12px;border:1px solid #a8afb3;border-radius:6px;background:#fff;color:#222}.hra-reference a{color:#ac2026}[data-theme=dark] .hra-reference{background:#171e23;color:#eef1f2}[data-theme=dark] .hra-stage{background:radial-gradient(ellipse,#34434d,#18252e)}

.hra-reference footer{background:transparent;color:inherit;padding:8px 0;text-align:left}.hra-reference footer a{font-size:13px}.hra-controls{font-size:13px}.hra-reference header .kicker{font-size:11px}

[data-theme=dark] .hra-reference a{color:#ff9398}

.hra-reference.hra-embedded{width:100%;max-height:none;margin:0;border:1px solid #bcc3c8}.hra-embedded .hra-stage{height:clamp(360px,62vh,700px)}.system-view-switch{display:flex;gap:8px;margin:16px 0}.system-view-switch button{padding:12px 22px;border:1px solid #9ba6af;border-radius:8px;cursor:pointer;background:transparent;color:inherit;font-weight:700}.system-view-switch button[aria-pressed=true]{background:#c9232a;color:#fff;border-color:#c9232a}.system-integrated-heading h2{margin:8px 0}.system-integrated-heading p{margin:0}.system-preview [hidden]{display:none!important}@media(max-width:600px){.hra-reference.hra-embedded{padding:12px}.hra-controls select{max-width:70vw}.system-view-switch button{flex:1;padding:12px}}

.system-preview.system-integrated{padding:20px;text-align:left}.system-integrated .system-integrated-heading h2{font-size:26px;margin:6px 0}.hra-embedded>header{display:none}.hra-embedded>p{font-size:13px;margin:0 0 12px}.hra-embedded .hra-stage{height:clamp(340px,57vh,640px)}.hra-embedded .hra-controls{margin:10px 0}.system-integrated-heading>.kicker{font-size:10px}.hra-embedded footer{font-size:12px}@media(max-width:600px){.system-preview.system-integrated{padding:12px}.hra-embedded .hra-stage{min-height:340px}}

.nerve-divisions{display:flex;flex-wrap:wrap;gap:8px;padding:14px;border-top:1px solid var(--line);text-align:left}.nerve-divisions button{padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text)}.nerve-divisions button[aria-pressed=true]{border-color:#8c65b8;background:#72519922}.nerve-divisions strong{margin-right:6px}.nerve-divisions p{width:100%;font-size:12px;line-height:1.5;margin:4px 0}

.lung-detail-controls{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin:12px 0;padding:12px 16px;border:1px solid #9c6c703d;border-radius:8px;background:#b4777610;font-size:13px}.lung-detail-controls[hidden]{display:none}.lung-detail-controls span{font-size:11px;opacity:.8}

/* Long anatomical names must fit the mobile inspection panel. */
@media(max-width:600px){.hra-controls{display:grid;grid-template-columns:minmax(0,1fr)}.hra-controls label,.lung-detail-controls label{min-width:0;max-width:100%;flex-wrap:wrap}.hra-controls select,.lung-detail-controls select{min-width:0;max-width:100%;width:100%;box-sizing:border-box}.lung-detail-controls label{display:flex;gap:6px}.hra-controls input[type=range]{min-width:0;max-width:100%}}
