@charset "UTF-8";
.converter-main { max-width: var(--max-width); margin: 30px auto 55px; }
.converter-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 10px 0 30px; }
.converter-heading h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.3; letter-spacing: -1px; margin: 9px 0 10px; }
.converter-heading h1 span { margin: 0 10px; color: var(--subtle); font-weight: 400; }
.converter-heading p { margin: 0; color: var(--muted); }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-line); border-radius: 20px; white-space: nowrap; font-size: 11px; }
.privacy-badge > span { font-size: 7px; }
.converter-layout { display: grid; grid-template-columns: 350px minmax(0, 1fr); gap: 23px; align-items: start; }
.converter-panel, .preview-panel { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.converter-panel { padding: 25px; }
.panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.panel-heading h2, .preview-toolbar h2 { font-size: 14px; font-weight: 650; margin: 0; }
.step-number { display: inline-grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: var(--accent-bg); color: var(--accent); font-size: 11px; font-weight: 700; }
.drop-zone { border: 1.5px dashed var(--accent-line); border-radius: 11px; background: var(--surface-soft); padding: 30px 12px 25px; text-align: center; transition: background .15s, border-color .15s; }
.drop-zone.drag-over { background: var(--accent-bg); border-color: var(--accent); }
.drop-zone[aria-disabled="true"] { opacity: .6; }
.upload-icon { color: var(--accent); margin-bottom: 7px; }
.drop-title { font-weight: 600; margin: 3px 0 5px; }
.drop-caption { margin: 0 0 20px; color: var(--muted); font-size: 10px; }
.drop-zone .primary-button { font-size: 12px; gap: 15px; }
.file-info { display: flex; align-items: center; gap: 10px; padding: 14px 0 0; }
.file-symbol { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 39px; background: #eaf1fb; color: #4472ae; border-radius: 6px; font-weight: 700; }
.file-info > div { min-width: 0; flex: 1; }
.file-info strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.file-info span:not(.file-symbol) { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.file-info .icon-button { flex-shrink: 0; font-size: 23px; }
.converter-status { margin: 15px 0 0; min-height: 37px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.converter-status[data-state="error"] { color: #b13c36; }
[data-theme="dark"] .converter-status[data-state="error"] { color: #fba49e; }
.converter-status[data-state="loading"]::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 7px; vertical-align: -1px; border: 2px solid var(--accent-line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.export-section { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 18px; }
.export-section .panel-heading { margin-bottom: 16px; }
.export-button { width: 100%; justify-content: center; gap: 14px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.export-help { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 13px 0 0; }
.export-help strong { font-weight: 600; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.preview-toolbar > span { color: var(--subtle); font-size: 10px; }
.preview-empty { display: flex; min-height: 535px; flex-direction: column; align-items: center; justify-content: center; background: var(--surface-soft); padding: 25px; text-align: center; }
.empty-paper { width: 94px; height: 122px; margin-bottom: 20px; padding: 22px 18px; background: var(--surface); color: #6992c5; border: 1px solid var(--line); border-radius: 5px 19px 5px 5px; box-shadow: 0 8px 15px #273b2908; transform: rotate(-5deg); }
.empty-paper span { display: block; font-size: 24px; line-height: 1.2; margin-bottom: 14px; font-weight: 700; }
.empty-paper i { display: block; width: 100%; height: 3px; background: var(--line); border-radius: 2px; margin-top: 7px; }
.empty-paper i:last-child { width: 65%; }
.preview-empty p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.preview-empty > span { font-size: 11px; color: var(--subtle); }
#preview-host { background: #e8ebe6; }
.document-frame { width: 100%; height: 680px; border: 0; display: block; background: #e8ebe6; color-scheme: light; }
.converter-notes { margin-top: 27px; padding: 21px 25px; border: 1px solid var(--line); border-radius: 12px; }
.converter-notes h2 { font-size: 12px; margin: 0 0 9px; }
.converter-notes ul { padding-left: 17px; margin: 0; font-size: 11px; color: var(--muted); line-height: 2; }
.converter-notes strong { font-weight: 600; }
@media (max-width: 1230px) { .converter-main { margin-left: 35px; margin-right: 35px; } }
@media (max-width: 950px) { .converter-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 17px; } .converter-panel { padding: 20px; } }
@media (max-width: 700px) { .converter-main { margin: 24px 22px 40px; } .converter-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 22px; } .converter-layout { grid-template-columns: minmax(0, 1fr); } .converter-heading p { font-size: 13px; } .preview-empty { min-height: 340px; } .document-frame { height: 520px; } .converter-notes { padding: 18px 20px; } }
@media (max-width: 480px) { .converter-main { margin-left: 19px; margin-right: 19px; } .preview-toolbar { padding: 16px 18px; } }
