/* QR Gerador — tighter visual match to qr.io, Dica brand tokens */
.qrg-app {
  --qrg-accent: var(--dica-action, #2f5da8);
  --qrg-accent-hover: var(--dica-action-hover, #244a86);
  --qrg-accent-soft: var(--dica-action-soft, rgba(47, 93, 168, 0.12));
  --qrg-brand: var(--dica-brand, #ffcc00);
  --qrg-brand-ink: var(--dica-brand-ink, #8a6700);
  --qrg-ink: #1e293b;
  --qrg-muted: #64748b;
  --qrg-line: #e8edf3;
  --qrg-line-strong: #d5dde8;
  --qrg-soft: #f4f7fb;
  --qrg-shell-bg: #edf2f8;
  --qrg-card: #ffffff;
  --qrg-radius: 16px;
  --qrg-radius-sm: 10px;
  --qrg-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px rgba(15, 23, 42, 0.07);
  --qrg-frame-color: #111111;
  margin: 0.75rem 0 2rem;
  color: var(--qrg-ink);
  font-size: 14.5px;
  line-height: 1.45;
}

.qrg-app *,
.qrg-app *::before,
.qrg-app *::after { box-sizing: border-box; }
.qrg-app p { margin: 0; }
.qrg-app button,
.qrg-app input,
.qrg-app select,
.qrg-app textarea {
  font: inherit;
  color: inherit;
}

/* Soft shell like qr.io */
.qrg-shell-wrap {
  background:
    radial-gradient(circle at 100% 0, rgba(47, 93, 168, 0.08), transparent 32%),
    var(--qrg-shell-bg);
  border-radius: 20px;
  padding: 14px;
  border: 1px solid #e4eaf2;
}

.qrg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.qrg-main,
.qrg-side { min-width: 0; }

/* ---------- cards ---------- */
.qrg-card {
  background: var(--qrg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--qrg-radius);
  box-shadow: var(--qrg-shadow);
  padding: 18px 20px 20px;
  margin-bottom: 12px;
}
.qrg-main > .qrg-card:last-child { margin-bottom: 0; }

.qrg-types-card {
  padding: 12px 12px 10px;
}

/* ---------- step heads ---------- */
.qrg-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.qrg-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #243044;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.qrg-step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--qrg-ink);
  margin: 0;
  line-height: 1.25;
}
.qrg-step-hint { display: none; }

/* ---------- type chips (qr.io: top grid, soft active) ---------- */
.qrg-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 2px;
}
.qrg-frame-label.font-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.qrg-frame-label.font-serif { font-family: Georgia, "Times New Roman", Times, serif; }
.qrg-frame-label.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.qrg-type {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: left;
  color: #4d5b70;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qrg-type:hover {
  background: var(--qrg-soft);
  color: var(--qrg-ink);
}
.qrg-type.is-active {
  background: #e8f5ee;
  color: #0f7a4a;
  box-shadow: inset 0 0 0 1.5px #8fd4b0;
}
/* Dica brand-tinted active (yellow soft) — still “selected chip” feel */
.qrg-type.is-active {
  background: color-mix(in srgb, var(--qrg-brand) 28%, #fff);
  color: var(--qrg-brand-ink);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--qrg-brand) 70%, #c4a000);
}
.qrg-type:focus-visible {
  outline: 2px solid var(--qrg-accent);
  outline-offset: 2px;
}
.qrg-type svg {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -4px;
  margin-right: 5px;
  fill: currentColor;
}
.qrg-type.is-active svg {
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.75));
}
.qrg-type span {
  display: inline;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- forms ---------- */
.qrg-panel { display: none; }
.qrg-panel.is-active { display: block; }

.qrg-field { margin-bottom: 12px; }
.qrg-field:last-child { margin-bottom: 0; }
.qrg-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d4a5c;
  margin-bottom: 7px;
}
.qrg-input,
.qrg-select,
.qrg-textarea {
  width: 100%;
  border: 1px solid var(--qrg-line-strong);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  transition: border-color .12s ease, box-shadow .12s ease;
  color: var(--qrg-ink);
}
.qrg-input::placeholder,
.qrg-textarea::placeholder { color: #a0aab8; }
.qrg-textarea { min-height: 88px; resize: vertical; }
.qrg-input:focus,
.qrg-select:focus,
.qrg-textarea:focus {
  outline: 0;
  border-color: var(--qrg-accent);
  box-shadow: 0 0 0 3px var(--qrg-accent-soft);
}
.qrg-help {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--qrg-muted);
  font-style: normal;
}
.qrg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qrg-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  margin-top: 8px;
  cursor: pointer;
  user-select: none;
  color: #3d4a5c;
}
.qrg-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--qrg-accent);
}
.qrg-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--qrg-muted);
  margin: 14px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--qrg-line);
}
.qrg-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- design tabs (underline style like qr.io) ---------- */
.qrg-design-tabs {
  display: flex;
  gap: 0;
  margin: -4px 0 16px;
  border-bottom: 1px solid var(--qrg-line);
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.qrg-design-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 10px 18px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--qrg-muted);
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
}
.qrg-design-tab.is-active {
  background: transparent;
  color: var(--qrg-accent);
  box-shadow: none;
}
.qrg-design-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--qrg-accent);
}
.qrg-design-tab:hover { color: var(--qrg-ink); }
.qrg-design-tab:focus-visible {
  outline: 2px solid var(--qrg-accent);
  outline-offset: 2px;
}

