/* 2026-11-21 시안(m46): 보라 선택·흰 층 카드·떠 있는 아래 메뉴 위로 저장 바. 사진 줄이기·가리기는 한 줄(ps-one)
   2026-11-01 사진 도구 3종(예쁘게·줄이기·가리기) 공통 화면 — 큰 미리보기 + 사진 줄 + 아래 고정 버튼.
   공용 wm-modern.css 가 .chips button / button.on 을 !important 로 칠하므로 여기서는 그 이름을 쓰지 않는다(.sel 사용). */
.ps{max-width:1100px;margin:0 auto;padding:4px 20px 96px}
.ps [hidden]{display:none!important}
.ps-wrap > *{min-width:0}
.ps h1{font-size:clamp(22px,3vw,28px);letter-spacing:-.03em;margin:6px 0 14px}
.ps-wrap{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.ps-stage{position:relative;background:linear-gradient(160deg,#F2EDFF,#fff);box-shadow:inset 0 0 0 1.5px #E1D8FF,0 14px 26px -18px rgba(114,83,245,.5);border-radius:24px;min-height:320px;display:grid;place-items:center;overflow:hidden;touch-action:pan-y}
.ps-stage canvas{display:block;max-width:100%;max-height:68vh;width:auto;height:auto}
.ps-stage.has{background:#1E1A2B;box-shadow:0 1px 2px rgba(50,30,110,.07),0 16px 32px -18px rgba(114,83,245,.35)}
.ps-empty{display:grid;justify-items:center;gap:6px;padding:40px 20px;text-align:center;font-size:12px;color:#8B8799;cursor:pointer;width:100%}
.ps-empty>svg{width:44px;height:44px;stroke:#9B87F0;fill:none;stroke-width:1.6}
.ps-empty .wt-tile{width:58px;height:58px;border-radius:20px;background:#fff;margin-bottom:4px}
.ps-empty .wt-tile .ri{width:34px;height:34px}
.ps-empty b{font-size:15px;color:#7253F5}
.ps-stage.drag{outline:3px dashed #7253F5;outline-offset:-10px}
.ps-badge{position:absolute;left:12px;top:12px;background:rgba(255,255,255,.92);color:#6A4FE0;box-shadow:0 4px 12px -6px rgba(40,20,90,.4);font:700 12px/1 'Noto Sans KR',sans-serif;padding:7px 11px;border-radius:99px;pointer-events:none;opacity:0;transition:opacity .15s}
.ps-badge.show{opacity:1}
.ps-x{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;border:0;background:rgba(30,26,43,.6);color:#fff;font-size:17px;line-height:34px;cursor:pointer;padding:0}
.ps-hold{position:absolute;right:12px;bottom:12px;border:0;border-radius:99px;background:rgba(255,255,255,.92);color:#333D4B;font:600 12.5px/1 'Noto Sans KR',sans-serif;padding:9px 12px;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12);user-select:none;-webkit-user-select:none;touch-action:none}
.ps-strip{display:flex;gap:8px;overflow-x:auto;padding:12px 2px 4px;scrollbar-width:thin}
.ps-strip button{position:relative;flex:none;width:60px;height:60px;padding:0;border-radius:14px;overflow:hidden;border:2px solid transparent;background:#F1ECFA;cursor:pointer;box-shadow:0 6px 12px -8px rgba(80,40,140,.5)}
.ps-strip button.sel{border-color:#7253F5}
.ps-strip img{width:100%;height:100%;object-fit:cover;display:block}
.ps-strip i{position:absolute;right:3px;bottom:3px;min-width:18px;height:18px;border-radius:9px;background:#7253F5;color:#fff;font:700 11px/18px sans-serif;font-style:normal;padding:0 4px}
.ps-strip .add{display:grid;place-items:center;font-size:22px;color:#7253F5;border:0;background:#fff;box-shadow:inset 0 0 0 1.5px #DCD3EF}
.ps-panel{background:#fff;border:0;border-radius:22px;padding:16px;box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(50,30,110,.07),0 16px 32px -18px rgba(114,83,245,.3)}
.ps-panel h2{font-size:14px;margin:0 0 10px;color:#333D4B}
.ps-panel + .ps-panel{margin-top:12px}
.ps-pre{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
.ps-pre button{flex:none;width:66px;padding:0;border:0;background:none;cursor:pointer;font:600 12px/1.3 'Noto Sans KR',sans-serif;color:#4E5968;text-align:center}
.ps-pre canvas,.ps-pre .ps-ph{display:block;width:66px;height:66px;border-radius:14px;margin:0 0 6px;border:2px solid transparent;background:#f2f4f6;object-fit:cover}
.ps-pre button.sel canvas,.ps-pre button.sel .ps-ph{border-color:#7253F5}
.ps-pre button.sel{color:#7253F5}
.ps-seg{display:flex;gap:6px;flex-wrap:wrap}
.ps-seg button{flex:1 1 auto;min-height:40px;border:1px solid #E5E8EB;background:#fff;color:#4E5968;border-radius:12px;font:600 13px/1.2 'Noto Sans KR',sans-serif;padding:8px 10px;cursor:pointer}
.ps-seg.two{display:grid;grid-template-columns:1fr 1fr}
.ps-seg button.sel{background:#F2EDFF;border-color:#D7CBFF;color:#7253F5}
.ps-range{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;font:600 13px/1.2 'Noto Sans KR',sans-serif;color:#4E5968;margin:12px 0 2px}
.ps-range output{min-width:34px;text-align:right;color:#8B95A1;font-weight:500}
.ps-range input{width:100%;accent-color:#7253F5}
.ps details{border-top:1px solid #F2F4F6;margin-top:12px;padding-top:10px}
.ps details summary{cursor:pointer;font:600 13.5px/1.4 'Noto Sans KR',sans-serif;color:#4E5968;list-style:none;display:flex;justify-content:space-between}
.ps details summary::-webkit-details-marker{display:none}
.ps details summary::after{content:'＋';color:#8B95A1}
.ps details[open] summary::after{content:'－'}
.ps details > div{padding-top:6px}
.ps label.ps-f{display:grid;gap:5px;font-size:13px;font-weight:600;color:#4E5968;margin:10px 0 0}
.ps label.ps-f input[type=text],.ps label.ps-f select{font:inherit;font-weight:400;font-size:14px;padding:9px 11px;border:1px solid #E5E8EB;border-radius:10px;background:#fff;width:100%}
.ps-msg{font-size:12.5px;color:#6B7684;margin:10px 0 0;min-height:1.2em}
.ps-bar{display:flex;gap:8px;margin-top:14px}
.ps-bar .btn{flex:1;min-height:48px}
.ps-bar .btn.ghost{flex:0 0 auto}
.ps-bar .btn{white-space:nowrap}
.ps-link{border:0;background:none;color:#6B7684;font:600 12.5px/1 'Noto Sans KR',sans-serif;padding:10px 0 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.ps-link:disabled{opacity:.4;cursor:default}
@media (min-width:901px){.ps-pre{flex-wrap:wrap;overflow:visible}}
@media (max-width:900px){
  .ps-wrap{grid-template-columns:minmax(0,1fr)}
  .ps-stage{min-height:240px}
  .ps-stage canvas{max-height:56vh}
  .ps-bar{position:fixed;left:0;right:0;bottom:calc(84px + env(safe-area-inset-bottom));z-index:30;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.96);border-top:1px solid #E5E8EB;backdrop-filter:blur(8px)}
}
html.wm-embed .ps-bar{position:static}
@media (prefers-reduced-motion:reduce){.ps-badge{transition:none}}

/* 2026-11-21: 사진 줄이기·가리기 — 시안처럼 한 줄(미리보기 → 사진 줄 → 숫자 → 설정 → 저장) */
.ps.ps-one{max-width:760px;padding:0 0 24px}
.ps-one .ps-stage{min-height:200px;margin:0 0 4px}
.ps-one .ps-stage canvas{max-height:60vh}
.ps-one .ps-strip{padding:8px 2px 12px}
