.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-logo--login {
    width: 360px;
    max-height: 145px;
    margin: 0 auto 8px;
}

.brand-logo--admin {
    width: 197px;
    max-height: 90px;
    margin: 0 auto 22px;
}

.brand-logo--public {
    width: min(320px, 70vw);
}

.brand-logo--showcase {
    width: min(260px, 42vw);
    max-height: 95px;
}

.public-brand {
    align-self: flex-start;
}

@media (max-width: 760px) {
    .brand-logo--public {
        width: min(300px, 82vw);
    }

    .brand-logo--showcase {
        width: min(250px, 72vw);
        margin-top: 10px;
    }
}

.settings-steps {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0 12px;
}

.registration-switch {
    display: flex !important;
    align-items: center;
    gap: 14px;
    margin: 18px 0 22px !important;
    padding: 18px;
    border: 1px solid #dbe3ed;
    border-radius: 14px;
    background: #f8fafc;
    cursor: pointer;
}

.profile-id {
    display: inline-flex;
    width: max-content;
    margin: 13px 16px 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0757b5;
    font: 800 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
    letter-spacing: .04em;
}

.compression-status {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 13px;
}

.compression-status.ready {
    background: #dcfce7;
    color: #166534;
}

.compression-status.blocked {
    background: #fee2e2;
    color: #991b1b;
}

.compression-status span {
    font-size: 14px;
}

dialog .profile-id {
    margin: 0 0 10px;
}

.registration-switch input {
    width: 24px;
    height: 24px;
    accent-color: #16a34a;
}

.registration-switch b,
.registration-switch small {
    display: block;
}

.registration-switch small {
    margin-top: 3px;
    color: #64748b;
    font-weight: 500;
}

.registration-closed {
    display: grid;
    place-items: center;
    min-height: 430px;
    margin-top: 28px;
    padding: clamp(35px, 8vw, 90px) 22px;
    border: 1px solid #dbe3ed;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px #10203a12;
    text-align: center;
}

.registration-closed .closed-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff7e6;
    color: #d97706;
    font-size: 38px;
}

.registration-closed h1 {
    max-width: 760px;
    margin: 20px 0 8px;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.15;
}

.registration-closed p {
    max-width: 650px;
    margin: 0;
    color: #64748b;
    font-size: clamp(16px, 2vw, 20px);
}

.settings-steps a {
    flex: 0 0 auto;
    padding: 11px 16px;
    border: 1px solid #dbe3ed;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-weight: 750;
}

.settings-steps a.active {
    border-color: #f3a20a;
    background: #fff7e6;
    color: #9a5a00;
}

.settings-panel {
    max-width: 980px;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #dbe3ed;
    border-radius: 13px;
}

.permission-grid legend {
    padding: 0 8px;
    font-weight: 800;
}

.permission-grid input {
    width: auto;
}

.admin-user-list,
.audit-list {
    display: grid;
    gap: 9px;
}

.admin-user-list article,
.audit-list article {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.admin-user-list span,
.audit-list span,
.audit-list small {
    display: block;
    color: #64748b;
}

.profile-delete-zone {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
    color: #7f1d1d;
}

.profile-delete-zone p {
    margin: 6px 0 12px;
}

.profile-delete-zone form,
.profile-delete-zone button {
    width: 100%;
}

.rating-badge {
    color: #b77900;
    font-weight: 900;
}

.admin-profile-note {
    padding: 14px;
    border: 1px solid #dbe3ed;
    border-radius: 10px;
    background: #f8fafc;
    white-space: normal;
    overflow-wrap: anywhere;
}

.admin-note-field {
    display: block;
    margin-top: 14px;
}

.admin-note-field textarea {
    width: 100%;
    resize: vertical;
}

.profile-edit-zone {
    margin-top: 24px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
}

.profile-edit-zone summary {
    padding: 15px 16px;
    color: #0757b5;
    font-weight: 800;
    cursor: pointer;
}

.profile-edit-form {
    padding: 0 16px 16px;
}

.profile-edit-form .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-edit-form label > span,
.upload-progress {
    display: block;
    margin: 5px 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.edit-language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 14px 0;
}

.gallery-removal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.gallery-removal img {
    width: 100%;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
}

.gallery-removal span {
    text-align: center;
}

@media (max-width: 760px) {
    .profile-edit-form .grid,
    .gallery-removal {
        grid-template-columns: 1fr 1fr;
    }
    .permission-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-list article,
    .audit-list article {
        grid-template-columns: 1fr;
    }
}
