.otp-setup {
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    background: rgba(37, 99, 235, 0.06);
}

.otp-setup-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 6px;
}

.otp-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 288px);
    min-height: 288px;
    margin: 8px auto 12px;
    padding: 16px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.otp-qr::before {
    content: "QR";
    color: #94a3b8;
    font-weight: 700;
}

.otp-qr.is-ready::before,
.otp-qr.is-error::before {
    content: "";
}

.otp-qr svg {
    display: block;
    width: 245px;
    height: 245px;
    max-width: calc(100vw - 112px);
    max-height: calc(100vw - 112px);
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}

.otp-copy {
    margin: 0 0 8px;
    color: var(--pem-muted, #64748b);
}

.otp-copy.small {
    margin-top: 6px;
    font-size: 0.85rem;
}

.otp-secret {
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.98rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.otp-code-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.otp-digit {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.otp-digit:focus {
    border-color: #2d3b7a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 59, 122, .16);
}

.otp-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.otp-cancel-btn:hover {
    border-color: rgba(37, 99, 235, 0.32);
    background: rgba(37, 99, 235, 0.08);
    color: #1e3a8a;
    text-decoration: none;
}

.otp-cancel-btn i {
    font-size: 1.05rem;
}
