*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(body.pt) { overflow-x: clip; }
body.pt { overflow-x: clip; margin: 0; background: var(--sw-bg); color: var(--sw-ink); font-family: var(--font-ui); font-feature-settings: 'ss01', 'cv11'; -webkit-font-smoothing: antialiased; }
:where(.pt) :where(button, input, select, textarea, label) { font: inherit; font-feature-settings: inherit; }
.pt [hidden] { display: none !important; }

.pt {
  --pt-vh: 100vh;
  --pt-line: #ECE7E3;
  --pt-line-2: #E3DDD8;
  --pt-soft: #FAFAFA;
  --pt-soft-2: #F7F5F2;
  --pt-switch: #FAFAFA;
  --t-label-size: 13px;
  --t-label-weight: 450;
  --t-label-ls: -0.01em;
  --t-value-size: 14px;
  --t-value-weight: 650;
  --t-value-ls: -0.01em;
  --t-btn-size: 15px;
  --t-btn-weight: 600;
  --t-btn-ls: -0.01em;
  --t-small-size: 13px;
  --t-small-weight: 600;
  --t-small-ls: -0.01em;
  --t-tab-size: 14px;
  --t-tab-weight: var(--t-value-weight);
  --t-tab-ls: var(--t-btn-ls);
  --pt-focus: #2A2320;
  --pt-radius: 14px;
  --pt-bar-h: 58px;
  --pt-side-w: 384px;
}

@media (min-width: 761px) {
  @supports (height: 100svh) {
    .pt { --pt-vh: 100svh; }
  }
}

.pt-main { width: calc(100% - 28px); max-width: 1680px; margin: 0 auto; }

