:root { --ink: #1f2937; --mut: #6b7280; --acc: #059669; --line: #e5e7eb; }
* { box-sizing: border-box; margin: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: #fafafa; line-height: 1.6; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.top { border-bottom: 1px solid var(--line); background: #fff; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace; font-weight: 600; font-size: 17px; letter-spacing: -0.2px; color: var(--ink); text-decoration: none; }
.logo-mark { display: block; color: var(--ink); flex: none; }
.logo-mark rect.mark-accent { fill: var(--acc); }
.brand .b-qr { color: var(--acc); }
.brand .b-sep { color: var(--mut); font-weight: 400; margin: 0 1px; }
.tag { color: var(--mut); font-size: 13px; }
h1 { font-size: 30px; letter-spacing: -0.5px; margin: 36px 0 8px; }
h1 em { color: var(--acc); font-style: normal; }
.lede { color: var(--mut); font-size: 17px; margin-bottom: 24px; max-width: 640px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tool { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; padding: 24px; }
@media (max-width: 720px) { .tool { grid-template-columns: 1fr; } }
h2 { font-size: 18px; margin: 18px 0 10px; }
h2:first-child { margin-top: 0; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--mut); margin-bottom: 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > label { flex: 1; min-width: 120px; margin-bottom: 0; }
.row > label.chk { flex: 0 1 auto; min-width: 120px; height: 40px; margin-top: 4px; padding-bottom: 0; align-items: center; }
input[type=text], select { display: block; width: 100%; height: 40px; margin-top: 4px; padding: 9px 11px; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
select { padding-top: 0; padding-bottom: 0; }
input[type=color] { display: block; width: 100%; height: 40px; margin-top: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.file-drop { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; padding: 12px; font-size: 13.5px; color: var(--mut); border: 1px dashed var(--line); border-radius: 8px; background: #fafafa; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.file-drop:hover, .file-drop.drop-hover { border-color: var(--acc); color: var(--ink); }
.file-drop.drop-hover { background: #ecfdf5; }
.file-drop.has-logo { border-style: solid; }
.logo-preview { height: 40px; max-width: 120px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.logo-remove { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border: 0; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; }
.logo-remove:hover { background: #d1d5db; }
.chk { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.chk input { width: auto; }
.file input { margin-top: 4px; font-size: 13px; }
.btn { width: 100%; margin-top: 6px; padding: 12px; font-size: 16px; font-weight: 700; color: #fff; background: var(--acc); border: 0; border-radius: 9px; cursor: pointer; }
.btn:disabled { background: #9ca3af; cursor: not-allowed; }
.btn:not(:disabled):hover { background: #047857; }
.hint { font-size: 12.5px; color: var(--mut); margin-top: 8px; }
.preview { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#canvas { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
#canvas img, #canvas canvas { max-width: 100%; height: auto; }
.info { margin: 40px 0; }
.info p, .info li { color: #374151; margin-bottom: 10px; }
.info ol { padding-left: 20px; }
dt { font-weight: 700; margin-top: 14px; }
dd { color: #374151; margin: 2px 0 0; }
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 18px 20px 30px; color: var(--mut); font-size: 13px; }
.foot a { color: var(--acc); }
