:root{font-family:system-ui,sans-serif;background:#f5f7fb;color:#152339;line-height:1.5;--line:#d9e1ee;--blue:#164a91;--muted:#47586d}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header,main,footer{max-width:1080px;margin:auto;padding-inline:clamp(18px,4vw,44px)}
header{height:65px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
a{color:#164b8c}
.brand{display:flex;align-items:center;gap:9px;font-weight:750;text-decoration:none;color:#152339}
main{padding-top:clamp(26px,5.5vw,57px)}
h1{font-size:clamp(30px,5.4vw,54px);letter-spacing:-.05em;line-height:1.1;margin:0 0 10px}
h2{font-size:22px;margin:0}
p{margin:0 0 8px}
.lead{font-size:17px;max-width:650px;margin-bottom:20px}
.muted,#status{color:var(--muted);font-size:14px}
#drop{border:1px dashed #7095c2;border-radius:15px;background:#eaf3ff;padding:23px;transition:background .15s}
#drop.dragging{background:#d5e9ff}
.drop-title{font-weight:700}
.controls,.results-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
button,.button,select{border:1px solid var(--line);border-radius:8px;background:white;color:#152339;font:inherit;padding:8px 12px;min-height:42px}
button,.button{cursor:pointer;font-weight:640}
button:disabled{opacity:.45;cursor:not-allowed}
.primary{background:var(--blue);border-color:var(--blue);color:white}
.upload{position:relative;display:inline-flex;align-items:center}
.upload input{position:absolute;opacity:0;inset:0;min-width:0;width:100%;cursor:pointer}
.upload:focus-within,:focus-visible{outline:3px solid #5482bf;outline-offset:2px}
#status{margin-top:9px;min-height:21px;margin-bottom:0}
.results-head{justify-content:space-between;margin:27px 0 12px}
.results-head p{margin:0}
.file-card{display:grid;align-items:start;grid-template-columns:95px minmax(0,1fr);gap:16px;margin-bottom:11px;padding:16px;background:white;border:1px solid var(--line);border-radius:13px}
.file-card img{width:95px;height:95px;object-fit:contain;background:#f4f7fb;border:1px solid var(--line);border-radius:8px}
.file-card h3{font-size:16px;margin:0 0 2px;overflow-wrap:anywhere}
.file-card section+section{margin-top:13px}
.code-meta{margin:7px 0 4px;font-size:13px;color:var(--muted);word-wrap:break-word}
pre{font-family:ui-monospace,monospace;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;padding:8px 10px;margin:0 0 6px;background:#f3f6fb;border:1px solid #e4eaf3;border-radius:6px;max-height:180px;overflow:auto}
.file-card button{font-size:13px;min-height:32px;padding:3px 8px}
footer{padding-block:25px;display:flex;gap:15px;font-size:14px}
main>section:not(#drop):not(#results){margin-bottom:19px}
@media(max-width:550px){#drop{padding:16px}.file-card{grid-template-columns:52px minmax(0,1fr);gap:9px;padding:12px}.file-card img{width:52px;height:52px}.results-head .controls label{font-size:13px}}
