:root {
  --ink: #102019;
  --muted: #68776f;
  --line: #d9e1db;
  --paper: #f5f7f3;
  --lime: #c8ff3d;
  --white: #fff;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

header {
  height: 66px; padding: 0 max(22px, calc((100vw - 1180px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245,247,243,.92); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand-icon { width: 32px; height: 32px; padding: 6px; border-radius: 8px; display: block; position: relative; background: var(--ink); }
.brand-icon i { width: 7px; height: 7px; position: absolute; border: 2px solid var(--lime); border-radius: 2px; }
.brand-icon i:nth-child(1) { top: 6px; left: 6px; }
.brand-icon i:nth-child(2) { top: 6px; right: 6px; }
.brand-icon i:nth-child(3) { bottom: 6px; left: 6px; }
.brand-icon b { width: 3px; height: 3px; position: absolute; background: var(--lime); border-radius: 1px; }
.brand-icon b:nth-of-type(1) { right: 7px; bottom: 7px; }
.brand-icon b:nth-of-type(2) { right: 12px; bottom: 12px; }
.privacy { color: #496052; background: #e8eee8; border-radius: 99px; padding: 8px 12px; font-size: 11px; }
.privacy::first-letter { color: #54a057; }

main { width: min(1180px, calc(100% - 44px)); margin: 58px auto 80px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.eyebrow { color: var(--muted); font: 700 10px ui-monospace, monospace; letter-spacing: .13em; }
h1 { max-width: 740px; margin: 10px 0 0; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.06em; }
.intro > p { margin: 0 0 5px; color: var(--muted); font-size: 13px; }

.tabs { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; }
.tabs button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: #526159; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tabs button.active { color: var(--white); background: var(--ink); border-color: var(--ink); }

.workspace {
  min-height: 590px; display: grid; grid-template-columns: 1.28fr .72fr;
  overflow: hidden; background: var(--white); border: 1px solid #cbd5ce;
  border-radius: 16px; box-shadow: 0 22px 60px rgba(28,47,37,.09);
}
.editor { padding: 36px 40px; }
.tool-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.tool-heading > div { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eeffc5; font-size: 20px; }
.tool-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.tool-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.form { padding: 28px 0; display: grid; gap: 17px; }
.two { grid-template-columns: 1fr 1fr; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .custom-grid label > span { color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .09em; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #cbd5ce;
  border-radius: 8px; outline: 0; background: #fbfcfa; color: var(--ink);
}
.field textarea { min-height: 132px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #687c6f; box-shadow: 0 0 0 3px #edf2ed; background: white; }
.check { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 44px; color: #536159; font-size: 12px; }
.check input { width: 17px; height: 17px; accent-color: var(--ink); }

.customize { padding-top: 20px; border-top: 1px solid var(--line); }
.customize h3 { margin: 0 0 15px; font-size: 12px; }
.custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.custom-grid label { min-height: 62px; padding: 9px 11px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; }
.custom-grid label div { display: flex; align-items: center; justify-content: space-between; }
.custom-grid input[type="color"] { width: 27px; height: 27px; padding: 0; border: 0; background: none; }
.custom-grid code { color: var(--muted); font-size: 10px; }
.logo-control { grid-column: 1 / -1; cursor: pointer; }
.logo-control input { display: none; }
.logo-control b { font-size: 11px; font-weight: 700; }

.preview { padding: 36px; display: flex; align-items: center; justify-content: center; background: #edf1ec; border-left: 1px solid var(--line); }
.preview-inner { width: 100%; text-align: center; }
.preview-label { display: flex; justify-content: space-between; margin-bottom: 18px; color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .11em; }
.preview-label i { padding: 4px 7px; border-radius: 99px; background: #dcead9; color: #32723c; font-style: normal; letter-spacing: 0; }
.qr-card { width: min(100%, 320px); margin: auto; padding: 16px; border-radius: 13px; background: white; box-shadow: 0 8px 24px rgba(28,47,37,.08); }
.qr-card canvas { width: 100% !important; height: auto !important; display: block; }
.preview-note { color: var(--muted); font-size: 10px; margin: 14px 0; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.downloads button, .copy, .primary {
  min-height: 40px; border: 1px solid #c6d0c9; border-radius: 7px; background: white;
  color: var(--ink); font-size: 10px; font-weight: 750;
}
.copy, .primary { width: 100%; margin-top: 8px; background: var(--ink); border-color: var(--ink); color: white; }
.primary { min-height: 46px; margin: 0; font-size: 12px; }

.drop {
  min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; border: 1px dashed #97a69d; border-radius: 12px; background: #f8faf7; cursor: pointer;
}
.drop:hover { border-color: var(--ink); background: #f1ffd0; }
.drop input { display: none; }
.drop b:first-of-type { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid var(--line); font-size: 21px; }
.drop strong { margin-top: 5px; font-size: 13px; }
.drop small { color: var(--muted); font-size: 10px; }
.result, .error { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.result header { height: auto; padding: 0; border: 0; background: none; }
.result header span { padding: 5px 7px; border-radius: 99px; background: #e5f3e2; color: #34713c; font: 700 9px ui-monospace, monospace; }
.result header button { border: 0; background: none; font-size: 10px; }
.result pre { max-height: 150px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 12px 0; padding: 11px; border-radius: 6px; background: #f5f7f4; font: 11px/1.5 ui-monospace, monospace; text-align: left; }
.result a { color: var(--ink); font-size: 10px; font-weight: 700; }
.error { color: #8d3b30; background: #fff1ef; font-size: 11px; }

.batch-info { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.batch-info strong { color: var(--ink); font-size: 16px; }
.batch-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.batch-grid div { padding: 10px; overflow: hidden; background: white; border-radius: 9px; text-align: center; }
.batch-grid canvas { width: 86px !important; height: 86px !important; }
.batch-grid span { display: block; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

@media (max-width: 760px) {
  header { padding: 0 18px; }
  .privacy { font-size: 0; }
  .privacy::after { content: "● Local only"; font-size: 10px; }
  main { width: min(100% - 24px, 620px); margin-top: 38px; }
  .intro { display: block; }
  .intro > p { margin-top: 15px; }
  .workspace { grid-template-columns: 1fr; }
  .editor { padding: 26px 20px; }
  .preview { min-height: 440px; padding: 26px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .two { grid-template-columns: 1fr; }
}
