:root {
  --bg: #06060f;
  --bg2: #0d1117;
  --surface: #22313f;
  --accent: #4d9fff;
  --text: #fbf8f2;
  --muted: rgba(251, 248, 242, 0.6);
  --radius: 10px;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; }
main { display: grid; grid-template-columns: 380px 1fr; gap: 24px; padding: 24px 32px; align-items: start; }
@media (max-width: 800px) { main { grid-template-columns: 1fr; padding: 16px; } }
header { margin-bottom: 14px; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.wordmark .b { color: var(--accent); }
.byline, .tagline { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.byline a { color: var(--accent); text-decoration: none; }
.panel { background: var(--bg2); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 20px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 12px; min-width: 0; flex: 1; }
label.grow { flex: 2; }
label.check { flex-direction: row; align-items: center; color: var(--text); font-size: 14px; flex: 0 0 90px; }
.row { display: flex; gap: 10px; align-items: end; }
input, select, textarea {
  background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 7px 8px; font: inherit; font-size: 14px; width: 100%;
}
textarea { resize: vertical; }
input[type=color] { padding: 2px; height: 34px; }
input[type=checkbox] { width: auto; }
.presets { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.presets button { background: var(--surface); color: var(--text); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.presets button:hover { border-color: var(--accent); }
.btn { display: block; text-align: center; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; padding: 11px; border-radius: 8px; margin-top: 6px; }
.btn.disabled { opacity: 0.4; pointer-events: none; }
.muted { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.small { font-size: 12px; line-height: 1.5; }
.warn { color: #e9a23b; font-size: 13px; margin: 6px 0 0; }
.error { color: #ff6b6b; font-size: 13px; margin: 6px 0 0; }
.warn:empty, .error:empty, .muted:empty { display: none; }
.stage { min-width: 0; }
#preview { background: #f4efe6; border-radius: var(--radius); padding: 24px; min-height: 240px; display: flex; align-items: center; justify-content: center; }
/* Preview scales to fit; the downloaded file keeps its true mm size. */
#preview svg { width: 100%; height: auto; max-height: 70vh; }
/* Hairlines are invisible when scaled; draw them visibly in the preview only. */
#preview path:not([stroke="none"]) { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }

.seo { border-top: 1px solid rgba(255,255,255,0.06); padding: 40px 32px; }
.seo-inner { max-width: 760px; margin: 0 auto; }
.seo h2 { font-size: 20px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -0.3px; }
.seo h2:first-child { margin-top: 0; }
.seo h3 { font-size: 15px; font-weight: 600; margin: 18px 0 4px; color: var(--accent); }
.seo p, .seo ol { color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.seo ol { padding-left: 20px; }
.seo li { margin-bottom: 6px; }
.seo strong { color: var(--text); font-weight: 600; }
.seo a { color: var(--accent); }
.page-head { padding: 24px 32px 0; }
.page-head a { text-decoration: none; color: var(--text); }
footer { padding: 20px 32px 28px; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .o { color: var(--accent); }
footer .sep { margin: 0 8px; opacity: 0.35; }
footer .copyright { margin-top: 10px; color: var(--muted); opacity: 0.75; }
@media (max-width: 800px) { .seo { padding: 32px 16px; } }
