/* Registration */
.voirdrama-register-page {
    box-sizing: border-box;
    width: 100%;
    padding: 54px 15px 64px;
    background: linear-gradient(180deg, #f7f7f9 0, #fff 300px);
}

.site-info-slot:not(:empty) + #registration .voirdrama-register-page,
.site-info-slot:not(:empty) + #userinfo .voirdrama-profile-page {
    padding-top: 0;
}

.voirdrama-register-card {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #e1e2e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(20, 22, 28, .07);
}

.voirdrama-register-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: #c41f32;
    content: "";
}

.voirdrama-register-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececef;
}

.voirdrama-register-header h1 {
    margin: 0 0 8px;
    color: #202126;
    font-size: 28px;
    line-height: 1.2;
}

.voirdrama-register-header p {
    max-width: 600px;
    margin: 0;
    color: #6f727a;
    font-size: 14px;
    line-height: 1.65;
}

.voirdrama-register-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.voirdrama-register-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
}

.voirdrama-register-field--wide {
    grid-column: 1 / -1;
}

.voirdrama-register-field label {
    margin: 0;
    color: #34363d;
    font-size: 13px;
    font-weight: 700;
}

.voirdrama-register-field label span {
    color: #c41f32;
}

#registration .voirdrama-register-field input,
#registration .voirdrama-register-field textarea,
#registration .voirdrama-register-field select {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d8dae0;
    border-radius: 6px;
    background: #fff;
    color: #292b30;
    font-size: 14px;
    outline: none;
}

#registration .voirdrama-register-field textarea {
    min-height: 120px;
    resize: vertical;
}

#registration .voirdrama-register-field input[type="file"] {
    height: auto;
    padding: 9px;
    background: #f8f8fa;
}

#registration .voirdrama-register-field input:focus,
#registration .voirdrama-register-field textarea:focus,
#registration .voirdrama-register-field select:focus {
    border-color: #c41f32;
    box-shadow: 0 0 0 3px rgba(196, 31, 50, .1);
}

.voirdrama-register-field small {
    color: #858890;
    font-size: 12px;
    line-height: 1.45;
}

.voirdrama-register-username {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.voirdrama-register-username input {
    flex: 1 1 auto;
}

#registration .voirdrama-register-check {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid #d8dae0;
    border-radius: 6px;
    background: #f5f5f7;
    color: #3f4249;
    font-size: 13px;
    font-weight: 700;
}

#registration .voirdrama-register-check:hover,
#registration .voirdrama-register-check:focus-visible {
    border-color: #c41f32;
    background: #fff;
    color: #c41f32;
}

.voirdrama-register-check-result:empty {
    display: none;
}

.voirdrama-register-check-result {
    font-size: 12px;
}

.voirdrama-register-question {
    margin: 0;
    color: #5f626a;
    font-size: 13px;
}

.voirdrama-register-captcha {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.voirdrama-register-captcha__image {
    display: flex;
    flex: 0 0 160px;
    min-height: 80px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #d8dae0;
    border-radius: 6px;
    background: #f5f5f7;
}

.voirdrama-register-captcha__image a,
.voirdrama-register-captcha__image img {
    display: block;
}

#registration .voirdrama-register-captcha input {
    min-width: 0;
    min-height: 80px;
}

.voirdrama-register-recaptcha {
    align-items: center;
}

.voirdrama-register-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #ececef;
}

#registration .voirdrama-register-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 21px;
    border: 1px solid #c41f32;
    border-radius: 6px;
    background: #c41f32;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

#registration .voirdrama-register-submit:hover,
#registration .voirdrama-register-submit:focus-visible {
    border-color: #a7192a;
    background: #a7192a;
}

.voirdrama-register-actions p {
    margin: 0;
    color: #777a82;
    font-size: 13px;
}

.voirdrama-register-actions a {
    color: #c41f32;
    font-weight: 700;
}

.voirdrama-register-xfields:empty {
    display: none;
}

.voirdrama-register-xfields table {
    width: 100%;
}

