/* GlossyButton playground (cp/button.js): one panel, hairline sections, flat inputs, monochrome sliders.
   The button itself brings its own styles. */
.cp-is-glossy-button.cp-mode-stage { max-width: 860px; }
.gbp { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; width: 100%; align-items: stretch; text-align: left; }
.gbp-view { position: relative; display: grid; place-items: center; min-height: 340px; border-radius: var(--r-lg); background: var(--wash); }
.gbp-view:has([data-full]) { padding: 0 32px; place-items: center stretch; }
.gbp-view.gbp-paper { background: #FFFFFF; }
.gbp-view.gbp-night { background: #0E0E10; }
.gbp-bg { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; }
.gbp-bg button { width: 14px; height: 14px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2); }
.gbp-bg button.on { box-shadow: inset 0 0 0 1px var(--line-2), 0 0 0 2px var(--text); }
.gbp-side { display: flex; flex-direction: column; padding: 4px 14px 12px; border-radius: var(--r-lg); background: var(--wash); }
.gbp-card { padding: 10px 0; }
.gbp-card + .gbp-card { border-top: 1px solid var(--line); }
.gbp-title { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); }
.gbp-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 46px; align-items: center; gap: 8px; min-height: 26px; font-size: 12px; color: var(--muted); }
.gbp-row + .gbp-row { margin-top: 1px; }
.gbp-row > span:first-child { white-space: nowrap; }
.gbp-wide { grid-template-columns: 62px minmax(0, 1fr); }
.gbp-text, .gbp-num, .gbp-hex {
  height: 24px; min-width: 0; border: 0; border-radius: 7px; padding: 0 7px; background: var(--surface-2); color: var(--text);
  font: 500 12px var(--mono); outline: none;
}
.gbp-text { font-family: var(--sans); }
.gbp-num { text-align: right; padding: 0 6px; -moz-appearance: textfield; }
.gbp-num::-webkit-outer-spin-button, .gbp-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gbp-text:focus, .gbp-num:focus, .gbp-hex:focus { box-shadow: inset 0 0 0 1px var(--accent); }
.gbp-color { display: flex; align-items: center; gap: 6px; min-width: 0; }
.gbp-swatch { position: relative; flex: none; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
.gbp-swatch input { position: absolute; inset: -6px; width: 40px; height: 40px; border: 0; padding: 0; cursor: pointer; opacity: 0; }
.gbp-hex { flex: 1; text-transform: uppercase; }
.gbp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; cursor: pointer; margin: 0; }
.gbp-range::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(var(--text), var(--text)) 0 / var(--fill, 50%) 100% no-repeat, var(--line-2); }
.gbp-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.gbp-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--text); }
.gbp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 0 0 .5px rgba(0, 0, 0, .12); }
.gbp-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.gbp-range:disabled { opacity: .35; cursor: default; }
.gbp-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--surface-2); }
.gbp-seg button { flex: 1; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 500 11.5px var(--sans); cursor: pointer; }
.gbp-seg button.on { background: var(--raised); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.gbp-pill { height: 24px; border: 0; border-radius: 7px; background: var(--surface-2); color: var(--muted); font: 500 11.5px var(--sans); cursor: pointer; }
.gbp-pill.on { background: var(--text); color: var(--bg); }
.gbp-actions { display: flex; gap: 6px; margin-top: 12px; }
.gbp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 9px;
  background: none; color: var(--muted); font: 550 12.5px var(--sans); cursor: pointer;
  transition: background .2s, color .2s;
}
.gbp-btn:hover { color: var(--text); background: var(--surface-2); }
.gbp-btn.primary { flex: 1; background: var(--text); color: var(--bg); }
.gbp-btn .gbp-ic { display: grid; place-items: center; transition: transform .35s var(--spring); }
.gbp-btn.done .gbp-ic { transform: scale(1.15); }
@media (max-width: 860px) {
  .gbp { grid-template-columns: minmax(0, 1fr); }
  .gbp-view { min-height: 240px; }
}
