/* V343: workout shell only. Existing theme/font/footer and workout rendering stay intact. */
html[data-workout-shell="v343"] {
  --lw-shell-site-nav-height: 56px;
  --lw-shell-contents-height: 56px;
  --lw-shell-scroll-offset: calc(var(--lw-shell-site-nav-height) + var(--lw-shell-contents-height) + 16px);
  scroll-padding-top: var(--lw-shell-scroll-offset);
}
html[data-workout-shell="v343"] .lw-page > #workout-header {
  position: static;
  margin-bottom: 10px;
}
html[data-workout-shell="v343"] .lw-page > .live-site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  height: var(--lw-shell-site-nav-height);
  min-height: var(--lw-shell-site-nav-height);
  box-sizing: border-box;
  margin: 0;
  padding: 6px 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 14px;
  font: 500 12px/1.4 var(--live-font, "Geist Mono TRS", ui-monospace, monospace);
}
html[data-workout-shell="v343"] .lw-page > .live-site-nav::-webkit-scrollbar { display: none; }
html[data-workout-shell="v343"] .live-site-nav > a {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  font: inherit;
  white-space: nowrap;
}
html[data-workout-shell="v343"] .live-site-nav > a[aria-current="page"] {
  color: var(--live-ink, #f5f1f1);
  background: color-mix(in srgb, var(--live-accent, #ef4b55) 16%, transparent);
}
html[data-workout-shell="v343"] .live-site-nav > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}
html[data-workout-shell="v343"] .lw-page > .lw-shell-pilot {
  width: 100%;
  max-width: none;
  margin: 4px 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--live-muted, #bfb5b6);
  font: 400 11px/1.5 var(--live-font, "Geist Mono TRS", ui-monospace, monospace);
}
html[data-workout-shell="v343"] .lw-shell-pilot > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 4px;
  cursor: pointer;
  list-style: none;
}
html[data-workout-shell="v343"] .lw-shell-pilot > summary::-webkit-details-marker { display: none; }
html[data-workout-shell="v343"] .lw-shell-pilot > summary::marker { content: ""; }
html[data-workout-shell="v343"] .lw-shell-pilot > summary strong {
  display: inline;
  font: inherit;
  color: inherit;
}
html[data-workout-shell="v343"] .lw-shell-pilot > summary svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
html[data-workout-shell="v343"] .lw-shell-pilot[open] > summary svg { transform: rotate(90deg); }
html[data-workout-shell="v343"] .lw-shell-pilot > summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 8px;
}
html[data-workout-shell="v343"] .lw-shell-pilot > p {
  max-width: 84ch;
  margin: 0 0 12px;
  padding: 0 4px 0 25px;
  font: inherit;
  line-height: 1.6;
}
/* Existing workout-contents.ts measures this exact site nav's bottom on scroll/resize.
   Preserve its inline --lw-contents-top instead of adding another offset engine. */
html[data-workout-shell="v343"] #workout .lw-contents {
  top: var(--lw-contents-top, var(--lw-shell-site-nav-height));
  min-height: var(--lw-shell-contents-height);
}
html[data-workout-shell="v343"] #workout #lw-own-range { scroll-margin-top: 0; }
html[data-workout-shell="v343"] #workout .lv5-profile-side { top: var(--lw-shell-scroll-offset); }
@media (max-width: 600px) {
  /* Keep the current destination visible immediately, without scroll state or JS. */
  html[data-workout-shell="v343"] .live-site-nav > a[aria-current="page"] { order: -1; }
}
