/* ============================================================
   Lumbosacral Plexus Explorer — module styles
   Derived from Brachial Plexus Explorer 0.8.5 (linked-view rules included).
   Workspace styles use .lp; onboarding uses the module page root .lp-page.
   Module-specific components remain scoped while shared site
   typography, navigation, disclaimer, and footer come from the platform.
   ============================================================ */

.lp-intro-section,
.lp-evidence-section {
  color: var(--ink);
  background: var(--surface);
}
.lp-intro-section { border-bottom: 1px solid var(--line); }
.lp-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
}
.lp-intro-copy h2,
.lp-objectives h2,
.lp-evidence-section h2,
.lp-evidence-section h3 {
  color: var(--ink);
}
.lp-intro-copy h2,
.lp-objectives h2,
.lp-evidence-section h2 {
  font-family: var(--serif);
}
.lp-intro-copy h2 { margin: 14px 0 8px; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.lp-intro-copy p { max-width: 68ch; margin: 0; color: var(--muted); }
.lp-module-meta,
.lp-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.lp-module-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
}
.lp-status {
  padding: 5px 9px;
  color: var(--blue-dark);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
}
.lp-intro-actions { margin-top: 18px; }
.lp-intro-actions a:not(.button) { color: var(--blue); font-size: .82rem; font-weight: 650; text-underline-offset: 3px; }
.lp-intro-actions .button { min-height: 42px; padding: 10px 15px; font-size: .8rem; }
.lp-objectives {
  padding: 0 20px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.lp-objectives summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.lp-objectives summary span { color: var(--muted); font-family: var(--mono); font-size: .7rem; font-weight: 500; }
.lp-objectives ul,
.lp-evidence-grid ul { margin: 0; padding-left: 20px; }
.lp-objectives ul { padding-bottom: 17px; }
.lp-objectives li,
.lp-evidence-grid li { margin: 7px 0; color: var(--muted); }

.lp-evidence-section {
  padding: clamp(48px, 7vw, 78px) 0;
  border-top: 1px solid var(--line);
}
.lp-evidence-shell > .section-heading { margin-bottom: 24px; }
.lp-evidence-shell > .section-heading h2 { margin: 6px 0 0; font-size: clamp(1.75rem, 3vw, 2.4rem); }
.lp-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-evidence-card {
  padding: 0 20px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.lp-evidence-card summary {
  padding: 18px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.lp-evidence-card ul,
.lp-evidence-card p { padding-bottom: 16px; }
.lp-evidence-grid p { margin: 0 0 10px; color: var(--muted); }
.lp-evidence-grid a,
.lp-references a { color: var(--blue); }
.lp-references {
  margin-top: 18px;
  padding: 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.lp-references summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}
.lp-references summary span { color: var(--muted); font-family: var(--mono); font-size: .72rem; font-weight: 500; }
.lp-references ol { margin: 0 0 18px; padding-left: 22px; }
.lp-references li { margin: 10px 0; color: var(--muted); }
.lp-reference-note { margin: 0 0 20px; color: var(--muted); font-size: .82rem; }

.lp {
  /* palette */
  --lp-ink:          var(--ink);
  --lp-muted:        var(--muted);
  --lp-surface:      var(--surface-subtle);
  --lp-card:         var(--surface);
  --lp-line:         var(--line);
  --lp-accent:       var(--blue);
  --lp-accent-ink:   var(--blue-dark);
  --lp-accent-wash:  var(--wash);
  --lp-verified:     var(--verified);
  --lp-danger:       var(--red);
  --lp-warn:         var(--orange);
  --lp-violet:       var(--purple);
  --lp-teal:         var(--teal);
  --lp-nerve:        #d6ad3f;
  --lp-nerve-posterior: #b88327;

  /* type */
  --lp-sans:  var(--sans);
  --lp-serif: var(--serif);
  --lp-mono:  var(--mono);

  /* shape */
  --lp-radius:    var(--radius-sm);
  --lp-shadow:    var(--shadow-sm);
  --lp-shadow-lg: var(--shadow-md);

  /* wiring tiers — used by both the legend and the SVG canvas */
  --lp-tier-root:     var(--blue);
  --lp-tier-trunk:    var(--orange);
  --lp-tier-division: var(--purple);
  --lp-tier-cord:     var(--teal);
  --lp-tier-nerve:    var(--red);

  width: calc(100% - 32px);
  margin: 0 auto;
  padding: 34px 0 64px;
  font-family: var(--lp-sans);
  color: var(--lp-ink);
  line-height: 1.55;
}

.lp *,
.lp *::before,
.lp *::after { box-sizing: border-box; }

.lp button { font-family: inherit; cursor: pointer; }
.lp svg    { display: block; }
.lp [hidden] { display: none !important; }

.lp :focus-visible {
  outline: 2px solid var(--lp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.lp-focused-bar { display: none; }
.lp-tab-compact { display: none; }
.lp-panel-tools { position: relative; }

/* ── Tabs ──────────────────────────────────────────────────── */
.lp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 5px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  border-bottom: 1px solid var(--lp-line);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.lp-tabs::-webkit-scrollbar { display: none; }
.lp-tab {
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: 8px;
  color: var(--lp-muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 12px 20px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  scroll-snap-align: nearest;
}
.lp-tab:hover { color: var(--lp-ink); }
.lp-tab.is-active {
  color: #fff;
  background: var(--lp-ink);
  font-weight: 600;
}

.lp-panel { display: none; padding-top: 4px; }
.lp-panel.is-active { display: block; }
.lp-activity-stage { min-width: 0; }
.lp-pan-cue { display: none; }

/* ── Short interactive tutorial ─────────────────────────── */
.lp-tour {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
}
.lp-tour-card {
  position: fixed;
  right: clamp(14px, 3vw, 36px);
  bottom: clamp(14px, 3vw, 30px);
  width: min(420px, calc(100vw - 28px));
  padding: 20px;
  pointer-events: auto;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-top: 4px solid var(--lp-accent);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(22, 32, 43, .28);
}
.lp-tour-progress {
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-tour-card h2 { margin: 7px 0 6px; font-family: var(--lp-serif); font-size: 1.35rem; }
.lp-tour-card p { margin: 0; color: var(--lp-muted); font-size: .9rem; line-height: 1.55; }
.lp-tour-feedback {
  min-height: 1.5em;
  margin-top: 9px !important;
  color: var(--lp-success, #2f7d32) !important;
  font-weight: 600;
}
.lp-tour-actions { display: flex; align-items: center; gap: 7px; margin-top: 18px; }
.lp-tour-target {
  position: relative;
  z-index: 999;
  outline: 4px solid rgba(27, 79, 160, .28) !important;
  outline-offset: 5px !important;
  border-radius: 8px;
  scroll-margin: 130px;
}
.lp-label.lp-tour-target { outline: none !important; }
.lp-label.lp-tour-target .lp-label-prompt,
.lp-label.lp-tour-target .lp-label-text { filter: drop-shadow(0 0 6px rgba(27, 79, 160, .75)); }

/* ── Toolbar ───────────────────────────────────────────────── */
.lp-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}
.lp-spacer { flex: 1 1 auto; }
.lp-toolbar-note { font-size: .82rem; color: var(--lp-muted); }

.lp-advanced-controls {
  margin-bottom: 10px;
  padding: 0 12px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
}
.lp-advanced-controls summary {
  padding: 10px 2px;
  color: var(--lp-muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
}
.lp-advanced-controls > div { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 0 12px; }

.lp-score {
  font-family: var(--lp-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--lp-accent-ink);
  margin-right: 6px;
}

.lp-btn {
  min-height: 44px;
  padding: 5px 13px;
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  background: var(--lp-card);
  color: var(--lp-muted);
  font-size: .78rem;
  font-weight: 500;
  transition: color .15s, border-color .15s, background .15s;
}
.lp-btn:hover {
  color: var(--lp-accent);
  border-color: var(--lp-accent);
  background: var(--lp-accent-wash);
}
.lp-btn--primary {
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: #fff;
  font-weight: 600;
}
.lp-btn--primary:hover { background: var(--lp-accent-ink); border-color: var(--lp-accent-ink); color: #fff; }

.lp-hint {
  font-size: .78rem;
  font-style: italic;
  color: var(--lp-muted);
  background: var(--lp-accent-wash);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 8px 14px;
  margin-bottom: 14px;
}

/* ── Anatomy figure ────────────────────────────────────────── */
.lp-figure {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(10px, 2vw, 24px);
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
}
.lp-figure #lp-anat-svg {
  width: min(100%, 1120px);
  height: auto;
  overflow: visible;
}
.lp-anat-headings text {
  fill: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lp-anat-headings line { stroke: var(--lp-line); stroke-width: 1; }
.lp-path-halo-color { flood-color: var(--lp-card); }
.lp-anat-tier,
.lp-anat-network,
.lp-anat-collaterals {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-anat-tier path {
  stroke: var(--lp-nerve);
  stroke-width: 6.5;
  opacity: .98;
}
.lp-anat-tier--division path,
.lp-anat-tier--nerve path,
.lp-anat-collaterals path { filter: url(#lp-path-separation); }
.lp-anat-network .lp-path--posterior { stroke: var(--lp-nerve-posterior); }
.lp-anat-tier circle,
.lp-anat-collaterals circle {
  fill: var(--lp-nerve);
  stroke: var(--lp-card);
  stroke-width: 2.5;
}
.lp-anat-junction-caps circle {
  fill: var(--lp-nerve);
  stroke: var(--lp-card);
  stroke-width: 2;
}
.lp-anat-junction-caps .lp-anat-junction-cap--posterior {
  fill: var(--lp-nerve-posterior);
}
.lp-anat-collaterals path {
  stroke: var(--lp-nerve);
  stroke-width: 3;
  opacity: .52;
}
.lp-anat-collaterals circle { opacity: .68; }
.lp-anat-collaterals {
  transition: opacity .18s ease;
}
.lp-anat-collaterals.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.lp-anat-network path {
  transition: opacity .16s ease, stroke-width .16s ease;
}
.lp-anat-network.is-tracing path { opacity: .1; }
.lp-anat-network.is-tracing path.is-traced {
  opacity: 1;
  stroke-width: 8;
}
.lp-anat-network.is-tracing .lp-anat-collaterals path.is-traced {
  stroke-width: 4.5;
}
/* Sciatic sheath: tibial and common fibular drawn together without a shared node; its label
   sits on the top edge of the outline, like a heading on the box. */
.lp-anat-network .lp-anat-sheath {
  fill: none;
  stroke: var(--lp-nerve);
  stroke-width: 2.5;
  stroke-dasharray: 9 6;
  opacity: .75;
  transition: opacity .16s ease, stroke .16s ease;
}
.lp .lp-anat-network.is-tracing .lp-anat-sheath { opacity: .25; }
.lp .lp-anat-network.is-tracing .lp-anat-sheath.is-traced { opacity: 1; stroke: var(--lp-accent); stroke-width: 3.5; }
.lp-label { cursor: pointer; }
.lp-label text { pointer-events: none; }
.lp-label-hit { pointer-events: all; }
.lp-label-selection {
  fill: var(--lp-accent-wash);
  stroke: var(--lp-accent);
  stroke-width: 2;
  stroke-dasharray: 4 3;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}
.lp-label-prompt { transition: stroke-width .15s, filter .15s; }
.lp-label:hover .lp-label-prompt { filter: brightness(.96); stroke-width: 2; }
.lp-label:hover .lp-label-text { fill: var(--lp-accent); }
.lp-label.is-selected .lp-label-text { font-weight: 700; }

@media (max-width: 1099px) {
  .lp-intro-grid,
  .lp-evidence-grid { grid-template-columns: 1fr; }
  .lp { width: min(calc(100% - 24px), var(--shell, 1240px)); padding-top: 22px; }
  .lp-toolbar { align-items: stretch; }
  .lp-spacer { display: none; }
  .lp-activity-nav {
    position: sticky;
    z-index: 18;
    top: 72px;
    margin: 0 -2px 14px;
    padding-top: 6px;
    background: color-mix(in srgb, var(--lp-card) 94%, transparent);
    backdrop-filter: blur(10px);
  }
  .lp-tabs { margin: 0; }
  .lp-tab { padding: 10px 13px; }
  #module-controls,
  #module-visualization { scroll-margin-top: 142px; }
  .lp-tour-card { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 17px; }
  .lp-tour-actions { flex-wrap: wrap; }
  .lp-tour-actions .lp-spacer { display: block; flex: 1 1 24px; }
  .lp-figure { overflow-x: auto; justify-content: flex-start; }
  .lp-figure #lp-anat-svg { min-width: 920px; }
  .lp-pan-cue {
    position: absolute;
    z-index: 8;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    margin: 0;
    padding: 7px 10px;
    color: #fff;
    background: rgba(22, 32, 43, .88);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(22, 32, 43, .18);
    font-family: var(--lp-mono);
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .03em;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .lp-pan-cue.is-dismissed { opacity: 0; transform: translateY(-4px); }
}

.lp-credit {
  text-align: center;
  padding: 10px 0 0;
  font-size: .68rem;
  font-style: italic;
  color: var(--lp-muted);
}

/* ── Detail card (nerve / branch) ──────────────────────────── */
.lp-detail {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--lp-line);
  border-left: 3px solid var(--lp-detail-accent, var(--lp-accent));
  border-radius: var(--lp-radius);
  background: var(--lp-card);
  box-shadow: var(--lp-shadow);
}
.lp-detail-kicker {
  font-family: var(--lp-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-detail-accent, var(--lp-accent));
}
.lp-detail-title {
  font-family: var(--lp-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2px 0 6px;
}
.lp-detail-meta { font-size: .8rem; color: var(--lp-muted); margin-bottom: 14px; }
.lp-detail-meta strong { color: var(--lp-ink); font-weight: 600; }

.lp-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.lp-detail-cell {
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  padding: 12px;
}
.lp-detail-cell h4 {
  font-family: var(--lp-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 6px;
}
.lp-detail-cell ul { margin: 0; padding-left: 16px; }
.lp-detail-cell li,
.lp-detail-cell p { font-size: .82rem; line-height: 1.6; margin: 0 0 3px; }

.lp-mnemonic {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--lp-accent-wash);
  border: 1px solid var(--lp-line);
  border-radius: 8px;
  font-size: .84rem;
  font-style: italic;
  line-height: 1.7;
}

/* ── Connect the nodes ─────────────────────────────────────── */
.lp-canvas-wrap {
  overflow-x: auto;
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 8px;
  box-shadow: var(--lp-shadow);
}
#lp-connect-svg { margin: 0 auto; min-width: 720px; }
.lp-board-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.lp-board-switch .lp-btn { min-height: 44px; }
.lp-board-switch [aria-pressed=true] { background: var(--lp-accent); border-color: var(--lp-accent); color: var(--lp-surface); }
.lp-board-note { color: var(--lp-muted); font-size: .84rem; }
.lp-cnode { cursor: pointer; }
.lp-cnode:hover rect { filter: brightness(.97); }

#lp-connect-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--lp-radius);
  font-size: .9rem;
  line-height: 1.7;
  border: 1px solid var(--lp-result-accent, var(--lp-line));
  background: var(--lp-result-wash, var(--lp-surface));
}
#lp-connect-result b { color: var(--lp-result-accent, var(--lp-ink)); font-family: var(--lp-mono); font-size: 1.05rem; }
#lp-connect-result span { color: var(--lp-muted); font-size: .82rem; }

.lp-legend {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--lp-mono);
  font-size: .72rem;
  color: var(--lp-muted);
}
.lp-legend li { display: flex; align-items: center; gap: 6px; }
.lp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-accent); }
.lp-dot[data-lp-tier="root"]     { background: var(--lp-tier-root); }
.lp-dot[data-lp-tier="trunk"]    { background: var(--lp-tier-trunk); }
.lp-dot[data-lp-tier="division"] { background: var(--lp-tier-division); }
.lp-dot[data-lp-tier="nerve"]    { background: var(--lp-tier-nerve); }

/* ── Explorer ──────────────────────────────────────────────── */
.lp-lede { color: var(--lp-muted); font-size: .9rem; margin: 20px 0; }
.lp-rootpicker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.lp-rootbtn {
  padding: 12px 26px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-card);
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 1.05rem;
  font-weight: 600;
  box-shadow: var(--lp-shadow);
  transition: color .15s, border-color .15s, background .15s;
}
.lp-rootbtn:hover { color: var(--lp-accent); border-color: var(--lp-accent); }
.lp-rootbtn.is-active {
  border: 2px solid var(--lp-accent);
  background: var(--lp-accent-wash);
  color: var(--lp-accent-ink);
}

.lp-empty { color: var(--lp-muted); text-align: center; padding: 60px 0; font-size: 1rem; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lp-infocard {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  padding: 18px;
  box-shadow: var(--lp-shadow);
}
.lp-infocard h3 {
  font-family: var(--lp-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-accent);
  margin-bottom: 12px;
}
.lp-infocard p  { font-size: .95rem; margin: 0; }
.lp-infocard ul { margin: 0; padding-left: 16px; }
.lp-infocard li { font-size: .84rem; margin-bottom: 3px; }

.lp-chip {
  display: inline-block;
  padding: 5px 13px;
  margin: 3px;
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: var(--lp-accent-wash);
  color: var(--lp-accent-ink);
  font-size: .82rem;
}

/* ── Quiz ──────────────────────────────────────────────────── */
#lp-panel-quiz { max-width: 720px; margin: 0 auto; padding-top: 24px; }

.lp-quiz-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--lp-mono);
  font-size: .78rem;
  color: var(--lp-muted);
  margin-bottom: 14px;
}
.lp-quiz-meta strong { color: var(--lp-accent); }

.lp-progress { height: 5px; background: var(--lp-line); border-radius: 3px; margin-bottom: 24px; }
.lp-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--lp-accent), var(--lp-violet));
  transition: width .4s ease;
}

.lp-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--lp-shadow);
}
.lp-q-text { font-family: var(--lp-serif); font-size: 1.05rem; line-height: 1.7; margin: 0; }

.lp-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  margin-bottom: 9px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-card);
  color: var(--lp-ink);
  text-align: left;
  font-size: .92rem;
  box-shadow: var(--lp-shadow);
  transition: border-color .15s, background .15s;
}
.lp-choice:hover:not(:disabled) { border-color: var(--lp-accent); background: var(--lp-accent-wash); }
.lp-choice:disabled { cursor: default; }
.lp-choice.is-correct { background: var(--verified-wash); border-color: var(--lp-verified); color: var(--lp-ink); }
.lp-choice.is-wrong   { background: var(--danger-wash); border-color: var(--lp-danger); color: var(--lp-danger); }
.lp-choice.is-dimmed  { color: var(--lp-muted); opacity: .6; }

