/* Classora v263 — Emerald luxury design system, no purple. Layout + controls only. */
/* Accent overrides for the default dark theme. Keep morning/light theme readable. */
html body:not(.light):not([data-classora-theme="morning"]):not([data-classora-theme="embroidery"]){
 --cl243-bg:#081a1d;--cl243-paper:#102d32;--cl243-soft:#173940;--cl243-raised:#20454b;
 --cl243-ink:#effcf9;--cl243-muted:#bfdad5;--cl243-edge:#a2f4df26;
 --cl243-accent:#80e6c7;--cl243-accent-ink:#073329;
 --cl243-gold:#d7d4a6;--cl243-shadow:0 18px 55px #020d103d;
 --ui-accent:#80e6c7;--ui-paper:#102d32;--ui-paper-alt:#173940;
 --cl237-bg:#081a1d;--cl237-card:#102d32;--cl237-soft:#173940;--cl237-accent:#80e6c7;
}
html body #platformLobby:not(.hidden){
 background:radial-gradient(circle at 0% 9%,rgba(48,158,139,.13),transparent 38%),
 radial-gradient(circle at 97% 96%,rgba(37,107,112,.07),transparent 42%),var(--cl243-bg,#081a1d)!important;
}
html body #platformLobby .cl258-island-surface{
 background:linear-gradient(136deg,#10272ccf,#111e27 77%,#132c2edf)!important;
 border-color:rgba(147,229,206,.16)!important;
 box-shadow:0 25px 76px #00000034,inset 0 1px #ffffff0c!important;
}
html body #platformLobby .cl250-left{
 background:linear-gradient(180deg,rgba(15,39,42,.50),rgba(9,27,32,.19))!important;
 border-right-color:rgba(153,230,209,.16)!important;
}
html body #platformLobby .lobby-topbar{border-bottom-color:rgba(133,217,192,.16)!important}
html body #platformLobby .lobby-topbar :is(.lobby-brand,.lobby-sub){color:var(--cl243-ink)!important}
html body #platformLobby .cl214-hero{
 background:radial-gradient(ellipse at 15% 75%,rgba(39,171,138,.17),transparent 58%),
 radial-gradient(ellipse at 90% 8%,rgba(98,231,203,.06),transparent 55%),
 linear-gradient(125deg,#132e36,#142b32 66%,#132c30)!important;
 border:1px solid rgba(143,231,211,.18)!important;
 box-shadow:0 21px 59px #020d122f,inset 0 1px #ffffff0a!important;
}
html body #platformLobby .cl214-hero h1{color:#f7fffe!important}
html body #platformLobby .cl214-hero h1 em{color:#75e5bd!important;text-shadow:none!important}
html body #platformLobby .cl214-hero :is(p,.cl214-kicker){color:#c6e9df!important}
html body #platformLobby .cl214-hero-visual{filter:none!important}
html body #platformLobby :is(.cl214-quick .cl214-card,.cl214-tool-grid .cl214-card,.cl215-insight,
 .cl223-topic-card,.cl223-quest-card,.cl227-shop-card,.cl214-section-card){
 background:linear-gradient(142deg,#19353b,#122b31)!important;
 border:1px solid rgba(144,217,204,.2)!important;
 color:#eefaf7!important;
 box-shadow:0 11px 30px #020f162b!important;
 border-radius:19px!important;
}
html body #platformLobby :is(.cl214-quick .cl214-card,.cl214-tool-grid .cl214-card,
 .cl223-topic-card,.cl223-quest-card,.cl227-shop-card) :is(h2,h3,b,strong,p,small,span){
 color:inherit;
}
html body #platformLobby :is(.cl214-primary,.cl223-primary,.cl227-primary,.cl215-action){
 background:linear-gradient(115deg,#95eed1,#68d9ba)!important;
 color:#093b31!important;border:1px solid #b2f9df!important;
 box-shadow:0 7px 23px rgba(62,201,155,.15)!important;
}
html body #platformLobby :is(.cl214-secondary,.cl223-outline,.cl227-secondary,.cl250-more){
 background:#17343b!important;color:#e9fcf5!important;
 border:1px solid #77beaf66!important;
}
html body #platformLobby :is(.cl214-wave,.cl214-section-deco){color:#80e6c7!important}
html body #platformLobby .cl250-left .lobby-ai-head{border-bottom-color:rgba(138,231,209,.18)!important}
html body #platformLobby .cl250-left .lobby-ai-orb{background:#20463f!important;color:#9ef4d6!important}
html body #platformLobby .cl250-left #lobbyAIInput{
 background:#142f36!important;color:#effbf8!important;
 border:1px solid #6eac9d66!important;border-radius:18px!important;
}
html body #platformLobby .cl250-left #lobbyAIInput:focus{
 border-color:#7ce0c3!important;box-shadow:0 0 0 3px rgba(104,225,190,.13)!important;
}
html body #platformLobby .cl250-left #lobbyAISend{background:#91e8cb!important;color:#0d3e32!important}
html body #platformLobby .cl250-left .cl250-line.cl250-bot{background:#1c3b40!important;border-color:#83d8c044!important}
html body #platformLobby .cl250-left .cl250-line.cl250-user{background:#226258!important;border-color:#a2f1d655!important}
/* Chat: same calm emerald surfaces, refined controls, readable headings. */
html body #chatModal{--chat-lux-panel:#10272f;--chat-lux-line:#88d9c02c;--chat-lux-soft:#183640}
html body #chatModal .classora-chat-box{
 background:linear-gradient(145deg,#10232b,#0d2028 73%)!important;
 border:1px solid rgba(142,225,206,.22)!important;border-radius:26px!important;
 box-shadow:0 26px 86px #020b11bb!important;
}
html body #chatModal .modalhead{
 background:linear-gradient(115deg,#173740,#112b32)!important;
 border-bottom:1px solid rgba(142,225,206,.24)!important;
 padding:clamp(12px,1.6vw,20px)!important;gap:12px!important;
}
html body #chatModal .modalhead h2{color:#f1fffb!important}
html body #chatModal .modalhead .subject-assistant-line{color:#b6ddd7!important}
html body #chatModal .modalhead .close{
 min-width:70px!important;min-height:44px!important;
 width:auto!important;height:auto!important;
 white-space:nowrap!important;word-break:keep-all!important;
 padding:8px 13px!important;border-radius:13px!important;
 background:#1c3e43!important;border:1px solid #72b9aa66!important;color:#f2fffb!important;
}
html body #chatModal .classora-chat-layout{gap:12px!important;padding:11px!important}
html body #chatModal :is(.chat-contacts-pane,.chat-thread-pane){
 background:linear-gradient(145deg,#173139,#102932)!important;
 border:1px solid rgba(140,209,194,.22)!important;border-radius:18px!important;
 min-width:0!important;overflow-x:hidden!important;
}
html body #chatModal .chat-search-wrap{background:#173139!important}
html body #chatModal :is(#chatPeopleSearch,#chatMessageSearch){
 background:#0c2630!important;border:1px solid #579a937e!important;color:#effdfb!important;
 min-height:46px!important;border-radius:13px!important;font-size:14px!important;
}
html body #chatModal .chat-group-actions{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:8px!important;padding-block:11px!important;
}
html body #chatModal .chat-group-actions button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:0!important;min-height:44px!important;padding:9px 11px!important;
 border-radius:12px!important;background:#20434a!important;border:1px solid #6fb3a46b!important;
 color:#e6fcf4!important;font-weight:850!important;
}
html body #chatModal .chat-contact{
 background:#1e3940!important;border:1px solid #77b2a33d!important;
 border-radius:14px!important;min-height:64px!important;
}
html body #chatModal .chat-contact:hover{background:#244d4d!important;border-color:#86dec2!important}
html body #chatModal .chat-contact-section-title{color:#91efd0!important}
html body #chatModal .chat-thread-head{
 background:#18343c!important;border-bottom:1px solid #74bead45!important;
 padding:12px 15px!important;gap:9px!important;
}
html body #chatModal .chat-messages{
 background:radial-gradient(ellipse at 80% 90%,#23695a2a,transparent 55%),#0e242e!important;
}
html body #chatModal .chat-bubble.mine{
 background:linear-gradient(135deg,#237969,#207b80)!important;
 color:#f8fffd!important;border:1px solid #9ee4cd55!important;
}
html body #chatModal .chat-bubble.theirs{background:#1a3a42!important;color:#eefaf7!important}
html body #chatModal .chat-compose{background:#143038!important;border-top:1px solid #80c2b24d!important}
html body #chatModal #chatMessageInput{background:#092732!important;border:1px solid #72b7a879!important}
html body #chatModal #chatSendBtn{
 background:linear-gradient(110deg,#91eccf,#67dcb9)!important;
 color:#0b3b2f!important;border-radius:14px!important;font-weight:900!important;
}
html body #chatModal :is(.chat-media-tools,.chat-thread-head,.chat-compose) button{
 min-height:43px!important;border-radius:12px!important;
}
html body #chatModal .chat-media-tools{background:#122e36!important;gap:7px!important}
html body #chatModal :is(.chat-media-tools button,.chat-thread-head button){
 border:1px solid #79b8a96b!important;
 color:#ebfcf6!important;background:#22504e!important;
}
html body #settingsModal{
 --cs241-bg:#0e282e;--cs241-surface:#17353b;--cs241-card:#20424a;
 --cs241-line:#75bcae72;--cs241-text:#f5fffd;--cs241-muted:#c7e4dd;
 --cs241-accent:#8fe6c8;--cs241-on:#0b3c31;
}
html body #settingsModal .settings-modalbox{
 background:linear-gradient(145deg,#112a32,#0c222b)!important;border-color:#75bcae60!important;
 border-radius:24px!important;
}
html body #settingsModal .modalhead{background:linear-gradient(120deg,#214649,#112f37)!important}
html body #settingsModal :is(.settings-card,.cl241-settings-nav,.classora-settings-shortcuts){
 background:linear-gradient(145deg,#20454c,#14323c)!important;
 border:1px solid #84c9b76b!important;border-radius:18px!important;
}
html body #settingsModal .classora-quick-grid button,
html body #settingsModal .cl241-settings-nav-grid button,
html body #settingsModal :is(.cl238-upgrade,.cl239-launch){
 background:#24504f!important;color:#f0fff9!important;border:1px solid #8cdac56b!important;
 border-radius:13px!important;min-height:48px!important;
}
html body #settingsModal #cl238SettingsUpgrade{background:#74ddba!important;color:#0d392f!important}
html body #settingsModal #cl239SettingsChatFeatures{display:inline-flex!important;align-items:center;justify-content:center}
html body #chatModal #cl238ChatUpgrade,html body #chatModal #cl239ChatBtn{display:none!important}
/* Never split an Arabic, Hebrew or Latin word midway. Allow break only between words. */
html body :is(#platformLobby,#chatModal,#settingsModal,#classoraMobilePageNav)
 :is(button,a[role="button"],.cl238-upgrade,.cl239-launch){
 overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important;
 text-wrap:pretty;line-height:1.55!important;
}
html body :is(#platformLobby,#chatModal,#settingsModal,#classoraMobilePageNav)
 :is(button,a[role="button"],.cl238-upgrade,.cl239-launch) :is(span,b,strong,small){
 overflow-wrap:normal!important;word-break:keep-all!important;hyphens:none!important;
}
html body #classoraMobilePageNav button{white-space:nowrap!important}
html body #classoraMobilePageNav button span{
 white-space:nowrap!important;word-break:keep-all!important;overflow:visible!important;
}
html body #chatModal .modalhead :is(button,a){
 white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important;
}
html body #chatModal .chat-contact :is(b,strong,small){
 overflow-wrap:normal!important;word-break:keep-all!important;
}
html body #settingsModal :is(.classora-quick-grid,.cl241-settings-nav-grid) button{
 white-space:normal!important;min-width:0!important;min-height:50px!important;
 overflow-wrap:normal!important;word-break:keep-all!important;
}
html body #platformLobby .cl214-tool-grid{min-width:0!important}
html body #platformLobby :is(button,.cl214-card,.cl223-topic-card){min-width:0}
@media(max-width:680px){
 html body #chatModal .modalhead{gap:8px!important;padding:12px!important}
 html body #chatModal .modalhead .close{min-width:58px!important;font-size:12px!important}
 html body #chatModal .classora-chat-layout{gap:6px!important;padding:6px!important}
 html body #chatModal :is(.chat-contacts-pane,.chat-thread-pane){border-radius:14px!important}
 html body #settingsModal :is(.classora-quick-grid,.cl241-settings-nav-grid){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html body #platformLobby button,html body #chatModal button{transition:none!important}
}
