[data-part-shortcuts] {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  column-gap: 12px; padding: 0 clamp(12px, 2vw, 28px);
  background: var(--studio-paper, #fff); color: #302822;
}
[data-part-shortcuts][hidden], [data-part-shortcuts] [hidden],
.photo-comparison[hidden], .photo-comparison [hidden] { display: none; }
.photo-parts { display: flex; gap: clamp(6px, 1.3vw, 18px); align-items: center; }
.photo-part, .photo-compare-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 2px;
  min-height: 42px; font-size: .82rem; line-height: 1.35;
}
.photo-part[aria-pressed=true] .photo-part-name { text-decoration: underline; text-underline-offset: .28em; }
.photo-part-swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0003; }
.photo-compare-button:hover span, .photo-part:hover .photo-part-name { text-decoration: underline; text-underline-offset: .28em; }
.photo-compare-icon { width: 15px; height: 12px; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 48%, transparent 48%); }
.photo-comparison {
  position: absolute; z-index: 2; inset: 0; overflow: hidden; --split: 50%;
}
.study-board .study-stage .photo-comparison-original {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0); pointer-events: none;
}
.photo-comparison-divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 1px; background: #fff; box-shadow: 0 0 2px #29251b; pointer-events: none; }
.photo-compare-handle {
  position: absolute; top: 50%; left: 0; height: 32px; width: 32px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fffffff5; border: 1px solid #665c54; box-shadow: 0 2px 5px #0002;
}
.photo-compare-handle::before, .photo-compare-handle::after {
  content: ''; position: absolute; width: 5px; height: 5px; top: 12px; border-block-start: 1px solid #332d27; border-inline-start: 1px solid #332d27;
}
.photo-compare-handle::before { left: 7px; transform: rotate(-45deg); }
.photo-compare-handle::after { right: 7px; transform: rotate(135deg); }
.photo-comparison-label {
  position: absolute; bottom: 10px; padding: 3px 8px; background: #fffffff2; color: #302822;
  font-size: .75rem; line-height: 1.5; pointer-events: none;
}
.photo-comparison-label.original { left: 8px; }
.photo-comparison-label.finish { right: 8px; }
.photo-comparison-range {
  position: absolute; z-index: 3; inset: 0; height: 100%; width: 100%; margin: 0;
  cursor: ew-resize; opacity: 0; touch-action: pan-y;
}
.photo-comparison:has(.photo-comparison-range:focus-visible) .photo-compare-handle { outline: 2px solid #6e343b; outline-offset: 3px; }
@media(max-width:420px) {
  [data-part-shortcuts] { column-gap: 3px; }
  .photo-parts { gap: 8px; }
  .photo-part, .photo-compare-button { font-size: .76rem; gap: 4px;}
}
