.account-page {
    width: 100%; max-width: 76rem; margin: 0 auto; padding: 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.account-page--narrow { max-width: 50rem; }
.account-heading, .account-toolbar, .account-dialog-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.account-heading h1 { font-size: 1.75rem; font-weight: 900; color: #18382d; }
.account-heading p, .account-muted { color: #718078; font-size: .875rem; line-height: 1.6; }
.account-hero {
    padding: 2rem; border-radius: 1.5rem; color: white;
    background: linear-gradient(135deg, #174d3b, #0f7a54); box-shadow: 0 10px 24px #174d3b20;
}
.account-hero h2 { font-size: 1.125rem; font-weight: 800; }
.account-hero p { color: #d1fae5; margin-top: .5rem; line-height: 1.6; }
.account-hero-count { font-size: 2.5rem; font-weight: 900; margin-right: .5rem; }
.account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.neighbor-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.25rem; text-align: left;
    border: 1px solid #e0ece5; border-radius: 1.25rem; background: white; cursor: pointer;
}
.neighbor-card:hover { border-color: #0f7a54; box-shadow: 0 6px 20px #174d3b0c; }
.neighbor-avatar {
    position: relative;
    width: 3.5rem; height: 3.5rem; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: #e8f4ec; color: #0f7a54; display: inline-flex; align-items: center; justify-content: center;
}
.neighbor-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.neighbor-info { flex: 1; min-width: 0; }
.neighbor-info strong { display: block; overflow-wrap: anywhere; color: #18382d; }
.account-more { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.account-dialog {
    width: calc(100% - 2rem); max-width: 48rem; max-height: calc(100dvh - 2rem);
    margin: auto; overflow-y: auto; border-radius: 1.5rem; background: #f7faf8; color: #18382d;
}
.account-dialog-header { padding: 1.25rem 1.5rem; background: white; border-bottom: 1px solid #e0ece5; }
.account-dialog-header h2 { font-size: 1.125rem; font-weight: 900; }
.account-dialog-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.neighbor-profile { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.neighbor-plants, .my-post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.neighbor-plant, .my-post-card { border: 1px solid #e0ece5; border-radius: 1.25rem; overflow: hidden; background: white; }
.my-post-card > button { text-align: left; }
.account-card-image {
    width: 100%; aspect-ratio: 1; object-fit: cover; display: flex; align-items: center;
    justify-content: center; background: #e8f4ec; color: #80b49a; font-size: 2rem;
}
.account-card-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.account-card-body h2, .account-card-body h3 { font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.account-card-actions { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 1rem 1rem; }
.account-delete { color: #e11d48; }
.account-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.account-tab {
    border: 1px solid #e0ece5; border-radius: 999px; padding: .5rem 1rem;
    background: white; font-size: .875rem; font-weight: 700; color: #52635c; cursor: pointer;
}
.account-tab.is-active { background: #174d3b; border-color: #174d3b; color: white; }
.account-panel { padding: 1.5rem; border: 1px solid #e0ece5; border-radius: 1.5rem; background: white; }
.account-panel h2 { font-size: 1.125rem; font-weight: 800; margin-bottom: .75rem; }
.openchat-input-row { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.openchat-input-row .form-input { flex: 1; min-width: 0; }
.openchat-guide-image { width: 100%; max-height: 55dvh; object-fit: contain; background: #111512; border-radius: 1rem; }
.openchat-guide-caption h3 { font-size: 1.125rem; font-weight: 800; margin-bottom: .5rem; }
.account-feedback { min-height: 1.5rem; font-size: .875rem; margin-top: .5rem; color: #0f7a54; }
.account-feedback.is-error { color: #e11d48; }
.account-page button:focus-visible, .account-dialog button:focus-visible, .my-post-card a:focus-visible {
    outline: 3px solid #80b49a; outline-offset: 3px;
}
@media (max-width: 1100px) { .my-post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .account-page { padding: 1.25rem 1rem 2rem; }
    .account-list, .my-post-list { grid-template-columns: 1fr; }
    .neighbor-plants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-hero { padding: 1.5rem; }
    .openchat-input-row { flex-wrap: wrap; }
    .openchat-input-row .form-input { flex-basis: 100%; }
    .account-dialog-body { padding: 1rem; }
}
