:root {
    color-scheme: light;
    --background: #ffffff;
    --foreground: #18181b;
    --card: #ffffff;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --primary: #c8102e;
    --primary-hover: #a50d26;
    --primary-muted: #fef2f2;
    --success: #15803d;
    --success-muted: #f0fdf4;
    --warning: #a16207;
    --warning-muted: #fffbeb;
    --danger: #b91c1c;
    --danger-muted: #fef2f2;
    --info: #2563eb;
    --info-muted: #eff6ff;
    --radius-md: 8px;
}

* {
    box-sizing: border-box;
}
[hidden],
.hidden {
    display: none !important;
}
body.panel-body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--foreground);
    font:
        14px/1.5 Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
a {
    color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
    -webkit-tap-highlight-color: transparent;
}
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}
.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-block;
    vertical-align: middle;
}
.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}
.panel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}
.panel-brand__logo {
    width: 20px;
    height: 25px;
}
.panel-brand__name {
    display: inline-flex;
    gap: 2px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0;
}
.panel-brand__product {
    color: var(--muted-foreground);
    padding-left: 10px;
    border-left: 1px solid var(--border);
}
.panel-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}
.panel-user__name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.panel-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}
.panel-sidebar {
    position: sticky;
    top: 56px;
    display: flex;
    flex-direction: column;
    width: 240px;
    flex: 0 0 240px;
    height: calc(100vh - 56px);
    padding: 24px 12px 16px;
    background: #fafafa;
    border-right: 1px solid var(--border);
}
.nav-label {
    color: var(--muted-foreground);
    font-size: 12px;
    padding: 0 12px 12px;
}
.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.panel-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--muted-foreground);
    text-decoration: none;
}
.panel-nav__link:hover,
.panel-nav__link--active {
    color: var(--primary);
    background: var(--primary-muted);
}
.sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 12px 0;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 12px;
}
.sidebar-footer .icon {
    color: var(--success);
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}
.panel-main {
    min-width: 0;
    flex: 1;
    padding: 24px;
}
.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}
.page-heading {
    display: grid;
    gap: 6px;
    min-width: 0;
}
h1,
h2,
h3,
p {
    margin: 0;
    letter-spacing: 0;
}
h1 {
    font-size: 28px;
    font-weight: 650;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
h2 {
    font-size: 20px;
    font-weight: 650;
    line-height: 1.3;
}
h3 {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
}
.muted {
    color: var(--muted-foreground);
}
.summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.summary-item {
    display: grid;
    gap: 6px;
}
.summary-item + .summary-item {
    border-left: 1px solid var(--border);
    padding-left: 20px;
}
.summary-item span {
    color: var(--muted-foreground);
    font-size: 12px;
}
.summary-item strong {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.summary-item .active {
    color: var(--success);
}
.summary-item .suspended {
    color: var(--warning);
}
.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.toolbar form {
    flex: 1;
}
.row {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}
.row > label {
    flex: 1 1 200px;
    min-width: 0;
}
.row > input,
.row > select {
    flex: 1 1 180px;
    min-width: 0;
}
.stack {
    display: grid;
    gap: 16px;
}
label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--foreground);
    font-size: 13px;
    font-weight: 500;
}
input,
select,
textarea {
    width: 100%;
    min-width: 0;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--foreground);
    padding: 8px 12px;
    outline: none;
    font-weight: 400;
}
input::placeholder,
textarea::placeholder {
    color: var(--muted-foreground);
}
input:not([type='checkbox']):not([type='radio']):focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
    outline: 0;
}
input:disabled,
select:disabled,
textarea:disabled {
    background: var(--muted);
    color: var(--muted-foreground);
}
textarea {
    min-height: 40px;
    resize: vertical;
}
label.check {
    display: flex;
    align-items: center;
    min-height: 40px;
    gap: 10px;
    font-weight: 400;
}
label.check input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    padding: 0;
    accent-color: var(--primary);
}
button,
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
button:hover,
.button:hover {
    background: var(--primary-hover);
}
button.secondary,
.button.secondary {
    background: var(--card);
    border-color: var(--border);
    color: var(--foreground);
}
button.secondary:hover,
.button.secondary:hover {
    background: var(--muted);
    border-color: var(--border-strong);
}
button.warning {
    color: var(--warning);
    border-color: #fcd34d;
    background: var(--warning-muted);
}
button.danger {
    color: var(--danger);
    border-color: #fecaca;
    background: var(--danger-muted);
}
button.danger:hover {
    background: #fee2e2;
}
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.icon-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
}
.search-field {
    position: relative;
    flex: 1 1 260px;
}
.search-field > .icon {
    position: absolute;
    left: 12px;
    top: 11px;
    color: var(--muted-foreground);
    pointer-events: none;
}
.search-field input {
    padding-left: 38px;
}
.tenant-name {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.tenant-name:hover {
    text-decoration: underline;
}
.tenant-meta {
    font-size: 12px;
    color: var(--muted-foreground);
    overflow-wrap: anywhere;
}
.mono {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 2px;
}
.back-link:hover {
    color: var(--primary);
}
.tenant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.tenant-tags a {
    text-decoration: none;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted-foreground);
    background: var(--muted);
}
.badge.active {
    color: var(--success);
    background: var(--success-muted);
}
.badge.pending,
.badge.suspended {
    color: var(--warning);
    background: var(--warning-muted);
}
.badge.revoked {
    color: var(--danger);
    background: var(--danger-muted);
}
.details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.section {
    min-width: 0;
    display: grid;
    gap: 16px;
    align-content: start;
}
.settings-tool {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
}
.section h2 {
    font-size: 20px;
    font-weight: 600;
}
.section > button,
.section .stack > button {
    justify-self: start;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}
