/* QR code generator - a content-type segment, text/Wi-Fi input panels, controls, and a
   white preview card so the code reads in dark theme. Reuses base .btn / .btn-outline /
   .seg; all colors come from theme tokens only. */

.qr-mode { margin: 8px 0 20px; }

.qr-panel { margin-bottom: 20px; }

.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 520px) { .qr-grid { grid-template-columns: 1fr; } }

.qr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qr-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.qr-input, .qr-select, .qr-textarea {
    width: 100%; box-sizing: border-box; padding: 12px;
    font-size: 16px; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.qr-textarea {
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    resize: vertical; min-height: 64px;
}
.qr-input:focus, .qr-select:focus, .qr-textarea:focus {
    outline: 2px solid var(--accent); border-color: var(--accent);
}

.qr-field-check { justify-content: flex-end; }
.qr-check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.qr-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.qr-controls {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
    margin-bottom: 20px; max-width: 420px;
}
@media (max-width: 520px) { .qr-controls { grid-template-columns: 1fr; } }

.qr-error {
    margin: 0 0 16px; padding: 10px 14px; border-radius: 10px;
    color: var(--bad); border: 1px solid var(--bad); font-weight: 600; font-size: 15px;
}

.qr-preview {
    display: flex; justify-content: center; align-items: center;
    padding: 24px; margin: 0 0 20px;
    background: #ffffff; border: 1px solid var(--border); border-radius: 14px;
}
.qr-canvas {
    display: block; width: 100%; height: auto;
    image-rendering: pixelated;
}

.qr-download { display: flex; flex-wrap: wrap; gap: 12px; }
