.home-app {
    overflow: auto;
}

.home-page {
    width: 100%;
    padding: 34px 28px 42px;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.home-app .home-page {
    min-height: 100%;
}

.home-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.home-auth-actions {
    display: inline-flex;
    gap: 10px;
}

.home-auth-button {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.home-auth-button:hover,
.home-auth-button:focus-visible {
    color: #0f172a;
    text-decoration: underline;
    outline: none;
}

.home-guest {
    width: min(100%, var(--public-content-max-width, 1120px));
    margin: 0 auto;
    padding: 42px 0 58px;
}

.home-guest-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: 42px;
    padding: 36px;
    border: 1px solid rgba(214, 225, 216, 0.78);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.92));
    box-shadow: 0 24px 64px rgba(67, 83, 67, 0.08);
}

.home-guest-copy {
    max-width: 680px;
}

.home-guest-kicker {
    margin: 0;
    color: #6b8060;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.home-guest h1 {
    margin: 12px 0 0;
    color: #1f2a22;
    font-size: 40px;
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: 0;
}

.home-guest-summary {
    margin: 16px 0 0;
    max-width: 560px;
    color: #53605a;
    font-size: 15px;
    line-height: 1.7;
}

.home-guest-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.home-guest-visual {
    position: relative;
    min-height: 260px;
}

.home-guest-window {
    position: absolute;
    right: 0;
    top: 20px;
    width: min(100%, 320px);
    padding: 18px;
    border: 1px solid rgba(216, 226, 218, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(67, 83, 67, 0.1);
}

.home-guest-window span {
    display: block;
    width: 42px;
    height: 4px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #7c9271;
}

.home-guest-window strong {
    display: block;
    margin-bottom: 14px;
    color: #263326;
    font-size: 18px;
    line-height: 1.2;
}

.home-guest-window em {
    display: block;
    height: 12px;
    margin-top: 10px;
    border-radius: 999px;
    background: #edf3ee;
}

.home-guest-window em:nth-of-type(2) {
    width: 78%;
}

.home-guest-window em:nth-of-type(3) {
    width: 54%;
}

.home-guest-chip {
    position: absolute;
    left: 8px;
    bottom: 30px;
    padding: 10px 12px;
    border: 1px solid rgba(216, 226, 218, 0.92);
    border-radius: 999px;
    background: rgba(250, 252, 250, 0.96);
    color: #53605a;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(67, 83, 67, 0.08);
}

.home-guest-primary,
.home-guest-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #31412f;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.home-guest-primary {
    background: #31412f;
    color: #ffffff;
}

.home-guest-secondary {
    background: #ffffff;
    color: #31412f;
}

.home-guest-primary:hover,
.home-guest-primary:focus-visible,
.home-guest-secondary:hover,
.home-guest-secondary:focus-visible {
    outline: none;
    background: #465a43;
    border-color: #465a43;
    color: #ffffff;
}

.home-guest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.home-guest-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    padding: 18px;
    border: 1px solid rgba(214, 225, 216, 0.8);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(67, 83, 67, 0.055);
}

.home-guest-card strong {
    color: #263326;
    font-size: 15px;
    line-height: 1.25;
}

.home-guest-card span {
    color: #64716a;
    font-size: 13px;
    line-height: 1.6;
}

.home-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 20px 76px;
    text-align: center;
}

.home-welcome-title {
    margin: 0;
    max-width: min(680px, 100%);
    overflow-wrap: anywhere;
    color: #263326;
    font-family: "Songti SC", "STSong", "SimSun", "KaiTi", serif;
    font-size: clamp(18px, 2.2vw, 28px);
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: 0;
}

.home-welcome-bio {
    margin: 18px 0 0;
    max-width: min(620px, 100%);
    color: #475569;
    font-family: "Songti SC", "STSong", "SimSun", "KaiTi", serif;
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.75;
    font-weight: 300;
}

.home-account-disabled {
    margin-top: 24px;
    max-width: min(560px, 100%);
    padding: 10px 14px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.6;
}


@media (max-width: 640px) {
    .home-page {
        padding: 18px 16px 30px;
    }

    .home-topbar {
        justify-content: center;
    }

    .home-guest {
        padding: 12px 0 34px;
    }

    .home-guest-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 22px;
    }

    .home-guest-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .home-guest h1 {
        font-size: 26px;
    }

    .home-guest-visual {
        min-height: 210px;
    }

    .home-guest-window {
        position: relative;
        top: 0;
        width: 100%;
    }

    .home-guest-chip {
        left: 14px;
        bottom: 0;
    }

    .home-guest-primary,
    .home-guest-secondary {
        width: 100%;
    }

    .home-guest-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .home-welcome {
        padding: 66px 0 46px;
    }

    .home-welcome-title {
        font-size: 18px;
    }

    .home-welcome-bio {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.7;
    }
}
