:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5b6472;
  --line: #e3e6eb;
  --card: #fbfcfd;
  --accent: #1f6feb;
  --accent-fg: #ffffff;
  --ok: #16794a;
  --bad: #b42318;
  --radius: 10px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e7eaf0;
    --muted: #98a2b3;
    --line: #262b35;
    --card: #141821;
    --accent: #4c8dff;
    --accent-fg: #0b0d11;
    --ok: #54d68d;
    --bad: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 650; letter-spacing: -0.01em; color: var(--fg); }
nav.tools { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; letter-spacing: -0.02em; margin: 34px 0 8px; }
.lede { color: var(--muted); font-size: 1.05rem; margin: 0 0 22px; max-width: 62ch; }
.privacy {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 10px 14px; margin: 0 0 18px;
  font-size: 14px; color: var(--muted);
}
.privacy strong { color: var(--fg); }
.tool {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 18px; margin-bottom: 30px;
}
.drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 30px 18px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: border-color 120ms ease, background 120ms ease;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--bg); }
.drop strong { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.link {
  background: none; border: 0; padding: 0; color: var(--accent);
  font: inherit; cursor: pointer; text-decoration: underline;
}
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 16px 0; }
.opt { display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.opt span { font-weight: 600; }
.opt select, .opt input[type="number"] {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--bg); color: var(--fg);
}
.opt input[type="range"] { width: 100%; }
.opt output { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.hint { font-style: normal; font-size: 12.5px; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
button.primary, button.ghost {
  font: inherit; font-weight: 600; border-radius: 8px; padding: 10px 18px; cursor: pointer;
  border: 1px solid transparent;
}
button.primary { background: var(--accent); color: var(--accent-fg); }
button.primary:disabled { opacity: 0.45; cursor: not-allowed; }
button.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.queue { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  background: var(--bg); font-size: 14px;
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.badge.work { color: var(--accent); border-color: var(--accent); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.bad { color: var(--bad); border-color: var(--bad); }
.dl { font-weight: 600; white-space: nowrap; }
.moves { display: inline-flex; gap: 4px; }
section.prose { margin: 34px 0; }
section.prose h2 { font-size: 1.15rem; margin: 28px 0 10px; letter-spacing: -0.01em; }
section.prose p, section.prose li { max-width: 68ch; }
ol.steps { padding-left: 1.2em; }
ol.steps li { margin-bottom: 6px; }
table.limits { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 10px 0 0; }
table.limits th, table.limits td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.limits th { width: 32%; color: var(--muted); font-weight: 600; }
dl.faq dt { font-weight: 650; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); max-width: 68ch; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.related li { list-style: none; }
.related li a {
  display: block; border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  color: var(--fg);
}
.related li a span { display: block; color: var(--muted); font-size: 13.5px; }
footer.site {
  border-top: 1px solid var(--line); margin-top: 44px; padding: 22px 0 40px;
  font-size: 13.5px; color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 14px; flex-wrap: wrap; }
.notice { font-size: 13px; color: var(--muted); margin-top: 10px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 8px 12px; border: 1px solid var(--accent); z-index: 10; }
