/* RC19: scoped Mentor chat interface. No global component overrides. */
.mchat{display:grid;gap:13px;font-size:13px;line-height:1.55;color:#f2ecee}
.mchat-intro{border:1px solid #75484e;background:linear-gradient(130deg,#281319,#100d12);border-radius:15px;padding:17px}
.mchat-intro small{color:#dcb2a2;font-weight:850;letter-spacing:.08em}
.mchat-intro h4{font-family:Georgia,serif;font-size:clamp(20px,4vw,27px);margin:5px 0 8px}
.mchat-intro p{color:#e1d7db;margin:0;line-height:1.5}
.mchat-status{border-left:3px solid #c88568;background:#20191b;padding:9px 12px;border-radius:0 8px 8px 0;color:#f3d5b8}
.mchat-threads{border:1px solid #3c2d37;border-radius:12px;padding:12px;display:grid;gap:9px;max-height:min(41dvh,380px);min-height:110px;overflow-y:auto;background:#0d0d11;align-content:start}
.mchat-start{color:#cbbac3;font-size:12px;padding:9px}
.mchat-message{border:1px solid #4b353d;border-radius:12px;padding:11px 13px;max-width:94%;overflow-wrap:anywhere}
.mchat-message strong{display:block;font-size:10px;letter-spacing:.05em;margin-bottom:5px}
.mchat-message p{margin:0;white-space:pre-wrap;line-height:1.5}
.mchat-user{justify-self:end;background:#34191c}
.mchat-assistant{justify-self:start;background:#191820}
.mchat form{display:grid;gap:9px}
.mchat form>label{font-weight:760}
.mchat textarea{resize:vertical;min-height:88px;background:#110e13;color:#fff;border:1px solid #775a69;border-radius:10px;padding:11px;max-width:100%;font:inherit;line-height:1.4}
.mchat-checks{display:grid;gap:8px;color:#e1d3d9}
.mchat-checks label{display:flex;align-items:flex-start;gap:8px;font-size:12px}
.mchat-checks input{accent-color:#c56f6b;min-width:17px;min-height:17px;margin:1px 0}
.mchat-buttons{display:flex;gap:8px;flex-wrap:wrap}
.mchat-buttons button,.mchat-exercises button{border:1px solid #774b5f;background:#2b1b29;border-radius:10px;padding:10px 13px;min-height:44px;color:white;font-weight:730;cursor:pointer}
.mchat-buttons button[type=submit]{background:#8d3438;border-color:#c55b62}
.mchat button:disabled{opacity:.6;cursor:not-allowed}
.mchat button:focus-visible,.mchat textarea:focus-visible,.mchat input:focus-visible{outline:3px solid #ffd8a0;outline-offset:2px}
.mchat-exercises{border:1px solid #46323b;border-radius:11px;background:#151219;padding:12px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.mchat-exercises strong{width:100%;font-size:12px}
.mchat-exercises button{font-size:11px;padding:8px 10px;background:#201e29}
.mchat-privacy{color:#c1b6bc;font-size:11px;border-top:1px solid #3f323c;padding-top:10px;margin:0}
@media(max-width:460px){.mchat{font-size:12px}.mchat-intro{padding:13px}.mchat-intro h4{font-size:22px}.mchat-threads{max-height:30dvh}.mchat-buttons button{flex:1}.mchat-message{max-width:100%}}
@media(prefers-reduced-motion:reduce){.mchat *{scroll-behavior:auto!important;transition:none!important}}

/* RC19.3 — single-cycle practice card, mobile first. */
.mchat-learning{border:1px solid #765660;border-radius:13px;background:#17121a;padding:13px;display:grid;gap:9px}
.mchat-learning h5{font-size:15px;line-height:1.3;margin:0;color:#f8e5dc}
.mchat-learning-title{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.mchat-learning-title span{font-size:10px;letter-spacing:.04em;color:#d7b3a2;font-weight:750}
.mchat-learning>p{margin:0;color:#e2cfd4;font-size:12px;line-height:1.55}
.mchat-learning>strong{font-size:14px;color:#fff}
.mchat-learning .mchat-evidence{font-size:11px;color:#bfb9c8}
.mchat-learning-actions{display:flex;flex-wrap:wrap;gap:8px}
.mchat-learning button{border:1px solid #b16973;background:#42272f;color:#fff;border-radius:10px;min-height:44px;padding:9px 12px;font:inherit;font-weight:740;cursor:pointer}
.mchat-learning button:last-child{background:#28202e;border-color:#665461}
.mchat-learning .mchat-share{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#eee0df;line-height:1.5;border-top:1px solid #4d3846;padding-top:11px}
.mchat-learning .mchat-share input{margin-top:3px;min-width:18px;min-height:18px;accent-color:#db8586}
.mchat-learning .mchat-practice-notice{font-size:12px;color:#eac3a9}
@media(max-width:440px){.mchat-learning-actions button{flex:1 1 100%}}
/* RC20.3 - study/mentor opt-in bridge */
.mchat-study{border:1px solid #646f73;background:#152024;border-radius:13px;padding:14px;display:grid;gap:9px}
.mchat-study h5{font-size:16px;margin:0;color:#f0f6f3}
.mchat-study p{margin:0;color:#d4e6df;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.mchat-study .mchat-share{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:#e7e4e4;line-height:1.5}
.mchat-study .mchat-share input{accent-color:#7cd9c4;min-width:18px;min-height:18px;margin-top:2px}
.mchat-study button{background:#294c4f;border:1px solid #81b8b3;border-radius:10px;min-height:46px;padding:11px;color:white;font-weight:750;cursor:pointer}
.mchat-study-goal{border-left:3px solid #87c4b7;padding-left:9px}
/* RC20 optional skill hypothesis + on-device audio observations */
.mchat-focus-label{display:block;margin:12px 0 7px;font-weight:750}.mchat #mchatFocus,.mchat #mearKind{width:100%;min-height:46px;border:1px solid #71514e;background:#1b1515;color:#fff;border-radius:11px;padding:10px}
.mchat-audio-local,.mear{border:1px solid #705650;background:#1a1518;border-radius:14px;padding:15px;margin:15px 0}
.mchat-audio-local input[type=file]{display:block;max-width:100%;margin:10px 0;line-height:1.5}
.mchat-audio-result{font-size:13px;line-height:1.5;color:#e8cec9;min-height:20px}
.mear h5{font-size:19px;margin:0 0 10px}.mear p{line-height:1.5}.mear-think{background:#2a2021;border-left:3px solid #dfaaa4;padding:10px}
.mear-choices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.mear-choices button{min-height:45px;padding:9px 13px;background:#542824;border:1px solid #ae6058;border-radius:10px;color:#fff;font-weight:700;cursor:pointer}.mear-choices button:disabled{opacity:.4;cursor:not-allowed}.mear-status{padding:9px;font-size:13px;line-height:1.5}.mear small{color:#d5bfb9;line-height:1.5}
