:root {
  color-scheme: dark;
  color: #eef5ef;
  background: #101815;
  font-family: system-ui, sans-serif;
  --muted: #abc0b3;
  --line: #385145;
  --accent: #b6f5c6;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
.site-header {
  border-bottom: 1px solid #283c32;
  padding: 18px clamp(20px, 5vw, 70px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 750; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #153825;
  background: var(--accent);
  border-radius: 9px;
}
svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main { width: min(740px, calc(100% - 40px)); margin: clamp(60px, 14vh, 150px) auto 60px; }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; letter-spacing: -.065em; }
.intro { margin: 17px 0 32px; color: var(--muted); font-size: 1.075rem; line-height: 1.6; }
form {
  padding: clamp(16px, 4vw, 27px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #17231d;
}
label { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 650; }
.input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; }
input, button { min-height: 48px; font: inherit; border-radius: 8px; }
input { width: 100%; color: inherit; padding: 0 13px; border: 1px solid #486155; background: #101815; }
input::placeholder { color: #94aa9d; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #4b6859;
  color: inherit;
  background: #24382e;
  cursor: pointer;
  font-weight: 650;
}
button:hover:enabled { background: #30493b; }
button[type="submit"] { background: var(--accent); border-color: transparent; color: #13281b; }
button[type="submit"]:hover:enabled { background: #d2fadb; }
:focus-visible { outline: 2px solid #dcffe2; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: progress; }
.activity { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 17px; }
#status { color: var(--muted); font-size: .92rem; line-height: 1.5; }
#status[data-error] { color: #ffbbb1; }
#download { color: var(--accent); font-size: .92rem; font-weight: 650; }
progress { width: 72px; height: 6px; accent-color: var(--accent); }
.formats { display: flex; gap: 24px; padding: 0 2px; margin: 21px 0 0; color: var(--muted); font-size: .83rem; }
.formats div { display: flex; align-items: center; gap: 7px; }
.formats dd { margin: 0; color: #d4e9db; font-family: ui-monospace, monospace; }
@media (max-width: 530px) {
  .input-row { grid-template-columns: 1fr 1fr; }
  input { grid-column: 1 / -1; }
}
