*{box-sizing:border-box}body{margin:0;background:#f5f7f4;color:#18342b;font:17px/1.65 system-ui,sans-serif}main{max-width:1000px;margin:auto;padding:24px}header{margin-bottom:20px}a{color:#216647}h1{font-size:clamp(30px,5vw,44px);line-height:1.15}h2{line-height:1.3}section,article{background:white;border:1px solid #d6e0d9;border-radius:16px;padding:24px;margin:20px 0}label{display:block;font-weight:650}input{max-width:100%;margin:16px 0}textarea{display:block;width:100%;min-height:150px;resize:vertical;font:14px/1.5 ui-monospace,monospace;overflow-wrap:anywhere}button{padding:12px 20px;margin:12px 8px 0 0;background:#22563f;color:white;border:0;border-radius:8px;font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:default}#preview{max-width:100%;max-height:220px;object-fit:contain;display:block;margin-top:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;background:#edf3ee;padding:16px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:15px}td,th{padding:10px;border:1px solid #d6e0d9;text-align:left;overflow-wrap:anywhere}code{overflow-wrap:anywhere}footer{padding:20px 0;font-size:14px}@media(max-width:600px){main{padding:12px}section,article{padding:16px}table{font-size:13px}td,th{padding:7px}}

/* Mobile-first first-screen polish: typography, controls, visual hierarchy only. */
main>header{margin:0 0 18px;padding:2px 0 12px;border-bottom:1px solid #dce5df;font-size:14px;letter-spacing:.01em}main>header a{text-decoration:none;font-weight:700}main>h1{font-size:32px;line-height:1.16;letter-spacing:-.035em;margin:20px 0 22px;color:#173d31}
#converter{padding:22px 20px;background:#fff;border-color:#d7e3da;border-radius:20px;box-shadow:0 8px 28px #173d3109;margin:0 0 28px}#converter ol{margin:0 0 22px;padding-left:23px;font-size:15px;line-height:1.6;color:#4b6258}#converter li+li{margin-top:7px}#converter label{font-size:14px;line-height:1.5;margin:16px 0 7px;color:#284c3c}#converter input[type=file]{width:100%;margin:0;padding:10px;border:1px dashed #a8bfb1;border-radius:10px;background:#f5f9f5;font-size:14px;color:#4b6258}#converter input::file-selector-button{font:inherit;font-weight:650;min-height:38px;padding:8px 13px;border:1px solid #c4d5c9;border-radius:7px;background:white;color:#254f3c;margin-right:10px;cursor:pointer}#converter textarea{min-height:112px;padding:14px;border:1px solid #cbd9cf;border-radius:10px;background:#fbfdfb;font-size:14px;line-height:1.65}#converter textarea:focus{outline:2px solid #6f9c83;outline-offset:2px}#converter button{min-height:46px;width:100%;margin:14px 0 0;border-radius:10px;font-size:15px;font-weight:650;box-shadow:0 3px 8px #173d3112}#converter button:disabled{background:#e5ece7;color:#62786b;opacity:1;box-shadow:none}#converter #status{font-size:13px;line-height:1.6;margin:14px 0 0;color:#5a6e62}#converter #preview:not([src]),#converter #preview[src=""]{display:none}
@media(min-width:720px){main>header{padding-top:10px}main>h1{font-size:44px;margin:28px 0}#converter{padding:30px 32px}#converter ol{max-width:72ch;font-size:16px}#converter button{width:auto;min-width:180px}#converter textarea{min-height:140px}}
