/* Модалка анонимного аккаунта (только обычная JS-версия) */
/* Account Modal */
.account-modal {
    background: var(--kn-panel);
    color: var(--text-main);
    border: 1px solid var(--kn-border-strong);
    border-radius: var(--kn-r-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.account-modal .btn-close {
    filter: invert(1) grayscale(100%);
}
.account-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--kn-r-lg);
    background: rgba(147, 197, 253, 0.12);
    color: var(--brand-blue-light);
    font-size: 1.7rem;
    margin-bottom: 14px;
}
.account-step {
    display: none;
}
.account-step.active {
    display: block;
}
.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    margin: 24px 0;
}
.account-divider::before,
.account-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.account-key-box {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    color: #f8fafc;
    overflow-x: auto;
    white-space: nowrap;
    word-break: normal;
}
.account-copy-label {
    display: inline;
}
.account-warning {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    border-radius: 8px;
    padding: 10px 12px;
}
.account-captcha-image {
    min-height: 64px;
    width: 180px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
}
.account-alert {
    display: none;
}
.account-alert.active {
    display: block;
}
.account-notice {
    display: none;
}
.account-notice.active {
    display: block;
}
.account-forum-fields {
    max-height: min(42vh, 360px);
    overflow-y: auto;
    padding-right: 4px;
}
.account-forum-row {
    margin-right: 0;
    margin-left: 0;
}
.account-forum-control {
    height: 38px;
    min-height: 38px;
}
.account-forum-remove {
    width: 38px;
    height: 38px;
    padding: 0;
}
.account-forum-actions > * {
    flex: 1 1 0;
}
.account-forum-actions form {
    display: flex;
    margin: 0;
}
.account-lock .btn-close,
.account-lock [data-account-step="login"] {
    display: none !important;
}
