:root { --bg: #fafaf8; --fg: #1c1c1a; --muted: #6b6b66; --line: #e2e2dc; --accent: #0d6e5c; --card: #fff; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #151514; --fg: #ececea; --muted: #9a9a94; --line: #2e2e2b; --accent: #4fc2a8; --card: #1d1d1b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; max-width: 860px; margin: 0 auto; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.brand span, .tag { color: var(--muted); font-weight: 400; }
.tag { font-size: .9rem; }
main { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0; }
h2 { font-size: 1.2rem; margin-top: 2.5rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin-top: 0; }
.tools { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.tools li { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.tools a { min-width: 11rem; font-weight: 600; }
.tools span { color: var(--muted); }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; margin: 1.5rem 0; }
.drop { display: block; border: 2px dashed var(--line); border-radius: 8px; padding: 2.5rem 1rem; text-align: center; cursor: pointer; }
.drop.over, .drop:hover { border-color: var(--accent); }
.drop input { position: absolute; opacity: 0; width: 1px; }
.drop:focus-within { outline: 2px solid var(--accent); }
#picked { padding-left: 1.2rem; }
.opts { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.opts label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--muted); }
.opts input, .opts select { font: inherit; padding: .4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
#ranges { min-width: 20rem; }
.btn { font: inherit; padding: .6rem 1.2rem; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.out { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.file::before { content: "\2193  "; }
details { border-bottom: 1px solid var(--line); padding: .6rem 0; }
summary { cursor: pointer; font-weight: 600; }
.related { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; list-style: none; }
footer { max-width: 860px; margin: 0 auto; padding: 1.5rem 1.25rem; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .tools li { flex-direction: column; gap: 0; } #ranges { min-width: 0; } }
