/* Signed-in account and logout action. */
.mobile-header-user-area-v20261029 {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-self: start;
    gap: 3px;
    overflow: visible !important;
}

.mobile-header-logout-v20261029 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 26px;
    padding: 0 9px;
    border: 1px solid #bd8b32;
    border-radius: 13px;
    background: #fff1b8;
    color: #8f170f !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    justify-self: end;
}

@media (max-width: 360px) {
    .mobile-header-user-area-v20261029 { gap: 2px; }
    .mobile-header-logout-v20261029 {
        min-width: 36px;
        height: 24px;
        padding: 0 6px;
        font-size: 12px;
    }
}

/* Desktop layout: keep the existing phone presentation below 768px. */
@media (min-width: 768px) {
    html {
        background: #e8d38e;
    }

    body {
        width: calc(100% - 48px) !important;
        max-width: 1120px !important;
        min-height: 100vh;
        margin-right: auto !important;
        margin-left: auto !important;
        background: #f2de9b;
        box-shadow: 0 0 24px rgba(92, 59, 5, .18);
    }

    .shell {
        width: 100% !important;
        max-width: 1120px !important;
        margin: 0 auto !important;
    }

    .mobile-simple-header-v20260717 {
        width: calc(100% - 48px) !important;
        max-width: 1120px !important;
        grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr) minmax(180px, 1fr) !important;
        padding-right: 32px !important;
        padding-left: 32px !important;
    }

    .mobile-header-title-v20260717 {
        font-size: 32px !important;
    }

    .mobile-header-side-v20260717 {
        font-size: 17px !important;
    }

    .mobile-bottom-nav-v20260717 {
        width: calc(100% - 48px) !important;
        max-width: 1120px !important;
    }

    .banner,
    .notice,
    .warning,
    .section-title,
    .recs,
    .posts,
    .view,
    .formbox {
        margin-right: 18px !important;
        margin-left: 18px !important;
    }

    .home-posts-reference .post-list-title,
    .home-posts-reference .post-list-title-link {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
}

@media (min-width: 1200px) {
    body,
    .shell {
        max-width: 1180px !important;
    }

    .mobile-simple-header-v20260717,
    .mobile-bottom-nav-v20260717 {
        max-width: 1180px !important;
    }
}
