/* 유즈킷 HWPX → PDF — 페이지 전용 스타일 (공통 디자인은 /style.css · /yuzu-theme.css · /site-chrome.css · /v95.css) */

.hx-shell { display: block; }

/* 파일 카드 · 변환 버튼 */
.hx-file {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px; box-shadow: var(--shadow-sm);
}
.hx-file[hidden] { display: none; }
.hx-file-ico {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark);
  font-weight: 800; font-size: .82rem; letter-spacing: -.02em;
}
.hx-file-main { flex: 1 1 220px; min-width: 0; }
.hx-file-name { font-weight: 800; font-size: 1rem; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hx-file-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.hx-file-acts { display: flex; gap: 8px; }

.hx-run { margin-top: 14px; }
.hx-run-note { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted); }

.hx-progress { margin-top: 12px; }
.hx-progress[hidden] { display: none; }
.hx-bar { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.hx-bar > i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .18s ease; }
.hx-phase { margin: 8px 0 0; font-size: .85rem; color: var(--ink-2); }

/* 결과 */
.hx-result { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.hx-result[hidden] { display: none; }
.hx-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.hx-result-title { margin: 0; font-size: 1.02rem; }
.hx-result-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.hx-preview-frame {
  background: #e9e5d8; border-radius: var(--radius-sm); padding: 12px; display: grid; place-items: center;
  min-height: 220px;
}
.hx-preview-frame canvas { max-width: 100%; height: auto; display: block; background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.35); }
.hx-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; font-size: .88rem; color: var(--ink-2); }
.hx-pager button { min-width: 38px; }
.hx-download { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.hx-download .btn { font-size: 1rem; padding: 13px 22px; }

/* 안내 상자 */
.hx-alert {
  margin-top: 14px; border: 1px solid #f0d9a8; background: #fffaf0; color: #6b4a06;
  border-radius: var(--radius-sm); padding: 13px 15px; font-size: .92rem; line-height: 1.6;
}
.hx-alert strong { color: #8a5a00; }
.hx-alert[hidden] { display: none; }
.hx-alert.is-error { border-color: #f2c2be; background: #fff6f5; color: #7c2d25; }

/* 지원 표 */
.hx-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: .93rem; background: var(--card); }
.hx-table th, .hx-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.hx-table th { background: var(--bg-soft); font-weight: 800; }
.hx-yes { color: var(--ok); font-weight: 800; }
.hx-no { color: #b3392a; font-weight: 800; }

.hx-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.hx-steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.hx-steps .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: .85rem; margin-bottom: 8px; }
.hx-steps b { display: block; margin-bottom: 4px; }
.hx-steps p { margin: 0; font-size: .9rem; color: var(--ink-2); }

.hx-keep { columns: 2; column-gap: 26px; margin: 14px 0 0; padding-left: 18px; font-size: .94rem; }
.hx-keep li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 700px) {
  .hx-table { min-width: 0; }
}
@media (max-width: 640px) {
  .hx-keep { columns: 1; }
  .hx-file { padding: 12px; }
  .hx-file-acts { width: 100%; }
  .hx-file-acts .btn { flex: 1; }
}