.lp-choice-key {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lp-accent-wash);
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: .72rem;
  font-weight: 600;
}
.lp-choice.is-correct .lp-choice-key { background: var(--lp-verified); color: #fff; }
.lp-choice.is-wrong   .lp-choice-key { background: var(--lp-danger);   color: #fff; }

.lp-pearl {
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  background: var(--lp-accent-wash);
  font-size: .88rem;
  line-height: 1.7;
}
.lp-pearl b {
  color: var(--lp-accent);
  font-family: var(--lp-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  margin-right: 8px;
}

.lp-btn--next {
  width: 100%;
  padding: 13px;
  background: var(--lp-accent);
  border-color: var(--lp-accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
}
.lp-btn--next:hover { background: var(--lp-accent-ink); border-color: var(--lp-accent-ink); color: #fff; }

#lp-quiz-results { text-align: center; padding: 32px 0; }
.lp-score-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--lp-result-accent, var(--lp-accent));
  background: var(--lp-result-wash, var(--lp-accent-wash));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lp-score-pct {
  font-family: var(--lp-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--lp-result-accent, var(--lp-accent));
}
.lp-score-frac { font-family: var(--lp-mono); font-size: .72rem; color: var(--lp-muted); }
#lp-result-label { font-family: var(--lp-serif); font-size: 1.4rem; margin: 0 0 16px; }

#lp-missed-list { text-align: left; margin: 16px 0; }
.lp-missed-head {
  font-family: var(--lp-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-muted);
  margin-bottom: 8px;
}
.lp-missed {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--danger-wash);
  border: 1px solid var(--danger-line);
  border-radius: var(--lp-radius);
}
.lp-missed-q { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.lp-missed-a { font-size: .85rem; font-weight: 500; color: var(--lp-ink); margin-bottom: 6px; }
.lp-missed-e { font-size: .85rem; line-height: 1.6; color: var(--lp-muted); }
.lp-perfect  { color: var(--lp-verified); font-size: .9rem; }

/* ── Footer ────────────────────────────────────────────────── */
/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lp-intro-grid,
  .lp-evidence-shell { width: min(calc(100% - 24px), var(--shell, 1240px)); }
  .lp { padding: 0 14px 32px; }
  .lp-badge { margin-left: 0; }
  .lp-tab { padding: 10px 14px; font-size: .84rem; }
  .lp-detail-grid { grid-template-columns: 1fr; }
}

/* ── Focused phone and tablet workspace ──────────────────── */
@media (max-width: 1099px) {
  .lp-page .module-start-actions { --enter-action: inline-flex; }
  .lp.lp-focused-entry-ready:not(.is-focused) { display: none; }

  body.lp-workspace-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .lp.is-focused {
    position: fixed;
    z-index: 1200;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    color: var(--lp-ink);
    background: var(--lp-surface);
    overflow: hidden;
  }

  .lp.is-focused .lp-focused-bar {
    grid-row: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    min-height: calc(54px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0;
    color: #fff;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  .lp-focused-title {
    min-width: 0;
    text-align: center;
    line-height: 1.15;
  }
  .lp-focused-title strong,
  .lp-focused-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .lp-focused-title strong { font-size: .88rem; }
  .lp-focused-title span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .68);
    font-family: var(--lp-mono);
    font-size: .62rem;
    letter-spacing: .04em;
  }

  .lp-focused-action {
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 600;
  }
  .lp-focused-action:hover { background: rgba(255, 255, 255, .1); }
  .lp-focused-action:last-child { justify-self: end; }

  .lp.is-focused .lp-activity-nav {
    position: static;
    z-index: 20;
    grid-row: 3;
    margin: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--lp-card);
    border-top: 1px solid var(--lp-line);
    backdrop-filter: none;
  }
  .lp.is-focused .lp-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    padding: 3px;
    overflow: visible;
  }
  .lp.is-focused .lp-tab {
    min-width: 0;
    min-height: 44px;
    padding: 7px 3px;
    font-size: .72rem;
    line-height: 1.1;
  }
  .lp.is-focused .lp-tab-wide { display: none; }
  .lp.is-focused .lp-tab-compact { display: inline; }

  .lp.is-focused .lp-activity-stage {
    position: relative;
    z-index: 1;
    grid-row: 2;
    min-height: 0;
    overflow: hidden;
    background: var(--lp-surface);
  }
  .lp.is-focused .lp-panel.is-active {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .lp.is-focused .lp-panel-tools {
    display: none;
    position: absolute;
    z-index: 12;
    top: 8px;
    left: 8px;
    right: 8px;
    max-height: min(50dvh, 420px);
    padding: 10px 12px;
    overflow: auto;
    background: color-mix(in srgb, var(--lp-card) 97%, transparent);
    border: 1px solid var(--lp-line);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(22, 32, 43, .22);
    backdrop-filter: blur(12px);
  }
  .lp.is-focused .lp-panel-tools.is-open { display: block; }
  .lp.is-focused .lp-panel-tools .lp-toolbar { padding-top: 0; }
  .lp.is-focused .lp-panel-tools .lp-hint { margin-bottom: 0; }

  .lp.is-focused #lp-panel-anat {
    overflow: hidden;
    background: var(--lp-card);
  }
  .lp.is-focused .lp-figure {
    width: 100%;
    height: 100%;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    scrollbar-width: thin;
  }
  .lp.is-focused .lp-pan-cue {
    top: 10px;
  }
  .lp.is-focused .lp-figure #lp-anat-svg {
    flex: 0 0 auto;
    width: 920px;
    min-width: 920px;
    height: auto;
  }
  .lp.is-focused .lp-credit { display: none; }

  .lp.is-focused #lp-panel-connect { padding: 8px; }
  .lp.is-focused .lp-board-switch { margin-bottom: 8px; }
  .lp.is-focused .lp-board-switch .lp-btn { padding: 8px 10px; font-size: .8rem; }
  .lp.is-focused .lp-board-note { display: none; }
  .lp.is-focused .lp-canvas-wrap {
    width: 100%;
    min-height: calc(100% - 120px);
    overflow: auto;
    touch-action: pan-x pan-y;
  }
  .lp.is-focused #lp-connect-svg { min-width: 760px; }
  .lp.is-focused .lp-legend { padding-bottom: 10px; }

  .lp.is-focused #lp-panel-explorer,
  .lp.is-focused #lp-panel-quiz {
    padding: 16px;
    background: var(--lp-surface);
  }
  .lp.is-focused #lp-panel-quiz { max-width: none; }
  .lp.is-focused .lp-rootpicker {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .lp.is-focused .lp-rootbtn {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 4px;
  }

  .lp.is-focused .lp-tour-card {
    bottom: calc(74px + env(safe-area-inset-bottom));
    max-height: min(48dvh, 390px);
    overflow: auto;
  }
  .lp .lp-tour-actions #lp-tour-next:disabled { opacity: .72; cursor: not-allowed; }
}

