/* Chat is the working surface; forms and source diagnostics are secondary. */
#viewContent { border:0; padding:0; margin:0; min-inline-size:0; }
#coach { grid-column:1; grid-row:1 / span 2; }
#checkin, #proposal { grid-column:2; }
#coach > h2 { margin:0 0 12px; }
#coach > h2 .badge { margin-left:8px; vertical-align:middle; font-weight:500; }
#checkin > summary { font-size:15px; font-weight:650; min-height:44px; }
#checkin[open] > summary { margin-bottom:16px; }
#coach .coach-health-ribbon { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px 10px; padding-bottom:10px; border-bottom:1px solid #D5D3C9; }
.coach-health-ribbon > .badge { grid-column:1; grid-row:1; justify-self:start; }
.coach-health-ribbon > .muted { grid-column:1; grid-row:2; }
.coach-health-ribbon > button { grid-column:2; grid-row:1 / span 2; }
.coach-health-ribbon > button+button { grid-column:1 / -1; grid-row:auto; }
.coach-health-ribbon > .muted { font-size:11px; }
.coach-health-ribbon button { font-size:12px; padding:8px 11px; margin:0; }
.coach-quick-actions { display:flex; gap:6px; overflow-x:auto; padding:8px 0; }
.coach-quick-actions button { white-space:nowrap; flex-shrink:0; margin:0; padding:8px 12px; font-size:12px; }
#coach .chat-messages { max-height:min(44dvh,30rem); overflow-y:auto; }
.coach-welcome { margin:8px 0 12px; }
#coach form > label { margin-top:8px; }
#coachChatInput { min-height:76px; }
#coach form button { margin-top:8px; }
#coach > details { margin-top:14px; }
.profile-receipt, .chat-interpretation { padding:10px 12px; background:#F1F4EF; border:1px solid #D5D3C9; border-radius:10px; }
.profile-receipt > summary { font-size:13px; font-weight:650; }
.profile-receipt p { overflow-wrap:anywhere; }
.chat-interpretation { margin-top:10px; }
.chat-interpretation h4 { margin:0; }
.chat-interpretation button { font-size:12px; }
.watch-workout { padding:14px; border:1px solid #D5D3C9; border-radius:12px; margin:12px 0; background:#F1F4EF; }
.watch-workout p { overflow-wrap:anywhere; font-size:13px; }
.watch-workout pre { max-height:320px; overflow:auto; }
.watch-workout select { margin-top:12px; }
@media (max-width:760px), (max-width:960px) and (max-height:500px) {
  #coach { padding:14px; }
  #coach > h2 { font-size:20px; margin-bottom:10px; }
  #coach .chat-messages { max-height:36dvh; }
  #coach .chat-bubble { padding:12px; }
  #coach .chat-bubble p { font-size:15px; }
  #coach .coach-quick-actions { margin-inline:-2px; }
  #coach .actions button { flex:auto; width:100%; margin-right:0; }
}
.block-movement { padding: .6rem 0; border-bottom: 1px solid var(--line, #D5D3C9); }
.training-block, .block-result { min-width: 0; overflow-wrap: anywhere; }
.block-result { padding: .75rem 0; }
.dictation-button { margin: .4rem .5rem .4rem 0; }
.dictation-help { font-size: .875rem; max-width: 48rem; }

/* Draft review: the parts in order, one line each; details open on tap. */
.draft-parts{list-style:none;margin:10px 0 6px;padding:0;display:flex;flex-direction:column;gap:2px}
.draft-part{display:flex;align-items:flex-start;gap:8px}
.draft-part>details{flex:1;min-width:0}
.draft-part{border-top:1px solid #D5D3C9;padding-top:6px}.draft-part:first-child{border-top:none}
.draft-part>details>summary{cursor:pointer;min-height:44px;display:flex;flex-direction:column;justify-content:center;line-height:1.3;overflow-wrap:anywhere}
.draft-name{font-weight:600;font-size:16px;color:#10201A}.draft-dose{font-size:14px;color:#55635C}
.draft-part>details>p,.draft-part>details>div{font-size:15px}
.draft-move{display:flex;gap:2px;flex:none}
.draft-move .icon-button{min-width:44px;min-height:44px;padding:0;font-size:18px}
.draft-move .icon-button:disabled{opacity:.35}
.draft-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.draft-why>summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.weekly-movement>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600;overflow-wrap:anywhere}
