.layout-manager{width:100vw;min-height:100vh;position:relative;background-color:#8dfff9;background-image:url(/assets/chat-ui/Background_Cartoon.png);background-size:cover;background-position:center;background-repeat:no-repeat}.layout-manager.portrait,.layout-manager.landscape{display:flex;flex-direction:column}.layout-manager>.app-container{flex:1;min-width:0;width:100%}body.orientation-portrait .layout-manager{padding-top:-100px;background-position:center bottom}body.orientation-landscape .layout-manager{padding-left:0}.microphone-button{width:60px;height:60px;min-width:60px;min-height:60px;max-width:70px;max-height:70px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;transform:translate(-10px) scale(1.7);transition:all .2s ease;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;flex-shrink:0}.microphone-button:hover{transform:translate(-10px) scale(1.1)}@media (max-width: 480px){.microphone-button{width:56px;height:56px;min-width:56px;min-height:56px}.microphone-button .mic-icon{width:70%;height:70%}.microphone-button .audio-icon{width:36px;height:36px}}@media (min-width: 768px){.microphone-button{width:64px;height:64px;min-width:64px;min-height:64px}.microphone-button .mic-icon{width:70%;height:70%}.microphone-button .audio-icon{width:44px;height:44px}}@media (orientation: landscape) and (min-width: 1024px){.microphone-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px;transform:translate(0) scale(1.5)}.microphone-button .mic-icon{width:68%;height:68%}.microphone-button .audio-icon{width:100%;height:100%;transform:translate(0) scale(1)}.microphone-button:hover{transform:translate(0) scale(1.1)}}.microphone-button:active{transform:scale(.95);background:#ff8c00}.microphone-button.recording{background:#1799b7;animation:pulse 1s infinite}.microphone-button .mic-icon{width:70%;height:70%;object-fit:contain}.microphone-button .recording-indicator{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.microphone-button .audio-icon{width:100%;height:100%;object-fit:contain;opacity:.8;transform:translate(0) scale(1.7)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.academic-progress-button{position:relative;width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px;padding:0;border-radius:50%;border:none;background:transparent;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0;z-index:100;pointer-events:auto;visibility:visible;opacity:1;box-sizing:border-box}.academic-progress-button:hover{transform:scale(1.1);box-shadow:0 2px 8px #00408566}.academic-progress-button:active{transform:scale(.95)}.academic-progress-button-text{display:none}.academic-progress-icon{width:100%;height:100%;object-fit:contain}@media (orientation: portrait){.academic-progress-button{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}}@media (max-width: 480px){.academic-progress-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px}.academic-progress-icon{width:100%;height:100%}}@media (min-width: 768px){.academic-progress-button{width:64px;height:64px;min-width:64px;min-height:64px;max-width:64px;max-height:64px}.academic-progress-icon{width:100%;height:100%}}.home-button{position:relative;width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transform:translate(0) scale(1.2);transition:transform .2s ease,opacity .2s ease;flex-shrink:0;z-index:101;pointer-events:auto;visibility:visible;opacity:1;margin:0!important;box-sizing:border-box;padding:0}.home-button:hover{transform:scale(1.1)}.home-button:active{transform:scale(.95)}.home-icon{width:100%;height:100%;object-fit:contain;transition:transform .2s ease}@media (max-width: 480px){.home-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px}.home-icon{width:100%;height:100%}}@media (min-width: 768px){.home-button{width:64px;height:64px;min-width:64px;min-height:64px;max-width:64px;max-height:64px}.home-icon{width:100%;height:100%}}@media (orientation: landscape) and (min-width: 1024px){.home-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px;transform:translate(0) scale(1)}}.pause-button{position:relative;width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transform:translate(0) scale(1.2);transition:transform .2s ease,opacity .2s ease;flex-shrink:0;z-index:101;pointer-events:auto;visibility:visible;opacity:1;margin:0!important;box-sizing:border-box;padding:0}.pause-button:hover{transform:scale(1.1)}.pause-icon{width:100%;height:100%;object-fit:contain}@media (max-width: 480px){.pause-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px}}@media (min-width: 768px){.pause-button{width:64px;height:64px;min-width:64px;min-height:64px;max-width:64px;max-height:64px}}@media (orientation: landscape) and (min-width: 1024px){.pause-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px;transform:translate(0) scale(1)}}.upload-activity-button{position:relative;width:60px;height:60px;min-width:60px;min-height:60px;max-width:60px;max-height:60px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transform:translate(0) scale(1.2);transition:transform .2s ease,opacity .2s ease;flex-shrink:0;z-index:101;pointer-events:auto;visibility:visible;opacity:1;margin:0!important;box-sizing:border-box;padding:0}.upload-activity-button:disabled{opacity:.6;cursor:not-allowed}.upload-activity-button:hover{transform:scale(1.1)}.upload-activity-button:active{transform:scale(.95)}.upload-activity-icon{width:100%;height:100%;object-fit:contain;transition:transform .2s ease}.upload-activity-check{position:absolute;right:-6px;top:-6px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:50%;box-shadow:0 2px 6px #0003}.upload-activity-check img{width:14px;height:14px;object-fit:contain}@media (max-width: 480px){.upload-activity-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px}}@media (min-width: 768px){.upload-activity-button{width:64px;height:64px;min-width:64px;min-height:64px;max-width:64px;max-height:64px}}@media (orientation: landscape) and (min-width: 1024px){.upload-activity-button{width:56px;height:56px;min-width:56px;min-height:56px;max-width:56px;max-height:56px;transform:translate(0) scale(1)}.upload-activity-check{width:18px;height:18px}.upload-activity-check img{width:12px;height:12px}}.activity-menu{position:fixed;top:0;right:0;bottom:0;left:0;background:#004c98d9;display:flex;align-items:flex-start;justify-content:center;padding:clamp(20px,4vw,48px);z-index:500;overflow-y:auto}.activity-menu-content{width:min(720px,92vw);background:#000;border-radius:24px;padding:clamp(20px,4vw,32px);box-shadow:0 12px 30px #00000040}.activity-menu-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.activity-menu-header h2{margin:0;font-size:clamp(20px,3vw,28px);color:#fff}.activity-menu-close{border:none;background:#000;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1}.activity-menu-status{margin:16px 0;color:#fff;font-size:14px}.activity-menu-status.error{color:#fff}.activity-menu-list{display:grid;grid-template-columns:1fr;gap:14px}.activity-card{border:2px solid #47b16c;background:#47b16c;border-radius:16px;padding:14px 18px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:transform .2s ease,box-shadow .2s ease}.activity-card:hover{transform:translateY(-2px);box-shadow:0 8px 18px #47b16c66;background:#3a9d5a;border-color:#3a9d5a}.activity-card-title{font-size:clamp(15px,2.2vw,18px);font-weight:600;color:#fff}.activity-card-meta{display:flex;gap:12px;font-size:12px;color:#fff}@media (orientation: portrait){.activity-menu{padding:18px}}@media (max-width: 480px){.activity-menu-content{border-radius:18px}.activity-card-meta{flex-direction:column;gap:4px}}.avatar-3d{width:clamp(260px,34vw,460px);height:clamp(420px,64vh,720px);display:block;pointer-events:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;transition:top .3s ease,left .3s ease,right .3s ease,bottom .3s ease,transform .3s ease,width .3s ease,height .3s ease,margin-left .3s ease,margin-top .3s ease}@media (orientation: landscape){.avatar-3d{width:clamp(260px,34vw,460px);height:clamp(500px,75vh,800px);min-height:500px;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin-left:-20px;margin-top:100px}}@media (orientation: portrait){.avatar-3d{width:clamp(520px,80vw,400px);height:clamp(620px,75vh,820px);top:38%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);opacity:1;visibility:visible;transition:opacity .3s ease,visibility .3s ease,top .3s ease,left .3s ease,transform .3s ease;clip-path:inset(5% 17.5% 60% 17.5% round 30px);overflow:hidden}.avatar-3d:before{content:"";position:absolute;top:5%;left:50%;transform:translate(-50%);width:70%;height:35%;background:#fff url(/assets/chat-ui/Background_Cartoon.png);background-size:cover;background-position:center;background-repeat:no-repeat;border-radius:28px;z-index:-1;box-shadow:0 10px 40px #00000014,0 2px 12px #0000000a;opacity:1;transition:opacity .3s ease}.avatar-3d.chat-visible{opacity:1;visibility:visible}.avatar-3d.chat-visible:before{opacity:1}}@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px){.avatar-3d{width:clamp(400px,50vw,500px);height:clamp(500px,60vh,700px);top:30%;clip-path:inset(5% 12.5% 55% 12.5% round 32px)}.avatar-3d:before{width:75%;height:40%;border-radius:32px}}@media (max-width: 480px){.avatar-3d{width:clamp(520px,80vw,400px);height:clamp(620px,80vh,820px)}}.selection-menu{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#0c0f14;background-image:url(/assets/selection/BackgroundMenu.png);background-size:cover;background-position:center;background-repeat:no-repeat;display:flex;align-items:flex-start;justify-content:flex-start;padding:clamp(24px,4vw,80px);z-index:200;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;height:100vh;height:100dvh}.selection-menu-content{width:min(1200px,92vw);color:#fff;padding-bottom:40px}.selection-header h1{margin:0 0 12px;font-size:clamp(28px,2.6vw,42px);font-weight:700}.selection-header p{margin:0 0 clamp(24px,3vw,48px);font-size:clamp(14px,1.4vw,18px)}.selection-header{transform:translateY(-35px)}.character-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:clamp(20px,4vw,48px);align-items:stretch;margin-bottom:clamp(24px,3vw,40px)}.character-card{background:transparent;border:none;color:inherit;text-align:center;cursor:pointer;padding:0;position:relative;width:max-content;max-width:100%;justify-self:center;display:flex;flex-direction:column;align-items:center}.character-card.selected .character-bubble{border-color:#33d0a3}.character-name{display:block!important;text-align:center;font-size:clamp(20px,2vw,28px);font-weight:700;margin-bottom:8px;color:#fff;visibility:visible;opacity:1;width:100%}.character-check{position:absolute;top:clamp(8px,1vw,12px);right:clamp(-180px,-8vw,8px);height:clamp(26px,3.2vw,44px);width:auto;z-index:10;pointer-events:none}.character-body{display:flex;align-items:center;justify-content:center;gap:0;flex-wrap:nowrap;min-width:0;width:100%;position:relative}.character-image-wrapper{position:relative;flex-shrink:0;width:100%;display:flex;justify-content:center;align-items:center}.character-image{height:clamp(150px,18vw,240px);width:auto}.ian-card .character-image,.nia-card .character-image{transform:translate(40px,-25px) scale(1.5)}@media (orientation: landscape){.character-card,.character-image-wrapper{overflow:visible}.character-check{position:absolute;top:clamp(8px,1vw,12px);right:clamp(-180px,-8vw,8px);height:clamp(26px,3.2vw,44px);width:auto;z-index:10;pointer-events:none}}.character-bubble{border:none;border-radius:20px;padding:clamp(14px,1.6vw,18px);width:clamp(220px,26vw,340px);max-width:100%;background:transparent;box-shadow:none;box-sizing:border-box;text-align:left;min-width:0;overflow:hidden;overflow-wrap:anywhere}.character-title{margin:0 0 10px;font-size:clamp(13px,1.3vw,17px);font-weight:600;line-height:1.15;max-width:100%;word-break:normal}.character-description{margin:0;font-size:clamp(13px,1.3vw,16px);line-height:1.2;max-width:100%;word-break:normal}.desktop-text{display:block}.mobile-text{display:none}@media (orientation: landscape) and (max-width: 1200px){.selection-menu-content{width:95vw}.character-bubble{width:clamp(200px,24vw,300px);padding:clamp(12px,1.5vw,16px)}.character-title{font-size:clamp(12px,1.25vw,16px)}.character-description{font-size:clamp(11px,1.2vw,15px)}}@media (orientation: landscape) and (max-width: 900px){.selection-menu{padding:clamp(20px,3vw,40px)}.selection-menu-content{width:96vw}.character-grid{gap:clamp(16px,3vw,32px)}.character-image{height:clamp(140px,18vw,200px)}.character-bubble{width:clamp(180px,22vw,260px);padding:clamp(10px,1.4vw,14px)}.character-title{font-size:clamp(11px,1.3vw,14px)}.character-description{font-size:clamp(10px,1.2vw,13px)}.ian-card .character-bubble,.nia-card .character-bubble{max-width:240px}.accent-button{padding:7px 14px;font-size:clamp(11px,1.3vw,14px)}}@media (orientation: landscape) and (max-width: 750px) and (max-height: 450px){.selection-menu{padding:clamp(16px,2.5vw,32px)}.selection-header h1{font-size:clamp(20px,3.5vw,32px)}.selection-header p{font-size:clamp(12px,2vw,16px);margin-bottom:clamp(16px,2.5vw,32px)}.character-grid{gap:clamp(12px,2.5vw,24px)}.character-image{height:clamp(120px,16vh,180px)}.ian-card .character-image,.nia-card .character-image{transform:translate(30px,-30px) scale(1.4)}.character-bubble{width:clamp(100px,10vw,240px);padding:clamp(8px,1.3vw,12px)}.character-title{font-size:clamp(10px,1.4vw,13px);margin-bottom:6px}.character-description{font-size:clamp(9px,1.3vw,12px);line-height:1.15}.ian-card .character-bubble{max-width:220px;transform:translate(-12px,8px)}.nia-card .character-bubble{max-width:220px;transform:translate(-40px,8px)}.accent-row{gap:clamp(10px,2vw,20px);margin-bottom:clamp(12px,2vw,24px)}.accent-button{padding:6px 12px;font-size:clamp(10px,1.4vw,13px)}.accent-button img{height:16px}.download-link{font-size:clamp(10px,1.4vw,13px);margin-bottom:clamp(12px,2vw,20px)}.download-link img{height:16px}.primary-button img{height:clamp(36px,5vh,48px)}}@media (orientation: landscape) and (max-width: 750px){.selection-menu{padding:8px;overflow-y:auto}.selection-header h1{font-size:18px!important;margin-bottom:4px}.selection-header p{font-size:10px!important;margin-bottom:8px}.selection-header{transform:translate(0)}.character-grid,.character-body{gap:8px}.character-image{height:100px!important}.ian-card .character-image,.nia-card .character-image{transform:translateY(-8px) scale(1.15)!important}.character-bubble{width:130px!important;max-width:130px!important;padding:6px!important;border-radius:10px}.character-title{font-size:9px!important;margin-bottom:2px;line-height:1.1}.character-description{font-size:8px!important;line-height:1.05}.ian-card .character-bubble{max-width:130px!important;transform:translate(-5px,2px)!important}.nia-card .character-bubble{max-width:130px!important;transform:translate(-25px,2px)!important}.accent-row{gap:6px;margin-bottom:6px;transform:translate(0)}.accent-button{padding:4px 8px;font-size:9px!important;border-radius:8px}.accent-button img{height:12px}.download-link{font-size:9px!important;margin-bottom:6px;transform:translate(0)}.download-link img{height:12px}.accept-row{transform:translate(0)}.primary-button img{height:32px!important}}.ian-card .character-bubble{max-width:260px;transform:translate(-15px,10px)}.nia-card .character-bubble{max-width:260px;transform:translate(-50px,10px)}@media (max-width: 1280px){.selection-header{transform:translateY(-20px)}}.accent-row{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(12px,2vw,24px);margin-bottom:clamp(16px,2.6vw,32px);transform:translate(0)}.accent-button{background:transparent;border:2px solid #ffffff;border-radius:12px;padding:8px 16px;color:#fff;display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:clamp(12px,1.2vw,15px)}.accent-button.selected{border-color:#33d0a3}.accent-row .accent-button:nth-child(1){transform:translate(85px)}.accent-row .accent-button:nth-child(2){transform:translate(85px)}.accent-row .accent-button:nth-child(3){transform:translate(85px)}.accent-button img{height:18px;width:auto;display:block}.download-link{border:none;background:transparent;color:#fff;font-size:clamp(12px,1.2vw,15px);display:flex;align-items:center;gap:8px;cursor:pointer;justify-content:center;width:100%;margin:0 auto clamp(16px,2vw,24px);transform:translate(90px)}.download-link img{height:18px;width:auto;transform:translate(0)}.download-link:disabled{opacity:.7;cursor:not-allowed}.accept-row{display:flex;justify-content:center;transform:translate(85px)}@media (max-width: 1024px){.selection-menu{padding:clamp(20px,4vw,48px)}.selection-menu-content{width:min(1000px,92vw)}.selection-header{transform:translateY(-15px)}.accent-row .accent-button:nth-child(1),.accent-row .accent-button:nth-child(2),.accent-row .accent-button:nth-child(3){transform:translate(20px)}.download-link,.accept-row{transform:translate(20px)}}@media (max-width: 900px){.selection-header{transform:translateY(-5px)}.character-grid{gap:24px}.character-title{font-size:clamp(12px,2.6vw,16px)}.character-description{font-size:clamp(12px,2.4vw,15px)}.accent-row{gap:12px 16px}.accent-row .accent-button:nth-child(1),.accent-row .accent-button:nth-child(2),.accent-row .accent-button:nth-child(3){transform:translate(0)}.download-link,.accept-row{transform:translate(0)}}@media (orientation: portrait){.character-card{width:100%;justify-self:stretch}.selection-menu{padding:20px 20px 60px;align-items:flex-start}.selection-menu-content{width:100%;padding-bottom:60px}.selection-header{transform:translate(0)}.character-grid{grid-template-columns:1fr;gap:20px}.character-body{flex-direction:column;align-items:center;text-align:center;position:relative}.character-name{text-align:center}.ian-card .character-image,.nia-card .character-image{transform:translate(0) scale(1);height:clamp(140px,42vw,220px)}.character-bubble{max-width:clamp(100px,10vw,200px);width:clamp(100px,33vw,200px);text-align:center;position:absolute;left:64.5%;top:58%;transform:translate(-50%,-50%);padding:clamp(8px,1.6vw,12px);max-height:clamp(80px,20vw,120px)}.character-title,.character-description{text-align:center;line-height:1.1}.character-title{font-size:clamp(10px,2.6vw,12px)}.character-description{font-size:clamp(9px,2.4vw,11px)}.ian-card .character-bubble,.nia-card .character-bubble{transform:translate(-50%,-50%)}.character-card{overflow:visible;position:relative}.character-body{position:relative}.character-image-wrapper{overflow:visible;position:relative}.character-check{position:absolute;top:clamp(8px,1vw,12px);right:clamp(8px,1vw,12px);height:clamp(26px,3.2vw,44px);width:auto;z-index:10;pointer-events:none}.accent-row{justify-content:center;transform:translate(0)}.accent-row .accent-button:nth-child(1),.accent-row .accent-button:nth-child(2),.accent-row .accent-button:nth-child(3){transform:translate(0)}.download-link,.accept-row{transform:translate(0)}.desktop-text{display:none}.mobile-text{display:block}.mobile-text.character-title{font-size:clamp(10px,2.6vw,12px)}.mobile-text.character-description{font-size:clamp(9px,2.4vw,11px)}}@media (orientation: portrait) and (max-width: 600px){.selection-menu,.selection-menu-content{padding-bottom:80px}.character-grid{gap:16px}.character-body{gap:12px}.character-card,.character-image-wrapper{overflow:visible}.character-check{position:absolute;top:clamp(8px,1vw,12px);right:clamp(8px,1vw,12px);height:clamp(26px,8vw,36px);width:auto;z-index:10;pointer-events:none}.character-title{font-size:clamp(9px,3.2vw,11px)}.character-description{font-size:clamp(8px,3vw,9px)}.accent-row{flex-direction:column;align-items:center}.accent-button{min-width:min(240px,90vw);justify-content:center}.download-link{margin-bottom:16px}}@media (orientation: portrait) and (max-width: 480px){.selection-menu{padding:16px 16px 100px}.selection-menu-content{padding-bottom:100px}.selection-header h1{font-size:clamp(22px,7vw,30px)}.selection-header p{font-size:clamp(12px,3.6vw,16px)}.accent-button{padding:8px 12px;font-size:clamp(12px,3.2vw,14px)}.download-link{font-size:clamp(12px,3.2vw,14px)}.primary-button img{height:clamp(36px,10vw,48px)}}.primary-button,.secondary-button{border-radius:10px;padding:10px 16px;font-size:14px;cursor:pointer;border:none}.primary-button{background:transparent;padding:0;position:relative;display:inline-flex;align-items:center;justify-content:center}.primary-button img{display:block;height:clamp(40px,4vw,56px);width:auto}.primary-button-label{position:absolute;color:#fff;font-size:clamp(14px,1.4vw,18px);font-weight:600;pointer-events:none}.chat-message{display:flex;width:100%;margin-bottom:0}@media (orientation: portrait){.chat-message{margin-bottom:8px;animation:fadeInUp .3s ease-out}.chat-message:not(:last-child){margin-bottom:16px}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}.chat-message.user,.chat-message.assistant{justify-content:flex-start}.message-bubble{position:relative;width:85%;max-width:85%;min-width:120px;padding:12px 16px;border-radius:18px;display:flex;align-items:flex-start;overflow:hidden;min-height:fit-content}.user-bubble{background-color:#47b16c}.assistant-bubble{background-color:#004c98}.message-text{position:relative;z-index:1;margin:0;font-size:20px;line-height:1.4;word-wrap:break-word;word-break:break-word;white-space:pre-wrap;width:100%;flex:1}.message-bubble.clickable{cursor:pointer;transition:transform .1s ease,opacity .1s ease}.message-bubble.clickable:hover{transform:scale(1.02);opacity:.9}.message-bubble.clickable:active{transform:scale(.98)}.audio-indicator{position:absolute;top:8px;right:8px;font-size:12px;opacity:.7;z-index:2}.message-bubble.clickable:hover .audio-indicator{opacity:1}.chat-message.user .message-text{color:#fff;font-weight:500}.chat-message.assistant .message-text{color:#fff;font-weight:400}@media (orientation: portrait) and (max-width: 480px){.message-bubble{width:85%;max-width:85%;padding:16px 20px;border-radius:22px;min-width:80px;box-shadow:0 2px 8px #00000014,0 1px 3px #0000001f;transition:all .2s cubic-bezier(.4,0,.2,1)}.user-bubble{background:linear-gradient(135deg,#47b16c,#3fa05a);margin-left:auto;margin-right:0;box-shadow:0 2px 8px #47b16c40,0 1px 3px #47b16c26}.assistant-bubble{background:linear-gradient(135deg,#004c98,#003d7a);margin-left:0;margin-right:auto;box-shadow:0 2px 8px #004c9840,0 1px 3px #004c9826}.message-text{font-size:16px;line-height:1.65;font-weight:400;letter-spacing:.01em}.chat-message.user .message-text,.chat-message.assistant .message-text{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.1)}.audio-indicator{margin-top:12px;font-size:18px;opacity:.95;transition:opacity .2s ease,transform .2s ease}.message-bubble.clickable:hover .audio-indicator{opacity:1;transform:scale(1.05)}.message-bubble.clickable{-webkit-tap-highlight-color:rgba(0,76,152,.15);touch-action:manipulation;transition:all .2s cubic-bezier(.4,0,.2,1)}.message-bubble.clickable:active{transform:scale(.97);box-shadow:0 1px 4px #0000001a,0 0 2px #00000014}}@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px){.message-bubble{width:80%;max-width:80%;padding:18px 24px;border-radius:24px}.message-text{font-size:18px;line-height:1.7}.audio-indicator{margin-top:14px;font-size:20px}}@media (max-width: 480px){.message-bubble{width:90%;max-width:90%;padding:10px 14px;border-radius:16px;min-width:80px}.message-text{font-size:14px;line-height:1.4}.audio-indicator{margin-top:8px;font-size:14px;opacity:.8}.message-bubble.clickable{-webkit-tap-highlight-color:rgba(255,107,53,.3);touch-action:manipulation}}@media (orientation: landscape){.message-bubble{width:85%;max-width:85%}.message-text{font-size:12px}}@media (max-width: 360px){.message-bubble{width:95%;max-width:95%;padding:8px 12px;min-width:60px}.message-text,.audio-indicator{font-size:12px}}.chat-container{position:fixed;bottom:100px;left:50%;transform:translate(-50%);width:90%;max-width:500px;z-index:50}.chat-toggle-button{position:absolute;bottom:0;right:0;width:60px;height:60px;border:none;background:transparent;cursor:pointer;z-index:51;display:flex;align-items:center;justify-content:center;transition:all .2s cubic-bezier(.4,0,.2,1);border-radius:50%}.chat-toggle-button-inline{width:60px;height:60px;min-width:60px;min-height:60px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;flex-shrink:0}.chat-toggle-button-inline:hover{transform:scale(1.1)}.chat-toggle-button-inline:active{transform:scale(.95)}.chat-toggle-button:hover{transform:scale(1.1)}.chat-toggle-button:active{transform:scale(.95)}.chat-icon{width:100%;height:100%;object-fit:contain;transform:translate(0) scale(1.2)}.chat-panel{position:absolute;bottom:70px;right:0;width:100%;max-width:500px;background:transparent;border-radius:15px;box-shadow:none;border:none;display:flex;flex-direction:column;max-height:400px;overflow:hidden}.chat-panel-inline{position:fixed;bottom:100px;left:50%;transform:translate(-50%) translate(0) scale(1);width:60%;max-width:400px;background:transparent;border-radius:15px;box-shadow:none;border:none;display:flex;flex-direction:column;max-height:400px;height:auto;overflow:hidden;z-index:2000;bottom:calc(100px + env(safe-area-inset-bottom,0px))}@media (orientation: landscape){.chat-panel-inline{left:50%;right:auto;transform:translate(-50%) translate(-320px) scale(1);width:360px;max-width:360px;bottom:calc(100px + env(safe-area-inset-bottom,0px));top:auto;max-height:calc((100vh - 120px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*.75);height:calc((100vh - 120px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*.75)}.chat-panel-inline .chat-messages{max-height:calc((100vh - 120px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))*.75 - 80px);flex:1}@media (max-height: 600px),(max-width: 900px){.chat-panel-inline{transform:translate(-50%) translate(-20vw) scale(1);width:85%;max-width:380px;left:50%;right:auto}}@media (max-height: 600px) and (max-width: 700px){.chat-panel-inline{transform:translate(-50%) translate(-15vw) scale(1);width:88%;max-width:360px}}@media (orientation: landscape) and (min-width: 901px) and (max-width: 1200px){.chat-panel-inline{transform:translate(-50%) translate(-25vw) scale(1)}}}.chat-messages{max-height:300px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:15px;flex:1;scrollbar-width:none;-ms-overflow-style:none}.chat-messages::-webkit-scrollbar{display:none}.chat-empty{display:flex;align-items:center;justify-content:center;height:100%;padding:20px;color:#666;font-size:14px;text-align:center}.chat-input-form{display:flex;align-items:center;gap:10px;padding:12px 15px;border-top:none;background:transparent;flex-shrink:0;min-height:60px;overflow:visible;box-sizing:border-box}.chat-input{flex:1 1 auto;min-width:0;max-width:calc(100% - 65px);padding:10px 15px;border:none;border-radius:20px;font-size:15px;outline:none;transition:border-color .2s ease;box-sizing:border-box;background-color:#fff;color:#000}.chat-input::placeholder{color:#000;opacity:.6}.chat-input:focus{outline:none}.chat-send-button{width:45px;height:45px;min-width:45px;min-height:45px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;flex-shrink:0;visibility:visible;opacity:1}.chat-send-button:hover{transform:scale(1.1)}.chat-send-button:active{transform:scale(.95)}.send-icon{width:100%;height:100%;object-fit:contain}@media (orientation: portrait){.chat-container{bottom:70px;left:50%;transform:translate(-50%);width:65%;max-width:420px;bottom:calc(70px + env(safe-area-inset-bottom,0px))}body:has(.feedback-banner:not(.expanded)) .chat-container{bottom:calc(145px + env(safe-area-inset-bottom,0px))}body:has(.feedback-banner.expanded) .chat-container{bottom:calc(520px + env(safe-area-inset-bottom,0px))}.chat-panel{max-height:350px;border-radius:28px;box-shadow:0 10px 40px #00000014,0 2px 8px #0000000a;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);background:#ffffffeb;border:1px solid rgba(255,255,255,.3)}.chat-panel-inline{bottom:calc(40px + env(safe-area-inset-bottom,0px));top:auto!important;width:65%;max-width:420px;border-radius:28px;box-shadow:0 10px 40px #00000014,0 2px 8px #0000000a;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);background:#ffffffeb;border:1px solid rgba(255,255,255,.3);height:calc(75vh - 190px)!important;max-height:calc(75vh - 190px)!important;min-height:200px;overflow-y:auto;-webkit-overflow-scrolling:touch;transition:all .3s cubic-bezier(.4,0,.2,1)}body:has(.feedback-banner:not(.expanded)) .chat-panel-inline{bottom:calc(85px + env(safe-area-inset-bottom,0px))}body:has(.feedback-banner.expanded) .chat-panel-inline{bottom:calc(490px + env(safe-area-inset-bottom,0px));height:calc(75vh - 640px)!important;max-height:calc(75vh - 640px)!important}.chat-messages{max-height:250px;padding:24px 18px;gap:18px}}@media (orientation: portrait) and (min-width: 600px) and (max-width: 1024px){.chat-container{width:55%;max-width:500px;bottom:calc(120px + env(safe-area-inset-bottom,0px))!important}.chat-panel-inline{width:55%;max-width:500px;bottom:calc(90px + env(safe-area-inset-bottom,0px))!important;height:calc(70vh - 200px)!important;max-height:calc(70vh - 200px)!important;min-height:300px}body:has(.feedback-banner:not(.expanded)) .chat-panel-inline{bottom:calc(135px + env(safe-area-inset-bottom,0px))!important}body:has(.feedback-banner.expanded) .chat-panel-inline{bottom:calc(540px + env(safe-area-inset-bottom,0px))!important;height:calc(70vh - 650px)!important;max-height:calc(70vh - 650px)!important}body:has(.feedback-banner:not(.expanded)) .chat-container{bottom:calc(195px + env(safe-area-inset-bottom,0px))!important}body:has(.feedback-banner.expanded) .chat-container{bottom:calc(570px + env(safe-area-inset-bottom,0px))!important}.chat-messages{max-height:calc(70vh - 280px);padding:28px 24px;gap:20px}.chat-input-form{padding:18px 22px;min-height:72px}.chat-input{padding:16px 20px;font-size:18px;border-radius:28px}.chat-send-button{width:52px;height:52px;min-width:52px;min-height:52px}}@media (orientation: landscape){.chat-container{bottom:90px;left:20px;transform:none;width:350px;max-width:40%}.chat-panel{max-height:300px}.chat-messages{max-height:200px}}@media (orientation: landscape) and (min-width: 1024px){.chat-toggle-button,.chat-toggle-button-inline{width:56px;height:56px;min-width:56px;min-height:56px}.chat-icon{transform:translate(0) scale(1)}}@media (orientation: portrait) and (max-width: 480px){.chat-container{bottom:70px;width:95%;bottom:calc(90px + env(safe-area-inset-bottom,0px))}.chat-panel{max-height:300px}.chat-panel-inline{width:88%;max-width:380px;bottom:calc(80px + env(safe-area-inset-bottom,0px));top:auto!important;height:calc(80vh - 195px)!important;max-height:calc(80vh - 195px)!important;min-height:180px;overflow-y:auto}body:has(.feedback-banner:not(.expanded)) .chat-panel-inline{bottom:calc(125px + env(safe-area-inset-bottom,0px));height:calc(80vh - 270px)!important;max-height:calc(80vh - 270px)!important}body:has(.feedback-banner.expanded) .chat-panel-inline{bottom:calc(530px + env(safe-area-inset-bottom,0px));height:calc(80vh - 645px)!important;max-height:calc(80vh - 645px)!important}.chat-messages{max-height:calc(100vh - 301px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:18px 14px;gap:14px}.chat-toggle-button{width:56px;height:56px;box-shadow:0 2px 8px #0000001a}.chat-toggle-button:hover{box-shadow:0 4px 12px #00000026}.chat-input-form{padding:16px 18px;gap:12px;min-height:68px;background:#fffffffa;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-top:1px solid rgba(0,0,0,.04);transition:all .2s ease}.chat-input{padding:14px 18px;font-size:16px;min-width:0;max-width:calc(100% - 64px);border-radius:26px;border:1.5px solid rgba(0,0,0,.08);background:#f9fafb;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:inset 0 1px 2px #00000005}.chat-input:focus{background:#fff;border-color:#004c9840;box-shadow:0 0 0 3px #004c9814,inset 0 1px 2px #00000005;outline:none}.chat-input::placeholder{color:#00000073;font-weight:400}.chat-send-button{width:50px;height:50px;min-width:50px;min-height:50px;border-radius:50%;background:#0000000f;box-shadow:0 2px 6px #00000014,inset 0 1px #ffffff80;transition:all .2s cubic-bezier(.4,0,.2,1);border:1px solid rgba(0,0,0,.05)}.chat-send-button:hover{background:#0000001a;transform:scale(1.08);box-shadow:0 4px 12px #0000001f,inset 0 1px #fff9}.chat-send-button:active{transform:scale(.95);box-shadow:0 1px 3px #0000001a,inset 0 1px #fff6}.chat-empty{padding:15px;font-size:13px}}@media (orientation: portrait) and (max-width: 360px){.chat-panel-inline{width:98%;border-radius:12px;bottom:calc(90px + env(safe-area-inset-bottom,0px));top:auto!important;height:calc(82vh - 170px)!important;max-height:calc(82vh - 170px)!important;min-height:150px;overflow-y:auto}.chat-messages{padding:10px;gap:8px;max-height:calc(100vh - 256px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.chat-input{padding:8px 10px;font-size:13px;max-width:calc(100% - 45px)}.chat-input-form{padding:8px 10px;gap:6px;min-height:50px}.chat-send-button{width:36px;height:36px;min-width:36px;min-height:36px}}.lesson-checklist{margin:20px 0}.lesson-checklist h3{margin-bottom:15px;color:#007bff;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:16px;font-weight:600}.objectives-list{display:flex;flex-direction:column;gap:12px}.objective-item{padding:15px;border:1px solid #e0e0e0;border-radius:18px;background-color:#fff;box-shadow:0 2px 4px #0000000d}.objective-item.objective-completed{border-color:#28a745;background-color:#d4edda}.objective-item.objective-in-progress{border-color:#ffc107;background-color:#fff3cd}.objective-item.objective-pending{border-color:#ddd;background-color:#f9f9f9}.objective-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.objective-type{font-size:12px;color:#000;text-transform:uppercase;font-weight:600;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.6}.objective-progress{font-weight:600;font-size:14px}.objective-completed .objective-progress{color:#28a745}.objective-in-progress .objective-progress{color:#ffc107}.objective-pending .objective-progress{color:#666}.objective-description{font-size:15px;color:#555;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;line-height:1.4;margin-bottom:8px}.objective-stats{display:flex;gap:15px;font-size:13px;color:#000;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;opacity:.7;margin-top:8px}.lesson-progress-summary{margin-top:20px;padding:15px;background-color:#f0f0f0;border-radius:8px}.progress-bar{width:100%;height:20px;background-color:#e0e0e0;border-radius:10px;overflow:hidden;margin-bottom:10px}.progress-fill{height:100%;background-color:#007bff;transition:width .3s ease}.progress-text{text-align:center;font-size:14px;color:#000;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:500;opacity:1}.evaluation-results{position:relative;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;max-width:100%;width:100%;overflow-y:auto;padding:20px}.academic-mode-results-container .evaluation-results{position:relative;transform:none;top:auto;left:auto;max-width:100%;width:100%;max-height:100%;box-shadow:none;padding:20px 20px 120px;overflow-y:auto;flex:1;display:flex;flex-direction:column;min-height:0;box-sizing:border-box}@media (max-width: 480px){.academic-mode-results-container .evaluation-results{padding:15px 15px 150px}.academic-mode.portrait .academic-mode-results-container{padding-bottom:120px}.score-circle{width:120px;height:120px}.score-value{font-size:28px}.score-label{font-size:12px}.element-item{padding:12px}.evaluation-results-actions{flex-direction:column;margin-bottom:60px;padding-bottom:30px}.continue-button,.retry-button{width:100%}}.evaluation-results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.evaluation-results-header h2{margin:0;color:#333}.close-button{background:none;border:none;font-size:28px;cursor:pointer;color:#666;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center}.close-button:hover{color:#333}.overall-score{text-align:center;margin:30px 0}.score-circle{width:150px;height:150px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:0 auto 15px;border:4px solid}.score-circle.score-excellent{background-color:#d4edda;border-color:#28a745;color:#155724}.score-circle.score-passing{background-color:#d1ecf1;border-color:#17a2b8;color:#0c5460}.score-circle.score-failing{background-color:#f8d7da;border-color:#dc3545;color:#721c24}.score-value{font-size:36px;font-weight:700}.score-label{font-size:14px;margin-top:5px}.score-status{font-size:18px;font-weight:600;margin-top:10px;color:#333}.overall-score .score-status{color:#333}.elements-breakdown{margin:30px 0}.elements-breakdown h3{margin-bottom:20px;color:#333}.element-item{margin-bottom:20px;padding:15px;border:1px solid #ddd;border-radius:8px;background-color:#f9f9f9}.element-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.element-name{font-weight:600;color:#333}.element-score{font-weight:600;font-size:18px}.element-score.score-excellent{color:#28a745}.element-score.score-passing{color:#17a2b8}.element-score.score-failing{color:#dc3545}.element-feedback{color:#666;font-size:14px;margin-bottom:10px}.element-criteria{margin-top:10px;padding-top:10px;border-top:1px solid #ddd}.criterion-item{display:flex;justify-content:space-between;align-items:center;padding:5px 0;font-size:13px}.criterion-description{color:#666}.criterion-score{font-weight:600;color:#333}.evaluation-results-actions{margin-top:30px;margin-bottom:40px;text-align:center;display:flex;gap:15px;justify-content:center;flex-wrap:wrap;padding-bottom:20px}.continue-button{padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px;transition:background-color .2s}.continue-button:hover{background-color:#0056b3}.continue-button.secondary{background-color:#6c757d}.continue-button.secondary:hover{background-color:#5a6268}.retry-button{padding:12px 24px;background-color:#dc3545;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px;font-weight:600;transition:background-color .2s}.retry-button:hover{background-color:#c82333}.level-progress-map{background:transparent;border-radius:0;box-shadow:none;padding:0;max-width:100%;max-height:500px;overflow-y:auto}.level-progress-map-header{margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #e0e0e0}.level-progress-map-header h3{margin:0;font-size:16px;font-weight:600;color:#000;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.level-progress-map-content{display:flex;flex-direction:column;gap:16px}.unit-section{display:flex;flex-direction:column;gap:8px}.unit-header{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:500;color:#000;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.8}.unit-title{font-weight:600}.unit-progress{color:#000;font-size:12px;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;opacity:.7}.lessons-list{display:flex;flex-direction:column;gap:6px;padding-left:12px}.lesson-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;cursor:pointer;transition:all .2s ease;font-size:14px;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;color:#000}.lesson-item:hover{background:#e8e8e8;transform:translate(2px)}.lesson-item.current-lesson{background:#000;color:#fff;font-weight:600;border-left:none}.lesson-completed{color:#4caf50}.lesson-in-progress{color:#ff9800}.lesson-locked{color:#9e9e9e;opacity:.5;cursor:not-allowed!important}.lesson-unlocked{color:#000;opacity:.8}.lesson-item.lesson-disabled{cursor:not-allowed!important;opacity:.5}.lesson-item.lesson-disabled:hover{background:transparent!important;transform:none!important}.lesson-icon{font-size:16px;flex-shrink:0}.lesson-number{flex:1}.lesson-results-button{background:transparent;border:none;cursor:pointer;font-size:18px;padding:4px 8px;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;flex-shrink:0}.lesson-results-button:hover{transform:scale(1.2)}.lesson-results-button:active{transform:scale(1.1)}@media (max-width: 768px){.level-progress-map{max-width:100%;max-height:300px}}.academic-mode{padding:20px;max-width:1200px;margin:0 auto;position:relative;display:flex;gap:20px}.academic-mode.landscape{background:#fff;border-radius:12px 0 0 12px;box-shadow:-4px 0 20px #0003;width:500px;max-width:500px;height:100vh;max-height:100vh;overflow-y:auto;margin:0;flex-direction:row;position:fixed;top:0;right:0;z-index:10001;pointer-events:auto}.academic-mode.landscape .academic-mode-content{flex:1;min-width:0;width:100%;padding-bottom:40px}.academic-mode-progress-map-wrapper{margin:20px 0;padding:16px;background:#f8f9fa;border-radius:12px;border:1px solid #e0e0e0;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1200px){.academic-mode.landscape{width:400px;max-width:400px}.app-container:has(.academic-mode-container){margin-right:400px}}@media (max-width: 900px){.academic-mode.landscape{flex-direction:column}}.academic-mode.portrait{width:100%;height:100vh;max-width:100%;max-height:100vh;background:#fff;border-radius:0;box-shadow:none;margin:0;padding:0;flex-direction:column;overflow-y:auto}.academic-mode.portrait .academic-mode-content{flex:1;display:flex;flex-direction:column;padding:20px 20px 50px;overflow-y:auto}.academic-mode-header-portrait{padding:20px;background:#8dfff9;border-radius:0 0 50% 50%/0 0 40% 40%;margin-bottom:20px}.academic-mode-header-portrait-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}.academic-mode-header-portrait-top .academic-mode-map-button{flex-shrink:0}.academic-mode-header-portrait-top .academic-mode-close-button{flex-shrink:0;margin-left:auto}.academic-mode-header-portrait h2{margin:0;color:#000;font-size:24px;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:600;flex:1}.academic-mode-progress-map-wrapper .level-progress-map{max-width:100%;max-height:none;box-shadow:none;background:transparent;padding:0}.academic-mode-close-button{width:50px;height:50px;min-width:50px;min-height:50px;border:none;background:transparent;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.academic-mode-close-button:hover{transform:scale(1.1)}.academic-mode-close-button:active{transform:scale(.95)}.academic-mode-close-icon{width:100%;height:100%;object-fit:contain}.academic-mode-close-button-bottom{position:fixed;bottom:30px;left:50%;transform:translate(-50%);width:50px;height:50px;min-width:50px;min-height:50px;border:none;background:transparent;cursor:pointer;z-index:10001;display:flex;align-items:center;justify-content:center;transition:transform .2s ease}.academic-mode-close-button-bottom:hover{transform:translate(-50%) scale(1.1)}.academic-mode-close-button-bottom:active{transform:translate(-50%) scale(.95)}.academic-mode-header{margin-bottom:20px}.academic-mode-header-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}.academic-mode-header-top h2{margin:0;flex:1}.academic-mode-close-button-landscape{width:40px;height:40px;min-width:40px;min-height:40px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;flex-shrink:0;margin-left:auto}.academic-mode-close-button-landscape:hover{transform:scale(1.1)}.academic-mode-close-button-landscape:active{transform:scale(.95)}.academic-mode-map-button{width:40px;height:40px;min-width:40px;min-height:40px;border:2px solid #000;border-radius:8px;background:#fff;color:#000;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.academic-mode-map-button:hover{transform:scale(1.05);opacity:.8}.academic-mode-map-button:active{transform:scale(.95)}.academic-mode-map-icon{width:20px;height:20px;transition:fill .2s ease}.academic-mode-map-icon path{fill:#fff;transition:fill .2s ease}.academic-mode-map-button.active{border-color:#000;background:#fff}.academic-mode-map-button.active .academic-mode-map-icon path{fill:#000}.academic-mode.portrait .academic-mode-header,.academic-mode.landscape .academic-mode-header-portrait{display:none}.academic-mode-header h2{margin:0 0 10px;color:#000;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:20px;font-weight:600}.academic-mode-level{color:#000;font-size:14px;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;opacity:.7}.academic-mode-loading{text-align:center;padding:40px;color:#666}.academic-mode-task-container{margin-bottom:20px;padding:0;background:transparent;border:none;box-shadow:none;animation:slideDown .3s ease-out}.academic-mode-task-header{margin-bottom:12px;display:flex;align-items:center;gap:12px}.academic-mode-task-header h3{margin:0;color:#007bff;font-size:16px;font-weight:600;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;flex:1}.academic-mode-task-refresh-button{width:32px;height:32px;min-width:32px;min-height:32px;border:2px solid #1976d2;border-radius:8px;background:#fff;color:#1976d2;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s ease;flex-shrink:0}.academic-mode-task-refresh-button:hover{background:#e3f2fd;transform:rotate(90deg)}.academic-mode-task-refresh-button:active{transform:rotate(90deg) scale(.95)}.academic-mode-task-description{color:#333;font-size:15px;line-height:1.6;text-align:justify;font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-weight:400;padding:0;background:transparent;border-radius:0;border:none;margin-bottom:0}.academic-mode-start-button{margin-top:30px;margin-bottom:30px;padding:12px 24px;background-color:#007bff;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:16px}.academic-mode-start-button:hover:not(:disabled){background-color:#0056b3}.academic-mode-start-button:disabled{background-color:#ccc;cursor:not-allowed}.academic-mode-results-container{margin-top:20px;padding:0;background:transparent;border-radius:0;border:none;max-height:calc(100vh - 300px);overflow-y:auto;width:100%;flex:1;display:flex;flex-direction:column;min-height:0}.academic-mode.portrait .academic-mode-results-container{max-height:calc(100vh - 200px);overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:100px;margin-bottom:20px}.feedback-banner{position:fixed;bottom:0;left:0;right:0;z-index:50;background:#000;box-shadow:0 -4px 20px #00000080;transition:max-height .3s ease-out;max-height:70px;overflow:hidden;width:100%;border-top:2px solid rgba(255,255,255,.2);margin:0;padding:0}@media (orientation: portrait){.feedback-banner{max-height:75px}}.feedback-banner.expanded{max-height:450px}.feedback-banner-content{padding:15px 30px;width:100%;max-width:100%;box-sizing:border-box;margin:0}.feedback-banner-collapsed{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:nowrap;white-space:nowrap}@media (orientation: portrait){.feedback-banner{max-height:70px}.feedback-banner-content{padding:8px 12px}.feedback-banner-collapsed{flex-direction:row;gap:6px;flex-wrap:nowrap;justify-content:center;align-items:center;overflow:hidden}.feedback-banner-question{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feedback-banner-stars{gap:4px}.feedback-star-button{font-size:20px;width:24px;height:24px;padding:1px}.feedback-expand-button{width:28px;height:28px;min-width:28px;min-height:28px;max-width:28px;max-height:28px;font-size:16px}}.feedback-banner-question{color:#fff;font-size:14px;font-weight:500;white-space:nowrap;flex-shrink:1;min-width:0}@media (orientation: portrait){.feedback-banner-question{font-size:12px}}.feedback-banner-stars{display:flex;gap:6px;align-items:center;flex-shrink:0}.feedback-star-button{background:none;border:none;font-size:24px;cursor:pointer;padding:2px;transition:transform .2s;line-height:1;flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.feedback-star-button:hover{transform:scale(1.15)}.feedback-star-button.filled{color:#47b16c;filter:drop-shadow(0 2px 4px rgba(71,177,108,.5))}.feedback-star-button.empty{color:#fff9}.feedback-expand-button{background-color:#ffffff26;color:#fff;border:2px solid rgba(255,255,255,.3);border-radius:50%;width:32px;height:32px;min-width:32px;min-height:32px;max-width:32px;max-height:32px;padding:0;margin:0;font-size:18px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px #0003;line-height:1;flex-shrink:0;box-sizing:border-box;aspect-ratio:1}.feedback-expand-button:hover{background-color:#ffffff40;border-color:#ffffff80;transform:scale(1.1);box-shadow:0 4px 10px #0000004d}.feedback-banner-expanded{display:flex;flex-direction:column;gap:15px;width:100%;max-width:100%}.feedback-banner-header{display:flex;justify-content:space-between;align-items:center}.feedback-collapse-button{background:none;border:none;color:#fff;font-size:28px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s;line-height:1}.feedback-collapse-button:hover{background-color:#fff3}.feedback-rating-text{color:#fff;font-size:14px;font-weight:500;text-align:center;margin:-10px 0 0;min-height:20px}.feedback-text-section{display:flex;flex-direction:column;gap:8px}.feedback-textarea{width:100%;padding:12px;border:2px solid rgba(255,255,255,.3);border-radius:10px;background-color:#fffffff2;font-size:14px;font-family:inherit;resize:vertical;min-height:80px;transition:border-color .2s;box-sizing:border-box;color:#000}.feedback-textarea:focus{outline:none;border-color:#47b16c;background-color:#fff;color:#000}.feedback-textarea::placeholder{color:#666}.feedback-char-count{color:#fffc;font-size:12px;text-align:right}.feedback-banner-actions{display:flex;justify-content:flex-end}.feedback-submit-button{padding:10px 24px;border:none;border-radius:10px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;background:#47b16c;color:#fff;box-shadow:0 4px 15px #47b16c66;min-width:140px}.feedback-submit-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #47b16c99;background:#3a9d5a}.feedback-submit-button:disabled{opacity:.6;cursor:not-allowed}@media (max-width: 768px){.feedback-banner-content{padding:12px 20px}.feedback-banner-collapsed{gap:10px}.feedback-banner-question{font-size:14px}.feedback-star-button{font-size:24px}.feedback-banner.expanded{max-height:500px}.feedback-textarea{min-height:70px}.feedback-submit-button{padding:8px 20px;font-size:14px;min-width:120px}}@media (max-width: 480px) and (orientation: portrait){.feedback-banner{max-height:70px}.feedback-banner-content{padding:8px 10px}.feedback-banner-collapsed{flex-direction:row;gap:5px;flex-wrap:nowrap;justify-content:center;align-items:center;overflow:hidden}.feedback-banner-question{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.feedback-star-button{font-size:18px;width:22px;height:22px;padding:1px}.feedback-expand-button{width:26px;height:26px;min-width:26px;min-height:26px;max-width:26px;max-height:26px;font-size:14px;box-sizing:border-box;aspect-ratio:1}}.academic-mode-container{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10000;pointer-events:none}.academic-mode-container.hidden{display:none!important}.academic-mode-container.visible{display:flex}@media (orientation: landscape){.academic-mode-container{pointer-events:none;background:transparent;display:flex;align-items:flex-start;justify-content:flex-end}.academic-mode-container>*{pointer-events:auto}}@media (orientation: portrait){.academic-mode-container{background:transparent;display:flex;align-items:flex-start;justify-content:center;pointer-events:auto}}.app-container{width:100vw;height:100vh;height:100dvh;min-height:100vh;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#8dfff9;background-image:url(/assets/chat-ui/Background_Cartoon.png);background-size:cover;background-position:center;background-repeat:no-repeat;transition:margin-right .3s ease;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}@media (orientation: portrait){.app-container{background-image:none;background-position:center bottom;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;height:100vh;height:100dvh;padding-bottom:40px;position:relative}.app-container:before{content:"";position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;pointer-events:none;z-index:1}}@media (orientation: landscape){.app-container.academic-sidebar-visible{padding-right:500px;box-sizing:border-box}.app-container.academic-sidebar-visible .main-avatar{right:520px!important;left:auto!important;transform:translateY(50%) translate(0)!important;max-width:none!important;width:auto!important}.app-container.academic-sidebar-visible .ui-controls{padding-right:500px;box-sizing:border-box}.app-container.academic-sidebar-visible .corner-icon-top-right{right:520px!important}}@media (orientation: landscape) and (max-width: 1200px){.app-container.academic-sidebar-visible{padding-right:400px}.app-container.academic-sidebar-visible .main-avatar{right:420px!important;left:auto!important;transform:translateY(50%) translate(0)!important;max-width:none!important;width:auto!important}.app-container.academic-sidebar-visible .ui-controls{padding-right:400px;box-sizing:border-box}.app-container.academic-sidebar-visible .corner-icon-top-right{right:420px!important}}.loading-screen{width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:24px;background-color:#fff;color:#000;position:fixed;top:0;left:0;z-index:99999}.loading-screen p{margin:0;padding:20px;font-weight:500}.connection-status{position:fixed;top:20px;left:50%;transform:translate(-50%);background:#000000d9;color:#fff;padding:15px 25px;border-radius:10px;z-index:10000;display:flex;align-items:center;gap:12px;box-shadow:0 4px 12px #0000004d;font-size:16px;font-weight:500}.connection-status p{margin:0}.connection-spinner{width:20px;height:20px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.main-avatar{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10;transition:top .3s ease,left .3s ease,transform .3s ease}.main-avatar.chat-visible{top:20%;transform:translate(-50%,-50%)}@media (orientation: landscape){.main-avatar{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);margin-left:-20px;margin-top:120px}.main-avatar.chat-visible{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%)}}@media (orientation: portrait){.main-avatar{top:auto;bottom:calc(100px + 20px + ((100vh - 120px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * .75 - 80px) / 3);left:auto;right:-18%;transform:translateY(40%) scale(1)}.main-avatar.chat-visible{top:auto;bottom:calc(100px + 40px + ((100vh - 120px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)) * .75 - 80px) / 3);left:auto;right:-18%;transform:translateY(40%) scale(1)}}.ui-controls{position:fixed;bottom:30px;left:50%;transform:translate(-50%);display:flex;gap:16px;align-items:center;justify-content:center;z-index:100;padding:0 30px;width:100%;transition:bottom .3s ease-out,opacity .3s ease-out,visibility .3s ease-out}.ui-controls.hidden{opacity:0;visibility:hidden;pointer-events:none}body:has(.feedback-banner:not(.expanded)) .ui-controls{bottom:100px}body:has(.feedback-banner.expanded) .ui-controls{bottom:480px}.ui-controls-left,.ui-controls-right{display:flex;gap:16px;align-items:center}.upload-activity-toast{position:fixed;right:30px;bottom:110px;max-width:320px;background:#000000d9;color:#fff;padding:10px 14px;border-radius:10px;font-size:12px;line-height:1.3;z-index:1000;pointer-events:none;box-shadow:0 4px 12px #0000004d}@media (orientation: portrait){.ui-controls{bottom:20px;left:50%;right:auto;transform:translate(-50%);gap:14px;flex-direction:row;justify-content:center;padding:10px 20px;background:#ffffffe0;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);border-radius:28px;box-shadow:0 8px 32px #0000001a,0 2px 8px #0000000d,inset 0 1px #fff9;border:1px solid rgba(255,255,255,.4);transition:all .3s cubic-bezier(.4,0,.2,1)}@media (min-width: 600px) and (max-width: 1024px){.ui-controls{bottom:30px;padding:12px 28px;gap:18px;border-radius:32px}}body:has(.feedback-banner:not(.expanded)) .ui-controls{bottom:90px}body:has(.feedback-banner.expanded) .ui-controls{bottom:470px}.ui-controls-left,.ui-controls-right{display:flex;gap:14px;align-items:center}.upload-activity-toast{right:50%;transform:translate(50%);bottom:90px;max-width:90vw;-webkit-backdrop-filter:blur(20px) saturate(180%);backdrop-filter:blur(20px) saturate(180%);background:#000000e0;border-radius:16px;border:1px solid rgba(255,255,255,.1);box-shadow:0 8px 24px #0003,0 2px 8px #0000001a}}@media (orientation: landscape){.ui-controls{bottom:30px;left:0;right:0;transform:none;justify-content:flex-end;padding:0 30px;transition:right .3s ease,padding-right .3s ease,bottom .3s ease-out}body:has(.feedback-banner:not(.expanded)) .ui-controls{bottom:100px}body:has(.feedback-banner.expanded) .ui-controls{bottom:480px}.app-container.academic-sidebar-visible .ui-controls{right:500px}@media (max-width: 1200px){.app-container.academic-sidebar-visible .ui-controls{right:400px}}.ui-controls-left,.ui-controls-right{display:flex;gap:16px;align-items:center}.upload-activity-toast{bottom:110px}}@media (orientation: portrait) and (max-width: 480px){.app-container{padding-bottom:60px}.ui-controls{bottom:14px;gap:12px;padding:10px 18px;border-radius:26px;box-shadow:0 6px 24px #0000001f,0 2px 6px #00000014,inset 0 1px #ffffffb3}body:has(.feedback-banner:not(.expanded)) .ui-controls{bottom:84px}body:has(.feedback-banner.expanded) .ui-controls{bottom:514px}}@media (max-width: 600px) and (orientation: portrait){.app-container{padding-bottom:80px}}@media (max-width: 400px) and (orientation: portrait){.app-container{padding-bottom:100px}}@media (min-width: 768px) and (max-width: 1024px){.ui-controls{bottom:24px;gap:20px}body:has(.feedback-banner:not(.expanded)) .ui-controls{bottom:94px}body:has(.feedback-banner.expanded) .ui-controls{bottom:474px}}.corner-icon{position:fixed;z-index:50;max-width:80px;max-height:80px;width:auto;height:auto;object-fit:contain;pointer-events:none}.corner-icon-top-left{top:30px;left:30px}.corner-icon-top-right{top:30px;right:30px;max-width:50px;max-height:50px}@media (orientation: portrait) and (max-width: 480px){.corner-icon{max-width:60px;max-height:60px}.corner-icon-top-left,.corner-icon-top-right{top:20px}.corner-icon-top-left{left:20px}.corner-icon-top-right{right:20px;max-width:40px;max-height:40px}}@media (min-width: 768px){.corner-icon{max-width:100px;max-height:100px}.corner-icon-top-right{max-width:60px;max-height:60px}}@font-face{font-family:Montserrat;src:url(/assets/fonts/Montserrat-SemiBold.otf) format("opentype");font-weight:600;font-style:normal;font-display:swap}*{margin:0;padding:0;box-sizing:border-box}:root{font-family:Montserrat,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#8dfff9;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden;background-color:#8dfff9}body.orientation-portrait{overflow-y:hidden}#root{width:100%;min-height:100vh}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#8dfff9}}
