:root{color-scheme:light;--ink:#292044;--muted:#827995;--purple:#7549e8;--line:#e9e3f3;--green:#188255}
*{box-sizing:border-box}
html{min-width:320px;min-height:100%;background:#f7f4ff}
body{position:relative;isolation:isolate;min-height:100vh;margin:0;overflow-x:hidden;background:radial-gradient(ellipse at 12% 8%,#ffd6e8 0,transparent 27%),radial-gradient(ellipse at 94% 20%,#ceefff 0,transparent 31%),radial-gradient(ellipse at 75% 93%,#e8d8ff 0,transparent 37%),linear-gradient(135deg,#f9f6ff,#f2f9ff 58%,#fff8f0);color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #9369f3;outline-offset:3px}
.color-cloud{position:fixed;z-index:-1;width:360px;height:360px;border-radius:50%;filter:blur(100px);opacity:.28;pointer-events:none}.cloud-pink{top:18%;left:-260px;background:#fa73b2}.cloud-blue{top:55%;right:-260px;background:#6faeff}
.topbar{width:min(1080px,calc(100% - 48px));height:76px;display:flex;align-items:center;justify-content:space-between;margin:auto;border-bottom:1px solid #715b9b18}
.brand{display:flex;align-items:center;gap:9px;color:#281e48;text-decoration:none;font-size:17px;font-weight:800;letter-spacing:-.5px}.brand-mark{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,#7046e6,#bd53d7);color:#fff;box-shadow:0 5px 15px #8554db48}.brand-dot{color:#9a54e9}.privacy-pill{display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid #a7dfc3;border-radius:999px;background:#ecfff4;color:#24794f;font-size:10px;font-weight:700}.privacy-pill span{width:7px;height:7px;border-radius:50%;background:#31bb78;box-shadow:0 0 0 3px #31bb7820}
.page-shell{width:min(1000px,calc(100% - 48px));margin:auto;padding:57px 0 25px}.intro{margin:0 auto 32px;text-align:center}.eyebrow{display:flex;align-items:center;justify-content:center;gap:8px;color:#785ab3;font-size:10px;font-weight:800;letter-spacing:1.9px}.sparkle{color:#f4a52d;font-size:14px}.intro h1{margin:14px 0 9px;color:#291f4b;font-size:clamp(38px,6vw,56px);font-weight:800;line-height:1.1;letter-spacing:-2.8px}.intro h1 span{background:linear-gradient(95deg,#7049e8 5%,#a24be2 48%,#ec609c 95%);-webkit-background-clip:text;background-clip:text;color:transparent}.intro p{max-width:530px;margin:0 auto;color:#77708d;font-size:14px;line-height:1.75}
.generator{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:17px;align-items:stretch}.editor-panel,.preview-panel{min-width:0;border:1px solid #8666bb20;border-radius:23px;background:rgba(255,255,255,.91);box-shadow:0 20px 60px #4f399316,0 3px 10px #4f39930b;backdrop-filter:blur(14px)}.editor-panel{padding:27px}.field-label{display:block;margin-bottom:9px;color:#352951;font-size:12px;font-weight:750}textarea{width:100%;min-height:101px;resize:vertical;padding:14px 15px;border:1px solid #e4dcf2;border-radius:13px;background:linear-gradient(145deg,#fff,#fcfaff);color:#2b2347;font-size:13px;line-height:1.6;transition:border .2s,box-shadow .2s}textarea::placeholder{color:#a89db9}textarea:focus{border-color:#9675ef;outline:0;box-shadow:0 0 0 4px #9675ef1b}.field-hint{margin:8px 0 0;color:#9289a4;font-size:10px}.customize-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 12px;color:#41365e;font-size:11px;font-weight:750}.customize-heading button{padding:4px 0;border:0;background:none;color:#7955c7;cursor:pointer;font-size:10px;font-weight:700;text-decoration:underline;text-underline-offset:3px}.customize-heading button:hover{color:#4c2db4}
.color-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-control{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:43px;padding:0 10px;border:1px solid #e9e3f2;border-radius:11px;background:#fcfbff;color:#746a8b;font-size:10px;font-weight:600}.color-value{display:flex;align-items:center;gap:6px;color:#514568;font-size:9px;font-weight:750;letter-spacing:.2px}.color-value input{width:24px;height:24px;padding:2px;border:1px solid #e1d9ef;border-radius:7px;background:#fff;cursor:pointer}.color-value input::-webkit-color-swatch-wrapper{padding:0}.color-value input::-webkit-color-swatch{border:0;border-radius:4px}.swatches{display:flex;align-items:center;gap:8px;margin:12px 0 22px}.swatch{width:26px;height:26px;display:grid;place-items:center;padding:3px;border:1px solid transparent;border-radius:50%;background:transparent;cursor:pointer}.swatch>span{position:relative;width:18px;height:18px;overflow:hidden;border:1px solid #4c3d5725;border-radius:50%;background:var(--swatch-bg)}.swatch>span:before{position:absolute;inset:0 50% 0 0;background:var(--swatch-fg);content:''}.swatch.is-selected{border-color:#8159e6;box-shadow:0 0 0 2px #8159e61c}.palette-ink>span{--swatch-fg:#292044;--swatch-bg:#fff}.palette-berry>span{--swatch-fg:#7a174f;--swatch-bg:#fff3fa}.palette-ocean>span{--swatch-fg:#124d78;--swatch-bg:#effaff}.palette-leaf>span{--swatch-fg:#176342;--swatch-bg:#f0fff5}.swatch-note{margin-left:3px;color:#9b92ad;font-size:9px}
.generate-button{width:100%;min-height:49px;display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:12px;background:linear-gradient(100deg,#7449e7 0%,#a24fe0 53%,#e75e9b 100%);color:#fff;cursor:pointer;font-size:12px;font-weight:750;box-shadow:0 8px 19px #914ee53b;transition:transform .18s,filter .18s,box-shadow .18s}.generate-button:hover{filter:saturate(1.15) brightness(1.05);transform:translateY(-1px);box-shadow:0 11px 23px #914ee544}.generate-button:disabled{cursor:wait;opacity:.7;transform:none}.generate-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.status-message{min-height:14px;margin:10px 0 0;text-align:center;color:#90869f;font-size:10px}.status-message[data-kind=success]{color:#198457}.status-message[data-kind=error]{color:#c43f65}
.preview-panel{display:flex;flex-direction:column;padding:25px}.preview-heading{display:flex;align-items:center;justify-content:space-between}.preview-kicker{display:block;margin-bottom:5px;color:#9476d4;font-size:9px;font-weight:800;letter-spacing:1.5px}.preview-heading h2{margin:0;color:#32284f;font-size:16px;font-weight:750;letter-spacing:-.3px}.ready-dot{width:9px;height:9px;border-radius:50%;background:#ffad55;box-shadow:0 0 0 5px #ffad5526}.preview-stage{position:relative;min-height:278px;flex:1;display:grid;place-items:center;overflow:hidden;margin:17px 0 12px;border:1px solid #e5d9f4;border-radius:17px;background:radial-gradient(circle at 15% 18%,#ffe4ee 0 6%,transparent 34%),radial-gradient(circle at 87% 18%,#def6ff 0 9%,transparent 34%),radial-gradient(circle at 76% 88%,#f0e5ff 0 11%,transparent 36%),linear-gradient(135deg,#fffafd,#f9fcff 58%,#fffaf1)}.decor{position:absolute;width:145px;height:145px;border:1px solid #9d79de22;border-radius:50%;pointer-events:none}.decor-one{top:-93px;right:-48px}.decor-two{bottom:-112px;left:-56px;width:188px;height:188px;border-color:#f282ad25}.empty-state{position:relative;z-index:1;display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center}.empty-state[hidden]{display:none}.qr-icon{width:52px;height:52px;display:grid;place-items:center;margin-bottom:4px;border:1px solid #dfd0ff;border-radius:17px;background:linear-gradient(145deg,#f1e8ff,#e1f5ff);color:#8052e9;box-shadow:0 6px 18px #8855e51b}.qr-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.empty-state strong{color:#40345f;font-size:12px;line-height:1.55}.empty-state>span{color:#9289a1;font-size:10px}.preview-stage canvas{position:relative;z-index:2;width:min(76%,240px);height:auto;padding:10px;border:1px solid #eee;border-radius:14px;background:#fff;box-shadow:0 12px 32px #4d3c672b;image-rendering:pixelated}.preview-stage canvas[hidden]{display:none}
.preview-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#857b99;font-size:9px}.preview-foot>span:first-child{display:flex;align-items:center;gap:6px}.preview-foot svg{width:14px;height:14px;fill:none;stroke:#23a876;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.actions{display:grid;grid-template-columns:1.2fr .8fr;gap:9px;margin-top:16px}.actions a,.actions button{min-height:41px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e2d8f2;border-radius:10px;background:#f7f3ff;color:#6545ae;cursor:pointer;text-decoration:none;font-size:10px;font-weight:750;transition:background .2s,border .2s}.actions a{border-color:#7449e7;background:linear-gradient(105deg,#7449e7,#a151e3);color:#fff;box-shadow:0 5px 13px #8150dc28}.actions a:hover{filter:brightness(1.06)}.actions button:hover:not(:disabled){border-color:#c4b2ed;background:#eee8ff}.actions button:disabled{cursor:not-allowed;opacity:.47}.actions a[hidden]{display:none}.actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tip{display:flex;align-items:center;gap:8px;margin-top:14px;padding:10px 11px;border:1px solid #f2e2bd;border-radius:10px;background:linear-gradient(100deg,#fff9e6,#fff3eb)}.tip>span{color:#f0a02f}.tip p{margin:0;color:#887755;font-size:9px}.tip strong{margin-right:3px;color:#6d552b}.page-footer{display:flex;justify-content:space-between;gap:12px;padding:21px 3px 0;color:#968ca8;font-size:9px}.page-footer b{padding:0 4px;color:#e777ad}
@media(max-width:760px){.page-shell{padding-top:43px}.generator{grid-template-columns:1fr;max-width:560px;margin:auto}.preview-stage{min-height:300px}.preview-panel{min-height:0}}
@media(max-width:520px){.topbar,.page-shell{width:calc(100% - 30px)}.topbar{height:65px}.page-shell{padding-top:35px}.intro{margin-bottom:24px}.intro h1{letter-spacing:-2px}.intro p{font-size:12px}.editor-panel,.preview-panel{padding:19px;border-radius:18px}.preview-stage{min-height:265px}.color-controls{gap:7px}.color-control{padding:0 7px;font-size:9px}.color-value{gap:4px;font-size:8px}.page-footer{flex-direction:column;align-items:center;padding-top:18px;text-align:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Keep the generated symbol inside the preview on narrow and wide layouts. */
.preview-stage {
  min-width: 0;
  padding: 14px;
}
.preview-stage > #qrCanvas:not([hidden]) {
  display: block;
  width: min(100%, 240px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: auto;
  justify-self: center;
  align-self: center;
  flex: none;
  object-fit: contain;
}
.status-message[data-kind=warning] {
  color: #ffd27c;
}

