/*
   Private application-shell defaults. These are title-neutral engineering presentation values;
   the resolved hosted appearance remains the only title-selected value source in this surface.
*/

.microculture-shell {
    background: #0F0E11;
    color: #F1EBE5;
}

.private-title-shell {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    width: min(82rem, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--chat-bg, #0F0E11);
    color: var(--chat-assistant-text, #F1EBE5);
    font-family: var(--chat-font, Inter, ui-sans-serif, system-ui, sans-serif);
}

.private-shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid color-mix(in srgb, var(--chat-input-border, #b8aaa0) 62%, transparent);
}

.private-shell-brand,
.private-shell-profile,
.private-shell-primary-nav a,
.private-shell-action {
    color: inherit;
    text-decoration: none;
}

.private-shell-brand {
    display: inline-grid;
    gap: 0.15rem;
    min-width: min-content;
}

.private-shell-brand-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.private-shell-brand-context,
.private-shell-profile-label,
.private-shell-primary-nav a,
.private-shell-action {
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.private-shell-brand-context,
.private-shell-profile-label {
    color: color-mix(in srgb, var(--chat-assistant-text, #29231f) 62%, #74685e);
}

.private-shell-primary-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-inline: auto;
}

.private-shell-primary-nav a,
.private-shell-profile {
    border-radius: 999px;
    padding: 0.6rem 0.8rem;
    color: color-mix(in srgb, var(--chat-assistant-text, #29231f) 72%, #74685e);
}

.private-shell-primary-nav a:hover,
.private-shell-primary-nav a:focus-visible,
.private-shell-primary-nav a.is-active {
    color: var(--chat-assistant-text, #29231f);
    background: color-mix(in srgb, var(--chat-primary, #725775) 12%, var(--chat-assistant-bg, #fffdf8));
}

.private-shell-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid color-mix(in srgb, var(--chat-input-border, #b8aaa0) 66%, transparent);
    background: color-mix(in srgb, var(--chat-bg, #0F0E11) 88%, var(--chat-assistant-bg, #18151A));
}

.private-shell-profile::before {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--chat-primary, #725775);
    content: "";
}

.private-shell-content {
    min-width: 0;
}

.private-page {
    display: grid;
    min-height: min(38rem, calc(100vh - 13rem));
    align-content: center;
    gap: 1rem;
    width: min(46rem, 100%);
    margin: 0 auto;
    padding-block: clamp(1rem, 5vw, 4rem);
}

.private-page h1 {
    margin: 0;
    color: var(--chat-assistant-text, #29231f);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.private-page-description {
    max-width: 56ch;
    margin: 0;
    color: color-mix(in srgb, var(--chat-assistant-text, #29231f) 72%, #74685e);
    font-size: 1.05rem;
    line-height: 1.65;
}

.private-shell-action {
    justify-self: start;
    margin-top: 0.5rem;
    border-radius: 999px;
    padding: 0.78rem 1rem;
    background: var(--chat-primary, #725775);
    color: var(--chat-send-text, #fffdf8);
}

.private-shell-action:hover,
.private-shell-action:focus-visible {
    filter: brightness(0.95);
}

.private-you-placeholder {
    width: min(56rem, 100%);
}

.private-placeholder-boundary {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 1rem 1.1rem;
    border: 1px solid color-mix(in srgb, var(--chat-input-border, #b8aaa0) 64%, transparent);
    border-radius: var(--chat-radius, 1rem);
    background: color-mix(in srgb, var(--chat-assistant-bg, #fffdf8) 88%, white);
    color: color-mix(in srgb, var(--chat-assistant-text, #29231f) 72%, #74685e);
    font-size: 0.92rem;
    line-height: 1.5;
}

.private-title-shell :is(a, button, textarea):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--chat-primary, #725775) 38%, white);
    outline-offset: 3px;
}

/* FocusOnNavigate moves assistive focus to the route heading. Keep that semantic focus without
   drawing the browser's interactive-control outline around noninteractive text. */
.microculture-shell :is(h1, h2):focus {
    outline: none;
}

/* Talk is the product center. Its route owns one compact conversation bar, so the general shell
   contributes only title resolution/appearance and gives the page the widest useful canvas. */
.private-title-shell.is-talk-shell {
    gap: 0;
    width: min(96rem, 100%);
    min-height: 100dvh;
}

.private-title-shell.is-talk-shell .private-shell-content {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.microculture-shell.is-talk-shell {
    padding: 0;
}

@media (max-width: 640px) {
    .private-shell-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .private-shell-primary-nav {
        grid-column: 1 / -1;
        justify-self: start;
        margin: 0;
    }

    .private-page {
        min-height: calc(100vh - 14rem);
        padding-block: 1.5rem 3rem;
    }

    .private-title-shell.is-talk-shell {
        width: 100%;
    }
}
