.ws-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.ws-size {
  position: relative;
}
.ws-size__btn {
  height: 46px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--ws-line);
  background: #ffffff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.ws-size__btn:hover {
  background: #fafafa;
  transform: translateY(-2px);
}
.ws-size__btn[aria-expanded="true"] {
  border-color: #d5d5d5;
  transform: none;
}
.ws-size__shape {
  flex: 0 0 auto;
  width: 18px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 3px;
  opacity: 0.5;
}
.ws-size__dims {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #8a8a8a;
}
.ws-size__caret {
  flex: 0 0 auto;
  opacity: 0.5;
}
.ws-size__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 90;
  min-width: 272px;
  max-height: 72vh;
  overflow: auto;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid #ececec;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}
.ws-size__group {
  padding: 10px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a0a0a0;
}
.ws-size__item {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}
.ws-size__item:hover {
  background: #f6f6f6;
}
.ws-size__item.is-active {
  background: #111111;
  color: #ffffff;
}
.ws-size__item-dims {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #8a8a8a;
}
.ws-size__item.is-active .ws-size__item-dims {
  color: rgba(255, 255, 255, 0.72);
}
.ws-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ws-custom__input {
  width: 92px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--ws-line);
  border-radius: 14px;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ws-custom__x {
  color: var(--ws-muted);
  font-weight: 700;
}
.ws-stage__message {
  position: absolute;
  inset: auto 16px 16px 16px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ws-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.ws-styles {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.ws-style {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ws-style__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #15151c center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ws-style:hover .ws-style__img {
  transform: translateY(-2px);
}
.ws-style.is-active .ws-style__img {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111827;
}
.ws-style.is-active {
  color: var(--ws-ink);
}
.ws-style__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-palettes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
}
.ws-palette {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ws-palette__bar {
  display: block;
  height: 30px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.ws-palette.is-active .ws-palette__bar {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111827;
}
.ws-palette.is-active {
  color: var(--ws-ink);
}
@media (max-width: 1100px) {
  .ws-styles {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
  .ws-size {
      flex: 1 1 auto;
    }
  .ws-size__btn {
      width: 100%;
      justify-content: center;
    }
  .ws-size__menu {
      left: 50%;
      transform: translateX(-50%);
    }
  .ws-custom {
      flex: 1 1 100%;
    }
  .ws-custom__field,
    .ws-custom__input {
      flex: 1 1 0;
      width: 100%;
    }
  .ws-styles {
      display: flex;
      overflow-x: auto;
      gap: 10px;
      padding-bottom: 6px;
      scroll-snap-type: x mandatory;
    }
  .ws-style {
      flex: 0 0 132px;
      scroll-snap-align: start;
    }
}
.ws-lines-hint {
  margin: 4px 0 0;
  color: var(--ws-muted);
  font-size: 14px;
}
.ws-lines-sub {
  margin: 0 0 -6px;
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ws-lines-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.ws-lines-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ws-lines-overlay__under {
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 3;
}
.ws-lines-overlay__line {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.ws-stage.is-editing {
  touch-action: none;
}
.ws-peek {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 8px 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ws-peek.is-visible {
  opacity: 1;
  transform: none;
}
.ws-peek__art {
  display: block;
  height: var(--ws-peek-h, min(30vh, 260px));
  width: auto;
  max-width: 100%;
  aspect-ratio: var(--ws-ar, 1.7778);
  border-radius: 10px;
  background: #0b0b0d;
}
@media (max-width: 640px) {
  .ws-peek__art {
      --ws-peek-h: 24vh;
    }
}
@media (prefers-reduced-motion: reduce) {
  .ws-peek { transition: none; }
}

.wsx .pt-stage { gap: 12px; }
.wsx-canvas { --ws-max-h: 100%; flex: 1; min-height: 0; position: relative; display: grid; place-items: center; container-type: size; }
.wsx .ws-stage { position: relative; width: min(100cqw, 100cqh * var(--ws-ar, 1.7778)); aspect-ratio: var(--ws-ar, 1.7778); border-radius: 18px; overflow: hidden; background: var(--pt-soft); }
.wsx .ws-stage__canvas { display: block; width: 100%; height: 100%; }

.wsx-format { justify-content: center; min-height: 56px; font-size: var(--t-btn-size); font-weight: 650; color: var(--sw-ink); }
.wsx-format::after { top: 50% !important; margin-top: -7px; }
.wsx-format:disabled { opacity: .6; cursor: default; }

.wsx .ws-size__btn { height: 40px; min-height: 40px; padding: 0 12px 0 13px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; color: var(--sw-ink); display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-value-size); font-weight: 600; letter-spacing: var(--t-value-ls); cursor: pointer; }
.wsx .ws-size__btn:hover { background: #fafafa; border-color: #E4E4E6; }
.wsx .ws-size__btn[aria-expanded="true"] { border-color: #D6CEC7; box-shadow: 0 0 0 .5px #D6CEC7; }
.wsx .ws-size__btn[aria-expanded="true"] .pt-chev { transform: rotate(180deg); }
.wsx .ws-size__dims { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--sw-muted); }
.wsx .ws-size__menu { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; z-index: 60; border: 0; border-radius: 18px; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.wsx .ws-size__item { border-radius: 10px; color: var(--sw-ink); font-size: 14px; font-weight: 500; }
.wsx .ws-size__item:hover { background: var(--pt-soft); }
.wsx .ws-size__item.is-active { background: var(--pt-soft-2); color: var(--sw-ink); font-weight: 700; }
.wsx .ws-size__item.is-active .ws-size__item-dims { color: var(--sw-muted); }
.wsx .ws-size__item-dims { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; }
.wsx .ws-custom__input { height: 40px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; font-family: var(--font-mono); font-size: 13px; }

.wsx-controls { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.wsx .ws-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.wsx .ws-style { border-radius: 14px; }
.wsx .ws-style__name { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); }
.wsx .ws-palettes { gap: 8px; }
.wsx .ws-palette__name { font-size: 12.5px; font-weight: 600; color: var(--sw-ink-2); }

.wsx .ws-options { display: grid; gap: 12px; margin-bottom: 16px; }
.wsx .ws-options[hidden] { display: none; }
.wsx .ws-option { display: block; }
.wsx .ws-option .ws-seg { display: flex; flex-wrap: wrap; width: 100%; height: auto; min-height: 40px; padding: 3px; gap: 2px; border-radius: 12px; }
.wsx .ws-option .palette-topbar__format-button { flex: 1 0 auto; min-width: max-content; height: 32px; padding: 0 13px; border-radius: 9px; font-size: 13.5px; }
.wsx .palette-topbar__format-button.is-active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.wsx .pt-slider[hidden], .wsx .ws-switch[hidden], .wsx .pt-block[hidden] { display: none; }

.wsx .ws-switch { position: relative; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.wsx .ws-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.wsx .ws-switch__track { position: relative; width: 40px; height: 22px; flex: none; border-radius: 999px; background: #E3DED9; transition: background-color .25s ease; }
.wsx .ws-switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.3, .7, .3, 1); }
.wsx .ws-switch input:checked + .ws-switch__track { background: #4bc05f; }
.wsx .ws-switch input:checked + .ws-switch__track::after { transform: translateX(18px); }
.wsx .ws-switch input:focus-visible + .ws-switch__track { box-shadow: 0 0 0 2px var(--pt-focus); }
.wsx .ws-switch__label { font-size: var(--t-label-size); font-weight: var(--t-label-weight); color: var(--sw-muted); }
.wsx .pt-block__head .ws-switch { margin-left: auto; }
.wsx .ws-flips { display: grid; gap: 14px; margin-top: 22px; }
.wsx .ws-adjust-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }

.wsx .ws-lines-hint { margin: -6px 0 0; font-size: 13px; color: var(--sw-muted); }
.wsx .ws-lines-sub { margin: 16px 0 10px; font-size: 14px; font-weight: 600; color: var(--sw-ink); }
.wsx .ws-lines-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

@media (min-width: 1081px) {
  .wsx .ws-peek { display: none; }
  .wsx .pt-stage { gap: var(--pt-gap); }
}
@media (max-width: 1080px) {
  .wsx-canvas { --ws-max-h: 52vh; flex: none; height: auto; container-type: normal; }
  .wsx .ws-stage { width: min(100%, calc(64vh * var(--ws-ar, 1.7778))); }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .wsx .pt-side .ws-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wsx .pt-side .pt-sliders { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
}
.wsx .pt-sliders + .ws-options, .wsx .ws-options + .pt-sliders, .wsx .pt-sliders + .ws-adjust-row { margin-top: 18px; }
.wsx .pt-block__head + .ws-options[hidden] + .pt-sliders, .wsx .pt-block__head + .nw-add, .wsx .pt-block__head + div:empty + .nw-add { margin-top: 0; }
.wsx .ws-lines-edit .ws-options { margin-bottom: 0; }
.wsx .ws-lines-actions { margin-top: 18px; align-items: center; }
.ws-lines-block .ws-lines-hint { margin: 0 0 20px; }
.ws-lines-block .ws-lines-edit { transition: opacity .15s ease; }
.ws-lines-block .ws-lines-edit.is-off { opacity: .45; }
.ws-lines-block .ws-choice + .pt-sliders { margin-top: 20px; }
.ws-lines-block .ws-lines-len[hidden] { display: none; }
.wsx .ws-lines-block .gradient-bg-row { margin-top: 0; padding-top: 0; border-top: 0; gap: 16px 14px; }
.ws-lines-block .pt-del { margin-top: 16px; }
.ws-lines-block .pt-sliders { margin-top: 0; }
.ws-lines-block .ws-choice + .pt-sliders { margin-top: 20px; }
.ws-lines-block .ws-lines-hint + .ws-choice { margin-top: 0; }
.ws-wave-tabs { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 2px; margin-bottom: 22px; padding: 3px; border-radius: 12px; border: 1px solid #EEEEEF; background: var(--pt-switch); }
.ws-wave-tab { display: inline-flex; white-space: nowrap; align-items: center; justify-content: center; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--sw-muted); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ws-wave-tab:hover:not(.is-active) { background: rgba(0, 0, 0, .02); color: var(--sw-ink); }
.ws-wave-tab.is-active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.ws-wave-tab .dp-dot { margin-right: 7px; }
.ws-lines-block .ws-silk-title { margin: 30px 0 16px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.ws-wide-btn.ws-wide-btn--close { margin-top: 16px; }
.ws-silk-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ws-silk-acts .ws-wide-btn { margin-top: 0; }
.ws-silk-acts .ws-wide-btn[hidden] { display: none; }
.ws-wide-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 46px; margin-top: 28px; padding: 0 12px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: var(--sw-ink); font-size: 14px; font-weight: 650; letter-spacing: -0.01em; cursor: pointer; transition: background .15s ease; }
.ws-wide-btn:hover { background: #fafafa; }
.ws-wide-btn:disabled { opacity: .45; cursor: default; }
.ws-wide-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wsx .ws-lines-sub + .pt-sliders { margin-top: 0; }
.wsx .ws-palettes { gap: 4px; }
.wsx .ws-palette { padding: 6px 6px 8px; border-radius: 16px; color: var(--sw-muted); transition: background .2s ease, color .2s ease; }
.wsx .ws-palette:hover { background: var(--pt-soft-2); }
.wsx .ws-palette.is-active { background: #ece8e4; color: var(--sw-ink); }
.wsx:not(.psx) .ws-palette.is-active { background: #f4f5f7; }
.wsx .ws-style:hover .ws-style__img { transform: none; }
.wsx .ws-palette.is-active .ws-palette__bar { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08); }
.wsx .ws-palette__name { padding-left: 2px; }
.wsx .ws-styles { gap: 14px 10px; }
.wsx .ws-style { position: relative; gap: 7px; padding: 0; border-radius: 10px; }
.wsx .ws-style__img, .wsx .ws-style.is-active .ws-style__img { border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06); }
.wsx .ws-style__name { padding-left: 1px; font-weight: 500; color: var(--sw-muted); transition: color .2s ease; }
.wsx .ws-style:hover .ws-style__name { color: var(--sw-ink-2); }
.wsx .ws-style.is-active .ws-style__name { color: var(--sw-ink); font-weight: 600; }
.wsx .ws-style::after { content: ''; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='%232A2320' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s cubic-bezier(.3, 1.4, .5, 1); pointer-events: none; }
.wsx .ws-style.is-active::after { opacity: 1; transform: none; }
.wsm-bar { display: contents; }
.wsx .wsm-list { grid-template-columns: minmax(0, 1fr); }
.wsx .wsm-list .preview-color-lock__name { flex: 0 1 auto; }
.wsx .wsm-list .preview-color-lock__hex, .wsx .gradient-bg-lock .preview-color-lock__hex { display: block; margin-left: auto; padding-left: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--sw-muted); white-space: nowrap; }
.wsx .wsm-list > .modal.show, .wsx .wsm-seed .modal.show { margin: 4px 0 6px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pt-line), 0 18px 40px -28px rgba(42, 35, 32, .45); }
.wsx .wsm-seed .modal.show { margin-top: 16px; }
.wsm-seed:has(#wsmSeedOn:not(:checked)) .palette-seed-layout { opacity: .45; }
.wsx .pt-range--warm { --track: linear-gradient(90deg, #5c9de0, #ece8e3, #f0a24f); }
.wsx .pt-range--contrast { --track: linear-gradient(90deg, #d9d4cf, #8c8078 50%, #2a2320); }
@media (max-width: 760px) {
  .wsx .pt-dd__pop--mood, .wsx .pt-dd__pop--harmony { max-width: calc(100vw - 32px); }
  .wsx .pt-dd[data-dd="mood"] .pt-dd__pop { left: 0; right: auto; }
}

#wsmPresets .ws-palettes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-line__body .ws-lines-sub { margin: 28px 0 12px; color: var(--sw-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.nw-line__body .ws-lines-sub:first-child { margin-top: 2px; }
.nw-sub-head { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.nw-sub-head .ws-lines-sub { margin: 0; }
.nw-graph { position: relative; height: 112px; cursor: ns-resize; touch-action: none; }
.nw-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.nw-graph i { position: absolute; width: 0; border-left: 1.5px solid rgba(42, 35, 32, .32); margin-left: -.75px; pointer-events: none; }
.nw-graph b { position: absolute; left: -.75px; width: 14px; height: 14px; margin-left: -7px; border: 1px solid #d6cec7; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(42, 35, 32, .22); transition: transform .12s; }
.nw-graph b:first-child { top: -7px; }
.nw-graph b:last-child { bottom: -7px; }
.nw-graph i.is-hot { border-left-color: var(--sw-ink); }
.nw-graph i.is-hot b { transform: scale(1.2); border-color: var(--sw-ink); }
.nw-mark { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; z-index: 5; }
.nw-mark[hidden] { display: none; }
.ws-ft-sub { grid-column: 1 / -1; margin: 14px 0 0; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); }
@container side (min-width: 560px) {
  .wsx .wsm-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wsx .wsm-list > .modal.show { grid-column: 1 / -1; }
}
@container side (min-width: 620px) {
  .wsx .pt-panel[data-panel="adjust"] { align-items: start; }
}
.ws-ft-sub.ws-ft-sub--first { margin-top: 0; }
.ws-ft-title { margin-bottom: 2px; }
.ws-ft-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.ws-ft-head[hidden] { display: none; }
.ws-silk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin: 23px 0 9px; }
.ws-lines-block .ws-silk-head .ws-silk-title { margin: 0; }
.ws-item-acts, .ws-lines-acts { display: grid; gap: 16px; margin-top: 22px; }
.ws-item-acts .ws-wide-btn, .ws-item-acts .pt-del, .ws-lines-acts .ws-wide-btn, .ws-lines-acts .pt-del { margin-top: 0; }
.ws-lines-acts { margin-top: 28px; }
.ws-lines-acts .pt-del.is-off { opacity: .45; }
.nw-add[hidden] { display: none; }
.wsx .gradient-bg-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--pt-line); }
.wsx .gradient-bg-row[hidden] { display: none; }
.wsx .ws-bg-block .gradient-bg-row { margin-top: 0; padding-top: 0; border-top: 0; }
.wsx .pg-label { font-size: var(--t-label-size); font-weight: var(--t-label-weight); color: var(--sw-muted); }
.wsx .gradient-bg-lock { flex: 1 1 160px; min-width: 0; }
.wsx .gradient-bg-lock.is-locked { background: #fff; }
.wsx .gradient-bg-toggle .palette-mode-toggle__text.is-active { color: var(--sw-ink); }
.nw-bg-sliders { margin-top: 24px; }
.ws-bg-sliders { margin-top: 24px; }
.wsx .ws-bg-block .gradient-bg-row + .modal.show { margin-bottom: 24px; }
.wsx .gradient-bg-row + .modal.show { margin: 14px 0 0; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pt-line), 0 18px 40px -28px rgba(42, 35, 32, .45); }
.wsx .pt-side .ws-styles, .wsx .pt-side .ps-families { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wsx .pt-side .ws-styles .ws-style__name { display: block; font-size: clamp(11px, 3.3vw, 12.5px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 761px) and (max-width: 1080px) {
  .wsx .pt-side .ws-styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ws-choice__title { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); }
.ws-choice .palette-mode-seg { gap: 6px; }
.ws-choice .palette-mode-seg button { flex: 0 1 auto; }
.ws-choice .palette-sort-seg button.is-active { background: #fff; box-shadow: inset 0 0 0 1px #E3DDD8; color: var(--sw-ink); }
.wsx .ws-options { gap: 18px; margin-bottom: 22px; }
.nw-line, .rp-center { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--pt-line); }
#nwLineList > .nw-line:last-child, #dtLights > .rp-center:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.nw-line__head { margin: 0 0 16px; }
.nw-line__title { margin: 0; color: var(--sw-muted); font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.nw-line__body .nw-sub-head:first-child { margin-top: 0; }
.rp-center .nw-sub-head { margin: 0 0 16px; gap: 8px; }
.rp-center .ws-lines-sub { margin: 0 auto 0 0; color: var(--sw-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }
.nw-sub-head, .ws-lines-actions { position: relative; }
.ws-del { display: inline-flex; }
.ws-del__btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e8e8e8; border-radius: 50%; background: #fff; color: var(--sw-ink-2); cursor: pointer; transition: color .15s, background .15s; }
.ws-del__btn:hover { color: #DF3E23; background: #fafafa; }
.ws-del__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ws-del__lid { transform-box: view-box; transform-origin: 19.5px 7px; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
.ws-del__btn:hover .ws-del__lid { transform: rotate(16deg) translateY(-1px); }
.ws-del__confirm { position: absolute; left: 0; right: 0; top: var(--del-top, 50%); z-index: 3; display: flex; align-items: center; gap: 6px; padding: 3px 3px 3px 12px; border-radius: 999px; background: #F8F4EF; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-50%); transition: opacity .16s, visibility .16s; }
.ws-del.is-asking .ws-del__btn { opacity: 0; pointer-events: none; }
.ws-del.is-asking .ws-del__confirm { opacity: 1; visibility: visible; }
.ws-del__text { margin-right: auto; font-size: 13px; font-weight: 600; color: #DF3E23; }
.ws-del__cancel, .ws-del__yes { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ws-del__cancel { background: #fff; color: var(--sw-ink); box-shadow: 0 0 0 1px rgba(42, 35, 32, .08); }
.ws-del__yes { background: #DF3E23; color: #fff; }
.ws-del__yes:hover { background: #C8351C; }
.ws-under-seg { margin-top: 16px; }
.dp-spots { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--pt-line); }
.dp-order { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.dp-order .ws-wide-btn { margin-top: 0; }
.dp-order + .ws-item-acts { margin-top: 16px; }
.dp-dot { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.wsx .pt-panel .pt-block:not(:has(~ .pt-block:not([hidden]))) { border-bottom: 0; margin-bottom: 0; }
#wsmList .preview-color-lock.is-selected { background: #ece8e4; }
.wsx .ws-lines-block .ws-silk-own { margin-top: 18px; }
.wsx .pt-panel { overflow-anchor: none; }
.wsx .pt-changes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 32px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--pt-line); }
.wsx .pt-changes__empty { color: #CDC4BD; font-size: 13px; font-weight: 600; white-space: nowrap; }
.wsx .pt-changes__chip { flex: none; height: 30px; padding: 0 4px 0 11px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink); display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; cursor: pointer; }
.wsx .pt-changes__chip:hover { background: #fafafa; }
.wsx .pt-changes__lock { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wsx .pt-changes__x { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--sw-muted); font-size: 11px; }
.wsx .pt-changes__x:hover { background: #F3F3F4; color: var(--sw-ink); }
.wsx .pt-changes .pt-changes__all { flex: none; margin-left: auto; }
.wsx .pt-changes-flash { animation: ptChangesFlash .9s ease; }
@keyframes ptChangesFlash { 0%, 100% { background: transparent; } 30% { background: #F3F1EE; } }
.wsx .ws-seams { grid-column: 1 / -1; grid-template-columns: 82px minmax(0, 1fr); align-items: start; container-type: inline-size; }
.wsx .ws-seams .ws-row__label { line-height: 36px; }
.wsx .ws-seams .palette-mode-seg { display: flex; width: 100%; }
.wsx .ws-seams .palette-mode-seg button { flex: 1 1 0; min-width: 0; padding: 0 8px; }
@container (max-width: 420px) {
  .wsx .ws-seams .palette-mode-seg { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wsx .ws-seams { grid-template-columns: 86px minmax(0, 1fr); }
}
.ws-drag-hint { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 4px 4px 10px; border-radius: 10px; background: #F7F5F2; font-size: 13px; font-weight: 500; color: var(--sw-muted); }
.ws-drag-hint[hidden] { display: none; }
.ws-drag-hint svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ws-drag-hint span { flex: 1; min-width: 0; }
.ws-drag-hint__center { flex: none; height: 26px; padding: 0 10px; border: 1px solid #E3DDD8; border-radius: 8px; background: #fff; font: 600 12.5px var(--font-ui); color: var(--sw-ink); cursor: pointer; }
.ws-drag-hint__center:hover { border-color: #CFC6BF; }
