:root{--primary-container:#5c9e62;--on-primary:#ffffff;--secondary:#46694b;--secondary-container:#86bf72;--tertiary:#7d7040;--tertiary-container:#cfc49a;--surface:#F1F5F9;--surface-container-low:#FFFFFF;--surface-container:#F8FAFC;--surface-container-highest:#E2E8F0;--surface-container-lowest:#FFFFFF;--on-surface:#0F172A;--on-surface-variant:#64748B;--outline-variant:#E2E8F0;--fast:0.2s cubic-bezier(0.4,0,0.2,1);--normal:0.35s cubic-bezier(0.4,0,0.2,1);--r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:24px;--r-full:9999px;--nav-w:260px;--qc-w:300px;--hdr-h:72px;--font-arabic-headings:"Bukra","IBM Plex Sans Arabic",sans-serif;--font-arabic-body:"IBM Plex Sans Arabic",sans-serif;--font-english-headings:"Clash Display",sans-serif;--font-english-body:"General Sans",sans-serif;--font-mono:"JetBrains Mono","Fira Code","Cascadia Code",monospace;--webkit-font-smoothing:antialiased;--spring:cubic-bezier(0.34,1.56,0.64,1);--spring-soft:cubic-bezier(0.22,1.0,0.36,1);--spring-stiff:cubic-bezier(0.68,-0.6,0.32,1.6);--sh-ambient:0 4px 16px rgba(0,0,0,0.06);--sh-glass:0 8px 32px rgba(45,97,66,0.12);--sh-glow:0 4px 20px rgba(45,97,66,0.35)}.dark-mode{--primary:#86bf72;--primary-container:#33704a;--on-primary:#f4f7f2;--secondary:#86bf72;--secondary-container:#46694b;--tertiary:#cfc49a;--tertiary-container:#7d7040;--surface:#0F172A;--surface-container-low:#1E293B;--surface-container:#1E293B;--surface-container-highest:#334155;--surface-container-lowest:rgba(30,41,59,0.98);--on-surface:#F1F5F9;--on-surface-variant:#94A3B8;--outline-variant:rgba(255,255,255,0.1);--sh-ambient:0 12px 40px rgba(0,0,0,0.4);--sh-glass:0 8px 32px rgba(129,140,248,0.1)}.light-mode{--surface:#F1F5F9;--on-surface:#0F172A}*{margin:0;padding:0}body,html{font-family:var(--font-arabic-body);background:var(--surface);color:var(--on-surface);overflow-x:hidden;transition:background var(--normal),color var(--normal);-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{font-family:var(--font-arabic-headings);font-weight:700;line-height:1.3;color:var(--on-surface)}.en-title,h1:lang(en),h2:lang(en),h3:lang(en),h4:lang(en){font-family:var(--font-english-headings);letter-spacing:-.02em}input,li,p,select,span,textarea{font-family:var(--font-arabic-body);line-height:1.75;font-weight:400}li:lang(en),p:lang(en),span:lang(en){font-family:var(--font-english-body);line-height:1.6}.btn,.button,button{font-family:var(--font-arabic-headings);font-weight:500;cursor:pointer}.btn:lang(en),button:lang(en){font-weight:600}.btn:lang(en),.num,button:lang(en){font-family:var(--font-english-body)}button,input,select,textarea{border:none;outline:none;background:none;color:inherit}app-sidebar,app-topbar{display:block}app-sidebar{height:auto!important}.app-layout,.app-shell{display:flex;flex-direction:column}.app-main,.main-area{position:relative;overflow:hidden;min-height:0}.top-nav{height:var(--hdr-h);width:100%;background:var(--surface-container-low);border-bottom:1px solid var(--outline-variant);box-shadow:0 2px 12px rgba(0,0,0,.06);padding:0 24px;gap:8px;position:sticky;top:0;z-index:100}.top-nav,.top-nav-brand{display:flex;align-items:center;flex-shrink:0}.top-nav-brand{gap:10px;text-decoration:none;color:inherit}.logo-icon{width:38px;height:38px;border-radius:var(--r-md);background:linear-gradient(135deg,#33704a,#5c9e62);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 3px 10px rgba(45,97,66,.35)}.logo-name{font-size:1rem;font-weight:800;letter-spacing:-.02em}.logo-sub{font-size:.55rem;color:var(--on-surface-variant);letter-spacing:.08em;text-transform:uppercase;font-weight:600}.logo-text{display:flex;flex-direction:column;gap:1px}.top-nav-links{display:flex;align-items:center;gap:2px;flex:1;overflow:visible;min-width:0;padding:0 12px}.top-nav-link{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;border-radius:var(--r-md);font-size:.82rem;font-weight:600;color:var(--on-surface-variant);transition:var(--fast);white-space:nowrap;text-decoration:none;border:none;background:none;cursor:pointer;font-family:inherit;line-height:1}.top-nav-link:hover{background:var(--surface-container);color:var(--on-surface)}.top-nav-link.active{background:var(--primary);color:#fff}.top-nav-link svg{flex-shrink:0}.top-nav-actions{gap:6px;flex-shrink:0}.search-box,.top-nav-actions{display:flex;align-items:center}.search-box{gap:10px;background:var(--surface-container);padding:8px 14px;border-radius:var(--r-full);width:230px;transition:var(--fast);border:1.5px solid var(--outline-variant)}.search-box:focus-within{background:var(--surface-container-low);border-color:var(--primary);box-shadow:0 0 0 3px rgba(45,97,66,.12);width:270px}.search-box input{flex:1;font-size:.88rem;background:none}.search-box input::-moz-placeholder{color:var(--on-surface-variant)}.search-box input::placeholder{color:var(--on-surface-variant)}.icon-btn{position:relative;color:var(--on-surface-variant);padding:9px;border-radius:var(--r-full);transition:var(--fast);background:var(--surface-container-low);display:flex;align-items:center;justify-content:center;border:none;cursor:pointer}.icon-btn:hover{background:var(--surface-container-highest);color:var(--on-surface)}.notif-dot{position:absolute;top:7px;right:7px;width:7px;height:7px;background:var(--tertiary);border-radius:50%;box-shadow:0 0 6px var(--tertiary)}.top-nav-user-btn{display:flex;align-items:center;gap:8px;padding:5px 10px 5px 12px;border-radius:var(--r-full);border:1.5px solid var(--outline-variant);background:var(--surface-container);cursor:pointer;transition:var(--fast);font-family:inherit;color:inherit}.top-nav-user-btn:hover{border-color:var(--primary);background:var(--surface-container-low)}.top-nav-avatar{width:30px;height:30px;border-radius:var(--r-full);background:linear-gradient(135deg,#33704a,#5c9e62);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;overflow:hidden;flex-shrink:0}.top-nav-user-name{font-size:.82rem;font-weight:600;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-arrow{transition:transform .2s ease;flex-shrink:0}.dropdown-arrow.open{transform:rotate(180deg)}.top-nav-dropdown{position:relative}.top-nav-dropdown-menu{position:absolute;top:calc(100% + 10px);left:0;min-width:210px;background:var(--surface-container-low);border:1px solid var(--outline-variant);border-radius:var(--r-lg);box-shadow:0 8px 32px rgba(0,0,0,.14),var(--sh-ambient);padding:6px;z-index:300;display:none;animation:dropdownIn .2s var(--spring-soft) forwards}.top-nav-dropdown-menu.open{display:block}.user-menu{left:auto;right:0;min-width:230px}@keyframes dropdownIn{0%{opacity:0;transform:translateY(-6px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.dropdown-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r-md);font-size:.88rem;font-weight:500;color:var(--on-surface);cursor:pointer;transition:var(--fast);text-decoration:none;border:none;background:none;font-family:inherit;width:100%;text-align:right}.dropdown-item:hover{background:var(--surface-container)}.dropdown-item.active{color:var(--primary);font-weight:700}.dropdown-item.danger{color:#EF4444}.dropdown-item.danger:hover{background:rgba(239,68,68,.08)}.dropdown-divider{height:1px;background:var(--outline-variant);margin:5px 4px}.dropdown-user-header{display:flex;align-items:center;gap:12px;padding:10px 12px 12px}.page-header{padding:16px 32px 12px;flex-shrink:0}.page-title{font-size:1.4rem}.topbar-user-block{display:flex;align-items:center;gap:10px;text-decoration:none;padding:6px 12px 6px 6px;border-radius:40px;border:1px solid var(--outline-variant);background:var(--surface-container);transition:background .2s,border-color .2s;margin-inline-start:auto}.topbar-user-block:hover{background:var(--surface-container-highest);border-color:rgba(90,50,250,.3)}.topbar-user-name{font-size:.88rem;font-weight:700;color:var(--on-surface);max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-user-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--primary),#5c9e62);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.88rem;font-weight:800;flex-shrink:0;overflow:hidden}.page-title .user-hl{color:var(--primary)}.page-subtitle{font-size:.85rem;margin-top:3px}.page-container{flex:1;padding:28px 32px;max-width:100%}.top-bar{display:none}.top-bar-end,.top-bar-start{display:flex;align-items:center;gap:16px}.top-avatar{width:36px;height:36px;border-radius:var(--r-full);display:flex;align-items:center;justify-content:center;font-weight:700;background:linear-gradient(135deg,#33704a,#5c9e62);color:#fff;cursor:pointer;text-decoration:none}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.spin{animation:spin .8s linear infinite;display:inline-block}.status-dot{width:8px;height:8px;background:var(--secondary-container);border-radius:50%;box-shadow:0 0 10px var(--secondary-container)}.glass-card{background:var(--surface-container-low);border-radius:var(--r-xl);padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.06),0 4px 16px rgba(0,0,0,.04);border:1px solid var(--outline-variant);transition:transform var(--normal),box-shadow var(--normal),border-color var(--normal)}.glass-card:hover{transform:translateY(-2px);box-shadow:0 4px 20px rgba(45,97,66,.1);border-color:rgba(45,97,66,.25)}.dark-mode .glass-card{background:var(--surface-container);box-shadow:0 4px 16px rgba(0,0,0,.3);border-color:var(--outline-variant)}.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:24px;margin-bottom:40px}.stat-card{display:flex;align-items:center;gap:20px}.stat-icon{width:56px;height:56px;border-radius:var(--r-lg);display:flex;align-items:center;justify-content:center;svg{width:28px;height:28px;stroke:#fff}}.si-sky{background:linear-gradient(135deg,#33704a,#5c9e62);box-shadow:0 4px 16px rgba(45,97,66,.35)}.si-emerald{background:linear-gradient(135deg,#46694b,#86bf72);box-shadow:0 4px 16px rgba(22,163,74,.35)}.si-amber{background:linear-gradient(135deg,#7d7040,#9a8b52);box-shadow:0 4px 16px rgba(217,119,6,.35)}.stat-val{font-size:1.8rem;font-weight:800;display:block;line-height:1.2;font-family:var(--font-number);color:var(--primary)}.stat-lbl{font-size:.9rem;color:var(--on-surface-variant)}.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.section-head h2{font-size:1.25rem}.btn-primary{background:var(--primary);color:#ffffff;padding:12px 28px;border-radius:var(--r-md);font-weight:600;font-size:.95rem;transition:var(--normal);display:inline-flex;align-items:center;gap:8px;justify-content:center}.btn-primary:hover{background:#33704a;transform:translateY(-2px);box-shadow:0 4px 20px rgba(45,97,66,.4)}.btn-glass{background:var(--surface-container);color:var(--primary);padding:12px 28px;border-radius:var(--r-md);font-weight:600;border:1.5px solid rgba(45,97,66,.25);transition:var(--normal);display:inline-flex;align-items:center;justify-content:center}.btn-glass:hover{background:var(--primary);color:#ffffff;border-color:var(--primary);box-shadow:var(--sh-glow)}.rooms-grid-sm{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:24px;margin-bottom:40px}.room-badge{font-size:.8rem;padding:4px 12px;border-radius:var(--r-full);background:var(--surface-container);color:var(--on-surface);font-weight:600}.room-card-sm h3{font-size:1.1rem;margin:16px 0 8px}.btn-join{width:100%;margin-top:16px;padding:12px;background:transparent;border-radius:var(--r-md);color:var(--primary);font-weight:600;transition:var(--fast);box-shadow:inset 0 0 0 1px rgba(189,200,209,.3)}.btn-join:hover{background:var(--primary);color:#fff;box-shadow:var(--sh-glow)}.form-group label{display:block;font-size:.9rem;font-weight:600;margin-bottom:8px;color:var(--on-surface-variant)}.form-group input,.form-group select{width:100%;background:var(--surface-container);padding:14px 16px;border-radius:var(--r-md);font-size:1rem;transition:var(--fast);box-shadow:inset 0 0 0 1px transparent}.form-group input:focus{background:var(--surface-container-lowest);box-shadow:inset 0 0 0 1px var(--primary),var(--sh-glow)}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(15,23,42,.5);backdrop-filter:blur(8px);display:none;justify-content:center;align-items:center;z-index:200}.modal-overlay.active{display:flex;animation:fadeIn .3s ease}.modal-box{background:var(--surface-container-low);width:480px;max-width:90%;border-radius:var(--r-xl);box-shadow:0 20px 60px rgba(0,0,0,.12),0 4px 16px rgba(0,0,0,.08);border:1px solid var(--outline-variant);overflow:hidden}.modal-header{padding:24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--outline-variant);opacity:.8}.modal-body{padding:24px}.modal-footer{padding:24px;display:flex;gap:16px;background:var(--surface-container-low)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes springSlideUp{0%{opacity:0;transform:translateY(40px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes springFadeIn{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}@keyframes springPop{0%{transform:scale(.8);opacity:0}60%{transform:scale(1.05);opacity:1}to{transform:scale(1)}}@keyframes glowPulse{0%,to{box-shadow:0 0 0 0 rgba(0,174,239,0)}50%{box-shadow:0 0 20px 4px rgba(0,174,239,.3)}}@keyframes staggerIn{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(100px);background:var(--surface-container-low);padding:14px 28px;border-radius:var(--r-full);box-shadow:0 8px 32px rgba(0,0,0,.12);border:1px solid var(--outline-variant);z-index:300;font-weight:600;transition:transform .4s cubic-bezier(.34,1.56,.64,1);display:flex;align-items:center;gap:12px}.toast.show{transform:translateX(-50%) translateY(0)}.toast.error{border-color:#EF4444;color:#EF4444}.skeleton{background:linear-gradient(90deg,var(--surface-container-low) 25%,var(--surface-container) 50%,var(--surface-container-low) 75%);background-size:200% 100%;animation:shimmer 1.5s ease-in-out infinite;border-radius:var(--r-md)}.skeleton-card{height:180px}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-text{height:14px;border-radius:var(--r-sm);margin-bottom:8px}.skeleton-text.sm{height:11px;width:60%}.skeleton-text.lg{height:20px}.skeleton-avatar{width:100px;height:100px}.skeleton-badge{height:26px;width:80px;border-radius:var(--r-full);display:inline-block}.empty-state{text-align:center;padding:48px 24px;color:var(--on-surface-variant)}.empty-icon{font-size:3rem;display:block;margin-bottom:12px}.bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;height:64px;background:var(--surface-container-low);border-top:1px solid var(--outline-variant);box-shadow:0 -4px 24px rgba(0,0,0,.12);z-index:200;flex-direction:row;align-items:stretch;justify-content:space-around;padding:0 4px}.bottom-nav-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:1;min-width:54px;min-height:44px;padding:6px 4px;color:var(--on-surface-variant);text-decoration:none;font-size:.6rem;font-weight:600;border:none;background:none;cursor:pointer;font-family:inherit;transition:color .25s ease;position:relative}.bottom-nav-item:after{content:"";position:absolute;top:0;left:20%;right:20%;height:2px;background:var(--primary);border-radius:0 0 var(--r-sm) var(--r-sm);transform:scaleX(0);transition:transform .25s var(--spring-soft)}.bottom-nav-item.active{color:var(--primary)}.bottom-nav-item.active:after{transform:scaleX(1)}.bottom-nav-item svg{transition:transform .25s var(--spring)}.bottom-nav-item.active svg{transform:scale(1.15)}.bottom-nav-item:hover:not(.active){color:var(--on-surface)}@media (max-width:768px){:root{--hdr-h:60px}.bottom-nav{display:flex}.top-nav-links,.top-nav-user-name{display:none}.top-nav{padding:0 12px;gap:6px}.search-box{width:160px;padding:7px 10px}.search-box:focus-within{width:200px}.logo-sub{display:none}.page-header{padding:12px 16px 10px}.page-title{font-size:1.1rem}.page-subtitle{font-size:.75rem}.app-main,.main-area{padding-bottom:64px}.page-container{padding:14px 14px 80px}.rooms-grid-sm,.stats-row{grid-template-columns:1fr;gap:12px}.section-head{flex-direction:column;gap:8px;align-items:flex-start}.modal-box{width:95%;max-width:95%}.rooms-header.section-head{flex-direction:column;gap:12px}.rooms-actions,.rooms-tabs{display:flex;gap:8px;width:100%}.rooms-actions button,.rooms-tabs button{flex:1;font-size:.8rem;padding:10px}}@media (min-width:769px) and (max-width:1024px){.top-nav{padding:0 16px}.top-nav-link span{display:none}.top-nav-link{padding:8px}.search-box{width:200px}.page-container{padding:20px}.rooms-grid-sm,.stats-row{grid-template-columns:repeat(2,1fr)}}@media (min-width:1440px){.top-nav{padding:0 48px}.page-container{padding:40px 48px}}.file-preview-container{padding:12px 24px;display:flex;flex-wrap:wrap;gap:12px;width:100%;max-width:800px;margin:0 auto}.file-preview-item{background:var(--surface-container-highest);border-radius:var(--r-md);padding:8px 12px;display:flex;align-items:center;gap:8px;font-size:.85rem;box-shadow:var(--sh-ambient);border:1px solid var(--outline-variant);position:relative;max-width:200px}.file-preview-item img{width:32px;height:32px;border-radius:4px;-o-object-fit:cover;object-fit:cover}.file-preview-remove{cursor:pointer;color:var(--tertiary);font-weight:700;font-size:1.2rem;line-height:1}.attach-btn{width:36px;height:36px;border-radius:var(--r-md);background:var(--surface-container);color:var(--on-surface-variant);display:flex;align-items:center;justify-content:center;transition:var(--fast);cursor:pointer;flex-shrink:0}.attach-btn:hover{background:var(--surface-container-highest);color:var(--primary)}*{-webkit-tap-highlight-color:transparent}button,input,select,textarea{-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (hover:none) and (pointer:coarse){.btn-glass,.btn-join,.btn-primary,.icon-btn,.nav-item{min-height:44px}.icon-btn{min-width:44px}}.btn-glass,.btn-primary,.chat-sidebar-btn,.prompt-card,.send-btn{transition:transform .3s var(--spring),box-shadow .3s ease,background .2s ease}.btn-glass:active,.btn-primary:active,.chat-sidebar-btn:active,.send-btn:active{transform:scale(.95)}.btn-primary:hover,.send-btn:hover{box-shadow:0 0 24px rgba(0,174,239,.35)}.modal-overlay.active .modal-box{animation:springSlideUp .5s var(--spring) forwards}.stagger-in>*{animation:staggerIn .4s var(--spring-soft) both}.stagger-in>:first-child{animation-delay:0s}.stagger-in>:nth-child(2){animation-delay:60ms}.stagger-in>:nth-child(3){animation-delay:.12s}.stagger-in>:nth-child(4){animation-delay:.18s}.stagger-in>:nth-child(5){animation-delay:.24s}.stagger-in>:nth-child(6){animation-delay:.3s}.stagger-in>:nth-child(7){animation-delay:.36s}.stagger-in>:nth-child(8){animation-delay:.42s}.chat-bubble-animate{animation:springSlideUp .45s var(--spring-soft) both}.chat-content code,.chat-content pre,.code-block-header,.sandbox-terminal,:lang(en),[lang=en]{font-family:var(--font-english)}.badge-count,.num,.stat-number,.timer{font-family:var(--font-english);font-variant-numeric:tabular-nums}.chat-content{line-height:1.85;letter-spacing:.01em}h1{letter-spacing:-.025em}h2{letter-spacing:-.02em}h3{letter-spacing:-.015em}.chat-content h1,.chat-content h2,.chat-content h3,.chat-content h4,.chat-content h5,.chat-content h6{margin:1.2em 0 .6em;line-height:1.4;color:var(--on-surface)}.chat-content h1{font-size:1.5em;font-weight:700}.chat-content h2{font-size:1.3em;font-weight:700}.chat-content h3{font-size:1.15em;font-weight:600}.chat-content h4{font-size:1.05em;font-weight:600}.chat-content p{margin:.6em 0}.chat-content ol,.chat-content ul{margin:.6em 0;padding-right:1.5em}.chat-content li{margin:.3em 0;line-height:1.75}.chat-content li::marker{color:var(--primary)}.chat-content strong{font-weight:700;color:var(--on-surface)}.chat-content em{font-style:italic}.chat-content a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}.chat-content a:hover{color:var(--primary-container)}.chat-content blockquote{border-right:3px solid var(--primary);padding:.5em 1em;margin:.8em 0;background:var(--surface-container);border-radius:0 var(--r-md) var(--r-md) 0;color:var(--on-surface-variant)}.chat-content hr{border:none;height:1px;background:var(--outline-variant);margin:1.5em 0}.chat-content table{width:100%;border-collapse:collapse;margin:1em 0;font-size:.92em}.chat-content td,.chat-content th{padding:10px 14px;border:1px solid var(--outline-variant);text-align:right}.chat-content th{background:var(--surface-container);font-weight:600}.chat-content tr:nth-child(2n){background:var(--surface-container-low)}.chat-content code:not(pre code){font-family:var(--font-mono);font-size:.88em;background:var(--surface-container);padding:2px 8px;border-radius:6px;color:var(--primary);border:1px solid var(--outline-variant);direction:ltr;unicode-bidi:embed}.code-block-wrapper{margin:1em 0;border-radius:var(--r-lg);overflow:hidden;background:#1e1e2e;box-shadow:0 8px 32px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.06);animation:springFadeIn .4s var(--spring-soft) both}.code-block-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:#181825;border-bottom:1px solid rgba(255,255,255,.06);font-size:.82rem;color:#a6adc8;font-family:var(--font-english)}.code-block-lang{text-transform:uppercase;font-weight:600;letter-spacing:.05em;font-size:.75rem}.code-block-actions{display:flex;gap:8px;align-items:center}.code-action-btn{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:6px;font-size:.78rem;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid rgba(255,255,255,.1);color:#cdd6f4;background:rgba(255,255,255,.05);font-family:var(--font-english)}.code-action-btn:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}.code-action-btn.copied{color:#a6e3a1;border-color:rgba(166,227,161,.3)}.run-code-btn{background:rgba(166,227,161,.1)!important;color:#a6e3a1!important;border-color:rgba(166,227,161,.25)!important;font-weight:600}.run-code-btn:hover{background:rgba(166,227,161,.2)!important;border-color:rgba(166,227,161,.4)!important;box-shadow:0 0 16px rgba(166,227,161,.15)}.code-block-body{overflow-x:auto;padding:0}.code-block-body pre{margin:0;padding:16px 20px;font-family:var(--font-mono);font-size:.88rem;line-height:1.7;direction:ltr;text-align:left;color:#cdd6f4;-moz-tab-size:4;-o-tab-size:4;tab-size:4;white-space:pre}.sandbox-terminal{margin:0;background:#11111b;border-top:1px solid rgba(255,255,255,.06);animation:springFadeIn .35s var(--spring-soft) both}.terminal-header{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#0d0d15;font-size:.78rem;font-family:var(--font-english);color:#6c7086}.terminal-header:before{content:"";display:inline-flex;gap:6px}.terminal-dots{display:inline-flex;gap:5px;margin-left:8px}.terminal-dots span{width:8px;height:8px;border-radius:50%}.terminal-dots span:first-child{background:#f38ba8}.terminal-dots span:nth-child(2){background:#f9e2af}.terminal-dots span:nth-child(3){background:#a6e3a1}.terminal-body{padding:12px 20px;font-family:var(--font-mono);font-size:.84rem;line-height:1.65;direction:ltr;text-align:left;max-height:300px;overflow-y:auto;color:#cdd6f4}.terminal-line{margin:2px 0;display:block}.terminal-line.log{color:#cdd6f4}.terminal-line.warn{color:#f9e2af}.terminal-line.error{color:#f38ba8}.terminal-line.result{color:#a6e3a1}.terminal-line:before{content:"› ";color:#585b70}.terminal-line.error:before{content:"✕ ";color:#f38ba8}.terminal-line.warn:before{content:"⚠ ";color:#f9e2af}.terminal-line.result:before{content:"← ";color:#a6e3a1}.chat-content .katex-display{margin:1em 0;padding:16px;background:var(--surface-container);border-radius:var(--r-md);overflow-x:auto;direction:ltr}.chat-content .katex{font-size:1.08em;direction:ltr;unicode-bidi:embed}.chat-content .katex-display>.katex{font-size:1.15em}:root{--bg-color:#F8F9FA;--primary:#33704a;--accent-purple:#5c9e62;--sidebar-w:286px;--sidebar-mini-w:80px;--mobile-nav-h:74px;--fluid-100:clamp(0.74rem,1.2vw,0.82rem);--fluid-200:clamp(0.86rem,1.5vw,0.98rem);--fluid-300:clamp(1rem,1.9vw,1.2rem);--fluid-400:clamp(1.2rem,2.6vw,1.55rem)}.app-shell{display:flex;min-height:100vh;width:100%;overflow:hidden}app-sidebar{display:block;flex-shrink:0}.smart-sidebar{width:var(--sidebar-w);height:100vh;display:flex;flex-direction:column;background:var(--surface-container-low);border-left:1px solid var(--outline-variant);transition:width var(--normal);position:sticky;top:0;z-index:80}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:18px 14px;border-bottom:1px solid var(--outline-variant)}.sidebar-brand{gap:10px;min-height:44px}.brand-mark,.sidebar-brand{display:inline-flex;align-items:center}.brand-mark{width:36px;height:36px;border-radius:10px;justify-content:center;background:linear-gradient(135deg,#5c9e62,#5A47CC);font-size:.78rem}.brand-text{font-size:1.02rem;font-weight:800;letter-spacing:-.02em;direction:ltr;display:inline-block}.sidebar-icon-btn{width:44px;height:44px;border-radius:12px;border:1px solid var(--outline-variant);background:var(--surface-container);color:var(--on-surface-variant);display:inline-flex;align-items:center;justify-content:center;transition:all var(--fast)}.sidebar-icon-btn:hover{color:var(--accent-purple);border-color:rgba(92,158,98,.35)}.sidebar-user{margin:12px 12px 8px;padding:10px;border-radius:14px;background:var(--surface-container);display:flex;align-items:center;gap:10px;min-height:56px}.sidebar-user-avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#5c9e62,#5A47CC);color:#fff;font-weight:700;flex-shrink:0;overflow:hidden}.sidebar-user-name{font-size:.84rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px}.sidebar-scroll{flex:1;overflow-y:auto;padding:6px 10px 10px;display:flex;flex-direction:column;gap:6px}.sidebar-group{border:1px solid transparent;border-radius:12px}.sidebar-group-toggle{width:100%;min-height:44px;padding:10px 12px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;color:var(--on-surface);font-weight:700;font-size:.86rem;transition:all var(--fast)}.sidebar-group-toggle:hover{background:var(--surface-container)}.group-title-wrap{display:inline-flex;align-items:center;gap:8px}.group-emoji{font-size:1rem;line-height:1}.group-chevron{transition:transform var(--fast);color:var(--on-surface-variant);font-size:.9rem}.sidebar-group.open .group-chevron{transform:rotate(180deg)}.sidebar-links{max-height:0;overflow:hidden;transition:max-height var(--normal);display:flex;flex-direction:column;gap:2px}.sidebar-group.open .sidebar-links{max-height:340px}.sidebar-link{min-height:44px;display:inline-flex;gap:10px;padding:9px 12px;border-radius:10px;color:var(--on-surface-variant);font-size:.84rem;font-weight:600;transition:all var(--fast);text-align:right}.sidebar-link:hover{background:var(--surface-container);color:var(--on-surface)}.sidebar-link.active{background:rgba(92,158,98,.15);color:var(--accent-purple);border:1px solid rgba(92,158,98,.24)}.link-ic{width:22px;display:inline-flex;justify-content:center;flex-shrink:0;font-size:.95rem}.link-label{white-space:nowrap}.plain-btn{border:0;background:transparent;cursor:pointer;font-family:inherit}.zanqa-sticky{margin-top:4px;min-height:48px;border-radius:12px;padding:11px 12px;display:inline-flex;align-items:center;gap:10px;background:linear-gradient(135deg,rgba(154,139,82,.14),rgba(251,146,60,.22));border:1px solid rgba(154,139,82,.28);color:#b45309;font-weight:800;transition:transform var(--fast),box-shadow var(--fast)}.zanqa-sticky:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(154,139,82,.2)}.zanqa-sticky.active{background:linear-gradient(135deg,#9a8b52,#fb923c);color:#fff}.leaderboard-sticky{min-height:46px;border-radius:12px;padding:10px 12px;display:inline-flex;align-items:center;gap:10px;background:var(--surface-container);border:1px solid var(--outline-variant);color:var(--on-surface);font-weight:700;transition:all var(--fast)}.leaderboard-sticky:hover{border-color:rgba(92,158,98,.3);color:var(--accent-purple)}.leaderboard-sticky.active{background:rgba(92,158,98,.15);border-color:rgba(92,158,98,.24);color:var(--accent-purple)}.leaderboard-ic{width:22px;display:inline-flex;justify-content:center;flex-shrink:0}.sidebar-bottom-tools{border-top:1px solid var(--outline-variant);padding:10px;display:grid;gap:6px;background:var(--surface-container-low);position:sticky;bottom:0}.sidebar-link.danger{color:#ef4444}.sidebar-link.danger:hover{background:rgba(239,68,68,.1)}.smart-sidebar.mini{width:var(--sidebar-mini-w)}.smart-sidebar.mini .brand-text,.smart-sidebar.mini .group-chevron,.smart-sidebar.mini .group-title,.smart-sidebar.mini .leaderboard-label,.smart-sidebar.mini .link-label,.smart-sidebar.mini .sidebar-user-meta,.smart-sidebar.mini .zanqa-label{opacity:0;width:0;overflow:hidden}.smart-sidebar.mini .leaderboard-sticky,.smart-sidebar.mini .sidebar-group-toggle,.smart-sidebar.mini .sidebar-link,.smart-sidebar.mini .zanqa-sticky{justify-content:center;padding-inline:10px}.smart-sidebar.mini:hover{width:var(--sidebar-w)}.smart-sidebar.mini:hover .brand-text,.smart-sidebar.mini:hover .group-chevron,.smart-sidebar.mini:hover .group-title,.smart-sidebar.mini:hover .leaderboard-label,.smart-sidebar.mini:hover .link-label,.smart-sidebar.mini:hover .sidebar-user-meta,.smart-sidebar.mini:hover .zanqa-label{opacity:1;width:auto}.app-main,.main-area{flex:1;min-width:0;display:flex;flex-direction:column;width:100%}.page-header{padding:18px 20px 10px;background:var(--surface-container-low);border-bottom:1px solid var(--outline-variant)}.page-header-bar{display:flex;align-items:center;gap:16px}.page-header-copy{min-width:0;flex:1;text-align:center}.mobile-logo-text,.page-header-mobile-btn{display:none}.page-title{font-size:var(--fluid-400);font-weight:800;letter-spacing:-.02em}.page-subtitle{margin-top:4px;font-size:var(--fluid-100);color:var(--on-surface-variant)}.page-container{width:100%;max-width:1200px;margin:0 auto;padding:clamp(16px,3vw,24px);overflow-y:auto}.mobile-app-nav,.mobile-menu-overlay{display:none}@media (max-width:767px){.app-shell{flex-direction:column}.smart-sidebar{display:none}.mobile-app-nav{position:fixed;bottom:16px;right:16px;left:16px;height:64px;direction:ltr;background:rgba(255,255,255,.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(0,0,0,.08);border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.06);z-index:9999;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:center;gap:2px;padding:4px 8px}body.mobile-menu-open .mobile-app-nav{display:none!important}@keyframes shimmer{to{transform:translateX(100%)}}.animate-shimmer{animation:shimmer 1.8s infinite}.dark-mode .mobile-app-nav{background:rgba(15,23,42,.85);border:1px solid rgba(255,255,255,.08);box-shadow:0 10px 35px rgba(0,0,0,.3)}.mobile-app-item{direction:rtl;min-height:48px;min-width:40px;display:inline-flex;flex-direction:column;gap:3px;color:var(--on-surface-variant);font-size:.65rem;font-weight:700;border-radius:16px;transition:all var(--fast);border:none;background:transparent;font-family:inherit;text-decoration:none}.mobile-app-icon,.mobile-app-item{align-items:center;justify-content:center}.mobile-app-icon{font-size:1.1rem;line-height:1;display:flex;width:20px;height:20px}.mobile-app-label{font-size:.62rem;font-weight:700;line-height:1.2;white-space:nowrap}.mobile-app-item.active{color:var(--primary);background:rgba(45,97,66,.08)}.dark-mode .mobile-app-item.active{color:var(--primary);background:rgba(129,140,248,.15)}.mobile-app-item-home{transform:translateY(-10px);box-shadow:0 16px 30px rgba(90,50,250,.3)}.mobile-app-item-home,.mobile-app-item-home.active{background:linear-gradient(135deg,var(--primary),var(--accent-purple));color:#ffffff}.mobile-app-item-home .mobile-app-icon{width:34px;height:34px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.16)}.mobile-app-item:active{transform:scale(.94);opacity:.85}.mobile-app-item-home:active{transform:translateY(-10px) scale(.94)}.app-main,.main-area{padding-bottom:var(--mobile-nav-h)}.page-container{max-width:100%;padding:clamp(16px,4vw,24px) clamp(16px,4vw,24px) calc(100px + env(safe-area-inset-bottom))}.page-header{position:sticky;top:0;z-index:9997;padding:8px 14px;background:var(--surface-container-low);border-bottom:1px solid var(--outline-variant);box-shadow:0 2px 12px rgba(15,23,42,.07)}.page-header-bar{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"menu logo profile";gap:10px;align-items:center}.page-header-menu-trigger{grid-area:menu;justify-self:start;display:inline-flex!important}.page-header-copy{grid-area:logo;text-align:center;display:flex;align-items:center;justify-content:center}.page-header-copy .page-subtitle,.page-header-copy .page-title{display:none!important}.mobile-logo-text{display:flex!important;align-items:center;justify-content:center;gap:6px;line-height:1.1}.topbar-user-block{display:none}.page-header-profile-trigger{grid-area:profile;justify-self:end;display:inline-flex!important}.page-header-mobile-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:16px;background:var(--surface-container);color:var(--on-surface);border:1px solid var(--outline-variant);box-shadow:0 8px 20px rgba(15,23,42,.08);font-size:1rem}.page-title{font-size:clamp(1rem,4.4vw,1.18rem);line-height:1.2}.page-subtitle{margin-top:3px;font-size:clamp(.7rem,2.9vw,.78rem);line-height:1.5}.mobile-menu-overlay{position:fixed;inset:0;display:block;z-index:9998;pointer-events:none;background:rgba(2,6,23,0);transition:background var(--normal)}.mobile-menu-sheet{position:absolute;right:0;left:0;bottom:0;height:auto;max-height:90vh;background:var(--surface-container-lowest);border-radius:32px 32px 0 0;border-top:1px solid var(--outline-variant);transform:translateY(105%);transition:transform var(--normal);padding:20px 20px calc(24px + env(safe-area-inset-bottom));overflow-y:auto;box-shadow:0 -10px 45px rgba(0,0,0,.2)}.mobile-menu-overlay.open{pointer-events:auto;background:rgba(2,6,23,.48)}.mobile-menu-overlay.open .mobile-menu-sheet{transform:translateY(0)}.mobile-sheet-handle{display:none}.mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;border-bottom:1px solid var(--outline-variant);padding-bottom:10px}.mobile-sheet-head h3{font-size:1rem;font-weight:800;color:var(--on-surface)}.mobile-sheet-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:4px 0}.mobile-sheet-grid-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;border-radius:16px;padding:12px;color:var(--on-surface);background:var(--surface-container);border:1px solid var(--outline-variant);transition:all var(--fast);text-align:center;text-decoration:none;cursor:pointer}.mobile-sheet-grid-item:active,.mobile-sheet-grid-item:hover{border-color:var(--primary);background:rgba(45,97,66,.05);transform:translateY(-2px)}.dark-mode .mobile-sheet-grid-item:active,.dark-mode .mobile-sheet-grid-item:hover{background:rgba(129,140,248,.1);border-color:var(--primary)}.mobile-sheet-grid-item.danger{color:#ef4444;border-color:rgba(239,68,68,.15)}.mobile-sheet-grid-item.danger:hover{background:rgba(239,68,68,.06);border-color:#ef4444}.grid-item-ic{display:flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:1.25rem;color:var(--primary)}.grid-item-label{font-size:.72rem;font-weight:700;line-height:1.2;color:var(--on-surface)}body.mobile-menu-open{overflow:hidden;touch-action:none}}@media (min-width:768px){.app-shell{flex-direction:row}.mobile-app-nav,.mobile-menu-overlay{display:none!important}}.top-navigation-tabs{justify-content:center;flex:1;margin:0 24px}.top-nav-tab,.top-navigation-tabs{display:flex;align-items:center;gap:8px}.top-nav-tab{padding:8px 16px;border-radius:12px;color:var(--on-surface-variant);font-size:.85rem;font-weight:700;transition:all var(--fast);text-decoration:none;position:relative}.top-nav-tab:hover{background:var(--surface-container);color:var(--on-surface)}.top-nav-tab.active{color:var(--accent-purple);background:rgba(92,158,98,.12)}.top-nav-tab.active:after{content:"";position:absolute;bottom:-6px;left:12%;right:12%;height:3px;background:var(--accent-purple);border-radius:3px}.tab-icon{font-size:1.1rem;display:inline-flex;align-items:center;justify-content:center}@media (max-width:992px){.top-nav-tab .tab-label{display:none}.top-nav-tab{padding:10px;border-radius:50%}.top-nav-tab.active:after{bottom:-2px}}@media (min-width:768px){#sidebarCollapseBtn{display:none!important}.page-header-copy{flex:0 0 auto!important;text-align:right!important}.top-navigation-tabs{flex:1!important;display:flex!important;justify-content:center!important}}@media (max-width:767px){.top-navigation-tabs{display:none!important}}.smart-sidebar{background:rgba(20,20,25,.72)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:width .35s cubic-bezier(.4,0,.2,1),transform .35s cubic-bezier(.4,0,.2,1),background-color .3s ease;border-left:1px solid rgba(255,255,255,.08)!important}.light-mode .smart-sidebar{background:rgba(248,246,240,.8)!important;border-left:1px solid rgba(0,0,0,.06)!important}.smart-sidebar.collapsed{width:0!important;min-width:0!important;border-left:0!important;transform:translateX(100%)}.smart-sidebar.collapsed .sidebar-head .sidebar-brand,.smart-sidebar.collapsed .sidebar-scroll,.smart-sidebar.collapsed .sidebar-user{opacity:0!important;pointer-events:none!important;transition:opacity .15s ease}.smart-sidebar.collapsed #sidebarCollapseBtn{position:fixed!important;right:16px!important;top:18px!important;z-index:1100!important;border-radius:50%!important;box-shadow:0 4px 14px rgba(0,0,0,.25)!important;background:var(--surface-container-high,#272730)!important;border:1px solid rgba(92,158,98,.3)!important}.light-mode .smart-sidebar.collapsed #sidebarCollapseBtn{background:#ffffff!important;box-shadow:0 4px 14px rgba(0,0,0,.1)!important}.smart-sidebar.collapsed #sidebarCollapseBtn svg{transform:rotate(180deg)!important}.sidebar-bottom-tools{position:relative}.sidebar-settings-popup{position:absolute;bottom:calc(100% + 8px);right:12px;left:12px;background:var(--surface-container-high,#212129);border:1px solid var(--outline-variant,rgba(255,255,255,.08));border-radius:14px;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,.35);z-index:100;display:flex;flex-direction:column;gap:4px;animation:popupFadeIn .2s cubic-bezier(.16,1,.3,1)}.light-mode .sidebar-settings-popup{background:#ffffff;border:1px solid rgba(0,0,0,.08);box-shadow:0 8px 24px rgba(0,0,0,.08)}@keyframes popupFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.settings-popup-item{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:10px;color:var(--on-surface-variant);font-size:.85rem;font-weight:600;transition:all .2s ease;text-align:right;background:transparent;border:0;cursor:pointer}.settings-popup-item:hover{background:var(--surface-container-highest,rgba(255,255,255,.05));color:var(--on-surface)}.light-mode .settings-popup-item:hover{background:rgba(0,0,0,.03)}.settings-popup-divider{height:1px;background:var(--outline-variant,rgba(255,255,255,.08));margin:4px 8px}.light-mode .settings-popup-divider{background:rgba(0,0,0,.06)}.settings-popup-theme{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:.85rem;font-weight:600;color:var(--on-surface-variant)}.theme-switcher-pill{display:flex;background:var(--surface-container-highest,rgba(0,0,0,.2));border-radius:30px;padding:3px;gap:2px}.light-mode .theme-switcher-pill{background:rgba(0,0,0,.05)}.theme-pill-btn{width:32px;height:26px;border-radius:30px;border:0;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.9rem;transition:all .2s ease}.theme-pill-btn.active{background:var(--accent-purple,#5c9e62)!important;color:#ffffff!important;box-shadow:0 2px 6px rgba(92,158,98,.3)!important}.profile-drawer-backdrop{position:fixed;inset:0;background:#000;z-index:2000}.profile-drawer-container{position:fixed;top:0;bottom:0;right:0;width:100%;max-width:460px;background:var(--surface-container-low,#18181f);border-left:1px solid var(--outline-variant,rgba(255,255,255,.08));box-shadow:-8px 0 32px rgba(0,0,0,.45);z-index:2100;display:flex;flex-direction:column;font-family:Cairo,system-ui,-apple-system,sans-serif}.light-mode .profile-drawer-container{background:#ffffff;border-left:1px solid rgba(0,0,0,.08);box-shadow:-8px 0 32px rgba(0,0,0,.08)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--outline-variant,rgba(255,255,255,.08))}.light-mode .drawer-header{border-bottom:1px solid rgba(0,0,0,.06)}.drawer-title{font-size:1.15rem;font-weight:700;color:var(--on-surface)}.drawer-close-btn{width:36px;height:36px;border-radius:50%;border:0;background:var(--surface-container-highest,rgba(255,255,255,.05));color:var(--on-surface-variant);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1rem;transition:all .2s ease}.drawer-close-btn:hover{background:rgba(239,68,68,.15);color:#ef4444}.drawer-scroll-body{flex:1;overflow-y:auto;padding:24px}.drawer-avatar-section{display:flex;flex-direction:column;align-items:center;margin-bottom:30px}.drawer-avatar-wrapper{position:relative;width:120px;height:120px;border-radius:50%;overflow:hidden;cursor:pointer;border:3px solid var(--accent-purple,#5c9e62);box-shadow:0 4px 12px rgba(0,0,0,.2)}.drawer-avatar-img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.drawer-avatar-fallback{width:100%;height:100%;background:linear-gradient(135deg,#5c9e62,#5c9e62);font-size:3rem;font-weight:700}.drawer-avatar-fallback,.drawer-avatar-hover{color:#ffffff;display:flex;align-items:center;justify-content:center}.drawer-avatar-hover{position:absolute;inset:0;background:rgba(0,0,0,.4);opacity:0;transition:opacity .2s ease}.drawer-avatar-wrapper:hover .drawer-avatar-hover{opacity:1}.drawer-avatar-upload-btn{margin-top:12px;font-size:.8rem;font-weight:700;color:var(--accent-purple,#5c9e62);background:transparent;border:0;cursor:pointer;transition:opacity .2s ease}.drawer-avatar-upload-btn:hover{text-decoration:underline}.drawer-fields{gap:20px}.drawer-field,.drawer-fields{display:flex;flex-direction:column}.drawer-field{gap:6px}.drawer-field label{font-size:.8rem;font-weight:700;color:var(--on-surface-variant);text-align:right}.drawer-field input,.drawer-field textarea{width:100%;padding:12px 16px;border-radius:12px;border:1px solid var(--outline-variant,rgba(255,255,255,.08));background:var(--surface-container,#1e1e27);color:var(--on-surface);font-size:.88rem;font-family:inherit;transition:all .2s ease}.light-mode .drawer-field input,.light-mode .drawer-field textarea{background:#fdfcf7;border:1px solid rgba(0,0,0,.08)}.drawer-field input:focus,.drawer-field textarea:focus{outline:none;border-color:var(--accent-purple,#5c9e62);box-shadow:0 0 0 3px rgba(92,158,98,.15)}.char-counter{align-self:flex-end;font-size:.72rem;color:var(--on-surface-variant);font-weight:600}.drawer-status-alert{padding:12px;border-radius:10px;font-size:.8rem;font-weight:600;margin-top:10px;text-align:right}.drawer-status-alert.info{background:rgba(59,130,246,.15);color:#5c9e62}.drawer-status-alert.success{background:rgba(92,158,98,.15);color:#5c9e62}.drawer-status-alert.error{background:rgba(239,68,68,.15);color:#ef4444}.drawer-save-btn{width:100%;padding:14px;border-radius:12px;border:0;background:var(--accent-purple,#5c9e62);color:#ffffff;font-weight:700;font-size:.9rem;margin-top:30px;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px rgba(92,158,98,.2)}.drawer-save-btn:hover{background:#684be3}.drawer-save-btn:disabled{background:var(--surface-container-highest,rgba(255,255,255,.08));color:var(--on-surface-variant);cursor:not-allowed;box-shadow:none}.drawer-loading-skeleton{display:flex;flex-direction:column;align-items:center;gap:20px;animation:pulse 1.5s infinite}.skeleton-avatar{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.05)}.light-mode .skeleton-avatar{background:rgba(0,0,0,.05)}.skeleton-line{width:60%;height:16px;border-radius:4px;background:rgba(255,255,255,.05)}.light-mode .skeleton-line{background:rgba(0,0,0,.05)}.skeleton-input{width:100%;height:48px;border-radius:12px;background:rgba(255,255,255,.05)}.light-mode .skeleton-input{background:rgba(0,0,0,.05)}@media (max-width:767px){.smart-sidebar{position:fixed!important;top:0;bottom:0;right:0;width:280px!important;transform:translateX(100%);z-index:1000!important;box-shadow:-4px 0 20px rgba(0,0,0,.25)}.mobile-menu-open .smart-sidebar{transform:translateX(0)!important}}.menu-trigger-btn{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;border:1px solid var(--outline-variant);background:var(--surface-container-low);color:var(--on-surface-variant);cursor:pointer;transition:all var(--fast)}.menu-trigger-btn:hover{color:var(--primary);border-color:rgba(45,97,66,.35)}@media (min-width:768px){.smart-sidebar{display:none!important;width:0!important}.smart-sidebar.open{display:flex!important;width:var(--nav-w)!important}}.smart-sidebar{background:#ffffff!important;border-left:1px solid var(--outline-variant)!important;box-shadow:var(--sh-ambient)!important}.dark .smart-sidebar,.dark-mode .smart-sidebar{background:#0f172a!important;border-left:1px solid rgba(255,255,255,.08)!important}.sidebar-link{justify-content:flex-start!important;text-align:right!important;width:100%!important}.dark .smart-sidebar .sidebar-link,.dark-mode .smart-sidebar .sidebar-link,.smart-sidebar .sidebar-link{color:#f8fafc!important}.dark .smart-sidebar .sidebar-link .link-ic,.dark .smart-sidebar .sidebar-link svg,.dark-mode .smart-sidebar .sidebar-link .link-ic,.dark-mode .smart-sidebar .sidebar-link svg,.smart-sidebar .sidebar-link .link-ic,.smart-sidebar .sidebar-link svg{color:#f8fafc!important;stroke:#f8fafc!important}.smart-sidebar .sidebar-link:hover{background:rgba(255,255,255,.08)!important;color:#ffffff!important}.smart-sidebar .sidebar-link.active{background:linear-gradient(135deg,rgba(92,158,98,.25),rgba(139,92,246,.25))!important;color:#ffffff!important;border:1px solid rgba(165,180,252,.4)!important;box-shadow:0 4px 14px rgba(92,158,98,.2)!important}.smart-sidebar .sidebar-link.active .link-ic,.smart-sidebar .sidebar-link.active svg{color:#a5b4fc!important;stroke:#a5b4fc!important}.sidebar-user{justify-content:flex-start!important}.sidebar-user,.sidebar-user-name{color:#f8fafc!important}.light-mode .smart-sidebar .link-label,.light-mode .smart-sidebar .sidebar-link{color:#0f172a!important}.light-mode .smart-sidebar .sidebar-link .link-ic,.light-mode .smart-sidebar .sidebar-link svg{color:#1e293b!important;stroke:#1e293b!important}.light-mode .smart-sidebar .sidebar-link:hover{background:rgba(0,0,0,.06)!important;color:#020617!important}.light-mode .smart-sidebar .sidebar-link.active{background:linear-gradient(135deg,rgba(92,158,98,.12),rgba(139,92,246,.12))!important;color:#33704a!important;border:1px solid rgba(92,158,98,.3)!important}.light-mode .smart-sidebar .sidebar-link.active .link-ic,.light-mode .smart-sidebar .sidebar-link.active svg{color:#33704a!important;stroke:#33704a!important}.light-mode .sidebar-user,.light-mode .sidebar-user-name{color:#0f172a!important}body,html{min-height:100vh;min-height:100dvh;width:100%}.app-layout,.app-shell{height:100vh;height:100dvh;width:100%;overflow:hidden}@supports (padding-bottom:env(safe-area-inset-bottom)){.bottom-nav,.mobile-app-nav{padding-bottom:max(env(safe-area-inset-bottom),6px)}}.full-viewport-app{height:100vh;height:100dvh;width:100%;display:flex;flex-direction:column;overflow:hidden}.custom-scrollbar{-webkit-overflow-scrolling:touch;scroll-behavior:smooth}@media (max-width:1024px){input[type=email],input[type=number],input[type=password],input[type=text],select,textarea{font-size:16px!important}}:root{--bg-main:#F4F5F9;--card-bg:#FFFFFF;--primary-purple:#33704a;--accent-fire:#b42318;--text-main:#1A1A24;--text-muted:#6E6E80;--line-soft:#E7E8F1;--kpi-1:#EEF6FF;--kpi-2:#F1EEFF;--kpi-3:#FFF0F0;--kpi-4:#EEFDF4;--radius-lg:clamp(14px,1.8vw,20px);--radius-md:clamp(10px,1.3vw,14px);--shadow-soft:0 10px 28px rgba(20,23,31,0.06);--shadow-nav:0 -4px 20px rgba(0,0,0,0.06);--space-1:clamp(8px,1.2vw,12px);--space-2:clamp(12px,1.8vw,16px);--space-3:clamp(16px,2.3vw,24px);--space-4:clamp(20px,3vw,32px);--text-sm:clamp(0.78rem,1.8vw,0.9rem);--text-md:clamp(0.9rem,2vw,1rem);--text-lg:clamp(1.05rem,2.6vw,1.25rem);--text-xl:clamp(1.25rem,4.2vw,1.9rem);--icon-touch:48px;--bottom-nav-height:78px;--mobile-header-height:60px;--sidebar-width-collapsed:80px;--sidebar-width-expanded:270px}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:radial-gradient(circle at 5% 0,#ffffff 0,#f4f5f9 35%,#eef0f7 100%);color:var(--text-main);font-family:Cairo,sans-serif;direction:rtl;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}a{color:inherit;text-decoration:none}.app{min-height:100vh;display:grid;grid-template-columns:1fr}.desktop-sidebar{display:none;position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#ffffff,#f7f8fd);border-inline-start:1px solid var(--line-soft);border-inline-end:1px solid var(--line-soft);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);width:var(--sidebar-width-collapsed);transition:width .26s ease;overflow:hidden;z-index:20}.desktop-sidebar.is-open,.desktop-sidebar:hover{width:var(--sidebar-width-expanded)}.brand{display:flex;align-items:center;gap:var(--space-1);padding:var(--space-3);border-bottom:1px solid var(--line-soft)}.brand-mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(145deg,#33704a,#5c9e62);display:grid;place-items:center;color:#fff;font-weight:800;font-size:1.1rem;flex-shrink:0}.brand-text{opacity:0;transition:opacity .2s ease;white-space:nowrap;font-family:Changa,sans-serif;font-size:1rem;font-weight:700}.desktop-sidebar.is-open .brand-text,.desktop-sidebar:hover .brand-text{opacity:1}.sidebar-toggle{margin-inline-start:auto;border:0;background:#f1f2f8;color:var(--text-main);width:34px;height:34px;border-radius:10px;cursor:pointer;font-size:1rem}.sidebar-nav{padding:var(--space-2);display:grid;gap:8px}.sidebar-link{display:flex;align-items:center;gap:12px;border:0;width:100%;min-height:46px;background:transparent;border-radius:12px;color:var(--text-main);cursor:pointer;padding:0 10px;font:inherit;text-align:start}.sidebar-link .label{opacity:0;transition:opacity .2s ease;white-space:nowrap;font-size:var(--text-sm);font-weight:700}.desktop-sidebar.is-open .sidebar-link .label,.desktop-sidebar:hover .sidebar-link .label{opacity:1}.sidebar-link.active,.sidebar-link:hover{background:#f1eeff;color:var(--primary-purple)}.mobile-top-header{position:fixed;top:0;inset-inline:0;width:100%;height:var(--mobile-header-height);z-index:9999;background:var(--card-bg);box-shadow:0 2px 10px rgba(0,0,0,.05);display:flex;justify-content:space-between;align-items:center;padding:0 16px}.header-menu-btn{width:40px;height:40px;border:0;border-radius:12px;background:#f6f7fb;color:var(--text-main);font-size:1.25rem;cursor:pointer}.header-title{margin:0;font-size:clamp(.9rem,2.4vw,1rem);font-weight:800;color:var(--text-muted)}.header-avatar{width:36px;height:36px;border-radius:50%;-o-object-fit:cover;object-fit:cover;border:2px solid #eceef6}.workspace-wrap{width:100%}.workspace{max-width:1100px;margin:0 auto;padding-inline:clamp(16px,4vw,24px);display:grid;gap:var(--space-3);grid-template-columns:1fr}.mobile-safe{padding-top:80px;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.main-column,.quick-column{display:grid;gap:var(--space-3);align-content:start}.card{background:var(--card-bg);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);border:1px solid #eceef6}.section-title{margin:0;font-size:var(--text-lg);font-family:Changa,sans-serif}.welcome{padding:var(--space-3);display:grid;gap:6px;background:linear-gradient(140deg,#ffffff,#f6f3ff)}.welcome h1{margin:0;font-size:var(--text-xl);line-height:1.25}.welcome p{margin:0;color:var(--text-muted);font-size:var(--text-md)}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:var(--space-2)}.kpi-item{border-radius:var(--radius-md);padding:var(--space-2);display:grid;gap:6px;min-height:106px}.kpi-item:first-child{background:var(--kpi-1)}.kpi-item:nth-child(2){background:var(--kpi-2)}.kpi-item:nth-child(3){background:var(--kpi-3)}.kpi-item:nth-child(4){background:var(--kpi-4)}.kpi-top{display:flex;align-items:center;justify-content:space-between;color:var(--text-muted);font-size:var(--text-sm);font-weight:700}.kpi-value{font-size:clamp(1.05rem,3.3vw,1.45rem);font-weight:800}.quick-card{padding:var(--space-3);display:grid;gap:10px}.quick-list{display:grid;gap:8px}.quick-item{min-height:44px;border:1px solid var(--line-soft);border-radius:10px;background:#fff;padding:0 10px;display:flex;align-items:center;justify-content:space-between;font-size:var(--text-sm);font-weight:700}.study-plan{padding:var(--space-3);display:grid;gap:var(--space-2)}.study-plan-header{border-radius:var(--radius-md);background:linear-gradient(135deg,#fff8ef,#fff2e4);padding:var(--space-2);border:1px solid #ffe8cc}.study-plan-header h2{margin:0;font-size:var(--text-lg);font-family:Changa,sans-serif;color:#5f3b00}.study-plan-header p{margin:6px 0 0;color:#8f6a2a;font-size:var(--text-sm)}.question-list{display:grid;gap:var(--space-1)}.question-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line-soft);border-radius:14px;padding:12px}.question-num{width:34px;height:34px;border-radius:10px;background:#f0ebff;color:var(--primary-purple);display:grid;place-items:center;font-weight:800;flex-shrink:0}.question-label{font-size:var(--text-md);font-weight:700}.study-input-row,.task-add-row{display:grid;grid-template-columns:1fr auto;gap:8px}.field-input{min-height:48px;border:1px solid var(--line-soft);background:#fafbff;border-radius:12px;padding:0 12px;font:inherit;font-size:var(--text-sm);color:var(--text-main)}.field-input:focus{outline:2px solid rgba(90,50,250,.22);border-color:#d1c6ff}.btn-add-task,.btn-send{min-height:48px;border:0;border-radius:12px;font:inherit;font-size:var(--text-sm);font-weight:800;color:#fff;cursor:pointer}.btn-send{min-width:104px;background:linear-gradient(135deg,#ff8a3d,#ff6b32);box-shadow:0 10px 20px rgba(255,107,50,.28)}.btn-add-task{min-width:108px;background:var(--primary-purple)}.tasks{padding:var(--space-3);display:grid;gap:var(--space-2)}.day-strip,.routine-strip{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}.routine-pill{flex:0 0 auto;min-width:148px;border-radius:999px;border:1px solid #ffe2d0;background:#fff8f3;padding:10px 12px;font-size:var(--text-sm);font-weight:700;color:#7a3b07;white-space:nowrap}.day-chip{flex:0 0 auto;border:1px solid var(--line-soft);background:#fff;color:var(--text-main);border-radius:999px;min-height:40px;padding:0 14px;font:inherit;font-size:var(--text-sm);font-weight:700;cursor:pointer}.day-chip.is-active{background:var(--primary-purple);color:#fff;border-color:transparent}.task-group-title{margin:4px 2px;color:var(--text-muted);font-size:var(--text-sm);font-weight:700}.task-list{display:grid;gap:8px}.task-card{border:1px solid var(--line-soft);border-radius:12px;background:#fff;padding:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.task-checkbox{width:22px;height:22px;border-radius:7px;border:2px solid #c8cbe0;display:grid;place-items:center;font-size:.8rem;color:transparent;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;background:#fff}.task-card.is-complete .task-checkbox{border-color:#41b97b;background:#e8faef;color:#2ea368}.task-title{margin:0;font-size:var(--text-md);font-weight:700}.task-card.is-complete .task-title{text-decoration:line-through;opacity:.62}.task-deadline{font-size:.76rem;font-weight:700;color:#7f5972;background:#f8e9f2;border-radius:999px;padding:5px 10px}.task-actions{display:grid;gap:8px;margin-top:6px}.btn-soft,.btn-strong{min-height:48px;border-radius:12px;border:0;font:inherit;font-size:var(--text-sm);font-weight:800;cursor:pointer}.btn-soft{background:#ffeef0;color:#bc4054}.btn-strong{background:#f1eeff;color:var(--primary-purple)}.mobile-bottom-nav{position:fixed;inset-inline:0;bottom:0;width:100%;z-index:9999;background:var(--card-bg);box-shadow:var(--shadow-nav);border-top:1px solid #eceef6;padding:8px 8px calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,minmax(48px,1fr));gap:4px;min-height:var(--bottom-nav-height)}.nav-btn{min-height:var(--icon-touch);min-width:var(--icon-touch);border:0;border-radius:14px;background:transparent;color:var(--text-muted);display:grid;place-items:center;gap:4px;font:inherit;font-size:.68rem;font-weight:800;cursor:pointer;padding:6px 2px;text-align:center}.nav-btn .icon{font-size:1.15rem;line-height:1}.nav-btn.is-active{color:var(--primary-purple);background:#f3efff}.nav-btn-fire{color:#f15b1a;background:radial-gradient(circle at 50% 10%,#ffe8da 0,#fff4ed 65%,#fff 100%);box-shadow:inset 0 0 0 1px #ffd9c4}.bottom-sheet{position:fixed;inset:0;z-index:10000;pointer-events:none}.sheet-overlay{position:absolute;inset:0;background:rgba(12,12,18,.42);opacity:0;transition:opacity .24s ease}.sheet-panel{position:absolute;inset-inline:0;bottom:0;height:60vh;background:#fff;border-radius:18px 18px 0 0;transform:translateY(102%);transition:transform .26s ease;box-shadow:0 -14px 34px rgba(0,0,0,.16);padding:14px 16px calc(16px + env(safe-area-inset-bottom));display:grid;align-content:start;gap:10px;overflow-y:auto}.sheet-handle{width:54px;height:5px;border-radius:999px;background:#d9dce9;margin:2px auto 8px}.sheet-title{margin:0 0 4px;text-align:center;font-size:var(--text-lg);font-family:Changa,sans-serif}.sheet-link{min-height:52px;border:1px solid var(--line-soft);border-radius:12px;background:#fff;font:inherit;font-size:var(--text-md);font-weight:700;text-align:start;padding:0 12px;cursor:pointer;display:flex;align-items:center}.bottom-sheet.is-open{pointer-events:auto}.bottom-sheet.is-open .sheet-overlay{opacity:1}.bottom-sheet.is-open .sheet-panel{transform:translateY(0)}@media (max-width:767px){.desktop-sidebar{display:none}.workspace{max-width:100%}.quick-column{display:none}}@media (min-width:768px){.app{grid-template-columns:auto 1fr}.desktop-sidebar{display:block}.bottom-sheet,.mobile-bottom-nav,.mobile-top-header{display:none}.workspace{grid-template-columns:2fr 1fr;padding-top:var(--space-3);padding-bottom:var(--space-4)}.mobile-safe{padding-top:0;padding-bottom:0}}.room-container{display:flex;flex-direction:column;height:100vh;width:100%;background:radial-gradient(circle at top right,#0f172a,#020617);color:#f8fafc;overflow:hidden;font-family:inherit}.room-top{display:flex;justify-content:space-between;align-items:center;padding:12px 24px;background:rgba(15,23,42,.6);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.05);z-index:10}.room-top-left,.room-top-right{display:flex;align-items:center;gap:12px}.live-badge{display:flex;align-items:center;gap:6px;background:rgba(239,68,68,.15);color:#ef4444;padding:4px 10px;border-radius:20px;font-weight:700;font-size:.8rem;letter-spacing:1px}.live-dot{width:8px;height:8px;border-radius:50%;background:#ef4444;box-shadow:0 0 8px #ef4444;animation:pulse-red 1.5s infinite}@keyframes pulse-red{0%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.2)}to{opacity:1;transform:scale(1)}}.room-code{padding:4px 12px;border-radius:6px;font-family:monospace;font-size:1.1rem;font-weight:600;letter-spacing:2px}.btn-top,.room-code{background:rgba(255,255,255,.1)}.btn-top{display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.2);color:white;padding:8px 16px;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-top:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}.btn-top input{background:transparent;border:none;color:white;outline:none}.video-area{position:relative;overflow:hidden;padding:16px}.video-area,.video-grid{flex:1;display:flex;gap:16px}.video-grid{flex-wrap:wrap;justify-content:center;align-content:center;overflow-y:auto;padding:8px}.video-tile{background:rgba(30,41,59,.7);border-radius:16px;border:1px solid rgba(255,255,255,.1);position:relative;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;transition:all .3s cubic-bezier(.4,0,.2,1)}.video-tile.alone{width:100%;height:100%;max-width:900px;max-height:600px}.video-tile.half{width:calc(50% - 8px);height:60vh;min-width:300px}.video-tile.quarter{width:calc(33.333% - 11px);height:40vh;min-width:250px}.video-area.voice-room .video-tile{width:140px;height:140px;border-radius:50%;background:rgba(30,41,59,.8);border:2px solid rgba(255,255,255,.15);box-shadow:0 8px 25px rgba(0,0,0,.3);overflow:visible;margin:20px;flex:none}.avatar-placeholder{flex-direction:column;gap:10px;width:100%;height:100%}.avatar-circle,.avatar-placeholder{display:flex;align-items:center;justify-content:center}.avatar-circle{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#5c9e62,#5c9e62);font-size:2rem;font-weight:700;box-shadow:0 4px 15px rgba(0,0,0,.3);color:white}.video-area.voice-room .avatar-circle{width:100%;height:100%;font-size:2.5rem;background:linear-gradient(135deg,#5c9e62,#5c9e62)}.tile-name{position:absolute;bottom:16px;left:16px;background:rgba(0,0,0,.6);backdrop-filter:blur(8px);padding:6px 12px;border-radius:8px;font-size:.9rem;display:flex;align-items:center;gap:8px;color:white;z-index:2}.video-area.voice-room .tile-name{bottom:-35px;left:50%;transform:translateX(-50%);width:-moz-max-content;width:max-content;background:rgba(15,23,42,.8);border:1px solid rgba(255,255,255,.1)}.chat-panel{width:380px;background:rgba(15,23,42,.85);backdrop-filter:blur(16px);border-radius:16px;border:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column;overflow:hidden;box-shadow:-5px 0 30px rgba(0,0,0,.3);transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .3s;transform:translateX(120%);opacity:0;position:absolute;right:16px;top:16px;bottom:16px;z-index:20}.chat-panel.open{transform:translateX(0);opacity:1}.video-area.text-room .video-grid{display:none!important}.video-area.text-room .chat-panel{position:relative;right:0;top:0;bottom:0;width:100%;max-width:100%;transform:none;opacity:1;border:1px solid rgba(255,255,255,.05);border-radius:20px;background:rgba(15,23,42,.6)}.chat-header{padding:16px;border-bottom:1px solid rgba(255,255,255,.1);justify-content:space-between;background:rgba(255,255,255,.02)}.chat-header,.chat-header h3{display:flex;align-items:center}.chat-header h3{margin:0;font-size:1.1rem;font-weight:600;gap:8px}.chat-close{background:transparent;border:none;color:white;cursor:pointer;font-size:1.2rem;padding:4px}.chat-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.chat-msg{max-width:85%;padding:10px 14px;border-radius:12px;font-size:.95rem;line-height:1.5;animation:slide-up .3s ease-out}@keyframes slide-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.chat-msg.sent{align-self:flex-start;background:#5c9e62;color:white;border-bottom-right-radius:4px}.chat-msg.received{align-self:flex-end;background:rgba(255,255,255,.1);color:#f1f5f9;border-bottom-left-radius:4px}.msg-sender{font-size:.75rem;opacity:.7;margin-bottom:4px}.chat-input-area{padding:16px;border-top:1px solid rgba(255,255,255,.1);display:flex;gap:8px;background:rgba(0,0,0,.2)}.chat-input-area input[type=text]{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);padding:10px 16px;border-radius:20px;color:white;outline:none;transition:border-color .2s}.chat-input-area input[type=text]:focus{border-color:#5c9e62;background:rgba(255,255,255,.1)}.chat-file-btn,.chat-send-btn{background:#5c9e62;border:none;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;cursor:pointer;transition:all .2s}.chat-file-btn{background:rgba(255,255,255,.1)}.chat-send-btn:hover{background:#46694b;transform:scale(1.05)}.chat-file-btn:hover{background:rgba(255,255,255,.2)}.controls-bar{padding:16px 24px;background:rgba(15,23,42,.8);backdrop-filter:blur(12px);border-top:1px solid rgba(255,255,255,.05);gap:16px;z-index:10}.controls-bar,.ctrl-btn{display:flex;justify-content:center;align-items:center}.ctrl-btn{flex-direction:column;gap:6px;width:64px;height:64px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:#f8fafc;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1)}.ctrl-btn:hover{background:rgba(255,255,255,.1);transform:translateY(-2px)}.ctrl-btn.active{background:rgba(59,130,246,.2);border-color:rgba(59,130,246,.5);color:#60a5fa}.ctrl-btn.leave,.ctrl-btn.muted{background:rgba(239,68,68,.2);border-color:rgba(239,68,68,.5);color:#f87171}.ctrl-btn.leave:hover{background:rgba(239,68,68,.4)}.ctrl-label{font-size:.75rem;font-weight:500}.float-panel{position:fixed;bottom:100px;left:24px;background:rgba(15,23,42,.9);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1);padding:20px;border-radius:16px;box-shadow:0 10px 40px rgba(0,0,0,.4);z-index:30;width:320px;color:white;transform:translateY(20px);opacity:0;pointer-events:none;transition:all .3s cubic-bezier(.4,0,.2,1)}.float-panel.show{transform:translateY(0);opacity:1;pointer-events:auto}@media (max-width:768px){.room-top{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.room-top-left,.room-top-right{justify-content:space-between;width:100%}.btn-top{padding:6px 10px;font-size:.8rem}.controls-bar{padding:12px;gap:8px}.ctrl-btn{width:56px;height:56px}.chat-panel{width:100%;right:0;top:0;bottom:0;border-radius:0;z-index:40}.video-area.voice-room .video-tile{width:100px;height:100px;margin:10px}}.video-area.voice-room .video-tile.speaking{box-shadow:0 0 0 4px #5c9e62,0 8px 25px rgba(92,158,98,.4);border-color:#5c9e62;transform:scale(1.05)}.video-area.text-room{flex-direction:row-reverse;padding:0;gap:0}.text-room-sidebar{width:280px;background:rgba(15,23,42,.85);border-left:1px solid rgba(255,255,255,.05);display:flex;flex-direction:column;padding:16px;overflow-y:auto}.text-room-sidebar h4{font-size:.85rem;text-transform:uppercase;color:#94a3b8;margin-bottom:12px;letter-spacing:1px}.sidebar-member{display:flex;align-items:center;gap:12px;padding:8px;border-radius:8px;transition:background .2s;cursor:pointer}.sidebar-member:hover{background:rgba(255,255,255,.05)}.sidebar-member-avatar{width:32px;height:32px;border-radius:50%;background:linear-gradient(135deg,#5c9e62,#5c9e62);display:flex;align-items:center;justify-content:center;font-size:.9rem;font-weight:700;position:relative;color:white}.sidebar-member-status{position:absolute;bottom:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:#5c9e62;border:2px solid #0f172a}.sidebar-member-name{font-size:.95rem;color:#f8fafc}.video-area.text-room .chat-panel{border-radius:0;border:none;background:rgba(15,23,42,.4)}