.pt-bar { position: relative; height: var(--pt-bar-h); margin-top: 10px; display: flex; align-items: center; border-bottom: 1px solid var(--pt-line); }
.pt-bar__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 0 0 0 6px; }
.pt-bar .generator-cta--topbar { flex-direction: row-reverse; flex: none; }
.pt-bar.is-left { flex-direction: row-reverse; }
.pt-bar.is-left .pt-bar__main { padding: 0 6px 0 22px; }
.pt-bar.is-left .pt-bar__actions { padding: 0 22px 0 0; }
.pt-bar.is-left .pt-pop { right: auto; left: 0; }
.pt-bar__title { flex: 1; min-width: 0; font-size: 22px; font-weight: 350; letter-spacing: -0.03em; color: var(--sw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-bar__title b { font-weight: 650; color: var(--sw-ink); }
.pt-bar__actions { width: var(--pt-side-w); flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 8px; padding-left: 22px; }
.pt-bar__actions > .pt-btn, .pt-bar__actions > .pt-pop-wrap { min-width: 0; }
.pt-bar__actions .pt-btn { width: 100%; justify-content: center; }
.pt-bar__actions .pt-btn__icon { width: auto; height: 15px; }
.ws-new-colors[hidden] { display: none; }
.ws-new-colors .ws-new-colors__wheel { width: 16px; height: 16px; flex: none; display: block; }
.pt-ctrl__history { display: flex; gap: 2px; }

.pt-vsep { width: 1px; height: 24px; background: var(--pt-line-2); flex: none; }

.pt-icon-btn { width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: var(--sw-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background .2s ease; }
.pt-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-icon-btn:hover:not(:disabled) { background: var(--pt-soft-2); }
.pt-icon-btn:disabled { opacity: .32; cursor: default; }
.pt-icon-btn--box { width: 40px; height: 40px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; }
.pt-icon-btn--box:hover { background: #fafafa; }

.pt-btn { height: 40px; padding: 0 16px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: #1a1a1a; display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-btn-size); font-weight: var(--t-btn-weight); letter-spacing: var(--t-btn-ls); line-height: 1; white-space: nowrap; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.pt-btn:hover { background: #fafafa; transform: translateY(-1px); }
.pt-btn:active { transform: translateY(0); }
.pt-btn__icon { width: 15px; height: 15px; display: block; object-fit: contain; }
.pt-btn--dark { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.pt-btn--dark:hover { background: #3a312d; }
.pt-btn--dark .pt-btn__icon { filter: brightness(0) invert(1); }
.pt-btn[aria-expanded="true"] { border-color: #D6CEC7; box-shadow: 0 0 0 .5px #D6CEC7; }
.pt-btn--dark[aria-expanded="true"] { border-color: var(--sw-ink); box-shadow: 0 0 0 .5px var(--sw-ink); }
.pt-bar__actions .pt-btn--dark { background: #fff; border-color: #e8e8e8; color: var(--sw-ink); }
.pt-bar__actions .pt-btn--dark:hover { background: #fafafa; }
.pt-bar__actions .pt-btn--dark .pt-btn__icon { filter: none; }
.pt-bar__actions .pt-btn--dark[aria-expanded="true"] { border-color: #D6CEC7; box-shadow: 0 0 0 .5px #D6CEC7; }

.pt-pop-wrap { position: relative; }
.pt-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 380px; padding: 16px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.pt-pop--share { width: 400px; }
.pt-pop__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--sw-muted); }
.pt-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pt-pop__head .pt-pop__title { margin: 0; }

.pt-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pt-format { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.pt-format b { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--sw-ink); }
.pt-format small { font-size: 12px; color: var(--sw-muted); line-height: 1.3; }
.pt-format:hover { background: var(--pt-soft); border-color: var(--pt-line-2); }
.pt-format:disabled { opacity: .45; cursor: default; }

.pt-share { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--pt-soft); }
.pt-share__input { flex: 1; min-width: 0; height: 34px; border: 0; background: transparent; font-family: var(--font-mono); font-size: 12.5px; color: var(--sw-ink-2); outline: none; text-overflow: ellipsis; }
.pt-share__copy { height: 34px; padding: 0 14px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; color: var(--sw-ink); cursor: pointer; }
.pt-share__copy:hover { background: #fafafa; }

.pt-work { --pt-side-w: inherit; display: flex; gap: 0; height: calc(var(--pt-vh) - 76px - var(--pt-bar-h) - 10px - 14px); min-height: 420px; max-height: 1100px; margin-top: 14px; }

.pt-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-right: 22px; }
.pt-strip { flex: 1; min-height: 0; display: flex; border-radius: 18px; overflow: hidden; }

.pt-strip .color-strip { flex: 1; display: flex; min-width: 0; }
.pt-strip .swatch-wrap { position: relative; flex: 1 1 0; min-width: 0; container-type: inline-size; transition: flex-grow .55s cubic-bezier(.22, 1.25, .36, 1), height .55s cubic-bezier(.22, 1.25, .36, 1); }

.pt-strip .color-swatch { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; padding: 0; margin: 0; cursor: pointer; transition: filter .2s ease; }
.pt-strip .swatch-lock { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 14px 12px 20px; pointer-events: none; color: var(--sw-ink); background: none; border: 0; }
.pt-strip .swatch-wrap.is-dark .swatch-lock { color: #fff; }
.pt-strip .swatch-lock__button { pointer-events: auto; align-self: center; width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.pt-strip .swatch-lock__button:hover { background: rgba(255, 255, 255, .38); }
.pt-strip .swatch-lock.active .swatch-lock__button { background: #fff; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .35); }
.pt-strip .swatch-lock__icon { display: none; width: 9px; height: 13px; object-fit: contain; }
.pt-strip .swatch-wrap.is-dark .swatch-lock:not(.active) .swatch-lock__icon { filter: brightness(0) invert(1); }
.pt-strip .swatch-lock:not(.active) .icon-unlock { display: block; opacity: .75; }
.pt-strip .swatch-wrap.is-light .swatch-lock:not(.active) .icon-unlock { filter: brightness(0); opacity: .45; }
.pt-strip .swatch-lock:not(.active) .swatch-lock__button:hover .icon-unlock { display: none; }
.pt-strip .swatch-lock:not(.active) .swatch-lock__button:hover .icon-lock-on { display: block; filter: brightness(0); opacity: .75; }
.pt-strip .swatch-wrap.is-dark .swatch-lock:not(.active) .swatch-lock__button:hover .icon-lock-on { filter: brightness(0) invert(1); opacity: 1; }
.pt-strip .swatch-lock.just-unlocked .swatch-lock__button:hover .icon-lock-on { display: none; }
.pt-strip .swatch-lock.just-unlocked .swatch-lock__button:hover .icon-unlock { display: block; }
.pt-strip .swatch-lock.active .icon-lock-black { display: block; }
.pt-strip .swatch-lock.active:not(.just-locked) .swatch-lock__button:hover .icon-lock-black { display: none; }
.pt-strip .swatch-lock.active:not(.just-locked) .swatch-lock__button:hover .icon-lock-off { display: block; }

.pt-strip .swatch-lock__copy { max-width: 100%; display: grid; justify-items: center; gap: 3px; padding: 5px 4px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: center; }
.pt-strip .swatch-wrap.is-selected .swatch-lock__name, .pt-strip .swatch-wrap.is-selected .swatch-lock__hex { opacity: 1; }
.pt-strip .swatch-lock__name { max-width: 100%; font-size: 13px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; opacity: .72; }
.pt-strip .swatch-lock__hex { display: grid; gap: 1px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; opacity: .72; text-transform: uppercase; }
.pt-strip .swatch-lock__code-line { white-space: nowrap; }

.pt-strip .color-strip.colors-9plus .swatch-lock { padding: 12px 5px 16px; }
.pt-strip .color-strip.colors-9plus .swatch-lock__name { font-size: 12px; }
.pt-strip .color-strip.colors-9plus .swatch-lock__hex { font-size: 10.5px; letter-spacing: .02em; }
.pt-strip .color-strip.colors-9plus .swatch-lock__button { width: 22px; height: 22px; }
.pt-strip .color-strip.hide-color-names .swatch-lock__name { display: block; }
.pt-strip .color-strip.colors-14plus .swatch-lock__hex { font-size: 10px; letter-spacing: 0; }

.pt-ctrl { flex: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 0 2px; }
.pt-ctrl .pt-vsep { height: 30px; margin: 0 4px; }

.generator-cta--topbar { display: flex; align-items: center; gap: 14px; margin: 0; }
@property --cta-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.generator-cta--topbar .btn-primary { position: relative; width: 200px; height: 46px; min-height: 46px; padding: 0 26px 0 22px; border-radius: 999px; border: 1px solid #E8E2DD; background: #ffffff; color: var(--sw-ink); display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-family: inherit; font-size: 18px; font-weight: 750; letter-spacing: -0.025em; cursor: pointer; transform: none; transition: transform 0.2s ease, border-color 0.25s ease; }
.generator-cta--topbar .btn-primary::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--cta-a), #F2413A, #FF6A33, #FFB21A, #22BF6A, #12B5C9, #2F86FF, #F2413A); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.generator-cta--topbar .btn-primary.is-spinning::before { animation: ctaRing .6s linear infinite; }
.generator-cta--topbar .btn-primary.is-ringing::before { opacity: 1; }
@keyframes ctaRing { from { --cta-a: 0deg; } to { --cta-a: 360deg; } }
.generator-cta--topbar .btn-primary:active { transform: scale(0.96); }
.generator-cta--topbar .btn-mark { position: relative; width: 22px; height: 24px; display: block; flex: 0 0 auto; overflow: visible; }
.generator-cta--topbar .btn-mark path { transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
@media (hover: hover) and (pointer: fine) {
  .generator-cta--topbar .btn-primary:hover { border-color: #CFC6BF; }
  .generator-cta--topbar .btn-primary:hover .btn-mark__tl { transform: translate(-160px, -160px); }
  .generator-cta--topbar .btn-primary:hover .btn-mark__tr { transform: translate(160px, -160px); }
  .generator-cta--topbar .btn-primary:hover .btn-mark__mid { transform: translate(200px, 0); }
  .generator-cta--topbar .btn-primary:hover .btn-mark__bl { transform: translate(-160px, 160px); }
  .generator-cta--topbar .btn-primary:hover .btn-mark__br { transform: translate(160px, 160px); }
}
.generator-cta--topbar .btn-primary.is-opening .btn-mark__tl { transform: translate(-160px, -160px); }
.generator-cta--topbar .btn-primary.is-opening .btn-mark__tr { transform: translate(160px, -160px); }
.generator-cta--topbar .btn-primary.is-opening .btn-mark__mid { transform: translate(200px, 0); }
.generator-cta--topbar .btn-primary.is-opening .btn-mark__bl { transform: translate(-160px, 160px); }
.generator-cta--topbar .btn-primary.is-opening .btn-mark__br { transform: translate(160px, 160px); }
.space-hint { display: inline-flex; align-items: center; gap: 10px; color: #777; font-size: 13px; font-weight: 600; }
.space-key { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; height: 30px; padding: 0 14px; border-radius: 999px; background: #fafafa; border: 1px solid #e8e8e8; color: #8C8078; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }

.pt-dd { position: relative; }
.pt-dd__trigger { height: 40px; padding: 0 12px 0 13px; border: 1px solid #EEEEEF; border-radius: 12px; background: #fff; color: #1a1a1a; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .2s ease, border-color .2s ease; }
.pt-dd__trigger:hover { background: #fafafa; border-color: #E4E4E6; }
.pt-dd__trigger small { font-size: var(--t-label-size); font-weight: var(--t-label-weight); letter-spacing: var(--t-label-ls); color: var(--sw-muted); }
.pt-dd__trigger b { font-size: var(--t-value-size); font-weight: 600; letter-spacing: var(--t-value-ls); }
.palette-topbar__colors-label { font-size: var(--t-value-size); font-weight: 600; letter-spacing: var(--t-value-ls); }
.palette-topbar__colors .palette-topbar__colors-value { font-size: var(--t-value-size); font-weight: var(--t-value-weight); letter-spacing: var(--t-value-ls); }
.pt-dd__trigger[aria-expanded="true"] { border-color: #D6CEC7; box-shadow: 0 0 0 .5px #D6CEC7; }
.pt-chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .45; transition: transform .2s ease; }
.pt-dd__trigger[aria-expanded="true"] .pt-chev { transform: rotate(180deg); }
.pt-dd__pop { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 60; padding: 14px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px rgba(42, 35, 32, .07), 0 28px 60px -24px rgba(42, 35, 32, .45); }
.pt-dd__pop--mood, .pt-dd__pop--harmony { width: max-content; }

.pt-mood-grid, .pt-harmony-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 4px !important; }
.pt-mood-grid button, .pt-harmony-grid button { height: 44px !important; padding: 0 12px !important; display: flex; align-items: center; gap: 11px; border-radius: 11px !important; background: transparent !important; color: var(--sw-ink) !important; font-size: 14.5px !important; font-weight: 500 !important; box-shadow: none !important; text-align: left; }
.pt-mood-grid button:hover, .pt-harmony-grid button:hover { background: var(--pt-soft) !important; }
.pt-mood-grid button.active, .pt-harmony-grid button.active { background: var(--pt-soft-2) !important; font-weight: 700 !important; box-shadow: none !important; }
.pt-harmony-grid[aria-disabled="true"] button, .pt-mood-grid[aria-disabled="true"] button { color: #9b918a !important; }
.pt-harmony-grid[aria-disabled="true"] button.active, .pt-mood-grid[aria-disabled="true"] button.active { color: var(--sw-ink) !important; }

.palette-topbar__colors { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid #EEEEEF; background: #fff; display: inline-flex; align-items: center; gap: 11px; color: #1a1a1a; font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; }
.palette-topbar__colors-value { min-width: 20px; text-align: center; color: #020817; font-weight: 800; font-variant-numeric: tabular-nums; }
.palette-topbar__stepper { width: 26px; height: 26px; border-radius: 999px; border: 1px solid #E6E6E8; background: #fff; color: #1a1a1a; display: inline-flex; align-items: center; justify-content: center; padding: 0; font-size: 20px; line-height: 1; font-weight: 500; cursor: pointer; transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.palette-topbar__stepper svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.palette-topbar__stepper:hover { background: #f7f7f7; border-color: #cfcfcf; }
.palette-topbar__stepper:active { transform: translateY(1px); }
.palette-topbar__range { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }

.palette-topbar__format { height: 40px; padding: 3px; border-radius: 12px; border: 1px solid #EEEEEF; background: var(--pt-switch); display: inline-flex; align-items: center; gap: 2px; }
.palette-topbar__format-button { height: 32px; min-width: 64px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--sw-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.palette-topbar__format-button.active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.palette-topbar__format-button:hover:not(.active) { background: rgba(0, 0, 0, .02); color: var(--sw-ink); }

.pt-side { width: var(--pt-side-w); min-width: 0; flex: none; display: flex; flex-direction: column; min-height: 0; padding-left: 22px; container: side / inline-size; }
.pt-work.is-left { flex-direction: row-reverse; }
.pt-work.is-left .pt-stage { padding-right: 0; padding-left: 22px; }
.pt-work.is-left .pt-side { padding-left: 0; padding-right: 22px; }
.pt-resizer { position: relative; z-index: 5; flex: none; width: 15px; margin: 0 -7px; cursor: col-resize; touch-action: none; outline: none; }
.pt-resizer::before { content: ''; position: absolute; top: 0; bottom: 0; left: 7px; width: 1px; background: var(--pt-line); transition: background .2s ease, width .2s ease, left .2s ease; }
.pt-resizer::after { content: ''; position: absolute; top: 50%; left: 5.5px; width: 4px; height: 44px; margin-top: -22px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--pt-line-2), 0 4px 10px -4px rgba(42, 35, 32, .3); transition: height .2s ease, margin-top .2s ease; }
.pt-resizer:hover::before, .pt-resizer:focus-visible::before, .pt-resizer.is-dragging::before { left: 6px; width: 3px; background: #CFC6BF; }
.pt-resizer:hover::after, .pt-resizer:focus-visible::after, .pt-resizer.is-dragging::after { height: 64px; margin-top: -32px; }
body.pt-resizing { cursor: col-resize; user-select: none; }
body.pt-resizing iframe, body.pt-resizing img { pointer-events: none; }
#ptSideBtn.is-left svg { transform: scaleX(-1); }
.pt-tabs { position: relative; flex: none; display: flex; height: 44px; border-bottom: 1px solid var(--pt-line); }
.pt-tab { flex: 1; height: 43px; padding: 0; border: 0; background: transparent; color: var(--sw-muted); font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; line-height: 1; cursor: pointer; transition: color .2s ease; }
.pt-tab:hover:not(.is-active) { color: var(--sw-ink); }
.pt-tab.is-active { color: var(--sw-ink); }
.pt-tabs__ind { position: absolute; left: 0; bottom: -1px; width: 0; height: 2px; border-radius: 2px; background: var(--sw-ink); pointer-events: none; }
.pt-tabs.is-ready .pt-tabs__ind { transition: transform .32s cubic-bezier(.3, .8, .3, 1), width .32s cubic-bezier(.3, .8, .3, 1); }
.pt-panel { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; margin-right: -14px; padding: 22px 14px 24px 2px; scrollbar-width: thin; scrollbar-gutter: stable; }

.pt-block { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--pt-line); }
.pt-block:last-child { border-bottom: 0; margin-bottom: 0; }
.pt-block__head { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 16px; }
.pt-block__title { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--sw-ink); }
.pt-block__head > .pt-mini { margin-left: auto; }
.pt-block__toggle { margin-left: auto; }
.pt-hint { margin-left: auto; font-size: 12.5px; color: var(--sw-muted); }
.pt-empty { margin: 8px 0 0; padding: 26px 18px; border-radius: 14px; background: var(--pt-soft); color: var(--sw-ink-2); font-size: 14px; line-height: 1.5; text-align: center; }
.pt-panel:has(.modal.show) .pt-empty { display: none; }

.pt-mini, .pt-split-btn { height: 32px; padding: 0 14px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink); display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-small-size); font-weight: var(--t-small-weight); letter-spacing: var(--t-small-ls); line-height: 1; cursor: pointer; white-space: nowrap; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pt-mini:hover, .pt-split-btn:hover { background: #fafafa; }
.pt:not(.psx) .pt-mini:disabled { background: #F3F3F4; border-color: #F3F3F4; color: #B4ABA4; cursor: default; }
.pt .pt-mini.pt-reset { height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--sw-ink-2); gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; transition: background .2s ease, color .2s ease; }
.pt .pt-mini.pt-reset::before { content: ""; flex: none; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.6-6.1'/%3E%3Cpath d='M3.5 4v4.5H8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 12a8.5 8.5 0 1 0 2.6-6.1'/%3E%3Cpath d='M3.5 4v4.5H8'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .35s ease; }
.pt .pt-mini.pt-reset:hover:not(:disabled) { background: #F3F3F4; color: var(--sw-ink); }
.pt .pt-mini.pt-reset:hover:not(:disabled)::before { transform: rotate(-120deg); }
.pt .pt-mini.pt-reset:disabled { background: transparent; border: 0; color: #CDC4BD; cursor: default; }
.pt-head-acts { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.pt-lock { flex: none; 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: background .15s, color .15s, border-color .15s; }
.pt-lock:hover { background: #fafafa; color: var(--sw-ink); }
.pt-lock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pt-lock__shut { display: none; }
.pt-lock.is-on { background: #ece8e4; border-color: #ece8e4; color: var(--sw-ink); }
.pt-lock.is-on .pt-lock__open { display: none; }
.pt-lock.is-on .pt-lock__shut { display: block; }
.pt-lock.ws-lock { position: relative; }
.pt-lock.ws-lock input { position: absolute; width: 0; height: 0; margin: 0; opacity: 0; }
.pt-lock.ws-lock:has(input:checked) { background: #ece8e4; border-color: #ece8e4; color: var(--sw-ink); }
.pt-lock.ws-lock:has(input:checked) .pt-lock__open { display: none; }
.pt-lock.ws-lock:has(input:checked) .pt-lock__shut { display: block; }
.pt-lock.ws-lock:has(input:focus-visible) { outline: 2px solid rgba(42, 35, 32, .45); outline-offset: 2px; }
.pt-block__head > .pt-lock { margin-left: auto; }
.pg.pg-pointmode #gradAdjustLock { display: none; }

.pt-sliders { display: grid; gap: 14px; }
.pt-slider { display: grid; grid-template-columns: 82px minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.pt-slider__label { font-size: var(--t-label-size); font-weight: 500; color: var(--sw-muted); }
.pt-slider__value { font-size: 12.5px; font-weight: 550; text-align: right; font-variant-numeric: tabular-nums; color: var(--sw-ink-2); }

.pt-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; --track: #ddd; }
.pt-range:focus { outline: none; }
.pt-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--track); }
.pt-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--track); }
.pt-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .22); transition: transform .15s ease; }
.pt-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .22); }
.pt-range:active::-webkit-slider-thumb { transform: scale(1.1); }
.pt-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--pt-focus), 0 2px 6px rgba(0, 0, 0, .22); }
.pt-range--hue { --track: linear-gradient(90deg, #ff6666, #ffcc66, #99dd66, #66cccc, #6699ff, #cc66ff, #ff6666); }
.pt-range--sat { --track: linear-gradient(90deg, #bbbbbb, #F26B5B); }
.pt-range--light { --track: linear-gradient(90deg, #222222, #F26B5B, #ffffff); }
.pt-range--warm { --track: linear-gradient(90deg, #5c9de0, #ece8e3, #f0a24f); }
.pt-range--contrast { --track: linear-gradient(90deg, #d9d4cf, #8c8078 50%, #2a2320); }
#pickerHue { --track: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); height: 24px; }
#pickerHue::-webkit-slider-runnable-track { height: 12px; }
#pickerHue::-moz-range-track { height: 12px; }
#pickerHue::-webkit-slider-thumb { margin-top: -4px; }

.palette-mode-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-label-size); font-weight: 450; cursor: pointer; }
.palette-mode-toggle__text { color: var(--sw-muted); }
.palette-mode-toggle:has(> .palette-mode-switch + .palette-mode-toggle__text):not(:has(input:checked)) > .palette-mode-toggle__text:first-child, .palette-mode-toggle:has(> .palette-mode-switch + .palette-mode-toggle__text):has(input:checked) > .palette-mode-switch + .palette-mode-toggle__text { color: var(--sw-ink); }
.palette-mode-switch { display: inline-block; position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.palette-mode-switch input { opacity: 0; width: 0; height: 0; }
.palette-mode-switch__slider { position: absolute; inset: 0; cursor: pointer; background-color: #4bc05f; border-radius: 34px; transition: background-color .3s ease; }
.palette-mode-switch__slider::before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 2px; background-color: #fff; border-radius: 50%; transition: transform .3s cubic-bezier(0.68, -0.55, 0.27, 1.55); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.palette-mode-switch input:checked + .palette-mode-switch__slider { background-color: #ca70d4; }
.palette-mode-switch input:checked + .palette-mode-switch__slider::before { transform: translateX(18px); }
.palette-mode-switch__knob { position: absolute; top: 50%; left: 2px; transform: translateY(-50%); width: 18px; height: 18px; background-color: #fff; border-radius: 50%; transition: transform .3s cubic-bezier(0.68, -0.55, 0.27, 1.55); pointer-events: none; }
.palette-mode-switch input:checked ~ .palette-mode-switch__knob { transform: translateX(18px) translateY(-50%); }

.palette-mode-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.palette-mode-seg button { height: 36px; padding: 0 13px; border: 0; border-radius: 999px; background: #F7F5F2; color: var(--sw-muted); font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; cursor: pointer; white-space: nowrap; box-shadow: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.palette-mode-seg button:hover { background: #EDEBE8; color: var(--sw-ink); }
.palette-mode-seg button.active { background: #fff; box-shadow: inset 0 0 0 1px #E3DDD8; color: var(--sw-ink); }
.palette-mode-seg.has-plate { position: relative; }
.palette-mode-seg.plate-on button.active, .palette-mode-seg.plate-on button.is-active { background: #F7F5F2; box-shadow: none; color: var(--sw-ink); }
.palette-mode-seg .seg-label { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: inherit; pointer-events: none; }
.palette-mode-seg .seg-plate { position: absolute; left: 0; top: 0; z-index: 1; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E3DDD8; pointer-events: none; opacity: 0; transition: transform .38s cubic-bezier(.3, 1.25, .5, 1), width .38s cubic-bezier(.3, 1.25, .5, 1), height .38s cubic-bezier(.3, 1.25, .5, 1), opacity .2s ease; }
.palette-mode-seg .seg-plate.is-on { opacity: 1; }
.pt-tonal-toggle .palette-mode-switch__slider { background-color: #E3DED9; }
.pt-tonal-toggle .palette-mode-switch input:checked + .palette-mode-switch__slider { background-color: #4bc05f; }

.palette-seed-layout { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.palette-seed-random { height: 40px; padding: 0 18px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: var(--sw-ink); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: var(--t-tab-size); font-weight: var(--t-tab-weight); letter-spacing: var(--t-tab-ls); line-height: 1; cursor: pointer; white-space: nowrap; }
.palette-seed-random:hover { background: #f4f5f7; }
.palette-seed-random:active { box-shadow: inset 0 0 0 1px #e3e3e3; }
.palette-seed-random .btn-icon { width: 15px; height: 15px; }
.palette-seed-plate { flex: 1 1 200px; min-width: 0; padding-right: 6px; }
.palette-seed-plate .preview-color-lock__name { flex: 0 1 auto; }
.palette-seed-plate .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; }
.palette-seed-card:has(#seedMode:not(:checked)) .palette-seed-plate { opacity: .45; }

.export-help { position: relative; display: inline-flex; }
.export-help-btn { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid #d7d1cc; background: #fff; color: var(--sw-muted); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; }
.export-tooltip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20; width: 220px; padding: 10px 12px; border-radius: 10px; background: var(--sw-ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .2s ease; pointer-events: none; }
.export-help:hover .export-tooltip, .export-help:focus-within .export-tooltip { opacity: 1; visibility: visible; }

.pt-preview-switch { width: 100%; margin-bottom: 18px; }
.pt-preview-switch .palette-topbar__format-button { flex: 1; }
.pt-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pt-preview__surface { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--pt-soft); }
.pt-preview__surface .preview-render-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pt-preview__surface { aspect-ratio: 1 / 1; }
.template-preview-surface .preview-render-img { object-fit: cover; }
#userSvgPreviewSurface.svg-preview-surface--filled { aspect-ratio: var(--user-svg-aspect, 1 / 1); background: #fff; box-shadow: inset 0 0 0 1px var(--pt-line); }
.svg-preview-replace-btn__icon, .pt-preview__tools .btn-icon { width: 13px; height: 13px; }
.pt-preview__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svg-preview-locks .preview-color-locks { grid-template-columns: minmax(0, 1fr); }
.svg-preview-locks .preview-color-lock__name { flex: 0 1 auto; }
.svg-preview-locks .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; }
.svg-preview-locks .preview-color-lock__bg { margin-left: 8px; padding: 3px 7px; border-radius: 6px; background: linear-gradient(135deg, #F8E7BF 0%, #EBCB86 100%); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5C3F0C; white-space: nowrap; cursor: default; }
@container side (min-width: 560px) {
  .svg-preview-locks .preview-color-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.svg-preview-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.svg-preview-empty { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center; }
.svg-preview-surface:has(.svg-preview-empty) { background: #fff; box-shadow: inset 0 0 0 1px #E3DDD8; }
.svg-preview-surface:has(.svg-preview-empty)::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url('/images/uploade-template-preview.svg'); background-size: cover; background-position: center; pointer-events: none; }
.svg-preview-empty__cloud { width: 56px; height: 56px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px -10px rgba(42, 35, 32, .35); }
#userSvgRow .svg-preview-replace-btn { display: none; }
#userSvgRow:has(.svg-preview-surface--filled) .svg-preview-replace-btn { display: inline-flex; }
.svg-preview-surface--filled .svg-preview-empty { display: none; }
.svg-preview-empty__cloud-icon { width: 22px; height: 22px; display: block; }
.svg-preview-empty__button { height: 40px; padding: 0 18px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: var(--sw-ink); display: inline-flex; align-items: center; gap: 9px; font-size: var(--t-tab-size); font-weight: var(--t-tab-weight); letter-spacing: var(--t-tab-ls); line-height: 1; cursor: pointer; }
.svg-preview-empty__button-icon { width: 14px; height: 14px; }
.svg-preview-empty__text { max-width: 260px; font-size: 13px; line-height: 1.45; color: var(--sw-ink-2); }
.svg-preview-empty__note { font-size: 12px; color: var(--sw-muted); }
.preview-legend:empty { display: none; }

.preview-color-locks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preview-color-lock { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 6px; border: 1px solid #ece8e4; border-radius: 12px; background: #fff; }
.preview-color-lock.is-locked { background: #ece8e4; }
.preview-color-lock__edit { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.preview-color-lock__dot { width: 20px; height: 20px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.preview-color-lock__name { min-width: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-color-lock__hex { display: none; }
.preview-color-lock__toggle { width: 28px; height: 28px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #9b918a; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.preview-color-lock__icon { width: 10px; height: 15px; display: block; object-fit: contain; }
.preview-color-lock.is-locked .preview-color-lock__toggle { color: var(--sw-ink); }

.history-bar { display: block; }
.history-thumbs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.history-empty-hint { display: block; padding: 26px 18px; border-radius: 14px; background: var(--pt-soft); text-align: center; font-size: 14px; color: var(--sw-ink-2); }
.history-thumb { display: grid; gap: 8px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; text-align: left; transition: background-color .18s ease, border-color .18s ease; }
.history-thumb:hover { background: #f4f5f7; }
.history-thumb:active { background: #fff; border-color: #e3e3e3; }
.history-thumb.active { background: #fff; border-color: #e8e8e8; }
.history-thumb__strip { display: flex; height: 44px; border-radius: 9px; overflow: hidden; }
.history-thumb-swatch { flex: 1; }
.history-thumb__date { font-size: 11.5px; font-weight: 500; color: #66748a; padding-left: 2px; }

.pt .modal { display: none; }
.pt .modal.show { display: block; }
.pt .modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 32px; margin-bottom: 12px; }
.pt .modal-title { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.pt .modal-close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--sw-muted); font-size: 14px; cursor: pointer; }
.pt .modal-close:hover { background: var(--pt-soft-2); color: var(--sw-ink); }
.pt .modal-body { display: grid; grid-template-columns: minmax(0, 1fr) min(112px, 30%); gap: 12px 10px; }
.pt .modal-body > *, .pt .modal-body .pt-range--hue { grid-column: 1 / -1; }
.pt .modal-body .wheel-container, .pt .modal-body .inline-picker { display: contents; }
.pt .modal-body > .color-tiles-row { grid-column: 2; grid-row: 1; }
.pt .modal-body .picker-sv { grid-column: 1; grid-row: 1; }
.color-tiles-row { display: grid; gap: 6px; }
.color-tile { position: relative; display: grid; align-content: end; gap: 2px; min-width: 0; aspect-ratio: 1 / 1; padding: 10px 12px; border-radius: 12px; overflow: hidden; color: var(--on, var(--sw-ink)); }
.color-tile-swatch { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.editor-field-label { font-size: 12.5px; font-weight: 500; color: var(--sw-muted); }
.color-tile .editor-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.color-tile-name { position: relative; display: -webkit-box; font-size: 13.5px; font-weight: 650; line-height: 1.2; color: inherit; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wheel-container, .inline-picker { display: grid; gap: 12px; }
.picker-sv { position: relative; width: 100%; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden; cursor: crosshair; touch-action: none; }
.picker-sv canvas { display: block; width: 100%; height: 100%; }
.pt .modal-body .picker-sv { aspect-ratio: auto; min-height: 0; }
.pt .modal-body .picker-sv canvas { position: absolute; inset: 0; }
@media (max-width: 760px) {
  .pt .modal-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border-radius: 12px; color: var(--sw-ink-2); font-size: 24px; line-height: 1; }
  .color-tile { padding: 9px 10px; }
  .color-tile-name { font-size: 12.5px; }
}
.picker-sv-cursor { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 1px 5px rgba(0, 0, 0, .45); pointer-events: none; }
.codes-two-col { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; }
.codes-two-col .codes-col, .codes-two-col .editor-field { display: contents; }
.codes-two-col .codes-col:first-child .codes-col__head { grid-column: 2; grid-row: 1; }
.codes-two-col .codes-col:last-child .codes-col__head { grid-column: 3; grid-row: 1; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(1) .editor-field-label, .codes-two-col .codes-col:last-child .editor-field:nth-of-type(1) .editor-field-label { grid-column: 1; grid-row: 2; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(1) .editor-field-value { grid-column: 2; grid-row: 2; }
.codes-two-col .codes-col:last-child .editor-field:nth-of-type(1) .editor-field-value { grid-column: 3; grid-row: 2; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(2) .editor-field-label, .codes-two-col .codes-col:last-child .editor-field:nth-of-type(2) .editor-field-label { grid-column: 1; grid-row: 3; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(2) .editor-field-value { grid-column: 2; grid-row: 3; }
.codes-two-col .codes-col:last-child .editor-field:nth-of-type(2) .editor-field-value { grid-column: 3; grid-row: 3; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(3) .editor-field-label, .codes-two-col .codes-col:last-child .editor-field:nth-of-type(3) .editor-field-label { grid-column: 1; grid-row: 4; }
.codes-two-col .codes-col:first-child .editor-field:nth-of-type(3) .editor-field-value { grid-column: 2; grid-row: 4; }
.codes-two-col .codes-col:last-child .editor-field:nth-of-type(3) .editor-field-value { grid-column: 3; grid-row: 4; }
.codes-two-col .codes-col:last-child .editor-field-label { display: none; }
.codes-two-col:has(> .codes-col:first-child[style*="none"]) .codes-col:last-child .editor-field-label { display: block; }
.codes-two-col:has(> .codes-col:first-child[style*="none"]) .codes-col:last-child .codes-col__head { display: none; }
.codes-col__head { font-size: 12.5px; font-weight: 500; color: var(--sw-muted); }
.editor-field { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 6px; }
.editor-field .editor-field-label { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; }
.editor-field-value { min-width: 0; height: 38px; padding: 0 10px; display: flex; align-items: center; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .03em; color: var(--sw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-field-value--static { cursor: copy; background: var(--pt-soft); border-color: transparent; }
.editor-field-input { width: 100%; outline: none; }
.editor-field-input:focus { border-color: var(--pt-focus); box-shadow: 0 0 0 1px var(--pt-focus); }
.editor-field-input.is-invalid { border-color: #e5484d; box-shadow: 0 0 0 1px #e5484d; }
.editor-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
.pt .modal-body > .editor-actions { order: 1; }
.pt .modal-body > .codes-two-col { order: 2; }
.pt .modal-body > .pt-del { order: 3; }
.btn-restore { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-restore svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-modal.btn-restore:disabled, .btn-modal.btn-restore:disabled:hover { background: #F3F3F4; border-color: #F3F3F4; color: #B4ABA4; cursor: default; }
.btn-modal { height: 46px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; color: var(--sw-ink); font-size: var(--t-tab-size); font-weight: var(--t-tab-weight); letter-spacing: var(--t-tab-ls); cursor: pointer; }
.btn-modal:hover { background: #fafafa; }
.btn-modal.primary { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }
.btn-modal.primary:hover { background: #3a312d; }
.pt-tune { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--pt-line); }
.pt-tune[hidden] { display: none; }
.pt-tune__dot { display: inline-block; width: 14px; height: 14px; margin-left: 9px; border-radius: 50%; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(42, 35, 32, .12); }
.pt-del { position: relative; min-height: 46px; margin-top: 6px; }
.pt-del[hidden] { display: none; }
.pt-del__btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; height: 46px; 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: color .15s ease, background .15s ease, opacity .15s ease; }
.pt-del__btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-del__lid { transform-box: view-box; transform-origin: 19.5px 7px; transition: transform .22s cubic-bezier(.34, 1.56, .64, 1); }
.pt-del__confirm { position: absolute; left: 0; right: 0; top: 50%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 14px; border-radius: 999px; background: #F8F4EF; white-space: nowrap; opacity: 0; visibility: hidden; transform: translateY(-50%); }
.pt-del__text { margin-right: auto; font-size: 13px; font-weight: 600; color: #DF3E23; }
.pt-del__cancel, .pt-del__yes { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pt-del__cancel { background: #fff; color: var(--sw-ink); box-shadow: 0 0 0 1px rgba(42, 35, 32, .08); }
.pt-del__yes { background: #DF3E23; color: #fff; }
.pt-del__yes:hover { background: #C8351C; }
.pt-del.is-asking .pt-del__btn { opacity: 0; pointer-events: none; }
.pt-del.is-asking .pt-del__confirm { opacity: 1; visibility: visible; animation: ptDelPop .3s cubic-bezier(.34, 1.56, .64, 1), ptDelNudge .4s .3s cubic-bezier(.36, .07, .19, .97); }
@media (hover: hover) and (pointer: fine) {
  .pt-del__btn:hover { color: #DF3E23; background: #fafafa; }
  .pt-del__btn:hover .pt-del__lid { transform: rotate(16deg) translateY(-1px); }
}
.pt-strip .swatch-wrap.is-leaving { flex-grow: 0; overflow: hidden; pointer-events: none; }
.pt-strip .swatch-wrap.is-dragged { z-index: 10; box-shadow: 0 22px 44px -16px rgba(20, 15, 12, .5); }
.pt-strip .color-swatch { -webkit-touch-callout: none; }
.pt-dragging, .pt-dragging * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
@keyframes ptDelPop { 0% { transform: translateY(-50%) scale(.82); } 100% { transform: translateY(-50%); } }
@keyframes ptDelNudge { 0%, 100% { transform: translateY(-50%); } 16% { transform: translateY(-50%) translateX(-3.5px) rotate(-1.2deg); } 32% { transform: translateY(-50%) translateX(3.5px) rotate(1.2deg); } 48% { transform: translateY(-50%) translateX(-2.5px) rotate(-.8deg); } 64% { transform: translateY(-50%) translateX(2px) rotate(.6deg); } 82% { transform: translateY(-50%) translateX(-1px); } }
@media (prefers-reduced-motion: reduce) {
  .pt-del.is-asking .pt-del__confirm { animation: none; }
}

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 10000; padding: 12px 18px; border-radius: 12px; background: var(--sw-ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.toast.show { opacity: 1; }

.auth-save-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 24px; }
.auth-save-modal.show { display: flex; }
.auth-save-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .55); }
.auth-save-modal__dialog { position: relative; width: min(570px, 100%); background: #fff; border-radius: 24px; padding: 48px 32px 64px; box-shadow: 0 24px 80px rgba(0, 0, 0, .24); }
.auth-save-modal__close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; padding: 0; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: #000; cursor: pointer; font-size: 0; line-height: 0; }
.auth-save-modal__close::before, .auth-save-modal__close::after { content: ''; position: absolute; top: 50%; left: 50%; width: 15px; height: 1.6px; border-radius: 1px; background: currentColor; }
.auth-save-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.auth-save-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.auth-save-modal h2 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; padding-right: 28px; text-wrap: balance; }
.pt-tune:not([hidden]) + .modal .modal-close { display: none; }
.auth-save-modal h2.auth-save-title--two { font-weight: 350; letter-spacing: -0.035em; color: var(--sw-muted); }
.auth-save-modal h2.auth-save-title--two b { font-weight: 650; color: var(--sw-ink); }
.auth-save-modal h3 { margin: 0; }
.auth-save-modal__text { margin: 12px 0 22px; color: var(--sw-ink-2); line-height: 1.5; }
.auth-save-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 20px; padding: 5px; border: 1px solid #EEEEEF; background: var(--pt-switch); border-radius: 14px; }
.auth-save-tab { border: 0; border-radius: 10px; padding: 11px; background: transparent; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--sw-muted); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.auth-save-tab.active { background: #fff; color: var(--sw-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .07); }
.auth-save-tab:hover:not(.active) { background: rgba(0, 0, 0, .02); color: var(--sw-ink); }
.auth-save-form { display: grid; gap: 14px; }
.auth-save-form label { display: grid; gap: 7px; }
.auth-save-form span { color: var(--sw-ink-2); font-size: 14px; font-weight: 500; }
.auth-save-form .btn { margin-top: 10px; }
.auth-save-form input { height: 50px; border: 1px solid #e3ddd8; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; }
.auth-save-modal .btn { height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-save-modal .btn-primary { background: var(--sw-ink); color: var(--sw-card); letter-spacing: -0.01em; box-shadow: 0 14px 28px -18px rgba(42, 35, 32, .8); }
.auth-save-modal .btn-primary:hover { background: var(--sw-ink); }
.auth-save-modal .btn-secondary { background: #fff; border-color: #e8e8e8; color: var(--sw-ink); }
.auth-save-hint { margin-top: 1px; font-size: 12.5px; line-height: 1.5; color: var(--sw-muted); }
.auth-save-hint.is-ok { color: #2E7D4F; }
.auth-save-message { min-height: 20px; margin: 0; color: var(--sw-ink-2); font-size: 14px; }
.auth-save-message:empty { display: none; }
.auth-save-success { padding-top: 8px; }
.auth-save-success p { color: var(--sw-ink-2); }
.auth-save-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.pt-strip.is-blocks { overflow: visible; border-radius: 0; }
.pt-strip.is-blocks .color-strip { flex-wrap: wrap; align-content: stretch; gap: 8px; }
.pt-strip.is-blocks .swatch-wrap { flex: 1 0 calc((100% - (var(--cols, 3) - 1) * 8px) / var(--cols, 3)); border-radius: 16px; overflow: hidden; }
.pt-strip.is-blocks .color-strip.hide-color-names .swatch-lock__name { display: block; }
.pt-strip.is-blocks .swatch-lock, .pt-strip.is-blocks .color-strip.colors-9plus .swatch-lock { align-items: flex-start; padding: 12px 12px 16px 18px; }
.pt-strip.is-blocks .swatch-lock__button { align-self: flex-end; }
.pt-strip.is-blocks .swatch-lock__copy { justify-items: start; text-align: left; gap: 4px; padding: 6px; margin-left: -6px; }
.pt-strip.is-blocks .swatch-lock__name { font-size: 13px; }
.pt-strip.is-blocks .swatch-lock__hex { font-size: 11.5px; }

.pt-orig { position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 1; pointer-events: none; }
.pt-strip.is-split .swatch-wrap .swatch-lock:not(.active) .swatch-lock__icon { filter: brightness(0); opacity: .5; }
.pt-strip.is-split .swatch-wrap.is-top-dark .swatch-lock:not(.active) .swatch-lock__icon { filter: brightness(0) invert(1); opacity: .85; }

.pt-split-btn { margin-left: auto; border-radius: 10px; }
.pt-split-btn[aria-pressed="true"] { background: var(--sw-ink); border-color: var(--sw-ink); color: #fff; }

.pt-slot:empty, .pt-slot:not(:has(.modal.show)) { display: none; }
.pt-slot[data-slot="seed"] { margin-top: 18px; padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pt-line); }
.pt-slot[data-slot="template"], .pt-slot[data-slot="svg"] { padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--pt-line); }
.pt-color-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
.pt-panel[data-panel="adjust"] > .pt-color-layout { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--pt-line); }

.pt-inspect { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--pt-line); }
.pt-inspect .pt-block__title { font-size: 14px; font-weight: 600; }
.pt-contrast { display: grid; gap: 8px; margin-bottom: 10px; }
.pt-contrast__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pt-contrast__aa { width: 36px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pt-contrast__mid { display: grid; gap: 7px; min-width: 0; }
.pt-contrast__label { font-size: 14px; font-weight: 500; line-height: 1; color: var(--sw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-contrast__track { position: relative; height: 3px; border-radius: 3px; background: var(--pt-line); }
.pt-contrast__track i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 3px; background: var(--sw-ink); }
.pt-contrast__track s { position: absolute; top: -2px; width: 1px; height: 7px; background: #fff; }
.pt-contrast__row.is-no .pt-contrast__track i { background: #C9C0B8; }
.pt-contrast__res { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-contrast__res b { display: block; font-size: 14px; font-weight: 650; color: var(--sw-ink); }
.pt-contrast__res span { font-size: 12px; color: var(--sw-muted); }
.pt-contrast__row.is-no .pt-contrast__res b { color: var(--sw-muted); }
.pt-contrast__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pt-contrast__tile { display: grid; align-content: center; justify-items: center; min-width: 0; height: 80px; padding: 0 8px; border-radius: 12px; text-align: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pt-contrast__ladder { display: flex; align-items: baseline; justify-content: center; gap: 7px; line-height: 1; }
.pt-contrast__ladder em { font-style: normal; font-weight: 650; letter-spacing: -0.01em; }
.pt-contrast__ladder em:nth-child(1) { font-size: 24px; }
.pt-contrast__ladder em:nth-child(2) { font-size: 16px; }
.pt-contrast__ladder em:nth-child(3) { font-size: 11px; }
.pt-contrast__tile i { display: block; width: 28px; height: 3px; margin-top: 9px; border-radius: 2px; opacity: .85; }
.pt-contrast__tile small { max-width: 100%; margin-top: 8px; font-size: 12.5px; font-weight: 650; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-things { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pt-thing { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pt-thing--card { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 14%; }
.pt-thing--card b { font-size: clamp(16px, 2.4cqi, 26px); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.pt-thing--card i { display: block; height: 6px; border-radius: 3px; }
.pt-thing--card i:last-child { width: 60%; }
.pt-thing--phone { display: flex; align-items: center; justify-content: center; }
.pt-thing--phone span { display: block; width: 42%; height: 82%; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 6px 14px -8px rgba(0, 0, 0, .4); }
.pt-thing--phone svg { display: block; width: 100%; height: 100%; }
.pt-thing--ui { display: flex; flex-direction: column; gap: 6px; padding: 14%; background: #F7F6F4; }
.pt-thing--ui i { display: block; height: 7px; border-radius: 3px; }
.pt-thing--ui i:first-child { width: 62%; }
.pt-thing--ui i:nth-child(3) { width: 70%; }
.pt-thing--ui s { display: block; margin-top: auto; height: 22%; border-radius: 6px; text-decoration: none; }

@container side (min-width: 620px) {
  .pt-panel[data-panel="adjust"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; align-content: start; }
  .pt-panel[data-panel="adjust"] .pt-block { margin-bottom: 22px; }
  .pt-panel[data-panel="adjust"] .pt-block:nth-last-child(-n+2) { border-bottom: 0; margin-bottom: 0; }
  .pt-panel[data-panel="adjust"] > .palette-adjust-card { grid-column: 1; grid-row: 1; }
  .pt-panel[data-panel="adjust"] > .palette-seed-card { grid-column: 2; grid-row: 1; }
  .pt-panel[data-panel="adjust"] > .pt-empty { grid-column: 1 / -1; grid-row: 2; }
  .pt-panel[data-panel="adjust"] > .pt-color-layout { grid-column: 1 / -1; grid-row: 3; }
  .pt-panel[data-panel="adjust"] > .palette-tonal-card { grid-column: 1; grid-row: 4; }
  .pt-panel[data-panel="adjust"] > .palette-sort-card { grid-column: 2; grid-row: 4; }
  .pt-preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 26px; }
  .pt-preview > .pt-preview__surface { grid-column: 1; grid-row: 1 / span 6; }
  .pt-preview > :not(.pt-preview__surface) { grid-column: 2; }
  .pt-color-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-color-layout .pt-inspect { padding-top: 0; border-top: 0; }
  .history-thumbs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}


.pt-side { position: relative; transition: --pt-more .25s ease; }
@property --pt-more { syntax: '<number>'; inherits: true; initial-value: 0; }
.pt-side { --pt-more: 0; }
.pt-fade { position: absolute; left: 10px; right: -12px; bottom: 0; z-index: 6; height: 140px; pointer-events: none; --dir: to bottom; }
.pt-work.is-left .pt-fade { left: -12px; right: 10px; }
.pt-panel { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), rgb(0 0 0 / clamp(0, 1 - 2 * var(--pt-more), 1)) calc(100% - 22px)); mask-image: linear-gradient(to bottom, #000 calc(100% - 130px), rgb(0 0 0 / clamp(0, 1 - 2 * var(--pt-more), 1)) calc(100% - 22px)); }
.pt-fade i { --h: 37.5%; --m1: 33.333%; --m2: 66.667%; --m3: 100%; position: absolute; left: 0; right: 0; top: var(--a); height: var(--h); -webkit-backdrop-filter: blur(calc(var(--b) * var(--pt-more))); backdrop-filter: blur(calc(var(--b) * var(--pt-more))); --side: linear-gradient(to right, transparent 0, #000 36px, #000 calc(100% - 36px), transparent 100%); -webkit-mask-image: linear-gradient(var(--dir), transparent 0%, #000 var(--m1), #000 var(--m2), transparent var(--m3)), var(--side); mask-image: linear-gradient(var(--dir), transparent 0%, #000 var(--m1), #000 var(--m2), transparent var(--m3)), var(--side); -webkit-mask-composite: source-in; mask-composite: intersect; }
.pt-fade i:nth-child(1) { --b: 0.25px; --a: 0%; }
.pt-fade i:nth-child(2) { --b: 0.5px; --a: 12.5%; }
.pt-fade i:nth-child(3) { --b: 1px; --a: 25%; }
.pt-fade i:nth-child(4) { --b: 2px; --a: 37.5%; }
.pt-fade i:nth-child(5) { --b: 4px; --a: 50%; }
.pt-fade i:nth-child(6) { --b: 8px; --a: 62.5%; }
.pt-fade i:nth-child(7) { --b: 16px; --a: 62.5%; --h: 37.5%; }
.pt-fade i:nth-child(8) { --b: 24px; --a: 70%; --h: 30%; --m1: 40%; --m2: 55%; --m3: 100%; }
.pt .foot { margin-top: 0; }

@media (max-width: 1640px) {
  .generator-cta--topbar .btn-primary { width: 170px; }
  .pt-ctrl { gap: 8px; }
  .pt-ctrl .pt-vsep { margin: 0 2px; }
}

@media (max-width: 1280px) {
  .pt { --pt-side-w: 344px; }
  .space-hint { display: none; }
  .generator-cta--topbar .btn-primary { width: 170px; }
}

@media (min-width: 1081px) {
  .pt { --pt-gap: 18px; --pt-bar-h: calc(40px + 2 * var(--pt-gap)); }
  .pt-main { width: calc(100% - 2 * var(--pt-gap)); }
  .pt-bar { margin-top: 0; }
  .pt-work { height: calc(var(--pt-vh) - 76px - var(--pt-bar-h) - var(--pt-gap)); margin-top: var(--pt-gap); }
  .pt-stage { gap: var(--pt-gap); padding-right: var(--pt-gap); }
  .pt-ctrl { min-height: 0; padding: 0 2px var(--pt-gap); }
  .pt-side { padding-left: var(--pt-gap); }
  .pt-bar__actions { padding-left: var(--pt-gap); container-type: inline-size; }
  .pt-bar__actions .pt-btn { font-size: clamp(13px, calc(3.5625px + 3.125cqi), 15px); gap: .6em; }
  .pt-work.is-left .pt-stage { padding-right: 0; padding-left: var(--pt-gap); }
  .pt-work.is-left .pt-side { padding-left: 0; padding-right: var(--pt-gap); }
  .pt-bar.is-left .pt-bar__actions { padding: 0 var(--pt-gap) 0 0; }
}

@media (max-width: 1080px) {
  .pt { --pt-bar-h: 69px; }
  .pt-bar { margin-top: 0; }
  .pt-work { flex-direction: column; height: auto; max-height: none; min-height: 0; }
  .pt-stage { padding-right: 0; }
  .pt-strip { flex: none; height: min(var(--pt-vh) * .62, 560px); }
  .pt-side, .pt-work.is-left .pt-side { width: 100% !important; padding: 24px 0 0; margin-top: 18px; border-top: 1px solid var(--pt-line); }
  .pt-work.is-left { flex-direction: column; }
  .pt-work.is-left .pt-stage { padding-left: 0; }
  .pt-resizer { display: none; }
  .pt-fade { display: none; }
  .pt-panel { -webkit-mask-image: none; mask-image: none; }
  #ptSideBtn, #ptSideBtn + .pt-vsep { display: none; }
  .pt-preview > .pt-preview__surface { top: 0; }
  .pt-panel { overflow: visible; margin-right: 0; padding-right: 2px; scrollbar-gutter: auto; }
  .pt-dd__pop--mood, .pt-dd__pop--harmony { max-width: calc(100vw - 28px); }
}

@media (max-width: 760px) {
  .pt-main { width: calc(100% - 20px); }
  .pt-bar { gap: 8px; padding: 0; }
  .pt-bar__title { font-size: 16px; }
  .pt-btn, .pt-bar__actions .pt-btn { width: 40px; padding: 0; justify-content: center; }
  .pt-btn span { display: none; }
  .pt-bar .pt-vsep { display: none; }
  .pt-pop-wrap { position: static; }
  .pt-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); width: auto; margin: 0; }
  .pt-strip { height: auto; border-radius: 16px; }
  .pt-strip .color-strip { flex-direction: column; }
  .pt-strip .swatch-wrap { flex: none; height: 92px; }
  .pt-strip .color-strip .swatch-wrap.is-leaving { height: 0; }
  .pt-strip .color-strip.colors-9plus .swatch-wrap { height: 62px; }
  .pt-strip .color-strip.colors-14plus .swatch-wrap { height: 52px; }
  .pt-strip .swatch-lock, .pt-strip .color-strip.colors-9plus .swatch-lock { flex-direction: row-reverse; align-items: center; justify-content: space-between; padding: 0 12px 0 10px; }
  .pt-strip .swatch-lock__button { align-self: center; background: rgba(255, 255, 255, .28); border-radius: 12px; }
  .pt-strip .swatch-lock__copy { justify-items: start; text-align: left; gap: 4px; }
  .pt-strip .swatch-lock__name { font-size: 14px; }
  .pt-strip .color-strip.colors-9plus .swatch-lock__copy { display: flex; align-items: baseline; gap: 12px; }
  .pt-strip .color-strip.colors-9plus .swatch-lock__name { font-size: 13px; }
  .pt-strip .color-strip.hide-color-names .swatch-lock__name { display: block; font-size: 12.5px; }
  .pt-strip .swatch-lock__hex { font-size: 11.5px; display: flex; gap: 8px; }
  .pt-orig { left: auto; width: 50%; height: auto; bottom: 0; }
  .pt-strip.is-blocks .color-strip { flex-direction: row; gap: 6px; }
  .pt-strip.is-blocks .swatch-wrap { flex: 1 0 calc(50% - 3px); height: 118px; border-radius: 14px; }
  .pt-strip.is-blocks .color-strip.colors-9plus .swatch-wrap { height: 92px; }
  .pt-strip.is-blocks .swatch-lock, .pt-strip.is-blocks .color-strip.colors-9plus .swatch-lock { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 8px 8px 10px 12px; }
  .pt-strip.is-blocks .swatch-lock__button { align-self: flex-end; width: 28px; height: 28px; }
  .pt-strip.is-blocks .color-strip.colors-9plus .swatch-lock__copy { display: grid; gap: 2px; }
  .pt-strip.is-blocks .swatch-lock__name, .pt-strip.is-blocks .color-strip.colors-9plus .swatch-lock__name { font-size: 13px; }
  .pt-strip.is-blocks .swatch-lock__hex { font-size: 11px; }
  .pt-preview__surface { width: min(100%, 62vh); justify-self: center; }
  .pt-things { gap: 6px; }
  .pt-ctrl { gap: 8px; padding-top: 4px; }
  .pt-ctrl .pt-vsep { display: none; }
  .pt-bar .generator-cta--topbar { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 40; }
  .pt-bar .generator-cta--topbar::before, .pt-bar .generator-cta--topbar::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none; }
  .pt-bar .generator-cta--topbar::before { height: 84px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
  .pt-bar .generator-cta--topbar::after { height: 64px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(to top, #000 45%, transparent); mask-image: linear-gradient(to top, #000 45%, transparent); }
  .pt-bar .generator-cta--topbar .btn-primary { width: 100%; height: 60px; min-height: 60px; gap: 12px; font-size: 20px; box-shadow: 0 14px 30px -12px rgba(42, 35, 32, .35); }
  .pt-bar .generator-cta--topbar .btn-mark { width: 26px; height: 28px; }
  .pt-dd { flex: 1 1 calc(50% - 4px); }
  .pt-dd__trigger { width: 100%; justify-content: flex-start; }
  .pt-dd__trigger .pt-chev { margin-left: auto; }
  .pt-dd[data-dd="harmony"] .pt-dd__pop { left: auto; right: 0; }
  .pt-dd__pop { bottom: auto; top: calc(100% + 8px); }
  .pt:not(.pf):not(.psx) .pt-dd__pop { bottom: calc(100% + 8px); top: auto; z-index: 95; overflow-y: auto; }
  .pt-mood-grid, .pt-harmony-grid { grid-template-columns: 1fr 1fr; }
  .pt-dd__pop { padding: 10px; }
  .pt-mood-grid button, .pt-harmony-grid button { min-width: 0; height: 40px !important; padding: 0 8px !important; gap: 8px; font-size: clamp(12px, 3.4vw, 14.5px) !important; white-space: nowrap; overflow: hidden; }
  .pt-mood-grid button::before { width: 24px; height: 16px; border-radius: 5px; }
  .pt-harmony-grid button::before { width: 18px; height: 18px; }
  .palette-topbar__colors { flex: 1; justify-content: space-between; }
  .pt-slider { grid-template-columns: 86px 1fr 44px; }
  .preview-color-locks { grid-template-columns: 1fr; }
  .auth-save-modal__dialog { padding: 30px 20px 40px; }
  .auth-save-modal h2 { font-size: 29px; padding-right: 40px; }
}

.pt :focus:not(:focus-visible) { outline: none; }
.pt :focus-visible { outline: 2px solid rgba(42, 35, 32, .45); outline-offset: 2px; }
.preview-color-lock__edit:focus-visible { outline-offset: -2px; border-radius: 8px; }
.pt-inspect--contrast .pt-contrast { margin-bottom: 0; }
.pt-panel:has(.pt-inspect--contrast:not([hidden])) .pt-empty { display: none; }
@container side (min-width: 620px) {
  .pt-color-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-color-layout > .pt-slot[data-slot="color"] { grid-column: 1; grid-row: 1 / span 2; }
  .pt-color-layout > .pt-inspect--contrast { grid-column: 2; grid-row: 1; padding-bottom: 20px; border-bottom: 1px solid var(--pt-line); }
  .pt-color-layout > .pt-inspect--things { grid-column: 2; grid-row: 2; }
}

.pt-strip { position: relative; }
.pt-strip .pt-tones { pointer-events: auto; display: flex; gap: 3px; margin: auto 0 8px; }
.pt-strip .pt-tone { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); cursor: pointer; transition: transform .15s ease; }
.pt-strip .swatch-wrap.is-light .pt-tone { box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .1); }
.pt-strip .pt-tone:hover { transform: scale(1.15); }
@container (max-width: 120px) {
  .pt-strip .pt-tones { gap: 2px; }
  .pt-strip .pt-tone { width: 12px; height: 12px; border-radius: 4px; }
}
@container (max-width: 92px) {
  .pt-strip .pt-tones { flex-direction: column; gap: 3px; }
  .pt-strip .pt-tone { width: 16px; height: 16px; border-radius: 5px; }
}
@media (max-width: 760px) {
  .pt-strip:not(.is-blocks) .pt-tones { margin: 0 12px 0 auto; }
}
.pt-strip .swatch-lock__copy { position: relative; transition: translate .5s cubic-bezier(.22, 1, .36, 1); }
.pt-strip .pt-tones { transition: translate .5s cubic-bezier(.22, 1, .36, 1); }
.pt-strip .swatch-wrap.is-selected .swatch-lock__copy, .pt-strip .swatch-wrap.is-selected .pt-tones { translate: 0 -19px; }
.pt-strip .swatch-lock__copy::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: calc(100% - 8px); height: 3px; border-radius: 999px; background: currentColor; opacity: 0; transform: translateX(-50%) scaleX(.2); pointer-events: none; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; }
.pt-strip .swatch-wrap.is-selected .swatch-lock__copy::after { opacity: .85; transform: translateX(-50%) scaleX(1); transition-delay: .08s; }
.pt-strip.is-blocks .swatch-lock__copy::after { left: 6px; width: calc(100% - 12px); transform: scaleX(.2); transform-origin: 0 50%; }
.pt-strip.is-blocks .swatch-wrap.is-selected .swatch-lock__copy::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .pt-strip:not(.is-blocks) .swatch-wrap.is-selected .pt-tones { translate: none; }
  .pt-strip:not(.is-blocks) .swatch-wrap.is-selected .swatch-lock__copy { translate: 0 -21px; }
  .pt-strip:not(.is-blocks) .swatch-lock__copy::after { left: 4px; transform: scaleX(.2); transform-origin: 0 50%; }
  .pt-strip:not(.is-blocks) .swatch-wrap.is-selected .swatch-lock__copy::after { transform: scaleX(1); }
}
.pt-mosaic { position: absolute; z-index: 5; display: grid; gap: 2px; overflow: hidden; pointer-events: none; }
.pt-mosaic span { border-radius: 3px; opacity: 0; }

@keyframes pt-fade-in { to { opacity: 1; } }


.pt-mood-grid button { --a: #ccc; --b: #ddd; --c: #eee; --d: #bbb; }
.pt-mood-grid [data-mood="studio"] { --a: #F16748; --b: #F5C542; --c: #A6D2A9; --d: #6FA8E6; }
.pt-mood-grid [data-mood="earthy"] { --a: #C8693B; --b: #E9B872; --c: #8FA35A; --d: #F1E3CC; }
.pt-mood-grid [data-mood="pastel"] { --a: #FF8FB1; --b: #FFB347; --c: #FFF06A; --d: #8AD8FF; }
.pt-mood-grid [data-mood="moody"] { --a: #272027; --b: #0E1114; --c: #746879; --d: #453B38; }
.pt-mood-grid [data-mood="bright"] { --a: #FFE3DA; --b: #DFD8BF; --c: #F0FC9F; --d: #A6EC84; }
.pt-mood-grid [data-mood="vivid"] { --a: #F9A96C; --b: #EFFB79; --c: #5BDAF7; --d: #6570FD; }
.pt-mood-grid [data-mood="nordic"] { --a: #C3E5CD; --b: #8691A3; --c: #BFD9E5; --d: #E9F0FB; }
.pt-mood-grid [data-mood="luxe"] { --a: #AF2435; --b: #8F1E2C; --c: #62141E; --d: #1A0508; }
.pt-mood-grid [data-mood="textile"] { --a: #89B481; --b: #BE8C92; --c: #597A58; --d: #F4E7E7; }
.pt-mood-grid [data-mood="corporate"] { --a: #1B4498; --b: #F0F5F5; --c: #9DC2EE; --d: #5289BC; }
.pt-mood-grid [data-mood="retro"] { --a: #E76F51; --b: #F4A261; --c: #E9C46A; --d: #6B8E4E; }
.pt-mood-grid [data-mood="coastal"] { --a: #E6CCA6; --b: #DDEEFD; --c: #76C0DC; --d: #4271BD; }
.pt-mood-grid [data-mood="happy"] { --a: #F98C67; --b: #BEDF49; --c: #7EA8EC; --d: #F7A1F0; }
.pt-mood-grid [data-mood-icon="auto"] { --a: #F16748; --b: #F5C542; --c: #A6D2A9; --d: #6FA8E6; }
.pt-mood-grid [data-mood-icon="sunrise"] { --a: #FFF081; --b: #FFC67F; --c: #FD894C; --d: #E45153; }
.pt-mood-grid [data-mood-icon="sunset"] { --a: #6C00B6; --b: #AF0097; --c: #E55667; --d: #FFC29D; }
.pt-mood-grid [data-mood-icon="blush"] { --a: #DE6CA4; --b: #A1BCA1; --c: #F5B8BE; --d: #F6D8DA; }
.pt-mood-grid [data-mood-icon="sorbet"] { --a: #A6DC53; --b: #EADF3D; --c: #FFA151; --d: #DE4536; }
.pt-mood-grid [data-mood-icon="forest"] { --a: #92AD2C; --b: #5E931F; --c: #386224; --d: #132911; }
.pt-mood-grid [data-mood-icon="arctic"] { --a: #6FC1E5; --b: #E9A8C5; --c: #89DBF4; --d: #C6EDF1; }
.pt-mood-grid [data-mood-icon="allure"] { --a: #3D2BFF; --b: #FF2E63; --c: #FF8A00; --d: #00C8FF; }
.pt-mood-grid [data-mood-icon="midnight"] { --a: #000216; --b: #0E052A; --c: #36144C; --d: #5E1E60; }
.pt-mood-grid [data-mood-icon="nebula"] { --a: #250063; --b: #690080; --c: #8E006F; --d: #DE335C; }
.pt-mood-grid [data-mood-icon="cyber"] { --a: #53E800; --b: #00D2D0; --c: #0092D8; --d: #8044FF; }
.pt-mood-grid [data-mood-icon="chrome"] { --a: #213346; --b: #345067; --c: #5F8398; --d: #D0E5EC; }
.pt-mood-grid [data-mood-icon="happy"] { --a: #F23A50; --b: #FF8833; --c: #E9C700; --d: #76CA40; }
.pt-mood-grid [data-mood-icon="ocean"] { --a: #A2E7B1; --b: #BCF1E9; --c: #00D8D6; --d: #00B7C0; }
.pt-mood-grid [data-mood-icon="autumn"] { --a: #E6BE52; --b: #F67E1F; --c: #C7222C; --d: #643214; }
.pt-mood-grid [data-mood-icon="jewel"] { --a: #F19E1D; --b: #BF0039; --c: #8B3EAE; --d: #2960A4; }
.pt-mood-grid [data-mood-icon="lavender"] { --a: #C4ACDC; --b: #C763AC; --c: #6C51B6; --d: #68294C; }
.pt-mood-grid [data-mood-icon="coffee"] { --a: #59301F; --b: #A65334; --c: #CBB090; --d: #EAE1D1; }
.pt-mood-grid button::before { content: ''; width: 30px; height: 20px; flex: none; border-radius: 6px; background: linear-gradient(90deg, var(--a) 0 25%, var(--b) 25% 50%, var(--c) 50% 75%, var(--d) 75%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }

.pt-format { position: relative; padding: 14px 14px 13px; border-color: #ECE7E3; border-radius: 14px; gap: 4px; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.pt-format::after { content: ''; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; background: url('/icons/icon-download.svg') center / contain no-repeat; opacity: .22; transition: opacity .2s ease, transform .2s ease; }
.pt-format:hover { background: var(--pt-soft); border-color: #E3DDD8; transform: translateY(-1px); }
.pt-format:hover::after { opacity: .8; transform: translateY(1px); }




@media (max-width: 1080px) {
  .pt-bar__main { padding-right: 16px; }
  .pt-bar__actions, .pt-bar.is-left .pt-bar__actions { width: auto; padding: 0; display: flex; }
  .pt-bar.is-left { flex-direction: row; }
  .pt-bar.is-left .pt-bar__main { padding: 0 16px 0 6px; }
  .pt-bar__actions > .pt-btn, .pt-bar__actions > .pt-pop-wrap { flex: none; }
  .pt-ctrl .pt-vsep:has(+ #ptSideBtn) { display: none; }
}
@media (max-width: 760px) {
  .pt-strip:not(.is-blocks) .swatch-wrap.is-selected { flex-grow: 0; height: 120px; }
  .pt-strip:not(.is-blocks) .color-strip.colors-9plus .swatch-wrap.is-selected { height: 88px; }
}

.pt-layout-toggle .palette-topbar__format-button { min-width: 32px; width: 32px; padding: 0; }
.pt-layout-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.pt-layout-toggle .palette-topbar__format-button { color: var(--sw-muted); }
.pt-layout-toggle .palette-topbar__format-button.active, .pt-layout-toggle .palette-topbar__format-button:hover { color: var(--sw-ink); }




.pt-harmony-grid button::before { content: ''; width: 22px; height: 22px; flex: none; background: var(--icon) center / contain no-repeat; }
.pt-harmony-grid [data-harmony="flow"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='7.00' cy='4.07' r='2.6' fill='hsl(330,82%25,55%25)'/%3E%3Ccircle cx='11.00' cy='3.00' r='2.6' fill='hsl(0,82%25,55%25)'/%3E%3Ccircle cx='15.00' cy='4.07' r='2.6' fill='hsl(30,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="duo"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='13.74' cy='3.48' r='2.6' fill='hsl(20,82%25,55%25)'/%3E%3Ccircle cx='8.26' cy='18.52' r='2.6' fill='hsl(200,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="split"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='13.74' cy='3.48' r='2.6' fill='hsl(20,82%25,55%25)'/%3E%3Ccircle cx='12.39' cy='18.88' r='2.6' fill='hsl(170,82%25,55%25)'/%3E%3Ccircle cx='4.87' cy='16.14' r='2.6' fill='hsl(230,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="compound"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='13.74' cy='3.48' r='2.6' fill='hsl(20,82%25,55%25)'/%3E%3Ccircle cx='17.55' cy='6.41' r='2.6' fill='hsl(55,82%25,55%25)'/%3E%3Ccircle cx='8.26' cy='18.52' r='2.6' fill='hsl(200,82%25,55%25)'/%3E%3Ccircle cx='4.45' cy='15.59' r='2.6' fill='hsl(235,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="gallery"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='11.00' cy='3.00' r='2.6' fill='hsl(0,82%25,55%25)'/%3E%3Ccircle cx='19.00' cy='11.00' r='2.6' fill='hsl(90,82%25,55%25)'/%3E%3Ccircle cx='11.00' cy='19.00' r='2.6' fill='hsl(180,82%25,55%25)'/%3E%3Ccircle cx='3.00' cy='11.00' r='2.6' fill='hsl(270,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="triad"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='11.00' cy='3.00' r='2.6' fill='hsl(0,82%25,55%25)'/%3E%3Ccircle cx='17.93' cy='15.00' r='2.6' fill='hsl(120,82%25,55%25)'/%3E%3Ccircle cx='4.07' cy='15.00' r='2.6' fill='hsl(240,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="mono"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='7.00' cy='17.93' r='2.4' fill='hsl(210,82%25,45%25)'/%3E%3Ccircle cx='8.75' cy='14.90' r='2.4' fill='hsl(210,82%25,62%25)'/%3E%3Ccircle cx='10.50' cy='11.87' r='2.4' fill='hsl(210,82%25,78%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="shades"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='5.00' cy='11.00' r='2.2' fill='hsl(20,82%25,82%25)'/%3E%3Ccircle cx='9.00' cy='11.00' r='2.2' fill='hsl(20,82%25,66%25)'/%3E%3Ccircle cx='13.00' cy='11.00' r='2.2' fill='hsl(20,82%25,50%25)'/%3E%3Ccircle cx='17.00' cy='11.00' r='2.2' fill='hsl(20,82%25,34%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid [data-harmony="drift"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='8' fill='none' stroke='%23E4DED8' stroke-width='2'/%3E%3Ccircle cx='16.14' cy='4.87' r='2.3' fill='hsl(40,82%25,55%25)'/%3E%3Ccircle cx='13.50' cy='15.33' r='2.3' fill='hsl(150,82%25,55%25)'/%3E%3Ccircle cx='3.48' cy='13.74' r='2.3' fill='hsl(250,82%25,55%25)'/%3E%3Ccircle cx='8.70' cy='9.07' r='2.3' fill='hsl(310,82%25,55%25)'/%3E%3Ccircle cx='18.97' cy='11.70' r='2.3' fill='hsl(95,82%25,55%25)'/%3E%3C/svg%3E"); }
.pt-harmony-grid[aria-disabled="true"] button::before, .pt-mood-grid[aria-disabled="true"] button::before { opacity: .55; }
.pt-harmony-grid[aria-disabled="true"] button.active::before, .pt-mood-grid[aria-disabled="true"] button.active::before { opacity: 1; }

@container (max-width: 96px) {
  .pt-strip .color-strip .swatch-wrap .swatch-lock .swatch-lock__name { display: none; }
}
@container (max-width: 60px) {
  .pt-strip .color-strip .swatch-wrap .swatch-lock .swatch-lock__hex { display: none; }
}

.pt-peek { display: none; }
@media (max-width: 1080px) {
  .space-hint { display: none; }
  .pt-bar__actions .pt-btn { width: auto; }
  .pt-peek { position: fixed; left: 10px; right: 10px; top: 8px; z-index: 45; display: flex; height: 96px; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translateY(calc(-100% - 16px)) scale(.96); filter: drop-shadow(0 10px 12px rgba(42, 35, 32, .22)); transition: transform .6s cubic-bezier(.22, 1.25, .36, 1), opacity .3s ease; }
  .pt-peek.is-on { opacity: 1; transform: none; pointer-events: auto; }
  .pt-peek > button { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0; border-radius: 0; cursor: pointer; transform-origin: top; transform: scaleY(.15); transition: transform .55s cubic-bezier(.22, 1.25, .36, 1) var(--d, 0s); }
  .pt-peek.is-on > button { transform: none; }
  .pt-peek b { position: absolute; left: 0; right: 0; top: 0; height: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-peek, .pt-peek > button { transition: opacity .2s ease; transform: none; }
  .palette-mode-seg .seg-plate { transition: opacity .2s ease; }
}
@media (max-width: 760px) {
  .pt-bar__actions .pt-btn { width: 40px; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .pt-bar__actions .pt-btn { width: 40px; padding: 0; justify-content: center; }
  .pt-bar__actions .pt-btn > span:not([aria-hidden]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.pt-saved .history-thumb { gap: 6px; }
.pt-saved__src { padding-left: 2px; font-size: 11.5px; font-weight: 500; color: #66748a; }
.pt-saved__name { overflow: hidden; padding-left: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--sw-ink); white-space: nowrap; text-overflow: ellipsis; }
.pt-saved__grad { display: block; height: 44px; border-radius: 9px; }
.pt-saved__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pt-saved__empty p { margin: 0; text-wrap: balance; }
.pt-saved__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pt-saved__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 1px solid #e8e8e8; border-radius: 999px; background: #fff; color: var(--sw-ink); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.pt-saved__btn:hover { background: #F7F5F2; border-color: #E3DDD8; }
.pt-saved__btn--dark { border-color: var(--sw-ink); background: var(--sw-ink); color: #fff; box-shadow: 0 12px 24px -16px rgba(42, 35, 32, .8); }
.pt-saved__btn--dark:hover { background: var(--sw-ink); border-color: var(--sw-ink); }
.pt-tonal-say { margin: 14px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--sw-ink-2); }
.pt-tonal-say b { color: var(--sw-ink); font-weight: 650; }
.pt-tonal-say[hidden], .pt-tonal-note[hidden] { display: none; }
.pt-tonal-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #F7F5F2; font-size: 13.5px; line-height: 1.45; color: var(--sw-ink-2); }
.pt-tonal-note__art { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 3px; }
.pt-tonal-note__chip { width: 27px; height: 27px; border-radius: 50%; overflow: hidden; display: grid; grid-template-rows: 1fr 1fr; }
.pt-tonal-note__eq { display: block; transform: rotate(90deg); font-size: 18px; line-height: 18px; font-weight: 700; color: var(--sw-muted); }
.pt-tonal-note__bar { width: 27px; height: 7.5px; border-radius: 3px; }
.pt-tonal-note__text { min-width: 0; }
.pt-tonal-note__head { display: block; margin-bottom: 4px; font-weight: 650; color: var(--sw-ink); letter-spacing: -0.005em; }
.pt-tonal-note__name { padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: var(--sw-ink); text-decoration: underline; text-decoration-color: #CFC6BF; text-underline-offset: 3px; cursor: pointer; }
.pt-tonal-note__name:hover { text-decoration-color: var(--sw-ink); }
.pt-strip.is-bob { overflow: visible; }
.pt-strip:not(.is-blocks).is-bob .swatch-wrap:first-child .color-swatch { border-radius: 18px 0 0 18px; }
.pt-strip:not(.is-blocks).is-bob .swatch-wrap:last-child .color-swatch { border-radius: 0 18px 18px 0; }
.pt-strip:not(.is-blocks).is-bob .swatch-wrap:first-child .pt-orig { border-top-left-radius: 18px; }
.pt-strip:not(.is-blocks).is-bob .swatch-wrap:last-child .pt-orig { border-top-right-radius: 18px; }
.pt-strip .swatch-wrap.pt-bob { z-index: 4; animation: ptBob .62s cubic-bezier(.3, .7, .3, 1); }
.pt-peek.is-bob { overflow: visible; }
.pt-peek.is-on > button.pt-bob { z-index: 1; animation: ptBob .62s cubic-bezier(.3, .7, .3, 1); }
.pt-peek.is-bob > button:first-child { border-radius: 16px 0 0 16px; overflow: hidden; }
.pt-peek.is-bob > button:last-child { border-radius: 0 16px 16px 0; overflow: hidden; }
@keyframes ptBob { 0% { transform: translateY(0); } 32% { transform: translateY(-10px); } 66% { transform: translateY(4px); } 100% { transform: translateY(0); } }
@media (max-width: 760px) {
  .pt-tonal-note__chip { width: 40.5px; height: 40.5px; }
  .pt-tonal-note__bar { width: 40.5px; height: 11.25px; border-radius: 4.5px; }
  .pt-tonal-note__art { gap: 4.5px; padding-top: 4.5px; }
  .pt-tonal-note__eq { font-size: 27px; line-height: 27px; }
  .pt-strip:not(.is-blocks).is-bob .swatch-wrap:first-child .color-swatch { border-radius: 18px 18px 0 0; }
  .pt-strip:not(.is-blocks).is-bob .swatch-wrap:last-child .color-swatch { border-radius: 0 0 18px 18px; }
  .pt-strip:not(.is-blocks).is-bob .swatch-wrap:first-child .pt-orig { border-top-left-radius: 0; border-top-right-radius: 18px; }
  .pt-strip:not(.is-blocks).is-bob .swatch-wrap:last-child .pt-orig { border-top-right-radius: 0; border-bottom-right-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-strip .swatch-wrap.pt-bob, .pt-peek.is-on > button.pt-bob { animation: none; }
}

@media (max-width: 760px) {
  .pt-bar .generator-cta--topbar, .pt-bar__actions > .ws-new-colors { transition: translate .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s; }
  .pt-footer-active .pt-bar .generator-cta--topbar, .pt-footer-active .pt-bar__actions > .ws-new-colors { translate: 0 calc(100% + 60px + env(safe-area-inset-bottom)); opacity: 0; visibility: hidden; pointer-events: none; transition: translate .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s .35s; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .pt-bar .generator-cta--topbar, .pt-bar__actions > .ws-new-colors, .pt-footer-active .pt-bar .generator-cta--topbar, .pt-footer-active .pt-bar__actions > .ws-new-colors { transition: none; }
}
.pt-panel[data-panel="adjust"].is-color-only > :not(.pt-color-layout) { display: none !important; }
.pt-panel[data-panel="adjust"].is-color-only > .pt-color-layout { grid-row: auto; padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
@media (max-width: 760px) {
  .pt-bar:has(.ws-new-colors:not([hidden])) .generator-cta--topbar { right: 98px; }
  .pt-bar__actions > .ws-new-colors { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 60px; height: 60px; padding: 0; border: 1px solid #E8E2DD; border-radius: 50%; background: #fff; box-shadow: 0 6px 20px rgba(42, 35, 32, .12); }
  .pt-bar__actions > .ws-new-colors:hover { border-color: #CFC6BF; }
  .ws-new-colors .ws-new-colors__wheel { width: 30px; height: 30px; }
  .ws-new-colors__label { display: none; }
}
.pt-dd__pop--mood .pt-pop__title, .pt-dd__pop--harmony .pt-pop__title, .psx-dd__pop--mode .pt-pop__title, .psx-dd__pop--repeat .pt-pop__title, .pg-dd--type .pt-pop__title, .isx-dd__pop--count .pt-pop__title { padding-left: 12px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--sw-ink); }
.pt-dd__pop--mood .pt-pop__head, .pt-dd__pop--harmony .pt-pop__head, .psx-dd__pop--mode .pt-pop__head, .psx-dd__pop--repeat .pt-pop__head { margin-bottom: 12px; padding: 0 12px 12px 0; border-bottom: 1px solid var(--pt-line); }
.pg-dd--type > .pt-pop__title, .isx-dd__pop--count > .pt-pop__title { margin: 0 0 12px; padding: 0 12px 12px; border-bottom: 1px solid var(--pt-line); white-space: nowrap; }
@media (max-width: 760px) {
  .pt-dd__pop--mood .pt-pop__title, .pt-dd__pop--harmony .pt-pop__title, .psx-dd__pop--mode .pt-pop__title, .psx-dd__pop--repeat .pt-pop__title, .pg-dd--type .pt-pop__title, .isx-dd__pop--count .pt-pop__title { padding-left: 8px; }
  .pg-dd--type > .pt-pop__title, .isx-dd__pop--count > .pt-pop__title { margin-bottom: 10px; padding: 0 8px 10px; }
  .pt-dd__pop--mood .pt-pop__head, .pt-dd__pop--harmony .pt-pop__head, .psx-dd__pop--mode .pt-pop__head, .psx-dd__pop--repeat .pt-pop__head { margin-bottom: 10px; padding: 0 8px 10px 0; }
}
