:root { --fg: #1d2330; --muted: #5b6475; --bg: #ffffff; --soft: #f4f6fa; --line: #dde2ea; --accent: #2563eb; --ok: #15803d; --err: #b91c1c; }
@media (prefers-color-scheme: dark) { :root { --fg: #e7eaf0; --muted: #a4adbd; --bg: #12151b; --soft: #1b2029; --line: #2c3442; --accent: #6ea0ff; --ok: #4ade80; --err: #f87171; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; color: var(--fg); background: var(--bg); }
a { color: var(--accent); }
.top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
.tools-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.langs { margin-left: auto; font-size: 14px; }
main { max-width: 860px; margin: 0 auto; padding: 16px; }
h1 { font-size: 28px; margin: 16px 0 4px; }
.lead { color: var(--muted); margin-top: 0; }
.tool { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--soft); }
.privacy-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 20px; text-align: center; }
.drop.over { border-color: var(--accent); }
.btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; font: inherit; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); margin-top: 12px; }
.btn:disabled { opacity: .6; cursor: wait; }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; }
.filelist li { display: flex; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.filelist .fname { flex: 1; overflow-wrap: anywhere; }
.filelist button { font-size: 13px; }
.options { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; font-size: 14px; }
.options input[type=number], .options input[type=text] { width: 7em; }
.status { min-height: 1.6em; font-size: 14px; }
.status.ok { color: var(--ok); } .status.err { color: var(--err); }
.output .dl-row { padding: 4px 0; overflow-wrap: anywhere; }
.article { margin-top: 28px; }
.article h2 { font-size: 21px; margin-top: 28px; }
.article h3 { font-size: 17px; margin-bottom: 4px; }
.related { margin-top: 28px; border-top: 1px solid var(--line); }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--fg); height: 100%; }
.card span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.ad-slot { margin: 32px 0; min-height: 90px; }
footer { max-width: 860px; margin: 40px auto 24px; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
code { background: var(--soft); padding: 1px 4px; border-radius: 4px; }
.crumbs { font-size: 14px; margin: 16px 0 0; }
