:root{--bg:#f5f6f8;--card:#fff;--text:#17191d;--muted:#6a717c;--border:#e4e7eb;--soft:#f0f2f5;--accent:#17191d;--danger:#a52828;--danger-bg:#fff2f2;--success:#146c43;--success-bg:#effaf4;--warning:#8a5a0a;--shadow:0 18px 50px #14182012}*{box-sizing:border-box}html{background:var(--bg)}body{background:radial-gradient(circle at 10% 0%, #fffffff2, transparent 32%), var(--bg);color:var(--text);margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}kbd{color:#3f4650;background:#fff;border:1px solid #d8dce1;border-bottom-width:2px;border-radius:6px;justify-content:center;min-width:26px;padding:1px 6px;font-size:.8em;display:inline-flex}.shell{width:min(1380px,100% - 32px);margin:0 auto;padding:56px 0 48px}.hero{justify-content:space-between;align-items:flex-start;gap:32px;margin-bottom:28px;display:flex}.eyebrow,.panel-kicker{letter-spacing:.14em;color:#777f8b;font-size:12px;font-weight:800}.eyebrow{letter-spacing:0;font-size:0}.eyebrow:after{content:"Fix lỗi VBCC";letter-spacing:.14em;color:#777f8b;font-size:12px;font-weight:800}.hero h1{letter-spacing:-.045em;margin:8px 0 10px;font-size:clamp(34px,5vw,60px);line-height:.98}.hero p{max-width:820px;color:var(--muted);margin:0;font-size:17px;line-height:1.65}.status{border:1px solid var(--border);color:var(--muted);background:#fffc;border-radius:999px;flex:none;align-items:center;gap:9px;padding:9px 13px;font-size:13px;font-weight:700;display:flex}.status-busy{color:#4d5560}.status-done{color:var(--success)}.status-error{color:var(--danger)}.dropzone{background:#ffffffb8;border:1.5px dashed #c7cdd5;border-radius:18px;outline:none;align-items:center;gap:16px;min-height:108px;padding:22px 24px;transition:all .18s;display:flex}.dropzone:hover,.dropzone:focus-visible,.dropzone.dragging{background:#fff;border-color:#666e78;box-shadow:0 0 0 4px #17191d0a}.dropzone.has-file{border-style:solid}.drop-icon{color:#fff;background:#16181c;border-radius:14px;flex:none;place-items:center;width:48px;height:48px;font-size:25px;line-height:1;display:grid}.file-summary{flex-direction:column;gap:5px;min-width:0;display:flex}.file-summary strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-summary span{color:var(--muted);font-size:14px}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.notice-banner{color:var(--warning);background:#fff9ed;border:1px solid #ead7b5;border-radius:12px;margin-top:14px;padding:13px 15px;font-size:14px;font-weight:650}.queue-card{border:1px solid var(--border);background:#ffffffe0;border-radius:18px;margin-top:18px;overflow:hidden}.queue-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;min-height:72px;padding:14px 18px;display:flex}.queue-header h2{letter-spacing:-.02em;margin:2px 0 0;font-size:18px}.queue-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.queue-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:245px;padding:10px;display:grid;overflow:auto}.queue-item{min-width:0;color:var(--text);text-align:left;background:#f7f8fa;border:1px solid #0000;border-radius:12px;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px;display:grid}.queue-item:hover{background:#f1f3f6}.queue-item.active{background:#fff;border-color:#202328;box-shadow:0 5px 16px #1418200f}.queue-item.phase-done{background:var(--success-bg)}.queue-item.phase-error{background:var(--danger-bg)}.queue-item.phase-done.active,.queue-item.phase-error.active{border-color:#66707b}.queue-index{color:#59616c;background:#e8ebef;border-radius:8px;place-items:center;width:28px;height:28px;font-size:12px;font-weight:800;display:grid}.queue-file{flex-direction:column;gap:3px;min-width:0;display:flex}.queue-file strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.queue-file small{color:var(--muted);font-size:11px}.queue-state{color:var(--muted);white-space:nowrap;align-items:center;gap:5px;font-size:11px;font-weight:750;display:flex}.phase-done .queue-state{color:var(--success)}.phase-error .queue-state{color:var(--danger)}.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:18px;display:grid}.panel{border:1px solid var(--border);background:var(--card);min-width:0;box-shadow:var(--shadow);border-radius:20px;overflow:hidden}.panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:16px;min-height:78px;padding:18px 20px;display:flex}.panel-header h2{letter-spacing:-.02em;margin:3px 0 0;font-size:20px}.output-title{min-width:0}.active-filename{text-overflow:ellipsis;white-space:nowrap;max-width:360px;color:var(--muted);margin-top:4px;font-size:12px;display:block;overflow:hidden}.preview-stage{background:#eef0f3;place-items:center;height:520px;display:grid;overflow:hidden}.empty-state{color:#8b929c;text-align:center}.empty-icon{opacity:.55;font-size:42px}.empty-state p{margin:10px 0 0}.image-preview{object-fit:contain;width:100%;height:100%;display:block}.pdf-frame{background:#fff;border:0;width:100%;height:100%}.inline-error{background:var(--danger-bg);color:var(--danger);border-bottom:1px solid #efcece;padding:11px 16px;font-size:13px;font-weight:650}.markdown-area{resize:none;color:#e9edf2;tab-size:2;background:#111318;border:0;outline:0;width:100%;height:520px;padding:20px;font:13.5px/1.65 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;display:block}.inline-error+.markdown-area{height:475px}.ghost-button,.copy-button{border-radius:10px;padding:9px 12px;font-size:13px;font-weight:750}.ghost-button{border:1px solid var(--border);color:#4c535d;background:#fff}.ghost-button:hover:not(:disabled){background:#f7f8fa}.danger-button{color:var(--danger)}.copy-button{color:#fff;background:#202328;border:1px solid #202328;flex:none}.actions{justify-content:space-between;align-items:center;gap:20px;margin-top:18px;display:flex}.actions p{color:var(--muted);margin:0;font-size:13px}.primary-button{color:#fff;background:#17191d;border:0;border-radius:12px;justify-content:center;align-items:center;gap:9px;min-width:250px;min-height:48px;font-weight:800;display:inline-flex;box-shadow:0 12px 26px #17191d2b}.primary-button:hover:not(:disabled){transform:translateY(-1px)}.spinner{border:2px solid;border-right-color:#0000;border-radius:50%;flex:none;width:14px;height:14px;animation:.75s linear infinite spin;display:inline-block}.spinner-light{color:#fff}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1120px){.queue-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:880px){.shell{width:min(100% - 20px,760px);padding-top:28px}.hero{flex-direction:column;gap:16px}.workspace,.queue-list{grid-template-columns:1fr}.preview-stage,.markdown-area{height:430px}.inline-error+.markdown-area{height:385px}.actions{flex-direction:column;align-items:stretch}.actions p{text-align:center}}@media (max-width:600px){.queue-header{flex-direction:column;align-items:flex-start}.queue-actions{justify-content:stretch;width:100%}.queue-actions button{flex:auto}.queue-item{grid-template-columns:28px minmax(0,1fr)}.queue-state{grid-column:2}}@media (max-width:520px){.hero h1{font-size:38px}.hero p{font-size:15px}.dropzone{min-height:96px;padding:18px}.drop-icon{width:42px;height:42px}.file-summary span{white-space:normal}.panel-header{padding:15px}.preview-stage,.markdown-area{height:360px}.inline-error+.markdown-area{height:315px}.copy-button{padding:9px 10px}.active-filename{max-width:190px}}
