/* PRTY OS — Settings › Colours */
.cs-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 420px; }
.cs-cats { display: flex; flex-direction: column; gap: 1px; padding: var(--s-2); border-right: 1px solid var(--line-soft); }
.cs-cat { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-2); color: var(--text-2); text-align: left; font-weight: 500; transition: background var(--dur-1), color var(--dur-1); }
.cs-cat:hover { background: var(--hover); color: var(--text); }
.cs-cat.is-active { background: var(--press); color: var(--text); }
.cs-cat__dots { display: inline-flex; gap: 2px; width: 38px; flex-shrink: 0; }
.cs-cat__changed { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-4); color: var(--text); font-size: var(--fs-10); font-weight: 600; display: inline-grid; place-items: center; }
.cs-main { min-width: 0; display: flex; flex-direction: column; }
.cs-main__head { padding: var(--s-4) var(--s-4) var(--s-3); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.cs-clash { padding: var(--s-3) var(--s-4) 0; }
.cs-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; align-items: center; gap: var(--s-4); min-height: 48px; padding: 6px var(--s-4); border-bottom: 1px solid var(--line-soft); }
.cs-row:last-child { border-bottom: 0; }
.cs-row__preview { min-width: 0; }
.cs-row__reset { display: flex; justify-content: flex-end; }
.cs-swatches { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.cs-swatch { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-1); cursor: pointer; flex-shrink: 0; }
.cs-swatch:hover { transform: scale(1.12); }
.cs-swatch.is-on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.cs-swatch--custom { display: inline-grid; place-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-3); }
.cs-swatch--custom.is-on { background: var(--c); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.cs-swatch--custom input, .cs-hue__swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; border: 0; padding: 0; }
.cs-note { margin-bottom: var(--s-4); max-width: 72ch; }
.cs-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--s-2) var(--s-4); }
.cs-hue { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 6px 0; min-width: 0; }
.cs-hue__swatch { position: relative; width: 32px; height: 32px; border-radius: var(--r-2); background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); flex-shrink: 0; cursor: pointer; }
.cs-hue__swatch:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 0 2px var(--line-strong); }
.cs-hue__meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) {
  .cs-layout { grid-template-columns: minmax(0, 1fr); }
  .cs-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); scrollbar-width: none; }
  .cs-cat { flex-shrink: 0; }
  .cs-cat__dots { display: none; }
  .cs-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "preview reset" "swatches swatches"; row-gap: 8px; padding: 10px var(--s-4); }
  .cs-row__preview { grid-area: preview; } .cs-swatches { grid-area: swatches; } .cs-row__reset { grid-area: reset; }
  .cs-swatch { width: 26px; height: 26px; }
}
