
.stat{
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.profile_img{
    width: 70px;
    height: 70px;
    border-radius: var(--spacer-4);
}

.profile_img_edit{
    width: 100px;
    height: 100px;
    border-radius: 0px;
}

.avatar-file-input {
    display: none;
}

#avatarBackdrop {
    display: none;
}

#avatarBackdrop.show {
    display: block;
}

#avatarModal {
    visibility: hidden;
}

#avatarModal.open {
    visibility: visible;
}

.drawer#avatarModal .drawer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: center;
}

.avatar-crop-stage {
    display: flex;
    justify-content: center;
    width: 100%;
}

.avatar-crop-viewport {
    position: relative;
    width: min(320px, 84vw);
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border1);
    touch-action: none;
}

.avatar-crop-viewport img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: top left;
    user-select: none;
    touch-action: none;
}


.avatar-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    display: none;
}

.avatar-preview canvas {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--bg2);
    border: 1px solid var(--border1);
}

.avatar-range {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--gray1);
    width: 100%;
}

@media (max-width: 600px) {
    .drawer#avatarModal .drawer-content {
        grid-template-columns: 1fr;
    }

    .avatar-preview {
        flex-direction: row;
        justify-content: space-between;
    }
}

.profile-row img {
    width: var(--spacer-4);
    height: var(--spacer-4);
}

.profile-value {
    color: var(--gray1);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.drawer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacer-2);
    padding: 0 var(--spacer-4) var(--spacer-4);
}

.sheet-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border1);
    background: var(--bg1);
    color: var(--black1);
    font-size: var(--spacer-4);
}

.sheet-input:disabled {
    background: var(--bg2);
    color: var(--gray1);
}

.sheet-help {
    font-size: 12px;
    color: var(--gray1);
}

.sheet-error {
    font-size: 12px;
    color: #dc2626;
    min-height: 16px;
}

.sheet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sheet-options {
    display: flex;
    flex-direction: column;
}

.sheet-option {
    text-align: left;
}

.sheet-option.is-selected {
    background: var(--gt2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-card{
    background: var(--bg1);
    margin-bottom: var(--spacer-2);
    border-radius: var(--spacer-4);
    overflow: hidden;
}

.profile-empty-listing{
    position: absolute;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacer-8);
    margin-top: var(--spacer-12);
}
