/* SUPERMATHS — 💬 Discussions élève/parent ↔ professeur */
.ch-trigger{position:relative;display:inline-flex;align-items:center;gap:6px;border:1.5px solid #bfe8e4;border-radius:999px;background:#e9f8f6;color:#0b7d76;padding:8px 13px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;margin-right:6px}
.ch-trigger i{position:absolute;top:-6px;right:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e2557f;color:#fff;font-style:normal;font-size:10.5px;display:grid;place-items:center}
@media(max-width:1200px){.ch-trigger b{display:none}}
.ch-sheet{position:fixed;inset:0;z-index:310000;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(20,40,50,.45);opacity:0;transition:opacity .2s;font-family:'Poppins','Segoe UI',Arial,sans-serif}
.ch-sheet.open{opacity:1}
.ch-box{position:relative;width:min(560px,100%);max-height:calc(100dvh - 28px);display:flex;flex-direction:column;background:#fff;border-radius:24px;padding:22px;color:#1b2b33;box-shadow:0 30px 80px rgba(0,0,0,.3)}
.ch-sheet.conv .ch-box{height:min(680px,calc(100dvh - 28px));padding:0;overflow:hidden}
.ch-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:12px;background:#eef6f6;font-size:22px;cursor:pointer;z-index:2}
.ch-kick{font-size:10.5px;font-weight:700;letter-spacing:.12em;color:#0d8a83;text-transform:uppercase}.ch-box h3{margin:4px 0 12px}
.ch-head{display:flex;align-items:center;gap:12px;padding:16px 56px 14px 18px;background:linear-gradient(135deg,#19b8ae,#0d8a83);color:#fff}
.ch-head b{display:block;font-size:16px}.ch-head small{opacity:.85}
.ch-av{width:42px;height:42px;flex:0 0 42px;border-radius:14px;display:grid;place-items:center;background:#fff;color:#0d8a83;font-weight:800}
.ch-list{flex:1;overflow:auto;padding:16px;background:#f4fbfa;display:flex;flex-direction:column;gap:8px}
.ch-msg{max-width:78%;align-self:flex-start;background:#fff;border:1px solid #dcefed;border-radius:16px 16px 16px 4px;padding:9px 12px}
.ch-msg.me{align-self:flex-end;background:#19b8ae;color:#fff;border-color:#19b8ae;border-radius:16px 16px 4px 16px}
.ch-msg p{margin:0;font-size:14px;line-height:1.45;white-space:normal;word-break:break-word}.ch-msg small{display:block;margin-top:3px;font-size:10.5px;opacity:.7;text-align:right}
.ch-empty{margin:auto;text-align:center;color:#6b7f88;padding:18px}
.ch-input{display:flex;gap:8px;padding:12px;border-top:1px solid #e3efee;background:#fff}
.ch-input textarea{flex:1;resize:none;border:1.5px solid #d5e9e7;border-radius:14px;padding:10px 12px;font:inherit;max-height:120px}
.ch-input textarea:focus{outline:none;border-color:#19b8ae;box-shadow:0 0 0 4px rgba(25,184,174,.15)}
.ch-send{width:46px;border:0;border-radius:14px;background:linear-gradient(135deg,#19b8ae,#0d8a83);color:#fff;font-size:18px;cursor:pointer}
.ch-note{margin:0;padding:0 12px 10px;font-size:11px;color:#7a8f98;background:#fff}
.ch-inbox{display:grid;gap:8px;overflow:auto}
.ch-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e1eeee;border-radius:16px;background:#fff;font:inherit;text-align:left;cursor:pointer}
.ch-row:hover{border-color:#19b8ae}.ch-row.new{background:#f0fbf9;border-color:#9fe3dc}
.ch-row .ch-av{background:#e7f8f5}.ch-row-tx{flex:1;min-width:0}.ch-row-tx b{display:block}.ch-row-tx small{display:block;color:#6b7f88;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-row-r{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.ch-row-r small{font-size:11px;color:#8a9aa2}.ch-row-r i{min-width:20px;height:20px;border-radius:999px;background:#e2557f;color:#fff;font-style:normal;font-size:11px;display:grid;place-items:center}
.ch-gate{text-align:center;padding:10px 6px}.ch-gate-ico{font-size:44px}.ch-gate p{color:#5d6f78}
.ch-btn{border:0;border-radius:999px;padding:13px 20px;background:linear-gradient(135deg,#19b8ae,#0d8a83);color:#fff;font:inherit;font-weight:800;cursor:pointer}
