/* 本地二维码工坊 */
.app-card--qrcode { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-icon.qr-mini {
    border: 0; padding: 0; cursor: pointer; background: transparent; overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(15,23,42,.16), 0 1px 3px rgba(15,23,42,.12);
    transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease;
}
.app-icon.qr-mini:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 28px rgba(15,23,42,.22); }
.app-icon.qr-mini img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }

.qr-panel {
    position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow-y: auto;
    border-radius: 16px; background: #fff; color: #1e293b;
    box-shadow: 0 28px 80px rgba(8,12,22,.34);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}
.qr-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px 20px; border-bottom: 1px solid rgba(15,23,42,.06); }
.qr-title { margin: 0; font-size: 15px; font-weight: 600; }
.qr-body { display: grid; grid-template-columns: 1fr 240px; gap: 20px; padding: 18px 20px 20px; }
.qr-left { display: flex; flex-direction: column; gap: 12px; }
.qr-tabs { display: inline-flex; background: #f1f5f9; padding: 3px; border-radius: 10px; gap: 3px; width: fit-content; }
.qr-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 12.5px; color: #64748b; cursor: pointer; font-weight: 500; }
.qr-tabs button.is-active { background: #fff; color: #2563eb; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.qr-input, .qr-field input, .qr-field select {
    width: 100%; box-sizing: border-box; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px;
    font: inherit; font-size: 13.5px; background: #f8fafc; color: inherit; outline: none;
}
.qr-input { min-height: 92px; resize: vertical; }
.qr-input:focus, .qr-field input:focus, .qr-field select:focus { border-color: #3b82f6; background: #fff; }
.qr-wifi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qr-wifi[hidden] { display: none; }
.qr-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qr-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #64748b; }
.qr-color-row { display: flex; align-items: center; gap: 6px; }
.qr-color-row input[type="color"] { width: 32px; height: 32px; padding: 2px; border-radius: 8px; border: 1px solid #e2e8f0; cursor: pointer; background: transparent; }
.qr-right { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #f8fafc; border-radius: 14px; padding: 16px; border: 1px solid rgba(15,23,42,.06); }
.qr-canvas { width: 200px; height: 200px; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.08); image-rendering: pixelated; }
.qr-meta { font-size: 11.5px; color: #64748b; text-align: center; }
.qr-acts { display: flex; gap: 8px; width: 100%; }
.qr-btn {
    flex: 1; border: 0; border-radius: 9px; height: 36px; font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; background: #e2e8f0; color: #1e293b;
}
.qr-btn.is-primary { background: #2563eb; color: #fff; }
.qr-btn:hover { opacity: .92; }
@media (max-width: 640px) { .qr-body { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .qr-panel { background: #1b1f26; color: #f1f5f9; }
:root[data-theme="dark"] .qr-head { border-bottom-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .qr-tabs, :root[data-theme="dark"] .qr-right { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .qr-tabs button.is-active { background: #2d3440; color: #60a5fa; }
:root[data-theme="dark"] .qr-input, :root[data-theme="dark"] .qr-field input, :root[data-theme="dark"] .qr-field select { background: #242a34; border-color: rgba(255,255,255,.1); color: #f1f5f9; }
:root[data-theme="dark"] .qr-btn { background: rgba(255,255,255,.1); color: #e2e8f0; }
:root[data-theme="dark"] .qr-btn.is-primary { background: #3b82f6; color: #fff; }
