.ms-fqc-qr {
    display: inline-block;
    text-align: center;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
}
.ms-fqc-qr img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}
.ms-fqc-body {
    margin: 0;
    padding: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f4f4;
}
.ms-fqc-card {
    max-width: 520px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.ms-fqc-details {
    margin: 20px 0;
}
.ms-fqc-details dt {
    font-weight: 700;
    margin-top: 10px;
}
.ms-fqc-details dd {
    margin: 2px 0 8px;
}
.ms-fqc-button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
}
.ms-fqc-success,
.ms-fqc-warning,
.ms-fqc-error {
    padding: 12px;
    border-radius: 8px;
    margin: 14px 0;
}
.ms-fqc-success { background: #e7f8ed; }
.ms-fqc-warning { background: #fff4d8; }
.ms-fqc-error { background: #fde8e8; }
.ms-fqc-table {
    width: 100%;
    border-collapse: collapse;
}
.ms-fqc-table th,
.ms-fqc-table td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.ms-fqc-scanner {
    max-width: 760px;
    margin: 0 auto;
}
.ms-fqc-muted {
    opacity: .75;
}
.ms-fqc-reader-wrap {
    max-width: 520px;
    margin: 18px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
#ms-fqc-reader {
    width: 100%;
}
.ms-fqc-actions,
.ms-fqc-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 14px 0;
}
.ms-fqc-button-secondary {
    background: #555;
}
.ms-fqc-scan-result {
    min-height: 24px;
    margin: 16px 0;
}
.ms-fqc-manual {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}
.ms-fqc-search-row input {
    min-width: 260px;
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}
.ms-fqc-search-result {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px 0;
    background: #fff;
}
@media (max-width: 600px) {
    .ms-fqc-search-result {
        align-items: flex-start;
        flex-direction: column;
    }
    .ms-fqc-search-row input,
    .ms-fqc-search-row button,
    .ms-fqc-actions button {
        width: 100%;
    }
}
