#tool [hidden] { display: none !important; }
.qr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.qr-in { border-top: 0; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; padding: 16px; }
.qr-fields { display: flex; flex-direction: column; gap: 6px; }
.qr-wifi { gap: 8px; }
.qr-lbl { font-weight: 600; font-size: 14px; }
.options .qr-lbl { cursor: default; }
.qr-text { min-height: 150px; height: 170px; flex: none; font-family: var(--font); font-size: 15px; }
.qr-input { height: 40px; padding: 0 12px; font: 15px var(--font); color: var(--ink); background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; width: 100%; min-width: 0; }
.qr-input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }
.qr-pass { display: flex; gap: 6px; }
.qr-pass .btn { min-width: 64px; justify-content: center; height: 40px; }
.qr-more > summary { display: none; }
.qr-enc > summary { cursor: pointer; font-size: 14px; color: var(--muted); padding: 4px 0; }
.qr-payload { min-height: 70px; height: 90px; margin-top: 6px; }
.qr-clear { align-self: flex-start; }
.qr-out { border-left: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-preview { width: 100%; max-width: 320px; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-ctl); overflow: hidden; }
.qr-preview svg { width: 100%; height: 100%; display: block; }
.qr-preview.stale svg { opacity: .25; }
.qr-empty { margin: 0; padding: 24px; text-align: center; color: #5b6475; font-size: 14px; }
.qr-diag { margin: 0; text-align: center; min-height: 1.4em; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.qr-png { margin: 0; }
#tool > .notice { margin-top: 12px; }
@media (max-width: 860px) {
  .qr-grid { grid-template-columns: 1fr; }
  .qr-out { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .qr-in, .qr-out { padding: 12px; }
  .qr-type .segmented, .qr-ecl .segmented { display: flex; flex: 1; }
  .qr-type, .qr-ecl { width: 100%; flex-wrap: wrap; }
  .qr-type .segmented label, .qr-ecl .segmented label { flex: 1; justify-content: center; min-height: 44px; }
  .qr-input { height: 44px; font-size: 16px; }
  .qr-pass .btn { height: 44px; min-width: 72px; }
  .qr-more > summary { display: block; font-weight: 600; cursor: pointer; padding: 6px 0; }
  .qr-actions .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; }
}
.options input.qr-input { width: 100%; height: 40px; font-size: 15px; background: var(--code-bg); }
@media (max-width: 768px) { .options input.qr-input { height: 44px; font-size: 16px; } }
