.room-social { position:fixed; right:18px; bottom:18px; z-index:1100; font:14px/1.5 system-ui,sans-serif; color:#203333; }
.room-social[hidden], .room-social [hidden] { display:none !important; }
.room-social button { cursor:pointer; font:inherit; letter-spacing:0; }
.room-social-toggle { display:flex; align-items:center; justify-content:center; width:46px; height:46px; margin-left:auto; padding:10px; border:1px solid #b9ceca; border-radius:8px; background:#fff; color:#176d66; box-shadow:0 4px 18px #0002; position:relative; }
.room-social svg { width:20px; height:20px; }
.room-social-badge { position:absolute; top:-7px; right:-7px; min-width:19px; height:19px; padding:0 4px; box-sizing:border-box; border-radius:10px; background:#c53949; color:#fff; font-size:11px; text-align:center; }
.room-social-panel { width:340px; max-width:calc(100vw - 24px); height:420px; max-height:calc(100dvh - 90px); margin-bottom:10px; display:flex; flex-direction:column; border:1px solid #bdceca; border-radius:8px; background:#fffffff5; box-shadow:0 8px 28px #0003; overflow:hidden; }
.room-social-header { display:flex; align-items:center; gap:8px; padding:12px; border-bottom:1px solid #dbe5e2; }
.room-social-header strong { flex:1; font-size:15px; }
.room-social-close { display:grid; place-items:center; width:30px; height:30px; padding:4px; background:transparent; color:#334; border:0; border-radius:4px; }
.room-social-status { padding:6px 12px; color:#647874; font-size:12px; margin:0; }
.room-social-messages { flex:1; min-height:0; overflow:auto; padding:4px 12px 12px; overscroll-behavior:contain; }
.room-social-message { margin:8px 0; padding:8px 10px; background:#eef3f1; border-radius:6px; overflow-wrap:anywhere; }
.room-social-message.own { background:#e0f1ed; }
.room-social-meta { display:flex; gap:8px; align-items:baseline; font-size:12px; color:#52716c; }
.room-social-meta strong { flex:1; min-width:0; overflow-wrap:anywhere; }
.room-social-meta time { flex:none; font-size:11px; }
.room-social-text { margin:3px 0 0; white-space:pre-wrap; color:#203333; }
.room-social-compose { display:flex; gap:8px; padding:10px; border-top:1px solid #dbe5e2; }
.room-social-compose textarea { flex:1; min-width:0; height:56px; min-height:56px; max-height:56px; resize:none; padding:8px; box-sizing:border-box; border:1px solid #c0d0cd; border-radius:4px; background:#fff; color:#203333; font:14px/1.4 system-ui,sans-serif; }
.room-social-send { display:grid; place-items:center; flex:none; width:40px; padding:8px; border:0; border-radius:4px; background:#176d66; color:#fff; }
.room-social-send:disabled { opacity:.5; cursor:default; }
.teaching-pointer { position:fixed; pointer-events:none; z-index:1090; transform:translate(-2px,-2px); }
.teaching-pointer::before { content:''; display:block; width:0; height:0; border-top:18px solid #dc3b65; border-right:12px solid transparent; filter:drop-shadow(0 1px 2px #fff); transform:rotate(-15deg); }
.teaching-pointer span { display:block; margin:0 0 0 10px; padding:2px 6px; max-width:160px; border-radius:4px; background:#b5254b; color:#fff; font:12px/1.5 system-ui,sans-serif; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#teaching-pointer-button[aria-pressed="true"] { background:#176d66; color:#fff; }
@media(max-width:600px) { .room-social { right:12px; bottom:12px; } .room-social-panel { width:340px; height:360px; } }