@media (max-width: 767px) {
    .voirdrama-search-panel {
        padding: 18px;
    }

    .voirdrama-search-panel__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .voirdrama-search-panel__header p {
        text-align: left;
    }

    .voirdrama-search-grid,
    .voirdrama-register-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .voirdrama-search-control--wide,
    .voirdrama-search-control--categories,
    .voirdrama-register-field--wide {
        grid-column: auto;
    }

    .voirdrama-register-page {
        padding: 28px 12px 46px;
    }

    .voirdrama-register-card {
        padding: 26px 20px;
        border-radius: 10px;
    }

    .voirdrama-register-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .voirdrama-search-control__pair,
    .voirdrama-register-username,
    .voirdrama-register-captcha,
    .voirdrama-register-actions {
        align-items: stretch;
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
    }

    .voirdrama-search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .voirdrama-register-captcha__image {
        flex-basis: auto;
        align-self: flex-start;
    }

    #registration .voirdrama-register-captcha input {
        min-height: 46px;
    }
}

/* User profile and profile editor */
.voirdrama-profile-card {
    max-width: 860px;
}

.voirdrama-profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #ececef;
}

.voirdrama-profile-avatar {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
}

.voirdrama-profile-avatar img {
    display: block;
    width: 96px;
    height: 96px;
    box-sizing: border-box;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dfe0e4, 0 8px 22px rgba(20, 22, 28, .12);
}

.voirdrama-profile-presence {
    position: absolute;
    right: -4px;
    bottom: -5px;
}

.voirdrama-profile-presence__badge {
    display: inline-flex;
    min-height: 24px;
    box-sizing: border-box;
    align-items: center;
    padding: 4px 8px;
    color: #686b72;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: #f0f1f3;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(20, 22, 28, .1);
}

.voirdrama-profile-presence__badge.is-online {
    color: #287343;
    background: #e8f6ed;
}

.voirdrama-profile-identity {
    min-width: 0;
    flex: 1 1 auto;
}

.voirdrama-profile-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #c41f32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.voirdrama-profile-identity h1 {
    overflow: hidden;
    margin: 0 0 5px;
    color: #202126;
    font-size: 28px;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.voirdrama-profile-identity p {
    margin: 0;
    color: #73767e;
    font-size: 14px;
    line-height: 1.5;
}

#userinfo .voirdrama-profile-edit-toggle {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    color: #34363d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    background: #fff;
    border: 1px solid #d8dae0;
    border-left: 3px solid #c41f32;
    border-radius: 6px;
}

#userinfo .voirdrama-profile-edit-toggle:hover,
#userinfo .voirdrama-profile-edit-toggle:focus-visible {
    color: #c41f32;
    background: #fff;
    border-color: #c41f32;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 31, 50, .1);
}

.voirdrama-profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.voirdrama-profile-stat {
    display: flex;
    min-width: 0;
    min-height: 76px;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 13px;
    background: #f8f8fa;
    border: 1px solid #ececef;
    border-radius: 8px;
}

.voirdrama-profile-stat span,
.voirdrama-profile-detail > span {
    color: #858890;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.35;
    text-transform: uppercase;
}

.voirdrama-profile-stat strong {
    overflow: hidden;
    color: #303239;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.voirdrama-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.voirdrama-profile-detail {
    min-width: 0;
    padding: 14px;
    color: #555860;
    font-size: 13px;
    line-height: 1.65;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 8px;
}

.voirdrama-profile-detail--wide {
    grid-column: 1 / -1;
}

.voirdrama-profile-detail > span {
    display: block;
    margin-bottom: 6px;
}

.voirdrama-profile-detail strong {
    color: #34363d;
}

.voirdrama-profile-detail p:last-child {
    margin-bottom: 0;
}

.voirdrama-profile-edit {
    display: none;
    margin-top: 28px;
    padding-top: 30px;
    border-top: 1px solid #e4e5e9;
}

.voirdrama-profile-edit-header h2 {
    margin: 0 0 8px;
    color: #202126;
    font-size: 25px;
    line-height: 1.25;
}

.voirdrama-profile-section + .voirdrama-profile-section {
    margin-top: 29px;
    padding-top: 27px;
    border-top: 1px solid #ececef;
}

.voirdrama-profile-section__header {
    margin-bottom: 17px;
}

.voirdrama-profile-section__header h3 {
    margin: 0 0 4px;
    color: #292b30;
    font-size: 17px;
    line-height: 1.35;
}

