:root {
  --bg: #f6f7f9; --card: #fff; --text: #1d1f23; --muted: #6b7280; --line: #e5e7eb;
  --green: #03c75a; --green-dark: #02a64b; --blue: #2563eb; --red: #dc2626; --amber: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 16px; }
header.top h1 { font-size: 20px; margin: 0; }
header.top a.back { color: var(--muted); text-decoration: none; }
h2 { font-size: 17px; margin: 0 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center; background: #eef0f3; color: var(--text); }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:active { background: var(--green-dark); }
.btn.blue { background: var(--blue); color: #fff; }
.btn.block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
label small { font-weight: 400; color: var(--muted); }
input[type=text], textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: #fff; color: var(--text); }
textarea { min-height: 110px; resize: vertical; }
textarea.md { min-height: 420px; font: 14px/1.6 ui-monospace, Consolas, monospace; }
.radios { display: flex; gap: 8px; }
.radios label { flex: 1; margin: 0; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  text-align: center; cursor: pointer; background: #fff; }
.radios input { display: none; }
.radios input:checked + span { color: var(--green-dark); font-weight: 700; }
.radios label:has(input:checked) { border-color: var(--green); background: #effbf3; }
.list a.item { display: block; color: inherit; text-decoration: none; }
.item .name { font-weight: 700; }
.meta { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eef0f3; color: var(--muted); }
.badge.ok { background: #effbf3; color: var(--green-dark); }
.badge.draft { background: #eff4ff; color: var(--blue); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .icon { width: 22px; flex: none; text-align: center; }
.checks .detail { color: var(--muted); font-size: 14px; }
.job { border-radius: 12px; padding: 14px; margin-bottom: 14px; font-weight: 600; }
.job.running { background: #fff8e6; color: var(--amber); }
.job.done { background: #effbf3; color: var(--green-dark); }
.job.error { background: #fef2f2; color: var(--red); white-space: pre-wrap; font-weight: 500; font-size: 14px; }
.preview { line-height: 1.8; color: #555; font-size: 15px; }
.preview p { margin: 0; min-height: 1.8em; }
.preview img { max-width: 100%; border-radius: 8px; display: block; margin: 10px auto; }
.preview blockquote { margin: 18px 0; text-align: center; font-style: italic; font-size: 17px; color: #333; }
.preview blockquote::before { content: "\201C"; display: block; font-size: 30px; color: #bbb; line-height: 1; }
.preview blockquote::after { content: "\201D"; display: block; font-size: 30px; color: #bbb; line-height: 1; }
details summary { cursor: pointer; font-weight: 700; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row > * { flex: 1; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
