.tx-auth-code-monitor {
    position: relative;
    flex: none;
}

.tx-auth-code-trigger {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    transition: background-color 0.2s ease;
}

.tx-auth-code-trigger:hover {
    background: #f3f4f3;
}

.tx-auth-code-dialog {
    position: fixed;
    z-index: 2147483646;
    top: 0;
    left: 50%;
    width: min(400px, calc(100vw - 32px));
    transform: translateX(-50%);
    overflow: hidden;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.16);
}

.tx-auth-code-dialog[hidden] {
    display: none;
}

.tx-auth-code-dialog > header {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f0eeee;
    padding: 8px 12px 8px 16px;
}

.tx-auth-code-dialog > header h2 {
    color: #1c1917;
    font-size: 13px;
    font-weight: 700;
}

.tx-auth-code-dialog > header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-auth-code-refresh {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    flex: none;
    place-items: center;
    color: var(--primary);
}

.tx-auth-code-refresh svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.tx-auth-code-refresh circle {
    fill: none;
    stroke-width: 2;
}

.tx-auth-code-refresh__track {
    stroke: #e7e5e4;
}

.tx-auth-code-refresh__progress {
    stroke: currentColor;
    stroke-dasharray: 50.27;
    stroke-dashoffset: 0;
    stroke-linecap: round;
}

.tx-auth-code-refresh.is-counting .tx-auth-code-refresh__progress {
    animation: tx-auth-code-countdown 5s linear forwards;
}

.tx-auth-code-refresh > .material-symbols-outlined {
    position: relative;
    font-size: 10px;
}

@keyframes tx-auth-code-countdown {
    to {
        stroke-dashoffset: 50.27;
    }
}

.tx-auth-code-dialog > header button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #78716c;
}

.tx-auth-code-dialog > header button:hover {
    background: #f5f5f4;
    color: #1c1917;
}

.tx-auth-code-dialog > header .material-symbols-outlined {
    font-size: 17px;
}

.tx-auth-code-content {
    min-height: 72px;
    padding: 14px 16px 16px;
}

.tx-auth-code-value {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.tx-auth-code-org {
    overflow: hidden;
    color: #292524;
    font-size: 13px;
    text-overflow: ellipsis;
}

.tx-auth-code-time {
    color: #78716c;
    font-size: 11px;
}

.tx-auth-code-value > .tx-auth-code-org,
.tx-auth-code-value > .tx-auth-code-code {
    display: block !important;
    flex: none;
    opacity: 1 !important;
    visibility: visible !important;
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.tx-auth-code-value > .tx-auth-code-org {
    flex: 0 1 auto;
    color: #292524 !important;
    font-size: 13px;
    letter-spacing: 0;
}

.tx-auth-code-value > .tx-auth-code-code {
    color: #0f766e !important;
}

.tx-auth-code-status {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    color: #78716c;
    font-size: 11px;
}
