:root{color-scheme:light;--ink:#302d25;--muted:#6f6a5d;--accent:#36523c;--paper:#f6f3ec}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,Segoe UI,sans-serif}.shell{max-width:1040px;margin:auto;padding:36px 22px}header{margin:12px 0 30px}.brand{font-size:12px;font-weight:750;letter-spacing:.16em;color:var(--accent)}h1{font-size:clamp(28px,4vw,40px);line-height:1.2;margin:12px 0}header p{margin:8px 0}.expiry{color:var(--muted);font-size:14px}.card{background:#fff;border:1px solid #e2ded3;border-radius:14px;box-shadow:0 6px 24px #302d2506;padding:24px;margin:20px 0}.filehead{display:flex;gap:18px;align-items:center;justify-content:space-between;margin-bottom:18px}h2{font-size:20px;line-height:1.4;margin:0;overflow-wrap:anywhere}.size{font-size:13px;color:var(--muted);margin:6px 0}.button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--accent);color:white;text-decoration:none;border-radius:8px;padding:11px 19px;font-weight:650}.button:hover{background:#233c29}a{color:var(--accent)}a:focus-visible{outline:3px solid #c49342;outline-offset:4px}.pdf{width:100%;height:680px;border:1px solid #dedbd3;border-radius:6px;background:#f8f8f8}.preview{display:block;max-width:100%;max-height:700px;height:auto;margin:0 auto;border-radius:6px}.image-link{display:block}.hint{font-size:14px;color:var(--muted)}footer{color:var(--muted);font-size:13px;padding:8px 0 28px;line-height:1.8}@media(max-width:640px){.shell{padding:20px 14px}.card{padding:18px}.filehead{align-items:stretch;flex-direction:column;gap:8px}.button{width:100%}.pdf{height:520px}}
.pdf-viewer{background:#ece9e2;border-radius:8px;padding:10px}.pdf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:14px}.pdf-toolbar button{font:inherit;padding:7px 12px;border:1px solid #cbc6b9;border-radius:6px;background:white;color:#36523c;cursor:pointer}.pdf-toolbar button:disabled{opacity:.45;cursor:default}.pdf-stage{overflow:auto;max-height:900px;text-align:center}.pdf-stage canvas{display:block;width:100%;height:auto;max-width:920px;margin:auto;background:white}.pdf-stage canvas[width="300"]{display:none}
