/* KISURE FE912 - prediction Blade hardening + member profile avatar */

.ks-ref-avatar {
    overflow: hidden;
    padding: 0;
    isolation: isolate;
}

.ks-ref-avatar.has-image {
    background: var(--ks-surface, #fff);
    border: 1px solid color-mix(in srgb, var(--ks-primary, #0B9CA0) 35%, transparent);
}

.ks-ref-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: inherit;
    background: transparent;
}

.ks-ref-avatar > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.ks-member-profile-form {
    display: grid;
    gap: 12px;
}

.ks-member-profile-photo {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(11, 156, 160, .18);
    border-radius: 16px;
    background: rgba(232, 247, 247, .52);
}

.ks-member-profile-photo__preview {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(11, 156, 160, .30);
    background: #0B9CA0;
    color: #fff;
    font-size: 28px;
    font-weight: 850;
}

.ks-member-profile-photo__preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: inherit;
}

.ks-member-profile-photo__copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.ks-member-profile-photo__copy > label:first-child {
    font-weight: 800;
    color: var(--ks-text, #132f33);
}

.ks-member-profile-photo__copy p,
.ks-member-profile-photo__copy small {
    margin: 0;
    color: var(--ks-muted, #65767d);
    line-height: 1.4;
}

.ks-member-profile-photo__pick {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(11, 156, 160, .34);
    border-radius: 999px;
    background: #fff;
    color: #087C78;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.ks-member-profile-photo__pick:hover,
.ks-member-profile-photo__pick:focus-within {
    transform: translateY(-1px);
    border-color: #0B9CA0;
    background: #E8F7F7;
}

.ks-member-profile-photo__copy input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ks-member-profile-error {
    color: #b42318;
    font-weight: 700;
}

html[data-theme="dark"] .ks-ref-avatar.has-image {
    background: #10282b;
    border-color: rgba(110, 224, 224, .38);
}

html[data-theme="dark"] .ks-member-profile-photo {
    background: rgba(11, 156, 160, .10);
    border-color: rgba(110, 224, 224, .22);
}

html[data-theme="dark"] .ks-member-profile-photo__preview {
    border-color: rgba(232, 247, 247, .38);
}

html[data-theme="dark"] .ks-member-profile-photo__copy > label:first-child {
    color: #f1fbfb;
}

html[data-theme="dark"] .ks-member-profile-photo__copy p,
html[data-theme="dark"] .ks-member-profile-photo__copy small {
    color: #b6c7ca;
}

html[data-theme="dark"] .ks-member-profile-photo__pick {
    background: #112729;
    border-color: rgba(110, 224, 224, .30);
    color: #e8f7f7;
}

html[data-theme="dark"] .ks-member-profile-photo__pick:hover,
html[data-theme="dark"] .ks-member-profile-photo__pick:focus-within {
    background: #16383a;
    border-color: #0B9CA0;
}

@media (max-width: 560px) {
    .ks-member-profile-photo {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 11px;
        padding: 12px;
    }

    .ks-member-profile-photo__preview {
        width: 72px;
        height: 72px;
        font-size: 23px;
    }
}
