.panel {
    position: relative;
    margin: 0 24px 24px;
    min-height: calc(100vh - 80px);
    padding: 0 48px 48px;
    border-radius: var(--radius-panel);
    background:
        radial-gradient(1200px 500px at 20% 0%, #e9f2f7 0%, transparent 70%),
        radial-gradient(900px 600px at 90% 10%, #f1f6f3 0%, transparent 70%),
        linear-gradient(180deg, #eef4f8 0%, #f6f6f3 100%);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--serif);
    font-size: 34px;
    letter-spacing: -.02em;
}

.brand img {
    border-radius: 3px;
}

.brand small {
    font-size: inherit;
}

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

.menu-button {
    height: 64px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 21px;
    font-weight: 600;
    transition: background .15s;
}

.menu-button:hover {
    background: var(--navy-hover);
}

.hero {
    padding: 56px 0 72px;
    text-align: center;
    transition: opacity .3s var(--ease), padding .4s var(--ease);
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(56px, 9vw, 140px);
    line-height: .95;
    letter-spacing: -.035em;
}

.hero p {
    margin: 40px 0 0;
    font-size: clamp(18px, 2vw, 26px);
    color: var(--muted);
    letter-spacing: -.01em;
}

.stage {
    position: relative;
    width: min(1032px, 100%);
    margin: 0 auto;
    padding: 24px;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(7, 29, 65, .35);
}

.photo {
    position: absolute;
    inset: 0;
    margin: 0;
    z-index: 0;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.stage .composer {
    position: relative;
    z-index: 1;
}

.stage::after {
    content: "";
    display: block;
    aspect-ratio: 1032 / 520;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(1032px, 100%);
    margin: 32px auto 0;
    padding: 0;
    list-style: none;
}

.suggestions button {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    font-size: 15px;
    color: var(--ink);
    transition: background .15s, border-color .15s;
}

.suggestions button:hover {
    background: #fff;
    border-color: #b9c4d2;
}

.disclaimer {
    margin: 32px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.disclaimer a {
    color: inherit;
    text-underline-offset: 2px;
}

body.chatting .hero,
body.chatting .suggestions,
body.chatting .photo,
body.chatting .stage::after {
    display: none;
}

body.chatting .stage {
    position: sticky;
    bottom: 24px;
    z-index: 4;
    padding: 0;
    overflow: visible;
    box-shadow: none;
}

body.chatting .disclaimer {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .panel {
        margin: 0 12px 12px;
        padding: 0 16px 32px;
    }

    .topbar {
        padding: 24px 8px 16px;
    }

    .brand {
        font-size: 26px;
    }

    .brand img {
        width: 36px;
        height: 25px;
    }

    .menu-button {
        height: 50px;
        padding: 0 22px;
        font-size: 17px;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .hero p {
        margin-top: 20px;
    }

    .stage {
        padding: 12px;
        border-radius: 28px;
    }

    .stage::after {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 520px) {
    .brand {
        gap: 8px;
        font-size: 22px;
    }

    .brand img {
        width: 30px;
        height: 21px;
    }

    .menu-button {
        padding: 0 18px;
    }

    #new-chat {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        font-size: 0;
    }

    #new-chat i {
        font-size: 22px;
    }
}
