* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #f6f6f4; color: #1a1a1a; line-height: 1.5; }
.header { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; gap: .75rem; padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid #ddd; position: relative; z-index: 100; }
.header-bar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}
.header-link {
    color: #1a5f3c;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.header-link:hover { text-decoration: underline; }
.logo { font-weight: 700; text-decoration: none; color: #1a5f3c; font-size: 1.2rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.nav a { color: #333; text-decoration: none; white-space: nowrap; }
.nav a:hover { text-decoration: underline; }
.nav-cta { padding: .35rem .75rem; border: 1px solid #1a5f3c; border-radius: 6px; color: #1a5f3c !important; font-weight: 600; text-decoration: none !important; }
.nav-cta:hover { background: #e8f3ec; text-decoration: none !important; }

@media (min-width: 768px) {
    .nav-toggle { display: none !important; }
    .header-bar { flex: 1; min-width: 0; }
    .header .nav { margin-left: auto; }
}

.nav-toggle {
    display: none;
    padding: 0;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
}
.nav-toggle:hover { background: #f6f6f4; }

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 150;
}
body.nav-open .nav-backdrop { display: block; }
body.nav-open { overflow: hidden; }

.nav-profile { position: relative; }
.nav-profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: #f6f6f4;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
}
.nav-profile-btn:hover { background: #e8f3ec; border-color: #1a5f3c; color: #1a5f3c; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + .35rem);
    right: 0;
    min-width: 11rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: .5rem 0;
    z-index: 200;
}
.nav-dropdown-name {
    margin: 0;
    padding: .4rem 1rem .6rem;
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}
.nav-logout-form { margin: 0; }
.nav-dropdown-logout {
    display: block;
    width: 100%;
    padding: .55rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #666;
    font: inherit;
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
}
.nav-dropdown-logout:hover { background: #fef2f2; color: #b91c1c; }

.nav-drawer-head { display: none; }

@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(18rem, 80vw);
        height: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1.25rem 1.25rem 1.5rem;
        background: #fff;
        border-left: 1px solid #ddd;
        box-shadow: -4px 0 20px rgba(0,0,0,.1);
        transform: translateX(100%);
        transition: transform .2s ease;
        z-index: 160;
        overflow-y: auto;
    }
    body.nav-open .nav { transform: translateX(0); }
    .nav-drawer-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: .5rem;
        padding-bottom: .75rem;
        border-bottom: 1px solid #eee;
    }
    .nav-drawer-title {
        font-weight: 700;
        font-size: 1.05rem;
        color: #1a1a1a;
    }
    .nav-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        padding: 0;
        background: transparent;
        border: 1px solid #ccc;
        border-radius: 6px;
        color: #333;
        cursor: pointer;
        line-height: 0;
    }
    .nav-drawer-close:hover { background: #f6f6f4; }
    .nav a {
        padding: .85rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }
    .nav a:hover { text-decoration: none; background: #f6f6f4; margin: 0 -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    .nav-cta {
        margin-top: .5rem;
        text-align: center;
        padding: .75rem 1rem;
        border-bottom: none;
    }
    .nav-profile {
        margin-top: .5rem;
        padding-top: .5rem;
        border-top: 1px solid #eee;
    }
    .nav-profile-btn { display: none; }
    .nav-dropdown {
        position: static;
        display: block;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        min-width: 0;
    }
    .nav-dropdown[hidden] {
        display: block !important;
    }
    .nav-dropdown-name {
        margin: 0;
        padding: .65rem 0 .25rem;
        font-size: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #666;
        border-bottom: none;
    }
    .nav-dropdown-logout {
        padding: .85rem 0;
        border-bottom: 1px solid #eee;
        color: #333;
        font-size: 1rem;
    }
    .nav-dropdown-logout:hover {
        background: #f6f6f4;
        margin: 0 -1.25rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        color: #b91c1c;
    }
}
.main { max-width: 960px; margin: 0 auto; padding: 1.5rem; }
.subtitle { color: #555; }
.section-heading { font-size: 1.1rem; margin: 2rem 0 1rem; }
.breadcrumb { margin: 0 0 1rem; }
.breadcrumb a { color: #1a5f3c; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-home .main { padding-top: 1rem; }
.page-home .section-heading { margin-top: 1.25rem; }

.home-head {
    margin: 0 0 1rem;
}
.home-head h1 {
    margin: 0 0 .4rem;
    font-size: 1.5rem;
    line-height: 1.25;
}
.home-head .subtitle {
    margin: 0;
    font-size: .95rem;
    line-height: 1.45;
}

.home-search {
    margin: 0 0 .75rem;
    padding: .85rem 1rem 1rem;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.home-search-label { display: block; font-weight: 600; margin-bottom: .5rem; font-size: .95rem; }
.home-search-combobox { position: relative; max-width: none; }
.home-search-combobox input { width: 100%; padding: .75rem 1rem; border: 1px solid #ccc; border-radius: 8px; font: inherit; font-size: 1.05rem; }
.home-search-combobox input:focus { outline: 2px solid #1a5f3c; outline-offset: 1px; }

.home-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: .85rem 0 0;
    padding-top: .85rem;
    border-top: 1px solid #eee;
    font-size: .8rem;
}
.home-benefits span {
    background: #e8f3ec;
    color: #1a5f3c;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-weight: 600;
}

.home-cta {
    margin: .75rem 0 0;
    padding-top: .75rem;
    border-top: 1px solid #eee;
    font-size: .9rem;
    color: #555;
}
.home-cta-link {
    display: inline-block;
    margin: 0 .15rem;
    padding: .35rem .75rem;
    border: 1px solid #1a5f3c;
    border-radius: 6px;
    color: #1a5f3c;
    font-weight: 600;
    text-decoration: none;
}
.home-cta-link:hover {
    background: #e8f3ec;
    text-decoration: none;
}

@media (min-width: 768px) {
    .home-head h1 { font-size: 1.75rem; }
    .home-head .subtitle { max-width: 38rem; }
}
.flash { background: #fff3cd; padding: .75rem 1rem; border-radius: 6px; border: 1px solid #ffe69c; }
.hint { color: #666; font-style: italic; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.card { background: #fff; border-radius: 8px; padding: 1rem; text-decoration: none; color: inherit; border: 1px solid #e5e5e5; display: block; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: .5rem; }
.card h2 { font-size: 1rem; margin: 0 0 .25rem; }
.meta, .seller { font-size: .85rem; color: #666; margin: .25rem 0; }
.price { font-weight: 700; color: #1a5f3c; }
.form label { display: block; margin-bottom: 1rem; }
.form input, .form textarea { width: 100%; padding: .5rem; margin-top: .25rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid #1a5f3c; outline-offset: 1px; }
.form button, button { background: #1a5f3c; color: #fff; border: none; padding: .6rem 1.2rem; border-radius: 4px; cursor: pointer; font: inherit; }
.form button:hover, button:hover { background: #144a2f; }
.header .nav-toggle {
    background: transparent;
    color: #333;
    padding: .4rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.header .nav-toggle:hover { background: #f6f6f4; color: #333; }
.header .nav-drawer-close {
    background: transparent;
    color: #333;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.header .nav-drawer-close:hover { background: #f6f6f4; color: #333; }
.header .nav-profile-btn {
    background: #f6f6f4;
    color: #333;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 50%;
}
.header .nav-profile-btn:hover { background: #e8f3ec; border-color: #1a5f3c; color: #1a5f3c; }
.nav .nav-dropdown-logout {
    background: transparent;
    color: #666;
    padding: .55rem 1rem;
    border: none;
    border-radius: 0;
}
.nav .nav-dropdown-logout:hover { background: #fef2f2; color: #b91c1c; }
.location-fields { margin-bottom: 1rem; }
.field-group-label { font-weight: 600; margin: 0 0 .25rem; }
.field-hint { color: #666; font-size: .875rem; margin: 0 0 .75rem; }
.location-row { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.combobox { position: relative; }
.combobox label { display: block; margin-bottom: .25rem; font-size: .875rem; }
.combobox input { width: 100%; padding: .5rem; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
.combobox input:focus { outline: 2px solid #1a5f3c; outline-offset: 1px; }
.suggestions { list-style: none; margin: 0; padding: .25rem 0; position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 20; background: #fff; border: 1px solid #ccc; border-radius: 4px; max-height: 12rem; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.suggestions li { padding: .5rem .75rem; cursor: pointer; }
.suggestions li[role="option"]:hover,
.suggestions li[role="option"][aria-selected="true"] { background: #e3f2e8; }
.suggestions .status { color: #666; cursor: default; font-size: .875rem; }
.suggestions .status:hover { background: transparent; }
.suggestions .suggestion-plz { font-weight: 600; color: #1a5f3c; margin-right: .35rem; }
.suggestions .suggestion-primary { color: #1a1a1a; }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #444; }
.empty-state { color: #666; }

/* Listings — cards and detail */
.listing-cards { display: flex; flex-direction: column; gap: 0; }
.listing-card { display: flex; gap: .75rem; padding: .75rem 0; text-decoration: none; color: inherit; border-bottom: 1px solid #e8e8e8; align-items: stretch; background: transparent; transition: background .15s; }
.listing-card:hover { background: #fff; }
.listing-card-media { width: 6.5rem; height: 6.5rem; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: #e8e8e8; position: relative; }
.listing-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%); }
.listing-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .15rem; }
.listing-card-price { font-size: 1.1rem; font-weight: 700; color: #1a5f3c; margin: 0; }
.listing-card-title { font-size: .95rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.listing-card-meta { font-size: .8rem; color: #666; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listing-card-sold { opacity: .85; }
.listing-card-sold .listing-card-price { color: #666; }
.listing-badge-sold { position: absolute; left: .35rem; top: .35rem; background: rgba(0,0,0,.65); color: #fff; font-size: .7rem; font-weight: 600; padding: .2rem .45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; }
.listing-badge-draft { position: absolute; left: .35rem; top: .35rem; background: rgba(26,95,60,.9); color: #fff; font-size: .7rem; font-weight: 600; padding: .2rem .45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .02em; }
.listing-badge-sold-detail { left: .75rem; top: .75rem; font-size: .75rem; padding: .3rem .55rem; }
.listing-badge-draft-detail { left: .75rem; top: .75rem; font-size: .75rem; padding: .3rem .55rem; }
.listing-draft-notice { margin: 0 0 1rem; padding: .65rem .85rem; background: #eef6f0; border: 1px solid #c5e0cc; border-radius: 6px; color: #1a5f3c; font-size: .9rem; }
.listing-edit-preview { max-width: 12rem; max-height: 12rem; object-fit: cover; border-radius: 6px; display: block; margin: 0 0 .75rem; }
.listing-edit-link { display: inline-flex; align-items: center; padding: .5rem 1rem; text-decoration: none; border-radius: 6px; border: 1px solid #ccc; color: inherit; }

.listing-detail { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e5e5e5; }
.listing-detail-media { background: #e8e8e8; position: relative; }
.listing-detail-image { width: 100%; max-height: 22rem; object-fit: cover; display: block; }
.listing-detail-placeholder { width: 100%; height: 14rem; background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%); }
.listing-detail-body { padding: 1.25rem 1.5rem 1.5rem; }
.listing-detail-price { font-size: 1.5rem; font-weight: 700; color: #1a5f3c; margin: 0 0 .5rem; }
.listing-detail-title { font-size: 1.35rem; margin: 0 0 .5rem; line-height: 1.3; }
.listing-detail-meta { color: #666; margin: 0 0 .75rem; font-size: .95rem; }
.listing-detail-seller { margin: 0 0 1.25rem; font-size: .9rem; color: #555; }
.listing-detail-actions .listing-contact-form { margin: 0; }
.listing-detail-actions button { width: auto; }
.listing-owner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.listing-owner-form { margin: 0; }
.btn-delete { background: none; border: none; color: #888; padding: .4rem 0; font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; }
.btn-delete:hover { color: #c0392b; background: none; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #962d22; }
.delete-dialog { border: none; border-radius: 8px; padding: 1.25rem 1.5rem; max-width: 22rem; box-shadow: 0 8px 32px rgba(0,0,0,.18); }
.delete-dialog::backdrop { background: rgba(0,0,0,.4); }
.delete-dialog-title { font-size: 1.1rem; margin: 0 0 .5rem; }
.delete-dialog-text { color: #555; margin: 0 0 1.25rem; font-size: .95rem; }
.delete-dialog-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: flex-end; }
.delete-dialog-form { margin: 0; }
.listing-cta-bar { display: none; }

@media (min-width: 768px) {
    .listing-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
    .listing-card { flex-direction: column; padding: 0; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; }
    .listing-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }
    .listing-card-media { width: 100%; height: 10rem; border-radius: 0; }
    .listing-card-body { padding: .85rem 1rem 1rem; }
    .listing-card-price { font-size: 1.15rem; }
}

@media (max-width: 767px) {
    body:has(.listing-cta-bar) .main { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
    .listing-detail { border: none; border-radius: 0; margin: -1.5rem; }
    .listing-detail-body { padding: 1rem; }
    .listing-detail-actions .listing-contact-form { display: none; }
    .listing-cta-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .75rem 1rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
    .listing-cta-bar .listing-contact-form { margin: 0; }
    .listing-cta-bar button { width: 100%; padding: .85rem 1rem; font-size: 1rem; border-radius: 8px; }
}

/* Chat shell — mobile-first, split on desktop */
body.chat-page { min-height: 100dvh; display: flex; flex-direction: column; }
body.chat-page .header { display: none; flex-shrink: 0; }
body.chat-page .main { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; }
body.chat-page .flash { margin: 0; border-radius: 0; }
.chat-shell { display: flex; flex: 1; min-height: 0; height: auto; background: #f6f6f4; }
.chat-inbox { display: flex; flex-direction: column; width: 100%; background: #fff; border-right: 1px solid #e5e5e5; }
.chat-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; background: #fff; border-bottom: 1px solid #e5e5e5; flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
.chat-bar-title { font-size: 1.1rem; font-weight: 600; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back { display: flex; align-items: center; justify-content: center; text-decoration: none; color: #1a5f3c; font-size: 1.35rem; line-height: 1; min-width: 2.75rem; min-height: 2.75rem; flex-shrink: 0; border-radius: 6px; }
.chat-back:hover { background: #f0f0f0; }
.chat-bar-room { gap: .75rem; }
.chat-inbox-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.chat-inbox-item { border-bottom: 1px solid #f0f0f0; }
.chat-inbox-item.active { background: #e3f2e8; }
.chat-inbox-link { display: flex; gap: .75rem; padding: .75rem 1rem; text-decoration: none; color: inherit; align-items: flex-start; }
.chat-inbox-link:hover { background: #f6f6f4; }
.chat-inbox-item.active .chat-inbox-link:hover { background: #e3f2e8; }
.chat-inbox-thumb { width: 3rem; height: 3rem; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #eee; }
.chat-inbox-thumb-placeholder { display: block; }
.chat-inbox-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: .15rem; }
.chat-inbox-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.chat-inbox-title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-time { font-size: .75rem; color: #888; flex-shrink: 0; }
.chat-inbox-meta { font-size: .8rem; color: #666; }
.chat-inbox-preview { font-size: .85rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-inbox-preview-empty { color: #999; font-style: italic; }
.chat-inbox-empty { padding: 2rem 1rem; color: #666; text-align: center; }

.chat-room { display: none; flex-direction: column; flex: 1; min-width: 0; background: #f6f6f4; }
body.chat-open .chat-inbox { display: none; }
body.chat-open .chat-room { display: flex; }

.chat-room-thumb { width: 2.5rem; height: 2.5rem; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.chat-room-heading { min-width: 0; display: flex; flex-direction: column; }
.chat-room-title { font-weight: 600; text-decoration: none; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-room-title:hover { color: #1a5f3c; }
.chat-room-subtitle { font-size: .85rem; color: #666; }

.chat-room .messages { flex: 1; overflow-y: auto; padding: 1rem; margin: 0; border: none; border-radius: 0; min-height: 0; max-height: none; background: #f6f6f4; display: flex; flex-direction: column; gap: .5rem; }
.chat-room .message { max-width: 85%; padding: .6rem .85rem; border-radius: 1rem; margin: 0; background: #fff; border: 1px solid #e5e5e5; align-self: flex-start; }
.chat-room .message.mine { align-self: flex-end; background: #e3f2e8; border-color: #c8e6d0; }
.chat-room .message .sender { font-weight: 600; display: block; font-size: .8rem; color: #666; margin-bottom: .15rem; }
.chat-room .message .body { display: block; white-space: pre-wrap; word-break: break-word; }
.chat-room .message .time { display: block; font-size: .7rem; color: #888; margin-top: .25rem; text-align: right; }

.chat-composer { display: flex; gap: .5rem; align-items: flex-end; padding: .75rem 1rem; padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #e5e5e5; flex-shrink: 0; }
.chat-composer textarea { flex: 1; resize: none; min-height: 2.5rem; max-height: 7.5rem; padding: .6rem .75rem; border: 1px solid #ccc; border-radius: 1.25rem; font: inherit; line-height: 1.35; }
.chat-composer textarea:focus { outline: 2px solid #1a5f3c; outline-offset: 1px; }
.chat-composer button { flex-shrink: 0; border-radius: 1.25rem; padding: .6rem 1rem; }

.chat-room-empty { display: none; flex: 1; align-items: center; justify-content: center; color: #666; padding: 2rem; }

@media (max-width: 767px) {
    body.chat-page .main { margin: 0; padding: 0; width: 100%; max-width: none; }
    .chat-shell { width: 100%; }
}

@media (min-width: 768px) {
    body.chat-page .header { display: flex; }
    body.chat-page .main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 1rem; }
    body.chat-page .flash { margin: 0 0 .75rem; border-radius: 6px; }
    .chat-shell { min-height: 28rem; border-radius: 8px; overflow: hidden; border: 1px solid #e5e5e5; }
    .chat-inbox { display: flex; width: 20rem; flex-shrink: 0; }
    .chat-room { display: flex; }
    body.chat-open .chat-inbox { display: flex; }
    body.chat-open .chat-room { display: flex; }
    .chat-back { display: none; }
    .chat-back-home { display: none; }
    .chat-room-empty { display: flex; }
    body.chat-open .chat-room-empty { display: none; }
}

@media (max-width: 480px) {
    .location-row { grid-template-columns: 1fr; }
}
