/* Phase 2 contextual help: progressive disclosure, never overlay the typing surface. */
.tt-coach{box-sizing:border-box;max-width:100%;min-width:0;color:var(--text-primary,var(--text,#1b304f));font-size:14px;line-height:1.55}
.tt-coach details{margin:0;border:1px solid #cbd9e9;border-radius:11px;background:var(--surface,#f7faff);color:inherit}
.tt-coach details:not([open]){background:transparent}
.tt-coach summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:8px 12px;min-height:36px;font-weight:650;font-size:13px}
.tt-coach summary::-webkit-details-marker{display:none}
.tt-coach summary::after{content:'+';font-size:19px;line-height:1;color:#46658e}
.tt-coach details[open] summary::after{content:'−'}
.tt-coach summary:focus-visible,.tt-coach a:focus-visible{outline:3px solid #1682e3;outline-offset:2px}
.tt-coach-content{padding:0 13px 12px;max-width:820px;color:inherit}
.tt-coach-content p{margin:5px 0 8px;font-size:13px;line-height:1.6}
.tt-coach-content ol,.tt-coach-content ul{margin:3px 0 9px 20px;padding:0}
.tt-coach-content li{margin:3px 0;font-size:13px}
.tt-coach-links{display:flex;flex-wrap:wrap;gap:6px 13px;margin-top:8px}
.tt-coach a{color:#1169c4;text-decoration:underline;text-underline-offset:2px;font-weight:600}
.tt-coach-lesson{margin:7px 0 0;padding:0}
.tt-coach-lesson details{background:transparent;border-color:#dae4f2}
.tt-coach-test{margin:8px 0 12px}
.tt-coach-game{margin:8px 0 12px}
.tt-coach-improver{margin:9px 0 11px}
.tt-coach-action{box-sizing:border-box;display:block;padding:12px 14px;border:1px solid #c8d8e7;border-radius:12px;background:#f2f8ff;color:#183150;line-height:1.5;margin:12px 0;max-width:100%}
.tt-coach-action strong{display:block;font-size:14px;margin-bottom:3px}
.tt-coach-action p{font-size:13px;margin:0 0 6px;color:#425673}
.tt-coach-action a{font-size:13px;display:inline-block;margin-right:12px;color:#095ba4;text-decoration:underline;font-weight:650}
.tt-coach-action[hidden]{display:none!important}
.tt-coach-results{margin:12px 0 2px}
.tt-coach-step{font-size:12px;margin:0 0 9px;padding:8px 12px;border-left:3px solid #2563eb;background:#eff6ff;border-radius:5px;color:#243b5b;line-height:1.55}
.tt-coach-step[hidden]{display:none}
:root[data-theme='dark'] .tt-coach,:root.dark .tt-coach{color:#e5edfa}
:root[data-theme='dark'] .tt-coach details,:root.dark .tt-coach details{border-color:#3e536f;background:#172438}
:root[data-theme='dark'] .tt-coach a,:root.dark .tt-coach a{color:#93c9ff}
:root[data-theme='dark'] .tt-coach-action,:root.dark .tt-coach-action{background:#152843;border-color:#3d577b;color:#f0f6ff}
:root[data-theme='dark'] .tt-coach-action p,:root.dark .tt-coach-action p{color:#c7d6ed}
:root[data-theme='dark'] .tt-coach-step,:root.dark .tt-coach-step{background:#182d49;color:#cbdaf0}
@media(prefers-color-scheme:dark){:root[data-theme='system'] .tt-coach details,:root:not([data-theme]) .tt-coach details{background:#172438;border-color:#3e536f;color:#e5edfa}:root[data-theme='system'] .tt-coach-action{background:#152843;border-color:#3d577b;color:#f0f6ff}:root[data-theme='system'] .tt-coach-action p{color:#c7d6ed}:root[data-theme='system'] .tt-coach a{color:#93c9ff}:root[data-theme='system'] .tt-coach-step{background:#182d49;color:#cbdaf0}}
@media(max-width:680px){.tt-coach{font-size:13px}.tt-coach summary{padding:7px 10px;min-height:34px}.tt-coach-action{padding:10px 12px;margin:9px 0}.tt-coach-content{padding:0 11px 10px}.tt-coach-links{gap:6px 11px}}
@media print{.tt-coach details:not([open]),.tt-coach-step{display:none}}
