@font-face{font-family:Pretendard;font-weight:400;font-display:swap;src:url(../assets/fonts/Pretendard-Regular.subset.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:600;font-display:swap;src:url(../assets/fonts/Pretendard-SemiBold.subset.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:700;font-display:swap;src:url(../assets/fonts/Pretendard-Bold.subset.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:800;font-display:swap;src:url(../assets/fonts/Pretendard-ExtraBold.subset.woff2) format('woff2')}
@font-face{font-family:SC;src:url(../assets/SCDream9.otf)}@font-face{font-family:GM;src:url(../assets/GmarketSansTTFBold.ttf)}@font-face{font-family:Paper;src:url(../assets/Paperlogy-9Black.ttf)}@font-face{font-family:PriceNum;src:url(../assets/InterDisplay-Black.otf)}*{box-sizing:border-box}body{margin:0;background:#f5f6f8;color:#20242b;font:14px Pretendard,-apple-system,'Apple SD Gothic Neo','Malgun Gothic',sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;background:white;border:1px solid #dde0e5;border-radius:8px;padding:10px 15px;color:#343944;font-weight:600}button:hover{background:#f0f2f5}button:disabled{opacity:.5;cursor:wait}.dark{background:#222a38;color:white;border-color:#222a38}.dark:hover{background:#354258}header{height:78px;background:white;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;justify-content:space-between;padding:0 4vw}nav{display:flex;gap:8px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;text-decoration:none;color:inherit}.brand b{background:#ed0016;color:white;border-radius:9px;padding:7px 11px;font-size:22px}small{font-size:9px;letter-spacing:1px;color:#8b9199}main{max-width:1500px;margin:auto;padding:36px 4vw}.eyebrow{font-size:12px;color:#e30021;font-weight:700;letter-spacing:1px}h1{font-size:32px;letter-spacing:-1.4px;margin:12px 0}p{color:#7b818d;line-height:1.7}.intro{margin-bottom:28px}.intro p{margin:0}.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px}aside{background:white;border:1px solid #e2e5e9;border-radius:14px;padding:22px;align-self:start}h2{font-size:18px;margin:0 0 24px;display:flex;justify-content:space-between;align-items:center}.caption{display:block;font-size:12px;color:#747c89;margin-bottom:9px}.tabs{display:flex;background:#f2f3f6;padding:4px;border-radius:9px}.tabs button{flex:1;border:0;background:transparent;padding:10px 2px;font-size:12px}.tabs .active{background:white;box-shadow:0 2px 5px #0001;color:#e40020}.colors{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid #eee;font-size:12px}.colors>div{display:flex;gap:7px;align-items:center}.colors button{width:22px;height:22px;border-radius:50%;padding:0;border:2px solid white;outline:1px solid #eee}input[type=color]{width:26px;height:26px;padding:0;border:0;background:none;cursor:pointer}.offers{margin:20px 0;background:white;gap:8px;padding:0}.offers button{border:1px solid #ddd}.offers .active{border-color:#ed0016;background:#fff3f4;box-shadow:none}.field{display:block;margin:15px 0 6px;font-size:12px;font-weight:700}input[type=text],input[type=url],textarea{border:1px solid #dfe3e8;border-radius:7px;padding:11px;width:100%;outline:none;background:white}input:focus,textarea:focus{border-color:#e60024}textarea{resize:vertical;height:60px}.photo-zone{border:1px dashed #cdd3dc;border-radius:9px;background:#fafbfc;text-align:center;padding:14px;cursor:pointer}.photo-zone img{height:105px;max-width:100%;object-fit:contain}.photo-zone p{font-size:11px;margin:5px}.photo-tools{display:flex;gap:5px;margin-top:8px}.photo-tools button{font-size:11px;padding:8px;flex:1}.url-row{display:flex;gap:5px;margin-top:10px}.url-row input{min-width:0;font-size:11px}.url-row button{padding:8px;font-size:11px;white-space:nowrap}.check{display:flex;align-items:center;gap:6px;font-size:12px;margin-top:12px}.photo-list{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.photo-list button{padding:4px;font-size:10px}.photo-list .active{border-color:#e60024}.preview-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:4px 0 20px}.preview-head>span{color:#838b98;font-size:11px}i{display:inline-block;width:7px;height:7px;background:#21a675;border-radius:50%;margin-right:8px}.paper{background:#e9ecf0;padding:25px;border-radius:12px;border:1px solid #e1e4e8}#poster{display:block;width:100%;height:auto;background:white;box-shadow:0 8px 22px #18243b16}.preview-footer{display:flex;justify-content:space-between;align-items:center;margin:12px 0;color:#939aa5;font-size:10px}.preview-footer button{border:0;background:transparent;font-size:11px;padding:5px}.export{display:flex;align-items:center;justify-content:space-between;padding:20px 0;border-bottom:1px solid #dddfe4}.export h3{font-size:15px;margin:0}.export p{font-size:11px;margin:6px 0 0}.tip{margin-top:22px;background:white;padding:16px;border-radius:9px;font-size:12px;color:#747d8b;line-height:1.8}.tip strong{color:#363e4c}.note,details{font-size:10px;color:#8b929e}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#222a38;color:white;padding:14px 22px;border-radius:10px;display:none;z-index:10;max-width:90vw}dialog{border:0;border-radius:14px;width:min(750px,95vw);padding:24px}dialog::backdrop{background:#18243b88}#crop-canvas{max-width:100%;max-height:55vh;display:block;margin:auto;touch-action:none;cursor:crosshair}dialog nav{justify-content:flex-end;margin-top:15px}#print-area{display:none}@media(max-width:950px){.workspace{grid-template-columns:290px minmax(0,1fr);gap:15px}main{padding:25px 20px}.paper{padding:12px}.export{display:block}.export nav{margin-top:14px}}@media(max-width:700px){header{height:auto;padding:15px;flex-wrap:wrap;gap:15px}.brand{font-size:16px}header button{font-size:11px}.workspace{display:flex;flex-direction:column}aside,.preview{width:100%}h1{font-size:27px}.preview-head{gap:10px}.preview-footer{font-size:9px}}@page{size:A4 landscape;margin:0}@media print{body>*{display:none!important}body>#print-area{display:block!important;width:297mm;height:210mm}#print-area img{width:297mm;height:210mm;display:block}body{margin:0;background:white}}

#layouts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}#layouts button[data-n="4"],#layouts button[data-n="8"]{border:1px solid #e2e5eb}.offers{display:grid;grid-template-columns:repeat(4,1fr)}.offers button{min-width:0}.page-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.page-tools label{font-size:12px;color:#606b7b}.page-tools button{font-size:11px;padding:9px}.page-tools select,dialog select{border:1px solid #dce1e8;background:white;padding:8px;border-radius:7px}dialog select{width:100%}.field-note{font-size:10px;color:#7d8794;margin:6px 0;line-height:1.6}.copy-offer{width:100%;margin:12px 0 0;font-size:12px;background:#f6f7fa}#regular-feedback{color:#8b6810}.strip-label{font-size:10px;color:#8a929f}.page-tools button:disabled{cursor:default}@media print{body>#print-area{height:auto!important}#print-area img{break-after:page;page-break-after:always}#print-area img:last-child{break-after:auto;page-break-after:auto}}

/* Keep the complete A4 preview visible while the input panel scrolls. */
@media screen and (min-width:701px){
 .workspace{align-items:start}
 .workspace>aside{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .preview{position:sticky;top:16px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;min-width:0}
 .paper{display:flex;justify-content:center;padding:14px}
 #poster{width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 255px);object-fit:contain;box-shadow:none}
 .preview-head{margin-bottom:12px}.page-tools{margin-bottom:12px}.export{padding:10px 0}
}
#layouts button[data-n="6"]{grid-column:1 / -1;border:1px solid #e2e5eb}
.photo-arrange{display:flex;gap:5px;align-items:center;margin-top:8px}.photo-arrange[hidden]{display:none}.photo-arrange span{flex:none;font-size:11px;color:#747c89;margin-right:3px}.photo-arrange button{flex:1;font-size:11px;padding:7px 4px}.photo-arrange .active{border-color:#e60024;color:#e40020;background:#fff3f4}
#text-colors[hidden]{display:none}#text-colors{padding-top:0}
.link-btn{color:#e40020!important;text-decoration:underline}#print-dialog .pd-actions{justify-content:flex-start;margin:6px 0 4px}#pd-status{margin:0;color:#343944;font-weight:700;font-size:13px}.pd-tabs{margin:16px 0 8px}.pd-help ol{margin:8px 0;padding-left:20px;font-size:13px;line-height:1.75;color:#343944}.pd-help li{margin-bottom:6px}.pd-help small{color:#7b818d}#print-dialog{max-height:92vh;overflow:auto}#pd-file[hidden]{display:none}
.pd-help small{letter-spacing:0;font-size:12px}
/* 붙여봐 site name + link back to the guide (2026-11-15) */
.brand-sub{font-weight:600;font-size:13px;color:#7b818d}.nav-link{align-self:center;color:#343944;font-weight:600;font-size:13px;text-decoration:none;padding:10px 8px}.nav-link:hover{color:#e40020}
@media(max-width:700px){.brand-sub{display:none}.nav-link{font-size:11px;padding:6px 4px}}

/* Pretendard: select·dialog도 같은 글씨체 */
select,dialog{font-family:inherit}

/* 가로 폭: 사이트 전체와 같이 화면을 꽉 채움 (2026-11-15) */
main{max-width:none;padding-left:40px;padding-right:40px}header{padding:0 40px}
@media(max-width:950px){main{padding:25px 20px}header{padding:0 20px}}
@media(max-width:700px){header{padding:15px}}

/* 흰 바탕 (2026-11-15) */
body{background:#fff}.tip{background:#f6f7f9}

/* 상단 띠 그림 (2026-11-18) */
.band-row{padding:16px 0;border-bottom:1px solid #eee;font-size:12px}.band-row[hidden]{display:none}.band-row>span{display:block;margin-bottom:8px}.band-drop{border:1px dashed #cdd3dc;border-radius:9px;background:#fafbfc;text-align:center;padding:10px;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:center}.band-drop.over{border-color:#e60024;background:#fff3f4}.band-drop img{max-width:100%;max-height:60px;object-fit:contain}.band-drop em{font-style:normal;font-size:11px;color:#7b818d}.band-tools{display:flex;gap:5px;margin-top:8px}.band-tools button{flex:1;font-size:11px;padding:8px}#band-canvas{max-width:100%;max-height:55vh;display:block;margin:auto;touch-action:none;cursor:move;border-radius:8px}.band-zoom{display:flex;gap:8px;align-items:center;margin-top:12px}.band-zoom input{flex:1}.band-zoom button{padding:8px 12px}

/* 글로 한 번에 입력 · 엑셀로 불러오기 (2026-12-03) */
dialog.bulk{width:min(1100px,96vw)}
.bulk h2{margin:0 0 10px}
.bulk p{font-size:13px;line-height:1.6;margin:6px 0}
.bulk-format{background:#f4f6f9;border-radius:8px;padding:8px 12px;font-weight:700;font-size:13px}
#bulk-text{width:100%;box-sizing:border-box;font:14px/1.7 inherit;border:1px solid #dce1e8;border-radius:9px;padding:12px;resize:vertical}
.bulk-help{font-size:12px;color:#5d6470;margin:8px 0;padding-left:18px;line-height:1.7}
.bulk-notes p{margin:4px 0;padding:7px 10px;border-radius:7px;font-size:12.5px}
.bulk-notes .err{background:#fde8ea;color:#a1121f;font-weight:700}
.bulk-notes .wrn{background:#fff6d6;color:#7a5600}
.bulk-notes .info{background:#eef3fb;color:#2a4a7a}
.bulk-table{overflow:auto;max-height:46vh;border:1px solid #e5e7eb;border-radius:9px;margin:10px 0}
.bulk-table table{border-collapse:collapse;width:100%;min-width:860px;font-size:13px}
.bulk-table th{position:sticky;top:0;background:#f7f8fa;font-size:12px;text-align:left;padding:8px 6px;border-bottom:1px solid #e5e7eb;z-index:1}
.bulk-table td{padding:5px 4px;border-bottom:1px solid #f0f1f3;vertical-align:top}
.bulk-table td.num{text-align:center;font-weight:700;color:#7b818d;padding-top:12px;width:34px}
.bulk-table input{width:100%;box-sizing:border-box;border:1px solid #e1e4ea;border-radius:6px;padding:7px 6px;font:inherit;min-width:70px}
.bulk-table tr.bad td{background:#fff5f6}.bulk-table tr.bad input{border-color:#f2a3ac}
.bulk-table tr.warn td{background:#fffcf0}
.bulk-table tr.msg td{padding:0 8px 8px 40px}
.bulk-table tr.msg p{margin:2px 0;font-size:12px}
.bulk-table .err{color:#c0182b;font-weight:700}.bulk-table .wrn{color:#8a6200}
.bulk-table td.photo{width:150px}
.thumbs{display:flex;gap:3px;flex-wrap:wrap;margin-bottom:3px}
.thumbs img{width:40px;height:40px;object-fit:contain;border:1px solid #e5e7eb;border-radius:5px;background:white}
.bulk-drop{border:2px dashed #cdd3dc;border-radius:10px;background:#fafbfc;padding:16px;text-align:center;cursor:pointer;display:flex;flex-direction:column;gap:4px;font-size:13px}
.bulk-drop span{font-size:12px;color:#6b7280}
.bulk-drop.over{border-color:#e60024;background:#fff3f4}
.bulk-photo-row{display:flex;gap:10px;align-items:center}
.bulk nav{display:flex;gap:8px;flex-wrap:wrap}
.bulk nav button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:700px){header nav{flex-wrap:wrap;gap:6px;width:100%}header nav button{flex:1 1 auto;white-space:nowrap;padding:9px 10px;font-size:12px}header nav .nav-link{white-space:nowrap}}

/* ===== 2차 변경 (2026-12-03): 화면 정리, 유료 코드, 문구 추천, 장 이동 ===== */
/* 소개 영역: 제목 한 줄만, 오른쪽에 저장 안내 */
.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 12px}
.intro h1{font-size:22px;letter-spacing:-.8px;margin:0;line-height:1.3}
.save-note{margin:0;font-size:11.5px;line-height:1.55;color:#6b7280;text-align:right}
@media(max-width:700px){.intro{display:block}.intro h1{font-size:21px}.save-note{text-align:left;margin-top:6px}}
@media screen and (min-width:701px){
 main{padding-top:14px;padding-bottom:20px}
 /* 미리보기 칸을 A4 가로 비율에 딱 맞추고(회색 빈 공간 없음), 남는 폭은 왼쪽 입력칸이 쓴다 */
 .workspace{--ph:calc(100dvh - 206px);--pw:min(calc(var(--ph) * 1.4139),calc(100vw - 80px - 380px - 24px));grid-template-columns:minmax(360px,1fr) var(--pw);gap:24px}
 .paper{background:none;border:0;padding:0;border-radius:0;display:block}
 #poster{width:100%;height:auto;max-height:none;border:1px solid #e1e4e8;border-radius:8px;box-shadow:0 4px 16px #18243b12}
 .preview{width:var(--pw)}
}
@media screen and (min-width:701px) and (max-width:950px){.workspace{--pw:min(calc(var(--ph) * 1.4139),calc(100vw - 40px - 330px - 16px));grid-template-columns:minmax(330px,1fr) var(--pw);gap:16px}}
/* 유료 표시·코드 입력 */
.paid-badge{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:9px;background:#fff1d6;color:#9a5b00;font-size:10px;font-weight:800;vertical-align:1px}
.paid-badge[hidden]{display:none}
.code-open.on{border-color:#1a7f4b;color:#1a7f4b}
.code-dialog{width:min(520px,94vw)}
.code-dialog p{font-size:13.5px;line-height:1.6}
.code-status{background:#eaf7ef;color:#16613a;border-radius:8px;padding:9px 12px;font-weight:700}
#code-form{display:flex;gap:8px;margin:12px 0 4px}
#code-input{flex:1;min-width:0;font:inherit;font-size:16px;letter-spacing:1px;border:1px solid #cfd5de;border-radius:8px;padding:10px 12px;text-transform:uppercase}
.code-msg{min-height:20px;font-size:13px;margin:6px 0}
.code-msg.ok{color:#16613a;font-weight:700}.code-msg.err{color:#c0182b;font-weight:700}
/* 문구 추천 */
.promo-row{display:flex;gap:6px}.promo-row input{flex:1;min-width:0}
.phrase-open{white-space:nowrap;padding:8px 10px;font-size:12px;border-color:#f0b6be;color:#c4001c}
.phrase-dialog{width:min(640px,95vw)}
.phrase-types{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 12px}
.phrase-types button{padding:7px 11px;font-size:12.5px;border-radius:18px}
.phrase-types button.on{background:#222a38;color:#fff;border-color:#222a38}
.phrase-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:7px}
.phrase{text-align:left;display:flex;flex-direction:column;gap:3px;padding:11px 12px;font-size:14px}
.phrase:hover,.phrase:focus-visible{border-color:#e60024;background:#fff6f7}
.phrase small{display:none;font-size:11px;font-weight:600;color:#9a5b00;line-height:1.4}
.phrase:hover small,.phrase:focus small{display:block}
.phrase-locked{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px dashed #d6dbe3;border-radius:9px;background:#f8f9fb;font-size:13px;color:#555c68}
.phrase-locked button{flex:0 0 auto}
.muted{color:#7b818d;font-size:13px}
/* 장 번호로 이동 */
.page-numbers{display:flex;flex-wrap:wrap;gap:4px;margin:0}
@media screen and (min-width:701px){.preview .preview-head{display:none}}
.page-numbers[hidden]{display:none}
.page-numbers button{min-width:30px;padding:5px 7px;font-size:12px;border-radius:6px;flex:0 0 auto}
.page-numbers button.on{background:#222a38;color:#fff;border-color:#222a38}
#copy-page-dialog nav{flex-wrap:wrap}
/* 새 로고 (2026-12-03) */
.brand .brand-logo{width:40px;height:40px;border-radius:7px;display:block;flex:0 0 auto}
/* 글로 한 번에 입력: 지워지지 않는 예시 박스 */
.bulk-example{position:relative;background:#fffaf0;border:1px solid #f3dfb4;border-radius:9px;padding:10px 12px 10px 12px;margin:6px 0 10px;display:flex;flex-direction:column;gap:3px}
.bulk-example code{font:13px/1.6 ui-monospace,Menlo,Consolas,monospace;color:#3b3f47;white-space:pre-wrap;word-break:break-all}
.bulk-example-tag{align-self:flex-start;font-size:11px;font-weight:800;color:#9a5b00;background:#ffecc2;border-radius:6px;padding:1px 7px;margin-bottom:2px}
#bulk-text{min-height:150px}

/* ===== 3차 2단계 (2026-12-03): 한 화면 앱 배치 ===== */
.title-row{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap;margin:0 0 10px}
.title-row h1{margin:0;font-size:22px;letter-spacing:-.8px;line-height:1.3}
.title-row .page-tools{margin:0}
.paid-note{border:1px dashed #e6c27a !important;background:#fffaf0 !important;color:#8a5a00 !important;font-size:12px !important;font-weight:700;padding:7px 10px !important;white-space:nowrap}
.paid-pop{position:fixed;z-index:50;max-width:340px;background:#fff;border:1px solid #e3d3ad;border-radius:10px;box-shadow:0 10px 28px #18243b24;padding:12px 14px;font-size:13px;line-height:1.6;color:#3b3f47}
.paid-pop p{margin:0}.paid-pop p+p{margin-top:6px}
.paid-pop[hidden]{display:none}
.pageview{min-height:0}
#thumbs{list-style:none;margin:0;padding:2px;display:flex;flex-direction:column;gap:10px}
#thumbs li{position:relative}
#thumbs button{display:block;width:100%;padding:0;border:2px solid #dfe3e8;border-radius:7px;background:#fff;cursor:pointer;position:relative;overflow:hidden;touch-action:pan-y}
#thumbs canvas{display:block;width:100%;height:auto;pointer-events:none}
#thumbs .num{position:absolute;left:4px;bottom:3px;background:#222a38;color:#fff;font-size:11px;font-weight:800;line-height:1;padding:3px 6px;border-radius:5px;pointer-events:none}
#thumbs li.on button{border-color:#e60024;box-shadow:0 0 0 1px #e60024}
#thumbs li.on .num{background:#e60024}
#thumbs li.dragging{opacity:.45}
#thumbs li.drop-before::before,#thumbs li.drop-end::after{content:'';position:absolute;left:0;right:0;height:3px;background:#e60024;border-radius:2px}
#thumbs li.drop-before::before{top:-7px}#thumbs li.drop-end::after{bottom:-7px}
body.thumb-dragging,body.thumb-dragging *{cursor:grabbing!important;user-select:none}
.export-bar{flex:none;background:#fff;border-top:1px solid #e5e7eb;padding:10px 16px 12px}
.export-bar p{margin:0 0 8px;font-size:12px;font-weight:700;color:#3b3f47}
.export-bar p span{display:block;font-weight:500;color:#8a909b;font-size:11px;margin-top:1px}
.export-bar nav{display:flex;gap:8px}.export-bar nav button{flex:1}
.aside-notes{margin-top:22px;padding-top:6px;border-top:1px solid #eef0f3}
.aside-notes .preview-footer{flex-direction:column;align-items:flex-start;gap:6px;font-size:11.5px}
.aside-notes .preview-footer span:last-child{display:flex;gap:8px;flex-wrap:wrap}
.aside-notes .tip{background:#f6f7f9;margin-top:12px}
@media screen and (min-width:769px){
 html,body{height:100%}
 body{display:flex;flex-direction:column;overflow:hidden}
 header{flex:none;height:64px;padding:0 20px;gap:12px}
 header nav{gap:6px;flex-wrap:nowrap}
 header nav button,header nav .nav-link{white-space:nowrap}
 main{flex:1;min-height:0;display:flex;flex-direction:column;max-width:none;margin:0;padding:10px 20px 14px}
 .workspace{flex:1;min-height:0;display:grid;grid-template-columns:128px minmax(360px,1fr) 1fr;grid-template-rows:minmax(0,1fr);gap:16px;align-items:stretch;--ph:auto;--pw:auto}
 .pageview{overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
 aside{display:flex;flex-direction:column;min-height:0;padding:0;overflow:hidden;align-self:stretch}
 .aside-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 22px}
 .preview{position:static;max-height:none;overflow:hidden;width:auto;min-width:0;min-height:0}
 .preview .preview-head{display:none}
 .paper{display:block;padding:0;background:none;border:0}
 #poster{display:block;max-width:none;max-height:none;border:1px solid #dfe3e8;border-radius:8px;box-shadow:0 4px 16px #18243b12}
}
/* 머리글이 좁을 때(1280~1440) 버튼을 조금 작게 */
@media screen and (min-width:769px) and (max-width:1480px){
 header .brand-sub{display:none}
 header nav button,header nav .nav-link{padding:8px 10px;font-size:13px}
}
@media screen and (min-width:769px) and (max-width:1180px){
 header .paid-note{display:none}
}
@media screen and (min-width:769px){.preview{background:none!important;border:0!important;padding:0!important;box-shadow:none!important}}
/* 768px 이하(휴대폰·작은 태블릿): 3단계에서 다듬기 전 임시 배치 — 미리보기, 가로 썸네일, 입력창 순 */
@media screen and (max-width:768px){
 .workspace{display:flex!important;flex-direction:column;gap:12px}
 .preview{order:1;position:static;max-height:none;overflow:visible}
 .pageview{order:2;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}
 #thumbs{flex-direction:row;gap:8px;padding:2px 2px 6px}
 #thumbs li{flex:0 0 96px}
 #thumbs button{touch-action:pan-x}
 aside{order:3}
 .title-row .page-tools{width:100%}
 .paid-note{display:none}
}
/* 3차 2단계 수정: 제목 빼고, 페이지 컨트롤은 페이지뷰+입력창 위, 미리보기는 맨 위부터 */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media screen and (min-width:769px){
 main{padding-top:12px}
 .workspace{grid-template-areas:"tools tools preview" "pv aside preview";grid-template-rows:auto minmax(0,1fr)!important;row-gap:10px}
 .workspace>.title-row{grid-area:tools;margin:0}
 .pageview{grid-area:pv}
 .workspace>aside{grid-area:aside}
 .workspace>.preview{grid-area:preview;align-self:start}
 .title-row .page-tools{flex-wrap:nowrap;gap:6px}
 .title-row .page-tools label{white-space:nowrap}
 .title-row .page-tools select{max-width:150px}
}
@media screen and (max-width:768px){.workspace>.title-row{order:0;margin:0}}

/* ===== 3차 3단계 (2026-12-03): 글자 크기, 휴대폰 화면 ===== */
/* 입력창 글자 키우기: 항목 이름 16px 굵게, 입력칸 18px, 버튼·탭·안내 15px 안팎 */
aside .field,aside .caption,aside .colors>span,aside #band-row>span{font-size:16px;font-weight:700;color:#20242b}
aside .field{margin:18px 0 7px}
aside .caption{margin-bottom:9px}
aside input[type=text],aside textarea{font-size:18px;padding:11px 12px}
aside input[type=url]{font-size:15px}
aside textarea{line-height:1.45}
aside .tabs button{font-size:15px;padding:11px 4px}
aside .offers button{font-size:15px;padding:9px 12px}
aside button{font-size:15px}
aside .photo-tools button,aside .url-row button,aside .band-tools button{font-size:15px;padding:9px 8px}
aside .photo-zone p{font-size:15px}
aside .photo-zone p+p{font-size:13px}
aside .check{font-size:15px;gap:8px}
aside .check input{width:18px;height:18px}
aside .field-note{font-size:13px}
aside .phrase-open{font-size:14px;padding:9px 10px}
aside h2{font-size:19px}
aside .band-drop em{font-size:14px}
aside .aside-notes,aside .aside-notes .preview-footer{font-size:13px}
aside .aside-notes .tip{font-size:14px}
aside .aside-notes .note,aside .aside-notes details{font-size:13px}
aside .colors button{width:26px;height:26px}
.export-bar p{font-size:14px}.export-bar p span{font-size:12px}
.export-bar nav button{font-size:16px;padding:12px 8px}
.menu-toggle{display:none}
.title-row .long{display:inline}

/* 휴대폰(768px 이하): 한 화면 — 머리글(☰) / 장 버튼 / 미리보기 / 가로 썸네일 / 입력창(여기만 스크롤) / 아래 고정 바 */
@media screen and (max-width:768px){
 html,body{height:100%}
 body{display:flex;flex-direction:column;overflow:hidden;height:100dvh}
 header{flex:none;height:56px;padding:0 14px;position:relative;flex-wrap:nowrap}
 header .brand{font-size:18px}
 header .brand .brand-logo{width:34px;height:34px}
 header .brand-sub{display:none}
 .menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;width:44px;height:40px;border:1px solid #dfe3e8;border-radius:9px;background:#fff;padding:0 11px;cursor:pointer}
 .menu-toggle span{display:block;height:2px;background:#20242b;border-radius:2px}
 header nav#site-menu{display:none;position:absolute;top:56px;right:10px;left:auto;z-index:60;width:min(300px,calc(100vw - 20px));flex-direction:column;align-items:stretch;gap:6px;background:#fff;border:1px solid #e2e5e9;border-radius:12px;box-shadow:0 14px 34px #18243b2e;padding:10px}
 body.menu-open header nav#site-menu{display:flex}
 header nav#site-menu>*{width:100%;text-align:left;justify-content:flex-start;font-size:15px!important;padding:11px 12px!important;white-space:normal}
 header nav#site-menu .nav-link{border:1px solid #e2e5e9;border-radius:8px}
 header nav#site-menu .paid-note{display:block!important;white-space:normal!important;line-height:1.5}
 header nav#site-menu #print{order:-1;text-align:center;justify-content:center}
 main{flex:1;min-height:0;display:flex;flex-direction:column;padding:8px 12px 0!important;max-width:none;margin:0}
 .workspace{flex:1;min-height:0;display:flex!important;flex-direction:column;gap:8px}
 .workspace>.title-row{order:0;flex:none}
 .title-row .page-tools{display:flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
 .title-row .page-tools label{display:none}
 .title-row .page-tools button{flex:0 0 auto;padding:7px 11px;font-size:13px}
 .title-row .long{display:none}
 .preview{order:1;flex:none;position:static;max-height:none;overflow:visible;background:none;border:0;padding:0;width:auto!important}
 .workspace{--pw:auto;grid-template-columns:none}
 .preview .preview-head{display:none}
 .paper{padding:0!important;background:none!important;border:0!important}
 #poster{width:100%!important;height:auto!important;max-height:none;border:1px solid #dfe3e8;border-radius:6px;box-shadow:0 2px 8px #18243b14}
 .pageview{order:2;flex:none;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .pageview::-webkit-scrollbar{display:none}
 #thumbs{flex-direction:row;gap:8px;padding:2px 2px 4px}
 #thumbs li{flex:0 0 84px}
 #thumbs button{touch-action:pan-x;border-width:2px}
 #thumbs .num{font-size:10px;padding:2px 5px}
 #thumbs li.drop-before::before{top:0;bottom:0;left:-6px;right:auto;width:3px;height:auto}
 #thumbs li.drop-end::after{top:0;bottom:0;right:-6px;left:auto;width:3px;height:auto}
 aside{order:3;flex:1;min-height:0;display:flex;flex-direction:column;padding:0;margin:0 -12px;border:0;border-top:1px solid #e5e7eb;border-radius:0;overflow:hidden;align-self:stretch}
 .aside-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 16px 20px}
 .export-bar{padding:8px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -4px 14px #18243b12}
 .export-bar p{display:none}
 .export-bar nav button{padding:13px 8px}
}
aside button,aside .tabs button,aside .offers button{white-space:nowrap}
aside .photo-tools button,aside .band-tools button{padding:9px 4px;font-size:14px}
.export-bar p span{display:inline;margin:0 0 0 4px}
@media screen and (min-width:769px) and (max-width:1366px){.export-bar p span{display:none}}
/* 3차 3단계 수정: 휴대폰은 한 화면 고정을 쓰지 않고 페이지 전체가 위아래로 스크롤 (갤럭시 폴드 등에서 아래가 안 보이던 문제) */
@media screen and (max-width:768px){
 html,body{height:auto}
 body{display:block;overflow:visible;height:auto}
 main{display:block;padding:8px 12px 0!important}
 .workspace{display:flex!important;flex-direction:column;min-height:0}
 aside{flex:none;overflow:visible;min-height:0}
 .aside-scroll{overflow:visible;flex:none;padding:14px 16px 24px}
 .export-bar{position:sticky;bottom:0;z-index:20}
 #thumbs button{touch-action:auto}
}
@media screen and (max-width:768px){aside{max-height:none!important;overflow:visible!important;position:static!important}}
/* 문의 안내 (3차 5단계) */
.contact-line{font-size:13px;line-height:1.6;color:#555c68;margin:12px 0}
.contact-line a.mail{color:#c4001c;font-weight:700;text-decoration:underline;word-break:break-all}
.contact-line.small{grid-column:1/-1;font-size:12px;margin:4px 0 0}
.bulk-notes .contact-line{padding:0 10px}
.code-contact{background:#f6f7f9;border-radius:8px;padding:9px 12px}
.menu-only{display:none!important}
@media screen and (max-width:768px){header nav#site-menu .menu-only{display:flex!important}}
.privacy-line{font-size:12.5px;line-height:1.6;color:#6b7280;margin:12px 0 0}

/* 4차 2단계(2026-12-06): 유료 판매를 끈 동안 숨기는 것들 (메뉴 안의 !important 규칙보다 강하게) */
header nav#site-menu #paid-note[hidden],header nav#site-menu #code-open[hidden],#paid-pop[hidden],.paid-badge[hidden]{display:none!important}
/* 4차 3단계(2026-12-06): 자동 임시 복구 안내 줄, 휴대폰 당겨서 새로고침 막기 */
html,body{overscroll-behavior-y:contain}
.draft-bar{word-break:keep-all;position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;justify-content:center;max-width:min(94vw,640px);background:#fffaf0;border:1px solid #e6c27a;color:#3b2f12;border-radius:12px;padding:10px 14px;box-shadow:0 6px 22px #18243b26;font-size:14px;font-weight:700;line-height:1.45}
.draft-bar .draft-actions{display:flex;gap:8px;flex:none}
.draft-bar button{font-size:14px;padding:8px 14px;white-space:nowrap}
.draft-line{font-size:12.5px;line-height:1.6;color:#6b7280;margin:12px 0 0}
.draft-line .link-btn{font-size:12.5px;padding:0;border:0;background:none;cursor:pointer;margin-left:2px}
/* 4차 4단계(2026-12-06): 자른 사진 안내 */
.photo-note{margin:6px 0 0;font-size:12.5px;color:#1a7f4b;font-weight:700}
.photo-note[hidden]{display:none}
