/* Message controls belong to the message, never to a separate full-width bubble. */
#chat-history{scroll-behavior:auto;gap:22px;padding-top:38px}
/* Stable chat surfaces: updates never animate or resize the history viewport. */
html[data-academy-design="cuban"] #chat-history{touch-action:pan-y;scrollbar-gutter:stable}
html[data-academy-design="cuban"] #chat-typing{min-height:22px;flex:0 0 22px;line-height:22px;margin:0;padding:0 20px}
html[data-academy-design="cuban"] #chat-history>.chat-day-separator{border:1.5px solid #172439;color:#172439;background:#fff;font-weight:700}
html[data-academy-design="cuban"] #chat-history>.chat-class-separator>span{border-color:#172439;color:#172439}
.message-delivery{font-size:11px;color:#475b76}.message-delivery.failed{color:#bf1630}.message-delivery.pending{font-style:italic}
.chat-voice-note{margin:6px 0 0;max-width:100%;width:300px}.chat-voice-note audio{display:block;max-width:100%;width:100%;height:40px}.chat-voice-note figcaption{font-size:11px;line-height:1.5;margin-top:3px;color:#465970}
.voice-composer:empty{display:none}.voice-composer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid #b9cce5;border-radius:14px;background:#f5f8fd;color:#102e58}
.voice-composer>span{flex:1;font-size:13px;font-variant-numeric:tabular-nums;font-weight:650}.voice-composer audio{width:100%;height:42px}.voice-composer button{border-radius:10px;border:1px solid #c7d3e4;padding:9px 13px;background:#fff;color:#15345e;font-size:13px;font-weight:650;cursor:pointer}
.voice-composer .voice-stop,.voice-composer .voice-send{color:#fff;background:#d41934;border-color:#d41934}.voice-composer button:disabled{opacity:.6;cursor:wait}.voice-composer button:focus-visible{outline:3px solid #1c67ce;outline-offset:2px}
.composer-media>div:has(.chat-voice-note){flex-basis:100%;max-width:340px}.composer-media .chat-voice-note{width:100%;padding-right:30px;box-sizing:border-box}
.word-example{font-size:14px;line-height:1.65;color:#16385f}.word-usage{display:inline-flex;border:1px solid #b5c9e0;border-radius:20px;padding:3px 9px;margin:8px 0;font-size:11px;color:#254a78;background:#f3f7fc}
@media(max-width:600px){.voice-composer{padding:10px;gap:7px}.voice-composer button{min-height:40px}.chat-voice-note{width:min(270px,100%)}html[data-academy-design="cuban"] #chat-typing{padding-inline:12px}}
.chat-message{position:relative;min-width:88px;padding:0 0 4px;overflow:visible}
.chat-message>div:not(.message-body):not(.chat-message-tools):not(.reaction-popover){background:transparent;border:0;padding:0;border-radius:0}
.chat-message .message-body{padding:12px 15px;border-radius:16px 16px 16px 4px;background:var(--paper);border:1px solid var(--line)}
.chat-message.mine .message-body{background:#eaf1ff;border-color:#d9e5fc;border-radius:16px 16px 4px 16px}
.chat-message>.chat-message-tools{position:absolute;right:6px;top:-17px;display:flex;gap:1px;width:auto;margin:0;padding:2px 4px;background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:0 3px 10px #18315514;opacity:0;transition:opacity .15s;z-index:3}
.chat-message:hover>.chat-message-tools,.chat-message:focus-within>.chat-message-tools{opacity:1}
.chat-message-tools .message-icon-tool{width:29px;height:27px;border-radius:50%;color:#174c92}
.chat-message>.message-reactions{display:flex;width:max-content;max-width:100%;gap:4px;margin:-2px 0 0 7px;position:relative;padding:0}
.chat-message>.message-reactions:empty{display:none}
.message-reaction{font-family:'Apple Color Emoji','Segoe UI Emoji',sans-serif;font-size:15px;padding:2px 7px;background:var(--white);border:1px solid var(--line);border-radius:14px}
.message-reaction span{font-family:inherit;font-size:11px;margin-left:3px}.message-reaction.mine{border-color:#82aaed;background:#ecf3ff}
.chat-message>.reaction-popover{position:absolute;right:0;bottom:calc(100% + 5px);z-index:12;display:flex;align-items:center;flex-wrap:wrap;width:280px;padding:7px;background:var(--white);border:1px solid var(--line);border-radius:22px;box-shadow:0 8px 28px #152a4933}
.reaction-popover button{display:inline-grid;place-items:center;border:0;background:transparent;width:37px;height:37px;border-radius:50%;font:23px 'Apple Color Emoji','Segoe UI Emoji',sans-serif;cursor:pointer}.reaction-popover button:hover{background:#eaf1ff;transform:scale(1.12)}
.reaction-emoji-grid{display:flex;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:6px;margin-top:6px;max-height:230px;overflow:auto}.reaction-emoji-grid input{width:205px;font-size:12px;padding:8px;border:1px solid var(--line);border-radius:8px}
.message-inline-editor{display:grid;gap:8px;min-width:min(300px,55vw)}.message-inline-editor textarea{width:100%;min-height:90px;background:transparent;color:inherit;border:0;resize:vertical;font:inherit;outline:none}.message-inline-editor>div{display:flex;justify-content:flex-end;gap:8px}.message-inline-editor button{border:0;border-radius:8px;padding:7px 12px;cursor:pointer}.message-inline-editor .publish-message{background:#003da5;color:white;font-weight:700}.message-inline-editor p:empty{display:none}
.chat-message .chat-quote{display:block;width:100%;text-align:left;border:0;border-left:3px solid #cf1639;border-radius:9px;background:#dae5f780;padding:9px 12px;margin-bottom:5px;color:inherit}.chat-quote strong,.chat-quote span{display:block}.chat-quote span{opacity:.7;max-height:44px;overflow:hidden}
.member-note-button{border-color:#d4def1!important;background:var(--white)!important;color:#174c92!important}.conversation>header>.member-note-button{margin-left:auto}
.private-notebook{width:min(1060px,96vw);height:min(900px,94dvh);max-width:96vw;max-height:94dvh;padding:0;border:1px solid #dce3ef;border-radius:18px;background:#f5f7fb;color:#172d50;box-shadow:0 30px 100px #001c4e40}
.private-notebook[open]{display:flex;flex-direction:column}.private-notebook::backdrop{background:#09203d66;backdrop-filter:blur(3px)}
.private-notebook>header{display:flex;align-items:center;justify-content:space-between;padding:22px 30px 15px;background:white}.private-notebook h2{margin:4px 0 0;font-size:23px}.private-notebook header small{color:#657895;letter-spacing:.12em;font-size:10px}.private-notebook header button{background:none;border:0;font-size:28px;color:#526985;cursor:pointer}
.private-notebook>nav{display:flex;align-items:center;gap:18px;padding:12px 30px;background:white;border-bottom:1px solid #e0e7f2;font-size:13px}.private-notebook [role=status]{margin-left:auto;color:#677993;font-size:12px}.private-notebook [data-save]{border:0;background:#003da5;color:white;border-radius:8px;padding:8px 13px;cursor:pointer}.notebook-upload{cursor:pointer;color:#003da5}
.notebook-page{flex:1;min-height:200px;margin:24px 36px 0;padding:38px 48px;overflow:auto;background:white;border:1px solid #e1e6f0;box-shadow:0 3px 15px #152a4908;outline:none;font:16px/1.8 system-ui;white-space:pre-wrap;overflow-wrap:anywhere}.notebook-page:focus{border-color:#a6bee5}.notebook-page figure{position:relative;display:block;margin:20px 0;max-width:100%;cursor:grab}.notebook-page figure img{display:block;width:100%;height:auto;border-radius:6px}.notebook-page figure>div{position:absolute;right:8px;top:8px;display:flex;gap:4px;opacity:0}.notebook-page figure:hover>div,.notebook-page figure:focus-within>div{opacity:1}.notebook-page figure button{background:white;border:1px solid #ced8e6;border-radius:6px;width:30px;height:28px;cursor:pointer;color:#193559}.private-notebook>footer{padding:14px 36px;color:#6b7d98;font-size:12px}
@media(hover:none){.chat-message>.chat-message-tools{opacity:1;top:-13px}.notebook-page figure>div{opacity:1}}
@media(max-width:700px){.private-notebook{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0}.private-notebook>header,.private-notebook>nav{padding:14px 18px;gap:10px}.notebook-page{margin:12px 10px 0;padding:22px 18px}.private-notebook>footer{padding:10px 18px}.private-notebook nav strong{display:none}.chat-message>.reaction-popover{width:260px}.reaction-popover button{width:34px}}
html[data-theme=dark] .chat-message.mine .message-body{background:#172e53;border-color:#304b73}

/* Voice notes use the same compact player while recording, reviewing and sent. */
.voice-composer{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;padding:8px 0 2px;border:0;background:transparent;border-radius:0;min-width:0}
.voice-compose-row{display:grid;grid-template-columns:32px minmax(0,1fr) 48px;align-items:center;gap:8px;min-width:0}
.voice-composer .voice-composer-status{display:block;min-height:16px;padding:0 56px 0 40px;text-align:center;font-size:11px;font-weight:500;color:#526783;line-height:1.4}
.voice-track{--voice-progress:0%;position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;min-width:0;min-height:44px;border-radius:28px;padding:5px 8px 5px 5px;box-sizing:border-box;background:#2d67db;color:#fff;overflow:hidden}
.voice-fill{position:absolute;z-index:-1;inset:0 auto 0 0;width:var(--voice-progress);background:#154aae;pointer-events:none}
.voice-composer button,.voice-player .voice-play{display:inline-grid;place-items:center;position:static;flex:none;min-width:0;width:34px;height:34px;min-height:34px;padding:0;margin:0;border:0;border-radius:50%;background:#fff;color:#1256c9;box-sizing:border-box;cursor:pointer}
.voice-composer button svg,.voice-player .voice-play svg{display:block;width:22px;height:22px;flex:none}
.voice-composer .voice-discard{width:30px;height:30px;min-height:30px;background:#168ce8;color:#fff}
.voice-composer .voice-send{width:48px;height:44px;min-height:44px;border-radius:24px;background:#1256c9;color:#fff}
.voice-composer .voice-send svg{width:25px;height:25px}
.voice-composer .voice-stop{background:#fff;color:#1256c9}
.voice-composer button:disabled{opacity:.38;cursor:default}
.voice-composer button:focus-visible,.voice-player button:focus-visible,.voice-seek:focus-visible{outline:3px solid #101e36;outline-offset:3px}
.voice-clock{display:block;flex:none;margin-left:auto;min-width:42px;border-radius:18px;padding:4px 7px;background:#fff;color:#124ba7;text-align:center;font:650 12px/1.3 system-ui;font-variant-numeric:tabular-nums;box-sizing:border-box}
.voice-seek{position:relative;flex:1;min-width:16px;width:100%;height:30px;min-height:0!important;margin:0;padding:0;appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;border-radius:14px;cursor:pointer;box-sizing:border-box;touch-action:pan-y}
.voice-seek::-webkit-slider-runnable-track{height:3px;background:#fff;border-radius:4px}
.voice-seek::-moz-range-track{height:3px;background:#fff;border-radius:4px}
.voice-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;margin-top:-4px;border:1px solid #fff;border-radius:50%;background:#1256c9;box-shadow:0 0 0 1px #1256c9}
.voice-seek::-moz-range-thumb{width:11px;height:11px;border:1px solid #fff;border-radius:50%;background:#1256c9;box-shadow:0 0 0 1px #1256c9}
.voice-player{min-width:0}
.voice-player .voice-track{display:none}
.voice-player[data-enhanced=true] .voice-track{display:flex}
.voice-player[data-enhanced=true]>audio{display:none}
.voice-player-status:empty{display:none}
.voice-player-status{color:#a51b31;font-size:11px;line-height:1.4;margin-top:5px}
.chat-voice-note{width:310px;max-width:100%;margin:6px 0 0}
.chat-message .chat-voice-note .voice-play{background:#fff;color:#1256c9}
.composer-media .voice-player .voice-play{position:static;inset:auto;transform:none;background:#fff;color:#1256c9;border:0;padding:0}
.voice-recording-track .voice-clock{margin-left:auto}
.voice-preview{width:100%;min-width:0}
html[data-academy-design="cuban"] #chat-composer .direct-composer:has(.voice-composer:not(:empty)) .composer-toolbar{display:none!important}
html[data-academy-design="cuban"] #chat-composer .direct-composer:has(.voice-composer:not(:empty)) .composer-line:has(textarea:placeholder-shown){display:none}
html[data-academy-design="cuban"] .two-col>.right-rail{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:20px}
html[data-academy-design="cuban"] .right-rail>:is(.quote-card,.side-panel){margin:0}
.right-rail .quote-card .quote{margin-top:0;margin-bottom:12px}
@media(max-width:600px){.voice-composer{padding:6px 0 0;gap:4px}.voice-compose-row{grid-template-columns:30px minmax(0,1fr) 44px;gap:6px}.voice-composer .voice-send{width:44px}.voice-track{gap:6px;padding-right:6px}.voice-clock{font-size:11px;min-width:38px;padding:4px 5px}.chat-voice-note{width:min(290px,100%)}html[data-academy-design="cuban"] .two-col>.right-rail{gap:20px}}

/* Camlangs interactions, Academy colours. One scroll area, stable bubbles. */
html[data-academy-design="cuban"] #main:has(.messages-workspace){max-width:none;min-height:0;height:calc(100dvh - 79px);padding:18px 22px 16px;display:flex;flex-direction:column;overflow:hidden}
html[data-academy-design="cuban"] .messages-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px;flex:none}
html[data-academy-design="cuban"] .messages-heading h1{font-size:24px;margin:0}
html[data-academy-design="cuban"] .messages-workspace{display:grid;grid-template-columns:minmax(220px,28%) minmax(0,1fr);height:auto;min-height:0;flex:1;padding:0;overflow:hidden;border-radius:18px;background:#fff;border:1px solid #dce5f0;box-shadow:0 3px 18px #13305208}
html[data-academy-design="cuban"] .messages-workspace .thread-list{display:flex;flex-direction:column;border-right:1px solid #e4eaf3;border-bottom:0;padding:0;min-height:0;max-height:none;overflow:hidden;background:#fff}
html[data-academy-design="cuban"] .thread-list-heading{padding:16px;border-bottom:1px solid #edf0f5;flex:none}
html[data-academy-design="cuban"] .thread-search{display:flex;align-items:center;gap:8px;background:#f4f6fa;border:1px solid #e8edf4;border-radius:13px;padding:0 12px}
html[data-academy-design="cuban"] .thread-search svg{width:19px;height:19px;flex:none;color:#6e7d91}
html[data-academy-design="cuban"] #chat-thread-search{width:100%;min-width:0;padding:12px 0;border:0;background:transparent;outline:none;font:inherit;font-size:13px;color:#173257}
html[data-academy-design="cuban"] #chat-thread-items{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:6px;flex:1;scrollbar-width:thin}
html[data-academy-design="cuban"] .chat-thread{display:flex;align-items:center;gap:10px;padding:13px 10px;border-radius:12px;min-width:0;margin:2px 0;background:transparent;color:#193450;text-decoration:none}
html[data-academy-design="cuban"] .chat-thread>div{min-width:0;flex:1}
html[data-academy-design="cuban"] .chat-thread strong{font-size:14px;font-weight:650}
html[data-academy-design="cuban"] .chat-thread small{max-width:none;font-size:12px;color:#718198}
html[data-academy-design="cuban"] .chat-thread.active{background:#eaf2ff}
html[data-academy-design="cuban"] .chat-thread:hover{background:#f2f6fd}
html[data-academy-design="cuban"] .chat-thread .thread-unread-dot{width:8px;height:8px;background:#db2444;border-radius:50%;flex:none}
html[data-academy-design="cuban"] .messages-workspace .conversation{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fbfcfe}
html[data-academy-design="cuban"] .conversation>header{position:relative;flex:none;padding:14px 20px;min-height:72px;background:#fff;border-bottom:1px solid #e7edf5;z-index:2}
html[data-academy-design="cuban"] .conversation-member{flex:1;overflow:hidden;gap:4px}
html[data-academy-design="cuban"] .conversation-member strong{font-size:15px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html[data-academy-design="cuban"] .conversation-member small{font-size:11px;line-height:1.4}
html[data-academy-design="cuban"] .conversation>.chat-empty{height:100%;margin:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:25px;text-align:center;background:#fff}
html[data-academy-design="cuban"] #chat-history{flex:1;min-height:0;height:auto;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:22px 26px;gap:14px;scrollbar-width:thin;background:#fbfcfe;scroll-behavior:auto;overflow-anchor:none}
html[data-academy-design="cuban"] #chat-history .chat-message{position:relative;display:block;flex:none;width:fit-content;min-width:100px;max-width:min(76%,680px);padding:0;margin:0;align-self:flex-start;background:transparent;border:0;border-radius:0;box-shadow:none;outline-offset:3px}
html[data-academy-design="cuban"] #chat-history .chat-message.mine{align-self:flex-end}
html[data-academy-design="cuban"] #chat-history .message-body{font:14px/1.6 inherit;line-height:1.6;font-size:14px;color:#173b60;overflow-wrap:anywhere;padding:11px 14px;background:#e9f2ff;border:1px solid #d8e8fc;border-radius:17px 17px 17px 5px;min-width:0}
html[data-academy-design="cuban"] #chat-history .mine .message-body{background:#fff0f1;border-color:#f5d9de;color:#612b38;border-radius:17px 17px 5px 17px}
html[data-academy-design="cuban"] #chat-history .message-copy:empty{display:none}
html[data-academy-design="cuban"] #chat-history .message-copy a{color:#075aa8;text-decoration:underline;text-underline-offset:3px;word-break:break-word}
html[data-academy-design="cuban"] #chat-history .chat-message-meta{display:flex;align-items:center;justify-content:flex-start;gap:6px;min-height:25px;padding:2px 4px 0;color:#728199;font-size:10px;white-space:nowrap}
html[data-academy-design="cuban"] #chat-history .mine .chat-message-meta{justify-content:flex-end}
html[data-academy-design="cuban"] .chat-message-menu-button{display:inline-grid;place-items:center;width:23px;height:23px;border:0;border-radius:7px;background:transparent;color:#8291a4;padding:3px;cursor:pointer}
html[data-academy-design="cuban"] .chat-message-menu-button:hover{background:#e7edf5;color:#003da5}
.chat-message-menu-button svg{width:18px;height:18px}.chat-receipt{display:inline-grid;place-items:center;color:#8896aa}.chat-receipt svg{width:22px;height:20px;stroke-width:2.3}.chat-receipt.is-read{color:#1689ee}
html[data-academy-design="cuban"] #chat-history .chat-quote{font-size:12px;background:#e3edfa;color:#345577;margin:0 0 4px;border-left-color:#397ac0;padding:8px 11px}
html[data-academy-design="cuban"] #chat-history .mine .chat-quote{background:#fbe4e8;border-left-color:#d02b49;color:#754250}
html[data-academy-design="cuban"] .message-reactions{display:flex;gap:4px;padding:0;flex-wrap:wrap;margin:0 4px;max-width:100%;width:fit-content}
html[data-academy-design="cuban"] .message-reaction{padding:3px 7px;border:1px solid #dce5ef;border-radius:15px;background:white;font-size:16px;line-height:1.2;cursor:pointer}.message-reaction span{font-size:10px;color:#556780}.message-reaction.mine{border-color:#e9a6b5!important;background:#fff1f4!important}
html[data-academy-design="cuban"] #chat-history .homework-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:11px;background:transparent;color:#305b86;padding:0 6px 5px;border:0}
html[data-academy-design="cuban"] #chat-history .homework-heading strong{display:flex;align-items:center;gap:5px}.homework-heading svg{height:16px;width:16px}.homework-heading time{color:#7c8a9c;font-size:10px}
html[data-academy-design="cuban"] .homework-status{font-size:11px;padding:2px 4px;color:#466b53;background:transparent}.homework-status button{border:1px solid #b9dcc7;border-radius:9px;background:#eefaf3;color:#226444;padding:6px 9px;cursor:pointer;font:inherit}
html[data-academy-design="cuban"] #chat-composer{padding:10px 18px 12px;margin:0;flex:none;border-top:1px solid #e4eaf3;background:#fff;z-index:2}
html[data-academy-design="cuban"] #chat-typing{font-size:11px;color:#8291a5;height:19px;min-height:19px;padding:0 24px;background:#fbfcfe}
html[data-academy-design="cuban"] #chat-composer .direct-composer{position:relative;display:grid;gap:6px;grid-template-columns:1fr;background:transparent}
html[data-academy-design="cuban"] #chat-composer .composer-line{display:flex;gap:0;width:100%;margin:0}
html[data-academy-design="cuban"] #chat-composer textarea{resize:none!important;min-height:44px;height:44px;max-height:128px;overflow-y:auto;border:1px solid #dfe7f1;border-radius:15px;outline:none;background:#f7f9fc;color:#173655;font-size:14px;line-height:1.5;padding:11px 14px;width:100%;font-family:inherit}
html[data-academy-design="cuban"] #chat-composer textarea:focus{border-color:#9ab8e3;background:white;box-shadow:0 0 0 2px #eaf2ff}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar{display:flex;align-items:center;gap:5px;padding:0;grid-template-columns:none}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar>button,html[data-academy-design="cuban"] #chat-composer .composer-toolbar>.attach-button{display:inline-grid!important;place-items:center;width:35px;height:35px;min-height:35px;margin:0;padding:7px!important;border-radius:10px!important;border:0;background:transparent;color:#687c96;cursor:pointer;flex:none}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar svg{width:21px;height:21px}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar>button:hover,html[data-academy-design="cuban"] #chat-composer .attach-button:hover{background:#edf3fc;color:#003da5}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar .composer-send{margin-left:auto;width:38px;height:38px;min-height:38px;background:#d42342;color:white;border-radius:50%!important;box-shadow:none}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar .task-toggle[aria-pressed="true"]{background:#fff0c9;color:#8d5c05;box-shadow:0 0 0 1px #efc967 inset}
html[data-academy-design="cuban"] #chat-composer .task-composer textarea{border-color:#e4c46c;background:#fffdf5}
html[data-academy-design="cuban"] #chat-composer .composer-media:empty,html[data-academy-design="cuban"] #chat-composer .attachment-picker:empty{display:none}
html[data-academy-design="cuban"] #chat-composer .composer-media{display:flex;gap:8px;overflow:auto;max-height:105px}
html[data-academy-design="cuban"] #chat-composer .composer-media>div{position:relative;flex:none;max-width:180px;padding:4px;background:#f3f6fb;border-radius:10px;font-size:11px;overflow:hidden}
html[data-academy-design="cuban"] #chat-composer .composer-media img{width:75px;height:65px;object-fit:cover;border-radius:7px}
html[data-academy-design="cuban"] #chat-composer .attachment-picker{position:absolute;bottom:calc(100% + 8px);left:0;z-index:20;width:min(360px,calc(100vw - 36px));max-height:min(440px,58dvh);overflow:auto;background:white;border:1px solid #dce5ef;border-radius:17px;box-shadow:0 10px 40px #17335524}
html[data-academy-design="cuban"] #chat-jump-latest{position:absolute;right:24px;bottom:160px;z-index:2;width:37px;height:37px;border:1px solid #dbe4f1;border-radius:50%;background:white;color:#326fae;box-shadow:0 3px 12px #24476e15;font-size:21px;padding:0;cursor:pointer}
html[data-academy-design="cuban"] #chat-jump-latest[hidden]{display:none}
html[data-academy-design="cuban"] .chat-reply-draft{display:flex;align-items:center;gap:12px;background:#f5e9ee;border-left:3px solid #d42342;color:#69414c;border-radius:10px;padding:8px 12px;margin-bottom:8px;font-size:12px}
.chat-reply-draft>span{flex:1;max-height:52px;overflow:hidden}.chat-reply-draft button{background:none;border:0;font-size:22px;color:inherit;cursor:pointer}
.chat-context-menu{position:fixed;z-index:1500;width:210px;max-width:calc(100vw - 16px);padding:6px;background:white;color:#213953;border:1px solid #dfe6f0;border-radius:15px;box-shadow:0 12px 42px #142d5026;animation:chat-menu-in .12s ease-out}
.chat-context-menu button{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:10px;color:inherit;background:transparent;font:13px/1.35 inherit;font-size:13px;text-align:left;cursor:pointer}.chat-context-menu button svg{height:19px;width:19px;flex:none}.chat-context-menu button:hover,.chat-context-menu button:focus-visible{background:#edf4ff;outline:none}.chat-context-menu .is-danger{color:#c52d48}
body>.reaction-popover{position:fixed;z-index:1501;display:block;width:320px;max-width:calc(100vw - 16px);padding:6px;background:white;border:1px solid #dce5ef;border-radius:22px;box-shadow:0 10px 40px #17335524}
.reaction-quick{display:flex;align-items:center;justify-content:space-around}.reaction-quick button{padding:0;width:39px;height:39px;border:0;border-radius:50%;background:transparent;font-size:23px;cursor:pointer}.reaction-quick button:hover{background:#eff4fc;transform:scale(1.08)}
.chat-emoji-picker{padding:12px;background:white;color:#243d5b;max-width:100%}.chat-emoji-picker>header{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:8px}.chat-emoji-picker [data-emoji-close]{width:27px;height:27px;border:0;background:transparent;padding:4px}.chat-emoji-picker svg{width:19px;height:19px}.chat-emoji-picker>input{width:100%;padding:9px 11px;font:13px inherit;font-size:13px;border:1px solid #dce5ef;border-radius:10px;background:#f7f9fc;color:#233b55}.chat-emoji-picker>nav{display:flex;gap:2px;justify-content:space-between;padding:8px 0;border-bottom:1px solid #edf1f7}.chat-emoji-picker>nav button{width:31px;height:31px;border:0;border-radius:8px;background:none;font-size:18px;cursor:pointer}.chat-emoji-picker>nav button[aria-pressed=true]{background:#e9f2ff}.chat-emoji-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;max-height:215px;overflow:auto;padding-top:7px}.chat-emoji-grid button{display:grid;place-items:center;height:37px;width:auto;border:0;border-radius:8px;background:transparent;font:25px 'Apple Color Emoji','Segoe UI Emoji',sans-serif;cursor:pointer}.chat-emoji-grid button:hover{background:#edf3fc}
html[data-academy-design="cuban"] .chat-media-image{display:block;border:0;background:transparent;padding:0;margin:7px 0 0;max-width:100%;width:fit-content;cursor:zoom-in;border-radius:10px;overflow:hidden}
html[data-academy-design="cuban"] .chat-media-image img{display:block;width:auto;max-width:100%;max-height:350px;object-fit:contain;border-radius:10px}
.chat-link-preview{display:flex;gap:10px;align-items:center;width:100%;max-width:350px;min-width:0;text-decoration:none!important;background:#ffffffad;color:#173c65!important;border:1px solid #ffffff;border-radius:11px;overflow:hidden;margin-top:9px;font-size:13px}.chat-link-preview>span:last-child{min-width:0;padding:10px}.chat-link-preview strong,.chat-link-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-link-preview small{font-size:10px;opacity:.7;margin-top:3px;max-width:245px}.chat-link-symbol{font-size:26px;padding-left:12px}.chat-link-preview.is-youtube{display:block;max-width:330px}.chat-youtube-cover{position:relative;display:block;aspect-ratio:16/9;overflow:hidden}.chat-youtube-cover img{width:100%;height:100%;object-fit:cover}.chat-youtube-cover>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#e91c39;color:white;font-size:19px;border-radius:9px;padding:3px 13px}
html[data-academy-design="cuban"] dialog.chat-image-lightbox{position:fixed;inset:0;margin:auto;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:40px;border:0;border-radius:0;background:transparent;overflow:hidden;box-shadow:none;outline:none}
html[data-academy-design="cuban"] dialog.chat-image-lightbox[open]{display:grid;place-items:center}dialog.chat-image-lightbox::backdrop{background:#071427e8;backdrop-filter:blur(8px)}.chat-image-lightbox>img{display:block;max-width:100%;max-height:calc(100dvh - 80px);object-fit:contain;border-radius:10px;box-shadow:0 20px 80px #0005;animation:chat-image-in .22s ease-out}.chat-image-lightbox>button{position:absolute;top:16px;right:18px;width:40px;height:40px;border:1px solid #ffffff40;border-radius:50%;padding:9px;background:#ffffff20;color:white;cursor:pointer}.chat-image-lightbox>button svg{width:22px;height:22px}
.shared-tutor-note{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #d8e3ef;border-radius:12px;background:white;color:#173e6d;text-align:left;cursor:pointer;max-width:100%}.shared-tutor-note svg{width:27px;height:27px;flex:none}.shared-tutor-note>span{min-width:0;flex:1}.shared-tutor-note strong,.shared-tutor-note small{display:block}.shared-tutor-note small{font-size:10px;margin-top:5px;color:#6c8099}
.message-inline-editor textarea{resize:none!important;max-height:240px}.message-inline-editor [role=alert]:empty{display:none}
@keyframes chat-image-in{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes chat-menu-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
  html[data-academy-design="cuban"] #main:has(.messages-workspace){padding:6px 8px 8px;height:calc(100dvh - var(--mobile-bar,64px));max-height:calc(100dvh - var(--mobile-bar,64px));overflow:hidden}
  html[data-academy-design="cuban"] .messages-heading{min-height:33px;margin:0 4px 7px}.messages-heading>.btn{font-size:10px;padding:7px 10px}html[data-academy-design="cuban"] .messages-heading h1{font-size:19px}
  html[data-academy-design="cuban"] .messages-workspace{grid-template-columns:1fr;border-radius:14px;min-height:0}
  html[data-academy-design="cuban"] .messages-workspace[data-view="chat"] .thread-list,html[data-academy-design="cuban"] .messages-workspace[data-view="list"] .conversation{display:none}
  html[data-academy-design="cuban"] .messages-workspace .thread-list{max-height:none;display:flex;border-right:0;min-height:0}
  html[data-academy-design="cuban"] .thread-list-heading{padding:12px}
  html[data-academy-design="cuban"] .chat-thread{padding:14px 10px}
  html[data-academy-design="cuban"] .conversation>header{padding:10px 12px;min-height:64px;gap:9px}
  html[data-academy-design="cuban"] .conversation .chat-back{display:grid;place-items:center;flex:none;width:27px;color:#184f8b}
  html[data-academy-design="cuban"] .conversation-member strong{font-size:14px}.conversation-member small{max-width:190px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
  html[data-academy-design="cuban"] #chat-history{padding:14px 11px;gap:12px;height:auto;min-height:0}
  html[data-academy-design="cuban"] #chat-history .chat-message{max-width:88%;min-width:90px}
  html[data-academy-design="cuban"] #chat-history .message-body{font-size:14px;line-height:1.55;padding:10px 12px}
  html[data-academy-design="cuban"] #chat-composer{padding:8px 10px max(8px,env(safe-area-inset-bottom))}
  html[data-academy-design="cuban"] #chat-composer textarea{font-size:16px}
  html[data-academy-design="cuban"] #chat-typing{height:17px;min-height:17px;padding-left:15px}
  html[data-academy-design="cuban"] #chat-jump-latest{right:15px;bottom:155px}
  html[data-academy-design="cuban"] .chat-media-image img{max-height:300px}
  html[data-academy-design="cuban"] dialog.chat-image-lightbox{padding:12px}.chat-image-lightbox>img{max-height:calc(100dvh - 90px)}
  .chat-emoji-grid{max-height:180px}.reaction-extra .chat-emoji-picker{padding:7px}.reaction-extra .chat-emoji-grid{max-height:165px}
}
@media(prefers-reduced-motion:reduce){.chat-image-lightbox>img,.chat-context-menu{animation:none}.reaction-quick button:hover{transform:none}}
/* Scope over the earlier campus theme's important rules without affecting the feed. */
html[data-academy-design="cuban"] #chat-history .chat-message>.message-body{background:#e9f2ff!important;color:#173b60!important;border-color:#d8e8fc!important}
html[data-academy-design="cuban"] #chat-history .chat-message.mine>.message-body{background:#fff0f1!important;color:#612b38!important;border-color:#f5d9de!important}
html[data-academy-design="cuban"] #chat-history .chat-message>:is(.chat-message-meta,.message-reactions,.homework-heading,.homework-status){background:transparent!important;border:0!important}
html[data-academy-design="cuban"] #chat-history .chat-message>.chat-quote{background:#e3edfa!important;color:#345577!important;border-color:#397ac0!important}
html[data-academy-design="cuban"] #chat-history .chat-message.mine>.chat-quote{background:#fbe4e8!important;color:#754250!important;border-color:#d02b49!important}
html[data-academy-design="cuban"] #chat-composer .direct-composer,html[data-academy-design="cuban"] #chat-composer .composer-toolbar{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar .composer-send{background:#d42342!important;color:white!important;border:0!important}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar .composer-send:hover{background:#b81936!important}
html[data-academy-design="cuban"] #chat-composer .composer-toolbar .task-toggle[aria-pressed="true"]{background:#fff0c9!important;color:#8d5c05!important}
.chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr));overflow-x:hidden}.chat-emoji-grid button{min-width:0;padding:0}
@media(max-width:700px){html[data-academy-design="cuban"] #main:has(.messages-workspace[data-view="chat"]) .messages-heading>.btn{display:none}html[data-academy-design="cuban"] #chat-composer textarea{padding:10px 12px!important;min-height:48px!important;line-height:24px!important}}
