:root {
  font-family: system-ui, sans-serif;
  color: #172d48;
  background: #f3f6fb;
  line-height: 1.5;
  --accent: #154c99;
  --line: #ced9e8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  min-height: 60px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 5vw, 4rem);
}
a { color: var(--accent); }
.brand { font-weight: 750; text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 8vw, 5rem) 1rem; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.055em; line-height: 1.08; margin: 0; }
.intro { margin: .8rem 0 1.8rem; }
form { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 4vw, 1.6rem); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
label { display: block; font-weight: 700; margin-bottom: .35rem; }
button, input, .primary { font: inherit; }
button, .primary, input::file-selector-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6fb;
  cursor: pointer;
  min-height: 44px;
  padding: .55rem .8rem;
}
input[type="file"] { max-width: 100%; min-width: 0; }
input::file-selector-button { margin-right: .6rem; }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.option { display: flex; align-items: baseline; gap: .6rem; font-weight: 500; margin-bottom: .6rem; }
#convert, .primary { background: var(--accent); color: white; border-color: var(--accent); text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
.help { margin: .3rem 0 1.15rem; color: #405b72; font-size: .91rem; overflow-wrap: anywhere; }
#status { margin: .8rem 0 0; }
#status:empty { margin: 0; }
#status[data-error="true"] { color: #8e2422; }
#download { display: inline-block; margin-top: .45rem; }
