.home-page {
    background: #eae7e1;
    color: #183b35;
}

.home-page .app-shell {
    max-width: 760px;
    padding: 0;
    background: #faf8f3;
    min-height: 100svh;
}

.home-header {
    background: var(--green);
    color: #fff;
    padding: 28px 28px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
    align-items: start;
    border-radius: 0 0 24px 24px;
}

.home-brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 44px;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-symbol {
    width: 32px;
    height: 36px;
    border: 1.5px solid #aabfb7;
    border-radius: 8px;
    font-size: 20px;
    display: grid;
    place-items: center;
    position: relative;
}

.brand-symbol > span {
    position: absolute;
    right: 4px;
    bottom: 6px;
    width: 2px;
    height: 5px;
    background: var(--sand);
}

.header-account {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #57726b;
    border-radius: 50%;
    background: #ffffff08;
    transition: background 160ms, border-color 160ms;
}

.header-account svg {
    width: 22px;
    height: 22px;
}

.home-intro {
    grid-column: 1;
    grid-row: 2;
    padding: 4px 0 0 42px;
}

.home-intro .eyebrow {
    font-size: 9px;
    line-height: 16px;
    letter-spacing: 1.8px;
    color: #bacdc5;
    font-weight: 500;
    margin: 0;
}

.home-intro h1 {
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1.12;
    letter-spacing: -1px;
    font-weight: 500;
}

.availability-summary {
    width: 100%;
    border-top: 1px solid #446059;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 12px;
}

.availability-dot, .small-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #bcd4c5;
    flex-shrink: 0;
}

.summary-label {
    margin-left: auto;
    color: #d0ded7;
}

.home-content {
    padding: 0 28px 100px;
}

.home-section {
    padding: 28px 0;
    scroll-margin-top: 16px;
    border-bottom: 1px solid #dce2db;
}

#my-rentals {
    border-bottom: none;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.4px;
}

.section-caption {
    color: #64716a;
    font-size: 11px;
    white-space: nowrap;
}

.locker-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.locker-filters button {
    border: 1px solid #d9e0d8;
    border-radius: 30px;
    background: transparent;
    color: #4a5d54;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: background 160ms, color 160ms;
}

.locker-filters button[aria-pressed="true"] {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.locker-filters button span {
    margin-left: 8px;
    opacity: .75;
}

.home-locker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-locker {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 212px;
    height: 100%;
    border-radius: 9px;
    padding: 64px 10px 16px;
    color: #5a5651;
    background: #e5e0d8;
    text-decoration: none;
    border: 1px solid #bdb6ac;
    box-shadow: inset 0 0 0 4px #f8f9f560;
}

.home-locker::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid #bdb6ac;
    border-radius: 5px;
    pointer-events: none;
    opacity: .65;
}

.home-locker.is-available {
    background: #d7e3cb;
    border-color: #9caf92;
    color: #304936;
    box-shadow: inset 0 0 0 4px #ffffff30;
    transition: transform 180ms, box-shadow 180ms;
}

.home-locker.is-available::before {
    border-color: #9caf92;
}

a.home-locker:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px #183b3526, inset 0 0 0 4px #ffffff10;
}

a.home-locker:active {
    transform: scale(.97);
}

.door-vents {
    position: absolute;
    width: 34px;
    height: 12px;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: .45;
}

.door-vents::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 100%;
    border-top: 2px solid currentColor;
}

.door-handle {
    position: absolute;
    right: 11px;
    top: 48%;
    width: 5px;
    height: 25px;
    border-radius: 3px;
    background: currentColor;
    opacity: .6;
    box-shadow: 2px 1px 0 #00000014;
}

.home-locker .locker-label, .home-locker .home-price {
    padding-right: 12px;
}

.is-available .home-status {
    border-color: #afc0a5;
}

.is-available .small-dot {
    background: #4b6850;
}

.locker-label h3 {
    font-size: 13px;
    margin: 0 0 4px;
    font-weight: 600;
}

.locker-label > span {
    font-size: 11px;
}

.home-price {
    font-size: 15px;
    font-weight: 600;
    margin-top: 12px;
}

