:root {
  --bg: #ffffff; --fg: #111827; --muted: #6b7280; --line: #e5e7eb; --accent: #0f766e; --err: #b91c1c; --soft: #f8fafc;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0f14; --fg: #e5e7eb; --muted: #9ca3af; --line: #1f2937; --accent: #2dd4bf; --err: #f87171; --soft: #111827; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
.top { display: flex; justify-content: space-between; align-items: center; max-width: 760px; margin: 0 auto; padding: 16px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 20px 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 600; margin: 0; }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.card { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; text-decoration: none; }
.card:hover { background: var(--soft); }
.card p { margin: 2px 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pre { white-space: pre-wrap; margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; font-size: 12px; }
.form, .done { margin-top: 32px; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.field { margin-top: 14px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
input, select { width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.row { display: flex; gap: 8px; }
.row select { width: auto; max-width: 55%; }
.short { max-width: 80px; }
.hidden { display: none; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { width: auto; margin-top: 4px; }
.err { color: var(--err); font-size: 13px; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }
.btn { margin-top: 16px; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: 0.6; cursor: default; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .row { flex-wrap: wrap; } .row select { max-width: 100%; width: 100%; } }
