/* 신규 품목(네임 스티커·포스터) 입력 화면 + 전 품목 공통 「큰 창 열기」 */
.ni-form{display:grid;gap:12px;margin:0 0 12px}
.ni-form fieldset{border:1px solid #cfdde6;border-radius:12px;padding:12px 14px;margin:0;min-width:0}
.ni-form legend{font-weight:800;padding:0 6px;color:#173f51}
.ni-form label{display:grid;gap:4px;margin:8px 0;font-size:14px}
.ni-form input[type=number],.ni-form input[type=text],.ni-form select,.ni-form textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #b9cddc;border-radius:8px;font:inherit}
.ni-form textarea{min-height:84px;resize:vertical}
.ni-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ni-note{font-size:13px;color:#4c6574;margin:4px 0}
.ni-warn{font-size:13px;color:#a14c37;margin:4px 0}
.ni-checks{display:flex;flex-wrap:wrap;gap:6px 16px}.ni-checks label{display:flex;align-items:center;gap:6px;margin:2px 0}
.ni-style,.ni-extras{margin:14px 0;padding:14px;background:#edf4f7;border-radius:12px}
.ni-style h3,.ni-extras h3{margin:0 0 10px;font-size:16px}
.ni-style .ni-row3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ni-style label,.ni-extras label{display:grid;gap:4px;font-size:13px;margin:6px 0}
.ni-style input[type=color]{width:100%;height:38px;padding:2px}
.ni-style select,.ni-style input[type=range]{width:100%}
.ni-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ni-actions button,.ni-bigbtn{padding:12px 16px;border:0;border-radius:8px;background:#173f51;color:#fff;font-weight:700;cursor:pointer}
.ni-actions button.sub{background:#e4eef3;color:#173f51}
.ni-actions button[disabled]{opacity:.5;cursor:wait}
.ni-status{min-height:1.4em;font-size:14px}
.ni-sheet{margin:14px 0;padding:12px;background:#f3f6f8;border-radius:12px;overflow:auto}
.ni-sheet svg{display:block;width:100%;max-width:520px;height:auto;margin:0 auto;background:#fff;box-shadow:0 1px 6px #0003}
.ni-sheet h3{margin:0 0 8px;font-size:16px}
.ni-bigbtn{margin:6px 0 10px}
.ni-closebig{display:none}
/* 2026-11-26 남일 님(#16453): 「용지 미리보기」·출력 버튼을 편집기 맨 아래(미리보기 상자 밖)로 옮겼습니다.
   A4 한 장이 화면 폭만큼 커지지 않도록 폭을 잡고, 미리보기 그림은 가운데에 둡니다. */
#pops-design .ni-actionwrap{max-width:620px}
#pops-design .ni-sheet>svg{max-width:520px;margin-left:auto;margin-right:auto}
body.ni-lock{overflow:hidden}
#pops-design.ni-big{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-height:none!important;margin:0!important;border-radius:0!important;z-index:2147483000;background:#fff;overflow-y:auto!important;overflow-x:hidden!important;padding:64px 18px 40px!important;box-sizing:border-box}
#pops-design.ni-big .ps-design-layout{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:20px;align-items:start}
/* pops-nibig-preview-size-v1(20261128, 54번 병합): pops_live_preview.css의 모바일 미리보기 높이 고정 규칙이
   ID 선택자 2개라 .ni-big(ID 1개)보다 우선순위가 높아, '큰 창 열기·확대 편집'을 열어도 미리보기가 거의 커지지 않았습니다.
   !important로 확대 모드 크기를 항상 이기게 합니다. */
#pops-design.ni-big [data-pops-design-preview]{position:sticky!important;top:8px!important;width:100%!important;height:auto!important;max-height:calc(100vh - 90px)!important;overflow:visible!important}
#pops-design.ni-big [data-pops-design-preview] svg{display:block!important;max-width:100%!important;max-height:calc(100vh - 90px)!important;width:auto!important;height:auto!important;margin:0 auto!important;box-shadow:0 2px 14px #0003}
/* pops-nibig-closebtn-v1(20261128, 54번 병합): sticky+float 조합이 모바일에서 '디자인 선택' 라벨과 겹쳐
   닫기 버튼을 화면 기준 고정(fixed)으로 바꾸고, 위쪽 여백(64px)을 넉넉히 둡니다. */
#pops-design.ni-big .ni-closebig{display:inline-block;position:fixed!important;top:max(10px,env(safe-area-inset-top))!important;right:14px!important;left:auto!important;float:none!important;z-index:2147483001;padding:10px 16px;background:#b5382d;color:#fff;border:0;border-radius:8px;font-weight:800;cursor:pointer;box-shadow:0 2px 8px #0005}
#pops-design.ni-big .ni-bigbtn{display:none}
@media(max-width:760px){#pops-design.ni-big .ps-design-layout{grid-template-columns:1fr}.ni-row{grid-template-columns:1fr}}

/* 2026-11-23 남일 님: 「칼선 만들기」를 편집기 맨 위에서 눈에 띄게 — 누르면 「내가 만든 디자인 붙여넣기」로 내려갑니다. */
#pops-design .ni-cutline-cta{margin:0 0 14px;padding:14px 16px;border:2px solid #173e56;border-radius:12px;background:linear-gradient(180deg,#f4fafc,#e7f1f7)}
#pops-design .ni-cutline-cta h3{margin:0 0 6px;font-size:16.5px;line-height:1.4;color:#173e56}
#pops-design .ni-cutline-cta h3 small{display:inline-block;margin-left:6px;font-size:12px;font-weight:700;color:#8a6a24}
#pops-design .ni-cutline-cta p{margin:0 0 10px;font-size:13.5px;line-height:1.6;color:#3c5563}
#pops-design .ni-cutline-cta p b{color:#173e56}
#pops-design .ni-cutline-cta button{display:block;width:100%;padding:13px 16px;border:0;border-radius:8px;background:#173e56;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
#pops-design .ni-cutline-cta button:hover,#pops-design .ni-cutline-cta button:focus-visible{background:#0f2c40}

/* pops-ni-wrap-v1(2026-12-02): 모바일(390px 이하)에서 안내 문구·설명이 오른쪽으로 잘리지 않도록
   줄바꿈과 폭을 잡습니다. 안내 상자 안의 긴 문장은 낱말 단위로 넘기되, 긴 영문·숫자는 끊어 줍니다. */
#pops-design{max-width:100%;box-sizing:border-box}
#pops-design .ni-note,#pops-design .ni-warn,#pops-design .ni-status,#pops-design [data-design-hint],#pops-design .ni-cutline-cta p,#pops-design .ni-own p{white-space:normal;overflow-wrap:anywhere;word-break:keep-all;max-width:100%}
#pops-design .ni-form fieldset,#pops-design .ni-style,#pops-design .ni-extras,#pops-design .ni-actionwrap{max-width:100%;box-sizing:border-box}
@media(max-width:480px){
 #pops-design .ni-style .ni-row3{grid-template-columns:1fr 1fr}
 #pops-design{padding:14px}
 #pops-design .ni-form label{font-size:13.5px}
}
