/* Shared product chrome uses the same quiet paper/ink medium as the hosted conversation.
   No title switch, copied message grammar, or consumer preference state. */
:root {
    color-scheme: light;
    background: var(--chat-bg);
    color: var(--chat-assistant-text);
    --chat-bg: #f3efe7;
    --chat-assistant-bg: #fffdf8;
    --chat-assistant-text: #29231f;
    --chat-input-border: #b8aaa0;
    --chat-send-text: #fffdf8;
}

html, body, .microculture-shell {
    background: var(--chat-bg);
    color: var(--chat-assistant-text);
}

.private-entry { padding: clamp(1.5rem, 5vw, 4rem); }
.private-state { padding: 2rem 1rem; }
.private-entry .private-state { padding: 0; }
.private-state h1 { color: var(--chat-assistant-text); }
.private-state .private-shell-action { border: 0; cursor: pointer; min-height: 44px; }
.private-entry-disclosure { font-size: .85rem !important; padding-top: 2rem; }
.private-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.5rem; }
.private-entry-actions .private-entry-signin {
    background: #814653;
    color: #fffdf8;
    border: 1px solid #814653;
    padding: .75rem 1.4rem;
    font-weight: 650;
}
.private-entry-actions .private-entry-read {
    background: transparent;
    color: var(--chat-assistant-text);
    border: 1px solid var(--chat-input-border);
    padding: .75rem 1.4rem;
}
.private-entry-actions .private-entry-signin:hover { background: #683843; }
.private-entry-actions .private-entry-read:hover { background: var(--chat-assistant-bg); }

/* One indeterminate status for real work only; no progress value or artificial wait. */
.nocturne-opening {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 7rem;
    padding: 2rem 1rem;
    color: var(--chat-assistant-text);
}
.nocturne-opening p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.nocturne-opening-mark {
    display: inline-block;
    flex: 0 0 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--chat-input-border);
    border-top-color: #814653;
    border-radius: 50%;
    animation: nocturne-opening-turn 1.8s linear infinite;
}
@keyframes nocturne-opening-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .nocturne-opening-mark { animation: none; }
}
.private-you-boundary-copy { display: grid; gap: 1rem; }
.private-state :is(a, button):focus-visible {
    outline: 3px solid #814653;
    outline-offset: 4px;
}

.private-title-shell:not(.is-talk-shell) :is(.private-home-eyebrow, .private-home-return-label, .private-home-fixture-category) {
    color: var(--chat-primary, #814653);
}

.private-title-shell:not(.is-talk-shell) :is(.private-attention-detail-meta, .private-attention-detail-status, .private-attention-evidence-kind, .private-attention-source span, .private-attention-source time, .private-attention-source-no-link) {
    color: #66584f;
}

.private-attention-source { overflow-wrap: anywhere; }
.private-attention-source a { min-height: 44px; display: inline-flex; align-items: center; }
.private-shell-primary-nav a, .private-shell-profile,
.private-talk-history-trigger, .private-talk-new-action, .private-talk-history-close { min-height: 44px; }
.private-talk-history-layer[inert] { visibility: hidden; }
.private-talk-history-layer { z-index: 200; }
.private-talk-history-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.private-title-shell .message-timestamp { color: var(--private-muted, #66584f); opacity: 1; }

@media (max-width: 640px) {
    .private-shell-header { display: flex; align-items: center; gap: .4rem; }
    .private-shell-primary-nav { margin-left: auto; }
    .private-title-shell .private-home-hero h1 { font-size: clamp(2.8rem, 14vw, 5.6rem); }
    .private-title-shell .private-home { gap: 2.5rem; }
    .private-talk-history-drawer { width: min(22rem, 86vw); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
