.sr-study-shelf { --study-matte:#c4ceda; }
.sr-study-shelf[data-category="work"], .sr-study-shelf[data-category="public"] { --study-matte:#c5d2bd; }
.sr-study-shelf[data-category="culture"] { --study-matte:#d4bfae; }
.sr-study-shelf[data-category="everyday"] { --study-matte:#d7c2af; }
.sr-study-shelf[data-category="design"] { --study-matte:#d6d1e1; }
.sr-study-shelf[data-category="data"] { --study-matte:#b7cad0; }
.sr-study-live {
  display:grid; gap:14px; padding:clamp(16px,3vw,40px); border-radius:clamp(12px,1.4vw,22px);
  background:var(--study-matte); color:#263643;
}
.sr-study-live > *, .sr-study { width:min(100%,720px); margin-inline:auto; min-width:0; }
.sr-study-title, .sr-study-picker {
  display:block; font-size:clamp(16px,1.65vw,23px); line-height:1.4; font-weight:650;
}
.sr-study-picker { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.sr-study-picker > span { font-size:.88rem; }
.sr-study-picker select {
  max-width:100%; min-height:44px; border:1px solid #61717b; border-radius:5px;
  padding:6px 24px 6px 9px; color:#263643; background:#fffdf7; font:inherit;
}
.sr-study-viewport {
  width:100%; border-radius:6px; background:#fffdf7; overflow:hidden;
  box-shadow:0 3px 0 rgb(52 52 48 / 14%); aspect-ratio:8/5;
}
.sr-study-stage { position:relative; aspect-ratio:8/5; container-type:inline-size; }
.sr-sketch-drawing, .sr-study-gov { display:block; width:100%; height:100%; position:absolute; inset:0; background-color:#fffdf7; }
.sr-study-gov { background-size:400% 400%; }
.sr-study [data-study-hit], .sr-study [data-study-minus] {
  position:absolute; z-index:1; min-width:44px; min-height:44px;
  margin:0; padding:0; transform:translate(-50%,-50%); border:0; background:transparent;
  border-radius:6px; -webkit-tap-highlight-color:transparent; touch-action:pan-y pinch-zoom;
}
.sr-study :is([data-study-hit],[data-study-minus])::after {
  content:""; position:absolute; inset:1px; border:1px dashed #375d897b; border-radius:5px; pointer-events:none;
}
.sr-study[data-gesture="compare"] [data-study-hit]::after,
.sr-study[data-gesture="scroll"] [data-study-hit]::after { border:0; }
.sr-study[data-gesture="compare"] [data-study-hit] { cursor:ew-resize; }
.sr-study[data-gesture^="drag"] [data-study-hit] { cursor:grab; }
.sr-study[data-gesture^="drag"] [data-study-hit]:active { cursor:grabbing; }
.sr-study[data-gesture="drag-y"] [data-study-hit], .sr-study[data-case="youtube-precise-seeking"] [data-study-hit] { touch-action:none; }
.sr-study[data-case="gmaps-one-hand-zoom"]:not([data-zoom-armed]) [data-study-hit] { touch-action:pan-y pinch-zoom; }
.sr-study-stage { -webkit-user-select:none; user-select:none; }
.sr-study[data-gesture="hold"] [data-study-hit] { -webkit-touch-callout:none; }
.sr-study[data-gesture="scroll"] .sr-study-viewport { overflow-y:auto; }
.sr-study[data-gesture="scroll"] .sr-study-stage { position:sticky; top:0; }
.sr-study-spacer { height:90%; }
.sr-main .sr-study-hint { color:#273946; font-size:clamp(.86rem,1.1vw,1rem); line-height:1.55; padding-top:14px; }
.sr-study-controls { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:8px; }
.sr-study-controls button {
  border:1px solid #707e80; border-radius:6px; min-height:44px; padding:5px 12px;
  background:#fffdf7; color:#263643; font-size:.88rem; font-weight:600;
}
.sr-study-controls button[aria-pressed="true"] { border-color:#263643; background:#263643; color:#fffdf7; }
.sr-study-controls button:disabled { opacity:.55; cursor:default; }
.sr-study-range { flex:1 1 200px; min-width:0; display:grid; grid-template-columns:auto minmax(48px,1fr) auto; gap:8px; align-items:center; font-size:.85rem; }
.sr-study-range span { max-width:10em; overflow-wrap:anywhere; }
.sr-study-range input { width:100%; margin:0; min-height:44px; accent-color:#354f66; cursor:pointer; }