.form-grid > button {
    justify-self: start;
    align-self: end;
}
.limits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.connection-setting {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 12px;
}
.fact {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 8px 0;
    min-width: 0;
}
.fact span {
    color: var(--muted-foreground);
    font-size: 12px;
}
.fact strong {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.section .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.table-shell {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th,
.table td {
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.table thead th {
    color: var(--muted-foreground);
    font-weight: 600;
    background: var(--muted);
}
.table tr:last-child td {
    border-bottom: 0;
}
.table .table-empty {
    text-align: center;
    color: var(--muted-foreground);
}
.tenant-table {
    min-width: 800px;
    table-layout: fixed;
}
.server-table {
    min-width: 820px;
}
.server-table td {
    vertical-align: middle;
}
.server-table .row {
    align-items: center;
}
.server-table .mono,
.tenant-table .mono {
    overflow-wrap: anywhere;
}
.tenant-table th:first-child {
    width: 34%;
}
.tenant-table th:nth-child(2) {
    width: 22%;
}
.tenant-table th:nth-child(3) {
    width: 14%;
}
.tenant-table th:nth-child(4) {
    width: 20%;
}
.table-actions {
    white-space: nowrap;
}
.table-action {
    width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}
.users-table td {
    vertical-align: middle;
}
.users-table .row {
    flex-wrap: nowrap;
    gap: 4px;
}
.users-table .table-action {
    width: 24px;
    height: 24px;
    min-height: 24px;
}
.dialog-header,
.user-password-control {
    display: flex;
    align-items: center;
    gap: 12px;
}
.dialog-header {
    justify-content: space-between;
}
.dialog-header h2 {
    margin: 0;
}
.user-password-control input {
    flex: 1;
    min-width: 0;
}
@media (max-width: 1024px) {
    .users-table,
    .users-table tbody {
        display: block;
    }
    .users-table thead {
        display: none;
    }
    .users-table tr {
        display: grid;
        gap: 12px;
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    .users-table tr:last-child {
        border-bottom: 0;
    }
    .users-table td {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        border: 0;
    }
    .users-table td[data-label]::before {
        content: attr(data-label);
        color: var(--muted-foreground);
        font-size: 13px;
    }
    .users-table .users-name,
    .users-table .users-actions,
    .users-table .table-empty {
        display: block;
    }
    .users-table .users-name::before {
        display: none;
    }
    .users-table .table-action {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
}
@media (max-width: 480px) {
    .user-password-control {
        flex-wrap: wrap;
    }
    .user-password-control input {
        flex-basis: 100%;
    }
}
.audit-table {
    min-width: 600px;
}
.notice {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fafafa;
    color: var(--muted-foreground);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.notice.error {
    border-color: #fecaca;
    color: var(--danger);
    background: var(--danger-muted);
}
.notice + .details,
.notice + .table-shell {
    margin-top: 20px;
}
code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.auth-mode {
    --danger: #ef4444;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%) !important;
}
.auth-mode .panel-layout {
    min-height: 100dvh;
}
.auth-mode .panel-main {
    width: 100%;
    max-width: none;
    padding: 0;
}
.auth-mode .panel-user__name {
    display: none;
}
.login-wrap {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}
.login {
    width: min(424px, 100%);
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
}
.login .panel-brand {
    flex-wrap: wrap;
}
.login > h1 {
    font-size: 28px;
}
.login label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}
.login button,
.login .button {
    line-height: 1.5;
}
.login .notice {
    padding: 12px;
    border-radius: var(--radius-md);
}
.login .notice.error {
    border-color: var(--danger);
}
.login.enrollment {
    width: min(480px, 100%);
}
.auth-heading {
    display: grid;
    gap: 8px;
}
.auth-heading > .icon {
    color: var(--primary);
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
}
.auth-heading h1 {
    font-size: 24px;
}
.auth-heading p {
    font-size: 13px;
    color: var(--muted-foreground);
    overflow-wrap: anywhere;
}
.qr-code {
    display: block;
    width: 232px;
    height: 232px;
    max-width: 100%;
    object-fit: contain;
    justify-self: center;
    background: white;
    image-rendering: pixelated;
}
.mfa-method {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.mfa-method button {
    background: transparent;
    color: var(--muted-foreground);
}
.mfa-method button:hover {
    background: var(--muted);
    color: var(--foreground);
}
.otp-input {
    height: 48px;
    font-size: 22px;
    font-variant-numeric: tabular-nums;
    text-align: center;
    letter-spacing: 0;
}
.recovery-input {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 15px;
}
.manual-setup {
    font-size: 13px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}
.manual-setup summary {
    cursor: pointer;
    color: var(--muted-foreground);
}
.manual-setup[open] summary {
    margin-bottom: 14px;
}
.manual-setup .stack {
    gap: 12px;
}
.secret-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafafa;
}
.secret-row code {
    flex: 1;
    min-width: 0;
    line-height: 1.6;
}
.secret-row .icon-button {
    background: var(--card);
}
.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafafa;
}
.recovery-codes code {
    font-size: 13px;
    text-align: center;
}
.login .row {
    align-items: center;
}
.login .row > button {
    flex: 1;
}
.login > button,
.login > .button {
    width: 100%;
}
.secret-screen {
    max-width: 700px;
    display: grid;
    gap: 24px;
}
.secret-screen h1 {
    font-size: 24px;
}
dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--foreground);
    background: var(--card);
    box-shadow: 0 12px 48px #18181b22;
}
dialog::backdrop {
    background: #18181b66;
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: max-content;
    max-width: calc(100% - 32px);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 16px;
    background: var(--card);
    box-shadow: 0 4px 20px #18181b12;
    text-align: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
@media (max-width: 1100px) {
    .facts,
    .section .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .limits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .panel-topbar {
        padding: 0 16px;
        gap: 10px;
    }
    .panel-user {
        gap: 6px;
    }
    .panel-user__name {
        display: none;
    }
    .panel-user #logout {
        width: 40px;
        padding: 0;
    }
    .panel-user #logout span {
        display: none;
    }
    .panel-layout {
        flex-direction: column;
    }
    .panel-sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-basis: auto;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-label,
    .sidebar-footer {
        display: none;
    }
    .panel-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .panel-nav__link {
        padding: 8px 12px;
    }
    .panel-main {
        padding: 24px 16px;
    }
    .page-header {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    h1 {
        font-size: 23px;
    }
    .summary {
        gap: 12px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    .summary-item + .summary-item {
        padding-left: 12px;
    }
    .summary-item span {
        font-size: 11px;
        min-height: 33px;
    }
    .summary-item strong {
        font-size: 21px;
    }
    .toolbar form {
        flex-basis: 100%;
    }
    .toolbar .row > select {
        flex: 1 1 150px;
    }
    .search-field {
        flex-basis: 100%;
    }
    .settings-tool {
        padding: 16px;
    }
    .row > label {
        flex-basis: 100%;
    }
    .section .facts,
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .form-grid,
    .limits-grid {
        grid-template-columns: 1fr;
    }
    .table-action {
        width: 44px;
        height: 44px;
        min-height: 44px;
    }
    .qr-code {
        width: 224px;
        height: 224px;
    }
    .recovery-codes {
        padding: 12px;
        gap: 10px 8px;
    }
}
@media (max-width: 639px) {
    .login {
        padding: 20px;
    }
}
@media (max-width: 480px) {
    .login .panel-brand__product {
        display: none;
    }
}
@media (prefers-reduced-motion: no-preference) {
    button,
    .button,
    .tenant-name,
    .panel-nav__link {
        transition:
            background-color 0.12s,
            border-color 0.12s;
    }
}

/* Подключение MFA и резервные коды. */
.login.enrollment,
.login.recovery-login {
    width: min(672px, 100%);
}
.mfa-login {
    min-width: 0;
    gap: 24px;
}
.mfa-login .auth-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
}
.mfa-login .auth-heading > .icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--muted);
}
.mfa-login .auth-heading h1 {
    letter-spacing: -0.025em;
}
.mfa-layout {
    display: grid;
    min-width: 0;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.mfa-layout--enrollment {
    grid-template-columns: 232px minmax(0, 1fr);
}
.mfa-setup,
.mfa-confirm {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
}
.mfa-step {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.mfa-step span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--muted);
    font-size: 12px;
}
.mfa-setup .qr-code {
    height: auto;
    aspect-ratio: 1;
    align-self: center;
    border-radius: 8px;
    outline: 1px solid var(--border);
}
.mfa-app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-underline-offset: 4px;
}
.mfa-app-link:hover {
    text-decoration: underline;
}
.mfa-secret .secret-row {
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.mfa-secret code {
    overflow-wrap: anywhere;
    user-select: all;
}
.mfa-login .otp-input {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 24px;
    letter-spacing: 0.3em;
}
.mfa-login .recovery-input {
    text-align: left;
    font-size: 14px;
    letter-spacing: normal;
}
.mfa-login .mfa-method {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.recovery-login .recovery-codes {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
    border-width: 1px 0;
    border-radius: 0;
    background: transparent;
}
.recovery-codes li {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 12px 0;
}
.recovery-codes li + li {
    border-top: 1px solid var(--border);
}
.recovery-codes li > span {
    flex: 0 0 20px;
    color: var(--muted-foreground);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.recovery-codes li > code {
    min-width: 0;
    text-align: left;
    overflow-wrap: anywhere;
    line-height: 1.7;
    user-select: all;
}
@media (max-width: 639px) {
    .mfa-layout--enrollment {
        grid-template-columns: minmax(0, 1fr);
    }
    .mfa-login {
        padding: 20px;
    }
    .mfa-app-link {
        align-self: center;
    }
    .recovery-codes li {
        gap: 12px;
    }
}