/* Lumbosacral Plexus Explorer only. Cascade: base/compact -> wide -> large wide
   -> focused portrait/short view -> final short landscape. Rows/areas change together. */
.lp #lp-panel-anat.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 540px 460px auto;
  grid-template-areas: "tools" "views" "map" "explanation" "credit";
  gap: 12px;
  align-items: stretch;
}
.lp #lp-panel-anat > .lp-panel-tools { grid-area: tools; }
.lp #lp-panel-anat > .lp-figure {
  grid-area: map;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  overscroll-behavior: contain;
}
.lp #lp-panel-anat > .lp-body { grid-area: map; }
.lp #lp-panel-anat > .lp-pathway { grid-area: explanation; }
.lp #lp-panel-anat > .lp-credit { grid-area: credit; }
.lp .lp-figure #lp-anat-svg { min-width: 0; flex: 0 0 auto; max-width: none; }
.lp .lp-pathway {
  min-width: 0;
  min-height: 0;
  padding: 16px;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  font-size: .88rem;
}
.lp .lp-pathway-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp .lp-pathway .lp-btn { min-height: 44px; white-space: normal; }
.lp .lp-pathway p { margin: 10px 0; }
.lp .lp-pathway summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.lp .lp-pathway ul { padding-left: 20px; }
.lp .lp-pathway li { margin-bottom: 10px; }
.lp .lp-clinical { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--lp-line); }
.lp .lp-clinical > h2 { margin: 0 0 10px; font: 600 1rem/1.4 var(--lp-sans); }
.lp .lp-clinical .lp-detail { margin-top: 12px; padding: 14px; }
.lp .lp-clinical .lp-detail-grid { grid-template-columns: minmax(0, 1fr); }
.lp .lp-anatomy-views { grid-area: views; display: flex; flex-wrap: wrap; gap: 8px; }
.lp .lp-anatomy-views .lp-btn { min-height: 44px; }
.lp .lp-structure-browser { position: relative; margin-left: auto; }
.lp .lp-structure-browser > summary { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--lp-line); border-radius: 8px; cursor: pointer; font-size: .85rem; font-weight: 600; }
.lp .lp-structure-browser > summary::after { content: ' ▾'; margin-left: 8px; }
.lp .lp-structure-list { position: absolute; z-index: 30; top: 100%; right: 0; width: min(380px, calc(100vw - 24px)); max-height: min(55dvh, 420px, calc(100dvh - 180px)); overflow: auto; overscroll-behavior: contain; padding: 12px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 10px; box-shadow: 0 12px 32px rgba(22, 32, 43, .2); }
.lp .lp-structure-list h3 { margin: 12px 0 4px; font-size: .85rem; }
.lp .lp-structure-list h3:first-child { margin-top: 0; }
.lp .lp-structure-list .lp-btn { display: block; width: 100%; min-height: 44px; margin: 4px 0; text-align: left; white-space: normal; }
.lp .lp-structure-list [aria-pressed=true]::before { content: '✓ '; }
.lp .lp-structure-browser :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.lp .lp-anatomy-views [aria-pressed=true] { background: var(--lp-accent); color: var(--lp-surface); }
.lp .lp-compare-view { display: none; }
.lp .lp-practice-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.lp .lp-practice-toggle input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--lp-accent); }
.lp .lp-zoom { display: flex; align-items: center; gap: 6px; }
.lp .lp-zoom .lp-btn { min-width: 44px; }
.lp .lp-zoom span { min-width: 38px; text-align: center; }
.lp .lp-label.is-route-node .lp-label-text { fill: var(--lp-accent); font-weight: 700; }
.lp .lp-label.is-route-node .lp-label-hit { stroke: none; }
.lp .lp-label.is-pinned .lp-label-hit { stroke: var(--lp-accent); stroke-width: 2; stroke-dasharray: 5 3; }
.lp .lp-anat-network .lp-anat-tier path { stroke-width: 5; }
.lp .lp-anat-network.is-tracing path { opacity: .18; }
.lp .lp-anat-network.is-tracing path.is-traced { opacity: 1; stroke: var(--lp-accent); stroke-width: 6; }
.lp .lp-anat-network.is-tracing .lp-anat-collaterals path.is-traced { stroke-width: 4; }
.lp .lp-anat-network.is-tracing circle { opacity: .25; }
.lp .lp-anat-network.is-tracing circle.is-traced { opacity: 1; fill: var(--lp-accent); stroke-width: 2; }
.lp .lp-anat-network path.lp-trace-stem { display: none; fill: none; }
.lp .lp-anat-network.is-tracing path.lp-trace-stem.is-traced { display: block; }
.lp .lp-anat-network.is-tracing [data-lp-communication] { opacity: .4; stroke-dasharray: 5 4; }
.lp .lp-pathway button:disabled { cursor: default; opacity: .55; }
.lp #lp-panel-anat > .lp-figure.is-overview { align-items: center; justify-content: center; }
.lp .lp-figure.is-overview .lp-pan-cue { display: none; }

