/* Reuses Mystic tokens. One optional context, no new navigation or assets. */
.account-page .question-context-panel { flex:0 0 auto; min-width:0; margin:0 16px 8px; padding:8px 0; border-bottom:1px solid var(--border-gold); font-size:14px; line-height:1.5; }
.question-context-panel[open] { max-height:45vh; max-height:45dvh; overflow:auto; overscroll-behavior:contain; }
/* A short keyboard viewport must scroll instead of crushing the transcript. */
.account-page [data-chat-expanded="true"] #chat-module { overflow-y:auto; overscroll-behavior:contain; }
.account-page [data-chat-expanded="true"] #messages { flex:1 0 112px; min-height:112px; }
.account-page [data-chat-expanded="true"] .question-context-panel { flex:0 1 auto; min-height:44px; }
.account-page [data-chat-expanded="true"] .question-context-panel[open] { min-height:112px; }
.account-page [data-chat-expanded="true"] #send-form { min-height:84px; }
.question-context-panel summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--gold-primary); font-size:14px; overflow-wrap:anywhere; }
.question-context-panel p { white-space:pre-wrap; overflow-wrap:anywhere; }
.question-context-panel label { display:block; margin-block:12px; font-size:14px; }
.account-page .question-context-panel :is(input,textarea,select) { display:block; width:100%; box-sizing:border-box; min-width:0; margin-top:6px; font-size:16px; }
.account-page .question-context-panel :is(button,select), .account-page .takeaway-action { min-height:44px; font-size:14px; padding:8px 12px; }
.account-page .takeaway-action { display:block; background:transparent; box-shadow:none; border-color:transparent; color:var(--gold-primary); text-decoration:underline; text-underline-offset:3px; margin-block:8px 0; }
.account-page .message p > strong { display:block; margin-block:20px 8px; font-size:16px; line-height:1.6; color:var(--gold-primary); }
.account-page .message p { font-size:16px; line-height:1.6; }
.account-page :is(.question-context-panel,.takeaway-action,#question-home-action) :focus-visible, .account-page :is(.takeaway-action,#question-home-action):focus-visible { outline:2px solid var(--gold-primary); outline-offset:3px; }
#question-home { max-width:340px; margin:20px auto 0; padding-bottom:24px; }
#question-home-action { width:100%; min-height:48px; }
#question-home-context { white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text-main); font-size:14px; line-height:1.5; }
.account-page .scene-art-label { font-size:12px; line-height:1.4; }
.account-page :is(.tone-control-hint,.voice-details,.space-dock button) { font-size:12px; }
.account-page #send-check { min-height:44px; font-size:14px; background:transparent; color:var(--gold-primary); }
#send-check-notice { font-size:13px; line-height:1.5; }
/* The navigation backdrop is confined to its controls, leaving home text visible. */
.account-page .space-dock::before { width:100%; height:110px; bottom:-16px; border-radius:24px; }
/* Desktop content scrolls above the dock, so its controls cover no text. */
@media(min-width:761px) {
 .account-page:has(#workspace:not([hidden])):not([data-chat-open="true"]) { height:100dvh; overflow:hidden; }
 .account-page:has(#workspace:not([hidden])):not([data-chat-open="true"]) .full-deck-shell { height:calc(100dvh - 112px); min-height:0; overflow-y:auto; overscroll-behavior:contain; padding-bottom:24px; }
}
@media(min-width:761px) and (max-height:800px) {
 .account-page .card-stage { height:320px; }
 .account-page button.scene-card { width:195px; }
 .account-page .nameplate-title { font-size:16px; }
 .account-page .scene-back { height:250px; width:165px; top:35px; }
 .account-page .scene-back-left { left:calc(50% - 185px); }
 .account-page .scene-back-right { right:calc(50% - 185px); }
 .account-page .scene-halo { width:340px; }
}
@media(max-width:360px) { .question-context-panel { margin-inline:12px; } }

/* The card, not the viewport, determines the available nameplate width. */
.account-page .scene-card { container-type:inline-size; }
.account-page .scene-nameplate { grid-template-columns:minmax(0,1fr); }
.account-page .nameplate-title { min-width:0; justify-self:center; font-size:13px; }
@supports (font-size:1cqw) {
 .account-page .nameplate-title { font-size:clamp(13px,8cqw,20px); }
}
