/* 전시 「내 조합 만들기」 아래 시트 (Codes 백로그 309, 2026-10-30) — js/exhibit_combo.js가 만드는 요소만 꾸민다.
   볼트 code/스니펫에서 옮겨 고친 것: 「아래 시트 여닫기와 끌어 닫기」(#comboSheet 여닫기 전환), 「채움 알약 단추」(.cs-pill, @property --fill).
   둘 다 argyleink/gui-challenges(Apache-2.0)를 바탕으로 한 스니펫 — 출처·고친 곳은 js/exhibit_combo.js 머리 주석과 CREDITS.md.
   .dc-dot(구역 색 점)은 css/exhibit.css에 있다. */
#comboSheet { --dc-sub: color-mix(in srgb, var(--text) 74%, var(--card)); }
@property --fill { syntax: '<percentage>'; inherits: true; initial-value: 0%; }
#comboSheet { box-sizing: border-box; position: fixed; inset: auto 0 0 0; margin: 0 auto; width: min(640px, 100vw); max-width: 100vw; max-height: 86vh;
  border: 0; padding: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--text); box-shadow: var(--shadow);
  translate: 0 100%;
  transition: translate .42s cubic-bezier(.2,.9,.25,1), overlay .42s allow-discrete, display .42s allow-discrete; }
#comboSheet[open] { translate: 0 0; }
@starting-style { #comboSheet[open] { translate: 0 100%; } }
#comboSheet::backdrop { background: rgb(0 0 0 / 0); transition: background-color .42s, overlay .42s allow-discrete, display .42s allow-discrete; }
#comboSheet[open]::backdrop { background: rgb(0 0 0 / .35); }
@starting-style { #comboSheet[open]::backdrop { background: rgb(0 0 0 / 0); } }
#comboSheet.dragging { transition: none; }
.cs-body { padding: 10px 24px 22px; touch-action: none; user-select: none; display: grid; gap: 12px; }
.cs-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; }
#comboSheet header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
#comboSheet header b { font-size: 19px; font-weight: 800; }
.cs-x { justify-self: end; width: 34px; height: 34px; border-radius: 50%; background: var(--line); font-size: 20px; line-height: 1; }
.cs-lead { margin: 0; text-align: center; font-size: 15px; color: var(--dc-sub); }
.cs-pills { display: grid; gap: 8px; }
/* 「채움 알약 단추」: 투명한 range를 알약 위에 덮고 채움 몫(--fill)을 바탕 띠로 */
.cs-pill { position: relative; display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 20px; border-radius: 25px;
  background: linear-gradient(to right, color-mix(in srgb, var(--c) 34%, var(--card)) var(--fill), color-mix(in srgb, var(--line) 70%, var(--card)) var(--fill));
  transition: --fill .2s cubic-bezier(.3,.7,.2,1); font-size: 16px; font-weight: 600; cursor: ew-resize; }
.cs-pill span { display: flex; align-items: center; gap: 9px; }
.cs-pill output { font-variant-numeric: tabular-nums; font-weight: 800; }
.cs-pill:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.cs-pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; -webkit-appearance: none; appearance: none; }
.cs-pill input::-webkit-slider-thumb { -webkit-appearance: none; width: 1px; height: 50px; }
.cs-pill input::-moz-range-thumb { width: 1px; height: 50px; border: 0; }
.cs-res { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cs-res > div { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, var(--line) 55%, var(--card)); }
.cs-res small { font-size: 13px; color: var(--dc-sub); }
.cs-res b { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.cs-f { font-size: 13px; color: var(--dc-sub); font-variant-numeric: tabular-nums; }
.cs-rule { margin: 0; font-size: 14.5px; line-height: 1.45; }
.cs-rule span { color: var(--dc-sub); }
.cs-reset { justify-self: center; height: 34px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; color: var(--dc-sub); }
.cs-reset:hover { color: var(--text); border-color: var(--dc-sub); }

@media (prefers-reduced-motion: reduce) { #comboSheet, #comboSheet::backdrop, .cs-pill { transition: none; } }
