/* 원료 고르기 시트 (2026-11-22). 모바일: 바닥 시트(키보드가 뜨면 보이는 영역에 맞춰 높이가 줄어요, picker.js가 top·height를 넣어요).
   PC(1024px 이상): 가운데 창 폭 640px. v3 토큰만 써요 */
html.ps-lock{overflow:hidden}
.ps-scrim{position:fixed;inset:0;z-index:60;background:var(--scrim)}
.psheet{position:fixed;left:0;right:0;bottom:0;height:92%;z-index:61;display:flex;flex-direction:column;background:var(--page);border-radius:22px 22px 0 0;overflow:hidden;outline:0;font-family:var(--font);color:var(--ink)}
:where(.psheet) *{box-sizing:border-box}
:where(.psheet) button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
.ps-grab{width:40px;height:4px;border-radius:999px;background:var(--hair);margin:8px auto 0;flex:none}
.ps-head{display:flex;align-items:center;justify-content:space-between;padding:6px 18px;min-height:48px;flex:none}
.ps-head h2{margin:0;font-size:17px;font-weight:700}
.ps-done{color:var(--brand);font-weight:700;font-size:15px;min-height:44px;padding:0 6px}
.ps-inputrow{padding:0 18px;flex:none}
.ps-input{display:flex;align-items:center;gap:8px;min-height:48px;border-radius:14px;background:var(--fill);padding:0 14px;color:var(--ink-3)}
.ps-input svg{width:20px;height:20px;flex:none}
.ps-input input{flex:1;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:var(--ink);outline:none}
.ps-input:focus-within{box-shadow:inset 0 0 0 2px var(--brand)}
.ps-picked{display:flex;align-items:center;gap:8px;padding:12px 18px;flex:none}
.ps-lbl{font-size:13px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.ps-chips{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none;flex:1;min-width:0}
.ps-chips::-webkit-scrollbar{display:none}
.ps-chips .achip{flex:none;min-height:32px}
.ps-clear{flex:none;font-size:13px;font-weight:600;color:var(--ink-3);min-height:32px;padding:0 4px;text-decoration:underline}
.ps-body{flex:1;min-height:0;overflow-y:auto;padding:6px 18px 14px;display:grid;gap:18px;align-content:start;border-top:1px solid var(--hair);overscroll-behavior:contain}
.ps-grp h3{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--ink-2)}
.ps-grp .chips{display:flex;flex-wrap:wrap;gap:8px}
.ps-chip{min-height:40px}
.ps-chip[aria-pressed="mixed"]{background:var(--brand-soft);color:var(--brand);box-shadow:inset 0 0 0 1.5px var(--brand)}
.ps-tip{font-size:13px;color:var(--ink-3)}
.ps-opts label{display:flex;gap:8px;align-items:flex-start;font-size:14px;color:var(--ink-2);padding:6px 0}
.ps-opts input{margin-top:3px;width:18px;height:18px;accent-color:var(--brand)}
.ps-sug{display:grid;margin:0;padding:0;list-style:none}
.ps-opt{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 2px;border-bottom:1px solid var(--hair);font-size:15px;cursor:pointer}
.ps-opt small{display:block;color:var(--ink-3);font-size:12px}
.ps-opt[aria-selected="true"]{background:var(--fill-2)}
.ps-add{width:32px;height:32px;border-radius:10px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-weight:800;flex:none}
.ps-add.on{background:var(--brand);color:#fff}
.ps-foot{padding:10px 18px calc(12px + env(safe-area-inset-bottom));flex:none;box-shadow:0 -1px 0 var(--hair);background:var(--page)}
.psheet.kb .ps-foot{padding-bottom:10px}
.psheet.kb .ps-grab{display:none}
@media (min-width:1024px){
  .psheet{left:50%;right:auto;top:50% !important;bottom:auto !important;width:640px;max-width:92vw;height:auto !important;max-height:86vh;transform:translate(-50%,-50%);border-radius:22px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
  .ps-grab{display:none}
  .ps-body{max-height:56vh}
}
@media (prefers-reduced-motion:no-preference){
  @media (max-width:1023.98px){.psheet:not([hidden]){animation:ps-up .22s ease-out}}
  @keyframes ps-up{from{transform:translateY(24px);opacity:.6}}
}
