/**
 * QR Code Reader.
 */

.em-qrr__drop { margin-bottom: 1em; }
.em-qrr__drop strong { color: var(--em-ink, inherit); }

.em-qrr__or {
    margin: 0 0 1em;
    text-align: center;
    font-size: .88rem;
    color: var(--em-soft, #6b7280);
}

.em-qrr__camera { text-align: center; }

.em-qrr__start,
.em-qrr__stop,
.em-qrr__copy {
    padding: .7em 1.3em;
    border: 1px solid var(--em-brand, #2563eb);
    border-radius: 8px;
    background: var(--em-brand, #2563eb);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.em-qrr__stop { background: transparent; color: var(--em-brand, #2563eb); }

.em-qrr__video {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 1em auto 0;
    border-radius: 10px;
    background: #000;
}

.em-qrr__note {
    margin: .8em 0 0;
    font-size: .82rem;
    line-height: 1.55;
    color: var(--em-soft, #6b7280);
}

/* ── Result ─────────────────────────────────────────────────────────────── */
.em-qrr__result {
    margin-top: 1.6em;
    padding: 1.2em 1.3em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 10px;
    background: var(--em-surface, #fff);
}

.em-qrr__kind { margin: 0 0 .7em; font-size: 1.05rem; }

.em-qrr__fields {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .35em 1.1em;
    margin: 0 0 1em;
}

.em-qrr__fields dt { font-size: .85rem; font-weight: 600; color: var(--em-soft, #6b7280); }
.em-qrr__fields dd { margin: 0; font-size: .92rem; word-break: break-word; }

.em-qrr__raw-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--em-soft, #6b7280);
    margin-bottom: .3em;
}

.em-qrr__raw {
    width: 100%;
    padding: .6em .7em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
    resize: vertical;
    box-sizing: border-box;
}

.em-qrr__actions { display: flex; gap: 10px; align-items: center; margin-top: .9em; flex-wrap: wrap; }

.em-qrr__open {
    padding: .7em 1.2em;
    border: 1px solid var(--em-line, #e5e7eb);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

/* A link out of a scanned code deserves a second look, not a bright button. */
.em-qrr__warning {
    margin: 1em 0 0;
    padding: .75em .95em;
    background: rgba(217, 119, 6, .12);
    border-left: 3px solid #d97706;
    border-radius: 6px;
    font-size: .85rem;
    line-height: 1.55;
}

@media (max-width: 600px) {
    .em-qrr__fields { grid-template-columns: minmax(0, 1fr); gap: .1em; }
    .em-qrr__fields dd { margin-bottom: .6em; }
}
