/* /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); }
.agent-control, #recovery-action { display: inline-flex; align-items: center; gap: .38rem; padding: 0; 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: 2rem 0 1.5rem; }
.active-session-controls { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .8rem; border-block: 1px solid var(--rule); }
.session-status { display: inline-flex; align-items: center; gap: .4rem; flex: none; font-size: .95rem; color: var(--muted); margin: 0; }
.voice-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem 1.1rem; }
.agent-control:hover:not(:disabled) { color: var(--link-hover); }
.control-icon { width: 1em; height: 1em; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control-icon .solid { fill: currentColor; stroke: none; }
.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; }
.source-view { margin-top: 2rem; }
.source-view[data-visible="false"] { display: none; }
.source-code-view { padding-top: 1rem; border-top: 1px solid var(--rule); }
.source-location, .source-incomplete { margin: 0 0 .65rem; color: var(--muted); font: .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.source-code { max-width: 100%; }
.source-code .cm-editor { max-width: 100%; }
.source-incomplete { margin-top: .65rem; color: var(--link); }
.debug-log { margin-top: 2.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); font: .7rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); }
.debug-log h2 { margin: 0 0 .65rem; font: inherit; font-weight: 600; color: var(--text); }
.debug-log ol { max-height: 14rem; margin: 0; padding: 0; overflow: auto; list-style: none; overflow-wrap: anywhere; }
.debug-log li { margin: .12rem 0; }
.debug-log strong { color: var(--text); font-weight: 600; }
.debug-log code { color: inherit; font: inherit; }
[hidden] { display: none !important; }
@media (max-width: 36rem) {
  .activity-description { display: block; margin: .15rem 0 0 1rem; }
  .active-session-controls { align-items: flex-start; flex-direction: column; }
  .voice-actions { justify-content: flex-start; }
}
