* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #2c2c2c;
  color: #f5f5f5;
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

body {
  overflow: hidden;
}

body.has-modal {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #141416;
  border-right: 1px solid #222;
  min-width: 0;
  z-index: 30;
}

.sidebar__inner {
  height: 100vh;
  overflow-y: auto;
  padding: 44px 8px 24px;
}

.set-group + .set-group {
  margin-top: 16px;
}

.set-group__title {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.set-group__title--custom {
  text-transform: none;
}

.set-list {
  display: grid;
  gap: 4px;
}

.set-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px;
  align-items: center;
  min-height: 48px;
  border: 1px solid #242427;
  border-radius: 8px;
  background: #171719;
  overflow: hidden;
}

.set-row:has(.set-row__select[aria-current=true]) {
  background: #4a4a4d;
  border-color: #6a6a6d;
}

.set-row__select {
  grid-column: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.set-row__select:hover {
  background: rgba(255, 255, 255, 0.08);
}

.set-row__chips {
  display: flex;
  gap: 3px;
  flex: 0 0 auto;
}

.set-row__chips span {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.set-row__title {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-button {
  width: 28px;
  height: 32px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.86;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  opacity: 1;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.set-row__edit {
  grid-column: 2;
}

.set-row__delete {
  grid-column: 3;
}

.set-row:has(.set-row__edit) .set-row__select {
  padding-right: 3px;
}

.set-row:not(:has(.set-row__edit)) {
  grid-template-columns: 1fr;
}

.create-set {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  border: 1.5px dashed #777;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.create-set:hover,
.create-set:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: #aaa;
}

.create-set__plus {
  font-size: 20px;
  line-height: 1;
}

.workspace {
  min-width: 0;
  height: 100vh;
  background: #2c2c2c;
  position: relative;
  overflow: hidden;
}

.workspace__header {
  height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid transparent;
}

.workspace__header h1 {
  margin: 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-toggle {
  position: fixed;
  left: 8px;
  top: 7px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #2c2c2f;
  background: #19191b;
  display: grid;
  place-content: center;
  gap: 3px;
  cursor: pointer;
  z-index: 50;
}

.sidebar-toggle span {
  display: block;
  width: 10px;
  height: 1px;
  background: #d7d7d7;
}

.palette-scroll {
  height: calc(100vh - 47px);
  overflow: auto;
}

.palette {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  width: max-content;
  min-width: 100%;
}

.palette > .colour-column:first-child {
  margin-left: auto;
}

.palette > .colour-column:last-child {
  margin-right: auto;
}

.colour-column {
  width: clamp(170px, (100vw - 290px) / 8, 290px);
  flex: 0 0 clamp(170px, (100vw - 290px) / 8, 290px);
  min-height: calc(100vh - 47px);
  padding: 0 8px 12px;
  border-right: 1px solid #5a5a5a;
}

.colour-column__label {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.colour-column__label--editable {
  cursor: pointer;
  border-radius: 6px;
}

.colour-column__label--editable:hover,
.colour-column__label--editable:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.colour-column__tiles {
  display: grid;
  grid-template-rows: repeat(5, minmax(150px, 1fr));
  gap: 9px;
  height: calc(100vh - 95px);
  min-height: 750px;
}

.colour-tile {
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
}

.colour-tile--value {
  position: relative;
  overflow: hidden;
}

.colour-tile--add {
  border: 1.5px dashed #707070;
  background: repeating-conic-gradient(#353535 0 25%, #292929 0 50%) 50%/20px 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  font-weight: 300;
}

.colour-tile--add:hover,
.colour-tile--add:focus-visible {
  border-color: #c7c7c7;
  filter: brightness(1.1);
}

.colour-tile--ghost {
  visibility: hidden;
  pointer-events: none;
}

.colour-tile--new-column {
  grid-row: 1;
}

.colour-column--new .colour-column__tiles {
  grid-template-rows: repeat(5, minmax(150px, 1fr));
}

.colour-tile__overlay {
  position: absolute;
  inset: 0;
  padding: 8px;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 5px;
  background: rgba(0, 0, 0, 0.32);
  opacity: 0;
  transition: opacity 0.14s ease;
}

.colour-tile--value:hover .colour-tile__overlay,
.colour-tile--value:focus-within .colour-tile__overlay {
  opacity: 1;
}

.format-button {
  min-width: 0;
  min-height: 0;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.06);
  color: white;
  cursor: pointer;
  font-size: clamp(9px, 0.65vw, 12px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.format-button:hover,
.format-button:focus-visible {
  color: #141414;
  background: white;
}

.format-button--edit {
  align-self: stretch;
  width: 100%;
  min-width: 0;
}

.empty-state {
  padding: 40px;
  color: #b7b7b7;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.66);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(690px, 100%);
  border-radius: 13px;
  background: #202020;
  padding: 30px 24px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  position: relative;
  transform: translateY(5px);
  transition: transform 0.14s ease;
}

.modal-backdrop.is-open .modal {
  transform: translateY(0);
}

.modal--compact {
  width: min(480px, 100%);
}

.modal h2 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 20px;
}

.modal__close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 26px;
  cursor: pointer;
}

.colour-preview-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.colour-preview {
  width: 150px;
  height: 42px;
  border: 1px solid white;
  border-radius: 4px;
  background: #9500ff;
}

.hex-field input {
  width: 112px;
  height: 42px;
  border-radius: 4px;
  border: 2px solid transparent;
  background: white;
  color: #111;
  padding: 0 12px;
  font-weight: 700;
}

.hex-field input.is-invalid {
  border-color: #d64b4b;
}

.slider-group {
  width: min(520px, 88%);
  margin: 0 auto 25px;
}

.slider-group label {
  display: block;
  font-weight: 800;
  margin: 0 0 11px;
}

.range {
  appearance: none;
  width: 100%;
  height: 19px;
  border-radius: 999px;
  background: #777;
  outline: none;
}

.range--hue {
  background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}

.range::-webkit-slider-thumb {
  appearance: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #050505;
  border: 2px solid white;
  cursor: pointer;
}

.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #050505;
  border: 2px solid white;
  cursor: pointer;
}

.modal__actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 30px;
}

.modal__actions--three {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 16px;
  align-items: center;
}

.modal__actions--three .button--danger {
  grid-column: 1;
  justify-self: start;
}

.modal__actions--three .button:not(.button--danger):not(.button--primary) {
  grid-column: 2;
}

.modal__actions--three .button--primary {
  grid-column: 3;
}

.button {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid #666;
  background: #292929;
  color: white;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  border-color: #aaa;
}

.button--primary {
  border-color: #5aaeff;
  background: #2469a8;
}

.button--danger {
  border-color: #d76a6a;
  background: #7c2f2f;
}

.text-field {
  display: grid;
  gap: 8px;
}

.text-field span {
  font-weight: 800;
}

.text-field input {
  width: 100%;
  min-height: 44px;
  border-radius: 7px;
  border: 1px solid #666;
  background: #2c2c2c;
  color: white;
  padding: 0 12px;
  outline: 0;
}

.text-field input:focus {
  border-color: #73b9ff;
  box-shadow: 0 0 0 2px rgba(79, 163, 255, 0.16);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 200;
  transform: translate(-50%, 18px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #101011;
  border: 1px solid #555;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: 0.16s ease;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast--error {
  border-color: #a84f4f;
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
  display: none;
}

body.sidebar-collapsed .workspace {
  grid-column: 1;
  width: 100%;
}

body.sidebar-collapsed .colour-column {
  width: clamp(170px, 12.5vw, 290px);
  flex-basis: clamp(170px, 12.5vw, 290px);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .colour-column {
    width: 250px;
    flex-basis: 250px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  body.sidebar-collapsed .sidebar {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(290px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .colour-column {
    width: min(82vw, 300px);
    flex-basis: min(82vw, 300px);
  }
  .modal {
    padding-inline: 18px;
  }
  .slider-group {
    width: 100%;
  }
  .modal__actions--three {
    grid-template-columns: 1fr 1fr;
  }
  .modal__actions--three .button--danger {
    grid-column: 1/-1;
    justify-self: stretch;
  }
  .modal__actions--three .button:not(.button--danger):not(.button--primary) {
    grid-column: 1;
  }
  .modal__actions--three .button--primary {
    grid-column: 2;
  }
}
@media (max-height: 780px) {
  .colour-column__tiles {
    grid-template-rows: repeat(5, 134px);
    min-height: auto;
    height: auto;
  }
}/*# sourceMappingURL=styles.css.map */