:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1e2824;background:#f7f5f0;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 12% 12%,rgba(66,137,110,.1),transparent 27rem),radial-gradient(circle at 90% 85%,rgba(232,174,74,.12),transparent 25rem),#f7f5f0}button,input{font:inherit}button{-webkit-tap-highlight-color:transparent}.page-shell{width:min(100% - 32px,680px);min-height:100vh;margin:0 auto;padding:clamp(28px,6vh,64px) 0 24px;display:flex;flex-direction:column}.converter{background:#ffffffd1;border:1px solid rgba(43,71,59,.12);border-radius:28px;padding:clamp(24px,6vw,48px);box-shadow:0 24px 70px #2739311a;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.intro{text-align:center;margin-bottom:30px}.mark{width:52px;height:52px;margin:0 auto 14px;border-radius:16px;display:grid;place-items:center;color:#fff;background:#287a5e;box-shadow:0 8px 22px #287a5e40}.mark svg{width:29px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}.eyebrow{margin:0 0 7px;color:#287a5e;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}h1{margin:0;font:800 clamp(1.85rem,6vw,2.7rem)/1.08 inherit;letter-spacing:-.045em}.lede{max-width:500px;margin:14px auto 0;color:#66706c;line-height:1.6}.drop-zone{min-height:250px;padding:28px;border:2px dashed #aabbb3;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;cursor:pointer;transition:.2s ease;outline:none;background:#f7faf8b3}.drop-zone:hover,.drop-zone:focus-visible,.drop-zone.is-dragging{border-color:#287a5e;background:#eef7f3;transform:translateY(-2px)}.upload-icon{width:52px;height:52px;margin-bottom:15px;border-radius:50%;display:grid;place-items:center;color:#287a5e;background:#dceee7}.upload-icon svg,button svg{width:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.drop-zone strong{font-size:1.1rem}.drop-zone span{color:#69736f;margin-top:5px}.drop-zone small{max-width:400px;color:#929a96;margin-top:18px;line-height:1.45}.selection{display:grid;gap:18px}.preview-wrap{height:min(42vh,330px);background:#e9ece9;border-radius:18px;overflow:hidden;display:grid;place-items:center}.preview-wrap img{width:100%;height:100%;object-fit:contain}.file-details,.output-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.file-copy{display:grid;min-width:0}.file-copy strong,.success strong{margin:3px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-copy>span:last-child,.success div>span:last-child{color:#78817d;font-size:.9rem}.label{color:#78817d;font-size:.78rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.text-button{border:0;background:transparent;color:#287a5e;font-weight:700;cursor:pointer;padding:10px}.output-row{padding:14px 16px;background:#f3f5f3;border-radius:12px;color:#69736f;font-size:.9rem}.output-row strong{color:#27312d;overflow-wrap:anywhere}.primary-button,.secondary-button{min-height:54px;border-radius:14px;font-weight:700;cursor:pointer;transition:.18s ease}.primary-button{border:0;background:#287a5e;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 8px 20px #287a5e33}.primary-button:hover{background:#206a51;transform:translateY(-1px)}.primary-button:focus-visible,.secondary-button:focus-visible,.text-button:focus-visible{outline:3px solid rgba(40,122,94,.28);outline-offset:3px}.primary-button:disabled{opacity:.7;cursor:wait}.secondary-button{border:1px solid #cbd3cf;background:transparent;color:#34413b}.secondary-button:hover{background:#f3f5f3}.success{text-align:center;display:grid;gap:14px}.success[hidden]{display:none}.success-icon{width:72px;height:72px;margin:4px auto 8px;border-radius:50%;display:grid;place-items:center;color:#287a5e;background:#dceee7}.success-icon svg{width:38px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.success>div:nth-child(2){display:grid}.message{margin:16px 0;padding:13px 15px;border-radius:12px}.error{color:#8e332d;background:#fff0ee;border:1px solid #f3c5c0}footer{margin-top:auto;padding:22px 0 0;color:#808984;text-align:center;font-size:.85rem}.history{margin-top:34px;padding-top:28px;border-top:1px solid #dfe4e1}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-heading .eyebrow{margin-bottom:3px}.history h2{margin:0;font-size:1.3rem;letter-spacing:-.025em}.history-note{margin:8px 0 18px;color:#78817d;font-size:.9rem}.danger-button{color:#9b3d36}.history-list{display:grid;gap:10px}.history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:13px;border:1px solid #dfe4e1;border-radius:14px;background:#fafbfa}.pdf-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;color:#9b3d36;background:#f8e5e3;font-size:.68rem;font-weight:800}.history-copy{min-width:0;display:grid}.history-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-copy span{margin-top:3px;color:#78817d;font-size:.78rem}.history-actions{display:flex;align-items:center;gap:6px}.history-download{min-height:38px;padding:0 12px;border:1px solid #b8c7c0;border-radius:9px;color:#287a5e;background:#fff;font-weight:700;cursor:pointer}.history-remove{width:38px;height:38px;border:0;border-radius:9px;color:#8d9692;background:transparent;font-size:1.45rem;cursor:pointer}.history-download:hover,.history-remove:hover{background:#edf4f1}[hidden]{display:none!important}@media(max-width:520px){.page-shell{width:min(100% - 20px,680px);padding-top:10px}.converter{border-radius:22px;padding:24px 18px}.intro{margin-bottom:22px}.drop-zone{min-height:220px;padding:22px 16px}.preview-wrap{height:280px}.file-details{align-items:flex-start}.output-row{align-items:flex-start;flex-direction:column;gap:4px}.history-item{grid-template-columns:auto minmax(0,1fr)}.history-actions{grid-column:1 / -1}.history-download{flex:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
