/* Method coach tab in the research dialog. Two columns on desktop, one on phones. */
.coach { display: grid; gap: 14px; min-width: 0; color: var(--text, #283e32); }
.coach-heading h3 { font-size: 23px; margin: 6px 0 8px; }
.coach-heading p { max-width: 760px; line-height: 1.65; margin: 0 0 4px; }
.coach-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-nav button[aria-current=page] { background: #285a45; border-color: #285a45; color: #fff; opacity: 1; }
.coach-live { min-height: 1.4em; margin: 0; color: #385846; }
.coach-panel, .coach-view { min-width: 0; display: grid; gap: 12px; }
.coach-view h4 { margin: 4px 0; font-size: 17px; }
.coach-view h5 { margin: 4px 0; font-size: 15px; line-height: 1.5; }
.coach button { white-space: normal; max-width: 100%; text-align: left; line-height: 1.45; }
.coach-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.coach-toolbar h4 { margin-right: auto; }
.coach-toolbar select { margin: 0; }
.coach-split { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.coach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: calc(92vh - 200px); overflow: auto; }
ol.coach-list { list-style: none; }
.coach-detail { display: grid; gap: 10px; min-width: 0; max-height: calc(92vh - 200px); overflow: auto; padding: 2px 4px 2px 2px; }
.coach-item { display: grid; gap: 4px; width: 100%; padding: 10px 12px; border: 1px solid var(--border, #dbe1dc); border-radius: 10px; background: #fff; }
.coach-item[aria-current=true] { border-color: #496a57; box-shadow: inset 3px 0 0 #496a57; }
.coach-item strong { font-weight: 600; overflow-wrap: anywhere; }
.coach-back { display: none; width: fit-content; }
.coach-card { border: 1px solid var(--border, #dbe1dc); border-radius: 12px; padding: 12px 14px; background: #fff; display: grid; gap: 8px; }
.coach-card blockquote, .coach-detail blockquote { border-left: 3px solid #8da495; margin: 0; padding: 6px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.coach-tag { margin: 0; font-size: 12px; color: #53634f; }
.coach-code { color: #6b7066; font-size: 11px; overflow-wrap: anywhere; }
.coach-prompt { margin: 0; font-weight: 600; }
.coach-lesson { margin: 0; padding: 8px 12px; background: #f2f6ef; border-radius: 8px; white-space: pre-wrap; }
.coach-done { padding: 12px; background: #f2f6ef; border-radius: 8px; }
.coach-field { display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.coach-field textarea, .coach-field input, .coach-field select { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; }
.coach-choices { border: 1px solid #e2e7dd; border-radius: 8px; padding: 8px 12px; min-width: 0; margin: 0; }
.coach-choices legend { font-size: 13px; font-weight: 600; padding-inline: 4px; }
.coach-choice { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; line-height: 1.55; font-size: 13px; }
.coach-choice input { width: auto; margin: 4px 0 0; flex-shrink: 0; }
.coach-choice span { min-width: 0; overflow-wrap: anywhere; }
.coach-cite { max-height: 200px; overflow: auto; }
.coach-consent { padding: 8px 10px; background: #fff4d9; border-radius: 8px; }
.coach-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.coach-anchors { display: flex; flex-wrap: wrap; gap: 6px; }
.coach-anchor { display: inline-block; padding: 4px 8px; font-size: 12px; border: 1px solid #cfd9cd; border-radius: 999px; background: #f7f9f5; overflow-wrap: anywhere; }
.coach-notice { margin: 0; padding: 8px 12px; background: #f2f6ef; border-radius: 8px; }
.coach-form { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border, #dbe1dc); border-radius: 12px; min-width: 0; }
.coach-form > button { width: fit-content; }
.coach-group { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coach-group li { display: grid; gap: 4px; }
.coach-group-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.coach-group-count { font-variant-numeric: tabular-nums; }
.coach-bar { height: 6px; background: #edf1e9; border-radius: 3px; overflow: hidden; }
.coach-bar span { display: block; height: 100%; background: #7e9d76; }
.coach-capture { margin-top: 8px; padding: 5px 9px; font-size: 12px; background: #fff; }
.coach-source { display: grid; gap: 10px; }
.coach-mydata { display: grid; gap: 8px; }
@media (max-width: 700px) {
  .coach-split { grid-template-columns: minmax(0, 1fr); }
  .coach-split .coach-detail { display: none; max-height: none; }
  .coach-split.coach-showing-detail .coach-detail { display: grid; }
  .coach-split.coach-showing-detail .coach-list { display: none; }
  .coach-back { display: inline-block; }
  .coach-list { max-height: none; }
}
@media (max-width: 600px) {
  .coach button, .coach select { min-height: 44px; font-size: 15px; }
  .coach-choice { font-size: 15px; min-height: 44px; align-items: center; }
  .coach-choice input { margin-top: 0; width: 20px; height: 20px; }
  .coach-field textarea { font-size: 15px; }
  .coach-toolbar h4 { width: 100%; }
}
