* { box-sizing: border-box; }
body { margin: 0; font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; line-height: 1.7; color: #1d2b4f; background: #f3f8fc; }
a { color: #1a5fb4; }

/* 헤더 */
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 28px; background: linear-gradient(180deg, #d6f0ff 0%, #eef9ff 100%); border-bottom: 1px solid #c9e6f7; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: #13407a; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #7fe0ff, #1a9be0); display: flex; align-items: center; justify-content: center; }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab { padding: 8px 20px; border-radius: 999px; border: 1px solid #9fd0f0; background: linear-gradient(180deg, #ffffff, #e4f3fc); color: #1d4e89; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.tab.active { background: linear-gradient(180deg, #2a8ce6, #0f5fb8); color: #fff; border-color: #0f5fb8; }
.util { display: flex; gap: 16px; font-size: 0.9rem; }
.util a { color: #1d4e89; text-decoration: none; white-space: nowrap; }
.lang-btn { margin-top: 0; padding: 6px 14px; font-size: 0.85rem; border-radius: 999px; border: 1px solid #9fd0f0; background: #fff; color: #1d4e89; cursor: pointer; white-space: nowrap; }
.lang-select { height: 34px; padding: 0 10px; font-size: 0.9rem; border-radius: 999px; border: 1px solid #9fd0f0; background: #fff; color: #1d4e89; cursor: pointer; }

main { max-width: 960px; margin: 0 auto; padding: 24px; }
h1 { font-size: 1.7rem; margin: 8px 0 4px; color: #13407a; }
h2 { font-size: 1.25rem; margin-top: 32px; color: #13407a; }
.lead { color: #4a5b7a; margin-top: 0; }

/* 도구 카드 (인덱스) */
.card-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.card-list a { display: flex; align-items: center; gap: 16px; min-height: 120px; padding: 18px 22px; border-radius: 16px; border: 1px solid; text-decoration: none; color: #13407a; font-size: 1.15rem; font-weight: 700; }
.card-list .blue { background: linear-gradient(180deg, #e3f4ff, #bfe6ff); border-color: #8fcaf2; }
.card-list .green { background: linear-gradient(180deg, #ecfbe0, #c8f0a3); border-color: #a4dd74; }
.card-list .orange { background: linear-gradient(180deg, #fff3e6, #ffd9b0); border-color: #f5b77c; }
.card-list .sub { display: block; font-size: 0.9rem; font-weight: 400; color: #4a5b7a; margin-top: 4px; }
.card-icon { flex: 0 0 auto; width: 64px; height: 64px; }

/* 파일 선택 영역 (도구 페이지) */
.picker { background: #fff; border: 1px solid #cfe6f5; border-radius: 16px; padding: 22px; margin-top: 18px; }
.file-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.file-row input[type="text"], .file-row select, .field input[type="text"], .field select { flex: 1 1 260px; height: 44px; padding: 0 12px; border: 1px solid #b9d7ea; border-radius: 10px; font-size: 1rem; background: #f7fbff; color: #1d2b4f; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn-green { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 26px; border-radius: 10px; border: 1px solid #3a8d1d; background: linear-gradient(180deg, #6fd13a, #2f8f16); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; min-height: 240px; padding: 24px; border: 2px dashed #7fbfe6; border-radius: 16px; background: linear-gradient(180deg, #f2faff, #e3f2fc); cursor: pointer; text-align: center; }
.dropzone.dragover { background: #d8efff; border-color: #2a8ce6; }
.dropzone-title { font-size: 1.25rem; font-weight: 700; color: #13407a; margin: 0; }
.dropzone .hint { margin: 0; }
.btn-run { margin-top: 18px; height: 48px; padding: 0 34px; border-radius: 12px; border: 1px solid #0f5fb8; background: linear-gradient(180deg, #2a8ce6, #0f5fb8); color: #fff; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
.hint { color: #5a6b88; font-size: 0.9rem; margin: 8px 0 0; }
.msg { margin-top: 14px; font-weight: 700; color: #1a7f37; min-height: 1.5em; }
.msg.error { color: #c62828; }

/* 광고, 본문, 푸터 */
.ad-slot { min-height: 90px; margin: 28px 0; background: #eef4f9; border: 1px dashed #b5c9dc; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #7a8ca6; font-size: 0.85rem; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.faq-item { background: #fff; border: 1px solid #dce5ef; border-radius: 12px; padding: 18px 22px; margin: 12px 0; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item:hover { border-color: #9ec5ed; box-shadow: 0 3px 12px rgba(0, 45, 90, 0.05); }
.faq h3 { font-size: 1rem; font-weight: 700; line-height: 1.6; margin: 0 0 8px; color: #20354e; }
.faq p { margin: 0; padding-left: 0; color: #536579; font-size: 0.95rem; line-height: 1.85; overflow-wrap: break-word; }
.site-footer { text-align: center; padding: 24px; color: #4a5b7a; font-size: 0.9rem; border-top: 1px solid #cfe6f5; background: #fff; }
.site-footer a { margin: 0 8px; color: #1d4e89; }

/* 안내 창 (한도 초과) */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(13, 35, 66, 0.45); align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 16px; padding: 24px; max-width: 520px; width: 100%; }
.modal h2 { margin-top: 0; font-size: 1.35rem; }
.modal-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.modal-options .option { border: 1px solid #cfe6f5; border-radius: 12px; padding: 14px; background: #f7fbff; }
.modal-options .option p { font-size: 0.9rem; color: #4a5b7a; margin: 6px 0 12px; }
.modal-options .btn-run, .modal-options .btn-green { margin-top: 0; height: 40px; padding: 0 16px; font-size: 0.95rem; text-decoration: none; display: inline-flex; align-items: center; color: #fff; border-radius: 10px; }
.link-btn { margin-top: 16px; background: none; border: 0; color: #1d4e89; cursor: pointer; font-size: 0.95rem; text-decoration: underline; padding: 0; }

/* 요금 페이지 */
.plan { background: #fff; border: 1px solid #cfe6f5; border-radius: 16px; padding: 22px; margin-top: 18px; }
.plan h2 { margin-top: 0; }
.plan .price { font-size: 1.4rem; font-weight: 700; color: #13407a; margin: 8px 0; }
.plan ul { padding-left: 20px; }
.note { color: #5a6b88; font-size: 0.9rem; }

/* 정적 문서 페이지 (소개, 정책, 가이드) 읽기 좋게 정리 */
.doc { max-width: 760px; }
.doc h1 { font-size: 2rem; line-height: 1.3; margin: 12px 0 18px; padding-bottom: 14px; border-bottom: 1px solid #cfe6f5; }
.doc h2 { font-size: 1.15rem; margin: 2.2rem 0 0.7rem; padding: 6px 0 6px 12px; border-left: 4px solid #2a8ce6; background: #fff; border-radius: 0 8px 8px 0; }
.doc p { line-height: 1.9; margin: 0.7rem 0; color: #33415f; }
.doc ul { background: #fff; border: 1px solid #cfe6f5; border-radius: 12px; padding: 14px 16px 14px 36px; margin: 0.9rem 0; }
.doc li { line-height: 1.8; margin: 6px 0; color: #33415f; }
@media (max-width: 720px) {
  .doc h1 { font-size: 1.6rem; }
}

/* 광고 자리는 승인 전까지 숨김 */
.ad-slot { display: none !important; }

/* 사용 방법 단계 (가이드) */
.guide-steps { list-style: none; padding: 0; margin: 8px 0 24px; }
.guide-step { display: flex; gap: 16px; position: relative; padding: 0 0 30px; }
.guide-step:not(:last-child)::before { content: ""; position: absolute; top: 40px; bottom: 0; left: 19px; width: 2px; background: #cfe6f5; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: #2a8ce6; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0; position: relative; z-index: 1; }
.step-content { padding: 6px 0 0; min-width: 0; }
.step-content h3 { font-size: 1.05rem; font-weight: 700; color: #13407a; margin: 0 0 6px; }
.step-content p { font-size: 0.95rem; line-height: 1.8; color: #33415f; margin: 0; overflow-wrap: break-word; }
.guide-step:last-child { padding-bottom: 0; }
@media (max-width: 600px) {
  .guide-step { gap: 12px; }
  .step-content h3 { font-size: 1rem; }
}

#auth-box { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.subscribe-btn { background: linear-gradient(180deg, #2a8ce6, #0f5fb8); color: #fff; border-color: #0f5fb8; font-weight: 700; }
.auth-google { display: flex; justify-content: center; min-height: 44px; margin: 8px 0 4px; }
.auth-hint { font-size: 0.85rem; margin: -2px 2px 6px; }
.auth-hint.ok { color: #1a7f37; }
.auth-hint.error { color: #c62828; }
[hidden] { display: none !important; }
.auth-or { text-align: center; color: #5a6b88; font-size: 0.85rem; margin: 10px 0; }
.auth-input { display: block; width: 100%; height: 44px; margin: 8px 0; padding: 0 12px; border: 1px solid #b9d7ea; border-radius: 10px; font-size: 1rem; box-sizing: border-box; }
#auth-form .btn-run { width: 100%; margin-top: 10px; }

/* 도움말 패널 (대시보드형) */
.help-panel { background: #f1f5fa; border-radius: 16px; padding: 18px; margin-top: 28px; border: 1px solid #e1e8f1; }
.help-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.help-head strong { display: block; font-size: 1.05rem; color: #1d2b4f; }
.help-sub { display: block; font-size: 0.85rem; color: #6b7a93; }
.help-logo { width: 40px; height: 40px; border-radius: 10px; background: #2c3e5c; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.help-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; text-decoration: none; color: #1d2b4f; }
.help-tile:hover { border-color: #9ec5ed; }
.help-tile-icon { margin-bottom: 6px; }
.help-tile-title { font-size: 1rem; font-weight: 700; }
.help-tile-sub { font-size: 0.85rem; color: #6b7a93; line-height: 1.5; }
.help-faq { background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; padding: 16px 18px; margin-top: 14px; }
.help-faq h2 { margin: 0 0 6px; font-size: 1.05rem; color: #1d2b4f; }
.help-q { border-top: 1px solid #eef2f7; padding: 10px 0; }
.help-q summary { cursor: pointer; color: #33415f; font-size: 0.97rem; list-style: none; display: flex; justify-content: space-between; }
.help-q summary::-webkit-details-marker { display: none; }
.help-q summary::after { content: "⌄"; color: #6b7a93; }
.help-q[open] summary::after { content: "⌃"; }
.help-q p { margin: 8px 0 0; color: #536579; font-size: 0.93rem; line-height: 1.8; }
@media (max-width: 600px) {
  .help-grid { grid-template-columns: 1fr; }
}

/* 사용 방법 패널 (홈) */
.usage-panel { background: #f1f5fa; border-radius: 16px; padding: 18px; margin-top: 28px; border: 1px solid #e1e8f1; }
.usage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.usage-head strong { display: block; font-size: 1.05rem; color: #1d2b4f; }
.usage-sub { display: block; font-size: 0.85rem; color: #6b7a93; }
.usage-logo { background: #e3eefb; }
.usage-logo svg path { stroke: #2f6fb0; }
.usage-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.usage-step { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; }
.usage-step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.usage-icon { width: 44px; height: 44px; border-radius: 10px; background: #e3eefb; display: flex; align-items: center; justify-content: center; }
.usage-num { font-size: 0.85rem; color: #9aa8bd; font-weight: 700; }
.usage-step strong { font-size: 1rem; color: #1d2b4f; }
.usage-desc { font-size: 0.85rem; color: #6b7a93; line-height: 1.5; }
.usage-help { background: #fff; border: 1px solid #dfe6ef; border-radius: 12px; padding: 14px 18px; margin-top: 14px; display: flex; flex-direction: column; }
.usage-help strong { font-size: 1rem; color: #1d2b4f; margin-bottom: 6px; }
.usage-help a { padding: 10px 0; border-top: 1px solid #eef2f7; color: #33415f; text-decoration: none; }
.usage-help a::after { content: " ›"; color: #9aa8bd; }
@media (max-width: 720px) {
  .usage-steps { grid-template-columns: 1fr; }
}

/* 10페이지 초과 결제 창 */
.pl-modal { position: relative; background: radial-gradient(120% 60% at 100% 0%, #e3f0ff 0%, rgba(227, 240, 255, 0) 60%), radial-gradient(90% 50% at 0% 100%, #f1f7ff 0%, rgba(241, 247, 255, 0) 70%), #fff; border-radius: 20px; padding: 26px 24px 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(13, 35, 66, 0.25); }
.pl-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: #7a8ca6; cursor: pointer; }
.pl-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.pl-icon { width: 46px; height: 46px; border-radius: 12px; background: #e8f2ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pl-head h2 { margin: 0; font-size: 1.2rem; color: #1d2b4f; }
.pl-head p { margin: 4px 0 0; font-size: 0.9rem; color: #6b7a93; }
.pl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-card { position: relative; border: 1px solid #d9e4f0; border-radius: 16px; padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.pl-card-dark { background: linear-gradient(160deg, #2f8ef0, #0f5fb8); border-color: #0f5fb8; color: #fff; }
.pl-label { font-size: 0.95rem; font-weight: 700; color: #1d2b4f; }
.pl-card-dark .pl-label { color: #fff; }
.pl-price { font-size: 1.8rem; font-weight: 800; color: #13407a; line-height: 1.1; }
.pl-price small { font-size: 0.85rem; font-weight: 600; }
.pl-card-dark .pl-price { color: #fff; }
.pl-desc { font-size: 0.85rem; color: #6b7a93; line-height: 1.5; min-height: 2.6em; }
.pl-card-dark .pl-desc { color: #d6e9ff; }
.pl-badge { position: absolute; top: 12px; right: 12px; background: #fff; color: #0f5fb8; font-size: 0.75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pl-btn-outline, .pl-btn-white { margin-top: 8px; height: 42px; border-radius: 10px; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.pl-btn-outline { background: #fff; border: 1.5px solid #2f7de1; color: #2f7de1; }
.pl-btn-white { background: #fff; border: 0; color: #0f5fb8; }
.pl-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: #fdecec; color: #c62828; font-size: 0.9rem; font-weight: 600; }
.pl-error:empty { display: none; }
@media (max-width: 480px) {
  .pl-cards { grid-template-columns: 1fr; }
}

/* 변환 페이지 (결제 후 파일 변환 및 다운로드) */
.processing-card { max-width: 520px; margin: 80px auto; padding: 36px 28px; text-align: center; border: 1px solid #dce8fa; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(13, 36, 70, 0.08); }
.processing-card h1 { margin: 18px 0 10px; font-size: 1.5rem; color: #173a67; }
.processing-card p { color: #5d7090; line-height: 1.6; }
.processing-spinner { width: 52px; height: 52px; margin: 0 auto; border: 5px solid #d9e8fb; border-top-color: #1674e8; border-radius: 50%; animation: processing-spin 0.9s linear infinite; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .processing-spinner { animation-duration: 3s; } }

/* 결제 확인 대기 중 상단 안내 바 */
.pay-wait { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10000; width: min(640px, calc(100% - 24px)); padding: 14px 16px; border-radius: 14px; background: #fff7e6; border: 1px solid #f5d08a; color: #7a5200; box-shadow: 0 10px 30px rgba(13, 36, 70, 0.15); font-size: 0.95rem; line-height: 1.5; }

/* 결제 모달 (시안 2: 혜택 비교 + 신뢰 요소) */
.pm-dialog { position: relative; width: min(760px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: linear-gradient(145deg, #fff 45%, #f8fbff 100%); border: 1px solid #e5eefe; border-radius: 23px; box-shadow: 0 25px 70px #17365f43; padding: 30px 30px 19px; color: #17345e; }
.pm-close { position: absolute; top: 18px; right: 20px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #647c9a; font-size: 25px; cursor: pointer; }
.pm-close:hover { background: #edf4fe; }
.pm-intro { display: flex; gap: 15px; align-items: center; padding-right: 40px; margin-bottom: 24px; }
.pm-intro-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 13px; background: #e9f3ff; color: #1675e9; }
.pm-intro h2 { margin: 0 0 7px; font-size: 23px; letter-spacing: -.7px; line-height: 1.35; color: #132c58; }
.pm-intro p { margin: 0; font-size: 13px; color: #71829c; }
.pm-grid { display: grid; grid-template-columns: 1.12fr 1fr 1fr; border: 1px solid #dde8f7; border-radius: 14px; background: #fff; box-shadow: 0 4px 15px #17385e0a; }
.pm-grid > * { min-width: 0; }
.pm-grid-intro { padding: 21px 16px 12px 18px; border-right: 1px solid #e5edf8; background: linear-gradient(#fff, #f9fbff); border-radius: 14px 0 0 0; }
.pm-grid-intro strong { display: block; margin: 0 0 6px; font-size: 15px; color: #1a385f; }
.pm-grid-intro span { font-size: 12px; line-height: 1.5; color: #7689a2; }
.pm-plan { position: relative; display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 91px; padding: 12px 10px; background: #edf4ff; border-right: 1px solid #e1eafb; }
.pm-plan.month { border-radius: 12px 12px 0 0; color: #fff; background: linear-gradient(123deg, #3287ff 0%, #115bd5 95%); box-shadow: 0 7px 16px #1667df36; transform: translateY(-1px); }
.pm-plan strong { font-size: 16px; }
.pm-plan small { display: block; margin-top: 5px; font-size: 11px; color: #7c8fa9; }
.pm-plan.month small { color: #dfeeff; }
.pm-rec { position: absolute; right: 11px; top: -14px; background: #fff0c4; color: #925f0b; border: 1px solid #f9d98c; border-radius: 40px; padding: 6px 10px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pm-label, .pm-value { padding: 14px 12px; min-height: 53px; border-top: 1px solid #e8eef8; display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1.4; }
.pm-label { justify-content: flex-start; gap: 11px; padding-left: 17px; color: #45658f; background: #f9fbfe; font-weight: 600; border-right: 1px solid #e8eef8; }
.pm-label svg { flex: none; color: #5982bc; }
.pm-value { color: #3c5577; text-align: center; border-right: 1px solid #e8eef8; }
.pm-value.month-col { background: #eaf3ff; color: #214a83; border-right: 0; }
.pm-value.price { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: #113b7a; }
.pm-value.price small { font-size: 12px; font-weight: 500; margin-left: 4px; color: #507199; }
.pm-value.strong { font-weight: 750; color: #153e7a; }
.pm-action-spacer { background: #f9fbfe; border-radius: 0 0 0 14px; }
.pm-action { padding: 13px 12px 16px; border-right: 1px solid #e8eef8; background: #fff; }
.pm-action.month-col { background: #eaf3ff; border: 0; border-radius: 0 0 14px 0; }
.pm-btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 9px 6px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.pm-btn:disabled { opacity: .6; cursor: wait; }
.pm-btn.outline { border: 1px solid #9bbcf2; background: #fff; color: #1765c6; }
.pm-btn.outline:hover { background: #f3f8ff; }
.pm-btn.primary { border: 1px solid #1161e3; background: linear-gradient(180deg, #2184fc, #0564e5); color: #fff; box-shadow: 0 4px 10px #146eea32; }
.pm-btn.primary:hover { background: #075ed7; }
.pm-trust { margin-top: 18px; display: flex; justify-content: space-around; align-items: center; gap: 8px; border-radius: 14px; background: #eef5ff; padding: 13px 12px; color: #53739f; font-size: 11px; font-weight: 600; }
.pm-trust span { display: flex; align-items: center; gap: 6px; }
.pm-trust svg { width: 16px; height: 16px; color: #5889ca; }
.pm-sep { height: 22px; width: 1px; background: #cdddf3; }
.pm-dialog :focus-visible { outline: 3px solid #7cb4ff; outline-offset: 2px; }
@media (max-width: 620px) {
  .pm-dialog { padding: 22px 14px 16px; max-height: calc(100dvh - 24px); border-radius: 17px; }
  .pm-intro { gap: 9px; margin-bottom: 20px; }
  .pm-intro-icon { width: 39px; height: 39px; }
  .pm-intro h2 { font-size: 17px; }
  .pm-intro p { font-size: 11px; }
  .pm-grid { grid-template-columns: .9fr 1fr 1.08fr; }
  .pm-grid-intro { padding: 14px 6px; }
  .pm-grid-intro strong { font-size: 12px; }
  .pm-grid-intro span { font-size: 10px; }
  .pm-plan { min-height: 82px; padding: 12px 4px; }
  .pm-plan strong { font-size: 12px; }
  .pm-plan small { font-size: 9px; }
  .pm-rec { font-size: 9px; padding: 4px 6px; right: 2px; }
  .pm-label, .pm-value { padding: 10px 5px; min-height: 53px; font-size: 10px; }
  .pm-label { gap: 3px; }
  .pm-label svg { display: none; }
  .pm-value.price { font-size: 20px; }
  .pm-value.price small { font-size: 9px; }
  .pm-action { padding: 8px 5px; }
  .pm-btn { min-height: 40px; font-size: 11px; padding: 6px 2px; }
  .pm-trust { font-size: 9px; gap: 4px; flex-wrap: wrap; padding: 10px 8px; }
  .pm-sep { display: none; }
}

/* 결제 모달 비율 보정 (원본 시안 기준, 760px 컴팩트) */
.pm-dialog { width: min(760px, calc(100vw - 32px)); max-width: 760px; max-height: calc(100dvh - 32px); padding: 26px 26px 18px; border-radius: 20px; box-shadow: 0 22px 60px rgba(17, 45, 83, .22); }
.pm-intro { gap: 14px; margin-bottom: 20px; padding-right: 36px; }
.pm-intro-icon { width: 46px; height: 46px; border-radius: 13px; }
.pm-intro h2 { margin: 0 0 6px; font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
.pm-intro p { font-size: 15px; line-height: 1.5; }
.pm-close { top: 14px; right: 15px; }
.pm-grid { grid-template-columns: 29% 35.5% 35.5%; border: 1px solid #dce8f6; border-radius: 13px; }
.pm-grid-intro { padding: 18px 14px 10px 15px; }
.pm-grid-intro strong { font-size: 17px; margin-bottom: 6px; }
.pm-grid-intro span { font-size: 14px; line-height: 1.45; }
.pm-plan { min-height: 96px; padding: 14px 10px; }
.pm-plan strong { font-size: 20px; }
.pm-plan small { margin-top: 6px; font-size: 14px; }
.pm-plan.month { background: linear-gradient(125deg, #368dff 0%, #1062d9 100%); border-radius: 11px 11px 0 0; }
.pm-rec { right: 12px; top: -13px; padding: 5px 12px; font-size: 13px; }
.pm-label, .pm-value { min-height: 52px; padding: 10px 12px; font-size: 16px; line-height: 1.35; }
.pm-label { padding-left: 14px; gap: 8px; }
.pm-label svg { width: 15px; height: 15px; }
.pm-value.price { font-size: 30px; }
.pm-value.price small { font-size: 14px; }
.pm-action { padding: 12px 12px 14px; }
.pm-btn { min-height: 48px; padding: 10px 8px; font-size: 16px; border-radius: 10px; }
.pm-trust { margin-top: 14px; padding: 12px 8px; gap: 6px; font-size: 13px; justify-content: space-evenly; }
.pm-trust span { gap: 5px; }
.pm-trust svg { width: 15px; height: 15px; }
.pm-sep { height: 19px; }
@media (max-width: 620px) {
  .pm-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 19px 12px 14px; border-radius: 16px; }
  .pm-intro { gap: 9px; margin-bottom: 17px; }
  .pm-intro-icon { width: 39px; height: 39px; }
  .pm-intro h2 { font-size: 16px; }
  .pm-intro p { font-size: 11px; }
  .pm-grid { grid-template-columns: 28% 35% 37%; }
  .pm-grid-intro { padding: 11px 5px; }
  .pm-grid-intro strong { font-size: 11px; }
  .pm-grid-intro span { font-size: 9px; }
  .pm-plan { min-height: 68px; padding: 8px 3px; }
  .pm-plan strong { font-size: 12px; }
  .pm-plan small { font-size: 9px; }
  .pm-rec { top: -9px; right: 2px; padding: 3px 5px; font-size: 9px; }
  .pm-label, .pm-value { min-height: 43px; padding: 7px 4px; font-size: 10px; }
  .pm-label { padding-left: 6px; gap: 4px; }
  .pm-value.price { font-size: 19px; }
  .pm-action { padding: 7px 4px; }
  .pm-btn { min-height: 36px; font-size: 10px; padding: 5px 2px; }
  .pm-trust { margin-top: 12px; font-size: 9px; padding: 9px 5px; }
}

/* 자동 다운로드가 안 될 때 나오는 수동 다운로드 링크 */
/* 다운로드가 안 시작될 때 쓰는 링크: 완료 안내와 같은 카드 모양 */
.dl-fallback {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 9px 16px 9px 10px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #f0f6ff;
  border: 1px solid #d5e4fb;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a5f;
  animation: okIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.dl-fallback::before {
  content: "\2193";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f5fd1;
  color: #fff;
  font-weight: 800;
}
.dl-fallback a { color: #1768cc; font-weight: 700; text-decoration: underline; word-break: break-all; }

/* 결제 완료 안내 바 (?paid=1) */
.paid-notice { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10000; display: flex; align-items: center; gap: 12px; width: min(640px, calc(100% - 24px)); padding: 14px 16px; border-radius: 14px; background: #ecf8f0; border: 1px solid #b9e3c6; color: #1d5a33; box-shadow: 0 10px 30px rgba(13, 36, 70, 0.15); font-size: 0.95rem; line-height: 1.5; }
.paid-notice p { margin: 0; flex: 1; }
.paid-notice-close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: #1d5a33; cursor: pointer; }

/* 결제 모달: 요금제 비교표 (PC) / 세로 카드 (모바일) */
.pay-dialog { max-width: 760px; background: #fff; border-radius: 20px; padding: 32px; color: #233b5b; box-shadow: 0 24px 70px rgba(13, 36, 70, 0.2); max-height: calc(100dvh - 48px); overflow-y: auto; }
.pay-dialog .pl-x { top: 18px; right: 20px; }
.pay-dialog .pay-header { display: flex; align-items: center; gap: 18px; padding-right: 24px; margin-bottom: 28px; }
.pay-icon { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: #e8f2ff; color: #2582eb; }
.pay-icon svg { width: 31px; height: 31px; }
.pay-dialog h2 { margin: 0 0 8px; color: #173a67; font-size: 23px; font-weight: 750; line-height: 1.35; letter-spacing: -0.6px; }
.pay-dialog .pay-header p { margin: 0; color: #70839e; font-size: 15px; line-height: 1.6; }
.pay-comparison { overflow: hidden; border: 1px solid #e0e9f4; border-radius: 16px; }
.pay-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pay-table th, .pay-table td { padding: 15px 12px; text-align: center; vertical-align: middle; border-bottom: 1px solid #e6edf5; }
.pay-table thead th { height: 58px; font-size: 17px; font-weight: 750; color: #173a67; background: #f6f9fd; }
.pay-table thead th:first-child, .pay-table tbody th { width: 28%; }
.pay-table tbody th { text-align: left; padding-left: 22px; color: #526c8a; background: #fafbfd; font-size: 14px; font-weight: 600; }
.pay-table td { width: 36%; font-size: 15px; color: #284263; }
.pay-table .pay-recommended { background: #eaf3ff; }
.pay-table thead .pay-recommended { background: #d5e8ff; }
.pay-price { color: #123d76; font-size: 29px; font-weight: 800; letter-spacing: -1px; }
.pay-unit { font-size: 14px; color: #547398; }
.pay-badge { display: inline-block; margin-left: 6px; padding: 4px 9px; border-radius: 20px; background: #fff; color: #1768cc; font-size: 11px; font-weight: 750; vertical-align: middle; }
.pay-action-row td, .pay-action-row th { padding-top: 20px; padding-bottom: 20px; border-bottom: 0; }
.pay-button { width: 100%; min-height: 44px; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pay-button:disabled { opacity: .55; cursor: wait; }
.pay-button-outline { border: 1px solid #2382f5; background: #fff; color: #146bd2; }
.pay-button-outline:hover:not(:disabled) { background: #f0f7ff; }
.pay-button-primary { border: 1px solid #126bd9; background: #1978e8; color: #fff; }
.pay-button-primary:hover:not(:disabled) { background: #0d65cd; }
.pay-footnote { margin: 16px 0 0; text-align: center; color: #8695a9; font-size: 12px; }
.pay-mobile-plans { display: none; }
.pay-dialog .pl-error { margin-top: 20px; }
/* 결제 모달 알림 박스: 소프트 블루 알림형 */
.pay-notice { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #eef6ff; color: #1e3a5f; font-size: 15px; font-weight: 400; }
.pay-notice:empty { display: none; }
.pay-notice strong { display: block; font-size: 15px; font-weight: 700; color: #1e3a5f; }
.pay-notice p { margin: 4px 0 0; font-size: 13px; color: #6b7f99; }
.pay-notice-icon { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #dbeaff; color: #3d6fb0; }
.pay-dialog :focus-visible { outline: 3px solid #6baeff; outline-offset: 3px; }
@media (max-width: 600px) {
  .pay-dialog { padding: 22px 18px; border-radius: 16px; max-height: calc(100dvh - 24px); }
  .pay-dialog .pay-header { gap: 12px; margin-bottom: 20px; align-items: flex-start; }
  .pay-icon { width: 44px; height: 44px; border-radius: 12px; }
  .pay-icon svg { width: 25px; height: 25px; }
  .pay-dialog h2 { font-size: 19px; }
  .pay-dialog .pay-header p { font-size: 13px; }
  .pay-comparison { display: none; }
  .pay-mobile-plans { display: grid; gap: 12px; }
  .pay-mobile-card { padding: 18px; border: 1px solid #dbe7f4; border-radius: 14px; background: #fff; }
  .pay-mobile-card.is-recommended { border-color: #73adf5; background: #eaf3ff; }
  .pay-mobile-heading { display: flex; justify-content: space-between; align-items: center; }
  .pay-mobile-card h3 { margin: 0 0 8px; color: #183e70; font-size: 17px; }
  .pay-mobile-price { color: #123d76; font-size: 29px; font-weight: 800; }
  .pay-mobile-price small { font-size: 13px; font-weight: 500; }
  .pay-mobile-card p { color: #657b96; font-size: 13px; margin: 7px 0 16px; }
}

/* 언어에 따라 해당 문구만 표시 */
html:not([lang="ko"]) .ko { display: none; }
html[lang="ko"] .en { display: none; }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .file-row { flex-direction: column; align-items: stretch; }
  .btn-green { width: 100%; }
}

/* ===== 전체 디자인 정리 (차분한 네이비·블루, 신뢰감 있는 톤) ===== */
:root { --ink: #14213d; --ink-2: #3b4a66; --ink-3: #6b7890; --line: #e3e8f0; --line-2: #d3dce9; --brand: #1f5fd1; --brand-dark: #174aa6; --brand-soft: #eef4ff; --surface: #ffffff; }
body { font-family: "Pretendard", "Noto Sans KR", "Segoe UI", "Malgun Gothic", system-ui, sans-serif; background: #f6f8fb; color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }

/* 헤더: 그라데이션 제거, 얇은 구분선 */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 32px; box-shadow: 0 1px 0 rgba(20, 33, 61, 0.03); }
.logo { color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.3px; }
.logo-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ink); }
.tab { border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); padding: 8px 14px; font-weight: 600; font-size: 0.93rem; }
.tab:hover { background: var(--brand-soft); color: var(--brand); }
.tab.active { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.util a { color: var(--ink-2); font-weight: 500; }
.lang-btn, .lang-select { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 8px; }
.subscribe-btn { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 8px; font-weight: 700; }

/* 본문 타이포 */
main { max-width: 1000px; padding: 36px 28px; }
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.6px; color: var(--ink); margin: 6px 0 6px; }
h2 { color: var(--ink); font-weight: 750; letter-spacing: -0.3px; }
.lead { color: var(--ink-3); font-size: 1.02rem; }

/* 도구 카드: 색 그라데이션 대신 흰 카드 + 얇은 테두리 */
.card-list a { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04); transition: border-color .2s, box-shadow .2s, transform .2s; }
.card-list a:hover { border-color: #b9cdea; box-shadow: 0 10px 26px rgba(20, 33, 61, 0.08); transform: translateY(-2px); }
.card-list .blue, .card-list .green, .card-list .orange { background: var(--surface); border-color: var(--line); }
.card-list .sub { color: var(--ink-3); font-weight: 400; font-size: 0.92rem; }
.card-icon { width: 56px; height: 56px; }

/* 작업 영역 */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(20, 33, 61, 0.04); }
.file-row input[type="text"], .file-row select, .field input[type="text"], .field select, .auth-input { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); }
.file-row input[type="text"]:focus, .field input[type="text"]:focus, .field select:focus, .auth-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 95, 209, 0.15); }
.btn-green { background: var(--surface); color: var(--brand); border: 1.5px solid var(--brand); border-radius: 10px; font-weight: 700; }
.btn-green:hover { background: var(--brand-soft); }
.dropzone { background: #f9fbfe; border: 1.5px dashed #b7c9e2; border-radius: 14px; min-height: 220px; }
.dropzone:hover, .dropzone.dragover { background: var(--brand-soft); border-color: var(--brand); }
.dropzone-title { color: var(--ink); font-weight: 750; font-size: 1.15rem; }
.btn-run { background: var(--brand); border: 1px solid var(--brand-dark); border-radius: 10px; font-weight: 700; box-shadow: 0 6px 16px rgba(31, 95, 209, 0.22); }
.btn-run:hover { background: var(--brand-dark); }
.hint { color: var(--ink-3); }
.msg { color: #15803d; }
.msg.error { color: #b42318; }

/* 문서/가이드/푸터 */
.doc h2 { border-left-color: var(--brand); background: transparent; }
.doc p, .doc li, .step-content p, .faq p { color: var(--ink-2); }
.doc ul, .faq-item, .plan { background: var(--surface); border-color: var(--line); }
.step-number { background: var(--brand); }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); color: var(--ink-3); }
.site-footer a { color: var(--ink-2); }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  main { padding: 24px 16px; }
  h1 { font-size: 1.6rem; }
}

/* 헤더 배치: 로고 · 메뉴 가운데 · 계정/언어 오른쪽 (한 줄) */
.site-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 24px; }
.tabs { justify-content: center; gap: 4px; }
.util { gap: 10px 14px; align-items: center; justify-self: end; justify-content: flex-end; flex-wrap: wrap; max-width: 100%; font-size: 0.88rem; }
.auth-box { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 마이페이지 결제 내역 표 */
.mp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 12px; background: var(--surface, #fff); border: 1px solid var(--line, #dfe7f1); border-radius: 12px; overflow: hidden; }
.mp-table th, .mp-table td { padding: 14px 18px; text-align: left; font-size: 0.95rem; border-bottom: 1px solid var(--line, #eef2f7); }
.mp-table th { background: #f4f8fd; font-weight: 700; color: var(--ink, #14213d); }
.mp-table tbody tr:last-child td { border-bottom: 0; }
.mp-table td:last-child, .mp-table th:last-child { text-align: right; }
#mp-sub { margin-top: 4px; }
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .tabs { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
}

/* 마이페이지: 다시 받기 버튼과 보조 글자 */
.mp-redl { white-space: nowrap; }
.mp-muted { color: #6b7a90; font-size: 0.85rem; white-space: nowrap; }

/* YOUR PDF — Concept B: Minimal tab navigation
   Append AFTER the existing rules in assets/style.css.
   Header-only selectors: preserves payment, auth, i18n and tool UI.
*/
:root {
  --hdr-ink: #14213d;
  --hdr-muted: #53627a;
  --hdr-blue: #1f5fd1;
  --hdr-blue-soft: #eef4ff;
  --hdr-border: #e5eaf2;
}
.site-header {
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(290px, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 0;
  min-height: 76px;
  padding: 0 32px;
  background: #fff;
  border-bottom: 1px solid var(--hdr-border);
  box-shadow: 0 2px 12px rgba(20,33,61,.035);
}
.site-header .logo {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 11px;
  color: var(--hdr-ink);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.55px;
  white-space: nowrap;
  text-decoration: none;
}
.site-header .logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #14213d;
  box-shadow: none;
}
.site-header .tabs {
  display: flex;
  grid-column: 2;
  justify-self: center;
  align-items: stretch;
  gap: 28px;
  flex-wrap: nowrap;
  align-self: stretch;
}
.site-header .tabs .tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  box-sizing: border-box;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #52627a;
  box-shadow: none;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  transition: color .15s ease;
}
.site-header .tabs .tab:hover,
.site-header .tabs .tab:focus-visible { color: var(--hdr-blue); background: transparent; }
.site-header .tabs .tab.active,
.site-header .tabs .tab[aria-current="page"] {
  color: var(--hdr-blue);
  background: transparent;
  box-shadow: none;
  font-weight: 750;
}
.site-header .tabs .tab.active::after,
.site-header .tabs .tab[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hdr-blue);
}
.site-header .util {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 14px;
  min-width: 0;
  max-width: none;
  color: var(--hdr-muted);
  font-size: 13px;
}
.site-header .util > a {
  font-size: 13px;
  font-weight: 500;
  color: var(--hdr-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-header .util > a:hover { color: var(--hdr-blue); }
.site-header .auth-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}
.site-header .auth-box .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 34px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: #465670;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.site-header .auth-box .lang-btn:hover { background: #f6f9ff; border-color: #cbd9ed; }
.site-header .auth-box .subscribe-btn {
  min-height: 36px;
  padding: 8px 14px;
  color: white;
  background: var(--hdr-blue);
  border-color: var(--hdr-blue);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 3px 8px rgba(31,95,209,.12);
}
.site-header .auth-box .subscribe-btn:hover { background: #184fae; border-color: #184fae; }
.site-header .lang-select,
.site-header .util > .lang-btn {
  min-height: 34px;
  max-width: 140px;
  padding: 5px 9px;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
  color: #465670;
  font-size: 12px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.site-header select:focus-visible { outline: 3px solid #93bbfa; outline-offset: 3px; }
@media (max-width: 1250px) {
  .site-header { grid-template-columns: auto 1fr; gap: 0 18px; padding: 10px 24px 0; }
  .site-header .logo { grid-column: 1; grid-row: 1; }
  .site-header .util { grid-column: 2; grid-row: 1; flex-wrap: wrap; gap: 8px; }
  .site-header .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; min-height: 52px; gap: 24px; }
  .site-header .tabs .tab { min-height: 52px; }
}
@media (max-width: 650px) {
  .site-header { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 0; }
  .site-header .logo { font-size: 18px; }
  .site-header .logo-icon { width: 34px; height: 34px; }
  .site-header .tabs { order: 2; align-self: stretch; justify-content: flex-start; gap: 18px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; }
  .site-header .tabs .tab { min-height: 46px; font-size: 13px; }
  .site-header .util { order: 1; align-self: stretch; justify-self: stretch; justify-content: flex-start; flex-wrap: wrap; gap: 9px; }
  .site-header .auth-box { flex-wrap: wrap; }
}

/* 변환 완료 카드 (processing.html) */
.processing-card.pc-card { max-width: 460px; margin: 56px auto; padding: 0; overflow: hidden; text-align: center; border: 1px solid #e3ebf6; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(20, 50, 100, 0.12); }
.pc-hero { padding: 36px 28px 30px; background: linear-gradient(135deg, #2a7fe9 0%, #1a4fae 100%); color: #fff; }
.pc-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.processing-card.pc-card .pc-title { margin: 0 0 8px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.4px; color: #fff; }
.processing-card.pc-card .pc-sub { margin: 0; font-size: 0.98rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.pc-body { padding: 24px 26px 22px; }
.pc-file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #e6eef9; border-radius: 14px; background: #f7faff; text-align: left; }
.pc-meta { display: flex; flex-direction: column; min-width: 0; }
.pc-name { font-size: 0.98rem; color: #14213d; word-break: break-all; }
.processing-card.pc-card .pc-summary { margin-top: 3px; font-size: 0.86rem; color: #5d7090; }
.processing-card.pc-card .pc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; height: 52px; border-radius: 13px; background: #1f6fe0; color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; box-shadow: 0 8px 18px rgba(31, 111, 224, 0.22); transition: background .15s ease; }
.processing-card.pc-card .pc-btn:hover { background: #185fc4; color: #fff; }
.processing-card.pc-card .pc-fallback { margin: 14px 0 0; font-size: 0.88rem; }
.pc-fallback a { color: #1768cc; text-decoration: underline; }
.processing-card.pc-card .pc-back { margin: 16px 0 0; }
.processing-card.pc-card .pc-back a { color: #6b7a90; font-size: 0.92rem; text-decoration: none; }
.processing-card.pc-card .pc-back a:hover { color: #1f6fe0; text-decoration: underline; }

/* 마이페이지 대시보드 (mypage.html) */
.my-wrap { max-width: 980px; margin: 0 auto; padding: 36px 24px 56px; }
.my-head h1 { margin: 0 0 6px; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; color: var(--ink, #14213d); }
.my-head p { margin: 0 0 22px; color: #6b7a90; font-size: 0.98rem; }
.my-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.my-card { display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid #e3ebf6; border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(20, 50, 100, 0.06); }
.my-card-top { display: flex; justify-content: space-between; align-items: center; }
.my-card-label { font-size: 0.85rem; color: #6b7a90; }
.my-card-title { margin: 14px 0 6px; font-size: 1.35rem; font-weight: 800; color: #14213d; }
.my-card-desc { margin: 0 0 16px; font-size: 0.95rem; line-height: 1.55; color: #5d7090; }
.my-strip { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: #eef4ff; color: #1f4f9a; font-size: 0.92rem; }
.my-strip strong { margin-left: 6px; font-size: 1rem; }
.my-card-brand { background: linear-gradient(135deg, #2a7fe9 0%, #1a4fae 100%); border-color: transparent; color: #fff; }
.my-card-brand .my-card-label, .my-card-brand .my-card-desc, .my-card-brand .my-card-title { color: #fff; }
.my-card-brand .my-card-label { opacity: 0.85; }
.my-card-brand .my-card-desc { opacity: 0.92; }
.my-btn-white { display: flex; align-items: center; justify-content: center; margin-top: auto; height: 48px; border-radius: 12px; background: #fff; color: #1a4fae; font-weight: 700; text-decoration: none; }
.my-btn-white:hover { background: #f2f7ff; }
.my-history { padding: 22px 22px 14px; }
.my-history-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.my-history-top h2 { margin: 0; font-size: 1.1rem; font-weight: 800; color: #14213d; }
.my-table-wrap { overflow-x: auto; }
.my-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.my-table th, .my-table td { padding: 14px 10px; text-align: left; border-bottom: 1px solid #eef2f7; color: #14213d; }
.my-table th { font-size: 0.85rem; font-weight: 600; color: #6b7a90; }
.my-table tbody tr:last-child td { border-bottom: 0; }
.my-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.88rem; color: #5d7090; }
.my-act { text-align: right; }
.my-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.pill-idle { background: #f1f4f8; color: #5d7090; }
.pill-done { background: #e7f7ee; color: #1b7a43; }
.pill-warn { background: #fff4e5; color: #9a5a00; }
.my-redl { height: 34px; padding: 0 14px; border: 1px solid #cbd9ed; border-radius: 9px; background: #fff; color: #1f6fe0; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.my-redl:hover { background: #f2f7ff; }
.my-empty, .my-login p { color: #6b7a90; text-align: center; padding: 26px 0; }
/* 로그인 전 안내: 가운데 카드 + 아이콘 + 파란 버튼 */
.my-login {
  position: relative;
  max-width: 440px;
  margin: 40px auto 0;
  padding: 44px 32px 40px;
  text-align: center;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e3eaf5;
  box-shadow: 0 10px 30px rgba(20, 40, 80, .07);
  animation: okIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.my-login h1 { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.4px; color: #14213d; }
.my-login p { padding: 0; margin: 0 0 22px; font-size: 0.98rem; line-height: 1.55; }
.my-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2f7bff, #1f5fd1);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 95, 209, .25);
  transition: transform .15s, box-shadow .15s;
}
.my-link:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 95, 209, .3); }
@media (prefers-reduced-motion: reduce) { .my-login, .my-link { animation: none; transition: none; } }
.my-error { color: #b42318; text-align: center; padding: 40px 0; }
@media (max-width: 700px) {
  .my-grid { grid-template-columns: 1fr; }
  .my-table th:nth-child(2), .my-table td:nth-child(2) { display: none; }
}

/* 대표 아이콘: SVG 자체에 배경이 있으므로 헤더 배경을 투명하게 */
.site-header .logo-icon { background: transparent; border-radius: 0; box-shadow: none; }

/* 병합 목록: 칩 카드 + 추가 시 모션 (tools.js renderChips) */
.picked-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.picked-chip {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%; padding: 8px 8px 8px 12px; border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid #dbe7f7; box-shadow: 0 2px 6px rgba(20, 50, 100, .06);
  color: #14213d; font-size: 14px; font-weight: 600;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.3), box-shadow .22s ease, border-color .2s ease;
  animation: chipIn .55s cubic-bezier(.2,.9,.3,1.25) both;
}
.picked-chip::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #4d9bff, #1451d4);
}
.picked-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(31, 95, 209, .14); border-color: #b9d2f5; }
.picked-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.picked-chip-x {
  flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: #eef4ff; color: #3d5a8a; font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .3s cubic-bezier(.2,.9,.3,1.4);
}
.picked-chip-x:hover { background: #ff5d6c; color: #fff; transform: rotate(90deg); }
.picked-chip.is-new { animation: chipIn .55s cubic-bezier(.2,.9,.3,1.25) both, chipGlow 1.4s ease-out .1s both; }

@keyframes chipIn {
  0%   { opacity: 0; transform: translateX(-18px) scale(.9); filter: blur(3px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes chipGlow {
  0%   { box-shadow: 0 0 0 0 rgba(31, 111, 224, .45); }
  100% { box-shadow: 0 0 0 14px rgba(31, 111, 224, 0), 0 2px 6px rgba(20, 50, 100, .06); }
}
@keyframes fieldSweep {
  0%   { background-position: -120% 0; }
  100% { background-position: 220% 0; }
}
/* 파일이 추가되면 입력칸과 끌어다 놓기 영역에 빛이 한 번 지나갑니다 */
#filename-view.pulse, .dropzone.pulse {
  background-image: linear-gradient(105deg, transparent 40%, rgba(77, 155, 255, .22) 50%, transparent 60%);
  background-size: 250% 100%; background-repeat: no-repeat;
  animation: fieldSweep .9s ease-out;
}
.dropzone.pulse { border-style: solid; border-color: #4d9bff; }
.dropzone { transition: transform .25s cubic-bezier(.2,.9,.3,1.2), border-color .2s ease, box-shadow .25s ease; }
.dropzone.dragover { transform: scale(1.012); box-shadow: 0 10px 30px rgba(31, 95, 209, .18); }
@media (prefers-reduced-motion: reduce) {
  .picked-chip, .picked-chip.is-new, #filename-view.pulse, .dropzone.pulse { animation: none; }
}

/* 병합 칩: 포인터 커서, 드래그 순서 바꾸기 표시 */
.picked-chip { cursor: pointer; user-select: none; }
.picked-chip-x { cursor: pointer; }
.picked-chip.dragging { opacity: .45; transform: scale(.97); box-shadow: none; }
.picked-chip.drop-target { border-color: #1f6fe0; box-shadow: -6px 0 0 -2px #1f6fe0, 0 2px 6px rgba(20, 50, 100, .06); }

/* 병합 순서 안내 팁 (첫 파일 추가 시 한 번) */
.reorder-tip {
  position: fixed; right: 28px; top: 140px; z-index: 60; width: 250px;
  padding: 16px 18px 16px; border-radius: 16px; background: #14213d; color: #fff;
  box-shadow: 0 16px 36px rgba(10, 25, 60, .28);
  animation: tipIn .55s cubic-bezier(.2,.9,.3,1.2) both;
}
.reorder-tip::before {
  content: ""; position: absolute; left: -7px; top: 22px; width: 14px; height: 14px;
  background: #14213d; transform: rotate(45deg); border-radius: 3px;
}
.reorder-tip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.reorder-tip-head strong { font-size: 14px; color: #8fc1ff; letter-spacing: .2px; }
.reorder-tip-x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.reorder-tip-x:hover { background: rgba(255,255,255,.25); }
.reorder-tip p { margin: 0; font-size: 14px; line-height: 1.55; color: #e6eefc; }
@keyframes tipIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 1279px) {
  .reorder-tip { position: relative; right: auto; top: auto; width: auto; margin: 12px 0 4px; }
  .reorder-tip::before { display: none; }
}

/* 사이트 전체 동적 효과: 부드러운 등장, 버튼 반응, 카드 떠오름 (결제 모달 제외) */
@keyframes siteFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
main > :where(*) { animation: siteFadeUp .6s cubic-bezier(.2,.8,.2,1) both; }
main > :where(*):nth-child(2) { animation-delay: .05s; }
main > :where(*):nth-child(3) { animation-delay: .1s; }
main > :where(*):nth-child(4) { animation-delay: .15s; }
main > :where(*):nth-child(n+5) { animation-delay: .2s; }

:where(.btn-run, .btn-green, .pay-btn, .my-btn-white, .lang-btn, .subscribe-btn, .btn-primary) {
  transition: transform .18s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
:where(.btn-run, .btn-green, .pay-btn, .my-btn-white, .subscribe-btn, .btn-primary):hover { transform: translateY(-1px); filter: brightness(1.04); }
:where(.btn-run, .btn-green, .pay-btn, .my-btn-white, .subscribe-btn, .btn-primary):active { transform: translateY(1px) scale(.98); }

:where(.my-card, .processing-card, .card, .tool-card, .guide-card) {
  transition: transform .25s cubic-bezier(.2,.9,.3,1.1), box-shadow .25s ease, border-color .25s ease;
}
:where(.my-card, .card, .tool-card, .guide-card):hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 50, 100, .12); }

.site-header .tabs .tab { position: relative; }
.site-header .tabs .tab::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--hdr-blue, #1f5fd1); transition: left .28s ease, right .28s ease;
}
.site-header .tabs .tab:hover::after { left: 0; right: 0; }
.site-header .tabs .tab.active::after { left: 0; right: 0; }

@media (prefers-reduced-motion: reduce) {
  main > *, :where(.btn-run, .btn-green, .pay-btn, .my-btn-white, .subscribe-btn, .btn-primary, .my-card, .card, .tool-card, .guide-card) { animation: none !important; transition: none !important; transform: none !important; }
}

/* 병합 페이지 무료 혜택 배너 (D안) */
/* YOUR PDF — D안: 무료 이용 혜택 안내 배너
   assets/style.css 파일의 맨 마지막에 추가.
   다른 .hint, .msg, .btn-run 규칙을 건드리지 않습니다.
*/
body[data-tool="merge"] .merge-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body[data-tool="merge"] .merge-action-area > .hint { margin: 8px 0 0; }
body[data-tool="merge"] .merge-action-area > .btn-run { margin-top: 18px; }
body[data-tool="merge"] .merge-action-area > .msg:not(:empty) { margin: 12px 0 0; }
body[data-tool] .merge-free-benefit {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 24px;
  padding: 15px 18px;
  box-sizing: border-box;
  border-radius: 16px;
  background: #eaf8f0;
  border: 1px solid #d6f1e1;
  color: #174735;
  text-align: left;
}
body[data-tool] .merge-free-benefit__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #d5f3e1;
  color: #13a35e;
}
body[data-tool] .merge-free-benefit__icon svg { width: 29px; height: 29px; }
body[data-tool] .merge-free-benefit__content { display: grid; gap: 7px; min-width: 0; }
body[data-tool] .merge-free-benefit__line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: #235344;
}
body[data-tool] .merge-free-benefit__line svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #09975a;
  margin-top: 1px;
}
body[data-tool] .merge-free-benefit__cta {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid #078e5d;
  border-radius: 11px;
  background: linear-gradient(180deg,#13a774,#078758);
  color: #fff !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 7px rgba(6, 126, 83, .12);
  transition: background .15s, transform .15s;
}
body[data-tool] .merge-free-benefit__cta:hover {
  background: #08784f;
  transform: translateY(-1px);
}
body[data-tool] .merge-free-benefit__cta:focus-visible {
  outline: 3px solid #78cba9;
  outline-offset: 3px;
}
@media (max-width: 660px) {
  body[data-tool] .merge-free-benefit {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
    gap: 11px;
  }
  body[data-tool] .merge-free-benefit__icon { width: 42px; height: 42px; }
  body[data-tool] .merge-free-benefit__line { font-size: 13px; }
  body[data-tool] .merge-free-benefit__cta {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-tool] .merge-free-benefit__cta { transition: none; }
}

/* 오류 문구(#msg)가 보일 때는 혜택 배너를 숨겨서 두 영역이 함께 뜨지 않게 합니다 */
div:has(> #msg:not(:empty)) > .merge-free-benefit { display: none; }

/* 처리 중 안내: 점 세 개가 차례로 튀는 효과 */
.msg.is-busy { display: inline-flex; align-items: center; gap: 12px; color: #1f4f9a; font-weight: 600; }
.msg.is-busy::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #1f6fe0; box-shadow: 16px 0 0 0 #7fb0f5, 32px 0 0 0 #c4dbfb; animation: busyDots 1.1s ease-in-out infinite; flex: none; margin-left: 6px; }
@keyframes busyDots {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) { .msg.is-busy::before { animation: none; } }

/* 추출 페이지 미리보기 (split 페이지) */
.range-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.range-row input[type="text"][id="range"] { flex: 0 0 240px; width: 240px; max-width: 100%; }
.page-preview { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; min-height: 0; }
.pp-thumb { margin: 0; text-align: center; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid #dfe8f5; box-shadow: 0 2px 6px rgba(20, 50, 100, .08); animation: ppIn .35s ease both; }
.pp-thumb img { display: block; width: 64px; height: auto; border-radius: 4px; }
.pp-thumb figcaption { margin-top: 3px; font-size: 11px; color: #5d7090; font-weight: 600; }
.pp-more { font-size: 12px; color: #5d7090; align-self: center; padding: 0 4px; }
.pp-tip { width: 100%; margin: 0 0 4px; font-size: 12px; font-weight: 600; color: #5d6b82; }
/* 추출 페이지: 미리보기를 가로로 펼치고, 파일(쉼표 덩어리)마다 묶어서 보여 줍니다 */
.range-row .page-preview { flex: 1 1 280px; min-width: 0; align-items: flex-start; align-content: flex-start; }
.pp-group { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px dashed #cfdcf0; border-radius: 12px; background: #fbfdff; }
.pp-group-label { width: 100%; font-size: 12px; font-weight: 700; color: #1f5fd1; }

/* 완료 안내(#msg): 초록 카드 + 체크 아이콘이 부드럽게 나타납니다 (도구 페이지만) */
body[data-tool] .msg:not(:empty):not(.error):not(.is-busy) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 14px;
  background: #eaf8f0;
  border: 1px solid #d6f1e1;
  color: #174735;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  box-shadow: 0 4px 12px rgba(7, 135, 88, .08);
  animation: okIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
body[data-tool] .msg:not(:empty):not(.error):not(.is-busy)::before {
  content: "\2713";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #13a774, #078758);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  animation: okPop .5s .15s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes okIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes okPop { 0% { transform: scale(.4); } 60% { transform: scale(1.14); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  body[data-tool] .msg:not(:empty):not(.error):not(.is-busy),
  body[data-tool] .msg:not(:empty):not(.error):not(.is-busy)::before { animation: none; }
}
.pp-thumb[draggable="true"] { cursor: grab; }
.pp-thumb.is-dragging { opacity: .45; }
.pp-thumb.is-drag-over { outline: 2px dashed #1f5fd1; outline-offset: 2px; }
/* 페이지 입력 오류: 입력칸 바로 아래에 한 줄로 표시 */
.page-preview { flex-direction: column; align-items: stretch; }
.pp-info { font-size: 13px; font-weight: 600; color: #5d7090; }
.pp-count { color: #5d7090; }
.range-error { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #43506a; }
.range-error::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #1f5fd1; color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.range-error[hidden] { display: none; }
.range-row .range-error { flex: 0 0 100%; }
.range-bar { margin-top: 10px; height: 6px; border-radius: 999px; background: #e6edf8; overflow: hidden; }
.range-bar[hidden] { display: none; }
.range-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #4f8dff, #1f5fd1); transition: width .25s ease; }
.range-bar.is-error .range-fill { background: linear-gradient(90deg, #f97066, #d92d20); }
.range-row .range-bar { flex: 0 0 100%; }
.range-total { float: right; font-size: 13px; font-weight: 600; color: #5d6b82; }
.range-total[hidden] { display: none; }
.range-total::before { content: none; }
input.range-invalid { border-color: #d92d20 !important; }
@keyframes ppIn { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* 회전 페이지 화면 (body[data-tool="rotate"]에만 적용) */
body[data-tool="rotate"] .rotate-panel {
  padding: 28px;
  border: 1px solid #e3eaf5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(20, 40, 80, .07);
}
body[data-tool="rotate"] .rotate-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
body[data-tool="rotate"] .rotate-hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.4px; }
body[data-tool="rotate"] .rotate-hero .lead { margin: 0; color: #5d6b82; }
body[data-tool="rotate"] .rotate-hero-art {
  flex: none;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(160deg, #eef4ff, #dbe8ff);
}
body[data-tool="rotate"] .dropzone[hidden],
body[data-tool="rotate"] .file-card[hidden] { display: none; }
body[data-tool="rotate"] .file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f8ff;
  border: 1px solid #d9e4f6;
  margin-bottom: 22px;
}
body[data-tool="rotate"] .file-card-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e3edff;
  color: #1f5fd1;
}
body[data-tool="rotate"] .file-card-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
body[data-tool="rotate"] .file-card-body strong {
  font-size: 15px;
  color: #14213d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-tool="rotate"] .file-card-pages { font-size: 13px; color: #5d6b82; }
body[data-tool="rotate"] .file-card-x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #5d6b82;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(20, 40, 80, .12);
}
body[data-tool="rotate"] .file-card-x:hover { color: #b42318; }
body[data-tool="rotate"] .rotate-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0 26px;
}
body[data-tool="rotate"] .dropzone { margin-bottom: 0; }
body[data-tool="rotate"] .rotate-fields .field { margin: 0; }
body[data-tool="rotate"] .rotate-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: #14213d; }
body[data-tool="rotate"] .select-wrap { position: relative; }
body[data-tool="rotate"] .select-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
body[data-tool="rotate"] .select-wrap select,
body[data-tool="rotate"] .rotate-fields input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  background: #fff;
  color: #14213d;
  font-size: 15px;
}
body[data-tool="rotate"] .select-wrap select { padding-left: 42px; }
body[data-tool="rotate"] .select-wrap select:focus,
body[data-tool="rotate"] .rotate-fields input[type="text"]:focus {
  outline: 3px solid #cfe0ff;
  outline-offset: 0;
  border-color: #6f9ef5;
}
body[data-tool="rotate"] .rotate-fields .hint { margin: 6px 0 0; font-size: 13px; }
body[data-tool="rotate"] .rotate-action { text-align: center; }
body[data-tool="rotate"] .rotate-run {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #2f7bff, #1f5fd1);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  box-shadow: 0 8px 18px rgba(31, 95, 209, .25);
  transition: transform .15s, box-shadow .15s;
}
body[data-tool="rotate"] .rotate-run:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 95, 209, .3); }
body[data-tool="rotate"] .rotate-run:disabled { opacity: .55; cursor: not-allowed; transform: none; }
body[data-tool="rotate"] .rotate-action .msg { margin-top: 12px; }
@media (max-width: 620px) {
  body[data-tool="rotate"] .rotate-panel { padding: 20px; }
  body[data-tool="rotate"] .rotate-fields { grid-template-columns: 1fr; }
  body[data-tool="rotate"] .rotate-hero-art { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { body[data-tool="rotate"] .rotate-run { transition: none; } }
/* 페이지 입력칸: 왼쪽에 입력, 오른쪽에 미리보기 */
body[data-tool="rotate"] .rotate-fields .field:has(#range) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: 18px;
  align-items: start;
}
body[data-tool="rotate"] .field:has(#range) > label { grid-column: 1 / -1; }
body[data-tool="rotate"] .field:has(#range) > #range,
body[data-tool="rotate"] .field:has(#range) > .range-bar,
body[data-tool="rotate"] .field:has(#range) > .range-error,
body[data-tool="rotate"] .field:has(#range) > .hint { grid-column: 1; }
/* 미리보기: 적으면 입력칸 오른쪽에, 많으면(.is-wide) 입력칸 아래 다음 줄에 가로로 펼칩니다 */
body[data-tool="rotate"] .field:has(#range) > #page-preview {
  grid-column: 2;
  grid-row: 2 / span 4;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 10px;
}
body[data-tool="rotate"] .field:has(#range) > #page-preview.is-wide {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: 6px;
}
body[data-tool="rotate"] .field:has(#range) .pp-thumb { flex: none; }
body[data-tool="rotate"] .field:has(#range) .pp-more { align-self: center; }
@media (max-width: 560px) { .range-row input[type="text"][id="range"] { flex: 1 1 100%; width: 100%; } }

/* ---- 결제 모달 시안 D (베스트셀러 강조): 플랜 카드 두 장 ---- */
.pmd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; }
.pmd-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 20px; border: 1px solid #dce8f6; border-radius: 16px; background: #fff; }
.pmd-title { font-size: 16px; font-weight: 700; color: #1a385f; }
.pmd-price { font-size: 34px; font-weight: 800; letter-spacing: -.6px; color: #113b7a; line-height: 1.1; }
.pmd-price small { font-size: 14px; font-weight: 500; color: #6b7f99; margin-left: 2px; }
.pmd-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 9px; font-size: 14px; color: #3c5577; flex: 1; }
.pmd-list li { position: relative; padding-left: 24px; line-height: 1.4; }
.pmd-list li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 7px; border-left: 2.5px solid #1a6fe0; border-bottom: 2.5px solid #1a6fe0; transform: rotate(-45deg); }
.pmd-btn { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 46px; border-radius: 11px; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.pmd-btn:disabled { opacity: .6; cursor: wait; }
.pmd-btn.outline { border: 1px solid #9bbcf2; background: #fff; color: #1765c6; }
.pmd-btn.outline:hover { background: #f3f8ff; }
.pmd-btn.solid { border: 0; background: #fff; color: #0f5fd0; box-shadow: 0 6px 14px rgba(8, 40, 90, .22); }
.pmd-btn.solid:hover { background: #f3f8ff; }
.pmd-hot { background: linear-gradient(125deg, #3287ff 0%, #115bd5 95%); border: 0; color: #fff; box-shadow: 0 12px 26px rgba(22, 103, 223, .28); padding-top: 26px; }
.pmd-hot .pmd-title, .pmd-hot .pmd-price, .pmd-hot .pmd-price small, .pmd-hot .pmd-list { color: #fff; }
.pmd-hot .pmd-list li::before { border-color: #fff; }
.pmd-badge { position: absolute; top: -12px; left: 18px; padding: 5px 12px; border-radius: 40px; background: #fff0c4; color: #925f0b; border: 1px solid #f9d98c; font-size: 12px; font-weight: 800; white-space: nowrap; }
@media (max-width: 560px) {
  .pmd-cards { grid-template-columns: 1fr; gap: 12px; }
  .pmd-price { font-size: 28px; }
  .pmd-list { font-size: 13px; }
}

/* 메뉴바 시안 D: 흰 헤더 위로 은은한 사선 빛이 지나갑니다 (전체 페이지 공통) */
.site-header { position: relative; overflow: hidden; isolation: isolate; }
.site-header::before {
  content: ""; pointer-events: none; position: absolute; inset: -70% auto -70% 0; width: 28%; z-index: 1;
  transform: translateX(-200%) skewX(-22deg);
  background: linear-gradient(90deg, transparent, #b6d8ff00 10%, #90c4ff42 48%, #eaf5ff11 88%, transparent);
  transition: transform 0.85s ease;
}
.site-header:hover::before { transform: translateX(530%) skewX(-22deg); }
.site-header > * { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .site-header::before { transition-duration: 0.01ms; } }
