:root {
    --bg: #f7f9f8;
    --surface: #ffffff;
    --surface-soft: #eef5f1;
    --ink: #17201d;
    --muted: #65726d;
    --line: #dfe6e1;
    --primary: #078f72;
    --primary-dark: #056c57;
    --accent: #f35f49;
    --danger: #a5363d;
    --warning: #9a6818;
    --blue: #2f5f91;
    --shadow: 0 8px 24px rgba(22, 46, 39, 0.07);
}

/* Profile redesign based on the approved responsive mockup. */
.profile-page {
    background: #f7f9f8;
}

.container-profile {
    margin: 0 auto;
    max-width: 1220px;
    padding: 30px 24px 70px;
}

.profile-form-shell {
    display: grid;
    gap: 20px;
}

.profile-page-head {
    max-width: 720px;
}

.profile-page-head h1 {
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 8px;
}

.profile-page-head .lead {
    margin-bottom: 0;
}

.profile-hero-card,
.profile-section-card,
.profile-aside-card {
    background: #fff;
    border: 1px solid #dfe7e4;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(24, 67, 55, 0.04);
}

.profile-hero-card {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: 128px minmax(0, 1fr) minmax(280px, 360px);
    min-height: 142px;
    padding: 20px 26px;
}

.profile-photo-action {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.profile-change-photo {
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: 7px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 5px;
    min-height: 30px;
    padding: 5px 10px;
}

.profile-change-photo:hover {
    background: #effaf6;
}

.profile-change-photo:focus-within,
.profile-photo-picker:focus-within {
    outline: 3px solid rgba(0, 143, 112, 0.2);
    outline-offset: 2px;
}

.profile-crop-dialog {
    background: transparent;
    border: 0;
    color: var(--ink);
    margin: auto;
    max-height: calc(100dvh - 32px);
    max-width: min(92vw, 520px);
    padding: 0;
    width: 100%;
}

.profile-crop-dialog::backdrop {
    backdrop-filter: blur(3px);
    background: rgba(12, 28, 23, 0.68);
}

.profile-crop-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(5, 34, 26, 0.26);
    display: grid;
    gap: 18px;
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 22px;
}

.profile-crop-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.profile-crop-head h2 {
    font-size: 21px;
    margin: 0 0 5px;
}

.profile-crop-head p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.profile-crop-close {
    align-items: center;
    background: #f0f4f2;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.profile-crop-close:hover,
.profile-crop-close:focus-visible {
    background: #e2ebe7;
    outline: 3px solid rgba(0, 143, 112, 0.18);
}

.profile-crop-viewport {
    aspect-ratio: 1;
    background: #dce5e1;
    border-radius: 50%;
    cursor: grab;
    justify-self: center;
    max-width: 340px;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
    width: 100%;
}

.profile-crop-viewport:active {
    cursor: grabbing;
}

.profile-crop-viewport:focus-visible {
    outline: 4px solid rgba(0, 143, 112, 0.28);
    outline-offset: 4px;
}

.profile-crop-viewport img {
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    width: 100%;
}

.profile-crop-guide {
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 0 0 999px rgba(7, 31, 24, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    inset: 7%;
    pointer-events: none;
    position: absolute;
}

.profile-crop-tip {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    gap: 6px;
    justify-content: center;
    margin: -6px 0 0;
}

.profile-crop-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1.3fr;
}

.profile-crop-actions .button {
    min-height: 44px;
    width: 100%;
}

.profile-hero-identity h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.profile-hero-identity > p {
    color: var(--muted);
    margin-bottom: 10px;
}

.profile-trust-badge,
.profile-state-badge {
    align-items: center;
    background: #f1f4f3;
    border-radius: 999px;
    color: #4e5d58;
    display: inline-flex;
    font-size: 11px;
    font-weight: 750;
    gap: 5px;
    padding: 6px 9px;
}

.profile-trust-badge.is-verified,
.profile-identity-card.is-verified .profile-state-badge {
    background: #e5f6f0;
    color: #087a61;
}

.profile-hero-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-contact-quota {
    align-items: center;
    background: #f4faf7;
    border: 1px solid #cfe7df;
    border-radius: 999px;
    color: #43534e;
    display: inline-flex;
    font-size: 11px;
    gap: 5px;
    padding: 5px 9px;
}

.profile-quota-actions {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-contact-quota strong {
    color: var(--primary-dark);
    font-size: inherit;
}

.profile-quota-topup {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 4px;
    min-height: 29px;
    padding: 5px 10px;
    text-decoration: none;
}

.profile-quota-topup:hover,
.profile-quota-topup:focus-visible {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.profile-progress-copy,
.profile-aside-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.profile-progress-copy strong {
    font-size: 14px;
}

.profile-progress-copy span,
.profile-aside-heading > span {
    color: #43534e;
    font-size: 12px;
}

.profile-progress {
    background: #e8edeb;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
    width: 100%;
}

.profile-progress > span {
    background: linear-gradient(90deg, #008f70, #0aa57f);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.profile-hero-progress .profile-progress {
    margin: 10px 0 8px;
}

.profile-hero-progress > p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.profile-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 290px;
}

.profile-form-sections,
.profile-aside {
    display: grid;
    gap: 14px;
}

.profile-aside {
    position: sticky;
    top: 92px;
}

.profile-section-card {
    overflow: hidden;
}

.profile-section-summary {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    list-style: none;
    padding: 16px 18px 14px;
    pointer-events: none;
}

.profile-section-summary::-webkit-details-marker {
    display: none;
}

.profile-section-icon {
    align-items: center;
    border: 1px solid #d9e5e1;
    border-radius: 999px;
    color: #163b31;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.profile-section-heading strong,
.profile-section-heading small {
    display: block;
}

.profile-section-heading strong {
    color: #17201e;
    font-size: 17px;
    margin-bottom: 2px;
}

.profile-section-heading small {
    color: var(--muted);
    font-size: 11px;
}

.profile-section-summary > .app-icon:last-child,
.profile-mobile-summary {
    display: none;
}

.profile-section-body {
    border-top: 1px solid #eef2f0;
    padding: 16px 18px 18px;
}

.profile-fields-grid {
    display: grid;
    gap: 13px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-occupation-field,
.profile-roommate-field {
    grid-column: 1 / -1;
    max-width: 65%;
}

.profile-fields-grid .field > label {
    color: #27332f;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 6px;
}

.profile-fields-grid .input,
.profile-fields-grid .select,
.profile-fields-grid .textarea {
    border-color: #d4dfdb;
    min-height: 42px;
}

.profile-fields-grid .textarea {
    min-height: 82px;
}

.profile-area-control {
    align-items: center;
    border: 1px solid #d4dfdb;
    border-radius: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 44px;
    padding: 5px 8px;
}

.profile-area-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 143, 112, 0.12);
}

.profile-area-chips {
    display: contents;
}

.profile-area-chip {
    align-items: center;
    background: #f3f6f5;
    border: 1px solid #dfe7e4;
    border-radius: 7px;
    color: #34443f;
    display: inline-flex;
    font-size: 11px;
    gap: 5px;
    max-width: 180px;
    padding: 6px 8px;
}

.profile-area-chip > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-area-chip button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #66756f;
    cursor: pointer;
    display: inline-flex;
    font-size: 16px;
    height: 18px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 18px;
}

.profile-area-chip button:hover,
.profile-area-chip button:focus-visible {
    color: var(--danger);
}

.profile-area-control > input[type="text"] {
    border: 0;
    flex: 1 1 170px;
    min-height: 30px;
    min-width: 150px;
    outline: none;
    padding: 4px;
}

.profile-area-control:not(.has-chips) > input[type="text"] {
    flex-basis: 100%;
}

.profile-money-field {
    align-items: center;
    display: flex;
    position: relative;
}

.profile-money-field > span {
    color: #586762;
    font-size: 12px;
    font-weight: 750;
    left: 12px;
    position: absolute;
    z-index: 1;
}

.profile-money-field .input {
    padding-left: 36px;
}

.profile-lifestyle-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-choice-field {
    align-items: center;
    border: 1px solid #d9e3e0;
    border-radius: 9px;
    display: grid;
    gap: 2px 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    min-width: 0;
    padding: 10px;
}

.profile-choice-field > .app-icon {
    color: #173d33;
    font-size: 22px;
    grid-row: 1 / 3;
}

.profile-choice-field > span {
    color: var(--muted);
    font-size: 9px;
}

.profile-choice-field > select {
    appearance: auto;
    background: transparent;
    border: 0;
    color: #1f2b27;
    font-size: 11px;
    font-weight: 750;
    min-width: 0;
    outline: none;
    padding: 0;
    width: 100%;
}

.profile-choice-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 143, 112, 0.12);
}

.profile-pet-toggle {
    align-items: center;
    border-top: 1px solid #eef2f0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
}

.profile-pet-toggle > span:first-child {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    gap: 8px;
}

