/*
 * Desktop pilot
 *
 * The existing mobile interface remains unchanged below 1024px. On wider
 * screens the same components become a centred, vertically flowing website.
 */

.desktop-menu-heading {
    display: none;
}

/* Home and Menu use a flat page overview without generation lines. */
html.site-theme .menu-links.page-overview-grid {
    gap: 0.65rem;
    padding: 0;
    border: 0;
}

html.site-theme .menu-links.page-overview-grid::before,
html.site-theme .menu-links.page-overview-grid > *::before,
html.site-theme .menu-links.page-overview-grid > *::after {
    display: none;
    content: none;
}

.home-featured-article {
    display: grid;
    gap: 0.6rem;
    padding: 1.25rem;
    border: 1px solid var(--color-border-strong);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-ink);
    text-decoration: none;
}

.home-featured-article__label,
.home-pages__more-heading > span {
    color: var(--color-coral);
    font: 500 0.58rem/1.2 "IBM Plex Mono", monospace;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-featured-article__copy {
    display: grid;
    gap: 0.35rem;
}

.home-featured-article__copy small {
    font-size: 0.7rem;
    line-height: 1.5;
}

.home-pages__more,
.home-pages__more-heading {
    display: grid;
    gap: 0.5rem;
}

.home-pages__more-heading h3 {
    margin: 0;
}

@media (min-width: 1024px) {
    body.desktop-pilot.app-page {
        background: var(--color-paper);
    }

    html.site-theme body.desktop-pilot.app-page .app-shell {
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        grid-template-areas:
            "header"
            "content";
        grid-template-rows: 4.75rem minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: none !important;
        height: 100svh !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }

    body.desktop-pilot .app-view,
    body.desktop-pilot .standalone-main {
        grid-area: content;
    }

    /* One conventional header: brand, primary tabs and account actions. */
    html.site-theme body.desktop-pilot .app-header,
    html.site-theme body.desktop-pilot.is-start-view .app-header {
        position: relative;
        z-index: 20;
        display: grid !important;
        grid-area: header;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 4.75rem;
        padding-inline: max(2rem, calc((100vw - 82rem) / 2));
        border-bottom: 1px solid var(--color-border-mid);
        background: rgb(247 241 233 / 96%);
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        backdrop-filter: blur(12px);
    }

    html.site-theme body.desktop-pilot .app-header .welcome-brand span {
        font-size: 0.78rem;
    }

    html.site-theme body.desktop-pilot .app-header__actions {
        position: relative;
        z-index: 2;
        gap: 0.45rem;
    }

    html.site-theme body.desktop-pilot .app-header__actions a,
    html.site-theme body.desktop-pilot .app-header__actions button {
        min-width: 5.35rem;
        min-height: 2.45rem;
        padding-inline: 0.75rem;
    }

    html.site-theme body.desktop-pilot .app-tabbar,
    html.site-theme body.desktop-pilot.is-start-view .app-tabbar {
        position: absolute;
        z-index: 21;
        top: 0;
        left: 50%;
        display: grid !important;
        grid-template-columns: repeat(5, minmax(5.4rem, 6.2rem));
        width: auto;
        height: 4.75rem;
        padding: 0;
        border: 0;
        background: transparent;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) !important;
    }

    html.site-theme body.desktop-pilot .app-tabbar button,
    html.site-theme body.desktop-pilot .standalone-tabbar a {
        flex-direction: row;
        gap: 0.4rem;
        min-height: 4.75rem;
        padding: 0.6rem 0.75rem;
        border: 0;
        border-bottom: 3px solid transparent;
        background: transparent;
        font-size: 0.55rem;
    }

    html.site-theme body.desktop-pilot .app-tabbar button.is-active,
    html.site-theme body.desktop-pilot .standalone-tabbar a.is-active {
        border-bottom-color: var(--color-coral);
        background: transparent;
        color: var(--color-coral);
    }

    html.site-theme body.desktop-pilot .app-tabbar button:hover,
    html.site-theme body.desktop-pilot .app-tabbar button:focus-visible,
    html.site-theme body.desktop-pilot .standalone-tabbar a:hover,
    html.site-theme body.desktop-pilot .standalone-tabbar a:focus-visible {
        background: var(--color-gold-soft);
    }

    body.desktop-pilot .app-scroll,
    body.desktop-pilot .standalone-scroll {
        overscroll-behavior: contain;
    }

    /* Start: one centred statement instead of a left/right composition. */
    html.site-theme body.desktop-pilot.is-start-view .app-shell {
        grid-template-areas:
            "header"
            "content";
        grid-template-rows: 4.75rem minmax(0, 1fr) !important;
    }

    html.site-theme body.desktop-pilot .start-screen {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        justify-items: center;
        gap: 2.25rem;
        padding: clamp(4rem, 8vh, 7rem) 2rem clamp(2.5rem, 5vh, 4rem);
        text-align: center;
    }

    html.site-theme body.desktop-pilot .rice-paper-illustration--start > img {
        top: 7%;
        left: 50%;
        width: min(25vw, 20rem);
        opacity: 1;
        transform: translateX(-50%) rotate(-8deg);
    }

    html.site-theme body.desktop-pilot .start-screen__copy {
        position: relative;
        top: auto;
        left: auto;
        align-self: center;
        width: min(100%, 52rem);
        transform: none;
    }

    html.site-theme body.desktop-pilot .start-screen__copy h1 {
        font-size: clamp(3.75rem, 6vw, 5.8rem);
        line-height: 0.82;
    }

    html.site-theme body.desktop-pilot .start-screen__copy h1 span:first-child {
        margin-bottom: 0.65rem;
    }

    html.site-theme body.desktop-pilot .start-screen__copy p,
    html.site-theme body.desktop-pilot .start-screen__copy small {
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot .start-screen__copy p {
        max-width: 34rem;
        margin-top: 1.5rem;
        font-size: 1.2rem;
        line-height: 1.35;
    }

    html.site-theme body.desktop-pilot .start-screen__copy small {
        max-width: 32rem;
        margin-top: 0.65rem;
        font-size: 0.62rem;
        line-height: 1.55;
    }

    html.site-theme body.desktop-pilot .start-screen__actions {
        position: relative;
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100%, 39rem);
    }

    html.site-theme body.desktop-pilot .start-screen__action--primary {
        grid-column: auto;
    }

    /* Home: large consecutive sections with one central reading axis. */
    html.site-theme body.desktop-pilot #view-home .app-home {
        display: block;
        min-height: 100%;
        padding: 0;
        overflow-y: auto;
    }

    html.site-theme body.desktop-pilot #view-home .home-focus-axis,
    html.site-theme body.desktop-pilot #view-home .home-focus-frame-axis {
        display: none;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening {
        grid-template-rows: auto auto;
        align-content: center;
        justify-items: center;
        gap: clamp(3rem, 8vh, 6rem);
        min-height: calc(100svh - 4.75rem);
        padding: clamp(5rem, 10vh, 8rem) 2rem;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__question-thread {
        width: min(100%, 46.7rem);
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__question-node {
        width: min(100%, 42rem);
        max-width: 42rem;
        margin-right: auto;
        margin-left: 2.35rem;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__question-node h1 {
        max-width: 18ch;
        margin-inline: auto;
        font-size: clamp(2.35rem, 3.7vw, 3.6rem);
        line-height: 1;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__support-node {
        max-width: 38rem;
        margin-right: auto;
        margin-left: 2.35rem;
        text-align: left;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__support {
        font-size: 0.88rem;
    }

    html.site-theme body.desktop-pilot #view-home .home-opening__actions {
        width: min(100%, 42rem);
        margin-inline: auto;
    }

    /* Desktop follows the same ordered Home journey as mobile. */
    html.site-theme body.desktop-pilot #view-home .home-opening__metrics--desktop-opening {
        display: none !important;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-metrics {
        display: block !important;
        width: 100%;
        padding: clamp(4.5rem, 8vh, 6.5rem) max(2rem, calc((100vw - 75rem) / 2));
        background: #e3edf2;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-metrics .home-opening__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        width: min(100%, 75rem);
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-metrics .home-opening__metrics button {
        min-height: 6rem;
        padding: 1rem 1.2rem;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-account-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        width: min(100%, 75rem);
        margin: 0.9rem auto 0;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-account-actions > a,
    html.site-theme body.desktop-pilot #view-home .home-mobile-account-actions > button {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        min-height: 3.5rem;
        padding: 0.75rem 1rem;
        border: 1px solid var(--color-border-strong);
        border-radius: 5px;
        background: var(--color-surface);
        color: var(--color-ink);
        font: 700 0.72rem/1.25 "Archivo", Arial, sans-serif;
        text-decoration: none;
        cursor: pointer;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-account-actions > .is-primary {
        border-color: var(--rice-paper-coral);
        background: var(--rice-paper-coral);
        color: #fff;
    }

    html.site-theme body.desktop-pilot #view-home .home-mobile-account-actions svg {
        width: 1rem;
        height: 1rem;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages {
        display: grid;
        gap: 0;
        min-height: 78svh;
        padding: 0;
        border: 0;
        background: var(--rice-paper-cream) !important;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages::before {
        content: none;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary-band,
    html.site-theme body.desktop-pilot #view-home .home-pages__article-band,
    html.site-theme body.desktop-pilot #view-home .home-pages__more {
        width: 100%;
        padding: clamp(4.5rem, 8vh, 6.5rem) max(2rem, calc((100vw - 75rem) / 2));
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary-band {
        background: #e3edf2;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__article-band {
        background: #efe4d4;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
        width: min(100%, 75rem);
        margin-inline: auto;
        padding: 0;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary::before,
    html.site-theme body.desktop-pilot #view-home .home-pages__primary > .page-tile::before,
    html.site-theme body.desktop-pilot #view-home .home-pages__primary > .page-tile::after {
        content: none;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary .page-tile {
        min-height: 12rem;
        padding: 1.5rem 1rem;
        border: 1px solid var(--color-border-mid);
        font-size: 0.78rem;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary .home-mobile-only {
        display: grid !important;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__primary .home-mobile-hidden,
    html.site-theme body.desktop-pilot #view-home .home-page-overview .home-mobile-hidden {
        display: none !important;
    }

    html.site-theme body.desktop-pilot #view-home .home-page-overview .home-mobile-only {
        display: grid !important;
    }

    html.site-theme body.desktop-pilot #view-home .home-page-overview [data-open-view="contact"] {
        order: 3;
    }

    html.site-theme body.desktop-pilot #view-home .home-page-overview [data-open-view="profile"] {
        order: 4;
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article {
        position: relative;
        overflow: hidden;
        grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr) auto;
        gap: 2rem;
        align-items: center;
        width: min(100%, 75rem);
        min-height: 14rem;
        margin-inline: auto;
        padding: clamp(2rem, 4vw, 3.25rem);
        border-color: var(--color-border-mid);
        border-left: 5px solid var(--color-coral-strong);
        border-radius: 5px;
        background:
            linear-gradient(115deg, rgb(239 217 185 / 80%), rgb(251 248 242 / 94%) 58%),
            var(--color-surface);
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article__illustration {
        position: absolute;
        z-index: 0;
        top: 0.85rem;
        right: -0.95rem;
        display: block !important;
        width: 7rem;
        height: auto;
        opacity: 1;
        transform: rotate(-17deg);
        filter: drop-shadow(0 0.25rem 0.15rem rgb(23 54 73 / 14%));
        pointer-events: none;
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article > span {
        position: relative;
        z-index: 1;
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article:hover,
    html.site-theme body.desktop-pilot #view-home .home-featured-article:focus-visible {
        background:
            linear-gradient(115deg, rgb(221 161 47 / 28%), rgb(251 248 242 / 96%) 58%),
            var(--color-surface);
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article__copy strong {
        max-width: 18ch;
        color: var(--rice-paper-coral);
        font-family: "Newsreader", Georgia, serif;
        font-size: clamp(2rem, 3.5vw, 3.4rem);
        font-weight: 500;
        line-height: 0.95;
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article__copy small {
        max-width: 42rem;
        color: var(--color-ink-soft);
        font-size: 0.76rem;
    }

    html.site-theme body.desktop-pilot #view-home .home-featured-article__link {
        color: var(--color-primary);
        font: 600 0.66rem/1.3 "IBM Plex Mono", monospace;
        white-space: nowrap;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__more {
        gap: 2.5rem;
        background: #ebe9f3;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__more-heading {
        justify-items: center;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__more-heading > span {
        display: none;
    }

    html.site-theme body.desktop-pilot #view-home .home-pages__more-heading h3 {
        color: var(--rice-paper-coral);
        font-family: "Newsreader", Georgia, serif;
        font-size: clamp(2.6rem, 4.5vw, 4.5rem);
        font-weight: 500;
        line-height: 0.95;
    }

    /* Generic internal pages: tall hero, then centred reading column. */
    html.site-theme body.desktop-pilot .calm-page-layout .calm-page-hero,
    html.site-theme body.desktop-pilot .metric-detail-hero {
        display: grid;
        min-height: 56svh;
        place-items: center;
        text-align: center;
    }

    html.site-theme body.desktop-pilot .calm-page-layout .calm-page-hero > div:last-child,
    html.site-theme body.desktop-pilot .metric-detail-hero > div {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 58rem);
        padding: 4rem 2rem;
    }

    html.site-theme body.desktop-pilot .calm-page-layout .calm-page-hero h1,
    html.site-theme body.desktop-pilot .metric-detail-hero h1 {
        max-width: 18ch;
        margin-inline: auto;
        font-size: clamp(3rem, 4.8vw, 4.8rem);
    }

    html.site-theme body.desktop-pilot .page-conversation-content,
    html.site-theme body.desktop-pilot .metric-detail-copy {
        width: min(calc(100% - 4rem), 54rem);
        margin-inline: auto;
        padding: clamp(5rem, 9vh, 8rem) 0;
    }

    html.site-theme body.desktop-pilot .page-conversation__action,
    html.site-theme body.desktop-pilot .profile-actions,
    html.site-theme body.desktop-pilot .share-panel,
    html.site-theme body.desktop-pilot .menu-links,
    html.site-theme body.desktop-pilot .chess-tool {
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot .tools-page,
    html.site-theme body.desktop-pilot .menu-layout {
        padding: clamp(4rem, 8vh, 7rem) max(2rem, calc((100vw - 62rem) / 2));
    }

    /* Internal app screens also become full, centred desktop pages. */
    html.site-theme body.desktop-pilot #view-tools .tools-page {
        display: block;
        width: 100%;
        max-width: none;
        padding: 0 0 7rem;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot #view-tools .tools-page > #tools-title {
        position: relative !important;
        z-index: 2;
        display: grid;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 48svh;
        margin: 0 !important;
        padding: clamp(4rem, 8vh, 6rem) 2rem !important;
        place-items: center;
        clip: auto !important;
        clip-path: none !important;
        overflow: visible !important;
        border-bottom: 1px solid var(--color-border-mid);
        color: var(--rice-paper-coral);
        font-family: "Newsreader", Georgia, serif;
        font-size: clamp(3.25rem, 5.4vw, 5.1rem);
        font-weight: 500;
        line-height: 0.92;
        text-align: center;
        white-space: normal !important;
    }

    html.site-theme body.desktop-pilot #view-tools .page-conversation {
        position: relative;
        z-index: 2;
        width: min(calc(100% - 4rem), 54rem);
        margin: 0 auto;
        padding: clamp(4rem, 8vh, 6rem) 0 0;
    }

    html.site-theme body.desktop-pilot #view-tools .page-conversation__choices {
        padding-right: 0.7rem;
    }

    html.site-theme body.desktop-pilot #view-tools .rice-paper-illustration--tools {
        position: absolute;
        inset: 0 0 auto;
        width: 100%;
        height: 48svh;
        min-height: 0;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot #view-rice .rice-page {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot #view-rice .chess-tool {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    html.site-theme body.desktop-pilot #view-rice .chess-tool__heading {
        display: grid;
        width: 100%;
        min-height: 48svh;
        padding: clamp(4rem, 8vh, 6rem) 2rem;
        place-items: center;
        justify-content: center;
        border-bottom: 1px solid var(--color-border-mid);
        background: var(--rice-paper-cream) url("/assets/rice-paper-tool.svg?v=20260813-2") center / cover no-repeat;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-rice .chess-tool__heading .tool-heading__copy {
        justify-items: center;
    }

    html.site-theme body.desktop-pilot #view-rice .chess-tool__heading .tool-heading__title {
        max-width: 16ch;
        font-size: clamp(3.25rem, 5.4vw, 5.1rem);
    }

    html.site-theme body.desktop-pilot #view-rice .rice-intro-chat,
    html.site-theme body.desktop-pilot #view-rice .rice-game,
    html.site-theme body.desktop-pilot #view-rice .chess-story {
        width: min(calc(100% - 4rem), 72rem);
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot #view-rice .rice-intro-chat {
        padding-top: clamp(4rem, 8vh, 6rem);
    }

    html.site-theme body.desktop-pilot #view-rice .rice-intro-chat .home-chat-window__messages::before,
    html.site-theme body.desktop-pilot #view-rice .rice-intro-chat .home-chat-window__messages::after {
        content: none;
    }

    html.site-theme body.desktop-pilot #view-rice .rice-intro-chat .message {
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot #view-rice .rice-game {
        margin-top: 2rem;
    }

    html.site-theme body.desktop-pilot #view-rice .chess-story {
        margin-top: 3rem;
    }

    html.site-theme body.desktop-pilot #view-rice {
        background-color: var(--rice-paper-cream);
        background-image: none;
    }

    html.site-theme body.desktop-pilot #view-contact .role-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(calc(100% - 4rem), 72rem);
        margin: clamp(4rem, 8vh, 6rem) auto 0;
    }

    html.site-theme body.desktop-pilot #view-contact .role-grid article {
        align-content: start;
        min-height: 20rem;
        padding: 2rem;
    }

    html.site-theme body.desktop-pilot #view-contact .share-panel {
        width: min(calc(100% - 4rem), 54rem);
        margin: 3rem auto 7rem;
    }

    html.site-theme body.desktop-pilot #view-profile .profile-layout {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    html.site-theme body.desktop-pilot #view-profile .profile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: min(calc(100% - 4rem), 54rem);
        margin: clamp(4rem, 8vh, 6rem) auto 0;
    }

    html.site-theme body.desktop-pilot #view-profile .share-panel {
        width: min(calc(100% - 4rem), 54rem);
        margin: 3rem auto 7rem;
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile {
        gap: 3.5rem;
        padding: 0 0 7rem;
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__hero {
        display: grid;
        min-height: 52svh;
        place-items: center;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__hero-copy {
        position: relative;
        top: auto;
        left: auto;
        width: min(calc(100% - 4rem), 58rem);
        padding: 4rem 2rem;
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__hero-copy h1 {
        max-width: 15ch;
        margin-inline: auto;
        font-size: clamp(3.1rem, 5vw, 5rem);
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__hero-copy p {
        max-width: 38rem;
        margin-inline: auto;
        font-size: 0.86rem;
    }

    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__figures,
    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__account,
    html.site-theme body.desktop-pilot #view-demo-profile .demo-profile__discover {
        width: min(calc(100% - 4rem), 72rem);
        margin-inline: auto;
    }

    /* Articles: full-width introduction followed by a long centred archive. */
    body.desktop-pilot.article-index-site .article-scroll--index {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
    }

    html.site-theme body.desktop-pilot.article-index-site .article-index-hero {
        display: grid;
        min-height: 64svh;
        place-items: center;
        border: 0;
        border-bottom: 1px solid var(--article-line);
        text-align: center;
    }

    html.site-theme body.desktop-pilot.article-index-site .article-index-hero > div:last-child {
        width: min(100%, 58rem);
        padding: 5rem 2rem;
    }

    html.site-theme body.desktop-pilot.article-index-site .article-index-hero h1 {
        font-size: clamp(3.75rem, 6.2vw, 5.8rem);
    }

    html.site-theme body.desktop-pilot.article-index-site .article-index-intro {
        max-width: 38rem;
        margin: 1.5rem auto 0;
        font-size: 1.2rem;
    }

    body.desktop-pilot.article-index-site .article-list {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 1rem;
        width: min(calc(100% - 4rem), 72rem);
        margin: 6rem auto 0;
    }

    body.desktop-pilot.article-index-site .article-card {
        grid-column: span 6;
        grid-template-rows: minmax(22rem, 1fr) auto;
        min-height: 34rem;
        padding: 0;
        text-align: left;
    }

    body.desktop-pilot.article-index-site .article-card:first-child {
        grid-column: span 7;
    }

    body.desktop-pilot.article-index-site .article-card:nth-child(2) {
        grid-column: span 5;
    }

    body.desktop-pilot.article-index-site .article-card:nth-child(3) {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 7fr) minmax(18rem, 5fr);
        grid-template-rows: minmax(20rem, auto);
        min-height: 20rem;
    }

    body.desktop-pilot.article-index-site .article-card__cover {
        min-height: 0;
        padding: clamp(2rem, 4vw, 3.5rem);
    }

    body.desktop-pilot.article-index-site .article-card__summary {
        padding: 2rem;
    }

    body.desktop-pilot.article-index-site .article-card h2 {
        max-width: 14ch;
        padding-top: 6rem;
        font-size: clamp(3rem, 4.5vw, 4.5rem);
    }

    body.desktop-pilot.article-index-site .article-card:nth-child(2) h2 {
        font-size: clamp(2.65rem, 3.8vw, 3.8rem);
    }

    body.desktop-pilot.article-index-site .article-card:nth-child(3) h2 {
        max-width: 16ch;
        padding-top: 4rem;
        font-size: clamp(2.75rem, 4vw, 4rem);
    }

    body.desktop-pilot.article-index-site .article-card p {
        max-width: 38rem;
        font-size: 0.92rem;
    }

    body.desktop-pilot.article-index-site .article-card__cover::before {
        top: 1.5rem;
        right: 2rem;
        font-size: clamp(5rem, 8vw, 8rem);
    }

    body.desktop-pilot.article-index-site .article-card__motif {
        width: 17rem;
        height: 12rem;
    }

    /* Simulator: every part becomes its own centred section in page order. */
    body.desktop-pilot.simulator-app-page .simulator-app-scroll {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot.simulator-app-page .standalone-main {
        background-color: var(--rice-paper-cream);
        background-image: none;
    }

    html.site-theme body.desktop-pilot.simulator-app-page .standalone-main::after {
        content: none;
    }

    body.desktop-pilot.simulator-app-page .fund-simulator {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        background: var(--rice-paper-cream);
    }

    body.desktop-pilot.simulator-app-page .fund-simulator__header {
        position: relative;
        justify-content: center;
        width: 100%;
        min-height: 52svh;
        padding: 6rem 2rem;
        border-bottom: 1px solid var(--color-border-mid);
        background: var(--rice-paper-cream) url("/assets/rice-paper-tool.svg?v=20260813-2") center / cover no-repeat;
        text-align: center;
    }

    body.desktop-pilot.simulator-app-page .tool-heading__copy {
        justify-items: center;
    }

    html.site-theme body.desktop-pilot.simulator-app-page .tool-heading .tool-heading__title {
        font-size: clamp(3.25rem, 5.4vw, 5.1rem);
    }

    body.desktop-pilot.simulator-app-page .scenario-badge {
        position: absolute;
        top: 2rem;
        right: max(2rem, calc((100vw - 72rem) / 2));
    }

    body.desktop-pilot.simulator-app-page .standalone-chat {
        width: min(calc(100% - 4rem), 48rem);
        margin: 0;
        padding: 5rem 0;
        text-align: center;
    }

    body.desktop-pilot.simulator-app-page .standalone-chat .home-chat-window__messages::before,
    body.desktop-pilot.simulator-app-page .standalone-chat .home-chat-window__messages::after {
        content: none;
    }

    body.desktop-pilot.simulator-app-page .standalone-chat .message {
        margin-inline: auto;
    }

    body.desktop-pilot.simulator-app-page .simulator-workspace {
        display: grid;
        grid-template-areas:
            "summary chart"
            "controls chart"
            "controls metrics";
        grid-template-columns: minmax(27rem, 0.82fr) minmax(0, 1.18fr);
        grid-template-rows: auto 1fr auto;
        gap: 1rem;
        align-items: stretch;
        width: min(calc(100% - 4rem), 72rem);
        min-height: calc(100svh - 4.75rem);
        margin-inline: auto;
        padding-block: 2rem;
        scroll-margin-top: 1rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-summary,
    body.desktop-pilot.simulator-app-page .simulator-results,
    body.desktop-pilot.simulator-app-page .simulator-controls-grid,
    html.site-theme body.desktop-pilot.simulator-app-page .simulator-metrics,
    body.desktop-pilot.simulator-app-page .simulator-method {
        width: min(calc(100% - 4rem), 72rem);
        margin-inline: auto;
    }

    body.desktop-pilot.simulator-app-page .simulator-summary {
        grid-area: summary;
        width: 100%;
        align-content: center;
        min-height: 8rem;
        margin: 0;
        padding: 1.25rem 1.5rem;
        text-align: center;
    }

    body.desktop-pilot.simulator-app-page .simulator-summary > strong {
        font-size: clamp(2.15rem, 3.4vw, 3rem);
    }

    body.desktop-pilot.simulator-app-page .simulator-results {
        grid-area: chart;
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: 100%;
        margin: 0;
        padding: 1.25rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-section-heading,
    body.desktop-pilot.simulator-app-page .simulator-controls-heading {
        justify-content: center;
        text-align: center;
    }

    body.desktop-pilot.simulator-app-page .simulator-section-heading h2 {
        font-size: 1.25rem;
    }

    body.desktop-pilot.simulator-app-page .chart-legend {
        font-size: 0.62rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-chart {
        height: auto;
        min-height: 18rem;
        padding: 0.75rem;
        border-color: rgb(24 60 86 / 22%);
        border-radius: 10px;
        background:
            linear-gradient(180deg, rgb(134 183 215 / 8%), transparent 45%),
            rgb(251 248 242 / 96%);
        aspect-ratio: auto;
    }

    body.desktop-pilot.simulator-app-page .fund-chart #chart-labels text {
        fill: rgb(24 60 86 / 72%);
        font-family: "IBM Plex Mono", monospace;
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    body.desktop-pilot.simulator-app-page .fund-chart #chart-grid line {
        stroke: rgb(24 60 86 / 13%);
        stroke-dasharray: 3 5;
    }

    body.desktop-pilot.simulator-app-page .fund-line {
        stroke-width: 3.5;
    }

    body.desktop-pilot.simulator-app-page .contribution-line {
        stroke-width: 2.5;
        stroke-dasharray: 7 7;
    }

    body.desktop-pilot.simulator-app-page .simulator-controls-grid {
        grid-area: controls;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin: 0;
    }

    body.desktop-pilot.simulator-app-page .simulator-controls-heading {
        grid-column: 1 / -1;
        padding: 1rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-field {
        min-height: 6.3rem;
        padding: 0.75rem;
        border-bottom: 1px solid var(--color-border-soft);
        border-left: 1px solid var(--color-border-soft);
    }

    body.desktop-pilot.simulator-app-page .simulator-field:nth-of-type(odd) {
        border-left: 0;
    }

    body.desktop-pilot.simulator-app-page .simulator-field:nth-last-of-type(-n + 2) {
        border-bottom: 0;
    }

    body.desktop-pilot.simulator-app-page .simulator-field b {
        font-size: 0.72rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-field output {
        padding: 0.2rem 0.38rem;
        font-size: 0.66rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-field > small {
        font-size: 0.56rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-field input[type="range"] {
        height: 1.35rem;
    }

    html.site-theme body.desktop-pilot.simulator-app-page .simulator-metrics {
        grid-area: metrics;
        width: 100%;
        margin: 0;
    }

    body.desktop-pilot.simulator-app-page .result-cards article {
        min-height: 7rem;
        padding: 0.85rem;
        text-align: center;
    }

    body.desktop-pilot.simulator-app-page .result-cards span,
    body.desktop-pilot.simulator-app-page .result-cards small {
        font-size: 0.6rem;
    }

    body.desktop-pilot.simulator-app-page .result-cards strong {
        font-size: 1.05rem;
    }

    body.desktop-pilot.simulator-app-page .simulator-method {
        margin-top: clamp(2.5rem, 4vh, 3.5rem);
    }

    /* Article pages: one wide introduction followed by a calm reading column. */
    body.desktop-pilot.article-site:not(.article-index-site) .article-scroll {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
        background: var(--article-cream);
    }

    html.site-theme body.desktop-pilot.article-site:not(.article-index-site) .standalone-main {
        background-color: var(--article-cream);
        background-image: none;
    }

    html.site-theme body.desktop-pilot.article-site:not(.article-index-site) .standalone-main::after {
        content: none;
    }

    body.desktop-pilot.article-site:not(.article-index-site) .article-back {
        margin: 2rem max(2rem, calc((100vw - 72rem) / 2));
    }

    html.site-theme body.desktop-pilot.article-site:not(.article-index-site) .article-hero {
        display: grid;
        min-height: 54svh;
        justify-items: center;
        align-content: center;
        padding: clamp(4rem, 8vh, 7rem) max(2rem, calc((100vw - 66rem) / 2));
        border-inline: 0;
        text-align: center;
    }

    html.site-theme body.desktop-pilot.article-site:not(.article-index-site) .article-hero h1 {
        max-width: 18ch;
        font-size: clamp(3.1rem, 5vw, 5rem);
    }

    body.desktop-pilot.article-site:not(.article-index-site) .article-hero__intro,
    body.desktop-pilot.article-site:not(.article-index-site) .article-meta {
        margin-inline: auto;
    }

    body.desktop-pilot.article-site:not(.article-index-site) .article-meta,
    body.desktop-pilot.article-site:not(.article-index-site) .article-actions {
        justify-content: center;
    }

    body.desktop-pilot.article-site:not(.article-index-site) .article-body,
    body.desktop-pilot.article-site:not(.article-index-site) .article-related {
        width: min(calc(100% - 4rem), 48rem);
    }

    body.desktop-pilot.article-site:not(.article-index-site) .article-body {
        padding-top: clamp(4rem, 8vh, 6rem);
    }

    /* Standalone account, legal and tool routes use the same long-page rhythm. */
    body.desktop-pilot.signup-page .signup-scroll,
    body.desktop-pilot.login-page .login-scroll,
    body.desktop-pilot.dashboard-page .dashboard-scroll,
    body.desktop-pilot .legal-page,
    body.desktop-pilot.terminal-kelly-page .kelly-app-scroll {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
    }

    html.site-theme body.desktop-pilot.signup-page .join-intro__visual,
    html.site-theme body.desktop-pilot.login-page .login-hero,
    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__hero {
        display: grid;
        min-height: 52svh;
        place-items: center;
        text-align: center;
    }

    html.site-theme body.desktop-pilot.signup-page .join-intro__visual > div,
    html.site-theme body.desktop-pilot.login-page .login-hero > div,
    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__hero-copy {
        position: relative;
        top: auto;
        left: auto;
        width: min(calc(100% - 4rem), 58rem);
        padding: 4rem 2rem;
    }

    html.site-theme body.desktop-pilot.signup-page .join-intro__visual h1,
    html.site-theme body.desktop-pilot.login-page .login-hero h1,
    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__hero-copy h1 {
        max-width: 15ch;
        margin-inline: auto;
        font-size: clamp(3.1rem, 5vw, 5rem);
    }

    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__hero-copy p {
        max-width: 38rem;
        margin-inline: auto;
        font-size: 0.86rem;
    }

    html.site-theme body.desktop-pilot.signup-page .join-intro__content,
    html.site-theme body.desktop-pilot.login-page .login-content {
        width: min(calc(100% - 4rem), 46rem);
        max-width: none;
        margin-inline: auto;
        padding: clamp(4rem, 8vh, 6rem) 0;
    }

    html.site-theme body.desktop-pilot.signup-page .signup-form-region {
        width: min(calc(100% - 4rem), 46rem);
        margin: 1.5rem auto 7rem;
    }

    html.site-theme body.desktop-pilot.signup-page .join-intro__content {
        padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
    }

    html.site-theme body.desktop-pilot.dashboard-page .demo-profile {
        gap: 3.5rem;
    }

    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__figures,
    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__account,
    html.site-theme body.desktop-pilot.dashboard-page .demo-profile__discover,
    html.site-theme body.desktop-pilot.dashboard-page .dashboard-settings {
        width: min(calc(100% - 4rem), 72rem);
        margin-inline: auto;
    }

    html.site-theme body.desktop-pilot.dashboard-page .dashboard-settings {
        padding: 2rem;
        border: 1px solid var(--color-border-mid);
    }

    body.desktop-pilot .legal-page {
        padding-top: 3rem;
    }

    body.desktop-pilot .legal-page > .standalone-back,
    body.desktop-pilot .legal-page > .standalone-chat,
    body.desktop-pilot .legal-page > .legal-panel {
        width: min(calc(100% - 4rem), 58rem);
        margin-inline: auto;
    }

    body.desktop-pilot .legal-page > .standalone-back {
        width: fit-content;
        margin-left: max(2rem, calc((100vw - 58rem) / 2));
    }

    body.desktop-pilot .legal-page > .legal-panel {
        padding: clamp(2rem, 4vw, 3.5rem);
    }

    body.desktop-pilot .legal-page .standalone-panel__heading h1 {
        font-size: clamp(2.5rem, 4vw, 4rem);
        line-height: 1;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 7rem;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot.terminal-kelly-page .standalone-main {
        background-color: var(--rice-paper-cream);
        background-image: none;
    }

    html.site-theme body.desktop-pilot.terminal-kelly-page .standalone-main::after {
        content: none;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__header {
        display: grid;
        width: 100%;
        min-height: 48svh;
        padding: clamp(4rem, 8vh, 6rem) 2rem;
        place-items: center;
        justify-items: center;
        border-bottom: 1px solid var(--color-border-mid);
        background: var(--rice-paper-cream) url("/assets/rice-paper-tool.svg?v=20260813-2") center / cover no-repeat;
        text-align: center;
    }

    html.site-theme body.desktop-pilot.terminal-kelly-page .kelly-play__header h1 {
        font-size: clamp(3.1rem, 5vw, 5rem);
    }

    body.desktop-pilot.terminal-kelly-page .standalone-chat {
        width: min(calc(100% - 4rem), 72rem);
        margin-top: 5rem;
        margin-inline: auto;
    }

    body.desktop-pilot.terminal-kelly-page .standalone-chat .home-chat-window__messages::before,
    body.desktop-pilot.terminal-kelly-page .standalone-chat .home-chat-window__messages::after {
        content: none;
    }

    body.desktop-pilot.terminal-kelly-page .standalone-chat .message {
        width: 100%;
        max-width: none;
        margin-inline: auto;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__rules,
    body.desktop-pilot.terminal-kelly-page .kelly-play__choices,
    body.desktop-pilot.terminal-kelly-page .kelly-play__board,
    body.desktop-pilot.terminal-kelly-page .kelly-play__results,
    body.desktop-pilot.terminal-kelly-page .kelly-play__explanation {
        width: min(calc(100% - 4rem), 72rem);
        margin-inline: auto;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__board {
        gap: 1rem;
        padding: 1.25rem;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart {
        gap: 0.7rem;
        width: min(100%, 58rem);
        margin-top: 0.25rem;
        padding: 1rem 1.1rem 0.85rem;
        justify-self: center;
        border: 1px solid rgb(24 60 86 / 20%);
        border-radius: 10px;
        background: rgb(251 248 242 / 92%);
        box-shadow: 0 0.65rem 1.8rem rgb(35 70 93 / 8%);
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart figcaption span {
        color: rgb(24 60 86 / 72%);
        font: 500 0.62rem/1.3 "IBM Plex Mono", monospace;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart figcaption strong {
        padding: 0.35rem 0.55rem;
        border: 1px solid rgb(24 60 86 / 22%);
        border-radius: 999px;
        background: rgb(134 183 215 / 16%);
        color: var(--rice-paper-ink);
        font-size: 0.72rem;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart svg {
        height: 18rem;
        aspect-ratio: auto;
        border-color: rgb(24 60 86 / 18%);
        border-radius: 8px;
        background:
            linear-gradient(180deg, rgb(134 183 215 / 12%), transparent 58%),
            rgb(255 253 247 / 94%);
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-grid line {
        stroke: rgb(24 60 86 / 13%);
        stroke-dasharray: 3 6;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-baseline {
        stroke: rgb(196 75 55 / 60%);
        stroke-dasharray: 7 7;
        stroke-width: 1.5;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-area {
        fill: rgb(134 183 215 / 20%);
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-line {
        stroke: var(--color-primary);
        stroke-width: 4;
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-current {
        fill: var(--rice-paper-gold);
        stroke: var(--rice-paper-ink);
        stroke-width: 2;
        filter: drop-shadow(0 2px 3px rgb(35 70 93 / 22%));
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart-axis {
        color: rgb(24 60 86 / 65%);
        font: 500 0.56rem/1.2 "IBM Plex Mono", monospace;
    }

    /* Keep the Kelly game, explanations and controls on one shared reading width. */
    body.desktop-pilot.simulator-app-page .simulator-method,
    body.desktop-pilot.terminal-kelly-page .kelly-play__explanation {
        width: min(calc(100% - 4rem), 72rem);
    }

    body.desktop-pilot.terminal-kelly-page .kelly-play__chart {
        width: 100%;
        max-width: none;
    }

    html.site-theme body.desktop-pilot #view-rice .chess-story {
        width: min(calc(100% - 4rem), 38rem);
    }

    html.site-theme body.desktop-pilot .tool-chat-details > summary {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 3.5rem;
        padding: 0.7rem 0.85rem;
        border-right: 1px solid var(--color-border-strong);
        border-left: 4px solid var(--color-coral-strong);
        border-radius: 5px;
    }

    html.site-theme body.desktop-pilot .tool-chat-details > summary .message-avatar {
        grid-column: 1;
        width: 2.75rem;
        min-width: 2.75rem;
        height: 1.9rem;
    }

    html.site-theme body.desktop-pilot .tool-chat-details > summary > span:not(.message-avatar) {
        grid-column: 2;
        text-align: left;
    }

    html.site-theme body.desktop-pilot .tool-chat-details > summary svg {
        grid-column: 3;
    }

    html.site-theme body.desktop-pilot .tool-chat-details .tool-chat-details__messages {
        width: min(100%, 48rem);
        margin-inline: auto;
        padding-top: 1.25rem;
    }

    /* Menu: a compact, centred page index instead of a mobile button list. */
    html.site-theme body.desktop-pilot #view-menu .menu-layout {
        width: 100%;
        max-width: none;
        gap: 3rem;
        padding: clamp(4rem, 8vh, 6rem) max(2rem, calc((100vw - 72rem) / 2)) 7rem;
    }

    html.site-theme body.desktop-pilot #view-menu .desktop-menu-heading {
        display: grid;
        justify-items: center;
        gap: 0.45rem;
        text-align: center;
    }

    html.site-theme body.desktop-pilot #view-menu .desktop-menu-heading span {
        color: var(--color-coral);
        font: 500 0.62rem/1 "IBM Plex Mono", monospace;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    html.site-theme body.desktop-pilot #view-menu .desktop-menu-heading h1 {
        margin: 0;
        color: var(--rice-paper-coral);
        font-family: "Newsreader", Georgia, serif;
        font-size: clamp(3.5rem, 5.8vw, 5.8rem);
        font-weight: 500;
        line-height: 0.9;
    }

    html.site-theme body.desktop-pilot .menu-links.page-overview-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
        width: min(100%, 66rem);
        padding: 0;
        overflow: visible;
        border: 0;
    }

    html.site-theme body.desktop-pilot .menu-links.page-overview-grid::before,
    html.site-theme body.desktop-pilot .menu-links.page-overview-grid > *::before,
    html.site-theme body.desktop-pilot .menu-links.page-overview-grid > *::after {
        display: none;
        content: none;
    }

    html.site-theme body.desktop-pilot .menu-links.page-overview-grid a,
    html.site-theme body.desktop-pilot .menu-links.page-overview-grid button {
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 0.7rem;
        min-height: 8rem;
        padding: 1.25rem;
        border: 1px solid var(--color-border-mid);
        border-radius: 5px;
        text-align: center;
    }

    html.site-theme body.desktop-pilot .menu-links.page-overview-grid svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    /* Chats: a long desktop stage with the original conversation as a phone. */
    html.site-theme body.desktop-pilot #view-chats.app-chat-view.is-active {
        display: grid;
        grid-template-rows: auto;
        justify-items: center;
        align-content: start;
        gap: 0;
        height: 100%;
        padding: clamp(3rem, 6vh, 4.5rem) 2rem clamp(6rem, 10vh, 9rem);
        overflow-y: auto;
        background: var(--rice-paper-cream);
    }

    html.site-theme body.desktop-pilot #view-chats .rice-paper-illustration--chats {
        position: absolute;
        inset: 0;
        min-height: 100%;
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room,
    html.site-theme body.desktop-pilot #view-chats.has-active-chat .chat-room {
        position: relative;
        z-index: 2;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        width: min(100%, 23.5rem);
        height: 47.5rem;
        min-height: 47.5rem;
        margin: 0;
        overflow: hidden;
        border: 0.55rem solid var(--rice-paper-ink);
        border-radius: 2.4rem;
        background: var(--rice-paper-cream);
        box-shadow: 0 1.75rem 4rem rgb(35 70 93 / 24%);
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room::before {
        position: absolute;
        z-index: 4;
        top: 0.45rem;
        left: 50%;
        width: 4.5rem;
        height: 0.35rem;
        border-radius: 999px;
        background: var(--rice-paper-ink);
        content: "";
        opacity: 0.8;
        pointer-events: none;
        transform: translateX(-50%);
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room::after {
        content: none;
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room__messages {
        padding: 2.25rem 1rem 1rem;
        background:
            linear-gradient(var(--color-primary), var(--color-primary)) var(--generation-axis-start) 0 / 1px 100% no-repeat,
            linear-gradient(var(--color-coral), var(--color-coral)) calc(100% - var(--generation-axis-end)) 0 / 1px 100% no-repeat,
            rgb(247 241 233 / 96%);
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room__messages .message {
        max-width: calc(100% - 6.2rem);
        font-size: 0.76rem;
        line-height: 1.42;
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room__choices {
        grid-template-columns: 1fr;
        max-height: none;
        padding: 0.7rem calc(var(--generation-axis-end) + 2rem) 0.7rem calc(var(--generation-axis-start) + 1.25rem);
        overflow: visible;
        background:
            linear-gradient(var(--color-primary), var(--color-primary)) var(--generation-axis-start) 0 / 1px 100% no-repeat,
            linear-gradient(var(--color-coral), var(--color-coral)) calc(100% - var(--generation-axis-end)) 0 / 1px 100% no-repeat,
            rgb(247 241 233 / 94%);
    }

    html.site-theme body.desktop-pilot #view-chats .chat-room__choices button {
        min-height: 2.4rem;
        padding: 0.55rem 0.65rem;
        font-size: 0.66rem;
    }
}

@media (min-width: 1024px) and (max-width: 1180px) {
    html.site-theme body.desktop-pilot .app-header {
        padding-inline: 1.25rem;
    }

    html.site-theme body.desktop-pilot .app-header .welcome-brand span {
        display: none;
    }

    html.site-theme body.desktop-pilot .app-tabbar {
        grid-template-columns: repeat(5, 5.35rem);
    }

    html.site-theme body.desktop-pilot .app-tabbar button,
    html.site-theme body.desktop-pilot .standalone-tabbar a {
        padding-inline: 0.5rem;
    }
}
