:root {
  color-scheme: light dark;
  font: 16px system-ui, sans-serif;
  --background: #f7f6f2;
  --surface: #fffefc;
  --text: #252920;
  --muted: #5e6859;
  --line: #d0d8cb;
  --accent: #265c46;
  --button-text: white;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1b211c;
    --surface: #222a23;
    --text: #eff3ec;
    --muted: #b1c1b2;
    --line: #4a5c50;
    --accent: #a2e5be;
    --button-text: #172b20;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 24px; min-height: 100vh; display: grid; place-items: center; color: var(--text); background: var(--background); }
main { width: min(100%, 460px); padding: clamp(23px, 7vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: 17px; }
.app-name { margin: 0 0 19px; font-size: .875rem; font-weight: 650; color: var(--accent); }
h1 { margin: 0; font-size: clamp(1.55rem, 5vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
p { line-height: 1.5; }
#status { color: var(--muted); margin: 11px 0 0; }
.file { overflow-wrap: anywhere; padding: 12px; background: var(--background); border: 1px solid var(--line); border-radius: 8px; font-weight: 550; margin: 14px 0 0; }
progress { display: block; width: 100%; height: 14px; accent-color: var(--accent); margin-top: 16px; }
button, .button { display: inline-block; margin: 17px 0 0; border: 0; background: var(--accent); color: var(--button-text); border-radius: 7px; padding: 10px 16px; cursor: pointer; font: inherit; font-weight: 630; text-decoration: none; }
button:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button:disabled { opacity: .6; cursor: default; }
