:root { color-scheme: light; font-family: "Instrument Sans", system-ui, sans-serif; background: #f0f4fb; color: #182a4e; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #2d4d90; }
.frame { width: min(1050px, calc(100% - 32px)); margin-inline: auto; }
header { background: #fbfdff; border-bottom: 1px solid #dbe4f3; }
.mast { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; }
.identity { font-weight: 730; text-decoration: none; display: inline-flex; gap: 9px; align-items: center; }
.identity img { width: 32px; height: 32px; }
h1 { margin: 42px 0 7px; font-size: clamp(2.1rem, 5vw, 3.65rem); letter-spacing: -.046em; line-height: 1.04; }
h2 { margin: 0 0 14px; font-size: 1.13rem; }
.intro { margin: 14px 0 23px; color: #4a5f7a; }
.controls, .previews section { min-width: 0; padding: 19px; background: #fff; border: 1px solid #d7e2f3; border-radius: 13px; }
.controls { margin-bottom: 14px; }
.previews { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.preview { display: grid; place-items: center; min-height: 180px; overflow: hidden; border-radius: 8px; color: #4c607d; text-align: center; background-color: #e5edf7; background-image: conic-gradient(#d8e4f4 25%,transparent 0 50%,#d8e4f4 0 75%,transparent 0); background-size: 20px 20px; }
.preview p { padding: 12px; }
.preview img { max-width: 100%; max-height: 310px; }
.actions, .settings { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.settings { margin-top: 13px; }
.settings label { font-size: .91rem; font-weight: 640; }
.dimension { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0 5px 5px; }
.dimension input { accent-color: #3a5a9e; }
button, select, .file, #download { min-height: 41px; border: 1px solid #cfddf2; border-radius: 8px; padding: 9px 12px; background: #eaf1fd; color: #27457e; font: inherit; font-weight: 650; }
button, .file, #download { cursor: pointer; text-decoration: none; }
#compress { background: #395ba2; color: #fff; border-color: #395ba2; }
#download { background: #dce9ff; color: #203969; }
button:disabled { opacity: .5; cursor: default; }
.file { position: relative; }
.file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.file:focus-within { outline: 2px solid #395ba2; outline-offset: 2px; }
.size { display: inline-flex; min-height: 39px; align-items: center; padding: 4px 8px; gap: 7px; border: 1px solid #cfddf2; border-radius: 8px; }
.size input { width: 5.2em; border: 0; font: inherit; color: inherit; }
.size span { color: #4c607d; font-size: .83rem; }
.hint, #status { font-size: .875rem; color: #4c607d; overflow-wrap: anywhere; }
#status:empty { display: none; }
progress { width: 100%; accent-color: #395ba2; }
footer { display: flex; gap: 18px; padding: 22px 0 30px; }
.legal { max-width: 710px; line-height: 1.58; }
.legal section { margin-bottom: 32px; }
@media (max-width: 650px) { .previews { grid-template-columns: 1fr; } h1 { margin-top: 29px; } .controls, .previews section { padding: 16px; } }
