.community-photo-upload {
    margin: 18px 0;
    border: 1px solid #d7e6df;
    border-radius: 16px;
    background: #f7fbf9;
    overflow: hidden;
}

.community-photo-upload summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #073f31;
}

.community-photo-upload summary::-webkit-details-marker {
    display: none;
}

.community-photo-upload summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 999px;
    background: #087f5b;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.community-photo-upload[open] summary::after {
    content: "−";
}

.community-photo-upload__body {
    padding: 0 16px 16px;
    border-top: 1px solid #e0ebe6;
}

.community-photo-upload__intro {
    margin: 14px 0 12px;
    color: #435a51;
    line-height: 1.55;
}

.community-photo-upload__notice,
.community-photo-upload__success,
.community-photo-upload__error {
    margin: 12px 0;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.community-photo-upload__notice {
    background: #eef6f2;
    color: #284b3e;
}

.community-photo-upload__success {
    background: #e4f7ee;
    color: #07583f;
    border: 1px solid #bfe8d7;
}

.community-photo-upload__error {
    background: #fff1f1;
    color: #842029;
    border: 1px solid #f2c7ca;
}

.community-photo-upload__error ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.community-photo-upload__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.community-photo-upload__stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #d7e6df;
    font-size: 13px;
    color: #395248;
}

.community-photo-upload__stat strong {
    color: #0b3d30;
}

.community-photo-upload__field {
    display: block;
    margin-top: 12px;
}

.community-photo-upload__field > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
    color: #102f25;
}

.community-photo-upload input[type="file"] {
    display: block;
    width: 100%;
    min-height: 54px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px dashed #8eb8a7;
    border-radius: 12px;
    background: #fff;
    color: #17372c;
    font: inherit;
}

.community-photo-upload input[type="file"]:focus-visible,
.community-photo-upload button:focus-visible,
.community-photo-login:focus-visible {
    outline: 3px solid rgba(8, 127, 91, .28);
    outline-offset: 2px;
}

.community-photo-upload__help {
    display: block;
    margin-top: 7px;
    color: #566b62;
    font-size: 13px;
    line-height: 1.45;
}

.community-photo-upload__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.community-photo-upload button,
.community-photo-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 11px;
    background: #087f5b;
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.community-photo-upload button:hover,
.community-photo-login:hover {
    background: #066b4c;
}

.community-photo-login-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid #d7e6df;
    border-radius: 16px;
    background: #f7fbf9;
}

.community-photo-login-box p {
    margin: 0;
    color: #435a51;
}

@media (max-width: 700px) {
    .community-photo-upload,
    .community-photo-login-box {
        border-radius: 13px;
    }

    .community-photo-upload summary {
        min-height: 48px;
        padding: 10px 12px;
    }

    .community-photo-upload__body {
        padding: 0 12px 13px;
    }

    .community-photo-login-box {
        align-items: stretch;
        flex-direction: column;
    }

    .community-photo-login {
        width: 100%;
    }
}