.lp .lp-body { display: grid; grid-template-rows: minmax(0, 1fr) minmax(100px, 34%); gap: 12px; min-width: 0; min-height: 0; overflow: hidden; padding: 12px; background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: var(--lp-radius); }
.lp .lp-body-viewport { position: relative; grid-row: 1; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface-subtle); border-radius: 10px; }
.lp .lp-body-settings { grid-row: 2; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 4px 12px; border-top: 1px solid var(--lp-line); }
.lp .lp-body h3 { margin: 0 0 8px; font-size: 1rem; }
.lp .lp-body p { margin: 8px 0; font-size: .84rem; }
.lp #lp-body-summary { min-height: 4.5em; }
.lp .lp-body-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; margin: 8px 0; }
.lp .lp-body select { min-height: 44px; width: 100%; min-width: 0; padding: 8px; font: inherit; color: var(--lp-ink); background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 8px; }
.lp #lp-body-model { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; background: var(--surface-subtle); touch-action: none; border-radius: 10px; cursor: grab; }
.lp #lp-body-model:active { cursor: grabbing; }
.lp #lp-body-model:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.lp .lp-body-opacity { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .85rem; font-weight: 600; }
.lp .lp-body-opacity input { grid-column: 1 / -1; width: 100%; min-height: 44px; margin: 0; accent-color: var(--lp-accent); }
.lp .lp-body-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp .lp-body-controls .lp-btn { min-width: 44px; min-height: 44px; }
.lp .lp-body-controls label { display: inline-flex; min-height: 44px; gap: 6px; align-items: center; }
.lp .lp-body-controls input { width: 20px; height: 20px; accent-color: var(--lp-accent); }
.lp .lp-body-options { margin: 12px 0; border-top: 1px solid var(--lp-line); }
.lp .lp-body-options summary { min-height: 44px; padding: 10px 0; font-weight: 600; font-size: .85rem; cursor: pointer; }
.lp #lp-body-matches { padding-left: 20px; }
.lp #lp-body-matches .lp-btn { min-height: 44px; text-align: left; white-space: normal; }
.lp #lp-body-matches [aria-pressed=true]::before { content: '✓ '; }
.lp .lp-body-credit { color: var(--lp-muted); }
.lp .lp-body :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Wide: uncapped workspace gives the diagram most of the width next to the model.
   Clinical content remains a fixed scrolling region, independent of hover text. */
