:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
  --ink: #19291f;
  --muted: #53635a;
  --line: #dce5dc;
  --green: #23593f;
  --mint: #e5f1e7;
  --paper: #f6f8f3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input { font: inherit; }
button, .pick, .download { cursor: pointer; }
:focus-visible { outline: 3px solid #407d59; outline-offset: 3px; }
.shell { width: min(1104px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 67px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 750; letter-spacing: -.035em; font-size: 1.15rem; }
.brand-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--green); position: relative; }
.brand-icon::before, .brand-icon::after { content: ""; position: absolute; height: 2px; background: #dff0d9; border-radius: 2px; left: 8px; width: 16px; top: 12px; }
.brand-icon::after { top: 18px; left: 11px; width: 10px; }
.top-link { color: var(--muted); font-size: .875rem; text-underline-offset: 4px; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 45px 0 23px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4.65rem); line-height: 1.03; letter-spacing: -.072em; font-weight: 770; }
.intro p { color: var(--muted); margin-top: 10px; }
.privacy, .tool-foot { display: flex; align-items: center; gap: 9px; }
.privacy { color: var(--green); font-size: .875rem; font-weight: 650; white-space: nowrap; margin-bottom: 4px; }
.lock { position: relative; width: 12px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; display: inline-block; flex: none; margin-top: 3px; }
.lock::before { content: ""; position: absolute; left: 2px; right: 2px; top: -6px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.workspace { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); border: 1px solid var(--line); border-radius: 21px; background: #fff; overflow: hidden; box-shadow: 0 12px 36px #1834240a; }
.setup, .result { min-width: 0; padding: 26px; }
.drop { position: relative; border: 1.5px dashed #9db4a3; border-radius: 14px; background: #f5faf5; padding: 20px 14px; display: grid; justify-items: center; gap: 8px; text-align: center; transition: background .15s, border-color .15s; }
.drop.is-dragging, .drop:focus-within { background: var(--mint); border-color: var(--green); }
.drop input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.drop:focus-within .pick { outline: 3px solid #407d59; outline-offset: 3px; }
.drop small, .levels small { color: var(--muted); font-size: .875rem; }
.drop.has-file { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; text-align: left; }
.drop.has-file .paper, .drop.has-file small { display: none; }
.drop.has-file strong { color: var(--muted); font-size: .875rem; }
.drop.has-file .pick { padding: 8px 11px; font-size: .875rem; white-space: nowrap; }
.paper { display: grid; place-items: center; width: 43px; height: 43px; background: var(--mint); border-radius: 11px; color: var(--green); }
.paper i { display: block; width: 16px; height: 21px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.paper i::after { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 2px; background: currentColor; box-shadow: 0 5px currentColor; }
.pick, .compress, .download { min-height: 46px; border-radius: 9px; padding: 10px 17px; display: flex; align-items: center; justify-content: center; font-weight: 720; text-decoration: none; }
.pick { background: #fff; border: 1px solid #a9bfaf; color: var(--green); }
.pick:hover { background: var(--mint); }
.file-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; background: #f6f8f5; border: 1px solid var(--line); border-radius: 10px; }
.file-icon { border-radius: 6px; background: var(--mint); color: var(--green); font-size: .75rem; font-weight: 800; padding: 6px; flex: none; }
.file-details { min-width: 0; flex: 1; display: grid; font-size: .875rem; overflow-wrap: anywhere; }
.file-details span { color: var(--muted); font-variant-numeric: tabular-nums; }
.clear { border: 0; background: transparent; border-radius: 6px; font-size: 1.35rem; min-width: 44px; min-height: 44px; color: var(--muted); }
.clear:hover { background: var(--mint); }
fieldset { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
legend { padding: 0; margin-bottom: 7px; font-weight: 700; font-size: .9375rem; }
.levels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.levels label { position: relative; cursor: pointer; }
.levels input { position: absolute; opacity: 0; }
.levels label span { display: grid; height: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; font-size: .875rem; line-height: 1.35; }
.levels small { margin-top: 3px; }
.levels input:checked + span { border-color: #609571; background: var(--mint); }
.levels input:focus-visible + span { outline: 3px solid #407d59; outline-offset: 2px; }
.compress, .download { width: 100%; border: 0; background: var(--green); color: #fff; transition: background .15s, transform .15s; }
.compress:not(:disabled):hover, .download:hover { background: #18462f; }
.compress:not(:disabled):active, .download:active { transform: translateY(1px); }
.compress:disabled { background: #e3e9e3; color: #56635a; cursor: default; }
.message { color: var(--muted); margin-top: 8px; font-size: .875rem; }
.message.error { color: #8b3024; }
.result { background: #f1f6ef; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.result h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.empty { flex: 1; display: grid; place-content: center; justify-items: center; min-height: 235px; text-align: center; }
.empty p { color: var(--muted); font-size: .9375rem; max-width: 250px; margin-top: 4px; }
.result-icon { width: 51px; height: 46px; position: relative; border-radius: 11px; background: var(--mint); margin-bottom: 10px; }
.result-icon::before, .result-icon::after { content: ""; position: absolute; left: 13px; top: 16px; height: 4px; width: 25px; border-radius: 3px; background: #709779; }
.result-icon::after { top: 25px; width: 14px; background: var(--green); }
.output { margin-top: 14px; animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .5; transform: translateY(4px); } }
.saved { color: var(--green); font-size: clamp(1.8rem,3.5vw,3rem); font-weight: 785; letter-spacing: -.06em; line-height: 1.18; margin-bottom: 14px; overflow-wrap: anywhere; }
.size-row { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.size-row strong { color: var(--ink); }
.meter { height: 7px; display: flex; background: #e0e9df; border-radius: 5px; overflow: hidden; margin: 5px 0 9px; }
.meter span { width: 100%; background: #9fb3a1; border-radius: 5px; }
.result-meter span { width: 100%; background: var(--green); }
.result-note, .download-name { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.result-note { margin: 8px 0 12px; }
.download-name { margin-top: 6px; text-align: center; }
.tool-foot { grid-column: 1 / -1; padding: 12px 26px; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
.learn { display: grid; grid-template-columns: .75fr 1.5fr; gap: 35px; margin: 52px 0; }
.learn h2 { letter-spacing: -.042em; font-size: 1.65rem; }
.learn p { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.answers details { border-top: 1px solid var(--line); padding: 12px 0; }
.answers details:last-child { border-bottom: 1px solid var(--line); }
.answers summary { cursor: pointer; font-weight: 700; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { min-height: 56px; }
  .intro { display: block; margin-top: 24px; margin-bottom: 15px; }
  .intro p { margin-top: 5px; }
  .privacy { display: none; }
  .workspace, .learn { grid-template-columns: minmax(0,1fr); }
  .setup, .result { padding: 15px; }
  .result { border-left: 0; border-top: 1px solid var(--line); }
  .empty { min-height: 145px; }
  .tool-foot { padding-inline: 15px; }
  .drop { padding-block: 14px; }
  .levels label span { padding-inline: 7px; }
  .learn { gap: 12px; margin-block: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.site-footer { border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; padding-block: 12px; }
.footer-links a { padding-block: 8px; color: var(--muted); text-underline-offset: 4px; }
.info-page { min-height: 55vh; max-width: 68ch; padding-block: 45px; }
.info-page h1 { font-size: clamp(2.4rem, 6vw, 3.7rem); }
.info-page h2 { margin-top: 24px; font-size: 1.25rem; }
.info-page p { margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.info-page a { color: var(--green); text-underline-offset: 3px; }
