/* 教え方と任せ方。style.css・flow.css・fm.css の上に重ねる（接頭辞 tc-。よいは緑、よくないは赤、場合によるは琥珀） */
.tc-lead { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); max-width: 56em; }
.tc-intro { margin: 0 0 10px; font-size: 13.5px; color: var(--ink2); background: var(--paper); border: 1px solid var(--line); border-left: 4px solid #0d9488; border-radius: 10px; padding: 9px 12px; max-width: 64em; }
.tc-score { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--ink2); }
.tc-inl { display: block; margin-top: 4px; }
.tc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tc-fb { margin: 0; font-size: 12.5px; border-radius: 8px; padding: 6px 10px; background: var(--line2); color: var(--ink2); }
.tc-fb.good { background: #f0fdf4; color: #14532d; }
.tc-fb.bad { background: #fef2f2; color: #7f1d1d; }
.tc-fb.mid { background: #fffbeb; color: #78350f; }
.tc-fb .srcl { color: inherit; opacity: .85; }

/* 段階 */
.tc-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tc-step { appearance: none; width: 100%; height: 100%; font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 9px 11px; color: var(--ink); display: flex; gap: 9px; align-items: flex-start; }
.tc-step:hover { border-color: #94a3b8; }
.tc-sn { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--latin); background: #e2e8f0; color: #334155; }
.tc-st { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tc-st b { font-size: 14px; }
.tc-st small { font-size: 11.5px; color: var(--muted); }
.tc-step.on { background: #0f172a; border-color: #0f172a; color: #fff; }
.tc-step.on .tc-sn { background: #0d9488; color: #fff; }
.tc-step.on .tc-st small { color: #cbd5e1; }
.tc-stage { padding: 14px 16px; }
.tc-k { margin: 0; font: 600 12px var(--latin); color: var(--muted); }
.tc-stage h3 { margin: 4px 0 8px; font-size: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tc-stage h3 small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tc-dl { margin: 0; display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 5px 12px; font-size: 13.5px; }
.tc-dl dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 1px; }
.tc-dl dd { margin: 0; color: var(--ink); }
.tc-say { margin: 10px 0 0; font-size: 13.5px; background: #f8fafc; border-left: 3px solid #0d9488; border-radius: 6px; padding: 7px 10px; }
.tc-say small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.tc-nav { margin-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.tc-nav button { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink2); }
.tc-nav button:hover:not([disabled]) { border-color: #94a3b8; }
.tc-nav button[disabled] { opacity: .4; cursor: default; }

/* 練習: 作業を任せる */
.tc-tasks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tc-task { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-task.good { border-color: #86efac; }
.tc-task.bad { border-color: #fca5a5; }
.tc-task.mid { border-color: #fcd34d; }
.tc-th { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.tc-th b { font-size: 14.5px; }
.tc-wbs { font-size: 11.5px; font-weight: 700; color: #0b4f49; background: #e2f6f3; border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.tc-task > p { margin: 0; font-size: 13px; color: var(--ink2); }
.tc-sopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.tc-sopt { appearance: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 6px 6px; color: var(--ink2); display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; line-height: 1.3; }
.tc-sopt i { font-style: normal; font: 600 11px/1 var(--latin); width: 18px; height: 18px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; background: #e2e8f0; color: #334155; }
.tc-sopt:hover { border-color: #94a3b8; color: var(--ink); }
.tc-sopt[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.tc-sopt[aria-pressed="true"] i { background: #0d9488; color: #fff; }
.tc-best { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 700; }

/* 仕事の切り出し方: 依頼の文を組み立てる */
.tc-compose { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 12px; align-items: start; }
.tc-parts { display: grid; gap: 8px; min-width: 0; }
.tc-part { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 8px 10px 10px; min-width: 0; }
.tc-part legend { font-size: 13px; font-weight: 700; padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.tc-part legend i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px var(--latin); background: #e2e8f0; color: #334155; }
.tc-popts { display: grid; gap: 5px; }
.tc-popt { appearance: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 6px 10px; color: var(--ink); line-height: 1.5; }
.tc-popt:hover { border-color: #94a3b8; }
.tc-popt[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }
.tc-pfb { margin: 6px 0 0; font-size: 12px; }
.tc-pfb:empty { display: none; }
.tc-pfb span { display: block; border-radius: 8px; padding: 4px 9px; }
.tc-pfb .good { background: #f0fdf4; color: #14532d; }
.tc-pfb .bad { background: #fef2f2; color: #7f1d1d; }
.tc-pfb .mid { background: #fffbeb; color: #78350f; }
.tc-msg { padding: 12px 14px; position: sticky; top: 12px; min-width: 0; }
.tc-msg h3 { margin: 0 0 6px; font-size: 14px; }
.tc-mail { margin: 0; font-size: 13.5px; line-height: 1.75; background: #f8fafc; border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.tc-mail b { display: block; font-size: 12px; color: var(--muted); }
.tc-blank { color: #94a3b8; }
.tc-eval { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; }
.tc-eval li { border-radius: 8px; padding: 5px 9px; }
.tc-eval li b { display: block; font-size: 12px; }
.tc-eval li.good { background: #f0fdf4; color: #14532d; }
.tc-eval li.bad { background: #fef2f2; color: #7f1d1d; }
.tc-eval li.mid { background: #fffbeb; color: #78350f; }
.tc-eval .srcl { color: inherit; opacity: .85; }
.tc-ph { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.tc-says { display: grid; gap: 10px; }
.tc-sayrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.tc-bads { display: grid; gap: 6px; }
.tc-sayrow .srcl { font-size: 11.5px; }

/* ペアとモブ */
.tc-pairtip { margin-top: 10px; }
.tc-roles th, .tc-roles td { font-size: 12.5px; }
.tc-quiz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-qz { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-qz > p:first-child { margin: 0; font-size: 13.5px; color: var(--ink); }
.tc-qz.ok { border-color: #86efac; }
.tc-qz.ng { border-color: #fca5a5; }

/* レビューで教える */
.tc-revout { margin-top: 10px; padding: 12px 14px; max-width: 60em; }
.tc-comment { margin: 6px 0 8px; font-size: 13.5px; background: #f8fafc; border: 1px solid var(--line2); border-left: 3px solid #7c3aed; border-radius: 6px; padding: 8px 10px; overflow-wrap: anywhere; }
.tc-why { margin: 0; font-size: 13px; color: var(--ink2); }
.tc-why b { margin-right: 8px; font-size: 12px; color: var(--muted); }

/* 質問への返し方 */
.tc-replies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.tc-reply { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tc-reply.good { border-color: #86efac; }
.tc-reply.bad { border-color: #fca5a5; }
.tc-reply.mid { border-color: #fcd34d; }
.tc-rq { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.tc-ropts { display: grid; gap: 5px; }
.tc-ropt { appearance: none; font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 9px; padding: 6px 10px; color: var(--ink); line-height: 1.5; }
.tc-ropt:hover { border-color: #94a3b8; }
.tc-ropt[aria-pressed="true"] { background: #0f172a; border-color: #0f172a; color: #fff; }

.tc-step:focus-visible, .tc-nav button:focus-visible, .tc-sopt:focus-visible, .tc-popt:focus-visible, .tc-ropt:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
@media (min-width: 1101px) { .tc-pfb { display: none; } }
@media (max-width: 1100px) {
  .tc-compose { grid-template-columns: minmax(0, 1fr); }
  .tc-msg { position: static; }
  .tc-replies { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .tc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-dl { grid-template-columns: minmax(0, 1fr); gap: 1px 0; }
  .tc-dl dd { margin-bottom: 5px; }
  .tc-tasks, .tc-quiz, .tc-sayrow { grid-template-columns: minmax(0, 1fr); }
  .tc-sopts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
