
:root{--bg:#f7f7f5;--card:#fff;--ink:#17181b;--muted:#676c74;--line:#dfe1e1;--brand:#151820}
*{box-sizing:border-box}html{scroll-behavior:smooth}[hidden]{display:none!important}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.56}button,input,textarea,select{font:inherit}a{color:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}
.wrap{max-width:1080px;width:calc(100% - 32px);margin-inline:auto}.header{background:#fbfaf7f2;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.head{min-height:69px;display:flex;align-items:center;justify-content:space-between;gap:12px}.head img{height:35px;max-width:55vw}.head a{text-decoration:none}.back{font-size:13px;color:var(--muted)}
.hero{text-align:center;padding:57px 0 29px}.eyebrow{font-size:12px;letter-spacing:.12em;color:#626b6d;font-weight:800}.hero h1{font-size:clamp(34px,6vw,58px);line-height:1.1;letter-spacing:-.06em;margin:12px 0 14px}.hero p{color:var(--muted);font-size:15px;max-width:660px;margin:0 auto}
.panel{border:1px solid var(--line);background:var(--card);border-radius:19px;padding:24px;margin-bottom:18px;min-width:0}.panel h2{font-size:20px;letter-spacing:-.03em;margin:0 0 12px}.panel h3{font-size:16px}.columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.toolbar{display:flex;gap:9px;flex-wrap:wrap;align-items:end;margin:14px 0}.toolbar>*{max-width:100%}
label{font-size:13px;font-weight:700;display:block;margin:10px 0 5px}input:not([type=checkbox]):not([type=color]),select,textarea{width:100%;border:1px solid #cfd3d2;border-radius:10px;padding:11px;background:#fff;min-width:0}textarea{min-height:160px;resize:vertical;line-height:1.5}input[type=color]{height:46px;width:100%;border:1px solid var(--line);border-radius:8px;padding:4px;background:#fff}
.btn{border:1px solid #181a1d;background:#17191c;color:#fff;padding:11px 16px;border-radius:10px;font-weight:700;font-size:13px}.btn.secondary{border-color:var(--line);background:#fff;color:#222}.btn:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #397ec4;outline-offset:2px}
.muted{color:var(--muted);font-size:13px}.status{font-size:13px;color:#286347;min-height:24px;margin:10px 0}.status.error{color:#ba352a}.results{overflow-wrap:anywhere;white-space:pre-wrap;border:1px solid var(--line);border-radius:10px;background:#fafaf8;padding:13px;font-family:ui-monospace,Consolas,monospace;font-size:13px;min-height:70px}
.links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 27px}.links a{font-size:13px;border:1px solid var(--line);border-radius:10px;padding:9px 12px;background:white;text-decoration:none}.privacy{margin:20px 0 36px;border-radius:12px;background:#eeeeea;padding:17px;color:#4f5855;font-size:13px}.foot{border-top:1px solid var(--line);padding:24px 0;font-size:12px;color:var(--muted);text-align:center}
.items{display:grid;gap:10px;list-style:none;margin:14px 0;padding:0}.item{display:flex;gap:12px;align-items:center;border:1px solid var(--line);padding:12px;border-radius:11px;background:#fff;min-width:0}.item>*{min-width:0}.item span{flex:1;overflow-wrap:anywhere}.item canvas{width:72px;height:auto;max-height:100px;object-fit:contain}.item .btn{padding:8px 10px}.chip{font-size:12px;color:var(--muted)}.warn{color:#974d18;font-size:13px}
@media(max-width:750px){.columns{grid-template-columns:1fr}.panel{padding:17px}.hero{padding:38px 0 21px}.head{min-height:62px}.head img{height:32px}.item{flex-wrap:wrap}}


/* PDF Organizer: CSP-safe externalized styles. */
body.pdf-organizer-page .pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:11px}
body.pdf-organizer-page .page{border:1px solid var(--line);border-radius:12px;padding:9px;min-width:0;background:white}
body.pdf-organizer-page .page canvas{width:100%;height:155px;object-fit:contain;background:#f1f1ef}
body.pdf-organizer-page .page .name{font-size:12px;overflow-wrap:anywhere;min-height:45px}
body.pdf-organizer-page .page .actions{display:flex;gap:5px;flex-wrap:wrap}
body.pdf-organizer-page .page .btn{min-height:44px;padding:7px 9px;font-size:12px}
body.pdf-organizer-page .page[draggable=true]{cursor:grab}
body.pdf-organizer-page .page.drag-over{outline:2px solid #2e77c4}
body.pdf-organizer-page .page.disabled{opacity:.6}
body.pdf-organizer-page .files{font-size:13px;color:#5c6265;line-height:1.7}
body.pdf-organizer-page .big{font-size:15px;font-weight:700}
body.pdf-organizer-page .drop,body.qr-scanner-page .drop{padding:16px;border:2px dashed #cbd3dc;border-radius:14px;background:#fafbfd}
body.pdf-organizer-page .drop.dragover,body.qr-scanner-page .drop.dragover{border-color:#317454;background:#eef7f0}
body.pdf-organizer-page .drop:focus-within,body.qr-scanner-page .drop:focus-within{outline:3px solid #397ec4;outline-offset:2px}
body.pdf-organizer-page .drop input[type=file],body.qr-scanner-page .drop input[type=file]{width:100%;max-width:100%}
@media(max-width:430px){body.pdf-organizer-page .page .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body.pdf-organizer-page .page .actions .btn:last-child{grid-column:1/-1}}

/* QR Scanner: CSP-safe externalized styles. */
body.qr-scanner-page video{display:block;width:min(100%,520px);border-radius:12px;background:#151515;margin:12px auto}
body.qr-scanner-page #cameraView[hidden]{display:none}
body.qr-scanner-page #cameraCanvas{display:none}
body.qr-scanner-page .scan-output{font-family:ui-monospace,Consolas,monospace}
body.qr-scanner-page .camera-note{font-size:12px;color:#666}