.voirdrama-profile-section__header p {
    margin: 0;
    color: #7a7d85;
    font-size: 13px;
    line-height: 1.55;
}

#userinfo .voirdrama-register-field > input:not([type="checkbox"]):not([type="radio"]),
#userinfo .voirdrama-register-field > textarea,
#userinfo .voirdrama-register-field > select {
    display: block;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #292b30;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    border: 1px solid #d8dae0;
    border-radius: 6px;
    outline: none;
}

#userinfo .voirdrama-register-field > textarea {
    min-height: 118px;
    resize: vertical;
}

#userinfo .voirdrama-register-field > input[type="file"] {
    height: auto;
    padding: 9px;
    background: #f8f8fa;
}

#userinfo .voirdrama-register-field > input:not([type="checkbox"]):not([type="radio"]):focus,
#userinfo .voirdrama-register-field > textarea:focus,
#userinfo .voirdrama-register-field > select:focus {
    border-color: #c41f32;
    box-shadow: 0 0 0 3px rgba(196, 31, 50, .1);
}

.voirdrama-profile-option {
    display: flex;
    min-width: 0;
    flex-direction: row;
    align-items: flex-start;
    gap: 9px;
    color: #555860;
    font-size: 13px;
    line-height: 1.5;
}

.voirdrama-profile-option:empty {
    display: none;
}

.voirdrama-profile-option input[type="checkbox"],
.voirdrama-profile-option input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #c41f32;
}

.voirdrama-profile-option label {
    margin: 0;
    color: #555860;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.voirdrama-profile-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 18px;
}

.voirdrama-profile-xfields:empty {
    display: none;
}

#userinfo .voirdrama-profile-xfields table {
    width: 100%;
}

#userinfo .voirdrama-profile-xfields input:not([type="checkbox"]):not([type="radio"]),
#userinfo .voirdrama-profile-xfields textarea,
#userinfo .voirdrama-profile-xfields select {
    max-width: 100%;
    box-sizing: border-box;
}

.voirdrama-profile-advanced {
    margin-top: 29px;
    padding: 0;
    overflow: hidden;
    background: #fafafa;
    border: 1px solid #e3e4e8;
    border-radius: 8px;
}

.voirdrama-profile-advanced summary {
    padding: 14px 16px;
    color: #44474e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
}

.voirdrama-profile-advanced[open] summary {
    border-bottom: 1px solid #e3e4e8;
}

.voirdrama-profile-advanced > .voirdrama-register-field {
    padding: 17px 17px 0;
}

.voirdrama-profile-warning {
    margin: 13px 17px 17px;
    padding: 10px 12px;
    color: #7a4b19;
    font-size: 12px;
    line-height: 1.5;
    background: #fff8eb;
    border-left: 3px solid #d99a36;
    border-radius: 4px;
}

#userinfo .voirdrama-profile-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 21px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    background: #c41f32;
    border: 1px solid #c41f32;
    border-radius: 6px;
}

#userinfo .voirdrama-profile-submit:hover,
#userinfo .voirdrama-profile-submit:focus-visible {
    color: #fff;
    background: #a7192a;
    border-color: #a7192a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 31, 50, .14);
}

@media (max-width: 767px) {
    .voirdrama-profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 16px;
    }

    .voirdrama-profile-avatar,
    .voirdrama-profile-avatar img {
        width: 82px;
        height: 82px;
    }

    .voirdrama-profile-avatar {
        flex-basis: 82px;
    }

    .voirdrama-profile-identity h1 {
        font-size: 24px;
    }

    #userinfo .voirdrama-profile-edit-toggle {
        width: 100%;
    }

    .voirdrama-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voirdrama-profile-details,
    .voirdrama-profile-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .voirdrama-profile-detail--wide {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .voirdrama-profile-hero {
        align-items: center;
    }

    .voirdrama-profile-stat {
        min-height: 70px;
        padding: 11px;
    }

    .voirdrama-profile-edit {
        margin-top: 23px;
        padding-top: 24px;
    }

    .voirdrama-profile-edit-header h2 {
        font-size: 22px;
    }

    .voirdrama-profile-actions {
        align-items: stretch;
    }

    #userinfo .voirdrama-profile-submit {
        width: 100%;
    }
}