@media (min-width: 1100px) and (min-height: 501px) {
  .lp .lp-compare-view { display: inline-flex; }
  .lp #lp-panel-anat.is-active {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto auto 720px auto;
    grid-template-areas: "tools tools" "views views" "map explanation" "credit credit";
  }
  .lp #lp-panel-anat.is-active[data-anatomy-view=both] {
    grid-template-columns: minmax(0, 2.4fr) minmax(340px, 1fr);
    grid-template-rows: auto auto 720px 460px auto;
    grid-template-areas: "tools tools" "views views" "map body" "explanation explanation" "credit credit";
  }
  .lp #lp-panel-anat[data-anatomy-view=both] > .lp-body { grid-area: body; }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-pathway {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-content: start;
    gap: 24px;
  }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-clinical { margin: 0; padding: 0 0 0 24px; border-top: 0; border-left: 1px solid var(--lp-line); }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Large wide: map, model and persistent clinical rail share one row. */
@media (min-width: 1600px) and (min-height: 501px) {
  .lp #lp-panel-anat.is-active[data-anatomy-view=both] {
    grid-template-columns: minmax(0, 1fr) 360px 340px;
    grid-template-rows: auto auto minmax(720px, 82dvh) auto;
    grid-template-areas: "tools tools tools" "views views views" "map body explanation" "credit credit credit";
  }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-pathway { display: block; }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-clinical { margin-top: 16px; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--lp-line); }
  .lp #lp-panel-anat[data-anatomy-view=both] .lp-detail-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Focused portrait comes after both desktop grids; the panel never overlays the map. */
