.coach-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.coach-notice { display: grid; gap: 10px; margin-bottom: 22px; }
.coach-notice h2 { font-size: 19px; }
.coach-notice p { color: var(--ink-2); max-width: 75ch; }
.coach-layout { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 22px; align-items: start; }
.coach-chat { min-width: 0; }
.coach-chat-actions { display: flex; align-items: center; gap: 10px; }
.coach-chat-actions .btn { padding: 6px 10px; font-size: 12px; }
.coach-badge { border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.coach-thread { max-height: 58vh; min-height: 220px; overflow-y: auto; padding: 4px 0 14px; scrollbar-width: thin; }
.coach-welcome { display: grid; justify-items: start; gap: 12px; padding: 28px 6px 36px; max-width: 54ch; }
.coach-welcome-icon { width: 38px; height: 38px; color: var(--c-run); margin-bottom: 3px; }
.coach-welcome h3 { font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -0.025em; }
.coach-welcome p { color: var(--ink-2); line-height: 1.7; }
.coach-message { padding: 18px 2px; }
.coach-message + .coach-message { border-top: 1px solid var(--line); }
.coach-message--user { padding: 16px 18px; background: var(--surface-2); border-radius: var(--r-sm); border-top: 0 !important; margin: 8px 0; }
.coach-speaker { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-run); margin-bottom: 8px; }
.coach-message--user .coach-speaker { color: var(--muted); }
.coach-message-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; }
.coach-suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.coach-suggestions button { font: inherit; font-size: 12px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); background: var(--surface); cursor: pointer; }
.coach-suggestions button:hover:enabled { border-color: var(--c-run); color: var(--c-run); }
.coach-suggestions button:disabled, .coach-form fieldset:disabled { opacity: .6; }
.coach-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.coach-input-label { display: block; font-weight: 650; font-size: 13px; margin-bottom: 8px; }
.coach-form textarea { display: block; resize: vertical; width: 100%; min-height: 106px; max-height: 350px; padding: 14px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; line-height: 1.5; }
.coach-form textarea::placeholder { color: var(--muted); }
.coach-form-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 13px; }
.coach-form-actions > span { color: var(--muted); font-size: 11px; }
.coach-footnote { padding-top: 18px; margin-top: 20px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.6; color: var(--muted); }
.coach-status { display: none; color: var(--ink-2); font-size: 13px; padding: 10px 0; }
.coach-status.htmx-request { display: block; }
.coach-error { background: var(--surface-2); color: var(--bad); padding: 12px; margin: 8px 0; border: 1px solid var(--bad); border-radius: var(--r-sm); font-size: 13px; }
.coach-context { display: grid; gap: 22px; }
.coach-context .panel-head h2, .coach-tip h2 { font-size: 15px; line-height: 1.4; }
.coach-context-intro, .coach-tip p { color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.coach-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin: 22px 0; }
.coach-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.coach-facts dd { font-family: var(--font-display); font-variant-numeric: lining-nums tabular-nums; font-size: 28px; font-weight: 750; letter-spacing: -0.025em; margin: 0; line-height: 1.2; }
.coach-fact-wide { grid-column: 1 / -1; }
.coach-facts .coach-fact-date { font-size: 16px; font-weight: 650; letter-spacing: 0; }
.coach-data-details { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; line-height: 1.7; }
.coach-data-details summary { cursor: pointer; font-weight: 650; }
.coach-data-details p { margin-top: 12px; color: var(--ink-2); }
.coach-tip { display: grid; gap: 12px; }
.coach-preview-intro { color: var(--muted); font-size: 13px; line-height: 1.7; }
.coach-chat-preview .coach-thread { max-height: none; min-height: 0; overflow: visible; }
.coach-chat-preview .coach-suggestions { margin-top: 18px; }
.coach-suggestions button[aria-pressed="true"] { color: var(--c-run); border-color: var(--c-run); background: var(--surface-2); }
.coach-preview-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.coach-preview-cta p { flex: 1 1 200px; color: var(--ink-2); font-size: 13px; line-height: 1.7; }
.coach-preview-cta .btn { font-size: 13px; }
.coach-sample-recovery { display: grid; gap: 13px; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 18px; }
.coach-sample-recovery dt { font-size: 11px; color: var(--muted); }
.coach-sample-recovery dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
@media (max-width: 1120px) { .coach-layout { grid-template-columns: minmax(0, 1fr); } .coach-context { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .coach-heading { align-items: start; } .coach-heading .btn { font-size: 12px; padding: 8px 10px; white-space: nowrap; } .coach-context { grid-template-columns: minmax(0, 1fr); } .coach-thread { max-height: 55vh; } .coach-form textarea { font-size: 16px; } }
