/* (C) SSoft 2026 z-print@bk.ru */
:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; background:#f4f6f8; color:#17212b; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; }
button, input { font:inherit; }
.shell { width:min(760px, calc(100% - 32px)); margin:48px auto 24px; }
header { margin-bottom:24px; }
.eyebrow { margin:0; color:#5c6b78; font-size:13px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
h1 { margin:4px 0 0; font-size:clamp(38px, 7vw, 58px); line-height:1; }
.lead { margin:12px 0 0; color:#52616e; }
.card { background:#fff; border:1px solid #dce2e7; border-radius:18px; padding:24px; box-shadow:0 16px 40px rgba(26,40,52,.08); }
.drop-zone { min-height:230px; border:2px dashed #9baab6; border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:24px; text-align:center; transition:.15s; cursor:pointer; }
.drop-zone.dragover { border-color:#1f6feb; background:#f0f6ff; transform:translateY(-1px); }
.drop-zone small, .mode small { color:#6b7781; }
.drop-icon { width:58px; height:58px; border-radius:12px; display:grid; place-items:center; background:#e8f1ff; color:#1458b0; font-weight:800; }
button { border:0; border-radius:10px; cursor:pointer; }
.secondary { padding:10px 16px; background:#e9eef2; color:#17212b; }
.primary { width:100%; margin-top:20px; padding:14px 18px; background:#1769d2; color:white; font-weight:750; }
.primary:disabled { opacity:.45; cursor:not-allowed; }
.file-card { margin-top:14px; padding:14px 16px; border:1px solid #dce2e7; border-radius:12px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.file-card div { min-width:0; }
.file-card strong, .file-card span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.file-card span { margin-top:3px; color:#6b7781; font-size:13px; }
.text-button { background:transparent; color:#b42318; padding:8px; }
fieldset { margin:24px 0 0; padding:0; border:0; }
legend { margin-bottom:10px; font-weight:750; }
.mode { display:flex; gap:10px; padding:12px 10px; border-radius:10px; cursor:pointer; }
.mode:hover { background:#f5f7f9; }
.mode input { margin-top:4px; }
.mode span, .mode b, .mode small { display:block; }
.signature-row { margin-top:12px; padding:14px; background:#f5f7f9; border-radius:10px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.signature-row input { width:110px; padding:9px; border:1px solid #c9d2da; border-radius:8px; }
.status, .result { margin-top:16px; padding:14px; border-radius:10px; }
.status { background:#eef4fb; }
.status.error { background:#fff0ee; color:#9f251b; }
.result { background:#eef9f1; }
.result a { display:inline-block; margin-top:10px; padding:11px 15px; border-radius:9px; background:#167443; color:#fff; text-decoration:none; font-weight:700; }
.warning { margin-top:10px; padding:10px; background:#fff7df; border-radius:8px; color:#725300; }
.hidden { display:none !important; }
footer { margin-top:20px; text-align:center; color:#75828d; font-size:13px; }
@media (max-width:560px) { .shell{margin-top:24px}.card{padding:16px}.signature-row{align-items:flex-start;flex-direction:column}.signature-row input{width:100%} }

fieldset:disabled { opacity:.55; }
fieldset:disabled .mode { cursor:not-allowed; }
fieldset:disabled .mode:hover { background:transparent; }
.text-button:disabled { opacity:.45; cursor:not-allowed; }
.progress-panel { margin-top:16px; padding:14px; border-radius:10px; background:#eef4fb; }
.progress-heading, .progress-details { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.progress-heading span, .progress-details { color:#5d6b77; font-size:13px; }
.progress-track { height:10px; margin:10px 0 8px; overflow:hidden; border-radius:999px; background:#d6e2ef; }
.progress-bar { width:0; height:100%; border-radius:inherit; background:#1769d2; transition:width .15s linear; }
.progress-panel.processing .progress-bar { position:relative; overflow:hidden; }
.progress-panel.processing .progress-bar::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation:progress-shimmer 1.2s linear infinite; }
@keyframes progress-shimmer { from { transform:translateX(-100%); } to { transform:translateX(100%); } }
@media (max-width:560px) { .progress-details { align-items:flex-start; flex-direction:column; gap:4px; } }
.file-info, .diagnostic-panel { margin-top:16px; padding:14px; border-radius:10px; background:#f5f7f9; }
.diagnostic-panel > div { margin-top:6px; }
.diagnostic-ok { color:#167443; }
.diagnostic-error { margin-top:10px; padding:10px; background:#fff0ee; border-radius:8px; color:#9f251b; }
.important-warning { margin-top:10px; border:1px solid #e7c75e; }
.repeat-note { margin-top:12px; color:#52616e; font-size:13px; }
.secondary:disabled { opacity:.45; cursor:not-allowed; }
