:root {
  color-scheme: light dark;
  --accent: #2456e6;
  --line: #8884;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, sans-serif;
}
header, main, footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 16px 20px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.brand { font-weight: 700; text-decoration: none; color: inherit; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.15; margin: 12px 0; text-wrap: balance; }
h2 { margin-top: 2.2rem; }
h3 { margin-bottom: 0; font-size: 1rem; }
.lede { font-size: 1.1rem; }
.drop {
  display: block;
  margin: 20px 0 12px;
  padding: 36px 20px;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}
.drop.over { background: #2456e61a; }
.drop input { display: block; margin: 14px auto 0; max-width: 100%; }
.quality { display: flex; align-items: center; gap: 12px; }
.quality input { flex: 1; }
#results { list-style: none; padding: 0; }
#results li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
#results .error { color: #c53030; }
.button {
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.links { padding-left: 1.2rem; }
.links.big { font-size: 1.1rem; line-height: 2; }
.ad { margin: 28px 0; min-height: 100px; }
.ad small { display: block; opacity: .6; font-size: .75rem; }
footer { margin-top: 40px; opacity: .7; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
