/* /site.css and /cv.css are the pinned CV's unmodified stylesheets.
   Scoped demo layout keeps their Charter body, paper/ink palette and mark treatment. */
.cover-letter-intro h1 { margin: 0; font-size: 1.5rem; line-height: 1.4; font-weight: normal; letter-spacing: -.01em; }
.cover-letter-intro { max-width: 37rem; }
.access-card { margin-top: 2rem; }
.access-card label { display: block; margin-bottom: .5rem; }
.input-row { display: flex; gap: 1rem; align-items: center; }
.input-row input { flex: 1; min-width: 0; }
.access-card input { font: inherit; color: var(--text); background: transparent; border: 1px solid var(--rule); border-radius: 3px; padding: .6rem .75rem; }
.access-card input::placeholder { color: var(--muted); }
.access-card button, .conversation button, #recovery-action { font: inherit; color: var(--link); border: 0; background: transparent; cursor: pointer; }
.access-card button { white-space: nowrap; }
button:focus-visible, input:focus-visible, .conversation summary:focus-visible, .previous-conversation>summary:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
button:disabled { opacity: .6; cursor: default; }
#access-status:empty { display: none; }
#access-status, .notice { color: var(--muted); }
.previous-conversation { margin: 2rem 0; border-block: 1px solid var(--rule); padding: 1rem 0; }
.previous-conversation>summary { cursor: pointer; font-size: 1rem; }
.previous-conversation>summary span { color: var(--muted); }
.history-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.previous-conversation .activity-transcript { max-height: 55vh; overflow: auto; padding-right: .5rem; }
.conversation h2 { font-size: 1.2rem; margin: 1.75rem 0 1rem; font-weight: normal; }
.chat-log { max-height: 52vh; overflow-y: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.session-controls { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.session-status { font-size: 1rem; color: var(--muted); margin: 0 0 .85rem; }
.voice-actions { display: flex; align-items: center; gap: 1.25rem; }
.conversation .start-agent { font-size: 1.0625rem; line-height: 1.3; padding: .65rem 1.1rem; color: var(--text); background: transparent; border: 1px solid var(--text); border-radius: .25rem; min-height: 44px; }
.conversation .start-agent:hover:not(:disabled) { background: var(--surface); }
.conversation .lock { font-size: .95rem; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; }
.notice { font-size: .95rem; line-height: 1.5; margin: .9rem 0 0; }
.activity-entry { margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--rule); }
.activity-entry:last-child { border-bottom: 0; }
.activity-label { display: block; font-size: .9rem; line-height: 1.5; color: var(--muted); }
.activity-entry.message p { margin: .25rem 0 0; white-space: pre-wrap; font-size: 1.0625rem; line-height: 1.6; }
.activity-entry.message details { margin-top: .5rem; }
.activity-entry details>summary { cursor: pointer; font-size: .95rem; }
.activity-entry summary .activity-label { display: inline; color: var(--text); }
.activity-description { margin-left: .6rem; color: var(--muted); font-size: .9rem; }
.activity-entry pre { font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; padding: .75rem; margin: .75rem 0 .25rem; }
.partial { margin: .8rem 0; font-size: 1.0625rem; }
.partial span { display: block; color: var(--muted); font-size: .9rem; }
.theatre { position: relative; height: min(55vh, 32rem); overflow: hidden; pointer-events: none; user-select: none; margin-top: 1.5rem; }
.theatre[data-visible="false"] { height: 0; margin-top: 0; }
.viewer-host { position: absolute; inset: 0; }
[hidden] { display: none !important; }
@media (max-width: 36rem) { .activity-description { display: block; margin: .15rem 0 0 1rem; } }

.conversation[data-active="false"] .session-controls { border-top: 0; padding-top: 0; margin-top: 2rem; }
