/* Document Converter (tools/document-converter.html and the single-conversion pages). Uses the site's tokens. */
.dc-drop { border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface); padding: 30px 16px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dc-drop:hover, .dc-drop.over, .dc-drop:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dc-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; color: var(--accent); }
.dc-big { font-size: 1.05rem; font-weight: 600; margin: 0 0 4px; }
.dc-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.dc-local { display: inline-block; white-space: nowrap; color: var(--ok); font-weight: 500; }
.dc-drop.compact { padding: 12px 16px; }
.dc-drop.compact .dc-icon, .dc-drop.compact .dc-sub { display: none; }
.dc-drop.compact .dc-big { font-size: .95rem; margin: 0; }
.dc-err { color: var(--err); font-size: .9rem; margin: 10px 0 0; }

.dc-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 900px) { .dc-work { grid-template-columns: minmax(0, 1fr); } }
.dc-work .panel + .panel { margin-top: 0; }
.dc-sec { margin-top: 16px; }
.dc-sec h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 8px; }
.dc-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dc-badge { flex: none; min-width: 52px; height: 52px; padding: 0 6px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 .85rem var(--mono); }
.dc-fmeta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dc-fmeta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-fmeta span { color: var(--muted); font-size: .85rem; }
.dc-note { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--warn); }
.dc-note.err { color: var(--err); }
.dc-targets { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-target { min-width: 64px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 .9rem var(--sans); cursor: pointer; }
.dc-target:hover { border-color: var(--accent); }
.dc-target.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dc-hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.dc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 14px; }
.dc-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .85rem; min-width: 0; }
.dc-field > span { color: var(--muted); font-weight: 500; }
.dc-field select, .dc-field input { width: 100%; min-width: 0; }
.dc-field small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.dc-check { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; grid-column: 1 / -1; margin: 0; cursor: pointer; }
.dc-check input { margin-top: 3px; flex: none; }
.dc-check small { color: var(--muted); }
.dc-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dc-go .btn.primary { min-width: 170px; justify-content: center; }
.dc-progress { flex-basis: 100%; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dc-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.dc-status { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.dc-status.ok { color: var(--ok); }
.dc-status.err { color: var(--err); }

.dc-result-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.dc-result-head h2 { margin: 0; font-size: 1.05rem; }
.dc-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.dc-dl .btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-size { color: var(--muted); font-size: .82rem; }
.dc-quality { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.dc-warn { margin: 10px 0 0; padding: 8px 12px 8px 28px; border-radius: 8px; background: var(--surface-2); font-size: .84rem; color: var(--text); }
.dc-warn li + li { margin-top: 4px; }
.dc-preview { margin-top: 12px; }
.dc-plabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 6px; }
.dc-frame { width: 100%; height: 480px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.dc-text { max-height: 480px; overflow: auto; margin: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); font: .82rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }
.dc-thumbs, .dc-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; max-height: 520px; overflow: auto; }
.dc-pages { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dc-thumbs img, .dc-canvas { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 1px 6px rgba(0,0,0,.25); background: #fff; }
.dc-table { max-height: 480px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.dc-table table { border-collapse: collapse; font-size: .82rem; }
.dc-table td { border: 1px solid var(--border); padding: 3px 8px; white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }

/* pair chips + support table */
.dc-pairs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.dc-pairs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .86rem; font-weight: 500; }
.dc-pairs a:hover { border-color: var(--accent); text-decoration: none; }
.dc-pairs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.about .dc-support { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0 16px; }
.about .dc-support th, .about .dc-support td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
.about .dc-support th { background: var(--surface-2); }
.dc-support-wrap { overflow-x: auto; }
