
html[data-teacher-practice] .ft-chat-launch{display:none!important}
.ft-chat-recipients{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px 20px 0}
.ft-recipient{text-align:left;border:1px solid var(--border);border-radius:11px;padding:9px 11px;background:var(--surface);display:flex;flex-direction:column;gap:1px;transition:border-color .16s,background .16s}
.ft-recipient:hover{border-color:var(--accent-border);background:var(--surface-alt)}
.ft-recipient.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px #3c58771a}
.ft-recipient b{font-size:12.5px;color:var(--text);font-weight:750}
.ft-recipient span{font-size:10px;font-weight:750;color:var(--accent-strong);letter-spacing:.04em}
.ft-recipient small{font-size:10px;color:var(--muted);line-height:1.4;margin-top:1px}
.ft-recipient.on b{color:var(--accent-strong)}
.ft-chat-head b{font-size:15px}
.ft-message span b{font-weight:750;color:var(--text)}
.ft-message.mine span b{color:var(--accent-strong)}
/* v5 chat dock: scoped inside the app so app CSS cannot flatten it */
#app>.ft-msg{position:fixed;left:268px;bottom:22px;width:440px;max-width:calc(100vw - 40px);height:min(600px,calc(100dvh - 40px));border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 22px 50px #1d2b2420;display:none;flex-direction:column;overflow:hidden;z-index:200}
#app>.ft-msg.on{display:flex}
#app>.ft-msg .ftm-head{display:flex;align-items:center;gap:10px;padding:12px 14px 10px;flex:none}
#app>.ft-msg .ftm-avatar{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-strong);font-weight:800;font-size:12px;line-height:1}
#app>.ft-msg .ftm-title{flex:1;min-width:0}
#app>.ft-msg .ftm-title b{display:block;font-size:13.5px;color:var(--text);margin:0}
#app>.ft-msg .ftm-title small{display:block;font-size:10.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app>.ft-msg .ftm-badge{background:#c0564b;color:#fff;border-radius:999px;font-size:10px;min-width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;flex:none}
#app>.ft-msg .ftm-badge[hidden]{display:none}
#app>.ft-msg .ftm-close{width:28px;height:28px;border:1px solid var(--border);border-radius:50%;background:#fff;color:var(--muted);font-size:16px;line-height:1;cursor:pointer;flex:none;padding:0}
#app>.ft-msg .ftm-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 14px 10px;flex:none}
#app>.ft-msg .ftm-tab{border:1px solid var(--border);border-radius:11px;padding:8px 10px;background:#fff;text-align:left;cursor:pointer;transition:.15s}
#app>.ft-msg .ftm-tab b{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--text);margin:0}
#app>.ft-msg .ftm-tab b em{font-style:normal;font-weight:700;font-size:10px;color:var(--muted);background:#f1f4f6;border-radius:999px;padding:1px 6px}
#app>.ft-msg .ftm-tab small{display:block;font-size:10.5px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app>.ft-msg .ftm-tab.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px #3c58771a}
#app>.ft-msg .ftm-dot{margin-left:auto;background:#c0564b;color:#fff;border-radius:999px;font-size:9.5px;min-width:15px;height:15px;display:inline-flex;align-items:center;justify-content:center;padding:0 4px;font-style:normal}
#app>.ft-msg .ftm-stream{flex:1;min-height:0;overflow:auto;padding:8px 14px 4px;background:#fcfdfd;border-top:1px solid var(--border);display:block}
#app>.ft-msg .ftm-day{text-align:center;font-size:10px;color:#9aa6ac;font-weight:700;margin:8px 0 12px}
#app>.ft-msg .ftm-row{display:flex;gap:8px;align-items:flex-end;margin-bottom:12px}
#app>.ft-msg .ftm-row.mine{flex-direction:row-reverse}
#app>.ft-msg .ftm-row .ftm-avatar{width:24px;height:24px;font-size:10.5px}
#app>.ft-msg .ftm-col{max-width:78%;display:flex;flex-direction:column;min-width:0}
#app>.ft-msg .ftm-row.mine .ftm-col{align-items:flex-end}
#app>.ft-msg .ftm-bub{border:1px solid var(--border);background:#fff;border-radius:13px 13px 13px 4px;padding:9px 12px;font-size:13.5px;line-height:1.6;color:var(--text);box-shadow:0 1px 2px #1d2b2408;white-space:pre-wrap;word-break:break-word}
#app>.ft-msg .ftm-row.mine .ftm-bub{background:var(--accent-soft);border-color:#cddde9;border-radius:13px 13px 4px 13px}
#app>.ft-msg .ftm-late{border:1px solid #e6d7ba;background:#f8f0df;border-radius:8px;padding:5px 8px;margin-bottom:6px;font-size:11px;color:#6d4f22}
#app>.ft-msg .ftm-meta{font-size:10px;color:#9aa6ac;margin-top:4px;padding:0 2px}
#app>.ft-msg .ftm-empty{display:grid;place-content:center;text-align:center;gap:6px;padding:34px 16px;color:var(--muted)}
#app>.ft-msg .ftm-empty b{color:var(--text);font-size:13px}
#app>.ft-msg .ftm-empty p{margin:0;font-size:12px;line-height:1.75}
#app>.ft-msg .ftm-input{display:flex;align-items:flex-end;gap:8px;padding:9px 12px 10px;border-top:1px solid var(--border);background:#fff;flex:none}
#app>.ft-msg .ftm-input textarea{flex:1;resize:none;border:1px solid var(--border);border-radius:11px;padding:9px 11px;min-height:40px;max-height:96px;font:inherit;font-size:13.5px;line-height:1.5;outline:none;background:#fbfcfc;color:var(--text)}
#app>.ft-msg .ftm-input textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);background:#fff}
#app>.ft-msg .ftm-input button{height:40px;padding:0 15px;border-radius:10px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-weight:750;font-size:12.5px;cursor:pointer;flex:none}
#app>.ft-msg .ftm-note{font-size:10px;color:#9aa6ac;padding:0 14px 8px;background:#fff;flex:none}
#app>.ft-msg-launch{position:fixed;right:24px;bottom:22px;z-index:150;display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:999px;background:#fff;padding:8px 14px 8px 9px;box-shadow:0 10px 26px #1d2b2418;cursor:pointer}
#app>.ft-msg-launch b{display:block;font-size:12.5px;color:var(--text);margin:0}
#app>.ft-msg-launch small{display:block;font-size:10px;color:var(--muted)}
#app>.ft-msg-launch .chat-unread{background:var(--accent);color:#fff;border-radius:999px;font-size:10px;min-width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px}
#app>.ft-msg-launch .chat-unread[hidden]{display:none}
#app .ft-msg-launch.on{display:none}
@media(max-width:760px){#app>.ft-msg{left:8px;right:8px;width:auto;bottom:8px;height:min(600px,calc(100dvh - 16px))}#app>.ft-msg-launch{right:14px;bottom:14px}}
body.focus-session #app>.ft-msg-launch,html.focus-session #app>.ft-msg-launch{display:none!important}
.group-waiting-search{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:8px;padding:7px 9px;font-size:12px;margin:4px 0 8px;background:#fff}
.group-waiting-list{display:flex;flex-wrap:wrap;gap:6px}
/* messages: compact composer, chips */
.ft-chat-drawer{height:min(620px,calc(100dvh - 40px))}
.ft-chat-chips{display:flex;gap:7px;padding:12px 16px 10px;border-bottom:1px solid var(--border)}
.ft-chat-chip,.ft-chip{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;border:1px solid var(--border);border-radius:10px;padding:7px 10px;background:var(--surface);text-align:left;transition:border-color .15s,background .15s}
.ft-chip:hover{border-color:var(--accent-border);background:var(--surface-alt)}
.ft-chip.on{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 2px #3c58771a}
.ft-chip b{font-size:12px;color:var(--text);font-weight:750}
.ft-chip.on b{color:var(--accent-strong)}
.ft-chip span{font-size:10px;font-weight:750;color:var(--accent-strong)}
.ft-chip small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.ft-chat-form{padding:10px 14px 8px;gap:8px}
.ft-chat-form textarea{min-height:40px;height:40px;max-height:96px;padding:9px 11px}
.ft-chat-form button{height:40px;padding:0 15px}
.ft-chat-note{padding:0 15px 8px;font-size:10px}
.ft-chat-thread{padding:16px 16px 8px;gap:12px}
.msg-compose{padding:10px 14px}
.msg-compose textarea{min-height:40px;height:40px;max-height:120px;padding:9px 11px}
.msg-compose button{height:40px}
.msg-purpose{padding:0 16px 6px;display:flex;gap:8px;align-items:center}
.msg-bubbles{padding:14px 16px;gap:10px}
/* groups */
.group-plan{background:var(--card);border:1px solid var(--line)}
.group-card{background:#fbfcfc}