@media (max-width: 1099px) {
  .lp.is-focused #lp-panel-anat.is-active {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(80px, 1fr) minmax(56px, .7fr);
    grid-template-areas: "views" "map" "explanation";
    gap: 0;
    overflow: hidden;
  }
  .lp.is-focused .lp-anatomy-views { padding: 8px; background: var(--lp-surface); }
  .lp.is-focused #lp-panel-anat > .lp-figure { height: auto; min-height: 0; }
  .lp.is-focused #lp-panel-anat > .lp-pathway { padding: 10px 12px; border-radius: 0; border-width: 1px 0 0; }
  .lp.is-focused .lp-figure #lp-anat-svg { min-width: 0; }
  .lp.is-focused #lp-panel-anat > .lp-body { grid-area: map; grid-template-rows: minmax(0, 1fr) minmax(56px, 32%); gap: 6px; border-radius: 0; padding: 6px; }
  .lp.is-focused .lp-anatomy-views .lp-btn { padding: 8px 10px; font-size: .8rem; }
  .lp.is-focused .lp-structure-browser > summary { padding: 8px 10px; font-size: .8rem; }
  .lp .lp-body select { font-size: 1rem; }
}
/* Focused tablets: map and model remain alongside each other above clinical detail. */
@media (min-width: 701px) and (max-width: 1099px) and (min-height: 501px) {
  .lp .lp-compare-view { display: inline-flex; }
  .lp #lp-panel-anat.is-active[data-anatomy-view=both],
  .lp.is-focused #lp-panel-anat.is-active[data-anatomy-view=both] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 35%);
    grid-template-areas: "views views" "map body" "explanation explanation";
  }
  .lp:not(.is-focused) #lp-panel-anat.is-active[data-anatomy-view=both] {
    grid-template-rows: auto auto 480px 360px auto;
    grid-template-areas: "tools tools" "views views" "map body" "explanation explanation" "credit credit";
  }
  .lp #lp-panel-anat[data-anatomy-view=both] > .lp-body { grid-area: body; }
  .lp.is-focused #lp-panel-anat[data-anatomy-view=both] .lp-pathway { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-content: start; gap: 16px; }
  .lp.is-focused #lp-panel-anat[data-anatomy-view=both] .lp-clinical { margin: 0; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--lp-line); }
}
/* Final short landscape: one selected anatomy view beside the clinical panel. */
@media (min-width: 501px) and (max-width: 1099px) and (max-height: 500px) {
  .lp.is-focused #lp-panel-anat.is-active {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "views views" "map explanation";
  }
  .lp.is-focused #lp-panel-anat > .lp-pathway { border-width: 0 0 0 1px; }
  .lp.is-focused .lp-focused-bar { min-height: calc(44px + env(safe-area-inset-top)); }
  .lp.is-focused .lp-activity-nav { padding-top: 2px; padding-bottom: calc(2px + env(safe-area-inset-bottom)); }
  .lp.is-focused #lp-panel-anat > .lp-body { grid-template-rows: minmax(0, 1fr) 56px; }
}
@media (max-width: 700px) {
  .lp.is-focused .lp-anatomy-views { flex-wrap: nowrap; gap: 4px; }
  .lp.is-focused .lp-anatomy-views .lp-btn,
  .lp.is-focused .lp-structure-browser > summary { padding: 8px 6px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .lp-tabs, .lp-toolbar, .lp-btn, .lp .lp-anatomy-views, .lp .lp-body { display: none !important; }
  .lp-panel { display: block !important; page-break-inside: avoid; }
}