.profile-pet-toggle input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.profile-switch {
    background: #cfd8d5;
    border-radius: 999px;
    height: 24px;
    position: relative;
    transition: background 160ms ease;
    width: 42px;
}

.profile-switch::after {
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(23, 32, 29, 0.2);
    content: '';
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease;
    width: 18px;
}

.profile-pet-toggle input:checked + .profile-switch {
    background: var(--primary);
}

.profile-pet-toggle input:checked + .profile-switch::after {
    transform: translateX(18px);
}

.profile-pet-toggle input:focus-visible + .profile-switch {
    outline: 3px solid rgba(0, 143, 112, 0.22);
    outline-offset: 2px;
}

.profile-form-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 2px;
}

.profile-form-actions .button {
    min-width: 150px;
}

.profile-aside-card {
    padding: 18px;
}

.profile-aside-card h2 {
    font-size: 17px;
    margin: 0;
}

.profile-aside-heading {
    margin-bottom: 11px;
}

.profile-checklist {
    display: grid;
    gap: 11px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.profile-checklist li {
    align-items: center;
    color: #65746f;
    display: flex;
    font-size: 11px;
    gap: 9px;
}

.profile-checklist li > span {
    align-items: center;
    border: 1px dashed #91a19c;
    border-radius: 999px;
    display: inline-flex;
    height: 20px;
    justify-content: center;
    width: 20px;
}

.profile-checklist li.is-complete {
    color: #34443f;
}

.profile-checklist li.is-complete > span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.profile-checklist .app-icon {
    font-size: 14px;
}

.profile-identity-card {
    background: #f6faf9;
}

.profile-identity-card.is-verified {
    background: linear-gradient(145deg, #f4fcf9, #ecf8f4);
    border-color: #bfe2d7;
}

.profile-identity-card.is-rejected {
    background: #fff7f6;
    border-color: #efcbc7;
}

.profile-identity-heading {
    align-items: center;
    display: flex;
    gap: 12px;
}

.profile-identity-icon {
    align-items: center;
    background: #e3f5ef;
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.profile-identity-icon .app-icon {
    font-size: 25px;
}

.profile-identity-heading h2 {
    margin-bottom: 5px;
}

.profile-identity-card > p,
.profile-access-card > p {
    color: #5d6d67;
    font-size: 12px;
    line-height: 1.55;
    margin: 14px 0;
}

.profile-identity-card .button {
    width: 100%;
}

.profile-access-card > strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin: -8px 0 16px;
}

.profile-access-actions {
    display: grid;
    gap: 8px;
}

.profile-access-actions .button {
    width: 100%;
}

@media (max-width: 980px) {
    .profile-hero-card {
        grid-template-columns: 120px minmax(0, 1fr) minmax(240px, 300px);
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-aside {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        position: static;
    }

    .profile-lifestyle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container-profile {
        padding: 18px 14px 104px;
    }

    .profile-form-shell {
        gap: 14px;
    }

    .profile-page-head .eyebrow {
        display: none;
    }

    .profile-page-head h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .profile-page-head .lead {
        font-size: 13px;
        line-height: 1.45;
    }

    .profile-hero-card {
        gap: 10px 12px;
        grid-template-columns: 62px minmax(0, 1fr);
        min-height: 0;
        padding: 14px;
    }

    .profile-photo-action {
        align-self: start;
    }

    .profile-photo-picker,
    .profile-avatar-lg {
        height: 58px;
        width: 58px;
    }

    .profile-photo-picker img.profile-avatar-lg {
        height: 100%;
        width: 100%;
    }

    .profile-change-photo {
        display: none;
    }

    .profile-crop-dialog {
        max-height: calc(100dvh - 20px);
        max-width: calc(100vw - 20px);
    }

    .profile-crop-card {
        gap: 14px;
        max-height: calc(100dvh - 20px);
        padding: 16px;
    }

    .profile-crop-head h2 {
        font-size: 18px;
    }

    .profile-crop-viewport {
        max-width: min(72vw, 310px);
    }

    .profile-photo-overlay {
        font-size: 0;
        opacity: 0;
    }

    .profile-photo-overlay .app-icon {
        font-size: 18px;
    }

    .profile-hero-identity h2 {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .profile-hero-identity > p {
        display: none;
    }

    .profile-trust-badge {
        font-size: 9px;
        padding: 5px 7px;
    }

    .profile-hero-badges {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .profile-contact-quota {
        font-size: 9px;
        padding: 5px 7px;
    }

    .profile-quota-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        width: 100%;
    }

    .profile-quota-topup {
        font-size: 9px;
        justify-content: center;
        min-height: 27px;
        padding: 4px 8px;
    }

    .profile-contact-quota > span {
        display: none;
    }

    .profile-hero-progress {
        grid-column: 1 / -1;
        margin-top: 4px;
    }

    .profile-hero-progress > p {
        display: none;
    }

    .profile-progress-copy strong,
    .profile-progress-copy span {
        font-size: 11px;
    }

    .profile-hero-progress .profile-progress {
        margin-bottom: 0;
    }

    .profile-form-sections {
        gap: 10px;
    }

    .profile-section-card {
        border-radius: 10px;
    }

    .profile-section-summary {
        cursor: pointer;
        gap: 9px;
        grid-template-columns: 34px minmax(0, 1fr) 22px;
        padding: 13px;
        pointer-events: auto;
    }

    .profile-section-summary:focus-visible {
        outline: 3px solid rgba(0, 143, 112, 0.2);
        outline-offset: -3px;
    }

    .profile-section-icon {
        height: 32px;
        width: 32px;
    }

    .profile-section-heading strong {
        font-size: 14px;
    }

    .profile-section-heading small {
        display: none;
    }

    .profile-mobile-summary {
        color: var(--muted);
        display: block;
        font-size: 10px;
        grid-column: 2;
        margin-top: 2px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-section-summary > .app-icon:last-child {
        display: inline-block;
        grid-column: 3;
        grid-row: 1 / 3;
        transition: transform 160ms ease;
    }

    .profile-accordion[open] > .profile-section-summary > .app-icon:last-child {
        transform: rotate(180deg);
    }

    .profile-section-body {
        padding: 13px;
    }

    .profile-fields-grid,
    .profile-lifestyle-grid {
        grid-template-columns: 1fr;
    }

    .profile-occupation-field,
    .profile-roommate-field {
        max-width: none;
    }

    .profile-choice-field {
        min-height: 54px;
    }

    .profile-form-actions {
        background: rgba(247, 249, 248, 0.96);
        bottom: 69px;
        margin: 0 -2px;
        padding: 8px 2px;
        position: sticky;
        z-index: 25;
    }

    .profile-form-actions .button-secondary {
        display: none;
    }

    .profile-form-actions .button-primary {
        min-height: 46px;
        width: 100%;
    }

    .profile-aside {
        grid-template-columns: 1fr;
    }

    .profile-completion-card,
    .profile-access-card {
        display: none;
    }

    .profile-identity-card {
        order: -1;
    }

    .profile-identity-card > p {
        margin-bottom: 0;
    }

    .profile-identity-card:not(.is-verified) > p {
        margin-bottom: 14px;
    }
}

@media (max-width: 620px) {
    .profile-page .footer {
        display: none;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Public Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 0.125rem 0.375rem 0 rgba(67, 89, 113, 0.12);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
}

.brand {
    align-items: center;
    display: flex;
    gap: 10px;
    font-size: 16px;
    font-weight: 850;
}

.brand-mark {
    align-items: center;
    background: #696cff;
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-size: 13px;
    height: 34px;
    place-items: center;
    width: 38px;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nav a,
.nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    gap: 6px;
    padding: 9px 11px;
}

.app-icon {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.button .app-icon,
.badge .app-icon {
    font-size: 16px;
}

.nav a:hover,
.nav button:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.language-switch {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 2px;
    padding: 2px;
}

.language-switch a {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    padding: 6px 8px;
}

.language-switch a.is-active {
    background: var(--primary);
    color: #fff;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 26px 22px 58px;
}

.page-head {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.breadcrumb {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
    margin-bottom: 18px;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 750;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.eyebrow {
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0 0 6px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 10px;
}

h2 {
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 12px;
}

h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 7px;
}

.lead {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.58;
    max-width: 720px;
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-2 {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.card,
.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 18px;
}

.search-band {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
}

.filters {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
}

.filters-compact {
    grid-template-columns: minmax(180px, 260px) auto auto;
}

.field {
    display: grid;
    gap: 6px;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.field label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.field-help {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.input[readonly] {
    background: #f4f7f6;
    color: var(--muted);
    cursor: not-allowed;
}

.auth-switch {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.check-row {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 9px;
    line-height: 1.4;
}

.auth-form-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.auth-inline-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.password-input-wrap {
    display: grid;
    position: relative;
}

.password-input-wrap .input {
    padding-right: 46px;
}

.password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: var(--surface-soft);
    color: var(--primary);
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(7, 143, 114, 0.28);
    outline-offset: 2px;
}

.password-toggle .password-hide-icon,
.password-toggle.is-visible .password-show-icon {
    display: none;
}

.password-toggle.is-visible .password-hide-icon {
    display: inline-flex;
}

.input,
.select,
.textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    min-height: 40px;
    padding: 9px 10px;
    width: 100%;
}

.textarea {
    min-height: 110px;
    resize: vertical;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    text-align: center;
    white-space: nowrap;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: #fff;
    border-color: var(--line);
    color: #566a7f;
}

.button-secondary:hover {
    background: var(--surface-soft);
}

.button-danger {
    background: #fff5f4;
    border-color: #f1c5c3;
    color: var(--danger);
}

.listing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.listing-card {
    overflow: hidden;
}

.clickable-card {
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clickable-card:hover {
    border-color: #cfd2ff;
    box-shadow: 0 14px 32px rgba(67, 89, 113, 0.14);
    transform: translateY(-1px);
}

.listing-gallery {
    background: var(--surface-soft);
    display: grid;
    gap: 8px;
    padding: 8px;
    position: relative;
}

.listing-main-photo {
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

.listing-image {
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
    display: block;
    object-fit: cover;
    transition: opacity 180ms ease, transform 220ms ease;
    width: 100%;
}

.listing-image.is-changing,
.detail-gallery-image.is-changing {
    opacity: 0;
    transform: translateX(10px);
}

.listing-gallery-detail {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 10px;
}

.detail-main-photo {
    background: var(--surface-soft);
    border-radius: 8px;
    overflow: hidden;
}

.detail-gallery-image {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    transition: opacity 180ms ease, transform 220ms ease;
    width: 100%;
}

.listing-thumbs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.listing-thumb {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.listing-thumb img {
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    width: 100%;
}

.listing-thumb.is-active {
    border-color: #696cff;
}

.detail-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-nav {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #566a7f;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    top: calc((100% - 70px) / 2);
    transform: translateY(-50%);
    width: 34px;
    z-index: 2;
}

.gallery-nav:hover {
    background: #696cff;
    color: #fff;
}

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.listing-body {
    display: grid;
    gap: 12px;
    padding: 15px;
}

.listing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-actions .button {
    flex: 1 1 130px;
}

.listing-actions-detail .button {
    flex: 0 1 auto;
}

.listing-actions-detail {
    margin-top: 12px;
}

.listing-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    gap: 8px;
}

.listing-meta span,
h2 {
    align-items: center;
    display: flex;
    gap: 6px;
}

.listing-meta .listing-distance {
    color: var(--primary);
    font-weight: 800;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.badge {
    align-items: center;
    background: #eef2ff;
    border: 1px solid #d9ddff;
    border-radius: 999px;
    color: #696cff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 5px;
    padding: 5px 8px;
}

.badge-warning {
    background: #fff7e8;
    border-color: #f1d6a7;
    color: var(--warning);
}

.badge-danger {
    background: #fff5f4;
    border-color: #f1c5c3;
    color: var(--danger);
}

.score {
    align-items: center;
    display: flex;
    gap: 10px;
}

.score-bar {
    background: #e5ebe7;
    border-radius: 999px;
    flex: 1;
    height: 9px;
    overflow: hidden;
}

.score-fill {
    background: #696cff;
    height: 100%;
}

.side-stack {
    display: grid;
    gap: 14px;
}

.muted {
    color: var(--muted);
}

.price {
    font-size: 20px;
    font-weight: 900;
}

.divider {
    background: var(--line);
    height: 1px;
    margin: 14px 0;
}

.flash {
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.flash-success {
    background: #eaf6ef;
    border: 1px solid #c8e8d4;
    color: #1f5c38;
}

.flash-error {
    background: #fff5f4;
    border: 1px solid #f1c5c3;
    color: var(--danger);
}

.flash-info {
    background: #effcf8;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.auth-email-feedback {
    margin: 0;
}

.error-state {
    margin: 48px auto;
    max-width: 680px;
    text-align: center;
}

.error-state-code {
    color: #d6eee7;
    display: block;
    font-size: clamp(64px, 14vw, 124px);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 0.9;
    margin-bottom: 20px;
}

.error-state .flash {
    margin: 24px auto;
    max-width: 520px;
}

.error-state .flash p {
    margin: 6px 0 0;
}

.error-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full {
    grid-column: 1 / -1;
}

.hero-visual {
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
    padding: 15px;
}

.metric strong {
    display: block;
    font-size: 28px;
    line-height: 1.1;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.table-list {
    display: grid;
    gap: 10px;
}

.queue-item {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr auto;
    padding: 14px;
}

.grid-3 .queue-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
}

.payment-row {
    align-items: flex-start;
}

.photo-strip,
.listing-photo-preview-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.listing-photo-upload {
    background: #f8fbfa;
    border: 1px solid #d8e8e3;
    border-radius: 10px;
    padding: 14px;
}

.photo-upload-card {
    align-items: center;
    background: #fff;
    border: 1px dashed #93cdbd;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-height: 190px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.photo-upload-card:hover,
.photo-upload-card.is-dragover {
    border-color: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 150, 118, 0.12);
    transform: translateY(-1px);
}

.photo-upload-icon {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.photo-upload-icon .app-icon {
    font-size: 24px;
}

.photo-upload-title {
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.photo-upload-copy {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    max-width: 480px;
}

.photo-upload-button {
    pointer-events: none;
}

.photo-upload-status {
    min-height: 18px;
}

.listing-photo-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    flex: 0 0 180px;
    gap: 8px;
    margin: 0;
    padding: 8px;
}

.listing-photo-card figcaption {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-with-addon {
    align-items: stretch;
    display: flex;
    min-width: 0;
}

.input-with-addon .input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    min-width: 0;
}

.input-with-addon > span {
    align-items: center;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
}

.thumb {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.contact-request-form {
    display: grid;
    gap: 16px;
}

.contact-request-form .field {
    margin: 0;
}

.contact-request-state {
    align-items: flex-start;
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    gap: 11px;
    margin-top: 14px;
    padding: 14px;
}

.contact-request-state-icon {
    align-items: center;
    background: #fff3d9;
    border-radius: 50%;
    color: #9a6818;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.contact-request-state.is-accepted .contact-request-state-icon {
    background: #e5f6f0;
    color: var(--primary-dark);
}

.contact-request-state.is-rejected .contact-request-state-icon {
    background: #fff0f0;
    color: var(--danger);
}

.contact-request-state h3 {
    font-size: 15px;
    margin: 1px 0 4px;
}

.contact-request-state p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.contact-owner-phone {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 6px;
    margin-top: 10px;
}

.contact-quota-offer {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.contact-quota-copy {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.contact-quota-copy h3 {
    font-size: 16px;
    margin: 0 0 4px;
}

.contact-quota-copy p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.contact-quota-icon {
    align-items: center;
    background: var(--surface-soft);
    border-radius: 9px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.contact-quota-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-quota-option {
    background: #f8fbfa;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.contact-quota-option > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.contact-quota-option > strong {
    color: var(--ink);
    font-size: 18px;
}

.contact-quota-option .button {
    min-height: 36px;
    padding-inline: 8px;
    width: 100%;
}

@media (max-width: 640px) {
    .contact-quota-options {
        grid-template-columns: 1fr;
    }

    .contact-quota-option {
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .contact-quota-option > strong {
        text-align: right;
    }

    .contact-quota-option .button {
        grid-column: 1 / -1;
    }
}

.empty {
    background: var(--surface);
    border: 1px dashed #bdc9c3;
    border-radius: 8px;
    color: var(--muted);
    padding: 24px;
    text-align: center;
}

.role-card {
    box-shadow: none;
    display: grid;
    gap: 8px;
}

.role-card.is-active {
    border-color: var(--primary);
    outline: 3px solid #d9eee6;
}

.mini-listing-grid {
    display: grid;
    gap: 12px;
}

.mini-listing {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 116px 1fr;
    padding: 10px;
}

.mini-listing img {
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    object-fit: cover;
    width: 100%;
}

.next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Account dashboard */
.dashboard-page {
    background: #f4f6f5;
}

.container-dashboard {
    max-width: 1400px;
    padding: 32px 32px 72px;
}

.dashboard-shell {
    display: grid;
    gap: 22px;
}

.dashboard-overview {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(300px, 0.8fr) minmax(620px, 1.6fr);
    padding: 8px 6px 0;
}

.dashboard-welcome h1 {
    font-size: clamp(30px, 3vw, 40px);
    margin-bottom: 10px;
}

.dashboard-welcome > p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 12px;
    max-width: 390px;
}

.dashboard-verification {
    align-items: center;
    background: #f5f0e5;
    border-radius: 6px;
    color: #876015;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    gap: 6px;
    padding: 6px 9px;
}

.dashboard-verification.is-verified {
    background: #e5f5ef;
    color: var(--primary-dark);
}

.dashboard-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.dashboard-welcome-actions .button {
    min-width: 148px;
}

.dashboard-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metric-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    min-height: 142px;
    padding: 18px;
}

.dashboard-metric-card > .app-icon {
    color: var(--primary);
    font-size: 28px;
    margin-bottom: 16px;
}

.dashboard-metric-card span {
    align-self: end;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-metric-card strong {
    font-size: 25px;
    line-height: 1.1;
    margin-top: 5px;
}

.dashboard-content-grid {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-areas:
        "recommendation next"
        "activity room"
        "activity safety";
    grid-template-columns: minmax(0, 1fr) 330px;
}

.dashboard-section-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-width: 0;
    padding: 20px;
}

.dashboard-section-card h2 {
    font-size: 19px;
    margin: 0;
}

.dashboard-section-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dashboard-section-heading > a,
.dashboard-inline-link,
.dashboard-centered-link,
.dashboard-safety a {
    align-items: center;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    gap: 3px;
}

.dashboard-recommendations {
    grid-area: recommendation;
}

.dashboard-recommendation-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-room-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
}

.dashboard-room-photo {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    position: relative;
}

.dashboard-room-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.dashboard-room-photo > span {
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 10px;
    font-weight: 800;
    gap: 3px;
    padding: 5px 6px;
    position: absolute;
    right: 7px;
    top: 7px;
}

.dashboard-room-photo > span .app-icon {
    font-size: 12px;
}

.dashboard-room-body {
    padding: 12px;
}

.dashboard-room-body h3,
.dashboard-owned-room h3 {
    display: -webkit-box;
    font-size: 15px;
    margin-bottom: 6px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-room-location,
.dashboard-room-trust {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 11px;
    gap: 4px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.dashboard-room-location .app-icon,
.dashboard-room-trust .app-icon {
    font-size: 13px;
}

.dashboard-room-price {
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 850;
    margin-bottom: 9px;
}

.dashboard-room-price span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.dashboard-room-trust {
    color: #446058;
    margin-bottom: 0;
}

.dashboard-room-trust .app-icon {
    color: var(--primary);
}

.dashboard-next-card {
    grid-area: next;
}

.dashboard-progress-copy {
    align-items: center;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin: 22px 0 8px;
}

.dashboard-progress-copy strong {
    color: var(--muted);
    font-size: 12px;
}

.dashboard-progress {
    background: #edf0ee;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.dashboard-progress span {
    background: var(--primary);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.dashboard-action-list {
    display: grid;
    gap: 2px;
    margin: 15px 0;
}

.dashboard-action-item {
    align-items: center;
    border-radius: 8px;
    display: grid;
    gap: 9px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding: 8px 2px;
}

.dashboard-action-item:hover,
.dashboard-action-item:focus-visible {
    background: #f6faf8;
}

.dashboard-action-icon {
    align-items: center;
    background: #ddf3eb;
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.dashboard-action-item.is-warning .dashboard-action-icon {
    background: #fff0d7;
    color: #ad710b;
}

.dashboard-action-item strong,
.dashboard-action-item small {
    display: block;
}

.dashboard-action-item strong {
    font-size: 12px;
    margin-bottom: 2px;
}

.dashboard-action-item small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.dashboard-action-item > .app-icon {
    color: var(--muted);
    font-size: 17px;
}

.dashboard-continue {
    justify-content: center;
    width: 100%;
}

.dashboard-activity {
    grid-area: activity;
}

.dashboard-activity-list {
    display: grid;
}

.dashboard-activity-item {
    align-items: center;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: 38px 96px minmax(0, 1fr) auto 92px;
    min-width: 0;
    padding: 10px 0;
}

.dashboard-activity-item:first-child {
    border-top: 0;
}

.dashboard-activity-avatar {
    align-items: center;
    background: #e7efec;
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 13px;
    font-weight: 850;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    width: 38px;
}

.dashboard-activity-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.dashboard-activity-photo {
    background: var(--surface-soft);
    border-radius: 6px;
    height: 54px;
    object-fit: cover;
    width: 96px;
}

.dashboard-photo-fallback {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    justify-content: center;
}

.dashboard-activity-copy {
    min-width: 0;
}

.dashboard-activity-copy strong,
.dashboard-activity-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-activity-copy strong {
    font-size: 13px;
    margin-bottom: 3px;
}

.dashboard-activity-copy small,
.dashboard-activity-time {
    color: var(--muted);
    font-size: 10px;
}

.dashboard-activity-time {
    align-items: center;
    display: inline-flex;
    gap: 4px;
    white-space: nowrap;
}

.dashboard-status {
    background: #edf2f0;
    border-radius: 6px;
    color: #4f625d;
    display: inline-flex;
    font-size: 10px;
    font-weight: 750;
    justify-content: center;
    padding: 6px 9px;
    white-space: nowrap;
}

.dashboard-status.is-pending,
.dashboard-status.is-draft {
    background: #fff2d8;
    color: #a86400;
}

.dashboard-status.is-accepted,
.dashboard-status.is-approved {
    background: #e4f4ee;
    color: #087157;
}

.dashboard-status.is-rejected,
.dashboard-status.is-expired {
    background: #fbe9e8;
    color: #a5363d;
}

.dashboard-centered-link {
    justify-content: center;
    margin-top: 12px;
    width: 100%;
}

.dashboard-my-room {
    grid-area: room;
}

.dashboard-my-room > h2 {
    margin-bottom: 16px;
}

.dashboard-owned-room {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 112px minmax(0, 1fr);
}

.dashboard-owned-room > img {
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.dashboard-owned-room .dashboard-status {
    margin-bottom: 8px;
}

.dashboard-owned-room .dashboard-room-price,
.dashboard-owned-room .dashboard-room-location {
    margin-bottom: 5px;
}

.dashboard-inline-link {
    margin-top: 15px;
}

.dashboard-safety {
    align-items: flex-start;
    display: grid;
    gap: 15px;
    grid-area: safety;
    grid-template-columns: 50px minmax(0, 1fr);
}

.dashboard-safety-icon {
    align-items: center;
    border: 3px solid var(--primary);
    border-radius: 13px 13px 18px 18px;
    color: var(--primary);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 44px;
}

.dashboard-safety-icon .app-icon {
    font-size: 25px;
}

.dashboard-safety h2 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 5px;
}

.dashboard-safety p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    margin-bottom: 10px;
}

.dashboard-empty-state {
    align-items: center;
    background: #f8fbfa;
    border: 1px dashed #b7d0c8;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    min-height: 220px;
    padding: 24px;
    text-align: center;
}

.dashboard-empty-state > .app-icon {
    color: var(--primary);
    font-size: 28px;
}

.dashboard-empty-state strong {
    font-size: 14px;
}

.dashboard-empty-state p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    max-width: 420px;
}

.dashboard-empty-state.is-compact {
    min-height: 150px;
}

.dashboard-admin-grid {
    margin-top: 18px;
}

.dashboard-mobile-nav {
    display: none;
}

.benefit-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefit-list li {
    align-items: flex-start;
    color: var(--muted);
    display: flex;
    gap: 9px;
    line-height: 1.45;
}

.profile-summary {
    align-items: center;
    display: flex;
    gap: 14px;
}

.profile-photo-field {
    align-items: center;
    display: grid;
    gap: 10px;
    justify-items: start;
}

.profile-photo-picker {
    border-radius: 999px;
    cursor: pointer;
    display: inline-grid;
    height: 96px;
    overflow: hidden;
    position: relative;
    touch-action: none;
    user-select: none;
    width: 96px;
}

.profile-photo-picker:hover .profile-photo-overlay,
.profile-photo-picker:focus-within .profile-photo-overlay {
    opacity: 1;
}

.profile-photo-overlay {
    align-items: center;
    background: rgba(23, 32, 29, 0.68);
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    gap: 5px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    text-align: center;
    transition: opacity 160ms ease;
}

.profile-avatar {
    align-items: center;
    aspect-ratio: 1;
    background: #eef2ff;
    border: 1px solid #d9ddff;
    border-radius: 999px;
    color: #696cff;
    display: grid;
    flex: 0 0 auto;
    font-weight: 900;
    height: 58px;
    object-fit: cover;
    object-position: 50% 50%;
    place-items: center;
    text-transform: uppercase;
    width: 58px;
}

.profile-avatar.is-hidden {
    display: none;
}

.profile-avatar-lg {
    height: 96px;
    width: 96px;
}

.profile-photo-picker .profile-avatar-lg {
    grid-area: 1 / 1;
}

.profile-photo-picker img.profile-avatar-lg {
    height: 100%;
    max-width: 100%;
    position: static;
    transform: none;
    width: 100%;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.review-flow {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 14px;
}

.review-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.review-step strong {
    font-size: 14px;
}

.review-step span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.review-step.is-active {
    border-color: #696cff;
    box-shadow: 0 0 0 3px rgba(105, 108, 255, 0.14);
}

.review-step.is-done strong {
    color: var(--primary);
}

.admin-review-panel {
    border-color: #d7d8ff;
    box-shadow: 0 12px 28px rgba(105, 108, 255, 0.12);
}

.review-data-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.review-data-grid > div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.review-data-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.review-data-grid strong {
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.identity-review-panel {
    grid-column: 1 / -1;
    padding: 0;
    overflow: hidden;
}

.identity-review-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 22px;
}

.identity-review-head h2 {
    display: block;
    font-size: 34px;
    margin-bottom: 8px;
}

.identity-review-head .breadcrumb {
    margin-bottom: 10px;
}

.identity-review-workspace {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: 640px;
}

.identity-review-queue {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 18px;
}

.identity-review-queue h3,
.identity-review-detail h3 {
    margin-bottom: 0;
}

.identity-review-tabs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.identity-review-tabs a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    min-height: 42px;
}

.identity-review-tabs a.is-active {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

.identity-review-tabs span {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    padding: 0 6px;
}

.identity-review-list {
    display: grid;
    gap: 8px;
}

.identity-review-person {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    padding: 12px;
}

.identity-review-person.is-active {
    background: #f2fbf8;
    border-color: #a7d9cd;
    box-shadow: inset 4px 0 0 var(--primary);
}

.identity-review-person strong,
.identity-review-person small {
    display: block;
    overflow-wrap: anywhere;
}

.identity-review-person small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.identity-review-person em {
    background: #fff7e8;
    border: 1px solid #f1d6a7;
    border-radius: 7px;
    color: var(--warning);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    padding: 6px 8px;
}

.identity-review-detail {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 22px;
}

.identity-review-user {
    align-items: center;
    display: flex;
    gap: 16px;
}

.identity-review-user h3 {
    font-size: 24px;
}

.identity-sensitive-note {
    align-items: center;
    background: #edf8f4;
    border: 1px solid #bde5da;
    border-radius: 8px;
    color: var(--primary-dark);
    display: flex;
    font-size: 13px;
    gap: 10px;
    padding: 10px 12px;
}

.identity-document-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.identity-document-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.identity-document-card img {
    aspect-ratio: 16 / 9;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    object-fit: contain;
    width: 100%;
}

.identity-document-card .button {
    justify-self: end;
}

.identity-review-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
}

.identity-checklist {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
}

.identity-checklist input {
    accent-color: var(--primary);
    height: 18px;
    width: 18px;
}

.identity-review-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin: 4px -22px -22px;
    padding: 16px 22px;
}

.identity-review-actions p {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0 auto 0 0;
}

@media (max-width: 980px) {
    .filters,
    .grid-2,
    .listing-grid,
    .grid-3,
    .stats,
    .pricing-grid,
    .review-data-grid {
        grid-template-columns: 1fr;
    }

    .page-head,
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        overflow-x: auto;
        width: 100%;
    }

    .queue-item {
        grid-template-columns: 1fr;
    }

    .mini-listing {
        grid-template-columns: 1fr;
    }

    .identity-review-workspace,
    .identity-document-grid,
    .identity-review-form-grid {
        grid-template-columns: 1fr;
    }

    .identity-review-queue {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .identity-review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .identity-review-actions p {
        margin-right: 0;
    }
}

/* Discovery experience inspired by the approved room-sharing mockup. */
.topbar {
    min-height: 72px;
    padding: 0 34px;
}

.brand {
    font-size: 18px;
    letter-spacing: -0.025em;
}

.brand-mark {
    background: #e7f7f2;
    border: 1px solid #bde5da;
    color: var(--primary);
    height: 38px;
    width: 38px;
}

.brand-mark .app-icon {
    font-size: 23px;
}

.nav {
    align-self: stretch;
    gap: 18px;
}

.nav a,
.nav button {
    border-radius: 0;
    font-weight: 700;
    padding: 25px 4px 21px;
    position: relative;
}

.nav a:hover,
.nav button:hover {
    background: transparent;
    color: var(--primary);
}

.nav a.is-active {
    color: var(--primary);
}

.nav a.is-active::after {
    background: var(--primary);
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
}

.topbar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.topbar-actions form {
    margin: 0;
}

.topbar-actions .button {
    min-height: 38px;
    padding-inline: 14px;
}

.account-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    padding: 8px;
}

.topbar-notification {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 40px;
}

.topbar-notification .app-icon {
    font-size: 21px;
}

.topbar-notification > span {
    background: var(--primary);
    border: 2px solid #fff;
    border-radius: 999px;
    height: 9px;
    position: absolute;
    right: 7px;
    top: 6px;
    width: 9px;
}

.account-profile-link {
    color: var(--ink);
    font-weight: 700;
}

.account-profile-link > .app-icon {
    color: var(--muted);
    font-size: 16px;
}

.topbar-avatar {
    background: #e7efec;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 36px;
    height: 36px;
    object-fit: cover;
    width: 36px;
}

.topbar-avatar-fallback {
    align-items: center;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 850;
    justify-content: center;
}

.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    list-style: none;
    width: 40px;
}

.mobile-menu-toggle::-webkit-details-marker {
    display: none;
}

.mobile-menu-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 18px 44px rgba(23, 32, 29, 0.16);
    display: grid;
    gap: 4px;
    min-width: min(86vw, 320px);
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 50;
}

.mobile-menu-panel a,
.mobile-menu-panel button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-weight: 750;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    text-align: left;
    width: 100%;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a.is-active,
.mobile-menu-panel button:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.mobile-menu-panel form {
    margin: 0;
}

.mobile-menu-divider {
    background: var(--line);
    height: 1px;
    margin: 5px 0;
}

.mobile-menu-language {
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
}

.container-discovery {
    max-width: 1540px;
    padding: 22px 22px 46px;
}

.discovery-intro {
    margin: 0 auto 18px;
    max-width: 880px;
    text-align: center;
}

.discovery-intro h1 {
    font-size: clamp(28px, 3.4vw, 42px);
    margin-bottom: 8px;
}

.discovery-intro > p:last-child {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 720px;
}

.discovery-form {
    display: grid;
    gap: 0;
}

.discovery-accordion {
    min-width: 0;
}

.discovery-accordion-summary {
    display: none;
}

.discovery-searchbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(30, 59, 51, 0.05);
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.9fr 1fr 1fr auto;
    overflow: visible;
    padding: 10px;
}

.search-control-location {
    position: relative;
    z-index: 4;
}

.search-control {
    border-right: 1px solid var(--line);
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 5px 16px;
}

.search-control label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.search-control select,
.search-control input {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    min-width: 0;
    outline: 0;
    padding: 0;
    width: 100%;
}

.search-control-value {
    align-items: center;
    display: flex;
    gap: 6px;
}

.search-control-value select {
    flex: 1;
}

.search-control-value .app-icon {
    color: var(--muted);
}

.location-search-value input {
    flex: 1;
}

.location-search-value button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 4px;
}

.location-search-value button:focus-visible {
    border-radius: 5px;
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.location-search-value button:disabled {
    cursor: wait;
    opacity: 0.55;
}

.location-suggestions {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(22, 46, 39, 0.16);
    display: grid;
    left: 0;
    max-height: 280px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1000;
}

.location-suggestions[hidden] {
    display: none;
}

.location-suggestions button {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf1ef;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    line-height: 1.45;
    padding: 12px 14px;
    text-align: left;
}

.location-suggestions button:hover,
.location-suggestions button:focus-visible {
    background: var(--primary-soft);
    outline: 0;
}

.location-suggestions p {
    color: var(--muted);
    margin: 0;
    padding: 13px 14px;
}

.discovery-location-suggestions {
    left: 8px;
    right: 8px;
}

.discovery-reset-row .is-error,
.location-picker-status.is-error {
    color: var(--danger);
    font-weight: 700;
}

.listing-location-picker {
    background: #f8fbfa;
    border: 1px solid #d8e8e3;
    border-radius: 10px;
    gap: 14px;
    padding: 16px;
}

.location-picker-heading {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.location-picker-heading label {
    color: var(--ink);
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.location-picker-heading p,
.location-picker-status {
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.location-private-badge {
    align-items: center;
    background: #e8f5f1;
    border: 1px solid #c6e4da;
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    padding: 7px 10px;
}

.location-picker-search {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    position: relative;
}

.location-picker-search .location-suggestions {
    right: 142px;
}

.listing-location-map {
    background: #e7efec;
    border: 1px solid #d3dfdb;
    border-radius: 9px;
    height: 360px;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.listing-location-map.is-unavailable {
    align-items: center;
    display: flex;
    justify-content: center;
}

.map-unavailable {
    color: var(--muted);
    line-height: 1.55;
    max-width: 520px;
    padding: 24px;
    text-align: center;
}

.listing-location-map .leaflet-control-attribution {
    font-size: 10px;
}

.listing-location-map .leaflet-pane,
.listing-location-map .leaflet-control {
    z-index: auto;
}

.search-control input::placeholder {
    color: #8b9893;
}

.discovery-submit {
    align-self: stretch;
    margin-left: 10px;
    min-width: 128px;
}

.discovery-reset-row {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    min-height: 50px;
    padding: 8px 10px;
}

.discovery-reset-row a {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    gap: 6px;
    font-weight: 700;
}

.discovery-layout {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: 230px minmax(0, 1fr);
}

.discovery-extra-accordion > .discovery-sidebar {
    height: 100%;
}

.discovery-sidebar,
.discovery-results-column {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(30, 59, 51, 0.05);
}

.discovery-sidebar {
    padding: 16px;
}

.filter-heading {
    align-items: center;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    padding-bottom: 14px;
}

.filter-heading a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 750;
}

.filter-group {
    border-top: 1px solid var(--line);
    padding: 15px 0;
}

.filter-group h2 {
    display: block;
    font-size: 12px;
    margin-bottom: 11px;
}

.filter-group p {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 10px;
}

.filter-option {
    align-items: center;
    color: #52615c;
    cursor: pointer;
    display: flex;
    font-size: 12px;
    gap: 8px;
    min-height: 28px;
}

.filter-option input {
    accent-color: var(--primary);
    height: 14px;
    width: 14px;
}

.filter-check {
    align-items: center;
    border: 1px solid #cfd9d5;
    border-radius: 3px;
    color: transparent;
    display: inline-flex;
    height: 14px;
    justify-content: center;
    width: 14px;
}

.filter-check .app-icon {
    font-size: 11px;
}

.filter-option.is-selected {
    color: var(--primary);
    font-weight: 800;
}

.filter-option.is-selected .filter-check {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.range-visual {
    align-items: center;
    display: grid;
    grid-template-columns: 14px 1fr 14px;
}

.range-visual i {
    background: var(--primary);
    height: 3px;
}

.range-visual span {
    background: var(--primary);
    border-radius: 999px;
    height: 14px;
    width: 14px;
}

.apply-filter {
    color: var(--primary);
    width: 100%;
}

.discovery-results-column {
    overflow: hidden;
}

.results-toolbar {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 12px 14px;
}

.results-toolbar strong {
    font-size: 13px;
}

.results-toolbar span {
    color: var(--muted);
    font-size: 11px;
    margin-left: 4px;
}

.results-toolbar select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
    min-height: 34px;
    padding: 0 9px;
}

.discovery-results {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.discovery-results .listing-card {
    display: grid;
    grid-template-columns: 43% 57%;
    min-height: 208px;
}

.discovery-results .listing-gallery {
    height: 100%;
    min-height: 208px;
    padding: 0;
}

.discovery-results .listing-main-photo,
.discovery-results .listing-image {
    border-radius: 0;
    height: 100%;
}

.discovery-results .listing-image {
    aspect-ratio: auto;
}

.discovery-results .listing-thumbs,
.discovery-results .gallery-nav {
    display: none;
}

.recommendation-label {
    align-items: center;
    background: linear-gradient(135deg, #f05d42, #ff8a4c);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(177, 61, 38, 0.24);
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    gap: 4px;
    left: 9px;
    letter-spacing: 0.02em;
    padding: 6px 9px;
    position: absolute;
    top: 9px;
    z-index: 2;
}

.recommendation-label .app-icon {
    font-size: 12px;
}

.recommendation-label-match {
    background: linear-gradient(135deg, #008b72, #20a889);
    box-shadow: 0 5px 14px rgba(0, 116, 93, 0.22);
}

.favorite-indicator {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: var(--ink);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    position: absolute;
    right: 9px;
    top: 9px;
    width: 30px;
    z-index: 2;
}

.listing-body {
    align-content: start;
    gap: 8px;
    padding: 13px;
}

.listing-body h3 {
    font-size: 15px;
    margin-bottom: 5px;
}

.listing-body .price {
    font-size: 18px;
}

.listing-body .price small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.listing-statuses .badge {
    background: #e9f7f1;
    border: 0;
    color: #27836c;
    font-size: 9px;
    padding: 4px 7px;
}

.badge {
    background: #e8f7f2;
    border-color: #c8e9df;
    color: var(--primary);
}

.listing-thumb.is-active {
    border-color: var(--primary);
}

.score-fill {
    background: var(--primary);
}

.listing-facilities {
    color: #73807b;
    display: flex;
    flex-wrap: wrap;
    font-size: 9px;
    gap: 5px 9px;
}

.listing-facilities span {
    align-items: center;
    display: inline-flex;
    gap: 2px;
}

.listing-facilities .app-icon {
    font-size: 11px;
}

.listing-card-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr auto auto auto;
    margin: 2px -13px -13px;
    padding: 9px 13px;
}

.verified-label {
    align-items: center;
    color: var(--primary);
    display: inline-flex;
    font-size: 9px;
    font-weight: 800;
    gap: 4px;
}

.listing-rating {
    align-items: center;
    display: inline-flex;
    font-size: 10px;
    gap: 3px;
}

.listing-rating .app-icon {
    color: #f5a623;
    font-size: 13px;
}

.listing-rating small {
    color: var(--muted);
}

.card-detail-link,
.card-share-button {
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
    padding: 3px;
}

.card-share-button span {
    display: none;
}

.discovery-pagination {
    border-top: 1px solid var(--line);
    padding: 14px;
}

.app-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: space-between;
    width: 100%;
}

.app-pagination-summary {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.app-pagination-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.app-pagination-link,
.app-pagination-ellipsis {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-height: 38px;
    min-width: 38px;
}

.app-pagination-link {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    gap: 5px;
    padding: 7px 10px;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.app-pagination-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.app-pagination-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent);
    outline-offset: 2px;
}

.app-pagination-link.is-current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.app-pagination-link.is-disabled {
    background: var(--soft);
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.65;
}

.app-pagination-link.is-disabled:hover {
    border-color: var(--line);
    color: var(--muted);
}

.app-pagination-direction {
    padding-inline: 12px;
}

.app-pagination-link .app-icon {
    flex: 0 0 18px;
    font-size: 18px;
    height: 18px;
    line-height: 18px;
    width: 18px;
}

.app-pagination-ellipsis {
    color: var(--muted);
}

@media (max-width: 640px) {
    .app-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .app-pagination-summary {
        text-align: center;
    }

    .app-pagination-links {
        justify-content: center;
    }

    .app-pagination-direction {
        flex: 1 1 112px;
        max-width: 140px;
    }
}

.popular-city-links {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px 14px;
    padding: 18px 4px 0;
}

.popular-city-links span {
    color: var(--ink);
    font-weight: 800;
}

.popular-city-links a:hover {
    color: var(--primary);
}

/* Listing detail and promotion mobile shells. */
.mobile-detail-bar {
    display: none;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-layout > .side-stack > .panel,
.detail-layout > aside > .panel {
    box-shadow: none;
}

.promotion-layout {
    margin: 0 auto;
    max-width: 1120px;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

.promotion-layout > *,
.promotion-checkout,
.promotion-plan-copy {
    min-width: 0;
}

.promotion-listing-summary {
    align-self: start;
    overflow: hidden;
}

.promotion-listing-summary .flash {
    display: grid;
    gap: 3px;
}

.promotion-plan-list {
    display: grid;
    gap: 12px;
}

.promotion-plan-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 210px);
    overflow: hidden;
    padding: 16px;
}

.promotion-plan-card.is-recommended {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(243, 95, 73, 0.08);
}

.promotion-plan-copy {
    display: grid;
    gap: 8px;
}

.promotion-plan-copy h3,
.promotion-plan-copy p {
    margin: 0;
    overflow-wrap: anywhere;
}

.promotion-plan-purchase {
    border-left: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding-left: 18px;
}

.promotion-plan-purchase form,
.promotion-plan-purchase .button {
    width: 100%;
}

.promotion-plan-price {
    display: grid;
    gap: 2px;
    text-align: right;
}

.promotion-plan-price strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.15;
    white-space: nowrap;
}

.promotion-plan-price small {
    color: var(--muted);
    font-size: 11px;
}

.promotion-callout {
    align-items: flex-start;
    background: #fff0eb;
    border-radius: 10px;
    color: #9e3f2e;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
}

.promotion-callout > .app-icon {
    color: var(--accent);
    font-size: 25px;
}

.promotion-callout strong {
    font-size: 13px;
}

.promotion-callout p {
    font-size: 11px;
    line-height: 1.5;
    margin: 4px 0 0;
}

.payment-security-note {
    align-items: center;
    color: var(--warning);
    display: flex;
    font-size: 11px;
    gap: 6px;
    justify-content: center;
    margin: 16px 0 8px;
}

.promotion-active-badge {
    background: #fff5dd;
    border-color: #f1d48b;
    color: #8a5a00;
}

.promotion-active-status {
    align-items: center;
    background: #e8f7f2;
    border: 1px solid #c8e9df;
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    line-height: 1.35;
    padding: 9px 12px;
}

.verification-panel {
    text-align: center;
}

.verification-shield {
    align-items: center;
    background: #e7f7f2;
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    height: 82px;
    justify-content: center;
    margin-bottom: 14px;
    width: 82px;
}

.verification-shield .app-icon {
    font-size: 42px;
}

.verification-panel .eyebrow {
    margin-bottom: 8px;
}

.verification-panel h2 {
    display: block;
    font-size: 21px;
}

.verification-steps {
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    margin: 18px 0;
    text-align: left;
}

.verification-step {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px 1fr;
    padding: 12px 0;
}

.verification-step > span {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.verification-step.is-done > span {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.verification-step strong,
.verification-step small {
    display: block;
}

.verification-step small {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.identity-layout {
    align-items: start;
}

.identity-capture-grid {
    display: grid;
    gap: 16px;
}

.camera-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.camera-card.has-photo {
    border-color: #bde5da;
    box-shadow: 0 0 0 3px rgba(7, 143, 114, 0.08);
}

.camera-card-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.camera-card-head h2 {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.camera-card-head p {
    line-height: 1.45;
    margin-bottom: 0;
}

.camera-card-icon {
    align-items: center;
    background: #e7f7f2;
    border-radius: 999px;
    color: var(--primary);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.camera-frame {
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
    border: 1px dashed #b9c7c0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.camera-frame video,
.camera-preview,
.camera-placeholder {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.camera-frame video,
.camera-preview {
    object-fit: cover;
}

.camera-placeholder {
    align-items: center;
    color: var(--muted);
    display: grid;
    gap: 8px;
    place-content: center;
    text-align: center;
}

.camera-frame .is-hidden {
    display: none;
}

.camera-placeholder .app-icon {
    font-size: 36px;
    justify-self: center;
}

.camera-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.camera-status {
    font-size: 12px;
    margin-bottom: 0;
}

.identity-privacy-note {
    align-items: flex-start;
    background: #eaf6ef;
    border: 1px solid #c8e8d4;
    border-radius: 8px;
    color: #1f5c38;
    display: flex;
    font-size: 13px;
    gap: 9px;
    line-height: 1.45;
    padding: 12px;
}

.button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.2);
    opacity: 0.55;
}

.support-ticket-form {
    margin: 0 auto;
    max-width: 760px;
}

.support-ticket-row {
    align-items: center;
    border-bottom: 1px solid var(--line);
    color: inherit;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 16px 4px;
    text-decoration: none;
}

.support-ticket-row:last-child {
    border-bottom: 0;
}

.support-ticket-row:hover strong {
    color: var(--primary);
}

.support-ticket-row small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.support-ticket-icon,
.superadmin-metric-card > span {
    align-items: center;
    background: #eaf6ef;
    border-radius: 12px;
    color: var(--primary);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.support-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-message {
    background: #f4f7f6;
    border: 1px solid var(--line);
    border-radius: 14px;
    max-width: 82%;
    padding: 14px 16px;
}

.support-message.is-mine {
    align-self: flex-start;
}

.support-message.is-support {
    align-self: flex-end;
    background: #eaf6ef;
    border-color: #c8e8d4;
}

.support-message.is-internal {
    background: #fff8e8;
    border-color: #f2d49a;
}

.support-message-meta {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.support-message-meta time {
    color: var(--muted);
    font-size: 12px;
}

.support-message p {
    line-height: 1.65;
    margin: 8px 0 0;
}

.support-reply-form {
    margin-top: 18px;
}

.superadmin-metric-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
}

.superadmin-period-form {
    align-items: center;
    display: flex;
    gap: 8px;
}

.superadmin-metric-card {
    align-items: flex-start;
    display: flex;
    gap: 12px;
}

.superadmin-metric-card div {
    min-width: 0;
}

.superadmin-metric-card small,
.superadmin-metric-card em {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-style: normal;
}

.superadmin-metric-card strong {
    display: block;
    font-size: 25px;
    line-height: 1.2;
    margin: 5px 0;
}

.superadmin-metric-card em.is-positive {
    color: #18794e;
}

.superadmin-metric-card em.is-negative {
    color: var(--danger);
}

.superadmin-dashboard-grid {
    margin-bottom: 18px;
}

.superadmin-ticket-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.superadmin-ticket-summary span {
    background: #f4f7f6;
    border-radius: 999px;
    padding: 8px 12px;
}

.superadmin-ticket-workspace {
    align-items: start;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
}

@media (max-width: 1100px) {
    .superadmin-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .support-ticket-row {
        align-items: start;
        grid-template-columns: minmax(0, 1fr);
    }

    .support-ticket-icon {
        display: none;
    }

    .support-message {
        max-width: 94%;
    }

    .superadmin-metric-grid,
    .superadmin-ticket-workspace {
        grid-template-columns: 1fr;
    }
}

.mobile-detail-actions {
    display: none;
}

@media (max-width: 1240px) {
    .topbar-actions .account-link span {
        display: none;
    }
}

@media (max-width: 860px) {
    .topbar {
        align-items: center;
        flex-direction: row;
        min-height: 62px;
        padding: 0 16px;
    }

    .nav {
        display: none;
    }

    .language-switch {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .topbar-actions > .account-link,
    .topbar-actions > .auth-cta,
    .topbar-actions > form {
        display: none;
    }

    .container-discovery {
        padding: 12px 12px 34px;
    }

    .discovery-searchbar {
        grid-template-columns: 1fr 1fr;
    }

    .search-control {
        border-bottom: 1px solid var(--line);
        min-height: 62px;
    }

    .discovery-submit {
        grid-column: 1 / -1;
        margin: 8px 0 0;
        min-height: 46px;
    }

    .discovery-layout {
        grid-template-columns: 1fr;
    }

    .discovery-sidebar {
        display: grid;
        gap: 0 18px;
        grid-template-columns: 1fr 1fr;
    }

    .filter-heading,
    .apply-filter {
        grid-column: 1 / -1;
    }

    .discovery-results .listing-card {
        grid-template-columns: 38% 62%;
    }
}

@media (max-width: 620px) {
    .container {
        padding: 14px 12px 84px;
    }

    .breadcrumb {
        margin-bottom: 14px;
    }

    .discovery-intro {
        margin-bottom: 14px;
        text-align: left;
    }

    .discovery-intro h1 {
        font-size: 28px;
    }

    .listing-detail-page .topbar,
    .promotion-page .topbar {
        display: none;
    }

    .listing-detail-page .container,
    .promotion-page .container {
        margin: 0;
        max-width: 430px;
        padding: 0 0 86px;
        width: 100%;
    }

    .promotion-page .container {
        margin: 0 auto;
        max-width: 100%;
    }

    .listing-detail-page,
    .promotion-page {
        overflow-x: hidden;
    }

    .mobile-detail-bar {
        align-items: center;
        background: #fff;
        display: flex;
        height: 56px;
        justify-content: space-between;
        padding: 0 14px;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .mobile-detail-actions {
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--line);
        bottom: 0;
        display: grid;
        gap: 10px;
        grid-template-columns: 110px 1fr;
        left: 50%;
        max-width: 430px;
        padding: 10px 12px;
        position: fixed;
        transform: translateX(-50%);
        width: 100%;
        z-index: 30;
    }

    .mobile-detail-bar > div {
        display: flex;
        gap: 6px;
    }

    .mobile-icon-button {
        align-items: center;
        background: transparent;
        border: 0;
        color: var(--ink);
        display: inline-flex;
        height: 36px;
        justify-content: center;
        width: 36px;
    }

    .detail-layout,
    .promotion-layout {
        display: block;
    }

    .detail-layout > .side-stack,
    .detail-layout > aside {
        gap: 0;
    }

    .detail-layout .listing-gallery-detail {
        border: 0;
        border-radius: 0;
        padding: 0;
    }

    .detail-layout .detail-main-photo,
    .detail-layout .detail-gallery-image {
        border-radius: 0;
    }

    .detail-layout .detail-thumbs {
        display: none;
    }

    .detail-layout > .side-stack > .panel,
    .detail-layout > aside > .panel,
    .promotion-layout .panel,
    .promotion-layout .card {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        margin: 0;
        padding: 18px 14px;
    }

    .detail-layout h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    .detail-layout .price {
        font-size: 24px;
    }

    .detail-layout .review-flow {
        grid-template-columns: 1fr;
    }

    .discovery-searchbar {
        grid-template-columns: 1fr;
    }

    .discovery-accordion {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(30, 59, 51, 0.05);
    }

    .discovery-accordion-summary {
        align-items: center;
        cursor: pointer;
        display: grid;
        gap: 3px 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        list-style: none;
        min-height: 60px;
        padding: 11px 14px;
    }

    .discovery-accordion-summary::-webkit-details-marker {
        display: none;
    }

    .discovery-accordion-summary > span {
        align-items: center;
        display: inline-flex;
        font-size: 14px;
        font-weight: 850;
        gap: 7px;
    }

    .discovery-accordion-summary > small {
        color: var(--muted);
        font-size: 11px;
        grid-column: 1;
    }

    .discovery-accordion-summary > .app-icon:last-child {
        grid-column: 2;
        grid-row: 1 / span 2;
        transition: transform 160ms ease;
    }

    .discovery-accordion[open] > .discovery-accordion-summary > .app-icon:last-child {
        transform: rotate(180deg);
    }

    .discovery-accordion-summary:focus-visible {
        border-radius: 9px;
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .discovery-main-accordion {
        margin-bottom: 10px;
    }

    .discovery-main-accordion .discovery-searchbar {
        border: 0;
        border-radius: 0;
        border-top: 1px solid var(--line);
        box-shadow: none;
    }

    .discovery-main-accordion .discovery-reset-row {
        border-top: 1px solid var(--line);
        padding-left: 14px;
        padding-right: 14px;
    }

    .discovery-extra-accordion {
        margin-bottom: 10px;
    }

    .discovery-extra-accordion .discovery-sidebar {
        border: 0;
        border-radius: 0;
        border-top: 1px solid var(--line);
        box-shadow: none;
        display: block;
    }

    .search-control {
        border-right: 0;
    }

    .location-picker-heading {
        display: grid;
    }

    .location-private-badge {
        justify-self: start;
    }

    .location-picker-search {
        grid-template-columns: 1fr;
    }

    .location-picker-search .button {
        width: 100%;
    }

    .location-picker-search .location-suggestions {
        right: 0;
    }

    .listing-location-map {
        height: 300px;
    }

    .photo-upload-card {
        min-height: 170px;
        padding: 18px;
    }

    .listing-photo-card {
        flex-basis: 150px;
    }

    .discovery-reset-row span {
        display: none;
    }

    .discovery-reset-row {
        justify-content: flex-end;
    }

    .discovery-sidebar {
        grid-template-columns: 1fr;
    }

    .discovery-results .listing-card-stacked-mobile {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .discovery-results .listing-card-stacked-mobile .listing-gallery {
        height: auto;
        min-height: 0;
    }

    .discovery-results .listing-card-stacked-mobile .listing-main-photo,
    .discovery-results .listing-card-stacked-mobile .listing-image {
        height: auto;
    }

    .discovery-results .listing-card-stacked-mobile .listing-image {
        aspect-ratio: 16 / 10;
    }

    .discovery-results .listing-card-stacked-mobile .listing-body {
        display: grid;
        min-width: 0;
        width: 100%;
    }

    .results-toolbar {
        align-items: flex-start;
        gap: 10px;
    }

    .listing-card-footer {
        grid-template-columns: 1fr auto auto;
    }

    .card-detail-link {
        display: none;
    }

    .promotion-plan-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .promotion-plan-purchase {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 14px;
    }

    .promotion-plan-price {
        text-align: left;
    }

    .promotion-plan-price strong {
        font-size: 21px;
    }

    .promotion-page .page-head {
        display: none;
    }
}

@media (max-width: 900px) {
    .container-dashboard {
        padding: 22px 18px 88px;
    }

    .dashboard-overview {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 20px;
    }

    .dashboard-content-grid {
        grid-template-areas:
            "next"
            "recommendation"
            "activity"
            "room"
            "safety";
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .dashboard-page .topbar {
        box-shadow: none;
        position: sticky;
    }

    .dashboard-page .brand {
        font-size: 16px;
    }

    .dashboard-page .brand-mark {
        height: 32px;
        width: 32px;
    }

    .dashboard-page .brand-mark .app-icon {
        font-size: 19px;
    }

    .dashboard-page .topbar-actions {
        gap: 2px;
    }

    .dashboard-page .topbar-notification,
    .dashboard-page .mobile-menu-toggle {
        border: 0;
        height: 38px;
        width: 38px;
    }

    .container-dashboard {
        max-width: 460px;
        padding: 10px 10px 98px;
    }

    .dashboard-shell,
    .dashboard-content-grid {
        gap: 10px;
    }

    .dashboard-overview {
        gap: 10px;
        padding: 0;
    }

    .dashboard-welcome {
        padding: 14px;
    }

    .dashboard-welcome .eyebrow,
    .dashboard-welcome > p:not(.eyebrow) {
        display: none;
    }

    .dashboard-welcome h1 {
        font-size: 19px;
        margin-bottom: 8px;
    }

    .dashboard-verification {
        font-size: 10px;
        padding: 5px 7px;
    }

    .dashboard-welcome-actions {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        margin-top: 12px;
    }

    .dashboard-welcome-actions .button {
        font-size: 11px;
        min-height: 38px;
        min-width: 0;
        padding: 8px;
    }

    .dashboard-metrics {
        gap: 6px;
    }

    .dashboard-metric-card {
        align-content: start;
        min-height: 104px;
        padding: 10px 7px;
        text-align: center;
    }

    .dashboard-metric-card > .app-icon {
        font-size: 22px;
        justify-self: center;
        margin-bottom: 7px;
    }

    .dashboard-metric-card span {
        align-self: start;
        font-size: 9px;
        line-height: 1.25;
        min-height: 34px;
    }

    .dashboard-metric-card strong {
        font-size: 19px;
        margin-top: 3px;
    }

    .dashboard-section-card {
        border-radius: 9px;
        padding: 13px;
    }

    .dashboard-section-card h2 {
        font-size: 14px;
    }

    .dashboard-section-heading {
        margin-bottom: 10px;
    }

    .dashboard-section-heading > a {
        font-size: 10px;
    }

    .dashboard-progress-copy {
        margin-top: 16px;
    }

    .dashboard-action-list {
        margin: 11px 0;
    }

    .dashboard-action-item {
        padding: 7px 0;
    }

    .dashboard-continue {
        min-height: 38px;
    }

    .dashboard-recommendation-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-room-card {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .dashboard-room-photo {
        aspect-ratio: auto;
        min-height: 112px;
    }

    .dashboard-room-body {
        padding: 10px;
    }

    .dashboard-room-body h3 {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .dashboard-room-location,
    .dashboard-room-trust {
        font-size: 9px;
        margin-bottom: 6px;
    }

    .dashboard-room-price {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .dashboard-room-price span {
        font-size: 9px;
    }

    .dashboard-room-photo > span {
        font-size: 8px;
        padding: 4px 5px;
    }

    .dashboard-activity-item {
        gap: 8px;
        grid-template-columns: 34px 64px minmax(0, 1fr) auto;
    }

    .dashboard-activity-avatar {
        height: 34px;
        width: 34px;
    }

    .dashboard-activity-photo {
        height: 45px;
        width: 64px;
    }

    .dashboard-activity-copy strong {
        font-size: 11px;
    }

    .dashboard-activity-copy small {
        font-size: 9px;
    }

    .dashboard-activity-time {
        display: none;
    }

    .dashboard-status {
        font-size: 8px;
        padding: 5px 6px;
    }

    .dashboard-owned-room {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .dashboard-safety {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .dashboard-safety-icon {
        height: 46px;
        width: 39px;
    }

    .dashboard-empty-state {
        min-height: 170px;
        padding: 18px;
    }

    .dashboard-mobile-nav {
        align-items: end;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid var(--line);
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 0;
        padding: 8px 8px max(8px, env(safe-area-inset-bottom));
        position: fixed;
        right: 0;
        z-index: 40;
    }

    .dashboard-mobile-nav > a {
        align-items: center;
        color: #4e5d58;
        display: flex;
        flex-direction: column;
        font-size: 9px;
        gap: 4px;
        justify-content: flex-end;
        min-height: 45px;
    }

    .dashboard-mobile-nav > a > .app-icon {
        font-size: 21px;
    }

    .dashboard-mobile-nav > a.is-active {
        color: var(--primary);
        font-weight: 800;
    }

    .dashboard-mobile-nav .dashboard-mobile-add {
        gap: 1px;
    }

    .dashboard-mobile-add > span {
        align-items: center;
        background: var(--primary);
        border-radius: 999px;
        color: #fff;
        display: inline-flex;
        height: 38px;
        justify-content: center;
        margin-top: -18px;
        width: 38px;
    }

    .dashboard-mobile-add > span .app-icon {
        font-size: 24px;
    }

    .dashboard-mobile-add small {
        font-size: 9px;
    }
}

@media (max-width: 760px) {
    .profile-page .profile-photo-picker,
    .profile-page .profile-avatar-lg {
        height: 58px;
        width: 58px;
    }

    .profile-page .profile-photo-picker img.profile-avatar-lg {
        height: 100%;
        width: 100%;
    }
}
