:root{
  /* Light mode default */
  --bg:#f6f8ff;
  --card:#ffffff;
  --text:#0b1220;
  --muted:#4b5a75;
  --border:rgba(11,18,32,.12);
  --btn:#2b66ff;
  --btn2:#eef2ff;
  --ghost:transparent;
  --shadow: 0 12px 35px rgba(11,18,32,.12);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, rgba(43,102,255,.14), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(34,197,94,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}
.top{
  padding:16px 14px 8px;
  max-width:980px;
  margin:0 auto;
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, rgba(43,102,255,.95), rgba(34,197,94,.75));
  box-shadow: var(--shadow);
  font-size:22px;
}
.brandName{font-weight:800;letter-spacing:.2px}
.brandTag{color:var(--muted);font-size:13px;margin-top:2px}

.wrap{max-width:980px;margin:0 auto;padding:12px 14px 26px}
.card{
  background: rgba(255,255,255,.92);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding:18px;
  backdrop-filter: blur(10px);
}

h1{margin:0 0 6px;font-size:22px}
.sub{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.35}

.banner{
  margin: 0 0 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(43,102,255,.25);
  background: linear-gradient(135deg, rgba(43,102,255,.10), rgba(34,197,94,.06));
}
.bannerTitle{font-weight:800;font-size:13px;margin:0 0 4px}
.bannerText{color:var(--muted);font-size:13px;line-height:1.35}

.fieldLabel{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.row{display:flex;gap:10px;align-items:stretch}
.input{
  flex:1;
  width:100%;
  padding:14px 14px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(11,18,32,.04);
  color:var(--text);
  outline:none;
  font-size:16px;
}
.input:focus{border-color: rgba(43,102,255,.55); box-shadow: 0 0 0 4px rgba(43,102,255,.15)}

.btn{
  border:none;
  border-radius:14px;
  padding:13px 14px;
  font-weight:700;
  cursor:pointer;
  font-size:15px;
  color:var(--text);
  background: var(--btn);
  min-width: 118px;
}
.btn:active{transform: translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.secondary{background: var(--btn2); border:1px solid var(--border); color: var(--text)}
.btn.ghost{background: var(--ghost); border:1px dashed rgba(11,18,32,.20); color: var(--muted)}

.hint{margin-top:8px;color:var(--muted);font-size:13px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.divider{height:1px;background: var(--border); margin:16px 0}

.previewGrid{display:grid;grid-template-columns: 1.1fr .9fr; gap:14px; align-items:start}
.previewBox{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:14px;
  background: rgba(11,18,32,.03);
}
.qrWrap{
  display:flex;justify-content:center;align-items:center;
  min-height: 270px;
  border-radius: 14px;
  background: rgba(11,18,32,.02);
  border:1px dashed rgba(11,18,32,.18);
}
.qr{
  width: 240px;
  height: 240px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.status{margin-top:10px;color:var(--muted);font-size:13px;min-height:18px}

.actions{display:flex;flex-direction:column;gap:10px}
.fineprint{margin-top:6px}
.tiny{color:var(--muted);font-size:12px;line-height:1.35}

.foot{margin-top:14px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dot{color:rgba(11,18,32,.28)}

@media (max-width: 820px){
  .previewGrid{grid-template-columns:1fr;}
  .btn{min-width: 0;}
}
