.pf-start { display: grid; justify-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; text-align: center; }
.pf-start__title { margin: 0; font-size: clamp(34px, 5vw, 58px); font-weight: 650; line-height: 1.05; letter-spacing: -0.04em; color: var(--sw-ink); }
.pf-start__title span { font-weight: 350; color: var(--sw-muted); }
.pf-start__text { max-width: 560px; margin: 0; font-size: 17px; line-height: 1.5; color: var(--sw-ink-2); }
.pf-start__btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; margin-top: 10px; padding: 0 28px; border-radius: 999px; background: var(--sw-ink); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 14px 28px -18px rgba(42, 35, 32, .8); transition: transform .15s ease, box-shadow .15s ease; }
.pf-start__btn:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -18px rgba(42, 35, 32, .85); }
.pf-start__btn svg, .pf-new svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-start__note { display: block; margin: 26px 0 0; font-size: 13px; line-height: 1.5; color: var(--sw-muted); }
.pf-start__note svg { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

body.pf:not(.pfi-has-image) .pt-bar, body.pf:not(.pfi-has-image) .pt-work { display: none !important; }

.pf .pt-stage { gap: 12px; }
@media (min-width: 1081px) {
  .pf .pt-ctrl { margin-top: calc(var(--pt-gap) - 12px); }
}
.pf-photo { position: relative; flex: 1 1 60%; min-height: 0; border-radius: 18px; background: var(--pt-soft); overflow: hidden; }
.pf-photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.pf-strip { flex: 0 0 auto; height: clamp(160px, 24%, 200px); border-radius: 18px; overflow: hidden; }
.pf #strip { display: flex; height: 100%; }
.pf #strip .color-swatch { position: relative; flex: 1 1 0; min-width: 0; height: 100%; margin: 0; padding: 0 6px 14px; border: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; color: var(--sw-ink); cursor: pointer; container-type: inline-size; }
.pf #strip .color-swatch.is-dark { color: #fff; }
.pf-sw__name { max-width: 100%; font-size: 13px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; opacity: .72; text-align: center; overflow-wrap: break-word; }
.pf-sw__hex { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .72; white-space: nowrap; }
.pf #strip .color-swatch:hover .pf-sw__name, .pf #strip .color-swatch:hover .pf-sw__hex { opacity: 1; }
@container (max-width: 96px) {
  .pf-sw__name { display: none; }
}
@container (max-width: 60px) {
  .pf-sw__hex { display: none; }
}

.pf-new { height: 40px; padding: 0 14px; 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; }
.pf-new:hover { background: #fafafa; border-color: #E4E4E6; }
a.pf-new { text-decoration: none; }

.pf-detail-head { position: relative; }
.pf-detail-head .export-help { position: static; }
.pf-detail-head .export-tooltip { top: calc(100% + 10px); bottom: auto; left: 0; transform: none; }
.pt-slider.pf-detail-slider { grid-template-columns: minmax(0, 1fr) 48px; }
@media (max-width: 760px) {
  .pt-slider.pf-detail-slider { grid-template-columns: minmax(0, 1fr) 44px; }
}

.dominance-bar { display: flex; height: 32px; border-radius: 10px; overflow: hidden; }
.dominance-segment { height: 100%; }

.pf-note { margin-left: auto; font-size: 13px; font-weight: 450; color: var(--sw-muted); }
.pf .details { display: grid; gap: 8px; }
.pf .rowCard { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 10px 4px 10px; border: 1px solid #ece8e4; border-radius: 12px; background: #fff; cursor: pointer; }
.pf .rowCard:hover { background: #fdfcfb; }
.pf .miniChip { width: 20px; height: 20px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pf .rowBody { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.pf .rowTop { flex: 1; min-width: 0; }
.pf .rowTop .idx, .pf .rowTop .hint, .pf .codeLine { display: none; }
.pf .rowTop > div:first-child > div:last-child { font-size: 13px !important; font-weight: 600 !important; letter-spacing: -0.01em; color: var(--sw-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-code { flex: none; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--sw-muted); white-space: nowrap; }
.pf-sw__code { display: block; }
.pf-tune[hidden] { display: none; }
.pf .details > .pf-tune { margin: 10px 0 14px; padding-bottom: 22px; border-bottom: 1px solid var(--pt-line); }
.pf-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-range--warm { --track: linear-gradient(90deg, #5c9de0, #ece8e3, #f0a24f); }
.pt-range--contrast { --track: linear-gradient(90deg, #d9d4cf, #8c8078 50%, #2a2320); }
.pf .details > .modal.show { margin: 0 0 4px; padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pf .details > .modal .modal-close { display: none; }


@media (max-width: 1080px) {
  .pf-photo { flex: none; height: max(260px, var(--pt-vh) * .52); }
  .pf-strip, .pf #strip { height: auto; }
  .pf #strip { align-items: flex-start; }
  .pf #strip .color-swatch { height: auto; aspect-ratio: 1; min-height: 160px; max-height: 200px; }
}
@media (min-width: 761px) and (max-width: 1080px) and (orientation: landscape) {
  .pf .pt-stage { flex: none; height: calc(var(--pt-vh) - 161px); min-height: 460px; }
  .pf-photo { flex: 1 1 0; height: auto; min-height: 180px; }
  .pf #strip .color-swatch { max-height: max(160px, var(--pt-vh) * .22); }
}
@media (max-width: 760px) {
  .pf .pf-mode { flex: none; }
  .pf-start { padding: 64px 16px 48px; }
  .pf-photo { height: max(220px, 44vh); }
  .pf-strip { height: auto; }
  .pf #strip { flex-direction: column; align-items: stretch; }
  .pf #strip .color-swatch { height: 64px; aspect-ratio: auto; min-height: 0; max-height: none; flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 0 16px; }
}

.pf #strip .pt-tones { display: flex; gap: 3px; margin: auto 0 8px; pointer-events: none; }
.pf #strip .pt-tones, .pf #strip .pf-sw__name, .pf #strip .pf-sw__hex { transition: translate .5s cubic-bezier(.22, 1, .36, 1); }
.pf #strip .color-swatch.is-picked > .pt-tones, .pf #strip .color-swatch.is-picked .pf-sw__name, .pf #strip .color-swatch.is-picked .pf-sw__hex { translate: 0 -19px; }
.pf #strip .pf-sw__hex { position: relative; }
.pf #strip .pf-sw__hex::after { content: ''; position: absolute; left: 50%; top: calc(100% + 10px); width: var(--bar-w, 100%); 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; }
.pf #strip .color-swatch.is-picked .pf-sw__hex::after { opacity: 1; transform: translateX(-50%) scaleX(1); transition-delay: .08s; }
.pf #strip .pt-tone { width: 16px; height: 16px; border-radius: 5px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pf #strip .color-swatch:not(.is-dark) .pt-tone { box-shadow: inset 0 0 0 1px rgba(42, 35, 32, .1); }
.pf #strip .pt-mosaic { inset: 0; }
@container (max-width: 120px) {
  .pf #strip .pt-tones { gap: 2px; }
  .pf #strip .pt-tone { width: 12px; height: 12px; border-radius: 4px; }
}
@media (max-width: 760px) {
  .pf #strip .pt-tones { margin: 0 0 0 auto; }
  .pf #strip .color-swatch.is-picked > .pt-tones { translate: none; }
  .pf #strip .color-swatch.is-picked .pf-sw__name, .pf #strip .color-swatch.is-picked .pf-sw__hex { translate: 0 -8px; }
  .pf #strip .pf-sw__hex::after { display: none; }
  .pf #strip .color-swatch::after { content: ''; position: absolute; left: var(--bar-x, 16px); top: calc(50% + 6px); width: var(--bar-row, 0px); height: 3px; border-radius: 999px; background: currentColor; opacity: 0; transform: scaleX(.2); transform-origin: 0 50%; pointer-events: none; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .35s ease; }
  .pf #strip .color-swatch.is-picked::after { opacity: .72; transform: scaleX(1); transition-delay: .08s; }
}
.pf #strip .color-swatch.is-dragged { z-index: 10; box-shadow: 0 22px 44px -16px rgba(20, 15, 12, .5); }
.pf-marks { position: absolute; z-index: 2; pointer-events: none; }
.pf-marks[hidden], .pf-loupe[hidden] { display: none; }
.pf-mark { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(42, 35, 32, .18), 0 4px 10px -2px rgba(20, 15, 12, .45); cursor: grab; pointer-events: auto; touch-action: none; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.pf-mark::before { content: ''; position: absolute; inset: -11px; border-radius: 50%; }
.pf-mark:hover { transform: scale(1.15); }
.pf-mark.is-on { z-index: 1; transform: scale(1.45); }
.pf-mark.is-moving { z-index: 2; cursor: grabbing; transform: scale(1.6); transition: none; }
.pf-loupe { position: absolute; z-index: 3; width: 44px; height: 44px; margin: -74px 0 0 -22px; border: 3px solid #fff; border-radius: 50%; background: var(--c, transparent); box-shadow: 0 0 0 1px rgba(42, 35, 32, .2), 0 8px 18px -6px rgba(20, 15, 12, .5); pointer-events: none; }