.home-price > span {
    font-weight: 400;
    font-size: 10px;
}

.home-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid #bdb6ac;
    font-size: 10px;
    line-height: 16px;
    min-height: 26px;
}

.home-status > span:last-child:not(.small-dot) {
    margin-left: auto;
    font-size: 15px;
}

.small-dot {
    width: 5px;
    height: 5px;
    background: var(--green);
}

.rental-guidance {
    grid-column: 1 / -1;
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid #ffffff20;
    color: #d0ded7;
    font-size: 12px;
    line-height: 1.7;
    text-wrap: pretty;
}

.section-note, .filter-empty {
    font-size: 14px;
    color: #607065;
    line-height: 1.6;
}

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

.rental-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    text-decoration: none;
    border-top: 1px solid #dce2db;
    min-height: 72px;
}

.rental-row strong {
    font-size: 16px;
    font-weight: 600;
}

.rental-row small {
    display: block;
    margin-top: 6px;
    color: #607065;
    font-size: 12px;
}

.rental-row > span:last-child {
    font-size: 24px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 12px 0;
    min-height: 44px;
    color: var(--green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.home-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.account-email {
    font-size: 14px;
    overflow-wrap: anywhere;
}

.home-account-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 14px;
}

.home-primary {
    background: var(--green);
    color: white;
    border-radius: 24px;
    padding: 14px 20px;
    font-size: 13px;
    text-decoration: none;
}

.home-error {
    color: #a12e25;
    font-size: 13px;
}

.home-footer {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    color: #68776b;
    font-size: 12px;
}

.home-bottom-nav {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 760px);
    display: flex;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: #faf8f3f5;
    border-top: 1px solid #d6dfd5;
    backdrop-filter: blur(12px);
}

.home-bottom-nav :is(a, button) {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #637268;
    text-decoration: none;
    font-size: 10px;
    padding: 8px;
    border-radius: 12px;
    transition: color 180ms, background 180ms;
}

.home-bottom-nav :is(a[aria-current], button[aria-expanded="true"]) {
    color: var(--green);
    background: #e5ebe1;
    font-weight: 600;
}

.home-bottom-nav svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.home-page :focus-visible {
    outline-color: #8b6d37;
}

@media (min-width: 600px) {
    .home-header {
        padding: 32px 48px 24px;
    }

    .home-content {
        padding-left: 48px;
        padding-right: 48px;
    }

    .home-intro h1 br {
        display: none;
    }

    .home-locker {
        min-height: 240px;
        padding: 72px 20px 22px;
    }

    .locker-label h3 {
        font-size: 16px;
    }

    .home-status {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .home-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-locker-grid {
        gap: 8px;
    }

    .home-locker {
        padding-left: 8px;
        padding-right: 8px;
    }

    .section-heading h2 {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page * {
        animation: none;
        transition: none;
    }
}

.account-menu {
    position: relative;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
}

.header-account:hover {
    background: #ffffff14;
    border-color: #8ca69c;
}

.account-menu summary {
    list-style: none;
    cursor: pointer;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu[open] summary {
    background: #31564c;
}

.account-dropdown {
    position: absolute;
    z-index: 10;
    right: 0;
    top: 54px;
    width: min(300px, calc(100vw - 56px));
    padding: 22px;
    border: 1px solid #dce2db;
    border-radius: 16px;
    background: #faf8f3;
    color: var(--green);
    box-shadow: 0 12px 32px #102e3026;
    animation: enter 160ms ease-out;
}

.account-dropdown .section-heading {
    margin-bottom: 12px;
}

.account-dropdown .home-text-link {
    margin-top: 10px;
}

.account-dropdown .home-account-actions {
    flex-wrap: wrap;
    gap: 4px 20px;
}

.home-bottom-nav button {
    font-family: inherit;
    border: none;
    background: transparent;
    cursor: pointer;
}

.home-locker.is-owned {
    background: #e8dfcc;
    border-color: #b6a685;
    color: #594d35;
}

.home-locker.is-owned::before {
    border-color: #b6a685;
}

.is-owned .home-status {
    border-color: #b6a685;
}