/* frame / style pickers — horizontal scroll of tiles */
.qrg-frame-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 3px 12px;
  margin: 0 -2px 4px;
  scrollbar-width: thin;
  scrollbar-color: #c5cdd8 transparent;
}
.qrg-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
}
.qrg-option {
  appearance: none;
  border: 1.5px solid var(--qrg-line-strong);
  background: #fff;
  border-radius: 12px;
  height: 64px;
  width: 64px;
  flex: 0 0 64px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: border-color .12s ease, box-shadow .12s ease;
  position: relative;
  overflow: hidden;
}
.qrg-option-grid .qrg-option {
  width: auto;
  flex: none;
}
.qrg-option:hover { border-color: #b0bac8; }
.qrg-option.is-active {
  border-color: var(--qrg-accent);
  box-shadow: 0 0 0 2px var(--qrg-accent-soft);
}
.qrg-option:focus-visible {
  outline: 2px solid var(--qrg-accent);
  outline-offset: 2px;
}
.qrg-option svg { width: 26px; height: 26px; fill: currentColor; color: #334155; }

.qrg-frame-option {
  width: 74px;
  height: 86px;
  flex: 0 0 74px;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px 5px;
  overflow: hidden;
}
.qrg-frame-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15,23,42,.08);
}
.qrg-frame-option.is-active {
  background: color-mix(in srgb, var(--qrg-accent) 5%, #fff);
}
.qrg-option-name {
  max-width: 100%;
  overflow: hidden;
  color: #64748b;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qrg-frame-option.is-active .qrg-option-name { color: var(--qrg-accent); }

/* realistic mini frame previews */
.qrg-frame-thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}
.qrg-frame-thumb .mini-qr {
  width: 34px;
  height: 34px;
  display: block;
  overflow: hidden;
  background: #fff;
  border-radius: 1px;
  flex-shrink: 0;
}
.qrg-frame-thumb .mini-qr canvas,
.qrg-frame-thumb .mini-qr svg {
  display: block;
  width: 34px !important;
  height: 34px !important;
}
.qrg-frame-thumb.none {
  position: relative;
  color: #94a3b8;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}
.qrg-frame-thumb.none::before {
  content: "";
  width: 30px;
  height: 34px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
}
.qrg-frame-thumb.none::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 2px;
  border-radius: 99px;
  background: #94a3b8;
  transform: rotate(-42deg);
}
.qrg-frame-thumb.simple {
  border: 2px solid #111;
  padding: 4px;
}
.qrg-frame-thumb.rounded {
  border: 2px solid #111;
  border-radius: 11px;
  padding: 4px;
}
.qrg-frame-thumb.bottom {
  border: 2px solid #111;
  border-bottom-width: 10px;
  border-radius: 5px;
  padding: 4px 4px 1px;
}
.qrg-frame-thumb.top {
  border: 2px solid #111;
  border-top-width: 10px;
  border-radius: 5px;
  padding: 1px 4px 4px;
}
.qrg-frame-thumb.shadow {
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 10px rgba(15,23,42,.22);
  border-radius: 8px;
  padding: 5px;
}
.qrg-frame-thumb.scan .pill,
.qrg-frame-thumb.badge .pill {
  font-size: 0.36rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #111;
  color: #fff;
  border-radius: 99px;
  padding: 2px 5px 2.5px;
  line-height: 1;
  white-space: nowrap;
}
.qrg-frame-thumb.scan,
.qrg-frame-thumb.badge {
  border: 2px solid #111;
  padding: 4px 3px 3px;
}
.qrg-frame-thumb.badge {
  flex-direction: column-reverse;
  padding: 3px 3px 4px;
}

.qrg-dot-swatch {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.qrg-dot-swatch i { display: block; background: #111; }
.qrg-dot-swatch.square i { border-radius: 1px; }
.qrg-dot-swatch.dots i { border-radius: 50%; }
.qrg-dot-swatch.rounded i { border-radius: 3px; }
.qrg-dot-swatch.extra-rounded i { border-radius: 6px; }
.qrg-dot-swatch.classy i:nth-child(1) { border-radius: 6px 1px 1px 1px; }
.qrg-dot-swatch.classy i:nth-child(9) { border-radius: 1px 1px 6px 1px; }
.qrg-dot-swatch.classy-rounded i:nth-child(odd) { border-radius: 50%; }

.qrg-corner-swatch {
  width: 28px;
  height: 28px;
  position: relative;
}
.qrg-corner-swatch::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3.5px solid #111;
  border-radius: 2px;
}
.qrg-corner-swatch::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #111;
  border-radius: 1px;
}
.qrg-corner-swatch.dot::before { border-radius: 50%; }
.qrg-corner-swatch.dot::after { border-radius: 50%; }
.qrg-corner-swatch.extra-rounded::before { border-radius: 9px; }
.qrg-corner-swatch.extra-rounded::after { border-radius: 4px; }

/* color rows — qr.io: input + swatch block */
.qrg-color-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.qrg-color-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d4a5c;
  margin-bottom: 7px;
}
.qrg-color-pair {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 10px;
  align-items: stretch;
}
.qrg-color-pair .qrg-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  text-transform: uppercase;
}
.qrg-swatch {
  appearance: none;
  border: 1px solid var(--qrg-line-strong);
  border-radius: 12px;
  padding: 0;
  width: 100%;
  min-height: 46px;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.qrg-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.qrg-swatch::-webkit-color-swatch { border: 0; border-radius: 11px; }
.qrg-swatch::-moz-color-swatch { border: 0; border-radius: 11px; }

.qrg-logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.qrg-file-btn {
  appearance: none;
  border: 1px dashed var(--qrg-accent);
  background: var(--qrg-accent-soft);
  color: var(--qrg-accent);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}
.qrg-file-btn:hover { filter: brightness(0.98); }
.qrg-file-btn input { display: none; }
.qrg-btn-text {
  appearance: none;
  border: 1px solid var(--qrg-line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--qrg-muted);
}
.qrg-btn-text:hover { border-color: #b0bac8; color: var(--qrg-ink); }

/* ---------- right preview column (step 3) ---------- */
.qrg-side {
  position: sticky;
  top: 86px;
}
.qrg-preview-card {
  background: var(--qrg-card);
  border-radius: var(--qrg-radius);
  box-shadow: var(--qrg-shadow);
  padding: 18px 18px 16px;
  border: 1px solid rgba(255,255,255,.85);
}
.qrg-preview-card .qrg-step-head {
  margin-bottom: 16px;
}
.qrg-preview-stage {
  position: relative;
  background:
    radial-gradient(circle at 50% 22%, #ffffff 0, #f7f9fc 58%, #eef3f8 100%);
  border: 1px solid var(--qrg-line);
  border-radius: 16px;
  padding: 22px 12px 18px;
  min-height: 284px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qrg-preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image:
    linear-gradient(rgba(100,116,139,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,116,139,.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.qrg-preview-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: var(--qrg-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
.qrg-frame {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(15,23,42,.09);
  transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}
.qrg-app:not(.qrg-has-data) .qrg-frame {
  opacity: .72;
  filter: grayscale(.12);
  transform: scale(.97);
}
.qrg-frame[data-frame="none"] {
  background: transparent;
  padding: 0;
  gap: 0;
  box-shadow: none;
}
.qrg-frame[data-frame="simple"] {
  border: 6px solid var(--qrg-frame-color, #111);
  border-radius: 4px;
  padding: 8px;
}
.qrg-frame[data-frame="rounded"] {
  border: 6px solid var(--qrg-frame-color, #111);
  border-radius: 18px;
  padding: 12px;
}
.qrg-frame[data-frame="bottom"] {
  border: 4px solid var(--qrg-frame-color, #111);
  border-bottom-width: 16px;
  border-radius: 6px;
}
.qrg-frame[data-frame="top"] {
  border: 4px solid var(--qrg-frame-color, #111);
  border-top-width: 16px;
  border-radius: 6px;
}
.qrg-frame[data-frame="shadow"] {
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
  border-radius: 12px;
  padding: 14px;
}
/* qr.io signature: thick black frame + pill SCAN ME */
.qrg-frame[data-frame="scan"],
.qrg-frame[data-frame="badge"] {
  border: 8px solid var(--qrg-frame-color, #111);
  border-radius: 6px;
  padding: 10px 10px 12px;
  background: #fff;
  gap: 12px;
}

/* pill label (texto em português — sem "SCAN ME") */
.qrg-frame-label {
  display: none;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  line-height: 1.15;
  max-width: 240px;
  word-break: break-word;
}
.qrg-frame[data-frame="simple"] .qrg-frame-label,
.qrg-frame[data-frame="rounded"] .qrg-frame-label,
.qrg-frame[data-frame="bottom"] .qrg-frame-label,
.qrg-frame[data-frame="top"] .qrg-frame-label,
.qrg-frame[data-frame="shadow"] .qrg-frame-label,
.qrg-frame[data-frame="scan"] .qrg-frame-label,
.qrg-frame[data-frame="badge"] .qrg-frame-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.qrg-frame[data-frame="scan"] .qrg-frame-label,
.qrg-frame[data-frame="badge"] .qrg-frame-label,
.qrg-frame[data-frame="simple"] .qrg-frame-label,
.qrg-frame[data-frame="rounded"] .qrg-frame-label,
.qrg-frame[data-frame="shadow"] .qrg-frame-label {
  background: var(--qrg-frame-color, #111);
  color: #fff !important;
  border-radius: 999px;
  padding: 9px 18px;
  min-width: 120px;
}
.qrg-frame[data-frame="bottom"] .qrg-frame-label,
.qrg-frame[data-frame="top"] .qrg-frame-label {
  background: transparent;
  color: var(--qrg-frame-color, #111) !important;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  font-size: 0.72rem;
}
.qrg-frame-label .qrg-pill-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.qrg-frame[data-label-pos="top"] { flex-direction: column; }
.qrg-frame[data-label-pos="bottom"] { flex-direction: column; }
.qrg-frame[data-label-pos="top"] .qrg-frame-label { order: -1; }
.qrg-frame[data-label-pos="bottom"] .qrg-frame-label { order: 2; }

#qrg-canvas {
  width: 196px;
  height: 196px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#qrg-canvas canvas,
#qrg-canvas svg {
  width: 196px !important;
  height: 196px !important;
  max-width: 100%;
  display: block;
}

.qrg-download-block { margin-top: 18px; }
.qrg-download-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.qrg-btn-primary {
  appearance: none;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--qrg-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--qrg-accent) 35%, transparent);
  transition: background .12s ease, transform .1s ease, filter .12s ease;
  -webkit-text-fill-color: #ffffff;
}
.qrg-btn-primary:hover:not(:disabled) {
  background: var(--qrg-accent-hover);
  color: #ffffff !important;
}
.qrg-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.qrg-btn-primary:disabled {
  background: #94a3b8;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  cursor: not-allowed;
  box-shadow: none;
  filter: none;
  opacity: 1;
}
.qrg-btn-primary svg {
  width: 18px;
  height: 18px;
  fill: #ffffff !important;
  color: #ffffff;
}
.qrg-btn-primary:disabled svg {
  fill: #ffffff !important;
  opacity: 0.95;
}
.qrg-btn-secondary {
  appearance: none;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--qrg-line-strong);
  background: #fff;
  border-radius: 12px;
  color: #3d4a5c;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 11px 14px;
  cursor: pointer;
}
.qrg-btn-secondary:hover { background: var(--qrg-soft); }
.qrg-btn-secondary:disabled {
  color: #94a3b8;
  cursor: not-allowed;
  background: #f8fafc;
}
.qrg-format-note {
  margin-top: 8px !important;
  text-align: center;
  font-size: 0.7rem;
  color: var(--qrg-muted);
  line-height: 1.4;
}
.qrg-status {
  min-height: 1.15em;
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--qrg-muted);
}
.qrg-status.is-ok { color: #166534; }
.qrg-status.is-err { color: #b91c1c; }
.qrg-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 10px;
  margin-top: 10px;
  color: #526176;
  font-size: .7rem;
  font-weight: 650;
}
.qrg-trust span::first-letter { color: #16845b; }

/* hide article intro crowding — optional soft spacing */
.article .qrg-app { clear: both; }
body.page-qr-code-gerador { overflow-x: clip; }

/* Beat theme rules that recolor buttons/links inside .article */
.article .qrg-app .qrg-btn-primary,
.article .qrg-app button.qrg-btn-primary,
.qrg-app button.qrg-btn-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--qrg-accent, #2f5da8) !important;
  border: 0 !important;
  fill: #ffffff;
}
.article .qrg-app .qrg-btn-primary:disabled,
.article .qrg-app button.qrg-btn-primary:disabled {
  background: #94a3b8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}
.article .qrg-app .qrg-btn-primary svg,
.article .qrg-app button.qrg-btn-primary svg {
  fill: #ffffff !important;
}

/* ---------- dark theme ---------- */
html[data-theme="dark"] .qrg-app {
  --qrg-shell-bg: #151920;
  --qrg-card: #1c2129;
  --qrg-soft: #242a34;
  --qrg-ink: #e8ecf1;
  --qrg-muted: #9aa6b5;
  --qrg-line: #2c3440;
  --qrg-line-strong: #3a4454;
  --qrg-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .qrg-step-num { background: #3b4658; }
html[data-theme="dark"] .qrg-type.is-active {
  background: color-mix(in srgb, var(--qrg-brand) 22%, #1c2129);
  color: var(--qrg-brand);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--qrg-brand) 55%, transparent);
}
html[data-theme="dark"] .qrg-input,
html[data-theme="dark"] .qrg-select,
html[data-theme="dark"] .qrg-textarea,
html[data-theme="dark"] .qrg-option,
html[data-theme="dark"] .qrg-btn-secondary,
html[data-theme="dark"] .qrg-btn-text {
  background: #242a34;
  border-color: #3a4454;
  color: var(--qrg-ink);
}
html[data-theme="dark"] .qrg-frame { background: #fff; }
html[data-theme="dark"] .qrg-design-tab.is-active { color: var(--dica-action, #7da8f0); }
html[data-theme="dark"] .qrg-shell-wrap { border-color: #252d38; }
html[data-theme="dark"] .qrg-preview-stage {
  background: radial-gradient(circle at 50% 22%, #252c36 0, #1a2028 72%);
}
html[data-theme="dark"] .qrg-preview-badge {
  background: rgba(28,33,41,.94);
  border-color: #3a4454;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 980px) {
  .qrg-shell {
    grid-template-columns: 1fr;
  }
  .qrg-side {
    position: static;
  }
  .qrg-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #qrg-canvas,
  #qrg-canvas canvas,
  #qrg-canvas svg {
    width: 190px !important;
    height: 190px !important;
  }
}
@media screen and (max-width: 560px) {
  .qrg-shell-wrap { padding: 8px; border-radius: 14px; }
  .qrg-card { padding: 14px; }
  .qrg-types {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }
  .qrg-type { font-size: 0.9rem; }
  .qrg-type { text-align: left; padding: 10px 12px; flex: 0 0 auto; scroll-snap-align: start; }
  .qrg-row,
  .qrg-color-row,
  .qrg-download-row,
  .qrg-color-pair { grid-template-columns: 1fr; }
  .qrg-design-tab { padding: 10px 12px 12px; font-size: 0.86rem; }
  .qrg-preview-stage { min-height: 260px; padding-inline: 8px; }
}

/* SEO block below tool */
.qrg-seo h2 { margin-top: 1.6rem; }
.qrg-seo ul { margin: 0.6rem 0 1rem 1.2rem; }
.qrg-seo li { margin-bottom: 0.35rem; }
